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
633 HAVE_NATIVE_GCORE_HOST
725 READLINE_TEXI_INCFLAG
749 HAVE_NATIVE_GCORE_TARGET
776 INSTALL_STRIP_PROGRAM
805 MAINTAINER_MODE_FALSE
834 program_transform_name
845 ac_subst_files
='nat_makefile_frag'
847 enable_option_checking
848 enable_maintainer_mode
851 with_separate_debug_dir
853 with_relocated_sources
855 with_auto_load_safe_path
887 enable_build_warnings
888 enable_gdb_build_warnings
898 with_libbabeltrace_prefix
900 ac_precious_vars
='build_alias
917 ac_subdirs_all
='testsuite
922 # Initialize some variables set by options.
924 ac_init_version
=false
925 ac_unrecognized_opts
=
927 # The variables have the same names as the options, with
928 # dashes changed to underlines.
936 program_transform_name
=s
,x
,x
,
944 # Installation directory options.
945 # These are left unexpanded so users can "make install exec_prefix=/foo"
946 # and all the variables that are supposed to be based on exec_prefix
947 # by default will actually change.
948 # Use braces instead of parens because sh, perl, etc. also accept them.
949 # (The list follows the same order as the GNU Coding Standards.)
950 bindir
='${exec_prefix}/bin'
951 sbindir
='${exec_prefix}/sbin'
952 libexecdir
='${exec_prefix}/libexec'
953 datarootdir
='${prefix}/share'
954 datadir
='${datarootdir}'
955 sysconfdir
='${prefix}/etc'
956 sharedstatedir
='${prefix}/com'
957 localstatedir
='${prefix}/var'
958 includedir
='${prefix}/include'
959 oldincludedir
='/usr/include'
960 docdir
='${datarootdir}/doc/${PACKAGE}'
961 infodir
='${datarootdir}/info'
966 libdir
='${exec_prefix}/lib'
967 localedir
='${datarootdir}/locale'
968 mandir
='${datarootdir}/man'
974 # If the previous option needs an argument, assign it.
975 if test -n "$ac_prev"; then
976 eval $ac_prev=\
$ac_option
982 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
987 # Accept the important Cygnus configure options, so we can diagnose typos.
989 case $ac_dashdash$ac_option in
993 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
995 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
998 -build |
--build |
--buil |
--bui |
--bu)
999 ac_prev
=build_alias
;;
1000 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1001 build_alias
=$ac_optarg ;;
1003 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1004 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1005 ac_prev
=cache_file
;;
1006 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1007 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1008 cache_file
=$ac_optarg ;;
1010 --config-cache |
-C)
1011 cache_file
=config.cache
;;
1013 -datadir |
--datadir |
--datadi |
--datad)
1015 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1016 datadir
=$ac_optarg ;;
1018 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1019 |
--dataroo |
--dataro |
--datar)
1020 ac_prev
=datarootdir
;;
1021 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1022 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1023 datarootdir
=$ac_optarg ;;
1025 -disable-* |
--disable-*)
1026 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1027 # Reject names that are not valid shell variable names.
1028 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1029 as_fn_error $?
"invalid feature name: $ac_useropt"
1030 ac_useropt_orig
=$ac_useropt
1031 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1032 case $ac_user_opts in
1034 "enable_
$ac_useropt"
1036 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1037 ac_unrecognized_sep
=', ';;
1039 eval enable_
$ac_useropt=no
;;
1041 -docdir |
--docdir |
--docdi |
--doc |
--do)
1043 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1044 docdir
=$ac_optarg ;;
1046 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1048 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1049 dvidir
=$ac_optarg ;;
1051 -enable-* |
--enable-*)
1052 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1055 as_fn_error $?
"invalid feature name: $ac_useropt"
1056 ac_useropt_orig
=$ac_useropt
1057 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1060 "enable_
$ac_useropt"
1062 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1063 ac_unrecognized_sep
=', ';;
1065 eval enable_
$ac_useropt=\
$ac_optarg ;;
1067 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1068 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1069 |
--exec |
--exe |
--ex)
1070 ac_prev
=exec_prefix
;;
1071 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1072 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1073 |
--exec=* |
--exe=* |
--ex=*)
1074 exec_prefix
=$ac_optarg ;;
1076 -gas |
--gas |
--ga |
--g)
1077 # Obsolete; use --with-gas.
1080 -help |
--help |
--hel |
--he |
-h)
1081 ac_init_help
=long
;;
1082 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1083 ac_init_help
=recursive
;;
1084 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1085 ac_init_help
=short
;;
1087 -host |
--host |
--hos |
--ho)
1088 ac_prev
=host_alias
;;
1089 -host=* |
--host=* |
--hos=* |
--ho=*)
1090 host_alias
=$ac_optarg ;;
1092 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1094 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1096 htmldir
=$ac_optarg ;;
1098 -includedir |
--includedir |
--includedi |
--included |
--include \
1099 |
--includ |
--inclu |
--incl |
--inc)
1100 ac_prev
=includedir
;;
1101 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1102 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1103 includedir
=$ac_optarg ;;
1105 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1107 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1108 infodir
=$ac_optarg ;;
1110 -libdir |
--libdir |
--libdi |
--libd)
1112 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1113 libdir
=$ac_optarg ;;
1115 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1116 |
--libexe |
--libex |
--libe)
1117 ac_prev
=libexecdir
;;
1118 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1119 |
--libexe=* |
--libex=* |
--libe=*)
1120 libexecdir
=$ac_optarg ;;
1122 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1123 ac_prev
=localedir
;;
1124 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1125 localedir
=$ac_optarg ;;
1127 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1128 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1129 ac_prev
=localstatedir
;;
1130 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1131 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1132 localstatedir
=$ac_optarg ;;
1134 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1136 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1137 mandir
=$ac_optarg ;;
1139 -nfp |
--nfp |
--nf)
1140 # Obsolete; use --without-fp.
1143 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1144 |
--no-cr |
--no-c |
-n)
1147 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1148 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1151 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1152 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1153 |
--oldin |
--oldi |
--old |
--ol |
--o)
1154 ac_prev
=oldincludedir
;;
1155 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1156 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1157 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1158 oldincludedir
=$ac_optarg ;;
1160 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1162 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1163 prefix
=$ac_optarg ;;
1165 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1166 |
--program-pre |
--program-pr |
--program-p)
1167 ac_prev
=program_prefix
;;
1168 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1169 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1170 program_prefix
=$ac_optarg ;;
1172 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1173 |
--program-suf |
--program-su |
--program-s)
1174 ac_prev
=program_suffix
;;
1175 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1176 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1177 program_suffix
=$ac_optarg ;;
1179 -program-transform-name |
--program-transform-name \
1180 |
--program-transform-nam |
--program-transform-na \
1181 |
--program-transform-n |
--program-transform- \
1182 |
--program-transform |
--program-transfor \
1183 |
--program-transfo |
--program-transf \
1184 |
--program-trans |
--program-tran \
1185 |
--progr-tra |
--program-tr |
--program-t)
1186 ac_prev
=program_transform_name
;;
1187 -program-transform-name=* |
--program-transform-name=* \
1188 |
--program-transform-nam=* |
--program-transform-na=* \
1189 |
--program-transform-n=* |
--program-transform-=* \
1190 |
--program-transform=* |
--program-transfor=* \
1191 |
--program-transfo=* |
--program-transf=* \
1192 |
--program-trans=* |
--program-tran=* \
1193 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1194 program_transform_name
=$ac_optarg ;;
1196 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1198 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1199 pdfdir
=$ac_optarg ;;
1201 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1203 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1206 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1207 |
-silent |
--silent |
--silen |
--sile |
--sil)
1210 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1212 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1214 sbindir
=$ac_optarg ;;
1216 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1217 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1218 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1220 ac_prev
=sharedstatedir
;;
1221 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1222 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1223 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1225 sharedstatedir
=$ac_optarg ;;
1227 -site |
--site |
--sit)
1229 -site=* |
--site=* |
--sit=*)
1232 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1234 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1235 srcdir
=$ac_optarg ;;
1237 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1238 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1239 ac_prev
=sysconfdir
;;
1240 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1241 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1242 sysconfdir
=$ac_optarg ;;
1244 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1245 ac_prev
=target_alias
;;
1246 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1247 target_alias
=$ac_optarg ;;
1249 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1252 -version |
--version |
--versio |
--versi |
--vers |
-V)
1253 ac_init_version
=: ;;
1256 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1257 # Reject names that are not valid shell variable names.
1258 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1259 as_fn_error $?
"invalid package name: $ac_useropt"
1260 ac_useropt_orig
=$ac_useropt
1261 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1262 case $ac_user_opts in
1266 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1267 ac_unrecognized_sep
=', ';;
1269 eval with_
$ac_useropt=\
$ac_optarg ;;
1271 -without-* |
--without-*)
1272 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1273 # Reject names that are not valid shell variable names.
1274 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1275 as_fn_error $?
"invalid package name: $ac_useropt"
1276 ac_useropt_orig
=$ac_useropt
1277 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1278 case $ac_user_opts in
1282 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1283 ac_unrecognized_sep
=', ';;
1285 eval with_
$ac_useropt=no
;;
1288 # Obsolete; use --with-x.
1291 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1292 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1293 ac_prev
=x_includes
;;
1294 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1295 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1296 x_includes
=$ac_optarg ;;
1298 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1299 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1300 ac_prev
=x_libraries
;;
1301 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1302 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1303 x_libraries
=$ac_optarg ;;
1305 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1306 Try \`$0 --help' for more information"
1310 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1311 # Reject names that are not valid shell variable names.
1312 case $ac_envvar in #(
1313 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1314 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1316 eval $ac_envvar=\
$ac_optarg
1317 export $ac_envvar ;;
1320 # FIXME: should be removed in autoconf 3.0.
1321 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1322 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1323 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1324 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1330 if test -n "$ac_prev"; then
1331 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1332 as_fn_error $?
"missing argument to $ac_option"
1335 if test -n "$ac_unrecognized_opts"; then
1336 case $enable_option_checking in
1338 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1339 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1343 # Check all directory arguments for consistency.
1344 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1345 datadir sysconfdir sharedstatedir localstatedir includedir \
1346 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1347 libdir localedir mandir
1349 eval ac_val
=\$
$ac_var
1350 # Remove trailing slashes.
1353 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1354 eval $ac_var=\
$ac_val;;
1356 # Be sure to have absolute directory names.
1358 [\\/$
]* | ?
:[\\/]* ) continue;;
1359 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1361 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1364 # There might be people who depend on the old broken behavior: `$host'
1365 # used to hold the argument of --host etc.
1366 # FIXME: To remove some day.
1369 target
=$target_alias
1371 # FIXME: To remove some day.
1372 if test "x$host_alias" != x
; then
1373 if test "x$build_alias" = x
; then
1374 cross_compiling
=maybe
1375 elif test "x$build_alias" != "x$host_alias"; then
1381 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1383 test "$silent" = yes && exec 6>/dev
/null
1386 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1387 ac_ls_di
=`ls -di .` &&
1388 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1389 as_fn_error $?
"working directory cannot be determined"
1390 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1391 as_fn_error $?
"pwd does not report name of working directory"
1394 # Find the source files, if location was not specified.
1395 if test -z "$srcdir"; then
1396 ac_srcdir_defaulted
=yes
1397 # Try the directory containing this script, then the parent directory.
1398 ac_confdir
=`$as_dirname -- "$as_myself" ||
1399 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1400 X"$as_myself" : 'X\(//\)[^/]' \| \
1401 X"$as_myself" : 'X\(//\)$' \| \
1402 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1403 $as_echo X"$as_myself" |
1404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1422 if test ! -r "$srcdir/$ac_unique_file"; then
1426 ac_srcdir_defaulted
=no
1428 if test ! -r "$srcdir/$ac_unique_file"; then
1429 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1430 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1432 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1434 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1436 # When building in place, set srcdir=.
1437 if test "$ac_abs_confdir" = "$ac_pwd"; then
1440 # Remove unnecessary trailing slashes from srcdir.
1441 # Double slashes in file names in object file debugging info
1442 # mess up M-x gdb in Emacs.
1444 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1446 for ac_var
in $ac_precious_vars; do
1447 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1448 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1449 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1450 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1454 # Report the --help message.
1456 if test "$ac_init_help" = "long"; then
1457 # Omit some internal or obsolete options to make the list less imposing.
1458 # This message is too long to be a string in the A/UX 3.1 sh.
1460 \`configure' configures this package to adapt to many kinds of systems.
1462 Usage: $0 [OPTION]... [VAR=VALUE]...
1464 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1465 VAR=VALUE. See below for descriptions of some of the useful variables.
1467 Defaults for the options are specified in brackets.
1470 -h, --help display this help and exit
1471 --help=short display options specific to this package
1472 --help=recursive display the short help of all the included packages
1473 -V, --version display version information and exit
1474 -q, --quiet, --silent do not print \`checking ...' messages
1475 --cache-file=FILE cache test results in FILE [disabled]
1476 -C, --config-cache alias for \`--cache-file=config.cache'
1477 -n, --no-create do not create output files
1478 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1480 Installation directories:
1481 --prefix=PREFIX install architecture-independent files in PREFIX
1482 [$ac_default_prefix]
1483 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1486 By default, \`make install' will install all the files in
1487 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1488 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1489 for instance \`--prefix=\$HOME'.
1491 For better control, use the options below.
1493 Fine tuning of the installation directories:
1494 --bindir=DIR user executables [EPREFIX/bin]
1495 --sbindir=DIR system admin executables [EPREFIX/sbin]
1496 --libexecdir=DIR program executables [EPREFIX/libexec]
1497 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1498 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1499 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1500 --libdir=DIR object code libraries [EPREFIX/lib]
1501 --includedir=DIR C header files [PREFIX/include]
1502 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1503 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1504 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1505 --infodir=DIR info documentation [DATAROOTDIR/info]
1506 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1507 --mandir=DIR man documentation [DATAROOTDIR/man]
1508 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1509 --htmldir=DIR html documentation [DOCDIR]
1510 --dvidir=DIR dvi documentation [DOCDIR]
1511 --pdfdir=DIR pdf documentation [DOCDIR]
1512 --psdir=DIR ps documentation [DOCDIR]
1518 --program-prefix=PREFIX prepend PREFIX to installed program names
1519 --program-suffix=SUFFIX append SUFFIX to installed program names
1520 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1523 --x-includes=DIR X include files are
in DIR
1524 --x-libraries=DIR X library files are
in DIR
1527 --build=BUILD configure
for building on BUILD
[guessed
]
1528 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1529 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1533 if test -n "$ac_init_help"; then
1538 --disable-option-checking ignore unrecognized
--enable/--with options
1539 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1540 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1541 --enable-maintainer-mode
1542 enable make rules and dependencies not useful
(and
1543 sometimes confusing
) to the casual installer
1544 --enable-plugins Enable support
for plugins
1545 --disable-largefile omit support
for large files
1546 --enable-targets=TARGETS
1547 alternative target configurations
1548 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1549 --disable-gdbmi disable machine-interface
(MI
)
1550 --enable-tui enable full-screen terminal user interface
(TUI
)
1551 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1552 --enable-profiling enable profiling of GDB
1553 --enable-codesign=CERT sign gdb with
'codesign -s CERT'
1554 --disable-rpath do not hardcode runtime library paths
1555 --enable-libmcheck Try linking with
-lmcheck if available
1556 --enable-werror treat compile warnings as errors
1557 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1558 --enable-gdb-build-warnings
1559 enable GDB specific build-time compiler warnings
if
1561 --enable-sim link gdb with simulator
1562 --enable-multi-ice build the multi-ice-gdb-server
1563 --enable-gdbserver automatically build gdbserver
(yes
/no
/auto
, default
1567 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1568 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1569 --with-separate-debug-dir=PATH
1570 look for global separate debug info
in this path
1572 --with-gdb-datadir=PATH
look for global separate data files
in this path
1574 --with-relocated-sources=PATH
1575 automatically relocate this path
for source files
1576 --with-auto-load-dir=PATH
1577 directories from
which to load auto-loaded scripts
1578 [$debugdir:$datadir/auto-load
]
1579 --with-auto-load-safe-path=PATH
1580 directories safe to hold auto-loaded files
1581 [--with-auto-load-dir]
1582 --without-auto-load-safe-path
1583 do not restrict auto-loaded files locations
1584 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1585 --with-curses use the curses library instead of the termcap
1587 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1588 --with-bugurl=URL Direct users to URL to report a bug
1589 --with-system-zlib use installed libz
1590 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1591 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1592 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1593 --with-iconv-bin=PATH specify where to find the iconv program
1594 --with-system-readline use installed readline library
1595 --with-jit-reader-dir=PATH
1596 directory to load the JIT readers from
1597 --with-expat include expat support (auto/yes/no)
1598 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1599 --without-libexpat-prefix don't search
for libexpat
in includedir and libdir
1600 --with-mpfr include MPFR support
(auto
/yes
/no
)
1601 --with-libmpfr-prefix[=DIR
] search
for libmpfr
in DIR
/include and DIR
/lib
1602 --without-libmpfr-prefix don
't search for libmpfr in includedir and libdir
1603 --with-python[=PYTHON] include python support
1604 (auto/yes/no/<python-program>)
1605 --with-guile[=GUILE] include guile support
1606 (auto/yes/no/<guile-version>/<pkg-config-program>)
1607 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1608 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1609 --without-libipt-prefix don't search
for libipt
in includedir and libdir
1610 --without-included-regex
1611 don
't use included regex; this is the default on
1612 systems with version 2 of the GNU C library (use
1613 with caution on other system)
1614 --with-sysroot[=DIR] search for usr/lib et al within DIR
1615 --with-system-gdbinit=PATH
1616 automatically load a system-wide gdbinit file
1617 --with-lzma support lzma compression (auto/yes/no)
1618 --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib
1619 --without-liblzma-prefix don't search
for liblzma
in includedir and libdir
1620 --with-tcl directory containing tcl configuration
(tclConfig.sh
)
1621 --with-tk directory containing tk configuration
(tkConfig.sh
)
1622 --with-x use the X Window System
1623 --with-babeltrace include babeltrace support
(auto
/yes
/no
)
1624 --with-libbabeltrace-prefix[=DIR
] search
for libbabeltrace
in DIR
/include and DIR
/lib
1625 --without-libbabeltrace-prefix don
't search for libbabeltrace in includedir and libdir
1627 Some influential environment variables:
1628 CC C compiler command
1629 CFLAGS C compiler flags
1630 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1631 nonstandard directory <lib dir>
1632 LIBS libraries to pass to the linker, e.g. -l<library>
1633 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1634 you have headers in a nonstandard directory <include dir>
1635 CXX C++ compiler command
1636 CXXFLAGS C++ compiler flags
1638 MAKEINFO Parent configure detects if it is of sufficient version.
1640 Parameters for MAKEINFO.
1641 YACC The `Yet Another Compiler Compiler' implementation to use.
1642 Defaults to the first program found out of
: `bison -y', `byacc
',
1644 YFLAGS The list of arguments that will be passed by default to
$YACC.
1645 This
script will default YFLAGS to the empty string to avoid a
1646 default value of
`-d' given by some make applications.
1647 XMKMF Path to xmkmf, Makefile generator for X Window System
1649 Use these variables to override the choices made by `configure
' or to help
1650 it to find libraries and programs with nonstandard names/locations.
1652 Report bugs to the package provider.
1657 if test "$ac_init_help" = "recursive"; then
1658 # If there are subdirs, report their specific --help.
1659 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1660 test -d "$ac_dir" ||
1661 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1666 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1668 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.
[\\/]||
'`
1669 # A ".." for each directory in $ac_dir_suffix.
1670 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|
/[^
\\/]*|
/..|g
;s|
/||
'`
1671 case $ac_top_builddir_sub in
1672 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1673 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1676 ac_abs_top_builddir=$ac_pwd
1677 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1678 # for backward compatibility:
1679 ac_top_builddir=$ac_top_build_prefix
1682 .) # We are building in place.
1684 ac_top_srcdir=$ac_top_builddir_sub
1685 ac_abs_top_srcdir=$ac_pwd ;;
1686 [\\/]* | ?:[\\/]* ) # Absolute name.
1687 ac_srcdir=$srcdir$ac_dir_suffix;
1688 ac_top_srcdir=$srcdir
1689 ac_abs_top_srcdir=$srcdir ;;
1691 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1692 ac_top_srcdir=$ac_top_build_prefix$srcdir
1693 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1695 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1697 cd "$ac_dir" || { ac_status=$?; continue; }
1698 # Check for guested configure.
1699 if test -f "$ac_srcdir/configure.gnu"; then
1701 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1702 elif test -f "$ac_srcdir/configure"; then
1704 $SHELL "$ac_srcdir/configure" --help=recursive
1706 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1708 cd "$ac_pwd" || { ac_status=$?; break; }
1712 test -n "$ac_init_help" && exit $ac_status
1713 if $ac_init_version; then
1716 generated by GNU Autoconf 2.69
1718 Copyright (C) 2012 Free Software Foundation, Inc.
1719 This configure script is free software; the Free Software Foundation
1720 gives unlimited permission to copy, distribute and modify it.
1725 ## ------------------------ ##
1726 ## Autoconf initialization. ##
1727 ## ------------------------ ##
1729 # ac_fn_c_try_compile LINENO
1730 # --------------------------
1731 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1732 ac_fn_c_try_compile ()
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 rm -f conftest.$ac_objext
1736 if { { ac_try="$ac_compile"
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_compile") 2>conftest.err
1745 if test -s conftest.err; then
1746 grep -v '^
*+' conftest.err >conftest.er1
1747 cat conftest.er1 >&5
1748 mv -f conftest.er1 conftest.err
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; } && {
1752 test -z "$ac_c_werror_flag" ||
1753 test ! -s conftest.err
1754 } && test -s conftest.$ac_objext; then :
1757 $as_echo "$as_me: failed program was:" >&5
1758 sed 's
/^
/|
/' conftest.$ac_ext >&5
1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763 as_fn_set_status $ac_retval
1765 } # ac_fn_c_try_compile
1767 # ac_fn_cxx_try_compile LINENO
1768 # ----------------------------
1769 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1770 ac_fn_cxx_try_compile ()
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 rm -f conftest.$ac_objext
1774 if { { ac_try="$ac_compile"
1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777 *) ac_try_echo=$ac_try;;
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781 (eval "$ac_compile") 2>conftest.err
1783 if test -s conftest.err; then
1784 grep -v '^
*+' conftest.err >conftest.er1
1785 cat conftest.er1 >&5
1786 mv -f conftest.er1 conftest.err
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; } && {
1790 test -z "$ac_cxx_werror_flag" ||
1791 test ! -s conftest.err
1792 } && test -s conftest.$ac_objext; then :
1795 $as_echo "$as_me: failed program was:" >&5
1796 sed 's
/^
/|
/' conftest.$ac_ext >&5
1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801 as_fn_set_status $ac_retval
1803 } # ac_fn_cxx_try_compile
1805 # ac_fn_c_try_cpp LINENO
1806 # ----------------------
1807 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 if { { ac_try="$ac_cpp conftest.$ac_ext"
1813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814 *) ac_try_echo=$ac_try;;
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1820 if test -s conftest.err; then
1821 grep -v '^
*+' conftest.err >conftest.er1
1822 cat conftest.er1 >&5
1823 mv -f conftest.er1 conftest.err
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; } > conftest.i && {
1827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1828 test ! -s conftest.err
1832 $as_echo "$as_me: failed program was:" >&5
1833 sed 's
/^
/|
/' conftest.$ac_ext >&5
1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838 as_fn_set_status $ac_retval
1842 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1843 # -------------------------------------------------------
1844 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1845 # the include files in INCLUDES and setting the cache variable VAR
1847 ac_fn_c_check_header_mongrel ()
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 if eval \${$3+:} false; then :
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if eval \${$3+:} false; then :
1854 $as_echo_n "(cached) " >&6
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1860 # Is the header compilable?
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1862 $as_echo_n "checking $2 usability... " >&6; }
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864 /* end confdefs.h. */
1868 if ac_fn_c_try_compile "$LINENO"; then :
1869 ac_header_compiler=yes
1871 ac_header_compiler=no
1873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1875 $as_echo "$ac_header_compiler" >&6; }
1877 # Is the header present?
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1879 $as_echo_n "checking $2 presence... " >&6; }
1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h. */
1884 if ac_fn_c_try_cpp "$LINENO"; then :
1885 ac_header_preproc=yes
1887 ac_header_preproc=no
1889 rm -f conftest.err conftest.i conftest.$ac_ext
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1891 $as_echo "$ac_header_preproc" >&6; }
1893 # So? What about this header?
1894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1897 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1899 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1903 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1905 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1907 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1909 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1911 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915 $as_echo_n "checking for $2... " >&6; }
1916 if eval \${$3+:} false; then :
1917 $as_echo_n "(cached) " >&6
1919 eval "$3=\$ac_header_compiler"
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 $as_echo "$ac_res" >&6; }
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 } # ac_fn_c_check_header_mongrel
1929 # ac_fn_c_try_run LINENO
1930 # ----------------------
1931 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1932 # that executables *can* be run.
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 if { { ac_try="$ac_link"
1938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1939 *) ac_try_echo=$ac_try;;
1941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1942 $as_echo "$ac_try_echo"; } >&5
1943 (eval "$ac_link") 2>&5
1945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1946 test $ac_status = 0; } && { ac_try='.
/conftest
$ac_exeext'
1947 { { case "(($ac_try" in
1948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1949 *) ac_try_echo=$ac_try;;
1951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1952 $as_echo "$ac_try_echo"; } >&5
1953 (eval "$ac_try") 2>&5
1955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956 test $ac_status = 0; }; }; then :
1959 $as_echo "$as_me: program exited with status $ac_status" >&5
1960 $as_echo "$as_me: failed program was:" >&5
1961 sed 's
/^
/|
/' conftest.$ac_ext >&5
1963 ac_retval=$ac_status
1965 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1967 as_fn_set_status $ac_retval
1971 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1972 # -------------------------------------------------------
1973 # Tests whether HEADER exists and can be compiled using the include files in
1974 # INCLUDES, setting the cache variable VAR accordingly.
1975 ac_fn_c_check_header_compile ()
1977 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1979 $as_echo_n "checking for $2... " >&6; }
1980 if eval \${$3+:} false; then :
1981 $as_echo_n "(cached) " >&6
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h. */
1988 if ac_fn_c_try_compile "$LINENO"; then :
1993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997 $as_echo "$ac_res" >&6; }
1998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000 } # ac_fn_c_check_header_compile
2002 # ac_fn_c_try_link LINENO
2003 # -----------------------
2004 # Try to link conftest.$ac_ext, and return whether this succeeded.
2007 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008 rm -f conftest.$ac_objext conftest$ac_exeext
2009 if { { ac_try="$ac_link"
2011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2012 *) ac_try_echo=$ac_try;;
2014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2015 $as_echo "$ac_try_echo"; } >&5
2016 (eval "$ac_link") 2>conftest.err
2018 if test -s conftest.err; then
2019 grep -v '^
*+' conftest.err >conftest.er1
2020 cat conftest.er1 >&5
2021 mv -f conftest.er1 conftest.err
2023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2024 test $ac_status = 0; } && {
2025 test -z "$ac_c_werror_flag" ||
2026 test ! -s conftest.err
2027 } && test -s conftest$ac_exeext && {
2028 test "$cross_compiling" = yes ||
2029 test -x conftest$ac_exeext
2033 $as_echo "$as_me: failed program was:" >&5
2034 sed 's
/^
/|
/' conftest.$ac_ext >&5
2038 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2039 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2040 # interfere with the next link command; also delete a directory that is
2041 # left behind by Apple's compiler. We
do this before executing the actions.
2042 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2043 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044 as_fn_set_status
$ac_retval
2046 } # ac_fn_c_try_link
2048 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2049 # --------------------------------------------
2050 # Tries to find the compile-time value of EXPR in a program that includes
2051 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2053 ac_fn_c_compute_int
()
2055 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2056 if test "$cross_compiling" = yes; then
2057 # Depending upon the size, compute the lo and hi bounds.
2058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h. */
2064 static int test_array [1 - 2 * !(($2) >= 0)];
2066 return test_array [0];
2072 if ac_fn_c_try_compile
"$LINENO"; then :
2075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2076 /* end confdefs.h. */
2081 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2083 return test_array [0];
2089 if ac_fn_c_try_compile
"$LINENO"; then :
2090 ac_hi
=$ac_mid; break
2092 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2093 if test $ac_lo -le $ac_mid; then
2097 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2099 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h. */
2108 static int test_array [1 - 2 * !(($2) < 0)];
2110 return test_array [0];
2116 if ac_fn_c_try_compile
"$LINENO"; then :
2119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2120 /* end confdefs.h. */
2125 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2127 return test_array [0];
2133 if ac_fn_c_try_compile
"$LINENO"; then :
2134 ac_lo
=$ac_mid; break
2136 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2137 if test $ac_mid -le $ac_hi; then
2141 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2143 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2148 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2151 # Binary search between lo and hi bounds.
2152 while test "x$ac_lo" != "x$ac_hi"; do
2153 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2155 /* end confdefs.h. */
2160 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2162 return test_array [0];
2168 if ac_fn_c_try_compile
"$LINENO"; then :
2171 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2176 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2181 /* end confdefs.h. */
2183 static long int longval () { return $2; }
2184 static unsigned long int ulongval () { return $2; }
2191 FILE *f = fopen ("conftest.val", "w");
2196 long int i = longval ();
2199 fprintf (f, "%ld", i);
2203 unsigned long int i = ulongval ();
2206 fprintf (f, "%lu", i);
2208 /* Do not output a trailing newline, as this causes \r\n confusion
2209 on some platforms. */
2210 return ferror (f) || fclose (f) != 0;
2216 if ac_fn_c_try_run
"$LINENO"; then :
2217 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2221 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2222 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2226 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2227 as_fn_set_status
$ac_retval
2229 } # ac_fn_c_compute_int
2231 # ac_fn_c_check_func LINENO FUNC VAR
2232 # ----------------------------------
2233 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2234 ac_fn_c_check_func
()
2236 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2238 $as_echo_n "checking for $2... " >&6; }
2239 if eval \
${$3+:} false
; then :
2240 $as_echo_n "(cached) " >&6
2242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2243 /* end confdefs.h. */
2244 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2246 #define $2 innocuous_$2
2248 /* System header to define __stub macros and hopefully few prototypes,
2249 which can conflict with char $2 (); below.
2250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2251 <limits.h> exists even on freestanding compilers. */
2254 # include <limits.h>
2256 # include <assert.h>
2261 /* Override any GCC internal prototype to avoid an error.
2262 Use char because int might match the return type of a GCC
2263 builtin and then its argument prototype would still apply. */
2268 /* The GNU C library defines this for functions which it implements
2269 to always fail with ENOSYS. Some functions are actually named
2270 something starting with __ and the normal name is an alias. */
2271 #if defined __stub_$2 || defined __stub___$2
2283 if ac_fn_c_try_link
"$LINENO"; then :
2288 rm -f core conftest.err conftest.
$ac_objext \
2289 conftest
$ac_exeext conftest.
$ac_ext
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2293 $as_echo "$ac_res" >&6; }
2294 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2296 } # ac_fn_c_check_func
2298 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2299 # ----------------------------------------------------
2300 # Tries to find if the field MEMBER exists in type AGGR, after including
2301 # INCLUDES, setting cache variable VAR accordingly.
2302 ac_fn_c_check_member
()
2304 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2306 $as_echo_n "checking for $2.$3... " >&6; }
2307 if eval \
${$4+:} false
; then :
2308 $as_echo_n "(cached) " >&6
2310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2311 /* end confdefs.h. */
2323 if ac_fn_c_try_compile
"$LINENO"; then :
2326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2327 /* end confdefs.h. */
2333 if (sizeof ac_aggr.$3)
2339 if ac_fn_c_try_compile
"$LINENO"; then :
2344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2346 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2350 $as_echo "$ac_res" >&6; }
2351 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2353 } # ac_fn_c_check_member
2355 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2356 # -------------------------------------------
2357 # Tests whether TYPE exists after having included INCLUDES, setting cache
2358 # variable VAR accordingly.
2359 ac_fn_c_check_type
()
2361 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2363 $as_echo_n "checking for $2... " >&6; }
2364 if eval \
${$3+:} false
; then :
2365 $as_echo_n "(cached) " >&6
2368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2369 /* end confdefs.h. */
2380 if ac_fn_c_try_compile
"$LINENO"; then :
2381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2382 /* end confdefs.h. */
2393 if ac_fn_c_try_compile
"$LINENO"; then :
2398 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2400 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2404 $as_echo "$ac_res" >&6; }
2405 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2407 } # ac_fn_c_check_type
2409 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2410 # ---------------------------------------------
2411 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2413 ac_fn_c_check_decl
()
2415 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2416 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2417 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2419 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2420 if eval \
${$3+:} false
; then :
2421 $as_echo_n "(cached) " >&6
2423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2424 /* end confdefs.h. */
2429 #ifndef $as_decl_name
2431 (void) $as_decl_use;
2433 (void) $as_decl_name;
2441 if ac_fn_c_try_compile
"$LINENO"; then :
2446 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2450 $as_echo "$ac_res" >&6; }
2451 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2453 } # ac_fn_c_check_decl
2454 cat >config.log
<<_ACEOF
2455 This file contains any messages produced by compilers while
2456 running configure, to aid debugging if configure makes a mistake.
2458 It was created by $as_me, which was
2459 generated by GNU Autoconf 2.69. Invocation command line was
2471 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2472 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2473 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2474 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2475 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2477 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2478 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2480 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2481 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2482 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2483 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2484 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2485 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2486 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2490 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2494 test -z "$as_dir" && as_dir
=.
2495 $as_echo "PATH: $as_dir"
2511 # Keep a trace of the command line.
2512 # Strip out --no-create and --no-recursion so they do not pile up.
2513 # Strip out --silent because we don't want to record it for future runs.
2514 # Also quote any args containing shell meta-characters.
2515 # Make two passes to allow for proper duplicate-argument suppression.
2519 ac_must_keep_next
=false
2525 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2526 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2527 |
-silent |
--silent |
--silen |
--sile |
--sil)
2530 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2533 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2535 as_fn_append ac_configure_args1
" '$ac_arg'"
2536 if test $ac_must_keep_next = true
; then
2537 ac_must_keep_next
=false
# Got value, back to normal.
2540 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2541 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2542 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2543 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2544 case "$ac_configure_args0 " in
2545 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2548 -* ) ac_must_keep_next
=true
;;
2551 as_fn_append ac_configure_args
" '$ac_arg'"
2556 { ac_configure_args0
=; unset ac_configure_args0
;}
2557 { ac_configure_args1
=; unset ac_configure_args1
;}
2559 # When interrupted or exit'd, cleanup temporary files, and complete
2560 # config.log. We remove comments because anyway the quotes in there
2561 # would cause problems or look ugly.
2562 # WARNING: Use '\'' to represent an apostrophe within the trap.
2563 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2564 trap 'exit_status=$?
2565 # Save into config.log some information that might help in debugging.
2569 $as_echo "## ---------------- ##
2570 ## Cache variables. ##
2571 ## ---------------- ##"
2573 # The following way of writing the cache mishandles newlines in values,
2575 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2576 eval ac_val=\$$ac_var
2580 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2581 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2584 _ | IFS | as_nl) ;; #(
2585 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2586 *) { eval $ac_var=; unset $ac_var;} ;;
2591 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2592 *${as_nl}ac_space=\ *)
2594 "s/'\''/'\''\\\\'\'''\''/g;
2595 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2598 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2605 $as_echo "## ----------------- ##
2606 ## Output variables. ##
2607 ## ----------------- ##"
2609 for ac_var in $ac_subst_vars
2611 eval ac_val=\$$ac_var
2613 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2615 $as_echo "$ac_var='\''$ac_val'\''"
2619 if test -n "$ac_subst_files"; then
2620 $as_echo "## ------------------- ##
2621 ## File substitutions. ##
2622 ## ------------------- ##"
2624 for ac_var
in $ac_subst_files
2626 eval ac_val
=\$
$ac_var
2628 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2630 $as_echo "$ac_var='\''$ac_val'\''"
2635 if test -s confdefs.h; then
2636 $as_echo "## ----------- ##
2643 test "$ac_signal" != 0 &&
2644 $as_echo "$as_me: caught signal $ac_signal"
2645 $as_echo "$as_me: exit $exit_status"
2647 rm -f core *.core core.conftest.* &&
2648 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2651 for ac_signal
in 1 2 13 15; do
2652 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2656 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2657 rm -f -r conftest
* confdefs.h
2659 $as_echo "/* confdefs.h */" > confdefs.h
2661 # Predefined preprocessor variables.
2663 cat >>confdefs.h
<<_ACEOF
2664 #define PACKAGE_NAME "$PACKAGE_NAME"
2667 cat >>confdefs.h
<<_ACEOF
2668 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2671 cat >>confdefs.h
<<_ACEOF
2672 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2675 cat >>confdefs.h
<<_ACEOF
2676 #define PACKAGE_STRING "$PACKAGE_STRING"
2679 cat >>confdefs.h
<<_ACEOF
2680 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2683 cat >>confdefs.h
<<_ACEOF
2684 #define PACKAGE_URL "$PACKAGE_URL"
2688 # Let the site file select an alternate cache file if it wants to.
2689 # Prefer an explicitly selected file to automatically selected ones.
2692 if test -n "$CONFIG_SITE"; then
2693 # We do not want a PATH search for config.site.
2694 case $CONFIG_SITE in #((
2695 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2696 */*) ac_site_file1
=$CONFIG_SITE;;
2697 *) ac_site_file1
=.
/$CONFIG_SITE;;
2699 elif test "x$prefix" != xNONE
; then
2700 ac_site_file1
=$prefix/share
/config.site
2701 ac_site_file2
=$prefix/etc
/config.site
2703 ac_site_file1
=$ac_default_prefix/share
/config.site
2704 ac_site_file2
=$ac_default_prefix/etc
/config.site
2706 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2708 test "x$ac_site_file" = xNONE
&& continue
2709 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2711 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2712 sed 's/^/| /' "$ac_site_file" >&5
2714 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2716 as_fn_error $?
"failed to load site script $ac_site_file
2717 See \`config.log' for more details" "$LINENO" 5; }
2721 if test -r "$cache_file"; then
2722 # Some versions of bash will fail to source /dev/null (special files
2723 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2724 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2726 $as_echo "$as_me: loading cache $cache_file" >&6;}
2728 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2729 *) .
"./$cache_file";;
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2734 $as_echo "$as_me: creating cache $cache_file" >&6;}
2738 as_fn_append ac_header_list
" stdlib.h"
2739 as_fn_append ac_header_list
" unistd.h"
2740 as_fn_append ac_header_list
" sys/param.h"
2741 # Check that the precious variables saved in the cache have kept the same
2743 ac_cache_corrupted
=false
2744 for ac_var
in $ac_precious_vars; do
2745 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2746 eval ac_new_set
=\
$ac_env_${ac_var}_set
2747 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2748 eval ac_new_val
=\
$ac_env_${ac_var}_value
2749 case $ac_old_set,$ac_new_set in
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2752 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2753 ac_cache_corrupted
=: ;;
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2756 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2757 ac_cache_corrupted
=: ;;
2760 if test "x$ac_old_val" != "x$ac_new_val"; then
2761 # differences in whitespace do not lead to failure.
2762 ac_old_val_w
=`echo x $ac_old_val`
2763 ac_new_val_w
=`echo x $ac_new_val`
2764 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2766 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2767 ac_cache_corrupted
=:
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2770 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2771 eval $ac_var=\
$ac_old_val
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2774 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2776 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2779 # Pass precious variables to config.status.
2780 if test "$ac_new_set" = set; then
2782 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2783 *) ac_arg
=$ac_var=$ac_new_val ;;
2785 case " $ac_configure_args " in
2786 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2787 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2791 if $ac_cache_corrupted; then
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2793 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2795 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2796 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2798 ## -------------------- ##
2799 ## Main body of script. ##
2800 ## -------------------- ##
2803 ac_cpp
='$CPP $CPPFLAGS'
2804 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2805 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2806 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2812 ac_config_headers
="$ac_config_headers config.h:config.in"
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2816 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2817 # Check whether --enable-maintainer-mode was given.
2818 if test "${enable_maintainer_mode+set}" = set; then :
2819 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2821 USE_MAINTAINER_MODE
=no
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2825 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2826 if test $USE_MAINTAINER_MODE = yes; then
2827 MAINTAINER_MODE_TRUE
=
2828 MAINTAINER_MODE_FALSE
='#'
2830 MAINTAINER_MODE_TRUE
='#'
2831 MAINTAINER_MODE_FALSE
=
2834 MAINT
=$MAINTAINER_MODE_TRUE
2838 # Set the 'development' global.
2839 .
$srcdir/..
/bfd
/development.sh
2842 ac_cpp
='$CPP $CPPFLAGS'
2843 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2844 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2845 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2846 if test -n "$ac_tool_prefix"; then
2847 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2848 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2850 $as_echo_n "checking for $ac_word... " >&6; }
2851 if ${ac_cv_prog_CC+:} false
; then :
2852 $as_echo_n "(cached) " >&6
2854 if test -n "$CC"; then
2855 ac_cv_prog_CC
="$CC" # Let the user override the test.
2857 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2861 test -z "$as_dir" && as_dir
=.
2862 for ac_exec_ext
in '' $ac_executable_extensions; do
2863 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2864 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2875 if test -n "$CC"; then
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2877 $as_echo "$CC" >&6; }
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2880 $as_echo "no" >&6; }
2885 if test -z "$ac_cv_prog_CC"; then
2887 # Extract the first word of "gcc", so it can be a program name with args.
2888 set dummy gcc
; ac_word
=$2
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2890 $as_echo_n "checking for $ac_word... " >&6; }
2891 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2892 $as_echo_n "(cached) " >&6
2894 if test -n "$ac_ct_CC"; then
2895 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2897 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2901 test -z "$as_dir" && as_dir
=.
2902 for ac_exec_ext
in '' $ac_executable_extensions; do
2903 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2904 ac_cv_prog_ac_ct_CC
="gcc"
2905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2914 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2915 if test -n "$ac_ct_CC"; then
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2917 $as_echo "$ac_ct_CC" >&6; }
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920 $as_echo "no" >&6; }
2923 if test "x$ac_ct_CC" = x
; then
2926 case $cross_compiling:$ac_tool_warned in
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2929 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2930 ac_tool_warned
=yes ;;
2938 if test -z "$CC"; then
2939 if test -n "$ac_tool_prefix"; then
2940 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2941 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2943 $as_echo_n "checking for $ac_word... " >&6; }
2944 if ${ac_cv_prog_CC+:} false
; then :
2945 $as_echo_n "(cached) " >&6
2947 if test -n "$CC"; then
2948 ac_cv_prog_CC
="$CC" # Let the user override the test.
2950 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2954 test -z "$as_dir" && as_dir
=.
2955 for ac_exec_ext
in '' $ac_executable_extensions; do
2956 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2957 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 if test -n "$CC"; then
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2970 $as_echo "$CC" >&6; }
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973 $as_echo "no" >&6; }
2979 if test -z "$CC"; then
2980 # Extract the first word of "cc", so it can be a program name with args.
2981 set dummy cc
; ac_word
=$2
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2983 $as_echo_n "checking for $ac_word... " >&6; }
2984 if ${ac_cv_prog_CC+:} false
; then :
2985 $as_echo_n "(cached) " >&6
2987 if test -n "$CC"; then
2988 ac_cv_prog_CC
="$CC" # Let the user override the test.
2991 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2995 test -z "$as_dir" && as_dir
=.
2996 for ac_exec_ext
in '' $ac_executable_extensions; do
2997 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2998 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2999 ac_prog_rejected
=yes
3003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3010 if test $ac_prog_rejected = yes; then
3011 # We found a bogon in the path, so make sure we never use it.
3012 set dummy
$ac_cv_prog_CC
3014 if test $# != 0; then
3015 # We chose a different compiler from the bogus one.
3016 # However, it has the same basename, so the bogon will be chosen
3017 # first if we set CC to just the basename; use the full file name.
3019 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3025 if test -n "$CC"; then
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3027 $as_echo "$CC" >&6; }
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3030 $as_echo "no" >&6; }
3035 if test -z "$CC"; then
3036 if test -n "$ac_tool_prefix"; then
3037 for ac_prog
in cl.exe
3039 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3040 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3042 $as_echo_n "checking for $ac_word... " >&6; }
3043 if ${ac_cv_prog_CC+:} false
; then :
3044 $as_echo_n "(cached) " >&6
3046 if test -n "$CC"; then
3047 ac_cv_prog_CC
="$CC" # Let the user override the test.
3049 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3053 test -z "$as_dir" && as_dir
=.
3054 for ac_exec_ext
in '' $ac_executable_extensions; do
3055 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3056 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3067 if test -n "$CC"; then
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3069 $as_echo "$CC" >&6; }
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072 $as_echo "no" >&6; }
3076 test -n "$CC" && break
3079 if test -z "$CC"; then
3081 for ac_prog
in cl.exe
3083 # Extract the first word of "$ac_prog", so it can be a program name with args.
3084 set dummy
$ac_prog; ac_word
=$2
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3086 $as_echo_n "checking for $ac_word... " >&6; }
3087 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3088 $as_echo_n "(cached) " >&6
3090 if test -n "$ac_ct_CC"; then
3091 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3093 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3097 test -z "$as_dir" && as_dir
=.
3098 for ac_exec_ext
in '' $ac_executable_extensions; do
3099 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3100 ac_cv_prog_ac_ct_CC
="$ac_prog"
3101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3110 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3111 if test -n "$ac_ct_CC"; then
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3113 $as_echo "$ac_ct_CC" >&6; }
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116 $as_echo "no" >&6; }
3120 test -n "$ac_ct_CC" && break
3123 if test "x$ac_ct_CC" = x
; then
3126 case $cross_compiling:$ac_tool_warned in
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3130 ac_tool_warned
=yes ;;
3139 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3141 as_fn_error $?
"no acceptable C compiler found in \$PATH
3142 See \`config.log' for more details" "$LINENO" 5; }
3144 # Provide some information about the compiler.
3145 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3148 for ac_option
in --version -v -V -qversion; do
3149 { { ac_try
="$ac_compiler $ac_option >&5"
3151 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3154 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3155 $as_echo "$ac_try_echo"; } >&5
3156 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3158 if test -s conftest.err; then
3160 ... rest of stderr output deleted ...
3161 10q' conftest.err >conftest.er1
3162 cat conftest.er1 >&5
3164 rm -f conftest.er1 conftest.err
3165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3166 test $ac_status = 0; }
3169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3170 /* end confdefs.h. */
3180 ac_clean_files_save=$ac_clean_files
3181 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3182 # Try to create an executable without -o first, disregard a.out.
3183 # It will help us diagnose broken compilers, and finding out an intuition
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3186 $as_echo_n "checking whether the C compiler works... " >&6; }
3187 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3189 # The possible output files:
3190 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3193 for ac_file in $ac_files
3196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3197 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3202 if { { ac_try="$ac_link_default"
3204 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3205 *) ac_try_echo
=$ac_try;;
3207 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3208 $as_echo "$ac_try_echo"; } >&5
3209 (eval "$ac_link_default") 2>&5
3211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3212 test $ac_status = 0; }; then :
3213 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3214 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3215 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3216 # so that the user can short-circuit this test for compilers unknown to
3218 for ac_file
in $ac_files ''
3220 test -f "$ac_file" ||
continue
3222 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3225 # We found the default executable, but exeext='' is most
3229 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3231 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3233 # We set ac_cv_exeext here because the later test for it is not
3234 # safe: cross compilers may not add the suffix if given an `-o'
3235 # argument, so we may need to know it at that point already.
3236 # Even if this section looks crufty: it has the advantage of
3243 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3248 if test -z "$ac_file"; then :
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3250 $as_echo "no" >&6; }
3251 $as_echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.
$ac_ext >&5
3254 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3256 as_fn_error
77 "C compiler cannot create executables
3257 See \`config.log' for more details" "$LINENO" 5; }
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3260 $as_echo "yes" >&6; }
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3263 $as_echo_n "checking for C compiler default output file name... " >&6; }
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3265 $as_echo "$ac_file" >&6; }
3266 ac_exeext
=$ac_cv_exeext
3268 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3269 ac_clean_files
=$ac_clean_files_save
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3271 $as_echo_n "checking for suffix of executables... " >&6; }
3272 if { { ac_try
="$ac_link"
3274 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3275 *) ac_try_echo=$ac_try;;
3277 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3278 $as_echo "$ac_try_echo"; } >&5
3279 (eval "$ac_link") 2>&5
3281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3282 test $ac_status = 0; }; then :
3283 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3284 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3285 # work properly (i.e., refer to `conftest.exe'), while it won't with
3287 for ac_file
in conftest.exe conftest conftest.
*; do
3288 test -f "$ac_file" ||
continue
3290 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3291 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3297 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3299 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3300 See \`config.log' for more details" "$LINENO" 5; }
3302 rm -f conftest conftest
$ac_cv_exeext
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3304 $as_echo "$ac_cv_exeext" >&6; }
3306 rm -f conftest.
$ac_ext
3307 EXEEXT
=$ac_cv_exeext
3309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3310 /* end confdefs.h. */
3315 FILE *f = fopen ("conftest.out", "w");
3316 return ferror (f) || fclose (f) != 0;
3322 ac_clean_files
="$ac_clean_files conftest.out"
3323 # Check that the compiler produces executables we can run. If not, either
3324 # the compiler is broken, or we cross compile.
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3326 $as_echo_n "checking whether we are cross compiling... " >&6; }
3327 if test "$cross_compiling" != yes; then
3328 { { ac_try
="$ac_link"
3330 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3334 $as_echo "$ac_try_echo"; } >&5
3335 (eval "$ac_link") 2>&5
3337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3338 test $ac_status = 0; }
3339 if { ac_try='./conftest$ac_cv_exeext'
3340 { { case "(($ac_try" in
3341 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3342 *) ac_try_echo
=$ac_try;;
3344 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3345 $as_echo "$ac_try_echo"; } >&5
3346 (eval "$ac_try") 2>&5
3348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3349 test $ac_status = 0; }; }; then
3352 if test "$cross_compiling" = maybe
; then
3355 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3357 as_fn_error $?
"cannot run C compiled programs.
3358 If you meant to cross compile, use \`--host'.
3359 See \`config.log' for more details" "$LINENO" 5; }
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3364 $as_echo "$cross_compiling" >&6; }
3366 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3367 ac_clean_files
=$ac_clean_files_save
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3369 $as_echo_n "checking for suffix of object files... " >&6; }
3370 if ${ac_cv_objext+:} false
; then :
3371 $as_echo_n "(cached) " >&6
3373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3374 /* end confdefs.h. */
3384 rm -f conftest.o conftest.obj
3385 if { { ac_try
="$ac_compile"
3387 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3391 $as_echo "$ac_try_echo"; } >&5
3392 (eval "$ac_compile") 2>&5
3394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3395 test $ac_status = 0; }; then :
3396 for ac_file in conftest.o conftest.obj conftest.*; do
3397 test -f "$ac_file" || continue;
3399 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3400 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3405 $as_echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3408 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3410 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3411 See \
`config.log' for more details" "$LINENO" 5; }
3413 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3416 $as_echo "$ac_cv_objext" >&6; }
3417 OBJEXT=$ac_cv_objext
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3420 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3421 if ${ac_cv_c_compiler_gnu+:} false; then :
3422 $as_echo_n "(cached) " >&6
3424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3425 /* end confdefs.h. */
3438 if ac_fn_c_try_compile "$LINENO"; then :
3443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3444 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3448 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3449 if test $ac_compiler_gnu = yes; then
3454 ac_test_CFLAGS=${CFLAGS+set}
3455 ac_save_CFLAGS=$CFLAGS
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3457 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3458 if ${ac_cv_prog_cc_g+:} false; then :
3459 $as_echo_n "(cached) " >&6
3461 ac_save_c_werror_flag=$ac_c_werror_flag
3462 ac_c_werror_flag=yes
3465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3466 /* end confdefs.h. */
3476 if ac_fn_c_try_compile "$LINENO"; then :
3480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 /* end confdefs.h. */
3491 if ac_fn_c_try_compile "$LINENO"; then :
3494 ac_c_werror_flag=$ac_save_c_werror_flag
3496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3497 /* end confdefs.h. */
3507 if ac_fn_c_try_compile "$LINENO"; then :
3510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3515 ac_c_werror_flag=$ac_save_c_werror_flag
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3518 $as_echo "$ac_cv_prog_cc_g" >&6; }
3519 if test "$ac_test_CFLAGS" = set; then
3520 CFLAGS=$ac_save_CFLAGS
3521 elif test $ac_cv_prog_cc_g = yes; then
3522 if test "$GCC" = yes; then
3528 if test "$GCC" = yes; then
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3535 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3536 if ${ac_cv_prog_cc_c89+:} false; then :
3537 $as_echo_n "(cached) " >&6
3539 ac_cv_prog_cc_c89=no
3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h. */
3546 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3547 struct buf { int x; };
3548 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3549 static char *e (p, i)
3555 static char *f (char * (*g) (char **, int), char **p, ...)
3560 s = g (p, va_arg (v,int));
3565 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3566 function prototypes and stuff, but not '\xHH' hex character constants.
3567 These don't provoke an error unfortunately, instead are silently treated
3568 as 'x'. The following induces an error, until -std is added to get
3569 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3570 array size at least. It's necessary to write '\x00'==0 to get something
3571 that's true only with -std. */
3572 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3574 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3575 inside strings and character constants. */
3577 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3579 int test (int i, double x);
3580 struct s1 {int (*f) (int a);};
3581 struct s2 {int (*f) (double a);};
3582 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3588 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3593 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3594 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3596 CC="$ac_save_CC $ac_arg"
3597 if ac_fn_c_try_compile "$LINENO"; then :
3598 ac_cv_prog_cc_c89=$ac_arg
3600 rm -f core conftest.err conftest.$ac_objext
3601 test "x$ac_cv_prog_cc_c89" != "xno" && break
3603 rm -f conftest.$ac_ext
3608 case "x$ac_cv_prog_cc_c89" in
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3611 $as_echo "none needed" >&6; } ;;
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3614 $as_echo "unsupported" >&6; } ;;
3616 CC="$CC $ac_cv_prog_cc_c89"
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3618 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3620 if test "x$ac_cv_prog_cc_c89" != xno; then :
3625 ac_cpp='$CPP $CPPFLAGS'
3626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3631 ac_cpp='$CXXCPP $CPPFLAGS'
3632 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3633 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3634 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3635 if test -z "$CXX"; then
3636 if test -n "$CCC"; then
3639 if test -n "$ac_tool_prefix"; then
3640 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3642 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3643 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3645 $as_echo_n "checking for $ac_word... " >&6; }
3646 if ${ac_cv_prog_CXX+:} false; then :
3647 $as_echo_n "(cached) " >&6
3649 if test -n "$CXX"; then
3650 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656 test -z "$as_dir" && as_dir=.
3657 for ac_exec_ext in '' $ac_executable_extensions; do
3658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3659 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3670 if test -n "$CXX"; then
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3672 $as_echo "$CXX" >&6; }
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3675 $as_echo "no" >&6; }
3679 test -n "$CXX" && break
3682 if test -z "$CXX"; then
3684 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3686 # Extract the first word of "$ac_prog", so it can be a program name with args.
3687 set dummy $ac_prog; ac_word=$2
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3689 $as_echo_n "checking for $ac_word... " >&6; }
3690 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3691 $as_echo_n "(cached) " >&6
3693 if test -n "$ac_ct_CXX"; then
3694 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 test -z "$as_dir" && as_dir=.
3701 for ac_exec_ext in '' $ac_executable_extensions; do
3702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3703 ac_cv_prog_ac_ct_CXX="$ac_prog"
3704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3713 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3714 if test -n "$ac_ct_CXX"; then
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3716 $as_echo "$ac_ct_CXX" >&6; }
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3719 $as_echo "no" >&6; }
3723 test -n "$ac_ct_CXX" && break
3726 if test "x$ac_ct_CXX" = x; then
3729 case $cross_compiling:$ac_tool_warned in
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3733 ac_tool_warned=yes ;;
3741 # Provide some information about the compiler.
3742 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3745 for ac_option in --version -v -V -qversion; do
3746 { { ac_try="$ac_compiler $ac_option >&5"
3748 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3749 *) ac_try_echo
=$ac_try;;
3751 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3752 $as_echo "$ac_try_echo"; } >&5
3753 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3755 if test -s conftest.err
; then
3757 ... rest of stderr output deleted ...
3758 10q' conftest.err
>conftest.er1
3759 cat conftest.er1
>&5
3761 rm -f conftest.er1 conftest.err
3762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3763 test $ac_status = 0; }
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3767 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3768 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3769 $as_echo_n "(cached) " >&6
3771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3772 /* end confdefs.h. */
3785 if ac_fn_cxx_try_compile
"$LINENO"; then :
3790 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3791 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3795 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3796 if test $ac_compiler_gnu = yes; then
3801 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3802 ac_save_CXXFLAGS
=$CXXFLAGS
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3804 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3805 if ${ac_cv_prog_cxx_g+:} false
; then :
3806 $as_echo_n "(cached) " >&6
3808 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3809 ac_cxx_werror_flag
=yes
3812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3813 /* end confdefs.h. */
3823 if ac_fn_cxx_try_compile
"$LINENO"; then :
3824 ac_cv_prog_cxx_g
=yes
3827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3828 /* end confdefs.h. */
3838 if ac_fn_cxx_try_compile
"$LINENO"; then :
3841 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3844 /* end confdefs.h. */
3854 if ac_fn_cxx_try_compile
"$LINENO"; then :
3855 ac_cv_prog_cxx_g
=yes
3857 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3859 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3861 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3862 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3865 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3866 if test "$ac_test_CXXFLAGS" = set; then
3867 CXXFLAGS
=$ac_save_CXXFLAGS
3868 elif test $ac_cv_prog_cxx_g = yes; then
3869 if test "$GXX" = yes; then
3875 if test "$GXX" = yes; then
3882 ac_cpp
='$CPP $CPPFLAGS'
3883 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3884 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3885 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3890 ac_cpp
='$CPP $CPPFLAGS'
3891 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3895 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3896 # On Suns, sometimes $CPP names a directory.
3897 if test -n "$CPP" && test -d "$CPP"; then
3900 if test -z "$CPP"; then
3901 if ${ac_cv_prog_CPP+:} false
; then :
3902 $as_echo_n "(cached) " >&6
3904 # Double quotes because CPP needs to be expanded
3905 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3908 for ac_c_preproc_warn_flag
in '' yes
3910 # Use a header file that comes with gcc, so configuring glibc
3911 # with a fresh cross-compiler works.
3912 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3913 # <limits.h> exists even on freestanding compilers.
3914 # On the NeXT, cc -E runs the code through the compiler's parser,
3915 # not just through cpp. "Syntax error" is here to catch this case.
3916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3917 /* end confdefs.h. */
3919 # include <limits.h>
3921 # include <assert.h>
3925 if ac_fn_c_try_cpp
"$LINENO"; then :
3928 # Broken: fails on valid input.
3931 rm -f conftest.err conftest.i conftest.
$ac_ext
3933 # OK, works on sane cases. Now check whether nonexistent headers
3934 # can be detected and how.
3935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3937 #include <ac_nonexistent.h>
3939 if ac_fn_c_try_cpp
"$LINENO"; then :
3940 # Broken: success on invalid input.
3943 # Passes both tests.
3947 rm -f conftest.err conftest.i conftest.
$ac_ext
3950 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3951 rm -f conftest.i conftest.err conftest.
$ac_ext
3952 if $ac_preproc_ok; then :
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3965 $as_echo "$CPP" >&6; }
3967 for ac_c_preproc_warn_flag
in '' yes
3969 # Use a header file that comes with gcc, so configuring glibc
3970 # with a fresh cross-compiler works.
3971 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3972 # <limits.h> exists even on freestanding compilers.
3973 # On the NeXT, cc -E runs the code through the compiler's parser,
3974 # not just through cpp. "Syntax error" is here to catch this case.
3975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3976 /* end confdefs.h. */
3978 # include <limits.h>
3980 # include <assert.h>
3984 if ac_fn_c_try_cpp
"$LINENO"; then :
3987 # Broken: fails on valid input.
3990 rm -f conftest.err conftest.i conftest.
$ac_ext
3992 # OK, works on sane cases. Now check whether nonexistent headers
3993 # can be detected and how.
3994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h. */
3996 #include <ac_nonexistent.h>
3998 if ac_fn_c_try_cpp
"$LINENO"; then :
3999 # Broken: success on invalid input.
4002 # Passes both tests.
4006 rm -f conftest.err conftest.i conftest.
$ac_ext
4009 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4010 rm -f conftest.i conftest.err conftest.
$ac_ext
4011 if $ac_preproc_ok; then :
4014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4016 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4017 See \`config.log' for more details" "$LINENO" 5; }
4021 ac_cpp
='$CPP $CPPFLAGS'
4022 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4023 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4024 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4028 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4029 if ${ac_cv_path_GREP+:} false
; then :
4030 $as_echo_n "(cached) " >&6
4032 if test -z "$GREP"; then
4033 ac_path_GREP_found
=false
4034 # Loop through the user's path and test for each of PROGNAME-LIST
4035 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4036 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4039 test -z "$as_dir" && as_dir
=.
4040 for ac_prog
in grep ggrep
; do
4041 for ac_exec_ext
in '' $ac_executable_extensions; do
4042 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4043 as_fn_executable_p
"$ac_path_GREP" ||
continue
4044 # Check for GNU ac_path_GREP and select it if it is found.
4045 # Check for GNU $ac_path_GREP
4046 case `"$ac_path_GREP" --version 2>&1` in
4048 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4051 $as_echo_n 0123456789 >"conftest.in"
4054 cat "conftest.in" "conftest.in" >"conftest.tmp"
4055 mv "conftest.tmp" "conftest.in"
4056 cp "conftest.in" "conftest.nl"
4057 $as_echo 'GREP' >> "conftest.nl"
4058 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4059 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4060 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4061 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4062 # Best one so far, save it but keep looking for a better one
4063 ac_cv_path_GREP
="$ac_path_GREP"
4064 ac_path_GREP_max
=$ac_count
4066 # 10*(2^10) chars as input seems more than enough
4067 test $ac_count -gt 10 && break
4069 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4072 $ac_path_GREP_found && break 3
4077 if test -z "$ac_cv_path_GREP"; then
4078 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4081 ac_cv_path_GREP
=$GREP
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4086 $as_echo "$ac_cv_path_GREP" >&6; }
4087 GREP
="$ac_cv_path_GREP"
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4091 $as_echo_n "checking for egrep... " >&6; }
4092 if ${ac_cv_path_EGREP+:} false
; then :
4093 $as_echo_n "(cached) " >&6
4095 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4096 then ac_cv_path_EGREP
="$GREP -E"
4098 if test -z "$EGREP"; then
4099 ac_path_EGREP_found
=false
4100 # Loop through the user's path and test for each of PROGNAME-LIST
4101 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4102 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4105 test -z "$as_dir" && as_dir
=.
4106 for ac_prog
in egrep; do
4107 for ac_exec_ext
in '' $ac_executable_extensions; do
4108 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4109 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4110 # Check for GNU ac_path_EGREP and select it if it is found.
4111 # Check for GNU $ac_path_EGREP
4112 case `"$ac_path_EGREP" --version 2>&1` in
4114 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4117 $as_echo_n 0123456789 >"conftest.in"
4120 cat "conftest.in" "conftest.in" >"conftest.tmp"
4121 mv "conftest.tmp" "conftest.in"
4122 cp "conftest.in" "conftest.nl"
4123 $as_echo 'EGREP' >> "conftest.nl"
4124 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4125 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4126 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4127 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4128 # Best one so far, save it but keep looking for a better one
4129 ac_cv_path_EGREP
="$ac_path_EGREP"
4130 ac_path_EGREP_max
=$ac_count
4132 # 10*(2^10) chars as input seems more than enough
4133 test $ac_count -gt 10 && break
4135 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4138 $ac_path_EGREP_found && break 3
4143 if test -z "$ac_cv_path_EGREP"; then
4144 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4147 ac_cv_path_EGREP
=$EGREP
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4153 $as_echo "$ac_cv_path_EGREP" >&6; }
4154 EGREP
="$ac_cv_path_EGREP"
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4158 $as_echo_n "checking for ANSI C header files... " >&6; }
4159 if ${ac_cv_header_stdc+:} false
; then :
4160 $as_echo_n "(cached) " >&6
4162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h. */
4177 if ac_fn_c_try_compile
"$LINENO"; then :
4178 ac_cv_header_stdc
=yes
4180 ac_cv_header_stdc
=no
4182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4184 if test $ac_cv_header_stdc = yes; then
4185 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h. */
4191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4192 $EGREP "memchr" >/dev
/null
2>&1; then :
4195 ac_cv_header_stdc
=no
4201 if test $ac_cv_header_stdc = yes; then
4202 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4204 /* end confdefs.h. */
4208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4209 $EGREP "free" >/dev
/null
2>&1; then :
4212 ac_cv_header_stdc
=no
4218 if test $ac_cv_header_stdc = yes; then
4219 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4220 if test "$cross_compiling" = yes; then :
4223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h. */
4227 #if ((' ' & 0x0FF) == 0x020)
4228 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4229 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4231 # define ISLOWER(c) \
4232 (('a' <= (c) && (c) <= 'i') \
4233 || ('j' <= (c) && (c) <= 'r') \
4234 || ('s' <= (c) && (c) <= 'z'))
4235 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4238 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4243 for (i = 0; i < 256; i++)
4244 if (XOR (islower (i), ISLOWER (i))
4245 || toupper (i) != TOUPPER (i))
4250 if ac_fn_c_try_run
"$LINENO"; then :
4253 ac_cv_header_stdc
=no
4255 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4256 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4262 $as_echo "$ac_cv_header_stdc" >&6; }
4263 if test $ac_cv_header_stdc = yes; then
4265 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4269 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4270 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4271 inttypes.h stdint.h unistd.h
4273 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4274 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4276 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4277 cat >>confdefs.h
<<_ACEOF
4278 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4287 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4288 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4295 if test "$MINIX" = yes; then
4297 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4300 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4303 $as_echo "#define _MINIX 1" >>confdefs.h
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4309 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4310 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4311 $as_echo_n "(cached) " >&6
4313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4314 /* end confdefs.h. */
4316 # define __EXTENSIONS__ 1
4317 $ac_includes_default
4326 if ac_fn_c_try_compile
"$LINENO"; then :
4327 ac_cv_safe_to_define___extensions__
=yes
4329 ac_cv_safe_to_define___extensions__
=no
4331 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4334 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4335 test $ac_cv_safe_to_define___extensions__ = yes &&
4336 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4338 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4340 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4342 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4344 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4348 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4349 if test -f "$ac_dir/install-sh"; then
4351 ac_install_sh
="$ac_aux_dir/install-sh -c"
4353 elif test -f "$ac_dir/install.sh"; then
4355 ac_install_sh
="$ac_aux_dir/install.sh -c"
4357 elif test -f "$ac_dir/shtool"; then
4359 ac_install_sh
="$ac_aux_dir/shtool install -c"
4363 if test -z "$ac_aux_dir"; then
4364 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4367 # These three variables are undocumented and unsupported,
4368 # and are intended to be withdrawn in a future Autoconf release.
4369 # They can cause serious problems if a builder's source tree is in a directory
4370 # whose full name contains unusual characters.
4371 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4372 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4373 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4376 # Make sure we can run config.sub.
4377 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4378 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4381 $as_echo_n "checking build system type... " >&6; }
4382 if ${ac_cv_build+:} false
; then :
4383 $as_echo_n "(cached) " >&6
4385 ac_build_alias
=$build_alias
4386 test "x$ac_build_alias" = x
&&
4387 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4388 test "x$ac_build_alias" = x
&&
4389 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4390 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4391 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4395 $as_echo "$ac_cv_build" >&6; }
4396 case $ac_cv_build in
4398 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4401 ac_save_IFS
=$IFS; IFS
='-'
4407 # Remember, the first character of IFS is used to create $*,
4408 # except with old shells:
4411 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4415 $as_echo_n "checking host system type... " >&6; }
4416 if ${ac_cv_host+:} false
; then :
4417 $as_echo_n "(cached) " >&6
4419 if test "x$host_alias" = x
; then
4420 ac_cv_host
=$ac_cv_build
4422 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4423 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4428 $as_echo "$ac_cv_host" >&6; }
4431 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4434 ac_save_IFS
=$IFS; IFS
='-'
4440 # Remember, the first character of IFS is used to create $*,
4441 # except with old shells:
4444 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4448 $as_echo_n "checking target system type... " >&6; }
4449 if ${ac_cv_target+:} false
; then :
4450 $as_echo_n "(cached) " >&6
4452 if test "x$target_alias" = x
; then
4453 ac_cv_target
=$ac_cv_host
4455 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4456 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4461 $as_echo "$ac_cv_target" >&6; }
4462 case $ac_cv_target in
4464 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4466 target
=$ac_cv_target
4467 ac_save_IFS
=$IFS; IFS
='-'
4473 # Remember, the first character of IFS is used to create $*,
4474 # except with old shells:
4477 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4480 # The aliases save the names the user supplied, while $host etc.
4481 # will get canonicalized.
4482 test -n "$target_alias" &&
4483 test "$program_prefix$program_suffix$program_transform_name" = \
4485 program_prefix
=${target_alias}-
4487 # The tests for host and target for $enable_largefile require
4492 # As the $enable_largefile decision depends on --enable-plugins we must set it
4493 # even in directories otherwise not depending on the $plugins option.
4497 for ac_header
in dlfcn.h
4499 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4501 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
4502 cat >>confdefs.h
<<_ACEOF
4503 #define HAVE_DLFCN_H 1
4510 for ac_header
in windows.h
4512 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4514 if test "x$ac_cv_header_windows_h" = xyes
; then :
4515 cat >>confdefs.h
<<_ACEOF
4516 #define HAVE_WINDOWS_H 1
4524 # Check whether --enable-plugins was given.
4525 if test "${enable_plugins+set}" = set; then :
4526 enableval
=$enable_plugins; case "${enableval}" in
4529 if test "$maybe_plugins" != "yes" ; then
4530 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4534 plugins
=$maybe_plugins
4538 if test "$plugins" = "yes"; then
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4540 $as_echo_n "checking for library containing dlsym... " >&6; }
4541 if ${ac_cv_search_dlsym+:} false
; then :
4542 $as_echo_n "(cached) " >&6
4544 ac_func_search_save_LIBS
=$LIBS
4545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4546 /* end confdefs.h. */
4548 /* Override any GCC internal prototype to avoid an error.
4549 Use char because int might match the return type of a GCC
4550 builtin and then its argument prototype would still apply. */
4563 for ac_lib
in '' dl
; do
4564 if test -z "$ac_lib"; then
4565 ac_res
="none required"
4568 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4570 if ac_fn_c_try_link
"$LINENO"; then :
4571 ac_cv_search_dlsym
=$ac_res
4573 rm -f core conftest.err conftest.
$ac_objext \
4575 if ${ac_cv_search_dlsym+:} false
; then :
4579 if ${ac_cv_search_dlsym+:} false
; then :
4582 ac_cv_search_dlsym
=no
4585 LIBS
=$ac_func_search_save_LIBS
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4588 $as_echo "$ac_cv_search_dlsym" >&6; }
4589 ac_res
=$ac_cv_search_dlsym
4590 if test "$ac_res" != no
; then :
4591 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4599 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4600 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4601 # are mutually exclusive; and without procfs support, the bfd/ elf module
4602 # cannot provide certain routines such as elfcore_write_prpsinfo
4603 # or elfcore_write_prstatus. So unless the user explicitly requested
4604 # large-file support through the --enable-largefile switch, disable
4605 # large-file support in favor of procfs support.
4606 test "${target}" = "${host}" -a "x$plugins" = xno \
4607 && : ${enable_largefile="no"}
4611 # Check whether --enable-largefile was given.
4612 if test "${enable_largefile+set}" = set; then :
4613 enableval
=$enable_largefile;
4616 if test "$enable_largefile" != no
; then
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4619 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4620 if ${ac_cv_sys_largefile_CC+:} false
; then :
4621 $as_echo_n "(cached) " >&6
4623 ac_cv_sys_largefile_CC
=no
4624 if test "$GCC" != yes; then
4627 # IRIX 6.2 and later do not support large files by default,
4628 # so use the C compiler's -n32 option if that helps.
4629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4630 /* end confdefs.h. */
4631 #include <sys/types.h>
4632 /* Check that off_t can represent 2**63 - 1 correctly.
4633 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4634 since some C++ compilers masquerading as C compilers
4635 incorrectly reject 9223372036854775807. */
4636 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4637 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4638 && LARGE_OFF_T % 2147483647 == 1)
4648 if ac_fn_c_try_compile
"$LINENO"; then :
4651 rm -f core conftest.err conftest.
$ac_objext
4653 if ac_fn_c_try_compile
"$LINENO"; then :
4654 ac_cv_sys_largefile_CC
=' -n32'; break
4656 rm -f core conftest.err conftest.
$ac_objext
4660 rm -f conftest.
$ac_ext
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4664 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4665 if test "$ac_cv_sys_largefile_CC" != no
; then
4666 CC
=$CC$ac_cv_sys_largefile_CC
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4670 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4671 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4672 $as_echo_n "(cached) " >&6
4675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4676 /* end confdefs.h. */
4677 #include <sys/types.h>
4678 /* Check that off_t can represent 2**63 - 1 correctly.
4679 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4680 since some C++ compilers masquerading as C compilers
4681 incorrectly reject 9223372036854775807. */
4682 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4683 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4684 && LARGE_OFF_T % 2147483647 == 1)
4694 if ac_fn_c_try_compile
"$LINENO"; then :
4695 ac_cv_sys_file_offset_bits
=no
; break
4697 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4699 /* end confdefs.h. */
4700 #define _FILE_OFFSET_BITS 64
4701 #include <sys/types.h>
4702 /* Check that off_t can represent 2**63 - 1 correctly.
4703 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4704 since some C++ compilers masquerading as C compilers
4705 incorrectly reject 9223372036854775807. */
4706 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4707 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4708 && LARGE_OFF_T % 2147483647 == 1)
4718 if ac_fn_c_try_compile
"$LINENO"; then :
4719 ac_cv_sys_file_offset_bits
=64; break
4721 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4722 ac_cv_sys_file_offset_bits
=unknown
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4727 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4728 case $ac_cv_sys_file_offset_bits in #(
4731 cat >>confdefs.h
<<_ACEOF
4732 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4737 if test $ac_cv_sys_file_offset_bits = unknown
; then
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4739 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4740 if ${ac_cv_sys_large_files+:} false
; then :
4741 $as_echo_n "(cached) " >&6
4744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4745 /* end confdefs.h. */
4746 #include <sys/types.h>
4747 /* Check that off_t can represent 2**63 - 1 correctly.
4748 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4749 since some C++ compilers masquerading as C compilers
4750 incorrectly reject 9223372036854775807. */
4751 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4752 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4753 && LARGE_OFF_T % 2147483647 == 1)
4763 if ac_fn_c_try_compile
"$LINENO"; then :
4764 ac_cv_sys_large_files
=no
; break
4766 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4768 /* end confdefs.h. */
4769 #define _LARGE_FILES 1
4770 #include <sys/types.h>
4771 /* Check that off_t can represent 2**63 - 1 correctly.
4772 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4773 since some C++ compilers masquerading as C compilers
4774 incorrectly reject 9223372036854775807. */
4775 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4776 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4777 && LARGE_OFF_T % 2147483647 == 1)
4787 if ac_fn_c_try_compile
"$LINENO"; then :
4788 ac_cv_sys_large_files
=1; break
4790 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4791 ac_cv_sys_large_files
=unknown
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4796 $as_echo "$ac_cv_sys_large_files" >&6; }
4797 case $ac_cv_sys_large_files in #(
4800 cat >>confdefs.h
<<_ACEOF
4801 #define _LARGE_FILES $ac_cv_sys_large_files
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4816 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4817 if ${am_cv_prog_cc_stdc+:} false
; then :
4818 $as_echo_n "(cached) " >&6
4820 am_cv_prog_cc_stdc
=no
4822 # Don't try gcc -ansi; that turns off useful extensions and
4823 # breaks some systems' header files.
4824 # AIX -qlanglvl=ansi
4825 # Ultrix and OSF/1 -std1
4826 # HP-UX 10.20 and later -Ae
4827 # HP-UX older versions -Aa -D_HPUX_SOURCE
4828 # SVR4 -Xc -D__EXTENSIONS__
4829 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4831 CC
="$ac_save_CC $ac_arg"
4832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4833 /* end confdefs.h. */
4836 #include <sys/types.h>
4837 #include <sys/stat.h>
4838 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4839 struct buf { int x; };
4840 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4841 static char *e (p, i)
4847 static char *f (char * (*g) (char **, int), char **p, ...)
4852 s = g (p, va_arg (v,int));
4856 int test (int i, double x);
4857 struct s1 {int (*f) (int a);};
4858 struct s2 {int (*f) (double a);};
4859 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4867 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4873 if ac_fn_c_try_compile
"$LINENO"; then :
4874 am_cv_prog_cc_stdc
="$ac_arg"; break
4876 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4882 if test -z "$am_cv_prog_cc_stdc"; then
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4884 $as_echo "none needed" >&6; }
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4887 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4889 case "x$am_cv_prog_cc_stdc" in
4891 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4894 # Expand $ac_aux_dir to an absolute path.
4895 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
4897 if test x
"${install_sh+set}" != xset
; then
4900 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
4902 install_sh
="\${SHELL} $am_aux_dir/install-sh"
4906 # Installed binaries are usually stripped using 'strip' when the user
4907 # run "make install-strip". However 'strip' might not be the right
4908 # tool to use in cross-compilation environments, therefore Automake
4909 # will honor the 'STRIP' environment variable to overrule this program.
4910 if test "$cross_compiling" != no
; then
4911 if test -n "$ac_tool_prefix"; then
4912 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4913 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4915 $as_echo_n "checking for $ac_word... " >&6; }
4916 if ${ac_cv_prog_STRIP+:} false
; then :
4917 $as_echo_n "(cached) " >&6
4919 if test -n "$STRIP"; then
4920 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4922 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4926 test -z "$as_dir" && as_dir
=.
4927 for ac_exec_ext
in '' $ac_executable_extensions; do
4928 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4929 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4939 STRIP
=$ac_cv_prog_STRIP
4940 if test -n "$STRIP"; then
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4942 $as_echo "$STRIP" >&6; }
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945 $as_echo "no" >&6; }
4950 if test -z "$ac_cv_prog_STRIP"; then
4952 # Extract the first word of "strip", so it can be a program name with args.
4953 set dummy strip
; ac_word
=$2
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4955 $as_echo_n "checking for $ac_word... " >&6; }
4956 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
4957 $as_echo_n "(cached) " >&6
4959 if test -n "$ac_ct_STRIP"; then
4960 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
4962 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4966 test -z "$as_dir" && as_dir
=.
4967 for ac_exec_ext
in '' $ac_executable_extensions; do
4968 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4969 ac_cv_prog_ac_ct_STRIP
="strip"
4970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4979 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4980 if test -n "$ac_ct_STRIP"; then
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4982 $as_echo "$ac_ct_STRIP" >&6; }
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4985 $as_echo "no" >&6; }
4988 if test "x$ac_ct_STRIP" = x
; then
4991 case $cross_compiling:$ac_tool_warned in
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4995 ac_tool_warned
=yes ;;
5000 STRIP
="$ac_cv_prog_STRIP"
5004 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
5008 for ac_dir
in ..
"$srcdir"/..
; do
5009 if test -f "$ac_dir/install-sh"; then
5011 ac_install_sh
="$ac_aux_dir/install-sh -c"
5013 elif test -f "$ac_dir/install.sh"; then
5015 ac_install_sh
="$ac_aux_dir/install.sh -c"
5017 elif test -f "$ac_dir/shtool"; then
5019 ac_install_sh
="$ac_aux_dir/shtool install -c"
5023 if test -z "$ac_aux_dir"; then
5024 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
5027 # These three variables are undocumented and unsupported,
5028 # and are intended to be withdrawn in a future Autoconf release.
5029 # They can cause serious problems if a builder's source tree is in a directory
5030 # whose full name contains unusual characters.
5031 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5032 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5033 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5037 test "$program_prefix" != NONE
&&
5038 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
5039 # Use a double $ so make ignores it.
5040 test "$program_suffix" != NONE
&&
5041 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
5042 # Double any \ or $.
5043 # By default was `s,x,x', remove it if useless.
5044 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
5045 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
5048 # We require a C++11 compiler. Check if one is available, and if
5049 # necessary, set CXX_DIALECT to some -std=xxx switch.
5051 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5053 ac_cpp
='$CXXCPP $CPPFLAGS'
5054 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5055 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5056 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5060 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5061 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5062 $as_echo_n "(cached) " >&6
5064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5065 /* end confdefs.h. */
5068 // If the compiler admits that it is not ready for C++11, why torture it?
5069 // Hopefully, this will speed up the test.
5073 #error "This is not a C++ compiler"
5075 #elif __cplusplus < 201103L
5077 #error "This is not a C++11 compiler"
5084 namespace test_static_assert
5087 template <typename T>
5090 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5095 namespace test_final_override
5103 struct Derived : public Base
5105 virtual void f() override {}
5110 namespace test_double_right_angle_brackets
5113 template < typename T >
5116 typedef check<void> single_type;
5117 typedef check<check<void>> double_type;
5118 typedef check<check<check<void>>> triple_type;
5119 typedef check<check<check<check<void>>>> quadruple_type;
5123 namespace test_decltype
5136 namespace test_type_deduction
5139 template < typename T1, typename T2 >
5142 static const bool value = false;
5145 template < typename T >
5146 struct is_same<T, T>
5148 static const bool value = true;
5151 template < typename T1, typename T2 >
5153 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5159 test(const int c, volatile int v)
5161 static_assert(is_same<int, decltype(0)>::value == true, "");
5162 static_assert(is_same<int, decltype(c)>::value == false, "");
5163 static_assert(is_same<int, decltype(v)>::value == false, "");
5166 auto sumi = ac + av + 'x';
5167 auto sumf = ac + av + 1.0;
5168 static_assert(is_same<int, decltype(ac)>::value == true, "");
5169 static_assert(is_same<int, decltype(av)>::value == true, "");
5170 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5171 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5172 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5173 return (sumf > 0.0) ? sumi : add(c, v);
5178 namespace test_noexcept
5181 int f() { return 0; }
5182 int g() noexcept { return 0; }
5184 static_assert(noexcept(f()) == false, "");
5185 static_assert(noexcept(g()) == true, "");
5189 namespace test_constexpr
5192 template < typename CharT >
5193 unsigned long constexpr
5194 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5196 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5199 template < typename CharT >
5200 unsigned long constexpr
5201 strlen_c(const CharT *const s) noexcept
5203 return strlen_c_r(s, 0UL);
5206 static_assert(strlen_c("") == 0UL, "");
5207 static_assert(strlen_c("1") == 1UL, "");
5208 static_assert(strlen_c("example") == 7UL, "");
5209 static_assert(strlen_c("another\0example") == 7UL, "");
5213 namespace test_rvalue_references
5219 static constexpr int value = N;
5222 answer<1> f(int&) { return answer<1>(); }
5223 answer<2> f(const int&) { return answer<2>(); }
5224 answer<3> f(int&&) { return answer<3>(); }
5231 static_assert(decltype(f(i))::value == 1, "");
5232 static_assert(decltype(f(c))::value == 2, "");
5233 static_assert(decltype(f(0))::value == 3, "");
5238 namespace test_uniform_initialization
5243 static const int zero {};
5244 static const int one {1};
5247 static_assert(test::zero == 0, "");
5248 static_assert(test::one == 1, "");
5252 namespace test_lambdas
5258 auto lambda1 = [](){};
5259 auto lambda2 = lambda1;
5267 auto a = [](int i, int j){ return i + j; }(1, 2);
5268 auto b = []() -> int { return '0'; }();
5269 auto c = [=](){ return a + b; }();
5270 auto d = [&](){ return c; }();
5271 auto e = [a, &b](int x) mutable {
5272 const auto identity = [](int y){ return y; };
5273 for (auto i = 0; i < a; ++i)
5275 return x + identity(a + b);
5277 return a + b + c + d + e;
5283 const auto nullary = [](){ return 0; };
5284 const auto unary = [](int x){ return x; };
5285 using nullary_t = decltype(nullary);
5286 using unary_t = decltype(unary);
5287 const auto higher1st = [](nullary_t f){ return f(); };
5288 const auto higher2nd = [unary](nullary_t f1){
5289 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5291 return higher1st(nullary) + higher2nd(nullary)(unary);
5296 namespace test_variadic_templates
5302 template <int N0, int... N1toN>
5303 struct sum<N0, N1toN...>
5305 static constexpr auto value = N0 + sum<N1toN...>::value;
5311 static constexpr auto value = 0;
5314 static_assert(sum<>::value == 0, "");
5315 static_assert(sum<1>::value == 1, "");
5316 static_assert(sum<23>::value == 23, "");
5317 static_assert(sum<1, 2>::value == 3, "");
5318 static_assert(sum<5, 5, 11>::value == 21, "");
5319 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5323 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5324 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5326 namespace test_template_alias_sfinae
5331 template<typename T>
5332 using member = typename T::member_type;
5334 template<typename T>
5337 template<typename T>
5338 void func(member<T>*) {}
5342 void test() { func<foo>(0); }
5346 } // namespace cxx11
5348 #endif // __cplusplus >= 201103L
5353 if ac_fn_cxx_try_compile
"$LINENO"; then :
5354 ax_cv_cxx_compile_cxx11
=yes
5356 ax_cv_cxx_compile_cxx11
=no
5358 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5361 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5362 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
5366 if test x
$ac_success = xno
; then
5367 for alternative
in ${ax_cxx_compile_alternatives}; do
5368 switch
="-std=gnu++${alternative}"
5369 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5371 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5372 if eval \
${$cachevar+:} false
; then :
5373 $as_echo_n "(cached) " >&6
5377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5378 /* end confdefs.h. */
5381 // If the compiler admits that it is not ready for C++11, why torture it?
5382 // Hopefully, this will speed up the test.
5386 #error "This is not a C++ compiler"
5388 #elif __cplusplus < 201103L
5390 #error "This is not a C++11 compiler"
5397 namespace test_static_assert
5400 template <typename T>
5403 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5408 namespace test_final_override
5416 struct Derived : public Base
5418 virtual void f() override {}
5423 namespace test_double_right_angle_brackets
5426 template < typename T >
5429 typedef check<void> single_type;
5430 typedef check<check<void>> double_type;
5431 typedef check<check<check<void>>> triple_type;
5432 typedef check<check<check<check<void>>>> quadruple_type;
5436 namespace test_decltype
5449 namespace test_type_deduction
5452 template < typename T1, typename T2 >
5455 static const bool value = false;
5458 template < typename T >
5459 struct is_same<T, T>
5461 static const bool value = true;
5464 template < typename T1, typename T2 >
5466 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5472 test(const int c, volatile int v)
5474 static_assert(is_same<int, decltype(0)>::value == true, "");
5475 static_assert(is_same<int, decltype(c)>::value == false, "");
5476 static_assert(is_same<int, decltype(v)>::value == false, "");
5479 auto sumi = ac + av + 'x';
5480 auto sumf = ac + av + 1.0;
5481 static_assert(is_same<int, decltype(ac)>::value == true, "");
5482 static_assert(is_same<int, decltype(av)>::value == true, "");
5483 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5484 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5485 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5486 return (sumf > 0.0) ? sumi : add(c, v);
5491 namespace test_noexcept
5494 int f() { return 0; }
5495 int g() noexcept { return 0; }
5497 static_assert(noexcept(f()) == false, "");
5498 static_assert(noexcept(g()) == true, "");
5502 namespace test_constexpr
5505 template < typename CharT >
5506 unsigned long constexpr
5507 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5509 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5512 template < typename CharT >
5513 unsigned long constexpr
5514 strlen_c(const CharT *const s) noexcept
5516 return strlen_c_r(s, 0UL);
5519 static_assert(strlen_c("") == 0UL, "");
5520 static_assert(strlen_c("1") == 1UL, "");
5521 static_assert(strlen_c("example") == 7UL, "");
5522 static_assert(strlen_c("another\0example") == 7UL, "");
5526 namespace test_rvalue_references
5532 static constexpr int value = N;
5535 answer<1> f(int&) { return answer<1>(); }
5536 answer<2> f(const int&) { return answer<2>(); }
5537 answer<3> f(int&&) { return answer<3>(); }
5544 static_assert(decltype(f(i))::value == 1, "");
5545 static_assert(decltype(f(c))::value == 2, "");
5546 static_assert(decltype(f(0))::value == 3, "");
5551 namespace test_uniform_initialization
5556 static const int zero {};
5557 static const int one {1};
5560 static_assert(test::zero == 0, "");
5561 static_assert(test::one == 1, "");
5565 namespace test_lambdas
5571 auto lambda1 = [](){};
5572 auto lambda2 = lambda1;
5580 auto a = [](int i, int j){ return i + j; }(1, 2);
5581 auto b = []() -> int { return '0'; }();
5582 auto c = [=](){ return a + b; }();
5583 auto d = [&](){ return c; }();
5584 auto e = [a, &b](int x) mutable {
5585 const auto identity = [](int y){ return y; };
5586 for (auto i = 0; i < a; ++i)
5588 return x + identity(a + b);
5590 return a + b + c + d + e;
5596 const auto nullary = [](){ return 0; };
5597 const auto unary = [](int x){ return x; };
5598 using nullary_t = decltype(nullary);
5599 using unary_t = decltype(unary);
5600 const auto higher1st = [](nullary_t f){ return f(); };
5601 const auto higher2nd = [unary](nullary_t f1){
5602 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5604 return higher1st(nullary) + higher2nd(nullary)(unary);
5609 namespace test_variadic_templates
5615 template <int N0, int... N1toN>
5616 struct sum<N0, N1toN...>
5618 static constexpr auto value = N0 + sum<N1toN...>::value;
5624 static constexpr auto value = 0;
5627 static_assert(sum<>::value == 0, "");
5628 static_assert(sum<1>::value == 1, "");
5629 static_assert(sum<23>::value == 23, "");
5630 static_assert(sum<1, 2>::value == 3, "");
5631 static_assert(sum<5, 5, 11>::value == 21, "");
5632 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5636 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5637 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5639 namespace test_template_alias_sfinae
5644 template<typename T>
5645 using member = typename T::member_type;
5647 template<typename T>
5650 template<typename T>
5651 void func(member<T>*) {}
5655 void test() { func<foo>(0); }
5659 } // namespace cxx11
5661 #endif // __cplusplus >= 201103L
5666 if ac_fn_cxx_try_compile
"$LINENO"; then :
5671 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5674 eval ac_res
=\$
$cachevar
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5676 $as_echo "$ac_res" >&6; }
5677 if eval test x\$
$cachevar = xyes
; then
5678 CXX_DIALECT
="$switch"
5685 if test x
$ac_success = xno
; then
5686 for alternative
in ${ax_cxx_compile_alternatives}; do
5687 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5688 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
5690 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
5691 if eval \${$cachevar+:} false; then :
5692 $as_echo_n "(cached
) " >&6
5696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697 /* end confdefs.h. */
5700 // If the compiler admits that it is not ready for C++11, why torture it?
5701 // Hopefully, this will speed up the test.
5705 #error "This is not a C
++ compiler
"
5707 #elif __cplusplus < 201103L
5709 #error "This is not a C
++11 compiler
"
5716 namespace test_static_assert
5719 template <typename T>
5722 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
5727 namespace test_final_override
5735 struct Derived : public Base
5737 virtual void f() override {}
5742 namespace test_double_right_angle_brackets
5745 template < typename T >
5748 typedef check<void> single_type;
5749 typedef check<check<void>> double_type;
5750 typedef check<check<check<void>>> triple_type;
5751 typedef check<check<check<check<void>>>> quadruple_type;
5755 namespace test_decltype
5768 namespace test_type_deduction
5771 template < typename T1, typename T2 >
5774 static const bool value = false;
5777 template < typename T >
5778 struct is_same<T, T>
5780 static const bool value = true;
5783 template < typename T1, typename T2 >
5785 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5791 test(const int c, volatile int v)
5793 static_assert(is_same<int, decltype(0)>::value == true, "");
5794 static_assert(is_same<int, decltype(c)>::value == false, "");
5795 static_assert(is_same<int, decltype(v)>::value == false, "");
5798 auto sumi = ac + av + 'x';
5799 auto sumf = ac + av + 1.0;
5800 static_assert(is_same<int, decltype(ac)>::value == true, "");
5801 static_assert(is_same<int, decltype(av)>::value == true, "");
5802 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5803 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5804 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5805 return (sumf > 0.0) ? sumi : add(c, v);
5810 namespace test_noexcept
5813 int f() { return 0; }
5814 int g() noexcept { return 0; }
5816 static_assert(noexcept(f()) == false, "");
5817 static_assert(noexcept(g()) == true, "");
5821 namespace test_constexpr
5824 template < typename CharT >
5825 unsigned long constexpr
5826 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5828 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5831 template < typename CharT >
5832 unsigned long constexpr
5833 strlen_c(const CharT *const s) noexcept
5835 return strlen_c_r(s, 0UL);
5838 static_assert(strlen_c("") == 0UL, "");
5839 static_assert(strlen_c("1") == 1UL, "");
5840 static_assert(strlen_c("example
") == 7UL, "");
5841 static_assert(strlen_c("another\
0example
") == 7UL, "");
5845 namespace test_rvalue_references
5851 static constexpr int value = N;
5854 answer<1> f(int&) { return answer<1>(); }
5855 answer<2> f(const int&) { return answer<2>(); }
5856 answer<3> f(int&&) { return answer<3>(); }
5863 static_assert(decltype(f(i))::value == 1, "");
5864 static_assert(decltype(f(c))::value == 2, "");
5865 static_assert(decltype(f(0))::value == 3, "");
5870 namespace test_uniform_initialization
5875 static const int zero {};
5876 static const int one {1};
5879 static_assert(test::zero == 0, "");
5880 static_assert(test::one == 1, "");
5884 namespace test_lambdas
5890 auto lambda1 = [](){};
5891 auto lambda2 = lambda1;
5899 auto a = [](int i, int j){ return i + j; }(1, 2);
5900 auto b = []() -> int { return '0'; }();
5901 auto c = [=](){ return a + b; }();
5902 auto d = [&](){ return c; }();
5903 auto e = [a, &b](int x) mutable {
5904 const auto identity = [](int y){ return y; };
5905 for (auto i = 0; i < a; ++i)
5907 return x + identity(a + b);
5909 return a + b + c + d + e;
5915 const auto nullary = [](){ return 0; };
5916 const auto unary = [](int x){ return x; };
5917 using nullary_t = decltype(nullary);
5918 using unary_t = decltype(unary);
5919 const auto higher1st = [](nullary_t f){ return f(); };
5920 const auto higher2nd = [unary](nullary_t f1){
5921 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5923 return higher1st(nullary) + higher2nd(nullary)(unary);
5928 namespace test_variadic_templates
5934 template <int N0, int... N1toN>
5935 struct sum<N0, N1toN...>
5937 static constexpr auto value = N0 + sum<N1toN...>::value;
5943 static constexpr auto value = 0;
5946 static_assert(sum<>::value == 0, "");
5947 static_assert(sum<1>::value == 1, "");
5948 static_assert(sum<23>::value == 23, "");
5949 static_assert(sum<1, 2>::value == 3, "");
5950 static_assert(sum<5, 5, 11>::value == 21, "");
5951 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5955 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5956 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5958 namespace test_template_alias_sfinae
5963 template<typename T>
5964 using member = typename T::member_type;
5966 template<typename T>
5969 template<typename T>
5970 void func(member<T>*) {}
5974 void test() { func<foo>(0); }
5978 } // namespace cxx11
5980 #endif // __cplusplus >= 201103L
5985 if ac_fn_cxx_try_compile "$LINENO"; then :
5990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5993 eval ac_res=\$$cachevar
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
5995 $as_echo "$ac_res" >&6; }
5996 if eval test x\$$cachevar = xyes; then
5997 CXX_DIALECT="$switch"
6002 if test x$ac_success = xyes; then
6008 ac_cpp='$CPP $CPPFLAGS'
6009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6013 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6014 if test x$ac_success = xno; then
6015 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6018 if test x$ac_success = xno; then
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6021 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6025 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6032 # Dependency checking.
6033 rm -rf .tst
2>/dev
/null
6034 mkdir .tst
2>/dev
/null
6035 if test -d .tst
; then
6040 rmdir .tst
2>/dev
/null
6042 DEPDIR
="${am__leading_dot}deps"
6044 ac_config_commands
="$ac_config_commands depdir"
6047 depcc
="$CC" am_compiler_list
=
6049 am_depcomp
=$ac_aux_dir/depcomp
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6051 $as_echo_n "checking dependency style of $depcc... " >&6; }
6052 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
6053 $as_echo_n "(cached) " >&6
6055 if test -f "$am_depcomp"; then
6056 # We make a subdir and do the tests there. Otherwise we can end up
6057 # making bogus files that we don't know about and never remove. For
6058 # instance it was reported that on HP-UX the gcc test will end up
6059 # making a dummy file named `D' -- because `-MD' means `put the output
6062 # Copy depcomp to subdir because otherwise we won't find it if we're
6063 # using a relative directory.
6064 cp "$am_depcomp" conftest.dir
6066 # We will build objects and dependencies in a subdirectory because
6067 # it helps to detect inapplicable dependency modes. For instance
6068 # both Tru64's cc and ICC support -MD to output dependencies as a
6069 # side effect of compilation, but ICC will put the dependencies in
6070 # the current directory while Tru64 will put them in the object
6074 am_cv_CC_dependencies_compiler_type
=none
6075 if test "$am_compiler_list" = ""; then
6076 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6078 for depmode
in $am_compiler_list; do
6079 if test $depmode = none
; then break; fi
6081 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6082 # Setup a source with many dependencies, because some compilers
6083 # like to wrap large dependency lists on column 80 (with \), and
6084 # we should not choose a depcomp mode which is confused by this.
6086 # We need to recreate these files for each test, as the compiler may
6087 # overwrite some of them when testing with obscure command lines.
6088 # This happens at least with the AIX C compiler.
6090 for i
in 1 2 3 4 5 6; do
6091 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6092 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6093 # Solaris 8's {/usr,}/bin/sh.
6094 touch sub
/conftst
$i.h
6096 echo "include sub/conftest.Po" > confmf
6098 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6099 # mode. It turns out that the SunPro C++ compiler does not properly
6100 # handle `-M -o', and we need to detect this.
6101 depcmd
="depmode=$depmode \
6102 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6103 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6104 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6105 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
6106 if env
$depcmd > conftest.err
2>&1 &&
6107 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
6108 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
6109 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
6110 # icc doesn't choke on unknown options, it will just issue warnings
6111 # or remarks (even with -Werror). So we grep stderr for any message
6112 # that says an option was ignored or not supported.
6113 # When given -MP, icc 7.0 and 7.1 complain thusly:
6114 # icc: Command line warning: ignoring option '-M'; no argument required
6115 # The diagnosis changed in icc 8.0:
6116 # icc: Command line remark: option '-MP' not supported
6117 if (grep 'ignoring option' conftest.err ||
6118 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6119 am_cv_CC_dependencies_compiler_type
=$depmode
6120 $as_echo "$as_me:$LINENO: success" >&5
6124 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6125 sed -e 's/^/| /' < conftest.err
>&5
6131 am_cv_CC_dependencies_compiler_type
=none
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6136 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6137 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
6138 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
6139 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
6144 gnulib_extra_configure_args
=
6145 # If large-file support is disabled, make sure gnulib does the same.
6146 if test "$enable_largefile" = no
; then
6147 gnulib_extra_configure_args
="$gnulib_extra_configure_args --disable-largefile"
6150 # Configure gnulib. We need to build gnulib under some other
6151 # directory not "gnulib", to avoid the problem of both GDB and
6152 # GDBserver wanting to build it in the same directory, when building
6153 # in the source dir.
6156 in_build
="build-gnulib"
6157 in_extra_args
="$gnulib_extra_configure_args"
6159 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
6160 # so they do not pile up.
6161 ac_sub_configure_args
=
6163 eval "set x $ac_configure_args"
6167 if test -n "$ac_prev"; then
6172 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
6173 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
6174 ac_prev
=cache_file
;;
6175 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
6176 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
6179 --config-cache |
-C)
6181 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
6183 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
6185 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
6187 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
6189 --disable-option-checking)
6193 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6195 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
6199 # Always prepend --prefix to ensure using the same prefix
6200 # in subdir configurations.
6201 ac_arg
="--prefix=$prefix"
6203 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6205 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
6208 if test "$silent" = yes; then
6209 ac_sub_configure_args
="--silent $ac_sub_configure_args"
6212 # Always prepend --disable-option-checking to silence warnings, since
6213 # different subdirs can have different --enable and --with options.
6214 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
6219 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
6220 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
6221 $as_echo "$ac_msg" >&6
6222 as_dir
="$ac_dir"; as_fn_mkdir_p
6226 ac_srcdir
=$srcdir/$in_src ;;
6228 ac_srcdir
=..
/$srcdir/$in_src ;;
6233 ac_sub_configure
=$ac_srcdir/configure
6235 # Make the cache file name correct relative to the subdirectory.
6237 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
6239 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
6242 if test -n "$in_extra_args"; then
6243 # Add the extra args at the end.
6244 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
6247 { $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
6248 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6249 # The eval makes quoting arguments work.
6250 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
6251 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
6252 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
6268 # If we haven't got the data from the intl directory,
6269 # assume NLS is disabled.
6278 if test -f ..
/intl
/config.intl
; then
6279 . ..
/intl
/config.intl
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6282 $as_echo_n "checking whether NLS is requested... " >&6; }
6283 if test x
"$USE_NLS" != xyes
; then
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6285 $as_echo "no" >&6; }
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6288 $as_echo "yes" >&6; }
6290 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6294 $as_echo_n "checking for catalogs to be installed... " >&6; }
6295 # Look for .po and .gmo files in the source directory.
6298 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
6299 # If there aren't any .gmo files the shell will give us the
6300 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6302 case "$cat" in *\
**)
6305 # The quadruple backslash is collapsed to a double backslash
6306 # by the backticks, then collapsed again by the double quotes,
6307 # leaving us with one backslash in the sed expression (right
6308 # before the dot that mustn't act as a wildcard).
6309 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6310 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
6311 # The user is allowed to set LINGUAS to a list of languages to
6312 # install catalogs for. If it's empty that means "all of them."
6313 if test "x$LINGUAS" = x
; then
6314 CATALOGS
="$CATALOGS $cat"
6315 XLINGUAS
="$XLINGUAS $lang"
6317 case "$LINGUAS" in *$lang*)
6318 CATALOGS
="$CATALOGS $cat"
6319 XLINGUAS
="$XLINGUAS $lang"
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6326 $as_echo "$LINGUAS" >&6; }
6339 localedir
='${datadir}/locale'
6342 if test x
"$USE_NLS" = xyes
; then
6343 CONFIG_ALL
="$CONFIG_ALL all-po"
6344 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
6345 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
6346 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
6349 GNULIB
=build-gnulib
/import
6351 # For Makefile dependencies.
6353 if test x
"$STDINT_H" != x
; then
6354 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
6360 cat >>confdefs.h
<<_ACEOF
6361 #define PACKAGE "$PACKAGE"
6366 # We never need to detect it in this sub-configure.
6367 # But preserve it for config.status --recheck.
6371 MAKEINFO_EXTRA_FLAGS
=""
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
6373 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
6374 if ${gdb_cv_have_makeinfo_click+:} false
; then :
6375 $as_echo_n "(cached) " >&6
6377 echo '@clicksequence{a @click{} b}' >conftest.texinfo
6378 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
6379 gdb_cv_have_makeinfo_click
=yes
6381 gdb_cv_have_makeinfo_click
=no
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
6385 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
6386 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
6387 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
6393 # Check whether --with-separate-debug-dir was given.
6394 if test "${with_separate_debug_dir+set}" = set; then :
6395 withval
=$with_separate_debug_dir;
6398 DEBUGDIR
=${libdir}/debug
6402 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6403 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6404 ac_define_dir
=`eval echo $DEBUGDIR`
6405 ac_define_dir
=`eval echo $ac_define_dir`
6407 cat >>confdefs.h
<<_ACEOF
6408 #define DEBUGDIR "$ac_define_dir"
6414 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6415 if test "x$prefix" = xNONE
; then
6416 test_prefix
=/usr
/local
6421 test_prefix
=$exec_prefix
6424 case ${ac_define_dir} in
6425 "${test_prefix}"|
"${test_prefix}/"*|\
6426 '${exec_prefix}'|
'${exec_prefix}/'*)
6431 cat >>confdefs.h
<<_ACEOF
6432 #define DEBUGDIR_RELOCATABLE $value
6438 # We can't pass paths as command line arguments.
6439 # Mingw32 tries to be clever and will convert the paths for us.
6440 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
6441 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
6442 # This breaks GDB's relocatable path conversions since paths passed in
6443 # config.h would not get so translated, the path prefixes no longer match.
6445 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6446 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6447 ac_define_dir
=`eval echo $bindir`
6448 ac_define_dir
=`eval echo $ac_define_dir`
6450 cat >>confdefs.h
<<_ACEOF
6451 #define BINDIR "$ac_define_dir"
6456 # GDB's datadir relocation
6460 # Check whether --with-gdb-datadir was given.
6461 if test "${with_gdb_datadir+set}" = set; then :
6462 withval
=$with_gdb_datadir;
6463 GDB_DATADIR
=$withval
6465 GDB_DATADIR
=${datadir}/gdb
6469 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6470 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6471 ac_define_dir
=`eval echo $GDB_DATADIR`
6472 ac_define_dir
=`eval echo $ac_define_dir`
6474 cat >>confdefs.h
<<_ACEOF
6475 #define GDB_DATADIR "$ac_define_dir"
6481 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6482 if test "x$prefix" = xNONE
; then
6483 test_prefix
=/usr
/local
6488 test_prefix
=$exec_prefix
6491 case ${ac_define_dir} in
6492 "${test_prefix}"|
"${test_prefix}/"*|\
6493 '${exec_prefix}'|
'${exec_prefix}/'*)
6498 cat >>confdefs.h
<<_ACEOF
6499 #define GDB_DATADIR_RELOCATABLE $value
6506 # Check whether --with-relocated-sources was given.
6507 if test "${with_relocated_sources+set}" = set; then :
6508 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
6510 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6511 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6512 ac_define_dir
=`eval echo $reloc_srcdir`
6513 ac_define_dir
=`eval echo $ac_define_dir`
6515 cat >>confdefs.h
<<_ACEOF
6516 #define RELOC_SRCDIR "$ac_define_dir"
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
6525 $as_echo_n "checking for default auto-load directory... " >&6; }
6527 # Check whether --with-auto-load-dir was given.
6528 if test "${with_auto_load_dir+set}" = set; then :
6529 withval
=$with_auto_load_dir;
6531 with_auto_load_dir
='$debugdir:$datadir/auto-load'
6534 escape_dir
=`echo $with_auto_load_dir | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
6536 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6537 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6538 ac_define_dir
=`eval echo $escape_dir`
6539 ac_define_dir
=`eval echo $ac_define_dir`
6541 cat >>confdefs.h
<<_ACEOF
6542 #define AUTO_LOAD_DIR "$ac_define_dir"
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
6547 $as_echo "$with_auto_load_dir" >&6; }
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
6550 $as_echo_n "checking for default auto-load safe-path... " >&6; }
6552 # Check whether --with-auto-load-safe-path was given.
6553 if test "${with_auto_load_safe_path+set}" = set; then :
6554 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
6555 with_auto_load_safe_path
="/"
6558 with_auto_load_safe_path
="$with_auto_load_dir"
6561 escape_dir
=`echo $with_auto_load_safe_path | sed 's/[$]\(datadir\|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_SAFE_PATH "$ac_define_dir"
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
6574 $as_echo "$with_auto_load_safe_path" >&6; }
6578 subdirs
="$subdirs testsuite"
6581 # Check whether to support alternative target configurations
6582 # Check whether --enable-targets was given.
6583 if test "${enable_targets+set}" = set; then :
6584 enableval
=$enable_targets; case "${enableval}" in
6585 yes |
"") as_fn_error $?
"enable-targets option must specify target names or 'all'" "$LINENO" 5
6587 no
) enable_targets
= ;;
6588 *) enable_targets
=$enableval ;;
6593 # Check whether to enable 64-bit support on 32-bit hosts
6594 # Check whether --enable-64-bit-bfd was given.
6595 if test "${enable_64_bit_bfd+set}" = set; then :
6596 enableval
=$enable_64_bit_bfd; case "${enableval}" in
6599 *) as_fn_error $?
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
6605 # Provide defaults for some variables set by the per-host and per-target
6607 gdb_host_obs
=posix-hdep.o
6609 if test "${target}" = "${host}"; then
6615 .
$srcdir/configure.
host
6617 # Add in the common host objects.
6618 .
$srcdir/common
/common.
host
6619 gdb_host_obs
="$gdb_host_obs $common_host_obs"
6621 # Accumulate some settings from configure.tgt over all enabled targets
6625 HAVE_NATIVE_GCORE_TARGET
=
6627 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6629 if test "$targ_alias" = "all"; then
6632 # Canonicalize the secondary target names.
6633 result
=`$ac_config_sub $targ_alias 2>/dev/null`
6634 if test -n "$result"; then
6640 .
${srcdir}/configure.tgt
6642 if test -z "${gdb_target_obs}"; then :
6643 as_fn_error $?
"configuration ${targ} is unsupported." "$LINENO" 5
6646 # Target-specific object files
6647 for i
in ${gdb_target_obs}; do
6648 case " $TARGET_OBS " in
6651 TARGET_OBS
="$TARGET_OBS ${i}"
6656 # Check whether this target needs 64-bit CORE_ADDR
6657 if test x
${want64} = xfalse
; then
6658 .
${srcdir}/..
/bfd
/config.bfd
6661 # Check whether this target is native and supports gcore.
6662 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
6663 && $gdb_have_gcore; then
6664 HAVE_NATIVE_GCORE_TARGET
=1
6669 if test x
${all_targets} = xtrue
; then
6671 # We want all 64-bit targets if we either:
6672 # - run on a 64-bit host or
6673 # - already require 64-bit support for some other target or
6674 # - the --enable-64-bit-bfd option was supplied
6675 # Otherwise we only support all 32-bit targets.
6677 # NOTE: This test must be in sync with the corresponding
6680 if test x
${want64} = xfalse
; then
6681 # The cast to long int works around a bug in the HP C Compiler
6682 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6683 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6684 # This bug is HP SR number 8606223364.
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6686 $as_echo_n "checking size of long... " >&6; }
6687 if ${ac_cv_sizeof_long+:} false
; then :
6688 $as_echo_n "(cached) " >&6
6690 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6693 if test "$ac_cv_type_long" = yes; then
6694 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6695 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6696 as_fn_error
77 "cannot compute sizeof (long)
6697 See \`config.log' for more details" "$LINENO" 5; }
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6705 $as_echo "$ac_cv_sizeof_long" >&6; }
6709 cat >>confdefs.h
<<_ACEOF
6710 #define SIZEOF_LONG $ac_cv_sizeof_long
6714 if test "x${ac_cv_sizeof_long}" = "x8"; then
6718 if test x
${want64} = xtrue
; then
6719 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
6721 TARGET_OBS
='$(ALL_TARGET_OBS)'
6728 # For other settings, only the main target counts.
6732 targ
=$target; .
${srcdir}/configure.tgt
6734 # Fetch the default architecture and default target vector from BFD.
6735 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
6737 # We only want the first architecture, so strip off the others if
6738 # there is more than one.
6739 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
6741 if test "x$targ_archs" != x
; then
6743 cat >>confdefs.h
<<_ACEOF
6744 #define DEFAULT_BFD_ARCH $targ_archs
6748 if test "x$targ_defvec" != x
; then
6750 cat >>confdefs.h
<<_ACEOF
6751 #define DEFAULT_BFD_VEC $targ_defvec
6757 # Check whether --enable-gdbmi was given.
6758 if test "${enable_gdbmi+set}" = set; then :
6759 enableval
=$enable_gdbmi; case $enableval in
6763 as_fn_error $?
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
6769 if test x
"$enable_gdbmi" = xyes
; then
6770 if test -d $srcdir/mi
; then
6771 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6772 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6773 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6774 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6779 # Check whether --enable-tui was given.
6780 if test "${enable_tui+set}" = set; then :
6781 enableval
=$enable_tui; case $enableval in
6785 as_fn_error $?
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
6793 # Check whether --enable-gdbtk was given.
6794 if test "${enable_gdbtk+set}" = set; then :
6795 enableval
=$enable_gdbtk; case $enableval in
6799 as_fn_error $?
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
6802 if test -d $srcdir/gdbtk
; then
6809 # We unconditionally disable gdbtk tests on selected platforms.
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
6813 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6817 # Libunwind support for ia64.
6820 # Check whether --with-libunwind-ia64 was given.
6821 if test "${with_libunwind_ia64+set}" = set; then :
6822 withval
=$with_libunwind_ia64;
6824 with_libunwind_ia64
=auto
6828 # Backward compatibility option.
6829 if test "${with_libunwind+set}" = set; then
6830 if test x
"$with_libunwind_ia64" != xauto
; then
6831 as_fn_error $?
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
6834 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
6835 with_libunwind_ia64
="$with_libunwind"
6838 case "$with_libunwind_ia64" in
6842 for ac_header
in libunwind-ia64.h
6844 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
6845 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
6846 cat >>confdefs.h
<<_ACEOF
6847 #define HAVE_LIBUNWIND_IA64_H 1
6854 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
6857 as_fn_error $?
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
6861 if test x
"$with_libunwind_ia64" = xyes
; then
6862 for ac_header
in libunwind-ia64.h
6864 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
6865 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
6866 cat >>confdefs.h
<<_ACEOF
6867 #define HAVE_LIBUNWIND_IA64_H 1
6874 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
6875 as_fn_error $?
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
6877 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
6878 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
6879 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
6884 # Check whether --with-curses was given.
6885 if test "${with_curses+set}" = set; then :
6886 withval
=$with_curses; opt_curses
=$withval
6891 if test "$opt_curses" = "yes"; then
6895 # Profiling support.
6896 # Check whether --enable-profiling was given.
6897 if test "${enable_profiling+set}" = set; then :
6898 enableval
=$enable_profiling; case $enableval in
6902 as_fn_error $?
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
6909 for ac_func
in monstartup _mcleanup
6911 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6912 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6913 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6914 cat >>confdefs.h
<<_ACEOF
6915 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
6922 $as_echo_n "checking for _etext... " >&6; }
6923 if ${ac_cv_var__etext+:} false
; then :
6924 $as_echo_n "(cached) " >&6
6926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6927 /* end confdefs.h. */
6939 if ac_fn_c_try_link
"$LINENO"; then :
6940 ac_cv_var__etext
=yes
6944 rm -f core conftest.err conftest.
$ac_objext \
6945 conftest
$ac_exeext conftest.
$ac_ext
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
6948 $as_echo "$ac_cv_var__etext" >&6; }
6949 if test $ac_cv_var__etext = yes; then
6951 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
6955 $as_echo_n "checking for etext... " >&6; }
6956 if ${ac_cv_var_etext+:} false
; then :
6957 $as_echo_n "(cached) " >&6
6959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6960 /* end confdefs.h. */
6972 if ac_fn_c_try_link
"$LINENO"; then :
6977 rm -f core conftest.err conftest.
$ac_objext \
6978 conftest
$ac_exeext conftest.
$ac_ext
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
6981 $as_echo "$ac_cv_var_etext" >&6; }
6982 if test $ac_cv_var_etext = yes; then
6984 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
6987 if test "$enable_profiling" = yes ; then
6988 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
6989 as_fn_error $?
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
6992 OLD_CFLAGS
="$CFLAGS"
6993 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
6996 $as_echo_n "checking whether $CC supports -pg... " >&6; }
6997 if ${ac_cv_cc_supports_pg+:} false
; then :
6998 $as_echo_n "(cached) " >&6
7000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7001 /* end confdefs.h. */
7011 if ac_fn_c_try_compile
"$LINENO"; then :
7012 ac_cv_cc_supports_pg
=yes
7014 ac_cv_cc_supports_pg
=no
7016 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
7019 $as_echo "$ac_cv_cc_supports_pg" >&6; }
7021 if test $ac_cv_cc_supports_pg = no
; then
7022 as_fn_error $?
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
7025 CFLAGS
="$OLD_CFLAGS"
7029 # Check whether --enable-codesign was given.
7030 if test "${enable_codesign+set}" = set; then :
7031 enableval
=$enable_codesign; CODESIGN_CERT
=$enableval
7038 # Check whether --with-pkgversion was given.
7039 if test "${with_pkgversion+set}" = set; then :
7040 withval
=$with_pkgversion; case "$withval" in
7041 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
7043 *) PKGVERSION
="($withval) " ;;
7054 # Check whether --with-bugurl was given.
7055 if test "${with_bugurl+set}" = set; then :
7056 withval
=$with_bugurl; case "$withval" in
7057 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
7060 *) BUGURL
="$withval"
7064 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
7074 REPORT_BUGS_TO
="<$BUGURL>"
7075 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7082 cat >>confdefs.h
<<_ACEOF
7083 #define PKGVERSION "$PKGVERSION"
7087 cat >>confdefs.h
<<_ACEOF
7088 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7092 # --------------------- #
7093 # Checks for programs. #
7094 # --------------------- #
7096 for ac_prog
in gawk mawk nawk
awk
7098 # Extract the first word of "$ac_prog", so it can be a program name with args.
7099 set dummy
$ac_prog; ac_word
=$2
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7101 $as_echo_n "checking for $ac_word... " >&6; }
7102 if ${ac_cv_prog_AWK+:} false
; then :
7103 $as_echo_n "(cached) " >&6
7105 if test -n "$AWK"; then
7106 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7108 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7112 test -z "$as_dir" && as_dir
=.
7113 for ac_exec_ext
in '' $ac_executable_extensions; do
7114 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7115 ac_cv_prog_AWK
="$ac_prog"
7116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7126 if test -n "$AWK"; then
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7128 $as_echo "$AWK" >&6; }
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131 $as_echo "no" >&6; }
7135 test -n "$AWK" && break
7138 # Find a good install program. We prefer a C program (faster),
7139 # so one script is as good as another. But avoid the broken or
7140 # incompatible versions:
7141 # SysV /etc/install, /usr/sbin/install
7142 # SunOS /usr/etc/install
7143 # IRIX /sbin/install
7145 # AmigaOS /C/install, which installs bootblocks on floppy discs
7146 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7147 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7148 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7149 # OS/2's system install, which has a completely different semantic
7150 # ./install, which can be erroneously created by make from ./install.sh.
7151 # Reject install programs that cannot install multiple files.
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7153 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7154 if test -z "$INSTALL"; then
7155 if ${ac_cv_path_install+:} false
; then :
7156 $as_echo_n "(cached) " >&6
7158 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7162 test -z "$as_dir" && as_dir
=.
7163 # Account for people who put trailing slashes in PATH elements.
7164 case $as_dir/ in #((
7165 .
/ | .
// |
/[cC
]/* | \
7166 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7167 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
7170 # OSF1 and SCO ODT 3.0 have their own names for install.
7171 # Don't use installbsd from OSF since it installs stuff as root
7173 for ac_prog
in ginstall scoinst
install; do
7174 for ac_exec_ext
in '' $ac_executable_extensions; do
7175 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
7176 if test $ac_prog = install &&
7177 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7178 # AIX install. It has an incompatible calling convention.
7180 elif test $ac_prog = install &&
7181 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7182 # program-specific install script used by HP pwplus--don't use.
7185 rm -rf conftest.one conftest.two conftest.dir
7186 echo one
> conftest.one
7187 echo two
> conftest.two
7189 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
7190 test -s conftest.one
&& test -s conftest.two
&&
7191 test -s conftest.dir
/conftest.one
&&
7192 test -s conftest.dir
/conftest.two
7194 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7207 rm -rf conftest.one conftest.two conftest.dir
7210 if test "${ac_cv_path_install+set}" = set; then
7211 INSTALL
=$ac_cv_path_install
7213 # As a last resort, use the slow shell script. Don't cache a
7214 # value for INSTALL within a source directory, because that will
7215 # break other packages using the cache if that directory is
7216 # removed, or if the value is a relative name.
7217 INSTALL
=$ac_install_sh
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7221 $as_echo "$INSTALL" >&6; }
7223 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7224 # It thinks the first close brace ends the variable substitution.
7225 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7227 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7229 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7232 $as_echo_n "checking whether ln -s works... " >&6; }
7234 if test "$LN_S" = "ln -s"; then
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7236 $as_echo "yes" >&6; }
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7239 $as_echo "no, using $LN_S" >&6; }
7242 if test -n "$ac_tool_prefix"; then
7243 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7244 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7246 $as_echo_n "checking for $ac_word... " >&6; }
7247 if ${ac_cv_prog_RANLIB+:} false
; then :
7248 $as_echo_n "(cached) " >&6
7250 if test -n "$RANLIB"; then
7251 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7253 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7257 test -z "$as_dir" && as_dir
=.
7258 for ac_exec_ext
in '' $ac_executable_extensions; do
7259 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7260 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7270 RANLIB
=$ac_cv_prog_RANLIB
7271 if test -n "$RANLIB"; then
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7273 $as_echo "$RANLIB" >&6; }
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7276 $as_echo "no" >&6; }
7281 if test -z "$ac_cv_prog_RANLIB"; then
7282 ac_ct_RANLIB
=$RANLIB
7283 # Extract the first word of "ranlib", so it can be a program name with args.
7284 set dummy ranlib
; ac_word
=$2
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7286 $as_echo_n "checking for $ac_word... " >&6; }
7287 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
7288 $as_echo_n "(cached) " >&6
7290 if test -n "$ac_ct_RANLIB"; then
7291 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7297 test -z "$as_dir" && as_dir
=.
7298 for ac_exec_ext
in '' $ac_executable_extensions; do
7299 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7300 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7310 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7311 if test -n "$ac_ct_RANLIB"; then
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7313 $as_echo "$ac_ct_RANLIB" >&6; }
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7316 $as_echo "no" >&6; }
7319 if test "x$ac_ct_RANLIB" = x
; then
7322 case $cross_compiling:$ac_tool_warned in
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7326 ac_tool_warned
=yes ;;
7328 RANLIB
=$ac_ct_RANLIB
7331 RANLIB
="$ac_cv_prog_RANLIB"
7334 for ac_prog
in 'bison -y' byacc
7336 # Extract the first word of "$ac_prog", so it can be a program name with args.
7337 set dummy
$ac_prog; ac_word
=$2
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7339 $as_echo_n "checking for $ac_word... " >&6; }
7340 if ${ac_cv_prog_YACC+:} false
; then :
7341 $as_echo_n "(cached) " >&6
7343 if test -n "$YACC"; then
7344 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
7346 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7350 test -z "$as_dir" && as_dir
=.
7351 for ac_exec_ext
in '' $ac_executable_extensions; do
7352 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7353 ac_cv_prog_YACC
="$ac_prog"
7354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7363 YACC
=$ac_cv_prog_YACC
7364 if test -n "$YACC"; then
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7366 $as_echo "$YACC" >&6; }
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7369 $as_echo "no" >&6; }
7373 test -n "$YACC" && break
7375 test -n "$YACC" || YACC
="yacc"
7378 if test -n "$ac_tool_prefix"; then
7379 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7380 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7382 $as_echo_n "checking for $ac_word... " >&6; }
7383 if ${ac_cv_prog_AR+:} false
; then :
7384 $as_echo_n "(cached) " >&6
7386 if test -n "$AR"; then
7387 ac_cv_prog_AR
="$AR" # Let the user override the test.
7389 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7393 test -z "$as_dir" && as_dir
=.
7394 for ac_exec_ext
in '' $ac_executable_extensions; do
7395 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7396 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7407 if test -n "$AR"; then
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7409 $as_echo "$AR" >&6; }
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7412 $as_echo "no" >&6; }
7417 if test -z "$ac_cv_prog_AR"; then
7419 # Extract the first word of "ar", so it can be a program name with args.
7420 set dummy
ar; ac_word
=$2
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7422 $as_echo_n "checking for $ac_word... " >&6; }
7423 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
7424 $as_echo_n "(cached) " >&6
7426 if test -n "$ac_ct_AR"; then
7427 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7429 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7433 test -z "$as_dir" && as_dir
=.
7434 for ac_exec_ext
in '' $ac_executable_extensions; do
7435 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7436 ac_cv_prog_ac_ct_AR
="ar"
7437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7446 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7447 if test -n "$ac_ct_AR"; then
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7449 $as_echo "$ac_ct_AR" >&6; }
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452 $as_echo "no" >&6; }
7455 if test "x$ac_ct_AR" = x
; then
7458 case $cross_compiling:$ac_tool_warned in
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7462 ac_tool_warned
=yes ;;
7470 if test -n "$ac_tool_prefix"; then
7471 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7472 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7474 $as_echo_n "checking for $ac_word... " >&6; }
7475 if ${ac_cv_prog_DLLTOOL+:} false
; then :
7476 $as_echo_n "(cached) " >&6
7478 if test -n "$DLLTOOL"; then
7479 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
7481 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7485 test -z "$as_dir" && as_dir
=.
7486 for ac_exec_ext
in '' $ac_executable_extensions; do
7487 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7488 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
7489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7498 DLLTOOL
=$ac_cv_prog_DLLTOOL
7499 if test -n "$DLLTOOL"; then
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7501 $as_echo "$DLLTOOL" >&6; }
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7504 $as_echo "no" >&6; }
7509 if test -z "$ac_cv_prog_DLLTOOL"; then
7510 ac_ct_DLLTOOL
=$DLLTOOL
7511 # Extract the first word of "dlltool", so it can be a program name with args.
7512 set dummy dlltool
; ac_word
=$2
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7514 $as_echo_n "checking for $ac_word... " >&6; }
7515 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
7516 $as_echo_n "(cached) " >&6
7518 if test -n "$ac_ct_DLLTOOL"; then
7519 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
7521 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7525 test -z "$as_dir" && as_dir
=.
7526 for ac_exec_ext
in '' $ac_executable_extensions; do
7527 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7528 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
7529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7538 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
7539 if test -n "$ac_ct_DLLTOOL"; then
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7541 $as_echo "$ac_ct_DLLTOOL" >&6; }
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7544 $as_echo "no" >&6; }
7547 if test "x$ac_ct_DLLTOOL" = x
; then
7550 case $cross_compiling:$ac_tool_warned in
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7554 ac_tool_warned
=yes ;;
7556 DLLTOOL
=$ac_ct_DLLTOOL
7559 DLLTOOL
="$ac_cv_prog_DLLTOOL"
7562 if test -n "$ac_tool_prefix"; then
7563 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7564 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7566 $as_echo_n "checking for $ac_word... " >&6; }
7567 if ${ac_cv_prog_WINDRES+:} false
; then :
7568 $as_echo_n "(cached) " >&6
7570 if test -n "$WINDRES"; then
7571 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
7573 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7577 test -z "$as_dir" && as_dir
=.
7578 for ac_exec_ext
in '' $ac_executable_extensions; do
7579 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7580 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
7581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7590 WINDRES
=$ac_cv_prog_WINDRES
7591 if test -n "$WINDRES"; then
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7593 $as_echo "$WINDRES" >&6; }
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596 $as_echo "no" >&6; }
7601 if test -z "$ac_cv_prog_WINDRES"; then
7602 ac_ct_WINDRES
=$WINDRES
7603 # Extract the first word of "windres", so it can be a program name with args.
7604 set dummy windres
; ac_word
=$2
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7606 $as_echo_n "checking for $ac_word... " >&6; }
7607 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
7608 $as_echo_n "(cached) " >&6
7610 if test -n "$ac_ct_WINDRES"; then
7611 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
7613 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7617 test -z "$as_dir" && as_dir
=.
7618 for ac_exec_ext
in '' $ac_executable_extensions; do
7619 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7620 ac_cv_prog_ac_ct_WINDRES
="windres"
7621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7630 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
7631 if test -n "$ac_ct_WINDRES"; then
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7633 $as_echo "$ac_ct_WINDRES" >&6; }
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7636 $as_echo "no" >&6; }
7639 if test "x$ac_ct_WINDRES" = x
; then
7642 case $cross_compiling:$ac_tool_warned in
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7646 ac_tool_warned
=yes ;;
7648 WINDRES
=$ac_ct_WINDRES
7651 WINDRES
="$ac_cv_prog_WINDRES"
7657 # Needed for GNU Hurd hosts.
7658 if test -n "$ac_tool_prefix"; then
7659 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7660 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7662 $as_echo_n "checking for $ac_word... " >&6; }
7663 if ${ac_cv_prog_MIG+:} false
; then :
7664 $as_echo_n "(cached) " >&6
7666 if test -n "$MIG"; then
7667 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
7669 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7673 test -z "$as_dir" && as_dir
=.
7674 for ac_exec_ext
in '' $ac_executable_extensions; do
7675 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7676 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
7677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7687 if test -n "$MIG"; then
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
7689 $as_echo "$MIG" >&6; }
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7692 $as_echo "no" >&6; }
7697 if test -z "$ac_cv_prog_MIG"; then
7699 # Extract the first word of "mig", so it can be a program name with args.
7700 set dummy mig
; ac_word
=$2
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7702 $as_echo_n "checking for $ac_word... " >&6; }
7703 if ${ac_cv_prog_ac_ct_MIG+:} false
; then :
7704 $as_echo_n "(cached) " >&6
7706 if test -n "$ac_ct_MIG"; then
7707 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
7709 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7713 test -z "$as_dir" && as_dir
=.
7714 for ac_exec_ext
in '' $ac_executable_extensions; do
7715 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7716 ac_cv_prog_ac_ct_MIG
="mig"
7717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7726 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
7727 if test -n "$ac_ct_MIG"; then
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
7729 $as_echo "$ac_ct_MIG" >&6; }
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7732 $as_echo "no" >&6; }
7735 if test "x$ac_ct_MIG" = x
; then
7738 case $cross_compiling:$ac_tool_warned in
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7742 ac_tool_warned
=yes ;;
7747 MIG
="$ac_cv_prog_MIG"
7750 if test x
"$MIG" = x
; then
7751 as_fn_error $?
"MIG not found but required for $host hosts" "$LINENO" 5
7756 # ---------------------- #
7757 # Checks for libraries. #
7758 # ---------------------- #
7760 # We might need to link with -lm; most simulators need it.
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7762 $as_echo_n "checking for main in -lm... " >&6; }
7763 if ${ac_cv_lib_m_main+:} false
; then :
7764 $as_echo_n "(cached) " >&6
7766 ac_check_lib_save_LIBS
=$LIBS
7768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7769 /* end confdefs.h. */
7780 if ac_fn_c_try_link
"$LINENO"; then :
7781 ac_cv_lib_m_main
=yes
7785 rm -f core conftest.err conftest.
$ac_objext \
7786 conftest
$ac_exeext conftest.
$ac_ext
7787 LIBS
=$ac_check_lib_save_LIBS
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7790 $as_echo "$ac_cv_lib_m_main" >&6; }
7791 if test "x$ac_cv_lib_m_main" = xyes
; then :
7792 cat >>confdefs.h
<<_ACEOF
7801 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
7803 $as_echo_n "checking for library containing gethostbyname... " >&6; }
7804 if ${ac_cv_search_gethostbyname+:} false
; then :
7805 $as_echo_n "(cached) " >&6
7807 ac_func_search_save_LIBS
=$LIBS
7808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7809 /* end confdefs.h. */
7811 /* Override any GCC internal prototype to avoid an error.
7812 Use char because int might match the return type of a GCC
7813 builtin and then its argument prototype would still apply. */
7817 char gethostbyname ();
7821 return gethostbyname ();
7826 for ac_lib
in '' nsl
; do
7827 if test -z "$ac_lib"; then
7828 ac_res
="none required"
7831 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7833 if ac_fn_c_try_link
"$LINENO"; then :
7834 ac_cv_search_gethostbyname
=$ac_res
7836 rm -f core conftest.err conftest.
$ac_objext \
7838 if ${ac_cv_search_gethostbyname+:} false
; then :
7842 if ${ac_cv_search_gethostbyname+:} false
; then :
7845 ac_cv_search_gethostbyname
=no
7848 LIBS
=$ac_func_search_save_LIBS
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
7851 $as_echo "$ac_cv_search_gethostbyname" >&6; }
7852 ac_res
=$ac_cv_search_gethostbyname
7853 if test "$ac_res" != no
; then :
7854 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7859 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
7861 $as_echo_n "checking for library containing socketpair... " >&6; }
7862 if ${ac_cv_search_socketpair+:} false
; then :
7863 $as_echo_n "(cached) " >&6
7865 ac_func_search_save_LIBS
=$LIBS
7866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7867 /* end confdefs.h. */
7869 /* Override any GCC internal prototype to avoid an error.
7870 Use char because int might match the return type of a GCC
7871 builtin and then its argument prototype would still apply. */
7879 return socketpair ();
7884 for ac_lib
in '' socket
; do
7885 if test -z "$ac_lib"; then
7886 ac_res
="none required"
7889 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7891 if ac_fn_c_try_link
"$LINENO"; then :
7892 ac_cv_search_socketpair
=$ac_res
7894 rm -f core conftest.err conftest.
$ac_objext \
7896 if ${ac_cv_search_socketpair+:} false
; then :
7900 if ${ac_cv_search_socketpair+:} false
; then :
7903 ac_cv_search_socketpair
=no
7906 LIBS
=$ac_func_search_save_LIBS
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
7909 $as_echo "$ac_cv_search_socketpair" >&6; }
7910 ac_res
=$ac_cv_search_socketpair
7911 if test "$ac_res" != no
; then :
7912 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7917 # Link in zlib if we can. This allows us to read compressed debug sections.
7919 # Use the system's zlib library.
7920 zlibdir
="-L\$(top_builddir)/../zlib"
7921 zlibinc
="-I\$(top_srcdir)/../zlib"
7923 # Check whether --with-system-zlib was given.
7924 if test "${with_system_zlib+set}" = set; then :
7925 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
7936 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
7937 # On GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
7939 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
7940 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
7941 $as_echo_n "(cached) " >&6
7943 ac_func_search_save_LIBS
=$LIBS
7944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7945 /* end confdefs.h. */
7947 /* Override any GCC internal prototype to avoid an error.
7948 Use char because int might match the return type of a GCC
7949 builtin and then its argument prototype would still apply. */
7953 char kinfo_getvmmap ();
7957 return kinfo_getvmmap ();
7962 for ac_lib
in '' util util-freebsd
; do
7963 if test -z "$ac_lib"; then
7964 ac_res
="none required"
7967 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7969 if ac_fn_c_try_link
"$LINENO"; then :
7970 ac_cv_search_kinfo_getvmmap
=$ac_res
7972 rm -f core conftest.err conftest.
$ac_objext \
7974 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
7978 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
7981 ac_cv_search_kinfo_getvmmap
=no
7984 LIBS
=$ac_func_search_save_LIBS
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
7987 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
7988 ac_res
=$ac_cv_search_kinfo_getvmmap
7989 if test "$ac_res" != no
; then :
7990 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7992 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
7997 # fbsd-nat.c can also use kinfo_getfile.
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
7999 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
8000 if ${ac_cv_search_kinfo_getfile+:} false
; then :
8001 $as_echo_n "(cached) " >&6
8003 ac_func_search_save_LIBS
=$LIBS
8004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8005 /* end confdefs.h. */
8007 /* Override any GCC internal prototype to avoid an error.
8008 Use char because int might match the return type of a GCC
8009 builtin and then its argument prototype would still apply. */
8013 char kinfo_getfile ();
8017 return kinfo_getfile ();
8022 for ac_lib
in '' util util-freebsd
; do
8023 if test -z "$ac_lib"; then
8024 ac_res
="none required"
8027 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8029 if ac_fn_c_try_link
"$LINENO"; then :
8030 ac_cv_search_kinfo_getfile
=$ac_res
8032 rm -f core conftest.err conftest.
$ac_objext \
8034 if ${ac_cv_search_kinfo_getfile+:} false
; then :
8038 if ${ac_cv_search_kinfo_getfile+:} false
; then :
8041 ac_cv_search_kinfo_getfile
=no
8044 LIBS
=$ac_func_search_save_LIBS
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
8047 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
8048 ac_res
=$ac_cv_search_kinfo_getfile
8049 if test "$ac_res" != no
; then :
8050 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8052 $as_echo "#define HAVE_KINFO_GETFILE 1" >>confdefs.h
8058 if test "X$prefix" = "XNONE"; then
8059 acl_final_prefix
="$ac_default_prefix"
8061 acl_final_prefix
="$prefix"
8063 if test "X$exec_prefix" = "XNONE"; then
8064 acl_final_exec_prefix
='${prefix}'
8066 acl_final_exec_prefix
="$exec_prefix"
8068 acl_save_prefix
="$prefix"
8069 prefix
="$acl_final_prefix"
8070 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8071 prefix
="$acl_save_prefix"
8074 # Check whether --with-gnu-ld was given.
8075 if test "${with_gnu_ld+set}" = set; then :
8076 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8081 # Prepare PATH_SEPARATOR.
8082 # The user is always right.
8083 if test "${PATH_SEPARATOR+set}" != set; then
8084 echo "#! /bin/sh" >conf$$.sh
8085 echo "exit 0" >>conf$$.sh
8087 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8095 if test "$GCC" = yes; then
8096 # Check if gcc -print-prog-name=ld gives a path.
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8098 $as_echo_n "checking for ld used by GCC... " >&6; }
8101 # gcc leaves a trailing carriage return which upsets mingw
8102 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8104 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8107 # Accept absolute paths.
8108 [\\/]* |
[A-Za-z
]:[\\/]*)
8109 re_direlt
='/[^/][^/]*/\.\./'
8110 # Canonicalize the path of ld
8111 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8112 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8113 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8115 test -z "$LD" && LD
="$ac_prog"
8118 # If it fails, then pretend we aren't using GCC.
8122 # If it is relative, then search for the first ld in PATH.
8126 elif test "$with_gnu_ld" = yes; then
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8128 $as_echo_n "checking for GNU ld... " >&6; }
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8131 $as_echo_n "checking for non-GNU ld... " >&6; }
8133 if ${acl_cv_path_LD+:} false
; then :
8134 $as_echo_n "(cached) " >&6
8136 if test -z "$LD"; then
8137 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8138 for ac_dir
in $PATH; do
8139 test -z "$ac_dir" && ac_dir
=.
8140 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8141 acl_cv_path_LD
="$ac_dir/$ac_prog"
8142 # Check to see if the program is GNU ld. I'd rather use --version,
8143 # but apparently some GNU ld's only accept -v.
8144 # Break only if it was the GNU/non-GNU ld that we prefer.
8145 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
8146 test "$with_gnu_ld" != no
&& break
8148 test "$with_gnu_ld" != yes && break
8154 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8158 LD
="$acl_cv_path_LD"
8159 if test -n "$LD"; then
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8161 $as_echo "$LD" >&6; }
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8164 $as_echo "no" >&6; }
8166 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8168 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8169 if ${acl_cv_prog_gnu_ld+:} false
; then :
8170 $as_echo_n "(cached) " >&6
8172 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8173 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8174 acl_cv_prog_gnu_ld
=yes
8176 acl_cv_prog_gnu_ld
=no
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8180 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8181 with_gnu_ld
=$acl_cv_prog_gnu_ld
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8186 $as_echo_n "checking for shared library run path origin... " >&6; }
8187 if ${acl_cv_rpath+:} false
; then :
8188 $as_echo_n "(cached) " >&6
8191 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8192 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8199 $as_echo "$acl_cv_rpath" >&6; }
8201 libext
="$acl_cv_libext"
8202 shlibext
="$acl_cv_shlibext"
8203 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8204 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8205 hardcode_direct
="$acl_cv_hardcode_direct"
8206 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8207 # Check whether --enable-rpath was given.
8208 if test "${enable_rpath+set}" = set; then :
8209 enableval
=$enable_rpath; :
8223 acl_save_prefix
="$prefix"
8224 prefix
="$acl_final_prefix"
8225 acl_save_exec_prefix
="$exec_prefix"
8226 exec_prefix
="$acl_final_exec_prefix"
8228 eval additional_includedir
=\"$includedir\"
8229 eval additional_libdir
=\"$libdir\"
8231 exec_prefix
="$acl_save_exec_prefix"
8232 prefix
="$acl_save_prefix"
8235 # Check whether --with-libiconv-prefix was given.
8236 if test "${with_libiconv_prefix+set}" = set; then :
8237 withval
=$with_libiconv_prefix;
8238 if test "X$withval" = "Xno"; then
8241 if test "X$withval" = "X"; then
8243 acl_save_prefix
="$prefix"
8244 prefix
="$acl_final_prefix"
8245 acl_save_exec_prefix
="$exec_prefix"
8246 exec_prefix
="$acl_final_exec_prefix"
8248 eval additional_includedir
=\"$includedir\"
8249 eval additional_libdir
=\"$libdir\"
8251 exec_prefix
="$acl_save_exec_prefix"
8252 prefix
="$acl_save_prefix"
8255 additional_includedir
="$withval/include"
8256 additional_libdir
="$withval/lib"
8267 names_already_handled
=
8268 names_next_round
='iconv '
8269 while test -n "$names_next_round"; do
8270 names_this_round
="$names_next_round"
8272 for name
in $names_this_round; do
8274 for n
in $names_already_handled; do
8275 if test "$n" = "$name"; then
8280 if test -z "$already_handled"; then
8281 names_already_handled
="$names_already_handled $name"
8282 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8283 eval value
=\"\
$HAVE_LIB$uppername\"
8284 if test -n "$value"; then
8285 if test "$value" = yes; then
8286 eval value
=\"\
$LIB$uppername\"
8287 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
8288 eval value
=\"\
$LTLIB$uppername\"
8289 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
8298 if test $use_additional = yes; then
8299 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8300 found_dir
="$additional_libdir"
8301 found_so
="$additional_libdir/lib$name.$shlibext"
8302 if test -f "$additional_libdir/lib$name.la"; then
8303 found_la
="$additional_libdir/lib$name.la"
8306 if test -f "$additional_libdir/lib$name.$libext"; then
8307 found_dir
="$additional_libdir"
8308 found_a
="$additional_libdir/lib$name.$libext"
8309 if test -f "$additional_libdir/lib$name.la"; then
8310 found_la
="$additional_libdir/lib$name.la"
8315 if test "X$found_dir" = "X"; then
8316 for x
in $LDFLAGS $LTLIBICONV; do
8318 acl_save_prefix
="$prefix"
8319 prefix
="$acl_final_prefix"
8320 acl_save_exec_prefix
="$exec_prefix"
8321 exec_prefix
="$acl_final_exec_prefix"
8323 exec_prefix
="$acl_save_exec_prefix"
8324 prefix
="$acl_save_prefix"
8328 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8329 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8331 found_so
="$dir/lib$name.$shlibext"
8332 if test -f "$dir/lib$name.la"; then
8333 found_la
="$dir/lib$name.la"
8336 if test -f "$dir/lib$name.$libext"; then
8338 found_a
="$dir/lib$name.$libext"
8339 if test -f "$dir/lib$name.la"; then
8340 found_la
="$dir/lib$name.la"
8346 if test "X$found_dir" != "X"; then
8351 if test "X$found_dir" != "X"; then
8352 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8353 if test "X$found_so" != "X"; then
8354 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8355 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8358 for x
in $ltrpathdirs; do
8359 if test "X$x" = "X$found_dir"; then
8364 if test -z "$haveit"; then
8365 ltrpathdirs
="$ltrpathdirs $found_dir"
8367 if test "$hardcode_direct" = yes; then
8368 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8370 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8371 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8373 for x
in $rpathdirs; do
8374 if test "X$x" = "X$found_dir"; then
8379 if test -z "$haveit"; then
8380 rpathdirs
="$rpathdirs $found_dir"
8384 for x
in $LDFLAGS $LIBICONV; do
8386 acl_save_prefix
="$prefix"
8387 prefix
="$acl_final_prefix"
8388 acl_save_exec_prefix
="$exec_prefix"
8389 exec_prefix
="$acl_final_exec_prefix"
8391 exec_prefix
="$acl_save_exec_prefix"
8392 prefix
="$acl_save_prefix"
8394 if test "X$x" = "X-L$found_dir"; then
8399 if test -z "$haveit"; then
8400 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8402 if test "$hardcode_minus_L" != no
; then
8403 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8405 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8411 if test "X$found_a" != "X"; then
8412 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
8414 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8417 additional_includedir
=
8418 case "$found_dir" in
8420 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8421 additional_includedir
="$basedir/include"
8424 if test "X$additional_includedir" != "X"; then
8425 if test "X$additional_includedir" != "X/usr/include"; then
8427 if test "X$additional_includedir" = "X/usr/local/include"; then
8428 if test -n "$GCC"; then
8430 linux
*) haveit
=yes;;
8434 if test -z "$haveit"; then
8435 for x
in $CPPFLAGS $INCICONV; do
8437 acl_save_prefix
="$prefix"
8438 prefix
="$acl_final_prefix"
8439 acl_save_exec_prefix
="$exec_prefix"
8440 exec_prefix
="$acl_final_exec_prefix"
8442 exec_prefix
="$acl_save_exec_prefix"
8443 prefix
="$acl_save_prefix"
8445 if test "X$x" = "X-I$additional_includedir"; then
8450 if test -z "$haveit"; then
8451 if test -d "$additional_includedir"; then
8452 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8458 if test -n "$found_la"; then
8459 save_libdir
="$libdir"
8461 */* |
*\\*) .
"$found_la" ;;
8462 *) .
"./$found_la" ;;
8464 libdir
="$save_libdir"
8465 for dep
in $dependency_libs; do
8468 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8469 if test "X$additional_libdir" != "X/usr/lib"; then
8471 if test "X$additional_libdir" = "X/usr/local/lib"; then
8472 if test -n "$GCC"; then
8474 linux
*) haveit
=yes;;
8478 if test -z "$haveit"; then
8480 for x
in $LDFLAGS $LIBICONV; do
8482 acl_save_prefix
="$prefix"
8483 prefix
="$acl_final_prefix"
8484 acl_save_exec_prefix
="$exec_prefix"
8485 exec_prefix
="$acl_final_exec_prefix"
8487 exec_prefix
="$acl_save_exec_prefix"
8488 prefix
="$acl_save_prefix"
8490 if test "X$x" = "X-L$additional_libdir"; then
8495 if test -z "$haveit"; then
8496 if test -d "$additional_libdir"; then
8497 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8501 for x
in $LDFLAGS $LTLIBICONV; do
8503 acl_save_prefix
="$prefix"
8504 prefix
="$acl_final_prefix"
8505 acl_save_exec_prefix
="$exec_prefix"
8506 exec_prefix
="$acl_final_exec_prefix"
8508 exec_prefix
="$acl_save_exec_prefix"
8509 prefix
="$acl_save_prefix"
8511 if test "X$x" = "X-L$additional_libdir"; then
8516 if test -z "$haveit"; then
8517 if test -d "$additional_libdir"; then
8518 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8525 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8526 if test "$enable_rpath" != no
; then
8528 for x
in $rpathdirs; do
8529 if test "X$x" = "X$dir"; then
8534 if test -z "$haveit"; then
8535 rpathdirs
="$rpathdirs $dir"
8538 for x
in $ltrpathdirs; do
8539 if test "X$x" = "X$dir"; then
8544 if test -z "$haveit"; then
8545 ltrpathdirs
="$ltrpathdirs $dir"
8550 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8553 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8556 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
8557 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8563 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8564 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8570 if test "X$rpathdirs" != "X"; then
8571 if test -n "$hardcode_libdir_separator"; then
8573 for found_dir
in $rpathdirs; do
8574 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8576 acl_save_libdir
="$libdir"
8578 eval flag
=\"$hardcode_libdir_flag_spec\"
8579 libdir
="$acl_save_libdir"
8580 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8582 for found_dir
in $rpathdirs; do
8583 acl_save_libdir
="$libdir"
8585 eval flag
=\"$hardcode_libdir_flag_spec\"
8586 libdir
="$acl_save_libdir"
8587 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8591 if test "X$ltrpathdirs" != "X"; then
8592 for found_dir
in $ltrpathdirs; do
8593 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8604 $as_echo_n "checking for iconv... " >&6; }
8605 if ${am_cv_func_iconv+:} false
; then :
8606 $as_echo_n "(cached) " >&6
8609 am_cv_func_iconv
="no, consider installing GNU libiconv"
8611 am_save_CPPFLAGS
="$CPPFLAGS"
8612 CPPFLAGS
="$CPPFLAGS $INCICONV"
8613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8614 /* end confdefs.h. */
8620 iconv_t cd = iconv_open("","");
8621 iconv(cd,NULL,NULL,NULL,NULL);
8627 if ac_fn_c_try_link
"$LINENO"; then :
8628 am_cv_func_iconv
=yes
8630 rm -f core conftest.err conftest.
$ac_objext \
8631 conftest
$ac_exeext conftest.
$ac_ext
8632 CPPFLAGS
="$am_save_CPPFLAGS"
8634 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
8635 for _libs
in .libs _libs
; do
8636 am_save_CPPFLAGS
="$CPPFLAGS"
8637 am_save_LIBS
="$LIBS"
8638 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
8639 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
8640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8641 /* end confdefs.h. */
8647 iconv_t cd = iconv_open("","");
8648 iconv(cd,NULL,NULL,NULL,NULL);
8654 if ac_fn_c_try_link
"$LINENO"; then :
8655 INCICONV
="-I../libiconv/include"
8656 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
8657 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
8659 am_cv_func_iconv
=yes
8661 rm -f core conftest.err conftest.
$ac_objext \
8662 conftest
$ac_exeext conftest.
$ac_ext
8663 CPPFLAGS
="$am_save_CPPFLAGS"
8664 LIBS
="$am_save_LIBS"
8665 if test "$am_cv_func_iconv" = "yes"; then
8671 if test "$am_cv_func_iconv" != yes; then
8672 am_save_CPPFLAGS
="$CPPFLAGS"
8673 am_save_LIBS
="$LIBS"
8674 CPPFLAGS
="$LIBS $INCICONV"
8675 LIBS
="$LIBS $LIBICONV"
8676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8677 /* end confdefs.h. */
8683 iconv_t cd = iconv_open("","");
8684 iconv(cd,NULL,NULL,NULL,NULL);
8690 if ac_fn_c_try_link
"$LINENO"; then :
8692 am_cv_func_iconv
=yes
8694 rm -f core conftest.err conftest.
$ac_objext \
8695 conftest
$ac_exeext conftest.
$ac_ext
8696 CPPFLAGS
="$am_save_CPPFLAGS"
8697 LIBS
="$am_save_LIBS"
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8702 $as_echo "$am_cv_func_iconv" >&6; }
8703 if test "$am_cv_func_iconv" = yes; then
8705 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8708 if test "$am_cv_lib_iconv" = yes; then
8710 for element
in $INCICONV; do
8712 for x
in $CPPFLAGS; do
8714 acl_save_prefix
="$prefix"
8715 prefix
="$acl_final_prefix"
8716 acl_save_exec_prefix
="$exec_prefix"
8717 exec_prefix
="$acl_final_exec_prefix"
8719 exec_prefix
="$acl_save_exec_prefix"
8720 prefix
="$acl_save_prefix"
8722 if test "X$x" = "X$element"; then
8727 if test -z "$haveit"; then
8728 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8733 $as_echo_n "checking how to link with libiconv... " >&6; }
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8735 $as_echo "$LIBICONV" >&6; }
8743 if test "$am_cv_func_iconv" = yes; then
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8745 $as_echo_n "checking for iconv declaration... " >&6; }
8746 if ${am_cv_proto_iconv+:} false
; then :
8747 $as_echo_n "(cached) " >&6
8750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8751 /* end confdefs.h. */
8759 #if defined(__STDC__) || defined(__cplusplus)
8760 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8773 if ac_fn_c_try_compile
"$LINENO"; then :
8774 am_cv_proto_iconv_arg1
=""
8776 am_cv_proto_iconv_arg1
="const"
8778 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8779 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);"
8782 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8784 }$am_cv_proto_iconv" >&5
8786 }$am_cv_proto_iconv" >&6; }
8788 cat >>confdefs.h
<<_ACEOF
8789 #define ICONV_CONST $am_cv_proto_iconv_arg1
8795 # GDB may fork/exec the iconv program to get the list of supported character
8796 # sets. Allow the user to specify where to find it.
8797 # There are several factors affecting the choice of option name:
8798 # - There is already --with-libiconv-prefix but we can't use it, it specifies
8799 # the build-time location of libiconv files.
8800 # - The program we need to find is iconv, which comes with glibc. The user
8801 # doesn't necessarily have libiconv installed. Therefore naming this
8802 # --with-libiconv-foo feels wrong.
8803 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
8804 # defined to work on directories not files (though it really doesn't know
8806 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
8807 # with --with-libiconv-prefix.
8808 # Putting these together is why the option name is --with-iconv-bin.
8811 # Check whether --with-iconv-bin was given.
8812 if test "${with_iconv_bin+set}" = set; then :
8813 withval
=$with_iconv_bin; iconv_bin
="${withval}"
8815 cat >>confdefs.h
<<_ACEOF
8816 #define ICONV_BIN "${iconv_bin}"
8820 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
8821 if test "x$prefix" = xNONE
; then
8822 test_prefix
=/usr
/local
8827 test_prefix
=$exec_prefix
8830 case ${iconv_bin} in
8831 "${test_prefix}"|
"${test_prefix}/"*|\
8832 '${exec_prefix}'|
'${exec_prefix}/'*)
8837 cat >>confdefs.h
<<_ACEOF
8838 #define ICONV_BIN_RELOCATABLE $value
8846 # For the TUI, we need enhanced curses functionality.
8847 if test x
"$enable_tui" != xno
; then
8852 if test x
"$prefer_curses" = xyes
; then
8853 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8854 # curses library because the latter might not provide all the
8855 # functionality we need. However, this leads to problems on systems
8856 # where the linker searches /usr/local/lib, but the compiler doesn't
8857 # search /usr/local/include, if ncurses is installed in /usr/local. A
8858 # default installation of ncurses on alpha*-dec-osf* will lead to such
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
8861 $as_echo_n "checking for library containing waddstr... " >&6; }
8862 if ${ac_cv_search_waddstr+:} false
; then :
8863 $as_echo_n "(cached) " >&6
8865 ac_func_search_save_LIBS
=$LIBS
8866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8867 /* end confdefs.h. */
8869 /* Override any GCC internal prototype to avoid an error.
8870 Use char because int might match the return type of a GCC
8871 builtin and then its argument prototype would still apply. */
8884 for ac_lib
in '' ncursesw ncurses cursesX curses
; do
8885 if test -z "$ac_lib"; then
8886 ac_res
="none required"
8889 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8891 if ac_fn_c_try_link
"$LINENO"; then :
8892 ac_cv_search_waddstr
=$ac_res
8894 rm -f core conftest.err conftest.
$ac_objext \
8896 if ${ac_cv_search_waddstr+:} false
; then :
8900 if ${ac_cv_search_waddstr+:} false
; then :
8903 ac_cv_search_waddstr
=no
8906 LIBS
=$ac_func_search_save_LIBS
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
8909 $as_echo "$ac_cv_search_waddstr" >&6; }
8910 ac_res
=$ac_cv_search_waddstr
8911 if test "$ac_res" != no
; then :
8912 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8917 if test "$ac_cv_search_waddstr" != no
; then
8922 # Check whether we should enable the TUI, but only do so if we really
8924 if test x
"$enable_tui" != xno
; then
8925 if test -d $srcdir/tui
; then
8926 if test "$curses_found" != no
; then
8927 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
8928 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
8929 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
8930 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
8932 if test x
"$enable_tui" = xyes
; then
8933 as_fn_error $?
"no enhanced curses library found; disable TUI" "$LINENO" 5
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
8936 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
8942 # Since GDB uses Readline, we need termcap functionality. In many
8943 # cases this will be provided by the curses library, but some systems
8944 # have a separate termcap library, or no curses library at all.
8948 if test -d $srcdir/libtermcap
; then
8949 LIBS
="../libtermcap/libtermcap.a $LIBS"
8950 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
8953 ac_cv_search_tgetent
="none required"
8957 # These are the libraries checked by Readline.
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
8959 $as_echo_n "checking for library containing tgetent... " >&6; }
8960 if ${ac_cv_search_tgetent+:} false
; then :
8961 $as_echo_n "(cached) " >&6
8963 ac_func_search_save_LIBS
=$LIBS
8964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8965 /* end confdefs.h. */
8967 /* Override any GCC internal prototype to avoid an error.
8968 Use char because int might match the return type of a GCC
8969 builtin and then its argument prototype would still apply. */
8982 for ac_lib
in '' termcap tinfo curses ncursesw ncurses
; do
8983 if test -z "$ac_lib"; then
8984 ac_res
="none required"
8987 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8989 if ac_fn_c_try_link
"$LINENO"; then :
8990 ac_cv_search_tgetent
=$ac_res
8992 rm -f core conftest.err conftest.
$ac_objext \
8994 if ${ac_cv_search_tgetent+:} false
; then :
8998 if ${ac_cv_search_tgetent+:} false
; then :
9001 ac_cv_search_tgetent
=no
9004 LIBS
=$ac_func_search_save_LIBS
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9007 $as_echo "$ac_cv_search_tgetent" >&6; }
9008 ac_res
=$ac_cv_search_tgetent
9009 if test "$ac_res" != no
; then :
9010 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9015 if test "$ac_cv_search_tgetent" = no
; then
9016 CONFIG_OBS
="$CONFIG_OBS stub-termcap.o"
9020 # Check whether --with-system-readline was given.
9021 if test "${with_system_readline+set}" = set; then :
9022 withval
=$with_system_readline;
9026 if test "$with_system_readline" = yes; then
9030 READLINE_TEXI_INCFLAG
=
9032 READLINE
='$(READLINE_DIR)/libreadline.a'
9033 READLINE_DEPS
='$(READLINE)'
9034 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
9035 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
9042 # Generate jit-reader.h
9044 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
9047 # The cast to long int works around a bug in the HP C Compiler
9048 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9049 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9050 # This bug is HP SR number 8606223364.
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
9052 $as_echo_n "checking size of unsigned long long... " >&6; }
9053 if ${ac_cv_sizeof_unsigned_long_long+:} false
; then :
9054 $as_echo_n "(cached) " >&6
9056 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
9059 if test "$ac_cv_type_unsigned_long_long" = yes; then
9060 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9062 as_fn_error
77 "cannot compute sizeof (unsigned long long)
9063 See \`config.log' for more details" "$LINENO" 5; }
9065 ac_cv_sizeof_unsigned_long_long
=0
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
9071 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
9075 cat >>confdefs.h
<<_ACEOF
9076 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
9080 # The cast to long int works around a bug in the HP C Compiler
9081 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9082 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9083 # This bug is HP SR number 8606223364.
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
9085 $as_echo_n "checking size of unsigned long... " >&6; }
9086 if ${ac_cv_sizeof_unsigned_long+:} false
; then :
9087 $as_echo_n "(cached) " >&6
9089 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
9092 if test "$ac_cv_type_unsigned_long" = yes; then
9093 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9095 as_fn_error
77 "cannot compute sizeof (unsigned long)
9096 See \`config.log' for more details" "$LINENO" 5; }
9098 ac_cv_sizeof_unsigned_long
=0
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
9104 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
9108 cat >>confdefs.h
<<_ACEOF
9109 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9113 # The cast to long int works around a bug in the HP C Compiler
9114 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9115 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9116 # This bug is HP SR number 8606223364.
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
9118 $as_echo_n "checking size of unsigned __int128... " >&6; }
9119 if ${ac_cv_sizeof_unsigned___int128+:} false
; then :
9120 $as_echo_n "(cached) " >&6
9122 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
9125 if test "$ac_cv_type_unsigned___int128" = yes; then
9126 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9128 as_fn_error
77 "cannot compute sizeof (unsigned __int128)
9129 See \`config.log' for more details" "$LINENO" 5; }
9131 ac_cv_sizeof_unsigned___int128
=0
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
9137 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
9141 cat >>confdefs.h
<<_ACEOF
9142 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
9147 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9148 TARGET_PTR
="unsigned long"
9149 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9150 TARGET_PTR
="unsigned long long"
9151 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
9152 TARGET_PTR
="unsigned __int128"
9154 TARGET_PTR
="unsigned long"
9158 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9162 $as_echo_n "checking for library containing dlopen... " >&6; }
9163 if ${ac_cv_search_dlopen+:} false
; then :
9164 $as_echo_n "(cached) " >&6
9166 ac_func_search_save_LIBS
=$LIBS
9167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9168 /* end confdefs.h. */
9170 /* Override any GCC internal prototype to avoid an error.
9171 Use char because int might match the return type of a GCC
9172 builtin and then its argument prototype would still apply. */
9185 for ac_lib
in '' dl
; do
9186 if test -z "$ac_lib"; then
9187 ac_res
="none required"
9190 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9192 if ac_fn_c_try_link
"$LINENO"; then :
9193 ac_cv_search_dlopen
=$ac_res
9195 rm -f core conftest.err conftest.
$ac_objext \
9197 if ${ac_cv_search_dlopen+:} false
; then :
9201 if ${ac_cv_search_dlopen+:} false
; then :
9204 ac_cv_search_dlopen
=no
9207 LIBS
=$ac_func_search_save_LIBS
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9210 $as_echo "$ac_cv_search_dlopen" >&6; }
9211 ac_res
=$ac_cv_search_dlopen
9212 if test "$ac_res" != no
; then :
9213 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9220 # Check whether --with-jit-reader-dir was given.
9221 if test "${with_jit_reader_dir+set}" = set; then :
9222 withval
=$with_jit_reader_dir;
9223 JIT_READER_DIR
=$withval
9225 JIT_READER_DIR
=${libdir}/gdb
9229 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9230 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9231 ac_define_dir
=`eval echo $JIT_READER_DIR`
9232 ac_define_dir
=`eval echo $ac_define_dir`
9234 cat >>confdefs.h
<<_ACEOF
9235 #define JIT_READER_DIR "$ac_define_dir"
9241 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9242 if test "x$prefix" = xNONE
; then
9243 test_prefix
=/usr
/local
9248 test_prefix
=$exec_prefix
9251 case ${ac_define_dir} in
9252 "${test_prefix}"|
"${test_prefix}/"*|\
9253 '${exec_prefix}'|
'${exec_prefix}/'*)
9258 cat >>confdefs.h
<<_ACEOF
9259 #define JIT_READER_DIR_RELOCATABLE $value
9266 # Check whether --with-expat was given.
9267 if test "${with_expat+set}" = set; then :
9268 withval
=$with_expat;
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9274 $as_echo_n "checking whether to use expat... " >&6; }
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9276 $as_echo "$with_expat" >&6; }
9278 if test "${with_expat}" = no
; then
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9280 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9293 acl_save_prefix
="$prefix"
9294 prefix
="$acl_final_prefix"
9295 acl_save_exec_prefix
="$exec_prefix"
9296 exec_prefix
="$acl_final_exec_prefix"
9298 eval additional_includedir
=\"$includedir\"
9299 eval additional_libdir
=\"$libdir\"
9301 exec_prefix
="$acl_save_exec_prefix"
9302 prefix
="$acl_save_prefix"
9305 # Check whether --with-libexpat-prefix was given.
9306 if test "${with_libexpat_prefix+set}" = set; then :
9307 withval
=$with_libexpat_prefix;
9308 if test "X$withval" = "Xno"; then
9311 if test "X$withval" = "X"; then
9313 acl_save_prefix
="$prefix"
9314 prefix
="$acl_final_prefix"
9315 acl_save_exec_prefix
="$exec_prefix"
9316 exec_prefix
="$acl_final_exec_prefix"
9318 eval additional_includedir
=\"$includedir\"
9319 eval additional_libdir
=\"$libdir\"
9321 exec_prefix
="$acl_save_exec_prefix"
9322 prefix
="$acl_save_prefix"
9325 additional_includedir
="$withval/include"
9326 additional_libdir
="$withval/lib"
9337 names_already_handled
=
9338 names_next_round
='expat '
9339 while test -n "$names_next_round"; do
9340 names_this_round
="$names_next_round"
9342 for name
in $names_this_round; do
9344 for n
in $names_already_handled; do
9345 if test "$n" = "$name"; then
9350 if test -z "$already_handled"; then
9351 names_already_handled
="$names_already_handled $name"
9352 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9353 eval value
=\"\
$HAVE_LIB$uppername\"
9354 if test -n "$value"; then
9355 if test "$value" = yes; then
9356 eval value
=\"\
$LIB$uppername\"
9357 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
9358 eval value
=\"\
$LTLIB$uppername\"
9359 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
9368 if test $use_additional = yes; then
9369 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9370 found_dir
="$additional_libdir"
9371 found_so
="$additional_libdir/lib$name.$shlibext"
9372 if test -f "$additional_libdir/lib$name.la"; then
9373 found_la
="$additional_libdir/lib$name.la"
9376 if test -f "$additional_libdir/lib$name.$libext"; then
9377 found_dir
="$additional_libdir"
9378 found_a
="$additional_libdir/lib$name.$libext"
9379 if test -f "$additional_libdir/lib$name.la"; then
9380 found_la
="$additional_libdir/lib$name.la"
9385 if test "X$found_dir" = "X"; then
9386 for x
in $LDFLAGS $LTLIBEXPAT; do
9388 acl_save_prefix
="$prefix"
9389 prefix
="$acl_final_prefix"
9390 acl_save_exec_prefix
="$exec_prefix"
9391 exec_prefix
="$acl_final_exec_prefix"
9393 exec_prefix
="$acl_save_exec_prefix"
9394 prefix
="$acl_save_prefix"
9398 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9399 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9401 found_so
="$dir/lib$name.$shlibext"
9402 if test -f "$dir/lib$name.la"; then
9403 found_la
="$dir/lib$name.la"
9406 if test -f "$dir/lib$name.$libext"; then
9408 found_a
="$dir/lib$name.$libext"
9409 if test -f "$dir/lib$name.la"; then
9410 found_la
="$dir/lib$name.la"
9416 if test "X$found_dir" != "X"; then
9421 if test "X$found_dir" != "X"; then
9422 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
9423 if test "X$found_so" != "X"; then
9424 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9425 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9428 for x
in $ltrpathdirs; do
9429 if test "X$x" = "X$found_dir"; then
9434 if test -z "$haveit"; then
9435 ltrpathdirs
="$ltrpathdirs $found_dir"
9437 if test "$hardcode_direct" = yes; then
9438 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9440 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9441 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9443 for x
in $rpathdirs; do
9444 if test "X$x" = "X$found_dir"; then
9449 if test -z "$haveit"; then
9450 rpathdirs
="$rpathdirs $found_dir"
9454 for x
in $LDFLAGS $LIBEXPAT; do
9456 acl_save_prefix
="$prefix"
9457 prefix
="$acl_final_prefix"
9458 acl_save_exec_prefix
="$exec_prefix"
9459 exec_prefix
="$acl_final_exec_prefix"
9461 exec_prefix
="$acl_save_exec_prefix"
9462 prefix
="$acl_save_prefix"
9464 if test "X$x" = "X-L$found_dir"; then
9469 if test -z "$haveit"; then
9470 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
9472 if test "$hardcode_minus_L" != no
; then
9473 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9475 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9481 if test "X$found_a" != "X"; then
9482 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
9484 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
9487 additional_includedir
=
9488 case "$found_dir" in
9490 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9491 additional_includedir
="$basedir/include"
9494 if test "X$additional_includedir" != "X"; then
9495 if test "X$additional_includedir" != "X/usr/include"; then
9497 if test "X$additional_includedir" = "X/usr/local/include"; then
9498 if test -n "$GCC"; then
9500 linux
*) haveit
=yes;;
9504 if test -z "$haveit"; then
9505 for x
in $CPPFLAGS $INCEXPAT; do
9507 acl_save_prefix
="$prefix"
9508 prefix
="$acl_final_prefix"
9509 acl_save_exec_prefix
="$exec_prefix"
9510 exec_prefix
="$acl_final_exec_prefix"
9512 exec_prefix
="$acl_save_exec_prefix"
9513 prefix
="$acl_save_prefix"
9515 if test "X$x" = "X-I$additional_includedir"; then
9520 if test -z "$haveit"; then
9521 if test -d "$additional_includedir"; then
9522 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
9528 if test -n "$found_la"; then
9529 save_libdir
="$libdir"
9531 */* |
*\\*) .
"$found_la" ;;
9532 *) .
"./$found_la" ;;
9534 libdir
="$save_libdir"
9535 for dep
in $dependency_libs; do
9538 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9539 if test "X$additional_libdir" != "X/usr/lib"; then
9541 if test "X$additional_libdir" = "X/usr/local/lib"; then
9542 if test -n "$GCC"; then
9544 linux
*) haveit
=yes;;
9548 if test -z "$haveit"; then
9550 for x
in $LDFLAGS $LIBEXPAT; do
9552 acl_save_prefix
="$prefix"
9553 prefix
="$acl_final_prefix"
9554 acl_save_exec_prefix
="$exec_prefix"
9555 exec_prefix
="$acl_final_exec_prefix"
9557 exec_prefix
="$acl_save_exec_prefix"
9558 prefix
="$acl_save_prefix"
9560 if test "X$x" = "X-L$additional_libdir"; then
9565 if test -z "$haveit"; then
9566 if test -d "$additional_libdir"; then
9567 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
9571 for x
in $LDFLAGS $LTLIBEXPAT; do
9573 acl_save_prefix
="$prefix"
9574 prefix
="$acl_final_prefix"
9575 acl_save_exec_prefix
="$exec_prefix"
9576 exec_prefix
="$acl_final_exec_prefix"
9578 exec_prefix
="$acl_save_exec_prefix"
9579 prefix
="$acl_save_prefix"
9581 if test "X$x" = "X-L$additional_libdir"; then
9586 if test -z "$haveit"; then
9587 if test -d "$additional_libdir"; then
9588 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
9595 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9596 if test "$enable_rpath" != no
; then
9598 for x
in $rpathdirs; do
9599 if test "X$x" = "X$dir"; then
9604 if test -z "$haveit"; then
9605 rpathdirs
="$rpathdirs $dir"
9608 for x
in $ltrpathdirs; do
9609 if test "X$x" = "X$dir"; then
9614 if test -z "$haveit"; then
9615 ltrpathdirs
="$ltrpathdirs $dir"
9620 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9623 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9626 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
9627 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
9633 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9634 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
9640 if test "X$rpathdirs" != "X"; then
9641 if test -n "$hardcode_libdir_separator"; then
9643 for found_dir
in $rpathdirs; do
9644 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9646 acl_save_libdir
="$libdir"
9648 eval flag
=\"$hardcode_libdir_flag_spec\"
9649 libdir
="$acl_save_libdir"
9650 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9652 for found_dir
in $rpathdirs; do
9653 acl_save_libdir
="$libdir"
9655 eval flag
=\"$hardcode_libdir_flag_spec\"
9656 libdir
="$acl_save_libdir"
9657 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9661 if test "X$ltrpathdirs" != "X"; then
9662 for found_dir
in $ltrpathdirs; do
9663 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9668 ac_save_CPPFLAGS
="$CPPFLAGS"
9670 for element
in $INCEXPAT; do
9672 for x
in $CPPFLAGS; do
9674 acl_save_prefix
="$prefix"
9675 prefix
="$acl_final_prefix"
9676 acl_save_exec_prefix
="$exec_prefix"
9677 exec_prefix
="$acl_final_exec_prefix"
9679 exec_prefix
="$acl_save_exec_prefix"
9680 prefix
="$acl_save_prefix"
9682 if test "X$x" = "X$element"; then
9687 if test -z "$haveit"; then
9688 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9694 $as_echo_n "checking for libexpat... " >&6; }
9695 if ${ac_cv_libexpat+:} false
; then :
9696 $as_echo_n "(cached) " >&6
9699 ac_save_LIBS
="$LIBS"
9700 LIBS
="$LIBS $LIBEXPAT"
9701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9702 /* end confdefs.h. */
9707 XML_Parser p = XML_ParserCreate (0);
9712 if ac_fn_c_try_link
"$LINENO"; then :
9717 rm -f core conftest.err conftest.
$ac_objext \
9718 conftest
$ac_exeext conftest.
$ac_ext
9719 LIBS
="$ac_save_LIBS"
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
9723 $as_echo "$ac_cv_libexpat" >&6; }
9724 if test "$ac_cv_libexpat" = yes; then
9727 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
9730 $as_echo_n "checking how to link with libexpat... " >&6; }
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
9732 $as_echo "$LIBEXPAT" >&6; }
9735 CPPFLAGS
="$ac_save_CPPFLAGS"
9745 if test "$HAVE_LIBEXPAT" != yes; then
9746 if test "$with_expat" = yes; then
9747 as_fn_error $?
"expat is missing or unusable" "$LINENO" 5
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
9750 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
9754 LIBS
="$LIBS $LIBEXPAT"
9755 for ac_func
in XML_StopParser
9757 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
9758 if test "x$ac_cv_func_XML_StopParser" = xyes
; then :
9759 cat >>confdefs.h
<<_ACEOF
9760 #define HAVE_XML_STOPPARSER 1
9771 # Check whether --with-mpfr was given.
9772 if test "${with_mpfr+set}" = set; then :
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5
9779 $as_echo_n "checking whether to use MPFR... " >&6; }
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5
9781 $as_echo "$with_mpfr" >&6; }
9783 if test "${with_mpfr}" = no
; then
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5
9785 $as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;}
9798 acl_save_prefix
="$prefix"
9799 prefix
="$acl_final_prefix"
9800 acl_save_exec_prefix
="$exec_prefix"
9801 exec_prefix
="$acl_final_exec_prefix"
9803 eval additional_includedir
=\"$includedir\"
9804 eval additional_libdir
=\"$libdir\"
9806 exec_prefix
="$acl_save_exec_prefix"
9807 prefix
="$acl_save_prefix"
9810 # Check whether --with-libmpfr-prefix was given.
9811 if test "${with_libmpfr_prefix+set}" = set; then :
9812 withval
=$with_libmpfr_prefix;
9813 if test "X$withval" = "Xno"; then
9816 if test "X$withval" = "X"; then
9818 acl_save_prefix
="$prefix"
9819 prefix
="$acl_final_prefix"
9820 acl_save_exec_prefix
="$exec_prefix"
9821 exec_prefix
="$acl_final_exec_prefix"
9823 eval additional_includedir
=\"$includedir\"
9824 eval additional_libdir
=\"$libdir\"
9826 exec_prefix
="$acl_save_exec_prefix"
9827 prefix
="$acl_save_prefix"
9830 additional_includedir
="$withval/include"
9831 additional_libdir
="$withval/lib"
9842 names_already_handled
=
9843 names_next_round
='mpfr '
9844 while test -n "$names_next_round"; do
9845 names_this_round
="$names_next_round"
9847 for name
in $names_this_round; do
9849 for n
in $names_already_handled; do
9850 if test "$n" = "$name"; then
9855 if test -z "$already_handled"; then
9856 names_already_handled
="$names_already_handled $name"
9857 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9858 eval value
=\"\
$HAVE_LIB$uppername\"
9859 if test -n "$value"; then
9860 if test "$value" = yes; then
9861 eval value
=\"\
$LIB$uppername\"
9862 test -z "$value" || LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$value"
9863 eval value
=\"\
$LTLIB$uppername\"
9864 test -z "$value" || LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$value"
9873 if test $use_additional = yes; then
9874 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9875 found_dir
="$additional_libdir"
9876 found_so
="$additional_libdir/lib$name.$shlibext"
9877 if test -f "$additional_libdir/lib$name.la"; then
9878 found_la
="$additional_libdir/lib$name.la"
9881 if test -f "$additional_libdir/lib$name.$libext"; then
9882 found_dir
="$additional_libdir"
9883 found_a
="$additional_libdir/lib$name.$libext"
9884 if test -f "$additional_libdir/lib$name.la"; then
9885 found_la
="$additional_libdir/lib$name.la"
9890 if test "X$found_dir" = "X"; then
9891 for x
in $LDFLAGS $LTLIBMPFR; do
9893 acl_save_prefix
="$prefix"
9894 prefix
="$acl_final_prefix"
9895 acl_save_exec_prefix
="$exec_prefix"
9896 exec_prefix
="$acl_final_exec_prefix"
9898 exec_prefix
="$acl_save_exec_prefix"
9899 prefix
="$acl_save_prefix"
9903 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9904 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9906 found_so
="$dir/lib$name.$shlibext"
9907 if test -f "$dir/lib$name.la"; then
9908 found_la
="$dir/lib$name.la"
9911 if test -f "$dir/lib$name.$libext"; then
9913 found_a
="$dir/lib$name.$libext"
9914 if test -f "$dir/lib$name.la"; then
9915 found_la
="$dir/lib$name.la"
9921 if test "X$found_dir" != "X"; then
9926 if test "X$found_dir" != "X"; then
9927 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$found_dir -l$name"
9928 if test "X$found_so" != "X"; then
9929 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9930 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
9933 for x
in $ltrpathdirs; do
9934 if test "X$x" = "X$found_dir"; then
9939 if test -z "$haveit"; then
9940 ltrpathdirs
="$ltrpathdirs $found_dir"
9942 if test "$hardcode_direct" = yes; then
9943 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
9945 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9946 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
9948 for x
in $rpathdirs; do
9949 if test "X$x" = "X$found_dir"; then
9954 if test -z "$haveit"; then
9955 rpathdirs
="$rpathdirs $found_dir"
9959 for x
in $LDFLAGS $LIBMPFR; do
9961 acl_save_prefix
="$prefix"
9962 prefix
="$acl_final_prefix"
9963 acl_save_exec_prefix
="$exec_prefix"
9964 exec_prefix
="$acl_final_exec_prefix"
9966 exec_prefix
="$acl_save_exec_prefix"
9967 prefix
="$acl_save_prefix"
9969 if test "X$x" = "X-L$found_dir"; then
9974 if test -z "$haveit"; then
9975 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir"
9977 if test "$hardcode_minus_L" != no
; then
9978 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
9980 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
9986 if test "X$found_a" != "X"; then
9987 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_a"
9989 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir -l$name"
9992 additional_includedir
=
9993 case "$found_dir" in
9995 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9996 additional_includedir
="$basedir/include"
9999 if test "X$additional_includedir" != "X"; then
10000 if test "X$additional_includedir" != "X/usr/include"; then
10002 if test "X$additional_includedir" = "X/usr/local/include"; then
10003 if test -n "$GCC"; then
10005 linux
*) haveit
=yes;;
10009 if test -z "$haveit"; then
10010 for x
in $CPPFLAGS $INCMPFR; do
10012 acl_save_prefix
="$prefix"
10013 prefix
="$acl_final_prefix"
10014 acl_save_exec_prefix
="$exec_prefix"
10015 exec_prefix
="$acl_final_exec_prefix"
10017 exec_prefix
="$acl_save_exec_prefix"
10018 prefix
="$acl_save_prefix"
10020 if test "X$x" = "X-I$additional_includedir"; then
10025 if test -z "$haveit"; then
10026 if test -d "$additional_includedir"; then
10027 INCMPFR
="${INCMPFR}${INCMPFR:+ }-I$additional_includedir"
10033 if test -n "$found_la"; then
10034 save_libdir
="$libdir"
10035 case "$found_la" in
10036 */* |
*\\*) .
"$found_la" ;;
10037 *) .
"./$found_la" ;;
10039 libdir
="$save_libdir"
10040 for dep
in $dependency_libs; do
10043 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10044 if test "X$additional_libdir" != "X/usr/lib"; then
10046 if test "X$additional_libdir" = "X/usr/local/lib"; then
10047 if test -n "$GCC"; then
10049 linux
*) haveit
=yes;;
10053 if test -z "$haveit"; then
10055 for x
in $LDFLAGS $LIBMPFR; do
10057 acl_save_prefix
="$prefix"
10058 prefix
="$acl_final_prefix"
10059 acl_save_exec_prefix
="$exec_prefix"
10060 exec_prefix
="$acl_final_exec_prefix"
10062 exec_prefix
="$acl_save_exec_prefix"
10063 prefix
="$acl_save_prefix"
10065 if test "X$x" = "X-L$additional_libdir"; then
10070 if test -z "$haveit"; then
10071 if test -d "$additional_libdir"; then
10072 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$additional_libdir"
10076 for x
in $LDFLAGS $LTLIBMPFR; do
10078 acl_save_prefix
="$prefix"
10079 prefix
="$acl_final_prefix"
10080 acl_save_exec_prefix
="$exec_prefix"
10081 exec_prefix
="$acl_final_exec_prefix"
10083 exec_prefix
="$acl_save_exec_prefix"
10084 prefix
="$acl_save_prefix"
10086 if test "X$x" = "X-L$additional_libdir"; then
10091 if test -z "$haveit"; then
10092 if test -d "$additional_libdir"; then
10093 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$additional_libdir"
10100 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10101 if test "$enable_rpath" != no
; then
10103 for x
in $rpathdirs; do
10104 if test "X$x" = "X$dir"; then
10109 if test -z "$haveit"; then
10110 rpathdirs
="$rpathdirs $dir"
10113 for x
in $ltrpathdirs; do
10114 if test "X$x" = "X$dir"; then
10119 if test -z "$haveit"; then
10120 ltrpathdirs
="$ltrpathdirs $dir"
10125 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10128 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10131 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$dep"
10132 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$dep"
10138 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10139 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l$name"
10145 if test "X$rpathdirs" != "X"; then
10146 if test -n "$hardcode_libdir_separator"; then
10148 for found_dir
in $rpathdirs; do
10149 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10151 acl_save_libdir
="$libdir"
10153 eval flag
=\"$hardcode_libdir_flag_spec\"
10154 libdir
="$acl_save_libdir"
10155 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10157 for found_dir
in $rpathdirs; do
10158 acl_save_libdir
="$libdir"
10159 libdir
="$found_dir"
10160 eval flag
=\"$hardcode_libdir_flag_spec\"
10161 libdir
="$acl_save_libdir"
10162 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10166 if test "X$ltrpathdirs" != "X"; then
10167 for found_dir
in $ltrpathdirs; do
10168 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-R$found_dir"
10173 ac_save_CPPFLAGS
="$CPPFLAGS"
10175 for element
in $INCMPFR; do
10177 for x
in $CPPFLAGS; do
10179 acl_save_prefix
="$prefix"
10180 prefix
="$acl_final_prefix"
10181 acl_save_exec_prefix
="$exec_prefix"
10182 exec_prefix
="$acl_final_exec_prefix"
10184 exec_prefix
="$acl_save_exec_prefix"
10185 prefix
="$acl_save_prefix"
10187 if test "X$x" = "X$element"; then
10192 if test -z "$haveit"; then
10193 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpfr" >&5
10199 $as_echo_n "checking for libmpfr... " >&6; }
10200 if ${ac_cv_libmpfr+:} false
; then :
10201 $as_echo_n "(cached) " >&6
10204 ac_save_LIBS
="$LIBS"
10205 LIBS
="$LIBS $LIBMPFR"
10206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10207 /* end confdefs.h. */
10212 mpfr_exp_t exp; mpfr_t x;
10213 mpfr_frexp (&exp, x, x, MPFR_RNDN);
10218 if ac_fn_c_try_link
"$LINENO"; then :
10223 rm -f core conftest.err conftest.
$ac_objext \
10224 conftest
$ac_exeext conftest.
$ac_ext
10225 LIBS
="$ac_save_LIBS"
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmpfr" >&5
10229 $as_echo "$ac_cv_libmpfr" >&6; }
10230 if test "$ac_cv_libmpfr" = yes; then
10233 $as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libmpfr" >&5
10236 $as_echo_n "checking how to link with libmpfr... " >&6; }
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPFR" >&5
10238 $as_echo "$LIBMPFR" >&6; }
10241 CPPFLAGS
="$ac_save_CPPFLAGS"
10251 if test "$HAVE_LIBMPFR" != yes; then
10252 if test "$with_mpfr" = yes; then
10253 as_fn_error $?
"MPFR is missing or unusable" "$LINENO" 5
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR is missing or unusable; some features may be unavailable." >&5
10256 $as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;}
10261 # --------------------- #
10262 # Check for libpython. #
10263 # --------------------- #
10270 # Check whether --with-python was given.
10271 if test "${with_python+set}" = set; then :
10272 withval
=$with_python;
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10278 $as_echo_n "checking whether to use python... " >&6; }
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10280 $as_echo "$with_python" >&6; }
10282 if test "${with_python}" = no
; then
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10284 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10287 case "${with_python}" in
10289 if test -d ${with_python}; then
10290 # Assume the python binary is ${with_python}/bin/python.
10291 python_prog
="${with_python}/bin/python"
10293 # If python does not exit ${with_python}/bin, then try in
10294 # ${with_python}. On Windows/MinGW, this is where the Python
10296 if test ! -x "${python_prog}"; then
10297 python_prog
="${with_python}/python"
10300 if test ! -x "${python_prog}"; then
10301 # Fall back to gdb 7.0/7.1 behaviour.
10302 python_prog
=missing
10303 python_prefix
=${with_python}
10305 elif test -x "${with_python}"; then
10306 # While we can't run python compiled for $host (unless host == build),
10307 # the user could write a script that provides the needed information,
10308 # so we support that.
10309 python_prog
=${with_python}
10312 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
10316 # Disallow --with-python=foo/bar.
10317 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
10320 # The user has either specified auto, yes, or the name of the python
10321 # program assumed to be in $PATH.
10323 case "${with_python}" in
10325 if test ${build} = ${host}; then
10326 # Extract the first word of "python", so it can be a program name with args.
10327 set dummy python
; ac_word
=$2
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10329 $as_echo_n "checking for $ac_word... " >&6; }
10330 if ${ac_cv_path_python_prog_path+:} false
; then :
10331 $as_echo_n "(cached) " >&6
10333 case $python_prog_path in
10335 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10338 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10339 for as_dir
in $PATH
10342 test -z "$as_dir" && as_dir
=.
10343 for ac_exec_ext
in '' $ac_executable_extensions; do
10344 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10345 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10353 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10357 python_prog_path
=$ac_cv_path_python_prog_path
10358 if test -n "$python_prog_path"; then
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10360 $as_echo "$python_prog_path" >&6; }
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10363 $as_echo "no" >&6; }
10367 if test "${python_prog_path}" = missing
; then
10368 python_prog
=missing
10370 python_prog
=${python_prog_path}
10373 # Not much we can do except assume the cross-compiler will find the
10375 python_prog
=missing
10379 # While we can't run python compiled for $host (unless host == build),
10380 # the user could write a script that provides the needed information,
10381 # so we support that.
10382 python_prog
="${with_python}"
10383 # Extract the first word of "${python_prog}", so it can be a program name with args.
10384 set dummy
${python_prog}; ac_word
=$2
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10386 $as_echo_n "checking for $ac_word... " >&6; }
10387 if ${ac_cv_path_python_prog_path+:} false
; then :
10388 $as_echo_n "(cached) " >&6
10390 case $python_prog_path in
10392 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10395 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10396 for as_dir
in $PATH
10399 test -z "$as_dir" && as_dir
=.
10400 for ac_exec_ext
in '' $ac_executable_extensions; do
10401 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10402 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10410 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10414 python_prog_path
=$ac_cv_path_python_prog_path
10415 if test -n "$python_prog_path"; then
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10417 $as_echo "$python_prog_path" >&6; }
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10420 $as_echo "no" >&6; }
10424 if test "${python_prog_path}" = missing
; then
10425 as_fn_error $?
"unable to find python program ${python_prog}" "$LINENO" 5
10431 if test "${python_prog}" != missing
; then
10432 # We have a python program to use, but it may be too old.
10433 # Don't flag an error for --with-python=auto (the default).
10434 have_python_config
=yes
10435 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
10436 if test $?
!= 0; then
10437 have_python_config
=failed
10438 if test "${with_python}" != auto
; then
10439 as_fn_error $?
"failure running python-config --includes" "$LINENO" 5
10442 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10443 if test $?
!= 0; then
10444 have_python_config
=failed
10445 if test "${with_python}" != auto
; then
10446 as_fn_error $?
"failure running python-config --ldflags" "$LINENO" 5
10449 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10450 if test $?
!= 0; then
10451 have_python_config
=failed
10452 if test "${with_python}" != auto
; then
10453 as_fn_error $?
"failure running python-config --exec-prefix" "$LINENO" 5
10457 # We do not have a python executable we can use to determine where
10458 # to find the Python headers and libs. We cannot guess the include
10459 # path from the python_prefix either, because that include path
10460 # depends on the Python version. So, there is nothing much we can
10461 # do except assume that the compiler will be able to find those files.
10464 have_python_config
=no
10467 # If we have python-config, only try the configuration it provides.
10468 # Otherwise fallback on the old way of trying different versions of
10472 if test "${have_python_config}" = yes; then
10473 # Determine the Python version by extracting "-lpython<version>"
10474 # part of the python_libs. <version> is usually X.Y with X and Y
10475 # being decimal numbers, but can also be XY (seen on Windows).
10477 # The extraction is performed using sed with a regular expression.
10478 # Initially, the regexp used was using the '?' quantifier to make
10479 # the dot in the version number optional. Unfortunately, this
10480 # does not work with non-GNU versions of sed because, because of
10481 # what looks like a limitation (the '?' quantifier does not work
10482 # with back-references). We work around this limitation by using
10483 # the '*' quantifier instead. It means that, in theory, we might
10484 # match unexpected version strings such as "-lpython2..7", but
10485 # this seems unlikely in practice. And even if that happens,
10486 # an error will be triggered later on, when checking that version
10488 python_version
=`echo " ${python_libs} " \
10489 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
10490 case "${python_version}" in
10493 version
=${python_version}
10495 new_CPPFLAGS
=${python_includes}
10496 new_LIBS
=${python_libs}
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10498 $as_echo_n "checking for ${version}... " >&6; }
10499 save_CPPFLAGS
=$CPPFLAGS
10501 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10502 LIBS
="$new_LIBS $LIBS"
10503 found_usable_python
=no
10504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10505 /* end confdefs.h. */
10506 #include "Python.h"
10515 if ac_fn_c_try_link
"$LINENO"; then :
10516 have_libpython
=${version}
10517 found_usable_python
=yes
10518 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10519 PYTHON_LIBS
=$new_LIBS
10521 rm -f core conftest.err conftest.
$ac_objext \
10522 conftest
$ac_exeext conftest.
$ac_ext
10523 CPPFLAGS
=$save_CPPFLAGS
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10526 $as_echo "${found_usable_python}" >&6; }
10530 as_fn_error $?
"unable to determine python version from ${python_libs}" "$LINENO" 5
10533 elif test "${have_python_config}" != failed
; then
10534 if test "${have_libpython}" = no
; then
10538 new_CPPFLAGS
=${python_includes}
10539 new_LIBS
="-lpython2.7 ${python_libs}"
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10541 $as_echo_n "checking for ${version}... " >&6; }
10542 save_CPPFLAGS
=$CPPFLAGS
10544 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10545 LIBS
="$new_LIBS $LIBS"
10546 found_usable_python
=no
10547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10548 /* end confdefs.h. */
10549 #include "Python.h"
10558 if ac_fn_c_try_link
"$LINENO"; then :
10559 have_libpython
=${version}
10560 found_usable_python
=yes
10561 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10562 PYTHON_LIBS
=$new_LIBS
10564 rm -f core conftest.err conftest.
$ac_objext \
10565 conftest
$ac_exeext conftest.
$ac_ext
10566 CPPFLAGS
=$save_CPPFLAGS
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10569 $as_echo "${found_usable_python}" >&6; }
10572 if test "${have_libpython}" = no
; then
10576 new_CPPFLAGS
=${python_includes}
10577 new_LIBS
="-lpython2.6 ${python_libs}"
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10579 $as_echo_n "checking for ${version}... " >&6; }
10580 save_CPPFLAGS
=$CPPFLAGS
10582 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10583 LIBS
="$new_LIBS $LIBS"
10584 found_usable_python
=no
10585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10586 /* end confdefs.h. */
10587 #include "Python.h"
10596 if ac_fn_c_try_link
"$LINENO"; then :
10597 have_libpython
=${version}
10598 found_usable_python
=yes
10599 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10600 PYTHON_LIBS
=$new_LIBS
10602 rm -f core conftest.err conftest.
$ac_objext \
10603 conftest
$ac_exeext conftest.
$ac_ext
10604 CPPFLAGS
=$save_CPPFLAGS
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10607 $as_echo "${found_usable_python}" >&6; }
10610 if test ${have_libpython} = no
; then
10614 new_CPPFLAGS
=${python_includes}
10615 new_LIBS
="-lpython2.5 ${python_libs}"
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10617 $as_echo_n "checking for ${version}... " >&6; }
10618 save_CPPFLAGS
=$CPPFLAGS
10620 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10621 LIBS
="$new_LIBS $LIBS"
10622 found_usable_python
=no
10623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10624 /* end confdefs.h. */
10625 #include "Python.h"
10634 if ac_fn_c_try_link
"$LINENO"; then :
10635 have_libpython
=${version}
10636 found_usable_python
=yes
10637 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10638 PYTHON_LIBS
=$new_LIBS
10640 rm -f core conftest.err conftest.
$ac_objext \
10641 conftest
$ac_exeext conftest.
$ac_ext
10642 CPPFLAGS
=$save_CPPFLAGS
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10645 $as_echo "${found_usable_python}" >&6; }
10648 if test ${have_libpython} = no
; then
10652 new_CPPFLAGS
=${python_includes}
10653 new_LIBS
="-lpython2.4 ${python_libs}"
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10655 $as_echo_n "checking for ${version}... " >&6; }
10656 save_CPPFLAGS
=$CPPFLAGS
10658 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10659 LIBS
="$new_LIBS $LIBS"
10660 found_usable_python
=no
10661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10662 /* end confdefs.h. */
10663 #include "Python.h"
10672 if ac_fn_c_try_link
"$LINENO"; then :
10673 have_libpython
=${version}
10674 found_usable_python
=yes
10675 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10676 PYTHON_LIBS
=$new_LIBS
10678 rm -f core conftest.err conftest.
$ac_objext \
10679 conftest
$ac_exeext conftest.
$ac_ext
10680 CPPFLAGS
=$save_CPPFLAGS
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10683 $as_echo "${found_usable_python}" >&6; }
10687 if test "${have_libpython}" = python2.7
-o "${have_libpython}" = python27
; then
10689 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
10691 elif test "${have_libpython}" = python2.6
-o "${have_libpython}" = python26
; then
10693 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
10695 elif test "${have_libpython}" = python2.5
-o "${have_libpython}" = python25
; then
10697 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
10699 elif test "${have_libpython}" = python2.4
-o "${have_libpython}" = python24
; then
10701 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
10705 if test "${have_libpython}" = no
; then
10706 case "${with_python}" in
10708 as_fn_error $?
"python is missing or unusable" "$LINENO" 5
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10712 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10715 as_fn_error $?
"no usable python found at ${with_python}" "$LINENO" 5
10719 if test -n "${python_prefix}"; then
10721 cat >>confdefs.h
<<_ACEOF
10722 #define WITH_PYTHON_PATH "${python_prefix}"
10726 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
10727 if test "x$prefix" = xNONE
; then
10728 test_prefix
=/usr
/local
10730 test_prefix
=$prefix
10733 test_prefix
=$exec_prefix
10736 case ${python_prefix} in
10737 "${test_prefix}"|
"${test_prefix}/"*|\
10738 '${exec_prefix}'|
'${exec_prefix}/'*)
10743 cat >>confdefs.h
<<_ACEOF
10744 #define PYTHON_PATH_RELOCATABLE $value
10752 if test "${have_libpython}" != no
; then
10754 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10756 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10757 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10758 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
10759 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
10760 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
10762 # Flags needed to compile Python code (taken from python-config --cflags).
10763 # We cannot call python-config directly because it will output whatever was
10764 # used when compiling the Python interpreter itself, including flags which
10765 # would make the python-related objects be compiled differently from the
10766 # rest of GDB (e.g., -O2 and -fPIC).
10767 if test "${GCC}" = yes; then
10768 tentative_python_cflags
="-fno-strict-aliasing -DNDEBUG -fwrapv"
10771 if test "x${tentative_python_cflags}" != x
; then
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10773 $as_echo_n "checking compiler flags for python code... " >&6; }
10774 for flag
in ${tentative_python_cflags}; do
10775 # Check that the compiler accepts it
10776 saved_CFLAGS
="$CFLAGS"
10777 CFLAGS
="$CFLAGS $flag"
10778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10779 /* end confdefs.h. */
10789 if ac_fn_c_try_compile
"$LINENO"; then :
10790 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
10792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10793 CFLAGS
="$saved_CFLAGS"
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
10796 $as_echo "${PYTHON_CFLAGS}" >&6; }
10799 # On x64 Windows, Python's include headers, and pyconfig.h in
10800 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
10801 # version of Windows. Unfortunately, MS_WIN64 is only defined if
10802 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
10803 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
10804 # The issue was reported to the Python community, but still isn't
10805 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
10807 case "$gdb_host" in
10809 if test "${GCC}" = yes; then
10810 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
10815 # Note that "python -m threading" cannot be used to check for
10816 # threading support due to a bug in Python 2.7.3
10817 # (http://bugs.python.org/issue15567).
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
10819 $as_echo_n "checking whether python supports threads... " >&6; }
10820 saved_CPPFLAGS
="${CPPFLAGS}"
10821 CPPFLAGS
="${PYTHON_CPPFLAGS}"
10822 # Note that the test is reversed so that python_has_threads=yes on
10823 # unexpected failures.
10824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10825 /* end confdefs.h. */
10827 #include <Python.h>
10833 if ac_fn_c_try_cpp
"$LINENO"; then :
10834 python_has_threads
=no
10836 python_has_threads
=yes
10838 rm -f conftest.err conftest.i conftest.
$ac_ext
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
10840 $as_echo "${python_has_threads}" >&6; }
10841 CPPFLAGS
="${saved_CPPFLAGS}"
10843 # Even if Python support is not compiled in, we need to have this file
10844 # included so that the "python" command, et.al., still exists.
10845 CONFIG_OBS
="$CONFIG_OBS python/python.o"
10846 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
10849 # Work around Python http://bugs.python.org/issue10112. See also
10850 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
10851 # no effect. Note that the only test after this that uses Python is
10852 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
10853 # run without -export-dynamic too.
10854 PYTHON_LIBS
=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
10859 if test "${have_libpython}" != no
; then
10861 HAVE_PYTHON_FALSE
='#'
10863 HAVE_PYTHON_TRUE
='#'
10868 # -------------------- #
10869 # Check for libguile. #
10870 # -------------------- #
10877 # Check whether --with-guile was given.
10878 if test "${with_guile+set}" = set; then :
10879 withval
=$with_guile;
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
10885 $as_echo_n "checking whether to use guile... " >&6; }
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
10887 $as_echo "$with_guile" >&6; }
10889 # Extract the first word of "pkg-config", so it can be a program name with args.
10890 set dummy pkg-config
; ac_word
=$2
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10892 $as_echo_n "checking for $ac_word... " >&6; }
10893 if ${ac_cv_path_pkg_config_prog_path+:} false
; then :
10894 $as_echo_n "(cached) " >&6
10896 case $pkg_config_prog_path in
10898 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
10901 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10902 for as_dir
in $PATH
10905 test -z "$as_dir" && as_dir
=.
10906 for ac_exec_ext
in '' $ac_executable_extensions; do
10907 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10908 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10916 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
10920 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
10921 if test -n "$pkg_config_prog_path"; then
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
10923 $as_echo "$pkg_config_prog_path" >&6; }
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10926 $as_echo "no" >&6; }
10931 try_guile_versions
="guile-2.0"
10933 case "${with_guile}" in
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
10936 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
10939 if test "${pkg_config_prog_path}" = "missing"; then
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
10941 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
10944 pkg_config
=${pkg_config_prog_path}
10945 guile_version_list
=${try_guile_versions}
10948 found_usable_guile
=checking
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
10950 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
10951 for guile_version
in ${guile_version_list}; do
10952 ${pkg_config} --exists ${guile_version} 2>/dev
/null
10953 if test $?
!= 0; then
10956 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
10957 if test $?
!= 0; then
10958 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
10960 new_LIBS
=`${pkg_config} --libs ${guile_version}`
10961 if test $?
!= 0; then
10962 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
10964 found_usable_guile
=${guile_version}
10967 if test "${found_usable_guile}" = "checking"; then
10968 if test "${flag_errors}" = "yes"; then
10969 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
10971 found_usable_guile
=no
10974 if test "${found_usable_guile}" != no
; then
10975 save_CPPFLAGS
=$CPPFLAGS
10977 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10978 LIBS
="$LIBS $new_LIBS"
10979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10980 /* end confdefs.h. */
10981 #include "libguile.h"
10990 if ac_fn_c_try_link
"$LINENO"; then :
10992 GUILE_CPPFLAGS
=$new_CPPFLAGS
10993 GUILE_LIBS
=$new_LIBS
10995 found_usable_guile
=no
10997 rm -f core conftest.err conftest.
$ac_objext \
10998 conftest
$ac_exeext conftest.
$ac_ext
10999 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11000 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11002 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11007 CPPFLAGS
=$save_CPPFLAGS
11009 if test "${found_usable_guile}" = no
; then
11010 if test "${flag_errors}" = yes; then
11011 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11013 as_fn_error $?
"linking guile version ${guile_version} test program failed
11014 See \`config.log' for more details" "$LINENO" 5; }
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11019 $as_echo "${found_usable_guile}" >&6; }
11024 if test "${pkg_config_prog_path}" = "missing"; then
11025 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11028 pkg_config
=${pkg_config_prog_path}
11029 guile_version_list
=${try_guile_versions}
11032 found_usable_guile
=checking
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11034 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11035 for guile_version
in ${guile_version_list}; do
11036 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11037 if test $?
!= 0; then
11040 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11041 if test $?
!= 0; then
11042 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11044 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11045 if test $?
!= 0; then
11046 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11048 found_usable_guile
=${guile_version}
11051 if test "${found_usable_guile}" = "checking"; then
11052 if test "${flag_errors}" = "yes"; then
11053 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11055 found_usable_guile
=no
11058 if test "${found_usable_guile}" != no
; then
11059 save_CPPFLAGS
=$CPPFLAGS
11061 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11062 LIBS
="$LIBS $new_LIBS"
11063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11064 /* end confdefs.h. */
11065 #include "libguile.h"
11074 if ac_fn_c_try_link
"$LINENO"; then :
11076 GUILE_CPPFLAGS
=$new_CPPFLAGS
11077 GUILE_LIBS
=$new_LIBS
11079 found_usable_guile
=no
11081 rm -f core conftest.err conftest.
$ac_objext \
11082 conftest
$ac_exeext conftest.
$ac_ext
11083 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11084 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11086 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11091 CPPFLAGS
=$save_CPPFLAGS
11093 if test "${found_usable_guile}" = no
; then
11094 if test "${flag_errors}" = yes; then
11095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11097 as_fn_error $?
"linking guile version ${guile_version} test program failed
11098 See \`config.log' for more details" "$LINENO" 5; }
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11103 $as_echo "${found_usable_guile}" >&6; }
11107 if test -x "${with_guile}"; then
11109 pkg_config
=${with_guile}
11110 guile_version_list
=${try_guile_versions}
11113 found_usable_guile
=checking
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11115 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11116 for guile_version
in ${guile_version_list}; do
11117 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11118 if test $?
!= 0; then
11121 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11122 if test $?
!= 0; then
11123 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11125 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11126 if test $?
!= 0; then
11127 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11129 found_usable_guile
=${guile_version}
11132 if test "${found_usable_guile}" = "checking"; then
11133 if test "${flag_errors}" = "yes"; then
11134 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11136 found_usable_guile
=no
11139 if test "${found_usable_guile}" != no
; then
11140 save_CPPFLAGS
=$CPPFLAGS
11142 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11143 LIBS
="$LIBS $new_LIBS"
11144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11145 /* end confdefs.h. */
11146 #include "libguile.h"
11155 if ac_fn_c_try_link
"$LINENO"; then :
11157 GUILE_CPPFLAGS
=$new_CPPFLAGS
11158 GUILE_LIBS
=$new_LIBS
11160 found_usable_guile
=no
11162 rm -f core conftest.err conftest.
$ac_objext \
11163 conftest
$ac_exeext conftest.
$ac_ext
11164 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11165 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11167 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11172 CPPFLAGS
=$save_CPPFLAGS
11174 if test "${found_usable_guile}" = no
; then
11175 if test "${flag_errors}" = yes; then
11176 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11178 as_fn_error $?
"linking guile version ${guile_version} test program failed
11179 See \`config.log' for more details" "$LINENO" 5; }
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11184 $as_echo "${found_usable_guile}" >&6; }
11187 as_fn_error $?
"Guile config program not executable: ${with_guile}" "$LINENO" 5
11191 # Disallow --with=guile="" and --with-guile=foo/bar.
11192 as_fn_error $?
"invalid value for --with-guile" "$LINENO" 5
11195 # A space separate list of guile versions to try, in order.
11196 if test "${pkg_config_prog_path}" = "missing"; then
11197 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11200 pkg_config
=${pkg_config_prog_path}
11201 guile_version_list
=${with_guile}
11204 found_usable_guile
=checking
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11206 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11207 for guile_version
in ${guile_version_list}; do
11208 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11209 if test $?
!= 0; then
11212 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11213 if test $?
!= 0; then
11214 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11216 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11217 if test $?
!= 0; then
11218 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11220 found_usable_guile
=${guile_version}
11223 if test "${found_usable_guile}" = "checking"; then
11224 if test "${flag_errors}" = "yes"; then
11225 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11227 found_usable_guile
=no
11230 if test "${found_usable_guile}" != no
; then
11231 save_CPPFLAGS
=$CPPFLAGS
11233 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11234 LIBS
="$LIBS $new_LIBS"
11235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11236 /* end confdefs.h. */
11237 #include "libguile.h"
11246 if ac_fn_c_try_link
"$LINENO"; then :
11248 GUILE_CPPFLAGS
=$new_CPPFLAGS
11249 GUILE_LIBS
=$new_LIBS
11251 found_usable_guile
=no
11253 rm -f core conftest.err conftest.
$ac_objext \
11254 conftest
$ac_exeext conftest.
$ac_ext
11255 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11256 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11258 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11263 CPPFLAGS
=$save_CPPFLAGS
11265 if test "${found_usable_guile}" = no
; then
11266 if test "${flag_errors}" = yes; then
11267 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11269 as_fn_error $?
"linking guile version ${guile_version} test program failed
11270 See \`config.log' for more details" "$LINENO" 5; }
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11275 $as_echo "${found_usable_guile}" >&6; }
11280 if test "${have_libguile}" != no
; then
11281 case "${with_guile}" in
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11285 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11286 if ${ac_cv_guild_program_name+:} false
; then :
11287 $as_echo_n "(cached) " >&6
11289 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
11291 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11292 # the 'guild' and 'bindir' variables. In that case, try to guess
11293 # what the program name is, at the risk of getting it wrong if
11294 # Guile was configured with '--program-suffix' or similar.
11295 if test "x$ac_cv_guild_program_name" = "x"; then
11296 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
11297 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11302 $as_echo "$ac_cv_guild_program_name" >&6; }
11304 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11305 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11308 GUILD
="$ac_cv_guild_program_name"
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11315 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11316 if ${ac_cv_guild_program_name+:} false
; then :
11317 $as_echo_n "(cached) " >&6
11319 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
11321 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11322 # the 'guild' and 'bindir' variables. In that case, try to guess
11323 # what the program name is, at the risk of getting it wrong if
11324 # Guile was configured with '--program-suffix' or similar.
11325 if test "x$ac_cv_guild_program_name" = "x"; then
11326 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
11327 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11332 $as_echo "$ac_cv_guild_program_name" >&6; }
11334 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11335 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11338 GUILD
="$ac_cv_guild_program_name"
11345 if test "$cross_compiling" = no
; then
11348 GUILD_TARGET_FLAG
="--target=$host"
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
11355 $as_echo_n "checking whether guild supports this host... " >&6; }
11356 if ${ac_cv_guild_ok+:} false
; then :
11357 $as_echo_n "(cached) " >&6
11359 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
11360 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
11367 $as_echo "$ac_cv_guild_ok" >&6; }
11369 if test "$ac_cv_guild_ok" = no
; then
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
11372 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
11376 if test "${have_libguile}" != no
; then
11378 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
11380 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
11381 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
11382 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
11383 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
11384 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
11387 save_CPPFLAGS
="$CPPFLAGS"
11389 CPPFLAGS
="$GUILE_CPPFLAGS"
11390 for ac_func
in scm_new_smob
11392 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
11393 if test "x$ac_cv_func_scm_new_smob" = xyes
; then :
11394 cat >>confdefs.h
<<_ACEOF
11395 #define HAVE_SCM_NEW_SMOB 1
11402 CPPFLAGS
="$save_CPPFLAGS"
11404 # Even if Guile support is not compiled in, we need to have these files
11406 CONFIG_OBS
="$CONFIG_OBS guile/guile.o"
11407 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
11411 if test "${have_libguile}" != no
; then
11413 HAVE_GUILE_FALSE
='#'
11415 HAVE_GUILE_TRUE
='#'
11420 # --------------------- #
11421 # Check for libmcheck. #
11422 # --------------------- #
11424 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
11425 # but turn it off if Python is enabled with threads, since -lmcheck is
11426 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
11427 # and for releases.
11428 if test \
( "${have_libpython}" = "no" -o "${python_has_threads}" = "no" \
) \
11429 && $development; then
11430 libmcheck_default
=yes
11432 libmcheck_default
=no
11435 # Check whether --enable-libmcheck was given.
11436 if test "${enable_libmcheck+set}" = set; then :
11437 enableval
=$enable_libmcheck; case "${enableval}" in
11438 yes | y
) ENABLE_LIBMCHECK
="yes" ;;
11439 no | n
) ENABLE_LIBMCHECK
="no" ;;
11440 *) as_fn_error $?
"bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
11445 if test -z "${ENABLE_LIBMCHECK}"; then
11446 ENABLE_LIBMCHECK
=${libmcheck_default}
11449 if test "$ENABLE_LIBMCHECK" = "yes" ; then
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
11451 $as_echo_n "checking for main in -lmcheck... " >&6; }
11452 if ${ac_cv_lib_mcheck_main+:} false
; then :
11453 $as_echo_n "(cached) " >&6
11455 ac_check_lib_save_LIBS
=$LIBS
11456 LIBS
="-lmcheck $LIBS"
11457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11458 /* end confdefs.h. */
11469 if ac_fn_c_try_link
"$LINENO"; then :
11470 ac_cv_lib_mcheck_main
=yes
11472 ac_cv_lib_mcheck_main
=no
11474 rm -f core conftest.err conftest.
$ac_objext \
11475 conftest
$ac_exeext conftest.
$ac_ext
11476 LIBS
=$ac_check_lib_save_LIBS
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
11479 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
11480 if test "x$ac_cv_lib_mcheck_main" = xyes
; then :
11481 cat >>confdefs.h
<<_ACEOF
11482 #define HAVE_LIBMCHECK 1
11485 LIBS
="-lmcheck $LIBS"
11492 if test "$ENABLE_LIBMCHECK" = "yes" \
11493 -a "${have_libpython}" != "no" \
11494 -a "${python_has_threads}" = "yes" ; then
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
11496 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
11500 # Check whether --with-intel_pt was given.
11501 if test "${with_intel_pt+set}" = set; then :
11502 withval
=$with_intel_pt;
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
11508 $as_echo_n "checking whether to use intel pt... " >&6; }
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
11510 $as_echo "$with_intel_pt" >&6; }
11512 if test "${with_intel_pt}" = no
; then
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
11514 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
11517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11518 /* end confdefs.h. */
11520 #include <linux/perf_event.h>
11521 #ifndef PERF_ATTR_SIZE_VER5
11526 if ac_fn_c_try_cpp
"$LINENO"; then :
11531 rm -f conftest.err conftest.i conftest.
$ac_ext
11532 if test "$perf_event" != yes; then
11533 if test "$with_intel_pt" = yes; then
11534 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
11537 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
11551 acl_save_prefix
="$prefix"
11552 prefix
="$acl_final_prefix"
11553 acl_save_exec_prefix
="$exec_prefix"
11554 exec_prefix
="$acl_final_exec_prefix"
11556 eval additional_includedir
=\"$includedir\"
11557 eval additional_libdir
=\"$libdir\"
11559 exec_prefix
="$acl_save_exec_prefix"
11560 prefix
="$acl_save_prefix"
11563 # Check whether --with-libipt-prefix was given.
11564 if test "${with_libipt_prefix+set}" = set; then :
11565 withval
=$with_libipt_prefix;
11566 if test "X$withval" = "Xno"; then
11569 if test "X$withval" = "X"; then
11571 acl_save_prefix
="$prefix"
11572 prefix
="$acl_final_prefix"
11573 acl_save_exec_prefix
="$exec_prefix"
11574 exec_prefix
="$acl_final_exec_prefix"
11576 eval additional_includedir
=\"$includedir\"
11577 eval additional_libdir
=\"$libdir\"
11579 exec_prefix
="$acl_save_exec_prefix"
11580 prefix
="$acl_save_prefix"
11583 additional_includedir
="$withval/include"
11584 additional_libdir
="$withval/lib"
11595 names_already_handled
=
11596 names_next_round
='ipt '
11597 while test -n "$names_next_round"; do
11598 names_this_round
="$names_next_round"
11600 for name
in $names_this_round; do
11602 for n
in $names_already_handled; do
11603 if test "$n" = "$name"; then
11604 already_handled
=yes
11608 if test -z "$already_handled"; then
11609 names_already_handled
="$names_already_handled $name"
11610 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11611 eval value
=\"\
$HAVE_LIB$uppername\"
11612 if test -n "$value"; then
11613 if test "$value" = yes; then
11614 eval value
=\"\
$LIB$uppername\"
11615 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
11616 eval value
=\"\
$LTLIB$uppername\"
11617 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
11626 if test $use_additional = yes; then
11627 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11628 found_dir
="$additional_libdir"
11629 found_so
="$additional_libdir/lib$name.$shlibext"
11630 if test -f "$additional_libdir/lib$name.la"; then
11631 found_la
="$additional_libdir/lib$name.la"
11634 if test -f "$additional_libdir/lib$name.$libext"; then
11635 found_dir
="$additional_libdir"
11636 found_a
="$additional_libdir/lib$name.$libext"
11637 if test -f "$additional_libdir/lib$name.la"; then
11638 found_la
="$additional_libdir/lib$name.la"
11643 if test "X$found_dir" = "X"; then
11644 for x
in $LDFLAGS $LTLIBIPT; do
11646 acl_save_prefix
="$prefix"
11647 prefix
="$acl_final_prefix"
11648 acl_save_exec_prefix
="$exec_prefix"
11649 exec_prefix
="$acl_final_exec_prefix"
11651 exec_prefix
="$acl_save_exec_prefix"
11652 prefix
="$acl_save_prefix"
11656 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11657 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11659 found_so
="$dir/lib$name.$shlibext"
11660 if test -f "$dir/lib$name.la"; then
11661 found_la
="$dir/lib$name.la"
11664 if test -f "$dir/lib$name.$libext"; then
11666 found_a
="$dir/lib$name.$libext"
11667 if test -f "$dir/lib$name.la"; then
11668 found_la
="$dir/lib$name.la"
11674 if test "X$found_dir" != "X"; then
11679 if test "X$found_dir" != "X"; then
11680 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
11681 if test "X$found_so" != "X"; then
11682 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11683 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11686 for x
in $ltrpathdirs; do
11687 if test "X$x" = "X$found_dir"; then
11692 if test -z "$haveit"; then
11693 ltrpathdirs
="$ltrpathdirs $found_dir"
11695 if test "$hardcode_direct" = yes; then
11696 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11698 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11699 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11701 for x
in $rpathdirs; do
11702 if test "X$x" = "X$found_dir"; then
11707 if test -z "$haveit"; then
11708 rpathdirs
="$rpathdirs $found_dir"
11712 for x
in $LDFLAGS $LIBIPT; do
11714 acl_save_prefix
="$prefix"
11715 prefix
="$acl_final_prefix"
11716 acl_save_exec_prefix
="$exec_prefix"
11717 exec_prefix
="$acl_final_exec_prefix"
11719 exec_prefix
="$acl_save_exec_prefix"
11720 prefix
="$acl_save_prefix"
11722 if test "X$x" = "X-L$found_dir"; then
11727 if test -z "$haveit"; then
11728 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
11730 if test "$hardcode_minus_L" != no
; then
11731 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11733 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
11739 if test "X$found_a" != "X"; then
11740 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
11742 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
11745 additional_includedir
=
11746 case "$found_dir" in
11748 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11749 additional_includedir
="$basedir/include"
11752 if test "X$additional_includedir" != "X"; then
11753 if test "X$additional_includedir" != "X/usr/include"; then
11755 if test "X$additional_includedir" = "X/usr/local/include"; then
11756 if test -n "$GCC"; then
11758 linux
*) haveit
=yes;;
11762 if test -z "$haveit"; then
11763 for x
in $CPPFLAGS $INCIPT; do
11765 acl_save_prefix
="$prefix"
11766 prefix
="$acl_final_prefix"
11767 acl_save_exec_prefix
="$exec_prefix"
11768 exec_prefix
="$acl_final_exec_prefix"
11770 exec_prefix
="$acl_save_exec_prefix"
11771 prefix
="$acl_save_prefix"
11773 if test "X$x" = "X-I$additional_includedir"; then
11778 if test -z "$haveit"; then
11779 if test -d "$additional_includedir"; then
11780 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
11786 if test -n "$found_la"; then
11787 save_libdir
="$libdir"
11788 case "$found_la" in
11789 */* |
*\\*) .
"$found_la" ;;
11790 *) .
"./$found_la" ;;
11792 libdir
="$save_libdir"
11793 for dep
in $dependency_libs; do
11796 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11797 if test "X$additional_libdir" != "X/usr/lib"; then
11799 if test "X$additional_libdir" = "X/usr/local/lib"; then
11800 if test -n "$GCC"; then
11802 linux
*) haveit
=yes;;
11806 if test -z "$haveit"; then
11808 for x
in $LDFLAGS $LIBIPT; do
11810 acl_save_prefix
="$prefix"
11811 prefix
="$acl_final_prefix"
11812 acl_save_exec_prefix
="$exec_prefix"
11813 exec_prefix
="$acl_final_exec_prefix"
11815 exec_prefix
="$acl_save_exec_prefix"
11816 prefix
="$acl_save_prefix"
11818 if test "X$x" = "X-L$additional_libdir"; then
11823 if test -z "$haveit"; then
11824 if test -d "$additional_libdir"; then
11825 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
11829 for x
in $LDFLAGS $LTLIBIPT; do
11831 acl_save_prefix
="$prefix"
11832 prefix
="$acl_final_prefix"
11833 acl_save_exec_prefix
="$exec_prefix"
11834 exec_prefix
="$acl_final_exec_prefix"
11836 exec_prefix
="$acl_save_exec_prefix"
11837 prefix
="$acl_save_prefix"
11839 if test "X$x" = "X-L$additional_libdir"; then
11844 if test -z "$haveit"; then
11845 if test -d "$additional_libdir"; then
11846 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
11853 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11854 if test "$enable_rpath" != no
; then
11856 for x
in $rpathdirs; do
11857 if test "X$x" = "X$dir"; then
11862 if test -z "$haveit"; then
11863 rpathdirs
="$rpathdirs $dir"
11866 for x
in $ltrpathdirs; do
11867 if test "X$x" = "X$dir"; then
11872 if test -z "$haveit"; then
11873 ltrpathdirs
="$ltrpathdirs $dir"
11878 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11881 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11884 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
11885 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
11891 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
11892 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
11898 if test "X$rpathdirs" != "X"; then
11899 if test -n "$hardcode_libdir_separator"; then
11901 for found_dir
in $rpathdirs; do
11902 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11904 acl_save_libdir
="$libdir"
11906 eval flag
=\"$hardcode_libdir_flag_spec\"
11907 libdir
="$acl_save_libdir"
11908 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
11910 for found_dir
in $rpathdirs; do
11911 acl_save_libdir
="$libdir"
11912 libdir
="$found_dir"
11913 eval flag
=\"$hardcode_libdir_flag_spec\"
11914 libdir
="$acl_save_libdir"
11915 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
11919 if test "X$ltrpathdirs" != "X"; then
11920 for found_dir
in $ltrpathdirs; do
11921 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
11926 ac_save_CPPFLAGS
="$CPPFLAGS"
11928 for element
in $INCIPT; do
11930 for x
in $CPPFLAGS; do
11932 acl_save_prefix
="$prefix"
11933 prefix
="$acl_final_prefix"
11934 acl_save_exec_prefix
="$exec_prefix"
11935 exec_prefix
="$acl_final_exec_prefix"
11937 exec_prefix
="$acl_save_exec_prefix"
11938 prefix
="$acl_save_prefix"
11940 if test "X$x" = "X$element"; then
11945 if test -z "$haveit"; then
11946 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
11952 $as_echo_n "checking for libipt... " >&6; }
11953 if ${ac_cv_libipt+:} false
; then :
11954 $as_echo_n "(cached) " >&6
11957 ac_save_LIBS
="$LIBS"
11958 LIBS
="$LIBS $LIBIPT"
11959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11960 /* end confdefs.h. */
11961 #include "intel-pt.h"
11965 pt_insn_alloc_decoder (0);
11970 if ac_fn_c_try_link
"$LINENO"; then :
11975 rm -f core conftest.err conftest.
$ac_objext \
11976 conftest
$ac_exeext conftest.
$ac_ext
11977 LIBS
="$ac_save_LIBS"
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
11981 $as_echo "$ac_cv_libipt" >&6; }
11982 if test "$ac_cv_libipt" = yes; then
11985 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
11988 $as_echo_n "checking how to link with libipt... " >&6; }
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
11990 $as_echo "$LIBIPT" >&6; }
11993 CPPFLAGS
="$ac_save_CPPFLAGS"
12003 if test "$HAVE_LIBIPT" != yes; then
12004 if test "$with_intel_pt" = yes; then
12005 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
12008 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
12012 LIBS
="$LIBS $LIBIPT"
12013 for ac_func
in pt_insn_event
12015 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
12016 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
12017 cat >>confdefs.h
<<_ACEOF
12018 #define HAVE_PT_INSN_EVENT 1
12024 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
12026 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
12028 cat >>confdefs.h
<<_ACEOF
12029 #define HAVE_STRUCT_PT_INSN_ENABLED 1
12034 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
12036 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
12038 cat >>confdefs.h
<<_ACEOF
12039 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
12049 # ------------------------- #
12050 # Checks for header files. #
12051 # ------------------------- #
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12054 $as_echo_n "checking for ANSI C header files... " >&6; }
12055 if ${ac_cv_header_stdc+:} false
; then :
12056 $as_echo_n "(cached) " >&6
12058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12059 /* end confdefs.h. */
12060 #include <stdlib.h>
12061 #include <stdarg.h>
12062 #include <string.h>
12073 if ac_fn_c_try_compile
"$LINENO"; then :
12074 ac_cv_header_stdc
=yes
12076 ac_cv_header_stdc
=no
12078 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12080 if test $ac_cv_header_stdc = yes; then
12081 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12083 /* end confdefs.h. */
12084 #include <string.h>
12087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12088 $EGREP "memchr" >/dev
/null
2>&1; then :
12091 ac_cv_header_stdc
=no
12097 if test $ac_cv_header_stdc = yes; then
12098 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12100 /* end confdefs.h. */
12101 #include <stdlib.h>
12104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12105 $EGREP "free" >/dev
/null
2>&1; then :
12108 ac_cv_header_stdc
=no
12114 if test $ac_cv_header_stdc = yes; then
12115 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12116 if test "$cross_compiling" = yes; then :
12119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12120 /* end confdefs.h. */
12122 #include <stdlib.h>
12123 #if ((' ' & 0x0FF) == 0x020)
12124 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12125 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12127 # define ISLOWER(c) \
12128 (('a' <= (c) && (c) <= 'i') \
12129 || ('j' <= (c) && (c) <= 'r') \
12130 || ('s' <= (c) && (c) <= 'z'))
12131 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12134 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12139 for (i = 0; i < 256; i++)
12140 if (XOR (islower (i), ISLOWER (i))
12141 || toupper (i) != TOUPPER (i))
12146 if ac_fn_c_try_run
"$LINENO"; then :
12149 ac_cv_header_stdc
=no
12151 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12152 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12158 $as_echo "$ac_cv_header_stdc" >&6; }
12159 if test $ac_cv_header_stdc = yes; then
12161 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12165 # elf_hp.h is for HP/UX 64-bit shared library support.
12166 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
12168 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
12169 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
12170 sys
/reg.h sys
/debugreg.h sys
/select.h \
12171 termios.h elf_hp.h \
12174 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12175 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12176 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12177 cat >>confdefs.h
<<_ACEOF
12178 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12185 for ac_header
in sys
/user.h
12187 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
12188 # include <sys/param.h>
12192 if test "x$ac_cv_header_sys_user_h" = xyes
; then :
12193 cat >>confdefs.h
<<_ACEOF
12194 #define HAVE_SYS_USER_H 1
12202 for ac_header
in curses.h cursesX.h ncurses.h ncursesw
/ncurses.h ncurses
/ncurses.h ncurses
/term.h
12204 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12205 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12206 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12207 cat >>confdefs.h
<<_ACEOF
12208 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12215 for ac_header
in term.h
12217 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
12218 # include <curses.h>
12222 if test "x$ac_cv_header_term_h" = xyes
; then :
12223 cat >>confdefs.h
<<_ACEOF
12224 #define HAVE_TERM_H 1
12232 # ------------------------- #
12233 # Checks for declarations. #
12234 # ------------------------- #
12237 # Check for presence and size of long long.
12238 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12239 if test "x$ac_cv_type_long_long" = xyes
; then :
12241 cat >>confdefs.h
<<_ACEOF
12242 #define HAVE_LONG_LONG 1
12245 # The cast to long int works around a bug in the HP C Compiler
12246 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12247 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12248 # This bug is HP SR number 8606223364.
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12250 $as_echo_n "checking size of long long... " >&6; }
12251 if ${ac_cv_sizeof_long_long+:} false
; then :
12252 $as_echo_n "(cached) " >&6
12254 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12257 if test "$ac_cv_type_long_long" = yes; then
12258 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12260 as_fn_error
77 "cannot compute sizeof (long long)
12261 See \`config.log' for more details" "$LINENO" 5; }
12263 ac_cv_sizeof_long_long
=0
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12269 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12273 cat >>confdefs.h
<<_ACEOF
12274 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12281 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
12282 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
12283 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
12289 cat >>confdefs.h
<<_ACEOF
12290 #define HAVE_DECL_BASENAME $ac_have_decl
12292 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
12293 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
12299 cat >>confdefs.h
<<_ACEOF
12300 #define HAVE_DECL_FFS $ac_have_decl
12302 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12303 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
12309 cat >>confdefs.h
<<_ACEOF
12310 #define HAVE_DECL_ASPRINTF $ac_have_decl
12312 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12313 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
12319 cat >>confdefs.h
<<_ACEOF
12320 #define HAVE_DECL_VASPRINTF $ac_have_decl
12322 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12323 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12329 cat >>confdefs.h
<<_ACEOF
12330 #define HAVE_DECL_SNPRINTF $ac_have_decl
12332 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12333 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
12339 cat >>confdefs.h
<<_ACEOF
12340 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12343 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
12344 if test "x$ac_cv_have_decl_strtol" = xyes
; then :
12350 cat >>confdefs.h
<<_ACEOF
12351 #define HAVE_DECL_STRTOL $ac_have_decl
12353 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
12354 if test "x$ac_cv_have_decl_strtoul" = xyes
; then :
12360 cat >>confdefs.h
<<_ACEOF
12361 #define HAVE_DECL_STRTOUL $ac_have_decl
12363 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
12364 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
12370 cat >>confdefs.h
<<_ACEOF
12371 #define HAVE_DECL_STRTOLL $ac_have_decl
12373 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
12374 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
12380 cat >>confdefs.h
<<_ACEOF
12381 #define HAVE_DECL_STRTOULL $ac_have_decl
12384 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12385 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
12391 cat >>confdefs.h
<<_ACEOF
12392 #define HAVE_DECL_STRVERSCMP $ac_have_decl
12397 ac_fn_c_check_decl
"$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
12398 if test "x$ac_cv_have_decl_free" = xyes
; then :
12404 cat >>confdefs.h
<<_ACEOF
12405 #define HAVE_DECL_FREE $ac_have_decl
12407 ac_fn_c_check_decl
"$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
12408 if test "x$ac_cv_have_decl_malloc" = xyes
; then :
12414 cat >>confdefs.h
<<_ACEOF
12415 #define HAVE_DECL_MALLOC $ac_have_decl
12417 ac_fn_c_check_decl
"$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
12418 if test "x$ac_cv_have_decl_realloc" = xyes
; then :
12424 cat >>confdefs.h
<<_ACEOF
12425 #define HAVE_DECL_REALLOC $ac_have_decl
12427 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12428 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12434 cat >>confdefs.h
<<_ACEOF
12435 #define HAVE_DECL_SNPRINTF $ac_have_decl
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12440 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12441 if ${am_cv_val_LC_MESSAGES+:} false
; then :
12442 $as_echo_n "(cached) " >&6
12444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12445 /* end confdefs.h. */
12446 #include <locale.h>
12455 if ac_fn_c_try_link
"$LINENO"; then :
12456 am_cv_val_LC_MESSAGES
=yes
12458 am_cv_val_LC_MESSAGES
=no
12460 rm -f core conftest.err conftest.
$ac_objext \
12461 conftest
$ac_exeext conftest.
$ac_ext
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12464 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12465 if test $am_cv_val_LC_MESSAGES = yes; then
12467 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12472 # ----------------------- #
12473 # Checks for structures. #
12474 # ----------------------- #
12476 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
12477 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
12479 cat >>confdefs.h
<<_ACEOF
12480 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12485 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
12486 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
12488 cat >>confdefs.h
<<_ACEOF
12489 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12496 # ------------------ #
12497 # Checks for types. #
12498 # ------------------ #
12500 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12501 #include <sys/socket.h>
12504 if test "x$ac_cv_type_socklen_t" = xyes
; then :
12506 cat >>confdefs.h
<<_ACEOF
12507 #define HAVE_SOCKLEN_T 1
12514 # ------------------------------------- #
12515 # Checks for compiler characteristics. #
12516 # ------------------------------------- #
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12519 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12520 if ${ac_cv_c_const+:} false
; then :
12521 $as_echo_n "(cached) " >&6
12523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12524 /* end confdefs.h. */
12530 #ifndef __cplusplus
12531 /* Ultrix mips cc rejects this sort of thing. */
12532 typedef int charset[2];
12533 const charset cs = { 0, 0 };
12534 /* SunOS 4.1.1 cc rejects this. */
12535 char const *const *pcpcc;
12537 /* NEC SVR4.0.2 mips cc rejects this. */
12538 struct point {int x, y;};
12539 static struct point const zero = {0,0};
12540 /* AIX XL C 1.02.0.0 rejects this.
12541 It does not let you subtract one const X* pointer from another in
12542 an arm of an if-expression whose if-part is not a constant
12544 const char *g = "string";
12545 pcpcc = &g + (g ? g-g : 0);
12546 /* HPUX 7.0 cc rejects these. */
12548 ppc = (char**) pcpcc;
12549 pcpcc = (char const *const *) ppc;
12550 { /* SCO 3.2v4 cc rejects this sort of thing. */
12553 char const *s = 0 ? (char *) 0 : (char const *) 0;
12558 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12559 int x[] = {25, 17};
12560 const int *foo = &x[0];
12563 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12564 typedef const int *iptr;
12568 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12569 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12570 struct s { int j; const int *ap[3]; } bx;
12571 struct s *b = &bx; b->j = 5;
12573 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12574 const int foo = 10;
12575 if (!foo) return 0;
12577 return !cs[0] && !zero.x;
12584 if ac_fn_c_try_compile
"$LINENO"; then :
12589 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12592 $as_echo "$ac_cv_c_const" >&6; }
12593 if test $ac_cv_c_const = no
; then
12595 $as_echo "#define const /**/" >>confdefs.h
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12600 $as_echo_n "checking for inline... " >&6; }
12601 if ${ac_cv_c_inline+:} false
; then :
12602 $as_echo_n "(cached) " >&6
12605 for ac_kw
in inline __inline__ __inline
; do
12606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12607 /* end confdefs.h. */
12608 #ifndef __cplusplus
12610 static $ac_kw foo_t static_foo () {return 0; }
12611 $ac_kw foo_t foo () {return 0; }
12615 if ac_fn_c_try_compile
"$LINENO"; then :
12616 ac_cv_c_inline
=$ac_kw
12618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12619 test "$ac_cv_c_inline" != no
&& break
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12624 $as_echo "$ac_cv_c_inline" >&6; }
12626 case $ac_cv_c_inline in
12629 case $ac_cv_c_inline in
12631 *) ac_val
=$ac_cv_c_inline;;
12633 cat >>confdefs.h
<<_ACEOF
12634 #ifndef __cplusplus
12635 #define inline $ac_val
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12642 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12643 if ${ac_cv_c_bigendian+:} false
; then :
12644 $as_echo_n "(cached) " >&6
12646 ac_cv_c_bigendian
=unknown
12647 # See if we're dealing with a universal compiler.
12648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12649 /* end confdefs.h. */
12650 #ifndef __APPLE_CC__
12651 not a universal capable compiler
12656 if ac_fn_c_try_compile
"$LINENO"; then :
12658 # Check for potential -arch flags. It is not universal unless
12659 # there are at least two -arch flags with different values.
12662 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12663 if test -n "$ac_prev"; then
12665 i?
86 | x86_64 | ppc | ppc64
)
12666 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12669 ac_cv_c_bigendian
=universal
12675 elif test "x$ac_word" = "x-arch"; then
12680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12681 if test $ac_cv_c_bigendian = unknown
; then
12682 # See if sys/param.h defines the BYTE_ORDER macro.
12683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12684 /* end confdefs.h. */
12685 #include <sys/types.h>
12686 #include <sys/param.h>
12691 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12692 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12694 bogus endian macros
12701 if ac_fn_c_try_compile
"$LINENO"; then :
12702 # It does; now see whether it defined to BIG_ENDIAN or not.
12703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12704 /* end confdefs.h. */
12705 #include <sys/types.h>
12706 #include <sys/param.h>
12711 #if BYTE_ORDER != BIG_ENDIAN
12719 if ac_fn_c_try_compile
"$LINENO"; then :
12720 ac_cv_c_bigendian
=yes
12722 ac_cv_c_bigendian
=no
12724 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12726 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12728 if test $ac_cv_c_bigendian = unknown
; then
12729 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12731 /* end confdefs.h. */
12732 #include <limits.h>
12737 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12738 bogus endian macros
12745 if ac_fn_c_try_compile
"$LINENO"; then :
12746 # It does; now see whether it defined to _BIG_ENDIAN or not.
12747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12748 /* end confdefs.h. */
12749 #include <limits.h>
12754 #ifndef _BIG_ENDIAN
12762 if ac_fn_c_try_compile
"$LINENO"; then :
12763 ac_cv_c_bigendian
=yes
12765 ac_cv_c_bigendian
=no
12767 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12769 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12771 if test $ac_cv_c_bigendian = unknown
; then
12772 # Compile a test program.
12773 if test "$cross_compiling" = yes; then :
12774 # Try to guess by grepping values from an object file.
12775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12776 /* end confdefs.h. */
12777 short int ascii_mm[] =
12778 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12779 short int ascii_ii[] =
12780 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12781 int use_ascii (int i) {
12782 return ascii_mm[i] + ascii_ii[i];
12784 short int ebcdic_ii[] =
12785 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12786 short int ebcdic_mm[] =
12787 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12788 int use_ebcdic (int i) {
12789 return ebcdic_mm[i] + ebcdic_ii[i];
12796 return use_ascii (foo) == use_ebcdic (foo);
12801 if ac_fn_c_try_compile
"$LINENO"; then :
12802 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12803 ac_cv_c_bigendian
=yes
12805 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12806 if test "$ac_cv_c_bigendian" = unknown
; then
12807 ac_cv_c_bigendian
=no
12809 # finding both strings is unlikely to happen, but who knows?
12810 ac_cv_c_bigendian
=unknown
12814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12817 /* end confdefs.h. */
12818 $ac_includes_default
12823 /* Are we little or big endian? From Harbison&Steele. */
12827 char c[sizeof (long int)];
12830 return u.c[sizeof (long int) - 1] == 1;
12836 if ac_fn_c_try_run
"$LINENO"; then :
12837 ac_cv_c_bigendian
=no
12839 ac_cv_c_bigendian
=yes
12841 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12842 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12848 $as_echo "$ac_cv_c_bigendian" >&6; }
12849 case $ac_cv_c_bigendian in #(
12851 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12857 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12861 as_fn_error $?
"unknown endianness
12862 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12866 # ------------------------------ #
12867 # Checks for library functions. #
12868 # ------------------------------ #
12873 for ac_header
in $ac_header_list
12875 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12876 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12878 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12879 cat >>confdefs.h
<<_ACEOF
12880 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12894 for ac_func
in getpagesize
12896 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12897 if test "x$ac_cv_func_getpagesize" = xyes
; then :
12898 cat >>confdefs.h
<<_ACEOF
12899 #define HAVE_GETPAGESIZE 1
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12906 $as_echo_n "checking for working mmap... " >&6; }
12907 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
12908 $as_echo_n "(cached) " >&6
12910 if test "$cross_compiling" = yes; then :
12911 ac_cv_func_mmap_fixed_mapped
=no
12913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12914 /* end confdefs.h. */
12915 $ac_includes_default
12916 /* malloc might have been renamed as rpl_malloc. */
12919 /* Thanks to Mike Haertel and Jim Avera for this test.
12920 Here is a matrix of mmap possibilities:
12921 mmap private not fixed
12922 mmap private fixed at somewhere currently unmapped
12923 mmap private fixed at somewhere already mapped
12924 mmap shared not fixed
12925 mmap shared fixed at somewhere currently unmapped
12926 mmap shared fixed at somewhere already mapped
12927 For private mappings, we should verify that changes cannot be read()
12928 back from the file, nor mmap's back from the file at a different
12929 address. (There have been systems where private was not correctly
12930 implemented like the infamous i386 svr4.0, and systems where the
12931 VM page cache was not coherent with the file system buffer cache
12932 like early versions of FreeBSD and possibly contemporary NetBSD.)
12933 For shared mappings, we should conversely verify that changes get
12934 propagated back to all the places they're supposed to be.
12936 Grep wants private fixed already mapped.
12937 The main things grep needs to know about mmap are:
12938 * does it exist and is it safe to write into the mmap'd area
12939 * how to use it (BSD variants) */
12942 #include <sys/mman.h>
12944 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12948 /* This mess was copied from the GNU getpagesize.h. */
12949 #ifndef HAVE_GETPAGESIZE
12950 # ifdef _SC_PAGESIZE
12951 # define getpagesize() sysconf(_SC_PAGESIZE)
12952 # else /* no _SC_PAGESIZE */
12953 # ifdef HAVE_SYS_PARAM_H
12954 # include <sys/param.h>
12955 # ifdef EXEC_PAGESIZE
12956 # define getpagesize() EXEC_PAGESIZE
12957 # else /* no EXEC_PAGESIZE */
12959 # define getpagesize() NBPG * CLSIZE
12962 # endif /* no CLSIZE */
12963 # else /* no NBPG */
12965 # define getpagesize() NBPC
12966 # else /* no NBPC */
12968 # define getpagesize() PAGESIZE
12969 # endif /* PAGESIZE */
12970 # endif /* no NBPC */
12971 # endif /* no NBPG */
12972 # endif /* no EXEC_PAGESIZE */
12973 # else /* no HAVE_SYS_PARAM_H */
12974 # define getpagesize() 8192 /* punt totally */
12975 # endif /* no HAVE_SYS_PARAM_H */
12976 # endif /* no _SC_PAGESIZE */
12978 #endif /* no HAVE_GETPAGESIZE */
12983 char *data, *data2, *data3;
12984 const char *cdata2;
12988 pagesize = getpagesize ();
12990 /* First, make a file with some known garbage in it. */
12991 data = (char *) malloc (pagesize);
12994 for (i = 0; i < pagesize; ++i)
12995 *(data + i) = rand ();
12997 fd = creat ("conftest.mmap", 0600);
13000 if (write (fd, data, pagesize) != pagesize)
13004 /* Next, check that the tail of a page is zero-filled. File must have
13005 non-zero length, otherwise we risk SIGBUS for entire page. */
13006 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13010 if (write (fd2, cdata2, 1) != 1)
13012 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13013 if (data2 == MAP_FAILED)
13015 for (i = 0; i < pagesize; ++i)
13019 if (munmap (data2, pagesize))
13022 /* Next, try to mmap the file at a fixed address which already has
13023 something else allocated at it. If we can, also make sure that
13024 we see the same garbage. */
13025 fd = open ("conftest.mmap", O_RDWR);
13028 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13029 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13031 for (i = 0; i < pagesize; ++i)
13032 if (*(data + i) != *(data2 + i))
13035 /* Finally, make sure that changes to the mapped area do not
13036 percolate back to the file as seen by read(). (This is a bug on
13037 some variants of i386 svr4.0.) */
13038 for (i = 0; i < pagesize; ++i)
13039 *(data2 + i) = *(data2 + i) + 1;
13040 data3 = (char *) malloc (pagesize);
13043 if (read (fd, data3, pagesize) != pagesize)
13045 for (i = 0; i < pagesize; ++i)
13046 if (*(data + i) != *(data3 + i))
13052 if ac_fn_c_try_run
"$LINENO"; then :
13053 ac_cv_func_mmap_fixed_mapped
=yes
13055 ac_cv_func_mmap_fixed_mapped
=no
13057 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13058 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13063 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13064 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13066 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13069 rm -f conftest.mmap conftest.txt
13071 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13072 if test "x$ac_cv_type_pid_t" = xyes
; then :
13076 cat >>confdefs.h
<<_ACEOF
13082 for ac_header
in vfork.h
13084 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13085 if test "x$ac_cv_header_vfork_h" = xyes
; then :
13086 cat >>confdefs.h
<<_ACEOF
13087 #define HAVE_VFORK_H 1
13094 for ac_func
in fork vfork
13096 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13097 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13098 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13099 cat >>confdefs.h
<<_ACEOF
13100 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13106 if test "x$ac_cv_func_fork" = xyes
; then
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13108 $as_echo_n "checking for working fork... " >&6; }
13109 if ${ac_cv_func_fork_works+:} false
; then :
13110 $as_echo_n "(cached) " >&6
13112 if test "$cross_compiling" = yes; then :
13113 ac_cv_func_fork_works
=cross
13115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13116 /* end confdefs.h. */
13117 $ac_includes_default
13122 /* By Ruediger Kuhlmann. */
13123 return fork () < 0;
13129 if ac_fn_c_try_run
"$LINENO"; then :
13130 ac_cv_func_fork_works
=yes
13132 ac_cv_func_fork_works
=no
13134 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13135 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13140 $as_echo "$ac_cv_func_fork_works" >&6; }
13143 ac_cv_func_fork_works
=$ac_cv_func_fork
13145 if test "x$ac_cv_func_fork_works" = xcross
; then
13147 *-*-amigaos* |
*-*-msdosdjgpp*)
13148 # Override, as these systems have only a dummy fork() stub
13149 ac_cv_func_fork_works
=no
13152 ac_cv_func_fork_works
=yes
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13156 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13158 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13159 if test "x$ac_cv_func_vfork" = xyes
; then
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13161 $as_echo_n "checking for working vfork... " >&6; }
13162 if ${ac_cv_func_vfork_works+:} false
; then :
13163 $as_echo_n "(cached) " >&6
13165 if test "$cross_compiling" = yes; then :
13166 ac_cv_func_vfork_works
=cross
13168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13169 /* end confdefs.h. */
13170 /* Thanks to Paul Eggert for this test. */
13171 $ac_includes_default
13172 #include <sys/wait.h>
13173 #ifdef HAVE_VFORK_H
13174 # include <vfork.h>
13176 /* On some sparc systems, changes by the child to local and incoming
13177 argument registers are propagated back to the parent. The compiler
13178 is told about this with #include <vfork.h>, but some compilers
13179 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13180 static variable whose address is put into a register that is
13181 clobbered by the vfork. */
13184 sparc_address_test (int arg)
13186 sparc_address_test (arg) int arg;
13189 static pid_t child;
13207 pid_t parent = getpid ();
13210 sparc_address_test (0);
13215 /* Here is another test for sparc vfork register problems. This
13216 test uses lots of local variables, at least as many local
13217 variables as main has allocated so far including compiler
13218 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13219 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13220 reuse the register of parent for one of the local variables,
13221 since it will think that parent can't possibly be used any more
13222 in this routine. Assigning to the local variable will thus
13223 munge parent in the parent process. */
13225 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13226 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13227 /* Convince the compiler that p..p7 are live; otherwise, it might
13228 use the same hardware register for all 8 local variables. */
13229 if (p != p1 || p != p2 || p != p3 || p != p4
13230 || p != p5 || p != p6 || p != p7)
13233 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13234 from child file descriptors. If the child closes a descriptor
13235 before it execs or exits, this munges the parent's descriptor
13236 as well. Test for this by closing stdout in the child. */
13237 _exit(close(fileno(stdout)) != 0);
13242 while (wait(&status) != child)
13245 /* Was there some problem with vforking? */
13248 /* Did the child fail? (This shouldn't happen.) */
13251 /* Did the vfork/compiler bug occur? */
13252 || parent != getpid()
13254 /* Did the file descriptor bug occur? */
13255 || fstat(fileno(stdout), &st) != 0
13260 if ac_fn_c_try_run
"$LINENO"; then :
13261 ac_cv_func_vfork_works
=yes
13263 ac_cv_func_vfork_works
=no
13265 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13266 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13271 $as_echo "$ac_cv_func_vfork_works" >&6; }
13274 if test "x$ac_cv_func_fork_works" = xcross
; then
13275 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13277 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13280 if test "x$ac_cv_func_vfork_works" = xyes
; then
13282 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13286 $as_echo "#define vfork fork" >>confdefs.h
13289 if test "x$ac_cv_func_fork_works" = xyes
; then
13291 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13295 for ac_func
in getauxval getrusage getuid getgid \
13296 pipe poll pread pread64 pwrite resize_term \
13297 sbrk getpgid setpgid setpgrp setsid \
13298 sigaction sigprocmask sigsetmask socketpair \
13299 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
13300 setrlimit getrlimit posix_madvise waitpid \
13301 ptrace64 sigaltstack mkdtemp setns
13303 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13304 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13305 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13306 cat >>confdefs.h
<<_ACEOF
13307 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13315 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13316 if ${am_cv_langinfo_codeset+:} false
; then :
13317 $as_echo_n "(cached) " >&6
13319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13320 /* end confdefs.h. */
13321 #include <langinfo.h>
13325 char* cs = nl_langinfo(CODESET);
13330 if ac_fn_c_try_link
"$LINENO"; then :
13331 am_cv_langinfo_codeset
=yes
13333 am_cv_langinfo_codeset
=no
13335 rm -f core conftest.err conftest.
$ac_objext \
13336 conftest
$ac_exeext conftest.
$ac_ext
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13340 $as_echo "$am_cv_langinfo_codeset" >&6; }
13341 if test $am_cv_langinfo_codeset = yes; then
13343 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13347 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13348 if test "x$ac_cv_type_size_t" = xyes
; then :
13352 cat >>confdefs.h
<<_ACEOF
13353 #define size_t unsigned int
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13360 $as_echo_n "checking for ANSI C header files... " >&6; }
13361 if ${ac_cv_header_stdc+:} false
; then :
13362 $as_echo_n "(cached) " >&6
13364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13365 /* end confdefs.h. */
13366 #include <stdlib.h>
13367 #include <stdarg.h>
13368 #include <string.h>
13379 if ac_fn_c_try_compile
"$LINENO"; then :
13380 ac_cv_header_stdc
=yes
13382 ac_cv_header_stdc
=no
13384 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13386 if test $ac_cv_header_stdc = yes; then
13387 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13389 /* end confdefs.h. */
13390 #include <string.h>
13393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13394 $EGREP "memchr" >/dev
/null
2>&1; then :
13397 ac_cv_header_stdc
=no
13403 if test $ac_cv_header_stdc = yes; then
13404 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13406 /* end confdefs.h. */
13407 #include <stdlib.h>
13410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13411 $EGREP "free" >/dev
/null
2>&1; then :
13414 ac_cv_header_stdc
=no
13420 if test $ac_cv_header_stdc = yes; then
13421 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13422 if test "$cross_compiling" = yes; then :
13425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13426 /* end confdefs.h. */
13428 #include <stdlib.h>
13429 #if ((' ' & 0x0FF) == 0x020)
13430 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13431 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13433 # define ISLOWER(c) \
13434 (('a' <= (c) && (c) <= 'i') \
13435 || ('j' <= (c) && (c) <= 'r') \
13436 || ('s' <= (c) && (c) <= 'z'))
13437 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13440 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13445 for (i = 0; i < 256; i++)
13446 if (XOR (islower (i), ISLOWER (i))
13447 || toupper (i) != TOUPPER (i))
13452 if ac_fn_c_try_run
"$LINENO"; then :
13455 ac_cv_header_stdc
=no
13457 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13458 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13464 $as_echo "$ac_cv_header_stdc" >&6; }
13465 if test $ac_cv_header_stdc = yes; then
13467 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13471 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13472 # for constant arguments. Useless!
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13474 $as_echo_n "checking for working alloca.h... " >&6; }
13475 if ${ac_cv_working_alloca_h+:} false
; then :
13476 $as_echo_n "(cached) " >&6
13478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13479 /* end confdefs.h. */
13480 #include <alloca.h>
13484 char *p = (char *) alloca (2 * sizeof (int));
13490 if ac_fn_c_try_link
"$LINENO"; then :
13491 ac_cv_working_alloca_h
=yes
13493 ac_cv_working_alloca_h
=no
13495 rm -f core conftest.err conftest.
$ac_objext \
13496 conftest
$ac_exeext conftest.
$ac_ext
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13499 $as_echo "$ac_cv_working_alloca_h" >&6; }
13500 if test $ac_cv_working_alloca_h = yes; then
13502 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13507 $as_echo_n "checking for alloca... " >&6; }
13508 if ${ac_cv_func_alloca_works+:} false
; then :
13509 $as_echo_n "(cached) " >&6
13511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13512 /* end confdefs.h. */
13514 # define alloca __builtin_alloca
13517 # include <malloc.h>
13518 # define alloca _alloca
13520 # ifdef HAVE_ALLOCA_H
13521 # include <alloca.h>
13526 # ifndef alloca /* predefined by HP cc +Olibcalls */
13527 void *alloca (size_t);
13537 char *p = (char *) alloca (1);
13543 if ac_fn_c_try_link
"$LINENO"; then :
13544 ac_cv_func_alloca_works
=yes
13546 ac_cv_func_alloca_works
=no
13548 rm -f core conftest.err conftest.
$ac_objext \
13549 conftest
$ac_exeext conftest.
$ac_ext
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13552 $as_echo "$ac_cv_func_alloca_works" >&6; }
13554 if test $ac_cv_func_alloca_works = yes; then
13556 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13559 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13560 # that cause trouble. Some versions do not even contain alloca or
13561 # contain a buggy version. If you still want to use their alloca,
13562 # use ar to extract alloca.o from them instead of compiling alloca.c.
13564 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
13566 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13570 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13571 if ${ac_cv_os_cray+:} false
; then :
13572 $as_echo_n "(cached) " >&6
13574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13575 /* end confdefs.h. */
13576 #if defined CRAY && ! defined CRAY2
13583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13584 $EGREP "webecray" >/dev
/null
2>&1; then :
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13593 $as_echo "$ac_cv_os_cray" >&6; }
13594 if test $ac_cv_os_cray = yes; then
13595 for ac_func
in _getb67 GETB67 getb67
; do
13596 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13597 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13598 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13600 cat >>confdefs.h
<<_ACEOF
13601 #define CRAY_STACKSEG_END $ac_func
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13611 $as_echo_n "checking stack direction for C alloca... " >&6; }
13612 if ${ac_cv_c_stack_direction+:} false
; then :
13613 $as_echo_n "(cached) " >&6
13615 if test "$cross_compiling" = yes; then :
13616 ac_cv_c_stack_direction
=0
13618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13619 /* end confdefs.h. */
13620 $ac_includes_default
13622 find_stack_direction (int *addr, int depth)
13624 int dir, dummy = 0;
13627 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13628 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13629 return dir + dummy;
13633 main (int argc, char **argv)
13635 return find_stack_direction (0, argc + !argv + 20) < 0;
13638 if ac_fn_c_try_run
"$LINENO"; then :
13639 ac_cv_c_stack_direction
=1
13641 ac_cv_c_stack_direction
=-1
13643 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13644 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13649 $as_echo "$ac_cv_c_stack_direction" >&6; }
13650 cat >>confdefs.h
<<_ACEOF
13651 #define STACK_DIRECTION $ac_cv_c_stack_direction
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13660 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13661 if ${am_cv_langinfo_codeset+:} false
; then :
13662 $as_echo_n "(cached) " >&6
13664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13665 /* end confdefs.h. */
13666 #include <langinfo.h>
13670 char* cs = nl_langinfo(CODESET);
13675 if ac_fn_c_try_link
"$LINENO"; then :
13676 am_cv_langinfo_codeset
=yes
13678 am_cv_langinfo_codeset
=no
13680 rm -f core conftest.err conftest.
$ac_objext \
13681 conftest
$ac_exeext conftest.
$ac_ext
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13685 $as_echo "$am_cv_langinfo_codeset" >&6; }
13686 if test $am_cv_langinfo_codeset = yes; then
13688 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13693 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
13695 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13696 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13697 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13698 cat >>confdefs.h
<<_ACEOF
13699 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13707 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair sigaction
13709 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13710 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13711 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13712 cat >>confdefs.h
<<_ACEOF
13713 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13720 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
13721 if test "x$ac_cv_have_decl_strerror" = xyes
; then :
13727 cat >>confdefs.h
<<_ACEOF
13728 #define HAVE_DECL_STRERROR $ac_have_decl
13730 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13731 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
13737 cat >>confdefs.h
<<_ACEOF
13738 #define HAVE_DECL_STRSTR $ac_have_decl
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
13743 $as_echo_n "checking for sigsetjmp... " >&6; }
13744 if ${gdb_cv_func_sigsetjmp+:} false
; then :
13745 $as_echo_n "(cached) " >&6
13747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13748 /* end confdefs.h. */
13750 #include <setjmp.h>
13755 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
13760 if ac_fn_c_try_compile
"$LINENO"; then :
13761 gdb_cv_func_sigsetjmp
=yes
13763 gdb_cv_func_sigsetjmp
=no
13765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
13768 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
13769 if test $gdb_cv_func_sigsetjmp = yes; then
13771 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
13776 # Check the return and argument types of ptrace.
13779 for ac_header
in sys
/ptrace.h ptrace.h
13781 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13782 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13783 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13784 cat >>confdefs.h
<<_ACEOF
13785 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13793 gdb_ptrace_headers
='
13794 #include <sys/types.h>
13795 #if HAVE_SYS_PTRACE_H
13796 # include <sys/ptrace.h>
13799 # include <unistd.h>
13802 # There is no point in checking if we don't have a prototype.
13803 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
13805 if test "x$ac_cv_have_decl_ptrace" = xyes
; then :
13811 cat >>confdefs.h
<<_ACEOF
13812 #define HAVE_DECL_PTRACE $ac_have_decl
13814 if test $ac_have_decl = 1; then :
13818 : ${gdb_cv_func_ptrace_ret='int'}
13819 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13823 # Check return type. Varargs (used on GNU/Linux) conflict with the
13824 # empty argument list, so check for that explicitly.
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
13826 $as_echo_n "checking return type of ptrace... " >&6; }
13827 if ${gdb_cv_func_ptrace_ret+:} false
; then :
13828 $as_echo_n "(cached) " >&6
13830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13831 /* end confdefs.h. */
13832 $gdb_ptrace_headers
13836 extern long ptrace (enum __ptrace_request, ...);
13841 if ac_fn_c_try_compile
"$LINENO"; then :
13842 gdb_cv_func_ptrace_ret
='long'
13844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13845 /* end confdefs.h. */
13846 $gdb_ptrace_headers
13850 extern int ptrace ();
13855 if ac_fn_c_try_compile
"$LINENO"; then :
13856 gdb_cv_func_ptrace_ret
='int'
13858 gdb_cv_func_ptrace_ret
='long'
13860 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13862 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
13865 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
13867 cat >>confdefs.h
<<_ACEOF
13868 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
13871 # Check argument types.
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
13873 $as_echo_n "checking types of arguments for ptrace... " >&6; }
13874 if ${gdb_cv_func_ptrace_args+:} false
; then :
13875 $as_echo_n "(cached) " >&6
13878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13879 /* end confdefs.h. */
13880 $gdb_ptrace_headers
13884 extern long ptrace (enum __ptrace_request, ...);
13889 if ac_fn_c_try_compile
"$LINENO"; then :
13890 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
13893 for gdb_arg1
in 'int' 'long'; do
13894 for gdb_arg2
in 'pid_t' 'int' 'long'; do
13895 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
13896 for gdb_arg4
in 'int' 'long' 'void *'; do
13897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13898 /* end confdefs.h. */
13899 $gdb_ptrace_headers
13904 extern $gdb_cv_func_ptrace_ret
13905 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
13911 if ac_fn_c_try_compile
"$LINENO"; then :
13912 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
13915 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13916 for gdb_arg5
in 'int *' 'int' 'long'; do
13917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13918 /* end confdefs.h. */
13919 $gdb_ptrace_headers
13924 extern $gdb_cv_func_ptrace_ret
13925 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
13931 if ac_fn_c_try_compile
"$LINENO"; then :
13933 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
13936 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13942 # Provide a safe default value.
13943 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13946 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
13949 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
13950 ac_save_IFS
=$IFS; IFS
=','
13951 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
13955 cat >>confdefs.h
<<_ACEOF
13956 #define PTRACE_TYPE_ARG1 $1
13960 cat >>confdefs.h
<<_ACEOF
13961 #define PTRACE_TYPE_ARG3 $3
13965 cat >>confdefs.h
<<_ACEOF
13966 #define PTRACE_TYPE_ARG4 $4
13969 if test -n "$5"; then
13971 cat >>confdefs.h
<<_ACEOF
13972 #define PTRACE_TYPE_ARG5 $5
13978 if test "$cross_compiling" = no
; then
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
13980 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
13981 if ${ac_cv_func_setpgrp_void+:} false
; then :
13982 $as_echo_n "(cached) " >&6
13984 if test "$cross_compiling" = yes; then :
13985 as_fn_error $?
"cannot check setpgrp when cross compiling" "$LINENO" 5
13987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13988 /* end confdefs.h. */
13989 $ac_includes_default
13993 /* If this system has a BSD-style setpgrp which takes arguments,
13994 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
13995 exit successfully. */
13996 return setpgrp (1,1) != -1;
14001 if ac_fn_c_try_run
"$LINENO"; then :
14002 ac_cv_func_setpgrp_void
=no
14004 ac_cv_func_setpgrp_void
=yes
14006 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14007 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
14012 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
14013 if test $ac_cv_func_setpgrp_void = yes; then
14015 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
14021 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
14022 if ${ac_cv_func_setpgrp_void+:} false
; then :
14023 $as_echo_n "(cached) " >&6
14025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14026 /* end confdefs.h. */
14028 #include <unistd.h>
14034 if (setpgrp(1,1) == -1)
14043 if ac_fn_c_try_compile
"$LINENO"; then :
14044 ac_cv_func_setpgrp_void
=no
14046 ac_cv_func_setpgrp_void
=yes
14048 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
14051 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
14052 if test $ac_cv_func_setpgrp_void = yes; then
14053 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
14058 # Assume we'll default to using the included libiberty regex.
14059 gdb_use_included_regex
=yes
14061 # However, if the system regex is GNU regex, then default to *not*
14062 # using the included regex.
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
14064 $as_echo_n "checking for GNU regex... " >&6; }
14065 if ${gdb_cv_have_gnu_regex+:} false
; then :
14066 $as_echo_n "(cached) " >&6
14068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14069 /* end confdefs.h. */
14070 #include <gnu-versions.h>
14074 #define REGEX_INTERFACE_VERSION 1
14075 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
14076 # error "Version mismatch"
14082 if ac_fn_c_try_compile
"$LINENO"; then :
14083 gdb_cv_have_gnu_regex
=yes
14085 gdb_cv_have_gnu_regex
=no
14087 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
14090 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
14091 if test $gdb_cv_have_gnu_regex = yes; then
14092 gdb_use_included_regex
=no
14096 # Check whether --with-included-regex was given.
14097 if test "${with_included_regex+set}" = set; then :
14098 withval
=$with_included_regex; gdb_with_regex
=$withval
14100 gdb_with_regex
=$gdb_use_included_regex
14103 if test "$gdb_with_regex" = yes; then
14105 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
14109 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
14110 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
14111 #include <sys/proc.h>
14114 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes
; then :
14116 cat >>confdefs.h
<<_ACEOF
14117 #define HAVE_STRUCT_THREAD_TD_PCB 1
14124 # See if <sys/lwp.h> defines `struct lwp`.
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
14126 $as_echo_n "checking for struct lwp... " >&6; }
14127 if ${gdb_cv_struct_lwp+:} false
; then :
14128 $as_echo_n "(cached) " >&6
14130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14131 /* end confdefs.h. */
14132 #include <sys/param.h>
14134 #include <sys/lwp.h>
14143 if ac_fn_c_try_compile
"$LINENO"; then :
14144 gdb_cv_struct_lwp
=yes
14146 gdb_cv_struct_lwp
=no
14148 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
14151 $as_echo "$gdb_cv_struct_lwp" >&6; }
14152 if test $gdb_cv_struct_lwp = yes; then
14154 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
14158 # See if <machine/reg.h> degines `struct reg'.
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
14160 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
14161 if ${gdb_cv_struct_reg+:} false
; then :
14162 $as_echo_n "(cached) " >&6
14164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14165 /* end confdefs.h. */
14166 #include <sys/types.h>
14167 #include <machine/reg.h>
14176 if ac_fn_c_try_compile
"$LINENO"; then :
14177 gdb_cv_struct_reg
=yes
14179 gdb_cv_struct_reg
=no
14181 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
14184 $as_echo "$gdb_cv_struct_reg" >&6; }
14185 if test $gdb_cv_struct_reg = yes; then
14187 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
14191 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
14192 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
14193 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
14194 #include <machine/reg.h>
14196 if test "x$ac_cv_member_struct_reg_r_fs" = xyes
; then :
14198 cat >>confdefs.h
<<_ACEOF
14199 #define HAVE_STRUCT_REG_R_FS 1
14204 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
14205 #include <machine/reg.h>
14207 if test "x$ac_cv_member_struct_reg_r_gs" = xyes
; then :
14209 cat >>confdefs.h
<<_ACEOF
14210 #define HAVE_STRUCT_REG_R_GS 1
14217 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
14218 # Older amd64 Linux's don't have the fs_base and gs_base members of
14219 # `struct user_regs_struct'.
14220 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>
14221 #include <sys/user.h>
14223 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = xyes
; then :
14225 cat >>confdefs.h
<<_ACEOF
14226 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
14231 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>
14232 #include <sys/user.h>
14234 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = xyes
; then :
14236 cat >>confdefs.h
<<_ACEOF
14237 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
14244 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
14246 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
14247 if ${gdb_cv_have_ptrace_getregs+:} false
; then :
14248 $as_echo_n "(cached) " >&6
14250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14251 /* end confdefs.h. */
14252 #include <sys/ptrace.h>
14261 if ac_fn_c_try_compile
"$LINENO"; then :
14262 gdb_cv_have_ptrace_getregs
=yes
14264 gdb_cv_have_ptrace_getregs
=no
14266 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
14270 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
14271 if test $gdb_cv_have_ptrace_getregs = yes; then
14273 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
14277 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
14279 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
14280 if ${gdb_cv_have_ptrace_getfpxregs+:} false
; then :
14281 $as_echo_n "(cached) " >&6
14283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14284 /* end confdefs.h. */
14285 #include <sys/ptrace.h>
14294 if ac_fn_c_try_compile
"$LINENO"; then :
14295 gdb_cv_have_ptrace_getfpxregs
=yes
14297 gdb_cv_have_ptrace_getfpxregs
=no
14299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
14303 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
14304 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
14306 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
14310 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
14312 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
14313 if ${gdb_cv_have_pt_getdbregs+:} false
; then :
14314 $as_echo_n "(cached) " >&6
14316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14317 /* end confdefs.h. */
14318 #include <sys/types.h>
14319 #include <sys/ptrace.h>
14328 if ac_fn_c_try_compile
"$LINENO"; then :
14329 gdb_cv_have_pt_getdbregs
=yes
14331 gdb_cv_have_pt_getdbregs
=no
14333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
14337 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
14338 if test $gdb_cv_have_pt_getdbregs = yes; then
14340 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
14344 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
14346 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
14347 if ${gdb_cv_have_pt_getxmmregs+:} false
; then :
14348 $as_echo_n "(cached) " >&6
14350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14351 /* end confdefs.h. */
14352 #include <sys/types.h>
14353 #include <sys/ptrace.h>
14362 if ac_fn_c_try_compile
"$LINENO"; then :
14363 gdb_cv_have_pt_getxmmregs
=yes
14365 gdb_cv_have_pt_getxmmregs
=no
14367 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
14371 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
14372 if test $gdb_cv_have_pt_getxmmregs = yes; then
14374 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
14378 # See if <sys/ptrace.h> supports LWP names on FreeBSD
14379 # Older FreeBSD versions don't have the pl_tdname member of
14380 # `struct ptrace_lwpinfo'.
14381 ac_fn_c_check_member
"$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
14383 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes
; then :
14385 cat >>confdefs.h
<<_ACEOF
14386 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
14393 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
14394 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
14396 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>
14398 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes
; then :
14400 cat >>confdefs.h
<<_ACEOF
14401 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
14408 if test "$ac_cv_header_sys_procfs_h" = yes; then
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
14410 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
14411 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
14412 $as_echo_n "(cached) " >&6
14414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14415 /* end confdefs.h. */
14418 /* Needed for new procfs interface on sparc-solaris. */
14419 #define _STRUCTURED_PROC 1
14420 #include <sys/procfs.h>
14429 if ac_fn_c_try_compile
"$LINENO"; then :
14430 bfd_cv_have_sys_procfs_type_gregset_t
=yes
14432 bfd_cv_have_sys_procfs_type_gregset_t
=no
14435 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14438 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
14440 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
14444 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
14447 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
14448 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
14449 $as_echo_n "(cached) " >&6
14451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14452 /* end confdefs.h. */
14455 /* Needed for new procfs interface on sparc-solaris. */
14456 #define _STRUCTURED_PROC 1
14457 #include <sys/procfs.h>
14466 if ac_fn_c_try_compile
"$LINENO"; then :
14467 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
14469 bfd_cv_have_sys_procfs_type_fpregset_t
=no
14472 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14475 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
14477 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
14481 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
14484 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
14485 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
14486 $as_echo_n "(cached) " >&6
14488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14489 /* end confdefs.h. */
14492 /* Needed for new procfs interface on sparc-solaris. */
14493 #define _STRUCTURED_PROC 1
14494 #include <sys/procfs.h>
14503 if ac_fn_c_try_compile
"$LINENO"; then :
14504 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
14506 bfd_cv_have_sys_procfs_type_prgregset_t
=no
14509 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14512 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
14514 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
14518 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
14521 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
14522 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
14523 $as_echo_n "(cached) " >&6
14525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14526 /* end confdefs.h. */
14529 /* Needed for new procfs interface on sparc-solaris. */
14530 #define _STRUCTURED_PROC 1
14531 #include <sys/procfs.h>
14540 if ac_fn_c_try_compile
"$LINENO"; then :
14541 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
14543 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
14546 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14549 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
14551 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
14555 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
14558 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
14559 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
14560 $as_echo_n "(cached) " >&6
14562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14563 /* end confdefs.h. */
14566 /* Needed for new procfs interface on sparc-solaris. */
14567 #define _STRUCTURED_PROC 1
14568 #include <sys/procfs.h>
14577 if ac_fn_c_try_compile
"$LINENO"; then :
14578 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
14580 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
14583 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14586 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
14588 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
14592 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
14595 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
14596 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
14597 $as_echo_n "(cached) " >&6
14599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14600 /* end confdefs.h. */
14603 /* Needed for new procfs interface on sparc-solaris. */
14604 #define _STRUCTURED_PROC 1
14605 #include <sys/procfs.h>
14614 if ac_fn_c_try_compile
"$LINENO"; then :
14615 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
14617 bfd_cv_have_sys_procfs_type_lwpid_t
=no
14620 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14623 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
14625 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
14629 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
14632 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
14633 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
14634 $as_echo_n "(cached) " >&6
14636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14637 /* end confdefs.h. */
14640 /* Needed for new procfs interface on sparc-solaris. */
14641 #define _STRUCTURED_PROC 1
14642 #include <sys/procfs.h>
14651 if ac_fn_c_try_compile
"$LINENO"; then :
14652 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
14654 bfd_cv_have_sys_procfs_type_psaddr_t
=no
14657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14660 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
14662 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
14666 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
14671 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
14673 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
14674 if ${gdb_cv_prfpregset_t_broken+:} false
; then :
14675 $as_echo_n "(cached) " >&6
14677 if test "$cross_compiling" = yes; then :
14678 gdb_cv_prfpregset_t_broken
=yes
14680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14681 /* end confdefs.h. */
14682 #include <sys/procfs.h>
14685 if (sizeof (prfpregset_t) == sizeof (void *))
14690 if ac_fn_c_try_run
"$LINENO"; then :
14691 gdb_cv_prfpregset_t_broken
=no
14693 gdb_cv_prfpregset_t_broken
=yes
14695 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14696 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
14702 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
14703 if test $gdb_cv_prfpregset_t_broken = yes; then
14705 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
14711 # Check if the compiler supports the `long long' type.
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
14714 $as_echo_n "checking for long long support in compiler... " >&6; }
14715 if ${gdb_cv_c_long_long+:} false
; then :
14716 $as_echo_n "(cached) " >&6
14718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14719 /* end confdefs.h. */
14720 extern long long foo;
14724 switch (foo & 2) { case 0: return 1; }
14729 if ac_fn_c_try_compile
"$LINENO"; then :
14730 gdb_cv_c_long_long
=yes
14732 gdb_cv_c_long_long
=no
14734 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
14737 $as_echo "$gdb_cv_c_long_long" >&6; }
14738 if test $gdb_cv_c_long_long != yes; then
14739 # libdecnumber requires long long.
14740 as_fn_error $?
"Compiler must support long long for GDB." "$LINENO" 5
14743 # Check if the compiler and runtime support printing long longs.
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
14746 $as_echo_n "checking for long long support in printf... " >&6; }
14747 if ${gdb_cv_printf_has_long_long+:} false
; then :
14748 $as_echo_n "(cached) " >&6
14750 if test "$cross_compiling" = yes; then :
14751 gdb_cv_printf_has_long_long
=no
14753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14754 /* end confdefs.h. */
14755 $ac_includes_default
14761 l = (l << 16) + 0x0123;
14762 l = (l << 16) + 0x4567;
14763 l = (l << 16) + 0x89ab;
14764 l = (l << 16) + 0xcdef;
14765 sprintf (buf, "0x%016llx", l);
14766 return (strcmp ("0x0123456789abcdef", buf));
14771 if ac_fn_c_try_run
"$LINENO"; then :
14772 gdb_cv_printf_has_long_long
=yes
14774 gdb_cv_printf_has_long_long
=no
14776 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14777 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
14782 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
14783 if test $gdb_cv_printf_has_long_long = yes; then
14785 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
14789 # Check if the compiler and runtime support printing decfloats.
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
14792 $as_echo_n "checking for decfloat support in printf... " >&6; }
14793 if ${gdb_cv_printf_has_decfloat+:} false
; then :
14794 $as_echo_n "(cached) " >&6
14796 if test "$cross_compiling" = yes; then :
14797 gdb_cv_printf_has_decfloat
=no
14799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14800 /* end confdefs.h. */
14801 $ac_includes_default
14806 _Decimal32 d32 = 1.2345df;
14807 _Decimal64 d64 = 1.2345dd;
14808 _Decimal128 d128 = 1.2345dl;
14809 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
14810 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
14815 if ac_fn_c_try_run
"$LINENO"; then :
14816 gdb_cv_printf_has_decfloat
=yes
14818 gdb_cv_printf_has_decfloat
=no
14820 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14821 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
14826 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
14827 if test $gdb_cv_printf_has_decfloat = yes; then
14829 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
14833 # Check if the compiler supports the `long double' type. We can't use
14834 # AC_C_LONG_DOUBLE because that one does additional checks on the
14835 # constants defined in <float.h> that fail on some systems,
14836 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
14839 $as_echo_n "checking for long double support in compiler... " >&6; }
14840 if ${gdb_cv_c_long_double+:} false
; then :
14841 $as_echo_n "(cached) " >&6
14843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14844 /* end confdefs.h. */
14847 if ac_fn_c_try_compile
"$LINENO"; then :
14848 gdb_cv_c_long_double
=yes
14850 gdb_cv_c_long_double
=no
14852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
14855 $as_echo "$gdb_cv_c_long_double" >&6; }
14856 if test $gdb_cv_c_long_double = yes; then
14858 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14862 # Check if the compiler and runtime support printing long doubles.
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
14865 $as_echo_n "checking for long double support in printf... " >&6; }
14866 if ${gdb_cv_printf_has_long_double+:} false
; then :
14867 $as_echo_n "(cached) " >&6
14869 if test "$cross_compiling" = yes; then :
14870 gdb_cv_printf_has_long_double
=no
14872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14873 /* end confdefs.h. */
14874 $ac_includes_default
14879 long double f = 3.141592653;
14880 sprintf (buf, "%Lg", f);
14881 return (strncmp ("3.14159", buf, 7));
14886 if ac_fn_c_try_run
"$LINENO"; then :
14887 gdb_cv_printf_has_long_double
=yes
14889 gdb_cv_printf_has_long_double
=no
14891 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14892 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
14897 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
14898 if test $gdb_cv_printf_has_long_double = yes; then
14900 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
14904 # Check if the compiler and runtime support scanning long doubles.
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
14907 $as_echo_n "checking for long double support in scanf... " >&6; }
14908 if ${gdb_cv_scanf_has_long_double+:} false
; then :
14909 $as_echo_n "(cached) " >&6
14911 if test "$cross_compiling" = yes; then :
14912 gdb_cv_scanf_has_long_double
=no
14914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14915 /* end confdefs.h. */
14920 char *buf = "3.141592653";
14922 sscanf (buf, "%Lg", &f);
14923 return !(f > 3.14159 && f < 3.14160);
14928 if ac_fn_c_try_run
"$LINENO"; then :
14929 gdb_cv_scanf_has_long_double
=yes
14931 gdb_cv_scanf_has_long_double
=no
14933 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14934 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
14939 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
14940 if test $gdb_cv_scanf_has_long_double = yes; then
14942 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
14949 $as_echo_n "checking for -bbigtoc option... " >&6; }
14950 if ${gdb_cv_bigtoc+:} false
; then :
14951 $as_echo_n "(cached) " >&6
14954 SAVE_LDFLAGS
=$LDFLAGS
14957 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
14958 *) gdb_cv_bigtoc
=-bbigtoc ;;
14961 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
14962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14963 /* end confdefs.h. */
14973 if ac_fn_c_try_link
"$LINENO"; then :
14978 rm -f core conftest.err conftest.
$ac_objext \
14979 conftest
$ac_exeext conftest.
$ac_ext
14980 LDFLAGS
="${SAVE_LDFLAGS}"
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
14984 $as_echo "$gdb_cv_bigtoc" >&6; }
14985 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
14990 $as_echo_n "checking for the dynamic export flag... " >&6; }
14992 if test "${gdb_native}" = yes; then
14993 # The dynamically loaded libthread_db needs access to symbols in the gdb
14994 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
14995 # may not be supported there.
14996 old_LDFLAGS
="$LDFLAGS"
14997 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
14998 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
14999 LDFLAGS
="$LDFLAGS $RDYNAMIC"
15000 if test "${have_libpython}" = no
; then
15001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15002 /* end confdefs.h. */
15012 if ac_fn_c_try_link
"$LINENO"; then :
15015 rm -f core conftest.err conftest.
$ac_objext \
15016 conftest
$ac_exeext conftest.
$ac_ext
15018 # Workaround http://bugs.python.org/issue4434 where static
15019 # libpythonX.Y.a would get its symbols required for
15020 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
15021 # Problem does not happen for the recommended libpythonX.Y.so linkage.
15023 # Note the workaround for Python
15024 # http://bugs.python.org/issue10112 earlier has removed
15025 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
15026 # here too, as otherwise it'd make this -Wl,--dynamic-list test
15028 old_CFLAGS
="$CFLAGS"
15029 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
15031 LIBS
="$LIBS $PYTHON_LIBS"
15032 old_CPPFLAGS
="$CPPFLAGS"
15033 CPPFLAGS
="$CPPFLAGS $PYTHON_CPPFLAGS"
15034 if test "$cross_compiling" = yes; then :
15037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15038 /* end confdefs.h. */
15039 #include "Python.h"
15045 err = PyRun_SimpleString ("import itertools\n");
15047 return err == 0 ? 0 : 1;
15052 if ac_fn_c_try_run
"$LINENO"; then :
15055 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15056 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15060 CFLAGS
="$old_CFLAGS"
15061 CPPFLAGS
="$old_CPPFLAGS"
15063 LDFLAGS
="$old_LDFLAGS"
15065 if $dynamic_list; then
15066 found
="-Wl,--dynamic-list"
15067 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
15070 RDYNAMIC
="-rdynamic"
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
15074 $as_echo "$found" >&6; }
15077 if test ${build} = ${host} -a ${host} = ${target} ; then
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
15081 $as_echo_n "checking for AiX thread debugging library... " >&6; }
15082 if ${gdb_cv_have_aix_thread_debug+:} false
; then :
15083 $as_echo_n "(cached) " >&6
15085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15086 /* end confdefs.h. */
15087 #include <sys/pthdebug.h>
15091 #ifndef PTHDB_VERSION_3
15098 if ac_fn_c_try_compile
"$LINENO"; then :
15099 gdb_cv_have_aix_thread_debug
=yes
15101 gdb_cv_have_aix_thread_debug
=no
15103 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
15107 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
15108 if test $gdb_cv_have_aix_thread_debug = yes; then
15109 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
15110 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
15111 LIBS
="$LIBS -lpthdebug"
15113 # Older versions of AIX do not provide the declaration for
15114 # the getthrds function (it appears that it was introduced
15116 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
15118 if test "x$ac_cv_have_decl_getthrds" = xyes
; then :
15124 cat >>confdefs.h
<<_ACEOF
15125 #define HAVE_DECL_GETTHRDS $ac_have_decl
15134 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
15136 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
15137 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false
; then :
15138 $as_echo_n "(cached) " >&6
15140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15141 /* end confdefs.h. */
15142 #include <thread_db.h>
15146 int i = TD_NOTALLOC;
15151 if ac_fn_c_try_compile
"$LINENO"; then :
15152 gdb_cv_thread_db_h_has_td_notalloc
=yes
15154 gdb_cv_thread_db_h_has_td_notalloc
=no
15157 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
15161 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
15163 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
15164 if ${gdb_cv_thread_db_h_has_td_version+:} false
; then :
15165 $as_echo_n "(cached) " >&6
15167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15168 /* end confdefs.h. */
15169 #include <thread_db.h>
15173 int i = TD_VERSION;
15178 if ac_fn_c_try_compile
"$LINENO"; then :
15179 gdb_cv_thread_db_h_has_td_version
=yes
15181 gdb_cv_thread_db_h_has_td_version
=no
15184 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
15188 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
15190 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
15191 if ${gdb_cv_thread_db_h_has_td_notls+:} false
; then :
15192 $as_echo_n "(cached) " >&6
15194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15195 /* end confdefs.h. */
15196 #include <thread_db.h>
15205 if ac_fn_c_try_compile
"$LINENO"; then :
15206 gdb_cv_thread_db_h_has_td_notls
=yes
15208 gdb_cv_thread_db_h_has_td_notls
=no
15211 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
15215 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
15217 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
15219 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
15222 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
15224 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
15227 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
15229 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
15233 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
15235 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
15241 cat >>confdefs.h
<<_ACEOF
15242 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
15246 if test "$cross_compiling" = yes; then :
15247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15248 /* end confdefs.h. */
15249 #include <sys/personality.h>
15254 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
15255 # define ADDR_NO_RANDOMIZE 0x0040000
15257 /* Test the flag could be set and stays set. */
15258 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
15259 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
15265 if ac_fn_c_try_link
"$LINENO"; then :
15266 have_personality
=true
15268 have_personality
=false
15270 rm -f core conftest.err conftest.
$ac_objext \
15271 conftest
$ac_exeext conftest.
$ac_ext
15273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15274 /* end confdefs.h. */
15275 #include <sys/personality.h>
15280 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
15281 # define ADDR_NO_RANDOMIZE 0x0040000
15283 /* Test the flag could be set and stays set. */
15284 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
15285 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
15291 if ac_fn_c_try_run
"$LINENO"; then :
15292 have_personality
=true
15294 have_personality
=false
15296 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15297 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15300 if $have_personality
15303 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
15316 cat >>confdefs.h
<<_ACEOF
15317 #define GDBINIT "$gdbinit"
15322 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
15323 # except that the argument to --with-sysroot is optional.
15324 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
15325 if test "x$with_sysroot" = xyes
; then
15326 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
15329 # Check whether --with-sysroot was given.
15330 if test "${with_sysroot+set}" = set; then :
15331 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
15333 TARGET_SYSTEM_ROOT
=
15337 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
15338 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15339 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
15340 ac_define_dir
=`eval echo $ac_define_dir`
15342 cat >>confdefs.h
<<_ACEOF
15343 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
15349 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
15350 if test "x$prefix" = xNONE
; then
15351 test_prefix
=/usr
/local
15353 test_prefix
=$prefix
15356 test_prefix
=$exec_prefix
15359 case ${ac_define_dir} in
15360 "${test_prefix}"|
"${test_prefix}/"*|\
15361 '${exec_prefix}'|
'${exec_prefix}/'*)
15366 cat >>confdefs.h
<<_ACEOF
15367 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
15374 # Check whether --with-system-gdbinit was given.
15375 if test "${with_system_gdbinit+set}" = set; then :
15376 withval
=$with_system_gdbinit;
15377 SYSTEM_GDBINIT
=$withval
15383 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
15384 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15385 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
15386 ac_define_dir
=`eval echo $ac_define_dir`
15388 cat >>confdefs.h
<<_ACEOF
15389 #define SYSTEM_GDBINIT "$ac_define_dir"
15395 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
15396 if test "x$prefix" = xNONE
; then
15397 test_prefix
=/usr
/local
15399 test_prefix
=$prefix
15402 test_prefix
=$exec_prefix
15405 case ${ac_define_dir} in
15406 "${test_prefix}"|
"${test_prefix}/"*|\
15407 '${exec_prefix}'|
'${exec_prefix}/'*)
15412 cat >>confdefs.h
<<_ACEOF
15413 #define SYSTEM_GDBINIT_RELOCATABLE $value
15420 # Check whether --enable-werror was given.
15421 if test "${enable_werror+set}" = set; then :
15422 enableval
=$enable_werror; case "${enableval}" in
15423 yes | y
) ERROR_ON_WARNING
="yes" ;;
15424 no | n
) ERROR_ON_WARNING
="no" ;;
15425 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15430 # Enable -Werror by default when using gcc. Turn it off for releases.
15431 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
15432 ERROR_ON_WARNING
=yes
15436 if test "${ERROR_ON_WARNING}" = yes ; then
15437 WERROR_CFLAGS
="-Werror"
15440 # The options we'll try to enable.
15441 build_warnings
="-Wall -Wpointer-arith \
15442 -Wno-unused -Wunused-value -Wunused-function \
15443 -Wno-switch -Wno-char-subscripts \
15444 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
15445 -Wno-sign-compare -Wno-narrowing -Wno-error=maybe-uninitialized \
15446 -Wno-mismatched-tags \
15447 -Wno-error=deprecated-register \
15448 -Wsuggest-override \
15449 -Wimplicit-fallthrough=3 \
15454 # Enable -Wno-format by default when using gcc on mingw since many
15455 # GCC versions complain about %I64.
15456 build_warnings
="$build_warnings -Wno-format" ;;
15458 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
15459 # doesn't understand.
15460 build_warnings
="$build_warnings -Wno-unknown-pragmas"
15461 # Solaris 11 <unistd.h> marks vfork deprecated.
15462 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
15463 *) build_warnings
="$build_warnings -Wformat-nonliteral" ;;
15466 # Check whether --enable-build-warnings was given.
15467 if test "${enable_build_warnings+set}" = set; then :
15468 enableval
=$enable_build_warnings; case "${enableval}" in
15470 no
) build_warnings
="-w";;
15471 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15472 build_warnings
="${build_warnings} ${t}";;
15473 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15474 build_warnings
="${t} ${build_warnings}";;
15475 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15477 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
15478 echo "Setting compiler warning flags = $build_warnings" 6>&1
15481 # Check whether --enable-gdb-build-warnings was given.
15482 if test "${enable_gdb_build_warnings+set}" = set; then :
15483 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
15485 no
) build_warnings
="-w";;
15486 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15487 build_warnings
="${build_warnings} ${t}";;
15488 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15489 build_warnings
="${t} ${build_warnings}";;
15490 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15492 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
15493 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
15497 # The set of warnings supported by a C++ compiler is not the same as
15498 # of the C compiler.
15500 ac_cpp
='$CXXCPP $CPPFLAGS'
15501 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15502 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15503 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
15507 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
15510 $as_echo_n "checking compiler warning flags... " >&6; }
15511 # Separate out the -Werror flag as some files just cannot be
15512 # compiled with it enabled.
15513 for w
in ${build_warnings}; do
15514 # GCC does not complain about -Wno-unknown-warning. Invert
15515 # and test -Wunknown-warning instead.
15518 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
15524 -Werr*) WERROR_CFLAGS
=-Werror ;;
15526 # Check whether GCC accepts it.
15527 saved_CFLAGS
="$CFLAGS"
15528 CFLAGS
="$CFLAGS -Werror $wtest"
15529 saved_CXXFLAGS
="$CXXFLAGS"
15530 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
15531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15532 /* end confdefs.h. */
15542 if ac_fn_cxx_try_compile
"$LINENO"; then :
15543 WARN_CFLAGS
="${WARN_CFLAGS} $w"
15545 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15546 CFLAGS
="$saved_CFLAGS"
15547 CXXFLAGS
="$saved_CXXFLAGS"
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
15551 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
15557 ac_cpp='$CPP $CPPFLAGS'
15558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15564 # In the Cygwin environment, we need some additional flags.
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
15566 $as_echo_n "checking
for cygwin...
" >&6; }
15567 if ${gdb_cv_os_cygwin+:} false; then :
15568 $as_echo_n "(cached
) " >&6
15570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15571 /* end confdefs.h. */
15573 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
15577 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15578 $EGREP "^lose$
" >/dev/null 2>&1; then :
15579 gdb_cv_os_cygwin=yes
15581 gdb_cv_os_cygwin=no
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
15587 $as_echo "$gdb_cv_os_cygwin" >&6; }
15590 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
15592 *go32* ) SER_HARDWIRE=ser-go32.o ;;
15593 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
15594 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
15598 # libreadline needs libuser32.a in a cygwin environment
15600 if test x$gdb_cv_os_cygwin = xyes; then
15601 WIN32LIBS="-luser32"
15602 case "${target}" in
15603 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
15608 # The ser-tcp.c module requires sockets.
15612 $as_echo "#define USE_WIN32API 1" >>confdefs.h
15614 WIN32LIBS
="$WIN32LIBS -lws2_32"
15619 # Add ELF support to GDB, but only if BFD includes ELF support.
15622 OLD_LDFLAGS
=$LDFLAGS
15624 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
15625 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
15626 # always want our bfd.
15627 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
15628 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
15629 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
15630 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15631 LIBS
="-lbfd -liberty -lz $intl $LIBS"
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
15633 $as_echo_n "checking for ELF support in BFD... " >&6; }
15634 if ${gdb_cv_var_elf+:} false
; then :
15635 $as_echo_n "(cached) " >&6
15637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15638 /* end confdefs.h. */
15639 #include <stdlib.h>
15641 #include "elf-bfd.h"
15646 return bfd_get_elf_phdr_upper_bound (NULL);
15651 if ac_fn_c_try_link
"$LINENO"; then :
15656 rm -f core conftest.err conftest.
$ac_objext \
15657 conftest
$ac_exeext conftest.
$ac_ext
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
15660 $as_echo "$gdb_cv_var_elf" >&6; }
15662 LDFLAGS
=$OLD_LDFLAGS
15664 if test $gdb_cv_var_elf = yes; then
15665 CONFIG_OBS
="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o"
15667 $as_echo "#define HAVE_ELF 1" >>confdefs.h
15669 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
15670 if test "$plugins" = "yes"; then
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15672 $as_echo_n "checking for library containing dlopen... " >&6; }
15673 if ${ac_cv_search_dlopen+:} false
; then :
15674 $as_echo_n "(cached) " >&6
15676 ac_func_search_save_LIBS
=$LIBS
15677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15678 /* end confdefs.h. */
15680 /* Override any GCC internal prototype to avoid an error.
15681 Use char because int might match the return type of a GCC
15682 builtin and then its argument prototype would still apply. */
15695 for ac_lib
in '' dl
; do
15696 if test -z "$ac_lib"; then
15697 ac_res
="none required"
15700 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15702 if ac_fn_c_try_link
"$LINENO"; then :
15703 ac_cv_search_dlopen
=$ac_res
15705 rm -f core conftest.err conftest.
$ac_objext \
15707 if ${ac_cv_search_dlopen+:} false
; then :
15711 if ${ac_cv_search_dlopen+:} false
; then :
15714 ac_cv_search_dlopen
=no
15716 rm conftest.
$ac_ext
15717 LIBS
=$ac_func_search_save_LIBS
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15720 $as_echo "$ac_cv_search_dlopen" >&6; }
15721 ac_res
=$ac_cv_search_dlopen
15722 if test "$ac_res" != no
; then :
15723 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15730 # Add macho support to GDB, but only if BFD includes it.
15733 OLD_LDFLAGS
=$LDFLAGS
15735 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
15736 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
15737 # always want our bfd.
15738 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
15739 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
15740 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
15741 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15742 LIBS
="-lbfd -liberty -lz $intl $LIBS"
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
15744 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
15745 if ${gdb_cv_var_macho+:} false
; then :
15746 $as_echo_n "(cached) " >&6
15748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15749 /* end confdefs.h. */
15750 #include <stdlib.h>
15752 #include "mach-o.h"
15757 return bfd_mach_o_lookup_command (NULL, 0, NULL);
15762 if ac_fn_c_try_link
"$LINENO"; then :
15763 gdb_cv_var_macho
=yes
15765 gdb_cv_var_macho
=no
15767 rm -f core conftest.err conftest.
$ac_objext \
15768 conftest
$ac_exeext conftest.
$ac_ext
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
15771 $as_echo "$gdb_cv_var_macho" >&6; }
15773 LDFLAGS
=$OLD_LDFLAGS
15775 if test $gdb_cv_var_macho = yes; then
15776 CONFIG_OBS
="$CONFIG_OBS machoread.o"
15779 # Add any host-specific objects to GDB.
15780 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
15782 # If building on ELF, look for lzma support for embedded compressed debug info.
15783 if test $gdb_cv_var_elf = yes; then
15785 # Check whether --with-lzma was given.
15786 if test "${with_lzma+set}" = set; then :
15787 withval
=$with_lzma;
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
15793 $as_echo_n "checking whether to use lzma... " >&6; }
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
15795 $as_echo "$with_lzma" >&6; }
15797 if test "${with_lzma}" != no
; then
15808 acl_save_prefix
="$prefix"
15809 prefix
="$acl_final_prefix"
15810 acl_save_exec_prefix
="$exec_prefix"
15811 exec_prefix
="$acl_final_exec_prefix"
15813 eval additional_includedir
=\"$includedir\"
15814 eval additional_libdir
=\"$libdir\"
15816 exec_prefix
="$acl_save_exec_prefix"
15817 prefix
="$acl_save_prefix"
15820 # Check whether --with-liblzma-prefix was given.
15821 if test "${with_liblzma_prefix+set}" = set; then :
15822 withval
=$with_liblzma_prefix;
15823 if test "X$withval" = "Xno"; then
15826 if test "X$withval" = "X"; then
15828 acl_save_prefix
="$prefix"
15829 prefix
="$acl_final_prefix"
15830 acl_save_exec_prefix
="$exec_prefix"
15831 exec_prefix
="$acl_final_exec_prefix"
15833 eval additional_includedir
=\"$includedir\"
15834 eval additional_libdir
=\"$libdir\"
15836 exec_prefix
="$acl_save_exec_prefix"
15837 prefix
="$acl_save_prefix"
15840 additional_includedir
="$withval/include"
15841 additional_libdir
="$withval/lib"
15852 names_already_handled
=
15853 names_next_round
='lzma '
15854 while test -n "$names_next_round"; do
15855 names_this_round
="$names_next_round"
15857 for name
in $names_this_round; do
15859 for n
in $names_already_handled; do
15860 if test "$n" = "$name"; then
15861 already_handled
=yes
15865 if test -z "$already_handled"; then
15866 names_already_handled
="$names_already_handled $name"
15867 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15868 eval value
=\"\
$HAVE_LIB$uppername\"
15869 if test -n "$value"; then
15870 if test "$value" = yes; then
15871 eval value
=\"\
$LIB$uppername\"
15872 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
15873 eval value
=\"\
$LTLIB$uppername\"
15874 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
15883 if test $use_additional = yes; then
15884 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15885 found_dir
="$additional_libdir"
15886 found_so
="$additional_libdir/lib$name.$shlibext"
15887 if test -f "$additional_libdir/lib$name.la"; then
15888 found_la
="$additional_libdir/lib$name.la"
15891 if test -f "$additional_libdir/lib$name.$libext"; then
15892 found_dir
="$additional_libdir"
15893 found_a
="$additional_libdir/lib$name.$libext"
15894 if test -f "$additional_libdir/lib$name.la"; then
15895 found_la
="$additional_libdir/lib$name.la"
15900 if test "X$found_dir" = "X"; then
15901 for x
in $LDFLAGS $LTLIBLZMA; do
15903 acl_save_prefix
="$prefix"
15904 prefix
="$acl_final_prefix"
15905 acl_save_exec_prefix
="$exec_prefix"
15906 exec_prefix
="$acl_final_exec_prefix"
15908 exec_prefix
="$acl_save_exec_prefix"
15909 prefix
="$acl_save_prefix"
15913 dir
=`echo "X$x" | sed -e 's/^X-L//'`
15914 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15916 found_so
="$dir/lib$name.$shlibext"
15917 if test -f "$dir/lib$name.la"; then
15918 found_la
="$dir/lib$name.la"
15921 if test -f "$dir/lib$name.$libext"; then
15923 found_a
="$dir/lib$name.$libext"
15924 if test -f "$dir/lib$name.la"; then
15925 found_la
="$dir/lib$name.la"
15931 if test "X$found_dir" != "X"; then
15936 if test "X$found_dir" != "X"; then
15937 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
15938 if test "X$found_so" != "X"; then
15939 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
15940 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
15943 for x
in $ltrpathdirs; do
15944 if test "X$x" = "X$found_dir"; then
15949 if test -z "$haveit"; then
15950 ltrpathdirs
="$ltrpathdirs $found_dir"
15952 if test "$hardcode_direct" = yes; then
15953 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
15955 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
15956 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
15958 for x
in $rpathdirs; do
15959 if test "X$x" = "X$found_dir"; then
15964 if test -z "$haveit"; then
15965 rpathdirs
="$rpathdirs $found_dir"
15969 for x
in $LDFLAGS $LIBLZMA; do
15971 acl_save_prefix
="$prefix"
15972 prefix
="$acl_final_prefix"
15973 acl_save_exec_prefix
="$exec_prefix"
15974 exec_prefix
="$acl_final_exec_prefix"
15976 exec_prefix
="$acl_save_exec_prefix"
15977 prefix
="$acl_save_prefix"
15979 if test "X$x" = "X-L$found_dir"; then
15984 if test -z "$haveit"; then
15985 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
15987 if test "$hardcode_minus_L" != no
; then
15988 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
15990 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
15996 if test "X$found_a" != "X"; then
15997 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
15999 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
16002 additional_includedir
=
16003 case "$found_dir" in
16005 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16006 additional_includedir
="$basedir/include"
16009 if test "X$additional_includedir" != "X"; then
16010 if test "X$additional_includedir" != "X/usr/include"; then
16012 if test "X$additional_includedir" = "X/usr/local/include"; then
16013 if test -n "$GCC"; then
16015 linux
*) haveit
=yes;;
16019 if test -z "$haveit"; then
16020 for x
in $CPPFLAGS $INCLZMA; do
16022 acl_save_prefix
="$prefix"
16023 prefix
="$acl_final_prefix"
16024 acl_save_exec_prefix
="$exec_prefix"
16025 exec_prefix
="$acl_final_exec_prefix"
16027 exec_prefix
="$acl_save_exec_prefix"
16028 prefix
="$acl_save_prefix"
16030 if test "X$x" = "X-I$additional_includedir"; then
16035 if test -z "$haveit"; then
16036 if test -d "$additional_includedir"; then
16037 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
16043 if test -n "$found_la"; then
16044 save_libdir
="$libdir"
16045 case "$found_la" in
16046 */* |
*\\*) .
"$found_la" ;;
16047 *) .
"./$found_la" ;;
16049 libdir
="$save_libdir"
16050 for dep
in $dependency_libs; do
16053 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
16054 if test "X$additional_libdir" != "X/usr/lib"; then
16056 if test "X$additional_libdir" = "X/usr/local/lib"; then
16057 if test -n "$GCC"; then
16059 linux
*) haveit
=yes;;
16063 if test -z "$haveit"; then
16065 for x
in $LDFLAGS $LIBLZMA; do
16067 acl_save_prefix
="$prefix"
16068 prefix
="$acl_final_prefix"
16069 acl_save_exec_prefix
="$exec_prefix"
16070 exec_prefix
="$acl_final_exec_prefix"
16072 exec_prefix
="$acl_save_exec_prefix"
16073 prefix
="$acl_save_prefix"
16075 if test "X$x" = "X-L$additional_libdir"; then
16080 if test -z "$haveit"; then
16081 if test -d "$additional_libdir"; then
16082 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
16086 for x
in $LDFLAGS $LTLIBLZMA; do
16088 acl_save_prefix
="$prefix"
16089 prefix
="$acl_final_prefix"
16090 acl_save_exec_prefix
="$exec_prefix"
16091 exec_prefix
="$acl_final_exec_prefix"
16093 exec_prefix
="$acl_save_exec_prefix"
16094 prefix
="$acl_save_prefix"
16096 if test "X$x" = "X-L$additional_libdir"; then
16101 if test -z "$haveit"; then
16102 if test -d "$additional_libdir"; then
16103 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
16110 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
16111 if test "$enable_rpath" != no
; then
16113 for x
in $rpathdirs; do
16114 if test "X$x" = "X$dir"; then
16119 if test -z "$haveit"; then
16120 rpathdirs
="$rpathdirs $dir"
16123 for x
in $ltrpathdirs; do
16124 if test "X$x" = "X$dir"; then
16129 if test -z "$haveit"; then
16130 ltrpathdirs
="$ltrpathdirs $dir"
16135 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16138 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16141 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
16142 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
16148 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
16149 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
16155 if test "X$rpathdirs" != "X"; then
16156 if test -n "$hardcode_libdir_separator"; then
16158 for found_dir
in $rpathdirs; do
16159 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16161 acl_save_libdir
="$libdir"
16163 eval flag
=\"$hardcode_libdir_flag_spec\"
16164 libdir
="$acl_save_libdir"
16165 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
16167 for found_dir
in $rpathdirs; do
16168 acl_save_libdir
="$libdir"
16169 libdir
="$found_dir"
16170 eval flag
=\"$hardcode_libdir_flag_spec\"
16171 libdir
="$acl_save_libdir"
16172 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
16176 if test "X$ltrpathdirs" != "X"; then
16177 for found_dir
in $ltrpathdirs; do
16178 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
16183 ac_save_CPPFLAGS
="$CPPFLAGS"
16185 for element
in $INCLZMA; do
16187 for x
in $CPPFLAGS; do
16189 acl_save_prefix
="$prefix"
16190 prefix
="$acl_final_prefix"
16191 acl_save_exec_prefix
="$exec_prefix"
16192 exec_prefix
="$acl_final_exec_prefix"
16194 exec_prefix
="$acl_save_exec_prefix"
16195 prefix
="$acl_save_prefix"
16197 if test "X$x" = "X$element"; then
16202 if test -z "$haveit"; then
16203 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
16209 $as_echo_n "checking for liblzma... " >&6; }
16210 if ${ac_cv_liblzma+:} false
; then :
16211 $as_echo_n "(cached) " >&6
16214 ac_save_LIBS
="$LIBS"
16215 LIBS
="$LIBS $LIBLZMA"
16216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16217 /* end confdefs.h. */
16222 lzma_index_iter iter;
16223 lzma_index_iter_init (&iter, 0);
16224 lzma_mf_is_supported (LZMA_MF_HC3);
16229 if ac_fn_c_try_link
"$LINENO"; then :
16234 rm -f core conftest.err conftest.
$ac_objext \
16235 conftest
$ac_exeext conftest.
$ac_ext
16236 LIBS
="$ac_save_LIBS"
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
16240 $as_echo "$ac_cv_liblzma" >&6; }
16241 if test "$ac_cv_liblzma" = yes; then
16244 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
16247 $as_echo_n "checking how to link with liblzma... " >&6; }
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
16249 $as_echo "$LIBLZMA" >&6; }
16252 CPPFLAGS
="$ac_save_CPPFLAGS"
16262 if test "$HAVE_LIBLZMA" != yes; then
16263 if test "$with_lzma" = yes; then
16264 as_fn_error $?
"missing liblzma for --with-lzma" "$LINENO" 5
16270 LIBGUI
="../libgui/src/libgui.a"
16271 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
16280 *-*-cygwin* |
*-*-mingw* )
16289 if test "${enable_gdbtk}" = "yes"; then
16291 # Gdbtk must have an absolute path to srcdir in order to run
16292 # properly when not installed.
16295 GDBTK_SRC_DIR
=`pwd`
16300 # Ok, lets find the tcl configuration
16301 # First, look for one uninstalled.
16302 # the alternative search directory is invoked by --with-tcl
16305 if test x
"${no_tcl}" = x
; then
16306 # we reset no_tcl in case something fails here
16309 # Check whether --with-tcl was given.
16310 if test "${with_tcl+set}" = set; then :
16311 withval
=$with_tcl; with_tclconfig
=${withval}
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
16315 $as_echo_n "checking for Tcl configuration... " >&6; }
16316 if ${ac_cv_c_tclconfig+:} false
; then :
16317 $as_echo_n "(cached) " >&6
16321 # First check to see if --with-tcl was specified.
16323 *-*-cygwin*) platDir
="win" ;;
16324 *) platDir
="unix" ;;
16326 if test x
"${with_tclconfig}" != x
; then
16327 if test -f "${with_tclconfig}/tclConfig.sh" ; then
16328 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
16330 as_fn_error $?
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
16334 # then check for a private Tcl installation
16335 if test x
"${ac_cv_c_tclconfig}" = x
; then
16338 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16339 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
16340 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
16342 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16343 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
16344 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
16346 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16347 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
16348 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
16349 if test -f "$i/$platDir/tclConfig.sh" ; then
16350 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
16356 # on Darwin, check in Framework installation locations
16357 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
16358 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
16359 `ls -d /Library/Frameworks 2>/dev/null` \
16360 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16361 `ls -d /System/Library/Frameworks 2>/dev/null` \
16363 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
16364 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
16370 # check in a few common install locations
16371 if test x
"${ac_cv_c_tclconfig}" = x
; then
16372 for i
in `ls -d ${libdir} 2>/dev/null` \
16373 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16374 `ls -d ${prefix}/lib 2>/dev/null` \
16375 `ls -d /usr/local/lib 2>/dev/null` \
16376 `ls -d /usr/contrib/lib 2>/dev/null` \
16377 `ls -d /usr/lib 2>/dev/null` \
16379 if test -f "$i/tclConfig.sh" ; then
16380 ac_cv_c_tclconfig
=`(cd $i; pwd)`
16386 # check in a few other private locations
16387 if test x
"${ac_cv_c_tclconfig}" = x
; then
16390 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16391 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
16392 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
16393 if test -f "$i/$platDir/tclConfig.sh" ; then
16394 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
16403 if test x
"${ac_cv_c_tclconfig}" = x
; then
16404 TCL_BIN_DIR
="# no Tcl configs found"
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
16406 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
16409 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
16411 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
16416 # If $no_tk is nonempty, then we can't do Tk, and there is no
16417 # point to doing Tcl.
16420 # Ok, lets find the tk configuration
16421 # First, look for one uninstalled.
16422 # the alternative search directory is invoked by --with-tk
16425 if test x
"${no_tk}" = x
; then
16426 # we reset no_tk in case something fails here
16429 # Check whether --with-tk was given.
16430 if test "${with_tk+set}" = set; then :
16431 withval
=$with_tk; with_tkconfig
=${withval}
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
16435 $as_echo_n "checking for Tk configuration... " >&6; }
16436 if ${ac_cv_c_tkconfig+:} false
; then :
16437 $as_echo_n "(cached) " >&6
16441 # First check to see if --with-tkconfig was specified.
16442 if test x
"${with_tkconfig}" != x
; then
16443 if test -f "${with_tkconfig}/tkConfig.sh" ; then
16444 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
16446 as_fn_error $?
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
16450 # then check for a private Tk library
16452 *-*-cygwin*) platDir
="win" ;;
16453 *) platDir
="unix" ;;
16455 if test x
"${ac_cv_c_tkconfig}" = x
; then
16458 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16459 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
16460 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
16462 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16463 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
16464 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
16466 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16467 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
16468 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
16469 if test -f "$i/$platDir/tkConfig.sh" ; then
16470 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
16476 # on Darwin, check in Framework installation locations
16477 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
16478 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
16479 `ls -d /Library/Frameworks 2>/dev/null` \
16480 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16481 `ls -d /System/Library/Frameworks 2>/dev/null` \
16483 if test -f "$i/Tk.framework/tkConfig.sh" ; then
16484 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
16490 # check in a few common install locations
16491 if test x
"${ac_cv_c_tkconfig}" = x
; then
16492 for i
in `ls -d ${libdir} 2>/dev/null` \
16493 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16494 `ls -d ${prefix}/lib 2>/dev/null` \
16495 `ls -d /usr/local/lib 2>/dev/null` \
16496 `ls -d /usr/contrib/lib 2>/dev/null` \
16497 `ls -d /usr/lib 2>/dev/null` \
16499 if test -f "$i/tkConfig.sh" ; then
16500 ac_cv_c_tkconfig
=`(cd $i; pwd)`
16505 # check in a few other private locations
16506 if test x
"${ac_cv_c_tkconfig}" = x
; then
16509 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16510 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
16511 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
16512 if test -f "$i/$platDir/tkConfig.sh" ; then
16513 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
16522 if test x
"${ac_cv_c_tkconfig}" = x
; then
16523 TK_BIN_DIR
="# no Tk configs found"
16524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
16525 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
16528 TK_BIN_DIR
=${ac_cv_c_tkconfig}
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
16530 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
16535 if test -z "${no_tcl}" -a -z "${no_tk}"; then
16537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
16538 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
16540 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
16542 $as_echo "loading" >&6; }
16543 .
${TCL_BIN_DIR}/tclConfig.sh
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
16546 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
16549 # eval is required to do the TCL_DBGX substitution
16550 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
16551 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
16553 # If the TCL_BIN_DIR is the build directory (not the install directory),
16554 # then set the common variable name to the value of the build variables.
16555 # For example, the variable TCL_LIB_SPEC will be set to the value
16556 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
16557 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
16558 # installed and uninstalled version of Tcl.
16559 if test -f "${TCL_BIN_DIR}/Makefile" ; then
16560 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
16561 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
16562 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
16563 elif test "`uname -s`" = "Darwin"; then
16564 # If Tcl was built as a framework, attempt to use the libraries
16565 # from the framework at the given location so that linking works
16566 # against Tcl.framework installed in an arbitrary location.
16567 case ${TCL_DEFS} in
16569 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
16570 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
16571 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
16572 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
16573 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
16578 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
16579 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
16580 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
16586 # eval is required to do the TCL_DBGX substitution
16587 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
16588 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
16589 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
16590 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
16606 # Check for in-tree tcl
16613 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
16617 # Find Tcl private headers
16618 if test x
"${intree}" = xno
; then
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
16621 $as_echo_n "checking for Tcl private headers... " >&6; }
16623 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
16624 if test -f ${dir}/tclInt.h
; then
16628 if test x
"${private_dir}" = x
; then
16629 as_fn_error $?
"could not find private Tcl headers" "$LINENO" 5
16631 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
16633 $as_echo "${private_dir}" >&6; }
16636 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
16637 TCL_LIBRARY
="${TCL_LIB_SPEC}"
16640 # If building tcl in the same src tree, private headers
16641 # are not needed, but we need to be sure to use the right
16643 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
16644 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
16645 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
16653 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
16655 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
16657 $as_echo "loading" >&6; }
16658 .
${TK_BIN_DIR}/tkConfig.sh
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
16661 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
16664 # eval is required to do the TK_DBGX substitution
16665 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
16666 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
16668 # If the TK_BIN_DIR is the build directory (not the install directory),
16669 # then set the common variable name to the value of the build variables.
16670 # For example, the variable TK_LIB_SPEC will be set to the value
16671 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
16672 # instead of TK_BUILD_LIB_SPEC since it will work with both an
16673 # installed and uninstalled version of Tcl.
16674 if test -f "${TK_BIN_DIR}/Makefile" ; then
16675 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
16676 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
16677 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
16678 elif test "`uname -s`" = "Darwin"; then
16679 # If Tk was built as a framework, attempt to use the libraries
16680 # from the framework at the given location so that linking works
16681 # against Tk.framework installed in an arbitrary location.
16684 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
16685 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
16686 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
16687 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
16688 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
16693 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
16694 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
16695 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
16701 # eval is required to do the TK_DBGX substitution
16702 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
16703 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
16704 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
16705 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
16720 # Check for in-tree Tk
16722 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
16726 # Find Tk private headers
16727 if test x
"${intree}" = xno
; then
16729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
16730 $as_echo_n "checking for Tk private headers... " >&6; }
16732 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
16733 if test -f ${dir}/tkInt.h
; then
16737 if test x
"${private_dir}" = x
; then
16738 as_fn_error $?
"could not find Tk private headers" "$LINENO" 5
16740 TK_PRIVATE_INCLUDE
="-I${private_dir}"
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
16742 $as_echo "${private_dir}" >&6; }
16745 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
16746 TK_LIBRARY
=${TK_LIB_SPEC}
16749 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
16750 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
16751 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
16758 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
16760 # Include some libraries that Tcl and Tk want.
16761 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
16762 # Yes, the ordering seems wrong here. But it isn't.
16763 # TK_LIBS is the list of libraries that need to be linked
16764 # after Tcl/Tk. Note that this isn't put into LIBS. If it
16765 # were in LIBS then any link tests after this point would
16766 # try to include things like `$(LIBGUI)', which wouldn't work.
16767 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
16769 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
16770 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
16771 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
16772 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
16773 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
16774 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
16775 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
16777 if test x
$gdb_cv_os_cygwin = xyes
; then
16778 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
16779 WIN32LDAPP
="-Wl,--subsystem,console"
16780 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
16783 subdirs
="$subdirs gdbtk"
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
16796 $as_echo_n "checking for X... " >&6; }
16799 # Check whether --with-x was given.
16800 if test "${with_x+set}" = set; then :
16804 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
16805 if test "x$with_x" = xno
; then
16806 # The user explicitly disabled X.
16809 case $x_includes,$x_libraries in #(
16810 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
16811 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
16812 $as_echo_n "(cached) " >&6
16814 # One or both of the vars are not set, and there is no cached value.
16815 ac_x_includes
=no ac_x_libraries
=no
16816 rm -f -r conftest.dir
16817 if mkdir conftest.dir
; then
16819 cat >Imakefile
<<'_ACEOF'
16821 @echo incroot='${INCROOT}'
16823 @echo usrlibdir='${USRLIBDIR}'
16825 @echo libdir='${LIBDIR}'
16827 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
16828 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16829 for ac_var
in incroot usrlibdir libdir
; do
16830 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
16832 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
16833 for ac_extension
in a so sl dylib la dll
; do
16834 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
16835 test -f "$ac_im_libdir/libX11.$ac_extension"; then
16836 ac_im_usrlibdir
=$ac_im_libdir; break
16839 # Screen out bogus values from the imake configuration. They are
16840 # bogus both because they are the default anyway, and because
16841 # using them would break gcc on systems where it needs fixed includes.
16842 case $ac_im_incroot in
16843 /usr
/include
) ac_x_includes
= ;;
16844 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
16846 case $ac_im_usrlibdir in
16847 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
16848 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
16852 rm -f -r conftest.dir
16855 # Standard set of common directories for X headers.
16856 # Check X11 before X11Rn because it is often a symlink to the current release.
16870 /usr/local/X11/include
16871 /usr/local/X11R7/include
16872 /usr/local/X11R6/include
16873 /usr/local/X11R5/include
16874 /usr/local/X11R4/include
16876 /usr/local/include/X11
16877 /usr/local/include/X11R7
16878 /usr/local/include/X11R6
16879 /usr/local/include/X11R5
16880 /usr/local/include/X11R4
16884 /usr/XFree86/include/X11
16888 /usr/unsupported/include
16889 /usr/athena/include
16890 /usr/local/x11r5/include
16891 /usr/lpp/Xamples/include
16893 /usr/openwin/include
16894 /usr/openwin/share/include'
16896 if test "$ac_x_includes" = no
; then
16897 # Guess where to find include files, by looking for Xlib.h.
16898 # First, try using that file with no special directory specified.
16899 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16900 /* end confdefs.h. */
16901 #include <X11/Xlib.h>
16903 if ac_fn_c_try_cpp
"$LINENO"; then :
16904 # We can compile using X headers with no special include directory.
16907 for ac_dir
in $ac_x_header_dirs; do
16908 if test -r "$ac_dir/X11/Xlib.h"; then
16909 ac_x_includes
=$ac_dir
16914 rm -f conftest.err conftest.i conftest.
$ac_ext
16915 fi # $ac_x_includes = no
16917 if test "$ac_x_libraries" = no
; then
16918 # Check for the libraries.
16919 # See if we find them without any special options.
16920 # Don't add to $LIBS permanently.
16923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16924 /* end confdefs.h. */
16925 #include <X11/Xlib.h>
16934 if ac_fn_c_try_link
"$LINENO"; then :
16936 # We can link X programs with no special library path.
16940 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
16942 # Don't even attempt the hair of trying to link an X program!
16943 for ac_extension
in a so sl dylib la dll
; do
16944 if test -r "$ac_dir/libX11.$ac_extension"; then
16945 ac_x_libraries
=$ac_dir
16951 rm -f core conftest.err conftest.
$ac_objext \
16952 conftest
$ac_exeext conftest.
$ac_ext
16953 fi # $ac_x_libraries = no
16955 case $ac_x_includes,$ac_x_libraries in #(
16956 no
,* |
*,no |
*\'*)
16957 # Didn't find X, or a directory has "'" in its name.
16958 ac_cv_have_x
="have_x=no";; #(
16960 # Record where we found X for the cache.
16961 ac_cv_have_x
="have_x=yes\
16962 ac_x_includes='$ac_x_includes'\
16963 ac_x_libraries='$ac_x_libraries'"
16969 eval "$ac_cv_have_x"
16972 if test "$have_x" != yes; then
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
16974 $as_echo "$have_x" >&6; }
16977 # If each of the values was on the command line, it overrides each guess.
16978 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
16979 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
16980 # Update the cache value to reflect the command line values.
16981 ac_cv_have_x
="have_x=yes\
16982 ac_x_includes='$x_includes'\
16983 ac_x_libraries='$x_libraries'"
16984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
16985 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
16989 # Unlike the sim directory, whether a simulator is linked is controlled by
16990 # presence of a gdb_sim definition in the target configure.tgt entry.
16991 # This code just checks for a few cases where we'd like to ignore those
16992 # definitions, even when they're present in the '.mt' file. These cases
16993 # are when --disable-sim is specified, or if the simulator directory is
16994 # not part of the source tree.
16996 # Check whether --enable-sim was given.
16997 if test "${enable_sim+set}" = set; then :
16998 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
16999 echo "enableval = ${enableval}";
17000 case "${enableval}" in
17001 yes) ignore_sim
=false
;;
17002 no
) ignore_sim
=true
;;
17003 *) ignore_sim
=false
;;
17010 if test ! -d "${srcdir}/../sim"; then
17016 if test "${ignore_sim}" = "false"; then
17017 if test x
"${gdb_sim}" != x
; then
17019 SIM_OBS
="remote-sim.o"
17021 $as_echo "#define WITH_SIM 1" >>confdefs.h
17024 # Some tdep code should only be compiled in when the ppc sim is
17025 # built. PR sim/13418.
17029 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
17049 # List of host floatformats.
17051 cat >>confdefs.h
<<_ACEOF
17052 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
17056 cat >>confdefs.h
<<_ACEOF
17057 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
17061 cat >>confdefs.h
<<_ACEOF
17062 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
17066 # target_subdir is used by the testsuite to find the target libraries.
17068 if test "${host}" != "${target}"; then
17069 target_subdir
="${target_alias}/"
17073 # Import nat definitions.
17074 nat_makefile_frag
=/dev
/null
17075 if test "${gdb_native}" = "yes"; then
17076 .
${srcdir}/configure.nat
17077 nativefile
=$NAT_FILE
17090 if test x
"${gdb_osabi}" != x
; then
17092 cat >>confdefs.h
<<_ACEOF
17093 #define GDB_OSABI_DEFAULT $gdb_osabi
17098 # Enable multi-ice-gdb-server.
17099 # Check whether --enable-multi-ice was given.
17100 if test "${enable_multi_ice+set}" = set; then :
17101 enableval
=$enable_multi_ice; case $enableval in
17104 *) as_fn_error $?
"bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
17108 if test "x$enable_multi_ice" = xyes
; then
17109 subdirs
="$subdirs multi-ice"
17113 # Check whether --enable-gdbserver was given.
17114 if test "${enable_gdbserver+set}" = set; then :
17115 enableval
=$enable_gdbserver; case "${enableval}" in
17117 *) as_fn_error $?
"bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
17120 enable_gdbserver
=auto
17124 # We only build gdbserver automatically in a native configuration, and
17125 # only if the user did not explicitly disable its build.
17126 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
17128 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
17129 if test "x$build_gdbserver" = xyes
; then
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17131 $as_echo "yes" >&6; }
17132 subdirs
="$subdirs gdbserver"
17134 gdbserver_build_enabled
=yes
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17137 $as_echo "no" >&6; }
17141 # If the user explicitly request the gdbserver to be built, verify that
17142 # we were in fact able to enable it.
17143 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
17144 as_fn_error $?
"Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
17147 # Check for babeltrace and babeltrace-ctf
17149 # Check whether --with-babeltrace was given.
17150 if test "${with_babeltrace+set}" = set; then :
17151 withval
=$with_babeltrace;
17153 with_babeltrace
=auto
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
17157 $as_echo_n "checking whether to use babeltrace... " >&6; }
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
17159 $as_echo "$with_babeltrace" >&6; }
17161 if test "x$with_babeltrace" = "xno"; then
17162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
17163 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
17165 # Append -Werror to CFLAGS so that configure can catch the warning
17166 # "assignment from incompatible pointer type", which is related to
17167 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
17168 # in GDB, while babeltrace 1.0.3 is broken.
17169 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
17170 # safe to save and restore CFLAGS here.
17171 saved_CFLAGS
=$CFLAGS
17172 CFLAGS
="$CFLAGS -Werror"
17183 acl_save_prefix
="$prefix"
17184 prefix
="$acl_final_prefix"
17185 acl_save_exec_prefix
="$exec_prefix"
17186 exec_prefix
="$acl_final_exec_prefix"
17188 eval additional_includedir
=\"$includedir\"
17189 eval additional_libdir
=\"$libdir\"
17191 exec_prefix
="$acl_save_exec_prefix"
17192 prefix
="$acl_save_prefix"
17195 # Check whether --with-libbabeltrace-prefix was given.
17196 if test "${with_libbabeltrace_prefix+set}" = set; then :
17197 withval
=$with_libbabeltrace_prefix;
17198 if test "X$withval" = "Xno"; then
17201 if test "X$withval" = "X"; then
17203 acl_save_prefix
="$prefix"
17204 prefix
="$acl_final_prefix"
17205 acl_save_exec_prefix
="$exec_prefix"
17206 exec_prefix
="$acl_final_exec_prefix"
17208 eval additional_includedir
=\"$includedir\"
17209 eval additional_libdir
=\"$libdir\"
17211 exec_prefix
="$acl_save_exec_prefix"
17212 prefix
="$acl_save_prefix"
17215 additional_includedir
="$withval/include"
17216 additional_libdir
="$withval/lib"
17227 names_already_handled
=
17228 names_next_round
='babeltrace babeltrace-ctf'
17229 while test -n "$names_next_round"; do
17230 names_this_round
="$names_next_round"
17232 for name
in $names_this_round; do
17234 for n
in $names_already_handled; do
17235 if test "$n" = "$name"; then
17236 already_handled
=yes
17240 if test -z "$already_handled"; then
17241 names_already_handled
="$names_already_handled $name"
17242 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17243 eval value
=\"\
$HAVE_LIB$uppername\"
17244 if test -n "$value"; then
17245 if test "$value" = yes; then
17246 eval value
=\"\
$LIB$uppername\"
17247 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
17248 eval value
=\"\
$LTLIB$uppername\"
17249 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
17258 if test $use_additional = yes; then
17259 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17260 found_dir
="$additional_libdir"
17261 found_so
="$additional_libdir/lib$name.$shlibext"
17262 if test -f "$additional_libdir/lib$name.la"; then
17263 found_la
="$additional_libdir/lib$name.la"
17266 if test -f "$additional_libdir/lib$name.$libext"; then
17267 found_dir
="$additional_libdir"
17268 found_a
="$additional_libdir/lib$name.$libext"
17269 if test -f "$additional_libdir/lib$name.la"; then
17270 found_la
="$additional_libdir/lib$name.la"
17275 if test "X$found_dir" = "X"; then
17276 for x
in $LDFLAGS $LTLIBBABELTRACE; do
17278 acl_save_prefix
="$prefix"
17279 prefix
="$acl_final_prefix"
17280 acl_save_exec_prefix
="$exec_prefix"
17281 exec_prefix
="$acl_final_exec_prefix"
17283 exec_prefix
="$acl_save_exec_prefix"
17284 prefix
="$acl_save_prefix"
17288 dir
=`echo "X$x" | sed -e 's/^X-L//'`
17289 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17291 found_so
="$dir/lib$name.$shlibext"
17292 if test -f "$dir/lib$name.la"; then
17293 found_la
="$dir/lib$name.la"
17296 if test -f "$dir/lib$name.$libext"; then
17298 found_a
="$dir/lib$name.$libext"
17299 if test -f "$dir/lib$name.la"; then
17300 found_la
="$dir/lib$name.la"
17306 if test "X$found_dir" != "X"; then
17311 if test "X$found_dir" != "X"; then
17312 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
17313 if test "X$found_so" != "X"; then
17314 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
17315 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17318 for x
in $ltrpathdirs; do
17319 if test "X$x" = "X$found_dir"; then
17324 if test -z "$haveit"; then
17325 ltrpathdirs
="$ltrpathdirs $found_dir"
17327 if test "$hardcode_direct" = yes; then
17328 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17330 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
17331 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17333 for x
in $rpathdirs; do
17334 if test "X$x" = "X$found_dir"; then
17339 if test -z "$haveit"; then
17340 rpathdirs
="$rpathdirs $found_dir"
17344 for x
in $LDFLAGS $LIBBABELTRACE; do
17346 acl_save_prefix
="$prefix"
17347 prefix
="$acl_final_prefix"
17348 acl_save_exec_prefix
="$exec_prefix"
17349 exec_prefix
="$acl_final_exec_prefix"
17351 exec_prefix
="$acl_save_exec_prefix"
17352 prefix
="$acl_save_prefix"
17354 if test "X$x" = "X-L$found_dir"; then
17359 if test -z "$haveit"; then
17360 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
17362 if test "$hardcode_minus_L" != no
; then
17363 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17365 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
17371 if test "X$found_a" != "X"; then
17372 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
17374 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
17377 additional_includedir
=
17378 case "$found_dir" in
17380 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17381 additional_includedir
="$basedir/include"
17384 if test "X$additional_includedir" != "X"; then
17385 if test "X$additional_includedir" != "X/usr/include"; then
17387 if test "X$additional_includedir" = "X/usr/local/include"; then
17388 if test -n "$GCC"; then
17390 linux
*) haveit
=yes;;
17394 if test -z "$haveit"; then
17395 for x
in $CPPFLAGS $INCBABELTRACE; do
17397 acl_save_prefix
="$prefix"
17398 prefix
="$acl_final_prefix"
17399 acl_save_exec_prefix
="$exec_prefix"
17400 exec_prefix
="$acl_final_exec_prefix"
17402 exec_prefix
="$acl_save_exec_prefix"
17403 prefix
="$acl_save_prefix"
17405 if test "X$x" = "X-I$additional_includedir"; then
17410 if test -z "$haveit"; then
17411 if test -d "$additional_includedir"; then
17412 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
17418 if test -n "$found_la"; then
17419 save_libdir
="$libdir"
17420 case "$found_la" in
17421 */* |
*\\*) .
"$found_la" ;;
17422 *) .
"./$found_la" ;;
17424 libdir
="$save_libdir"
17425 for dep
in $dependency_libs; do
17428 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
17429 if test "X$additional_libdir" != "X/usr/lib"; then
17431 if test "X$additional_libdir" = "X/usr/local/lib"; then
17432 if test -n "$GCC"; then
17434 linux
*) haveit
=yes;;
17438 if test -z "$haveit"; then
17440 for x
in $LDFLAGS $LIBBABELTRACE; do
17442 acl_save_prefix
="$prefix"
17443 prefix
="$acl_final_prefix"
17444 acl_save_exec_prefix
="$exec_prefix"
17445 exec_prefix
="$acl_final_exec_prefix"
17447 exec_prefix
="$acl_save_exec_prefix"
17448 prefix
="$acl_save_prefix"
17450 if test "X$x" = "X-L$additional_libdir"; then
17455 if test -z "$haveit"; then
17456 if test -d "$additional_libdir"; then
17457 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
17461 for x
in $LDFLAGS $LTLIBBABELTRACE; do
17463 acl_save_prefix
="$prefix"
17464 prefix
="$acl_final_prefix"
17465 acl_save_exec_prefix
="$exec_prefix"
17466 exec_prefix
="$acl_final_exec_prefix"
17468 exec_prefix
="$acl_save_exec_prefix"
17469 prefix
="$acl_save_prefix"
17471 if test "X$x" = "X-L$additional_libdir"; then
17476 if test -z "$haveit"; then
17477 if test -d "$additional_libdir"; then
17478 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
17485 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
17486 if test "$enable_rpath" != no
; then
17488 for x
in $rpathdirs; do
17489 if test "X$x" = "X$dir"; then
17494 if test -z "$haveit"; then
17495 rpathdirs
="$rpathdirs $dir"
17498 for x
in $ltrpathdirs; do
17499 if test "X$x" = "X$dir"; then
17504 if test -z "$haveit"; then
17505 ltrpathdirs
="$ltrpathdirs $dir"
17510 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17513 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17516 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
17517 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
17523 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
17524 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
17530 if test "X$rpathdirs" != "X"; then
17531 if test -n "$hardcode_libdir_separator"; then
17533 for found_dir
in $rpathdirs; do
17534 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17536 acl_save_libdir
="$libdir"
17538 eval flag
=\"$hardcode_libdir_flag_spec\"
17539 libdir
="$acl_save_libdir"
17540 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
17542 for found_dir
in $rpathdirs; do
17543 acl_save_libdir
="$libdir"
17544 libdir
="$found_dir"
17545 eval flag
=\"$hardcode_libdir_flag_spec\"
17546 libdir
="$acl_save_libdir"
17547 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
17551 if test "X$ltrpathdirs" != "X"; then
17552 for found_dir
in $ltrpathdirs; do
17553 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
17558 ac_save_CPPFLAGS
="$CPPFLAGS"
17560 for element
in $INCBABELTRACE; do
17562 for x
in $CPPFLAGS; do
17564 acl_save_prefix
="$prefix"
17565 prefix
="$acl_final_prefix"
17566 acl_save_exec_prefix
="$exec_prefix"
17567 exec_prefix
="$acl_final_exec_prefix"
17569 exec_prefix
="$acl_save_exec_prefix"
17570 prefix
="$acl_save_prefix"
17572 if test "X$x" = "X$element"; then
17577 if test -z "$haveit"; then
17578 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
17583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
17584 $as_echo_n "checking for libbabeltrace... " >&6; }
17585 if ${ac_cv_libbabeltrace+:} false
; then :
17586 $as_echo_n "(cached) " >&6
17589 ac_save_LIBS
="$LIBS"
17590 LIBS
="$LIBS $LIBBABELTRACE"
17591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17592 /* end confdefs.h. */
17593 #include <babeltrace/babeltrace.h>
17594 #include <babeltrace/ctf/events.h>
17595 #include <babeltrace/ctf/iterator.h>
17599 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
17600 struct bt_ctf_event *event = NULL;
17601 const struct bt_definition *scope;
17603 pos->type = BT_SEEK_BEGIN;
17604 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
17605 scope = bt_ctf_get_top_level_scope (event,
17606 BT_STREAM_EVENT_HEADER);
17607 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
17613 if ac_fn_c_try_link
"$LINENO"; then :
17614 ac_cv_libbabeltrace
=yes
17616 ac_cv_libbabeltrace
=no
17618 rm -f core conftest.err conftest.
$ac_objext \
17619 conftest
$ac_exeext conftest.
$ac_ext
17620 LIBS
="$ac_save_LIBS"
17623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
17624 $as_echo "$ac_cv_libbabeltrace" >&6; }
17625 if test "$ac_cv_libbabeltrace" = yes; then
17626 HAVE_LIBBABELTRACE
=yes
17628 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
17631 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
17633 $as_echo "$LIBBABELTRACE" >&6; }
17635 HAVE_LIBBABELTRACE
=no
17636 CPPFLAGS
="$ac_save_CPPFLAGS"
17646 CFLAGS
=$saved_CFLAGS
17648 if test "$HAVE_LIBBABELTRACE" != yes; then
17649 if test "$with_babeltrace" = yes; then
17650 as_fn_error $?
"babeltrace is missing or unusable" "$LINENO" 5
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
17653 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
17658 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
17665 if test "${nativefile}" != ""; then
17666 case "${nativefile}" in
17667 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
17668 * ) GDB_NM_FILE
="${nativefile}"
17670 files
="${files} ${GDB_NM_FILE}"
17671 links
="${links} nm.h"
17673 cat >>confdefs.h
<<_ACEOF
17674 #define GDB_NM_FILE "${GDB_NM_FILE}"
17680 for ac_prog
in xsltproc
17682 # Extract the first word of "$ac_prog", so it can be a program name with args.
17683 set dummy
$ac_prog; ac_word
=$2
17684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17685 $as_echo_n "checking for $ac_word... " >&6; }
17686 if ${ac_cv_path_XSLTPROC+:} false
; then :
17687 $as_echo_n "(cached) " >&6
17691 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
17694 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17695 for as_dir
in $PATH
17698 test -z "$as_dir" && as_dir
=.
17699 for ac_exec_ext
in '' $ac_executable_extensions; do
17700 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
17701 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
17702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17712 XSLTPROC
=$ac_cv_path_XSLTPROC
17713 if test -n "$XSLTPROC"; then
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
17715 $as_echo "$XSLTPROC" >&6; }
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17718 $as_echo "no" >&6; }
17722 test -n "$XSLTPROC" && break
17724 test -n "$XSLTPROC" || XSLTPROC
="missing"
17726 if test "x$USE_MAINTAINER_MODE" = xyes
; then
17727 if test "${XSLTPROC}" = missing
; then
17728 as_fn_error $?
"unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
17733 ac_sources
="$files"
17735 while test -n "$ac_sources"; do
17736 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
17737 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
17738 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
17740 ac_config_links
="$ac_config_links $ac_config_links_1"
17746 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
17749 if $development; then
17751 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
17753 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_UNITTESTS_OBS) common/selftest.o selftest-arch.o"
17754 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_UNITTESTS_SRCS) common/selftest.c selftest-arch.c"
17758 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
17759 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
17760 if test "x$GDB_TRANSFORM_NAME" = x
; then
17761 GDB_TRANSFORM_NAME
=gdb
17766 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
17767 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
17768 if test "x$GCORE_TRANSFORM_NAME" = x
; then
17769 GCORE_TRANSFORM_NAME
=gcore
17773 ac_config_files
="$ac_config_files gcore"
17775 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
17778 cat >confcache
<<\_ACEOF
17779 # This file is a shell script that caches the results of configure
17780 # tests run on this system so they can be shared between configure
17781 # scripts and configure runs, see configure's option --config-cache.
17782 # It is not useful on other systems. If it contains results you don't
17783 # want to keep, you may remove or edit it.
17785 # config.status only pays attention to the cache file if you give it
17786 # the --recheck option to rerun configure.
17788 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17789 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17790 # following values.
17794 # The following way of writing the cache mishandles newlines in values,
17795 # but we know of no workaround that is simple, portable, and efficient.
17796 # So, we kill variables containing newlines.
17797 # Ultrix sh set writes to stderr and can't be redirected directly,
17798 # and sets the high bit in the cache file unless we assign to the vars.
17800 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17801 eval ac_val
=\$
$ac_var
17805 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17806 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17809 _ | IFS | as_nl
) ;; #(
17810 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
17811 *) { eval $ac_var=; unset $ac_var;} ;;
17817 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17818 *${as_nl}ac_space
=\
*)
17819 # `set' does not quote correctly, so add quotes: double-quote
17820 # substitution turns \\\\ into \\, and sed turns \\ into \.
17823 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17826 # `set' quotes correctly as required by POSIX, so do not add quotes.
17827 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17836 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17838 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17840 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17841 if test -w "$cache_file"; then
17842 if test "x$cache_file" != "x/dev/null"; then
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17844 $as_echo "$as_me: updating cache $cache_file" >&6;}
17845 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
17846 cat confcache
>"$cache_file"
17848 case $cache_file in #(
17850 mv -f confcache
"$cache_file"$$
&&
17851 mv -f "$cache_file"$$
"$cache_file" ;; #(
17853 mv -f confcache
"$cache_file" ;;
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17859 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17864 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17865 # Let make expand exec_prefix.
17866 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17868 DEFS
=-DHAVE_CONFIG_H
17873 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17874 # 1. Remove the extension, and $U if already installed.
17875 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
17876 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
17877 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17878 # will be set to the directory where LIBOBJS objects are built.
17879 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17880 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
17882 LIBOBJS
=$ac_libobjs
17884 LTLIBOBJS
=$ac_ltlibobjs
17887 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17888 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
17889 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17891 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
17892 as_fn_error $?
"conditional \"HAVE_PYTHON\" was never defined.
17893 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17895 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
17896 as_fn_error $?
"conditional \"HAVE_GUILE\" was never defined.
17897 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17901 : "${CONFIG_STATUS=./config.status}"
17903 ac_clean_files_save
=$ac_clean_files
17904 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17905 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17906 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17908 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17910 # Generated by $as_me.
17911 # Run this file to recreate the current configuration.
17912 # Compiler output produced by configure, useful for debugging
17913 # configure, is in config.log if it exists.
17916 ac_cs_recheck=false
17919 SHELL=\${CONFIG_SHELL-$SHELL}
17922 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
17923 ## -------------------- ##
17924 ## M4sh Initialization. ##
17925 ## -------------------- ##
17927 # Be more Bourne compatible
17928 DUALCASE
=1; export DUALCASE
# for MKS sh
17929 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
17932 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17933 # is contrary to our usage. Disable this feature.
17934 alias -g '${1+"$@"}'='"$@"'
17935 setopt NO_GLOB_SUBST
17937 case `(set -o) 2>/dev/null` in #(
17949 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17950 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17951 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17952 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17953 # Prefer a ksh shell builtin over an external printf program on Solaris,
17954 # but without wasting forks for bash or zsh.
17955 if test -z "$BASH_VERSION$ZSH_VERSION" \
17956 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17957 as_echo='print
-r --'
17958 as_echo_n='print
-rn --'
17959 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17960 as_echo='printf %s
\n'
17961 as_echo_n='printf %s
'
17963 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17964 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17965 as_echo_n='/usr
/ucb
/echo -n'
17967 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17968 as_echo_n_body='eval
17972 expr "X$arg" : "X\\(.*\\)$as_nl";
17973 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17975 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17977 export as_echo_n_body
17978 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17980 export as_echo_body
17981 as_echo='sh
-c $as_echo_body as_echo
'
17984 # The user is always right.
17985 if test "${PATH_SEPARATOR+set}" != set; then
17987 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17988 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17995 # We need space, tab and new line, in precisely that order. Quoting is
17996 # there to prevent editors from complaining about space-tab.
17997 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17998 # splitting by setting IFS to empty value.)
18001 # Find who we are. Look in the path if we contain no directory separator.
18004 *[\\/]* ) as_myself=$0 ;;
18005 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18006 for as_dir in $PATH
18009 test -z "$as_dir" && as_dir=.
18010 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18016 # We did not find ourselves, most probably we were run as `sh COMMAND'
18017 # in which case we are not to be found in the path.
18018 if test "x$as_myself" = x
; then
18021 if test ! -f "$as_myself"; then
18022 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18026 # Unset variables that we do not need and which cause bugs (e.g. in
18027 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18028 # suppresses any "Segmentation fault" message there. '((' could
18029 # trigger a bug in pdksh 5.2.14.
18030 for as_var
in BASH_ENV ENV MAIL MAILPATH
18031 do eval test x\
${$as_var+set} = xset \
18032 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
18045 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
18048 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18049 # ----------------------------------------
18050 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18051 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18052 # script with STATUS, using 1 if that was 0.
18055 as_status
=$1; test $as_status -eq 0 && as_status
=1
18057 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
18058 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18060 $as_echo "$as_me: error: $2" >&2
18061 as_fn_exit
$as_status
18065 # as_fn_set_status STATUS
18066 # -----------------------
18067 # Set $? to STATUS, without forking.
18068 as_fn_set_status
()
18071 } # as_fn_set_status
18073 # as_fn_exit STATUS
18074 # -----------------
18075 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18079 as_fn_set_status
$1
18085 # Portably unset VAR.
18088 { eval $1=; unset $1;}
18090 as_unset
=as_fn_unset
18091 # as_fn_append VAR VALUE
18092 # ----------------------
18093 # Append the text in VALUE to the end of the definition contained in VAR. Take
18094 # advantage of any shell optimizations that allow amortized linear growth over
18095 # repeated appends, instead of the typical quadratic growth present in naive
18097 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
18098 eval 'as_fn_append ()
18109 # as_fn_arith ARG...
18110 # ------------------
18111 # Perform arithmetic evaluation on the ARGs, and store the result in the
18112 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18113 # must be portable across $(()) and expr.
18114 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
18115 eval 'as_fn_arith ()
18122 as_val
=`expr "$@" || test $? -eq 1`
18127 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
18128 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
18134 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18135 as_basename
=basename
18140 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
18146 as_me
=`$as_basename -- "$0" ||
18147 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18148 X"$0" : 'X\(//\)$' \| \
18149 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18151 sed '/^.*\/\([^/][^/]*\)\/*$/{
18165 # Avoid depending upon Character Ranges.
18166 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18167 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18168 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18169 as_cr_digits
='0123456789'
18170 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18172 ECHO_C
= ECHO_N
= ECHO_T
=
18173 case `echo -n x` in #(((((
18175 case `echo 'xy\c'` in
18176 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
18178 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
18185 rm -f conf$$ conf$$.exe conf$$.
file
18186 if test -d conf$$.dir
; then
18187 rm -f conf$$.dir
/conf$$.
file
18190 mkdir conf$$.dir
2>/dev
/null
18192 if (echo >conf$$.
file) 2>/dev
/null
; then
18193 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18195 # ... but there are two gotchas:
18196 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18197 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18198 # In both cases, we have to default to `cp -pR'.
18199 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
18201 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18209 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
18210 rmdir conf$$.dir
2>/dev
/null
18215 # Create "$as_dir" as a directory, including parents if necessary.
18220 -*) as_dir
=.
/$as_dir;;
18222 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
18226 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18227 *) as_qdir
=$as_dir;;
18229 as_dirs
="'$as_qdir' $as_dirs"
18230 as_dir
=`$as_dirname -- "$as_dir" ||
18231 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18232 X"$as_dir" : 'X\(//\)[^/]' \| \
18233 X"$as_dir" : 'X\(//\)$' \| \
18234 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18235 $as_echo X"$as_dir" |
18236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18240 /^X\(\/\/\)[^/].*/{
18253 test -d "$as_dir" && break
18255 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
18256 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
18260 if mkdir
-p .
2>/dev
/null
; then
18261 as_mkdir_p
='mkdir -p "$as_dir"'
18263 test -d .
/-p && rmdir .
/-p
18268 # as_fn_executable_p FILE
18269 # -----------------------
18270 # Test if FILE is an executable regular file.
18271 as_fn_executable_p
()
18273 test -f "$1" && test -x "$1"
18274 } # as_fn_executable_p
18275 as_test_x
='test -x'
18276 as_executable_p
=as_fn_executable_p
18278 # Sed expression to map a string onto a valid CPP name.
18279 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18281 # Sed expression to map a string onto a valid variable name.
18282 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18286 ## ----------------------------------- ##
18287 ## Main body of $CONFIG_STATUS script. ##
18288 ## ----------------------------------- ##
18290 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
18292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18293 # Save the log message, to keep $0 and so on meaningful, and to
18294 # report actual input values of CONFIG_FILES etc. instead of their
18295 # values after options handling.
18297 This file was extended by $as_me, which was
18298 generated by GNU Autoconf 2.69. Invocation command line was
18300 CONFIG_FILES = $CONFIG_FILES
18301 CONFIG_HEADERS = $CONFIG_HEADERS
18302 CONFIG_LINKS = $CONFIG_LINKS
18303 CONFIG_COMMANDS = $CONFIG_COMMANDS
18306 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18311 case $ac_config_files in *"
18312 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
18315 case $ac_config_headers in *"
18316 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
18320 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18321 # Files that config.status was made for.
18322 config_files="$ac_config_files"
18323 config_headers="$ac_config_headers"
18324 config_links="$ac_config_links"
18325 config_commands="$ac_config_commands"
18329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18331 \`$as_me' instantiates files and other configuration actions
18332 from templates according to the current configuration. Unless the files
18333 and actions are specified as TAGs, all are instantiated by default.
18335 Usage: $0 [OPTION]... [TAG]...
18337 -h, --help print this help, then exit
18338 -V, --version print version number and configuration settings, then exit
18339 --config print configuration, then exit
18340 -q, --quiet, --silent
18341 do not print progress messages
18342 -d, --debug don't remove temporary files
18343 --recheck update $as_me by reconfiguring in the same conditions
18344 --file=FILE[:TEMPLATE]
18345 instantiate the configuration file FILE
18346 --header=FILE[:TEMPLATE]
18347 instantiate the configuration header FILE
18349 Configuration files:
18352 Configuration headers:
18355 Configuration links:
18358 Configuration commands:
18361 Report bugs to the package provider."
18364 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18365 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18368 configured by $0, generated by GNU Autoconf 2.69,
18369 with options \\"\$ac_cs_config\\"
18371 Copyright (C) 2012 Free Software Foundation, Inc.
18372 This config.status script is free software; the Free Software Foundation
18373 gives unlimited permission to copy, distribute and modify it."
18379 test -n "\$AWK" || AWK=awk
18382 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18383 # The default lists apply if the user does not specify any file.
18389 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18390 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
18394 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18406 # Handling of the options.
18407 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18409 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
18410 $as_echo "$ac_cs_version"; exit ;;
18411 --config |
--confi |
--conf |
--con |
--co |
--c )
18412 $as_echo "$ac_cs_config"; exit ;;
18413 --debug |
--debu |
--deb |
--de |
--d |
-d )
18415 --file |
--fil |
--fi |
--f )
18418 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18419 '') as_fn_error $?
"missing file argument" ;;
18421 as_fn_append CONFIG_FILES
" '$ac_optarg'"
18422 ac_need_defaults
=false
;;
18423 --header |
--heade |
--head |
--hea )
18426 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18428 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
18429 ac_need_defaults
=false
;;
18431 # Conflict between --help and --header
18432 as_fn_error $?
"ambiguous option: \`$1'
18433 Try \`$0 --help' for more information.";;
18434 --help |
--hel |
-h )
18435 $as_echo "$ac_cs_usage"; exit ;;
18436 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18437 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18440 # This is an error.
18441 -*) as_fn_error $?
"unrecognized option: \`$1'
18442 Try \`$0 --help' for more information." ;;
18444 *) as_fn_append ac_config_targets
" $1"
18445 ac_need_defaults
=false
;;
18451 ac_configure_extra_args
=
18453 if $ac_cs_silent; then
18455 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18460 if \$ac_cs_recheck; then
18461 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18463 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18464 CONFIG_SHELL='$SHELL'
18465 export CONFIG_SHELL
18470 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18474 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18475 ## Running $as_me. ##
18481 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18485 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
18489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18491 # Handling of arguments.
18492 for ac_config_target
in $ac_config_targets
18494 case $ac_config_target in
18495 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
18496 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
18497 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
18498 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
18499 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
18500 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18501 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
18502 "gdb-gdb.py") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.py" ;;
18503 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
18504 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
18506 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18511 # If the user did not use the arguments to specify the items to instantiate,
18512 # then the envvar interface is used. Set only those that are not.
18513 # We use the long form for the default assignment because of an extremely
18514 # bizarre bug on SunOS 4.1.3.
18515 if $ac_need_defaults; then
18516 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18517 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18518 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
18519 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18522 # Have a temporary directory for convenience. Make it in the build tree
18523 # simply because there is no reason against having it here, and in addition,
18524 # creating and moving files from /tmp can sometimes cause problems.
18525 # Hook for its removal unless debugging.
18526 # Note that there is a small window in which the directory will not be cleaned:
18527 # after its creation but before its name has been assigned to `$tmp'.
18531 trap 'exit_status=$?
18532 : "${ac_tmp:=$tmp}"
18533 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18535 trap 'as_fn_exit 1' 1 2 13 15
18537 # Create a (secure) tmp directory for tmp files.
18540 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18544 tmp
=.
/conf$$
-$RANDOM
18545 (umask 077 && mkdir
"$tmp")
18546 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
18549 # Set up the scripts for CONFIG_FILES section.
18550 # No need to generate them if there are no CONFIG_FILES.
18551 # This happens for instance with `./config.status config.h'.
18552 if test -n "$CONFIG_FILES"; then
18554 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
18555 ac_cs_awk_getline
=:
18556 ac_cs_awk_pipe_init
=
18557 ac_cs_awk_read_file
='
18558 while ((getline aline < (F[key])) > 0)
18561 ac_cs_awk_pipe_fini
=
18563 ac_cs_awk_getline
=false
18564 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
18565 ac_cs_awk_read_file
='
18567 print "cat " F[key] " &&"
18568 '$ac_cs_awk_pipe_init
18569 # The final `:' finishes the AND list.
18570 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
18572 ac_cr
=`echo X | tr X '\015'`
18573 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18574 # But we know of no other shell where ac_cr would be empty at this
18575 # point, so we can use a bashism as a fallback.
18576 if test "x$ac_cr" = x
; then
18577 eval ac_cr
=\$
\'\\r
\'
18579 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18580 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18583 ac_cs_awk_cr
=$ac_cr
18586 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18589 # Create commands to substitute file output variables.
18591 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18592 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
18593 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
18596 } >conf$
$files.sh
&&
18597 . .
/conf$
$files.sh ||
18598 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
18599 rm -f conf$
$files.sh
18602 echo "cat >conf$$subs.awk <<_ACEOF" &&
18603 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18605 } >conf$$subs.sh ||
18606 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18607 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18609 for ac_last_try in false false false false false :; do
18610 . ./conf$$subs.sh ||
18611 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18613 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18614 if test $ac_delim_n = $ac_delim_num; then
18616 elif $ac_last_try; then
18617 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18619 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18622 rm -f conf$$subs.sh
18624 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18625 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
18629 s/^/S["/; s
/!.
*/"]=/
18639 s/\(.\{148\}\)..*/\1/
18641 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18646 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18653 s/\(.\{148\}\)..*/\1/
18655 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18659 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18664 ' <conf$$subs.awk | sed '
18669 ' >>$CONFIG_STATUS || ac_write_fail=1
18670 rm -f conf$$subs.awk
18671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18673 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
18674 for (key in S) S_is_set[key] = 1
18676 \$ac_cs_awk_pipe_init
18680 nfields = split(line, field, "@
")
18682 len = length(field[1])
18683 for (i = 2; i < nfields; i++) {
18685 keylen = length(key)
18686 if (S_is_set[key]) {
18688 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18689 len += length(value) + length(field[++i])
18694 if (nfields == 3 && !substed) {
18696 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18697 \$ac_cs_awk_read_file
18703 \$ac_cs_awk_pipe_fini
18706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18707 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18708 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18711 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
18712 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
18715 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18716 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
18717 # trailing colons and then remove the whole line if VPATH becomes empty
18718 # (actually we leave an empty line to preserve line numbers).
18719 if test "x
$srcdir" = x.; then
18720 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18739 fi # test -n "$CONFIG_FILES"
18741 # Set up the scripts for CONFIG_HEADERS section.
18742 # No need to generate them if there are no CONFIG_HEADERS.
18743 # This happens for instance with `./config.status Makefile'.
18744 if test -n "$CONFIG_HEADERS"; then
18745 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
18749 # Transform confdefs.h into an awk script `defines.awk', embedded as
18750 # here-document in config.status, that substitutes the proper values into
18751 # config.h.in to produce config.h.
18753 # Create a delimiter string that does not exist in confdefs.h, to ease
18754 # handling of long lines.
18756 for ac_last_try in false false :; do
18757 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
18758 if test -z "$ac_tt"; then
18760 elif $ac_last_try; then
18761 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
18763 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18767 # For the awk script, D is an array of macro values keyed by name,
18768 # likewise P contains macro parameters if any. Preserve backslash
18769 # newline sequences.
18771 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18773 s/.\{148\}/&'"$ac_delim"'/g
18776 s/^[ ]*#[ ]*define[ ][ ]*/ /
18783 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18785 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18789 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18790 D["\
1"]=" \
3\\\\\\n
"\\/p
18792 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18797 s/.\{148\}/&'"$ac_delim"'/g
18802 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18805 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18807 ' <confdefs.h | sed '
18808 s/'"$ac_delim"'/"\\\
18809 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18812 for (key in D) D_is_set[key] = 1
18815 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18817 split(line, arg, " ")
18818 if (arg[1] == "#") {
18822 defundef
= substr
(arg
[1], 2)
18825 split(mac1
, mac2
, "(") #)
18827 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18828 if (D_is_set
[macro
]) {
18829 # Preserve the white space surrounding the "#".
18830 print prefix
"define", macro P
[macro
] D
[macro
]
18833 # Replace #undef with comments. This is necessary, for example,
18834 # in the case of _POSIX_SOURCE, which is predefined and required
18835 # on some systems where configure will not decide to define it.
18836 if (defundef
== "undef") {
18837 print
"/*", prefix defundef
, macro
, "*/"
18845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18846 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
18847 fi # test -n "$CONFIG_HEADERS"
18850 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18855 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18857 case $ac_mode$ac_tag in
18859 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
18860 :[FH
]-) ac_tag
=-:-;;
18861 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18878 -) ac_f
="$ac_tmp/stdin";;
18879 *) # Look for the file first in the build tree, then in the source tree
18880 # (if the path is not absolute). The absolute path cannot be DOS-style,
18881 # because $ac_f cannot contain `:'.
18885 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18887 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18889 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18890 as_fn_append ac_file_inputs
" '$ac_f'"
18893 # Let's still pretend it is `configure' which instantiates (i.e., don't
18894 # use $as_me), people would be surprised to read:
18895 # /* config.h. Generated by config.status. */
18896 configure_input
='Generated from '`
18897 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18899 if test x
"$ac_file" != x-
; then
18900 configure_input
="$ac_file. $configure_input"
18901 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18902 $as_echo "$as_me: creating $ac_file" >&6;}
18904 # Neutralize special characters interpreted by sed in replacement strings.
18905 case $configure_input in #(
18906 *\
&* |
*\|
* |
*\\* )
18907 ac_sed_conf_input
=`$as_echo "$configure_input" |
18908 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18909 *) ac_sed_conf_input
=$configure_input;;
18913 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
18914 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
18919 ac_dir
=`$as_dirname -- "$ac_file" ||
18920 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18921 X"$ac_file" : 'X\(//\)[^/]' \| \
18922 X"$ac_file" : 'X\(//\)$' \| \
18923 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18924 $as_echo X"$ac_file" |
18925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18929 /^X\(\/\/\)[^/].*/{
18942 as_dir
="$ac_dir"; as_fn_mkdir_p
18946 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18948 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18949 # A ".." for each directory in $ac_dir_suffix.
18950 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18951 case $ac_top_builddir_sub in
18952 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18953 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18956 ac_abs_top_builddir
=$ac_pwd
18957 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18958 # for backward compatibility:
18959 ac_top_builddir
=$ac_top_build_prefix
18962 .
) # We are building in place.
18964 ac_top_srcdir
=$ac_top_builddir_sub
18965 ac_abs_top_srcdir
=$ac_pwd ;;
18966 [\\/]* | ?
:[\\/]* ) # Absolute name.
18967 ac_srcdir
=$srcdir$ac_dir_suffix;
18968 ac_top_srcdir
=$srcdir
18969 ac_abs_top_srcdir
=$srcdir ;;
18970 *) # Relative name.
18971 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18972 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18973 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18975 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18985 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18986 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
18990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18991 # If the template does not know about datarootdir, expand it.
18992 # FIXME: This hack should be removed a few years after 2.60.
18993 ac_datarootdir_hack
=; ac_datarootdir_seen
=
19004 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19005 *datarootdir
*) ac_datarootdir_seen
=yes;;
19006 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
19007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19008 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19011 ac_datarootdir_hack='
19012 s&@datadir@&$datadir&g
19013 s&@docdir@&$docdir&g
19014 s&@infodir@&$infodir&g
19015 s&@localedir@&$localedir&g
19016 s&@mandir@&$mandir&g
19017 s&\\\${datarootdir}&$datarootdir&g' ;;
19021 # Neutralize VPATH when `$srcdir' = `.'.
19022 # Shell code in configure.ac might set extrasub.
19023 # FIXME: do we really want to maintain this feature?
19024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19025 ac_sed_extra="$ac_vpsub
19028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19030 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19031 s|@configure_input@|
$ac_sed_conf_input|
;t t
19032 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
19033 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
19034 s
&@srcdir@
&$ac_srcdir&;t t
19035 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
19036 s
&@top_srcdir@
&$ac_top_srcdir&;t t
19037 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
19038 s
&@builddir@
&$ac_builddir&;t t
19039 s
&@abs_builddir@
&$ac_abs_builddir&;t t
19040 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
19041 s
&@INSTALL@
&$ac_INSTALL&;t t
19042 $ac_datarootdir_hack
19044 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19045 if $ac_cs_awk_getline; then
19046 $AWK -f "$ac_tmp/subs.
awk"
19048 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
19050 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
19052 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19053 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
19054 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19055 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
19057 which seems to be undefined. Please make sure it is defined" >&5
19058 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
19059 which seems to be undefined. Please make sure it is defined" >&2;}
19061 rm -f "$ac_tmp/stdin"
19063 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19064 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19066 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19072 if test x"$ac_file" != x-; then
19074 $as_echo "/* $configure_input */" \
19075 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19076 } >"$ac_tmp/config.h" \
19077 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19078 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19079 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19080 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19083 mv "$ac_tmp/config.h" "$ac_file" \
19084 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19087 $as_echo "/* $configure_input */" \
19088 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19089 || as_fn_error $? "could not create -" "$LINENO" 5
19097 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
19100 # Prefer the file from the source tree if names are identical.
19101 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
19102 ac_source=$srcdir/$ac_source
19105 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
19106 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
19108 if test ! -r "$ac_source"; then
19109 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
19113 # Try a relative symlink, then a hard link, then a copy.
19115 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
19116 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
19118 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
19119 ln "$ac_source" "$ac_file" 2>/dev/null ||
19120 cp -p "$ac_source" "$ac_file" ||
19121 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
19124 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19125 $as_echo "$as_me: executing $ac_file commands" >&6;}
19130 case $ac_file$ac_mode in
19131 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
19132 "gcore":F) chmod +x gcore ;;
19134 case x$CONFIG_HEADERS in
19135 xconfig.h:config.in)
19140 case x$CONFIG_HEADERS in
19141 xconfig.h:config.in)
19146 case x$CONFIG_HEADERS in
19147 xconfig.h:config.in)
19152 case x$CONFIG_HEADERS in
19153 xconfig.h:config.in)
19157 "data-directory/Makefile":F)
19158 case x$CONFIG_HEADERS in
19159 xconfig.h:config.in)
19170 ac_clean_files=$ac_clean_files_save
19172 test $ac_write_fail = 0 ||
19173 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19176 # configure is writing to config.log, and then calls config.status.
19177 # config.status does its own redirection, appending to config.log.
19178 # Unfortunately, on DOS this fails, as config.log is still kept open
19179 # by configure, so config.status won't be able to
write to it
; its
19180 # output is simply discarded. So we exec the FD to /dev/null,
19181 # effectively closing config.log, so it can be properly (re)opened and
19182 # appended to by config.status. When coming back to configure, we
19183 # need to make the FD available again.
19184 if test "$no_create" != yes; then
19186 ac_config_status_args
=
19187 test "$silent" = yes &&
19188 ac_config_status_args
="$ac_config_status_args --quiet"
19190 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19192 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19193 # would make configure fail if this is the last instruction.
19194 $ac_cs_success || as_fn_exit
1
19198 # CONFIG_SUBDIRS section.
19200 if test "$no_recursion" != yes; then
19202 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19203 # so they do not pile up.
19204 ac_sub_configure_args
=
19206 eval "set x $ac_configure_args"
19210 if test -n "$ac_prev"; then
19215 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
19216 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
19217 ac_prev
=cache_file
;;
19218 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
19219 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
19222 --config-cache |
-C)
19224 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
19226 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
19228 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
19230 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
19232 --disable-option-checking)
19236 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19238 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
19242 # Always prepend --prefix to ensure using the same prefix
19243 # in subdir configurations.
19244 ac_arg
="--prefix=$prefix"
19246 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19248 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
19251 if test "$silent" = yes; then
19252 ac_sub_configure_args
="--silent $ac_sub_configure_args"
19255 # Always prepend --disable-option-checking to silence warnings, since
19256 # different subdirs can have different --enable and --with options.
19257 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
19260 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
19262 # Do not complain, so a configure script can configure whichever
19263 # parts of a large source tree are present.
19264 test -d "$srcdir/$ac_dir" ||
continue
19266 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19267 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19268 $as_echo "$ac_msg" >&6
19269 as_dir
="$ac_dir"; as_fn_mkdir_p
19273 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19275 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19276 # A ".." for each directory in $ac_dir_suffix.
19277 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19278 case $ac_top_builddir_sub in
19279 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19280 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
19283 ac_abs_top_builddir
=$ac_pwd
19284 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
19285 # for backward compatibility:
19286 ac_top_builddir
=$ac_top_build_prefix
19289 .
) # We are building in place.
19291 ac_top_srcdir
=$ac_top_builddir_sub
19292 ac_abs_top_srcdir
=$ac_pwd ;;
19293 [\\/]* | ?
:[\\/]* ) # Absolute name.
19294 ac_srcdir
=$srcdir$ac_dir_suffix;
19295 ac_top_srcdir
=$srcdir
19296 ac_abs_top_srcdir
=$srcdir ;;
19297 *) # Relative name.
19298 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
19299 ac_top_srcdir
=$ac_top_build_prefix$srcdir
19300 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
19302 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
19307 # Check for guested configure; otherwise get Cygnus style configure.
19308 if test -f "$ac_srcdir/configure.gnu"; then
19309 ac_sub_configure
=$ac_srcdir/configure.gnu
19310 elif test -f "$ac_srcdir/configure"; then
19311 ac_sub_configure
=$ac_srcdir/configure
19312 elif test -f "$ac_srcdir/configure.in"; then
19313 # This should be Cygnus configure.
19314 ac_sub_configure
=$ac_aux_dir/configure
19316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19317 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19321 # The recursion is here.
19322 if test -n "$ac_sub_configure"; then
19323 # Make the cache file name correct relative to the subdirectory.
19324 case $cache_file in
19325 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
19326 *) # Relative name.
19327 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
19330 { $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
19331 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19332 # The eval makes quoting arguments work.
19333 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19334 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19335 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19341 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19343 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}