2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="main.c"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
622 enable_option_checking
=no
624 ac_subst_vars
='LTLIBOBJS
637 HAVE_NATIVE_GCORE_HOST
737 READLINE_TEXI_INCFLAG
761 HAVE_NATIVE_GCORE_TARGET
787 INSTALL_STRIP_PROGRAM
816 MAINTAINER_MODE_FALSE
845 program_transform_name
856 ac_subst_files
='nat_makefile_frag'
858 enable_option_checking
859 enable_maintainer_mode
862 with_separate_debug_dir
864 with_relocated_sources
866 with_auto_load_safe_path
895 enable_source_highlight
902 with_system_gdbinit_dir
904 enable_build_warnings
905 enable_gdb_build_warnings
915 with_libbabeltrace_prefix
916 with_libbabeltrace_type
918 with_libxxhash_prefix
922 ac_precious_vars
='build_alias
939 ac_subdirs_all
='testsuite
942 # Initialize some variables set by options.
944 ac_init_version
=false
945 ac_unrecognized_opts
=
947 # The variables have the same names as the options, with
948 # dashes changed to underlines.
956 program_transform_name
=s
,x
,x
,
964 # Installation directory options.
965 # These are left unexpanded so users can "make install exec_prefix=/foo"
966 # and all the variables that are supposed to be based on exec_prefix
967 # by default will actually change.
968 # Use braces instead of parens because sh, perl, etc. also accept them.
969 # (The list follows the same order as the GNU Coding Standards.)
970 bindir
='${exec_prefix}/bin'
971 sbindir
='${exec_prefix}/sbin'
972 libexecdir
='${exec_prefix}/libexec'
973 datarootdir
='${prefix}/share'
974 datadir
='${datarootdir}'
975 sysconfdir
='${prefix}/etc'
976 sharedstatedir
='${prefix}/com'
977 localstatedir
='${prefix}/var'
978 includedir
='${prefix}/include'
979 oldincludedir
='/usr/include'
980 docdir
='${datarootdir}/doc/${PACKAGE}'
981 infodir
='${datarootdir}/info'
986 libdir
='${exec_prefix}/lib'
987 localedir
='${datarootdir}/locale'
988 mandir
='${datarootdir}/man'
994 # If the previous option needs an argument, assign it.
995 if test -n "$ac_prev"; then
996 eval $ac_prev=\
$ac_option
1002 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1007 # Accept the important Cygnus configure options, so we can diagnose typos.
1009 case $ac_dashdash$ac_option in
1013 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1015 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1016 bindir
=$ac_optarg ;;
1018 -build |
--build |
--buil |
--bui |
--bu)
1019 ac_prev
=build_alias
;;
1020 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1021 build_alias
=$ac_optarg ;;
1023 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1024 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1025 ac_prev
=cache_file
;;
1026 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1027 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1028 cache_file
=$ac_optarg ;;
1030 --config-cache |
-C)
1031 cache_file
=config.cache
;;
1033 -datadir |
--datadir |
--datadi |
--datad)
1035 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1036 datadir
=$ac_optarg ;;
1038 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1039 |
--dataroo |
--dataro |
--datar)
1040 ac_prev
=datarootdir
;;
1041 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1042 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1043 datarootdir
=$ac_optarg ;;
1045 -disable-* |
--disable-*)
1046 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1049 as_fn_error $?
"invalid feature name: $ac_useropt"
1050 ac_useropt_orig
=$ac_useropt
1051 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052 case $ac_user_opts in
1054 "enable_
$ac_useropt"
1056 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1057 ac_unrecognized_sep
=', ';;
1059 eval enable_
$ac_useropt=no
;;
1061 -docdir |
--docdir |
--docdi |
--doc |
--do)
1063 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1064 docdir
=$ac_optarg ;;
1066 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1068 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1069 dvidir
=$ac_optarg ;;
1071 -enable-* |
--enable-*)
1072 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1075 as_fn_error $?
"invalid feature name: $ac_useropt"
1076 ac_useropt_orig
=$ac_useropt
1077 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1080 "enable_
$ac_useropt"
1082 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1083 ac_unrecognized_sep
=', ';;
1085 eval enable_
$ac_useropt=\
$ac_optarg ;;
1087 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1088 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1089 |
--exec |
--exe |
--ex)
1090 ac_prev
=exec_prefix
;;
1091 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1092 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1093 |
--exec=* |
--exe=* |
--ex=*)
1094 exec_prefix
=$ac_optarg ;;
1096 -gas |
--gas |
--ga |
--g)
1097 # Obsolete; use --with-gas.
1100 -help |
--help |
--hel |
--he |
-h)
1101 ac_init_help
=long
;;
1102 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1103 ac_init_help
=recursive
;;
1104 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1105 ac_init_help
=short
;;
1107 -host |
--host |
--hos |
--ho)
1108 ac_prev
=host_alias
;;
1109 -host=* |
--host=* |
--hos=* |
--ho=*)
1110 host_alias
=$ac_optarg ;;
1112 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1114 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1116 htmldir
=$ac_optarg ;;
1118 -includedir |
--includedir |
--includedi |
--included |
--include \
1119 |
--includ |
--inclu |
--incl |
--inc)
1120 ac_prev
=includedir
;;
1121 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1122 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1123 includedir
=$ac_optarg ;;
1125 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1127 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1128 infodir
=$ac_optarg ;;
1130 -libdir |
--libdir |
--libdi |
--libd)
1132 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1133 libdir
=$ac_optarg ;;
1135 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1136 |
--libexe |
--libex |
--libe)
1137 ac_prev
=libexecdir
;;
1138 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1139 |
--libexe=* |
--libex=* |
--libe=*)
1140 libexecdir
=$ac_optarg ;;
1142 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1143 ac_prev
=localedir
;;
1144 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1145 localedir
=$ac_optarg ;;
1147 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1148 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1149 ac_prev
=localstatedir
;;
1150 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1151 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1152 localstatedir
=$ac_optarg ;;
1154 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1156 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1157 mandir
=$ac_optarg ;;
1159 -nfp |
--nfp |
--nf)
1160 # Obsolete; use --without-fp.
1163 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1164 |
--no-cr |
--no-c |
-n)
1167 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1168 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1171 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1172 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1173 |
--oldin |
--oldi |
--old |
--ol |
--o)
1174 ac_prev
=oldincludedir
;;
1175 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1176 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1177 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1178 oldincludedir
=$ac_optarg ;;
1180 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1182 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1183 prefix
=$ac_optarg ;;
1185 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1186 |
--program-pre |
--program-pr |
--program-p)
1187 ac_prev
=program_prefix
;;
1188 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1189 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1190 program_prefix
=$ac_optarg ;;
1192 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1193 |
--program-suf |
--program-su |
--program-s)
1194 ac_prev
=program_suffix
;;
1195 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1196 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1197 program_suffix
=$ac_optarg ;;
1199 -program-transform-name |
--program-transform-name \
1200 |
--program-transform-nam |
--program-transform-na \
1201 |
--program-transform-n |
--program-transform- \
1202 |
--program-transform |
--program-transfor \
1203 |
--program-transfo |
--program-transf \
1204 |
--program-trans |
--program-tran \
1205 |
--progr-tra |
--program-tr |
--program-t)
1206 ac_prev
=program_transform_name
;;
1207 -program-transform-name=* |
--program-transform-name=* \
1208 |
--program-transform-nam=* |
--program-transform-na=* \
1209 |
--program-transform-n=* |
--program-transform-=* \
1210 |
--program-transform=* |
--program-transfor=* \
1211 |
--program-transfo=* |
--program-transf=* \
1212 |
--program-trans=* |
--program-tran=* \
1213 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1214 program_transform_name
=$ac_optarg ;;
1216 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1218 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1219 pdfdir
=$ac_optarg ;;
1221 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1223 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1226 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1227 |
-silent |
--silent |
--silen |
--sile |
--sil)
1230 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1232 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1234 sbindir
=$ac_optarg ;;
1236 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1237 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1238 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1240 ac_prev
=sharedstatedir
;;
1241 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1242 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1243 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1245 sharedstatedir
=$ac_optarg ;;
1247 -site |
--site |
--sit)
1249 -site=* |
--site=* |
--sit=*)
1252 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1254 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1255 srcdir
=$ac_optarg ;;
1257 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1258 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1259 ac_prev
=sysconfdir
;;
1260 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1261 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1262 sysconfdir
=$ac_optarg ;;
1264 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1265 ac_prev
=target_alias
;;
1266 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1267 target_alias
=$ac_optarg ;;
1269 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1272 -version |
--version |
--versio |
--versi |
--vers |
-V)
1273 ac_init_version
=: ;;
1276 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1279 as_fn_error $?
"invalid package name: $ac_useropt"
1280 ac_useropt_orig
=$ac_useropt
1281 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282 case $ac_user_opts in
1286 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1287 ac_unrecognized_sep
=', ';;
1289 eval with_
$ac_useropt=\
$ac_optarg ;;
1291 -without-* |
--without-*)
1292 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1295 as_fn_error $?
"invalid package name: $ac_useropt"
1296 ac_useropt_orig
=$ac_useropt
1297 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298 case $ac_user_opts in
1302 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1303 ac_unrecognized_sep
=', ';;
1305 eval with_
$ac_useropt=no
;;
1308 # Obsolete; use --with-x.
1311 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1312 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1313 ac_prev
=x_includes
;;
1314 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1315 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1316 x_includes
=$ac_optarg ;;
1318 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1319 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1320 ac_prev
=x_libraries
;;
1321 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1322 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1323 x_libraries
=$ac_optarg ;;
1325 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1326 Try \`$0 --help' for more information"
1330 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1331 # Reject names that are not valid shell variable names.
1332 case $ac_envvar in #(
1333 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1334 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1336 eval $ac_envvar=\
$ac_optarg
1337 export $ac_envvar ;;
1340 # FIXME: should be removed in autoconf 3.0.
1341 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1342 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1343 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1344 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1350 if test -n "$ac_prev"; then
1351 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1352 as_fn_error $?
"missing argument to $ac_option"
1355 if test -n "$ac_unrecognized_opts"; then
1356 case $enable_option_checking in
1358 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1359 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1363 # Check all directory arguments for consistency.
1364 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1365 datadir sysconfdir sharedstatedir localstatedir includedir \
1366 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1367 libdir localedir mandir
1369 eval ac_val
=\$
$ac_var
1370 # Remove trailing slashes.
1373 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1374 eval $ac_var=\
$ac_val;;
1376 # Be sure to have absolute directory names.
1378 [\\/$
]* | ?
:[\\/]* ) continue;;
1379 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1381 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1384 # There might be people who depend on the old broken behavior: `$host'
1385 # used to hold the argument of --host etc.
1386 # FIXME: To remove some day.
1389 target
=$target_alias
1391 # FIXME: To remove some day.
1392 if test "x$host_alias" != x
; then
1393 if test "x$build_alias" = x
; then
1394 cross_compiling
=maybe
1395 elif test "x$build_alias" != "x$host_alias"; then
1401 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1403 test "$silent" = yes && exec 6>/dev
/null
1406 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1407 ac_ls_di
=`ls -di .` &&
1408 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1409 as_fn_error $?
"working directory cannot be determined"
1410 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1411 as_fn_error $?
"pwd does not report name of working directory"
1414 # Find the source files, if location was not specified.
1415 if test -z "$srcdir"; then
1416 ac_srcdir_defaulted
=yes
1417 # Try the directory containing this script, then the parent directory.
1418 ac_confdir
=`$as_dirname -- "$as_myself" ||
1419 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1420 X"$as_myself" : 'X\(//\)[^/]' \| \
1421 X"$as_myself" : 'X\(//\)$' \| \
1422 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1423 $as_echo X"$as_myself" |
1424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1442 if test ! -r "$srcdir/$ac_unique_file"; then
1446 ac_srcdir_defaulted
=no
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1449 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1450 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1452 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1454 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1456 # When building in place, set srcdir=.
1457 if test "$ac_abs_confdir" = "$ac_pwd"; then
1460 # Remove unnecessary trailing slashes from srcdir.
1461 # Double slashes in file names in object file debugging info
1462 # mess up M-x gdb in Emacs.
1464 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1466 for ac_var
in $ac_precious_vars; do
1467 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1468 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1469 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1470 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1474 # Report the --help message.
1476 if test "$ac_init_help" = "long"; then
1477 # Omit some internal or obsolete options to make the list less imposing.
1478 # This message is too long to be a string in the A/UX 3.1 sh.
1480 \`configure' configures this package to adapt to many kinds of systems.
1482 Usage: $0 [OPTION]... [VAR=VALUE]...
1484 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1485 VAR=VALUE. See below for descriptions of some of the useful variables.
1487 Defaults for the options are specified in brackets.
1490 -h, --help display this help and exit
1491 --help=short display options specific to this package
1492 --help=recursive display the short help of all the included packages
1493 -V, --version display version information and exit
1494 -q, --quiet, --silent do not print \`checking ...' messages
1495 --cache-file=FILE cache test results in FILE [disabled]
1496 -C, --config-cache alias for \`--cache-file=config.cache'
1497 -n, --no-create do not create output files
1498 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1500 Installation directories:
1501 --prefix=PREFIX install architecture-independent files in PREFIX
1502 [$ac_default_prefix]
1503 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1506 By default, \`make install' will install all the files in
1507 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1508 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1509 for instance \`--prefix=\$HOME'.
1511 For better control, use the options below.
1513 Fine tuning of the installation directories:
1514 --bindir=DIR user executables [EPREFIX/bin]
1515 --sbindir=DIR system admin executables [EPREFIX/sbin]
1516 --libexecdir=DIR program executables [EPREFIX/libexec]
1517 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1518 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1519 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1520 --libdir=DIR object code libraries [EPREFIX/lib]
1521 --includedir=DIR C header files [PREFIX/include]
1522 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1523 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1524 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1525 --infodir=DIR info documentation [DATAROOTDIR/info]
1526 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1527 --mandir=DIR man documentation [DATAROOTDIR/man]
1528 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1529 --htmldir=DIR html documentation [DOCDIR]
1530 --dvidir=DIR dvi documentation [DOCDIR]
1531 --pdfdir=DIR pdf documentation [DOCDIR]
1532 --psdir=DIR ps documentation [DOCDIR]
1538 --program-prefix=PREFIX prepend PREFIX to installed program names
1539 --program-suffix=SUFFIX append SUFFIX to installed program names
1540 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1543 --x-includes=DIR X include files are
in DIR
1544 --x-libraries=DIR X library files are
in DIR
1547 --build=BUILD configure
for building on BUILD
[guessed
]
1548 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1549 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1553 if test -n "$ac_init_help"; then
1558 --disable-option-checking ignore unrecognized
--enable/--with options
1559 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1560 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1561 --enable-maintainer-mode
1562 enable make rules and dependencies not useful
(and
1563 sometimes confusing
) to the casual installer
1564 --enable-plugins Enable support
for plugins
1565 --disable-largefile omit support
for large files
1566 --enable-targets=TARGETS
1567 alternative target configurations
1568 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1569 --disable-gdbmi disable machine-interface
(MI
)
1570 --enable-tui enable full-screen terminal user interface
(TUI
)
1571 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1572 --enable-profiling enable profiling of GDB
1573 --enable-codesign=CERT sign gdb with
'codesign -s CERT'
1574 --disable-rpath do not hardcode runtime library paths
1575 --enable-source-highlight
1576 enable source-highlight
for source listings
1577 --enable-werror treat compile warnings as errors
1578 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1579 --enable-gdb-build-warnings
1580 enable GDB specific build-time compiler warnings
if
1582 --enable-ubsan enable undefined behavior sanitizer
(auto
/yes
/no
)
1583 --enable-sim link gdb with simulator
1584 --enable-unit-tests Enable the inclusion of unit tests when compiling
1588 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1589 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1590 --with-separate-debug-dir=PATH
1591 look for global separate debug info
in this path
1593 --with-gdb-datadir=PATH
look for global separate data files
in this path
1595 --with-relocated-sources=PATH
1596 automatically relocate this path
for source files
1597 --with-auto-load-dir=PATH
1598 directories from
which to load auto-loaded scripts
1599 [$debugdir:$datadir/auto-load
]
1600 --with-auto-load-safe-path=PATH
1601 directories safe to hold auto-loaded files
1602 [--with-auto-load-dir]
1603 --without-auto-load-safe-path
1604 do not restrict auto-loaded files locations
1605 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1606 --with-curses use the curses library instead of the termcap
1608 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1609 --with-bugurl=URL Direct users to URL to report a bug
1610 --with-system-zlib use installed libz
1611 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1612 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1613 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1614 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1615 --with-iconv-bin=PATH specify where to find the iconv program
1616 --with-system-readline use installed readline library
1617 --with-jit-reader-dir=PATH
1618 directory to load the JIT readers from
1619 --with-expat include expat support (auto/yes/no)
1620 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1621 --without-libexpat-prefix don't search
for libexpat
in includedir and libdir
1622 --with-libexpat-type=TYPE
type of library to search
for (auto
/static
/shared
)
1623 --with-mpfr include MPFR support
(auto
/yes
/no
)
1624 --with-libmpfr-prefix[=DIR
] search
for libmpfr
in DIR
/include and DIR
/lib
1625 --without-libmpfr-prefix don
't search for libmpfr in includedir and libdir
1626 --with-libmpfr-type=TYPE type of library to search for (auto/static/shared)
1627 --with-python[=PYTHON] include python support
1628 (auto/yes/no/<python-program>)
1629 --with-python-libdir[=DIR]
1630 search for python's libraries
in DIR
1631 --with-guile[=GUILE
] include guile support
1632 (auto
/yes
/no
/<guile-version
>/<pkg-config-program
>)
1633 --with-intel-pt include Intel Processor Trace support
(auto
/yes
/no
)
1634 --with-libipt-prefix[=DIR
] search
for libipt
in DIR
/include and DIR
/lib
1635 --without-libipt-prefix don
't search for libipt in includedir and libdir
1636 --with-libipt-type=TYPE type of library to search for (auto/static/shared)
1637 --without-included-regex
1638 don't use included regex
; this is the default on
1639 systems with version
2 of the GNU C library
(use
1640 with caution on other system
)
1641 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1642 --with-system-gdbinit=PATH
1643 automatically load a system-wide gdbinit
file
1644 --with-system-gdbinit-dir=PATH
1645 automatically load system-wide gdbinit files from
1647 --with-lzma support lzma compression
(auto
/yes
/no
)
1648 --with-liblzma-prefix[=DIR
] search
for liblzma
in DIR
/include and DIR
/lib
1649 --without-liblzma-prefix don
't search for liblzma in includedir and libdir
1650 --with-liblzma-type=TYPE type of library to search for (auto/static/shared)
1651 --with-tcl directory containing tcl configuration (tclConfig.sh)
1652 --with-tk directory containing tk configuration (tkConfig.sh)
1653 --with-x use the X Window System
1654 --with-babeltrace include babeltrace support (auto/yes/no)
1655 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1656 --without-libbabeltrace-prefix don't search
for libbabeltrace
in includedir and libdir
1657 --with-libbabeltrace-type=TYPE
type of library to search
for (auto
/static
/shared
)
1658 --with-xxhash use libxxhash
for hashing
(faster
) (auto
/yes
/no
)
1659 --with-libxxhash-prefix[=DIR
] search
for libxxhash
in DIR
/include and DIR
/lib
1660 --without-libxxhash-prefix don
't search for libxxhash in includedir and libdir
1661 --with-libxxhash-type=TYPE type of library to search for (auto/static/shared)
1663 Some influential environment variables:
1664 CC C compiler command
1665 CFLAGS C compiler flags
1666 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1667 nonstandard directory <lib dir>
1668 LIBS libraries to pass to the linker, e.g. -l<library>
1669 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1670 you have headers in a nonstandard directory <include dir>
1671 CXX C++ compiler command
1672 CXXFLAGS C++ compiler flags
1674 MAKEINFO Parent configure detects if it is of sufficient version.
1676 Parameters for MAKEINFO.
1677 YACC The `Yet Another Compiler Compiler' implementation to use.
1678 Defaults to the first program found out of
: `bison -y', `byacc
',
1680 YFLAGS The list of arguments that will be passed by default to
$YACC.
1681 This
script will default YFLAGS to the empty string to avoid a
1682 default value of
`-d' given by some make applications.
1683 XMKMF Path to xmkmf, Makefile generator for X Window System
1685 Use these variables to override the choices made by `configure
' or to help
1686 it to find libraries and programs with nonstandard names/locations.
1688 Report bugs to the package provider.
1693 if test "$ac_init_help" = "recursive"; then
1694 # If there are subdirs, report their specific --help.
1695 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1696 test -d "$ac_dir" ||
1697 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1702 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1704 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.
[\\/]||
'`
1705 # A ".." for each directory in $ac_dir_suffix.
1706 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|
/[^
\\/]*|
/..|g
;s|
/||
'`
1707 case $ac_top_builddir_sub in
1708 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1709 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1712 ac_abs_top_builddir=$ac_pwd
1713 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1714 # for backward compatibility:
1715 ac_top_builddir=$ac_top_build_prefix
1718 .) # We are building in place.
1720 ac_top_srcdir=$ac_top_builddir_sub
1721 ac_abs_top_srcdir=$ac_pwd ;;
1722 [\\/]* | ?:[\\/]* ) # Absolute name.
1723 ac_srcdir=$srcdir$ac_dir_suffix;
1724 ac_top_srcdir=$srcdir
1725 ac_abs_top_srcdir=$srcdir ;;
1727 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1728 ac_top_srcdir=$ac_top_build_prefix$srcdir
1729 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1731 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1733 cd "$ac_dir" || { ac_status=$?; continue; }
1734 # Check for guested configure.
1735 if test -f "$ac_srcdir/configure.gnu"; then
1737 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1738 elif test -f "$ac_srcdir/configure"; then
1740 $SHELL "$ac_srcdir/configure" --help=recursive
1742 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1744 cd "$ac_pwd" || { ac_status=$?; break; }
1748 test -n "$ac_init_help" && exit $ac_status
1749 if $ac_init_version; then
1752 generated by GNU Autoconf 2.69
1754 Copyright (C) 2012 Free Software Foundation, Inc.
1755 This configure script is free software; the Free Software Foundation
1756 gives unlimited permission to copy, distribute and modify it.
1761 ## ------------------------ ##
1762 ## Autoconf initialization. ##
1763 ## ------------------------ ##
1765 # ac_fn_c_try_compile LINENO
1766 # --------------------------
1767 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1768 ac_fn_c_try_compile ()
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 rm -f conftest.$ac_objext
1772 if { { ac_try="$ac_compile"
1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775 *) ac_try_echo=$ac_try;;
1777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778 $as_echo "$ac_try_echo"; } >&5
1779 (eval "$ac_compile") 2>conftest.err
1781 if test -s conftest.err; then
1782 grep -v '^
*+' conftest.err >conftest.er1
1783 cat conftest.er1 >&5
1784 mv -f conftest.er1 conftest.err
1786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1787 test $ac_status = 0; } && {
1788 test -z "$ac_c_werror_flag" ||
1789 test ! -s conftest.err
1790 } && test -s conftest.$ac_objext; then :
1793 $as_echo "$as_me: failed program was:" >&5
1794 sed 's
/^
/|
/' conftest.$ac_ext >&5
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799 as_fn_set_status $ac_retval
1801 } # ac_fn_c_try_compile
1803 # ac_fn_cxx_try_compile LINENO
1804 # ----------------------------
1805 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1806 ac_fn_cxx_try_compile ()
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 rm -f conftest.$ac_objext
1810 if { { ac_try="$ac_compile"
1812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813 *) ac_try_echo=$ac_try;;
1815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816 $as_echo "$ac_try_echo"; } >&5
1817 (eval "$ac_compile") 2>conftest.err
1819 if test -s conftest.err; then
1820 grep -v '^
*+' conftest.err >conftest.er1
1821 cat conftest.er1 >&5
1822 mv -f conftest.er1 conftest.err
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; } && {
1826 test -z "$ac_cxx_werror_flag" ||
1827 test ! -s conftest.err
1828 } && test -s conftest.$ac_objext; then :
1831 $as_echo "$as_me: failed program was:" >&5
1832 sed 's
/^
/|
/' conftest.$ac_ext >&5
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837 as_fn_set_status $ac_retval
1839 } # ac_fn_cxx_try_compile
1841 # ac_fn_c_try_cpp LINENO
1842 # ----------------------
1843 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 if { { ac_try="$ac_cpp conftest.$ac_ext"
1849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850 *) ac_try_echo=$ac_try;;
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1856 if test -s conftest.err; then
1857 grep -v '^
*+' conftest.err >conftest.er1
1858 cat conftest.er1 >&5
1859 mv -f conftest.er1 conftest.err
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } > conftest.i && {
1863 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1864 test ! -s conftest.err
1868 $as_echo "$as_me: failed program was:" >&5
1869 sed 's
/^
/|
/' conftest.$ac_ext >&5
1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874 as_fn_set_status $ac_retval
1878 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1879 # -------------------------------------------------------
1880 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1881 # the include files in INCLUDES and setting the cache variable VAR
1883 ac_fn_c_check_header_mongrel ()
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 if eval \${$3+:} false; then :
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1888 $as_echo_n "checking for $2... " >&6; }
1889 if eval \${$3+:} false; then :
1890 $as_echo_n "(cached) " >&6
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894 $as_echo "$ac_res" >&6; }
1896 # Is the header compilable?
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1898 $as_echo_n "checking $2 usability... " >&6; }
1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900 /* end confdefs.h. */
1904 if ac_fn_c_try_compile "$LINENO"; then :
1905 ac_header_compiler=yes
1907 ac_header_compiler=no
1909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1911 $as_echo "$ac_header_compiler" >&6; }
1913 # Is the header present?
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1915 $as_echo_n "checking $2 presence... " >&6; }
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h. */
1920 if ac_fn_c_try_cpp "$LINENO"; then :
1921 ac_header_preproc=yes
1923 ac_header_preproc=no
1925 rm -f conftest.err conftest.i conftest.$ac_ext
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1927 $as_echo "$ac_header_preproc" >&6; }
1929 # So? What about this header?
1930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1933 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1935 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1939 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1941 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1943 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1945 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1947 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1951 $as_echo_n "checking for $2... " >&6; }
1952 if eval \${$3+:} false; then :
1953 $as_echo_n "(cached) " >&6
1955 eval "$3=\$ac_header_compiler"
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959 $as_echo "$ac_res" >&6; }
1961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963 } # ac_fn_c_check_header_mongrel
1965 # ac_fn_c_try_run LINENO
1966 # ----------------------
1967 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1968 # that executables *can* be run.
1971 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972 if { { ac_try="$ac_link"
1974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1975 *) ac_try_echo=$ac_try;;
1977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1978 $as_echo "$ac_try_echo"; } >&5
1979 (eval "$ac_link") 2>&5
1981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1982 test $ac_status = 0; } && { ac_try='.
/conftest
$ac_exeext'
1983 { { case "(($ac_try" in
1984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1985 *) ac_try_echo=$ac_try;;
1987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1988 $as_echo "$ac_try_echo"; } >&5
1989 (eval "$ac_try") 2>&5
1991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1992 test $ac_status = 0; }; }; then :
1995 $as_echo "$as_me: program exited with status $ac_status" >&5
1996 $as_echo "$as_me: failed program was:" >&5
1997 sed 's
/^
/|
/' conftest.$ac_ext >&5
1999 ac_retval=$ac_status
2001 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003 as_fn_set_status $ac_retval
2007 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2008 # -------------------------------------------------------
2009 # Tests whether HEADER exists and can be compiled using the include files in
2010 # INCLUDES, setting the cache variable VAR accordingly.
2011 ac_fn_c_check_header_compile ()
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015 $as_echo_n "checking for $2... " >&6; }
2016 if eval \${$3+:} false; then :
2017 $as_echo_n "(cached) " >&6
2019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h. */
2024 if ac_fn_c_try_compile "$LINENO"; then :
2029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2033 $as_echo "$ac_res" >&6; }
2034 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2036 } # ac_fn_c_check_header_compile
2038 # ac_fn_c_try_link LINENO
2039 # -----------------------
2040 # Try to link conftest.$ac_ext, and return whether this succeeded.
2043 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2044 rm -f conftest.$ac_objext conftest$ac_exeext
2045 if { { ac_try="$ac_link"
2047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2048 *) ac_try_echo=$ac_try;;
2050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2051 $as_echo "$ac_try_echo"; } >&5
2052 (eval "$ac_link") 2>conftest.err
2054 if test -s conftest.err; then
2055 grep -v '^
*+' conftest.err >conftest.er1
2056 cat conftest.er1 >&5
2057 mv -f conftest.er1 conftest.err
2059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2060 test $ac_status = 0; } && {
2061 test -z "$ac_c_werror_flag" ||
2062 test ! -s conftest.err
2063 } && test -s conftest$ac_exeext && {
2064 test "$cross_compiling" = yes ||
2065 test -x conftest$ac_exeext
2069 $as_echo "$as_me: failed program was:" >&5
2070 sed 's
/^
/|
/' conftest.$ac_ext >&5
2074 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2075 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2076 # interfere with the next link command; also delete a directory that is
2077 # left behind by Apple's compiler. We
do this before executing the actions.
2078 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2079 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2080 as_fn_set_status
$ac_retval
2082 } # ac_fn_c_try_link
2084 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2085 # --------------------------------------------
2086 # Tries to find the compile-time value of EXPR in a program that includes
2087 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2089 ac_fn_c_compute_int
()
2091 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2092 if test "$cross_compiling" = yes; then
2093 # Depending upon the size, compute the lo and hi bounds.
2094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2100 static int test_array [1 - 2 * !(($2) >= 0)];
2102 return test_array [0];
2108 if ac_fn_c_try_compile
"$LINENO"; then :
2111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2112 /* end confdefs.h. */
2117 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2119 return test_array [0];
2125 if ac_fn_c_try_compile
"$LINENO"; then :
2126 ac_hi
=$ac_mid; break
2128 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2129 if test $ac_lo -le $ac_mid; then
2133 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2135 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2139 /* end confdefs.h. */
2144 static int test_array [1 - 2 * !(($2) < 0)];
2146 return test_array [0];
2152 if ac_fn_c_try_compile
"$LINENO"; then :
2155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2156 /* end confdefs.h. */
2161 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2163 return test_array [0];
2169 if ac_fn_c_try_compile
"$LINENO"; then :
2170 ac_lo
=$ac_mid; break
2172 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2173 if test $ac_mid -le $ac_hi; then
2177 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2179 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2184 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2186 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2187 # Binary search between lo and hi bounds.
2188 while test "x$ac_lo" != "x$ac_hi"; do
2189 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2196 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2198 return test_array [0];
2204 if ac_fn_c_try_compile
"$LINENO"; then :
2207 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2209 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2212 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2217 /* end confdefs.h. */
2219 static long int longval () { return $2; }
2220 static unsigned long int ulongval () { return $2; }
2227 FILE *f = fopen ("conftest.val", "w");
2232 long int i = longval ();
2235 fprintf (f, "%ld", i);
2239 unsigned long int i = ulongval ();
2242 fprintf (f, "%lu", i);
2244 /* Do not output a trailing newline, as this causes \r\n confusion
2245 on some platforms. */
2246 return ferror (f) || fclose (f) != 0;
2252 if ac_fn_c_try_run
"$LINENO"; then :
2253 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2257 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2258 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2262 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2263 as_fn_set_status
$ac_retval
2265 } # ac_fn_c_compute_int
2267 # ac_fn_c_check_func LINENO FUNC VAR
2268 # ----------------------------------
2269 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2270 ac_fn_c_check_func
()
2272 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2274 $as_echo_n "checking for $2... " >&6; }
2275 if eval \
${$3+:} false
; then :
2276 $as_echo_n "(cached) " >&6
2278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2279 /* end confdefs.h. */
2280 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2282 #define $2 innocuous_$2
2284 /* System header to define __stub macros and hopefully few prototypes,
2285 which can conflict with char $2 (); below.
2286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2287 <limits.h> exists even on freestanding compilers. */
2290 # include <limits.h>
2292 # include <assert.h>
2297 /* Override any GCC internal prototype to avoid an error.
2298 Use char because int might match the return type of a GCC
2299 builtin and then its argument prototype would still apply. */
2304 /* The GNU C library defines this for functions which it implements
2305 to always fail with ENOSYS. Some functions are actually named
2306 something starting with __ and the normal name is an alias. */
2307 #if defined __stub_$2 || defined __stub___$2
2319 if ac_fn_c_try_link
"$LINENO"; then :
2324 rm -f core conftest.err conftest.
$ac_objext \
2325 conftest
$ac_exeext conftest.
$ac_ext
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2329 $as_echo "$ac_res" >&6; }
2330 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2332 } # ac_fn_c_check_func
2334 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2335 # -------------------------------------------
2336 # Tests whether TYPE exists after having included INCLUDES, setting cache
2337 # variable VAR accordingly.
2338 ac_fn_c_check_type
()
2340 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2342 $as_echo_n "checking for $2... " >&6; }
2343 if eval \
${$3+:} false
; then :
2344 $as_echo_n "(cached) " >&6
2347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2348 /* end confdefs.h. */
2359 if ac_fn_c_try_compile
"$LINENO"; then :
2360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2361 /* end confdefs.h. */
2372 if ac_fn_c_try_compile
"$LINENO"; then :
2377 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2383 $as_echo "$ac_res" >&6; }
2384 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2386 } # ac_fn_c_check_type
2388 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2389 # ---------------------------------------------
2390 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2392 ac_fn_c_check_decl
()
2394 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2395 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2396 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2398 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2399 if eval \
${$3+:} false
; then :
2400 $as_echo_n "(cached) " >&6
2402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2403 /* end confdefs.h. */
2408 #ifndef $as_decl_name
2410 (void) $as_decl_use;
2412 (void) $as_decl_name;
2420 if ac_fn_c_try_compile
"$LINENO"; then :
2425 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2429 $as_echo "$ac_res" >&6; }
2430 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2432 } # ac_fn_c_check_decl
2434 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2435 # ----------------------------------------------------
2436 # Tries to find if the field MEMBER exists in type AGGR, after including
2437 # INCLUDES, setting cache variable VAR accordingly.
2438 ac_fn_c_check_member
()
2440 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2442 $as_echo_n "checking for $2.$3... " >&6; }
2443 if eval \
${$4+:} false
; then :
2444 $as_echo_n "(cached) " >&6
2446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2447 /* end confdefs.h. */
2459 if ac_fn_c_try_compile
"$LINENO"; then :
2462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2463 /* end confdefs.h. */
2469 if (sizeof ac_aggr.$3)
2475 if ac_fn_c_try_compile
"$LINENO"; then :
2480 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2486 $as_echo "$ac_res" >&6; }
2487 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2489 } # ac_fn_c_check_member
2491 # ac_fn_cxx_try_link LINENO
2492 # -------------------------
2493 # Try to link conftest.$ac_ext, and return whether this succeeded.
2494 ac_fn_cxx_try_link
()
2496 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2497 rm -f conftest.
$ac_objext conftest
$ac_exeext
2498 if { { ac_try
="$ac_link"
2500 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2501 *) ac_try_echo=$ac_try;;
2503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2504 $as_echo "$ac_try_echo"; } >&5
2505 (eval "$ac_link") 2>conftest.err
2507 if test -s conftest.err; then
2508 grep -v '^ *+' conftest.err >conftest.er1
2509 cat conftest.er1 >&5
2510 mv -f conftest.er1 conftest.err
2512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2513 test $ac_status = 0; } && {
2514 test -z "$ac_cxx_werror_flag" ||
2515 test ! -s conftest.err
2516 } && test -s conftest$ac_exeext && {
2517 test "$cross_compiling" = yes ||
2518 test -x conftest$ac_exeext
2522 $as_echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2527 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2528 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2529 # interfere with the next link command; also delete a directory that is
2530 # left behind by Apple's compiler. We do this before executing the actions.
2531 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2532 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2533 as_fn_set_status $ac_retval
2535 } # ac_fn_cxx_try_link
2537 # ac_fn_cxx_check_func LINENO FUNC VAR
2538 # ------------------------------------
2539 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2540 ac_fn_cxx_check_func ()
2542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2544 $as_echo_n "checking for $2... " >&6; }
2545 if eval \${$3+:} false; then :
2546 $as_echo_n "(cached) " >&6
2548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2549 /* end confdefs.h. */
2550 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2552 #define $2 innocuous_$2
2554 /* System header to define __stub macros and hopefully few prototypes,
2555 which can conflict with char $2 (); below.
2556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2557 <limits.h> exists even on freestanding compilers. */
2560 # include <limits.h>
2562 # include <assert.h>
2567 /* Override any GCC internal prototype to avoid an error.
2568 Use char because int might match the return type of a GCC
2569 builtin and then its argument prototype would still apply. */
2574 /* The GNU C library defines this for functions which it implements
2575 to always fail with ENOSYS. Some functions are actually named
2576 something starting with __ and the normal name is an alias. */
2577 #if defined __stub_$2 || defined __stub___$2
2589 if ac_fn_cxx_try_link "$LINENO"; then :
2594 rm -f core conftest.err conftest.$ac_objext \
2595 conftest$ac_exeext conftest.$ac_ext
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2599 $as_echo "$ac_res" >&6; }
2600 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2602 } # ac_fn_cxx_check_func
2603 cat >config.log <<_ACEOF
2604 This file contains any messages produced by compilers while
2605 running configure, to aid debugging if configure makes a mistake.
2607 It was created by $as_me, which was
2608 generated by GNU Autoconf 2.69. Invocation command line was
2620 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2621 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2622 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2623 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2624 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2626 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2627 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2629 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2630 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2631 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2632 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2633 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2634 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2635 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 test -z "$as_dir" && as_dir=.
2644 $as_echo "PATH: $as_dir"
2660 # Keep a trace of the command line.
2661 # Strip out --no-create and --no-recursion so they do not pile up.
2662 # Strip out --silent because we don't want to record it for future runs.
2663 # Also quote any args containing shell meta-characters.
2664 # Make two passes to allow for proper duplicate-argument suppression.
2668 ac_must_keep_next=false
2674 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2675 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2676 | -silent | --silent | --silen | --sile | --sil)
2679 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2682 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2684 as_fn_append ac_configure_args1 " '$ac_arg'"
2685 if test $ac_must_keep_next = true; then
2686 ac_must_keep_next=false # Got value, back to normal.
2689 *=* | --config-cache | -C | -disable-* | --disable-* \
2690 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2691 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2692 | -with-* | --with-* | -without-* | --without-* | --x)
2693 case "$ac_configure_args0 " in
2694 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2697 -* ) ac_must_keep_next=true ;;
2700 as_fn_append ac_configure_args " '$ac_arg'"
2705 { ac_configure_args0=; unset ac_configure_args0;}
2706 { ac_configure_args1=; unset ac_configure_args1;}
2708 # When interrupted or exit'd, cleanup temporary files, and complete
2709 # config.log. We remove comments because anyway the quotes in there
2710 # would cause problems or look ugly.
2711 # WARNING: Use '\'' to represent an apostrophe within the trap.
2712 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2713 trap 'exit_status=$?
2714 # Save into config.log some information that might help in debugging.
2718 $as_echo "## ---------------- ##
2719 ## Cache variables. ##
2720 ## ---------------- ##"
2722 # The following way of writing the cache mishandles newlines in values,
2724 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2725 eval ac_val=\$$ac_var
2729 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2730 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2733 _ | IFS | as_nl) ;; #(
2734 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2735 *) { eval $ac_var=; unset $ac_var;} ;;
2740 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2741 *${as_nl}ac_space=\ *)
2743 "s/'\''/'\''\\\\'\'''\''/g;
2744 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2747 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2754 $as_echo "## ----------------- ##
2755 ## Output variables. ##
2756 ## ----------------- ##"
2758 for ac_var in $ac_subst_vars
2760 eval ac_val=\$$ac_var
2762 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2764 $as_echo "$ac_var='\''$ac_val'\''"
2768 if test -n "$ac_subst_files"; then
2769 $as_echo "## ------------------- ##
2770 ## File substitutions. ##
2771 ## ------------------- ##"
2773 for ac_var in $ac_subst_files
2775 eval ac_val=\$$ac_var
2777 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2779 $as_echo "$ac_var='\''$ac_val'\''"
2784 if test -s confdefs.h; then
2785 $as_echo "## ----------- ##
2792 test "$ac_signal" != 0 &&
2793 $as_echo "$as_me: caught signal $ac_signal"
2794 $as_echo "$as_me: exit $exit_status"
2796 rm -f core *.core core.conftest.* &&
2797 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2800 for ac_signal in 1 2 13 15; do
2801 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2805 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2806 rm -f -r conftest* confdefs.h
2808 $as_echo "/* confdefs.h */" > confdefs.h
2810 # Predefined preprocessor variables.
2812 cat >>confdefs.h <<_ACEOF
2813 #define PACKAGE_NAME "$PACKAGE_NAME"
2816 cat >>confdefs.h <<_ACEOF
2817 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2820 cat >>confdefs.h <<_ACEOF
2821 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2824 cat >>confdefs.h <<_ACEOF
2825 #define PACKAGE_STRING "$PACKAGE_STRING"
2828 cat >>confdefs.h <<_ACEOF
2829 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2832 cat >>confdefs.h <<_ACEOF
2833 #define PACKAGE_URL "$PACKAGE_URL"
2837 # Let the site file select an alternate cache file if it wants to.
2838 # Prefer an explicitly selected file to automatically selected ones.
2841 if test -n "$CONFIG_SITE"; then
2842 # We do not want a PATH search for config.site.
2843 case $CONFIG_SITE in #((
2844 -*) ac_site_file1=./$CONFIG_SITE;;
2845 */*) ac_site_file1=$CONFIG_SITE;;
2846 *) ac_site_file1=./$CONFIG_SITE;;
2848 elif test "x$prefix" != xNONE; then
2849 ac_site_file1=$prefix/share/config.site
2850 ac_site_file2=$prefix/etc/config.site
2852 ac_site_file1=$ac_default_prefix/share/config.site
2853 ac_site_file2=$ac_default_prefix/etc/config.site
2855 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2857 test "x$ac_site_file" = xNONE && continue
2858 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2860 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2861 sed 's/^/| /' "$ac_site_file" >&5
2863 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2865 as_fn_error $? "failed to load site
script $ac_site_file
2866 See \
`config.log' for more details" "$LINENO" 5; }
2870 if test -r "$cache_file"; then
2871 # Some versions of bash will fail to source /dev/null (special files
2872 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2873 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2875 $as_echo "$as_me: loading cache $cache_file" >&6;}
2877 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2878 *) . "./$cache_file";;
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2883 $as_echo "$as_me: creating cache $cache_file" >&6;}
2887 as_fn_append ac_header_list " stdlib.h"
2888 as_fn_append ac_header_list " unistd.h"
2889 as_fn_append ac_header_list " sys/param.h"
2890 # Check that the precious variables saved in the cache have kept the same
2892 ac_cache_corrupted=false
2893 for ac_var in $ac_precious_vars; do
2894 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2895 eval ac_new_set=\$ac_env_${ac_var}_set
2896 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2897 eval ac_new_val=\$ac_env_${ac_var}_value
2898 case $ac_old_set,$ac_new_set in
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2901 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2902 ac_cache_corrupted=: ;;
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2905 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2906 ac_cache_corrupted=: ;;
2909 if test "x$ac_old_val" != "x$ac_new_val"; then
2910 # differences in whitespace do not lead to failure.
2911 ac_old_val_w=`echo x
$ac_old_val`
2912 ac_new_val_w=`echo x
$ac_new_val`
2913 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2915 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2916 ac_cache_corrupted=:
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2919 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2920 eval $ac_var=\$ac_old_val
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2923 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2925 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2928 # Pass precious variables to config.status.
2929 if test "$ac_new_set" = set; then
2931 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2932 *) ac_arg=$ac_var=$ac_new_val ;;
2934 case " $ac_configure_args " in
2935 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2936 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2940 if $ac_cache_corrupted; then
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2944 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2945 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2947 ## -------------------- ##
2948 ## Main body of script. ##
2949 ## -------------------- ##
2952 ac_cpp='$CPP $CPPFLAGS'
2953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2961 ac_config_headers="$ac_config_headers config.h:config.in"
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2965 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2966 # Check whether --enable-maintainer-mode was given.
2967 if test "${enable_maintainer_mode+set}" = set; then :
2968 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2970 USE_MAINTAINER_MODE=no
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2974 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2975 if test $USE_MAINTAINER_MODE = yes; then
2976 MAINTAINER_MODE_TRUE=
2977 MAINTAINER_MODE_FALSE='#'
2979 MAINTAINER_MODE_TRUE='#'
2980 MAINTAINER_MODE_FALSE=
2983 MAINT=$MAINTAINER_MODE_TRUE
2987 # Set the 'development' global.
2988 . $srcdir/../bfd/development.sh
2991 ac_cpp='$CPP $CPPFLAGS'
2992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2995 if test -n "$ac_tool_prefix"; then
2996 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2997 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999 $as_echo_n "checking for $ac_word... " >&6; }
3000 if ${ac_cv_prog_CC+:} false; then :
3001 $as_echo_n "(cached) " >&6
3003 if test -n "$CC"; then
3004 ac_cv_prog_CC="$CC" # Let the user override the test.
3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 test -z "$as_dir" && as_dir=.
3011 for ac_exec_ext in '' $ac_executable_extensions; do
3012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3013 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3024 if test -n "$CC"; then
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3026 $as_echo "$CC" >&6; }
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029 $as_echo "no" >&6; }
3034 if test -z "$ac_cv_prog_CC"; then
3036 # Extract the first word of "gcc", so it can be a program name with args.
3037 set dummy gcc; ac_word=$2
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039 $as_echo_n "checking for $ac_word... " >&6; }
3040 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3041 $as_echo_n "(cached) " >&6
3043 if test -n "$ac_ct_CC"; then
3044 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050 test -z "$as_dir" && as_dir=.
3051 for ac_exec_ext in '' $ac_executable_extensions; do
3052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3053 ac_cv_prog_ac_ct_CC="gcc"
3054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3063 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3064 if test -n "$ac_ct_CC"; then
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3066 $as_echo "$ac_ct_CC" >&6; }
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069 $as_echo "no" >&6; }
3072 if test "x$ac_ct_CC" = x; then
3075 case $cross_compiling:$ac_tool_warned in
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3079 ac_tool_warned=yes ;;
3087 if test -z "$CC"; then
3088 if test -n "$ac_tool_prefix"; then
3089 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3090 set dummy ${ac_tool_prefix}cc; ac_word=$2
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3092 $as_echo_n "checking for $ac_word... " >&6; }
3093 if ${ac_cv_prog_CC+:} false; then :
3094 $as_echo_n "(cached) " >&6
3096 if test -n "$CC"; then
3097 ac_cv_prog_CC="$CC" # Let the user override the test.
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103 test -z "$as_dir" && as_dir=.
3104 for ac_exec_ext in '' $ac_executable_extensions; do
3105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3106 ac_cv_prog_CC="${ac_tool_prefix}cc"
3107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3117 if test -n "$CC"; then
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3119 $as_echo "$CC" >&6; }
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122 $as_echo "no" >&6; }
3128 if test -z "$CC"; then
3129 # Extract the first word of "cc", so it can be a program name with args.
3130 set dummy cc; ac_word=$2
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3132 $as_echo_n "checking for $ac_word... " >&6; }
3133 if ${ac_cv_prog_CC+:} false; then :
3134 $as_echo_n "(cached) " >&6
3136 if test -n "$CC"; then
3137 ac_cv_prog_CC="$CC" # Let the user override the test.
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 test -z "$as_dir" && as_dir=.
3145 for ac_exec_ext in '' $ac_executable_extensions; do
3146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3147 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3148 ac_prog_rejected=yes
3152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 if test $ac_prog_rejected = yes; then
3160 # We found a bogon in the path, so make sure we never use it.
3161 set dummy $ac_cv_prog_CC
3163 if test $# != 0; then
3164 # We chose a different compiler from the bogus one.
3165 # However, it has the same basename, so the bogon will be chosen
3166 # first if we set CC to just the basename; use the full file name.
3168 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3174 if test -n "$CC"; then
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3176 $as_echo "$CC" >&6; }
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179 $as_echo "no" >&6; }
3184 if test -z "$CC"; then
3185 if test -n "$ac_tool_prefix"; then
3186 for ac_prog in cl.exe
3188 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3189 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3191 $as_echo_n "checking for $ac_word... " >&6; }
3192 if ${ac_cv_prog_CC+:} false; then :
3193 $as_echo_n "(cached) " >&6
3195 if test -n "$CC"; then
3196 ac_cv_prog_CC="$CC" # Let the user override the test.
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202 test -z "$as_dir" && as_dir=.
3203 for ac_exec_ext in '' $ac_executable_extensions; do
3204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3205 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3216 if test -n "$CC"; then
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3218 $as_echo "$CC" >&6; }
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3221 $as_echo "no" >&6; }
3225 test -n "$CC" && break
3228 if test -z "$CC"; then
3230 for ac_prog in cl.exe
3232 # Extract the first word of "$ac_prog", so it can be a program name with args.
3233 set dummy $ac_prog; ac_word=$2
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3235 $as_echo_n "checking for $ac_word... " >&6; }
3236 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3237 $as_echo_n "(cached) " >&6
3239 if test -n "$ac_ct_CC"; then
3240 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246 test -z "$as_dir" && as_dir=.
3247 for ac_exec_ext in '' $ac_executable_extensions; do
3248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3249 ac_cv_prog_ac_ct_CC="$ac_prog"
3250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3259 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3260 if test -n "$ac_ct_CC"; then
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3262 $as_echo "$ac_ct_CC" >&6; }
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265 $as_echo "no" >&6; }
3269 test -n "$ac_ct_CC" && break
3272 if test "x$ac_ct_CC" = x; then
3275 case $cross_compiling:$ac_tool_warned in
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3279 ac_tool_warned=yes ;;
3288 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3290 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3291 See \
`config.log' for more details" "$LINENO" 5; }
3293 # Provide some information about the compiler.
3294 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3297 for ac_option in --version -v -V -qversion; do
3298 { { ac_try="$ac_compiler $ac_option >&5"
3300 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3301 *) ac_try_echo
=$ac_try;;
3303 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3304 $as_echo "$ac_try_echo"; } >&5
3305 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3307 if test -s conftest.err
; then
3309 ... rest of stderr output deleted ...
3310 10q' conftest.err
>conftest.er1
3311 cat conftest.er1
>&5
3313 rm -f conftest.er1 conftest.err
3314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3315 test $ac_status = 0; }
3318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3319 /* end confdefs.h. */
3329 ac_clean_files_save
=$ac_clean_files
3330 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3331 # Try to create an executable without -o first, disregard a.out.
3332 # It will help us diagnose broken compilers, and finding out an intuition
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3335 $as_echo_n "checking whether the C compiler works... " >&6; }
3336 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3338 # The possible output files:
3339 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3342 for ac_file
in $ac_files
3345 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3346 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3351 if { { ac_try
="$ac_link_default"
3353 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3357 $as_echo "$ac_try_echo"; } >&5
3358 (eval "$ac_link_default") 2>&5
3360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3361 test $ac_status = 0; }; then :
3362 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3363 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3364 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3365 # so that the user can short-circuit this test for compilers unknown to
3367 for ac_file in $ac_files ''
3369 test -f "$ac_file" || continue
3371 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3374 # We found the default executable, but exeext='' is most
3378 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3380 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3382 # We set ac_cv_exeext here because the later test for it is not
3383 # safe: cross compilers may not add the suffix if given an `-o'
3384 # argument, so we may need to know it at that point already.
3385 # Even if this section looks crufty: it has the advantage of
3392 test "$ac_cv_exeext" = no && ac_cv_exeext=
3397 if test -z "$ac_file"; then :
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3399 $as_echo "no" >&6; }
3400 $as_echo "$as_me: failed program was:" >&5
3401 sed 's
/^
/|
/' conftest.$ac_ext >&5
3403 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3404 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3405 as_fn_error 77 "C compiler cannot create executables
3406 See \`config.log
' for more details" "$LINENO" 5; }
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3409 $as_echo "yes" >&6; }
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3412 $as_echo_n "checking for C compiler default output file name... " >&6; }
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3414 $as_echo "$ac_file" >&6; }
3415 ac_exeext=$ac_cv_exeext
3417 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3418 ac_clean_files=$ac_clean_files_save
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3420 $as_echo_n "checking for suffix of executables... " >&6; }
3421 if { { ac_try="$ac_link"
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427 $as_echo "$ac_try_echo"; } >&5
3428 (eval "$ac_link") 2>&5
3430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3431 test $ac_status = 0; }; then :
3432 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3433 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3434 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3436 for ac_file
in conftest.exe conftest conftest.
*; do
3437 test -f "$ac_file" ||
continue
3439 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3440 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3448 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3449 See \`config.log' for more details" "$LINENO" 5; }
3451 rm -f conftest conftest
$ac_cv_exeext
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3453 $as_echo "$ac_cv_exeext" >&6; }
3455 rm -f conftest.
$ac_ext
3456 EXEEXT
=$ac_cv_exeext
3458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3459 /* end confdefs.h. */
3464 FILE *f = fopen ("conftest.out", "w");
3465 return ferror (f) || fclose (f) != 0;
3471 ac_clean_files
="$ac_clean_files conftest.out"
3472 # Check that the compiler produces executables we can run. If not, either
3473 # the compiler is broken, or we cross compile.
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3475 $as_echo_n "checking whether we are cross compiling... " >&6; }
3476 if test "$cross_compiling" != yes; then
3477 { { ac_try
="$ac_link"
3479 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3483 $as_echo "$ac_try_echo"; } >&5
3484 (eval "$ac_link") 2>&5
3486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3487 test $ac_status = 0; }
3488 if { ac_try='./conftest$ac_cv_exeext'
3489 { { case "(($ac_try" in
3490 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3491 *) ac_try_echo
=$ac_try;;
3493 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3494 $as_echo "$ac_try_echo"; } >&5
3495 (eval "$ac_try") 2>&5
3497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3498 test $ac_status = 0; }; }; then
3501 if test "$cross_compiling" = maybe
; then
3504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3506 as_fn_error $?
"cannot run C compiled programs.
3507 If you meant to cross compile, use \`--host'.
3508 See \`config.log' for more details" "$LINENO" 5; }
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3513 $as_echo "$cross_compiling" >&6; }
3515 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3516 ac_clean_files
=$ac_clean_files_save
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3518 $as_echo_n "checking for suffix of object files... " >&6; }
3519 if ${ac_cv_objext+:} false
; then :
3520 $as_echo_n "(cached) " >&6
3522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3523 /* end confdefs.h. */
3533 rm -f conftest.o conftest.obj
3534 if { { ac_try
="$ac_compile"
3536 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3540 $as_echo "$ac_try_echo"; } >&5
3541 (eval "$ac_compile") 2>&5
3543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3544 test $ac_status = 0; }; then :
3545 for ac_file in conftest.o conftest.obj conftest.*; do
3546 test -f "$ac_file" || continue;
3548 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3549 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3554 $as_echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3559 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3560 See \
`config.log' for more details" "$LINENO" 5; }
3562 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3565 $as_echo "$ac_cv_objext" >&6; }
3566 OBJEXT=$ac_cv_objext
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3569 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3570 if ${ac_cv_c_compiler_gnu+:} false; then :
3571 $as_echo_n "(cached) " >&6
3573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574 /* end confdefs.h. */
3587 if ac_fn_c_try_compile "$LINENO"; then :
3592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3593 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3597 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3598 if test $ac_compiler_gnu = yes; then
3603 ac_test_CFLAGS=${CFLAGS+set}
3604 ac_save_CFLAGS=$CFLAGS
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3606 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3607 if ${ac_cv_prog_cc_g+:} false; then :
3608 $as_echo_n "(cached) " >&6
3610 ac_save_c_werror_flag=$ac_c_werror_flag
3611 ac_c_werror_flag=yes
3614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615 /* end confdefs.h. */
3625 if ac_fn_c_try_compile "$LINENO"; then :
3629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3630 /* end confdefs.h. */
3640 if ac_fn_c_try_compile "$LINENO"; then :
3643 ac_c_werror_flag=$ac_save_c_werror_flag
3645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646 /* end confdefs.h. */
3656 if ac_fn_c_try_compile "$LINENO"; then :
3659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3664 ac_c_werror_flag=$ac_save_c_werror_flag
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3667 $as_echo "$ac_cv_prog_cc_g" >&6; }
3668 if test "$ac_test_CFLAGS" = set; then
3669 CFLAGS=$ac_save_CFLAGS
3670 elif test $ac_cv_prog_cc_g = yes; then
3671 if test "$GCC" = yes; then
3677 if test "$GCC" = yes; then
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3684 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3685 if ${ac_cv_prog_cc_c89+:} false; then :
3686 $as_echo_n "(cached) " >&6
3688 ac_cv_prog_cc_c89=no
3690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3691 /* end confdefs.h. */
3695 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3696 struct buf { int x; };
3697 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3698 static char *e (p, i)
3704 static char *f (char * (*g) (char **, int), char **p, ...)
3709 s = g (p, va_arg (v,int));
3714 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3715 function prototypes and stuff, but not '\xHH' hex character constants.
3716 These don't provoke an error unfortunately, instead are silently treated
3717 as 'x'. The following induces an error, until -std is added to get
3718 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3719 array size at least. It's necessary to write '\x00'==0 to get something
3720 that's true only with -std. */
3721 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3723 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3724 inside strings and character constants. */
3726 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3728 int test (int i, double x);
3729 struct s1 {int (*f) (int a);};
3730 struct s2 {int (*f) (double a);};
3731 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3737 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3742 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3743 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3745 CC="$ac_save_CC $ac_arg"
3746 if ac_fn_c_try_compile "$LINENO"; then :
3747 ac_cv_prog_cc_c89=$ac_arg
3749 rm -f core conftest.err conftest.$ac_objext
3750 test "x$ac_cv_prog_cc_c89" != "xno" && break
3752 rm -f conftest.$ac_ext
3757 case "x$ac_cv_prog_cc_c89" in
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3760 $as_echo "none needed" >&6; } ;;
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3763 $as_echo "unsupported" >&6; } ;;
3765 CC="$CC $ac_cv_prog_cc_c89"
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3767 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3769 if test "x$ac_cv_prog_cc_c89" != xno; then :
3774 ac_cpp='$CPP $CPPFLAGS'
3775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3780 ac_cpp='$CXXCPP $CPPFLAGS'
3781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3784 if test -z "$CXX"; then
3785 if test -n "$CCC"; then
3788 if test -n "$ac_tool_prefix"; then
3789 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3791 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3792 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3794 $as_echo_n "checking for $ac_word... " >&6; }
3795 if ${ac_cv_prog_CXX+:} false; then :
3796 $as_echo_n "(cached) " >&6
3798 if test -n "$CXX"; then
3799 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 test -z "$as_dir" && as_dir=.
3806 for ac_exec_ext in '' $ac_executable_extensions; do
3807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3808 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3819 if test -n "$CXX"; then
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3821 $as_echo "$CXX" >&6; }
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3824 $as_echo "no" >&6; }
3828 test -n "$CXX" && break
3831 if test -z "$CXX"; then
3833 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3835 # Extract the first word of "$ac_prog", so it can be a program name with args.
3836 set dummy $ac_prog; ac_word=$2
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3838 $as_echo_n "checking for $ac_word... " >&6; }
3839 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3840 $as_echo_n "(cached) " >&6
3842 if test -n "$ac_ct_CXX"; then
3843 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849 test -z "$as_dir" && as_dir=.
3850 for ac_exec_ext in '' $ac_executable_extensions; do
3851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3852 ac_cv_prog_ac_ct_CXX="$ac_prog"
3853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3862 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3863 if test -n "$ac_ct_CXX"; then
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3865 $as_echo "$ac_ct_CXX" >&6; }
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3868 $as_echo "no" >&6; }
3872 test -n "$ac_ct_CXX" && break
3875 if test "x$ac_ct_CXX" = x; then
3878 case $cross_compiling:$ac_tool_warned in
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3881 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3882 ac_tool_warned=yes ;;
3890 # Provide some information about the compiler.
3891 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3894 for ac_option in --version -v -V -qversion; do
3895 { { ac_try="$ac_compiler $ac_option >&5"
3897 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3898 *) ac_try_echo
=$ac_try;;
3900 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3901 $as_echo "$ac_try_echo"; } >&5
3902 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3904 if test -s conftest.err
; then
3906 ... rest of stderr output deleted ...
3907 10q' conftest.err
>conftest.er1
3908 cat conftest.er1
>&5
3910 rm -f conftest.er1 conftest.err
3911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3912 test $ac_status = 0; }
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3916 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3917 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3918 $as_echo_n "(cached) " >&6
3920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3921 /* end confdefs.h. */
3934 if ac_fn_cxx_try_compile
"$LINENO"; then :
3939 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3940 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3944 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3945 if test $ac_compiler_gnu = yes; then
3950 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3951 ac_save_CXXFLAGS
=$CXXFLAGS
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3953 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3954 if ${ac_cv_prog_cxx_g+:} false
; then :
3955 $as_echo_n "(cached) " >&6
3957 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3958 ac_cxx_werror_flag
=yes
3961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3962 /* end confdefs.h. */
3972 if ac_fn_cxx_try_compile
"$LINENO"; then :
3973 ac_cv_prog_cxx_g
=yes
3976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3977 /* end confdefs.h. */
3987 if ac_fn_cxx_try_compile
"$LINENO"; then :
3990 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3993 /* end confdefs.h. */
4003 if ac_fn_cxx_try_compile
"$LINENO"; then :
4004 ac_cv_prog_cxx_g
=yes
4006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4008 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4010 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4011 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4014 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4015 if test "$ac_test_CXXFLAGS" = set; then
4016 CXXFLAGS
=$ac_save_CXXFLAGS
4017 elif test $ac_cv_prog_cxx_g = yes; then
4018 if test "$GXX" = yes; then
4024 if test "$GXX" = yes; then
4031 ac_cpp
='$CPP $CPPFLAGS'
4032 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4033 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4034 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4039 ac_cpp
='$CPP $CPPFLAGS'
4040 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4041 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4042 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4044 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4045 # On Suns, sometimes $CPP names a directory.
4046 if test -n "$CPP" && test -d "$CPP"; then
4049 if test -z "$CPP"; then
4050 if ${ac_cv_prog_CPP+:} false
; then :
4051 $as_echo_n "(cached) " >&6
4053 # Double quotes because CPP needs to be expanded
4054 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4057 for ac_c_preproc_warn_flag
in '' yes
4059 # Use a header file that comes with gcc, so configuring glibc
4060 # with a fresh cross-compiler works.
4061 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4062 # <limits.h> exists even on freestanding compilers.
4063 # On the NeXT, cc -E runs the code through the compiler's parser,
4064 # not just through cpp. "Syntax error" is here to catch this case.
4065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4066 /* end confdefs.h. */
4068 # include <limits.h>
4070 # include <assert.h>
4074 if ac_fn_c_try_cpp
"$LINENO"; then :
4077 # Broken: fails on valid input.
4080 rm -f conftest.err conftest.i conftest.
$ac_ext
4082 # OK, works on sane cases. Now check whether nonexistent headers
4083 # can be detected and how.
4084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4086 #include <ac_nonexistent.h>
4088 if ac_fn_c_try_cpp
"$LINENO"; then :
4089 # Broken: success on invalid input.
4092 # Passes both tests.
4096 rm -f conftest.err conftest.i conftest.
$ac_ext
4099 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4100 rm -f conftest.i conftest.err conftest.
$ac_ext
4101 if $ac_preproc_ok; then :
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4114 $as_echo "$CPP" >&6; }
4116 for ac_c_preproc_warn_flag
in '' yes
4118 # Use a header file that comes with gcc, so configuring glibc
4119 # with a fresh cross-compiler works.
4120 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4121 # <limits.h> exists even on freestanding compilers.
4122 # On the NeXT, cc -E runs the code through the compiler's parser,
4123 # not just through cpp. "Syntax error" is here to catch this case.
4124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4125 /* end confdefs.h. */
4127 # include <limits.h>
4129 # include <assert.h>
4133 if ac_fn_c_try_cpp
"$LINENO"; then :
4136 # Broken: fails on valid input.
4139 rm -f conftest.err conftest.i conftest.
$ac_ext
4141 # OK, works on sane cases. Now check whether nonexistent headers
4142 # can be detected and how.
4143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4144 /* end confdefs.h. */
4145 #include <ac_nonexistent.h>
4147 if ac_fn_c_try_cpp
"$LINENO"; then :
4148 # Broken: success on invalid input.
4151 # Passes both tests.
4155 rm -f conftest.err conftest.i conftest.
$ac_ext
4158 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4159 rm -f conftest.i conftest.err conftest.
$ac_ext
4160 if $ac_preproc_ok; then :
4163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4165 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4166 See \`config.log' for more details" "$LINENO" 5; }
4170 ac_cpp
='$CPP $CPPFLAGS'
4171 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4172 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4173 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4177 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4178 if ${ac_cv_path_GREP+:} false
; then :
4179 $as_echo_n "(cached) " >&6
4181 if test -z "$GREP"; then
4182 ac_path_GREP_found
=false
4183 # Loop through the user's path and test for each of PROGNAME-LIST
4184 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4185 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4188 test -z "$as_dir" && as_dir
=.
4189 for ac_prog
in grep ggrep
; do
4190 for ac_exec_ext
in '' $ac_executable_extensions; do
4191 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4192 as_fn_executable_p
"$ac_path_GREP" ||
continue
4193 # Check for GNU ac_path_GREP and select it if it is found.
4194 # Check for GNU $ac_path_GREP
4195 case `"$ac_path_GREP" --version 2>&1` in
4197 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4200 $as_echo_n 0123456789 >"conftest.in"
4203 cat "conftest.in" "conftest.in" >"conftest.tmp"
4204 mv "conftest.tmp" "conftest.in"
4205 cp "conftest.in" "conftest.nl"
4206 $as_echo 'GREP' >> "conftest.nl"
4207 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4208 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4209 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4210 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4211 # Best one so far, save it but keep looking for a better one
4212 ac_cv_path_GREP
="$ac_path_GREP"
4213 ac_path_GREP_max
=$ac_count
4215 # 10*(2^10) chars as input seems more than enough
4216 test $ac_count -gt 10 && break
4218 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4221 $ac_path_GREP_found && break 3
4226 if test -z "$ac_cv_path_GREP"; then
4227 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4230 ac_cv_path_GREP
=$GREP
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4235 $as_echo "$ac_cv_path_GREP" >&6; }
4236 GREP
="$ac_cv_path_GREP"
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4240 $as_echo_n "checking for egrep... " >&6; }
4241 if ${ac_cv_path_EGREP+:} false
; then :
4242 $as_echo_n "(cached) " >&6
4244 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4245 then ac_cv_path_EGREP
="$GREP -E"
4247 if test -z "$EGREP"; then
4248 ac_path_EGREP_found
=false
4249 # Loop through the user's path and test for each of PROGNAME-LIST
4250 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4251 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4254 test -z "$as_dir" && as_dir
=.
4255 for ac_prog
in egrep; do
4256 for ac_exec_ext
in '' $ac_executable_extensions; do
4257 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4258 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4259 # Check for GNU ac_path_EGREP and select it if it is found.
4260 # Check for GNU $ac_path_EGREP
4261 case `"$ac_path_EGREP" --version 2>&1` in
4263 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4266 $as_echo_n 0123456789 >"conftest.in"
4269 cat "conftest.in" "conftest.in" >"conftest.tmp"
4270 mv "conftest.tmp" "conftest.in"
4271 cp "conftest.in" "conftest.nl"
4272 $as_echo 'EGREP' >> "conftest.nl"
4273 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4274 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4275 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4276 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4277 # Best one so far, save it but keep looking for a better one
4278 ac_cv_path_EGREP
="$ac_path_EGREP"
4279 ac_path_EGREP_max
=$ac_count
4281 # 10*(2^10) chars as input seems more than enough
4282 test $ac_count -gt 10 && break
4284 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4287 $ac_path_EGREP_found && break 3
4292 if test -z "$ac_cv_path_EGREP"; then
4293 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4296 ac_cv_path_EGREP
=$EGREP
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4302 $as_echo "$ac_cv_path_EGREP" >&6; }
4303 EGREP
="$ac_cv_path_EGREP"
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4307 $as_echo_n "checking for ANSI C header files... " >&6; }
4308 if ${ac_cv_header_stdc+:} false
; then :
4309 $as_echo_n "(cached) " >&6
4311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4312 /* end confdefs.h. */
4326 if ac_fn_c_try_compile
"$LINENO"; then :
4327 ac_cv_header_stdc
=yes
4329 ac_cv_header_stdc
=no
4331 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4333 if test $ac_cv_header_stdc = yes; then
4334 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4336 /* end confdefs.h. */
4340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4341 $EGREP "memchr" >/dev
/null
2>&1; then :
4344 ac_cv_header_stdc
=no
4350 if test $ac_cv_header_stdc = yes; then
4351 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4353 /* end confdefs.h. */
4357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4358 $EGREP "free" >/dev
/null
2>&1; then :
4361 ac_cv_header_stdc
=no
4367 if test $ac_cv_header_stdc = yes; then
4368 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4369 if test "$cross_compiling" = yes; then :
4372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4373 /* end confdefs.h. */
4376 #if ((' ' & 0x0FF) == 0x020)
4377 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4378 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4380 # define ISLOWER(c) \
4381 (('a' <= (c) && (c) <= 'i') \
4382 || ('j' <= (c) && (c) <= 'r') \
4383 || ('s' <= (c) && (c) <= 'z'))
4384 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4387 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4392 for (i = 0; i < 256; i++)
4393 if (XOR (islower (i), ISLOWER (i))
4394 || toupper (i) != TOUPPER (i))
4399 if ac_fn_c_try_run
"$LINENO"; then :
4402 ac_cv_header_stdc
=no
4404 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4405 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4411 $as_echo "$ac_cv_header_stdc" >&6; }
4412 if test $ac_cv_header_stdc = yes; then
4414 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4418 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4419 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4420 inttypes.h stdint.h unistd.h
4422 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4423 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4425 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4426 cat >>confdefs.h
<<_ACEOF
4427 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4436 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4437 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4444 if test "$MINIX" = yes; then
4446 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4449 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4452 $as_echo "#define _MINIX 1" >>confdefs.h
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4458 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4459 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4460 $as_echo_n "(cached) " >&6
4462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4463 /* end confdefs.h. */
4465 # define __EXTENSIONS__ 1
4466 $ac_includes_default
4475 if ac_fn_c_try_compile
"$LINENO"; then :
4476 ac_cv_safe_to_define___extensions__
=yes
4478 ac_cv_safe_to_define___extensions__
=no
4480 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4483 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4484 test $ac_cv_safe_to_define___extensions__ = yes &&
4485 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4487 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4489 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4491 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4493 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4497 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4498 if test -f "$ac_dir/install-sh"; then
4500 ac_install_sh
="$ac_aux_dir/install-sh -c"
4502 elif test -f "$ac_dir/install.sh"; then
4504 ac_install_sh
="$ac_aux_dir/install.sh -c"
4506 elif test -f "$ac_dir/shtool"; then
4508 ac_install_sh
="$ac_aux_dir/shtool install -c"
4512 if test -z "$ac_aux_dir"; then
4513 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4516 # These three variables are undocumented and unsupported,
4517 # and are intended to be withdrawn in a future Autoconf release.
4518 # They can cause serious problems if a builder's source tree is in a directory
4519 # whose full name contains unusual characters.
4520 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4521 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4522 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4525 # Make sure we can run config.sub.
4526 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4527 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4530 $as_echo_n "checking build system type... " >&6; }
4531 if ${ac_cv_build+:} false
; then :
4532 $as_echo_n "(cached) " >&6
4534 ac_build_alias
=$build_alias
4535 test "x$ac_build_alias" = x
&&
4536 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4537 test "x$ac_build_alias" = x
&&
4538 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4539 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4540 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4544 $as_echo "$ac_cv_build" >&6; }
4545 case $ac_cv_build in
4547 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4550 ac_save_IFS
=$IFS; IFS
='-'
4556 # Remember, the first character of IFS is used to create $*,
4557 # except with old shells:
4560 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4564 $as_echo_n "checking host system type... " >&6; }
4565 if ${ac_cv_host+:} false
; then :
4566 $as_echo_n "(cached) " >&6
4568 if test "x$host_alias" = x
; then
4569 ac_cv_host
=$ac_cv_build
4571 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4572 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4577 $as_echo "$ac_cv_host" >&6; }
4580 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4583 ac_save_IFS
=$IFS; IFS
='-'
4589 # Remember, the first character of IFS is used to create $*,
4590 # except with old shells:
4593 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4597 $as_echo_n "checking target system type... " >&6; }
4598 if ${ac_cv_target+:} false
; then :
4599 $as_echo_n "(cached) " >&6
4601 if test "x$target_alias" = x
; then
4602 ac_cv_target
=$ac_cv_host
4604 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4605 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4610 $as_echo "$ac_cv_target" >&6; }
4611 case $ac_cv_target in
4613 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4615 target
=$ac_cv_target
4616 ac_save_IFS
=$IFS; IFS
='-'
4622 # Remember, the first character of IFS is used to create $*,
4623 # except with old shells:
4626 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4629 # The aliases save the names the user supplied, while $host etc.
4630 # will get canonicalized.
4631 test -n "$target_alias" &&
4632 test "$program_prefix$program_suffix$program_transform_name" = \
4634 program_prefix
=${target_alias}-
4636 # The tests for host and target for $enable_largefile require
4641 # As the $enable_largefile decision depends on --enable-plugins we must set it
4642 # even in directories otherwise not depending on the $plugins option.
4646 for ac_header
in dlfcn.h
4648 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4650 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
4651 cat >>confdefs.h
<<_ACEOF
4652 #define HAVE_DLFCN_H 1
4659 for ac_header
in windows.h
4661 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4663 if test "x$ac_cv_header_windows_h" = xyes
; then :
4664 cat >>confdefs.h
<<_ACEOF
4665 #define HAVE_WINDOWS_H 1
4673 # Check whether --enable-plugins was given.
4674 if test "${enable_plugins+set}" = set; then :
4675 enableval
=$enable_plugins; case "${enableval}" in
4678 if test "$maybe_plugins" != "yes" ; then
4679 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4683 plugins
=$maybe_plugins
4687 if test "$plugins" = "yes"; then
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4689 $as_echo_n "checking for library containing dlsym... " >&6; }
4690 if ${ac_cv_search_dlsym+:} false
; then :
4691 $as_echo_n "(cached) " >&6
4693 ac_func_search_save_LIBS
=$LIBS
4694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4695 /* end confdefs.h. */
4697 /* Override any GCC internal prototype to avoid an error.
4698 Use char because int might match the return type of a GCC
4699 builtin and then its argument prototype would still apply. */
4712 for ac_lib
in '' dl
; do
4713 if test -z "$ac_lib"; then
4714 ac_res
="none required"
4717 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4719 if ac_fn_c_try_link
"$LINENO"; then :
4720 ac_cv_search_dlsym
=$ac_res
4722 rm -f core conftest.err conftest.
$ac_objext \
4724 if ${ac_cv_search_dlsym+:} false
; then :
4728 if ${ac_cv_search_dlsym+:} false
; then :
4731 ac_cv_search_dlsym
=no
4734 LIBS
=$ac_func_search_save_LIBS
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4737 $as_echo "$ac_cv_search_dlsym" >&6; }
4738 ac_res
=$ac_cv_search_dlsym
4739 if test "$ac_res" != no
; then :
4740 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4748 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4749 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4750 # are mutually exclusive; and without procfs support, the bfd/ elf module
4751 # cannot provide certain routines such as elfcore_write_prpsinfo
4752 # or elfcore_write_prstatus. So unless the user explicitly requested
4753 # large-file support through the --enable-largefile switch, disable
4754 # large-file support in favor of procfs support.
4755 test "${target}" = "${host}" -a "x$plugins" = xno \
4756 && : ${enable_largefile="no"}
4760 # Check whether --enable-largefile was given.
4761 if test "${enable_largefile+set}" = set; then :
4762 enableval
=$enable_largefile;
4765 if test "$enable_largefile" != no
; then
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4768 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4769 if ${ac_cv_sys_largefile_CC+:} false
; then :
4770 $as_echo_n "(cached) " >&6
4772 ac_cv_sys_largefile_CC
=no
4773 if test "$GCC" != yes; then
4776 # IRIX 6.2 and later do not support large files by default,
4777 # so use the C compiler's -n32 option if that helps.
4778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4779 /* end confdefs.h. */
4780 #include <sys/types.h>
4781 /* Check that off_t can represent 2**63 - 1 correctly.
4782 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4783 since some C++ compilers masquerading as C compilers
4784 incorrectly reject 9223372036854775807. */
4785 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4786 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4787 && LARGE_OFF_T % 2147483647 == 1)
4797 if ac_fn_c_try_compile
"$LINENO"; then :
4800 rm -f core conftest.err conftest.
$ac_objext
4802 if ac_fn_c_try_compile
"$LINENO"; then :
4803 ac_cv_sys_largefile_CC
=' -n32'; break
4805 rm -f core conftest.err conftest.
$ac_objext
4809 rm -f conftest.
$ac_ext
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4813 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4814 if test "$ac_cv_sys_largefile_CC" != no
; then
4815 CC
=$CC$ac_cv_sys_largefile_CC
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4819 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4820 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4821 $as_echo_n "(cached) " >&6
4824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4825 /* end confdefs.h. */
4826 #include <sys/types.h>
4827 /* Check that off_t can represent 2**63 - 1 correctly.
4828 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4829 since some C++ compilers masquerading as C compilers
4830 incorrectly reject 9223372036854775807. */
4831 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4832 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4833 && LARGE_OFF_T % 2147483647 == 1)
4843 if ac_fn_c_try_compile
"$LINENO"; then :
4844 ac_cv_sys_file_offset_bits
=no
; break
4846 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4848 /* end confdefs.h. */
4849 #define _FILE_OFFSET_BITS 64
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 :
4868 ac_cv_sys_file_offset_bits
=64; break
4870 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4871 ac_cv_sys_file_offset_bits
=unknown
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4876 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4877 case $ac_cv_sys_file_offset_bits in #(
4880 cat >>confdefs.h
<<_ACEOF
4881 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4886 if test $ac_cv_sys_file_offset_bits = unknown
; then
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4888 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4889 if ${ac_cv_sys_large_files+:} false
; then :
4890 $as_echo_n "(cached) " >&6
4893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4894 /* end confdefs.h. */
4895 #include <sys/types.h>
4896 /* Check that off_t can represent 2**63 - 1 correctly.
4897 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4898 since some C++ compilers masquerading as C compilers
4899 incorrectly reject 9223372036854775807. */
4900 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4901 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4902 && LARGE_OFF_T % 2147483647 == 1)
4912 if ac_fn_c_try_compile
"$LINENO"; then :
4913 ac_cv_sys_large_files
=no
; break
4915 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4917 /* end confdefs.h. */
4918 #define _LARGE_FILES 1
4919 #include <sys/types.h>
4920 /* Check that off_t can represent 2**63 - 1 correctly.
4921 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4922 since some C++ compilers masquerading as C compilers
4923 incorrectly reject 9223372036854775807. */
4924 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4925 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4926 && LARGE_OFF_T % 2147483647 == 1)
4936 if ac_fn_c_try_compile
"$LINENO"; then :
4937 ac_cv_sys_large_files
=1; break
4939 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4940 ac_cv_sys_large_files
=unknown
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4945 $as_echo "$ac_cv_sys_large_files" >&6; }
4946 case $ac_cv_sys_large_files in #(
4949 cat >>confdefs.h
<<_ACEOF
4950 #define _LARGE_FILES $ac_cv_sys_large_files
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4965 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4966 if ${am_cv_prog_cc_stdc+:} false
; then :
4967 $as_echo_n "(cached) " >&6
4969 am_cv_prog_cc_stdc
=no
4971 # Don't try gcc -ansi; that turns off useful extensions and
4972 # breaks some systems' header files.
4973 # AIX -qlanglvl=ansi
4974 # Ultrix and OSF/1 -std1
4975 # HP-UX 10.20 and later -Ae
4976 # HP-UX older versions -Aa -D_HPUX_SOURCE
4977 # SVR4 -Xc -D__EXTENSIONS__
4978 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4980 CC
="$ac_save_CC $ac_arg"
4981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4982 /* end confdefs.h. */
4985 #include <sys/types.h>
4986 #include <sys/stat.h>
4987 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4988 struct buf { int x; };
4989 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4990 static char *e (p, i)
4996 static char *f (char * (*g) (char **, int), char **p, ...)
5001 s = g (p, va_arg (v,int));
5005 int test (int i, double x);
5006 struct s1 {int (*f) (int a);};
5007 struct s2 {int (*f) (double a);};
5008 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5016 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5022 if ac_fn_c_try_compile
"$LINENO"; then :
5023 am_cv_prog_cc_stdc
="$ac_arg"; break
5025 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5031 if test -z "$am_cv_prog_cc_stdc"; then
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5033 $as_echo "none needed" >&6; }
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
5036 $as_echo "$am_cv_prog_cc_stdc" >&6; }
5038 case "x$am_cv_prog_cc_stdc" in
5040 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
5043 # Expand $ac_aux_dir to an absolute path.
5044 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
5046 if test x
"${install_sh+set}" != xset
; then
5049 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
5051 install_sh
="\${SHELL} $am_aux_dir/install-sh"
5055 # Installed binaries are usually stripped using 'strip' when the user
5056 # run "make install-strip". However 'strip' might not be the right
5057 # tool to use in cross-compilation environments, therefore Automake
5058 # will honor the 'STRIP' environment variable to overrule this program.
5059 if test "$cross_compiling" != no
; then
5060 if test -n "$ac_tool_prefix"; then
5061 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5062 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5064 $as_echo_n "checking for $ac_word... " >&6; }
5065 if ${ac_cv_prog_STRIP+:} false
; then :
5066 $as_echo_n "(cached) " >&6
5068 if test -n "$STRIP"; then
5069 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5071 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5075 test -z "$as_dir" && as_dir
=.
5076 for ac_exec_ext
in '' $ac_executable_extensions; do
5077 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5078 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5088 STRIP
=$ac_cv_prog_STRIP
5089 if test -n "$STRIP"; then
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5091 $as_echo "$STRIP" >&6; }
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 $as_echo "no" >&6; }
5099 if test -z "$ac_cv_prog_STRIP"; then
5101 # Extract the first word of "strip", so it can be a program name with args.
5102 set dummy strip
; ac_word
=$2
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5104 $as_echo_n "checking for $ac_word... " >&6; }
5105 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
5106 $as_echo_n "(cached) " >&6
5108 if test -n "$ac_ct_STRIP"; then
5109 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5111 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5115 test -z "$as_dir" && as_dir
=.
5116 for ac_exec_ext
in '' $ac_executable_extensions; do
5117 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5118 ac_cv_prog_ac_ct_STRIP
="strip"
5119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5128 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5129 if test -n "$ac_ct_STRIP"; then
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5131 $as_echo "$ac_ct_STRIP" >&6; }
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5134 $as_echo "no" >&6; }
5137 if test "x$ac_ct_STRIP" = x
; then
5140 case $cross_compiling:$ac_tool_warned in
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5144 ac_tool_warned
=yes ;;
5149 STRIP
="$ac_cv_prog_STRIP"
5153 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
5157 for ac_dir
in ..
"$srcdir"/..
; do
5158 if test -f "$ac_dir/install-sh"; then
5160 ac_install_sh
="$ac_aux_dir/install-sh -c"
5162 elif test -f "$ac_dir/install.sh"; then
5164 ac_install_sh
="$ac_aux_dir/install.sh -c"
5166 elif test -f "$ac_dir/shtool"; then
5168 ac_install_sh
="$ac_aux_dir/shtool install -c"
5172 if test -z "$ac_aux_dir"; then
5173 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
5176 # These three variables are undocumented and unsupported,
5177 # and are intended to be withdrawn in a future Autoconf release.
5178 # They can cause serious problems if a builder's source tree is in a directory
5179 # whose full name contains unusual characters.
5180 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5181 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5182 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5186 test "$program_prefix" != NONE
&&
5187 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
5188 # Use a double $ so make ignores it.
5189 test "$program_suffix" != NONE
&&
5190 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
5191 # Double any \ or $.
5192 # By default was `s,x,x', remove it if useless.
5193 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
5194 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
5197 # We require a C++11 compiler. Check if one is available, and if
5198 # necessary, set CXX_DIALECT to some -std=xxx switch.
5200 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5202 ac_cpp
='$CXXCPP $CPPFLAGS'
5203 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5204 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5205 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5209 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5210 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5211 $as_echo_n "(cached) " >&6
5213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5214 /* end confdefs.h. */
5217 // If the compiler admits that it is not ready for C++11, why torture it?
5218 // Hopefully, this will speed up the test.
5222 #error "This is not a C++ compiler"
5224 #elif __cplusplus < 201103L
5226 #error "This is not a C++11 compiler"
5233 namespace test_static_assert
5236 template <typename T>
5239 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5244 namespace test_final_override
5252 struct Derived : public Base
5254 virtual void f() override {}
5259 namespace test_double_right_angle_brackets
5262 template < typename T >
5265 typedef check<void> single_type;
5266 typedef check<check<void>> double_type;
5267 typedef check<check<check<void>>> triple_type;
5268 typedef check<check<check<check<void>>>> quadruple_type;
5272 namespace test_decltype
5285 namespace test_type_deduction
5288 template < typename T1, typename T2 >
5291 static const bool value = false;
5294 template < typename T >
5295 struct is_same<T, T>
5297 static const bool value = true;
5300 template < typename T1, typename T2 >
5302 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5308 test(const int c, volatile int v)
5310 static_assert(is_same<int, decltype(0)>::value == true, "");
5311 static_assert(is_same<int, decltype(c)>::value == false, "");
5312 static_assert(is_same<int, decltype(v)>::value == false, "");
5315 auto sumi = ac + av + 'x';
5316 auto sumf = ac + av + 1.0;
5317 static_assert(is_same<int, decltype(ac)>::value == true, "");
5318 static_assert(is_same<int, decltype(av)>::value == true, "");
5319 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5320 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5321 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5322 return (sumf > 0.0) ? sumi : add(c, v);
5327 namespace test_noexcept
5330 int f() { return 0; }
5331 int g() noexcept { return 0; }
5333 static_assert(noexcept(f()) == false, "");
5334 static_assert(noexcept(g()) == true, "");
5338 namespace test_constexpr
5341 template < typename CharT >
5342 unsigned long constexpr
5343 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5345 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5348 template < typename CharT >
5349 unsigned long constexpr
5350 strlen_c(const CharT *const s) noexcept
5352 return strlen_c_r(s, 0UL);
5355 static_assert(strlen_c("") == 0UL, "");
5356 static_assert(strlen_c("1") == 1UL, "");
5357 static_assert(strlen_c("example") == 7UL, "");
5358 static_assert(strlen_c("another\0example") == 7UL, "");
5362 namespace test_rvalue_references
5368 static constexpr int value = N;
5371 answer<1> f(int&) { return answer<1>(); }
5372 answer<2> f(const int&) { return answer<2>(); }
5373 answer<3> f(int&&) { return answer<3>(); }
5380 static_assert(decltype(f(i))::value == 1, "");
5381 static_assert(decltype(f(c))::value == 2, "");
5382 static_assert(decltype(f(0))::value == 3, "");
5387 namespace test_uniform_initialization
5392 static const int zero {};
5393 static const int one {1};
5396 static_assert(test::zero == 0, "");
5397 static_assert(test::one == 1, "");
5401 namespace test_lambdas
5407 auto lambda1 = [](){};
5408 auto lambda2 = lambda1;
5416 auto a = [](int i, int j){ return i + j; }(1, 2);
5417 auto b = []() -> int { return '0'; }();
5418 auto c = [=](){ return a + b; }();
5419 auto d = [&](){ return c; }();
5420 auto e = [a, &b](int x) mutable {
5421 const auto identity = [](int y){ return y; };
5422 for (auto i = 0; i < a; ++i)
5424 return x + identity(a + b);
5426 return a + b + c + d + e;
5432 const auto nullary = [](){ return 0; };
5433 const auto unary = [](int x){ return x; };
5434 using nullary_t = decltype(nullary);
5435 using unary_t = decltype(unary);
5436 const auto higher1st = [](nullary_t f){ return f(); };
5437 const auto higher2nd = [unary](nullary_t f1){
5438 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5440 return higher1st(nullary) + higher2nd(nullary)(unary);
5445 namespace test_variadic_templates
5451 template <int N0, int... N1toN>
5452 struct sum<N0, N1toN...>
5454 static constexpr auto value = N0 + sum<N1toN...>::value;
5460 static constexpr auto value = 0;
5463 static_assert(sum<>::value == 0, "");
5464 static_assert(sum<1>::value == 1, "");
5465 static_assert(sum<23>::value == 23, "");
5466 static_assert(sum<1, 2>::value == 3, "");
5467 static_assert(sum<5, 5, 11>::value == 21, "");
5468 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5472 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5473 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5475 namespace test_template_alias_sfinae
5480 template<typename T>
5481 using member = typename T::member_type;
5483 template<typename T>
5486 template<typename T>
5487 void func(member<T>*) {}
5491 void test() { func<foo>(0); }
5495 } // namespace cxx11
5497 #endif // __cplusplus >= 201103L
5502 if ac_fn_cxx_try_compile
"$LINENO"; then :
5503 ax_cv_cxx_compile_cxx11
=yes
5505 ax_cv_cxx_compile_cxx11
=no
5507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5510 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5511 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
5515 if test x
$ac_success = xno
; then
5516 for alternative
in ${ax_cxx_compile_alternatives}; do
5517 switch
="-std=gnu++${alternative}"
5518 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5520 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5521 if eval \
${$cachevar+:} false
; then :
5522 $as_echo_n "(cached) " >&6
5526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5527 /* end confdefs.h. */
5530 // If the compiler admits that it is not ready for C++11, why torture it?
5531 // Hopefully, this will speed up the test.
5535 #error "This is not a C++ compiler"
5537 #elif __cplusplus < 201103L
5539 #error "This is not a C++11 compiler"
5546 namespace test_static_assert
5549 template <typename T>
5552 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5557 namespace test_final_override
5565 struct Derived : public Base
5567 virtual void f() override {}
5572 namespace test_double_right_angle_brackets
5575 template < typename T >
5578 typedef check<void> single_type;
5579 typedef check<check<void>> double_type;
5580 typedef check<check<check<void>>> triple_type;
5581 typedef check<check<check<check<void>>>> quadruple_type;
5585 namespace test_decltype
5598 namespace test_type_deduction
5601 template < typename T1, typename T2 >
5604 static const bool value = false;
5607 template < typename T >
5608 struct is_same<T, T>
5610 static const bool value = true;
5613 template < typename T1, typename T2 >
5615 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5621 test(const int c, volatile int v)
5623 static_assert(is_same<int, decltype(0)>::value == true, "");
5624 static_assert(is_same<int, decltype(c)>::value == false, "");
5625 static_assert(is_same<int, decltype(v)>::value == false, "");
5628 auto sumi = ac + av + 'x';
5629 auto sumf = ac + av + 1.0;
5630 static_assert(is_same<int, decltype(ac)>::value == true, "");
5631 static_assert(is_same<int, decltype(av)>::value == true, "");
5632 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5633 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5634 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5635 return (sumf > 0.0) ? sumi : add(c, v);
5640 namespace test_noexcept
5643 int f() { return 0; }
5644 int g() noexcept { return 0; }
5646 static_assert(noexcept(f()) == false, "");
5647 static_assert(noexcept(g()) == true, "");
5651 namespace test_constexpr
5654 template < typename CharT >
5655 unsigned long constexpr
5656 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5658 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5661 template < typename CharT >
5662 unsigned long constexpr
5663 strlen_c(const CharT *const s) noexcept
5665 return strlen_c_r(s, 0UL);
5668 static_assert(strlen_c("") == 0UL, "");
5669 static_assert(strlen_c("1") == 1UL, "");
5670 static_assert(strlen_c("example") == 7UL, "");
5671 static_assert(strlen_c("another\0example") == 7UL, "");
5675 namespace test_rvalue_references
5681 static constexpr int value = N;
5684 answer<1> f(int&) { return answer<1>(); }
5685 answer<2> f(const int&) { return answer<2>(); }
5686 answer<3> f(int&&) { return answer<3>(); }
5693 static_assert(decltype(f(i))::value == 1, "");
5694 static_assert(decltype(f(c))::value == 2, "");
5695 static_assert(decltype(f(0))::value == 3, "");
5700 namespace test_uniform_initialization
5705 static const int zero {};
5706 static const int one {1};
5709 static_assert(test::zero == 0, "");
5710 static_assert(test::one == 1, "");
5714 namespace test_lambdas
5720 auto lambda1 = [](){};
5721 auto lambda2 = lambda1;
5729 auto a = [](int i, int j){ return i + j; }(1, 2);
5730 auto b = []() -> int { return '0'; }();
5731 auto c = [=](){ return a + b; }();
5732 auto d = [&](){ return c; }();
5733 auto e = [a, &b](int x) mutable {
5734 const auto identity = [](int y){ return y; };
5735 for (auto i = 0; i < a; ++i)
5737 return x + identity(a + b);
5739 return a + b + c + d + e;
5745 const auto nullary = [](){ return 0; };
5746 const auto unary = [](int x){ return x; };
5747 using nullary_t = decltype(nullary);
5748 using unary_t = decltype(unary);
5749 const auto higher1st = [](nullary_t f){ return f(); };
5750 const auto higher2nd = [unary](nullary_t f1){
5751 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5753 return higher1st(nullary) + higher2nd(nullary)(unary);
5758 namespace test_variadic_templates
5764 template <int N0, int... N1toN>
5765 struct sum<N0, N1toN...>
5767 static constexpr auto value = N0 + sum<N1toN...>::value;
5773 static constexpr auto value = 0;
5776 static_assert(sum<>::value == 0, "");
5777 static_assert(sum<1>::value == 1, "");
5778 static_assert(sum<23>::value == 23, "");
5779 static_assert(sum<1, 2>::value == 3, "");
5780 static_assert(sum<5, 5, 11>::value == 21, "");
5781 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5785 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5786 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5788 namespace test_template_alias_sfinae
5793 template<typename T>
5794 using member = typename T::member_type;
5796 template<typename T>
5799 template<typename T>
5800 void func(member<T>*) {}
5804 void test() { func<foo>(0); }
5808 } // namespace cxx11
5810 #endif // __cplusplus >= 201103L
5815 if ac_fn_cxx_try_compile
"$LINENO"; then :
5820 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5823 eval ac_res
=\$
$cachevar
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5825 $as_echo "$ac_res" >&6; }
5826 if eval test x\$
$cachevar = xyes
; then
5827 CXX_DIALECT
="$switch"
5834 if test x
$ac_success = xno
; then
5835 for alternative
in ${ax_cxx_compile_alternatives}; do
5836 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5837 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
5839 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
5840 if eval \${$cachevar+:} false; then :
5841 $as_echo_n "(cached
) " >&6
5845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5846 /* end confdefs.h. */
5849 // If the compiler admits that it is not ready for C++11, why torture it?
5850 // Hopefully, this will speed up the test.
5854 #error "This is not a C
++ compiler
"
5856 #elif __cplusplus < 201103L
5858 #error "This is not a C
++11 compiler
"
5865 namespace test_static_assert
5868 template <typename T>
5871 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
5876 namespace test_final_override
5884 struct Derived : public Base
5886 virtual void f() override {}
5891 namespace test_double_right_angle_brackets
5894 template < typename T >
5897 typedef check<void> single_type;
5898 typedef check<check<void>> double_type;
5899 typedef check<check<check<void>>> triple_type;
5900 typedef check<check<check<check<void>>>> quadruple_type;
5904 namespace test_decltype
5917 namespace test_type_deduction
5920 template < typename T1, typename T2 >
5923 static const bool value = false;
5926 template < typename T >
5927 struct is_same<T, T>
5929 static const bool value = true;
5932 template < typename T1, typename T2 >
5934 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5940 test(const int c, volatile int v)
5942 static_assert(is_same<int, decltype(0)>::value == true, "");
5943 static_assert(is_same<int, decltype(c)>::value == false, "");
5944 static_assert(is_same<int, decltype(v)>::value == false, "");
5947 auto sumi = ac + av + 'x';
5948 auto sumf = ac + av + 1.0;
5949 static_assert(is_same<int, decltype(ac)>::value == true, "");
5950 static_assert(is_same<int, decltype(av)>::value == true, "");
5951 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5952 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5953 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5954 return (sumf > 0.0) ? sumi : add(c, v);
5959 namespace test_noexcept
5962 int f() { return 0; }
5963 int g() noexcept { return 0; }
5965 static_assert(noexcept(f()) == false, "");
5966 static_assert(noexcept(g()) == true, "");
5970 namespace test_constexpr
5973 template < typename CharT >
5974 unsigned long constexpr
5975 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5977 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5980 template < typename CharT >
5981 unsigned long constexpr
5982 strlen_c(const CharT *const s) noexcept
5984 return strlen_c_r(s, 0UL);
5987 static_assert(strlen_c("") == 0UL, "");
5988 static_assert(strlen_c("1") == 1UL, "");
5989 static_assert(strlen_c("example
") == 7UL, "");
5990 static_assert(strlen_c("another\
0example
") == 7UL, "");
5994 namespace test_rvalue_references
6000 static constexpr int value = N;
6003 answer<1> f(int&) { return answer<1>(); }
6004 answer<2> f(const int&) { return answer<2>(); }
6005 answer<3> f(int&&) { return answer<3>(); }
6012 static_assert(decltype(f(i))::value == 1, "");
6013 static_assert(decltype(f(c))::value == 2, "");
6014 static_assert(decltype(f(0))::value == 3, "");
6019 namespace test_uniform_initialization
6024 static const int zero {};
6025 static const int one {1};
6028 static_assert(test::zero == 0, "");
6029 static_assert(test::one == 1, "");
6033 namespace test_lambdas
6039 auto lambda1 = [](){};
6040 auto lambda2 = lambda1;
6048 auto a = [](int i, int j){ return i + j; }(1, 2);
6049 auto b = []() -> int { return '0'; }();
6050 auto c = [=](){ return a + b; }();
6051 auto d = [&](){ return c; }();
6052 auto e = [a, &b](int x) mutable {
6053 const auto identity = [](int y){ return y; };
6054 for (auto i = 0; i < a; ++i)
6056 return x + identity(a + b);
6058 return a + b + c + d + e;
6064 const auto nullary = [](){ return 0; };
6065 const auto unary = [](int x){ return x; };
6066 using nullary_t = decltype(nullary);
6067 using unary_t = decltype(unary);
6068 const auto higher1st = [](nullary_t f){ return f(); };
6069 const auto higher2nd = [unary](nullary_t f1){
6070 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6072 return higher1st(nullary) + higher2nd(nullary)(unary);
6077 namespace test_variadic_templates
6083 template <int N0, int... N1toN>
6084 struct sum<N0, N1toN...>
6086 static constexpr auto value = N0 + sum<N1toN...>::value;
6092 static constexpr auto value = 0;
6095 static_assert(sum<>::value == 0, "");
6096 static_assert(sum<1>::value == 1, "");
6097 static_assert(sum<23>::value == 23, "");
6098 static_assert(sum<1, 2>::value == 3, "");
6099 static_assert(sum<5, 5, 11>::value == 21, "");
6100 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6104 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6105 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6107 namespace test_template_alias_sfinae
6112 template<typename T>
6113 using member = typename T::member_type;
6115 template<typename T>
6118 template<typename T>
6119 void func(member<T>*) {}
6123 void test() { func<foo>(0); }
6127 } // namespace cxx11
6129 #endif // __cplusplus >= 201103L
6134 if ac_fn_cxx_try_compile "$LINENO"; then :
6139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6142 eval ac_res=\$$cachevar
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6144 $as_echo "$ac_res" >&6; }
6145 if eval test x\$$cachevar = xyes; then
6146 CXX_DIALECT="$switch"
6151 if test x$ac_success = xyes; then
6157 ac_cpp='$CPP $CPPFLAGS'
6158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6162 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6163 if test x$ac_success = xno; then
6164 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6167 if test x$ac_success = xno; then
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6170 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6174 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6181 # Dependency checking.
6182 rm -rf .tst
2>/dev
/null
6183 mkdir .tst
2>/dev
/null
6184 if test -d .tst
; then
6189 rmdir .tst
2>/dev
/null
6191 DEPDIR
="${am__leading_dot}deps"
6193 ac_config_commands
="$ac_config_commands depdir"
6196 depcc
="$CC" am_compiler_list
=
6198 am_depcomp
=$ac_aux_dir/depcomp
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6200 $as_echo_n "checking dependency style of $depcc... " >&6; }
6201 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
6202 $as_echo_n "(cached) " >&6
6204 if test -f "$am_depcomp"; then
6205 # We make a subdir and do the tests there. Otherwise we can end up
6206 # making bogus files that we don't know about and never remove. For
6207 # instance it was reported that on HP-UX the gcc test will end up
6208 # making a dummy file named `D' -- because `-MD' means `put the output
6211 # Copy depcomp to subdir because otherwise we won't find it if we're
6212 # using a relative directory.
6213 cp "$am_depcomp" conftest.dir
6215 # We will build objects and dependencies in a subdirectory because
6216 # it helps to detect inapplicable dependency modes. For instance
6217 # both Tru64's cc and ICC support -MD to output dependencies as a
6218 # side effect of compilation, but ICC will put the dependencies in
6219 # the current directory while Tru64 will put them in the object
6223 am_cv_CC_dependencies_compiler_type
=none
6224 if test "$am_compiler_list" = ""; then
6225 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6227 for depmode
in $am_compiler_list; do
6228 if test $depmode = none
; then break; fi
6230 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6231 # Setup a source with many dependencies, because some compilers
6232 # like to wrap large dependency lists on column 80 (with \), and
6233 # we should not choose a depcomp mode which is confused by this.
6235 # We need to recreate these files for each test, as the compiler may
6236 # overwrite some of them when testing with obscure command lines.
6237 # This happens at least with the AIX C compiler.
6239 for i
in 1 2 3 4 5 6; do
6240 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6241 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6242 # Solaris 8's {/usr,}/bin/sh.
6243 touch sub
/conftst
$i.h
6245 echo "include sub/conftest.Po" > confmf
6247 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6248 # mode. It turns out that the SunPro C++ compiler does not properly
6249 # handle `-M -o', and we need to detect this.
6250 depcmd
="depmode=$depmode \
6251 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6252 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6253 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6254 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
6255 if env
$depcmd > conftest.err
2>&1 &&
6256 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
6257 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
6258 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
6259 # icc doesn't choke on unknown options, it will just issue warnings
6260 # or remarks (even with -Werror). So we grep stderr for any message
6261 # that says an option was ignored or not supported.
6262 # When given -MP, icc 7.0 and 7.1 complain thusly:
6263 # icc: Command line warning: ignoring option '-M'; no argument required
6264 # The diagnosis changed in icc 8.0:
6265 # icc: Command line remark: option '-MP' not supported
6266 if (grep 'ignoring option' conftest.err ||
6267 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6268 am_cv_CC_dependencies_compiler_type
=$depmode
6269 $as_echo "$as_me:$LINENO: success" >&5
6273 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6274 sed -e 's/^/| /' < conftest.err
>&5
6280 am_cv_CC_dependencies_compiler_type
=none
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6285 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6286 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
6287 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
6288 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
6304 # If we haven't got the data from the intl directory,
6305 # assume NLS is disabled.
6314 if test -f ..
/intl
/config.intl
; then
6315 . ..
/intl
/config.intl
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6318 $as_echo_n "checking whether NLS is requested... " >&6; }
6319 if test x
"$USE_NLS" != xyes
; then
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6321 $as_echo "no" >&6; }
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6324 $as_echo "yes" >&6; }
6326 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6330 $as_echo_n "checking for catalogs to be installed... " >&6; }
6331 # Look for .po and .gmo files in the source directory.
6334 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
6335 # If there aren't any .gmo files the shell will give us the
6336 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6338 case "$cat" in *\
**)
6341 # The quadruple backslash is collapsed to a double backslash
6342 # by the backticks, then collapsed again by the double quotes,
6343 # leaving us with one backslash in the sed expression (right
6344 # before the dot that mustn't act as a wildcard).
6345 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6346 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
6347 # The user is allowed to set LINGUAS to a list of languages to
6348 # install catalogs for. If it's empty that means "all of them."
6349 if test "x$LINGUAS" = x
; then
6350 CATALOGS
="$CATALOGS $cat"
6351 XLINGUAS
="$XLINGUAS $lang"
6353 case "$LINGUAS" in *$lang*)
6354 CATALOGS
="$CATALOGS $cat"
6355 XLINGUAS
="$XLINGUAS $lang"
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6362 $as_echo "$LINGUAS" >&6; }
6375 localedir
='${datadir}/locale'
6378 if test x
"$USE_NLS" = xyes
; then
6379 CONFIG_ALL
="$CONFIG_ALL all-po"
6380 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
6381 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
6382 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
6387 cat >>confdefs.h
<<_ACEOF
6388 #define PACKAGE "$PACKAGE"
6393 # We never need to detect it in this sub-configure.
6394 # But preserve it for config.status --recheck.
6398 MAKEINFO_EXTRA_FLAGS
=""
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
6400 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
6401 if ${gdb_cv_have_makeinfo_click+:} false
; then :
6402 $as_echo_n "(cached) " >&6
6404 echo '@clicksequence{a @click{} b}' >conftest.texinfo
6405 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
6406 gdb_cv_have_makeinfo_click
=yes
6408 gdb_cv_have_makeinfo_click
=no
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
6412 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
6413 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
6414 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
6420 # Check whether --with-separate-debug-dir was given.
6421 if test "${with_separate_debug_dir+set}" = set; then :
6422 withval
=$with_separate_debug_dir;
6425 DEBUGDIR
=${libdir}/debug
6429 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6430 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6431 ac_define_dir
=`eval echo $DEBUGDIR`
6432 ac_define_dir
=`eval echo $ac_define_dir`
6434 cat >>confdefs.h
<<_ACEOF
6435 #define DEBUGDIR "$ac_define_dir"
6441 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6442 if test "x$prefix" = xNONE
; then
6443 test_prefix
=/usr
/local
6448 test_prefix
=$exec_prefix
6451 case ${ac_define_dir} in
6452 "${test_prefix}"|
"${test_prefix}/"*|\
6453 '${exec_prefix}'|
'${exec_prefix}/'*)
6458 cat >>confdefs.h
<<_ACEOF
6459 #define DEBUGDIR_RELOCATABLE $value
6465 # We can't pass paths as command line arguments.
6466 # Mingw32 tries to be clever and will convert the paths for us.
6467 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
6468 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
6469 # This breaks GDB's relocatable path conversions since paths passed in
6470 # config.h would not get so translated, the path prefixes no longer match.
6472 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6473 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6474 ac_define_dir
=`eval echo $bindir`
6475 ac_define_dir
=`eval echo $ac_define_dir`
6477 cat >>confdefs.h
<<_ACEOF
6478 #define BINDIR "$ac_define_dir"
6483 # GDB's datadir relocation
6487 # Check whether --with-gdb-datadir was given.
6488 if test "${with_gdb_datadir+set}" = set; then :
6489 withval
=$with_gdb_datadir;
6490 GDB_DATADIR
=$withval
6492 GDB_DATADIR
=${datadir}/gdb
6496 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6497 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6498 ac_define_dir
=`eval echo $GDB_DATADIR`
6499 ac_define_dir
=`eval echo $ac_define_dir`
6501 cat >>confdefs.h
<<_ACEOF
6502 #define GDB_DATADIR "$ac_define_dir"
6508 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6509 if test "x$prefix" = xNONE
; then
6510 test_prefix
=/usr
/local
6515 test_prefix
=$exec_prefix
6518 case ${ac_define_dir} in
6519 "${test_prefix}"|
"${test_prefix}/"*|\
6520 '${exec_prefix}'|
'${exec_prefix}/'*)
6525 cat >>confdefs.h
<<_ACEOF
6526 #define GDB_DATADIR_RELOCATABLE $value
6533 # Check whether --with-relocated-sources was given.
6534 if test "${with_relocated_sources+set}" = set; then :
6535 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
6537 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6538 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6539 ac_define_dir
=`eval echo $reloc_srcdir`
6540 ac_define_dir
=`eval echo $ac_define_dir`
6542 cat >>confdefs.h
<<_ACEOF
6543 #define RELOC_SRCDIR "$ac_define_dir"
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
6552 $as_echo_n "checking for default auto-load directory... " >&6; }
6554 # Check whether --with-auto-load-dir was given.
6555 if test "${with_auto_load_dir+set}" = set; then :
6556 withval
=$with_auto_load_dir;
6558 with_auto_load_dir
='$debugdir:$datadir/auto-load'
6561 escape_dir
=`echo $with_auto_load_dir | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6563 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6564 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6565 ac_define_dir
=`eval echo $escape_dir`
6566 ac_define_dir
=`eval echo $ac_define_dir`
6568 cat >>confdefs.h
<<_ACEOF
6569 #define AUTO_LOAD_DIR "$ac_define_dir"
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
6574 $as_echo "$with_auto_load_dir" >&6; }
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
6577 $as_echo_n "checking for default auto-load safe-path... " >&6; }
6579 # Check whether --with-auto-load-safe-path was given.
6580 if test "${with_auto_load_safe_path+set}" = set; then :
6581 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
6582 with_auto_load_safe_path
="/"
6585 with_auto_load_safe_path
="$with_auto_load_dir"
6588 escape_dir
=`echo $with_auto_load_safe_path | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6590 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6591 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6592 ac_define_dir
=`eval echo $escape_dir`
6593 ac_define_dir
=`eval echo $ac_define_dir`
6595 cat >>confdefs.h
<<_ACEOF
6596 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
6601 $as_echo "$with_auto_load_safe_path" >&6; }
6605 subdirs
="$subdirs testsuite"
6608 # Check whether to support alternative target configurations
6609 # Check whether --enable-targets was given.
6610 if test "${enable_targets+set}" = set; then :
6611 enableval
=$enable_targets; case "${enableval}" in
6612 yes |
"") as_fn_error $?
"enable-targets option must specify target names or 'all'" "$LINENO" 5
6614 no
) enable_targets
= ;;
6615 *) enable_targets
=$enableval ;;
6620 # Check whether to enable 64-bit support on 32-bit hosts
6621 # Check whether --enable-64-bit-bfd was given.
6622 if test "${enable_64_bit_bfd+set}" = set; then :
6623 enableval
=$enable_64_bit_bfd; case "${enableval}" in
6626 *) as_fn_error $?
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
6632 # Provide defaults for some variables set by the per-host and per-target
6634 gdb_host_obs
=posix-hdep.o
6636 if test "${target}" = "${host}"; then
6642 .
$srcdir/configure.
host
6644 # Accumulate some settings from configure.tgt over all enabled targets
6648 HAVE_NATIVE_GCORE_TARGET
=
6650 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6652 if test "$targ_alias" = "all"; then
6655 # Canonicalize the secondary target names.
6656 result
=`$ac_config_sub $targ_alias 2>/dev/null`
6657 if test -n "$result"; then
6663 .
${srcdir}/configure.tgt
6665 if test -z "${gdb_target_obs}"; then :
6666 as_fn_error $?
"configuration ${targ} is unsupported." "$LINENO" 5
6669 # Target-specific object files
6670 for i
in ${gdb_target_obs}; do
6671 case " $TARGET_OBS " in
6674 TARGET_OBS
="$TARGET_OBS ${i}"
6679 # Check whether this target needs 64-bit CORE_ADDR
6680 if test x
${want64} = xfalse
; then
6681 .
${srcdir}/..
/bfd
/config.bfd
6684 # Check whether this target is native and supports gcore.
6685 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
6686 && $gdb_have_gcore; then
6687 HAVE_NATIVE_GCORE_TARGET
=1
6692 if test x
${all_targets} = xtrue
; then
6694 # We want all 64-bit targets if we either:
6695 # - run on a 64-bit host or
6696 # - already require 64-bit support for some other target or
6697 # - the --enable-64-bit-bfd option was supplied
6698 # Otherwise we only support all 32-bit targets.
6700 # NOTE: This test must be in sync with the corresponding
6703 if test x
${want64} = xfalse
; then
6704 # The cast to long int works around a bug in the HP C Compiler
6705 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6706 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6707 # This bug is HP SR number 8606223364.
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6709 $as_echo_n "checking size of long... " >&6; }
6710 if ${ac_cv_sizeof_long+:} false
; then :
6711 $as_echo_n "(cached) " >&6
6713 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6716 if test "$ac_cv_type_long" = yes; then
6717 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6718 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6719 as_fn_error
77 "cannot compute sizeof (long)
6720 See \`config.log' for more details" "$LINENO" 5; }
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6728 $as_echo "$ac_cv_sizeof_long" >&6; }
6732 cat >>confdefs.h
<<_ACEOF
6733 #define SIZEOF_LONG $ac_cv_sizeof_long
6737 if test "x${ac_cv_sizeof_long}" = "x8"; then
6741 if test x
${want64} = xtrue
; then
6742 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
6744 TARGET_OBS
='$(ALL_TARGET_OBS)'
6751 # For other settings, only the main target counts.
6754 targ
=$target; .
${srcdir}/configure.tgt
6756 # Fetch the default architecture and default target vector from BFD.
6757 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
6759 # We only want the first architecture, so strip off the others if
6760 # there is more than one.
6761 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
6763 if test "x$targ_archs" != x
; then
6765 cat >>confdefs.h
<<_ACEOF
6766 #define DEFAULT_BFD_ARCH $targ_archs
6770 if test "x$targ_defvec" != x
; then
6772 cat >>confdefs.h
<<_ACEOF
6773 #define DEFAULT_BFD_VEC $targ_defvec
6779 # Check whether --enable-gdbmi was given.
6780 if test "${enable_gdbmi+set}" = set; then :
6781 enableval
=$enable_gdbmi; case $enableval in
6785 as_fn_error $?
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
6791 if test x
"$enable_gdbmi" = xyes
; then
6792 if test -d "$srcdir/mi"; then
6793 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6794 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6795 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6796 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6801 # Check whether --enable-tui was given.
6802 if test "${enable_tui+set}" = set; then :
6803 enableval
=$enable_tui; case $enableval in
6807 as_fn_error $?
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
6815 # Check whether --enable-gdbtk was given.
6816 if test "${enable_gdbtk+set}" = set; then :
6817 enableval
=$enable_gdbtk; case $enableval in
6821 as_fn_error $?
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
6824 if test -d "$srcdir/gdbtk"; then
6831 # We unconditionally disable gdbtk tests on selected platforms.
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
6835 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6839 # Libunwind support for ia64.
6842 # Check whether --with-libunwind-ia64 was given.
6843 if test "${with_libunwind_ia64+set}" = set; then :
6844 withval
=$with_libunwind_ia64;
6846 with_libunwind_ia64
=auto
6850 # Backward compatibility option.
6851 if test "${with_libunwind+set}" = set; then
6852 if test x
"$with_libunwind_ia64" != xauto
; then
6853 as_fn_error $?
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
6856 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
6857 with_libunwind_ia64
="$with_libunwind"
6860 case "$with_libunwind_ia64" in
6864 for ac_header
in libunwind-ia64.h
6866 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
6867 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
6868 cat >>confdefs.h
<<_ACEOF
6869 #define HAVE_LIBUNWIND_IA64_H 1
6876 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
6879 as_fn_error $?
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
6883 if test x
"$with_libunwind_ia64" = xyes
; then
6884 for ac_header
in libunwind-ia64.h
6886 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
6887 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
6888 cat >>confdefs.h
<<_ACEOF
6889 #define HAVE_LIBUNWIND_IA64_H 1
6896 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
6897 as_fn_error $?
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
6899 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
6900 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
6901 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
6906 # Check whether --with-curses was given.
6907 if test "${with_curses+set}" = set; then :
6908 withval
=$with_curses; opt_curses
=$withval
6913 if test "$opt_curses" = "yes"; then
6917 # Profiling support.
6918 # Check whether --enable-profiling was given.
6919 if test "${enable_profiling+set}" = set; then :
6920 enableval
=$enable_profiling; case $enableval in
6924 as_fn_error $?
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
6931 for ac_func
in monstartup _mcleanup
6933 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6934 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6935 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6936 cat >>confdefs.h
<<_ACEOF
6937 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
6944 $as_echo_n "checking for _etext... " >&6; }
6945 if ${ac_cv_var__etext+:} false
; then :
6946 $as_echo_n "(cached) " >&6
6948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6949 /* end confdefs.h. */
6961 if ac_fn_c_try_link
"$LINENO"; then :
6962 ac_cv_var__etext
=yes
6966 rm -f core conftest.err conftest.
$ac_objext \
6967 conftest
$ac_exeext conftest.
$ac_ext
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
6970 $as_echo "$ac_cv_var__etext" >&6; }
6971 if test "$ac_cv_var__etext" = yes; then
6973 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
6977 $as_echo_n "checking for etext... " >&6; }
6978 if ${ac_cv_var_etext+:} false
; then :
6979 $as_echo_n "(cached) " >&6
6981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6982 /* end confdefs.h. */
6994 if ac_fn_c_try_link
"$LINENO"; then :
6999 rm -f core conftest.err conftest.
$ac_objext \
7000 conftest
$ac_exeext conftest.
$ac_ext
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
7003 $as_echo "$ac_cv_var_etext" >&6; }
7004 if test "$ac_cv_var_etext" = yes; then
7006 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
7009 if test "$enable_profiling" = yes ; then
7010 if test "$ac_cv_func_monstartup" = no ||
test "$ac_cv_func__mcleanup" = no
; then
7011 as_fn_error $?
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
7014 OLD_CFLAGS
="$CFLAGS"
7015 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
7018 $as_echo_n "checking whether $CC supports -pg... " >&6; }
7019 if ${ac_cv_cc_supports_pg+:} false
; then :
7020 $as_echo_n "(cached) " >&6
7022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7023 /* end confdefs.h. */
7033 if ac_fn_c_try_compile
"$LINENO"; then :
7034 ac_cv_cc_supports_pg
=yes
7036 ac_cv_cc_supports_pg
=no
7038 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
7041 $as_echo "$ac_cv_cc_supports_pg" >&6; }
7043 if test "$ac_cv_cc_supports_pg" = no
; then
7044 as_fn_error $?
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
7047 CFLAGS
="$OLD_CFLAGS"
7051 # Check whether --enable-codesign was given.
7052 if test "${enable_codesign+set}" = set; then :
7053 enableval
=$enable_codesign; CODESIGN_CERT
=$enableval
7060 # Check whether --with-pkgversion was given.
7061 if test "${with_pkgversion+set}" = set; then :
7062 withval
=$with_pkgversion; case "$withval" in
7063 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
7065 *) PKGVERSION
="($withval) " ;;
7076 # Check whether --with-bugurl was given.
7077 if test "${with_bugurl+set}" = set; then :
7078 withval
=$with_bugurl; case "$withval" in
7079 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
7082 *) BUGURL
="$withval"
7086 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
7096 REPORT_BUGS_TO
="<$BUGURL>"
7097 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7104 cat >>confdefs.h
<<_ACEOF
7105 #define PKGVERSION "$PKGVERSION"
7109 cat >>confdefs.h
<<_ACEOF
7110 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7114 # --------------------- #
7115 # Checks for programs. #
7116 # --------------------- #
7118 for ac_prog
in gawk mawk nawk
awk
7120 # Extract the first word of "$ac_prog", so it can be a program name with args.
7121 set dummy
$ac_prog; ac_word
=$2
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7123 $as_echo_n "checking for $ac_word... " >&6; }
7124 if ${ac_cv_prog_AWK+:} false
; then :
7125 $as_echo_n "(cached) " >&6
7127 if test -n "$AWK"; then
7128 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7134 test -z "$as_dir" && as_dir
=.
7135 for ac_exec_ext
in '' $ac_executable_extensions; do
7136 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7137 ac_cv_prog_AWK
="$ac_prog"
7138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7148 if test -n "$AWK"; then
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7150 $as_echo "$AWK" >&6; }
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7153 $as_echo "no" >&6; }
7157 test -n "$AWK" && break
7160 # Find a good install program. We prefer a C program (faster),
7161 # so one script is as good as another. But avoid the broken or
7162 # incompatible versions:
7163 # SysV /etc/install, /usr/sbin/install
7164 # SunOS /usr/etc/install
7165 # IRIX /sbin/install
7167 # AmigaOS /C/install, which installs bootblocks on floppy discs
7168 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7169 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7170 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7171 # OS/2's system install, which has a completely different semantic
7172 # ./install, which can be erroneously created by make from ./install.sh.
7173 # Reject install programs that cannot install multiple files.
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7175 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7176 if test -z "$INSTALL"; then
7177 if ${ac_cv_path_install+:} false
; then :
7178 $as_echo_n "(cached) " >&6
7180 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7184 test -z "$as_dir" && as_dir
=.
7185 # Account for people who put trailing slashes in PATH elements.
7186 case $as_dir/ in #((
7187 .
/ | .
// |
/[cC
]/* | \
7188 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7189 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
7192 # OSF1 and SCO ODT 3.0 have their own names for install.
7193 # Don't use installbsd from OSF since it installs stuff as root
7195 for ac_prog
in ginstall scoinst
install; do
7196 for ac_exec_ext
in '' $ac_executable_extensions; do
7197 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
7198 if test $ac_prog = install &&
7199 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7200 # AIX install. It has an incompatible calling convention.
7202 elif test $ac_prog = install &&
7203 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7204 # program-specific install script used by HP pwplus--don't use.
7207 rm -rf conftest.one conftest.two conftest.dir
7208 echo one
> conftest.one
7209 echo two
> conftest.two
7211 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
7212 test -s conftest.one
&& test -s conftest.two
&&
7213 test -s conftest.dir
/conftest.one
&&
7214 test -s conftest.dir
/conftest.two
7216 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7229 rm -rf conftest.one conftest.two conftest.dir
7232 if test "${ac_cv_path_install+set}" = set; then
7233 INSTALL
=$ac_cv_path_install
7235 # As a last resort, use the slow shell script. Don't cache a
7236 # value for INSTALL within a source directory, because that will
7237 # break other packages using the cache if that directory is
7238 # removed, or if the value is a relative name.
7239 INSTALL
=$ac_install_sh
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7243 $as_echo "$INSTALL" >&6; }
7245 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7246 # It thinks the first close brace ends the variable substitution.
7247 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7249 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7251 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7254 $as_echo_n "checking whether ln -s works... " >&6; }
7256 if test "$LN_S" = "ln -s"; then
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7258 $as_echo "yes" >&6; }
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7261 $as_echo "no, using $LN_S" >&6; }
7264 if test -n "$ac_tool_prefix"; then
7265 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7266 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7268 $as_echo_n "checking for $ac_word... " >&6; }
7269 if ${ac_cv_prog_RANLIB+:} false
; then :
7270 $as_echo_n "(cached) " >&6
7272 if test -n "$RANLIB"; then
7273 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7275 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7279 test -z "$as_dir" && as_dir
=.
7280 for ac_exec_ext
in '' $ac_executable_extensions; do
7281 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7282 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7292 RANLIB
=$ac_cv_prog_RANLIB
7293 if test -n "$RANLIB"; then
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7295 $as_echo "$RANLIB" >&6; }
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7298 $as_echo "no" >&6; }
7303 if test -z "$ac_cv_prog_RANLIB"; then
7304 ac_ct_RANLIB
=$RANLIB
7305 # Extract the first word of "ranlib", so it can be a program name with args.
7306 set dummy ranlib
; ac_word
=$2
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7308 $as_echo_n "checking for $ac_word... " >&6; }
7309 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
7310 $as_echo_n "(cached) " >&6
7312 if test -n "$ac_ct_RANLIB"; then
7313 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7315 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7319 test -z "$as_dir" && as_dir
=.
7320 for ac_exec_ext
in '' $ac_executable_extensions; do
7321 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7322 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7332 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7333 if test -n "$ac_ct_RANLIB"; then
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7335 $as_echo "$ac_ct_RANLIB" >&6; }
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7338 $as_echo "no" >&6; }
7341 if test "x$ac_ct_RANLIB" = x
; then
7344 case $cross_compiling:$ac_tool_warned in
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7348 ac_tool_warned
=yes ;;
7350 RANLIB
=$ac_ct_RANLIB
7353 RANLIB
="$ac_cv_prog_RANLIB"
7356 for ac_prog
in 'bison -y' byacc
7358 # Extract the first word of "$ac_prog", so it can be a program name with args.
7359 set dummy
$ac_prog; ac_word
=$2
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7361 $as_echo_n "checking for $ac_word... " >&6; }
7362 if ${ac_cv_prog_YACC+:} false
; then :
7363 $as_echo_n "(cached) " >&6
7365 if test -n "$YACC"; then
7366 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
7368 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7372 test -z "$as_dir" && as_dir
=.
7373 for ac_exec_ext
in '' $ac_executable_extensions; do
7374 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7375 ac_cv_prog_YACC
="$ac_prog"
7376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7385 YACC
=$ac_cv_prog_YACC
7386 if test -n "$YACC"; then
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7388 $as_echo "$YACC" >&6; }
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7391 $as_echo "no" >&6; }
7395 test -n "$YACC" && break
7397 test -n "$YACC" || YACC
="yacc"
7400 if test -n "$ac_tool_prefix"; then
7401 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7402 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7404 $as_echo_n "checking for $ac_word... " >&6; }
7405 if ${ac_cv_prog_AR+:} false
; then :
7406 $as_echo_n "(cached) " >&6
7408 if test -n "$AR"; then
7409 ac_cv_prog_AR
="$AR" # Let the user override the test.
7411 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7415 test -z "$as_dir" && as_dir
=.
7416 for ac_exec_ext
in '' $ac_executable_extensions; do
7417 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7418 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7429 if test -n "$AR"; then
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7431 $as_echo "$AR" >&6; }
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434 $as_echo "no" >&6; }
7439 if test -z "$ac_cv_prog_AR"; then
7441 # Extract the first word of "ar", so it can be a program name with args.
7442 set dummy
ar; ac_word
=$2
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7444 $as_echo_n "checking for $ac_word... " >&6; }
7445 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
7446 $as_echo_n "(cached) " >&6
7448 if test -n "$ac_ct_AR"; then
7449 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7451 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7455 test -z "$as_dir" && as_dir
=.
7456 for ac_exec_ext
in '' $ac_executable_extensions; do
7457 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7458 ac_cv_prog_ac_ct_AR
="ar"
7459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7468 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7469 if test -n "$ac_ct_AR"; then
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7471 $as_echo "$ac_ct_AR" >&6; }
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7474 $as_echo "no" >&6; }
7477 if test "x$ac_ct_AR" = x
; then
7480 case $cross_compiling:$ac_tool_warned in
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7484 ac_tool_warned
=yes ;;
7492 if test -n "$ac_tool_prefix"; then
7493 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7494 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7496 $as_echo_n "checking for $ac_word... " >&6; }
7497 if ${ac_cv_prog_DLLTOOL+:} false
; then :
7498 $as_echo_n "(cached) " >&6
7500 if test -n "$DLLTOOL"; then
7501 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
7503 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7507 test -z "$as_dir" && as_dir
=.
7508 for ac_exec_ext
in '' $ac_executable_extensions; do
7509 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7510 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
7511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7520 DLLTOOL
=$ac_cv_prog_DLLTOOL
7521 if test -n "$DLLTOOL"; then
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7523 $as_echo "$DLLTOOL" >&6; }
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526 $as_echo "no" >&6; }
7531 if test -z "$ac_cv_prog_DLLTOOL"; then
7532 ac_ct_DLLTOOL
=$DLLTOOL
7533 # Extract the first word of "dlltool", so it can be a program name with args.
7534 set dummy dlltool
; ac_word
=$2
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7536 $as_echo_n "checking for $ac_word... " >&6; }
7537 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
7538 $as_echo_n "(cached) " >&6
7540 if test -n "$ac_ct_DLLTOOL"; then
7541 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
7543 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7547 test -z "$as_dir" && as_dir
=.
7548 for ac_exec_ext
in '' $ac_executable_extensions; do
7549 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7550 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
7551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7560 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
7561 if test -n "$ac_ct_DLLTOOL"; then
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7563 $as_echo "$ac_ct_DLLTOOL" >&6; }
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566 $as_echo "no" >&6; }
7569 if test "x$ac_ct_DLLTOOL" = x
; then
7572 case $cross_compiling:$ac_tool_warned in
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7576 ac_tool_warned
=yes ;;
7578 DLLTOOL
=$ac_ct_DLLTOOL
7581 DLLTOOL
="$ac_cv_prog_DLLTOOL"
7584 if test -n "$ac_tool_prefix"; then
7585 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7586 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7588 $as_echo_n "checking for $ac_word... " >&6; }
7589 if ${ac_cv_prog_WINDRES+:} false
; then :
7590 $as_echo_n "(cached) " >&6
7592 if test -n "$WINDRES"; then
7593 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
7595 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7599 test -z "$as_dir" && as_dir
=.
7600 for ac_exec_ext
in '' $ac_executable_extensions; do
7601 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7602 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
7603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7612 WINDRES
=$ac_cv_prog_WINDRES
7613 if test -n "$WINDRES"; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7615 $as_echo "$WINDRES" >&6; }
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7623 if test -z "$ac_cv_prog_WINDRES"; then
7624 ac_ct_WINDRES
=$WINDRES
7625 # Extract the first word of "windres", so it can be a program name with args.
7626 set dummy windres
; ac_word
=$2
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7628 $as_echo_n "checking for $ac_word... " >&6; }
7629 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
7630 $as_echo_n "(cached) " >&6
7632 if test -n "$ac_ct_WINDRES"; then
7633 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
7635 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7639 test -z "$as_dir" && as_dir
=.
7640 for ac_exec_ext
in '' $ac_executable_extensions; do
7641 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7642 ac_cv_prog_ac_ct_WINDRES
="windres"
7643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7652 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
7653 if test -n "$ac_ct_WINDRES"; then
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7655 $as_echo "$ac_ct_WINDRES" >&6; }
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7658 $as_echo "no" >&6; }
7661 if test "x$ac_ct_WINDRES" = x
; then
7664 case $cross_compiling:$ac_tool_warned in
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7668 ac_tool_warned
=yes ;;
7670 WINDRES
=$ac_ct_WINDRES
7673 WINDRES
="$ac_cv_prog_WINDRES"
7679 # Needed for GNU Hurd hosts.
7680 if test -n "$ac_tool_prefix"; then
7681 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7682 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7684 $as_echo_n "checking for $ac_word... " >&6; }
7685 if ${ac_cv_prog_MIG+:} false
; then :
7686 $as_echo_n "(cached) " >&6
7688 if test -n "$MIG"; then
7689 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
7691 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7695 test -z "$as_dir" && as_dir
=.
7696 for ac_exec_ext
in '' $ac_executable_extensions; do
7697 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7698 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
7699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7709 if test -n "$MIG"; then
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
7711 $as_echo "$MIG" >&6; }
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7714 $as_echo "no" >&6; }
7719 if test -z "$ac_cv_prog_MIG"; then
7721 # Extract the first word of "mig", so it can be a program name with args.
7722 set dummy mig
; ac_word
=$2
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7724 $as_echo_n "checking for $ac_word... " >&6; }
7725 if ${ac_cv_prog_ac_ct_MIG+:} false
; then :
7726 $as_echo_n "(cached) " >&6
7728 if test -n "$ac_ct_MIG"; then
7729 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
7731 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7735 test -z "$as_dir" && as_dir
=.
7736 for ac_exec_ext
in '' $ac_executable_extensions; do
7737 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7738 ac_cv_prog_ac_ct_MIG
="mig"
7739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7748 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
7749 if test -n "$ac_ct_MIG"; then
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
7751 $as_echo "$ac_ct_MIG" >&6; }
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7754 $as_echo "no" >&6; }
7757 if test "x$ac_ct_MIG" = x
; then
7760 case $cross_compiling:$ac_tool_warned in
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7763 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7764 ac_tool_warned
=yes ;;
7769 MIG
="$ac_cv_prog_MIG"
7772 if test x
"$MIG" = x
; then
7773 as_fn_error $?
"MIG not found but required for $host hosts" "$LINENO" 5
7778 # ---------------------- #
7779 # Checks for libraries. #
7780 # ---------------------- #
7782 # We might need to link with -lm; most simulators need it.
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7784 $as_echo_n "checking for main in -lm... " >&6; }
7785 if ${ac_cv_lib_m_main+:} false
; then :
7786 $as_echo_n "(cached) " >&6
7788 ac_check_lib_save_LIBS
=$LIBS
7790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7791 /* end confdefs.h. */
7802 if ac_fn_c_try_link
"$LINENO"; then :
7803 ac_cv_lib_m_main
=yes
7807 rm -f core conftest.err conftest.
$ac_objext \
7808 conftest
$ac_exeext conftest.
$ac_ext
7809 LIBS
=$ac_check_lib_save_LIBS
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7812 $as_echo "$ac_cv_lib_m_main" >&6; }
7813 if test "x$ac_cv_lib_m_main" = xyes
; then :
7814 cat >>confdefs.h
<<_ACEOF
7823 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
7825 $as_echo_n "checking for library containing gethostbyname... " >&6; }
7826 if ${ac_cv_search_gethostbyname+:} false
; then :
7827 $as_echo_n "(cached) " >&6
7829 ac_func_search_save_LIBS
=$LIBS
7830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7831 /* end confdefs.h. */
7833 /* Override any GCC internal prototype to avoid an error.
7834 Use char because int might match the return type of a GCC
7835 builtin and then its argument prototype would still apply. */
7839 char gethostbyname ();
7843 return gethostbyname ();
7848 for ac_lib
in '' nsl
; do
7849 if test -z "$ac_lib"; then
7850 ac_res
="none required"
7853 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7855 if ac_fn_c_try_link
"$LINENO"; then :
7856 ac_cv_search_gethostbyname
=$ac_res
7858 rm -f core conftest.err conftest.
$ac_objext \
7860 if ${ac_cv_search_gethostbyname+:} false
; then :
7864 if ${ac_cv_search_gethostbyname+:} false
; then :
7867 ac_cv_search_gethostbyname
=no
7870 LIBS
=$ac_func_search_save_LIBS
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
7873 $as_echo "$ac_cv_search_gethostbyname" >&6; }
7874 ac_res
=$ac_cv_search_gethostbyname
7875 if test "$ac_res" != no
; then :
7876 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7881 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
7883 $as_echo_n "checking for library containing socketpair... " >&6; }
7884 if ${ac_cv_search_socketpair+:} false
; then :
7885 $as_echo_n "(cached) " >&6
7887 ac_func_search_save_LIBS
=$LIBS
7888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7889 /* end confdefs.h. */
7891 /* Override any GCC internal prototype to avoid an error.
7892 Use char because int might match the return type of a GCC
7893 builtin and then its argument prototype would still apply. */
7901 return socketpair ();
7906 for ac_lib
in '' socket
; do
7907 if test -z "$ac_lib"; then
7908 ac_res
="none required"
7911 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7913 if ac_fn_c_try_link
"$LINENO"; then :
7914 ac_cv_search_socketpair
=$ac_res
7916 rm -f core conftest.err conftest.
$ac_objext \
7918 if ${ac_cv_search_socketpair+:} false
; then :
7922 if ${ac_cv_search_socketpair+:} false
; then :
7925 ac_cv_search_socketpair
=no
7928 LIBS
=$ac_func_search_save_LIBS
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
7931 $as_echo "$ac_cv_search_socketpair" >&6; }
7932 ac_res
=$ac_cv_search_socketpair
7933 if test "$ac_res" != no
; then :
7934 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7939 # Link in zlib if we can. This allows us to read compressed debug sections.
7941 # Use the system's zlib library.
7942 zlibdir
="-L\$(top_builddir)/../zlib"
7943 zlibinc
="-I\$(top_srcdir)/../zlib"
7945 # Check whether --with-system-zlib was given.
7946 if test "${with_system_zlib+set}" = set; then :
7947 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
7958 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
7959 # On GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
7961 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
7962 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
7963 $as_echo_n "(cached) " >&6
7965 ac_func_search_save_LIBS
=$LIBS
7966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7967 /* end confdefs.h. */
7969 /* Override any GCC internal prototype to avoid an error.
7970 Use char because int might match the return type of a GCC
7971 builtin and then its argument prototype would still apply. */
7975 char kinfo_getvmmap ();
7979 return kinfo_getvmmap ();
7984 for ac_lib
in '' util util-freebsd
; do
7985 if test -z "$ac_lib"; then
7986 ac_res
="none required"
7989 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7991 if ac_fn_c_try_link
"$LINENO"; then :
7992 ac_cv_search_kinfo_getvmmap
=$ac_res
7994 rm -f core conftest.err conftest.
$ac_objext \
7996 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
8000 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
8003 ac_cv_search_kinfo_getvmmap
=no
8006 LIBS
=$ac_func_search_save_LIBS
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
8009 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
8010 ac_res
=$ac_cv_search_kinfo_getvmmap
8011 if test "$ac_res" != no
; then :
8012 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8014 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
8020 if test "X$prefix" = "XNONE"; then
8021 acl_final_prefix
="$ac_default_prefix"
8023 acl_final_prefix
="$prefix"
8025 if test "X$exec_prefix" = "XNONE"; then
8026 acl_final_exec_prefix
='${prefix}'
8028 acl_final_exec_prefix
="$exec_prefix"
8030 acl_save_prefix
="$prefix"
8031 prefix
="$acl_final_prefix"
8032 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8033 prefix
="$acl_save_prefix"
8036 # Check whether --with-gnu-ld was given.
8037 if test "${with_gnu_ld+set}" = set; then :
8038 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8043 # Prepare PATH_SEPARATOR.
8044 # The user is always right.
8045 if test "${PATH_SEPARATOR+set}" != set; then
8046 echo "#! /bin/sh" >conf$$.sh
8047 echo "exit 0" >>conf$$.sh
8049 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8057 if test "$GCC" = yes; then
8058 # Check if gcc -print-prog-name=ld gives a path.
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8060 $as_echo_n "checking for ld used by GCC... " >&6; }
8063 # gcc leaves a trailing carriage return which upsets mingw
8064 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8066 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8069 # Accept absolute paths.
8070 [\\/]* |
[A-Za-z
]:[\\/]*)
8071 re_direlt
='/[^/][^/]*/\.\./'
8072 # Canonicalize the path of ld
8073 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8074 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8075 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8077 test -z "$LD" && LD
="$ac_prog"
8080 # If it fails, then pretend we aren't using GCC.
8084 # If it is relative, then search for the first ld in PATH.
8088 elif test "$with_gnu_ld" = yes; then
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8090 $as_echo_n "checking for GNU ld... " >&6; }
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8093 $as_echo_n "checking for non-GNU ld... " >&6; }
8095 if ${acl_cv_path_LD+:} false
; then :
8096 $as_echo_n "(cached) " >&6
8098 if test -z "$LD"; then
8099 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8100 for ac_dir
in $PATH; do
8101 test -z "$ac_dir" && ac_dir
=.
8102 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8103 acl_cv_path_LD
="$ac_dir/$ac_prog"
8104 # Check to see if the program is GNU ld. I'd rather use --version,
8105 # but apparently some GNU ld's only accept -v.
8106 # Break only if it was the GNU/non-GNU ld that we prefer.
8107 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
8108 test "$with_gnu_ld" != no
&& break
8110 test "$with_gnu_ld" != yes && break
8116 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8120 LD
="$acl_cv_path_LD"
8121 if test -n "$LD"; then
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8123 $as_echo "$LD" >&6; }
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8126 $as_echo "no" >&6; }
8128 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8130 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8131 if ${acl_cv_prog_gnu_ld+:} false
; then :
8132 $as_echo_n "(cached) " >&6
8134 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8135 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8136 acl_cv_prog_gnu_ld
=yes
8138 acl_cv_prog_gnu_ld
=no
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8142 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8143 with_gnu_ld
=$acl_cv_prog_gnu_ld
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8148 $as_echo_n "checking for shared library run path origin... " >&6; }
8149 if ${acl_cv_rpath+:} false
; then :
8150 $as_echo_n "(cached) " >&6
8153 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8154 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8161 $as_echo "$acl_cv_rpath" >&6; }
8163 libext
="$acl_cv_libext"
8164 shlibext
="$acl_cv_shlibext"
8165 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8166 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8167 hardcode_direct
="$acl_cv_hardcode_direct"
8168 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8169 # Check whether --enable-rpath was given.
8170 if test "${enable_rpath+set}" = set; then :
8171 enableval
=$enable_rpath; :
8185 acl_save_prefix
="$prefix"
8186 prefix
="$acl_final_prefix"
8187 acl_save_exec_prefix
="$exec_prefix"
8188 exec_prefix
="$acl_final_exec_prefix"
8190 eval additional_includedir
=\"$includedir\"
8191 eval additional_libdir
=\"$libdir\"
8193 exec_prefix
="$acl_save_exec_prefix"
8194 prefix
="$acl_save_prefix"
8197 # Check whether --with-libiconv-prefix was given.
8198 if test "${with_libiconv_prefix+set}" = set; then :
8199 withval
=$with_libiconv_prefix;
8200 if test "X$withval" = "Xno"; then
8203 if test "X$withval" = "X"; then
8205 acl_save_prefix
="$prefix"
8206 prefix
="$acl_final_prefix"
8207 acl_save_exec_prefix
="$exec_prefix"
8208 exec_prefix
="$acl_final_exec_prefix"
8210 eval additional_includedir
=\"$includedir\"
8211 eval additional_libdir
=\"$libdir\"
8213 exec_prefix
="$acl_save_exec_prefix"
8214 prefix
="$acl_save_prefix"
8217 additional_includedir
="$withval/include"
8218 additional_libdir
="$withval/lib"
8225 # Check whether --with-libiconv-type was given.
8226 if test "${with_libiconv_type+set}" = set; then :
8227 withval
=$with_libiconv_type; with_libiconv_type
=$withval
8229 with_libiconv_type
=auto
8232 lib_type
=`eval echo \$with_libiconv_type`
8239 names_already_handled
=
8240 names_next_round
='iconv '
8241 while test -n "$names_next_round"; do
8242 names_this_round
="$names_next_round"
8244 for name
in $names_this_round; do
8246 for n
in $names_already_handled; do
8247 if test "$n" = "$name"; then
8252 if test -z "$already_handled"; then
8253 names_already_handled
="$names_already_handled $name"
8254 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8255 eval value
=\"\
$HAVE_LIB$uppername\"
8256 if test -n "$value"; then
8257 if test "$value" = yes; then
8258 eval value
=\"\
$LIB$uppername\"
8259 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
8260 eval value
=\"\
$LTLIB$uppername\"
8261 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
8270 if test $use_additional = yes; then
8271 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8272 found_dir
="$additional_libdir"
8273 found_so
="$additional_libdir/lib$name.$shlibext"
8274 if test -f "$additional_libdir/lib$name.la"; then
8275 found_la
="$additional_libdir/lib$name.la"
8277 elif test x
$lib_type != xshared
; then
8278 if test -f "$additional_libdir/lib$name.$libext"; then
8279 found_dir
="$additional_libdir"
8280 found_a
="$additional_libdir/lib$name.$libext"
8281 if test -f "$additional_libdir/lib$name.la"; then
8282 found_la
="$additional_libdir/lib$name.la"
8287 if test "X$found_dir" = "X"; then
8288 for x
in $LDFLAGS $LTLIBICONV; do
8290 acl_save_prefix
="$prefix"
8291 prefix
="$acl_final_prefix"
8292 acl_save_exec_prefix
="$exec_prefix"
8293 exec_prefix
="$acl_final_exec_prefix"
8295 exec_prefix
="$acl_save_exec_prefix"
8296 prefix
="$acl_save_prefix"
8300 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8301 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8303 found_so
="$dir/lib$name.$shlibext"
8304 if test -f "$dir/lib$name.la"; then
8305 found_la
="$dir/lib$name.la"
8307 elif test x
$lib_type != xshared
; then
8308 if test -f "$dir/lib$name.$libext"; then
8310 found_a
="$dir/lib$name.$libext"
8311 if test -f "$dir/lib$name.la"; then
8312 found_la
="$dir/lib$name.la"
8318 if test "X$found_dir" != "X"; then
8323 if test "X$found_dir" != "X"; then
8324 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8325 if test "X$found_so" != "X"; then
8326 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8327 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8330 for x
in $ltrpathdirs; do
8331 if test "X$x" = "X$found_dir"; then
8336 if test -z "$haveit"; then
8337 ltrpathdirs
="$ltrpathdirs $found_dir"
8339 if test "$hardcode_direct" = yes; then
8340 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8342 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8343 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8345 for x
in $rpathdirs; do
8346 if test "X$x" = "X$found_dir"; then
8351 if test -z "$haveit"; then
8352 rpathdirs
="$rpathdirs $found_dir"
8356 for x
in $LDFLAGS $LIBICONV; do
8358 acl_save_prefix
="$prefix"
8359 prefix
="$acl_final_prefix"
8360 acl_save_exec_prefix
="$exec_prefix"
8361 exec_prefix
="$acl_final_exec_prefix"
8363 exec_prefix
="$acl_save_exec_prefix"
8364 prefix
="$acl_save_prefix"
8366 if test "X$x" = "X-L$found_dir"; then
8371 if test -z "$haveit"; then
8372 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8374 if test "$hardcode_minus_L" != no
; then
8375 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8377 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8383 if test "X$found_a" != "X"; then
8384 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
8386 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8389 additional_includedir
=
8390 case "$found_dir" in
8392 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8393 additional_includedir
="$basedir/include"
8396 if test "X$additional_includedir" != "X"; then
8397 if test "X$additional_includedir" != "X/usr/include"; then
8399 if test "X$additional_includedir" = "X/usr/local/include"; then
8400 if test -n "$GCC"; then
8402 linux
*) haveit
=yes;;
8406 if test -z "$haveit"; then
8407 for x
in $CPPFLAGS $INCICONV; do
8409 acl_save_prefix
="$prefix"
8410 prefix
="$acl_final_prefix"
8411 acl_save_exec_prefix
="$exec_prefix"
8412 exec_prefix
="$acl_final_exec_prefix"
8414 exec_prefix
="$acl_save_exec_prefix"
8415 prefix
="$acl_save_prefix"
8417 if test "X$x" = "X-I$additional_includedir"; then
8422 if test -z "$haveit"; then
8423 if test -d "$additional_includedir"; then
8424 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8430 if test -n "$found_la"; then
8431 save_libdir
="$libdir"
8433 */* |
*\\*) .
"$found_la" ;;
8434 *) .
"./$found_la" ;;
8436 libdir
="$save_libdir"
8437 for dep
in $dependency_libs; do
8440 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8441 if test "X$additional_libdir" != "X/usr/lib"; then
8443 if test "X$additional_libdir" = "X/usr/local/lib"; then
8444 if test -n "$GCC"; then
8446 linux
*) haveit
=yes;;
8450 if test -z "$haveit"; then
8452 for x
in $LDFLAGS $LIBICONV; do
8454 acl_save_prefix
="$prefix"
8455 prefix
="$acl_final_prefix"
8456 acl_save_exec_prefix
="$exec_prefix"
8457 exec_prefix
="$acl_final_exec_prefix"
8459 exec_prefix
="$acl_save_exec_prefix"
8460 prefix
="$acl_save_prefix"
8462 if test "X$x" = "X-L$additional_libdir"; then
8467 if test -z "$haveit"; then
8468 if test -d "$additional_libdir"; then
8469 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8473 for x
in $LDFLAGS $LTLIBICONV; do
8475 acl_save_prefix
="$prefix"
8476 prefix
="$acl_final_prefix"
8477 acl_save_exec_prefix
="$exec_prefix"
8478 exec_prefix
="$acl_final_exec_prefix"
8480 exec_prefix
="$acl_save_exec_prefix"
8481 prefix
="$acl_save_prefix"
8483 if test "X$x" = "X-L$additional_libdir"; then
8488 if test -z "$haveit"; then
8489 if test -d "$additional_libdir"; then
8490 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8497 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8498 if test "$enable_rpath" != no
; then
8500 for x
in $rpathdirs; do
8501 if test "X$x" = "X$dir"; then
8506 if test -z "$haveit"; then
8507 rpathdirs
="$rpathdirs $dir"
8510 for x
in $ltrpathdirs; do
8511 if test "X$x" = "X$dir"; then
8516 if test -z "$haveit"; then
8517 ltrpathdirs
="$ltrpathdirs $dir"
8522 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8525 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8528 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
8529 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8535 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
8536 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8537 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8539 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
8540 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
8547 if test "X$rpathdirs" != "X"; then
8548 if test -n "$hardcode_libdir_separator"; then
8550 for found_dir
in $rpathdirs; do
8551 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8553 acl_save_libdir
="$libdir"
8555 eval flag
=\"$hardcode_libdir_flag_spec\"
8556 libdir
="$acl_save_libdir"
8557 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8559 for found_dir
in $rpathdirs; do
8560 acl_save_libdir
="$libdir"
8562 eval flag
=\"$hardcode_libdir_flag_spec\"
8563 libdir
="$acl_save_libdir"
8564 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8568 if test "X$ltrpathdirs" != "X"; then
8569 for found_dir
in $ltrpathdirs; do
8570 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8581 $as_echo_n "checking for iconv... " >&6; }
8582 if ${am_cv_func_iconv+:} false
; then :
8583 $as_echo_n "(cached) " >&6
8586 am_cv_func_iconv
="no, consider installing GNU libiconv"
8588 am_save_CPPFLAGS
="$CPPFLAGS"
8589 CPPFLAGS
="$CPPFLAGS $INCICONV"
8590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8591 /* end confdefs.h. */
8597 iconv_t cd = iconv_open("","");
8598 iconv(cd,NULL,NULL,NULL,NULL);
8604 if ac_fn_c_try_link
"$LINENO"; then :
8605 am_cv_func_iconv
=yes
8607 rm -f core conftest.err conftest.
$ac_objext \
8608 conftest
$ac_exeext conftest.
$ac_ext
8609 CPPFLAGS
="$am_save_CPPFLAGS"
8611 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
8612 for _libs
in .libs _libs
; do
8613 am_save_CPPFLAGS
="$CPPFLAGS"
8614 am_save_LIBS
="$LIBS"
8615 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
8616 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
8617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8618 /* end confdefs.h. */
8624 iconv_t cd = iconv_open("","");
8625 iconv(cd,NULL,NULL,NULL,NULL);
8631 if ac_fn_c_try_link
"$LINENO"; then :
8632 INCICONV
="-I../libiconv/include"
8633 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
8634 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
8636 am_cv_func_iconv
=yes
8638 rm -f core conftest.err conftest.
$ac_objext \
8639 conftest
$ac_exeext conftest.
$ac_ext
8640 CPPFLAGS
="$am_save_CPPFLAGS"
8641 LIBS
="$am_save_LIBS"
8642 if test "$am_cv_func_iconv" = "yes"; then
8648 if test "$am_cv_func_iconv" != yes; then
8649 am_save_CPPFLAGS
="$CPPFLAGS"
8650 am_save_LIBS
="$LIBS"
8651 CPPFLAGS
="$CPPFLAGS $INCICONV"
8652 LIBS
="$LIBS $LIBICONV"
8653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8654 /* end confdefs.h. */
8660 iconv_t cd = iconv_open("","");
8661 iconv(cd,NULL,NULL,NULL,NULL);
8667 if ac_fn_c_try_link
"$LINENO"; then :
8669 am_cv_func_iconv
=yes
8671 rm -f core conftest.err conftest.
$ac_objext \
8672 conftest
$ac_exeext conftest.
$ac_ext
8673 CPPFLAGS
="$am_save_CPPFLAGS"
8674 LIBS
="$am_save_LIBS"
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8679 $as_echo "$am_cv_func_iconv" >&6; }
8680 if test "$am_cv_func_iconv" = yes; then
8682 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8685 if test "$am_cv_lib_iconv" = yes; then
8687 for element
in $INCICONV; do
8689 for x
in $CPPFLAGS; do
8691 acl_save_prefix
="$prefix"
8692 prefix
="$acl_final_prefix"
8693 acl_save_exec_prefix
="$exec_prefix"
8694 exec_prefix
="$acl_final_exec_prefix"
8696 exec_prefix
="$acl_save_exec_prefix"
8697 prefix
="$acl_save_prefix"
8699 if test "X$x" = "X$element"; then
8704 if test -z "$haveit"; then
8705 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8710 $as_echo_n "checking how to link with libiconv... " >&6; }
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8712 $as_echo "$LIBICONV" >&6; }
8720 if test "$am_cv_func_iconv" = yes; then
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8722 $as_echo_n "checking for iconv declaration... " >&6; }
8723 if ${am_cv_proto_iconv+:} false
; then :
8724 $as_echo_n "(cached) " >&6
8727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8728 /* end confdefs.h. */
8736 #if defined(__STDC__) || defined(__cplusplus)
8737 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8750 if ac_fn_c_try_compile
"$LINENO"; then :
8751 am_cv_proto_iconv_arg1
=""
8753 am_cv_proto_iconv_arg1
="const"
8755 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8756 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);"
8759 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8761 }$am_cv_proto_iconv" >&5
8763 }$am_cv_proto_iconv" >&6; }
8765 cat >>confdefs.h
<<_ACEOF
8766 #define ICONV_CONST $am_cv_proto_iconv_arg1
8772 # GDB may fork/exec the iconv program to get the list of supported character
8773 # sets. Allow the user to specify where to find it.
8774 # There are several factors affecting the choice of option name:
8775 # - There is already --with-libiconv-prefix but we can't use it, it specifies
8776 # the build-time location of libiconv files.
8777 # - The program we need to find is iconv, which comes with glibc. The user
8778 # doesn't necessarily have libiconv installed. Therefore naming this
8779 # --with-libiconv-foo feels wrong.
8780 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
8781 # defined to work on directories not files (though it really doesn't know
8783 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
8784 # with --with-libiconv-prefix.
8785 # Putting these together is why the option name is --with-iconv-bin.
8788 # Check whether --with-iconv-bin was given.
8789 if test "${with_iconv_bin+set}" = set; then :
8790 withval
=$with_iconv_bin; iconv_bin
="${withval}"
8792 cat >>confdefs.h
<<_ACEOF
8793 #define ICONV_BIN "${iconv_bin}"
8797 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
8798 if test "x$prefix" = xNONE
; then
8799 test_prefix
=/usr
/local
8804 test_prefix
=$exec_prefix
8807 case ${iconv_bin} in
8808 "${test_prefix}"|
"${test_prefix}/"*|\
8809 '${exec_prefix}'|
'${exec_prefix}/'*)
8814 cat >>confdefs.h
<<_ACEOF
8815 #define ICONV_BIN_RELOCATABLE $value
8823 # For the TUI, we need enhanced curses functionality.
8824 if test x
"$enable_tui" != xno
; then
8829 if test x
"$prefer_curses" = xyes
; then
8830 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8831 # curses library because the latter might not provide all the
8832 # functionality we need. However, this leads to problems on systems
8833 # where the linker searches /usr/local/lib, but the compiler doesn't
8834 # search /usr/local/include, if ncurses is installed in /usr/local. A
8835 # default installation of ncurses on alpha*-dec-osf* will lead to such
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
8838 $as_echo_n "checking for library containing waddstr... " >&6; }
8839 if ${ac_cv_search_waddstr+:} false
; then :
8840 $as_echo_n "(cached) " >&6
8842 ac_func_search_save_LIBS
=$LIBS
8843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8844 /* end confdefs.h. */
8846 /* Override any GCC internal prototype to avoid an error.
8847 Use char because int might match the return type of a GCC
8848 builtin and then its argument prototype would still apply. */
8861 for ac_lib
in '' ncursesw ncurses cursesX curses
; do
8862 if test -z "$ac_lib"; then
8863 ac_res
="none required"
8866 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8868 if ac_fn_c_try_link
"$LINENO"; then :
8869 ac_cv_search_waddstr
=$ac_res
8871 rm -f core conftest.err conftest.
$ac_objext \
8873 if ${ac_cv_search_waddstr+:} false
; then :
8877 if ${ac_cv_search_waddstr+:} false
; then :
8880 ac_cv_search_waddstr
=no
8883 LIBS
=$ac_func_search_save_LIBS
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
8886 $as_echo "$ac_cv_search_waddstr" >&6; }
8887 ac_res
=$ac_cv_search_waddstr
8888 if test "$ac_res" != no
; then :
8889 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8894 if test "$ac_cv_search_waddstr" != no
; then
8899 # Check whether we should enable the TUI, but only do so if we really
8901 if test x
"$enable_tui" != xno
; then
8902 if test -d "$srcdir/tui"; then
8903 if test "$curses_found" != no
; then
8904 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
8905 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
8906 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
8907 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
8909 if test x
"$enable_tui" = xyes
; then
8910 as_fn_error $?
"no enhanced curses library found; disable TUI" "$LINENO" 5
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
8913 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
8919 # Since GDB uses Readline, we need termcap functionality. In many
8920 # cases this will be provided by the curses library, but some systems
8921 # have a separate termcap library, or no curses library at all.
8925 if test -d "$srcdir/libtermcap"; then
8926 LIBS
="../libtermcap/libtermcap.a $LIBS"
8927 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
8930 ac_cv_search_tgetent
="none required"
8934 # These are the libraries checked by Readline.
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
8936 $as_echo_n "checking for library containing tgetent... " >&6; }
8937 if ${ac_cv_search_tgetent+:} false
; then :
8938 $as_echo_n "(cached) " >&6
8940 ac_func_search_save_LIBS
=$LIBS
8941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8942 /* end confdefs.h. */
8944 /* Override any GCC internal prototype to avoid an error.
8945 Use char because int might match the return type of a GCC
8946 builtin and then its argument prototype would still apply. */
8959 for ac_lib
in '' termcap tinfow tinfo curses ncursesw ncurses
; do
8960 if test -z "$ac_lib"; then
8961 ac_res
="none required"
8964 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8966 if ac_fn_c_try_link
"$LINENO"; then :
8967 ac_cv_search_tgetent
=$ac_res
8969 rm -f core conftest.err conftest.
$ac_objext \
8971 if ${ac_cv_search_tgetent+:} false
; then :
8975 if ${ac_cv_search_tgetent+:} false
; then :
8978 ac_cv_search_tgetent
=no
8981 LIBS
=$ac_func_search_save_LIBS
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
8984 $as_echo "$ac_cv_search_tgetent" >&6; }
8985 ac_res
=$ac_cv_search_tgetent
8986 if test "$ac_res" != no
; then :
8987 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8992 if test "$ac_cv_search_tgetent" = no
; then
8993 CONFIG_OBS
="$CONFIG_OBS stub-termcap.o"
8997 # Check whether --with-system-readline was given.
8998 if test "${with_system_readline+set}" = set; then :
8999 withval
=$with_system_readline;
9003 if test "$with_system_readline" = yes; then
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system readline is new enough" >&5
9005 $as_echo_n "checking whether system readline is new enough... " >&6; }
9006 if ${gdb_cv_readline_ok+:} false
; then :
9007 $as_echo_n "(cached) " >&6
9009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9010 /* end confdefs.h. */
9012 #include <readline/readline.h>
9016 #if RL_VERSION_MAJOR < 7
9017 # error "readline version 7 required"
9023 if ac_fn_c_try_compile
"$LINENO"; then :
9024 gdb_cv_readline_ok
=yes
9026 gdb_cv_readline_ok
=no
9028 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_readline_ok" >&5
9031 $as_echo "$gdb_cv_readline_ok" >&6; }
9032 if test "$gdb_cv_readline_ok" != yes; then
9033 as_fn_error $?
"system readline is not new enough" "$LINENO" 5
9039 READLINE_TEXI_INCFLAG
=
9041 READLINE
='$(READLINE_DIR)/libreadline.a'
9042 READLINE_DEPS
='$(READLINE)'
9043 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
9044 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
9051 # Generate jit-reader.h
9053 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
9056 # The cast to long int works around a bug in the HP C Compiler
9057 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9058 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9059 # This bug is HP SR number 8606223364.
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
9061 $as_echo_n "checking size of unsigned long long... " >&6; }
9062 if ${ac_cv_sizeof_unsigned_long_long+:} false
; then :
9063 $as_echo_n "(cached) " >&6
9065 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
9068 if test "$ac_cv_type_unsigned_long_long" = yes; then
9069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9071 as_fn_error
77 "cannot compute sizeof (unsigned long long)
9072 See \`config.log' for more details" "$LINENO" 5; }
9074 ac_cv_sizeof_unsigned_long_long
=0
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
9080 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
9084 cat >>confdefs.h
<<_ACEOF
9085 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
9089 # The cast to long int works around a bug in the HP C Compiler
9090 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9091 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9092 # This bug is HP SR number 8606223364.
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
9094 $as_echo_n "checking size of unsigned long... " >&6; }
9095 if ${ac_cv_sizeof_unsigned_long+:} false
; then :
9096 $as_echo_n "(cached) " >&6
9098 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
9101 if test "$ac_cv_type_unsigned_long" = yes; then
9102 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9104 as_fn_error
77 "cannot compute sizeof (unsigned long)
9105 See \`config.log' for more details" "$LINENO" 5; }
9107 ac_cv_sizeof_unsigned_long
=0
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
9113 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
9117 cat >>confdefs.h
<<_ACEOF
9118 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9122 # The cast to long int works around a bug in the HP C Compiler
9123 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9124 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9125 # This bug is HP SR number 8606223364.
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
9127 $as_echo_n "checking size of unsigned __int128... " >&6; }
9128 if ${ac_cv_sizeof_unsigned___int128+:} false
; then :
9129 $as_echo_n "(cached) " >&6
9131 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
9134 if test "$ac_cv_type_unsigned___int128" = yes; then
9135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9137 as_fn_error
77 "cannot compute sizeof (unsigned __int128)
9138 See \`config.log' for more details" "$LINENO" 5; }
9140 ac_cv_sizeof_unsigned___int128
=0
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
9146 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
9150 cat >>confdefs.h
<<_ACEOF
9151 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
9156 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9157 TARGET_PTR
="unsigned long"
9158 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9159 TARGET_PTR
="unsigned long long"
9160 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
9161 TARGET_PTR
="unsigned __int128"
9163 TARGET_PTR
="unsigned long"
9167 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9171 $as_echo_n "checking for library containing dlopen... " >&6; }
9172 if ${ac_cv_search_dlopen+:} false
; then :
9173 $as_echo_n "(cached) " >&6
9175 ac_func_search_save_LIBS
=$LIBS
9176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9177 /* end confdefs.h. */
9179 /* Override any GCC internal prototype to avoid an error.
9180 Use char because int might match the return type of a GCC
9181 builtin and then its argument prototype would still apply. */
9194 for ac_lib
in '' dl
; do
9195 if test -z "$ac_lib"; then
9196 ac_res
="none required"
9199 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9201 if ac_fn_c_try_link
"$LINENO"; then :
9202 ac_cv_search_dlopen
=$ac_res
9204 rm -f core conftest.err conftest.
$ac_objext \
9206 if ${ac_cv_search_dlopen+:} false
; then :
9210 if ${ac_cv_search_dlopen+:} false
; then :
9213 ac_cv_search_dlopen
=no
9216 LIBS
=$ac_func_search_save_LIBS
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9219 $as_echo "$ac_cv_search_dlopen" >&6; }
9220 ac_res
=$ac_cv_search_dlopen
9221 if test "$ac_res" != no
; then :
9222 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9229 # Check whether --with-jit-reader-dir was given.
9230 if test "${with_jit_reader_dir+set}" = set; then :
9231 withval
=$with_jit_reader_dir;
9232 JIT_READER_DIR
=$withval
9234 JIT_READER_DIR
=${libdir}/gdb
9238 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9239 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9240 ac_define_dir
=`eval echo $JIT_READER_DIR`
9241 ac_define_dir
=`eval echo $ac_define_dir`
9243 cat >>confdefs.h
<<_ACEOF
9244 #define JIT_READER_DIR "$ac_define_dir"
9250 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9251 if test "x$prefix" = xNONE
; then
9252 test_prefix
=/usr
/local
9257 test_prefix
=$exec_prefix
9260 case ${ac_define_dir} in
9261 "${test_prefix}"|
"${test_prefix}/"*|\
9262 '${exec_prefix}'|
'${exec_prefix}/'*)
9267 cat >>confdefs.h
<<_ACEOF
9268 #define JIT_READER_DIR_RELOCATABLE $value
9275 # Check whether --with-expat was given.
9276 if test "${with_expat+set}" = set; then :
9277 withval
=$with_expat;
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9283 $as_echo_n "checking whether to use expat... " >&6; }
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9285 $as_echo "$with_expat" >&6; }
9287 if test "${with_expat}" = no
; then
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9289 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9302 acl_save_prefix
="$prefix"
9303 prefix
="$acl_final_prefix"
9304 acl_save_exec_prefix
="$exec_prefix"
9305 exec_prefix
="$acl_final_exec_prefix"
9307 eval additional_includedir
=\"$includedir\"
9308 eval additional_libdir
=\"$libdir\"
9310 exec_prefix
="$acl_save_exec_prefix"
9311 prefix
="$acl_save_prefix"
9314 # Check whether --with-libexpat-prefix was given.
9315 if test "${with_libexpat_prefix+set}" = set; then :
9316 withval
=$with_libexpat_prefix;
9317 if test "X$withval" = "Xno"; then
9320 if test "X$withval" = "X"; then
9322 acl_save_prefix
="$prefix"
9323 prefix
="$acl_final_prefix"
9324 acl_save_exec_prefix
="$exec_prefix"
9325 exec_prefix
="$acl_final_exec_prefix"
9327 eval additional_includedir
=\"$includedir\"
9328 eval additional_libdir
=\"$libdir\"
9330 exec_prefix
="$acl_save_exec_prefix"
9331 prefix
="$acl_save_prefix"
9334 additional_includedir
="$withval/include"
9335 additional_libdir
="$withval/lib"
9342 # Check whether --with-libexpat-type was given.
9343 if test "${with_libexpat_type+set}" = set; then :
9344 withval
=$with_libexpat_type; with_libexpat_type
=$withval
9346 with_libexpat_type
=auto
9349 lib_type
=`eval echo \$with_libexpat_type`
9356 names_already_handled
=
9357 names_next_round
='expat '
9358 while test -n "$names_next_round"; do
9359 names_this_round
="$names_next_round"
9361 for name
in $names_this_round; do
9363 for n
in $names_already_handled; do
9364 if test "$n" = "$name"; then
9369 if test -z "$already_handled"; then
9370 names_already_handled
="$names_already_handled $name"
9371 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9372 eval value
=\"\
$HAVE_LIB$uppername\"
9373 if test -n "$value"; then
9374 if test "$value" = yes; then
9375 eval value
=\"\
$LIB$uppername\"
9376 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
9377 eval value
=\"\
$LTLIB$uppername\"
9378 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
9387 if test $use_additional = yes; then
9388 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9389 found_dir
="$additional_libdir"
9390 found_so
="$additional_libdir/lib$name.$shlibext"
9391 if test -f "$additional_libdir/lib$name.la"; then
9392 found_la
="$additional_libdir/lib$name.la"
9394 elif test x
$lib_type != xshared
; then
9395 if test -f "$additional_libdir/lib$name.$libext"; then
9396 found_dir
="$additional_libdir"
9397 found_a
="$additional_libdir/lib$name.$libext"
9398 if test -f "$additional_libdir/lib$name.la"; then
9399 found_la
="$additional_libdir/lib$name.la"
9404 if test "X$found_dir" = "X"; then
9405 for x
in $LDFLAGS $LTLIBEXPAT; do
9407 acl_save_prefix
="$prefix"
9408 prefix
="$acl_final_prefix"
9409 acl_save_exec_prefix
="$exec_prefix"
9410 exec_prefix
="$acl_final_exec_prefix"
9412 exec_prefix
="$acl_save_exec_prefix"
9413 prefix
="$acl_save_prefix"
9417 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9418 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9420 found_so
="$dir/lib$name.$shlibext"
9421 if test -f "$dir/lib$name.la"; then
9422 found_la
="$dir/lib$name.la"
9424 elif test x
$lib_type != xshared
; then
9425 if test -f "$dir/lib$name.$libext"; then
9427 found_a
="$dir/lib$name.$libext"
9428 if test -f "$dir/lib$name.la"; then
9429 found_la
="$dir/lib$name.la"
9435 if test "X$found_dir" != "X"; then
9440 if test "X$found_dir" != "X"; then
9441 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
9442 if test "X$found_so" != "X"; then
9443 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9444 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9447 for x
in $ltrpathdirs; do
9448 if test "X$x" = "X$found_dir"; then
9453 if test -z "$haveit"; then
9454 ltrpathdirs
="$ltrpathdirs $found_dir"
9456 if test "$hardcode_direct" = yes; then
9457 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9459 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9460 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9462 for x
in $rpathdirs; do
9463 if test "X$x" = "X$found_dir"; then
9468 if test -z "$haveit"; then
9469 rpathdirs
="$rpathdirs $found_dir"
9473 for x
in $LDFLAGS $LIBEXPAT; do
9475 acl_save_prefix
="$prefix"
9476 prefix
="$acl_final_prefix"
9477 acl_save_exec_prefix
="$exec_prefix"
9478 exec_prefix
="$acl_final_exec_prefix"
9480 exec_prefix
="$acl_save_exec_prefix"
9481 prefix
="$acl_save_prefix"
9483 if test "X$x" = "X-L$found_dir"; then
9488 if test -z "$haveit"; then
9489 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
9491 if test "$hardcode_minus_L" != no
; then
9492 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9494 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9500 if test "X$found_a" != "X"; then
9501 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
9503 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
9506 additional_includedir
=
9507 case "$found_dir" in
9509 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9510 additional_includedir
="$basedir/include"
9513 if test "X$additional_includedir" != "X"; then
9514 if test "X$additional_includedir" != "X/usr/include"; then
9516 if test "X$additional_includedir" = "X/usr/local/include"; then
9517 if test -n "$GCC"; then
9519 linux
*) haveit
=yes;;
9523 if test -z "$haveit"; then
9524 for x
in $CPPFLAGS $INCEXPAT; do
9526 acl_save_prefix
="$prefix"
9527 prefix
="$acl_final_prefix"
9528 acl_save_exec_prefix
="$exec_prefix"
9529 exec_prefix
="$acl_final_exec_prefix"
9531 exec_prefix
="$acl_save_exec_prefix"
9532 prefix
="$acl_save_prefix"
9534 if test "X$x" = "X-I$additional_includedir"; then
9539 if test -z "$haveit"; then
9540 if test -d "$additional_includedir"; then
9541 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
9547 if test -n "$found_la"; then
9548 save_libdir
="$libdir"
9550 */* |
*\\*) .
"$found_la" ;;
9551 *) .
"./$found_la" ;;
9553 libdir
="$save_libdir"
9554 for dep
in $dependency_libs; do
9557 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9558 if test "X$additional_libdir" != "X/usr/lib"; then
9560 if test "X$additional_libdir" = "X/usr/local/lib"; then
9561 if test -n "$GCC"; then
9563 linux
*) haveit
=yes;;
9567 if test -z "$haveit"; then
9569 for x
in $LDFLAGS $LIBEXPAT; do
9571 acl_save_prefix
="$prefix"
9572 prefix
="$acl_final_prefix"
9573 acl_save_exec_prefix
="$exec_prefix"
9574 exec_prefix
="$acl_final_exec_prefix"
9576 exec_prefix
="$acl_save_exec_prefix"
9577 prefix
="$acl_save_prefix"
9579 if test "X$x" = "X-L$additional_libdir"; then
9584 if test -z "$haveit"; then
9585 if test -d "$additional_libdir"; then
9586 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
9590 for x
in $LDFLAGS $LTLIBEXPAT; do
9592 acl_save_prefix
="$prefix"
9593 prefix
="$acl_final_prefix"
9594 acl_save_exec_prefix
="$exec_prefix"
9595 exec_prefix
="$acl_final_exec_prefix"
9597 exec_prefix
="$acl_save_exec_prefix"
9598 prefix
="$acl_save_prefix"
9600 if test "X$x" = "X-L$additional_libdir"; then
9605 if test -z "$haveit"; then
9606 if test -d "$additional_libdir"; then
9607 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
9614 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9615 if test "$enable_rpath" != no
; then
9617 for x
in $rpathdirs; do
9618 if test "X$x" = "X$dir"; then
9623 if test -z "$haveit"; then
9624 rpathdirs
="$rpathdirs $dir"
9627 for x
in $ltrpathdirs; do
9628 if test "X$x" = "X$dir"; then
9633 if test -z "$haveit"; then
9634 ltrpathdirs
="$ltrpathdirs $dir"
9639 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9642 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9645 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
9646 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
9652 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
9653 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9654 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
9656 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l:lib$name.$libext"
9657 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l:lib$name.$libext"
9664 if test "X$rpathdirs" != "X"; then
9665 if test -n "$hardcode_libdir_separator"; then
9667 for found_dir
in $rpathdirs; do
9668 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9670 acl_save_libdir
="$libdir"
9672 eval flag
=\"$hardcode_libdir_flag_spec\"
9673 libdir
="$acl_save_libdir"
9674 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9676 for found_dir
in $rpathdirs; do
9677 acl_save_libdir
="$libdir"
9679 eval flag
=\"$hardcode_libdir_flag_spec\"
9680 libdir
="$acl_save_libdir"
9681 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9685 if test "X$ltrpathdirs" != "X"; then
9686 for found_dir
in $ltrpathdirs; do
9687 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9692 ac_save_CPPFLAGS
="$CPPFLAGS"
9694 for element
in $INCEXPAT; do
9696 for x
in $CPPFLAGS; do
9698 acl_save_prefix
="$prefix"
9699 prefix
="$acl_final_prefix"
9700 acl_save_exec_prefix
="$exec_prefix"
9701 exec_prefix
="$acl_final_exec_prefix"
9703 exec_prefix
="$acl_save_exec_prefix"
9704 prefix
="$acl_save_prefix"
9706 if test "X$x" = "X$element"; then
9711 if test -z "$haveit"; then
9712 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9718 $as_echo_n "checking for libexpat... " >&6; }
9719 if ${ac_cv_libexpat+:} false
; then :
9720 $as_echo_n "(cached) " >&6
9723 ac_save_LIBS
="$LIBS"
9724 LIBS
="$LIBS $LIBEXPAT"
9725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9726 /* end confdefs.h. */
9731 XML_Parser p = XML_ParserCreate (0);
9736 if ac_fn_c_try_link
"$LINENO"; then :
9741 rm -f core conftest.err conftest.
$ac_objext \
9742 conftest
$ac_exeext conftest.
$ac_ext
9743 LIBS
="$ac_save_LIBS"
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
9747 $as_echo "$ac_cv_libexpat" >&6; }
9748 if test "$ac_cv_libexpat" = yes; then
9751 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
9754 $as_echo_n "checking how to link with libexpat... " >&6; }
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
9756 $as_echo "$LIBEXPAT" >&6; }
9759 CPPFLAGS
="$ac_save_CPPFLAGS"
9769 if test "$HAVE_LIBEXPAT" != yes; then
9770 if test "$with_expat" = yes; then
9771 as_fn_error $?
"expat is missing or unusable" "$LINENO" 5
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
9774 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
9778 LIBS
="$LIBS $LIBEXPAT"
9779 for ac_func
in XML_StopParser
9781 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
9782 if test "x$ac_cv_func_XML_StopParser" = xyes
; then :
9783 cat >>confdefs.h
<<_ACEOF
9784 #define HAVE_XML_STOPPARSER 1
9795 # Check whether --with-mpfr was given.
9796 if test "${with_mpfr+set}" = set; then :
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5
9803 $as_echo_n "checking whether to use MPFR... " >&6; }
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5
9805 $as_echo "$with_mpfr" >&6; }
9807 if test "${with_mpfr}" = no
; then
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5
9809 $as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;}
9822 acl_save_prefix
="$prefix"
9823 prefix
="$acl_final_prefix"
9824 acl_save_exec_prefix
="$exec_prefix"
9825 exec_prefix
="$acl_final_exec_prefix"
9827 eval additional_includedir
=\"$includedir\"
9828 eval additional_libdir
=\"$libdir\"
9830 exec_prefix
="$acl_save_exec_prefix"
9831 prefix
="$acl_save_prefix"
9834 # Check whether --with-libmpfr-prefix was given.
9835 if test "${with_libmpfr_prefix+set}" = set; then :
9836 withval
=$with_libmpfr_prefix;
9837 if test "X$withval" = "Xno"; then
9840 if test "X$withval" = "X"; then
9842 acl_save_prefix
="$prefix"
9843 prefix
="$acl_final_prefix"
9844 acl_save_exec_prefix
="$exec_prefix"
9845 exec_prefix
="$acl_final_exec_prefix"
9847 eval additional_includedir
=\"$includedir\"
9848 eval additional_libdir
=\"$libdir\"
9850 exec_prefix
="$acl_save_exec_prefix"
9851 prefix
="$acl_save_prefix"
9854 additional_includedir
="$withval/include"
9855 additional_libdir
="$withval/lib"
9862 # Check whether --with-libmpfr-type was given.
9863 if test "${with_libmpfr_type+set}" = set; then :
9864 withval
=$with_libmpfr_type; with_libmpfr_type
=$withval
9866 with_libmpfr_type
=auto
9869 lib_type
=`eval echo \$with_libmpfr_type`
9876 names_already_handled
=
9877 names_next_round
='mpfr gmp'
9878 while test -n "$names_next_round"; do
9879 names_this_round
="$names_next_round"
9881 for name
in $names_this_round; do
9883 for n
in $names_already_handled; do
9884 if test "$n" = "$name"; then
9889 if test -z "$already_handled"; then
9890 names_already_handled
="$names_already_handled $name"
9891 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9892 eval value
=\"\
$HAVE_LIB$uppername\"
9893 if test -n "$value"; then
9894 if test "$value" = yes; then
9895 eval value
=\"\
$LIB$uppername\"
9896 test -z "$value" || LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$value"
9897 eval value
=\"\
$LTLIB$uppername\"
9898 test -z "$value" || LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$value"
9907 if test $use_additional = yes; then
9908 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9909 found_dir
="$additional_libdir"
9910 found_so
="$additional_libdir/lib$name.$shlibext"
9911 if test -f "$additional_libdir/lib$name.la"; then
9912 found_la
="$additional_libdir/lib$name.la"
9914 elif test x
$lib_type != xshared
; then
9915 if test -f "$additional_libdir/lib$name.$libext"; then
9916 found_dir
="$additional_libdir"
9917 found_a
="$additional_libdir/lib$name.$libext"
9918 if test -f "$additional_libdir/lib$name.la"; then
9919 found_la
="$additional_libdir/lib$name.la"
9924 if test "X$found_dir" = "X"; then
9925 for x
in $LDFLAGS $LTLIBMPFR; do
9927 acl_save_prefix
="$prefix"
9928 prefix
="$acl_final_prefix"
9929 acl_save_exec_prefix
="$exec_prefix"
9930 exec_prefix
="$acl_final_exec_prefix"
9932 exec_prefix
="$acl_save_exec_prefix"
9933 prefix
="$acl_save_prefix"
9937 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9938 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9940 found_so
="$dir/lib$name.$shlibext"
9941 if test -f "$dir/lib$name.la"; then
9942 found_la
="$dir/lib$name.la"
9944 elif test x
$lib_type != xshared
; then
9945 if test -f "$dir/lib$name.$libext"; then
9947 found_a
="$dir/lib$name.$libext"
9948 if test -f "$dir/lib$name.la"; then
9949 found_la
="$dir/lib$name.la"
9955 if test "X$found_dir" != "X"; then
9960 if test "X$found_dir" != "X"; then
9961 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$found_dir -l$name"
9962 if test "X$found_so" != "X"; then
9963 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9964 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
9967 for x
in $ltrpathdirs; do
9968 if test "X$x" = "X$found_dir"; then
9973 if test -z "$haveit"; then
9974 ltrpathdirs
="$ltrpathdirs $found_dir"
9976 if test "$hardcode_direct" = yes; then
9977 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
9979 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9980 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
9982 for x
in $rpathdirs; do
9983 if test "X$x" = "X$found_dir"; then
9988 if test -z "$haveit"; then
9989 rpathdirs
="$rpathdirs $found_dir"
9993 for x
in $LDFLAGS $LIBMPFR; do
9995 acl_save_prefix
="$prefix"
9996 prefix
="$acl_final_prefix"
9997 acl_save_exec_prefix
="$exec_prefix"
9998 exec_prefix
="$acl_final_exec_prefix"
10000 exec_prefix
="$acl_save_exec_prefix"
10001 prefix
="$acl_save_prefix"
10003 if test "X$x" = "X-L$found_dir"; then
10008 if test -z "$haveit"; then
10009 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir"
10011 if test "$hardcode_minus_L" != no
; then
10012 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10014 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10020 if test "X$found_a" != "X"; then
10021 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_a"
10023 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir -l$name"
10026 additional_includedir
=
10027 case "$found_dir" in
10029 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10030 additional_includedir
="$basedir/include"
10033 if test "X$additional_includedir" != "X"; then
10034 if test "X$additional_includedir" != "X/usr/include"; then
10036 if test "X$additional_includedir" = "X/usr/local/include"; then
10037 if test -n "$GCC"; then
10039 linux
*) haveit
=yes;;
10043 if test -z "$haveit"; then
10044 for x
in $CPPFLAGS $INCMPFR; do
10046 acl_save_prefix
="$prefix"
10047 prefix
="$acl_final_prefix"
10048 acl_save_exec_prefix
="$exec_prefix"
10049 exec_prefix
="$acl_final_exec_prefix"
10051 exec_prefix
="$acl_save_exec_prefix"
10052 prefix
="$acl_save_prefix"
10054 if test "X$x" = "X-I$additional_includedir"; then
10059 if test -z "$haveit"; then
10060 if test -d "$additional_includedir"; then
10061 INCMPFR
="${INCMPFR}${INCMPFR:+ }-I$additional_includedir"
10067 if test -n "$found_la"; then
10068 save_libdir
="$libdir"
10069 case "$found_la" in
10070 */* |
*\\*) .
"$found_la" ;;
10071 *) .
"./$found_la" ;;
10073 libdir
="$save_libdir"
10074 for dep
in $dependency_libs; do
10077 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10078 if test "X$additional_libdir" != "X/usr/lib"; then
10080 if test "X$additional_libdir" = "X/usr/local/lib"; then
10081 if test -n "$GCC"; then
10083 linux
*) haveit
=yes;;
10087 if test -z "$haveit"; then
10089 for x
in $LDFLAGS $LIBMPFR; do
10091 acl_save_prefix
="$prefix"
10092 prefix
="$acl_final_prefix"
10093 acl_save_exec_prefix
="$exec_prefix"
10094 exec_prefix
="$acl_final_exec_prefix"
10096 exec_prefix
="$acl_save_exec_prefix"
10097 prefix
="$acl_save_prefix"
10099 if test "X$x" = "X-L$additional_libdir"; then
10104 if test -z "$haveit"; then
10105 if test -d "$additional_libdir"; then
10106 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$additional_libdir"
10110 for x
in $LDFLAGS $LTLIBMPFR; do
10112 acl_save_prefix
="$prefix"
10113 prefix
="$acl_final_prefix"
10114 acl_save_exec_prefix
="$exec_prefix"
10115 exec_prefix
="$acl_final_exec_prefix"
10117 exec_prefix
="$acl_save_exec_prefix"
10118 prefix
="$acl_save_prefix"
10120 if test "X$x" = "X-L$additional_libdir"; then
10125 if test -z "$haveit"; then
10126 if test -d "$additional_libdir"; then
10127 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$additional_libdir"
10134 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10135 if test "$enable_rpath" != no
; then
10137 for x
in $rpathdirs; do
10138 if test "X$x" = "X$dir"; then
10143 if test -z "$haveit"; then
10144 rpathdirs
="$rpathdirs $dir"
10147 for x
in $ltrpathdirs; do
10148 if test "X$x" = "X$dir"; then
10153 if test -z "$haveit"; then
10154 ltrpathdirs
="$ltrpathdirs $dir"
10159 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10162 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10165 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$dep"
10166 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$dep"
10172 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
10173 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10174 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l$name"
10176 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l:lib$name.$libext"
10177 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l:lib$name.$libext"
10184 if test "X$rpathdirs" != "X"; then
10185 if test -n "$hardcode_libdir_separator"; then
10187 for found_dir
in $rpathdirs; do
10188 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10190 acl_save_libdir
="$libdir"
10192 eval flag
=\"$hardcode_libdir_flag_spec\"
10193 libdir
="$acl_save_libdir"
10194 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10196 for found_dir
in $rpathdirs; do
10197 acl_save_libdir
="$libdir"
10198 libdir
="$found_dir"
10199 eval flag
=\"$hardcode_libdir_flag_spec\"
10200 libdir
="$acl_save_libdir"
10201 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10205 if test "X$ltrpathdirs" != "X"; then
10206 for found_dir
in $ltrpathdirs; do
10207 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-R$found_dir"
10212 ac_save_CPPFLAGS
="$CPPFLAGS"
10214 for element
in $INCMPFR; do
10216 for x
in $CPPFLAGS; do
10218 acl_save_prefix
="$prefix"
10219 prefix
="$acl_final_prefix"
10220 acl_save_exec_prefix
="$exec_prefix"
10221 exec_prefix
="$acl_final_exec_prefix"
10223 exec_prefix
="$acl_save_exec_prefix"
10224 prefix
="$acl_save_prefix"
10226 if test "X$x" = "X$element"; then
10231 if test -z "$haveit"; then
10232 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpfr" >&5
10238 $as_echo_n "checking for libmpfr... " >&6; }
10239 if ${ac_cv_libmpfr+:} false
; then :
10240 $as_echo_n "(cached) " >&6
10243 ac_save_LIBS
="$LIBS"
10244 LIBS
="$LIBS $LIBMPFR"
10245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10246 /* end confdefs.h. */
10251 mpfr_exp_t exp; mpfr_t x;
10252 mpfr_frexp (&exp, x, x, MPFR_RNDN);
10257 if ac_fn_c_try_link
"$LINENO"; then :
10262 rm -f core conftest.err conftest.
$ac_objext \
10263 conftest
$ac_exeext conftest.
$ac_ext
10264 LIBS
="$ac_save_LIBS"
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmpfr" >&5
10268 $as_echo "$ac_cv_libmpfr" >&6; }
10269 if test "$ac_cv_libmpfr" = yes; then
10272 $as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libmpfr" >&5
10275 $as_echo_n "checking how to link with libmpfr... " >&6; }
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPFR" >&5
10277 $as_echo "$LIBMPFR" >&6; }
10280 CPPFLAGS
="$ac_save_CPPFLAGS"
10290 if test "$HAVE_LIBMPFR" != yes; then
10291 if test "$with_mpfr" = yes; then
10292 as_fn_error $?
"MPFR is missing or unusable" "$LINENO" 5
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR is missing or unusable; some features may be unavailable." >&5
10295 $as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;}
10300 # --------------------- #
10301 # Check for libpython. #
10302 # --------------------- #
10309 # Check whether --with-python was given.
10310 if test "${with_python+set}" = set; then :
10311 withval
=$with_python;
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10317 $as_echo_n "checking whether to use python... " >&6; }
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10319 $as_echo "$with_python" >&6; }
10321 if test "${with_python}" = no
; then
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10323 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10326 case "${with_python}" in
10328 if test -d "${with_python}"; then
10329 # Assume the python binary is ${with_python}/bin/python.
10330 python_prog
="${with_python}/bin/python"
10332 # If python does not exit ${with_python}/bin, then try in
10333 # ${with_python}. On Windows/MinGW, this is where the Python
10335 if test ! -x "${python_prog}"; then
10336 python_prog
="${with_python}/python"
10339 if test ! -x "${python_prog}"; then
10340 # Fall back to gdb 7.0/7.1 behaviour.
10341 python_prog
=missing
10342 python_prefix
=${with_python}
10344 elif test -x "${with_python}"; then
10345 # While we can't run python compiled for $host (unless host == build),
10346 # the user could write a script that provides the needed information,
10347 # so we support that.
10348 python_prog
=${with_python}
10351 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
10355 # Disallow --with-python=foo/bar.
10356 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
10359 # The user has either specified auto, yes, or the name of the python
10360 # program assumed to be in $PATH.
10362 case "${with_python}" in
10364 if test "${build}" = "${host}"; then
10365 # Extract the first word of "python", so it can be a program name with args.
10366 set dummy python
; ac_word
=$2
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10368 $as_echo_n "checking for $ac_word... " >&6; }
10369 if ${ac_cv_path_python_prog_path+:} false
; then :
10370 $as_echo_n "(cached) " >&6
10372 case $python_prog_path in
10374 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10377 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10378 for as_dir
in $PATH
10381 test -z "$as_dir" && as_dir
=.
10382 for ac_exec_ext
in '' $ac_executable_extensions; do
10383 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10384 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10392 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10396 python_prog_path
=$ac_cv_path_python_prog_path
10397 if test -n "$python_prog_path"; then
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10399 $as_echo "$python_prog_path" >&6; }
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10402 $as_echo "no" >&6; }
10406 if test "${python_prog_path}" = missing
; then
10407 python_prog
=missing
10409 python_prog
=${python_prog_path}
10412 # Not much we can do except assume the cross-compiler will find the
10414 python_prog
=missing
10418 # While we can't run python compiled for $host (unless host == build),
10419 # the user could write a script that provides the needed information,
10420 # so we support that.
10421 python_prog
="${with_python}"
10422 # Extract the first word of "${python_prog}", so it can be a program name with args.
10423 set dummy
${python_prog}; ac_word
=$2
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10425 $as_echo_n "checking for $ac_word... " >&6; }
10426 if ${ac_cv_path_python_prog_path+:} false
; then :
10427 $as_echo_n "(cached) " >&6
10429 case $python_prog_path in
10431 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10434 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10435 for as_dir
in $PATH
10438 test -z "$as_dir" && as_dir
=.
10439 for ac_exec_ext
in '' $ac_executable_extensions; do
10440 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10441 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10449 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10453 python_prog_path
=$ac_cv_path_python_prog_path
10454 if test -n "$python_prog_path"; then
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10456 $as_echo "$python_prog_path" >&6; }
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10459 $as_echo "no" >&6; }
10463 if test "${python_prog_path}" = missing
; then
10464 as_fn_error $?
"unable to find python program ${python_prog}" "$LINENO" 5
10470 if test "${python_prog}" != missing
; then
10471 # We have a python program to use, but it may be too old.
10472 # Don't flag an error for --with-python=auto (the default).
10473 have_python_config
=yes
10474 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
10475 if test $?
!= 0; then
10476 have_python_config
=failed
10477 if test "${with_python}" != auto
; then
10478 as_fn_error $?
"failure running python-config --includes" "$LINENO" 5
10481 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10482 if test $?
!= 0; then
10483 have_python_config
=failed
10484 if test "${with_python}" != auto
; then
10485 as_fn_error $?
"failure running python-config --ldflags" "$LINENO" 5
10488 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10489 if test $?
!= 0; then
10490 have_python_config
=failed
10491 if test "${with_python}" != auto
; then
10492 as_fn_error $?
"failure running python-config --exec-prefix" "$LINENO" 5
10496 # We do not have a python executable we can use to determine where
10497 # to find the Python headers and libs. We cannot guess the include
10498 # path from the python_prefix either, because that include path
10499 # depends on the Python version. So, there is nothing much we can
10500 # do except assume that the compiler will be able to find those files.
10503 have_python_config
=no
10506 # If we have python-config, only try the configuration it provides.
10507 # Otherwise fallback on the old way of trying different versions of
10511 if test "${have_python_config}" = yes; then
10514 new_CPPFLAGS
=${python_includes}
10515 new_LIBS
=${python_libs}
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
10517 $as_echo_n "checking for python... " >&6; }
10518 save_CPPFLAGS
=$CPPFLAGS
10520 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10521 LIBS
="$new_LIBS $LIBS"
10522 found_usable_python
=no
10523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10524 /* end confdefs.h. */
10525 #include "Python.h"
10534 if ac_fn_c_try_link
"$LINENO"; then :
10536 found_usable_python
=yes
10537 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10538 PYTHON_LIBS
=$new_LIBS
10540 rm -f core conftest.err conftest.
$ac_objext \
10541 conftest
$ac_exeext conftest.
$ac_ext
10542 CPPFLAGS
=$save_CPPFLAGS
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10545 $as_echo "${found_usable_python}" >&6; }
10547 elif test "${have_python_config}" != failed
; then
10548 if test "${have_libpython}" = no
; then
10551 new_CPPFLAGS
=${python_includes}
10552 new_LIBS
="-lpython2.7 ${python_libs}"
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
10554 $as_echo_n "checking for python... " >&6; }
10555 save_CPPFLAGS
=$CPPFLAGS
10557 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10558 LIBS
="$new_LIBS $LIBS"
10559 found_usable_python
=no
10560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10561 /* end confdefs.h. */
10562 #include "Python.h"
10571 if ac_fn_c_try_link
"$LINENO"; then :
10573 found_usable_python
=yes
10574 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10575 PYTHON_LIBS
=$new_LIBS
10577 rm -f core conftest.err conftest.
$ac_objext \
10578 conftest
$ac_exeext conftest.
$ac_ext
10579 CPPFLAGS
=$save_CPPFLAGS
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10582 $as_echo "${found_usable_python}" >&6; }
10585 if test "${have_libpython}" = no
; then
10588 new_CPPFLAGS
=${python_includes}
10589 new_LIBS
="-lpython2.6 ${python_libs}"
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
10591 $as_echo_n "checking for python... " >&6; }
10592 save_CPPFLAGS
=$CPPFLAGS
10594 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10595 LIBS
="$new_LIBS $LIBS"
10596 found_usable_python
=no
10597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10598 /* end confdefs.h. */
10599 #include "Python.h"
10608 if ac_fn_c_try_link
"$LINENO"; then :
10610 found_usable_python
=yes
10611 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10612 PYTHON_LIBS
=$new_LIBS
10614 rm -f core conftest.err conftest.
$ac_objext \
10615 conftest
$ac_exeext conftest.
$ac_ext
10616 CPPFLAGS
=$save_CPPFLAGS
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10619 $as_echo "${found_usable_python}" >&6; }
10624 if test "${have_libpython}" = no
; then
10625 case "${with_python}" in
10627 as_fn_error $?
"python is missing or unusable" "$LINENO" 5
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10631 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10634 as_fn_error $?
"no usable python found at ${with_python}" "$LINENO" 5
10638 if test -n "${python_prefix}"; then
10640 cat >>confdefs.h
<<_ACEOF
10641 #define WITH_PYTHON_PATH "${python_prefix}"
10645 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
10646 if test "x$prefix" = xNONE
; then
10647 test_prefix
=/usr
/local
10649 test_prefix
=$prefix
10652 test_prefix
=$exec_prefix
10655 case ${python_prefix} in
10656 "${test_prefix}"|
"${test_prefix}/"*|\
10657 '${exec_prefix}'|
'${exec_prefix}/'*)
10662 cat >>confdefs.h
<<_ACEOF
10663 #define PYTHON_PATH_RELOCATABLE $value
10672 # Check whether --with-python-libdir was given.
10673 if test "${with_python_libdir+set}" = set; then :
10674 withval
=$with_python_libdir;
10677 # If no python libdir is specified then select one based on
10678 # python's prefix path.
10679 if test -n "${python_prefix}"; then
10680 with_python_libdir
=${python_prefix}/lib
10686 if test "${have_libpython}" != no
; then
10688 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10690 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10691 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10692 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
10693 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
10694 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
10696 if test -n "${with_python_libdir}"; then
10698 cat >>confdefs.h
<<_ACEOF
10699 #define WITH_PYTHON_LIBDIR "${with_python_libdir}"
10703 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
10704 if test "x$prefix" = xNONE
; then
10705 test_prefix
=/usr
/local
10707 test_prefix
=$prefix
10710 test_prefix
=$exec_prefix
10713 case ${with_python_libdir} in
10714 "${test_prefix}"|
"${test_prefix}/"*|\
10715 '${exec_prefix}'|
'${exec_prefix}/'*)
10720 cat >>confdefs.h
<<_ACEOF
10721 #define PYTHON_LIBDIR_RELOCATABLE $value
10727 # Flags needed to compile Python code (taken from python-config --cflags).
10728 # We cannot call python-config directly because it will output whatever was
10729 # used when compiling the Python interpreter itself, including flags which
10730 # would make the python-related objects be compiled differently from the
10731 # rest of GDB (e.g., -O2 and -fPIC).
10732 if test "${GCC}" = yes; then
10733 tentative_python_cflags
="-fno-strict-aliasing -fwrapv"
10734 # Python headers recommend -DNDEBUG, but it's unclear if that just
10735 # refers to building Python itself. In release mode, though, it
10736 # doesn't hurt for the Python code in gdb to follow.
10737 $development || tentative_python_cflags
="$tentative_python_cflags -DNDEBUG"
10740 if test "x${tentative_python_cflags}" != x
; then
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10742 $as_echo_n "checking compiler flags for python code... " >&6; }
10743 for flag
in ${tentative_python_cflags}; do
10744 # Check that the compiler accepts it
10745 saved_CFLAGS
="$CFLAGS"
10746 CFLAGS
="$CFLAGS $flag"
10747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10748 /* end confdefs.h. */
10758 if ac_fn_c_try_compile
"$LINENO"; then :
10759 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
10761 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10762 CFLAGS
="$saved_CFLAGS"
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
10765 $as_echo "${PYTHON_CFLAGS}" >&6; }
10768 # On x64 Windows, Python's include headers, and pyconfig.h in
10769 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
10770 # version of Windows. Unfortunately, MS_WIN64 is only defined if
10771 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
10772 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
10773 # The issue was reported to the Python community, but still isn't
10774 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
10776 case "$gdb_host" in
10778 if test "${GCC}" = yes; then
10779 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
10784 # Even if Python support is not compiled in, we need to have this file
10785 # included so that the "python" command, et.al., still exists.
10786 CONFIG_OBS
="$CONFIG_OBS python/python.o"
10787 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
10790 # Work around Python http://bugs.python.org/issue10112. See also
10791 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
10792 # no effect. Note that the only test after this that uses Python is
10793 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
10794 # run without -export-dynamic too.
10795 PYTHON_LIBS
=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
10800 if test "${have_libpython}" != no
; then
10802 HAVE_PYTHON_FALSE
='#'
10804 HAVE_PYTHON_TRUE
='#'
10809 # -------------------- #
10810 # Check for libguile. #
10811 # -------------------- #
10818 # Check whether --with-guile was given.
10819 if test "${with_guile+set}" = set; then :
10820 withval
=$with_guile;
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
10826 $as_echo_n "checking whether to use guile... " >&6; }
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
10828 $as_echo "$with_guile" >&6; }
10830 # Extract the first word of "pkg-config", so it can be a program name with args.
10831 set dummy pkg-config
; ac_word
=$2
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10833 $as_echo_n "checking for $ac_word... " >&6; }
10834 if ${ac_cv_path_pkg_config_prog_path+:} false
; then :
10835 $as_echo_n "(cached) " >&6
10837 case $pkg_config_prog_path in
10839 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
10842 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10843 for as_dir
in $PATH
10846 test -z "$as_dir" && as_dir
=.
10847 for ac_exec_ext
in '' $ac_executable_extensions; do
10848 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10849 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10857 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
10861 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
10862 if test -n "$pkg_config_prog_path"; then
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
10864 $as_echo "$pkg_config_prog_path" >&6; }
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10867 $as_echo "no" >&6; }
10872 try_guile_versions
="guile-2.0"
10874 case "${with_guile}" in
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
10877 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
10880 if test "${pkg_config_prog_path}" = "missing"; then
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
10882 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
10885 pkg_config
=${pkg_config_prog_path}
10886 guile_version_list
=${try_guile_versions}
10889 found_usable_guile
=checking
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
10891 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
10892 for guile_version
in ${guile_version_list}; do
10893 ${pkg_config} --exists ${guile_version} 2>/dev
/null
10894 if test $?
!= 0; then
10897 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
10898 if test $?
!= 0; then
10899 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
10901 new_LIBS
=`${pkg_config} --libs ${guile_version}`
10902 if test $?
!= 0; then
10903 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
10905 found_usable_guile
=${guile_version}
10908 if test "${found_usable_guile}" = "checking"; then
10909 if test "${flag_errors}" = "yes"; then
10910 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
10912 found_usable_guile
=no
10915 if test "${found_usable_guile}" != no
; then
10916 save_CPPFLAGS
=$CPPFLAGS
10918 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10919 LIBS
="$LIBS $new_LIBS"
10920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10921 /* end confdefs.h. */
10922 #include "libguile.h"
10931 if ac_fn_c_try_link
"$LINENO"; then :
10933 GUILE_CPPFLAGS
=$new_CPPFLAGS
10934 GUILE_LIBS
=$new_LIBS
10936 found_usable_guile
=no
10938 rm -f core conftest.err conftest.
$ac_objext \
10939 conftest
$ac_exeext conftest.
$ac_ext
10940 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
10941 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
10943 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
10948 CPPFLAGS
=$save_CPPFLAGS
10950 if test "${found_usable_guile}" = no
; then
10951 if test "${flag_errors}" = yes; then
10952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10954 as_fn_error $?
"linking guile version ${guile_version} test program failed
10955 See \`config.log' for more details" "$LINENO" 5; }
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
10960 $as_echo "${found_usable_guile}" >&6; }
10965 if test "${pkg_config_prog_path}" = "missing"; then
10966 as_fn_error $?
"pkg-config not found" "$LINENO" 5
10969 pkg_config
=${pkg_config_prog_path}
10970 guile_version_list
=${try_guile_versions}
10973 found_usable_guile
=checking
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
10975 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
10976 for guile_version
in ${guile_version_list}; do
10977 ${pkg_config} --exists ${guile_version} 2>/dev
/null
10978 if test $?
!= 0; then
10981 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
10982 if test $?
!= 0; then
10983 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
10985 new_LIBS
=`${pkg_config} --libs ${guile_version}`
10986 if test $?
!= 0; then
10987 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
10989 found_usable_guile
=${guile_version}
10992 if test "${found_usable_guile}" = "checking"; then
10993 if test "${flag_errors}" = "yes"; then
10994 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
10996 found_usable_guile
=no
10999 if test "${found_usable_guile}" != no
; then
11000 save_CPPFLAGS
=$CPPFLAGS
11002 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11003 LIBS
="$LIBS $new_LIBS"
11004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11005 /* end confdefs.h. */
11006 #include "libguile.h"
11015 if ac_fn_c_try_link
"$LINENO"; then :
11017 GUILE_CPPFLAGS
=$new_CPPFLAGS
11018 GUILE_LIBS
=$new_LIBS
11020 found_usable_guile
=no
11022 rm -f core conftest.err conftest.
$ac_objext \
11023 conftest
$ac_exeext conftest.
$ac_ext
11024 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11025 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11027 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11032 CPPFLAGS
=$save_CPPFLAGS
11034 if test "${found_usable_guile}" = no
; then
11035 if test "${flag_errors}" = yes; then
11036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11038 as_fn_error $?
"linking guile version ${guile_version} test program failed
11039 See \`config.log' for more details" "$LINENO" 5; }
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11044 $as_echo "${found_usable_guile}" >&6; }
11048 if test -x "${with_guile}"; then
11050 pkg_config
=${with_guile}
11051 guile_version_list
=${try_guile_versions}
11054 found_usable_guile
=checking
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11056 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11057 for guile_version
in ${guile_version_list}; do
11058 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11059 if test $?
!= 0; then
11062 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11063 if test $?
!= 0; then
11064 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11066 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11067 if test $?
!= 0; then
11068 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11070 found_usable_guile
=${guile_version}
11073 if test "${found_usable_guile}" = "checking"; then
11074 if test "${flag_errors}" = "yes"; then
11075 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11077 found_usable_guile
=no
11080 if test "${found_usable_guile}" != no
; then
11081 save_CPPFLAGS
=$CPPFLAGS
11083 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11084 LIBS
="$LIBS $new_LIBS"
11085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11086 /* end confdefs.h. */
11087 #include "libguile.h"
11096 if ac_fn_c_try_link
"$LINENO"; then :
11098 GUILE_CPPFLAGS
=$new_CPPFLAGS
11099 GUILE_LIBS
=$new_LIBS
11101 found_usable_guile
=no
11103 rm -f core conftest.err conftest.
$ac_objext \
11104 conftest
$ac_exeext conftest.
$ac_ext
11105 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11106 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11108 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11113 CPPFLAGS
=$save_CPPFLAGS
11115 if test "${found_usable_guile}" = no
; then
11116 if test "${flag_errors}" = yes; then
11117 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11118 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11119 as_fn_error $?
"linking guile version ${guile_version} test program failed
11120 See \`config.log' for more details" "$LINENO" 5; }
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11125 $as_echo "${found_usable_guile}" >&6; }
11128 as_fn_error $?
"Guile config program not executable: ${with_guile}" "$LINENO" 5
11132 # Disallow --with=guile="" and --with-guile=foo/bar.
11133 as_fn_error $?
"invalid value for --with-guile" "$LINENO" 5
11136 # A space separate list of guile versions to try, in order.
11137 if test "${pkg_config_prog_path}" = "missing"; then
11138 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11141 pkg_config
=${pkg_config_prog_path}
11142 guile_version_list
=${with_guile}
11145 found_usable_guile
=checking
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11147 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11148 for guile_version
in ${guile_version_list}; do
11149 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11150 if test $?
!= 0; then
11153 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11154 if test $?
!= 0; then
11155 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11157 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11158 if test $?
!= 0; then
11159 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11161 found_usable_guile
=${guile_version}
11164 if test "${found_usable_guile}" = "checking"; then
11165 if test "${flag_errors}" = "yes"; then
11166 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11168 found_usable_guile
=no
11171 if test "${found_usable_guile}" != no
; then
11172 save_CPPFLAGS
=$CPPFLAGS
11174 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11175 LIBS
="$LIBS $new_LIBS"
11176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11177 /* end confdefs.h. */
11178 #include "libguile.h"
11187 if ac_fn_c_try_link
"$LINENO"; then :
11189 GUILE_CPPFLAGS
=$new_CPPFLAGS
11190 GUILE_LIBS
=$new_LIBS
11192 found_usable_guile
=no
11194 rm -f core conftest.err conftest.
$ac_objext \
11195 conftest
$ac_exeext conftest.
$ac_ext
11196 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11197 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11199 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11204 CPPFLAGS
=$save_CPPFLAGS
11206 if test "${found_usable_guile}" = no
; then
11207 if test "${flag_errors}" = yes; then
11208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11210 as_fn_error $?
"linking guile version ${guile_version} test program failed
11211 See \`config.log' for more details" "$LINENO" 5; }
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11216 $as_echo "${found_usable_guile}" >&6; }
11221 if test "${have_libguile}" != no
; then
11222 case "${with_guile}" in
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11226 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11227 if ${ac_cv_guild_program_name+:} false
; then :
11228 $as_echo_n "(cached) " >&6
11230 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
11232 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11233 # the 'guild' and 'bindir' variables. In that case, try to guess
11234 # what the program name is, at the risk of getting it wrong if
11235 # Guile was configured with '--program-suffix' or similar.
11236 if test "x$ac_cv_guild_program_name" = "x"; then
11237 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
11238 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11243 $as_echo "$ac_cv_guild_program_name" >&6; }
11245 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11246 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11249 GUILD
="$ac_cv_guild_program_name"
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11256 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11257 if ${ac_cv_guild_program_name+:} false
; then :
11258 $as_echo_n "(cached) " >&6
11260 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
11262 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11263 # the 'guild' and 'bindir' variables. In that case, try to guess
11264 # what the program name is, at the risk of getting it wrong if
11265 # Guile was configured with '--program-suffix' or similar.
11266 if test "x$ac_cv_guild_program_name" = "x"; then
11267 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
11268 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11273 $as_echo "$ac_cv_guild_program_name" >&6; }
11275 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11276 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11279 GUILD
="$ac_cv_guild_program_name"
11286 if test "$cross_compiling" = no
; then
11289 GUILD_TARGET_FLAG
="--target=$host"
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
11296 $as_echo_n "checking whether guild supports this host... " >&6; }
11297 if ${ac_cv_guild_ok+:} false
; then :
11298 $as_echo_n "(cached) " >&6
11300 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
11301 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
11308 $as_echo "$ac_cv_guild_ok" >&6; }
11310 if test "$ac_cv_guild_ok" = no
; then
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
11313 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
11317 if test "${have_libguile}" != no
; then
11319 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
11321 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
11322 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
11323 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
11324 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
11325 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
11328 save_CPPFLAGS
="$CPPFLAGS"
11330 CPPFLAGS
="$GUILE_CPPFLAGS"
11331 for ac_func
in scm_new_smob
11333 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
11334 if test "x$ac_cv_func_scm_new_smob" = xyes
; then :
11335 cat >>confdefs.h
<<_ACEOF
11336 #define HAVE_SCM_NEW_SMOB 1
11343 CPPFLAGS
="$save_CPPFLAGS"
11345 # Even if Guile support is not compiled in, we need to have these files
11347 CONFIG_OBS
="$CONFIG_OBS guile/guile.o"
11348 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
11352 if test "${have_libguile}" != no
; then
11354 HAVE_GUILE_FALSE
='#'
11356 HAVE_GUILE_TRUE
='#'
11361 # ---------------------------- #
11362 # Check for source highlight. #
11363 # ---------------------------- #
11368 # Check whether --enable-source-highlight was given.
11369 if test "${enable_source_highlight+set}" = set; then :
11370 enableval
=$enable_source_highlight; case "${enableval}" in
11371 yes) enable_source_highlight
=yes ;;
11372 no
) enable_source_highlight
=no
;;
11373 *) as_fn_error $?
"bad value ${enableval} for source-highlight option" "$LINENO" 5 ;;
11376 enable_source_highlight
=auto
11380 if test "${enable_source_highlight}" != "no"; then
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
11382 $as_echo_n "checking for the source-highlight library... " >&6; }
11383 if test "${pkg_config_prog_path}" = "missing"; then
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
11385 $as_echo "no - pkg-config not found" >&6; }
11386 if test "${enable_source_highlight}" = "yes"; then
11387 as_fn_error $?
"pkg-config was not found in your system" "$LINENO" 5
11392 as_fn_error $?
"source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
11396 if ${pkg_config_prog_path} --exists source-highlight
; then
11397 SRCHIGH_CFLAGS
=`${pkg_config_prog_path} --cflags source-highlight`
11398 SRCHIGH_LIBS
=`${pkg_config_prog_path} --libs source-highlight`
11400 $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11403 $as_echo "yes" >&6; }
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11406 $as_echo "no" >&6; }
11407 if test "${enable_source_highlight}" = "yes"; then
11408 as_fn_error $?
"source-highlight was not found in your system" "$LINENO" 5
11416 # ------------------------- #
11417 # Checks for header files. #
11418 # ------------------------- #
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11421 $as_echo_n "checking for ANSI C header files... " >&6; }
11422 if ${ac_cv_header_stdc+:} false
; then :
11423 $as_echo_n "(cached) " >&6
11425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11426 /* end confdefs.h. */
11427 #include <stdlib.h>
11428 #include <stdarg.h>
11429 #include <string.h>
11440 if ac_fn_c_try_compile
"$LINENO"; then :
11441 ac_cv_header_stdc
=yes
11443 ac_cv_header_stdc
=no
11445 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11447 if test $ac_cv_header_stdc = yes; then
11448 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11450 /* end confdefs.h. */
11451 #include <string.h>
11454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11455 $EGREP "memchr" >/dev
/null
2>&1; then :
11458 ac_cv_header_stdc
=no
11464 if test $ac_cv_header_stdc = yes; then
11465 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11467 /* end confdefs.h. */
11468 #include <stdlib.h>
11471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11472 $EGREP "free" >/dev
/null
2>&1; then :
11475 ac_cv_header_stdc
=no
11481 if test $ac_cv_header_stdc = yes; then
11482 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11483 if test "$cross_compiling" = yes; then :
11486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11487 /* end confdefs.h. */
11489 #include <stdlib.h>
11490 #if ((' ' & 0x0FF) == 0x020)
11491 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11492 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11494 # define ISLOWER(c) \
11495 (('a' <= (c) && (c) <= 'i') \
11496 || ('j' <= (c) && (c) <= 'r') \
11497 || ('s' <= (c) && (c) <= 'z'))
11498 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11501 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11506 for (i = 0; i < 256; i++)
11507 if (XOR (islower (i), ISLOWER (i))
11508 || toupper (i) != TOUPPER (i))
11513 if ac_fn_c_try_run
"$LINENO"; then :
11516 ac_cv_header_stdc
=no
11518 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11519 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11525 $as_echo "$ac_cv_header_stdc" >&6; }
11526 if test $ac_cv_header_stdc = yes; then
11528 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11532 # elf_hp.h is for HP/UX 64-bit shared library support.
11533 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h \
11535 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
11536 sys
/resource.h sys
/ptrace.h ptrace.h \
11537 sys
/reg.h sys
/debugreg.h sys
/select.h \
11540 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11541 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11542 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
11543 cat >>confdefs.h
<<_ACEOF
11544 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11551 for ac_header
in sys
/user.h
11553 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
11554 # include <sys/param.h>
11558 if test "x$ac_cv_header_sys_user_h" = xyes
; then :
11559 cat >>confdefs.h
<<_ACEOF
11560 #define HAVE_SYS_USER_H 1
11568 for ac_header
in curses.h cursesX.h ncurses.h ncursesw
/ncurses.h ncurses
/ncurses.h ncurses
/term.h
11570 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11571 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11572 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
11573 cat >>confdefs.h
<<_ACEOF
11574 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11581 for ac_header
in term.h
11583 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
11584 # include <curses.h>
11588 if test "x$ac_cv_header_term_h" = xyes
; then :
11589 cat >>confdefs.h
<<_ACEOF
11590 #define HAVE_TERM_H 1
11598 # ------------------------- #
11599 # Checks for declarations. #
11600 # ------------------------- #
11603 # Check for presence and size of long long.
11604 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
11605 if test "x$ac_cv_type_long_long" = xyes
; then :
11607 cat >>confdefs.h
<<_ACEOF
11608 #define HAVE_LONG_LONG 1
11611 # The cast to long int works around a bug in the HP C Compiler
11612 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11613 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11614 # This bug is HP SR number 8606223364.
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
11616 $as_echo_n "checking size of long long... " >&6; }
11617 if ${ac_cv_sizeof_long_long+:} false
; then :
11618 $as_echo_n "(cached) " >&6
11620 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
11623 if test "$ac_cv_type_long_long" = yes; then
11624 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11625 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11626 as_fn_error
77 "cannot compute sizeof (long long)
11627 See \`config.log' for more details" "$LINENO" 5; }
11629 ac_cv_sizeof_long_long
=0
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
11635 $as_echo "$ac_cv_sizeof_long_long" >&6; }
11639 cat >>confdefs.h
<<_ACEOF
11640 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11647 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
11648 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
11649 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
11655 cat >>confdefs.h
<<_ACEOF
11656 #define HAVE_DECL_BASENAME $ac_have_decl
11658 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
11659 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
11665 cat >>confdefs.h
<<_ACEOF
11666 #define HAVE_DECL_FFS $ac_have_decl
11668 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
11669 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
11675 cat >>confdefs.h
<<_ACEOF
11676 #define HAVE_DECL_ASPRINTF $ac_have_decl
11678 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
11679 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
11685 cat >>confdefs.h
<<_ACEOF
11686 #define HAVE_DECL_VASPRINTF $ac_have_decl
11688 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11689 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
11695 cat >>confdefs.h
<<_ACEOF
11696 #define HAVE_DECL_SNPRINTF $ac_have_decl
11698 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
11699 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
11705 cat >>confdefs.h
<<_ACEOF
11706 #define HAVE_DECL_VSNPRINTF $ac_have_decl
11709 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
11710 if test "x$ac_cv_have_decl_strtol" = xyes
; then :
11716 cat >>confdefs.h
<<_ACEOF
11717 #define HAVE_DECL_STRTOL $ac_have_decl
11719 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
11720 if test "x$ac_cv_have_decl_strtoul" = xyes
; then :
11726 cat >>confdefs.h
<<_ACEOF
11727 #define HAVE_DECL_STRTOUL $ac_have_decl
11729 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
11730 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
11736 cat >>confdefs.h
<<_ACEOF
11737 #define HAVE_DECL_STRTOLL $ac_have_decl
11739 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
11740 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
11746 cat >>confdefs.h
<<_ACEOF
11747 #define HAVE_DECL_STRTOULL $ac_have_decl
11750 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
11751 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
11757 cat >>confdefs.h
<<_ACEOF
11758 #define HAVE_DECL_STRVERSCMP $ac_have_decl
11763 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11764 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
11770 cat >>confdefs.h
<<_ACEOF
11771 #define HAVE_DECL_SNPRINTF $ac_have_decl
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11776 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11777 if ${am_cv_val_LC_MESSAGES+:} false
; then :
11778 $as_echo_n "(cached) " >&6
11780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11781 /* end confdefs.h. */
11782 #include <locale.h>
11791 if ac_fn_c_try_link
"$LINENO"; then :
11792 am_cv_val_LC_MESSAGES
=yes
11794 am_cv_val_LC_MESSAGES
=no
11796 rm -f core conftest.err conftest.
$ac_objext \
11797 conftest
$ac_exeext conftest.
$ac_ext
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11800 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11801 if test $am_cv_val_LC_MESSAGES = yes; then
11803 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11808 # ------------------ #
11809 # Checks for types. #
11810 # ------------------ #
11812 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11813 #include <sys/socket.h>
11816 if test "x$ac_cv_type_socklen_t" = xyes
; then :
11818 cat >>confdefs.h
<<_ACEOF
11819 #define HAVE_SOCKLEN_T 1
11826 # ------------------------------------- #
11827 # Checks for compiler characteristics. #
11828 # ------------------------------------- #
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11831 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11832 if ${ac_cv_c_const+:} false
; then :
11833 $as_echo_n "(cached) " >&6
11835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11836 /* end confdefs.h. */
11842 #ifndef __cplusplus
11843 /* Ultrix mips cc rejects this sort of thing. */
11844 typedef int charset[2];
11845 const charset cs = { 0, 0 };
11846 /* SunOS 4.1.1 cc rejects this. */
11847 char const *const *pcpcc;
11849 /* NEC SVR4.0.2 mips cc rejects this. */
11850 struct point {int x, y;};
11851 static struct point const zero = {0,0};
11852 /* AIX XL C 1.02.0.0 rejects this.
11853 It does not let you subtract one const X* pointer from another in
11854 an arm of an if-expression whose if-part is not a constant
11856 const char *g = "string";
11857 pcpcc = &g + (g ? g-g : 0);
11858 /* HPUX 7.0 cc rejects these. */
11860 ppc = (char**) pcpcc;
11861 pcpcc = (char const *const *) ppc;
11862 { /* SCO 3.2v4 cc rejects this sort of thing. */
11865 char const *s = 0 ? (char *) 0 : (char const *) 0;
11870 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11871 int x[] = {25, 17};
11872 const int *foo = &x[0];
11875 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11876 typedef const int *iptr;
11880 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
11881 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11882 struct s { int j; const int *ap[3]; } bx;
11883 struct s *b = &bx; b->j = 5;
11885 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11886 const int foo = 10;
11887 if (!foo) return 0;
11889 return !cs[0] && !zero.x;
11896 if ac_fn_c_try_compile
"$LINENO"; then :
11901 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11904 $as_echo "$ac_cv_c_const" >&6; }
11905 if test $ac_cv_c_const = no
; then
11907 $as_echo "#define const /**/" >>confdefs.h
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11912 $as_echo_n "checking for inline... " >&6; }
11913 if ${ac_cv_c_inline+:} false
; then :
11914 $as_echo_n "(cached) " >&6
11917 for ac_kw
in inline __inline__ __inline
; do
11918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11919 /* end confdefs.h. */
11920 #ifndef __cplusplus
11922 static $ac_kw foo_t static_foo () {return 0; }
11923 $ac_kw foo_t foo () {return 0; }
11927 if ac_fn_c_try_compile
"$LINENO"; then :
11928 ac_cv_c_inline
=$ac_kw
11930 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11931 test "$ac_cv_c_inline" != no
&& break
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11936 $as_echo "$ac_cv_c_inline" >&6; }
11938 case $ac_cv_c_inline in
11941 case $ac_cv_c_inline in
11943 *) ac_val
=$ac_cv_c_inline;;
11945 cat >>confdefs.h
<<_ACEOF
11946 #ifndef __cplusplus
11947 #define inline $ac_val
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11954 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11955 if ${ac_cv_c_bigendian+:} false
; then :
11956 $as_echo_n "(cached) " >&6
11958 ac_cv_c_bigendian
=unknown
11959 # See if we're dealing with a universal compiler.
11960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11961 /* end confdefs.h. */
11962 #ifndef __APPLE_CC__
11963 not a universal capable compiler
11968 if ac_fn_c_try_compile
"$LINENO"; then :
11970 # Check for potential -arch flags. It is not universal unless
11971 # there are at least two -arch flags with different values.
11974 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11975 if test -n "$ac_prev"; then
11977 i?
86 | x86_64 | ppc | ppc64
)
11978 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
11981 ac_cv_c_bigendian
=universal
11987 elif test "x$ac_word" = "x-arch"; then
11992 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11993 if test $ac_cv_c_bigendian = unknown
; then
11994 # See if sys/param.h defines the BYTE_ORDER macro.
11995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11996 /* end confdefs.h. */
11997 #include <sys/types.h>
11998 #include <sys/param.h>
12003 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12004 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12006 bogus endian macros
12013 if ac_fn_c_try_compile
"$LINENO"; then :
12014 # It does; now see whether it defined to BIG_ENDIAN or not.
12015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12016 /* end confdefs.h. */
12017 #include <sys/types.h>
12018 #include <sys/param.h>
12023 #if BYTE_ORDER != BIG_ENDIAN
12031 if ac_fn_c_try_compile
"$LINENO"; then :
12032 ac_cv_c_bigendian
=yes
12034 ac_cv_c_bigendian
=no
12036 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12038 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12040 if test $ac_cv_c_bigendian = unknown
; then
12041 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12043 /* end confdefs.h. */
12044 #include <limits.h>
12049 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12050 bogus endian macros
12057 if ac_fn_c_try_compile
"$LINENO"; then :
12058 # It does; now see whether it defined to _BIG_ENDIAN or not.
12059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12060 /* end confdefs.h. */
12061 #include <limits.h>
12066 #ifndef _BIG_ENDIAN
12074 if ac_fn_c_try_compile
"$LINENO"; then :
12075 ac_cv_c_bigendian
=yes
12077 ac_cv_c_bigendian
=no
12079 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12081 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12083 if test $ac_cv_c_bigendian = unknown
; then
12084 # Compile a test program.
12085 if test "$cross_compiling" = yes; then :
12086 # Try to guess by grepping values from an object file.
12087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12088 /* end confdefs.h. */
12089 short int ascii_mm[] =
12090 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12091 short int ascii_ii[] =
12092 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12093 int use_ascii (int i) {
12094 return ascii_mm[i] + ascii_ii[i];
12096 short int ebcdic_ii[] =
12097 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12098 short int ebcdic_mm[] =
12099 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12100 int use_ebcdic (int i) {
12101 return ebcdic_mm[i] + ebcdic_ii[i];
12108 return use_ascii (foo) == use_ebcdic (foo);
12113 if ac_fn_c_try_compile
"$LINENO"; then :
12114 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12115 ac_cv_c_bigendian
=yes
12117 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12118 if test "$ac_cv_c_bigendian" = unknown
; then
12119 ac_cv_c_bigendian
=no
12121 # finding both strings is unlikely to happen, but who knows?
12122 ac_cv_c_bigendian
=unknown
12126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12129 /* end confdefs.h. */
12130 $ac_includes_default
12135 /* Are we little or big endian? From Harbison&Steele. */
12139 char c[sizeof (long int)];
12142 return u.c[sizeof (long int) - 1] == 1;
12148 if ac_fn_c_try_run
"$LINENO"; then :
12149 ac_cv_c_bigendian
=no
12151 ac_cv_c_bigendian
=yes
12153 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12154 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12160 $as_echo "$ac_cv_c_bigendian" >&6; }
12161 case $ac_cv_c_bigendian in #(
12163 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12169 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12173 as_fn_error $?
"unknown endianness
12174 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12178 # ------------------------------ #
12179 # Checks for library functions. #
12180 # ------------------------------ #
12182 for ac_func
in getuid getgid \
12183 pipe poll pread pread64 pwrite resize_term \
12185 sigaction sigsetmask socketpair \
12186 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
12187 setrlimit getrlimit posix_madvise waitpid \
12190 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12191 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12192 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12193 cat >>confdefs.h
<<_ACEOF
12194 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12202 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12203 if ${am_cv_langinfo_codeset+:} false
; then :
12204 $as_echo_n "(cached) " >&6
12206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12207 /* end confdefs.h. */
12208 #include <langinfo.h>
12212 char* cs = nl_langinfo(CODESET);
12217 if ac_fn_c_try_link
"$LINENO"; then :
12218 am_cv_langinfo_codeset
=yes
12220 am_cv_langinfo_codeset
=no
12222 rm -f core conftest.err conftest.
$ac_objext \
12223 conftest
$ac_exeext conftest.
$ac_ext
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12227 $as_echo "$am_cv_langinfo_codeset" >&6; }
12228 if test $am_cv_langinfo_codeset = yes; then
12230 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12234 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12235 if test "x$ac_cv_type_size_t" = xyes
; then :
12239 cat >>confdefs.h
<<_ACEOF
12240 #define size_t unsigned int
12248 for ac_header
in $ac_header_list
12250 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12251 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12253 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12254 cat >>confdefs.h
<<_ACEOF
12255 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12268 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12269 if test "x$ac_cv_type_pid_t" = xyes
; then :
12273 cat >>confdefs.h
<<_ACEOF
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12280 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12281 if ${ac_cv_path_SED+:} false
; then :
12282 $as_echo_n "(cached) " >&6
12284 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
12285 for ac_i
in 1 2 3 4 5 6 7; do
12286 ac_script
="$ac_script$as_nl$ac_script"
12288 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
12289 { ac_script
=; unset ac_script
;}
12290 if test -z "$SED"; then
12291 ac_path_SED_found
=false
12292 # Loop through the user's path and test for each of PROGNAME-LIST
12293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12294 for as_dir
in $PATH
12297 test -z "$as_dir" && as_dir
=.
12298 for ac_prog
in sed gsed
; do
12299 for ac_exec_ext
in '' $ac_executable_extensions; do
12300 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12301 as_fn_executable_p
"$ac_path_SED" ||
continue
12302 # Check for GNU ac_path_SED and select it if it is found.
12303 # Check for GNU $ac_path_SED
12304 case `"$ac_path_SED" --version 2>&1` in
12306 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12309 $as_echo_n 0123456789 >"conftest.in"
12312 cat "conftest.in" "conftest.in" >"conftest.tmp"
12313 mv "conftest.tmp" "conftest.in"
12314 cp "conftest.in" "conftest.nl"
12315 $as_echo '' >> "conftest.nl"
12316 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12317 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12318 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12319 if test $ac_count -gt ${ac_path_SED_max-0}; then
12320 # Best one so far, save it but keep looking for a better one
12321 ac_cv_path_SED
="$ac_path_SED"
12322 ac_path_SED_max
=$ac_count
12324 # 10*(2^10) chars as input seems more than enough
12325 test $ac_count -gt 10 && break
12327 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12330 $ac_path_SED_found && break 3
12335 if test -z "$ac_cv_path_SED"; then
12336 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12339 ac_cv_path_SED
=$SED
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12344 $as_echo "$ac_cv_path_SED" >&6; }
12345 SED
="$ac_cv_path_SED"
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12350 $as_echo_n "checking for ANSI C header files... " >&6; }
12351 if ${ac_cv_header_stdc+:} false
; then :
12352 $as_echo_n "(cached) " >&6
12354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12355 /* end confdefs.h. */
12356 #include <stdlib.h>
12357 #include <stdarg.h>
12358 #include <string.h>
12369 if ac_fn_c_try_compile
"$LINENO"; then :
12370 ac_cv_header_stdc
=yes
12372 ac_cv_header_stdc
=no
12374 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12376 if test $ac_cv_header_stdc = yes; then
12377 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12379 /* end confdefs.h. */
12380 #include <string.h>
12383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12384 $EGREP "memchr" >/dev
/null
2>&1; then :
12387 ac_cv_header_stdc
=no
12393 if test $ac_cv_header_stdc = yes; then
12394 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12396 /* end confdefs.h. */
12397 #include <stdlib.h>
12400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12401 $EGREP "free" >/dev
/null
2>&1; then :
12404 ac_cv_header_stdc
=no
12410 if test $ac_cv_header_stdc = yes; then
12411 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12412 if test "$cross_compiling" = yes; then :
12415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12416 /* end confdefs.h. */
12418 #include <stdlib.h>
12419 #if ((' ' & 0x0FF) == 0x020)
12420 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12421 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12423 # define ISLOWER(c) \
12424 (('a' <= (c) && (c) <= 'i') \
12425 || ('j' <= (c) && (c) <= 'r') \
12426 || ('s' <= (c) && (c) <= 'z'))
12427 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12430 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12435 for (i = 0; i < 256; i++)
12436 if (XOR (islower (i), ISLOWER (i))
12437 || toupper (i) != TOUPPER (i))
12442 if ac_fn_c_try_run
"$LINENO"; then :
12445 ac_cv_header_stdc
=no
12447 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12448 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12454 $as_echo "$ac_cv_header_stdc" >&6; }
12455 if test $ac_cv_header_stdc = yes; then
12457 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12461 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12462 # for constant arguments. Useless!
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12464 $as_echo_n "checking for working alloca.h... " >&6; }
12465 if ${ac_cv_working_alloca_h+:} false
; then :
12466 $as_echo_n "(cached) " >&6
12468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12469 /* end confdefs.h. */
12470 #include <alloca.h>
12474 char *p = (char *) alloca (2 * sizeof (int));
12480 if ac_fn_c_try_link
"$LINENO"; then :
12481 ac_cv_working_alloca_h
=yes
12483 ac_cv_working_alloca_h
=no
12485 rm -f core conftest.err conftest.
$ac_objext \
12486 conftest
$ac_exeext conftest.
$ac_ext
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12489 $as_echo "$ac_cv_working_alloca_h" >&6; }
12490 if test $ac_cv_working_alloca_h = yes; then
12492 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12497 $as_echo_n "checking for alloca... " >&6; }
12498 if ${ac_cv_func_alloca_works+:} false
; then :
12499 $as_echo_n "(cached) " >&6
12501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12502 /* end confdefs.h. */
12504 # define alloca __builtin_alloca
12507 # include <malloc.h>
12508 # define alloca _alloca
12510 # ifdef HAVE_ALLOCA_H
12511 # include <alloca.h>
12516 # ifndef alloca /* predefined by HP cc +Olibcalls */
12517 void *alloca (size_t);
12527 char *p = (char *) alloca (1);
12533 if ac_fn_c_try_link
"$LINENO"; then :
12534 ac_cv_func_alloca_works
=yes
12536 ac_cv_func_alloca_works
=no
12538 rm -f core conftest.err conftest.
$ac_objext \
12539 conftest
$ac_exeext conftest.
$ac_ext
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12542 $as_echo "$ac_cv_func_alloca_works" >&6; }
12544 if test $ac_cv_func_alloca_works = yes; then
12546 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12549 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12550 # that cause trouble. Some versions do not even contain alloca or
12551 # contain a buggy version. If you still want to use their alloca,
12552 # use ar to extract alloca.o from them instead of compiling alloca.c.
12554 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
12556 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12560 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12561 if ${ac_cv_os_cray+:} false
; then :
12562 $as_echo_n "(cached) " >&6
12564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12565 /* end confdefs.h. */
12566 #if defined CRAY && ! defined CRAY2
12573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12574 $EGREP "webecray" >/dev
/null
2>&1; then :
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12583 $as_echo "$ac_cv_os_cray" >&6; }
12584 if test $ac_cv_os_cray = yes; then
12585 for ac_func
in _getb67 GETB67 getb67
; do
12586 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12587 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12588 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12590 cat >>confdefs.h
<<_ACEOF
12591 #define CRAY_STACKSEG_END $ac_func
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12601 $as_echo_n "checking stack direction for C alloca... " >&6; }
12602 if ${ac_cv_c_stack_direction+:} false
; then :
12603 $as_echo_n "(cached) " >&6
12605 if test "$cross_compiling" = yes; then :
12606 ac_cv_c_stack_direction
=0
12608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12609 /* end confdefs.h. */
12610 $ac_includes_default
12612 find_stack_direction (int *addr, int depth)
12614 int dir, dummy = 0;
12617 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
12618 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
12619 return dir + dummy;
12623 main (int argc, char **argv)
12625 return find_stack_direction (0, argc + !argv + 20) < 0;
12628 if ac_fn_c_try_run
"$LINENO"; then :
12629 ac_cv_c_stack_direction
=1
12631 ac_cv_c_stack_direction
=-1
12633 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12634 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12639 $as_echo "$ac_cv_c_stack_direction" >&6; }
12640 cat >>confdefs.h
<<_ACEOF
12641 #define STACK_DIRECTION $ac_cv_c_stack_direction
12652 $as_echo "#define USE_WIN32API 1" >>confdefs.h
12654 WIN32APILIBS
="-lws2_32"
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12660 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12661 if ${am_cv_langinfo_codeset+:} false
; then :
12662 $as_echo_n "(cached) " >&6
12664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12665 /* end confdefs.h. */
12666 #include <langinfo.h>
12670 char* cs = nl_langinfo(CODESET);
12675 if ac_fn_c_try_link
"$LINENO"; then :
12676 am_cv_langinfo_codeset
=yes
12678 am_cv_langinfo_codeset
=no
12680 rm -f core conftest.err conftest.
$ac_objext \
12681 conftest
$ac_exeext conftest.
$ac_ext
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12685 $as_echo "$am_cv_langinfo_codeset" >&6; }
12686 if test $am_cv_langinfo_codeset = yes; then
12688 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12693 for ac_header
in linux
/perf_event.h locale.h memory.h signal.h sys
/resource.h sys
/socket.h sys
/un.h sys
/wait.h thread_db.h
wait.h termios.h dlfcn.h linux
/elf.h sys
/procfs.h proc_service.h
12695 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12696 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12697 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12698 cat >>confdefs.h
<<_ACEOF
12699 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12708 for ac_func
in getpagesize
12710 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12711 if test "x$ac_cv_func_getpagesize" = xyes
; then :
12712 cat >>confdefs.h
<<_ACEOF
12713 #define HAVE_GETPAGESIZE 1
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12720 $as_echo_n "checking for working mmap... " >&6; }
12721 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
12722 $as_echo_n "(cached) " >&6
12724 if test "$cross_compiling" = yes; then :
12725 ac_cv_func_mmap_fixed_mapped
=no
12727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12728 /* end confdefs.h. */
12729 $ac_includes_default
12730 /* malloc might have been renamed as rpl_malloc. */
12733 /* Thanks to Mike Haertel and Jim Avera for this test.
12734 Here is a matrix of mmap possibilities:
12735 mmap private not fixed
12736 mmap private fixed at somewhere currently unmapped
12737 mmap private fixed at somewhere already mapped
12738 mmap shared not fixed
12739 mmap shared fixed at somewhere currently unmapped
12740 mmap shared fixed at somewhere already mapped
12741 For private mappings, we should verify that changes cannot be read()
12742 back from the file, nor mmap's back from the file at a different
12743 address. (There have been systems where private was not correctly
12744 implemented like the infamous i386 svr4.0, and systems where the
12745 VM page cache was not coherent with the file system buffer cache
12746 like early versions of FreeBSD and possibly contemporary NetBSD.)
12747 For shared mappings, we should conversely verify that changes get
12748 propagated back to all the places they're supposed to be.
12750 Grep wants private fixed already mapped.
12751 The main things grep needs to know about mmap are:
12752 * does it exist and is it safe to write into the mmap'd area
12753 * how to use it (BSD variants) */
12756 #include <sys/mman.h>
12758 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12762 /* This mess was copied from the GNU getpagesize.h. */
12763 #ifndef HAVE_GETPAGESIZE
12764 # ifdef _SC_PAGESIZE
12765 # define getpagesize() sysconf(_SC_PAGESIZE)
12766 # else /* no _SC_PAGESIZE */
12767 # ifdef HAVE_SYS_PARAM_H
12768 # include <sys/param.h>
12769 # ifdef EXEC_PAGESIZE
12770 # define getpagesize() EXEC_PAGESIZE
12771 # else /* no EXEC_PAGESIZE */
12773 # define getpagesize() NBPG * CLSIZE
12776 # endif /* no CLSIZE */
12777 # else /* no NBPG */
12779 # define getpagesize() NBPC
12780 # else /* no NBPC */
12782 # define getpagesize() PAGESIZE
12783 # endif /* PAGESIZE */
12784 # endif /* no NBPC */
12785 # endif /* no NBPG */
12786 # endif /* no EXEC_PAGESIZE */
12787 # else /* no HAVE_SYS_PARAM_H */
12788 # define getpagesize() 8192 /* punt totally */
12789 # endif /* no HAVE_SYS_PARAM_H */
12790 # endif /* no _SC_PAGESIZE */
12792 #endif /* no HAVE_GETPAGESIZE */
12797 char *data, *data2, *data3;
12798 const char *cdata2;
12802 pagesize = getpagesize ();
12804 /* First, make a file with some known garbage in it. */
12805 data = (char *) malloc (pagesize);
12808 for (i = 0; i < pagesize; ++i)
12809 *(data + i) = rand ();
12811 fd = creat ("conftest.mmap", 0600);
12814 if (write (fd, data, pagesize) != pagesize)
12818 /* Next, check that the tail of a page is zero-filled. File must have
12819 non-zero length, otherwise we risk SIGBUS for entire page. */
12820 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12824 if (write (fd2, cdata2, 1) != 1)
12826 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12827 if (data2 == MAP_FAILED)
12829 for (i = 0; i < pagesize; ++i)
12833 if (munmap (data2, pagesize))
12836 /* Next, try to mmap the file at a fixed address which already has
12837 something else allocated at it. If we can, also make sure that
12838 we see the same garbage. */
12839 fd = open ("conftest.mmap", O_RDWR);
12842 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12843 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12845 for (i = 0; i < pagesize; ++i)
12846 if (*(data + i) != *(data2 + i))
12849 /* Finally, make sure that changes to the mapped area do not
12850 percolate back to the file as seen by read(). (This is a bug on
12851 some variants of i386 svr4.0.) */
12852 for (i = 0; i < pagesize; ++i)
12853 *(data2 + i) = *(data2 + i) + 1;
12854 data3 = (char *) malloc (pagesize);
12857 if (read (fd, data3, pagesize) != pagesize)
12859 for (i = 0; i < pagesize; ++i)
12860 if (*(data + i) != *(data3 + i))
12866 if ac_fn_c_try_run
"$LINENO"; then :
12867 ac_cv_func_mmap_fixed_mapped
=yes
12869 ac_cv_func_mmap_fixed_mapped
=no
12871 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12872 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12877 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12878 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12880 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12883 rm -f conftest.mmap conftest.txt
12885 for ac_header
in vfork.h
12887 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12888 if test "x$ac_cv_header_vfork_h" = xyes
; then :
12889 cat >>confdefs.h
<<_ACEOF
12890 #define HAVE_VFORK_H 1
12897 for ac_func
in fork vfork
12899 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12900 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12901 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12902 cat >>confdefs.h
<<_ACEOF
12903 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12909 if test "x$ac_cv_func_fork" = xyes
; then
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12911 $as_echo_n "checking for working fork... " >&6; }
12912 if ${ac_cv_func_fork_works+:} false
; then :
12913 $as_echo_n "(cached) " >&6
12915 if test "$cross_compiling" = yes; then :
12916 ac_cv_func_fork_works
=cross
12918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12919 /* end confdefs.h. */
12920 $ac_includes_default
12925 /* By Ruediger Kuhlmann. */
12926 return fork () < 0;
12932 if ac_fn_c_try_run
"$LINENO"; then :
12933 ac_cv_func_fork_works
=yes
12935 ac_cv_func_fork_works
=no
12937 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12938 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12943 $as_echo "$ac_cv_func_fork_works" >&6; }
12946 ac_cv_func_fork_works
=$ac_cv_func_fork
12948 if test "x$ac_cv_func_fork_works" = xcross
; then
12950 *-*-amigaos* |
*-*-msdosdjgpp*)
12951 # Override, as these systems have only a dummy fork() stub
12952 ac_cv_func_fork_works
=no
12955 ac_cv_func_fork_works
=yes
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12959 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12961 ac_cv_func_vfork_works
=$ac_cv_func_vfork
12962 if test "x$ac_cv_func_vfork" = xyes
; then
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12964 $as_echo_n "checking for working vfork... " >&6; }
12965 if ${ac_cv_func_vfork_works+:} false
; then :
12966 $as_echo_n "(cached) " >&6
12968 if test "$cross_compiling" = yes; then :
12969 ac_cv_func_vfork_works
=cross
12971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12972 /* end confdefs.h. */
12973 /* Thanks to Paul Eggert for this test. */
12974 $ac_includes_default
12975 #include <sys/wait.h>
12976 #ifdef HAVE_VFORK_H
12977 # include <vfork.h>
12979 /* On some sparc systems, changes by the child to local and incoming
12980 argument registers are propagated back to the parent. The compiler
12981 is told about this with #include <vfork.h>, but some compilers
12982 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12983 static variable whose address is put into a register that is
12984 clobbered by the vfork. */
12987 sparc_address_test (int arg)
12989 sparc_address_test (arg) int arg;
12992 static pid_t child;
13010 pid_t parent = getpid ();
13013 sparc_address_test (0);
13018 /* Here is another test for sparc vfork register problems. This
13019 test uses lots of local variables, at least as many local
13020 variables as main has allocated so far including compiler
13021 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13022 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13023 reuse the register of parent for one of the local variables,
13024 since it will think that parent can't possibly be used any more
13025 in this routine. Assigning to the local variable will thus
13026 munge parent in the parent process. */
13028 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13029 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13030 /* Convince the compiler that p..p7 are live; otherwise, it might
13031 use the same hardware register for all 8 local variables. */
13032 if (p != p1 || p != p2 || p != p3 || p != p4
13033 || p != p5 || p != p6 || p != p7)
13036 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13037 from child file descriptors. If the child closes a descriptor
13038 before it execs or exits, this munges the parent's descriptor
13039 as well. Test for this by closing stdout in the child. */
13040 _exit(close(fileno(stdout)) != 0);
13045 while (wait(&status) != child)
13048 /* Was there some problem with vforking? */
13051 /* Did the child fail? (This shouldn't happen.) */
13054 /* Did the vfork/compiler bug occur? */
13055 || parent != getpid()
13057 /* Did the file descriptor bug occur? */
13058 || fstat(fileno(stdout), &st) != 0
13063 if ac_fn_c_try_run
"$LINENO"; then :
13064 ac_cv_func_vfork_works
=yes
13066 ac_cv_func_vfork_works
=no
13068 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13069 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13074 $as_echo "$ac_cv_func_vfork_works" >&6; }
13077 if test "x$ac_cv_func_fork_works" = xcross
; then
13078 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13080 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13083 if test "x$ac_cv_func_vfork_works" = xyes
; then
13085 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13089 $as_echo "#define vfork fork" >>confdefs.h
13092 if test "x$ac_cv_func_fork_works" = xyes
; then
13094 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13098 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair sigaction \
13099 ptrace64 sbrk setns sigaltstack sigprocmask \
13100 setpgid setpgrp getrusage getauxval
13102 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13103 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13104 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13105 cat >>confdefs.h
<<_ACEOF
13106 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13113 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
13115 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
13121 cat >>confdefs.h
<<_ACEOF
13122 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
13126 if test "$cross_compiling" = yes; then :
13127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13128 /* end confdefs.h. */
13129 #include <sys/personality.h>
13134 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
13135 # define ADDR_NO_RANDOMIZE 0x0040000
13137 /* Test the flag could be set and stays set. */
13138 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13139 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13145 if ac_fn_c_try_link
"$LINENO"; then :
13146 have_personality
=true
13148 have_personality
=false
13150 rm -f core conftest.err conftest.
$ac_objext \
13151 conftest
$ac_exeext conftest.
$ac_ext
13153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13154 /* end confdefs.h. */
13155 #include <sys/personality.h>
13160 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
13161 # define ADDR_NO_RANDOMIZE 0x0040000
13163 /* Test the flag could be set and stays set. */
13164 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13165 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13171 if ac_fn_c_try_run
"$LINENO"; then :
13172 have_personality
=true
13174 have_personality
=false
13176 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13177 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13180 if $have_personality
13183 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
13187 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13188 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
13194 cat >>confdefs.h
<<_ACEOF
13195 #define HAVE_DECL_STRSTR $ac_have_decl
13199 # ----------------------- #
13200 # Checks for structures. #
13201 # ----------------------- #
13203 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13204 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
13206 cat >>confdefs.h
<<_ACEOF
13207 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13212 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
13213 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
13215 cat >>confdefs.h
<<_ACEOF
13216 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
13224 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
13225 if ${ac_cv_search_kinfo_getfile+:} false
; then :
13226 $as_echo_n "(cached) " >&6
13228 ac_func_search_save_LIBS
=$LIBS
13229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13230 /* end confdefs.h. */
13232 /* Override any GCC internal prototype to avoid an error.
13233 Use char because int might match the return type of a GCC
13234 builtin and then its argument prototype would still apply. */
13238 char kinfo_getfile ();
13242 return kinfo_getfile ();
13247 for ac_lib
in '' util util-freebsd
; do
13248 if test -z "$ac_lib"; then
13249 ac_res
="none required"
13252 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13254 if ac_fn_c_try_link
"$LINENO"; then :
13255 ac_cv_search_kinfo_getfile
=$ac_res
13257 rm -f core conftest.err conftest.
$ac_objext \
13259 if ${ac_cv_search_kinfo_getfile+:} false
; then :
13263 if ${ac_cv_search_kinfo_getfile+:} false
; then :
13266 ac_cv_search_kinfo_getfile
=no
13268 rm conftest.
$ac_ext
13269 LIBS
=$ac_func_search_save_LIBS
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
13272 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
13273 ac_res
=$ac_cv_search_kinfo_getfile
13274 if test "$ac_res" != no
; then :
13275 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13277 $as_echo "#define HAVE_KINFO_GETFILE 1" >>confdefs.h
13282 # Check for std::thread. This does not work on some platforms, like
13285 ac_cpp
='$CXXCPP $CPPFLAGS'
13286 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13287 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13288 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
13295 ac_cpp
='$CPP $CPPFLAGS'
13296 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13297 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13298 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13302 # We used to check for pthread.h first, but this fails if pthread.h
13303 # requires special compiler flags (e.g. on Tru64 or Sequent).
13304 # It gets checked for in the link test anyway.
13306 # First of all, check if the user has set any of the PTHREAD_LIBS,
13307 # etcetera environment variables, and if threads linking works using
13309 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
13310 ax_pthread_save_CC
="$CC"
13311 ax_pthread_save_CFLAGS
="$CFLAGS"
13312 ax_pthread_save_LIBS
="$LIBS"
13313 if test "x$PTHREAD_CC" != "x"; then :
13316 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
13317 LIBS
="$PTHREAD_LIBS $LIBS"
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
13319 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
13320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13321 /* end confdefs.h. */
13323 /* Override any GCC internal prototype to avoid an error.
13324 Use char because int might match the return type of a GCC
13325 builtin and then its argument prototype would still apply. */
13329 char pthread_join ();
13333 return pthread_join ();
13338 if ac_fn_c_try_link
"$LINENO"; then :
13341 rm -f core conftest.err conftest.
$ac_objext \
13342 conftest
$ac_exeext conftest.
$ac_ext
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
13344 $as_echo "$ax_pthread_ok" >&6; }
13345 if test "x$ax_pthread_ok" = "xno"; then
13349 CC
="$ax_pthread_save_CC"
13350 CFLAGS
="$ax_pthread_save_CFLAGS"
13351 LIBS
="$ax_pthread_save_LIBS"
13354 # We must check for the threads library under a number of different
13355 # names; the ordering is very important because some systems
13356 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
13357 # libraries is broken (non-POSIX).
13359 # Create a list of thread flags to try. Items starting with a "-" are
13360 # C compiler flags, and other items are library names, except for "none"
13361 # which indicates that we try without any flags at all, and "pthread-config"
13362 # which is a program returning the flags for the Pth emulation library.
13364 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
13366 # The ordering *is* (sometimes) important. Some notes on the
13367 # individual items follow:
13369 # pthreads: AIX (must check this before -lpthread)
13370 # none: in case threads are in libc; should be tried before -Kthread and
13371 # other compiler flags to prevent continual compiler warnings
13372 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
13373 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
13374 # (Note: HP C rejects this with "bad form for `-t' option")
13375 # -pthreads: Solaris/gcc (Note: HP C also rejects)
13376 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
13377 # doesn't hurt to check since this sometimes defines pthreads and
13378 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
13379 # is present but should not be used directly; and before -mthreads,
13380 # because the compiler interprets this as "-mt" + "-hreads")
13381 # -mthreads: Mingw32/gcc, Lynx/gcc
13382 # pthread: Linux, etcetera
13383 # --thread-safe: KAI C++
13384 # pthread-config: use pthread-config program (for GNU Pth library)
13390 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
13391 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
13393 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
13398 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
13399 # multi-threading and also sets -lpthread."
13401 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
13406 # IBM z/OS requires a feature-test macro to be defined in order to
13407 # enable POSIX threads at all, so give the user a hint if this is
13408 # not set. (We don't define these ourselves, as they can affect
13409 # other portions of the system API in unpredictable ways.)
13411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13412 /* end confdefs.h. */
13414 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
13415 AX_PTHREAD_ZOS_MISSING
13419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13420 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
13422 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
13430 # On Solaris (at least, for some versions), libc contains stubbed
13431 # (non-functional) versions of the pthreads routines, so link-based
13432 # tests will erroneously succeed. (N.B.: The stubs are missing
13433 # pthread_cleanup_push, or rather a function called by this macro,
13434 # so we could check for that, but who knows whether they'll stub
13435 # that too in a future libc.) So we'll check first for the
13436 # standard Solaris way of linking pthreads (-mt -lpthread).
13438 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
13442 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
13444 if test "x$GCC" = "xyes"; then :
13445 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
13448 # The presence of a feature test macro requesting re-entrant function
13449 # definitions is, on some systems, a strong hint that pthreads support is
13450 # correctly enabled
13453 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
13454 ax_pthread_check_macro
="_REENTRANT"
13458 ax_pthread_check_macro
="_THREAD_SAFE"
13462 ax_pthread_check_macro
="--"
13465 if test "x$ax_pthread_check_macro" = "x--"; then :
13466 ax_pthread_check_cond
=0
13468 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
13471 # Are we compiling with Clang?
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
13474 $as_echo_n "checking whether $CC is Clang... " >&6; }
13475 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
13476 $as_echo_n "(cached) " >&6
13478 ax_cv_PTHREAD_CLANG
=no
13479 # Note that Autoconf sets GCC=yes for Clang as well as GCC
13480 if test "x$GCC" = "xyes"; then
13481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13482 /* end confdefs.h. */
13483 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
13484 # if defined(__clang__) && defined(__llvm__)
13485 AX_PTHREAD_CC_IS_CLANG
13489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13490 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
13491 ax_cv_PTHREAD_CLANG
=yes
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
13499 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
13500 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
13502 ax_pthread_clang_warning
=no
13504 # Clang needs special handling, because older versions handle the -pthread
13505 # option in a rather... idiosyncratic way
13507 if test "x$ax_pthread_clang" = "xyes"; then
13509 # Clang takes -pthread; it has never supported any other flag
13511 # (Note 1: This will need to be revisited if a system that Clang
13512 # supports has POSIX threads in a separate library. This tends not
13513 # to be the way of modern systems, but it's conceivable.)
13515 # (Note 2: On some systems, notably Darwin, -pthread is not needed
13516 # to get POSIX threads support; the API is always present and
13517 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
13518 # -pthread does define _REENTRANT, and while the Darwin headers
13519 # ignore this macro, third-party headers might not.)
13521 PTHREAD_CFLAGS
="-pthread"
13526 # However, older versions of Clang make a point of warning the user
13527 # that, in an invocation where only linking and no compilation is
13528 # taking place, the -pthread option has no effect ("argument unused
13529 # during compilation"). They expect -pthread to be passed in only
13530 # when source code is being compiled.
13532 # Problem is, this is at odds with the way Automake and most other
13533 # C build frameworks function, which is that the same flags used in
13534 # compilation (CFLAGS) are also used in linking. Many systems
13535 # supported by AX_PTHREAD require exactly this for POSIX threads
13536 # support, and in fact it is often not straightforward to specify a
13537 # flag that is used only in the compilation phase and not in
13538 # linking. Such a scenario is extremely rare in practice.
13540 # Even though use of the -pthread flag in linking would only print
13541 # a warning, this can be a nuisance for well-run software projects
13542 # that build with -Werror. So if the active version of Clang has
13543 # this misfeature, we search for an option to squash it.
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
13546 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
13547 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
13548 $as_echo_n "(cached) " >&6
13550 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
13551 # Create an alternate version of $ac_link that compiles and
13552 # links in two steps (.c -> .o, .o -> exe) instead of one
13553 # (.c -> exe), because the warning occurs only in the second
13555 ax_pthread_save_ac_link
="$ac_link"
13556 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
13557 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
13558 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
13559 ax_pthread_save_CFLAGS
="$CFLAGS"
13560 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
13561 if test "x$ax_pthread_try" = "xunknown"; then :
13564 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
13565 ac_link
="$ax_pthread_save_ac_link"
13566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13567 /* end confdefs.h. */
13568 int main(void){return 0;}
13570 if ac_fn_c_try_link
"$LINENO"; then :
13571 ac_link
="$ax_pthread_2step_ac_link"
13572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13573 /* end confdefs.h. */
13574 int main(void){return 0;}
13576 if ac_fn_c_try_link
"$LINENO"; then :
13579 rm -f core conftest.err conftest.
$ac_objext \
13580 conftest
$ac_exeext conftest.
$ac_ext
13583 rm -f core conftest.err conftest.
$ac_objext \
13584 conftest
$ac_exeext conftest.
$ac_ext
13586 ac_link
="$ax_pthread_save_ac_link"
13587 CFLAGS
="$ax_pthread_save_CFLAGS"
13588 if test "x$ax_pthread_try" = "x"; then :
13591 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
13595 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
13597 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
13599 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
13602 fi # $ax_pthread_clang = yes
13604 if test "x$ax_pthread_ok" = "xno"; then
13605 for ax_pthread_try_flag
in $ax_pthread_flags; do
13607 case $ax_pthread_try_flag in
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
13610 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
13615 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
13616 PTHREAD_CFLAGS
="-mt"
13617 PTHREAD_LIBS
="-lpthread"
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
13622 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
13623 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
13627 # Extract the first word of "pthread-config", so it can be a program name with args.
13628 set dummy pthread-config
; ac_word
=$2
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13630 $as_echo_n "checking for $ac_word... " >&6; }
13631 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
13632 $as_echo_n "(cached) " >&6
13634 if test -n "$ax_pthread_config"; then
13635 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
13637 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13638 for as_dir
in $PATH
13641 test -z "$as_dir" && as_dir
=.
13642 for ac_exec_ext
in '' $ac_executable_extensions; do
13643 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13644 ac_cv_prog_ax_pthread_config
="yes"
13645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13652 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
13655 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
13656 if test -n "$ax_pthread_config"; then
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
13658 $as_echo "$ax_pthread_config" >&6; }
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13661 $as_echo "no" >&6; }
13665 if test "x$ax_pthread_config" = "xno"; then :
13668 PTHREAD_CFLAGS
="`pthread-config --cflags`"
13669 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
13674 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
13675 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
13679 ax_pthread_save_CFLAGS
="$CFLAGS"
13680 ax_pthread_save_LIBS
="$LIBS"
13681 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
13682 LIBS
="$PTHREAD_LIBS $LIBS"
13684 # Check for various functions. We must include pthread.h,
13685 # since some functions may be macros. (On the Sequent, we
13686 # need a special flag -Kthread to make this header compile.)
13687 # We check for pthread_join because it is in -lpthread on IRIX
13688 # while pthread_create is in libc. We check for pthread_attr_init
13689 # due to DEC craziness with -lpthreads. We check for
13690 # pthread_cleanup_push because it is one of the few pthread
13691 # functions on Solaris that doesn't have a non-functional libc stub.
13692 # We try pthread_create on general principles.
13694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13695 /* end confdefs.h. */
13696 #include <pthread.h>
13697 # if $ax_pthread_check_cond
13698 # error "$ax_pthread_check_macro must be defined"
13700 static void routine(void *a) { a = 0; }
13701 static void *start_routine(void *a) { return a; }
13705 pthread_t th; pthread_attr_t attr;
13706 pthread_create(&th, 0, start_routine, 0);
13707 pthread_join(th, 0);
13708 pthread_attr_init(&attr);
13709 pthread_cleanup_push(routine, 0);
13710 pthread_cleanup_pop(0) /* ; */
13715 if ac_fn_c_try_link
"$LINENO"; then :
13718 rm -f core conftest.err conftest.
$ac_objext \
13719 conftest
$ac_exeext conftest.
$ac_ext
13721 CFLAGS
="$ax_pthread_save_CFLAGS"
13722 LIBS
="$ax_pthread_save_LIBS"
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
13725 $as_echo "$ax_pthread_ok" >&6; }
13726 if test "x$ax_pthread_ok" = "xyes"; then :
13735 # Various other checks:
13736 if test "x$ax_pthread_ok" = "xyes"; then
13737 ax_pthread_save_CFLAGS
="$CFLAGS"
13738 ax_pthread_save_LIBS
="$LIBS"
13739 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
13740 LIBS
="$PTHREAD_LIBS $LIBS"
13742 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
13744 $as_echo_n "checking for joinable pthread attribute... " >&6; }
13745 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
13746 $as_echo_n "(cached) " >&6
13748 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
13749 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
13750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13751 /* end confdefs.h. */
13752 #include <pthread.h>
13756 int attr = $ax_pthread_attr; return attr /* ; */
13761 if ac_fn_c_try_link
"$LINENO"; then :
13762 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
13764 rm -f core conftest.err conftest.
$ac_objext \
13765 conftest
$ac_exeext conftest.
$ac_ext
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
13770 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
13771 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
13772 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
13773 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
13775 cat >>confdefs.h
<<_ACEOF
13776 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
13779 ax_pthread_joinable_attr_defined
=yes
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
13784 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
13785 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
13786 $as_echo_n "(cached) " >&6
13788 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
13791 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
13797 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
13798 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
13799 test "x$ax_pthread_special_flags_added" != "xyes"; then :
13800 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
13801 ax_pthread_special_flags_added
=yes
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
13805 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
13806 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
13807 $as_echo_n "(cached) " >&6
13809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13810 /* end confdefs.h. */
13811 #include <pthread.h>
13815 int i = PTHREAD_PRIO_INHERIT;
13820 if ac_fn_c_try_link
"$LINENO"; then :
13821 ax_cv_PTHREAD_PRIO_INHERIT
=yes
13823 ax_cv_PTHREAD_PRIO_INHERIT
=no
13825 rm -f core conftest.err conftest.
$ac_objext \
13826 conftest
$ac_exeext conftest.
$ac_ext
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
13830 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
13831 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
13832 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
13834 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
13836 ax_pthread_prio_inherit_defined
=yes
13840 CFLAGS
="$ax_pthread_save_CFLAGS"
13841 LIBS
="$ax_pthread_save_LIBS"
13843 # More AIX lossage: compile with *_r variant
13844 if test "x$GCC" != "xyes"; then
13848 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
13849 #handle absolute path differently from PATH based program lookup
13852 if as_fn_executable_p
${CC}_r
; then :
13853 PTHREAD_CC
="${CC}_r"
13856 for ac_prog
in ${CC}_r
13858 # Extract the first word of "$ac_prog", so it can be a program name with args.
13859 set dummy
$ac_prog; ac_word
=$2
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13861 $as_echo_n "checking for $ac_word... " >&6; }
13862 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
13863 $as_echo_n "(cached) " >&6
13865 if test -n "$PTHREAD_CC"; then
13866 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
13868 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13869 for as_dir
in $PATH
13872 test -z "$as_dir" && as_dir
=.
13873 for ac_exec_ext
in '' $ac_executable_extensions; do
13874 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13875 ac_cv_prog_PTHREAD_CC
="$ac_prog"
13876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13885 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
13886 if test -n "$PTHREAD_CC"; then
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
13888 $as_echo "$PTHREAD_CC" >&6; }
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13891 $as_echo "no" >&6; }
13895 test -n "$PTHREAD_CC" && break
13897 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
13908 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
13914 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
13915 if test "x$ax_pthread_ok" = "xyes"; then
13923 ac_cpp
='$CXXCPP $CPPFLAGS'
13924 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13925 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13926 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
13929 if test "$threads" = "yes"; then
13931 LIBS
="$PTHREAD_LIBS $LIBS"
13932 save_CXXFLAGS
="$CXXFLAGS"
13933 CXXFLAGS
="$PTHREAD_CFLAGS $save_CXXFLAGS"
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
13935 $as_echo_n "checking for std::thread... " >&6; }
13936 if ${gdb_cv_cxx_std_thread+:} false
; then :
13937 $as_echo_n "(cached) " >&6
13939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13940 /* end confdefs.h. */
13942 void callback() { }
13946 std::thread t(callback);
13951 if ac_fn_cxx_try_compile
"$LINENO"; then :
13952 gdb_cv_cxx_std_thread
=yes
13954 gdb_cv_cxx_std_thread
=no
13956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
13959 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
13961 # This check must be here, while LIBS includes any necessary
13962 # threading library.
13963 for ac_func
in pthread_sigmask pthread_setname_np
13965 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13966 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13967 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13968 cat >>confdefs.h
<<_ACEOF
13969 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13977 CXXFLAGS
="$save_CXXFLAGS"
13979 if test "$gdb_cv_cxx_std_thread" = "yes"; then
13981 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
13985 ac_cpp
='$CPP $CPPFLAGS'
13986 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13987 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13988 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
13992 $as_echo_n "checking for sigsetjmp... " >&6; }
13993 if ${gdb_cv_func_sigsetjmp+:} false
; then :
13994 $as_echo_n "(cached) " >&6
13996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13997 /* end confdefs.h. */
13999 #include <setjmp.h>
14004 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
14009 if ac_fn_c_try_compile
"$LINENO"; then :
14010 gdb_cv_func_sigsetjmp
=yes
14012 gdb_cv_func_sigsetjmp
=no
14014 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
14017 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
14018 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
14020 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
14025 # Check whether --with-intel_pt was given.
14026 if test "${with_intel_pt+set}" = set; then :
14027 withval
=$with_intel_pt;
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
14033 $as_echo_n "checking whether to use intel pt... " >&6; }
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
14035 $as_echo "$with_intel_pt" >&6; }
14037 if test "${with_intel_pt}" = no
; then
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
14039 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
14042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14043 /* end confdefs.h. */
14045 #include <linux/perf_event.h>
14046 #ifndef PERF_ATTR_SIZE_VER5
14051 if ac_fn_c_try_cpp
"$LINENO"; then :
14056 rm -f conftest.err conftest.i conftest.
$ac_ext
14057 if test "$perf_event" != yes; then
14058 if test "$with_intel_pt" = yes; then
14059 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
14062 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
14076 acl_save_prefix
="$prefix"
14077 prefix
="$acl_final_prefix"
14078 acl_save_exec_prefix
="$exec_prefix"
14079 exec_prefix
="$acl_final_exec_prefix"
14081 eval additional_includedir
=\"$includedir\"
14082 eval additional_libdir
=\"$libdir\"
14084 exec_prefix
="$acl_save_exec_prefix"
14085 prefix
="$acl_save_prefix"
14088 # Check whether --with-libipt-prefix was given.
14089 if test "${with_libipt_prefix+set}" = set; then :
14090 withval
=$with_libipt_prefix;
14091 if test "X$withval" = "Xno"; then
14094 if test "X$withval" = "X"; then
14096 acl_save_prefix
="$prefix"
14097 prefix
="$acl_final_prefix"
14098 acl_save_exec_prefix
="$exec_prefix"
14099 exec_prefix
="$acl_final_exec_prefix"
14101 eval additional_includedir
=\"$includedir\"
14102 eval additional_libdir
=\"$libdir\"
14104 exec_prefix
="$acl_save_exec_prefix"
14105 prefix
="$acl_save_prefix"
14108 additional_includedir
="$withval/include"
14109 additional_libdir
="$withval/lib"
14116 # Check whether --with-libipt-type was given.
14117 if test "${with_libipt_type+set}" = set; then :
14118 withval
=$with_libipt_type; with_libipt_type
=$withval
14120 with_libipt_type
=auto
14123 lib_type
=`eval echo \$with_libipt_type`
14130 names_already_handled
=
14131 names_next_round
='ipt '
14132 while test -n "$names_next_round"; do
14133 names_this_round
="$names_next_round"
14135 for name
in $names_this_round; do
14137 for n
in $names_already_handled; do
14138 if test "$n" = "$name"; then
14139 already_handled
=yes
14143 if test -z "$already_handled"; then
14144 names_already_handled
="$names_already_handled $name"
14145 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14146 eval value
=\"\
$HAVE_LIB$uppername\"
14147 if test -n "$value"; then
14148 if test "$value" = yes; then
14149 eval value
=\"\
$LIB$uppername\"
14150 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
14151 eval value
=\"\
$LTLIB$uppername\"
14152 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
14161 if test $use_additional = yes; then
14162 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
14163 found_dir
="$additional_libdir"
14164 found_so
="$additional_libdir/lib$name.$shlibext"
14165 if test -f "$additional_libdir/lib$name.la"; then
14166 found_la
="$additional_libdir/lib$name.la"
14168 elif test x
$lib_type != xshared
; then
14169 if test -f "$additional_libdir/lib$name.$libext"; then
14170 found_dir
="$additional_libdir"
14171 found_a
="$additional_libdir/lib$name.$libext"
14172 if test -f "$additional_libdir/lib$name.la"; then
14173 found_la
="$additional_libdir/lib$name.la"
14178 if test "X$found_dir" = "X"; then
14179 for x
in $LDFLAGS $LTLIBIPT; do
14181 acl_save_prefix
="$prefix"
14182 prefix
="$acl_final_prefix"
14183 acl_save_exec_prefix
="$exec_prefix"
14184 exec_prefix
="$acl_final_exec_prefix"
14186 exec_prefix
="$acl_save_exec_prefix"
14187 prefix
="$acl_save_prefix"
14191 dir
=`echo "X$x" | sed -e 's/^X-L//'`
14192 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
14194 found_so
="$dir/lib$name.$shlibext"
14195 if test -f "$dir/lib$name.la"; then
14196 found_la
="$dir/lib$name.la"
14198 elif test x
$lib_type != xshared
; then
14199 if test -f "$dir/lib$name.$libext"; then
14201 found_a
="$dir/lib$name.$libext"
14202 if test -f "$dir/lib$name.la"; then
14203 found_la
="$dir/lib$name.la"
14209 if test "X$found_dir" != "X"; then
14214 if test "X$found_dir" != "X"; then
14215 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
14216 if test "X$found_so" != "X"; then
14217 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
14218 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14221 for x
in $ltrpathdirs; do
14222 if test "X$x" = "X$found_dir"; then
14227 if test -z "$haveit"; then
14228 ltrpathdirs
="$ltrpathdirs $found_dir"
14230 if test "$hardcode_direct" = yes; then
14231 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14233 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
14234 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14236 for x
in $rpathdirs; do
14237 if test "X$x" = "X$found_dir"; then
14242 if test -z "$haveit"; then
14243 rpathdirs
="$rpathdirs $found_dir"
14247 for x
in $LDFLAGS $LIBIPT; do
14249 acl_save_prefix
="$prefix"
14250 prefix
="$acl_final_prefix"
14251 acl_save_exec_prefix
="$exec_prefix"
14252 exec_prefix
="$acl_final_exec_prefix"
14254 exec_prefix
="$acl_save_exec_prefix"
14255 prefix
="$acl_save_prefix"
14257 if test "X$x" = "X-L$found_dir"; then
14262 if test -z "$haveit"; then
14263 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
14265 if test "$hardcode_minus_L" != no
; then
14266 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14268 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
14274 if test "X$found_a" != "X"; then
14275 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
14277 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
14280 additional_includedir
=
14281 case "$found_dir" in
14283 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14284 additional_includedir
="$basedir/include"
14287 if test "X$additional_includedir" != "X"; then
14288 if test "X$additional_includedir" != "X/usr/include"; then
14290 if test "X$additional_includedir" = "X/usr/local/include"; then
14291 if test -n "$GCC"; then
14293 linux
*) haveit
=yes;;
14297 if test -z "$haveit"; then
14298 for x
in $CPPFLAGS $INCIPT; do
14300 acl_save_prefix
="$prefix"
14301 prefix
="$acl_final_prefix"
14302 acl_save_exec_prefix
="$exec_prefix"
14303 exec_prefix
="$acl_final_exec_prefix"
14305 exec_prefix
="$acl_save_exec_prefix"
14306 prefix
="$acl_save_prefix"
14308 if test "X$x" = "X-I$additional_includedir"; then
14313 if test -z "$haveit"; then
14314 if test -d "$additional_includedir"; then
14315 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
14321 if test -n "$found_la"; then
14322 save_libdir
="$libdir"
14323 case "$found_la" in
14324 */* |
*\\*) .
"$found_la" ;;
14325 *) .
"./$found_la" ;;
14327 libdir
="$save_libdir"
14328 for dep
in $dependency_libs; do
14331 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
14332 if test "X$additional_libdir" != "X/usr/lib"; then
14334 if test "X$additional_libdir" = "X/usr/local/lib"; then
14335 if test -n "$GCC"; then
14337 linux
*) haveit
=yes;;
14341 if test -z "$haveit"; then
14343 for x
in $LDFLAGS $LIBIPT; do
14345 acl_save_prefix
="$prefix"
14346 prefix
="$acl_final_prefix"
14347 acl_save_exec_prefix
="$exec_prefix"
14348 exec_prefix
="$acl_final_exec_prefix"
14350 exec_prefix
="$acl_save_exec_prefix"
14351 prefix
="$acl_save_prefix"
14353 if test "X$x" = "X-L$additional_libdir"; then
14358 if test -z "$haveit"; then
14359 if test -d "$additional_libdir"; then
14360 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
14364 for x
in $LDFLAGS $LTLIBIPT; do
14366 acl_save_prefix
="$prefix"
14367 prefix
="$acl_final_prefix"
14368 acl_save_exec_prefix
="$exec_prefix"
14369 exec_prefix
="$acl_final_exec_prefix"
14371 exec_prefix
="$acl_save_exec_prefix"
14372 prefix
="$acl_save_prefix"
14374 if test "X$x" = "X-L$additional_libdir"; then
14379 if test -z "$haveit"; then
14380 if test -d "$additional_libdir"; then
14381 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
14388 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
14389 if test "$enable_rpath" != no
; then
14391 for x
in $rpathdirs; do
14392 if test "X$x" = "X$dir"; then
14397 if test -z "$haveit"; then
14398 rpathdirs
="$rpathdirs $dir"
14401 for x
in $ltrpathdirs; do
14402 if test "X$x" = "X$dir"; then
14407 if test -z "$haveit"; then
14408 ltrpathdirs
="$ltrpathdirs $dir"
14413 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14416 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14419 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
14420 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
14426 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
14427 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
14428 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
14430 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
14431 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
14438 if test "X$rpathdirs" != "X"; then
14439 if test -n "$hardcode_libdir_separator"; then
14441 for found_dir
in $rpathdirs; do
14442 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14444 acl_save_libdir
="$libdir"
14446 eval flag
=\"$hardcode_libdir_flag_spec\"
14447 libdir
="$acl_save_libdir"
14448 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
14450 for found_dir
in $rpathdirs; do
14451 acl_save_libdir
="$libdir"
14452 libdir
="$found_dir"
14453 eval flag
=\"$hardcode_libdir_flag_spec\"
14454 libdir
="$acl_save_libdir"
14455 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
14459 if test "X$ltrpathdirs" != "X"; then
14460 for found_dir
in $ltrpathdirs; do
14461 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
14466 ac_save_CPPFLAGS
="$CPPFLAGS"
14468 for element
in $INCIPT; do
14470 for x
in $CPPFLAGS; do
14472 acl_save_prefix
="$prefix"
14473 prefix
="$acl_final_prefix"
14474 acl_save_exec_prefix
="$exec_prefix"
14475 exec_prefix
="$acl_final_exec_prefix"
14477 exec_prefix
="$acl_save_exec_prefix"
14478 prefix
="$acl_save_prefix"
14480 if test "X$x" = "X$element"; then
14485 if test -z "$haveit"; then
14486 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
14492 $as_echo_n "checking for libipt... " >&6; }
14493 if ${ac_cv_libipt+:} false
; then :
14494 $as_echo_n "(cached) " >&6
14497 ac_save_LIBS
="$LIBS"
14498 LIBS
="$LIBS $LIBIPT"
14499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14500 /* end confdefs.h. */
14501 #include "intel-pt.h"
14505 pt_insn_alloc_decoder (0);
14510 if ac_fn_c_try_link
"$LINENO"; then :
14515 rm -f core conftest.err conftest.
$ac_objext \
14516 conftest
$ac_exeext conftest.
$ac_ext
14517 LIBS
="$ac_save_LIBS"
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
14521 $as_echo "$ac_cv_libipt" >&6; }
14522 if test "$ac_cv_libipt" = yes; then
14525 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
14528 $as_echo_n "checking how to link with libipt... " >&6; }
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
14530 $as_echo "$LIBIPT" >&6; }
14533 CPPFLAGS
="$ac_save_CPPFLAGS"
14543 if test "$HAVE_LIBIPT" != yes; then
14544 if test "$with_intel_pt" = yes; then
14545 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
14548 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
14552 LIBS
="$LIBS $LIBIPT"
14553 for ac_func
in pt_insn_event
14555 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
14556 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
14557 cat >>confdefs.h
<<_ACEOF
14558 #define HAVE_PT_INSN_EVENT 1
14564 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
14566 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
14568 cat >>confdefs.h
<<_ACEOF
14569 #define HAVE_STRUCT_PT_INSN_ENABLED 1
14574 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
14576 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
14578 cat >>confdefs.h
<<_ACEOF
14579 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
14589 if test "$ac_cv_header_sys_procfs_h" = yes; then
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
14591 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
14592 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
14593 $as_echo_n "(cached) " >&6
14595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14596 /* end confdefs.h. */
14599 /* Needed for new procfs interface on sparc-solaris. */
14600 #define _STRUCTURED_PROC 1
14601 #include <sys/procfs.h>
14610 if ac_fn_c_try_compile
"$LINENO"; then :
14611 bfd_cv_have_sys_procfs_type_gregset_t
=yes
14613 bfd_cv_have_sys_procfs_type_gregset_t
=no
14616 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14619 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
14621 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
14625 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
14628 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
14629 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
14630 $as_echo_n "(cached) " >&6
14632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14633 /* end confdefs.h. */
14636 /* Needed for new procfs interface on sparc-solaris. */
14637 #define _STRUCTURED_PROC 1
14638 #include <sys/procfs.h>
14647 if ac_fn_c_try_compile
"$LINENO"; then :
14648 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
14650 bfd_cv_have_sys_procfs_type_fpregset_t
=no
14653 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14656 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
14658 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
14662 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
14665 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
14666 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
14667 $as_echo_n "(cached) " >&6
14669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14670 /* end confdefs.h. */
14673 /* Needed for new procfs interface on sparc-solaris. */
14674 #define _STRUCTURED_PROC 1
14675 #include <sys/procfs.h>
14684 if ac_fn_c_try_compile
"$LINENO"; then :
14685 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
14687 bfd_cv_have_sys_procfs_type_prgregset_t
=no
14690 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14693 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
14695 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
14699 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
14702 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
14703 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
14704 $as_echo_n "(cached) " >&6
14706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14707 /* end confdefs.h. */
14710 /* Needed for new procfs interface on sparc-solaris. */
14711 #define _STRUCTURED_PROC 1
14712 #include <sys/procfs.h>
14721 if ac_fn_c_try_compile
"$LINENO"; then :
14722 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
14724 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
14727 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14730 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
14732 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
14736 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
14739 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
14740 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
14741 $as_echo_n "(cached) " >&6
14743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14744 /* end confdefs.h. */
14747 /* Needed for new procfs interface on sparc-solaris. */
14748 #define _STRUCTURED_PROC 1
14749 #include <sys/procfs.h>
14758 if ac_fn_c_try_compile
"$LINENO"; then :
14759 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
14761 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
14764 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14767 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
14769 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
14773 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
14776 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
14777 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
14778 $as_echo_n "(cached) " >&6
14780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14781 /* end confdefs.h. */
14784 /* Needed for new procfs interface on sparc-solaris. */
14785 #define _STRUCTURED_PROC 1
14786 #include <sys/procfs.h>
14795 if ac_fn_c_try_compile
"$LINENO"; then :
14796 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
14798 bfd_cv_have_sys_procfs_type_lwpid_t
=no
14801 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14804 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
14806 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
14810 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
14813 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
14814 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
14815 $as_echo_n "(cached) " >&6
14817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14818 /* end confdefs.h. */
14821 /* Needed for new procfs interface on sparc-solaris. */
14822 #define _STRUCTURED_PROC 1
14823 #include <sys/procfs.h>
14832 if ac_fn_c_try_compile
"$LINENO"; then :
14833 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
14835 bfd_cv_have_sys_procfs_type_psaddr_t
=no
14838 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14841 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
14843 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
14847 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
14850 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
14851 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
14852 $as_echo_n "(cached) " >&6
14854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14855 /* end confdefs.h. */
14858 /* Needed for new procfs interface on sparc-solaris. */
14859 #define _STRUCTURED_PROC 1
14860 #include <sys/procfs.h>
14864 elf_fpregset_t avar
14869 if ac_fn_c_try_compile
"$LINENO"; then :
14870 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
14872 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
14875 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14878 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
14880 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
14884 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
14889 # Check the return and argument types of ptrace.
14892 for ac_header
in sys
/ptrace.h ptrace.h
14894 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14895 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14896 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
14897 cat >>confdefs.h
<<_ACEOF
14898 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14906 gdb_ptrace_headers
='
14907 #include <sys/types.h>
14908 #if HAVE_SYS_PTRACE_H
14909 # include <sys/ptrace.h>
14912 # include <unistd.h>
14915 # There is no point in checking if we don't have a prototype.
14916 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
14918 if test "x$ac_cv_have_decl_ptrace" = xyes
; then :
14924 cat >>confdefs.h
<<_ACEOF
14925 #define HAVE_DECL_PTRACE $ac_have_decl
14927 if test $ac_have_decl = 1; then :
14931 : ${gdb_cv_func_ptrace_ret='int'}
14932 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
14936 # Check return type. Varargs (used on GNU/Linux) conflict with the
14937 # empty argument list, so check for that explicitly.
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
14939 $as_echo_n "checking return type of ptrace... " >&6; }
14940 if ${gdb_cv_func_ptrace_ret+:} false
; then :
14941 $as_echo_n "(cached) " >&6
14943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14944 /* end confdefs.h. */
14945 $gdb_ptrace_headers
14949 extern long ptrace (enum __ptrace_request, ...);
14954 if ac_fn_c_try_compile
"$LINENO"; then :
14955 gdb_cv_func_ptrace_ret
='long'
14957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14958 /* end confdefs.h. */
14959 $gdb_ptrace_headers
14963 extern int ptrace ();
14968 if ac_fn_c_try_compile
"$LINENO"; then :
14969 gdb_cv_func_ptrace_ret
='int'
14971 gdb_cv_func_ptrace_ret
='long'
14973 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14975 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
14978 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
14980 cat >>confdefs.h
<<_ACEOF
14981 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
14984 # Check argument types.
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
14986 $as_echo_n "checking types of arguments for ptrace... " >&6; }
14987 if ${gdb_cv_func_ptrace_args+:} false
; then :
14988 $as_echo_n "(cached) " >&6
14991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14992 /* end confdefs.h. */
14993 $gdb_ptrace_headers
14997 extern long ptrace (enum __ptrace_request, ...);
15002 if ac_fn_c_try_compile
"$LINENO"; then :
15003 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
15006 for gdb_arg1
in 'int' 'long'; do
15007 for gdb_arg2
in 'pid_t' 'int' 'long'; do
15008 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
15009 for gdb_arg4
in 'int' 'long' 'void *'; do
15010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15011 /* end confdefs.h. */
15012 $gdb_ptrace_headers
15017 extern $gdb_cv_func_ptrace_ret
15018 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
15024 if ac_fn_c_try_compile
"$LINENO"; then :
15025 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
15028 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15029 for gdb_arg5
in 'int *' 'int' 'long'; do
15030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15031 /* end confdefs.h. */
15032 $gdb_ptrace_headers
15037 extern $gdb_cv_func_ptrace_ret
15038 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
15044 if ac_fn_c_try_compile
"$LINENO"; then :
15046 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
15049 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15055 # Provide a safe default value.
15056 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
15059 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
15062 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
15063 ac_save_IFS
=$IFS; IFS
=','
15064 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
15068 cat >>confdefs.h
<<_ACEOF
15069 #define PTRACE_TYPE_ARG1 $1
15073 cat >>confdefs.h
<<_ACEOF
15074 #define PTRACE_TYPE_ARG3 $3
15078 cat >>confdefs.h
<<_ACEOF
15079 #define PTRACE_TYPE_ARG4 $4
15082 if test -n "$5"; then
15084 cat >>confdefs.h
<<_ACEOF
15085 #define PTRACE_TYPE_ARG5 $5
15091 if test "$cross_compiling" = no
; then
15092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
15093 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
15094 if ${ac_cv_func_setpgrp_void+:} false
; then :
15095 $as_echo_n "(cached) " >&6
15097 if test "$cross_compiling" = yes; then :
15098 as_fn_error $?
"cannot check setpgrp when cross compiling" "$LINENO" 5
15100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15101 /* end confdefs.h. */
15102 $ac_includes_default
15106 /* If this system has a BSD-style setpgrp which takes arguments,
15107 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
15108 exit successfully. */
15109 return setpgrp (1,1) != -1;
15114 if ac_fn_c_try_run
"$LINENO"; then :
15115 ac_cv_func_setpgrp_void
=no
15117 ac_cv_func_setpgrp_void
=yes
15119 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15120 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
15125 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
15126 if test $ac_cv_func_setpgrp_void = yes; then
15128 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
15134 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
15135 if ${ac_cv_func_setpgrp_void+:} false
; then :
15136 $as_echo_n "(cached) " >&6
15138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15139 /* end confdefs.h. */
15141 #include <unistd.h>
15147 if (setpgrp(1,1) == -1)
15156 if ac_fn_c_try_compile
"$LINENO"; then :
15157 ac_cv_func_setpgrp_void
=no
15159 ac_cv_func_setpgrp_void
=yes
15161 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
15164 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
15165 if test "$ac_cv_func_setpgrp_void" = yes; then
15166 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
15171 # Assume we'll default to using the included libiberty regex.
15172 gdb_use_included_regex
=yes
15174 # However, if the system regex is GNU regex, then default to *not*
15175 # using the included regex.
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
15177 $as_echo_n "checking for GNU regex... " >&6; }
15178 if ${gdb_cv_have_gnu_regex+:} false
; then :
15179 $as_echo_n "(cached) " >&6
15181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15182 /* end confdefs.h. */
15183 #include <gnu-versions.h>
15187 #define REGEX_INTERFACE_VERSION 1
15188 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
15189 # error "Version mismatch"
15195 if ac_fn_c_try_compile
"$LINENO"; then :
15196 gdb_cv_have_gnu_regex
=yes
15198 gdb_cv_have_gnu_regex
=no
15200 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
15203 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
15204 if test "$gdb_cv_have_gnu_regex" = yes; then
15205 gdb_use_included_regex
=no
15209 # Check whether --with-included-regex was given.
15210 if test "${with_included_regex+set}" = set; then :
15211 withval
=$with_included_regex; gdb_with_regex
=$withval
15213 gdb_with_regex
=$gdb_use_included_regex
15216 if test "$gdb_with_regex" = yes; then
15218 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
15222 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
15223 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
15224 #include <sys/proc.h>
15227 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes
; then :
15229 cat >>confdefs.h
<<_ACEOF
15230 #define HAVE_STRUCT_THREAD_TD_PCB 1
15237 # See if <sys/lwp.h> defines `struct lwp`.
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
15239 $as_echo_n "checking for struct lwp... " >&6; }
15240 if ${gdb_cv_struct_lwp+:} false
; then :
15241 $as_echo_n "(cached) " >&6
15243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15244 /* end confdefs.h. */
15245 #include <sys/param.h>
15247 #include <sys/lwp.h>
15256 if ac_fn_c_try_compile
"$LINENO"; then :
15257 gdb_cv_struct_lwp
=yes
15259 gdb_cv_struct_lwp
=no
15261 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
15264 $as_echo "$gdb_cv_struct_lwp" >&6; }
15265 if test "$gdb_cv_struct_lwp" = yes; then
15267 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
15271 # See if <machine/reg.h> degines `struct reg'.
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
15273 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
15274 if ${gdb_cv_struct_reg+:} false
; then :
15275 $as_echo_n "(cached) " >&6
15277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15278 /* end confdefs.h. */
15279 #include <sys/types.h>
15280 #include <machine/reg.h>
15289 if ac_fn_c_try_compile
"$LINENO"; then :
15290 gdb_cv_struct_reg
=yes
15292 gdb_cv_struct_reg
=no
15294 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
15297 $as_echo "$gdb_cv_struct_reg" >&6; }
15298 if test "$gdb_cv_struct_reg" = yes; then
15300 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
15304 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
15305 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
15306 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
15307 #include <machine/reg.h>
15309 if test "x$ac_cv_member_struct_reg_r_fs" = xyes
; then :
15311 cat >>confdefs.h
<<_ACEOF
15312 #define HAVE_STRUCT_REG_R_FS 1
15317 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
15318 #include <machine/reg.h>
15320 if test "x$ac_cv_member_struct_reg_r_gs" = xyes
; then :
15322 cat >>confdefs.h
<<_ACEOF
15323 #define HAVE_STRUCT_REG_R_GS 1
15330 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
15331 # Older amd64 Linux's don't have the fs_base and gs_base members of
15332 # `struct user_regs_struct'.
15333 ac_fn_c_check_member
"$LINENO" "struct user_regs_struct" "fs_base" "ac_cv_member_struct_user_regs_struct_fs_base" "#include <sys/types.h>
15334 #include <sys/user.h>
15336 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = xyes
; then :
15338 cat >>confdefs.h
<<_ACEOF
15339 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
15344 ac_fn_c_check_member
"$LINENO" "struct user_regs_struct" "gs_base" "ac_cv_member_struct_user_regs_struct_gs_base" "#include <sys/types.h>
15345 #include <sys/user.h>
15347 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = xyes
; then :
15349 cat >>confdefs.h
<<_ACEOF
15350 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
15357 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
15359 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
15360 if ${gdb_cv_have_ptrace_getregs+:} false
; then :
15361 $as_echo_n "(cached) " >&6
15363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15364 /* end confdefs.h. */
15365 #include <sys/ptrace.h>
15374 if ac_fn_c_try_compile
"$LINENO"; then :
15375 gdb_cv_have_ptrace_getregs
=yes
15377 gdb_cv_have_ptrace_getregs
=no
15379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
15383 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
15384 if test "$gdb_cv_have_ptrace_getregs" = yes; then
15386 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
15390 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
15392 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
15393 if ${gdb_cv_have_ptrace_getfpxregs+:} false
; then :
15394 $as_echo_n "(cached) " >&6
15396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15397 /* end confdefs.h. */
15398 #include <sys/ptrace.h>
15407 if ac_fn_c_try_compile
"$LINENO"; then :
15408 gdb_cv_have_ptrace_getfpxregs
=yes
15410 gdb_cv_have_ptrace_getfpxregs
=no
15412 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
15416 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
15417 if test "$gdb_cv_have_ptrace_getfpxregs" = yes; then
15419 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
15423 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
15425 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
15426 if ${gdb_cv_have_pt_getdbregs+:} false
; then :
15427 $as_echo_n "(cached) " >&6
15429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15430 /* end confdefs.h. */
15431 #include <sys/types.h>
15432 #include <sys/ptrace.h>
15441 if ac_fn_c_try_compile
"$LINENO"; then :
15442 gdb_cv_have_pt_getdbregs
=yes
15444 gdb_cv_have_pt_getdbregs
=no
15446 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
15450 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
15451 if test "$gdb_cv_have_pt_getdbregs" = yes; then
15453 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
15457 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
15459 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
15460 if ${gdb_cv_have_pt_getxmmregs+:} false
; then :
15461 $as_echo_n "(cached) " >&6
15463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15464 /* end confdefs.h. */
15465 #include <sys/types.h>
15466 #include <sys/ptrace.h>
15475 if ac_fn_c_try_compile
"$LINENO"; then :
15476 gdb_cv_have_pt_getxmmregs
=yes
15478 gdb_cv_have_pt_getxmmregs
=no
15480 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
15484 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
15485 if test "$gdb_cv_have_pt_getxmmregs" = yes; then
15487 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
15491 # See if <sys/ptrace.h> supports LWP names on FreeBSD
15492 # Older FreeBSD versions don't have the pl_tdname member of
15493 # `struct ptrace_lwpinfo'.
15494 ac_fn_c_check_member
"$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
15496 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes
; then :
15498 cat >>confdefs.h
<<_ACEOF
15499 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
15506 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
15507 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
15509 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>
15511 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes
; then :
15513 cat >>confdefs.h
<<_ACEOF
15514 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
15521 # Check if the compiler supports the `long long' type.
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
15524 $as_echo_n "checking for long long support in compiler... " >&6; }
15525 if ${gdb_cv_c_long_long+:} false
; then :
15526 $as_echo_n "(cached) " >&6
15528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15529 /* end confdefs.h. */
15530 extern long long foo;
15534 switch (foo & 2) { case 0: return 1; }
15539 if ac_fn_c_try_compile
"$LINENO"; then :
15540 gdb_cv_c_long_long
=yes
15542 gdb_cv_c_long_long
=no
15544 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
15547 $as_echo "$gdb_cv_c_long_long" >&6; }
15548 if test "$gdb_cv_c_long_long" != yes; then
15549 # libdecnumber requires long long.
15550 as_fn_error $?
"Compiler must support long long for GDB." "$LINENO" 5
15553 # Check if the compiler and runtime support printing long longs.
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
15556 $as_echo_n "checking for long long support in printf... " >&6; }
15557 if ${gdb_cv_printf_has_long_long+:} false
; then :
15558 $as_echo_n "(cached) " >&6
15560 if test "$cross_compiling" = yes; then :
15561 gdb_cv_printf_has_long_long
=no
15563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15564 /* end confdefs.h. */
15565 $ac_includes_default
15571 l = (l << 16) + 0x0123;
15572 l = (l << 16) + 0x4567;
15573 l = (l << 16) + 0x89ab;
15574 l = (l << 16) + 0xcdef;
15575 sprintf (buf, "0x%016llx", l);
15576 return (strcmp ("0x0123456789abcdef", buf));
15581 if ac_fn_c_try_run
"$LINENO"; then :
15582 gdb_cv_printf_has_long_long
=yes
15584 gdb_cv_printf_has_long_long
=no
15586 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15587 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
15592 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
15593 if test "$gdb_cv_printf_has_long_long" = yes; then
15595 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
15599 # Check if the compiler and runtime support printing decfloats.
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
15602 $as_echo_n "checking for decfloat support in printf... " >&6; }
15603 if ${gdb_cv_printf_has_decfloat+:} false
; then :
15604 $as_echo_n "(cached) " >&6
15606 if test "$cross_compiling" = yes; then :
15607 gdb_cv_printf_has_decfloat
=no
15609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15610 /* end confdefs.h. */
15611 $ac_includes_default
15616 _Decimal32 d32 = 1.2345df;
15617 _Decimal64 d64 = 1.2345dd;
15618 _Decimal128 d128 = 1.2345dl;
15619 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
15620 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
15625 if ac_fn_c_try_run
"$LINENO"; then :
15626 gdb_cv_printf_has_decfloat
=yes
15628 gdb_cv_printf_has_decfloat
=no
15630 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15631 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
15636 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
15637 if test "$gdb_cv_printf_has_decfloat" = yes; then
15639 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
15643 # Check if the compiler supports the `long double' type. We can't use
15644 # AC_C_LONG_DOUBLE because that one does additional checks on the
15645 # constants defined in <float.h> that fail on some systems,
15646 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
15649 $as_echo_n "checking for long double support in compiler... " >&6; }
15650 if ${gdb_cv_c_long_double+:} false
; then :
15651 $as_echo_n "(cached) " >&6
15653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15654 /* end confdefs.h. */
15657 if ac_fn_c_try_compile
"$LINENO"; then :
15658 gdb_cv_c_long_double
=yes
15660 gdb_cv_c_long_double
=no
15662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
15665 $as_echo "$gdb_cv_c_long_double" >&6; }
15666 if test "$gdb_cv_c_long_double" = yes; then
15668 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
15672 # Check if the compiler and runtime support printing long doubles.
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
15675 $as_echo_n "checking for long double support in printf... " >&6; }
15676 if ${gdb_cv_printf_has_long_double+:} false
; then :
15677 $as_echo_n "(cached) " >&6
15679 if test "$cross_compiling" = yes; then :
15680 gdb_cv_printf_has_long_double
=no
15682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15683 /* end confdefs.h. */
15684 $ac_includes_default
15689 long double f = 3.141592653;
15690 sprintf (buf, "%Lg", f);
15691 return (strncmp ("3.14159", buf, 7));
15696 if ac_fn_c_try_run
"$LINENO"; then :
15697 gdb_cv_printf_has_long_double
=yes
15699 gdb_cv_printf_has_long_double
=no
15701 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15702 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
15707 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
15708 if test "$gdb_cv_printf_has_long_double" = yes; then
15710 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
15714 # Check if the compiler and runtime support scanning long doubles.
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
15717 $as_echo_n "checking for long double support in scanf... " >&6; }
15718 if ${gdb_cv_scanf_has_long_double+:} false
; then :
15719 $as_echo_n "(cached) " >&6
15721 if test "$cross_compiling" = yes; then :
15722 gdb_cv_scanf_has_long_double
=no
15724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15725 /* end confdefs.h. */
15730 char *buf = "3.141592653";
15732 sscanf (buf, "%Lg", &f);
15733 return !(f > 3.14159 && f < 3.14160);
15738 if ac_fn_c_try_run
"$LINENO"; then :
15739 gdb_cv_scanf_has_long_double
=yes
15741 gdb_cv_scanf_has_long_double
=no
15743 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15744 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
15749 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
15750 if test "$gdb_cv_scanf_has_long_double" = yes; then
15752 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
15759 $as_echo_n "checking for -bbigtoc option... " >&6; }
15760 if ${gdb_cv_bigtoc+:} false
; then :
15761 $as_echo_n "(cached) " >&6
15764 SAVE_LDFLAGS
=$LDFLAGS
15767 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
15768 *) gdb_cv_bigtoc
=-bbigtoc ;;
15771 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
15772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15773 /* end confdefs.h. */
15783 if ac_fn_c_try_link
"$LINENO"; then :
15788 rm -f core conftest.err conftest.
$ac_objext \
15789 conftest
$ac_exeext conftest.
$ac_ext
15790 LDFLAGS
="${SAVE_LDFLAGS}"
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
15794 $as_echo "$gdb_cv_bigtoc" >&6; }
15795 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
15800 $as_echo_n "checking for the dynamic export flag... " >&6; }
15802 if test "${gdb_native}" = yes; then
15803 # The dynamically loaded libthread_db needs access to symbols in the gdb
15804 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
15805 # may not be supported there.
15806 old_LDFLAGS
="$LDFLAGS"
15807 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
15808 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
15809 LDFLAGS
="$LDFLAGS $RDYNAMIC"
15810 if test "${have_libpython}" = no
; then
15811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15812 /* end confdefs.h. */
15822 if ac_fn_c_try_link
"$LINENO"; then :
15825 rm -f core conftest.err conftest.
$ac_objext \
15826 conftest
$ac_exeext conftest.
$ac_ext
15828 # Workaround http://bugs.python.org/issue4434 where static
15829 # libpythonX.Y.a would get its symbols required for
15830 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
15831 # Problem does not happen for the recommended libpythonX.Y.so linkage.
15833 # Note the workaround for Python
15834 # http://bugs.python.org/issue10112 earlier has removed
15835 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
15836 # here too, as otherwise it'd make this -Wl,--dynamic-list test
15838 old_CFLAGS
="$CFLAGS"
15839 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
15841 LIBS
="$LIBS $PYTHON_LIBS"
15842 old_CPPFLAGS
="$CPPFLAGS"
15843 CPPFLAGS
="$CPPFLAGS $PYTHON_CPPFLAGS"
15844 if test "$cross_compiling" = yes; then :
15847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15848 /* end confdefs.h. */
15849 #include "Python.h"
15855 err = PyRun_SimpleString ("import itertools\n");
15857 return err == 0 ? 0 : 1;
15862 if ac_fn_c_try_run
"$LINENO"; then :
15865 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15866 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15870 CFLAGS
="$old_CFLAGS"
15871 CPPFLAGS
="$old_CPPFLAGS"
15873 LDFLAGS
="$old_LDFLAGS"
15875 if $dynamic_list; then
15876 found
="-Wl,--dynamic-list"
15877 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
15880 RDYNAMIC
="-rdynamic"
15883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
15884 $as_echo "$found" >&6; }
15887 if test "${build}" = "${host}" -a "${host}" = "${target}" ; then
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
15891 $as_echo_n "checking for AiX thread debugging library... " >&6; }
15892 if ${gdb_cv_have_aix_thread_debug+:} false
; then :
15893 $as_echo_n "(cached) " >&6
15895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15896 /* end confdefs.h. */
15897 #include <sys/pthdebug.h>
15901 #ifndef PTHDB_VERSION_3
15908 if ac_fn_c_try_compile
"$LINENO"; then :
15909 gdb_cv_have_aix_thread_debug
=yes
15911 gdb_cv_have_aix_thread_debug
=no
15913 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
15917 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
15918 if test "$gdb_cv_have_aix_thread_debug" = yes; then
15919 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
15920 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
15921 LIBS
="$LIBS -lpthdebug"
15923 # Older versions of AIX do not provide the declaration for
15924 # the getthrds function (it appears that it was introduced
15926 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
15928 if test "x$ac_cv_have_decl_getthrds" = xyes
; then :
15934 cat >>confdefs.h
<<_ACEOF
15935 #define HAVE_DECL_GETTHRDS $ac_have_decl
15944 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
15946 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
15947 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false
; then :
15948 $as_echo_n "(cached) " >&6
15950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15951 /* end confdefs.h. */
15952 #include <thread_db.h>
15956 int i = TD_NOTALLOC;
15961 if ac_fn_c_try_compile
"$LINENO"; then :
15962 gdb_cv_thread_db_h_has_td_notalloc
=yes
15964 gdb_cv_thread_db_h_has_td_notalloc
=no
15967 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
15971 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
15973 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
15974 if ${gdb_cv_thread_db_h_has_td_version+:} false
; then :
15975 $as_echo_n "(cached) " >&6
15977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15978 /* end confdefs.h. */
15979 #include <thread_db.h>
15983 int i = TD_VERSION;
15988 if ac_fn_c_try_compile
"$LINENO"; then :
15989 gdb_cv_thread_db_h_has_td_version
=yes
15991 gdb_cv_thread_db_h_has_td_version
=no
15994 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
15998 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
16000 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
16001 if ${gdb_cv_thread_db_h_has_td_notls+:} false
; then :
16002 $as_echo_n "(cached) " >&6
16004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16005 /* end confdefs.h. */
16006 #include <thread_db.h>
16015 if ac_fn_c_try_compile
"$LINENO"; then :
16016 gdb_cv_thread_db_h_has_td_notls
=yes
16018 gdb_cv_thread_db_h_has_td_notls
=no
16021 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
16025 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
16027 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
16029 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
16032 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
16034 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
16037 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
16039 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
16052 cat >>confdefs.h
<<_ACEOF
16053 #define GDBINIT "$gdbinit"
16058 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
16059 # except that the argument to --with-sysroot is optional.
16060 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
16061 if test "x$with_sysroot" = xyes
; then
16062 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
16065 # Check whether --with-sysroot was given.
16066 if test "${with_sysroot+set}" = set; then :
16067 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
16069 TARGET_SYSTEM_ROOT
=
16073 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16074 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16075 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
16076 ac_define_dir
=`eval echo $ac_define_dir`
16078 cat >>confdefs.h
<<_ACEOF
16079 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
16085 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16086 if test "x$prefix" = xNONE
; then
16087 test_prefix
=/usr
/local
16089 test_prefix
=$prefix
16092 test_prefix
=$exec_prefix
16095 case ${ac_define_dir} in
16096 "${test_prefix}"|
"${test_prefix}/"*|\
16097 '${exec_prefix}'|
'${exec_prefix}/'*)
16102 cat >>confdefs.h
<<_ACEOF
16103 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
16110 # Check whether --with-system-gdbinit was given.
16111 if test "${with_system_gdbinit+set}" = set; then :
16112 withval
=$with_system_gdbinit;
16113 SYSTEM_GDBINIT
=$withval
16119 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16120 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16121 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
16122 ac_define_dir
=`eval echo $ac_define_dir`
16124 cat >>confdefs.h
<<_ACEOF
16125 #define SYSTEM_GDBINIT "$ac_define_dir"
16131 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16132 if test "x$prefix" = xNONE
; then
16133 test_prefix
=/usr
/local
16135 test_prefix
=$prefix
16138 test_prefix
=$exec_prefix
16141 case ${ac_define_dir} in
16142 "${test_prefix}"|
"${test_prefix}/"*|\
16143 '${exec_prefix}'|
'${exec_prefix}/'*)
16148 cat >>confdefs.h
<<_ACEOF
16149 #define SYSTEM_GDBINIT_RELOCATABLE $value
16156 # Check whether --with-system-gdbinit-dir was given.
16157 if test "${with_system_gdbinit_dir+set}" = set; then :
16158 withval
=$with_system_gdbinit_dir;
16159 SYSTEM_GDBINIT_DIR
=$withval
16161 SYSTEM_GDBINIT_DIR
=
16165 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16166 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16167 ac_define_dir
=`eval echo $SYSTEM_GDBINIT_DIR`
16168 ac_define_dir
=`eval echo $ac_define_dir`
16170 cat >>confdefs.h
<<_ACEOF
16171 #define SYSTEM_GDBINIT_DIR "$ac_define_dir"
16177 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16178 if test "x$prefix" = xNONE
; then
16179 test_prefix
=/usr
/local
16181 test_prefix
=$prefix
16184 test_prefix
=$exec_prefix
16187 case ${ac_define_dir} in
16188 "${test_prefix}"|
"${test_prefix}/"*|\
16189 '${exec_prefix}'|
'${exec_prefix}/'*)
16194 cat >>confdefs.h
<<_ACEOF
16195 #define SYSTEM_GDBINIT_DIR_RELOCATABLE $value
16202 # Check whether --enable-werror was given.
16203 if test "${enable_werror+set}" = set; then :
16204 enableval
=$enable_werror; case "${enableval}" in
16205 yes | y
) ERROR_ON_WARNING
="yes" ;;
16206 no | n
) ERROR_ON_WARNING
="no" ;;
16207 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16212 # Enable -Werror by default when using gcc. Turn it off for releases.
16213 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
16214 ERROR_ON_WARNING
=yes
16218 if test "${ERROR_ON_WARNING}" = yes ; then
16219 WERROR_CFLAGS
="-Werror"
16222 # The options we'll try to enable.
16223 build_warnings
="-Wall -Wpointer-arith \
16224 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
16225 -Wno-switch -Wno-char-subscripts \
16226 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
16227 -Wno-sign-compare -Wno-error=maybe-uninitialized \
16228 -Wno-mismatched-tags \
16229 -Wno-error=deprecated-register \
16230 -Wsuggest-override \
16231 -Wimplicit-fallthrough=3 \
16232 -Wduplicated-cond \
16234 -Wdeprecated-copy \
16235 -Wdeprecated-copy-dtor \
16237 -Wmissing-declarations \
16238 -Wstrict-null-sentinel \
16243 # Enable -Wno-format by default when using gcc on mingw since many
16244 # GCC versions complain about %I64.
16245 build_warnings
="$build_warnings -Wno-format" ;;
16247 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
16248 # doesn't understand.
16249 build_warnings
="$build_warnings -Wno-unknown-pragmas"
16250 # Solaris 11 <unistd.h> marks vfork deprecated.
16251 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
16253 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
16254 # but there's a special case for this below.
16255 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
16258 # Check whether --enable-build-warnings was given.
16259 if test "${enable_build_warnings+set}" = set; then :
16260 enableval
=$enable_build_warnings; case "${enableval}" in
16262 no
) build_warnings
="-w";;
16263 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16264 build_warnings
="${build_warnings} ${t}";;
16265 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16266 build_warnings
="${t} ${build_warnings}";;
16267 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16269 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
16270 echo "Setting compiler warning flags = $build_warnings" 6>&1
16273 # Check whether --enable-gdb-build-warnings was given.
16274 if test "${enable_gdb_build_warnings+set}" = set; then :
16275 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
16277 no
) build_warnings
="-w";;
16278 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16279 build_warnings
="${build_warnings} ${t}";;
16280 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16281 build_warnings
="${t} ${build_warnings}";;
16282 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16284 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
16285 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
16289 # The set of warnings supported by a C++ compiler is not the same as
16290 # of the C compiler.
16292 ac_cpp
='$CXXCPP $CPPFLAGS'
16293 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16294 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16295 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
16299 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
16302 $as_echo_n "checking compiler warning flags... " >&6; }
16303 # Separate out the -Werror flag as some files just cannot be
16304 # compiled with it enabled.
16305 for w
in ${build_warnings}; do
16306 # GCC does not complain about -Wno-unknown-warning. Invert
16307 # and test -Wunknown-warning instead.
16310 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
16311 -Wformat-nonliteral)
16312 # gcc requires -Wformat before -Wformat-nonliteral
16313 # will work, so stick them together.
16322 -Werr*) WERROR_CFLAGS
=-Werror ;;
16324 # Check whether GCC accepts it.
16325 saved_CFLAGS
="$CFLAGS"
16326 CFLAGS
="$CFLAGS -Werror $wtest"
16327 saved_CXXFLAGS
="$CXXFLAGS"
16328 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
16329 if test "x$w" = "x-Wunused-variable"; then
16330 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
16331 # fixed in GCC 4.9. This test is derived from the gdb
16332 # source code that triggered this bug in GCC.
16333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16334 /* end confdefs.h. */
16335 struct scoped_restore_base {};
16336 struct scoped_restore_tmpl : public scoped_restore_base {
16337 ~scoped_restore_tmpl() {}
16342 const scoped_restore_base &b = scoped_restore_tmpl();
16347 if ac_fn_cxx_try_compile
"$LINENO"; then :
16348 WARN_CFLAGS
="${WARN_CFLAGS} $w"
16350 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16353 /* end confdefs.h. */
16363 if ac_fn_cxx_try_compile
"$LINENO"; then :
16364 WARN_CFLAGS
="${WARN_CFLAGS} $w"
16366 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16368 CFLAGS
="$saved_CFLAGS"
16369 CXXFLAGS
="$saved_CXXFLAGS"
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
16373 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
16379 ac_cpp='$CPP $CPPFLAGS'
16380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16386 # Check whether --enable-ubsan was given.
16387 if test "${enable_ubsan+set}" = set; then :
16388 enableval=$enable_ubsan;
16393 if test "x
$enable_ubsan" = xauto; then
16394 if $development; then
16399 ac_cpp='$CXXCPP $CPPFLAGS'
16400 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16401 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16402 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16404 if test "x
$enable_ubsan" = xyes; then
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
-fsanitize=undefined is accepted
" >&5
16406 $as_echo_n "checking whether
-fsanitize=undefined is accepted...
" >&6; }
16407 saved_CXXFLAGS="$CXXFLAGS"
16408 CXXFLAGS="$CXXFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
16409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16410 /* end confdefs.h. */
16420 if ac_fn_cxx_try_link "$LINENO"; then :
16425 rm -f core conftest.err conftest.$ac_objext \
16426 conftest$ac_exeext conftest.$ac_ext
16427 CXXFLAGS="$saved_CXXFLAGS"
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $enable_ubsan" >&5
16429 $as_echo "$enable_ubsan" >&6; }
16430 if test "x
$enable_ubsan" = xyes; then
16431 WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
16432 CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined
"
16436 ac_cpp='$CPP $CPPFLAGS'
16437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16443 # In the Cygwin environment, we need some additional flags.
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
16445 $as_echo_n "checking
for cygwin...
" >&6; }
16446 if ${gdb_cv_os_cygwin+:} false; then :
16447 $as_echo_n "(cached
) " >&6
16449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16450 /* end confdefs.h. */
16452 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
16456 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
16457 $EGREP "^lose$
" >/dev/null 2>&1; then :
16458 gdb_cv_os_cygwin=yes
16460 gdb_cv_os_cygwin=no
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
16466 $as_echo "$gdb_cv_os_cygwin" >&6; }
16469 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
16471 *go32* ) SER_HARDWIRE=ser-go32.o ;;
16472 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
16473 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
16474 *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o
" ;;
16478 # libreadline needs libuser32.a in a cygwin environment
16480 if test x"$gdb_cv_os_cygwin" = xyes; then
16481 WIN32LIBS="-luser32"
16482 case "${target}" in
16483 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
16488 # The ser-tcp.c module requires sockets.
16489 # Note that WIN32APILIBS is set by GDB_AC_COMMON.
16490 WIN32LIBS="$WIN32LIBS $WIN32APILIBS"
16492 # Add ELF support to GDB, but only if BFD includes ELF support.
16495 OLD_LDFLAGS=$LDFLAGS
16497 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
16498 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
16499 # always want our bfd.
16500 CFLAGS="-I${srcdir}/..
/include
-I..
/bfd
-I${srcdir}/..
/bfd
$CFLAGS"
16501 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
16502 LDFLAGS="-L..
/bfd
-L..
/libiberty
$ZLIBDIR $LDFLAGS"
16503 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
16504 LIBS="-lbfd -liberty -lz $intl $LIBS"
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ELF support
in BFD
" >&5
16506 $as_echo_n "checking
for ELF support
in BFD...
" >&6; }
16507 if ${gdb_cv_var_elf+:} false; then :
16508 $as_echo_n "(cached
) " >&6
16510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16511 /* end confdefs.h. */
16512 #include <stdlib.h>
16514 #include "elf-bfd.h
"
16519 return bfd_get_elf_phdr_upper_bound (NULL);
16524 if ac_fn_c_try_link "$LINENO"; then :
16529 rm -f core conftest.err conftest.$ac_objext \
16530 conftest$ac_exeext conftest.$ac_ext
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_var_elf" >&5
16533 $as_echo "$gdb_cv_var_elf" >&6; }
16535 LDFLAGS=$OLD_LDFLAGS
16537 if test "$gdb_cv_var_elf" = yes; then
16538 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o
"
16540 $as_echo "#define HAVE_ELF 1" >>confdefs.h
16542 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
16543 if test "$plugins" = "yes"; then
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16545 $as_echo_n "checking for library containing dlopen... " >&6; }
16546 if ${ac_cv_search_dlopen+:} false
; then :
16547 $as_echo_n "(cached) " >&6
16549 ac_func_search_save_LIBS
=$LIBS
16550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16551 /* end confdefs.h. */
16553 /* Override any GCC internal prototype to avoid an error.
16554 Use char because int might match the return type of a GCC
16555 builtin and then its argument prototype would still apply. */
16568 for ac_lib
in '' dl
; do
16569 if test -z "$ac_lib"; then
16570 ac_res
="none required"
16573 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
16575 if ac_fn_c_try_link
"$LINENO"; then :
16576 ac_cv_search_dlopen
=$ac_res
16578 rm -f core conftest.err conftest.
$ac_objext \
16580 if ${ac_cv_search_dlopen+:} false
; then :
16584 if ${ac_cv_search_dlopen+:} false
; then :
16587 ac_cv_search_dlopen
=no
16589 rm conftest.
$ac_ext
16590 LIBS
=$ac_func_search_save_LIBS
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16593 $as_echo "$ac_cv_search_dlopen" >&6; }
16594 ac_res
=$ac_cv_search_dlopen
16595 if test "$ac_res" != no
; then :
16596 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
16603 # Add macho support to GDB, but only if BFD includes it.
16606 OLD_LDFLAGS
=$LDFLAGS
16608 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
16609 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
16610 # always want our bfd.
16611 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
16612 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
16613 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
16614 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
16615 LIBS
="-lbfd -liberty -lz $intl $LIBS"
16616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
16617 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
16618 if ${gdb_cv_var_macho+:} false
; then :
16619 $as_echo_n "(cached) " >&6
16621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16622 /* end confdefs.h. */
16623 #include <stdlib.h>
16625 #include "mach-o.h"
16630 return bfd_mach_o_lookup_command (NULL, 0, NULL);
16635 if ac_fn_c_try_link
"$LINENO"; then :
16636 gdb_cv_var_macho
=yes
16638 gdb_cv_var_macho
=no
16640 rm -f core conftest.err conftest.
$ac_objext \
16641 conftest
$ac_exeext conftest.
$ac_ext
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
16644 $as_echo "$gdb_cv_var_macho" >&6; }
16646 LDFLAGS
=$OLD_LDFLAGS
16648 if test "$gdb_cv_var_macho" = yes; then
16649 CONFIG_OBS
="$CONFIG_OBS machoread.o"
16652 # Add any host-specific objects to GDB.
16653 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
16655 # If building on ELF, look for lzma support for embedded compressed debug info.
16656 if test "$gdb_cv_var_elf" = yes; then
16658 # Check whether --with-lzma was given.
16659 if test "${with_lzma+set}" = set; then :
16660 withval
=$with_lzma;
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
16666 $as_echo_n "checking whether to use lzma... " >&6; }
16667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
16668 $as_echo "$with_lzma" >&6; }
16670 if test "${with_lzma}" != no
; then
16681 acl_save_prefix
="$prefix"
16682 prefix
="$acl_final_prefix"
16683 acl_save_exec_prefix
="$exec_prefix"
16684 exec_prefix
="$acl_final_exec_prefix"
16686 eval additional_includedir
=\"$includedir\"
16687 eval additional_libdir
=\"$libdir\"
16689 exec_prefix
="$acl_save_exec_prefix"
16690 prefix
="$acl_save_prefix"
16693 # Check whether --with-liblzma-prefix was given.
16694 if test "${with_liblzma_prefix+set}" = set; then :
16695 withval
=$with_liblzma_prefix;
16696 if test "X$withval" = "Xno"; then
16699 if test "X$withval" = "X"; then
16701 acl_save_prefix
="$prefix"
16702 prefix
="$acl_final_prefix"
16703 acl_save_exec_prefix
="$exec_prefix"
16704 exec_prefix
="$acl_final_exec_prefix"
16706 eval additional_includedir
=\"$includedir\"
16707 eval additional_libdir
=\"$libdir\"
16709 exec_prefix
="$acl_save_exec_prefix"
16710 prefix
="$acl_save_prefix"
16713 additional_includedir
="$withval/include"
16714 additional_libdir
="$withval/lib"
16721 # Check whether --with-liblzma-type was given.
16722 if test "${with_liblzma_type+set}" = set; then :
16723 withval
=$with_liblzma_type; with_liblzma_type
=$withval
16725 with_liblzma_type
=auto
16728 lib_type
=`eval echo \$with_liblzma_type`
16735 names_already_handled
=
16736 names_next_round
='lzma '
16737 while test -n "$names_next_round"; do
16738 names_this_round
="$names_next_round"
16740 for name
in $names_this_round; do
16742 for n
in $names_already_handled; do
16743 if test "$n" = "$name"; then
16744 already_handled
=yes
16748 if test -z "$already_handled"; then
16749 names_already_handled
="$names_already_handled $name"
16750 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16751 eval value
=\"\
$HAVE_LIB$uppername\"
16752 if test -n "$value"; then
16753 if test "$value" = yes; then
16754 eval value
=\"\
$LIB$uppername\"
16755 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
16756 eval value
=\"\
$LTLIB$uppername\"
16757 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
16766 if test $use_additional = yes; then
16767 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
16768 found_dir
="$additional_libdir"
16769 found_so
="$additional_libdir/lib$name.$shlibext"
16770 if test -f "$additional_libdir/lib$name.la"; then
16771 found_la
="$additional_libdir/lib$name.la"
16773 elif test x
$lib_type != xshared
; then
16774 if test -f "$additional_libdir/lib$name.$libext"; then
16775 found_dir
="$additional_libdir"
16776 found_a
="$additional_libdir/lib$name.$libext"
16777 if test -f "$additional_libdir/lib$name.la"; then
16778 found_la
="$additional_libdir/lib$name.la"
16783 if test "X$found_dir" = "X"; then
16784 for x
in $LDFLAGS $LTLIBLZMA; do
16786 acl_save_prefix
="$prefix"
16787 prefix
="$acl_final_prefix"
16788 acl_save_exec_prefix
="$exec_prefix"
16789 exec_prefix
="$acl_final_exec_prefix"
16791 exec_prefix
="$acl_save_exec_prefix"
16792 prefix
="$acl_save_prefix"
16796 dir
=`echo "X$x" | sed -e 's/^X-L//'`
16797 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
16799 found_so
="$dir/lib$name.$shlibext"
16800 if test -f "$dir/lib$name.la"; then
16801 found_la
="$dir/lib$name.la"
16803 elif test x
$lib_type != xshared
; then
16804 if test -f "$dir/lib$name.$libext"; then
16806 found_a
="$dir/lib$name.$libext"
16807 if test -f "$dir/lib$name.la"; then
16808 found_la
="$dir/lib$name.la"
16814 if test "X$found_dir" != "X"; then
16819 if test "X$found_dir" != "X"; then
16820 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
16821 if test "X$found_so" != "X"; then
16822 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
16823 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
16826 for x
in $ltrpathdirs; do
16827 if test "X$x" = "X$found_dir"; then
16832 if test -z "$haveit"; then
16833 ltrpathdirs
="$ltrpathdirs $found_dir"
16835 if test "$hardcode_direct" = yes; then
16836 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
16838 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
16839 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
16841 for x
in $rpathdirs; do
16842 if test "X$x" = "X$found_dir"; then
16847 if test -z "$haveit"; then
16848 rpathdirs
="$rpathdirs $found_dir"
16852 for x
in $LDFLAGS $LIBLZMA; do
16854 acl_save_prefix
="$prefix"
16855 prefix
="$acl_final_prefix"
16856 acl_save_exec_prefix
="$exec_prefix"
16857 exec_prefix
="$acl_final_exec_prefix"
16859 exec_prefix
="$acl_save_exec_prefix"
16860 prefix
="$acl_save_prefix"
16862 if test "X$x" = "X-L$found_dir"; then
16867 if test -z "$haveit"; then
16868 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
16870 if test "$hardcode_minus_L" != no
; then
16871 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
16873 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
16879 if test "X$found_a" != "X"; then
16880 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
16882 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
16885 additional_includedir
=
16886 case "$found_dir" in
16888 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16889 additional_includedir
="$basedir/include"
16892 if test "X$additional_includedir" != "X"; then
16893 if test "X$additional_includedir" != "X/usr/include"; then
16895 if test "X$additional_includedir" = "X/usr/local/include"; then
16896 if test -n "$GCC"; then
16898 linux
*) haveit
=yes;;
16902 if test -z "$haveit"; then
16903 for x
in $CPPFLAGS $INCLZMA; do
16905 acl_save_prefix
="$prefix"
16906 prefix
="$acl_final_prefix"
16907 acl_save_exec_prefix
="$exec_prefix"
16908 exec_prefix
="$acl_final_exec_prefix"
16910 exec_prefix
="$acl_save_exec_prefix"
16911 prefix
="$acl_save_prefix"
16913 if test "X$x" = "X-I$additional_includedir"; then
16918 if test -z "$haveit"; then
16919 if test -d "$additional_includedir"; then
16920 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
16926 if test -n "$found_la"; then
16927 save_libdir
="$libdir"
16928 case "$found_la" in
16929 */* |
*\\*) .
"$found_la" ;;
16930 *) .
"./$found_la" ;;
16932 libdir
="$save_libdir"
16933 for dep
in $dependency_libs; do
16936 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
16937 if test "X$additional_libdir" != "X/usr/lib"; then
16939 if test "X$additional_libdir" = "X/usr/local/lib"; then
16940 if test -n "$GCC"; then
16942 linux
*) haveit
=yes;;
16946 if test -z "$haveit"; then
16948 for x
in $LDFLAGS $LIBLZMA; do
16950 acl_save_prefix
="$prefix"
16951 prefix
="$acl_final_prefix"
16952 acl_save_exec_prefix
="$exec_prefix"
16953 exec_prefix
="$acl_final_exec_prefix"
16955 exec_prefix
="$acl_save_exec_prefix"
16956 prefix
="$acl_save_prefix"
16958 if test "X$x" = "X-L$additional_libdir"; then
16963 if test -z "$haveit"; then
16964 if test -d "$additional_libdir"; then
16965 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
16969 for x
in $LDFLAGS $LTLIBLZMA; do
16971 acl_save_prefix
="$prefix"
16972 prefix
="$acl_final_prefix"
16973 acl_save_exec_prefix
="$exec_prefix"
16974 exec_prefix
="$acl_final_exec_prefix"
16976 exec_prefix
="$acl_save_exec_prefix"
16977 prefix
="$acl_save_prefix"
16979 if test "X$x" = "X-L$additional_libdir"; then
16984 if test -z "$haveit"; then
16985 if test -d "$additional_libdir"; then
16986 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
16993 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
16994 if test "$enable_rpath" != no
; then
16996 for x
in $rpathdirs; do
16997 if test "X$x" = "X$dir"; then
17002 if test -z "$haveit"; then
17003 rpathdirs
="$rpathdirs $dir"
17006 for x
in $ltrpathdirs; do
17007 if test "X$x" = "X$dir"; then
17012 if test -z "$haveit"; then
17013 ltrpathdirs
="$ltrpathdirs $dir"
17018 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17021 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17024 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
17025 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
17031 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
17032 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
17033 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
17035 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l:lib$name.$libext"
17036 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l:lib$name.$libext"
17043 if test "X$rpathdirs" != "X"; then
17044 if test -n "$hardcode_libdir_separator"; then
17046 for found_dir
in $rpathdirs; do
17047 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17049 acl_save_libdir
="$libdir"
17051 eval flag
=\"$hardcode_libdir_flag_spec\"
17052 libdir
="$acl_save_libdir"
17053 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
17055 for found_dir
in $rpathdirs; do
17056 acl_save_libdir
="$libdir"
17057 libdir
="$found_dir"
17058 eval flag
=\"$hardcode_libdir_flag_spec\"
17059 libdir
="$acl_save_libdir"
17060 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
17064 if test "X$ltrpathdirs" != "X"; then
17065 for found_dir
in $ltrpathdirs; do
17066 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
17071 ac_save_CPPFLAGS
="$CPPFLAGS"
17073 for element
in $INCLZMA; do
17075 for x
in $CPPFLAGS; do
17077 acl_save_prefix
="$prefix"
17078 prefix
="$acl_final_prefix"
17079 acl_save_exec_prefix
="$exec_prefix"
17080 exec_prefix
="$acl_final_exec_prefix"
17082 exec_prefix
="$acl_save_exec_prefix"
17083 prefix
="$acl_save_prefix"
17085 if test "X$x" = "X$element"; then
17090 if test -z "$haveit"; then
17091 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
17097 $as_echo_n "checking for liblzma... " >&6; }
17098 if ${ac_cv_liblzma+:} false
; then :
17099 $as_echo_n "(cached) " >&6
17102 ac_save_LIBS
="$LIBS"
17103 LIBS
="$LIBS $LIBLZMA"
17104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17105 /* end confdefs.h. */
17110 lzma_index_iter iter;
17111 lzma_index_iter_init (&iter, 0);
17112 lzma_mf_is_supported (LZMA_MF_HC3);
17117 if ac_fn_c_try_link
"$LINENO"; then :
17122 rm -f core conftest.err conftest.
$ac_objext \
17123 conftest
$ac_exeext conftest.
$ac_ext
17124 LIBS
="$ac_save_LIBS"
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
17128 $as_echo "$ac_cv_liblzma" >&6; }
17129 if test "$ac_cv_liblzma" = yes; then
17132 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
17135 $as_echo_n "checking how to link with liblzma... " >&6; }
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
17137 $as_echo "$LIBLZMA" >&6; }
17140 CPPFLAGS
="$ac_save_CPPFLAGS"
17150 if test "$HAVE_LIBLZMA" != yes; then
17151 if test "$with_lzma" = yes; then
17152 as_fn_error $?
"missing liblzma for --with-lzma" "$LINENO" 5
17158 LIBGUI
="../libgui/src/libgui.a"
17159 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
17168 *-*-cygwin* |
*-*-mingw* )
17177 if test "${enable_gdbtk}" = "yes"; then
17179 # Gdbtk must have an absolute path to srcdir in order to run
17180 # properly when not installed.
17183 GDBTK_SRC_DIR
=`pwd`
17188 # Ok, lets find the tcl configuration
17189 # First, look for one uninstalled.
17190 # the alternative search directory is invoked by --with-tcl
17193 if test x
"${no_tcl}" = x
; then
17194 # we reset no_tcl in case something fails here
17197 # Check whether --with-tcl was given.
17198 if test "${with_tcl+set}" = set; then :
17199 withval
=$with_tcl; with_tclconfig
=${withval}
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
17203 $as_echo_n "checking for Tcl configuration... " >&6; }
17204 if ${ac_cv_c_tclconfig+:} false
; then :
17205 $as_echo_n "(cached) " >&6
17209 # First check to see if --with-tcl was specified.
17211 *-*-cygwin*) platDir
="win" ;;
17212 *) platDir
="unix" ;;
17214 if test x
"${with_tclconfig}" != x
; then
17215 if test -f "${with_tclconfig}/tclConfig.sh" ; then
17216 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
17218 as_fn_error $?
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
17222 # then check for a private Tcl installation
17223 if test x
"${ac_cv_c_tclconfig}" = x
; then
17226 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17227 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
17228 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
17230 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17231 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
17232 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
17234 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17235 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
17236 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
17237 if test -f "$i/$platDir/tclConfig.sh" ; then
17238 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
17244 # on Darwin, check in Framework installation locations
17245 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
17246 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
17247 `ls -d /Library/Frameworks 2>/dev/null` \
17248 `ls -d /Network/Library/Frameworks 2>/dev/null` \
17249 `ls -d /System/Library/Frameworks 2>/dev/null` \
17251 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
17252 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
17258 # check in a few common install locations
17259 if test x
"${ac_cv_c_tclconfig}" = x
; then
17260 for i
in `ls -d ${libdir} 2>/dev/null` \
17261 `ls -d ${exec_prefix}/lib 2>/dev/null` \
17262 `ls -d ${prefix}/lib 2>/dev/null` \
17263 `ls -d /usr/local/lib 2>/dev/null` \
17264 `ls -d /usr/contrib/lib 2>/dev/null` \
17265 `ls -d /usr/lib 2>/dev/null` \
17267 if test -f "$i/tclConfig.sh" ; then
17268 ac_cv_c_tclconfig
=`(cd $i; pwd)`
17274 # check in a few other private locations
17275 if test x
"${ac_cv_c_tclconfig}" = x
; then
17278 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17279 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
17280 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
17281 if test -f "$i/$platDir/tclConfig.sh" ; then
17282 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
17291 if test x
"${ac_cv_c_tclconfig}" = x
; then
17292 TCL_BIN_DIR
="# no Tcl configs found"
17293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
17294 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
17297 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
17299 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
17304 # If $no_tk is nonempty, then we can't do Tk, and there is no
17305 # point to doing Tcl.
17308 # Ok, lets find the tk configuration
17309 # First, look for one uninstalled.
17310 # the alternative search directory is invoked by --with-tk
17313 if test x
"${no_tk}" = x
; then
17314 # we reset no_tk in case something fails here
17317 # Check whether --with-tk was given.
17318 if test "${with_tk+set}" = set; then :
17319 withval
=$with_tk; with_tkconfig
=${withval}
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
17323 $as_echo_n "checking for Tk configuration... " >&6; }
17324 if ${ac_cv_c_tkconfig+:} false
; then :
17325 $as_echo_n "(cached) " >&6
17329 # First check to see if --with-tkconfig was specified.
17330 if test x
"${with_tkconfig}" != x
; then
17331 if test -f "${with_tkconfig}/tkConfig.sh" ; then
17332 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
17334 as_fn_error $?
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
17338 # then check for a private Tk library
17340 *-*-cygwin*) platDir
="win" ;;
17341 *) platDir
="unix" ;;
17343 if test x
"${ac_cv_c_tkconfig}" = x
; then
17346 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17347 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
17348 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
17350 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17351 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
17352 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
17354 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17355 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
17356 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
17357 if test -f "$i/$platDir/tkConfig.sh" ; then
17358 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
17364 # on Darwin, check in Framework installation locations
17365 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
17366 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
17367 `ls -d /Library/Frameworks 2>/dev/null` \
17368 `ls -d /Network/Library/Frameworks 2>/dev/null` \
17369 `ls -d /System/Library/Frameworks 2>/dev/null` \
17371 if test -f "$i/Tk.framework/tkConfig.sh" ; then
17372 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
17378 # check in a few common install locations
17379 if test x
"${ac_cv_c_tkconfig}" = x
; then
17380 for i
in `ls -d ${libdir} 2>/dev/null` \
17381 `ls -d ${exec_prefix}/lib 2>/dev/null` \
17382 `ls -d ${prefix}/lib 2>/dev/null` \
17383 `ls -d /usr/local/lib 2>/dev/null` \
17384 `ls -d /usr/contrib/lib 2>/dev/null` \
17385 `ls -d /usr/lib 2>/dev/null` \
17387 if test -f "$i/tkConfig.sh" ; then
17388 ac_cv_c_tkconfig
=`(cd $i; pwd)`
17393 # check in a few other private locations
17394 if test x
"${ac_cv_c_tkconfig}" = x
; then
17397 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17398 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
17399 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
17400 if test -f "$i/$platDir/tkConfig.sh" ; then
17401 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
17410 if test x
"${ac_cv_c_tkconfig}" = x
; then
17411 TK_BIN_DIR
="# no Tk configs found"
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
17413 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
17416 TK_BIN_DIR
=${ac_cv_c_tkconfig}
17417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
17418 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
17423 if test -z "${no_tcl}" -a -z "${no_tk}"; then
17425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
17426 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
17428 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
17429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
17430 $as_echo "loading" >&6; }
17431 .
${TCL_BIN_DIR}/tclConfig.sh
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
17434 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
17437 # eval is required to do the TCL_DBGX substitution
17438 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
17439 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
17441 # If the TCL_BIN_DIR is the build directory (not the install directory),
17442 # then set the common variable name to the value of the build variables.
17443 # For example, the variable TCL_LIB_SPEC will be set to the value
17444 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
17445 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
17446 # installed and uninstalled version of Tcl.
17447 if test -f "${TCL_BIN_DIR}/Makefile" ; then
17448 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
17449 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
17450 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
17451 elif test "`uname -s`" = "Darwin"; then
17452 # If Tcl was built as a framework, attempt to use the libraries
17453 # from the framework at the given location so that linking works
17454 # against Tcl.framework installed in an arbitrary location.
17455 case ${TCL_DEFS} in
17457 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
17458 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
17459 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
17460 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
17461 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
17466 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
17467 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
17468 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
17474 # eval is required to do the TCL_DBGX substitution
17475 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
17476 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
17477 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
17478 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
17494 # Check for in-tree tcl
17501 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
17505 # Find Tcl private headers
17506 if test x
"${intree}" = xno
; then
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
17509 $as_echo_n "checking for Tcl private headers... " >&6; }
17511 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
17512 if test -f ${dir}/tclInt.h
; then
17516 if test x
"${private_dir}" = x
; then
17517 as_fn_error $?
"could not find private Tcl headers" "$LINENO" 5
17519 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
17521 $as_echo "${private_dir}" >&6; }
17524 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
17525 TCL_LIBRARY
="${TCL_LIB_SPEC}"
17528 # If building tcl in the same src tree, private headers
17529 # are not needed, but we need to be sure to use the right
17531 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
17532 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
17533 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
17541 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
17543 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
17544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
17545 $as_echo "loading" >&6; }
17546 .
${TK_BIN_DIR}/tkConfig.sh
17548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
17549 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
17552 # eval is required to do the TK_DBGX substitution
17553 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
17554 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
17556 # If the TK_BIN_DIR is the build directory (not the install directory),
17557 # then set the common variable name to the value of the build variables.
17558 # For example, the variable TK_LIB_SPEC will be set to the value
17559 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
17560 # instead of TK_BUILD_LIB_SPEC since it will work with both an
17561 # installed and uninstalled version of Tcl.
17562 if test -f "${TK_BIN_DIR}/Makefile" ; then
17563 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
17564 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
17565 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
17566 elif test "`uname -s`" = "Darwin"; then
17567 # If Tk was built as a framework, attempt to use the libraries
17568 # from the framework at the given location so that linking works
17569 # against Tk.framework installed in an arbitrary location.
17572 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
17573 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
17574 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
17575 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
17576 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
17581 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
17582 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
17583 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
17589 # eval is required to do the TK_DBGX substitution
17590 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
17591 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
17592 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
17593 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
17608 # Check for in-tree Tk
17610 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
17614 # Find Tk private headers
17615 if test x
"${intree}" = xno
; then
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
17618 $as_echo_n "checking for Tk private headers... " >&6; }
17620 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
17621 if test -f ${dir}/tkInt.h
; then
17625 if test x
"${private_dir}" = x
; then
17626 as_fn_error $?
"could not find Tk private headers" "$LINENO" 5
17628 TK_PRIVATE_INCLUDE
="-I${private_dir}"
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
17630 $as_echo "${private_dir}" >&6; }
17633 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
17634 TK_LIBRARY
=${TK_LIB_SPEC}
17637 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
17638 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
17639 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
17646 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
17648 # Include some libraries that Tcl and Tk want.
17649 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
17650 # Yes, the ordering seems wrong here. But it isn't.
17651 # TK_LIBS is the list of libraries that need to be linked
17652 # after Tcl/Tk. Note that this isn't put into LIBS. If it
17653 # were in LIBS then any link tests after this point would
17654 # try to include things like `$(LIBGUI)', which wouldn't work.
17655 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
17657 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
17658 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
17659 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
17660 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
17661 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
17662 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
17663 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
17665 if test x
"$gdb_cv_os_cygwin" = xyes
; then
17666 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
17667 WIN32LDAPP
="-Wl,--subsystem,console"
17668 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
17671 subdirs
="$subdirs gdbtk"
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
17684 $as_echo_n "checking for X... " >&6; }
17687 # Check whether --with-x was given.
17688 if test "${with_x+set}" = set; then :
17692 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17693 if test "x$with_x" = xno
; then
17694 # The user explicitly disabled X.
17697 case $x_includes,$x_libraries in #(
17698 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
17699 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
17700 $as_echo_n "(cached) " >&6
17702 # One or both of the vars are not set, and there is no cached value.
17703 ac_x_includes
=no ac_x_libraries
=no
17704 rm -f -r conftest.dir
17705 if mkdir conftest.dir
; then
17707 cat >Imakefile
<<'_ACEOF'
17709 @echo incroot='${INCROOT}'
17711 @echo usrlibdir='${USRLIBDIR}'
17713 @echo libdir='${LIBDIR}'
17715 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
17716 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17717 for ac_var
in incroot usrlibdir libdir
; do
17718 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
17720 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17721 for ac_extension
in a so sl dylib la dll
; do
17722 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
17723 test -f "$ac_im_libdir/libX11.$ac_extension"; then
17724 ac_im_usrlibdir
=$ac_im_libdir; break
17727 # Screen out bogus values from the imake configuration. They are
17728 # bogus both because they are the default anyway, and because
17729 # using them would break gcc on systems where it needs fixed includes.
17730 case $ac_im_incroot in
17731 /usr
/include
) ac_x_includes
= ;;
17732 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
17734 case $ac_im_usrlibdir in
17735 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
17736 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
17740 rm -f -r conftest.dir
17743 # Standard set of common directories for X headers.
17744 # Check X11 before X11Rn because it is often a symlink to the current release.
17758 /usr/local/X11/include
17759 /usr/local/X11R7/include
17760 /usr/local/X11R6/include
17761 /usr/local/X11R5/include
17762 /usr/local/X11R4/include
17764 /usr/local/include/X11
17765 /usr/local/include/X11R7
17766 /usr/local/include/X11R6
17767 /usr/local/include/X11R5
17768 /usr/local/include/X11R4
17772 /usr/XFree86/include/X11
17776 /usr/unsupported/include
17777 /usr/athena/include
17778 /usr/local/x11r5/include
17779 /usr/lpp/Xamples/include
17781 /usr/openwin/include
17782 /usr/openwin/share/include'
17784 if test "$ac_x_includes" = no
; then
17785 # Guess where to find include files, by looking for Xlib.h.
17786 # First, try using that file with no special directory specified.
17787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17788 /* end confdefs.h. */
17789 #include <X11/Xlib.h>
17791 if ac_fn_c_try_cpp
"$LINENO"; then :
17792 # We can compile using X headers with no special include directory.
17795 for ac_dir
in $ac_x_header_dirs; do
17796 if test -r "$ac_dir/X11/Xlib.h"; then
17797 ac_x_includes
=$ac_dir
17802 rm -f conftest.err conftest.i conftest.
$ac_ext
17803 fi # $ac_x_includes = no
17805 if test "$ac_x_libraries" = no
; then
17806 # Check for the libraries.
17807 # See if we find them without any special options.
17808 # Don't add to $LIBS permanently.
17811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17812 /* end confdefs.h. */
17813 #include <X11/Xlib.h>
17822 if ac_fn_c_try_link
"$LINENO"; then :
17824 # We can link X programs with no special library path.
17828 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17830 # Don't even attempt the hair of trying to link an X program!
17831 for ac_extension
in a so sl dylib la dll
; do
17832 if test -r "$ac_dir/libX11.$ac_extension"; then
17833 ac_x_libraries
=$ac_dir
17839 rm -f core conftest.err conftest.
$ac_objext \
17840 conftest
$ac_exeext conftest.
$ac_ext
17841 fi # $ac_x_libraries = no
17843 case $ac_x_includes,$ac_x_libraries in #(
17844 no
,* |
*,no |
*\'*)
17845 # Didn't find X, or a directory has "'" in its name.
17846 ac_cv_have_x
="have_x=no";; #(
17848 # Record where we found X for the cache.
17849 ac_cv_have_x
="have_x=yes\
17850 ac_x_includes='$ac_x_includes'\
17851 ac_x_libraries='$ac_x_libraries'"
17857 eval "$ac_cv_have_x"
17860 if test "$have_x" != yes; then
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
17862 $as_echo "$have_x" >&6; }
17865 # If each of the values was on the command line, it overrides each guess.
17866 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
17867 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
17868 # Update the cache value to reflect the command line values.
17869 ac_cv_have_x
="have_x=yes\
17870 ac_x_includes='$x_includes'\
17871 ac_x_libraries='$x_libraries'"
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
17873 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
17877 # Unlike the sim directory, whether a simulator is linked is controlled by
17878 # presence of a gdb_sim definition in the target configure.tgt entry.
17879 # This code just checks for a few cases where we'd like to ignore those
17880 # definitions, even when they're present in the '.mt' file. These cases
17881 # are when --disable-sim is specified, or if the simulator directory is
17882 # not part of the source tree.
17884 # Check whether --enable-sim was given.
17885 if test "${enable_sim+set}" = set; then :
17886 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
17887 echo "enableval = ${enableval}";
17888 case "${enableval}" in
17889 yes) ignore_sim
=false
;;
17890 no
) ignore_sim
=true
;;
17891 *) ignore_sim
=false
;;
17898 if test ! -d "${srcdir}/../sim"; then
17904 if test "${ignore_sim}" = "false"; then
17905 if test x
"${gdb_sim}" != x
; then
17907 SIM_OBS
="remote-sim.o"
17909 $as_echo "#define WITH_SIM 1" >>confdefs.h
17912 # Some tdep code should only be compiled in when the ppc sim is
17913 # built. PR sim/13418.
17917 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
17937 # List of host floatformats.
17939 cat >>confdefs.h
<<_ACEOF
17940 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
17944 cat >>confdefs.h
<<_ACEOF
17945 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
17949 cat >>confdefs.h
<<_ACEOF
17950 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
17954 # target_subdir is used by the testsuite to find the target libraries.
17956 if test "${host}" != "${target}"; then
17957 target_subdir
="${target_alias}/"
17961 # Import nat definitions.
17962 nat_makefile_frag
=/dev
/null
17963 if test "${gdb_native}" = "yes"; then
17964 .
${srcdir}/configure.nat
17965 nativefile
=$NAT_FILE
17978 if test x
"${gdb_osabi}" != x
; then
17980 cat >>confdefs.h
<<_ACEOF
17981 #define GDB_OSABI_DEFAULT $gdb_osabi
17986 # Check for babeltrace and babeltrace-ctf
17988 # Check whether --with-babeltrace was given.
17989 if test "${with_babeltrace+set}" = set; then :
17990 withval
=$with_babeltrace;
17992 with_babeltrace
=auto
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
17996 $as_echo_n "checking whether to use babeltrace... " >&6; }
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
17998 $as_echo "$with_babeltrace" >&6; }
18000 if test "x$with_babeltrace" = "xno"; then
18001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
18002 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
18004 # Append -Werror to CFLAGS so that configure can catch the warning
18005 # "assignment from incompatible pointer type", which is related to
18006 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
18007 # in GDB, while babeltrace 1.0.3 is broken.
18008 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
18009 # safe to save and restore CFLAGS here.
18010 saved_CFLAGS
=$CFLAGS
18011 CFLAGS
="$CFLAGS -Werror"
18022 acl_save_prefix
="$prefix"
18023 prefix
="$acl_final_prefix"
18024 acl_save_exec_prefix
="$exec_prefix"
18025 exec_prefix
="$acl_final_exec_prefix"
18027 eval additional_includedir
=\"$includedir\"
18028 eval additional_libdir
=\"$libdir\"
18030 exec_prefix
="$acl_save_exec_prefix"
18031 prefix
="$acl_save_prefix"
18034 # Check whether --with-libbabeltrace-prefix was given.
18035 if test "${with_libbabeltrace_prefix+set}" = set; then :
18036 withval
=$with_libbabeltrace_prefix;
18037 if test "X$withval" = "Xno"; then
18040 if test "X$withval" = "X"; then
18042 acl_save_prefix
="$prefix"
18043 prefix
="$acl_final_prefix"
18044 acl_save_exec_prefix
="$exec_prefix"
18045 exec_prefix
="$acl_final_exec_prefix"
18047 eval additional_includedir
=\"$includedir\"
18048 eval additional_libdir
=\"$libdir\"
18050 exec_prefix
="$acl_save_exec_prefix"
18051 prefix
="$acl_save_prefix"
18054 additional_includedir
="$withval/include"
18055 additional_libdir
="$withval/lib"
18062 # Check whether --with-libbabeltrace-type was given.
18063 if test "${with_libbabeltrace_type+set}" = set; then :
18064 withval
=$with_libbabeltrace_type; with_libbabeltrace_type
=$withval
18066 with_libbabeltrace_type
=auto
18069 lib_type
=`eval echo \$with_libbabeltrace_type`
18076 names_already_handled
=
18077 names_next_round
='babeltrace babeltrace-ctf'
18078 while test -n "$names_next_round"; do
18079 names_this_round
="$names_next_round"
18081 for name
in $names_this_round; do
18083 for n
in $names_already_handled; do
18084 if test "$n" = "$name"; then
18085 already_handled
=yes
18089 if test -z "$already_handled"; then
18090 names_already_handled
="$names_already_handled $name"
18091 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18092 eval value
=\"\
$HAVE_LIB$uppername\"
18093 if test -n "$value"; then
18094 if test "$value" = yes; then
18095 eval value
=\"\
$LIB$uppername\"
18096 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
18097 eval value
=\"\
$LTLIB$uppername\"
18098 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
18107 if test $use_additional = yes; then
18108 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18109 found_dir
="$additional_libdir"
18110 found_so
="$additional_libdir/lib$name.$shlibext"
18111 if test -f "$additional_libdir/lib$name.la"; then
18112 found_la
="$additional_libdir/lib$name.la"
18114 elif test x
$lib_type != xshared
; then
18115 if test -f "$additional_libdir/lib$name.$libext"; then
18116 found_dir
="$additional_libdir"
18117 found_a
="$additional_libdir/lib$name.$libext"
18118 if test -f "$additional_libdir/lib$name.la"; then
18119 found_la
="$additional_libdir/lib$name.la"
18124 if test "X$found_dir" = "X"; then
18125 for x
in $LDFLAGS $LTLIBBABELTRACE; do
18127 acl_save_prefix
="$prefix"
18128 prefix
="$acl_final_prefix"
18129 acl_save_exec_prefix
="$exec_prefix"
18130 exec_prefix
="$acl_final_exec_prefix"
18132 exec_prefix
="$acl_save_exec_prefix"
18133 prefix
="$acl_save_prefix"
18137 dir
=`echo "X$x" | sed -e 's/^X-L//'`
18138 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18140 found_so
="$dir/lib$name.$shlibext"
18141 if test -f "$dir/lib$name.la"; then
18142 found_la
="$dir/lib$name.la"
18144 elif test x
$lib_type != xshared
; then
18145 if test -f "$dir/lib$name.$libext"; then
18147 found_a
="$dir/lib$name.$libext"
18148 if test -f "$dir/lib$name.la"; then
18149 found_la
="$dir/lib$name.la"
18155 if test "X$found_dir" != "X"; then
18160 if test "X$found_dir" != "X"; then
18161 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
18162 if test "X$found_so" != "X"; then
18163 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
18164 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18167 for x
in $ltrpathdirs; do
18168 if test "X$x" = "X$found_dir"; then
18173 if test -z "$haveit"; then
18174 ltrpathdirs
="$ltrpathdirs $found_dir"
18176 if test "$hardcode_direct" = yes; then
18177 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18179 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
18180 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18182 for x
in $rpathdirs; do
18183 if test "X$x" = "X$found_dir"; then
18188 if test -z "$haveit"; then
18189 rpathdirs
="$rpathdirs $found_dir"
18193 for x
in $LDFLAGS $LIBBABELTRACE; do
18195 acl_save_prefix
="$prefix"
18196 prefix
="$acl_final_prefix"
18197 acl_save_exec_prefix
="$exec_prefix"
18198 exec_prefix
="$acl_final_exec_prefix"
18200 exec_prefix
="$acl_save_exec_prefix"
18201 prefix
="$acl_save_prefix"
18203 if test "X$x" = "X-L$found_dir"; then
18208 if test -z "$haveit"; then
18209 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
18211 if test "$hardcode_minus_L" != no
; then
18212 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18214 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
18220 if test "X$found_a" != "X"; then
18221 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
18223 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
18226 additional_includedir
=
18227 case "$found_dir" in
18229 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18230 additional_includedir
="$basedir/include"
18233 if test "X$additional_includedir" != "X"; then
18234 if test "X$additional_includedir" != "X/usr/include"; then
18236 if test "X$additional_includedir" = "X/usr/local/include"; then
18237 if test -n "$GCC"; then
18239 linux
*) haveit
=yes;;
18243 if test -z "$haveit"; then
18244 for x
in $CPPFLAGS $INCBABELTRACE; do
18246 acl_save_prefix
="$prefix"
18247 prefix
="$acl_final_prefix"
18248 acl_save_exec_prefix
="$exec_prefix"
18249 exec_prefix
="$acl_final_exec_prefix"
18251 exec_prefix
="$acl_save_exec_prefix"
18252 prefix
="$acl_save_prefix"
18254 if test "X$x" = "X-I$additional_includedir"; then
18259 if test -z "$haveit"; then
18260 if test -d "$additional_includedir"; then
18261 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
18267 if test -n "$found_la"; then
18268 save_libdir
="$libdir"
18269 case "$found_la" in
18270 */* |
*\\*) .
"$found_la" ;;
18271 *) .
"./$found_la" ;;
18273 libdir
="$save_libdir"
18274 for dep
in $dependency_libs; do
18277 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
18278 if test "X$additional_libdir" != "X/usr/lib"; then
18280 if test "X$additional_libdir" = "X/usr/local/lib"; then
18281 if test -n "$GCC"; then
18283 linux
*) haveit
=yes;;
18287 if test -z "$haveit"; then
18289 for x
in $LDFLAGS $LIBBABELTRACE; do
18291 acl_save_prefix
="$prefix"
18292 prefix
="$acl_final_prefix"
18293 acl_save_exec_prefix
="$exec_prefix"
18294 exec_prefix
="$acl_final_exec_prefix"
18296 exec_prefix
="$acl_save_exec_prefix"
18297 prefix
="$acl_save_prefix"
18299 if test "X$x" = "X-L$additional_libdir"; then
18304 if test -z "$haveit"; then
18305 if test -d "$additional_libdir"; then
18306 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
18310 for x
in $LDFLAGS $LTLIBBABELTRACE; do
18312 acl_save_prefix
="$prefix"
18313 prefix
="$acl_final_prefix"
18314 acl_save_exec_prefix
="$exec_prefix"
18315 exec_prefix
="$acl_final_exec_prefix"
18317 exec_prefix
="$acl_save_exec_prefix"
18318 prefix
="$acl_save_prefix"
18320 if test "X$x" = "X-L$additional_libdir"; then
18325 if test -z "$haveit"; then
18326 if test -d "$additional_libdir"; then
18327 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
18334 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
18335 if test "$enable_rpath" != no
; then
18337 for x
in $rpathdirs; do
18338 if test "X$x" = "X$dir"; then
18343 if test -z "$haveit"; then
18344 rpathdirs
="$rpathdirs $dir"
18347 for x
in $ltrpathdirs; do
18348 if test "X$x" = "X$dir"; then
18353 if test -z "$haveit"; then
18354 ltrpathdirs
="$ltrpathdirs $dir"
18359 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18362 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18365 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
18366 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
18372 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
18373 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
18374 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
18376 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l:lib$name.$libext"
18377 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l:lib$name.$libext"
18384 if test "X$rpathdirs" != "X"; then
18385 if test -n "$hardcode_libdir_separator"; then
18387 for found_dir
in $rpathdirs; do
18388 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18390 acl_save_libdir
="$libdir"
18392 eval flag
=\"$hardcode_libdir_flag_spec\"
18393 libdir
="$acl_save_libdir"
18394 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
18396 for found_dir
in $rpathdirs; do
18397 acl_save_libdir
="$libdir"
18398 libdir
="$found_dir"
18399 eval flag
=\"$hardcode_libdir_flag_spec\"
18400 libdir
="$acl_save_libdir"
18401 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
18405 if test "X$ltrpathdirs" != "X"; then
18406 for found_dir
in $ltrpathdirs; do
18407 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
18412 ac_save_CPPFLAGS
="$CPPFLAGS"
18414 for element
in $INCBABELTRACE; do
18416 for x
in $CPPFLAGS; do
18418 acl_save_prefix
="$prefix"
18419 prefix
="$acl_final_prefix"
18420 acl_save_exec_prefix
="$exec_prefix"
18421 exec_prefix
="$acl_final_exec_prefix"
18423 exec_prefix
="$acl_save_exec_prefix"
18424 prefix
="$acl_save_prefix"
18426 if test "X$x" = "X$element"; then
18431 if test -z "$haveit"; then
18432 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
18438 $as_echo_n "checking for libbabeltrace... " >&6; }
18439 if ${ac_cv_libbabeltrace+:} false
; then :
18440 $as_echo_n "(cached) " >&6
18443 ac_save_LIBS
="$LIBS"
18444 LIBS
="$LIBS $LIBBABELTRACE"
18445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18446 /* end confdefs.h. */
18447 #include <babeltrace/babeltrace.h>
18448 #include <babeltrace/ctf/events.h>
18449 #include <babeltrace/ctf/iterator.h>
18453 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
18454 struct bt_ctf_event *event = NULL;
18455 const struct bt_definition *scope;
18457 pos->type = BT_SEEK_BEGIN;
18458 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
18459 scope = bt_ctf_get_top_level_scope (event,
18460 BT_STREAM_EVENT_HEADER);
18461 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
18467 if ac_fn_c_try_link
"$LINENO"; then :
18468 ac_cv_libbabeltrace
=yes
18470 ac_cv_libbabeltrace
=no
18472 rm -f core conftest.err conftest.
$ac_objext \
18473 conftest
$ac_exeext conftest.
$ac_ext
18474 LIBS
="$ac_save_LIBS"
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
18478 $as_echo "$ac_cv_libbabeltrace" >&6; }
18479 if test "$ac_cv_libbabeltrace" = yes; then
18480 HAVE_LIBBABELTRACE
=yes
18482 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
18484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
18485 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
18486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
18487 $as_echo "$LIBBABELTRACE" >&6; }
18489 HAVE_LIBBABELTRACE
=no
18490 CPPFLAGS
="$ac_save_CPPFLAGS"
18500 CFLAGS
=$saved_CFLAGS
18502 if test "$HAVE_LIBBABELTRACE" != yes; then
18503 if test "$with_babeltrace" = yes; then
18504 as_fn_error $?
"babeltrace is missing or unusable" "$LINENO" 5
18506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
18507 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
18514 # Check whether --with-xxhash was given.
18515 if test "${with_xxhash+set}" = set; then :
18516 withval
=$with_xxhash;
18522 if test "x$with_xxhash" != "xno"; then
18533 acl_save_prefix
="$prefix"
18534 prefix
="$acl_final_prefix"
18535 acl_save_exec_prefix
="$exec_prefix"
18536 exec_prefix
="$acl_final_exec_prefix"
18538 eval additional_includedir
=\"$includedir\"
18539 eval additional_libdir
=\"$libdir\"
18541 exec_prefix
="$acl_save_exec_prefix"
18542 prefix
="$acl_save_prefix"
18545 # Check whether --with-libxxhash-prefix was given.
18546 if test "${with_libxxhash_prefix+set}" = set; then :
18547 withval
=$with_libxxhash_prefix;
18548 if test "X$withval" = "Xno"; then
18551 if test "X$withval" = "X"; then
18553 acl_save_prefix
="$prefix"
18554 prefix
="$acl_final_prefix"
18555 acl_save_exec_prefix
="$exec_prefix"
18556 exec_prefix
="$acl_final_exec_prefix"
18558 eval additional_includedir
=\"$includedir\"
18559 eval additional_libdir
=\"$libdir\"
18561 exec_prefix
="$acl_save_exec_prefix"
18562 prefix
="$acl_save_prefix"
18565 additional_includedir
="$withval/include"
18566 additional_libdir
="$withval/lib"
18573 # Check whether --with-libxxhash-type was given.
18574 if test "${with_libxxhash_type+set}" = set; then :
18575 withval
=$with_libxxhash_type; with_libxxhash_type
=$withval
18577 with_libxxhash_type
=auto
18580 lib_type
=`eval echo \$with_libxxhash_type`
18587 names_already_handled
=
18588 names_next_round
='xxhash '
18589 while test -n "$names_next_round"; do
18590 names_this_round
="$names_next_round"
18592 for name
in $names_this_round; do
18594 for n
in $names_already_handled; do
18595 if test "$n" = "$name"; then
18596 already_handled
=yes
18600 if test -z "$already_handled"; then
18601 names_already_handled
="$names_already_handled $name"
18602 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18603 eval value
=\"\
$HAVE_LIB$uppername\"
18604 if test -n "$value"; then
18605 if test "$value" = yes; then
18606 eval value
=\"\
$LIB$uppername\"
18607 test -z "$value" || LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$value"
18608 eval value
=\"\
$LTLIB$uppername\"
18609 test -z "$value" || LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$value"
18618 if test $use_additional = yes; then
18619 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18620 found_dir
="$additional_libdir"
18621 found_so
="$additional_libdir/lib$name.$shlibext"
18622 if test -f "$additional_libdir/lib$name.la"; then
18623 found_la
="$additional_libdir/lib$name.la"
18625 elif test x
$lib_type != xshared
; then
18626 if test -f "$additional_libdir/lib$name.$libext"; then
18627 found_dir
="$additional_libdir"
18628 found_a
="$additional_libdir/lib$name.$libext"
18629 if test -f "$additional_libdir/lib$name.la"; then
18630 found_la
="$additional_libdir/lib$name.la"
18635 if test "X$found_dir" = "X"; then
18636 for x
in $LDFLAGS $LTLIBXXHASH; do
18638 acl_save_prefix
="$prefix"
18639 prefix
="$acl_final_prefix"
18640 acl_save_exec_prefix
="$exec_prefix"
18641 exec_prefix
="$acl_final_exec_prefix"
18643 exec_prefix
="$acl_save_exec_prefix"
18644 prefix
="$acl_save_prefix"
18648 dir
=`echo "X$x" | sed -e 's/^X-L//'`
18649 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18651 found_so
="$dir/lib$name.$shlibext"
18652 if test -f "$dir/lib$name.la"; then
18653 found_la
="$dir/lib$name.la"
18655 elif test x
$lib_type != xshared
; then
18656 if test -f "$dir/lib$name.$libext"; then
18658 found_a
="$dir/lib$name.$libext"
18659 if test -f "$dir/lib$name.la"; then
18660 found_la
="$dir/lib$name.la"
18666 if test "X$found_dir" != "X"; then
18671 if test "X$found_dir" != "X"; then
18672 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$found_dir -l$name"
18673 if test "X$found_so" != "X"; then
18674 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
18675 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
18678 for x
in $ltrpathdirs; do
18679 if test "X$x" = "X$found_dir"; then
18684 if test -z "$haveit"; then
18685 ltrpathdirs
="$ltrpathdirs $found_dir"
18687 if test "$hardcode_direct" = yes; then
18688 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
18690 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
18691 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
18693 for x
in $rpathdirs; do
18694 if test "X$x" = "X$found_dir"; then
18699 if test -z "$haveit"; then
18700 rpathdirs
="$rpathdirs $found_dir"
18704 for x
in $LDFLAGS $LIBXXHASH; do
18706 acl_save_prefix
="$prefix"
18707 prefix
="$acl_final_prefix"
18708 acl_save_exec_prefix
="$exec_prefix"
18709 exec_prefix
="$acl_final_exec_prefix"
18711 exec_prefix
="$acl_save_exec_prefix"
18712 prefix
="$acl_save_prefix"
18714 if test "X$x" = "X-L$found_dir"; then
18719 if test -z "$haveit"; then
18720 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir"
18722 if test "$hardcode_minus_L" != no
; then
18723 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
18725 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
18731 if test "X$found_a" != "X"; then
18732 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_a"
18734 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir -l$name"
18737 additional_includedir
=
18738 case "$found_dir" in
18740 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18741 additional_includedir
="$basedir/include"
18744 if test "X$additional_includedir" != "X"; then
18745 if test "X$additional_includedir" != "X/usr/include"; then
18747 if test "X$additional_includedir" = "X/usr/local/include"; then
18748 if test -n "$GCC"; then
18750 linux
*) haveit
=yes;;
18754 if test -z "$haveit"; then
18755 for x
in $CPPFLAGS $INCXXHASH; do
18757 acl_save_prefix
="$prefix"
18758 prefix
="$acl_final_prefix"
18759 acl_save_exec_prefix
="$exec_prefix"
18760 exec_prefix
="$acl_final_exec_prefix"
18762 exec_prefix
="$acl_save_exec_prefix"
18763 prefix
="$acl_save_prefix"
18765 if test "X$x" = "X-I$additional_includedir"; then
18770 if test -z "$haveit"; then
18771 if test -d "$additional_includedir"; then
18772 INCXXHASH
="${INCXXHASH}${INCXXHASH:+ }-I$additional_includedir"
18778 if test -n "$found_la"; then
18779 save_libdir
="$libdir"
18780 case "$found_la" in
18781 */* |
*\\*) .
"$found_la" ;;
18782 *) .
"./$found_la" ;;
18784 libdir
="$save_libdir"
18785 for dep
in $dependency_libs; do
18788 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
18789 if test "X$additional_libdir" != "X/usr/lib"; then
18791 if test "X$additional_libdir" = "X/usr/local/lib"; then
18792 if test -n "$GCC"; then
18794 linux
*) haveit
=yes;;
18798 if test -z "$haveit"; then
18800 for x
in $LDFLAGS $LIBXXHASH; do
18802 acl_save_prefix
="$prefix"
18803 prefix
="$acl_final_prefix"
18804 acl_save_exec_prefix
="$exec_prefix"
18805 exec_prefix
="$acl_final_exec_prefix"
18807 exec_prefix
="$acl_save_exec_prefix"
18808 prefix
="$acl_save_prefix"
18810 if test "X$x" = "X-L$additional_libdir"; then
18815 if test -z "$haveit"; then
18816 if test -d "$additional_libdir"; then
18817 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$additional_libdir"
18821 for x
in $LDFLAGS $LTLIBXXHASH; do
18823 acl_save_prefix
="$prefix"
18824 prefix
="$acl_final_prefix"
18825 acl_save_exec_prefix
="$exec_prefix"
18826 exec_prefix
="$acl_final_exec_prefix"
18828 exec_prefix
="$acl_save_exec_prefix"
18829 prefix
="$acl_save_prefix"
18831 if test "X$x" = "X-L$additional_libdir"; then
18836 if test -z "$haveit"; then
18837 if test -d "$additional_libdir"; then
18838 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$additional_libdir"
18845 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
18846 if test "$enable_rpath" != no
; then
18848 for x
in $rpathdirs; do
18849 if test "X$x" = "X$dir"; then
18854 if test -z "$haveit"; then
18855 rpathdirs
="$rpathdirs $dir"
18858 for x
in $ltrpathdirs; do
18859 if test "X$x" = "X$dir"; then
18864 if test -z "$haveit"; then
18865 ltrpathdirs
="$ltrpathdirs $dir"
18870 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18873 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18876 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$dep"
18877 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$dep"
18883 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
18884 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
18885 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l$name"
18887 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l:lib$name.$libext"
18888 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l:lib$name.$libext"
18895 if test "X$rpathdirs" != "X"; then
18896 if test -n "$hardcode_libdir_separator"; then
18898 for found_dir
in $rpathdirs; do
18899 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18901 acl_save_libdir
="$libdir"
18903 eval flag
=\"$hardcode_libdir_flag_spec\"
18904 libdir
="$acl_save_libdir"
18905 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
18907 for found_dir
in $rpathdirs; do
18908 acl_save_libdir
="$libdir"
18909 libdir
="$found_dir"
18910 eval flag
=\"$hardcode_libdir_flag_spec\"
18911 libdir
="$acl_save_libdir"
18912 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
18916 if test "X$ltrpathdirs" != "X"; then
18917 for found_dir
in $ltrpathdirs; do
18918 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-R$found_dir"
18923 ac_save_CPPFLAGS
="$CPPFLAGS"
18925 for element
in $INCXXHASH; do
18927 for x
in $CPPFLAGS; do
18929 acl_save_prefix
="$prefix"
18930 prefix
="$acl_final_prefix"
18931 acl_save_exec_prefix
="$exec_prefix"
18932 exec_prefix
="$acl_final_exec_prefix"
18934 exec_prefix
="$acl_save_exec_prefix"
18935 prefix
="$acl_save_prefix"
18937 if test "X$x" = "X$element"; then
18942 if test -z "$haveit"; then
18943 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
18948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5
18949 $as_echo_n "checking for libxxhash... " >&6; }
18950 if ${ac_cv_libxxhash+:} false
; then :
18951 $as_echo_n "(cached) " >&6
18954 ac_save_LIBS
="$LIBS"
18955 LIBS
="$LIBS $LIBXXHASH"
18956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18957 /* end confdefs.h. */
18958 #include <xxhash.h>
18962 XXH32("foo", 3, 0);
18968 if ac_fn_c_try_link
"$LINENO"; then :
18969 ac_cv_libxxhash
=yes
18973 rm -f core conftest.err conftest.
$ac_objext \
18974 conftest
$ac_exeext conftest.
$ac_ext
18975 LIBS
="$ac_save_LIBS"
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxxhash" >&5
18979 $as_echo "$ac_cv_libxxhash" >&6; }
18980 if test "$ac_cv_libxxhash" = yes; then
18983 $as_echo "#define HAVE_LIBXXHASH 1" >>confdefs.h
18985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libxxhash" >&5
18986 $as_echo_n "checking how to link with libxxhash... " >&6; }
18987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXXHASH" >&5
18988 $as_echo "$LIBXXHASH" >&6; }
18991 CPPFLAGS
="$ac_save_CPPFLAGS"
19001 if test "$HAVE_LIBXXHASH" != yes; then
19002 if test "$with_xxhash" = yes; then
19003 as_fn_error $?
"xxhash is missing or unusable" "$LINENO" 5
19006 if test "x$with_xxhash" = "xauto"; then
19007 with_xxhash
="$HAVE_LIBXXHASH"
19011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
19012 $as_echo_n "checking whether to use xxhash... " >&6; }
19013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
19014 $as_echo "$with_xxhash" >&6; }
19018 if test "${nativefile}" != ""; then
19019 case "${nativefile}" in
19020 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
19021 * ) GDB_NM_FILE
="${nativefile}"
19023 ac_config_links
="$ac_config_links nm.h:$GDB_NM_FILE"
19026 cat >>confdefs.h
<<_ACEOF
19027 #define GDB_NM_FILE "${GDB_NM_FILE}"
19035 for ac_prog
in xsltproc
19037 # Extract the first word of "$ac_prog", so it can be a program name with args.
19038 set dummy
$ac_prog; ac_word
=$2
19039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19040 $as_echo_n "checking for $ac_word... " >&6; }
19041 if ${ac_cv_path_XSLTPROC+:} false
; then :
19042 $as_echo_n "(cached) " >&6
19046 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
19049 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19050 for as_dir
in $PATH
19053 test -z "$as_dir" && as_dir
=.
19054 for ac_exec_ext
in '' $ac_executable_extensions; do
19055 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19056 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
19057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19067 XSLTPROC
=$ac_cv_path_XSLTPROC
19068 if test -n "$XSLTPROC"; then
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19070 $as_echo "$XSLTPROC" >&6; }
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19073 $as_echo "no" >&6; }
19077 test -n "$XSLTPROC" && break
19079 test -n "$XSLTPROC" || XSLTPROC
="missing"
19081 if test "x$USE_MAINTAINER_MODE" = xyes
; then
19082 if test "${XSLTPROC}" = missing
; then
19083 as_fn_error $?
"unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
19091 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
19095 # Check whether we will enable the inclusion of unit tests when
19098 # The default value of this option changes depending whether we're on
19099 # development mode (in which case it's "true") or not (in which case
19101 # Check whether --enable-unit-tests was given.
19102 if test "${enable_unit_tests+set}" = set; then :
19103 enableval
=$enable_unit_tests; case "${enableval}" in
19104 yes) enable_unittests
=true
;;
19105 no
) enable_unittests
=false
;;
19106 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
19109 enable_unittests
=$development
19113 if $enable_unittests; then
19115 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
19118 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_UNITTESTS_OBS) selftest-arch.o"
19119 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_UNITTESTS_SRCS) selftest-arch.c"
19125 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19126 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
19127 if test "x$GDB_TRANSFORM_NAME" = x
; then
19128 GDB_TRANSFORM_NAME
=gdb
19133 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19134 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
19135 if test "x$GCORE_TRANSFORM_NAME" = x
; then
19136 GCORE_TRANSFORM_NAME
=gcore
19140 ac_config_files
="$ac_config_files gcore"
19142 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
19145 cat >confcache
<<\_ACEOF
19146 # This file is a shell script that caches the results of configure
19147 # tests run on this system so they can be shared between configure
19148 # scripts and configure runs, see configure's option --config-cache.
19149 # It is not useful on other systems. If it contains results you don't
19150 # want to keep, you may remove or edit it.
19152 # config.status only pays attention to the cache file if you give it
19153 # the --recheck option to rerun configure.
19155 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19156 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19157 # following values.
19161 # The following way of writing the cache mishandles newlines in values,
19162 # but we know of no workaround that is simple, portable, and efficient.
19163 # So, we kill variables containing newlines.
19164 # Ultrix sh set writes to stderr and can't be redirected directly,
19165 # and sets the high bit in the cache file unless we assign to the vars.
19167 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19168 eval ac_val
=\$
$ac_var
19172 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19173 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19176 _ | IFS | as_nl
) ;; #(
19177 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
19178 *) { eval $ac_var=; unset $ac_var;} ;;
19184 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19185 *${as_nl}ac_space
=\
*)
19186 # `set' does not quote correctly, so add quotes: double-quote
19187 # substitution turns \\\\ into \\, and sed turns \\ into \.
19190 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19193 # `set' quotes correctly as required by POSIX, so do not add quotes.
19194 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19203 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19205 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19207 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
19208 if test -w "$cache_file"; then
19209 if test "x$cache_file" != "x/dev/null"; then
19210 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19211 $as_echo "$as_me: updating cache $cache_file" >&6;}
19212 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
19213 cat confcache
>"$cache_file"
19215 case $cache_file in #(
19217 mv -f confcache
"$cache_file"$$
&&
19218 mv -f "$cache_file"$$
"$cache_file" ;; #(
19220 mv -f confcache
"$cache_file" ;;
19225 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19226 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19231 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19232 # Let make expand exec_prefix.
19233 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19235 DEFS
=-DHAVE_CONFIG_H
19240 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19241 # 1. Remove the extension, and $U if already installed.
19242 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
19243 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
19244 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19245 # will be set to the directory where LIBOBJS objects are built.
19246 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19247 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
19249 LIBOBJS
=$ac_libobjs
19251 LTLIBOBJS
=$ac_ltlibobjs
19254 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19255 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
19256 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19258 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
19259 as_fn_error $?
"conditional \"HAVE_PYTHON\" was never defined.
19260 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19262 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
19263 as_fn_error $?
"conditional \"HAVE_GUILE\" was never defined.
19264 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19268 : "${CONFIG_STATUS=./config.status}"
19270 ac_clean_files_save
=$ac_clean_files
19271 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19272 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19273 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19275 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19277 # Generated by $as_me.
19278 # Run this file to recreate the current configuration.
19279 # Compiler output produced by configure, useful for debugging
19280 # configure, is in config.log if it exists.
19283 ac_cs_recheck=false
19286 SHELL=\${CONFIG_SHELL-$SHELL}
19289 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
19290 ## -------------------- ##
19291 ## M4sh Initialization. ##
19292 ## -------------------- ##
19294 # Be more Bourne compatible
19295 DUALCASE
=1; export DUALCASE
# for MKS sh
19296 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
19299 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19300 # is contrary to our usage. Disable this feature.
19301 alias -g '${1+"$@"}'='"$@"'
19302 setopt NO_GLOB_SUBST
19304 case `(set -o) 2>/dev/null` in #(
19316 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19317 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19318 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19319 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19320 # Prefer a ksh shell builtin over an external printf program on Solaris,
19321 # but without wasting forks for bash or zsh.
19322 if test -z "$BASH_VERSION$ZSH_VERSION" \
19323 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19324 as_echo='print
-r --'
19325 as_echo_n='print
-rn --'
19326 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19327 as_echo='printf %s
\n'
19328 as_echo_n='printf %s
'
19330 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19331 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
19332 as_echo_n='/usr
/ucb
/echo -n'
19334 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19335 as_echo_n_body='eval
19339 expr "X$arg" : "X\\(.*\\)$as_nl";
19340 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19342 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
19344 export as_echo_n_body
19345 as_echo_n='sh
-c $as_echo_n_body as_echo
'
19347 export as_echo_body
19348 as_echo='sh
-c $as_echo_body as_echo
'
19351 # The user is always right.
19352 if test "${PATH_SEPARATOR+set}" != set; then
19354 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19355 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19362 # We need space, tab and new line, in precisely that order. Quoting is
19363 # there to prevent editors from complaining about space-tab.
19364 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19365 # splitting by setting IFS to empty value.)
19368 # Find who we are. Look in the path if we contain no directory separator.
19371 *[\\/]* ) as_myself=$0 ;;
19372 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19373 for as_dir in $PATH
19376 test -z "$as_dir" && as_dir=.
19377 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19383 # We did not find ourselves, most probably we were run as `sh COMMAND'
19384 # in which case we are not to be found in the path.
19385 if test "x$as_myself" = x
; then
19388 if test ! -f "$as_myself"; then
19389 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19393 # Unset variables that we do not need and which cause bugs (e.g. in
19394 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19395 # suppresses any "Segmentation fault" message there. '((' could
19396 # trigger a bug in pdksh 5.2.14.
19397 for as_var
in BASH_ENV ENV MAIL MAILPATH
19398 do eval test x\
${$as_var+set} = xset \
19399 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
19412 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
19415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19416 # ----------------------------------------
19417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19419 # script with STATUS, using 1 if that was 0.
19422 as_status
=$1; test $as_status -eq 0 && as_status
=1
19424 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
19425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19427 $as_echo "$as_me: error: $2" >&2
19428 as_fn_exit
$as_status
19432 # as_fn_set_status STATUS
19433 # -----------------------
19434 # Set $? to STATUS, without forking.
19435 as_fn_set_status
()
19438 } # as_fn_set_status
19440 # as_fn_exit STATUS
19441 # -----------------
19442 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19446 as_fn_set_status
$1
19452 # Portably unset VAR.
19455 { eval $1=; unset $1;}
19457 as_unset
=as_fn_unset
19458 # as_fn_append VAR VALUE
19459 # ----------------------
19460 # Append the text in VALUE to the end of the definition contained in VAR. Take
19461 # advantage of any shell optimizations that allow amortized linear growth over
19462 # repeated appends, instead of the typical quadratic growth present in naive
19464 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
19465 eval 'as_fn_append ()
19476 # as_fn_arith ARG...
19477 # ------------------
19478 # Perform arithmetic evaluation on the ARGs, and store the result in the
19479 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19480 # must be portable across $(()) and expr.
19481 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
19482 eval 'as_fn_arith ()
19489 as_val
=`expr "$@" || test $? -eq 1`
19494 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
19495 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
19501 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19502 as_basename
=basename
19507 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
19513 as_me
=`$as_basename -- "$0" ||
19514 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19515 X"$0" : 'X\(//\)$' \| \
19516 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19518 sed '/^.*\/\([^/][^/]*\)\/*$/{
19532 # Avoid depending upon Character Ranges.
19533 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19534 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19535 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19536 as_cr_digits
='0123456789'
19537 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19539 ECHO_C
= ECHO_N
= ECHO_T
=
19540 case `echo -n x` in #(((((
19542 case `echo 'xy\c'` in
19543 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
19545 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
19552 rm -f conf$$ conf$$.exe conf$$.
file
19553 if test -d conf$$.dir
; then
19554 rm -f conf$$.dir
/conf$$.
file
19557 mkdir conf$$.dir
2>/dev
/null
19559 if (echo >conf$$.
file) 2>/dev
/null
; then
19560 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19562 # ... but there are two gotchas:
19563 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19564 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19565 # In both cases, we have to default to `cp -pR'.
19566 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
19568 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19576 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
19577 rmdir conf$$.dir
2>/dev
/null
19582 # Create "$as_dir" as a directory, including parents if necessary.
19587 -*) as_dir
=.
/$as_dir;;
19589 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
19593 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19594 *) as_qdir
=$as_dir;;
19596 as_dirs
="'$as_qdir' $as_dirs"
19597 as_dir
=`$as_dirname -- "$as_dir" ||
19598 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19599 X"$as_dir" : 'X\(//\)[^/]' \| \
19600 X"$as_dir" : 'X\(//\)$' \| \
19601 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19602 $as_echo X"$as_dir" |
19603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19607 /^X\(\/\/\)[^/].*/{
19620 test -d "$as_dir" && break
19622 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19623 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
19627 if mkdir
-p .
2>/dev
/null
; then
19628 as_mkdir_p
='mkdir -p "$as_dir"'
19630 test -d .
/-p && rmdir .
/-p
19635 # as_fn_executable_p FILE
19636 # -----------------------
19637 # Test if FILE is an executable regular file.
19638 as_fn_executable_p
()
19640 test -f "$1" && test -x "$1"
19641 } # as_fn_executable_p
19642 as_test_x
='test -x'
19643 as_executable_p
=as_fn_executable_p
19645 # Sed expression to map a string onto a valid CPP name.
19646 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19648 # Sed expression to map a string onto a valid variable name.
19649 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19653 ## ----------------------------------- ##
19654 ## Main body of $CONFIG_STATUS script. ##
19655 ## ----------------------------------- ##
19657 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
19659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19660 # Save the log message, to keep $0 and so on meaningful, and to
19661 # report actual input values of CONFIG_FILES etc. instead of their
19662 # values after options handling.
19664 This file was extended by $as_me, which was
19665 generated by GNU Autoconf 2.69. Invocation command line was
19667 CONFIG_FILES = $CONFIG_FILES
19668 CONFIG_HEADERS = $CONFIG_HEADERS
19669 CONFIG_LINKS = $CONFIG_LINKS
19670 CONFIG_COMMANDS = $CONFIG_COMMANDS
19673 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19678 case $ac_config_files in *"
19679 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
19682 case $ac_config_headers in *"
19683 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
19687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19688 # Files that config.status was made for.
19689 config_files="$ac_config_files"
19690 config_headers="$ac_config_headers"
19691 config_links="$ac_config_links"
19692 config_commands="$ac_config_commands"
19696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19698 \`$as_me' instantiates files and other configuration actions
19699 from templates according to the current configuration. Unless the files
19700 and actions are specified as TAGs, all are instantiated by default.
19702 Usage: $0 [OPTION]... [TAG]...
19704 -h, --help print this help, then exit
19705 -V, --version print version number and configuration settings, then exit
19706 --config print configuration, then exit
19707 -q, --quiet, --silent
19708 do not print progress messages
19709 -d, --debug don't remove temporary files
19710 --recheck update $as_me by reconfiguring in the same conditions
19711 --file=FILE[:TEMPLATE]
19712 instantiate the configuration file FILE
19713 --header=FILE[:TEMPLATE]
19714 instantiate the configuration header FILE
19716 Configuration files:
19719 Configuration headers:
19722 Configuration links:
19725 Configuration commands:
19728 Report bugs to the package provider."
19731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19732 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19735 configured by $0, generated by GNU Autoconf 2.69,
19736 with options \\"\$ac_cs_config\\"
19738 Copyright (C) 2012 Free Software Foundation, Inc.
19739 This config.status script is free software; the Free Software Foundation
19740 gives unlimited permission to copy, distribute and modify it."
19746 test -n "\$AWK" || AWK=awk
19749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19750 # The default lists apply if the user does not specify any file.
19756 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19757 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
19761 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19773 # Handling of the options.
19774 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19776 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
19777 $as_echo "$ac_cs_version"; exit ;;
19778 --config |
--confi |
--conf |
--con |
--co |
--c )
19779 $as_echo "$ac_cs_config"; exit ;;
19780 --debug |
--debu |
--deb |
--de |
--d |
-d )
19782 --file |
--fil |
--fi |
--f )
19785 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19786 '') as_fn_error $?
"missing file argument" ;;
19788 as_fn_append CONFIG_FILES
" '$ac_optarg'"
19789 ac_need_defaults
=false
;;
19790 --header |
--heade |
--head |
--hea )
19793 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19795 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
19796 ac_need_defaults
=false
;;
19798 # Conflict between --help and --header
19799 as_fn_error $?
"ambiguous option: \`$1'
19800 Try \`$0 --help' for more information.";;
19801 --help |
--hel |
-h )
19802 $as_echo "$ac_cs_usage"; exit ;;
19803 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19804 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19807 # This is an error.
19808 -*) as_fn_error $?
"unrecognized option: \`$1'
19809 Try \`$0 --help' for more information." ;;
19811 *) as_fn_append ac_config_targets
" $1"
19812 ac_need_defaults
=false
;;
19818 ac_configure_extra_args
=
19820 if $ac_cs_silent; then
19822 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19827 if \$ac_cs_recheck; then
19828 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19830 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19831 CONFIG_SHELL='$SHELL'
19832 export CONFIG_SHELL
19837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19841 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19842 ## Running $as_me. ##
19848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19852 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
19853 GDB_NM_FILE=$GDB_NM_FILE
19857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19859 # Handling of arguments.
19860 for ac_config_target
in $ac_config_targets
19862 case $ac_config_target in
19863 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
19864 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
19865 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
19866 "nm.h") CONFIG_LINKS
="$CONFIG_LINKS nm.h:$GDB_NM_FILE" ;;
19867 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
19868 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19869 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
19870 "gdb-gdb.py") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.py" ;;
19871 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
19872 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
19874 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19879 # If the user did not use the arguments to specify the items to instantiate,
19880 # then the envvar interface is used. Set only those that are not.
19881 # We use the long form for the default assignment because of an extremely
19882 # bizarre bug on SunOS 4.1.3.
19883 if $ac_need_defaults; then
19884 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19885 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
19886 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
19887 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
19890 # Have a temporary directory for convenience. Make it in the build tree
19891 # simply because there is no reason against having it here, and in addition,
19892 # creating and moving files from /tmp can sometimes cause problems.
19893 # Hook for its removal unless debugging.
19894 # Note that there is a small window in which the directory will not be cleaned:
19895 # after its creation but before its name has been assigned to `$tmp'.
19899 trap 'exit_status=$?
19900 : "${ac_tmp:=$tmp}"
19901 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19903 trap 'as_fn_exit 1' 1 2 13 15
19905 # Create a (secure) tmp directory for tmp files.
19908 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19912 tmp
=.
/conf$$
-$RANDOM
19913 (umask 077 && mkdir
"$tmp")
19914 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
19917 # Set up the scripts for CONFIG_FILES section.
19918 # No need to generate them if there are no CONFIG_FILES.
19919 # This happens for instance with `./config.status config.h'.
19920 if test -n "$CONFIG_FILES"; then
19922 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
19923 ac_cs_awk_getline
=:
19924 ac_cs_awk_pipe_init
=
19925 ac_cs_awk_read_file
='
19926 while ((getline aline < (F[key])) > 0)
19929 ac_cs_awk_pipe_fini
=
19931 ac_cs_awk_getline
=false
19932 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
19933 ac_cs_awk_read_file
='
19935 print "cat " F[key] " &&"
19936 '$ac_cs_awk_pipe_init
19937 # The final `:' finishes the AND list.
19938 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
19940 ac_cr
=`echo X | tr X '\015'`
19941 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19942 # But we know of no other shell where ac_cr would be empty at this
19943 # point, so we can use a bashism as a fallback.
19944 if test "x$ac_cr" = x
; then
19945 eval ac_cr
=\$
\'\\r
\'
19947 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19948 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19951 ac_cs_awk_cr
=$ac_cr
19954 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19957 # Create commands to substitute file output variables.
19959 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19960 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19961 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
19964 } >conf$
$files.sh
&&
19965 . .
/conf$
$files.sh ||
19966 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
19967 rm -f conf$
$files.sh
19970 echo "cat >conf$$subs.awk <<_ACEOF" &&
19971 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19973 } >conf$$subs.sh ||
19974 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19975 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19977 for ac_last_try in false false false false false :; do
19978 . ./conf$$subs.sh ||
19979 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19981 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
19982 if test $ac_delim_n = $ac_delim_num; then
19984 elif $ac_last_try; then
19985 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19987 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19990 rm -f conf$$subs.sh
19992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19993 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
19997 s/^/S["/; s
/!.
*/"]=/
20007 s/\(.\{148\}\)..*/\1/
20009 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
20014 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20021 s/\(.\{148\}\)..*/\1/
20023 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
20027 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20032 ' <conf$$subs.awk | sed '
20037 ' >>$CONFIG_STATUS || ac_write_fail=1
20038 rm -f conf$$subs.awk
20039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20041 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
20042 for (key in S) S_is_set[key] = 1
20044 \$ac_cs_awk_pipe_init
20048 nfields = split(line, field, "@
")
20050 len = length(field[1])
20051 for (i = 2; i < nfields; i++) {
20053 keylen = length(key)
20054 if (S_is_set[key]) {
20056 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20057 len += length(value) + length(field[++i])
20062 if (nfields == 3 && !substed) {
20064 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
20065 \$ac_cs_awk_read_file
20071 \$ac_cs_awk_pipe_fini
20074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20075 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20076 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
20079 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
20080 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
20083 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20084 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
20085 # trailing colons and then remove the whole line if VPATH becomes empty
20086 # (actually we leave an empty line to preserve line numbers).
20087 if test "x
$srcdir" = x.; then
20088 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20107 fi # test -n "$CONFIG_FILES"
20109 # Set up the scripts for CONFIG_HEADERS section.
20110 # No need to generate them if there are no CONFIG_HEADERS.
20111 # This happens for instance with `./config.status Makefile'.
20112 if test -n "$CONFIG_HEADERS"; then
20113 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
20117 # Transform confdefs.h into an awk script `defines.awk', embedded as
20118 # here-document in config.status, that substitutes the proper values into
20119 # config.h.in to produce config.h.
20121 # Create a delimiter string that does not exist in confdefs.h, to ease
20122 # handling of long lines.
20124 for ac_last_try in false false :; do
20125 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
20126 if test -z "$ac_tt"; then
20128 elif $ac_last_try; then
20129 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
20131 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20135 # For the awk script, D is an array of macro values keyed by name,
20136 # likewise P contains macro parameters if any. Preserve backslash
20137 # newline sequences.
20139 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20141 s/.\{148\}/&'"$ac_delim"'/g
20144 s/^[ ]*#[ ]*define[ ][ ]*/ /
20151 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
20153 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
20157 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
20158 D["\
1"]=" \
3\\\\\\n
"\\/p
20160 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
20165 s/.\{148\}/&'"$ac_delim"'/g
20170 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
20173 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
20175 ' <confdefs.h | sed '
20176 s/'"$ac_delim"'/"\\\
20177 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20180 for (key in D) D_is_set[key] = 1
20183 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20185 split(line, arg, " ")
20186 if (arg[1] == "#") {
20190 defundef
= substr
(arg
[1], 2)
20193 split(mac1
, mac2
, "(") #)
20195 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
20196 if (D_is_set
[macro
]) {
20197 # Preserve the white space surrounding the "#".
20198 print prefix
"define", macro P
[macro
] D
[macro
]
20201 # Replace #undef with comments. This is necessary, for example,
20202 # in the case of _POSIX_SOURCE, which is predefined and required
20203 # on some systems where configure will not decide to define it.
20204 if (defundef
== "undef") {
20205 print
"/*", prefix defundef
, macro
, "*/"
20213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20214 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
20215 fi # test -n "$CONFIG_HEADERS"
20218 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
20223 :[FHLC
]) ac_mode
=$ac_tag; continue;;
20225 case $ac_mode$ac_tag in
20227 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
20228 :[FH
]-) ac_tag
=-:-;;
20229 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
20246 -) ac_f
="$ac_tmp/stdin";;
20247 *) # Look for the file first in the build tree, then in the source tree
20248 # (if the path is not absolute). The absolute path cannot be DOS-style,
20249 # because $ac_f cannot contain `:'.
20253 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
20255 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20257 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20258 as_fn_append ac_file_inputs
" '$ac_f'"
20261 # Let's still pretend it is `configure' which instantiates (i.e., don't
20262 # use $as_me), people would be surprised to read:
20263 # /* config.h. Generated by config.status. */
20264 configure_input
='Generated from '`
20265 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20267 if test x
"$ac_file" != x-
; then
20268 configure_input
="$ac_file. $configure_input"
20269 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20270 $as_echo "$as_me: creating $ac_file" >&6;}
20272 # Neutralize special characters interpreted by sed in replacement strings.
20273 case $configure_input in #(
20274 *\
&* |
*\|
* |
*\\* )
20275 ac_sed_conf_input
=`$as_echo "$configure_input" |
20276 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20277 *) ac_sed_conf_input
=$configure_input;;
20281 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
20282 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
20287 ac_dir
=`$as_dirname -- "$ac_file" ||
20288 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20289 X"$ac_file" : 'X\(//\)[^/]' \| \
20290 X"$ac_file" : 'X\(//\)$' \| \
20291 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20292 $as_echo X"$ac_file" |
20293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20297 /^X\(\/\/\)[^/].*/{
20310 as_dir
="$ac_dir"; as_fn_mkdir_p
20314 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20316 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20317 # A ".." for each directory in $ac_dir_suffix.
20318 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20319 case $ac_top_builddir_sub in
20320 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20321 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20324 ac_abs_top_builddir
=$ac_pwd
20325 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
20326 # for backward compatibility:
20327 ac_top_builddir
=$ac_top_build_prefix
20330 .
) # We are building in place.
20332 ac_top_srcdir
=$ac_top_builddir_sub
20333 ac_abs_top_srcdir
=$ac_pwd ;;
20334 [\\/]* | ?
:[\\/]* ) # Absolute name.
20335 ac_srcdir
=$srcdir$ac_dir_suffix;
20336 ac_top_srcdir
=$srcdir
20337 ac_abs_top_srcdir
=$srcdir ;;
20338 *) # Relative name.
20339 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
20340 ac_top_srcdir
=$ac_top_build_prefix$srcdir
20341 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
20343 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
20353 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20354 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
20358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20359 # If the template does not know about datarootdir, expand it.
20360 # FIXME: This hack should be removed a few years after 2.60.
20361 ac_datarootdir_hack
=; ac_datarootdir_seen
=
20372 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20373 *datarootdir
*) ac_datarootdir_seen
=yes;;
20374 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
20375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20376 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20379 ac_datarootdir_hack='
20380 s&@datadir@&$datadir&g
20381 s&@docdir@&$docdir&g
20382 s&@infodir@&$infodir&g
20383 s&@localedir@&$localedir&g
20384 s&@mandir@&$mandir&g
20385 s&\\\${datarootdir}&$datarootdir&g' ;;
20389 # Neutralize VPATH when `$srcdir' = `.'.
20390 # Shell code in configure.ac might set extrasub.
20391 # FIXME: do we really want to maintain this feature?
20392 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20393 ac_sed_extra="$ac_vpsub
20396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20398 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20399 s|@configure_input@|
$ac_sed_conf_input|
;t t
20400 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
20401 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
20402 s
&@srcdir@
&$ac_srcdir&;t t
20403 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
20404 s
&@top_srcdir@
&$ac_top_srcdir&;t t
20405 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
20406 s
&@builddir@
&$ac_builddir&;t t
20407 s
&@abs_builddir@
&$ac_abs_builddir&;t t
20408 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
20409 s
&@INSTALL@
&$ac_INSTALL&;t t
20410 $ac_datarootdir_hack
20412 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
20413 if $ac_cs_awk_getline; then
20414 $AWK -f "$ac_tmp/subs.
awk"
20416 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
20418 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
20420 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20421 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
20422 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20423 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
20424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
20425 which seems to be undefined. Please make sure it is defined" >&5
20426 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
20427 which seems to be undefined. Please make sure it is defined" >&2;}
20429 rm -f "$ac_tmp/stdin"
20431 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20432 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20434 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20440 if test x"$ac_file" != x-; then
20442 $as_echo "/* $configure_input */" \
20443 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20444 } >"$ac_tmp/config.h" \
20445 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20446 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20447 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20448 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20451 mv "$ac_tmp/config.h" "$ac_file" \
20452 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20455 $as_echo "/* $configure_input */" \
20456 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20457 || as_fn_error $? "could not create -" "$LINENO" 5
20465 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
20468 # Prefer the file from the source tree if names are identical.
20469 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
20470 ac_source=$srcdir/$ac_source
20473 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
20474 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
20476 if test ! -r "$ac_source"; then
20477 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
20481 # Try a relative symlink, then a hard link, then a copy.
20483 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
20484 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
20486 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
20487 ln "$ac_source" "$ac_file" 2>/dev/null ||
20488 cp -p "$ac_source" "$ac_file" ||
20489 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
20492 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20493 $as_echo "$as_me: executing $ac_file commands" >&6;}
20498 case $ac_file$ac_mode in
20499 "config.h":H) echo > stamp-h ;;
20500 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
20501 "nm.h":L) echo > stamp-nmh ;;
20502 "gcore":F) chmod +x gcore ;;
20510 ac_clean_files=$ac_clean_files_save
20512 test $ac_write_fail = 0 ||
20513 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20516 # configure is writing to config.log, and then calls config.status.
20517 # config.status does its own redirection, appending to config.log.
20518 # Unfortunately, on DOS this fails, as config.log is still kept open
20519 # by configure, so config.status won't be able to
write to it
; its
20520 # output is simply discarded. So we exec the FD to /dev/null,
20521 # effectively closing config.log, so it can be properly (re)opened and
20522 # appended to by config.status. When coming back to configure, we
20523 # need to make the FD available again.
20524 if test "$no_create" != yes; then
20526 ac_config_status_args
=
20527 test "$silent" = yes &&
20528 ac_config_status_args
="$ac_config_status_args --quiet"
20530 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20532 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20533 # would make configure fail if this is the last instruction.
20534 $ac_cs_success || as_fn_exit
1
20538 # CONFIG_SUBDIRS section.
20540 if test "$no_recursion" != yes; then
20542 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
20543 # so they do not pile up.
20544 ac_sub_configure_args
=
20546 eval "set x $ac_configure_args"
20550 if test -n "$ac_prev"; then
20555 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
20556 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
20557 ac_prev
=cache_file
;;
20558 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
20559 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
20562 --config-cache |
-C)
20564 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
20566 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
20568 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
20570 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
20572 --disable-option-checking)
20576 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20578 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
20582 # Always prepend --prefix to ensure using the same prefix
20583 # in subdir configurations.
20584 ac_arg
="--prefix=$prefix"
20586 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20588 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
20591 if test "$silent" = yes; then
20592 ac_sub_configure_args
="--silent $ac_sub_configure_args"
20595 # Always prepend --disable-option-checking to silence warnings, since
20596 # different subdirs can have different --enable and --with options.
20597 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
20600 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
20602 # Do not complain, so a configure script can configure whichever
20603 # parts of a large source tree are present.
20604 test -d "$srcdir/$ac_dir" ||
continue
20606 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20607 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
20608 $as_echo "$ac_msg" >&6
20609 as_dir
="$ac_dir"; as_fn_mkdir_p
20613 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20615 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20616 # A ".." for each directory in $ac_dir_suffix.
20617 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20618 case $ac_top_builddir_sub in
20619 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20620 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20623 ac_abs_top_builddir
=$ac_pwd
20624 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
20625 # for backward compatibility:
20626 ac_top_builddir
=$ac_top_build_prefix
20629 .
) # We are building in place.
20631 ac_top_srcdir
=$ac_top_builddir_sub
20632 ac_abs_top_srcdir
=$ac_pwd ;;
20633 [\\/]* | ?
:[\\/]* ) # Absolute name.
20634 ac_srcdir
=$srcdir$ac_dir_suffix;
20635 ac_top_srcdir
=$srcdir
20636 ac_abs_top_srcdir
=$srcdir ;;
20637 *) # Relative name.
20638 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
20639 ac_top_srcdir
=$ac_top_build_prefix$srcdir
20640 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
20642 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
20647 # Check for guested configure; otherwise get Cygnus style configure.
20648 if test -f "$ac_srcdir/configure.gnu"; then
20649 ac_sub_configure
=$ac_srcdir/configure.gnu
20650 elif test -f "$ac_srcdir/configure"; then
20651 ac_sub_configure
=$ac_srcdir/configure
20652 elif test -f "$ac_srcdir/configure.in"; then
20653 # This should be Cygnus configure.
20654 ac_sub_configure
=$ac_aux_dir/configure
20656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
20657 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20661 # The recursion is here.
20662 if test -n "$ac_sub_configure"; then
20663 # Make the cache file name correct relative to the subdirectory.
20664 case $cache_file in
20665 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
20666 *) # Relative name.
20667 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
20670 { $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
20671 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20672 # The eval makes quoting arguments work.
20673 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20674 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20675 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
20681 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
20682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20683 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}