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>
623 enable_option_checking
=no
624 ac_subst_vars
='LTLIBOBJS
628 READELF_TRANSFORM_NAME
644 HAVE_NATIVE_GCORE_HOST
748 READLINE_TEXI_INCFLAG
777 HAVE_NATIVE_GCORE_TARGET
804 INSTALL_STRIP_PROGRAM
834 MAINTAINER_MODE_FALSE
863 program_transform_name
874 ac_subst_files
='nat_makefile_frag'
876 enable_option_checking
877 enable_maintainer_mode
880 with_separate_debug_dir
882 with_relocated_sources
884 with_auto_load_safe_path
917 enable_source_highlight
923 with_system_gdbinit_dir
925 enable_build_warnings
926 enable_gdb_build_warnings
936 with_libbabeltrace_prefix
937 with_libbabeltrace_type
940 with_libxxhash_prefix
944 ac_precious_vars
='build_alias
966 ac_subdirs_all
='gdbtk'
968 # Initialize some variables set by options.
970 ac_init_version
=false
971 ac_unrecognized_opts
=
973 # The variables have the same names as the options, with
974 # dashes changed to underlines.
982 program_transform_name
=s
,x
,x
,
990 # Installation directory options.
991 # These are left unexpanded so users can "make install exec_prefix=/foo"
992 # and all the variables that are supposed to be based on exec_prefix
993 # by default will actually change.
994 # Use braces instead of parens because sh, perl, etc. also accept them.
995 # (The list follows the same order as the GNU Coding Standards.)
996 bindir
='${exec_prefix}/bin'
997 sbindir
='${exec_prefix}/sbin'
998 libexecdir
='${exec_prefix}/libexec'
999 datarootdir
='${prefix}/share'
1000 datadir
='${datarootdir}'
1001 sysconfdir
='${prefix}/etc'
1002 sharedstatedir
='${prefix}/com'
1003 localstatedir
='${prefix}/var'
1004 includedir
='${prefix}/include'
1005 oldincludedir
='/usr/include'
1006 docdir
='${datarootdir}/doc/${PACKAGE}'
1007 infodir
='${datarootdir}/info'
1012 libdir
='${exec_prefix}/lib'
1013 localedir
='${datarootdir}/locale'
1014 mandir
='${datarootdir}/man'
1020 # If the previous option needs an argument, assign it.
1021 if test -n "$ac_prev"; then
1022 eval $ac_prev=\
$ac_option
1028 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1033 # Accept the important Cygnus configure options, so we can diagnose typos.
1035 case $ac_dashdash$ac_option in
1039 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1041 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1042 bindir
=$ac_optarg ;;
1044 -build |
--build |
--buil |
--bui |
--bu)
1045 ac_prev
=build_alias
;;
1046 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1047 build_alias
=$ac_optarg ;;
1049 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1050 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1051 ac_prev
=cache_file
;;
1052 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1053 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1054 cache_file
=$ac_optarg ;;
1056 --config-cache |
-C)
1057 cache_file
=config.cache
;;
1059 -datadir |
--datadir |
--datadi |
--datad)
1061 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1062 datadir
=$ac_optarg ;;
1064 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1065 |
--dataroo |
--dataro |
--datar)
1066 ac_prev
=datarootdir
;;
1067 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1068 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1069 datarootdir
=$ac_optarg ;;
1071 -disable-* |
--disable-*)
1072 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1075 as_fn_error $?
"invalid feature name: $ac_useropt"
1076 ac_useropt_orig
=$ac_useropt
1077 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1080 "enable_
$ac_useropt"
1082 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1083 ac_unrecognized_sep
=', ';;
1085 eval enable_
$ac_useropt=no
;;
1087 -docdir |
--docdir |
--docdi |
--doc |
--do)
1089 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1090 docdir
=$ac_optarg ;;
1092 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1094 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1095 dvidir
=$ac_optarg ;;
1097 -enable-* |
--enable-*)
1098 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1101 as_fn_error $?
"invalid feature name: $ac_useropt"
1102 ac_useropt_orig
=$ac_useropt
1103 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104 case $ac_user_opts in
1106 "enable_
$ac_useropt"
1108 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1109 ac_unrecognized_sep
=', ';;
1111 eval enable_
$ac_useropt=\
$ac_optarg ;;
1113 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1114 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1115 |
--exec |
--exe |
--ex)
1116 ac_prev
=exec_prefix
;;
1117 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1118 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1119 |
--exec=* |
--exe=* |
--ex=*)
1120 exec_prefix
=$ac_optarg ;;
1122 -gas |
--gas |
--ga |
--g)
1123 # Obsolete; use --with-gas.
1126 -help |
--help |
--hel |
--he |
-h)
1127 ac_init_help
=long
;;
1128 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1129 ac_init_help
=recursive
;;
1130 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1131 ac_init_help
=short
;;
1133 -host |
--host |
--hos |
--ho)
1134 ac_prev
=host_alias
;;
1135 -host=* |
--host=* |
--hos=* |
--ho=*)
1136 host_alias
=$ac_optarg ;;
1138 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1140 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1142 htmldir
=$ac_optarg ;;
1144 -includedir |
--includedir |
--includedi |
--included |
--include \
1145 |
--includ |
--inclu |
--incl |
--inc)
1146 ac_prev
=includedir
;;
1147 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1148 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1149 includedir
=$ac_optarg ;;
1151 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1153 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1154 infodir
=$ac_optarg ;;
1156 -libdir |
--libdir |
--libdi |
--libd)
1158 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1159 libdir
=$ac_optarg ;;
1161 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1162 |
--libexe |
--libex |
--libe)
1163 ac_prev
=libexecdir
;;
1164 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1165 |
--libexe=* |
--libex=* |
--libe=*)
1166 libexecdir
=$ac_optarg ;;
1168 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1169 ac_prev
=localedir
;;
1170 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1171 localedir
=$ac_optarg ;;
1173 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1174 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1175 ac_prev
=localstatedir
;;
1176 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1177 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1178 localstatedir
=$ac_optarg ;;
1180 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1182 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1183 mandir
=$ac_optarg ;;
1185 -nfp |
--nfp |
--nf)
1186 # Obsolete; use --without-fp.
1189 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1190 |
--no-cr |
--no-c |
-n)
1193 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1194 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1197 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1198 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1199 |
--oldin |
--oldi |
--old |
--ol |
--o)
1200 ac_prev
=oldincludedir
;;
1201 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1202 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1203 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1204 oldincludedir
=$ac_optarg ;;
1206 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1208 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1209 prefix
=$ac_optarg ;;
1211 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1212 |
--program-pre |
--program-pr |
--program-p)
1213 ac_prev
=program_prefix
;;
1214 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1215 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1216 program_prefix
=$ac_optarg ;;
1218 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1219 |
--program-suf |
--program-su |
--program-s)
1220 ac_prev
=program_suffix
;;
1221 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1222 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1223 program_suffix
=$ac_optarg ;;
1225 -program-transform-name |
--program-transform-name \
1226 |
--program-transform-nam |
--program-transform-na \
1227 |
--program-transform-n |
--program-transform- \
1228 |
--program-transform |
--program-transfor \
1229 |
--program-transfo |
--program-transf \
1230 |
--program-trans |
--program-tran \
1231 |
--progr-tra |
--program-tr |
--program-t)
1232 ac_prev
=program_transform_name
;;
1233 -program-transform-name=* |
--program-transform-name=* \
1234 |
--program-transform-nam=* |
--program-transform-na=* \
1235 |
--program-transform-n=* |
--program-transform-=* \
1236 |
--program-transform=* |
--program-transfor=* \
1237 |
--program-transfo=* |
--program-transf=* \
1238 |
--program-trans=* |
--program-tran=* \
1239 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1240 program_transform_name
=$ac_optarg ;;
1242 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1244 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1245 pdfdir
=$ac_optarg ;;
1247 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1249 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1252 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1253 |
-silent |
--silent |
--silen |
--sile |
--sil)
1256 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1258 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1260 sbindir
=$ac_optarg ;;
1262 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1263 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1264 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1266 ac_prev
=sharedstatedir
;;
1267 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1268 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1269 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1271 sharedstatedir
=$ac_optarg ;;
1273 -site |
--site |
--sit)
1275 -site=* |
--site=* |
--sit=*)
1278 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1280 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1281 srcdir
=$ac_optarg ;;
1283 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1284 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1285 ac_prev
=sysconfdir
;;
1286 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1287 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1288 sysconfdir
=$ac_optarg ;;
1290 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1291 ac_prev
=target_alias
;;
1292 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1293 target_alias
=$ac_optarg ;;
1295 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1298 -version |
--version |
--versio |
--versi |
--vers |
-V)
1299 ac_init_version
=: ;;
1302 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1303 # Reject names that are not valid shell variable names.
1304 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1305 as_fn_error $?
"invalid package name: $ac_useropt"
1306 ac_useropt_orig
=$ac_useropt
1307 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308 case $ac_user_opts in
1312 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1313 ac_unrecognized_sep
=', ';;
1315 eval with_
$ac_useropt=\
$ac_optarg ;;
1317 -without-* |
--without-*)
1318 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1319 # Reject names that are not valid shell variable names.
1320 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1321 as_fn_error $?
"invalid package name: $ac_useropt"
1322 ac_useropt_orig
=$ac_useropt
1323 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1324 case $ac_user_opts in
1328 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1329 ac_unrecognized_sep
=', ';;
1331 eval with_
$ac_useropt=no
;;
1334 # Obsolete; use --with-x.
1337 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1338 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1339 ac_prev
=x_includes
;;
1340 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1341 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1342 x_includes
=$ac_optarg ;;
1344 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1345 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1346 ac_prev
=x_libraries
;;
1347 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1348 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1349 x_libraries
=$ac_optarg ;;
1351 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1352 Try \`$0 --help' for more information"
1356 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1357 # Reject names that are not valid shell variable names.
1358 case $ac_envvar in #(
1359 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1360 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1362 eval $ac_envvar=\
$ac_optarg
1363 export $ac_envvar ;;
1366 # FIXME: should be removed in autoconf 3.0.
1367 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1368 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1369 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1370 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1376 if test -n "$ac_prev"; then
1377 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1378 as_fn_error $?
"missing argument to $ac_option"
1381 if test -n "$ac_unrecognized_opts"; then
1382 case $enable_option_checking in
1384 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1385 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1389 # Check all directory arguments for consistency.
1390 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1391 datadir sysconfdir sharedstatedir localstatedir includedir \
1392 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1393 libdir localedir mandir
1395 eval ac_val
=\$
$ac_var
1396 # Remove trailing slashes.
1399 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1400 eval $ac_var=\
$ac_val;;
1402 # Be sure to have absolute directory names.
1404 [\\/$
]* | ?
:[\\/]* ) continue;;
1405 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1407 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1410 # There might be people who depend on the old broken behavior: `$host'
1411 # used to hold the argument of --host etc.
1412 # FIXME: To remove some day.
1415 target
=$target_alias
1417 # FIXME: To remove some day.
1418 if test "x$host_alias" != x
; then
1419 if test "x$build_alias" = x
; then
1420 cross_compiling
=maybe
1421 elif test "x$build_alias" != "x$host_alias"; then
1427 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1429 test "$silent" = yes && exec 6>/dev
/null
1432 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1433 ac_ls_di
=`ls -di .` &&
1434 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1435 as_fn_error $?
"working directory cannot be determined"
1436 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1437 as_fn_error $?
"pwd does not report name of working directory"
1440 # Find the source files, if location was not specified.
1441 if test -z "$srcdir"; then
1442 ac_srcdir_defaulted
=yes
1443 # Try the directory containing this script, then the parent directory.
1444 ac_confdir
=`$as_dirname -- "$as_myself" ||
1445 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1446 X"$as_myself" : 'X\(//\)[^/]' \| \
1447 X"$as_myself" : 'X\(//\)$' \| \
1448 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1449 $as_echo X"$as_myself" |
1450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1468 if test ! -r "$srcdir/$ac_unique_file"; then
1472 ac_srcdir_defaulted
=no
1474 if test ! -r "$srcdir/$ac_unique_file"; then
1475 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1476 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1478 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1480 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1482 # When building in place, set srcdir=.
1483 if test "$ac_abs_confdir" = "$ac_pwd"; then
1486 # Remove unnecessary trailing slashes from srcdir.
1487 # Double slashes in file names in object file debugging info
1488 # mess up M-x gdb in Emacs.
1490 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1492 for ac_var
in $ac_precious_vars; do
1493 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1494 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1495 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1496 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1500 # Report the --help message.
1502 if test "$ac_init_help" = "long"; then
1503 # Omit some internal or obsolete options to make the list less imposing.
1504 # This message is too long to be a string in the A/UX 3.1 sh.
1506 \`configure' configures this package to adapt to many kinds of systems.
1508 Usage: $0 [OPTION]... [VAR=VALUE]...
1510 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1511 VAR=VALUE. See below for descriptions of some of the useful variables.
1513 Defaults for the options are specified in brackets.
1516 -h, --help display this help and exit
1517 --help=short display options specific to this package
1518 --help=recursive display the short help of all the included packages
1519 -V, --version display version information and exit
1520 -q, --quiet, --silent do not print \`checking ...' messages
1521 --cache-file=FILE cache test results in FILE [disabled]
1522 -C, --config-cache alias for \`--cache-file=config.cache'
1523 -n, --no-create do not create output files
1524 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1526 Installation directories:
1527 --prefix=PREFIX install architecture-independent files in PREFIX
1528 [$ac_default_prefix]
1529 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1532 By default, \`make install' will install all the files in
1533 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1534 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1535 for instance \`--prefix=\$HOME'.
1537 For better control, use the options below.
1539 Fine tuning of the installation directories:
1540 --bindir=DIR user executables [EPREFIX/bin]
1541 --sbindir=DIR system admin executables [EPREFIX/sbin]
1542 --libexecdir=DIR program executables [EPREFIX/libexec]
1543 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1544 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1545 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1546 --libdir=DIR object code libraries [EPREFIX/lib]
1547 --includedir=DIR C header files [PREFIX/include]
1548 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1549 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1550 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1551 --infodir=DIR info documentation [DATAROOTDIR/info]
1552 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1553 --mandir=DIR man documentation [DATAROOTDIR/man]
1554 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1555 --htmldir=DIR html documentation [DOCDIR]
1556 --dvidir=DIR dvi documentation [DOCDIR]
1557 --pdfdir=DIR pdf documentation [DOCDIR]
1558 --psdir=DIR ps documentation [DOCDIR]
1564 --program-prefix=PREFIX prepend PREFIX to installed program names
1565 --program-suffix=SUFFIX append SUFFIX to installed program names
1566 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1569 --x-includes=DIR X include files are
in DIR
1570 --x-libraries=DIR X library files are
in DIR
1573 --build=BUILD configure
for building on BUILD
[guessed
]
1574 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1575 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1579 if test -n "$ac_init_help"; then
1584 --disable-option-checking ignore unrecognized
--enable/--with options
1585 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1586 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1587 --enable-maintainer-mode
1588 enable make rules and dependencies not useful
(and
1589 sometimes confusing
) to the casual installer
1590 --enable-plugins Enable support
for plugins
1591 --disable-largefile omit support
for large files
1592 --enable-shared build shared libraries
[default
=yes]
1593 --enable-targets=TARGETS
1594 alternative target configurations
1595 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1596 --disable-gdbmi disable machine-interface
(MI
)
1597 --enable-tui enable full-screen terminal user interface
(TUI
)
1598 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1599 --enable-profiling enable profiling of GDB
1600 --enable-codesign=CERT sign gdb with
'codesign -s CERT'
1601 --disable-rpath do not hardcode runtime library paths
1602 --enable-source-highlight
1603 enable source-highlight
for source listings
1604 --enable-werror treat compile warnings as errors
1605 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1606 --enable-gdb-build-warnings
1607 enable GDB specific build-time compiler warnings
if
1609 --enable-ubsan enable undefined behavior sanitizer
(auto
/yes
/no
)
1610 --enable-sim link gdb with simulator
1611 --enable-libctf Handle .ctf type-info sections
[default
=yes]
1612 --enable-unit-tests Enable the inclusion of unit tests when compiling
1616 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1617 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1618 --with-separate-debug-dir=PATH
1619 look for global separate debug info
in this path
1621 --with-gdb-datadir=PATH
look for global separate data files
in this path
1623 --with-relocated-sources=PATH
1624 automatically relocate this path
for source files
1625 --with-auto-load-dir=PATH
1626 directories from
which to load auto-loaded scripts
1627 [$debugdir:$datadir/auto-load
]
1628 --with-auto-load-safe-path=PATH
1629 directories safe to hold auto-loaded files
1630 [--with-auto-load-dir]
1631 --without-auto-load-safe-path
1632 do not restrict auto-loaded files locations
1633 --with-debuginfod Enable debuginfo lookups with debuginfod
1635 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1636 --with-curses use the curses library instead of the termcap
1638 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1639 --with-bugurl=URL Direct users to URL to report a bug
1640 --with-system-zlib use installed libz
1641 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1642 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1643 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1644 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1645 --with-iconv-bin=PATH specify where to find the iconv program
1646 --with-system-readline use installed readline library
1647 --with-jit-reader-dir=PATH
1648 directory to load the JIT readers from
1649 --with-expat include expat support (auto/yes/no)
1650 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1651 --without-libexpat-prefix don't search
for libexpat
in includedir and libdir
1652 --with-libexpat-type=TYPE
type of library to search
for (auto
/static
/shared
)
1653 --with-libgmp-prefix[=DIR
] search
for libgmp
in DIR
/include and DIR
/lib
1654 --without-libgmp-prefix don
't search for libgmp in includedir and libdir
1655 --with-libgmp-type=TYPE type of library to search for (auto/static/shared)
1656 --with-mpfr include MPFR support (auto/yes/no)
1657 --with-libmpfr-prefix[=DIR] search for libmpfr in DIR/include and DIR/lib
1658 --without-libmpfr-prefix don't search
for libmpfr
in includedir and libdir
1659 --with-libmpfr-type=TYPE
type of library to search
for (auto
/static
/shared
)
1660 --with-python[=PYTHON
] include python support
1661 (auto
/yes
/no
/<python-program
>)
1662 --with-python-libdir[=DIR
]
1663 search
for python
's libraries in DIR
1664 --with-guile[=GUILE] include guile support
1665 (auto/yes/no/<guile-version>/<pkg-config-program>)
1666 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1667 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1668 --without-libipt-prefix don't search
for libipt
in includedir and libdir
1669 --with-libipt-type=TYPE
type of library to search
for (auto
/static
/shared
)
1670 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1671 --with-system-gdbinit=PATH
1672 automatically load a system-wide gdbinit
file
1673 --with-system-gdbinit-dir=PATH
1674 automatically load system-wide gdbinit files from
1676 --with-lzma support lzma compression
(auto
/yes
/no
)
1677 --with-liblzma-prefix[=DIR
] search
for liblzma
in DIR
/include and DIR
/lib
1678 --without-liblzma-prefix don
't search for liblzma in includedir and libdir
1679 --with-liblzma-type=TYPE type of library to search for (auto/static/shared)
1680 --with-tcl directory containing tcl configuration (tclConfig.sh)
1681 --with-tk directory containing tk configuration (tkConfig.sh)
1682 --with-x use the X Window System
1683 --with-babeltrace include babeltrace support (auto/yes/no)
1684 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1685 --without-libbabeltrace-prefix don't search
for libbabeltrace
in includedir and libdir
1686 --with-libbabeltrace-type=TYPE
type of library to search
for (auto
/static
/shared
)
1687 --with-xxhash use libxxhash
for hashing
(faster
) (auto
/yes
/no
)
1688 --with-libxxhash-prefix[=DIR
] search
for libxxhash
in DIR
/include and DIR
/lib
1689 --without-libxxhash-prefix don
't search for libxxhash in includedir and libdir
1690 --with-libxxhash-type=TYPE type of library to search for (auto/static/shared)
1692 Some influential environment variables:
1693 CC C compiler command
1694 CFLAGS C compiler flags
1695 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1696 nonstandard directory <lib dir>
1697 LIBS libraries to pass to the linker, e.g. -l<library>
1698 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1699 you have headers in a nonstandard directory <include dir>
1700 CXX C++ compiler command
1701 CXXFLAGS C++ compiler flags
1703 MAKEINFO Parent configure detects if it is of sufficient version.
1705 Parameters for MAKEINFO.
1706 PKG_CONFIG path to pkg-config utility
1708 directories to add to pkg-config's search path
1710 path overriding pkg-config
's built-in search path
1712 C compiler flags for DEBUGINFOD, overriding pkg-config
1714 linker flags for DEBUGINFOD, overriding pkg-config
1715 YACC The `Yet Another Compiler Compiler' implementation to use.
1716 Defaults to the first program found out of
: `bison -y', `byacc
',
1718 YFLAGS The list of arguments that will be passed by default to
$YACC.
1719 This
script will default YFLAGS to the empty string to avoid a
1720 default value of
`-d' given by some make applications.
1721 XMKMF Path to xmkmf, Makefile generator for X Window System
1723 Use these variables to override the choices made by `configure
' or to help
1724 it to find libraries and programs with nonstandard names/locations.
1726 Report bugs to the package provider.
1731 if test "$ac_init_help" = "recursive"; then
1732 # If there are subdirs, report their specific --help.
1733 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1734 test -d "$ac_dir" ||
1735 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1740 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1742 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.
[\\/]||
'`
1743 # A ".." for each directory in $ac_dir_suffix.
1744 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|
/[^
\\/]*|
/..|g
;s|
/||
'`
1745 case $ac_top_builddir_sub in
1746 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1747 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1750 ac_abs_top_builddir=$ac_pwd
1751 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1752 # for backward compatibility:
1753 ac_top_builddir=$ac_top_build_prefix
1756 .) # We are building in place.
1758 ac_top_srcdir=$ac_top_builddir_sub
1759 ac_abs_top_srcdir=$ac_pwd ;;
1760 [\\/]* | ?:[\\/]* ) # Absolute name.
1761 ac_srcdir=$srcdir$ac_dir_suffix;
1762 ac_top_srcdir=$srcdir
1763 ac_abs_top_srcdir=$srcdir ;;
1765 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1766 ac_top_srcdir=$ac_top_build_prefix$srcdir
1767 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1769 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1771 cd "$ac_dir" || { ac_status=$?; continue; }
1772 # Check for guested configure.
1773 if test -f "$ac_srcdir/configure.gnu"; then
1775 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1776 elif test -f "$ac_srcdir/configure"; then
1778 $SHELL "$ac_srcdir/configure" --help=recursive
1780 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1782 cd "$ac_pwd" || { ac_status=$?; break; }
1786 test -n "$ac_init_help" && exit $ac_status
1787 if $ac_init_version; then
1790 generated by GNU Autoconf 2.69
1792 Copyright (C) 2012 Free Software Foundation, Inc.
1793 This configure script is free software; the Free Software Foundation
1794 gives unlimited permission to copy, distribute and modify it.
1799 ## ------------------------ ##
1800 ## Autoconf initialization. ##
1801 ## ------------------------ ##
1803 # ac_fn_c_try_compile LINENO
1804 # --------------------------
1805 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1806 ac_fn_c_try_compile ()
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 rm -f conftest.$ac_objext
1810 if { { ac_try="$ac_compile"
1812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813 *) ac_try_echo=$ac_try;;
1815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816 $as_echo "$ac_try_echo"; } >&5
1817 (eval "$ac_compile") 2>conftest.err
1819 if test -s conftest.err; then
1820 grep -v '^
*+' conftest.err >conftest.er1
1821 cat conftest.er1 >&5
1822 mv -f conftest.er1 conftest.err
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; } && {
1826 test -z "$ac_c_werror_flag" ||
1827 test ! -s conftest.err
1828 } && test -s conftest.$ac_objext; then :
1831 $as_echo "$as_me: failed program was:" >&5
1832 sed 's
/^
/|
/' conftest.$ac_ext >&5
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837 as_fn_set_status $ac_retval
1839 } # ac_fn_c_try_compile
1841 # ac_fn_cxx_try_compile LINENO
1842 # ----------------------------
1843 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1844 ac_fn_cxx_try_compile ()
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 rm -f conftest.$ac_objext
1848 if { { ac_try="$ac_compile"
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_compile") 2>conftest.err
1857 if test -s conftest.err; then
1858 grep -v '^
*+' conftest.err >conftest.er1
1859 cat conftest.er1 >&5
1860 mv -f conftest.er1 conftest.err
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } && {
1864 test -z "$ac_cxx_werror_flag" ||
1865 test ! -s conftest.err
1866 } && test -s conftest.$ac_objext; then :
1869 $as_echo "$as_me: failed program was:" >&5
1870 sed 's
/^
/|
/' conftest.$ac_ext >&5
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 as_fn_set_status $ac_retval
1877 } # ac_fn_cxx_try_compile
1879 # ac_fn_c_try_cpp LINENO
1880 # ----------------------
1881 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 if { { ac_try="$ac_cpp conftest.$ac_ext"
1887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888 *) ac_try_echo=$ac_try;;
1890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891 $as_echo "$ac_try_echo"; } >&5
1892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1894 if test -s conftest.err; then
1895 grep -v '^
*+' conftest.err >conftest.er1
1896 cat conftest.er1 >&5
1897 mv -f conftest.er1 conftest.err
1899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900 test $ac_status = 0; } > conftest.i && {
1901 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1902 test ! -s conftest.err
1906 $as_echo "$as_me: failed program was:" >&5
1907 sed 's
/^
/|
/' conftest.$ac_ext >&5
1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912 as_fn_set_status $ac_retval
1916 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1917 # -------------------------------------------------------
1918 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1919 # the include files in INCLUDES and setting the cache variable VAR
1921 ac_fn_c_check_header_mongrel ()
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 if eval \${$3+:} false; then :
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1926 $as_echo_n "checking for $2... " >&6; }
1927 if eval \${$3+:} false; then :
1928 $as_echo_n "(cached) " >&6
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932 $as_echo "$ac_res" >&6; }
1934 # Is the header compilable?
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1936 $as_echo_n "checking $2 usability... " >&6; }
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h. */
1942 if ac_fn_c_try_compile "$LINENO"; then :
1943 ac_header_compiler=yes
1945 ac_header_compiler=no
1947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1949 $as_echo "$ac_header_compiler" >&6; }
1951 # Is the header present?
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1953 $as_echo_n "checking $2 presence... " >&6; }
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h. */
1958 if ac_fn_c_try_cpp "$LINENO"; then :
1959 ac_header_preproc=yes
1961 ac_header_preproc=no
1963 rm -f conftest.err conftest.i conftest.$ac_ext
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1965 $as_echo "$ac_header_preproc" >&6; }
1967 # So? What about this header?
1968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1971 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1973 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1977 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1979 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1981 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1983 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1985 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1989 $as_echo_n "checking for $2... " >&6; }
1990 if eval \${$3+:} false; then :
1991 $as_echo_n "(cached) " >&6
1993 eval "$3=\$ac_header_compiler"
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997 $as_echo "$ac_res" >&6; }
1999 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2001 } # ac_fn_c_check_header_mongrel
2003 # ac_fn_c_try_run LINENO
2004 # ----------------------
2005 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2006 # that executables *can* be run.
2009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010 if { { ac_try="$ac_link"
2012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2013 *) ac_try_echo=$ac_try;;
2015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2016 $as_echo "$ac_try_echo"; } >&5
2017 (eval "$ac_link") 2>&5
2019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2020 test $ac_status = 0; } && { ac_try='.
/conftest
$ac_exeext'
2021 { { case "(($ac_try" in
2022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2023 *) ac_try_echo=$ac_try;;
2025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2026 $as_echo "$ac_try_echo"; } >&5
2027 (eval "$ac_try") 2>&5
2029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2030 test $ac_status = 0; }; }; then :
2033 $as_echo "$as_me: program exited with status $ac_status" >&5
2034 $as_echo "$as_me: failed program was:" >&5
2035 sed 's
/^
/|
/' conftest.$ac_ext >&5
2037 ac_retval=$ac_status
2039 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041 as_fn_set_status $ac_retval
2045 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2046 # -------------------------------------------------------
2047 # Tests whether HEADER exists and can be compiled using the include files in
2048 # INCLUDES, setting the cache variable VAR accordingly.
2049 ac_fn_c_check_header_compile ()
2051 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2053 $as_echo_n "checking for $2... " >&6; }
2054 if eval \${$3+:} false; then :
2055 $as_echo_n "(cached) " >&6
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h. */
2062 if ac_fn_c_try_compile "$LINENO"; then :
2067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2071 $as_echo "$ac_res" >&6; }
2072 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2074 } # ac_fn_c_check_header_compile
2076 # ac_fn_c_try_link LINENO
2077 # -----------------------
2078 # Try to link conftest.$ac_ext, and return whether this succeeded.
2081 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2082 rm -f conftest.$ac_objext conftest$ac_exeext
2083 if { { ac_try="$ac_link"
2085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086 *) ac_try_echo=$ac_try;;
2088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2089 $as_echo "$ac_try_echo"; } >&5
2090 (eval "$ac_link") 2>conftest.err
2092 if test -s conftest.err; then
2093 grep -v '^
*+' conftest.err >conftest.er1
2094 cat conftest.er1 >&5
2095 mv -f conftest.er1 conftest.err
2097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2098 test $ac_status = 0; } && {
2099 test -z "$ac_c_werror_flag" ||
2100 test ! -s conftest.err
2101 } && test -s conftest$ac_exeext && {
2102 test "$cross_compiling" = yes ||
2103 test -x conftest$ac_exeext
2107 $as_echo "$as_me: failed program was:" >&5
2108 sed 's
/^
/|
/' conftest.$ac_ext >&5
2112 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2113 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2114 # interfere with the next link command; also delete a directory that is
2115 # left behind by Apple's compiler. We
do this before executing the actions.
2116 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2117 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2118 as_fn_set_status
$ac_retval
2120 } # ac_fn_c_try_link
2122 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2123 # --------------------------------------------
2124 # Tries to find the compile-time value of EXPR in a program that includes
2125 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2127 ac_fn_c_compute_int
()
2129 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2130 if test "$cross_compiling" = yes; then
2131 # Depending upon the size, compute the lo and hi bounds.
2132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h. */
2138 static int test_array [1 - 2 * !(($2) >= 0)];
2140 return test_array [0];
2146 if ac_fn_c_try_compile
"$LINENO"; then :
2149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h. */
2155 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2157 return test_array [0];
2163 if ac_fn_c_try_compile
"$LINENO"; then :
2164 ac_hi
=$ac_mid; break
2166 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2167 if test $ac_lo -le $ac_mid; then
2171 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2182 static int test_array [1 - 2 * !(($2) < 0)];
2184 return test_array [0];
2190 if ac_fn_c_try_compile
"$LINENO"; then :
2193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2199 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2201 return test_array [0];
2207 if ac_fn_c_try_compile
"$LINENO"; then :
2208 ac_lo
=$ac_mid; break
2210 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2211 if test $ac_mid -le $ac_hi; then
2215 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2222 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2224 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2225 # Binary search between lo and hi bounds.
2226 while test "x$ac_lo" != "x$ac_hi"; do
2227 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2229 /* end confdefs.h. */
2234 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2236 return test_array [0];
2242 if ac_fn_c_try_compile
"$LINENO"; then :
2245 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2247 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2250 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2255 /* end confdefs.h. */
2257 static long int longval () { return $2; }
2258 static unsigned long int ulongval () { return $2; }
2265 FILE *f = fopen ("conftest.val", "w");
2270 long int i = longval ();
2273 fprintf (f, "%ld", i);
2277 unsigned long int i = ulongval ();
2280 fprintf (f, "%lu", i);
2282 /* Do not output a trailing newline, as this causes \r\n confusion
2283 on some platforms. */
2284 return ferror (f) || fclose (f) != 0;
2290 if ac_fn_c_try_run
"$LINENO"; then :
2291 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2295 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2296 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2300 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2301 as_fn_set_status
$ac_retval
2303 } # ac_fn_c_compute_int
2305 # ac_fn_c_check_func LINENO FUNC VAR
2306 # ----------------------------------
2307 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2308 ac_fn_c_check_func
()
2310 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2312 $as_echo_n "checking for $2... " >&6; }
2313 if eval \
${$3+:} false
; then :
2314 $as_echo_n "(cached) " >&6
2316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2317 /* end confdefs.h. */
2318 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2320 #define $2 innocuous_$2
2322 /* System header to define __stub macros and hopefully few prototypes,
2323 which can conflict with char $2 (); below.
2324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2325 <limits.h> exists even on freestanding compilers. */
2328 # include <limits.h>
2330 # include <assert.h>
2335 /* Override any GCC internal prototype to avoid an error.
2336 Use char because int might match the return type of a GCC
2337 builtin and then its argument prototype would still apply. */
2342 /* The GNU C library defines this for functions which it implements
2343 to always fail with ENOSYS. Some functions are actually named
2344 something starting with __ and the normal name is an alias. */
2345 #if defined __stub_$2 || defined __stub___$2
2357 if ac_fn_c_try_link
"$LINENO"; then :
2362 rm -f core conftest.err conftest.
$ac_objext \
2363 conftest
$ac_exeext conftest.
$ac_ext
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2367 $as_echo "$ac_res" >&6; }
2368 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2370 } # ac_fn_c_check_func
2372 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2373 # -------------------------------------------
2374 # Tests whether TYPE exists after having included INCLUDES, setting cache
2375 # variable VAR accordingly.
2376 ac_fn_c_check_type
()
2378 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2380 $as_echo_n "checking for $2... " >&6; }
2381 if eval \
${$3+:} false
; then :
2382 $as_echo_n "(cached) " >&6
2385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2386 /* end confdefs.h. */
2397 if ac_fn_c_try_compile
"$LINENO"; then :
2398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2399 /* end confdefs.h. */
2410 if ac_fn_c_try_compile
"$LINENO"; then :
2415 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2417 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2421 $as_echo "$ac_res" >&6; }
2422 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2424 } # ac_fn_c_check_type
2426 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2427 # ---------------------------------------------
2428 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2430 ac_fn_c_check_decl
()
2432 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2433 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2434 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2436 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2437 if eval \
${$3+:} false
; then :
2438 $as_echo_n "(cached) " >&6
2440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2441 /* end confdefs.h. */
2446 #ifndef $as_decl_name
2448 (void) $as_decl_use;
2450 (void) $as_decl_name;
2458 if ac_fn_c_try_compile
"$LINENO"; then :
2463 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2467 $as_echo "$ac_res" >&6; }
2468 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2470 } # ac_fn_c_check_decl
2472 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2473 # ----------------------------------------------------
2474 # Tries to find if the field MEMBER exists in type AGGR, after including
2475 # INCLUDES, setting cache variable VAR accordingly.
2476 ac_fn_c_check_member
()
2478 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2480 $as_echo_n "checking for $2.$3... " >&6; }
2481 if eval \
${$4+:} false
; then :
2482 $as_echo_n "(cached) " >&6
2484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2485 /* end confdefs.h. */
2497 if ac_fn_c_try_compile
"$LINENO"; then :
2500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2501 /* end confdefs.h. */
2507 if (sizeof ac_aggr.$3)
2513 if ac_fn_c_try_compile
"$LINENO"; then :
2518 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2520 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2524 $as_echo "$ac_res" >&6; }
2525 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2527 } # ac_fn_c_check_member
2529 # ac_fn_cxx_try_link LINENO
2530 # -------------------------
2531 # Try to link conftest.$ac_ext, and return whether this succeeded.
2532 ac_fn_cxx_try_link
()
2534 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2535 rm -f conftest.
$ac_objext conftest
$ac_exeext
2536 if { { ac_try
="$ac_link"
2538 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2539 *) ac_try_echo=$ac_try;;
2541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2542 $as_echo "$ac_try_echo"; } >&5
2543 (eval "$ac_link") 2>conftest.err
2545 if test -s conftest.err; then
2546 grep -v '^ *+' conftest.err >conftest.er1
2547 cat conftest.er1 >&5
2548 mv -f conftest.er1 conftest.err
2550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2551 test $ac_status = 0; } && {
2552 test -z "$ac_cxx_werror_flag" ||
2553 test ! -s conftest.err
2554 } && test -s conftest$ac_exeext && {
2555 test "$cross_compiling" = yes ||
2556 test -x conftest$ac_exeext
2560 $as_echo "$as_me: failed program was:" >&5
2561 sed 's/^/| /' conftest.$ac_ext >&5
2565 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2566 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2567 # interfere with the next link command; also delete a directory that is
2568 # left behind by Apple's compiler. We do this before executing the actions.
2569 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2571 as_fn_set_status $ac_retval
2573 } # ac_fn_cxx_try_link
2575 # ac_fn_cxx_check_func LINENO FUNC VAR
2576 # ------------------------------------
2577 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2578 ac_fn_cxx_check_func ()
2580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2582 $as_echo_n "checking for $2... " >&6; }
2583 if eval \${$3+:} false; then :
2584 $as_echo_n "(cached) " >&6
2586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2587 /* end confdefs.h. */
2588 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2590 #define $2 innocuous_$2
2592 /* System header to define __stub macros and hopefully few prototypes,
2593 which can conflict with char $2 (); below.
2594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2595 <limits.h> exists even on freestanding compilers. */
2598 # include <limits.h>
2600 # include <assert.h>
2605 /* Override any GCC internal prototype to avoid an error.
2606 Use char because int might match the return type of a GCC
2607 builtin and then its argument prototype would still apply. */
2612 /* The GNU C library defines this for functions which it implements
2613 to always fail with ENOSYS. Some functions are actually named
2614 something starting with __ and the normal name is an alias. */
2615 #if defined __stub_$2 || defined __stub___$2
2627 if ac_fn_cxx_try_link "$LINENO"; then :
2632 rm -f core conftest.err conftest.$ac_objext \
2633 conftest$ac_exeext conftest.$ac_ext
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2637 $as_echo "$ac_res" >&6; }
2638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2640 } # ac_fn_cxx_check_func
2641 cat >config.log <<_ACEOF
2642 This file contains any messages produced by compilers while
2643 running configure, to aid debugging if configure makes a mistake.
2645 It was created by $as_me, which was
2646 generated by GNU Autoconf 2.69. Invocation command line was
2658 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2659 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2660 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2661 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2662 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2664 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2665 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2667 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2668 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2669 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2670 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2671 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2672 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2673 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681 test -z "$as_dir" && as_dir=.
2682 $as_echo "PATH: $as_dir"
2698 # Keep a trace of the command line.
2699 # Strip out --no-create and --no-recursion so they do not pile up.
2700 # Strip out --silent because we don't want to record it for future runs.
2701 # Also quote any args containing shell meta-characters.
2702 # Make two passes to allow for proper duplicate-argument suppression.
2706 ac_must_keep_next=false
2712 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2713 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2714 | -silent | --silent | --silen | --sile | --sil)
2717 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2720 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2722 as_fn_append ac_configure_args1 " '$ac_arg'"
2723 if test $ac_must_keep_next = true; then
2724 ac_must_keep_next=false # Got value, back to normal.
2727 *=* | --config-cache | -C | -disable-* | --disable-* \
2728 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2729 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2730 | -with-* | --with-* | -without-* | --without-* | --x)
2731 case "$ac_configure_args0 " in
2732 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2735 -* ) ac_must_keep_next=true ;;
2738 as_fn_append ac_configure_args " '$ac_arg'"
2743 { ac_configure_args0=; unset ac_configure_args0;}
2744 { ac_configure_args1=; unset ac_configure_args1;}
2746 # When interrupted or exit'd, cleanup temporary files, and complete
2747 # config.log. We remove comments because anyway the quotes in there
2748 # would cause problems or look ugly.
2749 # WARNING: Use '\'' to represent an apostrophe within the trap.
2750 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2751 trap 'exit_status=$?
2752 # Save into config.log some information that might help in debugging.
2756 $as_echo "## ---------------- ##
2757 ## Cache variables. ##
2758 ## ---------------- ##"
2760 # The following way of writing the cache mishandles newlines in values,
2762 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2763 eval ac_val=\$$ac_var
2767 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2768 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2771 _ | IFS | as_nl) ;; #(
2772 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2773 *) { eval $ac_var=; unset $ac_var;} ;;
2778 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2779 *${as_nl}ac_space=\ *)
2781 "s/'\''/'\''\\\\'\'''\''/g;
2782 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2785 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2792 $as_echo "## ----------------- ##
2793 ## Output variables. ##
2794 ## ----------------- ##"
2796 for ac_var in $ac_subst_vars
2798 eval ac_val=\$$ac_var
2800 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2802 $as_echo "$ac_var='\''$ac_val'\''"
2806 if test -n "$ac_subst_files"; then
2807 $as_echo "## ------------------- ##
2808 ## File substitutions. ##
2809 ## ------------------- ##"
2811 for ac_var in $ac_subst_files
2813 eval ac_val=\$$ac_var
2815 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2817 $as_echo "$ac_var='\''$ac_val'\''"
2822 if test -s confdefs.h; then
2823 $as_echo "## ----------- ##
2830 test "$ac_signal" != 0 &&
2831 $as_echo "$as_me: caught signal $ac_signal"
2832 $as_echo "$as_me: exit $exit_status"
2834 rm -f core *.core core.conftest.* &&
2835 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2838 for ac_signal in 1 2 13 15; do
2839 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2843 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2844 rm -f -r conftest* confdefs.h
2846 $as_echo "/* confdefs.h */" > confdefs.h
2848 # Predefined preprocessor variables.
2850 cat >>confdefs.h <<_ACEOF
2851 #define PACKAGE_NAME "$PACKAGE_NAME"
2854 cat >>confdefs.h <<_ACEOF
2855 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2858 cat >>confdefs.h <<_ACEOF
2859 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2862 cat >>confdefs.h <<_ACEOF
2863 #define PACKAGE_STRING "$PACKAGE_STRING"
2866 cat >>confdefs.h <<_ACEOF
2867 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2870 cat >>confdefs.h <<_ACEOF
2871 #define PACKAGE_URL "$PACKAGE_URL"
2875 # Let the site file select an alternate cache file if it wants to.
2876 # Prefer an explicitly selected file to automatically selected ones.
2879 if test -n "$CONFIG_SITE"; then
2880 # We do not want a PATH search for config.site.
2881 case $CONFIG_SITE in #((
2882 -*) ac_site_file1=./$CONFIG_SITE;;
2883 */*) ac_site_file1=$CONFIG_SITE;;
2884 *) ac_site_file1=./$CONFIG_SITE;;
2886 elif test "x$prefix" != xNONE; then
2887 ac_site_file1=$prefix/share/config.site
2888 ac_site_file2=$prefix/etc/config.site
2890 ac_site_file1=$ac_default_prefix/share/config.site
2891 ac_site_file2=$ac_default_prefix/etc/config.site
2893 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2895 test "x$ac_site_file" = xNONE && continue
2896 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2898 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2899 sed 's/^/| /' "$ac_site_file" >&5
2901 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2903 as_fn_error $? "failed to load site
script $ac_site_file
2904 See \
`config.log' for more details" "$LINENO" 5; }
2908 if test -r "$cache_file"; then
2909 # Some versions of bash will fail to source /dev/null (special files
2910 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2911 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2913 $as_echo "$as_me: loading cache $cache_file" >&6;}
2915 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2916 *) . "./$cache_file";;
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2921 $as_echo "$as_me: creating cache $cache_file" >&6;}
2925 as_fn_append ac_header_list " stdlib.h"
2926 as_fn_append ac_header_list " unistd.h"
2927 as_fn_append ac_header_list " sys/param.h"
2928 # Check that the precious variables saved in the cache have kept the same
2930 ac_cache_corrupted=false
2931 for ac_var in $ac_precious_vars; do
2932 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2933 eval ac_new_set=\$ac_env_${ac_var}_set
2934 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2935 eval ac_new_val=\$ac_env_${ac_var}_value
2936 case $ac_old_set,$ac_new_set in
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2939 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2940 ac_cache_corrupted=: ;;
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2943 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2944 ac_cache_corrupted=: ;;
2947 if test "x$ac_old_val" != "x$ac_new_val"; then
2948 # differences in whitespace do not lead to failure.
2949 ac_old_val_w=`echo x
$ac_old_val`
2950 ac_new_val_w=`echo x
$ac_new_val`
2951 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2953 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2954 ac_cache_corrupted=:
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2957 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2958 eval $ac_var=\$ac_old_val
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2961 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2963 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2966 # Pass precious variables to config.status.
2967 if test "$ac_new_set" = set; then
2969 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2970 *) ac_arg=$ac_var=$ac_new_val ;;
2972 case " $ac_configure_args " in
2973 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2974 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2978 if $ac_cache_corrupted; then
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2982 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2983 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2985 ## -------------------- ##
2986 ## Main body of script. ##
2987 ## -------------------- ##
2990 ac_cpp='$CPP $CPPFLAGS'
2991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3001 ac_config_headers="$ac_config_headers config.h:config.in"
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3005 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3006 # Check whether --enable-maintainer-mode was given.
3007 if test "${enable_maintainer_mode+set}" = set; then :
3008 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3010 USE_MAINTAINER_MODE=no
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3014 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3015 if test $USE_MAINTAINER_MODE = yes; then
3016 MAINTAINER_MODE_TRUE=
3017 MAINTAINER_MODE_FALSE='#'
3019 MAINTAINER_MODE_TRUE='#'
3020 MAINTAINER_MODE_FALSE=
3023 MAINT=$MAINTAINER_MODE_TRUE
3028 ac_cpp='$CPP $CPPFLAGS'
3029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3032 if test -n "$ac_tool_prefix"; then
3033 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3034 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3036 $as_echo_n "checking for $ac_word... " >&6; }
3037 if ${ac_cv_prog_CC+:} false; then :
3038 $as_echo_n "(cached) " >&6
3040 if test -n "$CC"; then
3041 ac_cv_prog_CC="$CC" # Let the user override the test.
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047 test -z "$as_dir" && as_dir=.
3048 for ac_exec_ext in '' $ac_executable_extensions; do
3049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3050 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3061 if test -n "$CC"; then
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3063 $as_echo "$CC" >&6; }
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066 $as_echo "no" >&6; }
3071 if test -z "$ac_cv_prog_CC"; then
3073 # Extract the first word of "gcc", so it can be a program name with args.
3074 set dummy gcc; ac_word=$2
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076 $as_echo_n "checking for $ac_word... " >&6; }
3077 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3078 $as_echo_n "(cached) " >&6
3080 if test -n "$ac_ct_CC"; then
3081 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087 test -z "$as_dir" && as_dir=.
3088 for ac_exec_ext in '' $ac_executable_extensions; do
3089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3090 ac_cv_prog_ac_ct_CC="gcc"
3091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3101 if test -n "$ac_ct_CC"; then
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3103 $as_echo "$ac_ct_CC" >&6; }
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106 $as_echo "no" >&6; }
3109 if test "x$ac_ct_CC" = x; then
3112 case $cross_compiling:$ac_tool_warned in
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3116 ac_tool_warned=yes ;;
3124 if test -z "$CC"; then
3125 if test -n "$ac_tool_prefix"; then
3126 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3127 set dummy ${ac_tool_prefix}cc; ac_word=$2
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3129 $as_echo_n "checking for $ac_word... " >&6; }
3130 if ${ac_cv_prog_CC+:} false; then :
3131 $as_echo_n "(cached) " >&6
3133 if test -n "$CC"; then
3134 ac_cv_prog_CC="$CC" # Let the user override the test.
3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140 test -z "$as_dir" && as_dir=.
3141 for ac_exec_ext in '' $ac_executable_extensions; do
3142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3143 ac_cv_prog_CC="${ac_tool_prefix}cc"
3144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3154 if test -n "$CC"; then
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3156 $as_echo "$CC" >&6; }
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159 $as_echo "no" >&6; }
3165 if test -z "$CC"; then
3166 # Extract the first word of "cc", so it can be a program name with args.
3167 set dummy cc; ac_word=$2
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3169 $as_echo_n "checking for $ac_word... " >&6; }
3170 if ${ac_cv_prog_CC+:} false; then :
3171 $as_echo_n "(cached) " >&6
3173 if test -n "$CC"; then
3174 ac_cv_prog_CC="$CC" # Let the user override the test.
3177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181 test -z "$as_dir" && as_dir=.
3182 for ac_exec_ext in '' $ac_executable_extensions; do
3183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3184 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3185 ac_prog_rejected=yes
3189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3196 if test $ac_prog_rejected = yes; then
3197 # We found a bogon in the path, so make sure we never use it.
3198 set dummy $ac_cv_prog_CC
3200 if test $# != 0; then
3201 # We chose a different compiler from the bogus one.
3202 # However, it has the same basename, so the bogon will be chosen
3203 # first if we set CC to just the basename; use the full file name.
3205 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3211 if test -n "$CC"; then
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3213 $as_echo "$CC" >&6; }
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216 $as_echo "no" >&6; }
3221 if test -z "$CC"; then
3222 if test -n "$ac_tool_prefix"; then
3223 for ac_prog in cl.exe
3225 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3226 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3228 $as_echo_n "checking for $ac_word... " >&6; }
3229 if ${ac_cv_prog_CC+:} false; then :
3230 $as_echo_n "(cached) " >&6
3232 if test -n "$CC"; then
3233 ac_cv_prog_CC="$CC" # Let the user override the test.
3235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239 test -z "$as_dir" && as_dir=.
3240 for ac_exec_ext in '' $ac_executable_extensions; do
3241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3242 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3253 if test -n "$CC"; then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3255 $as_echo "$CC" >&6; }
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258 $as_echo "no" >&6; }
3262 test -n "$CC" && break
3265 if test -z "$CC"; then
3267 for ac_prog in cl.exe
3269 # Extract the first word of "$ac_prog", so it can be a program name with args.
3270 set dummy $ac_prog; ac_word=$2
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3272 $as_echo_n "checking for $ac_word... " >&6; }
3273 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3274 $as_echo_n "(cached) " >&6
3276 if test -n "$ac_ct_CC"; then
3277 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283 test -z "$as_dir" && as_dir=.
3284 for ac_exec_ext in '' $ac_executable_extensions; do
3285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3286 ac_cv_prog_ac_ct_CC="$ac_prog"
3287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3296 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3297 if test -n "$ac_ct_CC"; then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3299 $as_echo "$ac_ct_CC" >&6; }
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302 $as_echo "no" >&6; }
3306 test -n "$ac_ct_CC" && break
3309 if test "x$ac_ct_CC" = x; then
3312 case $cross_compiling:$ac_tool_warned in
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3316 ac_tool_warned=yes ;;
3325 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3327 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3328 See \
`config.log' for more details" "$LINENO" 5; }
3330 # Provide some information about the compiler.
3331 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3334 for ac_option in --version -v -V -qversion; do
3335 { { ac_try="$ac_compiler $ac_option >&5"
3337 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3338 *) ac_try_echo
=$ac_try;;
3340 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3341 $as_echo "$ac_try_echo"; } >&5
3342 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3344 if test -s conftest.err
; then
3346 ... rest of stderr output deleted ...
3347 10q' conftest.err
>conftest.er1
3348 cat conftest.er1
>&5
3350 rm -f conftest.er1 conftest.err
3351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3352 test $ac_status = 0; }
3355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3356 /* end confdefs.h. */
3366 ac_clean_files_save
=$ac_clean_files
3367 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3368 # Try to create an executable without -o first, disregard a.out.
3369 # It will help us diagnose broken compilers, and finding out an intuition
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3372 $as_echo_n "checking whether the C compiler works... " >&6; }
3373 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3375 # The possible output files:
3376 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3379 for ac_file
in $ac_files
3382 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3383 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3388 if { { ac_try
="$ac_link_default"
3390 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394 $as_echo "$ac_try_echo"; } >&5
3395 (eval "$ac_link_default") 2>&5
3397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398 test $ac_status = 0; }; then :
3399 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3400 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3401 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3402 # so that the user can short-circuit this test for compilers unknown to
3404 for ac_file in $ac_files ''
3406 test -f "$ac_file" || continue
3408 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3411 # We found the default executable, but exeext='' is most
3415 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3417 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3419 # We set ac_cv_exeext here because the later test for it is not
3420 # safe: cross compilers may not add the suffix if given an `-o'
3421 # argument, so we may need to know it at that point already.
3422 # Even if this section looks crufty: it has the advantage of
3429 test "$ac_cv_exeext" = no && ac_cv_exeext=
3434 if test -z "$ac_file"; then :
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3436 $as_echo "no" >&6; }
3437 $as_echo "$as_me: failed program was:" >&5
3438 sed 's
/^
/|
/' conftest.$ac_ext >&5
3440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3441 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3442 as_fn_error 77 "C compiler cannot create executables
3443 See \`config.log
' for more details" "$LINENO" 5; }
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3446 $as_echo "yes" >&6; }
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3449 $as_echo_n "checking for C compiler default output file name... " >&6; }
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3451 $as_echo "$ac_file" >&6; }
3452 ac_exeext=$ac_cv_exeext
3454 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3455 ac_clean_files=$ac_clean_files_save
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3457 $as_echo_n "checking for suffix of executables... " >&6; }
3458 if { { ac_try="$ac_link"
3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461 *) ac_try_echo=$ac_try;;
3463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3464 $as_echo "$ac_try_echo"; } >&5
3465 (eval "$ac_link") 2>&5
3467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3468 test $ac_status = 0; }; then :
3469 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3470 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3471 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3473 for ac_file
in conftest.exe conftest conftest.
*; do
3474 test -f "$ac_file" ||
continue
3476 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3477 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3483 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3484 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3485 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3486 See \`config.log' for more details" "$LINENO" 5; }
3488 rm -f conftest conftest
$ac_cv_exeext
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3490 $as_echo "$ac_cv_exeext" >&6; }
3492 rm -f conftest.
$ac_ext
3493 EXEEXT
=$ac_cv_exeext
3495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3496 /* end confdefs.h. */
3501 FILE *f = fopen ("conftest.out", "w");
3502 return ferror (f) || fclose (f) != 0;
3508 ac_clean_files
="$ac_clean_files conftest.out"
3509 # Check that the compiler produces executables we can run. If not, either
3510 # the compiler is broken, or we cross compile.
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3512 $as_echo_n "checking whether we are cross compiling... " >&6; }
3513 if test "$cross_compiling" != yes; then
3514 { { ac_try
="$ac_link"
3516 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3517 *) ac_try_echo=$ac_try;;
3519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3520 $as_echo "$ac_try_echo"; } >&5
3521 (eval "$ac_link") 2>&5
3523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3524 test $ac_status = 0; }
3525 if { ac_try='./conftest$ac_cv_exeext'
3526 { { case "(($ac_try" in
3527 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3528 *) ac_try_echo
=$ac_try;;
3530 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3531 $as_echo "$ac_try_echo"; } >&5
3532 (eval "$ac_try") 2>&5
3534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3535 test $ac_status = 0; }; }; then
3538 if test "$cross_compiling" = maybe
; then
3541 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3542 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3543 as_fn_error $?
"cannot run C compiled programs.
3544 If you meant to cross compile, use \`--host'.
3545 See \`config.log' for more details" "$LINENO" 5; }
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3550 $as_echo "$cross_compiling" >&6; }
3552 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3553 ac_clean_files
=$ac_clean_files_save
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3555 $as_echo_n "checking for suffix of object files... " >&6; }
3556 if ${ac_cv_objext+:} false
; then :
3557 $as_echo_n "(cached) " >&6
3559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3560 /* end confdefs.h. */
3570 rm -f conftest.o conftest.obj
3571 if { { ac_try
="$ac_compile"
3573 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577 $as_echo "$ac_try_echo"; } >&5
3578 (eval "$ac_compile") 2>&5
3580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3581 test $ac_status = 0; }; then :
3582 for ac_file in conftest.o conftest.obj conftest.*; do
3583 test -f "$ac_file" || continue;
3585 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3586 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3591 $as_echo "$as_me: failed program was:" >&5
3592 sed 's/^/| /' conftest.$ac_ext >&5
3594 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3596 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3597 See \
`config.log' for more details" "$LINENO" 5; }
3599 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3602 $as_echo "$ac_cv_objext" >&6; }
3603 OBJEXT=$ac_cv_objext
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3606 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3607 if ${ac_cv_c_compiler_gnu+:} false; then :
3608 $as_echo_n "(cached) " >&6
3610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3611 /* end confdefs.h. */
3624 if ac_fn_c_try_compile "$LINENO"; then :
3629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3630 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3634 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3635 if test $ac_compiler_gnu = yes; then
3640 ac_test_CFLAGS=${CFLAGS+set}
3641 ac_save_CFLAGS=$CFLAGS
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3643 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3644 if ${ac_cv_prog_cc_g+:} false; then :
3645 $as_echo_n "(cached) " >&6
3647 ac_save_c_werror_flag=$ac_c_werror_flag
3648 ac_c_werror_flag=yes
3651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652 /* end confdefs.h. */
3662 if ac_fn_c_try_compile "$LINENO"; then :
3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667 /* end confdefs.h. */
3677 if ac_fn_c_try_compile "$LINENO"; then :
3680 ac_c_werror_flag=$ac_save_c_werror_flag
3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683 /* end confdefs.h. */
3693 if ac_fn_c_try_compile "$LINENO"; then :
3696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3701 ac_c_werror_flag=$ac_save_c_werror_flag
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3704 $as_echo "$ac_cv_prog_cc_g" >&6; }
3705 if test "$ac_test_CFLAGS" = set; then
3706 CFLAGS=$ac_save_CFLAGS
3707 elif test $ac_cv_prog_cc_g = yes; then
3708 if test "$GCC" = yes; then
3714 if test "$GCC" = yes; then
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3721 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3722 if ${ac_cv_prog_cc_c89+:} false; then :
3723 $as_echo_n "(cached) " >&6
3725 ac_cv_prog_cc_c89=no
3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h. */
3732 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3733 struct buf { int x; };
3734 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3735 static char *e (p, i)
3741 static char *f (char * (*g) (char **, int), char **p, ...)
3746 s = g (p, va_arg (v,int));
3751 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3752 function prototypes and stuff, but not '\xHH' hex character constants.
3753 These don't provoke an error unfortunately, instead are silently treated
3754 as 'x'. The following induces an error, until -std is added to get
3755 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3756 array size at least. It's necessary to write '\x00'==0 to get something
3757 that's true only with -std. */
3758 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3760 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3761 inside strings and character constants. */
3763 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3765 int test (int i, double x);
3766 struct s1 {int (*f) (int a);};
3767 struct s2 {int (*f) (double a);};
3768 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3774 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3779 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3780 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3782 CC="$ac_save_CC $ac_arg"
3783 if ac_fn_c_try_compile "$LINENO"; then :
3784 ac_cv_prog_cc_c89=$ac_arg
3786 rm -f core conftest.err conftest.$ac_objext
3787 test "x$ac_cv_prog_cc_c89" != "xno" && break
3789 rm -f conftest.$ac_ext
3794 case "x$ac_cv_prog_cc_c89" in
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3797 $as_echo "none needed" >&6; } ;;
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3800 $as_echo "unsupported" >&6; } ;;
3802 CC="$CC $ac_cv_prog_cc_c89"
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3804 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3806 if test "x$ac_cv_prog_cc_c89" != xno; then :
3811 ac_cpp='$CPP $CPPFLAGS'
3812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3817 ac_cpp='$CXXCPP $CPPFLAGS'
3818 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3819 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3820 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3821 if test -z "$CXX"; then
3822 if test -n "$CCC"; then
3825 if test -n "$ac_tool_prefix"; then
3826 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3828 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3829 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3831 $as_echo_n "checking for $ac_word... " >&6; }
3832 if ${ac_cv_prog_CXX+:} false; then :
3833 $as_echo_n "(cached) " >&6
3835 if test -n "$CXX"; then
3836 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842 test -z "$as_dir" && as_dir=.
3843 for ac_exec_ext in '' $ac_executable_extensions; do
3844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3845 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3856 if test -n "$CXX"; then
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3858 $as_echo "$CXX" >&6; }
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3861 $as_echo "no" >&6; }
3865 test -n "$CXX" && break
3868 if test -z "$CXX"; then
3870 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3872 # Extract the first word of "$ac_prog", so it can be a program name with args.
3873 set dummy $ac_prog; ac_word=$2
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3875 $as_echo_n "checking for $ac_word... " >&6; }
3876 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3877 $as_echo_n "(cached) " >&6
3879 if test -n "$ac_ct_CXX"; then
3880 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886 test -z "$as_dir" && as_dir=.
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3889 ac_cv_prog_ac_ct_CXX="$ac_prog"
3890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3899 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3900 if test -n "$ac_ct_CXX"; then
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3902 $as_echo "$ac_ct_CXX" >&6; }
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3905 $as_echo "no" >&6; }
3909 test -n "$ac_ct_CXX" && break
3912 if test "x$ac_ct_CXX" = x; then
3915 case $cross_compiling:$ac_tool_warned in
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3919 ac_tool_warned=yes ;;
3927 # Provide some information about the compiler.
3928 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3931 for ac_option in --version -v -V -qversion; do
3932 { { ac_try="$ac_compiler $ac_option >&5"
3934 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3935 *) ac_try_echo
=$ac_try;;
3937 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3938 $as_echo "$ac_try_echo"; } >&5
3939 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3941 if test -s conftest.err
; then
3943 ... rest of stderr output deleted ...
3944 10q' conftest.err
>conftest.er1
3945 cat conftest.er1
>&5
3947 rm -f conftest.er1 conftest.err
3948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3949 test $ac_status = 0; }
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3953 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3954 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3955 $as_echo_n "(cached) " >&6
3957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3958 /* end confdefs.h. */
3971 if ac_fn_cxx_try_compile
"$LINENO"; then :
3976 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3977 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3981 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3982 if test $ac_compiler_gnu = yes; then
3987 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3988 ac_save_CXXFLAGS
=$CXXFLAGS
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3990 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3991 if ${ac_cv_prog_cxx_g+:} false
; then :
3992 $as_echo_n "(cached) " >&6
3994 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3995 ac_cxx_werror_flag
=yes
3998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h. */
4009 if ac_fn_cxx_try_compile
"$LINENO"; then :
4010 ac_cv_prog_cxx_g
=yes
4013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4014 /* end confdefs.h. */
4024 if ac_fn_cxx_try_compile
"$LINENO"; then :
4027 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h. */
4040 if ac_fn_cxx_try_compile
"$LINENO"; then :
4041 ac_cv_prog_cxx_g
=yes
4043 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4045 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4047 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4048 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4051 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4052 if test "$ac_test_CXXFLAGS" = set; then
4053 CXXFLAGS
=$ac_save_CXXFLAGS
4054 elif test $ac_cv_prog_cxx_g = yes; then
4055 if test "$GXX" = yes; then
4061 if test "$GXX" = yes; then
4068 ac_cpp
='$CPP $CPPFLAGS'
4069 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4070 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4071 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4076 ac_cpp
='$CPP $CPPFLAGS'
4077 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4078 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4079 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4081 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4082 # On Suns, sometimes $CPP names a directory.
4083 if test -n "$CPP" && test -d "$CPP"; then
4086 if test -z "$CPP"; then
4087 if ${ac_cv_prog_CPP+:} false
; then :
4088 $as_echo_n "(cached) " >&6
4090 # Double quotes because CPP needs to be expanded
4091 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4094 for ac_c_preproc_warn_flag
in '' yes
4096 # Use a header file that comes with gcc, so configuring glibc
4097 # with a fresh cross-compiler works.
4098 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4099 # <limits.h> exists even on freestanding compilers.
4100 # On the NeXT, cc -E runs the code through the compiler's parser,
4101 # not just through cpp. "Syntax error" is here to catch this case.
4102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4105 # include <limits.h>
4107 # include <assert.h>
4111 if ac_fn_c_try_cpp
"$LINENO"; then :
4114 # Broken: fails on valid input.
4117 rm -f conftest.err conftest.i conftest.
$ac_ext
4119 # OK, works on sane cases. Now check whether nonexistent headers
4120 # can be detected and how.
4121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h. */
4123 #include <ac_nonexistent.h>
4125 if ac_fn_c_try_cpp
"$LINENO"; then :
4126 # Broken: success on invalid input.
4129 # Passes both tests.
4133 rm -f conftest.err conftest.i conftest.
$ac_ext
4136 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4137 rm -f conftest.i conftest.err conftest.
$ac_ext
4138 if $ac_preproc_ok; then :
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4151 $as_echo "$CPP" >&6; }
4153 for ac_c_preproc_warn_flag
in '' yes
4155 # Use a header file that comes with gcc, so configuring glibc
4156 # with a fresh cross-compiler works.
4157 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4158 # <limits.h> exists even on freestanding compilers.
4159 # On the NeXT, cc -E runs the code through the compiler's parser,
4160 # not just through cpp. "Syntax error" is here to catch this case.
4161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h. */
4164 # include <limits.h>
4166 # include <assert.h>
4170 if ac_fn_c_try_cpp
"$LINENO"; then :
4173 # Broken: fails on valid input.
4176 rm -f conftest.err conftest.i conftest.
$ac_ext
4178 # OK, works on sane cases. Now check whether nonexistent headers
4179 # can be detected and how.
4180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h. */
4182 #include <ac_nonexistent.h>
4184 if ac_fn_c_try_cpp
"$LINENO"; then :
4185 # Broken: success on invalid input.
4188 # Passes both tests.
4192 rm -f conftest.err conftest.i conftest.
$ac_ext
4195 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4196 rm -f conftest.i conftest.err conftest.
$ac_ext
4197 if $ac_preproc_ok; then :
4200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4202 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4203 See \`config.log' for more details" "$LINENO" 5; }
4207 ac_cpp
='$CPP $CPPFLAGS'
4208 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4209 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4210 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4214 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4215 if ${ac_cv_path_GREP+:} false
; then :
4216 $as_echo_n "(cached) " >&6
4218 if test -z "$GREP"; then
4219 ac_path_GREP_found
=false
4220 # Loop through the user's path and test for each of PROGNAME-LIST
4221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4222 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4225 test -z "$as_dir" && as_dir
=.
4226 for ac_prog
in grep ggrep
; do
4227 for ac_exec_ext
in '' $ac_executable_extensions; do
4228 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4229 as_fn_executable_p
"$ac_path_GREP" ||
continue
4230 # Check for GNU ac_path_GREP and select it if it is found.
4231 # Check for GNU $ac_path_GREP
4232 case `"$ac_path_GREP" --version 2>&1` in
4234 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4237 $as_echo_n 0123456789 >"conftest.in"
4240 cat "conftest.in" "conftest.in" >"conftest.tmp"
4241 mv "conftest.tmp" "conftest.in"
4242 cp "conftest.in" "conftest.nl"
4243 $as_echo 'GREP' >> "conftest.nl"
4244 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4245 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4246 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4247 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4248 # Best one so far, save it but keep looking for a better one
4249 ac_cv_path_GREP
="$ac_path_GREP"
4250 ac_path_GREP_max
=$ac_count
4252 # 10*(2^10) chars as input seems more than enough
4253 test $ac_count -gt 10 && break
4255 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4258 $ac_path_GREP_found && break 3
4263 if test -z "$ac_cv_path_GREP"; then
4264 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4267 ac_cv_path_GREP
=$GREP
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4272 $as_echo "$ac_cv_path_GREP" >&6; }
4273 GREP
="$ac_cv_path_GREP"
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4277 $as_echo_n "checking for egrep... " >&6; }
4278 if ${ac_cv_path_EGREP+:} false
; then :
4279 $as_echo_n "(cached) " >&6
4281 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4282 then ac_cv_path_EGREP
="$GREP -E"
4284 if test -z "$EGREP"; then
4285 ac_path_EGREP_found
=false
4286 # Loop through the user's path and test for each of PROGNAME-LIST
4287 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4288 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4291 test -z "$as_dir" && as_dir
=.
4292 for ac_prog
in egrep; do
4293 for ac_exec_ext
in '' $ac_executable_extensions; do
4294 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4295 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4296 # Check for GNU ac_path_EGREP and select it if it is found.
4297 # Check for GNU $ac_path_EGREP
4298 case `"$ac_path_EGREP" --version 2>&1` in
4300 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4303 $as_echo_n 0123456789 >"conftest.in"
4306 cat "conftest.in" "conftest.in" >"conftest.tmp"
4307 mv "conftest.tmp" "conftest.in"
4308 cp "conftest.in" "conftest.nl"
4309 $as_echo 'EGREP' >> "conftest.nl"
4310 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4311 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4312 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4313 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4314 # Best one so far, save it but keep looking for a better one
4315 ac_cv_path_EGREP
="$ac_path_EGREP"
4316 ac_path_EGREP_max
=$ac_count
4318 # 10*(2^10) chars as input seems more than enough
4319 test $ac_count -gt 10 && break
4321 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4324 $ac_path_EGREP_found && break 3
4329 if test -z "$ac_cv_path_EGREP"; then
4330 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4333 ac_cv_path_EGREP
=$EGREP
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4339 $as_echo "$ac_cv_path_EGREP" >&6; }
4340 EGREP
="$ac_cv_path_EGREP"
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4344 $as_echo_n "checking for ANSI C header files... " >&6; }
4345 if ${ac_cv_header_stdc+:} false
; then :
4346 $as_echo_n "(cached) " >&6
4348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4363 if ac_fn_c_try_compile
"$LINENO"; then :
4364 ac_cv_header_stdc
=yes
4366 ac_cv_header_stdc
=no
4368 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4370 if test $ac_cv_header_stdc = yes; then
4371 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4373 /* end confdefs.h. */
4377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4378 $EGREP "memchr" >/dev
/null
2>&1; then :
4381 ac_cv_header_stdc
=no
4387 if test $ac_cv_header_stdc = yes; then
4388 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4390 /* end confdefs.h. */
4394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4395 $EGREP "free" >/dev
/null
2>&1; then :
4398 ac_cv_header_stdc
=no
4404 if test $ac_cv_header_stdc = yes; then
4405 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4406 if test "$cross_compiling" = yes; then :
4409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h. */
4413 #if ((' ' & 0x0FF) == 0x020)
4414 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4415 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4417 # define ISLOWER(c) \
4418 (('a' <= (c) && (c) <= 'i') \
4419 || ('j' <= (c) && (c) <= 'r') \
4420 || ('s' <= (c) && (c) <= 'z'))
4421 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4424 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4429 for (i = 0; i < 256; i++)
4430 if (XOR (islower (i), ISLOWER (i))
4431 || toupper (i) != TOUPPER (i))
4436 if ac_fn_c_try_run
"$LINENO"; then :
4439 ac_cv_header_stdc
=no
4441 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4442 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4448 $as_echo "$ac_cv_header_stdc" >&6; }
4449 if test $ac_cv_header_stdc = yes; then
4451 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4455 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4456 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4457 inttypes.h stdint.h unistd.h
4459 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4460 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4462 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4463 cat >>confdefs.h
<<_ACEOF
4464 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4473 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4474 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4481 if test "$MINIX" = yes; then
4483 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4486 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4489 $as_echo "#define _MINIX 1" >>confdefs.h
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4495 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4496 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4497 $as_echo_n "(cached) " >&6
4499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4500 /* end confdefs.h. */
4502 # define __EXTENSIONS__ 1
4503 $ac_includes_default
4512 if ac_fn_c_try_compile
"$LINENO"; then :
4513 ac_cv_safe_to_define___extensions__
=yes
4515 ac_cv_safe_to_define___extensions__
=no
4517 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4520 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4521 test $ac_cv_safe_to_define___extensions__ = yes &&
4522 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4524 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4526 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4528 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4530 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4534 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4535 if test -f "$ac_dir/install-sh"; then
4537 ac_install_sh
="$ac_aux_dir/install-sh -c"
4539 elif test -f "$ac_dir/install.sh"; then
4541 ac_install_sh
="$ac_aux_dir/install.sh -c"
4543 elif test -f "$ac_dir/shtool"; then
4545 ac_install_sh
="$ac_aux_dir/shtool install -c"
4549 if test -z "$ac_aux_dir"; then
4550 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4553 # These three variables are undocumented and unsupported,
4554 # and are intended to be withdrawn in a future Autoconf release.
4555 # They can cause serious problems if a builder's source tree is in a directory
4556 # whose full name contains unusual characters.
4557 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4558 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4559 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4562 # Make sure we can run config.sub.
4563 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4564 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4567 $as_echo_n "checking build system type... " >&6; }
4568 if ${ac_cv_build+:} false
; then :
4569 $as_echo_n "(cached) " >&6
4571 ac_build_alias
=$build_alias
4572 test "x$ac_build_alias" = x
&&
4573 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4574 test "x$ac_build_alias" = x
&&
4575 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4576 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4577 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4581 $as_echo "$ac_cv_build" >&6; }
4582 case $ac_cv_build in
4584 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4587 ac_save_IFS
=$IFS; IFS
='-'
4593 # Remember, the first character of IFS is used to create $*,
4594 # except with old shells:
4597 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4601 $as_echo_n "checking host system type... " >&6; }
4602 if ${ac_cv_host+:} false
; then :
4603 $as_echo_n "(cached) " >&6
4605 if test "x$host_alias" = x
; then
4606 ac_cv_host
=$ac_cv_build
4608 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4609 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4614 $as_echo "$ac_cv_host" >&6; }
4617 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4620 ac_save_IFS
=$IFS; IFS
='-'
4626 # Remember, the first character of IFS is used to create $*,
4627 # except with old shells:
4630 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4634 $as_echo_n "checking target system type... " >&6; }
4635 if ${ac_cv_target+:} false
; then :
4636 $as_echo_n "(cached) " >&6
4638 if test "x$target_alias" = x
; then
4639 ac_cv_target
=$ac_cv_host
4641 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4642 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4647 $as_echo "$ac_cv_target" >&6; }
4648 case $ac_cv_target in
4650 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4652 target
=$ac_cv_target
4653 ac_save_IFS
=$IFS; IFS
='-'
4659 # Remember, the first character of IFS is used to create $*,
4660 # except with old shells:
4663 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4666 # The aliases save the names the user supplied, while $host etc.
4667 # will get canonicalized.
4668 test -n "$target_alias" &&
4669 test "$program_prefix$program_suffix$program_transform_name" = \
4671 program_prefix
=${target_alias}-
4673 # The tests for host and target for $enable_largefile require
4678 # As the $enable_largefile decision depends on --enable-plugins we must set it
4679 # even in directories otherwise not depending on the $plugins option.
4683 for ac_header
in dlfcn.h
4685 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4687 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
4688 cat >>confdefs.h
<<_ACEOF
4689 #define HAVE_DLFCN_H 1
4696 for ac_header
in windows.h
4698 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4700 if test "x$ac_cv_header_windows_h" = xyes
; then :
4701 cat >>confdefs.h
<<_ACEOF
4702 #define HAVE_WINDOWS_H 1
4710 # Check whether --enable-plugins was given.
4711 if test "${enable_plugins+set}" = set; then :
4712 enableval
=$enable_plugins; case "${enableval}" in
4715 if test "$maybe_plugins" != "yes" ; then
4716 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4720 plugins
=$maybe_plugins
4724 if test "$plugins" = "yes"; then
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4726 $as_echo_n "checking for library containing dlsym... " >&6; }
4727 if ${ac_cv_search_dlsym+:} false
; then :
4728 $as_echo_n "(cached) " >&6
4730 ac_func_search_save_LIBS
=$LIBS
4731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4732 /* end confdefs.h. */
4734 /* Override any GCC internal prototype to avoid an error.
4735 Use char because int might match the return type of a GCC
4736 builtin and then its argument prototype would still apply. */
4749 for ac_lib
in '' dl
; do
4750 if test -z "$ac_lib"; then
4751 ac_res
="none required"
4754 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4756 if ac_fn_c_try_link
"$LINENO"; then :
4757 ac_cv_search_dlsym
=$ac_res
4759 rm -f core conftest.err conftest.
$ac_objext \
4761 if ${ac_cv_search_dlsym+:} false
; then :
4765 if ${ac_cv_search_dlsym+:} false
; then :
4768 ac_cv_search_dlsym
=no
4771 LIBS
=$ac_func_search_save_LIBS
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4774 $as_echo "$ac_cv_search_dlsym" >&6; }
4775 ac_res
=$ac_cv_search_dlsym
4776 if test "$ac_res" != no
; then :
4777 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4785 sparc-
*-solaris*|i?
86-*-solaris*)
4786 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
4787 # were mutually exclusive until Solaris 11.3. Without procfs support,
4788 # the bfd/ elf module cannot provide certain routines such as
4789 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
4790 # explicitly requested large-file support through the
4791 # --enable-largefile switch, disable large-file support in favor of
4794 # Check if <sys/procfs.h> is incompatible with large-file support.
4795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4796 /* end confdefs.h. */
4797 #define _FILE_OFFSET_BITS 64
4798 #define _STRUCTURED_PROC 1
4799 #include <sys/procfs.h>
4808 if ac_fn_c_try_compile
"$LINENO"; then :
4809 acx_cv_procfs_lfs
=yes
4811 acx_cv_procfs_lfs
=no
4813 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4815 # Forcefully disable large-file support only if necessary, gdb is in
4817 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
4818 -a -d $srcdir/..
/gdb
-a "$enable_gdb" != no
; then
4819 : ${enable_largefile="no"}
4820 if test "$plugins" = yes; then
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4822 plugin support disabled; require large-file support which is incompatible with GDB." >&5
4823 $as_echo "$as_me: WARNING:
4824 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
4829 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
4830 # benefit of g++ 9+ which predefines it on Solaris.
4831 if test "$enable_largefile" = no
; then
4832 LARGEFILE_CPPFLAGS
="-U_FILE_OFFSET_BITS"
4838 # Check whether --enable-largefile was given.
4839 if test "${enable_largefile+set}" = set; then :
4840 enableval
=$enable_largefile;
4843 if test "$enable_largefile" != no
; then
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4846 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4847 if ${ac_cv_sys_largefile_CC+:} false
; then :
4848 $as_echo_n "(cached) " >&6
4850 ac_cv_sys_largefile_CC
=no
4851 if test "$GCC" != yes; then
4854 # IRIX 6.2 and later do not support large files by default,
4855 # so use the C compiler's -n32 option if that helps.
4856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4857 /* end confdefs.h. */
4858 #include <sys/types.h>
4859 /* Check that off_t can represent 2**63 - 1 correctly.
4860 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4861 since some C++ compilers masquerading as C compilers
4862 incorrectly reject 9223372036854775807. */
4863 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4864 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4865 && LARGE_OFF_T % 2147483647 == 1)
4875 if ac_fn_c_try_compile
"$LINENO"; then :
4878 rm -f core conftest.err conftest.
$ac_objext
4880 if ac_fn_c_try_compile
"$LINENO"; then :
4881 ac_cv_sys_largefile_CC
=' -n32'; break
4883 rm -f core conftest.err conftest.
$ac_objext
4887 rm -f conftest.
$ac_ext
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4891 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4892 if test "$ac_cv_sys_largefile_CC" != no
; then
4893 CC
=$CC$ac_cv_sys_largefile_CC
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4897 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4898 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4899 $as_echo_n "(cached) " >&6
4902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4903 /* end confdefs.h. */
4904 #include <sys/types.h>
4905 /* Check that off_t can represent 2**63 - 1 correctly.
4906 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4907 since some C++ compilers masquerading as C compilers
4908 incorrectly reject 9223372036854775807. */
4909 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4910 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4911 && LARGE_OFF_T % 2147483647 == 1)
4921 if ac_fn_c_try_compile
"$LINENO"; then :
4922 ac_cv_sys_file_offset_bits
=no
; break
4924 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4926 /* end confdefs.h. */
4927 #define _FILE_OFFSET_BITS 64
4928 #include <sys/types.h>
4929 /* Check that off_t can represent 2**63 - 1 correctly.
4930 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4931 since some C++ compilers masquerading as C compilers
4932 incorrectly reject 9223372036854775807. */
4933 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4934 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4935 && LARGE_OFF_T % 2147483647 == 1)
4945 if ac_fn_c_try_compile
"$LINENO"; then :
4946 ac_cv_sys_file_offset_bits
=64; break
4948 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4949 ac_cv_sys_file_offset_bits
=unknown
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4954 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4955 case $ac_cv_sys_file_offset_bits in #(
4958 cat >>confdefs.h
<<_ACEOF
4959 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4964 if test $ac_cv_sys_file_offset_bits = unknown
; then
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4966 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4967 if ${ac_cv_sys_large_files+:} false
; then :
4968 $as_echo_n "(cached) " >&6
4971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4972 /* end confdefs.h. */
4973 #include <sys/types.h>
4974 /* Check that off_t can represent 2**63 - 1 correctly.
4975 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4976 since some C++ compilers masquerading as C compilers
4977 incorrectly reject 9223372036854775807. */
4978 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4979 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4980 && LARGE_OFF_T % 2147483647 == 1)
4990 if ac_fn_c_try_compile
"$LINENO"; then :
4991 ac_cv_sys_large_files
=no
; break
4993 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4995 /* end confdefs.h. */
4996 #define _LARGE_FILES 1
4997 #include <sys/types.h>
4998 /* Check that off_t can represent 2**63 - 1 correctly.
4999 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5000 since some C++ compilers masquerading as C compilers
5001 incorrectly reject 9223372036854775807. */
5002 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5003 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5004 && LARGE_OFF_T % 2147483647 == 1)
5014 if ac_fn_c_try_compile
"$LINENO"; then :
5015 ac_cv_sys_large_files
=1; break
5017 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5018 ac_cv_sys_large_files
=unknown
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5023 $as_echo "$ac_cv_sys_large_files" >&6; }
5024 case $ac_cv_sys_large_files in #(
5027 cat >>confdefs.h
<<_ACEOF
5028 #define _LARGE_FILES $ac_cv_sys_large_files
5039 # Expand $ac_aux_dir to an absolute path.
5040 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
5042 if test x
"${install_sh+set}" != xset
; then
5045 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
5047 install_sh
="\${SHELL} $am_aux_dir/install-sh"
5051 # Installed binaries are usually stripped using 'strip' when the user
5052 # run "make install-strip". However 'strip' might not be the right
5053 # tool to use in cross-compilation environments, therefore Automake
5054 # will honor the 'STRIP' environment variable to overrule this program.
5055 if test "$cross_compiling" != no
; then
5056 if test -n "$ac_tool_prefix"; then
5057 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5058 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5060 $as_echo_n "checking for $ac_word... " >&6; }
5061 if ${ac_cv_prog_STRIP+:} false
; then :
5062 $as_echo_n "(cached) " >&6
5064 if test -n "$STRIP"; then
5065 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5067 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5071 test -z "$as_dir" && as_dir
=.
5072 for ac_exec_ext
in '' $ac_executable_extensions; do
5073 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5074 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5084 STRIP
=$ac_cv_prog_STRIP
5085 if test -n "$STRIP"; then
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5087 $as_echo "$STRIP" >&6; }
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5090 $as_echo "no" >&6; }
5095 if test -z "$ac_cv_prog_STRIP"; then
5097 # Extract the first word of "strip", so it can be a program name with args.
5098 set dummy strip
; ac_word
=$2
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5100 $as_echo_n "checking for $ac_word... " >&6; }
5101 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
5102 $as_echo_n "(cached) " >&6
5104 if test -n "$ac_ct_STRIP"; then
5105 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5107 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5111 test -z "$as_dir" && as_dir
=.
5112 for ac_exec_ext
in '' $ac_executable_extensions; do
5113 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5114 ac_cv_prog_ac_ct_STRIP
="strip"
5115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5125 if test -n "$ac_ct_STRIP"; then
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5127 $as_echo "$ac_ct_STRIP" >&6; }
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5130 $as_echo "no" >&6; }
5133 if test "x$ac_ct_STRIP" = x
; then
5136 case $cross_compiling:$ac_tool_warned in
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5140 ac_tool_warned
=yes ;;
5145 STRIP
="$ac_cv_prog_STRIP"
5149 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
5153 for ac_dir
in ..
"$srcdir"/..
; do
5154 if test -f "$ac_dir/install-sh"; then
5156 ac_install_sh
="$ac_aux_dir/install-sh -c"
5158 elif test -f "$ac_dir/install.sh"; then
5160 ac_install_sh
="$ac_aux_dir/install.sh -c"
5162 elif test -f "$ac_dir/shtool"; then
5164 ac_install_sh
="$ac_aux_dir/shtool install -c"
5168 if test -z "$ac_aux_dir"; then
5169 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
5172 # These three variables are undocumented and unsupported,
5173 # and are intended to be withdrawn in a future Autoconf release.
5174 # They can cause serious problems if a builder's source tree is in a directory
5175 # whose full name contains unusual characters.
5176 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5177 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5178 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5182 # Set build, build_cpu, build_vendor and build_os.
5185 # Set host, host_cpu, host_vendor, and host_os.
5188 # Set target, target_cpu, target_vendor, and target_os.
5191 case ${build_alias} in
5192 "") build_noncanonical
=${build} ;;
5193 *) build_noncanonical
=${build_alias} ;;
5196 case ${host_alias} in
5197 "") host_noncanonical
=${build_noncanonical} ;;
5198 *) host_noncanonical
=${host_alias} ;;
5201 case ${target_alias} in
5202 "") target_noncanonical
=${host_noncanonical} ;;
5203 *) target_noncanonical
=${target_alias} ;;
5209 test "$program_prefix" != NONE
&&
5210 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
5211 # Use a double $ so make ignores it.
5212 test "$program_suffix" != NONE
&&
5213 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
5214 # Double any \ or $.
5215 # By default was `s,x,x', remove it if useless.
5216 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
5217 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
5220 # We require a C++11 compiler. Check if one is available, and if
5221 # necessary, set CXX_DIALECT to some -std=xxx switch.
5223 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5225 ac_cpp
='$CXXCPP $CPPFLAGS'
5226 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5227 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5228 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5232 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5233 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5234 $as_echo_n "(cached) " >&6
5236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5237 /* end confdefs.h. */
5240 // If the compiler admits that it is not ready for C++11, why torture it?
5241 // Hopefully, this will speed up the test.
5245 #error "This is not a C++ compiler"
5247 #elif __cplusplus < 201103L
5249 #error "This is not a C++11 compiler"
5256 namespace test_static_assert
5259 template <typename T>
5262 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5267 namespace test_final_override
5275 struct Derived : public Base
5277 virtual void f() override {}
5282 namespace test_double_right_angle_brackets
5285 template < typename T >
5288 typedef check<void> single_type;
5289 typedef check<check<void>> double_type;
5290 typedef check<check<check<void>>> triple_type;
5291 typedef check<check<check<check<void>>>> quadruple_type;
5295 namespace test_decltype
5308 namespace test_type_deduction
5311 template < typename T1, typename T2 >
5314 static const bool value = false;
5317 template < typename T >
5318 struct is_same<T, T>
5320 static const bool value = true;
5323 template < typename T1, typename T2 >
5325 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5331 test(const int c, volatile int v)
5333 static_assert(is_same<int, decltype(0)>::value == true, "");
5334 static_assert(is_same<int, decltype(c)>::value == false, "");
5335 static_assert(is_same<int, decltype(v)>::value == false, "");
5338 auto sumi = ac + av + 'x';
5339 auto sumf = ac + av + 1.0;
5340 static_assert(is_same<int, decltype(ac)>::value == true, "");
5341 static_assert(is_same<int, decltype(av)>::value == true, "");
5342 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5343 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5344 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5345 return (sumf > 0.0) ? sumi : add(c, v);
5350 namespace test_noexcept
5353 int f() { return 0; }
5354 int g() noexcept { return 0; }
5356 static_assert(noexcept(f()) == false, "");
5357 static_assert(noexcept(g()) == true, "");
5361 namespace test_constexpr
5364 template < typename CharT >
5365 unsigned long constexpr
5366 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5368 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5371 template < typename CharT >
5372 unsigned long constexpr
5373 strlen_c(const CharT *const s) noexcept
5375 return strlen_c_r(s, 0UL);
5378 static_assert(strlen_c("") == 0UL, "");
5379 static_assert(strlen_c("1") == 1UL, "");
5380 static_assert(strlen_c("example") == 7UL, "");
5381 static_assert(strlen_c("another\0example") == 7UL, "");
5385 namespace test_rvalue_references
5391 static constexpr int value = N;
5394 answer<1> f(int&) { return answer<1>(); }
5395 answer<2> f(const int&) { return answer<2>(); }
5396 answer<3> f(int&&) { return answer<3>(); }
5403 static_assert(decltype(f(i))::value == 1, "");
5404 static_assert(decltype(f(c))::value == 2, "");
5405 static_assert(decltype(f(0))::value == 3, "");
5410 namespace test_uniform_initialization
5415 static const int zero {};
5416 static const int one {1};
5419 static_assert(test::zero == 0, "");
5420 static_assert(test::one == 1, "");
5424 namespace test_lambdas
5430 auto lambda1 = [](){};
5431 auto lambda2 = lambda1;
5439 auto a = [](int i, int j){ return i + j; }(1, 2);
5440 auto b = []() -> int { return '0'; }();
5441 auto c = [=](){ return a + b; }();
5442 auto d = [&](){ return c; }();
5443 auto e = [a, &b](int x) mutable {
5444 const auto identity = [](int y){ return y; };
5445 for (auto i = 0; i < a; ++i)
5447 return x + identity(a + b);
5449 return a + b + c + d + e;
5455 const auto nullary = [](){ return 0; };
5456 const auto unary = [](int x){ return x; };
5457 using nullary_t = decltype(nullary);
5458 using unary_t = decltype(unary);
5459 const auto higher1st = [](nullary_t f){ return f(); };
5460 const auto higher2nd = [unary](nullary_t f1){
5461 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5463 return higher1st(nullary) + higher2nd(nullary)(unary);
5468 namespace test_variadic_templates
5474 template <int N0, int... N1toN>
5475 struct sum<N0, N1toN...>
5477 static constexpr auto value = N0 + sum<N1toN...>::value;
5483 static constexpr auto value = 0;
5486 static_assert(sum<>::value == 0, "");
5487 static_assert(sum<1>::value == 1, "");
5488 static_assert(sum<23>::value == 23, "");
5489 static_assert(sum<1, 2>::value == 3, "");
5490 static_assert(sum<5, 5, 11>::value == 21, "");
5491 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5495 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5496 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5498 namespace test_template_alias_sfinae
5503 template<typename T>
5504 using member = typename T::member_type;
5506 template<typename T>
5509 template<typename T>
5510 void func(member<T>*) {}
5514 void test() { func<foo>(0); }
5518 } // namespace cxx11
5520 #endif // __cplusplus >= 201103L
5525 if ac_fn_cxx_try_compile
"$LINENO"; then :
5526 ax_cv_cxx_compile_cxx11
=yes
5528 ax_cv_cxx_compile_cxx11
=no
5530 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5533 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5534 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
5538 if test x
$ac_success = xno
; then
5539 for alternative
in ${ax_cxx_compile_alternatives}; do
5540 switch
="-std=gnu++${alternative}"
5541 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5543 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5544 if eval \
${$cachevar+:} false
; then :
5545 $as_echo_n "(cached) " >&6
5549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5550 /* end confdefs.h. */
5553 // If the compiler admits that it is not ready for C++11, why torture it?
5554 // Hopefully, this will speed up the test.
5558 #error "This is not a C++ compiler"
5560 #elif __cplusplus < 201103L
5562 #error "This is not a C++11 compiler"
5569 namespace test_static_assert
5572 template <typename T>
5575 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5580 namespace test_final_override
5588 struct Derived : public Base
5590 virtual void f() override {}
5595 namespace test_double_right_angle_brackets
5598 template < typename T >
5601 typedef check<void> single_type;
5602 typedef check<check<void>> double_type;
5603 typedef check<check<check<void>>> triple_type;
5604 typedef check<check<check<check<void>>>> quadruple_type;
5608 namespace test_decltype
5621 namespace test_type_deduction
5624 template < typename T1, typename T2 >
5627 static const bool value = false;
5630 template < typename T >
5631 struct is_same<T, T>
5633 static const bool value = true;
5636 template < typename T1, typename T2 >
5638 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5644 test(const int c, volatile int v)
5646 static_assert(is_same<int, decltype(0)>::value == true, "");
5647 static_assert(is_same<int, decltype(c)>::value == false, "");
5648 static_assert(is_same<int, decltype(v)>::value == false, "");
5651 auto sumi = ac + av + 'x';
5652 auto sumf = ac + av + 1.0;
5653 static_assert(is_same<int, decltype(ac)>::value == true, "");
5654 static_assert(is_same<int, decltype(av)>::value == true, "");
5655 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5656 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5657 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5658 return (sumf > 0.0) ? sumi : add(c, v);
5663 namespace test_noexcept
5666 int f() { return 0; }
5667 int g() noexcept { return 0; }
5669 static_assert(noexcept(f()) == false, "");
5670 static_assert(noexcept(g()) == true, "");
5674 namespace test_constexpr
5677 template < typename CharT >
5678 unsigned long constexpr
5679 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5681 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5684 template < typename CharT >
5685 unsigned long constexpr
5686 strlen_c(const CharT *const s) noexcept
5688 return strlen_c_r(s, 0UL);
5691 static_assert(strlen_c("") == 0UL, "");
5692 static_assert(strlen_c("1") == 1UL, "");
5693 static_assert(strlen_c("example") == 7UL, "");
5694 static_assert(strlen_c("another\0example") == 7UL, "");
5698 namespace test_rvalue_references
5704 static constexpr int value = N;
5707 answer<1> f(int&) { return answer<1>(); }
5708 answer<2> f(const int&) { return answer<2>(); }
5709 answer<3> f(int&&) { return answer<3>(); }
5716 static_assert(decltype(f(i))::value == 1, "");
5717 static_assert(decltype(f(c))::value == 2, "");
5718 static_assert(decltype(f(0))::value == 3, "");
5723 namespace test_uniform_initialization
5728 static const int zero {};
5729 static const int one {1};
5732 static_assert(test::zero == 0, "");
5733 static_assert(test::one == 1, "");
5737 namespace test_lambdas
5743 auto lambda1 = [](){};
5744 auto lambda2 = lambda1;
5752 auto a = [](int i, int j){ return i + j; }(1, 2);
5753 auto b = []() -> int { return '0'; }();
5754 auto c = [=](){ return a + b; }();
5755 auto d = [&](){ return c; }();
5756 auto e = [a, &b](int x) mutable {
5757 const auto identity = [](int y){ return y; };
5758 for (auto i = 0; i < a; ++i)
5760 return x + identity(a + b);
5762 return a + b + c + d + e;
5768 const auto nullary = [](){ return 0; };
5769 const auto unary = [](int x){ return x; };
5770 using nullary_t = decltype(nullary);
5771 using unary_t = decltype(unary);
5772 const auto higher1st = [](nullary_t f){ return f(); };
5773 const auto higher2nd = [unary](nullary_t f1){
5774 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5776 return higher1st(nullary) + higher2nd(nullary)(unary);
5781 namespace test_variadic_templates
5787 template <int N0, int... N1toN>
5788 struct sum<N0, N1toN...>
5790 static constexpr auto value = N0 + sum<N1toN...>::value;
5796 static constexpr auto value = 0;
5799 static_assert(sum<>::value == 0, "");
5800 static_assert(sum<1>::value == 1, "");
5801 static_assert(sum<23>::value == 23, "");
5802 static_assert(sum<1, 2>::value == 3, "");
5803 static_assert(sum<5, 5, 11>::value == 21, "");
5804 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5808 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5809 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5811 namespace test_template_alias_sfinae
5816 template<typename T>
5817 using member = typename T::member_type;
5819 template<typename T>
5822 template<typename T>
5823 void func(member<T>*) {}
5827 void test() { func<foo>(0); }
5831 } // namespace cxx11
5833 #endif // __cplusplus >= 201103L
5838 if ac_fn_cxx_try_compile
"$LINENO"; then :
5843 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5846 eval ac_res
=\$
$cachevar
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5848 $as_echo "$ac_res" >&6; }
5849 if eval test x\$
$cachevar = xyes
; then
5850 CXX_DIALECT
="$switch"
5857 if test x
$ac_success = xno
; then
5858 for alternative
in ${ax_cxx_compile_alternatives}; do
5859 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5860 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
5862 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
5863 if eval \${$cachevar+:} false; then :
5864 $as_echo_n "(cached
) " >&6
5868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869 /* end confdefs.h. */
5872 // If the compiler admits that it is not ready for C++11, why torture it?
5873 // Hopefully, this will speed up the test.
5877 #error "This is not a C
++ compiler
"
5879 #elif __cplusplus < 201103L
5881 #error "This is not a C
++11 compiler
"
5888 namespace test_static_assert
5891 template <typename T>
5894 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
5899 namespace test_final_override
5907 struct Derived : public Base
5909 virtual void f() override {}
5914 namespace test_double_right_angle_brackets
5917 template < typename T >
5920 typedef check<void> single_type;
5921 typedef check<check<void>> double_type;
5922 typedef check<check<check<void>>> triple_type;
5923 typedef check<check<check<check<void>>>> quadruple_type;
5927 namespace test_decltype
5940 namespace test_type_deduction
5943 template < typename T1, typename T2 >
5946 static const bool value = false;
5949 template < typename T >
5950 struct is_same<T, T>
5952 static const bool value = true;
5955 template < typename T1, typename T2 >
5957 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5963 test(const int c, volatile int v)
5965 static_assert(is_same<int, decltype(0)>::value == true, "");
5966 static_assert(is_same<int, decltype(c)>::value == false, "");
5967 static_assert(is_same<int, decltype(v)>::value == false, "");
5970 auto sumi = ac + av + 'x';
5971 auto sumf = ac + av + 1.0;
5972 static_assert(is_same<int, decltype(ac)>::value == true, "");
5973 static_assert(is_same<int, decltype(av)>::value == true, "");
5974 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5975 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5976 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5977 return (sumf > 0.0) ? sumi : add(c, v);
5982 namespace test_noexcept
5985 int f() { return 0; }
5986 int g() noexcept { return 0; }
5988 static_assert(noexcept(f()) == false, "");
5989 static_assert(noexcept(g()) == true, "");
5993 namespace test_constexpr
5996 template < typename CharT >
5997 unsigned long constexpr
5998 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6000 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6003 template < typename CharT >
6004 unsigned long constexpr
6005 strlen_c(const CharT *const s) noexcept
6007 return strlen_c_r(s, 0UL);
6010 static_assert(strlen_c("") == 0UL, "");
6011 static_assert(strlen_c("1") == 1UL, "");
6012 static_assert(strlen_c("example
") == 7UL, "");
6013 static_assert(strlen_c("another\
0example
") == 7UL, "");
6017 namespace test_rvalue_references
6023 static constexpr int value = N;
6026 answer<1> f(int&) { return answer<1>(); }
6027 answer<2> f(const int&) { return answer<2>(); }
6028 answer<3> f(int&&) { return answer<3>(); }
6035 static_assert(decltype(f(i))::value == 1, "");
6036 static_assert(decltype(f(c))::value == 2, "");
6037 static_assert(decltype(f(0))::value == 3, "");
6042 namespace test_uniform_initialization
6047 static const int zero {};
6048 static const int one {1};
6051 static_assert(test::zero == 0, "");
6052 static_assert(test::one == 1, "");
6056 namespace test_lambdas
6062 auto lambda1 = [](){};
6063 auto lambda2 = lambda1;
6071 auto a = [](int i, int j){ return i + j; }(1, 2);
6072 auto b = []() -> int { return '0'; }();
6073 auto c = [=](){ return a + b; }();
6074 auto d = [&](){ return c; }();
6075 auto e = [a, &b](int x) mutable {
6076 const auto identity = [](int y){ return y; };
6077 for (auto i = 0; i < a; ++i)
6079 return x + identity(a + b);
6081 return a + b + c + d + e;
6087 const auto nullary = [](){ return 0; };
6088 const auto unary = [](int x){ return x; };
6089 using nullary_t = decltype(nullary);
6090 using unary_t = decltype(unary);
6091 const auto higher1st = [](nullary_t f){ return f(); };
6092 const auto higher2nd = [unary](nullary_t f1){
6093 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6095 return higher1st(nullary) + higher2nd(nullary)(unary);
6100 namespace test_variadic_templates
6106 template <int N0, int... N1toN>
6107 struct sum<N0, N1toN...>
6109 static constexpr auto value = N0 + sum<N1toN...>::value;
6115 static constexpr auto value = 0;
6118 static_assert(sum<>::value == 0, "");
6119 static_assert(sum<1>::value == 1, "");
6120 static_assert(sum<23>::value == 23, "");
6121 static_assert(sum<1, 2>::value == 3, "");
6122 static_assert(sum<5, 5, 11>::value == 21, "");
6123 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6127 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6128 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6130 namespace test_template_alias_sfinae
6135 template<typename T>
6136 using member = typename T::member_type;
6138 template<typename T>
6141 template<typename T>
6142 void func(member<T>*) {}
6146 void test() { func<foo>(0); }
6150 } // namespace cxx11
6152 #endif // __cplusplus >= 201103L
6157 if ac_fn_cxx_try_compile "$LINENO"; then :
6162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6165 eval ac_res=\$$cachevar
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6167 $as_echo "$ac_res" >&6; }
6168 if eval test x\$$cachevar = xyes; then
6169 CXX_DIALECT="$switch"
6174 if test x$ac_success = xyes; then
6180 ac_cpp='$CPP $CPPFLAGS'
6181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6185 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6186 if test x$ac_success = xno; then
6187 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6190 if test x$ac_success = xno; then
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6193 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6197 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6204 # Dependency checking.
6205 rm -rf .tst
2>/dev
/null
6206 mkdir .tst
2>/dev
/null
6207 if test -d .tst
; then
6212 rmdir .tst
2>/dev
/null
6214 DEPDIR
="${am__leading_dot}deps"
6216 ac_config_commands
="$ac_config_commands depdir"
6219 depcc
="$CC" am_compiler_list
=
6221 am_depcomp
=$ac_aux_dir/depcomp
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6223 $as_echo_n "checking dependency style of $depcc... " >&6; }
6224 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
6225 $as_echo_n "(cached) " >&6
6227 if test -f "$am_depcomp"; then
6228 # We make a subdir and do the tests there. Otherwise we can end up
6229 # making bogus files that we don't know about and never remove. For
6230 # instance it was reported that on HP-UX the gcc test will end up
6231 # making a dummy file named `D' -- because `-MD' means `put the output
6234 # Copy depcomp to subdir because otherwise we won't find it if we're
6235 # using a relative directory.
6236 cp "$am_depcomp" conftest.dir
6238 # We will build objects and dependencies in a subdirectory because
6239 # it helps to detect inapplicable dependency modes. For instance
6240 # both Tru64's cc and ICC support -MD to output dependencies as a
6241 # side effect of compilation, but ICC will put the dependencies in
6242 # the current directory while Tru64 will put them in the object
6246 am_cv_CC_dependencies_compiler_type
=none
6247 if test "$am_compiler_list" = ""; then
6248 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6250 for depmode
in $am_compiler_list; do
6251 if test $depmode = none
; then break; fi
6253 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6254 # Setup a source with many dependencies, because some compilers
6255 # like to wrap large dependency lists on column 80 (with \), and
6256 # we should not choose a depcomp mode which is confused by this.
6258 # We need to recreate these files for each test, as the compiler may
6259 # overwrite some of them when testing with obscure command lines.
6260 # This happens at least with the AIX C compiler.
6262 for i
in 1 2 3 4 5 6; do
6263 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6264 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6265 # Solaris 8's {/usr,}/bin/sh.
6266 touch sub
/conftst
$i.h
6268 echo "include sub/conftest.Po" > confmf
6270 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6271 # mode. It turns out that the SunPro C++ compiler does not properly
6272 # handle `-M -o', and we need to detect this.
6273 depcmd
="depmode=$depmode \
6274 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6275 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6276 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6277 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
6278 if env
$depcmd > conftest.err
2>&1 &&
6279 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
6280 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
6281 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
6282 # icc doesn't choke on unknown options, it will just issue warnings
6283 # or remarks (even with -Werror). So we grep stderr for any message
6284 # that says an option was ignored or not supported.
6285 # When given -MP, icc 7.0 and 7.1 complain thusly:
6286 # icc: Command line warning: ignoring option '-M'; no argument required
6287 # The diagnosis changed in icc 8.0:
6288 # icc: Command line remark: option '-MP' not supported
6289 if (grep 'ignoring option' conftest.err ||
6290 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6291 am_cv_CC_dependencies_compiler_type
=$depmode
6292 $as_echo "$as_me:$LINENO: success" >&5
6296 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6297 sed -e 's/^/| /' < conftest.err
>&5
6303 am_cv_CC_dependencies_compiler_type
=none
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6308 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6309 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
6310 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
6311 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
6327 # If we haven't got the data from the intl directory,
6328 # assume NLS is disabled.
6337 if test -f ..
/intl
/config.intl
; then
6338 . ..
/intl
/config.intl
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6341 $as_echo_n "checking whether NLS is requested... " >&6; }
6342 if test x
"$USE_NLS" != xyes
; then
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6344 $as_echo "no" >&6; }
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6347 $as_echo "yes" >&6; }
6349 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6353 $as_echo_n "checking for catalogs to be installed... " >&6; }
6354 # Look for .po and .gmo files in the source directory.
6357 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
6358 # If there aren't any .gmo files the shell will give us the
6359 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6361 case "$cat" in *\
**)
6364 # The quadruple backslash is collapsed to a double backslash
6365 # by the backticks, then collapsed again by the double quotes,
6366 # leaving us with one backslash in the sed expression (right
6367 # before the dot that mustn't act as a wildcard).
6368 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6369 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
6370 # The user is allowed to set LINGUAS to a list of languages to
6371 # install catalogs for. If it's empty that means "all of them."
6372 if test "x$LINGUAS" = x
; then
6373 CATALOGS
="$CATALOGS $cat"
6374 XLINGUAS
="$XLINGUAS $lang"
6376 case "$LINGUAS" in *$lang*)
6377 CATALOGS
="$CATALOGS $cat"
6378 XLINGUAS
="$XLINGUAS $lang"
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6385 $as_echo "$LINGUAS" >&6; }
6398 localedir
='${datadir}/locale'
6401 if test x
"$USE_NLS" = xyes
; then
6402 CONFIG_ALL
="$CONFIG_ALL all-po"
6403 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
6404 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
6405 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
6410 cat >>confdefs.h
<<_ACEOF
6411 #define PACKAGE "$PACKAGE"
6416 # We never need to detect it in this sub-configure.
6417 # But preserve it for config.status --recheck.
6421 MAKEINFO_EXTRA_FLAGS
=""
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
6423 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
6424 if ${gdb_cv_have_makeinfo_click+:} false
; then :
6425 $as_echo_n "(cached) " >&6
6427 echo '@clicksequence{a @click{} b}' >conftest.texinfo
6428 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
6429 gdb_cv_have_makeinfo_click
=yes
6431 gdb_cv_have_makeinfo_click
=no
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
6435 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
6436 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
6437 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
6443 # Check whether --with-separate-debug-dir was given.
6444 if test "${with_separate_debug_dir+set}" = set; then :
6445 withval
=$with_separate_debug_dir;
6448 DEBUGDIR
=${libdir}/debug
6452 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6453 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6454 ac_define_dir
=`eval echo $DEBUGDIR`
6455 ac_define_dir
=`eval echo $ac_define_dir`
6457 cat >>confdefs.h
<<_ACEOF
6458 #define DEBUGDIR "$ac_define_dir"
6464 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6465 if test "x$prefix" = xNONE
; then
6466 test_prefix
=/usr
/local
6471 test_prefix
=$exec_prefix
6474 case ${ac_define_dir} in
6475 "${test_prefix}"|
"${test_prefix}/"*|\
6476 '${exec_prefix}'|
'${exec_prefix}/'*)
6481 cat >>confdefs.h
<<_ACEOF
6482 #define DEBUGDIR_RELOCATABLE $value
6488 # We can't pass paths as command line arguments.
6489 # Mingw32 tries to be clever and will convert the paths for us.
6490 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
6491 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
6492 # This breaks GDB's relocatable path conversions since paths passed in
6493 # config.h would not get so translated, the path prefixes no longer match.
6495 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6496 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6497 ac_define_dir
=`eval echo $bindir`
6498 ac_define_dir
=`eval echo $ac_define_dir`
6500 cat >>confdefs.h
<<_ACEOF
6501 #define BINDIR "$ac_define_dir"
6506 # GDB's datadir relocation
6510 # Check whether --with-gdb-datadir was given.
6511 if test "${with_gdb_datadir+set}" = set; then :
6512 withval
=$with_gdb_datadir;
6513 GDB_DATADIR
=$withval
6515 GDB_DATADIR
=${datadir}/gdb
6519 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6520 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6521 ac_define_dir
=`eval echo $GDB_DATADIR`
6522 ac_define_dir
=`eval echo $ac_define_dir`
6524 cat >>confdefs.h
<<_ACEOF
6525 #define GDB_DATADIR "$ac_define_dir"
6531 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6532 if test "x$prefix" = xNONE
; then
6533 test_prefix
=/usr
/local
6538 test_prefix
=$exec_prefix
6541 case ${ac_define_dir} in
6542 "${test_prefix}"|
"${test_prefix}/"*|\
6543 '${exec_prefix}'|
'${exec_prefix}/'*)
6548 cat >>confdefs.h
<<_ACEOF
6549 #define GDB_DATADIR_RELOCATABLE $value
6556 # Check whether --with-relocated-sources was given.
6557 if test "${with_relocated_sources+set}" = set; then :
6558 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
6560 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6561 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6562 ac_define_dir
=`eval echo $reloc_srcdir`
6563 ac_define_dir
=`eval echo $ac_define_dir`
6565 cat >>confdefs.h
<<_ACEOF
6566 #define RELOC_SRCDIR "$ac_define_dir"
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
6575 $as_echo_n "checking for default auto-load directory... " >&6; }
6577 # Check whether --with-auto-load-dir was given.
6578 if test "${with_auto_load_dir+set}" = set; then :
6579 withval
=$with_auto_load_dir;
6581 with_auto_load_dir
='$debugdir:$datadir/auto-load'
6584 escape_dir
=`echo $with_auto_load_dir | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6586 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6587 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6588 ac_define_dir
=`eval echo $escape_dir`
6589 ac_define_dir
=`eval echo $ac_define_dir`
6591 cat >>confdefs.h
<<_ACEOF
6592 #define AUTO_LOAD_DIR "$ac_define_dir"
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
6597 $as_echo "$with_auto_load_dir" >&6; }
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
6600 $as_echo_n "checking for default auto-load safe-path... " >&6; }
6602 # Check whether --with-auto-load-safe-path was given.
6603 if test "${with_auto_load_safe_path+set}" = set; then :
6604 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
6605 with_auto_load_safe_path
="/"
6608 with_auto_load_safe_path
="$with_auto_load_dir"
6611 escape_dir
=`echo $with_auto_load_safe_path | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6613 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6614 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6615 ac_define_dir
=`eval echo $escape_dir`
6616 ac_define_dir
=`eval echo $ac_define_dir`
6618 cat >>confdefs.h
<<_ACEOF
6619 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
6624 $as_echo "$with_auto_load_safe_path" >&6; }
6626 # Enable shared libraries.
6627 # Check whether --enable-shared was given.
6628 if test "${enable_shared+set}" = set; then :
6629 enableval
=$enable_shared;
6635 # If we have shared libraries, try to set RPATH_ENVVAR reasonably,
6636 # such that we can find the shared libraries in the build tree.
6637 if test $enable_shared = no
; then
6638 # The variable `RPATH_ENVVAR' itself is not likely to be used on any
6640 RPATH_ENVVAR
=RPATH_ENVVAR
6642 # The variable `LD_LIBRARY_PATH' is used on most platforms.
6643 RPATH_ENVVAR
=LD_LIBRARY_PATH
6644 # The following exceptions are taken from Libtool 1.4.3.
6647 if test $host_cpu != ia64
; then
6648 RPATH_ENVVAR
=LIBPATH
6650 darwin
* | rhapsody
*)
6651 RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
6656 # Check whether to support alternative target configurations
6657 # Check whether --enable-targets was given.
6658 if test "${enable_targets+set}" = set; then :
6659 enableval
=$enable_targets; case "${enableval}" in
6660 yes |
"") as_fn_error $?
"enable-targets option must specify target names or 'all'" "$LINENO" 5
6662 no
) enable_targets
= ;;
6663 *) enable_targets
=$enableval ;;
6668 # Check whether to enable 64-bit support on 32-bit hosts
6669 # Check whether --enable-64-bit-bfd was given.
6670 if test "${enable_64_bit_bfd+set}" = set; then :
6671 enableval
=$enable_64_bit_bfd; case "${enableval}" in
6674 *) as_fn_error $?
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
6680 # Provide defaults for some variables set by the per-host and per-target
6682 gdb_host_obs
=posix-hdep.o
6684 if test "${target}" = "${host}"; then
6690 .
$srcdir/configure.
host
6692 # Accumulate some settings from configure.tgt over all enabled targets
6696 HAVE_NATIVE_GCORE_TARGET
=
6698 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6700 if test "$targ_alias" = "all"; then
6703 # Canonicalize the secondary target names.
6704 result
=`$ac_config_sub $targ_alias 2>/dev/null`
6705 if test -n "$result"; then
6711 .
${srcdir}/configure.tgt
6713 if test -z "${gdb_target_obs}"; then :
6714 as_fn_error $?
"configuration ${targ} is unsupported." "$LINENO" 5
6717 # Target-specific object files
6718 for i
in ${gdb_target_obs}; do
6719 case " $TARGET_OBS " in
6722 TARGET_OBS
="$TARGET_OBS ${i}"
6727 # Check whether this target needs 64-bit CORE_ADDR
6728 if test x
${want64} = xfalse
; then
6729 .
${srcdir}/..
/bfd
/config.bfd
6732 # Check whether this target is native and supports gcore.
6733 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
6734 && $gdb_have_gcore; then
6735 HAVE_NATIVE_GCORE_TARGET
=1
6740 if test x
${all_targets} = xtrue
; then
6742 # We want all 64-bit targets if we either:
6743 # - run on a 64-bit host or
6744 # - already require 64-bit support for some other target or
6745 # - the --enable-64-bit-bfd option was supplied
6746 # Otherwise we only support all 32-bit targets.
6748 # NOTE: This test must be in sync with the corresponding
6751 if test x
${want64} = xfalse
; then
6752 # The cast to long int works around a bug in the HP C Compiler
6753 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6754 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6755 # This bug is HP SR number 8606223364.
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6757 $as_echo_n "checking size of long... " >&6; }
6758 if ${ac_cv_sizeof_long+:} false
; then :
6759 $as_echo_n "(cached) " >&6
6761 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6764 if test "$ac_cv_type_long" = yes; then
6765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6767 as_fn_error
77 "cannot compute sizeof (long)
6768 See \`config.log' for more details" "$LINENO" 5; }
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6776 $as_echo "$ac_cv_sizeof_long" >&6; }
6780 cat >>confdefs.h
<<_ACEOF
6781 #define SIZEOF_LONG $ac_cv_sizeof_long
6785 if test "x${ac_cv_sizeof_long}" = "x8"; then
6789 if test x
${want64} = xtrue
; then
6790 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
6792 TARGET_OBS
='$(ALL_TARGET_OBS)'
6799 # For other settings, only the main target counts.
6802 targ
=$target; .
${srcdir}/configure.tgt
6804 # Fetch the default architecture and default target vector from BFD.
6805 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
6807 # We only want the first architecture, so strip off the others if
6808 # there is more than one.
6809 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
6811 if test "x$targ_archs" != x
; then
6813 cat >>confdefs.h
<<_ACEOF
6814 #define DEFAULT_BFD_ARCH $targ_archs
6818 if test "x$targ_defvec" != x
; then
6820 cat >>confdefs.h
<<_ACEOF
6821 #define DEFAULT_BFD_VEC $targ_defvec
6827 # Check whether --enable-gdbmi was given.
6828 if test "${enable_gdbmi+set}" = set; then :
6829 enableval
=$enable_gdbmi; case $enableval in
6833 as_fn_error $?
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
6839 if test x
"$enable_gdbmi" = xyes
; then
6840 if test -d "$srcdir/mi"; then
6841 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6842 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6843 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6844 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6849 # Check whether --enable-tui was given.
6850 if test "${enable_tui+set}" = set; then :
6851 enableval
=$enable_tui; case $enableval in
6855 as_fn_error $?
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
6863 # Check whether --enable-gdbtk was given.
6864 if test "${enable_gdbtk+set}" = set; then :
6865 enableval
=$enable_gdbtk; case $enableval in
6869 as_fn_error $?
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
6872 if test -d "$srcdir/gdbtk"; then
6879 # We unconditionally disable gdbtk tests on selected platforms.
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
6883 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6887 # Handle optional debuginfod support
6895 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6896 if test -n "$ac_tool_prefix"; then
6897 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6898 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6900 $as_echo_n "checking for $ac_word... " >&6; }
6901 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
6902 $as_echo_n "(cached) " >&6
6906 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6909 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6913 test -z "$as_dir" && as_dir
=.
6914 for ac_exec_ext
in '' $ac_executable_extensions; do
6915 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6916 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6927 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6928 if test -n "$PKG_CONFIG"; then
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6930 $as_echo "$PKG_CONFIG" >&6; }
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933 $as_echo "no" >&6; }
6938 if test -z "$ac_cv_path_PKG_CONFIG"; then
6939 ac_pt_PKG_CONFIG
=$PKG_CONFIG
6940 # Extract the first word of "pkg-config", so it can be a program name with args.
6941 set dummy pkg-config
; ac_word
=$2
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6943 $as_echo_n "checking for $ac_word... " >&6; }
6944 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
6945 $as_echo_n "(cached) " >&6
6947 case $ac_pt_PKG_CONFIG in
6949 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6952 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6956 test -z "$as_dir" && as_dir
=.
6957 for ac_exec_ext
in '' $ac_executable_extensions; do
6958 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6959 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6970 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
6971 if test -n "$ac_pt_PKG_CONFIG"; then
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6973 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6976 $as_echo "no" >&6; }
6979 if test "x$ac_pt_PKG_CONFIG" = x
; then
6982 case $cross_compiling:$ac_tool_warned in
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6986 ac_tool_warned
=yes ;;
6988 PKG_CONFIG
=$ac_pt_PKG_CONFIG
6991 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
6995 if test -n "$PKG_CONFIG"; then
6996 _pkg_min_version
=0.9.0
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6998 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6999 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7001 $as_echo "yes" >&6; }
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7004 $as_echo "no" >&6; }
7009 # Handle optional debuginfod support
7011 # Check whether --with-debuginfod was given.
7012 if test "${with_debuginfod+set}" = set; then :
7013 withval
=$with_debuginfod;
7015 with_debuginfod
=auto
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
7019 $as_echo_n "checking whether to use debuginfod... " >&6; }
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
7021 $as_echo "$with_debuginfod" >&6; }
7023 if test "x$with_debuginfod" != xno
; then
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
7027 $as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
7029 if test -n "$DEBUGINFOD_CFLAGS"; then
7030 pkg_cv_DEBUGINFOD_CFLAGS
="$DEBUGINFOD_CFLAGS"
7031 elif test -n "$PKG_CONFIG"; then
7032 if test -n "$PKG_CONFIG" && \
7033 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
7034 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
7036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7037 test $ac_status = 0; }; then
7038 pkg_cv_DEBUGINFOD_CFLAGS
=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
7039 test "x$?" != "x0" && pkg_failed
=yes
7046 if test -n "$DEBUGINFOD_LIBS"; then
7047 pkg_cv_DEBUGINFOD_LIBS
="$DEBUGINFOD_LIBS"
7048 elif test -n "$PKG_CONFIG"; then
7049 if test -n "$PKG_CONFIG" && \
7050 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
7051 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
7053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7054 test $ac_status = 0; }; then
7055 pkg_cv_DEBUGINFOD_LIBS
=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
7056 test "x$?" != "x0" && pkg_failed
=yes
7064 if test $pkg_failed = no
; then
7065 pkg_save_LDFLAGS
="$LDFLAGS"
7066 LDFLAGS
="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
7067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7068 /* end confdefs.h. */
7078 if ac_fn_c_try_link
"$LINENO"; then :
7083 rm -f core conftest.err conftest.
$ac_objext \
7084 conftest
$ac_exeext conftest.
$ac_ext
7085 LDFLAGS
=$pkg_save_LDFLAGS
7090 if test $pkg_failed = yes; then
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7092 $as_echo "no" >&6; }
7094 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7095 _pkg_short_errors_supported
=yes
7097 _pkg_short_errors_supported
=no
7099 if test $_pkg_short_errors_supported = yes; then
7100 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
7102 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
7104 # Put the nasty error message in config.log where it belongs
7105 echo "$DEBUGINFOD_PKG_ERRORS" >&5
7107 if test "x$with_debuginfod" = xyes
; then
7108 as_fn_error $?
"\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
7111 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
7113 elif test $pkg_failed = untried
; then
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7115 $as_echo "no" >&6; }
7116 if test "x$with_debuginfod" = xyes
; then
7117 as_fn_error $?
"\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
7120 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
7123 DEBUGINFOD_CFLAGS
=$pkg_cv_DEBUGINFOD_CFLAGS
7124 DEBUGINFOD_LIBS
=$pkg_cv_DEBUGINFOD_LIBS
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7126 $as_echo "yes" >&6; }
7128 $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
7133 $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
7137 # Libunwind support for ia64.
7139 # Check whether --with-libunwind-ia64 was given.
7140 if test "${with_libunwind_ia64+set}" = set; then :
7141 withval
=$with_libunwind_ia64;
7143 with_libunwind_ia64
=auto
7147 # Backward compatibility option.
7148 if test "${with_libunwind+set}" = set; then
7149 if test x
"$with_libunwind_ia64" != xauto
; then
7150 as_fn_error $?
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
7153 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
7154 with_libunwind_ia64
="$with_libunwind"
7157 case "$with_libunwind_ia64" in
7161 for ac_header
in libunwind-ia64.h
7163 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
7164 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
7165 cat >>confdefs.h
<<_ACEOF
7166 #define HAVE_LIBUNWIND_IA64_H 1
7173 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
7176 as_fn_error $?
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
7180 if test x
"$with_libunwind_ia64" = xyes
; then
7181 for ac_header
in libunwind-ia64.h
7183 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
7184 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
7185 cat >>confdefs.h
<<_ACEOF
7186 #define HAVE_LIBUNWIND_IA64_H 1
7193 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
7194 as_fn_error $?
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
7196 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
7197 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
7198 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
7203 # Check whether --with-curses was given.
7204 if test "${with_curses+set}" = set; then :
7205 withval
=$with_curses; opt_curses
=$withval
7210 if test "$opt_curses" = "yes"; then
7214 # Profiling support.
7215 # Check whether --enable-profiling was given.
7216 if test "${enable_profiling+set}" = set; then :
7217 enableval
=$enable_profiling; case $enableval in
7221 as_fn_error $?
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
7228 for ac_func
in monstartup _mcleanup
7230 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7231 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7232 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7233 cat >>confdefs.h
<<_ACEOF
7234 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
7241 $as_echo_n "checking for _etext... " >&6; }
7242 if ${ac_cv_var__etext+:} false
; then :
7243 $as_echo_n "(cached) " >&6
7245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7246 /* end confdefs.h. */
7258 if ac_fn_c_try_link
"$LINENO"; then :
7259 ac_cv_var__etext
=yes
7264 rm -f core conftest.err conftest.
$ac_objext \
7265 conftest
$ac_exeext conftest.
$ac_ext
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
7269 $as_echo "$ac_cv_var__etext" >&6; }
7270 if test "$ac_cv_var__etext" = yes; then
7272 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
7276 $as_echo_n "checking for etext... " >&6; }
7277 if ${ac_cv_var_etext+:} false
; then :
7278 $as_echo_n "(cached) " >&6
7280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7281 /* end confdefs.h. */
7293 if ac_fn_c_try_link
"$LINENO"; then :
7299 rm -f core conftest.err conftest.
$ac_objext \
7300 conftest
$ac_exeext conftest.
$ac_ext
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
7304 $as_echo "$ac_cv_var_etext" >&6; }
7305 if test "$ac_cv_var_etext" = yes; then
7307 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
7310 if test "$enable_profiling" = yes ; then
7311 if test "$ac_cv_func_monstartup" = no ||
test "$ac_cv_func__mcleanup" = no
; then
7312 as_fn_error $?
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
7315 OLD_CFLAGS
="$CFLAGS"
7316 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
7319 $as_echo_n "checking whether $CC supports -pg... " >&6; }
7320 if ${ac_cv_cc_supports_pg+:} false
; then :
7321 $as_echo_n "(cached) " >&6
7323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7324 /* end confdefs.h. */
7334 if ac_fn_c_try_compile
"$LINENO"; then :
7335 ac_cv_cc_supports_pg
=yes
7337 ac_cv_cc_supports_pg
=no
7340 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
7344 $as_echo "$ac_cv_cc_supports_pg" >&6; }
7346 if test "$ac_cv_cc_supports_pg" = no
; then
7347 as_fn_error $?
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
7350 CFLAGS
="$OLD_CFLAGS"
7354 # Check whether --enable-codesign was given.
7355 if test "${enable_codesign+set}" = set; then :
7356 enableval
=$enable_codesign; CODESIGN_CERT
=$enableval
7363 # Check whether --with-pkgversion was given.
7364 if test "${with_pkgversion+set}" = set; then :
7365 withval
=$with_pkgversion; case "$withval" in
7366 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
7368 *) PKGVERSION
="($withval) " ;;
7379 # Check whether --with-bugurl was given.
7380 if test "${with_bugurl+set}" = set; then :
7381 withval
=$with_bugurl; case "$withval" in
7382 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
7385 *) BUGURL
="$withval"
7389 BUGURL
="https://www.gnu.org/software/gdb/bugs/"
7399 REPORT_BUGS_TO
="<$BUGURL>"
7400 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7407 cat >>confdefs.h
<<_ACEOF
7408 #define PKGVERSION "$PKGVERSION"
7412 cat >>confdefs.h
<<_ACEOF
7413 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7417 # --------------------- #
7418 # Checks for programs. #
7419 # --------------------- #
7421 for ac_prog
in gawk mawk nawk
awk
7423 # Extract the first word of "$ac_prog", so it can be a program name with args.
7424 set dummy
$ac_prog; ac_word
=$2
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7426 $as_echo_n "checking for $ac_word... " >&6; }
7427 if ${ac_cv_prog_AWK+:} false
; then :
7428 $as_echo_n "(cached) " >&6
7430 if test -n "$AWK"; then
7431 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7433 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7437 test -z "$as_dir" && as_dir
=.
7438 for ac_exec_ext
in '' $ac_executable_extensions; do
7439 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7440 ac_cv_prog_AWK
="$ac_prog"
7441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7451 if test -n "$AWK"; then
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7453 $as_echo "$AWK" >&6; }
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7456 $as_echo "no" >&6; }
7460 test -n "$AWK" && break
7463 # Find a good install program. We prefer a C program (faster),
7464 # so one script is as good as another. But avoid the broken or
7465 # incompatible versions:
7466 # SysV /etc/install, /usr/sbin/install
7467 # SunOS /usr/etc/install
7468 # IRIX /sbin/install
7470 # AmigaOS /C/install, which installs bootblocks on floppy discs
7471 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7472 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7473 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7474 # OS/2's system install, which has a completely different semantic
7475 # ./install, which can be erroneously created by make from ./install.sh.
7476 # Reject install programs that cannot install multiple files.
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7478 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7479 if test -z "$INSTALL"; then
7480 if ${ac_cv_path_install+:} false
; then :
7481 $as_echo_n "(cached) " >&6
7483 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7487 test -z "$as_dir" && as_dir
=.
7488 # Account for people who put trailing slashes in PATH elements.
7489 case $as_dir/ in #((
7490 .
/ | .
// |
/[cC
]/* | \
7491 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7492 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
7495 # OSF1 and SCO ODT 3.0 have their own names for install.
7496 # Don't use installbsd from OSF since it installs stuff as root
7498 for ac_prog
in ginstall scoinst
install; do
7499 for ac_exec_ext
in '' $ac_executable_extensions; do
7500 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
7501 if test $ac_prog = install &&
7502 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7503 # AIX install. It has an incompatible calling convention.
7505 elif test $ac_prog = install &&
7506 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7507 # program-specific install script used by HP pwplus--don't use.
7510 rm -rf conftest.one conftest.two conftest.dir
7511 echo one
> conftest.one
7512 echo two
> conftest.two
7514 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
7515 test -s conftest.one
&& test -s conftest.two
&&
7516 test -s conftest.dir
/conftest.one
&&
7517 test -s conftest.dir
/conftest.two
7519 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7532 rm -rf conftest.one conftest.two conftest.dir
7535 if test "${ac_cv_path_install+set}" = set; then
7536 INSTALL
=$ac_cv_path_install
7538 # As a last resort, use the slow shell script. Don't cache a
7539 # value for INSTALL within a source directory, because that will
7540 # break other packages using the cache if that directory is
7541 # removed, or if the value is a relative name.
7542 INSTALL
=$ac_install_sh
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7546 $as_echo "$INSTALL" >&6; }
7548 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7549 # It thinks the first close brace ends the variable substitution.
7550 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7552 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7554 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7557 $as_echo_n "checking whether ln -s works... " >&6; }
7559 if test "$LN_S" = "ln -s"; then
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7561 $as_echo "yes" >&6; }
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7564 $as_echo "no, using $LN_S" >&6; }
7567 if test -n "$ac_tool_prefix"; then
7568 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7569 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7571 $as_echo_n "checking for $ac_word... " >&6; }
7572 if ${ac_cv_prog_RANLIB+:} false
; then :
7573 $as_echo_n "(cached) " >&6
7575 if test -n "$RANLIB"; then
7576 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7578 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7582 test -z "$as_dir" && as_dir
=.
7583 for ac_exec_ext
in '' $ac_executable_extensions; do
7584 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7585 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7595 RANLIB
=$ac_cv_prog_RANLIB
7596 if test -n "$RANLIB"; then
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7598 $as_echo "$RANLIB" >&6; }
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7601 $as_echo "no" >&6; }
7606 if test -z "$ac_cv_prog_RANLIB"; then
7607 ac_ct_RANLIB
=$RANLIB
7608 # Extract the first word of "ranlib", so it can be a program name with args.
7609 set dummy ranlib
; ac_word
=$2
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7611 $as_echo_n "checking for $ac_word... " >&6; }
7612 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
7613 $as_echo_n "(cached) " >&6
7615 if test -n "$ac_ct_RANLIB"; then
7616 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7618 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7622 test -z "$as_dir" && as_dir
=.
7623 for ac_exec_ext
in '' $ac_executable_extensions; do
7624 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7625 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7635 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7636 if test -n "$ac_ct_RANLIB"; then
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7638 $as_echo "$ac_ct_RANLIB" >&6; }
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7641 $as_echo "no" >&6; }
7644 if test "x$ac_ct_RANLIB" = x
; then
7647 case $cross_compiling:$ac_tool_warned in
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7651 ac_tool_warned
=yes ;;
7653 RANLIB
=$ac_ct_RANLIB
7656 RANLIB
="$ac_cv_prog_RANLIB"
7659 for ac_prog
in 'bison -y' byacc
7661 # Extract the first word of "$ac_prog", so it can be a program name with args.
7662 set dummy
$ac_prog; ac_word
=$2
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7664 $as_echo_n "checking for $ac_word... " >&6; }
7665 if ${ac_cv_prog_YACC+:} false
; then :
7666 $as_echo_n "(cached) " >&6
7668 if test -n "$YACC"; then
7669 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
7671 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7675 test -z "$as_dir" && as_dir
=.
7676 for ac_exec_ext
in '' $ac_executable_extensions; do
7677 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7678 ac_cv_prog_YACC
="$ac_prog"
7679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7688 YACC
=$ac_cv_prog_YACC
7689 if test -n "$YACC"; then
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7691 $as_echo "$YACC" >&6; }
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7694 $as_echo "no" >&6; }
7698 test -n "$YACC" && break
7700 test -n "$YACC" || YACC
="yacc"
7703 if test -n "$ac_tool_prefix"; then
7704 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7705 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7707 $as_echo_n "checking for $ac_word... " >&6; }
7708 if ${ac_cv_prog_AR+:} false
; then :
7709 $as_echo_n "(cached) " >&6
7711 if test -n "$AR"; then
7712 ac_cv_prog_AR
="$AR" # Let the user override the test.
7714 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7718 test -z "$as_dir" && as_dir
=.
7719 for ac_exec_ext
in '' $ac_executable_extensions; do
7720 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7721 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7732 if test -n "$AR"; then
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7734 $as_echo "$AR" >&6; }
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7737 $as_echo "no" >&6; }
7742 if test -z "$ac_cv_prog_AR"; then
7744 # Extract the first word of "ar", so it can be a program name with args.
7745 set dummy
ar; ac_word
=$2
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7747 $as_echo_n "checking for $ac_word... " >&6; }
7748 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
7749 $as_echo_n "(cached) " >&6
7751 if test -n "$ac_ct_AR"; then
7752 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7754 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7758 test -z "$as_dir" && as_dir
=.
7759 for ac_exec_ext
in '' $ac_executable_extensions; do
7760 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7761 ac_cv_prog_ac_ct_AR
="ar"
7762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7771 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7772 if test -n "$ac_ct_AR"; then
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7774 $as_echo "$ac_ct_AR" >&6; }
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7777 $as_echo "no" >&6; }
7780 if test "x$ac_ct_AR" = x
; then
7783 case $cross_compiling:$ac_tool_warned in
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7787 ac_tool_warned
=yes ;;
7795 if test -n "$ac_tool_prefix"; then
7796 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7797 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7799 $as_echo_n "checking for $ac_word... " >&6; }
7800 if ${ac_cv_prog_DLLTOOL+:} false
; then :
7801 $as_echo_n "(cached) " >&6
7803 if test -n "$DLLTOOL"; then
7804 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
7806 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7810 test -z "$as_dir" && as_dir
=.
7811 for ac_exec_ext
in '' $ac_executable_extensions; do
7812 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7813 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
7814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7823 DLLTOOL
=$ac_cv_prog_DLLTOOL
7824 if test -n "$DLLTOOL"; then
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7826 $as_echo "$DLLTOOL" >&6; }
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7829 $as_echo "no" >&6; }
7834 if test -z "$ac_cv_prog_DLLTOOL"; then
7835 ac_ct_DLLTOOL
=$DLLTOOL
7836 # Extract the first word of "dlltool", so it can be a program name with args.
7837 set dummy dlltool
; ac_word
=$2
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7839 $as_echo_n "checking for $ac_word... " >&6; }
7840 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
7841 $as_echo_n "(cached) " >&6
7843 if test -n "$ac_ct_DLLTOOL"; then
7844 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
7846 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7850 test -z "$as_dir" && as_dir
=.
7851 for ac_exec_ext
in '' $ac_executable_extensions; do
7852 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7853 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
7854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7863 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
7864 if test -n "$ac_ct_DLLTOOL"; then
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7866 $as_echo "$ac_ct_DLLTOOL" >&6; }
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869 $as_echo "no" >&6; }
7872 if test "x$ac_ct_DLLTOOL" = x
; then
7875 case $cross_compiling:$ac_tool_warned in
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7879 ac_tool_warned
=yes ;;
7881 DLLTOOL
=$ac_ct_DLLTOOL
7884 DLLTOOL
="$ac_cv_prog_DLLTOOL"
7887 if test -n "$ac_tool_prefix"; then
7888 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7889 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7891 $as_echo_n "checking for $ac_word... " >&6; }
7892 if ${ac_cv_prog_WINDRES+:} false
; then :
7893 $as_echo_n "(cached) " >&6
7895 if test -n "$WINDRES"; then
7896 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
7898 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7902 test -z "$as_dir" && as_dir
=.
7903 for ac_exec_ext
in '' $ac_executable_extensions; do
7904 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7905 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
7906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7915 WINDRES
=$ac_cv_prog_WINDRES
7916 if test -n "$WINDRES"; then
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7918 $as_echo "$WINDRES" >&6; }
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7921 $as_echo "no" >&6; }
7926 if test -z "$ac_cv_prog_WINDRES"; then
7927 ac_ct_WINDRES
=$WINDRES
7928 # Extract the first word of "windres", so it can be a program name with args.
7929 set dummy windres
; ac_word
=$2
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7931 $as_echo_n "checking for $ac_word... " >&6; }
7932 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
7933 $as_echo_n "(cached) " >&6
7935 if test -n "$ac_ct_WINDRES"; then
7936 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
7938 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7942 test -z "$as_dir" && as_dir
=.
7943 for ac_exec_ext
in '' $ac_executable_extensions; do
7944 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7945 ac_cv_prog_ac_ct_WINDRES
="windres"
7946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7955 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
7956 if test -n "$ac_ct_WINDRES"; then
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7958 $as_echo "$ac_ct_WINDRES" >&6; }
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7961 $as_echo "no" >&6; }
7964 if test "x$ac_ct_WINDRES" = x
; then
7967 case $cross_compiling:$ac_tool_warned in
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7971 ac_tool_warned
=yes ;;
7973 WINDRES
=$ac_ct_WINDRES
7976 WINDRES
="$ac_cv_prog_WINDRES"
7982 # Needed for GNU Hurd hosts.
7983 if test -n "$ac_tool_prefix"; then
7984 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7985 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7987 $as_echo_n "checking for $ac_word... " >&6; }
7988 if ${ac_cv_prog_MIG+:} false
; then :
7989 $as_echo_n "(cached) " >&6
7991 if test -n "$MIG"; then
7992 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
7994 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7998 test -z "$as_dir" && as_dir
=.
7999 for ac_exec_ext
in '' $ac_executable_extensions; do
8000 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8001 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
8002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8012 if test -n "$MIG"; then
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
8014 $as_echo "$MIG" >&6; }
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8017 $as_echo "no" >&6; }
8022 if test -z "$ac_cv_prog_MIG"; then
8024 # Extract the first word of "mig", so it can be a program name with args.
8025 set dummy mig
; ac_word
=$2
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8027 $as_echo_n "checking for $ac_word... " >&6; }
8028 if ${ac_cv_prog_ac_ct_MIG+:} false
; then :
8029 $as_echo_n "(cached) " >&6
8031 if test -n "$ac_ct_MIG"; then
8032 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
8034 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8038 test -z "$as_dir" && as_dir
=.
8039 for ac_exec_ext
in '' $ac_executable_extensions; do
8040 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8041 ac_cv_prog_ac_ct_MIG
="mig"
8042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8051 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
8052 if test -n "$ac_ct_MIG"; then
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
8054 $as_echo "$ac_ct_MIG" >&6; }
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8057 $as_echo "no" >&6; }
8060 if test "x$ac_ct_MIG" = x
; then
8063 case $cross_compiling:$ac_tool_warned in
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8067 ac_tool_warned
=yes ;;
8072 MIG
="$ac_cv_prog_MIG"
8075 if test x
"$MIG" = x
; then
8076 as_fn_error $?
"MIG not found but required for $host hosts" "$LINENO" 5
8081 # ---------------------- #
8082 # Checks for libraries. #
8083 # ---------------------- #
8085 # We might need to link with -lm; most simulators need it.
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
8087 $as_echo_n "checking for main in -lm... " >&6; }
8088 if ${ac_cv_lib_m_main+:} false
; then :
8089 $as_echo_n "(cached) " >&6
8091 ac_check_lib_save_LIBS
=$LIBS
8093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8094 /* end confdefs.h. */
8105 if ac_fn_c_try_link
"$LINENO"; then :
8106 ac_cv_lib_m_main
=yes
8110 rm -f core conftest.err conftest.
$ac_objext \
8111 conftest
$ac_exeext conftest.
$ac_ext
8112 LIBS
=$ac_check_lib_save_LIBS
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
8115 $as_echo "$ac_cv_lib_m_main" >&6; }
8116 if test "x$ac_cv_lib_m_main" = xyes
; then :
8117 cat >>confdefs.h
<<_ACEOF
8126 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
8128 $as_echo_n "checking for library containing gethostbyname... " >&6; }
8129 if ${ac_cv_search_gethostbyname+:} false
; then :
8130 $as_echo_n "(cached) " >&6
8132 ac_func_search_save_LIBS
=$LIBS
8133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8134 /* end confdefs.h. */
8136 /* Override any GCC internal prototype to avoid an error.
8137 Use char because int might match the return type of a GCC
8138 builtin and then its argument prototype would still apply. */
8142 char gethostbyname ();
8146 return gethostbyname ();
8151 for ac_lib
in '' nsl
; do
8152 if test -z "$ac_lib"; then
8153 ac_res
="none required"
8156 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8158 if ac_fn_c_try_link
"$LINENO"; then :
8159 ac_cv_search_gethostbyname
=$ac_res
8161 rm -f core conftest.err conftest.
$ac_objext \
8163 if ${ac_cv_search_gethostbyname+:} false
; then :
8167 if ${ac_cv_search_gethostbyname+:} false
; then :
8170 ac_cv_search_gethostbyname
=no
8173 LIBS
=$ac_func_search_save_LIBS
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
8176 $as_echo "$ac_cv_search_gethostbyname" >&6; }
8177 ac_res
=$ac_cv_search_gethostbyname
8178 if test "$ac_res" != no
; then :
8179 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8184 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
8186 $as_echo_n "checking for library containing socketpair... " >&6; }
8187 if ${ac_cv_search_socketpair+:} false
; then :
8188 $as_echo_n "(cached) " >&6
8190 ac_func_search_save_LIBS
=$LIBS
8191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8192 /* end confdefs.h. */
8194 /* Override any GCC internal prototype to avoid an error.
8195 Use char because int might match the return type of a GCC
8196 builtin and then its argument prototype would still apply. */
8204 return socketpair ();
8209 for ac_lib
in '' socket
; do
8210 if test -z "$ac_lib"; then
8211 ac_res
="none required"
8214 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8216 if ac_fn_c_try_link
"$LINENO"; then :
8217 ac_cv_search_socketpair
=$ac_res
8219 rm -f core conftest.err conftest.
$ac_objext \
8221 if ${ac_cv_search_socketpair+:} false
; then :
8225 if ${ac_cv_search_socketpair+:} false
; then :
8228 ac_cv_search_socketpair
=no
8231 LIBS
=$ac_func_search_save_LIBS
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
8234 $as_echo "$ac_cv_search_socketpair" >&6; }
8235 ac_res
=$ac_cv_search_socketpair
8236 if test "$ac_res" != no
; then :
8237 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8242 # Link in zlib if we can. This allows us to read compressed debug sections.
8244 # Use the system's zlib library.
8245 zlibdir
="-L\$(top_builddir)/../zlib"
8246 zlibinc
="-I\$(top_srcdir)/../zlib"
8248 # Check whether --with-system-zlib was given.
8249 if test "${with_system_zlib+set}" = set; then :
8250 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
8262 if test "X$prefix" = "XNONE"; then
8263 acl_final_prefix
="$ac_default_prefix"
8265 acl_final_prefix
="$prefix"
8267 if test "X$exec_prefix" = "XNONE"; then
8268 acl_final_exec_prefix
='${prefix}'
8270 acl_final_exec_prefix
="$exec_prefix"
8272 acl_save_prefix
="$prefix"
8273 prefix
="$acl_final_prefix"
8274 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8275 prefix
="$acl_save_prefix"
8278 # Check whether --with-gnu-ld was given.
8279 if test "${with_gnu_ld+set}" = set; then :
8280 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8285 # Prepare PATH_SEPARATOR.
8286 # The user is always right.
8287 if test "${PATH_SEPARATOR+set}" != set; then
8288 echo "#! /bin/sh" >conf$$.sh
8289 echo "exit 0" >>conf$$.sh
8291 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8299 if test "$GCC" = yes; then
8300 # Check if gcc -print-prog-name=ld gives a path.
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8302 $as_echo_n "checking for ld used by GCC... " >&6; }
8305 # gcc leaves a trailing carriage return which upsets mingw
8306 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8308 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8311 # Accept absolute paths.
8312 [\\/]* |
[A-Za-z
]:[\\/]*)
8313 re_direlt
='/[^/][^/]*/\.\./'
8314 # Canonicalize the path of ld
8315 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8316 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8317 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8319 test -z "$LD" && LD
="$ac_prog"
8322 # If it fails, then pretend we aren't using GCC.
8326 # If it is relative, then search for the first ld in PATH.
8330 elif test "$with_gnu_ld" = yes; then
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8332 $as_echo_n "checking for GNU ld... " >&6; }
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8335 $as_echo_n "checking for non-GNU ld... " >&6; }
8337 if ${acl_cv_path_LD+:} false
; then :
8338 $as_echo_n "(cached) " >&6
8340 if test -z "$LD"; then
8341 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8342 for ac_dir
in $PATH; do
8343 test -z "$ac_dir" && ac_dir
=.
8344 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8345 acl_cv_path_LD
="$ac_dir/$ac_prog"
8346 # Check to see if the program is GNU ld. I'd rather use --version,
8347 # but apparently some GNU ld's only accept -v.
8348 # Break only if it was the GNU/non-GNU ld that we prefer.
8349 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
8350 test "$with_gnu_ld" != no
&& break
8352 test "$with_gnu_ld" != yes && break
8358 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8362 LD
="$acl_cv_path_LD"
8363 if test -n "$LD"; then
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8365 $as_echo "$LD" >&6; }
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8368 $as_echo "no" >&6; }
8370 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8372 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8373 if ${acl_cv_prog_gnu_ld+:} false
; then :
8374 $as_echo_n "(cached) " >&6
8376 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8377 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8378 acl_cv_prog_gnu_ld
=yes
8380 acl_cv_prog_gnu_ld
=no
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8384 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8385 with_gnu_ld
=$acl_cv_prog_gnu_ld
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8390 $as_echo_n "checking for shared library run path origin... " >&6; }
8391 if ${acl_cv_rpath+:} false
; then :
8392 $as_echo_n "(cached) " >&6
8395 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8396 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8403 $as_echo "$acl_cv_rpath" >&6; }
8405 libext
="$acl_cv_libext"
8406 shlibext
="$acl_cv_shlibext"
8407 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8408 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8409 hardcode_direct
="$acl_cv_hardcode_direct"
8410 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8411 # Check whether --enable-rpath was given.
8412 if test "${enable_rpath+set}" = set; then :
8413 enableval
=$enable_rpath; :
8427 acl_save_prefix
="$prefix"
8428 prefix
="$acl_final_prefix"
8429 acl_save_exec_prefix
="$exec_prefix"
8430 exec_prefix
="$acl_final_exec_prefix"
8432 eval additional_includedir
=\"$includedir\"
8433 eval additional_libdir
=\"$libdir\"
8435 exec_prefix
="$acl_save_exec_prefix"
8436 prefix
="$acl_save_prefix"
8439 # Check whether --with-libiconv-prefix was given.
8440 if test "${with_libiconv_prefix+set}" = set; then :
8441 withval
=$with_libiconv_prefix;
8442 if test "X$withval" = "Xno"; then
8445 if test "X$withval" = "X"; then
8447 acl_save_prefix
="$prefix"
8448 prefix
="$acl_final_prefix"
8449 acl_save_exec_prefix
="$exec_prefix"
8450 exec_prefix
="$acl_final_exec_prefix"
8452 eval additional_includedir
=\"$includedir\"
8453 eval additional_libdir
=\"$libdir\"
8455 exec_prefix
="$acl_save_exec_prefix"
8456 prefix
="$acl_save_prefix"
8459 additional_includedir
="$withval/include"
8460 additional_libdir
="$withval/lib"
8467 # Check whether --with-libiconv-type was given.
8468 if test "${with_libiconv_type+set}" = set; then :
8469 withval
=$with_libiconv_type; with_libiconv_type
=$withval
8471 with_libiconv_type
=auto
8474 lib_type
=`eval echo \$with_libiconv_type`
8481 names_already_handled
=
8482 names_next_round
='iconv '
8483 while test -n "$names_next_round"; do
8484 names_this_round
="$names_next_round"
8486 for name
in $names_this_round; do
8488 for n
in $names_already_handled; do
8489 if test "$n" = "$name"; then
8494 if test -z "$already_handled"; then
8495 names_already_handled
="$names_already_handled $name"
8496 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8497 eval value
=\"\
$HAVE_LIB$uppername\"
8498 if test -n "$value"; then
8499 if test "$value" = yes; then
8500 eval value
=\"\
$LIB$uppername\"
8501 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
8502 eval value
=\"\
$LTLIB$uppername\"
8503 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
8512 if test $use_additional = yes; then
8513 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8514 found_dir
="$additional_libdir"
8515 found_so
="$additional_libdir/lib$name.$shlibext"
8516 if test -f "$additional_libdir/lib$name.la"; then
8517 found_la
="$additional_libdir/lib$name.la"
8519 elif test x
$lib_type != xshared
; then
8520 if test -f "$additional_libdir/lib$name.$libext"; then
8521 found_dir
="$additional_libdir"
8522 found_a
="$additional_libdir/lib$name.$libext"
8523 if test -f "$additional_libdir/lib$name.la"; then
8524 found_la
="$additional_libdir/lib$name.la"
8529 if test "X$found_dir" = "X"; then
8530 for x
in $LDFLAGS $LTLIBICONV; do
8532 acl_save_prefix
="$prefix"
8533 prefix
="$acl_final_prefix"
8534 acl_save_exec_prefix
="$exec_prefix"
8535 exec_prefix
="$acl_final_exec_prefix"
8537 exec_prefix
="$acl_save_exec_prefix"
8538 prefix
="$acl_save_prefix"
8542 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8543 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8545 found_so
="$dir/lib$name.$shlibext"
8546 if test -f "$dir/lib$name.la"; then
8547 found_la
="$dir/lib$name.la"
8549 elif test x
$lib_type != xshared
; then
8550 if test -f "$dir/lib$name.$libext"; then
8552 found_a
="$dir/lib$name.$libext"
8553 if test -f "$dir/lib$name.la"; then
8554 found_la
="$dir/lib$name.la"
8560 if test "X$found_dir" != "X"; then
8565 if test "X$found_dir" != "X"; then
8566 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8567 if test "X$found_so" != "X"; then
8568 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8569 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8572 for x
in $ltrpathdirs; do
8573 if test "X$x" = "X$found_dir"; then
8578 if test -z "$haveit"; then
8579 ltrpathdirs
="$ltrpathdirs $found_dir"
8581 if test "$hardcode_direct" = yes; then
8582 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8584 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8585 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8587 for x
in $rpathdirs; do
8588 if test "X$x" = "X$found_dir"; then
8593 if test -z "$haveit"; then
8594 rpathdirs
="$rpathdirs $found_dir"
8598 for x
in $LDFLAGS $LIBICONV; do
8600 acl_save_prefix
="$prefix"
8601 prefix
="$acl_final_prefix"
8602 acl_save_exec_prefix
="$exec_prefix"
8603 exec_prefix
="$acl_final_exec_prefix"
8605 exec_prefix
="$acl_save_exec_prefix"
8606 prefix
="$acl_save_prefix"
8608 if test "X$x" = "X-L$found_dir"; then
8613 if test -z "$haveit"; then
8614 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8616 if test "$hardcode_minus_L" != no
; then
8617 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8619 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8625 if test "X$found_a" != "X"; then
8626 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
8628 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8631 additional_includedir
=
8632 case "$found_dir" in
8634 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8635 additional_includedir
="$basedir/include"
8638 if test "X$additional_includedir" != "X"; then
8639 if test "X$additional_includedir" != "X/usr/include"; then
8641 if test "X$additional_includedir" = "X/usr/local/include"; then
8642 if test -n "$GCC"; then
8644 linux
*) haveit
=yes;;
8648 if test -z "$haveit"; then
8649 for x
in $CPPFLAGS $INCICONV; do
8651 acl_save_prefix
="$prefix"
8652 prefix
="$acl_final_prefix"
8653 acl_save_exec_prefix
="$exec_prefix"
8654 exec_prefix
="$acl_final_exec_prefix"
8656 exec_prefix
="$acl_save_exec_prefix"
8657 prefix
="$acl_save_prefix"
8659 if test "X$x" = "X-I$additional_includedir"; then
8664 if test -z "$haveit"; then
8665 if test -d "$additional_includedir"; then
8666 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8672 if test -n "$found_la"; then
8673 save_libdir
="$libdir"
8675 */* |
*\\*) .
"$found_la" ;;
8676 *) .
"./$found_la" ;;
8678 libdir
="$save_libdir"
8679 for dep
in $dependency_libs; do
8682 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8683 if test "X$additional_libdir" != "X/usr/lib"; then
8685 if test "X$additional_libdir" = "X/usr/local/lib"; then
8686 if test -n "$GCC"; then
8688 linux
*) haveit
=yes;;
8692 if test -z "$haveit"; then
8694 for x
in $LDFLAGS $LIBICONV; do
8696 acl_save_prefix
="$prefix"
8697 prefix
="$acl_final_prefix"
8698 acl_save_exec_prefix
="$exec_prefix"
8699 exec_prefix
="$acl_final_exec_prefix"
8701 exec_prefix
="$acl_save_exec_prefix"
8702 prefix
="$acl_save_prefix"
8704 if test "X$x" = "X-L$additional_libdir"; then
8709 if test -z "$haveit"; then
8710 if test -d "$additional_libdir"; then
8711 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8715 for x
in $LDFLAGS $LTLIBICONV; do
8717 acl_save_prefix
="$prefix"
8718 prefix
="$acl_final_prefix"
8719 acl_save_exec_prefix
="$exec_prefix"
8720 exec_prefix
="$acl_final_exec_prefix"
8722 exec_prefix
="$acl_save_exec_prefix"
8723 prefix
="$acl_save_prefix"
8725 if test "X$x" = "X-L$additional_libdir"; then
8730 if test -z "$haveit"; then
8731 if test -d "$additional_libdir"; then
8732 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8739 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8740 if test "$enable_rpath" != no
; then
8742 for x
in $rpathdirs; do
8743 if test "X$x" = "X$dir"; then
8748 if test -z "$haveit"; then
8749 rpathdirs
="$rpathdirs $dir"
8752 for x
in $ltrpathdirs; do
8753 if test "X$x" = "X$dir"; then
8758 if test -z "$haveit"; then
8759 ltrpathdirs
="$ltrpathdirs $dir"
8764 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8767 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8770 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
8771 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8777 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
8778 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8779 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8781 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
8782 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
8789 if test "X$rpathdirs" != "X"; then
8790 if test -n "$hardcode_libdir_separator"; then
8792 for found_dir
in $rpathdirs; do
8793 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8795 acl_save_libdir
="$libdir"
8797 eval flag
=\"$hardcode_libdir_flag_spec\"
8798 libdir
="$acl_save_libdir"
8799 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8801 for found_dir
in $rpathdirs; do
8802 acl_save_libdir
="$libdir"
8804 eval flag
=\"$hardcode_libdir_flag_spec\"
8805 libdir
="$acl_save_libdir"
8806 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8810 if test "X$ltrpathdirs" != "X"; then
8811 for found_dir
in $ltrpathdirs; do
8812 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8823 $as_echo_n "checking for iconv... " >&6; }
8824 if ${am_cv_func_iconv+:} false
; then :
8825 $as_echo_n "(cached) " >&6
8828 am_cv_func_iconv
="no, consider installing GNU libiconv"
8830 am_save_CPPFLAGS
="$CPPFLAGS"
8831 CPPFLAGS
="$CPPFLAGS $INCICONV"
8832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8833 /* end confdefs.h. */
8839 iconv_t cd = iconv_open("","");
8840 iconv(cd,NULL,NULL,NULL,NULL);
8846 if ac_fn_c_try_link
"$LINENO"; then :
8847 am_cv_func_iconv
=yes
8849 rm -f core conftest.err conftest.
$ac_objext \
8850 conftest
$ac_exeext conftest.
$ac_ext
8851 CPPFLAGS
="$am_save_CPPFLAGS"
8853 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
8854 for _libs
in .libs _libs
; do
8855 am_save_CPPFLAGS
="$CPPFLAGS"
8856 am_save_LIBS
="$LIBS"
8857 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
8858 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
8859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8860 /* end confdefs.h. */
8866 iconv_t cd = iconv_open("","");
8867 iconv(cd,NULL,NULL,NULL,NULL);
8873 if ac_fn_c_try_link
"$LINENO"; then :
8874 INCICONV
="-I../libiconv/include"
8875 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
8876 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
8878 am_cv_func_iconv
=yes
8880 rm -f core conftest.err conftest.
$ac_objext \
8881 conftest
$ac_exeext conftest.
$ac_ext
8882 CPPFLAGS
="$am_save_CPPFLAGS"
8883 LIBS
="$am_save_LIBS"
8884 if test "$am_cv_func_iconv" = "yes"; then
8890 if test "$am_cv_func_iconv" != yes; then
8891 am_save_CPPFLAGS
="$CPPFLAGS"
8892 am_save_LIBS
="$LIBS"
8893 CPPFLAGS
="$CPPFLAGS $INCICONV"
8894 LIBS
="$LIBS $LIBICONV"
8895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8896 /* end confdefs.h. */
8902 iconv_t cd = iconv_open("","");
8903 iconv(cd,NULL,NULL,NULL,NULL);
8909 if ac_fn_c_try_link
"$LINENO"; then :
8911 am_cv_func_iconv
=yes
8913 rm -f core conftest.err conftest.
$ac_objext \
8914 conftest
$ac_exeext conftest.
$ac_ext
8915 CPPFLAGS
="$am_save_CPPFLAGS"
8916 LIBS
="$am_save_LIBS"
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8921 $as_echo "$am_cv_func_iconv" >&6; }
8922 if test "$am_cv_func_iconv" = yes; then
8924 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8927 if test "$am_cv_lib_iconv" = yes; then
8929 for element
in $INCICONV; do
8931 for x
in $CPPFLAGS; do
8933 acl_save_prefix
="$prefix"
8934 prefix
="$acl_final_prefix"
8935 acl_save_exec_prefix
="$exec_prefix"
8936 exec_prefix
="$acl_final_exec_prefix"
8938 exec_prefix
="$acl_save_exec_prefix"
8939 prefix
="$acl_save_prefix"
8941 if test "X$x" = "X$element"; then
8946 if test -z "$haveit"; then
8947 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8952 $as_echo_n "checking how to link with libiconv... " >&6; }
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8954 $as_echo "$LIBICONV" >&6; }
8962 if test "$am_cv_func_iconv" = yes; then
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8964 $as_echo_n "checking for iconv declaration... " >&6; }
8965 if ${am_cv_proto_iconv+:} false
; then :
8966 $as_echo_n "(cached) " >&6
8969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8970 /* end confdefs.h. */
8978 #if defined(__STDC__) || defined(__cplusplus)
8979 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8992 if ac_fn_c_try_compile
"$LINENO"; then :
8993 am_cv_proto_iconv_arg1
=""
8995 am_cv_proto_iconv_arg1
="const"
8997 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8998 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);"
9001 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9003 }$am_cv_proto_iconv" >&5
9005 }$am_cv_proto_iconv" >&6; }
9007 cat >>confdefs.h
<<_ACEOF
9008 #define ICONV_CONST $am_cv_proto_iconv_arg1
9014 # GDB may fork/exec the iconv program to get the list of supported character
9015 # sets. Allow the user to specify where to find it.
9016 # There are several factors affecting the choice of option name:
9017 # - There is already --with-libiconv-prefix but we can't use it, it specifies
9018 # the build-time location of libiconv files.
9019 # - The program we need to find is iconv, which comes with glibc. The user
9020 # doesn't necessarily have libiconv installed. Therefore naming this
9021 # --with-libiconv-foo feels wrong.
9022 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
9023 # defined to work on directories not files (though it really doesn't know
9025 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
9026 # with --with-libiconv-prefix.
9027 # Putting these together is why the option name is --with-iconv-bin.
9030 # Check whether --with-iconv-bin was given.
9031 if test "${with_iconv_bin+set}" = set; then :
9032 withval
=$with_iconv_bin; iconv_bin
="${withval}"
9034 cat >>confdefs.h
<<_ACEOF
9035 #define ICONV_BIN "${iconv_bin}"
9039 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9040 if test "x$prefix" = xNONE
; then
9041 test_prefix
=/usr
/local
9046 test_prefix
=$exec_prefix
9049 case ${iconv_bin} in
9050 "${test_prefix}"|
"${test_prefix}/"*|\
9051 '${exec_prefix}'|
'${exec_prefix}/'*)
9056 cat >>confdefs.h
<<_ACEOF
9057 #define ICONV_BIN_RELOCATABLE $value
9065 # For the TUI, we need enhanced curses functionality.
9066 if test x
"$enable_tui" != xno
; then
9071 if test x
"$prefer_curses" = xyes
; then
9072 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9073 # curses library because the latter might not provide all the
9074 # functionality we need. However, this leads to problems on systems
9075 # where the linker searches /usr/local/lib, but the compiler doesn't
9076 # search /usr/local/include, if ncurses is installed in /usr/local. A
9077 # default installation of ncurses on alpha*-dec-osf* will lead to such
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
9080 $as_echo_n "checking for library containing waddstr... " >&6; }
9081 if ${ac_cv_search_waddstr+:} false
; then :
9082 $as_echo_n "(cached) " >&6
9084 ac_func_search_save_LIBS
=$LIBS
9085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9086 /* end confdefs.h. */
9088 /* Override any GCC internal prototype to avoid an error.
9089 Use char because int might match the return type of a GCC
9090 builtin and then its argument prototype would still apply. */
9103 for ac_lib
in '' ncursesw ncurses cursesX curses
; do
9104 if test -z "$ac_lib"; then
9105 ac_res
="none required"
9108 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9110 if ac_fn_c_try_link
"$LINENO"; then :
9111 ac_cv_search_waddstr
=$ac_res
9113 rm -f core conftest.err conftest.
$ac_objext \
9115 if ${ac_cv_search_waddstr+:} false
; then :
9119 if ${ac_cv_search_waddstr+:} false
; then :
9122 ac_cv_search_waddstr
=no
9125 LIBS
=$ac_func_search_save_LIBS
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
9128 $as_echo "$ac_cv_search_waddstr" >&6; }
9129 ac_res
=$ac_cv_search_waddstr
9130 if test "$ac_res" != no
; then :
9131 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9136 if test "$ac_cv_search_waddstr" != no
; then
9141 # Check whether we should enable the TUI, but only do so if we really
9143 if test x
"$enable_tui" != xno
; then
9144 if test -d "$srcdir/tui"; then
9145 if test "$curses_found" != no
; then
9146 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
9147 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
9148 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9149 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
9151 if test x
"$enable_tui" = xyes
; then
9152 as_fn_error $?
"no enhanced curses library found; disable TUI" "$LINENO" 5
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
9155 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9161 # Since GDB uses Readline, we need termcap functionality. In many
9162 # cases this will be provided by the curses library, but some systems
9163 # have a separate termcap library, or no curses library at all.
9167 if test -d "$srcdir/libtermcap"; then
9168 LIBS
="../libtermcap/libtermcap.a $LIBS"
9169 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
9172 ac_cv_search_tgetent
="none required"
9176 # These are the libraries checked by Readline.
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9178 $as_echo_n "checking for library containing tgetent... " >&6; }
9179 if ${ac_cv_search_tgetent+:} false
; then :
9180 $as_echo_n "(cached) " >&6
9182 ac_func_search_save_LIBS
=$LIBS
9183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9184 /* end confdefs.h. */
9186 /* Override any GCC internal prototype to avoid an error.
9187 Use char because int might match the return type of a GCC
9188 builtin and then its argument prototype would still apply. */
9201 for ac_lib
in '' termcap tinfow tinfo curses ncursesw ncurses
; do
9202 if test -z "$ac_lib"; then
9203 ac_res
="none required"
9206 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9208 if ac_fn_c_try_link
"$LINENO"; then :
9209 ac_cv_search_tgetent
=$ac_res
9211 rm -f core conftest.err conftest.
$ac_objext \
9213 if ${ac_cv_search_tgetent+:} false
; then :
9217 if ${ac_cv_search_tgetent+:} false
; then :
9220 ac_cv_search_tgetent
=no
9223 LIBS
=$ac_func_search_save_LIBS
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9226 $as_echo "$ac_cv_search_tgetent" >&6; }
9227 ac_res
=$ac_cv_search_tgetent
9228 if test "$ac_res" != no
; then :
9229 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9234 if test "$ac_cv_search_tgetent" = no
; then
9235 CONFIG_OBS
="$CONFIG_OBS stub-termcap.o"
9239 # Check whether --with-system-readline was given.
9240 if test "${with_system_readline+set}" = set; then :
9241 withval
=$with_system_readline;
9245 if test "$with_system_readline" = yes; then
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system readline is new enough" >&5
9247 $as_echo_n "checking whether system readline is new enough... " >&6; }
9248 if ${gdb_cv_readline_ok+:} false
; then :
9249 $as_echo_n "(cached) " >&6
9251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9252 /* end confdefs.h. */
9254 #include <readline/readline.h>
9258 #if RL_VERSION_MAJOR < 7
9259 # error "readline version 7 required"
9266 if ac_fn_c_try_compile
"$LINENO"; then :
9267 gdb_cv_readline_ok
=yes
9269 gdb_cv_readline_ok
=no
9272 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_readline_ok" >&5
9276 $as_echo "$gdb_cv_readline_ok" >&6; }
9277 if test "$gdb_cv_readline_ok" != yes; then
9278 as_fn_error $?
"system readline is not new enough" "$LINENO" 5
9284 READLINE_TEXI_INCFLAG
=
9286 READLINE
='$(READLINE_DIR)/libreadline.a'
9287 READLINE_DEPS
='$(READLINE)'
9288 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
9289 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
9296 # Generate jit-reader.h
9298 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
9301 # The cast to long int works around a bug in the HP C Compiler
9302 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9303 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9304 # This bug is HP SR number 8606223364.
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
9306 $as_echo_n "checking size of unsigned long long... " >&6; }
9307 if ${ac_cv_sizeof_unsigned_long_long+:} false
; then :
9308 $as_echo_n "(cached) " >&6
9310 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
9313 if test "$ac_cv_type_unsigned_long_long" = yes; then
9314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9316 as_fn_error
77 "cannot compute sizeof (unsigned long long)
9317 See \`config.log' for more details" "$LINENO" 5; }
9319 ac_cv_sizeof_unsigned_long_long
=0
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
9325 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
9329 cat >>confdefs.h
<<_ACEOF
9330 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
9334 # The cast to long int works around a bug in the HP C Compiler
9335 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9336 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9337 # This bug is HP SR number 8606223364.
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
9339 $as_echo_n "checking size of unsigned long... " >&6; }
9340 if ${ac_cv_sizeof_unsigned_long+:} false
; then :
9341 $as_echo_n "(cached) " >&6
9343 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
9346 if test "$ac_cv_type_unsigned_long" = yes; then
9347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9349 as_fn_error
77 "cannot compute sizeof (unsigned long)
9350 See \`config.log' for more details" "$LINENO" 5; }
9352 ac_cv_sizeof_unsigned_long
=0
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
9358 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
9362 cat >>confdefs.h
<<_ACEOF
9363 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9367 # The cast to long int works around a bug in the HP C Compiler
9368 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9369 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9370 # This bug is HP SR number 8606223364.
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
9372 $as_echo_n "checking size of unsigned __int128... " >&6; }
9373 if ${ac_cv_sizeof_unsigned___int128+:} false
; then :
9374 $as_echo_n "(cached) " >&6
9376 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
9379 if test "$ac_cv_type_unsigned___int128" = yes; then
9380 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9382 as_fn_error
77 "cannot compute sizeof (unsigned __int128)
9383 See \`config.log' for more details" "$LINENO" 5; }
9385 ac_cv_sizeof_unsigned___int128
=0
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
9391 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
9395 cat >>confdefs.h
<<_ACEOF
9396 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
9401 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9402 TARGET_PTR
="unsigned long"
9403 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9404 TARGET_PTR
="unsigned long long"
9405 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
9406 TARGET_PTR
="unsigned __int128"
9408 TARGET_PTR
="unsigned long"
9412 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9416 $as_echo_n "checking for library containing dlopen... " >&6; }
9417 if ${ac_cv_search_dlopen+:} false
; then :
9418 $as_echo_n "(cached) " >&6
9420 ac_func_search_save_LIBS
=$LIBS
9421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9422 /* end confdefs.h. */
9424 /* Override any GCC internal prototype to avoid an error.
9425 Use char because int might match the return type of a GCC
9426 builtin and then its argument prototype would still apply. */
9439 for ac_lib
in '' dl
; do
9440 if test -z "$ac_lib"; then
9441 ac_res
="none required"
9444 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9446 if ac_fn_c_try_link
"$LINENO"; then :
9447 ac_cv_search_dlopen
=$ac_res
9449 rm -f core conftest.err conftest.
$ac_objext \
9451 if ${ac_cv_search_dlopen+:} false
; then :
9455 if ${ac_cv_search_dlopen+:} false
; then :
9458 ac_cv_search_dlopen
=no
9461 LIBS
=$ac_func_search_save_LIBS
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9464 $as_echo "$ac_cv_search_dlopen" >&6; }
9465 ac_res
=$ac_cv_search_dlopen
9466 if test "$ac_res" != no
; then :
9467 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9474 # Check whether --with-jit-reader-dir was given.
9475 if test "${with_jit_reader_dir+set}" = set; then :
9476 withval
=$with_jit_reader_dir;
9477 JIT_READER_DIR
=$withval
9479 JIT_READER_DIR
=${libdir}/gdb
9483 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9484 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9485 ac_define_dir
=`eval echo $JIT_READER_DIR`
9486 ac_define_dir
=`eval echo $ac_define_dir`
9488 cat >>confdefs.h
<<_ACEOF
9489 #define JIT_READER_DIR "$ac_define_dir"
9495 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9496 if test "x$prefix" = xNONE
; then
9497 test_prefix
=/usr
/local
9502 test_prefix
=$exec_prefix
9505 case ${ac_define_dir} in
9506 "${test_prefix}"|
"${test_prefix}/"*|\
9507 '${exec_prefix}'|
'${exec_prefix}/'*)
9512 cat >>confdefs.h
<<_ACEOF
9513 #define JIT_READER_DIR_RELOCATABLE $value
9520 # Check whether --with-expat was given.
9521 if test "${with_expat+set}" = set; then :
9522 withval
=$with_expat;
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9528 $as_echo_n "checking whether to use expat... " >&6; }
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9530 $as_echo "$with_expat" >&6; }
9532 if test "${with_expat}" = no
; then
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9534 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9547 acl_save_prefix
="$prefix"
9548 prefix
="$acl_final_prefix"
9549 acl_save_exec_prefix
="$exec_prefix"
9550 exec_prefix
="$acl_final_exec_prefix"
9552 eval additional_includedir
=\"$includedir\"
9553 eval additional_libdir
=\"$libdir\"
9555 exec_prefix
="$acl_save_exec_prefix"
9556 prefix
="$acl_save_prefix"
9559 # Check whether --with-libexpat-prefix was given.
9560 if test "${with_libexpat_prefix+set}" = set; then :
9561 withval
=$with_libexpat_prefix;
9562 if test "X$withval" = "Xno"; then
9565 if test "X$withval" = "X"; then
9567 acl_save_prefix
="$prefix"
9568 prefix
="$acl_final_prefix"
9569 acl_save_exec_prefix
="$exec_prefix"
9570 exec_prefix
="$acl_final_exec_prefix"
9572 eval additional_includedir
=\"$includedir\"
9573 eval additional_libdir
=\"$libdir\"
9575 exec_prefix
="$acl_save_exec_prefix"
9576 prefix
="$acl_save_prefix"
9579 additional_includedir
="$withval/include"
9580 additional_libdir
="$withval/lib"
9587 # Check whether --with-libexpat-type was given.
9588 if test "${with_libexpat_type+set}" = set; then :
9589 withval
=$with_libexpat_type; with_libexpat_type
=$withval
9591 with_libexpat_type
=auto
9594 lib_type
=`eval echo \$with_libexpat_type`
9601 names_already_handled
=
9602 names_next_round
='expat '
9603 while test -n "$names_next_round"; do
9604 names_this_round
="$names_next_round"
9606 for name
in $names_this_round; do
9608 for n
in $names_already_handled; do
9609 if test "$n" = "$name"; then
9614 if test -z "$already_handled"; then
9615 names_already_handled
="$names_already_handled $name"
9616 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9617 eval value
=\"\
$HAVE_LIB$uppername\"
9618 if test -n "$value"; then
9619 if test "$value" = yes; then
9620 eval value
=\"\
$LIB$uppername\"
9621 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
9622 eval value
=\"\
$LTLIB$uppername\"
9623 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
9632 if test $use_additional = yes; then
9633 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9634 found_dir
="$additional_libdir"
9635 found_so
="$additional_libdir/lib$name.$shlibext"
9636 if test -f "$additional_libdir/lib$name.la"; then
9637 found_la
="$additional_libdir/lib$name.la"
9639 elif test x
$lib_type != xshared
; then
9640 if test -f "$additional_libdir/lib$name.$libext"; then
9641 found_dir
="$additional_libdir"
9642 found_a
="$additional_libdir/lib$name.$libext"
9643 if test -f "$additional_libdir/lib$name.la"; then
9644 found_la
="$additional_libdir/lib$name.la"
9649 if test "X$found_dir" = "X"; then
9650 for x
in $LDFLAGS $LTLIBEXPAT; do
9652 acl_save_prefix
="$prefix"
9653 prefix
="$acl_final_prefix"
9654 acl_save_exec_prefix
="$exec_prefix"
9655 exec_prefix
="$acl_final_exec_prefix"
9657 exec_prefix
="$acl_save_exec_prefix"
9658 prefix
="$acl_save_prefix"
9662 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9663 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9665 found_so
="$dir/lib$name.$shlibext"
9666 if test -f "$dir/lib$name.la"; then
9667 found_la
="$dir/lib$name.la"
9669 elif test x
$lib_type != xshared
; then
9670 if test -f "$dir/lib$name.$libext"; then
9672 found_a
="$dir/lib$name.$libext"
9673 if test -f "$dir/lib$name.la"; then
9674 found_la
="$dir/lib$name.la"
9680 if test "X$found_dir" != "X"; then
9685 if test "X$found_dir" != "X"; then
9686 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
9687 if test "X$found_so" != "X"; then
9688 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9689 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9692 for x
in $ltrpathdirs; do
9693 if test "X$x" = "X$found_dir"; then
9698 if test -z "$haveit"; then
9699 ltrpathdirs
="$ltrpathdirs $found_dir"
9701 if test "$hardcode_direct" = yes; then
9702 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9704 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9705 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9707 for x
in $rpathdirs; do
9708 if test "X$x" = "X$found_dir"; then
9713 if test -z "$haveit"; then
9714 rpathdirs
="$rpathdirs $found_dir"
9718 for x
in $LDFLAGS $LIBEXPAT; do
9720 acl_save_prefix
="$prefix"
9721 prefix
="$acl_final_prefix"
9722 acl_save_exec_prefix
="$exec_prefix"
9723 exec_prefix
="$acl_final_exec_prefix"
9725 exec_prefix
="$acl_save_exec_prefix"
9726 prefix
="$acl_save_prefix"
9728 if test "X$x" = "X-L$found_dir"; then
9733 if test -z "$haveit"; then
9734 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
9736 if test "$hardcode_minus_L" != no
; then
9737 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9739 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9745 if test "X$found_a" != "X"; then
9746 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
9748 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
9751 additional_includedir
=
9752 case "$found_dir" in
9754 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9755 additional_includedir
="$basedir/include"
9758 if test "X$additional_includedir" != "X"; then
9759 if test "X$additional_includedir" != "X/usr/include"; then
9761 if test "X$additional_includedir" = "X/usr/local/include"; then
9762 if test -n "$GCC"; then
9764 linux
*) haveit
=yes;;
9768 if test -z "$haveit"; then
9769 for x
in $CPPFLAGS $INCEXPAT; do
9771 acl_save_prefix
="$prefix"
9772 prefix
="$acl_final_prefix"
9773 acl_save_exec_prefix
="$exec_prefix"
9774 exec_prefix
="$acl_final_exec_prefix"
9776 exec_prefix
="$acl_save_exec_prefix"
9777 prefix
="$acl_save_prefix"
9779 if test "X$x" = "X-I$additional_includedir"; then
9784 if test -z "$haveit"; then
9785 if test -d "$additional_includedir"; then
9786 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
9792 if test -n "$found_la"; then
9793 save_libdir
="$libdir"
9795 */* |
*\\*) .
"$found_la" ;;
9796 *) .
"./$found_la" ;;
9798 libdir
="$save_libdir"
9799 for dep
in $dependency_libs; do
9802 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9803 if test "X$additional_libdir" != "X/usr/lib"; then
9805 if test "X$additional_libdir" = "X/usr/local/lib"; then
9806 if test -n "$GCC"; then
9808 linux
*) haveit
=yes;;
9812 if test -z "$haveit"; then
9814 for x
in $LDFLAGS $LIBEXPAT; do
9816 acl_save_prefix
="$prefix"
9817 prefix
="$acl_final_prefix"
9818 acl_save_exec_prefix
="$exec_prefix"
9819 exec_prefix
="$acl_final_exec_prefix"
9821 exec_prefix
="$acl_save_exec_prefix"
9822 prefix
="$acl_save_prefix"
9824 if test "X$x" = "X-L$additional_libdir"; then
9829 if test -z "$haveit"; then
9830 if test -d "$additional_libdir"; then
9831 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
9835 for x
in $LDFLAGS $LTLIBEXPAT; do
9837 acl_save_prefix
="$prefix"
9838 prefix
="$acl_final_prefix"
9839 acl_save_exec_prefix
="$exec_prefix"
9840 exec_prefix
="$acl_final_exec_prefix"
9842 exec_prefix
="$acl_save_exec_prefix"
9843 prefix
="$acl_save_prefix"
9845 if test "X$x" = "X-L$additional_libdir"; then
9850 if test -z "$haveit"; then
9851 if test -d "$additional_libdir"; then
9852 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
9859 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9860 if test "$enable_rpath" != no
; then
9862 for x
in $rpathdirs; do
9863 if test "X$x" = "X$dir"; then
9868 if test -z "$haveit"; then
9869 rpathdirs
="$rpathdirs $dir"
9872 for x
in $ltrpathdirs; do
9873 if test "X$x" = "X$dir"; then
9878 if test -z "$haveit"; then
9879 ltrpathdirs
="$ltrpathdirs $dir"
9884 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9887 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9890 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
9891 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
9897 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
9898 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9899 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
9901 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l:lib$name.$libext"
9902 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l:lib$name.$libext"
9909 if test "X$rpathdirs" != "X"; then
9910 if test -n "$hardcode_libdir_separator"; then
9912 for found_dir
in $rpathdirs; do
9913 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9915 acl_save_libdir
="$libdir"
9917 eval flag
=\"$hardcode_libdir_flag_spec\"
9918 libdir
="$acl_save_libdir"
9919 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9921 for found_dir
in $rpathdirs; do
9922 acl_save_libdir
="$libdir"
9924 eval flag
=\"$hardcode_libdir_flag_spec\"
9925 libdir
="$acl_save_libdir"
9926 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9930 if test "X$ltrpathdirs" != "X"; then
9931 for found_dir
in $ltrpathdirs; do
9932 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9937 ac_save_CPPFLAGS
="$CPPFLAGS"
9939 for element
in $INCEXPAT; do
9941 for x
in $CPPFLAGS; do
9943 acl_save_prefix
="$prefix"
9944 prefix
="$acl_final_prefix"
9945 acl_save_exec_prefix
="$exec_prefix"
9946 exec_prefix
="$acl_final_exec_prefix"
9948 exec_prefix
="$acl_save_exec_prefix"
9949 prefix
="$acl_save_prefix"
9951 if test "X$x" = "X$element"; then
9956 if test -z "$haveit"; then
9957 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9963 $as_echo_n "checking for libexpat... " >&6; }
9964 if ${ac_cv_libexpat+:} false
; then :
9965 $as_echo_n "(cached) " >&6
9968 ac_save_LIBS
="$LIBS"
9969 LIBS
="$LIBS $LIBEXPAT"
9970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9971 /* end confdefs.h. */
9976 XML_Parser p = XML_ParserCreate (0);
9981 if ac_fn_c_try_link
"$LINENO"; then :
9986 rm -f core conftest.err conftest.
$ac_objext \
9987 conftest
$ac_exeext conftest.
$ac_ext
9988 LIBS
="$ac_save_LIBS"
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
9992 $as_echo "$ac_cv_libexpat" >&6; }
9993 if test "$ac_cv_libexpat" = yes; then
9996 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
9999 $as_echo_n "checking how to link with libexpat... " >&6; }
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
10001 $as_echo "$LIBEXPAT" >&6; }
10004 CPPFLAGS
="$ac_save_CPPFLAGS"
10014 if test "$HAVE_LIBEXPAT" != yes; then
10015 if test "$with_expat" = yes; then
10016 as_fn_error $?
"expat is missing or unusable" "$LINENO" 5
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
10019 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
10023 LIBS
="$LIBS $LIBEXPAT"
10024 for ac_func
in XML_StopParser
10026 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
10027 if test "x$ac_cv_func_XML_StopParser" = xyes
; then :
10028 cat >>confdefs.h
<<_ACEOF
10029 #define HAVE_XML_STOPPARSER 1
10039 # Verify that we have a usable GMP library.
10050 acl_save_prefix
="$prefix"
10051 prefix
="$acl_final_prefix"
10052 acl_save_exec_prefix
="$exec_prefix"
10053 exec_prefix
="$acl_final_exec_prefix"
10055 eval additional_includedir
=\"$includedir\"
10056 eval additional_libdir
=\"$libdir\"
10058 exec_prefix
="$acl_save_exec_prefix"
10059 prefix
="$acl_save_prefix"
10062 # Check whether --with-libgmp-prefix was given.
10063 if test "${with_libgmp_prefix+set}" = set; then :
10064 withval
=$with_libgmp_prefix;
10065 if test "X$withval" = "Xno"; then
10068 if test "X$withval" = "X"; then
10070 acl_save_prefix
="$prefix"
10071 prefix
="$acl_final_prefix"
10072 acl_save_exec_prefix
="$exec_prefix"
10073 exec_prefix
="$acl_final_exec_prefix"
10075 eval additional_includedir
=\"$includedir\"
10076 eval additional_libdir
=\"$libdir\"
10078 exec_prefix
="$acl_save_exec_prefix"
10079 prefix
="$acl_save_prefix"
10082 additional_includedir
="$withval/include"
10083 additional_libdir
="$withval/lib"
10090 # Check whether --with-libgmp-type was given.
10091 if test "${with_libgmp_type+set}" = set; then :
10092 withval
=$with_libgmp_type; with_libgmp_type
=$withval
10094 with_libgmp_type
=auto
10097 lib_type
=`eval echo \$with_libgmp_type`
10104 names_already_handled
=
10105 names_next_round
='gmp '
10106 while test -n "$names_next_round"; do
10107 names_this_round
="$names_next_round"
10109 for name
in $names_this_round; do
10111 for n
in $names_already_handled; do
10112 if test "$n" = "$name"; then
10113 already_handled
=yes
10117 if test -z "$already_handled"; then
10118 names_already_handled
="$names_already_handled $name"
10119 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10120 eval value
=\"\
$HAVE_LIB$uppername\"
10121 if test -n "$value"; then
10122 if test "$value" = yes; then
10123 eval value
=\"\
$LIB$uppername\"
10124 test -z "$value" || LIBGMP
="${LIBGMP}${LIBGMP:+ }$value"
10125 eval value
=\"\
$LTLIB$uppername\"
10126 test -z "$value" || LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }$value"
10135 if test $use_additional = yes; then
10136 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10137 found_dir
="$additional_libdir"
10138 found_so
="$additional_libdir/lib$name.$shlibext"
10139 if test -f "$additional_libdir/lib$name.la"; then
10140 found_la
="$additional_libdir/lib$name.la"
10142 elif test x
$lib_type != xshared
; then
10143 if test -f "$additional_libdir/lib$name.$libext"; then
10144 found_dir
="$additional_libdir"
10145 found_a
="$additional_libdir/lib$name.$libext"
10146 if test -f "$additional_libdir/lib$name.la"; then
10147 found_la
="$additional_libdir/lib$name.la"
10152 if test "X$found_dir" = "X"; then
10153 for x
in $LDFLAGS $LTLIBGMP; do
10155 acl_save_prefix
="$prefix"
10156 prefix
="$acl_final_prefix"
10157 acl_save_exec_prefix
="$exec_prefix"
10158 exec_prefix
="$acl_final_exec_prefix"
10160 exec_prefix
="$acl_save_exec_prefix"
10161 prefix
="$acl_save_prefix"
10165 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10166 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10168 found_so
="$dir/lib$name.$shlibext"
10169 if test -f "$dir/lib$name.la"; then
10170 found_la
="$dir/lib$name.la"
10172 elif test x
$lib_type != xshared
; then
10173 if test -f "$dir/lib$name.$libext"; then
10175 found_a
="$dir/lib$name.$libext"
10176 if test -f "$dir/lib$name.la"; then
10177 found_la
="$dir/lib$name.la"
10183 if test "X$found_dir" != "X"; then
10188 if test "X$found_dir" != "X"; then
10189 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }-L$found_dir -l$name"
10190 if test "X$found_so" != "X"; then
10191 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10192 LIBGMP
="${LIBGMP}${LIBGMP:+ }$found_so"
10195 for x
in $ltrpathdirs; do
10196 if test "X$x" = "X$found_dir"; then
10201 if test -z "$haveit"; then
10202 ltrpathdirs
="$ltrpathdirs $found_dir"
10204 if test "$hardcode_direct" = yes; then
10205 LIBGMP
="${LIBGMP}${LIBGMP:+ }$found_so"
10207 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10208 LIBGMP
="${LIBGMP}${LIBGMP:+ }$found_so"
10210 for x
in $rpathdirs; do
10211 if test "X$x" = "X$found_dir"; then
10216 if test -z "$haveit"; then
10217 rpathdirs
="$rpathdirs $found_dir"
10221 for x
in $LDFLAGS $LIBGMP; do
10223 acl_save_prefix
="$prefix"
10224 prefix
="$acl_final_prefix"
10225 acl_save_exec_prefix
="$exec_prefix"
10226 exec_prefix
="$acl_final_exec_prefix"
10228 exec_prefix
="$acl_save_exec_prefix"
10229 prefix
="$acl_save_prefix"
10231 if test "X$x" = "X-L$found_dir"; then
10236 if test -z "$haveit"; then
10237 LIBGMP
="${LIBGMP}${LIBGMP:+ }-L$found_dir"
10239 if test "$hardcode_minus_L" != no
; then
10240 LIBGMP
="${LIBGMP}${LIBGMP:+ }$found_so"
10242 LIBGMP
="${LIBGMP}${LIBGMP:+ }-l$name"
10248 if test "X$found_a" != "X"; then
10249 LIBGMP
="${LIBGMP}${LIBGMP:+ }$found_a"
10251 LIBGMP
="${LIBGMP}${LIBGMP:+ }-L$found_dir -l$name"
10254 additional_includedir
=
10255 case "$found_dir" in
10257 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10258 additional_includedir
="$basedir/include"
10261 if test "X$additional_includedir" != "X"; then
10262 if test "X$additional_includedir" != "X/usr/include"; then
10264 if test "X$additional_includedir" = "X/usr/local/include"; then
10265 if test -n "$GCC"; then
10267 linux
*) haveit
=yes;;
10271 if test -z "$haveit"; then
10272 for x
in $CPPFLAGS $INCGMP; do
10274 acl_save_prefix
="$prefix"
10275 prefix
="$acl_final_prefix"
10276 acl_save_exec_prefix
="$exec_prefix"
10277 exec_prefix
="$acl_final_exec_prefix"
10279 exec_prefix
="$acl_save_exec_prefix"
10280 prefix
="$acl_save_prefix"
10282 if test "X$x" = "X-I$additional_includedir"; then
10287 if test -z "$haveit"; then
10288 if test -d "$additional_includedir"; then
10289 INCGMP
="${INCGMP}${INCGMP:+ }-I$additional_includedir"
10295 if test -n "$found_la"; then
10296 save_libdir
="$libdir"
10297 case "$found_la" in
10298 */* |
*\\*) .
"$found_la" ;;
10299 *) .
"./$found_la" ;;
10301 libdir
="$save_libdir"
10302 for dep
in $dependency_libs; do
10305 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10306 if test "X$additional_libdir" != "X/usr/lib"; then
10308 if test "X$additional_libdir" = "X/usr/local/lib"; then
10309 if test -n "$GCC"; then
10311 linux
*) haveit
=yes;;
10315 if test -z "$haveit"; then
10317 for x
in $LDFLAGS $LIBGMP; do
10319 acl_save_prefix
="$prefix"
10320 prefix
="$acl_final_prefix"
10321 acl_save_exec_prefix
="$exec_prefix"
10322 exec_prefix
="$acl_final_exec_prefix"
10324 exec_prefix
="$acl_save_exec_prefix"
10325 prefix
="$acl_save_prefix"
10327 if test "X$x" = "X-L$additional_libdir"; then
10332 if test -z "$haveit"; then
10333 if test -d "$additional_libdir"; then
10334 LIBGMP
="${LIBGMP}${LIBGMP:+ }-L$additional_libdir"
10338 for x
in $LDFLAGS $LTLIBGMP; do
10340 acl_save_prefix
="$prefix"
10341 prefix
="$acl_final_prefix"
10342 acl_save_exec_prefix
="$exec_prefix"
10343 exec_prefix
="$acl_final_exec_prefix"
10345 exec_prefix
="$acl_save_exec_prefix"
10346 prefix
="$acl_save_prefix"
10348 if test "X$x" = "X-L$additional_libdir"; then
10353 if test -z "$haveit"; then
10354 if test -d "$additional_libdir"; then
10355 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }-L$additional_libdir"
10362 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10363 if test "$enable_rpath" != no
; then
10365 for x
in $rpathdirs; do
10366 if test "X$x" = "X$dir"; then
10371 if test -z "$haveit"; then
10372 rpathdirs
="$rpathdirs $dir"
10375 for x
in $ltrpathdirs; do
10376 if test "X$x" = "X$dir"; then
10381 if test -z "$haveit"; then
10382 ltrpathdirs
="$ltrpathdirs $dir"
10387 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10390 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10393 LIBGMP
="${LIBGMP}${LIBGMP:+ }$dep"
10394 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }$dep"
10400 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
10401 LIBGMP
="${LIBGMP}${LIBGMP:+ }-l$name"
10402 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }-l$name"
10404 LIBGMP
="${LIBGMP}${LIBGMP:+ }-l:lib$name.$libext"
10405 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }-l:lib$name.$libext"
10412 if test "X$rpathdirs" != "X"; then
10413 if test -n "$hardcode_libdir_separator"; then
10415 for found_dir
in $rpathdirs; do
10416 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10418 acl_save_libdir
="$libdir"
10420 eval flag
=\"$hardcode_libdir_flag_spec\"
10421 libdir
="$acl_save_libdir"
10422 LIBGMP
="${LIBGMP}${LIBGMP:+ }$flag"
10424 for found_dir
in $rpathdirs; do
10425 acl_save_libdir
="$libdir"
10426 libdir
="$found_dir"
10427 eval flag
=\"$hardcode_libdir_flag_spec\"
10428 libdir
="$acl_save_libdir"
10429 LIBGMP
="${LIBGMP}${LIBGMP:+ }$flag"
10433 if test "X$ltrpathdirs" != "X"; then
10434 for found_dir
in $ltrpathdirs; do
10435 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }-R$found_dir"
10440 ac_save_CPPFLAGS
="$CPPFLAGS"
10442 for element
in $INCGMP; do
10444 for x
in $CPPFLAGS; do
10446 acl_save_prefix
="$prefix"
10447 prefix
="$acl_final_prefix"
10448 acl_save_exec_prefix
="$exec_prefix"
10449 exec_prefix
="$acl_final_exec_prefix"
10451 exec_prefix
="$acl_save_exec_prefix"
10452 prefix
="$acl_save_prefix"
10454 if test "X$x" = "X$element"; then
10459 if test -z "$haveit"; then
10460 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgmp" >&5
10466 $as_echo_n "checking for libgmp... " >&6; }
10467 if ${ac_cv_libgmp+:} false
; then :
10468 $as_echo_n "(cached) " >&6
10471 ac_save_LIBS
="$LIBS"
10472 LIBS
="$LIBS $LIBGMP"
10473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10474 /* end confdefs.h. */
10485 if ac_fn_c_try_link
"$LINENO"; then :
10490 rm -f core conftest.err conftest.
$ac_objext \
10491 conftest
$ac_exeext conftest.
$ac_ext
10492 LIBS
="$ac_save_LIBS"
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgmp" >&5
10496 $as_echo "$ac_cv_libgmp" >&6; }
10497 if test "$ac_cv_libgmp" = yes; then
10500 $as_echo "#define HAVE_LIBGMP 1" >>confdefs.h
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libgmp" >&5
10503 $as_echo_n "checking how to link with libgmp... " >&6; }
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGMP" >&5
10505 $as_echo "$LIBGMP" >&6; }
10508 CPPFLAGS
="$ac_save_CPPFLAGS"
10518 if test "$HAVE_LIBGMP" != yes; then
10519 as_fn_error $?
"GMP is missing or unusable" "$LINENO" 5
10523 # Check whether --with-mpfr was given.
10524 if test "${with_mpfr+set}" = set; then :
10525 withval
=$with_mpfr;
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5
10531 $as_echo_n "checking whether to use MPFR... " >&6; }
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5
10533 $as_echo "$with_mpfr" >&6; }
10535 if test "${with_mpfr}" = no
; then
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5
10537 $as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;}
10550 acl_save_prefix
="$prefix"
10551 prefix
="$acl_final_prefix"
10552 acl_save_exec_prefix
="$exec_prefix"
10553 exec_prefix
="$acl_final_exec_prefix"
10555 eval additional_includedir
=\"$includedir\"
10556 eval additional_libdir
=\"$libdir\"
10558 exec_prefix
="$acl_save_exec_prefix"
10559 prefix
="$acl_save_prefix"
10562 # Check whether --with-libmpfr-prefix was given.
10563 if test "${with_libmpfr_prefix+set}" = set; then :
10564 withval
=$with_libmpfr_prefix;
10565 if test "X$withval" = "Xno"; then
10568 if test "X$withval" = "X"; then
10570 acl_save_prefix
="$prefix"
10571 prefix
="$acl_final_prefix"
10572 acl_save_exec_prefix
="$exec_prefix"
10573 exec_prefix
="$acl_final_exec_prefix"
10575 eval additional_includedir
=\"$includedir\"
10576 eval additional_libdir
=\"$libdir\"
10578 exec_prefix
="$acl_save_exec_prefix"
10579 prefix
="$acl_save_prefix"
10582 additional_includedir
="$withval/include"
10583 additional_libdir
="$withval/lib"
10590 # Check whether --with-libmpfr-type was given.
10591 if test "${with_libmpfr_type+set}" = set; then :
10592 withval
=$with_libmpfr_type; with_libmpfr_type
=$withval
10594 with_libmpfr_type
=auto
10597 lib_type
=`eval echo \$with_libmpfr_type`
10604 names_already_handled
=
10605 names_next_round
='mpfr gmp'
10606 while test -n "$names_next_round"; do
10607 names_this_round
="$names_next_round"
10609 for name
in $names_this_round; do
10611 for n
in $names_already_handled; do
10612 if test "$n" = "$name"; then
10613 already_handled
=yes
10617 if test -z "$already_handled"; then
10618 names_already_handled
="$names_already_handled $name"
10619 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10620 eval value
=\"\
$HAVE_LIB$uppername\"
10621 if test -n "$value"; then
10622 if test "$value" = yes; then
10623 eval value
=\"\
$LIB$uppername\"
10624 test -z "$value" || LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$value"
10625 eval value
=\"\
$LTLIB$uppername\"
10626 test -z "$value" || LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$value"
10635 if test $use_additional = yes; then
10636 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10637 found_dir
="$additional_libdir"
10638 found_so
="$additional_libdir/lib$name.$shlibext"
10639 if test -f "$additional_libdir/lib$name.la"; then
10640 found_la
="$additional_libdir/lib$name.la"
10642 elif test x
$lib_type != xshared
; then
10643 if test -f "$additional_libdir/lib$name.$libext"; then
10644 found_dir
="$additional_libdir"
10645 found_a
="$additional_libdir/lib$name.$libext"
10646 if test -f "$additional_libdir/lib$name.la"; then
10647 found_la
="$additional_libdir/lib$name.la"
10652 if test "X$found_dir" = "X"; then
10653 for x
in $LDFLAGS $LTLIBMPFR; do
10655 acl_save_prefix
="$prefix"
10656 prefix
="$acl_final_prefix"
10657 acl_save_exec_prefix
="$exec_prefix"
10658 exec_prefix
="$acl_final_exec_prefix"
10660 exec_prefix
="$acl_save_exec_prefix"
10661 prefix
="$acl_save_prefix"
10665 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10666 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10668 found_so
="$dir/lib$name.$shlibext"
10669 if test -f "$dir/lib$name.la"; then
10670 found_la
="$dir/lib$name.la"
10672 elif test x
$lib_type != xshared
; then
10673 if test -f "$dir/lib$name.$libext"; then
10675 found_a
="$dir/lib$name.$libext"
10676 if test -f "$dir/lib$name.la"; then
10677 found_la
="$dir/lib$name.la"
10683 if test "X$found_dir" != "X"; then
10688 if test "X$found_dir" != "X"; then
10689 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$found_dir -l$name"
10690 if test "X$found_so" != "X"; then
10691 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10692 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10695 for x
in $ltrpathdirs; do
10696 if test "X$x" = "X$found_dir"; then
10701 if test -z "$haveit"; then
10702 ltrpathdirs
="$ltrpathdirs $found_dir"
10704 if test "$hardcode_direct" = yes; then
10705 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10707 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10708 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10710 for x
in $rpathdirs; do
10711 if test "X$x" = "X$found_dir"; then
10716 if test -z "$haveit"; then
10717 rpathdirs
="$rpathdirs $found_dir"
10721 for x
in $LDFLAGS $LIBMPFR; do
10723 acl_save_prefix
="$prefix"
10724 prefix
="$acl_final_prefix"
10725 acl_save_exec_prefix
="$exec_prefix"
10726 exec_prefix
="$acl_final_exec_prefix"
10728 exec_prefix
="$acl_save_exec_prefix"
10729 prefix
="$acl_save_prefix"
10731 if test "X$x" = "X-L$found_dir"; then
10736 if test -z "$haveit"; then
10737 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir"
10739 if test "$hardcode_minus_L" != no
; then
10740 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10742 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10748 if test "X$found_a" != "X"; then
10749 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_a"
10751 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir -l$name"
10754 additional_includedir
=
10755 case "$found_dir" in
10757 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10758 additional_includedir
="$basedir/include"
10761 if test "X$additional_includedir" != "X"; then
10762 if test "X$additional_includedir" != "X/usr/include"; then
10764 if test "X$additional_includedir" = "X/usr/local/include"; then
10765 if test -n "$GCC"; then
10767 linux
*) haveit
=yes;;
10771 if test -z "$haveit"; then
10772 for x
in $CPPFLAGS $INCMPFR; do
10774 acl_save_prefix
="$prefix"
10775 prefix
="$acl_final_prefix"
10776 acl_save_exec_prefix
="$exec_prefix"
10777 exec_prefix
="$acl_final_exec_prefix"
10779 exec_prefix
="$acl_save_exec_prefix"
10780 prefix
="$acl_save_prefix"
10782 if test "X$x" = "X-I$additional_includedir"; then
10787 if test -z "$haveit"; then
10788 if test -d "$additional_includedir"; then
10789 INCMPFR
="${INCMPFR}${INCMPFR:+ }-I$additional_includedir"
10795 if test -n "$found_la"; then
10796 save_libdir
="$libdir"
10797 case "$found_la" in
10798 */* |
*\\*) .
"$found_la" ;;
10799 *) .
"./$found_la" ;;
10801 libdir
="$save_libdir"
10802 for dep
in $dependency_libs; do
10805 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10806 if test "X$additional_libdir" != "X/usr/lib"; then
10808 if test "X$additional_libdir" = "X/usr/local/lib"; then
10809 if test -n "$GCC"; then
10811 linux
*) haveit
=yes;;
10815 if test -z "$haveit"; then
10817 for x
in $LDFLAGS $LIBMPFR; do
10819 acl_save_prefix
="$prefix"
10820 prefix
="$acl_final_prefix"
10821 acl_save_exec_prefix
="$exec_prefix"
10822 exec_prefix
="$acl_final_exec_prefix"
10824 exec_prefix
="$acl_save_exec_prefix"
10825 prefix
="$acl_save_prefix"
10827 if test "X$x" = "X-L$additional_libdir"; then
10832 if test -z "$haveit"; then
10833 if test -d "$additional_libdir"; then
10834 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$additional_libdir"
10838 for x
in $LDFLAGS $LTLIBMPFR; do
10840 acl_save_prefix
="$prefix"
10841 prefix
="$acl_final_prefix"
10842 acl_save_exec_prefix
="$exec_prefix"
10843 exec_prefix
="$acl_final_exec_prefix"
10845 exec_prefix
="$acl_save_exec_prefix"
10846 prefix
="$acl_save_prefix"
10848 if test "X$x" = "X-L$additional_libdir"; then
10853 if test -z "$haveit"; then
10854 if test -d "$additional_libdir"; then
10855 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$additional_libdir"
10862 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10863 if test "$enable_rpath" != no
; then
10865 for x
in $rpathdirs; do
10866 if test "X$x" = "X$dir"; then
10871 if test -z "$haveit"; then
10872 rpathdirs
="$rpathdirs $dir"
10875 for x
in $ltrpathdirs; do
10876 if test "X$x" = "X$dir"; then
10881 if test -z "$haveit"; then
10882 ltrpathdirs
="$ltrpathdirs $dir"
10887 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10890 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10893 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$dep"
10894 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$dep"
10900 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
10901 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10902 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l$name"
10904 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l:lib$name.$libext"
10905 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l:lib$name.$libext"
10912 if test "X$rpathdirs" != "X"; then
10913 if test -n "$hardcode_libdir_separator"; then
10915 for found_dir
in $rpathdirs; do
10916 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10918 acl_save_libdir
="$libdir"
10920 eval flag
=\"$hardcode_libdir_flag_spec\"
10921 libdir
="$acl_save_libdir"
10922 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10924 for found_dir
in $rpathdirs; do
10925 acl_save_libdir
="$libdir"
10926 libdir
="$found_dir"
10927 eval flag
=\"$hardcode_libdir_flag_spec\"
10928 libdir
="$acl_save_libdir"
10929 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10933 if test "X$ltrpathdirs" != "X"; then
10934 for found_dir
in $ltrpathdirs; do
10935 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-R$found_dir"
10940 ac_save_CPPFLAGS
="$CPPFLAGS"
10942 for element
in $INCMPFR; do
10944 for x
in $CPPFLAGS; do
10946 acl_save_prefix
="$prefix"
10947 prefix
="$acl_final_prefix"
10948 acl_save_exec_prefix
="$exec_prefix"
10949 exec_prefix
="$acl_final_exec_prefix"
10951 exec_prefix
="$acl_save_exec_prefix"
10952 prefix
="$acl_save_prefix"
10954 if test "X$x" = "X$element"; then
10959 if test -z "$haveit"; then
10960 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpfr" >&5
10966 $as_echo_n "checking for libmpfr... " >&6; }
10967 if ${ac_cv_libmpfr+:} false
; then :
10968 $as_echo_n "(cached) " >&6
10971 ac_save_LIBS
="$LIBS"
10972 LIBS
="$LIBS $LIBMPFR"
10973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10974 /* end confdefs.h. */
10979 mpfr_exp_t exp; mpfr_t x;
10980 mpfr_frexp (&exp, x, x, MPFR_RNDN);
10985 if ac_fn_c_try_link
"$LINENO"; then :
10990 rm -f core conftest.err conftest.
$ac_objext \
10991 conftest
$ac_exeext conftest.
$ac_ext
10992 LIBS
="$ac_save_LIBS"
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmpfr" >&5
10996 $as_echo "$ac_cv_libmpfr" >&6; }
10997 if test "$ac_cv_libmpfr" = yes; then
11000 $as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libmpfr" >&5
11003 $as_echo_n "checking how to link with libmpfr... " >&6; }
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPFR" >&5
11005 $as_echo "$LIBMPFR" >&6; }
11008 CPPFLAGS
="$ac_save_CPPFLAGS"
11018 if test "$HAVE_LIBMPFR" != yes; then
11019 if test "$with_mpfr" = yes; then
11020 as_fn_error $?
"MPFR is missing or unusable" "$LINENO" 5
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR is missing or unusable; some features may be unavailable." >&5
11023 $as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;}
11028 # --------------------- #
11029 # Check for libpython. #
11030 # --------------------- #
11037 # Check whether --with-python was given.
11038 if test "${with_python+set}" = set; then :
11039 withval
=$with_python;
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
11045 $as_echo_n "checking whether to use python... " >&6; }
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
11047 $as_echo "$with_python" >&6; }
11049 if test "${with_python}" = no
; then
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
11051 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
11054 case "${with_python}" in
11056 if test -d "${with_python}"; then
11057 # Assume the python binary is ${with_python}/bin/python.
11058 python_prog
="${with_python}/bin/python"
11060 # If python does not exit ${with_python}/bin, then try in
11061 # ${with_python}. On Windows/MinGW, this is where the Python
11063 if test ! -x "${python_prog}"; then
11064 python_prog
="${with_python}/python"
11067 if test ! -x "${python_prog}"; then
11068 # Fall back to gdb 7.0/7.1 behaviour.
11069 python_prog
=missing
11070 python_prefix
=${with_python}
11072 elif test -x "${with_python}"; then
11073 # While we can't run python compiled for $host (unless host == build),
11074 # the user could write a script that provides the needed information,
11075 # so we support that.
11076 python_prog
=${with_python}
11079 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
11083 # Disallow --with-python=foo/bar.
11084 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
11087 # The user has either specified auto, yes, or the name of the python
11088 # program assumed to be in $PATH.
11090 case "${with_python}" in
11092 if test "${build}" = "${host}"; then
11093 # Extract the first word of "python", so it can be a program name with args.
11094 set dummy python
; ac_word
=$2
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11096 $as_echo_n "checking for $ac_word... " >&6; }
11097 if ${ac_cv_path_python_prog_path+:} false
; then :
11098 $as_echo_n "(cached) " >&6
11100 case $python_prog_path in
11102 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
11105 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11106 for as_dir
in $PATH
11109 test -z "$as_dir" && as_dir
=.
11110 for ac_exec_ext
in '' $ac_executable_extensions; do
11111 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11112 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
11113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11120 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
11124 python_prog_path
=$ac_cv_path_python_prog_path
11125 if test -n "$python_prog_path"; then
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
11127 $as_echo "$python_prog_path" >&6; }
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11130 $as_echo "no" >&6; }
11134 if test "${python_prog_path}" = missing
; then
11135 python_prog
=missing
11137 python_prog
=${python_prog_path}
11140 # Not much we can do except assume the cross-compiler will find the
11142 python_prog
=missing
11146 # While we can't run python compiled for $host (unless host == build),
11147 # the user could write a script that provides the needed information,
11148 # so we support that.
11149 python_prog
="${with_python}"
11150 # Extract the first word of "${python_prog}", so it can be a program name with args.
11151 set dummy
${python_prog}; ac_word
=$2
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11153 $as_echo_n "checking for $ac_word... " >&6; }
11154 if ${ac_cv_path_python_prog_path+:} false
; then :
11155 $as_echo_n "(cached) " >&6
11157 case $python_prog_path in
11159 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
11162 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11163 for as_dir
in $PATH
11166 test -z "$as_dir" && as_dir
=.
11167 for ac_exec_ext
in '' $ac_executable_extensions; do
11168 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11169 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
11170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11177 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
11181 python_prog_path
=$ac_cv_path_python_prog_path
11182 if test -n "$python_prog_path"; then
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
11184 $as_echo "$python_prog_path" >&6; }
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11187 $as_echo "no" >&6; }
11191 if test "${python_prog_path}" = missing
; then
11192 as_fn_error $?
"unable to find python program ${python_prog}" "$LINENO" 5
11198 if test "${python_prog}" != missing
; then
11199 # We have a python program to use, but it may be too old.
11200 # Don't flag an error for --with-python=auto (the default).
11201 have_python_config
=yes
11202 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
11203 if test $?
!= 0; then
11204 have_python_config
=failed
11205 if test "${with_python}" != auto
; then
11206 as_fn_error $?
"failure running python-config --includes" "$LINENO" 5
11209 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
11210 if test $?
!= 0; then
11211 have_python_config
=failed
11212 if test "${with_python}" != auto
; then
11213 as_fn_error $?
"failure running python-config --ldflags" "$LINENO" 5
11216 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
11217 if test $?
!= 0; then
11218 have_python_config
=failed
11219 if test "${with_python}" != auto
; then
11220 as_fn_error $?
"failure running python-config --exec-prefix" "$LINENO" 5
11224 # We do not have a python executable we can use to determine where
11225 # to find the Python headers and libs. We cannot guess the include
11226 # path from the python_prefix either, because that include path
11227 # depends on the Python version. So, there is nothing much we can
11228 # do except assume that the compiler will be able to find those files.
11231 have_python_config
=no
11234 # If we have python-config, only try the configuration it provides.
11235 # Otherwise fallback on the old way of trying different versions of
11239 if test "${have_python_config}" = yes; then
11242 new_CPPFLAGS
=${python_includes}
11243 new_LIBS
=${python_libs}
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
11245 $as_echo_n "checking for python... " >&6; }
11246 save_CPPFLAGS
=$CPPFLAGS
11248 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11249 LIBS
="$new_LIBS $LIBS"
11250 found_usable_python
=no
11251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11252 /* end confdefs.h. */
11253 #include "Python.h"
11262 if ac_fn_c_try_link
"$LINENO"; then :
11264 found_usable_python
=yes
11265 PYTHON_CPPFLAGS
=$new_CPPFLAGS
11266 PYTHON_LIBS
=$new_LIBS
11268 rm -f core conftest.err conftest.
$ac_objext \
11269 conftest
$ac_exeext conftest.
$ac_ext
11270 CPPFLAGS
=$save_CPPFLAGS
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11273 $as_echo "${found_usable_python}" >&6; }
11275 elif test "${have_python_config}" != failed
; then
11276 if test "${have_libpython}" = no
; then
11279 new_CPPFLAGS
=${python_includes}
11280 new_LIBS
="-lpython2.7 ${python_libs}"
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
11282 $as_echo_n "checking for python... " >&6; }
11283 save_CPPFLAGS
=$CPPFLAGS
11285 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11286 LIBS
="$new_LIBS $LIBS"
11287 found_usable_python
=no
11288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11289 /* end confdefs.h. */
11290 #include "Python.h"
11299 if ac_fn_c_try_link
"$LINENO"; then :
11301 found_usable_python
=yes
11302 PYTHON_CPPFLAGS
=$new_CPPFLAGS
11303 PYTHON_LIBS
=$new_LIBS
11305 rm -f core conftest.err conftest.
$ac_objext \
11306 conftest
$ac_exeext conftest.
$ac_ext
11307 CPPFLAGS
=$save_CPPFLAGS
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11310 $as_echo "${found_usable_python}" >&6; }
11313 if test "${have_libpython}" = no
; then
11316 new_CPPFLAGS
=${python_includes}
11317 new_LIBS
="-lpython2.6 ${python_libs}"
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
11319 $as_echo_n "checking for python... " >&6; }
11320 save_CPPFLAGS
=$CPPFLAGS
11322 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11323 LIBS
="$new_LIBS $LIBS"
11324 found_usable_python
=no
11325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11326 /* end confdefs.h. */
11327 #include "Python.h"
11336 if ac_fn_c_try_link
"$LINENO"; then :
11338 found_usable_python
=yes
11339 PYTHON_CPPFLAGS
=$new_CPPFLAGS
11340 PYTHON_LIBS
=$new_LIBS
11342 rm -f core conftest.err conftest.
$ac_objext \
11343 conftest
$ac_exeext conftest.
$ac_ext
11344 CPPFLAGS
=$save_CPPFLAGS
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11347 $as_echo "${found_usable_python}" >&6; }
11352 if test "${have_libpython}" = no
; then
11353 case "${with_python}" in
11355 as_fn_error $?
"python is missing or unusable" "$LINENO" 5
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
11359 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
11362 as_fn_error $?
"no usable python found at ${with_python}" "$LINENO" 5
11366 if test -n "${python_prefix}"; then
11368 cat >>confdefs.h
<<_ACEOF
11369 #define WITH_PYTHON_PATH "${python_prefix}"
11373 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
11374 if test "x$prefix" = xNONE
; then
11375 test_prefix
=/usr
/local
11377 test_prefix
=$prefix
11380 test_prefix
=$exec_prefix
11383 case ${python_prefix} in
11384 "${test_prefix}"|
"${test_prefix}/"*|\
11385 '${exec_prefix}'|
'${exec_prefix}/'*)
11390 cat >>confdefs.h
<<_ACEOF
11391 #define PYTHON_PATH_RELOCATABLE $value
11400 # Check whether --with-python-libdir was given.
11401 if test "${with_python_libdir+set}" = set; then :
11402 withval
=$with_python_libdir;
11405 # If no python libdir is specified then select one based on
11406 # python's prefix path.
11407 if test -n "${python_prefix}"; then
11408 with_python_libdir
=${python_prefix}/lib
11414 if test "${have_libpython}" != no
; then
11416 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
11418 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
11419 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
11420 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
11421 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
11422 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
11424 if test -n "${with_python_libdir}"; then
11426 cat >>confdefs.h
<<_ACEOF
11427 #define WITH_PYTHON_LIBDIR "${with_python_libdir}"
11431 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
11432 if test "x$prefix" = xNONE
; then
11433 test_prefix
=/usr
/local
11435 test_prefix
=$prefix
11438 test_prefix
=$exec_prefix
11441 case ${with_python_libdir} in
11442 "${test_prefix}"|
"${test_prefix}/"*|\
11443 '${exec_prefix}'|
'${exec_prefix}/'*)
11448 cat >>confdefs.h
<<_ACEOF
11449 #define PYTHON_LIBDIR_RELOCATABLE $value
11455 # Flags needed to compile Python code (taken from python-config --cflags).
11456 # We cannot call python-config directly because it will output whatever was
11457 # used when compiling the Python interpreter itself, including flags which
11458 # would make the python-related objects be compiled differently from the
11459 # rest of GDB (e.g., -O2 and -fPIC).
11460 if test "${GCC}" = yes; then
11461 tentative_python_cflags
="-fno-strict-aliasing -fwrapv"
11462 # Python headers recommend -DNDEBUG, but it's unclear if that just
11463 # refers to building Python itself. In release mode, though, it
11464 # doesn't hurt for the Python code in gdb to follow.
11465 $development || tentative_python_cflags
="$tentative_python_cflags -DNDEBUG"
11468 if test "x${tentative_python_cflags}" != x
; then
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
11470 $as_echo_n "checking compiler flags for python code... " >&6; }
11471 for flag
in ${tentative_python_cflags}; do
11472 # Check that the compiler accepts it
11473 saved_CFLAGS
="$CFLAGS"
11474 CFLAGS
="$CFLAGS $flag"
11475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11476 /* end confdefs.h. */
11486 if ac_fn_c_try_compile
"$LINENO"; then :
11487 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
11489 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11490 CFLAGS
="$saved_CFLAGS"
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
11493 $as_echo "${PYTHON_CFLAGS}" >&6; }
11496 # On x64 Windows, Python's include headers, and pyconfig.h in
11497 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
11498 # version of Windows. Unfortunately, MS_WIN64 is only defined if
11499 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
11500 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
11501 # The issue was reported to the Python community, but still isn't
11502 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
11504 case "$gdb_host" in
11506 if test "${GCC}" = yes; then
11507 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
11512 # Even if Python support is not compiled in, we need to have this file
11513 # included so that the "python" command, et.al., still exists.
11514 CONFIG_OBS
="$CONFIG_OBS python/python.o"
11515 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
11518 # Work around Python http://bugs.python.org/issue10112. See also
11519 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
11520 # no effect. Note that the only test after this that uses Python is
11521 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
11522 # run without -export-dynamic too.
11523 PYTHON_LIBS
=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
11528 if test "${have_libpython}" != no
; then
11530 HAVE_PYTHON_FALSE
='#'
11532 HAVE_PYTHON_TRUE
='#'
11537 # -------------------- #
11538 # Check for libguile. #
11539 # -------------------- #
11546 # Check whether --with-guile was given.
11547 if test "${with_guile+set}" = set; then :
11548 withval
=$with_guile;
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
11554 $as_echo_n "checking whether to use guile... " >&6; }
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
11556 $as_echo "$with_guile" >&6; }
11558 # Extract the first word of "pkg-config", so it can be a program name with args.
11559 set dummy pkg-config
; ac_word
=$2
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11561 $as_echo_n "checking for $ac_word... " >&6; }
11562 if ${ac_cv_path_pkg_config_prog_path+:} false
; then :
11563 $as_echo_n "(cached) " >&6
11565 case $pkg_config_prog_path in
11567 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
11570 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11571 for as_dir
in $PATH
11574 test -z "$as_dir" && as_dir
=.
11575 for ac_exec_ext
in '' $ac_executable_extensions; do
11576 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11577 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
11578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11585 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
11589 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
11590 if test -n "$pkg_config_prog_path"; then
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
11592 $as_echo "$pkg_config_prog_path" >&6; }
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11595 $as_echo "no" >&6; }
11600 try_guile_versions
="guile-3.0 guile-2.2 guile-2.0"
11602 case "${with_guile}" in
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
11605 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
11608 if test "${pkg_config_prog_path}" = "missing"; then
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
11610 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
11613 pkg_config
=${pkg_config_prog_path}
11614 guile_version_list
=${try_guile_versions}
11617 found_usable_guile
=checking
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11619 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11620 for guile_version
in ${guile_version_list}; do
11621 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11622 if test $?
!= 0; then
11625 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11626 if test $?
!= 0; then
11627 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11629 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11630 if test $?
!= 0; then
11631 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11633 found_usable_guile
=${guile_version}
11636 if test "${found_usable_guile}" = "checking"; then
11637 if test "${flag_errors}" = "yes"; then
11638 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11640 found_usable_guile
=no
11643 if test "${found_usable_guile}" != no
; then
11644 save_CPPFLAGS
=$CPPFLAGS
11646 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11647 LIBS
="$LIBS $new_LIBS"
11648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11649 /* end confdefs.h. */
11650 #include "libguile.h"
11659 if ac_fn_c_try_link
"$LINENO"; then :
11661 GUILE_CPPFLAGS
=$new_CPPFLAGS
11662 GUILE_LIBS
=$new_LIBS
11664 found_usable_guile
=no
11666 rm -f core conftest.err conftest.
$ac_objext \
11667 conftest
$ac_exeext conftest.
$ac_ext
11668 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11669 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11671 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11676 CPPFLAGS
=$save_CPPFLAGS
11678 if test "${found_usable_guile}" = no
; then
11679 if test "${flag_errors}" = yes; then
11680 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11682 as_fn_error $?
"linking guile version ${guile_version} test program failed
11683 See \`config.log' for more details" "$LINENO" 5; }
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11688 $as_echo "${found_usable_guile}" >&6; }
11693 if test "${pkg_config_prog_path}" = "missing"; then
11694 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11697 pkg_config
=${pkg_config_prog_path}
11698 guile_version_list
=${try_guile_versions}
11701 found_usable_guile
=checking
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11703 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11704 for guile_version
in ${guile_version_list}; do
11705 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11706 if test $?
!= 0; then
11709 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11710 if test $?
!= 0; then
11711 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11713 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11714 if test $?
!= 0; then
11715 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11717 found_usable_guile
=${guile_version}
11720 if test "${found_usable_guile}" = "checking"; then
11721 if test "${flag_errors}" = "yes"; then
11722 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11724 found_usable_guile
=no
11727 if test "${found_usable_guile}" != no
; then
11728 save_CPPFLAGS
=$CPPFLAGS
11730 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11731 LIBS
="$LIBS $new_LIBS"
11732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11733 /* end confdefs.h. */
11734 #include "libguile.h"
11743 if ac_fn_c_try_link
"$LINENO"; then :
11745 GUILE_CPPFLAGS
=$new_CPPFLAGS
11746 GUILE_LIBS
=$new_LIBS
11748 found_usable_guile
=no
11750 rm -f core conftest.err conftest.
$ac_objext \
11751 conftest
$ac_exeext conftest.
$ac_ext
11752 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11753 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11755 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11760 CPPFLAGS
=$save_CPPFLAGS
11762 if test "${found_usable_guile}" = no
; then
11763 if test "${flag_errors}" = yes; then
11764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11766 as_fn_error $?
"linking guile version ${guile_version} test program failed
11767 See \`config.log' for more details" "$LINENO" 5; }
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11772 $as_echo "${found_usable_guile}" >&6; }
11776 if test -x "${with_guile}"; then
11778 pkg_config
=${with_guile}
11779 guile_version_list
=${try_guile_versions}
11782 found_usable_guile
=checking
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11784 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11785 for guile_version
in ${guile_version_list}; do
11786 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11787 if test $?
!= 0; then
11790 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11791 if test $?
!= 0; then
11792 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11794 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11795 if test $?
!= 0; then
11796 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11798 found_usable_guile
=${guile_version}
11801 if test "${found_usable_guile}" = "checking"; then
11802 if test "${flag_errors}" = "yes"; then
11803 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11805 found_usable_guile
=no
11808 if test "${found_usable_guile}" != no
; then
11809 save_CPPFLAGS
=$CPPFLAGS
11811 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11812 LIBS
="$LIBS $new_LIBS"
11813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11814 /* end confdefs.h. */
11815 #include "libguile.h"
11824 if ac_fn_c_try_link
"$LINENO"; then :
11826 GUILE_CPPFLAGS
=$new_CPPFLAGS
11827 GUILE_LIBS
=$new_LIBS
11829 found_usable_guile
=no
11831 rm -f core conftest.err conftest.
$ac_objext \
11832 conftest
$ac_exeext conftest.
$ac_ext
11833 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11834 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11836 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11841 CPPFLAGS
=$save_CPPFLAGS
11843 if test "${found_usable_guile}" = no
; then
11844 if test "${flag_errors}" = yes; then
11845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11847 as_fn_error $?
"linking guile version ${guile_version} test program failed
11848 See \`config.log' for more details" "$LINENO" 5; }
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11853 $as_echo "${found_usable_guile}" >&6; }
11856 as_fn_error $?
"Guile config program not executable: ${with_guile}" "$LINENO" 5
11860 # Disallow --with=guile="" and --with-guile=foo/bar.
11861 as_fn_error $?
"invalid value for --with-guile" "$LINENO" 5
11864 # A space separate list of guile versions to try, in order.
11865 if test "${pkg_config_prog_path}" = "missing"; then
11866 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11869 pkg_config
=${pkg_config_prog_path}
11870 guile_version_list
=${with_guile}
11873 found_usable_guile
=checking
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11875 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11876 for guile_version
in ${guile_version_list}; do
11877 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11878 if test $?
!= 0; then
11881 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11882 if test $?
!= 0; then
11883 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11885 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11886 if test $?
!= 0; then
11887 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11889 found_usable_guile
=${guile_version}
11892 if test "${found_usable_guile}" = "checking"; then
11893 if test "${flag_errors}" = "yes"; then
11894 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11896 found_usable_guile
=no
11899 if test "${found_usable_guile}" != no
; then
11900 save_CPPFLAGS
=$CPPFLAGS
11902 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11903 LIBS
="$LIBS $new_LIBS"
11904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11905 /* end confdefs.h. */
11906 #include "libguile.h"
11915 if ac_fn_c_try_link
"$LINENO"; then :
11917 GUILE_CPPFLAGS
=$new_CPPFLAGS
11918 GUILE_LIBS
=$new_LIBS
11920 found_usable_guile
=no
11922 rm -f core conftest.err conftest.
$ac_objext \
11923 conftest
$ac_exeext conftest.
$ac_ext
11924 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11925 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11927 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11932 CPPFLAGS
=$save_CPPFLAGS
11934 if test "${found_usable_guile}" = no
; then
11935 if test "${flag_errors}" = yes; then
11936 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11938 as_fn_error $?
"linking guile version ${guile_version} test program failed
11939 See \`config.log' for more details" "$LINENO" 5; }
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11944 $as_echo "${found_usable_guile}" >&6; }
11949 if test "${have_libguile}" != no
; then
11950 case "${with_guile}" in
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11954 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11955 if ${ac_cv_guild_program_name+:} false
; then :
11956 $as_echo_n "(cached) " >&6
11958 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
11960 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11961 # the 'guild' and 'bindir' variables. In that case, try to guess
11962 # what the program name is, at the risk of getting it wrong if
11963 # Guile was configured with '--program-suffix' or similar.
11964 if test "x$ac_cv_guild_program_name" = "x"; then
11965 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
11966 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11971 $as_echo "$ac_cv_guild_program_name" >&6; }
11973 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11974 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11977 GUILD
="$ac_cv_guild_program_name"
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11984 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11985 if ${ac_cv_guild_program_name+:} false
; then :
11986 $as_echo_n "(cached) " >&6
11988 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
11990 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11991 # the 'guild' and 'bindir' variables. In that case, try to guess
11992 # what the program name is, at the risk of getting it wrong if
11993 # Guile was configured with '--program-suffix' or similar.
11994 if test "x$ac_cv_guild_program_name" = "x"; then
11995 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
11996 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
12001 $as_echo "$ac_cv_guild_program_name" >&6; }
12003 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
12004 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
12007 GUILD
="$ac_cv_guild_program_name"
12014 if test "$cross_compiling" = no
; then
12017 GUILD_TARGET_FLAG
="--target=$host"
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
12024 $as_echo_n "checking whether guild supports this host... " >&6; }
12025 if ${ac_cv_guild_ok+:} false
; then :
12026 $as_echo_n "(cached) " >&6
12028 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
12029 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
12036 $as_echo "$ac_cv_guild_ok" >&6; }
12038 if test "$ac_cv_guild_ok" = no
; then
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
12041 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
12045 if test "${have_libguile}" != no
; then
12047 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
12049 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
12050 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
12051 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
12052 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
12053 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
12056 save_CPPFLAGS
="$CPPFLAGS"
12058 CPPFLAGS
="$GUILE_CPPFLAGS"
12059 for ac_func
in scm_new_smob
12061 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
12062 if test "x$ac_cv_func_scm_new_smob" = xyes
; then :
12063 cat >>confdefs.h
<<_ACEOF
12064 #define HAVE_SCM_NEW_SMOB 1
12071 CPPFLAGS
="$save_CPPFLAGS"
12073 # Even if Guile support is not compiled in, we need to have these files
12075 CONFIG_OBS
="$CONFIG_OBS guile/guile.o"
12076 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
12080 if test "${have_libguile}" != no
; then
12082 HAVE_GUILE_FALSE
='#'
12084 HAVE_GUILE_TRUE
='#'
12089 # ---------------------------- #
12090 # Check for source highlight. #
12091 # ---------------------------- #
12096 # Check whether --enable-source-highlight was given.
12097 if test "${enable_source_highlight+set}" = set; then :
12098 enableval
=$enable_source_highlight; case "${enableval}" in
12099 yes) enable_source_highlight
=yes ;;
12100 no
) enable_source_highlight
=no
;;
12101 *) as_fn_error $?
"bad value ${enableval} for source-highlight option" "$LINENO" 5 ;;
12104 enable_source_highlight
=auto
12108 if test "${enable_source_highlight}" != "no"; then
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
12110 $as_echo_n "checking for the source-highlight library... " >&6; }
12111 if test "${pkg_config_prog_path}" = "missing"; then
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
12113 $as_echo "no - pkg-config not found" >&6; }
12114 if test "${enable_source_highlight}" = "yes"; then
12115 as_fn_error $?
"pkg-config was not found in your system" "$LINENO" 5
12118 if ${pkg_config_prog_path} --exists source-highlight
; then
12121 as_fn_error $?
"source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
12125 SRCHIGH_CFLAGS
=`${pkg_config_prog_path} --cflags source-highlight`
12126 SRCHIGH_LIBS
=`${pkg_config_prog_path} --libs source-highlight`
12128 $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12131 $as_echo "yes" >&6; }
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12134 $as_echo "no" >&6; }
12135 if test "${enable_source_highlight}" = "yes"; then
12136 as_fn_error $?
"source-highlight was not found in your system" "$LINENO" 5
12144 # ------------------------- #
12145 # Checks for header files. #
12146 # ------------------------- #
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12149 $as_echo_n "checking for ANSI C header files... " >&6; }
12150 if ${ac_cv_header_stdc+:} false
; then :
12151 $as_echo_n "(cached) " >&6
12153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12154 /* end confdefs.h. */
12155 #include <stdlib.h>
12156 #include <stdarg.h>
12157 #include <string.h>
12168 if ac_fn_c_try_compile
"$LINENO"; then :
12169 ac_cv_header_stdc
=yes
12171 ac_cv_header_stdc
=no
12173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12175 if test $ac_cv_header_stdc = yes; then
12176 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12178 /* end confdefs.h. */
12179 #include <string.h>
12182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12183 $EGREP "memchr" >/dev
/null
2>&1; then :
12186 ac_cv_header_stdc
=no
12192 if test $ac_cv_header_stdc = yes; then
12193 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12195 /* end confdefs.h. */
12196 #include <stdlib.h>
12199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12200 $EGREP "free" >/dev
/null
2>&1; then :
12203 ac_cv_header_stdc
=no
12209 if test $ac_cv_header_stdc = yes; then
12210 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12211 if test "$cross_compiling" = yes; then :
12214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12215 /* end confdefs.h. */
12217 #include <stdlib.h>
12218 #if ((' ' & 0x0FF) == 0x020)
12219 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12220 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12222 # define ISLOWER(c) \
12223 (('a' <= (c) && (c) <= 'i') \
12224 || ('j' <= (c) && (c) <= 'r') \
12225 || ('s' <= (c) && (c) <= 'z'))
12226 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12229 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12234 for (i = 0; i < 256; i++)
12235 if (XOR (islower (i), ISLOWER (i))
12236 || toupper (i) != TOUPPER (i))
12241 if ac_fn_c_try_run
"$LINENO"; then :
12244 ac_cv_header_stdc
=no
12246 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12247 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12253 $as_echo "$ac_cv_header_stdc" >&6; }
12254 if test $ac_cv_header_stdc = yes; then
12256 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12260 # elf_hp.h is for HP/UX 64-bit shared library support.
12261 for ac_header
in nlist.h machine
/reg.h \
12263 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
12264 sys
/procctl.h sys
/resource.h sys
/ptrace.h ptrace.h \
12265 sys
/reg.h sys
/debugreg.h \
12268 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12269 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12270 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12271 cat >>confdefs.h
<<_ACEOF
12272 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12279 for ac_header
in sys
/user.h
12281 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
12282 # include <sys/param.h>
12286 if test "x$ac_cv_header_sys_user_h" = xyes
; then :
12287 cat >>confdefs.h
<<_ACEOF
12288 #define HAVE_SYS_USER_H 1
12296 for ac_header
in curses.h cursesX.h ncurses.h ncursesw
/ncurses.h ncurses
/ncurses.h ncurses
/term.h
12298 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12299 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12300 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12301 cat >>confdefs.h
<<_ACEOF
12302 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12309 for ac_header
in term.h
12311 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
12312 # include <curses.h>
12316 if test "x$ac_cv_header_term_h" = xyes
; then :
12317 cat >>confdefs.h
<<_ACEOF
12318 #define HAVE_TERM_H 1
12326 for ac_header
in sys
/socket.h
12328 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
12329 if test "x$ac_cv_header_sys_socket_h" = xyes
; then :
12330 cat >>confdefs.h
<<_ACEOF
12331 #define HAVE_SYS_SOCKET_H 1
12338 for ac_header
in ws2tcpip.h
12340 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
12341 if test "x$ac_cv_header_ws2tcpip_h" = xyes
; then :
12342 cat >>confdefs.h
<<_ACEOF
12343 #define HAVE_WS2TCPIP_H 1
12351 # ------------------------- #
12352 # Checks for declarations. #
12353 # ------------------------- #
12356 # Check for presence and size of long long.
12357 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12358 if test "x$ac_cv_type_long_long" = xyes
; then :
12360 cat >>confdefs.h
<<_ACEOF
12361 #define HAVE_LONG_LONG 1
12364 # The cast to long int works around a bug in the HP C Compiler
12365 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12366 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12367 # This bug is HP SR number 8606223364.
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12369 $as_echo_n "checking size of long long... " >&6; }
12370 if ${ac_cv_sizeof_long_long+:} false
; then :
12371 $as_echo_n "(cached) " >&6
12373 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12376 if test "$ac_cv_type_long_long" = yes; then
12377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12379 as_fn_error
77 "cannot compute sizeof (long long)
12380 See \`config.log' for more details" "$LINENO" 5; }
12382 ac_cv_sizeof_long_long
=0
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12388 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12392 cat >>confdefs.h
<<_ACEOF
12393 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12400 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
12401 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
12402 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
12408 cat >>confdefs.h
<<_ACEOF
12409 #define HAVE_DECL_BASENAME $ac_have_decl
12411 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
12412 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
12418 cat >>confdefs.h
<<_ACEOF
12419 #define HAVE_DECL_FFS $ac_have_decl
12421 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12422 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
12428 cat >>confdefs.h
<<_ACEOF
12429 #define HAVE_DECL_ASPRINTF $ac_have_decl
12431 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12432 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
12438 cat >>confdefs.h
<<_ACEOF
12439 #define HAVE_DECL_VASPRINTF $ac_have_decl
12441 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12442 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12448 cat >>confdefs.h
<<_ACEOF
12449 #define HAVE_DECL_SNPRINTF $ac_have_decl
12451 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12452 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
12458 cat >>confdefs.h
<<_ACEOF
12459 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12462 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
12463 if test "x$ac_cv_have_decl_strtol" = xyes
; then :
12469 cat >>confdefs.h
<<_ACEOF
12470 #define HAVE_DECL_STRTOL $ac_have_decl
12472 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
12473 if test "x$ac_cv_have_decl_strtoul" = xyes
; then :
12479 cat >>confdefs.h
<<_ACEOF
12480 #define HAVE_DECL_STRTOUL $ac_have_decl
12482 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
12483 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
12489 cat >>confdefs.h
<<_ACEOF
12490 #define HAVE_DECL_STRTOLL $ac_have_decl
12492 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
12493 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
12499 cat >>confdefs.h
<<_ACEOF
12500 #define HAVE_DECL_STRTOULL $ac_have_decl
12503 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12504 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
12510 cat >>confdefs.h
<<_ACEOF
12511 #define HAVE_DECL_STRVERSCMP $ac_have_decl
12516 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12517 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12523 cat >>confdefs.h
<<_ACEOF
12524 #define HAVE_DECL_SNPRINTF $ac_have_decl
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12529 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12530 if ${am_cv_val_LC_MESSAGES+:} false
; then :
12531 $as_echo_n "(cached) " >&6
12533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12534 /* end confdefs.h. */
12535 #include <locale.h>
12544 if ac_fn_c_try_link
"$LINENO"; then :
12545 am_cv_val_LC_MESSAGES
=yes
12547 am_cv_val_LC_MESSAGES
=no
12549 rm -f core conftest.err conftest.
$ac_objext \
12550 conftest
$ac_exeext conftest.
$ac_ext
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12553 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12554 if test $am_cv_val_LC_MESSAGES = yes; then
12556 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12561 # ------------------ #
12562 # Checks for types. #
12563 # ------------------ #
12565 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12566 #if HAVE_SYS_SOCKET_H
12567 # include <sys/socket.h>
12568 #elif HAVE_WS2TCPIP_H
12569 # include <ws2tcpip.h>
12573 if test "x$ac_cv_type_socklen_t" = xyes
; then :
12575 cat >>confdefs.h
<<_ACEOF
12576 #define HAVE_SOCKLEN_T 1
12583 # ------------------------------------- #
12584 # Checks for compiler characteristics. #
12585 # ------------------------------------- #
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12588 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12589 if ${ac_cv_c_const+:} false
; then :
12590 $as_echo_n "(cached) " >&6
12592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12593 /* end confdefs.h. */
12599 #ifndef __cplusplus
12600 /* Ultrix mips cc rejects this sort of thing. */
12601 typedef int charset[2];
12602 const charset cs = { 0, 0 };
12603 /* SunOS 4.1.1 cc rejects this. */
12604 char const *const *pcpcc;
12606 /* NEC SVR4.0.2 mips cc rejects this. */
12607 struct point {int x, y;};
12608 static struct point const zero = {0,0};
12609 /* AIX XL C 1.02.0.0 rejects this.
12610 It does not let you subtract one const X* pointer from another in
12611 an arm of an if-expression whose if-part is not a constant
12613 const char *g = "string";
12614 pcpcc = &g + (g ? g-g : 0);
12615 /* HPUX 7.0 cc rejects these. */
12617 ppc = (char**) pcpcc;
12618 pcpcc = (char const *const *) ppc;
12619 { /* SCO 3.2v4 cc rejects this sort of thing. */
12622 char const *s = 0 ? (char *) 0 : (char const *) 0;
12627 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12628 int x[] = {25, 17};
12629 const int *foo = &x[0];
12632 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12633 typedef const int *iptr;
12637 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12638 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12639 struct s { int j; const int *ap[3]; } bx;
12640 struct s *b = &bx; b->j = 5;
12642 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12643 const int foo = 10;
12644 if (!foo) return 0;
12646 return !cs[0] && !zero.x;
12653 if ac_fn_c_try_compile
"$LINENO"; then :
12658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12661 $as_echo "$ac_cv_c_const" >&6; }
12662 if test $ac_cv_c_const = no
; then
12664 $as_echo "#define const /**/" >>confdefs.h
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12669 $as_echo_n "checking for inline... " >&6; }
12670 if ${ac_cv_c_inline+:} false
; then :
12671 $as_echo_n "(cached) " >&6
12674 for ac_kw
in inline __inline__ __inline
; do
12675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12676 /* end confdefs.h. */
12677 #ifndef __cplusplus
12679 static $ac_kw foo_t static_foo () {return 0; }
12680 $ac_kw foo_t foo () {return 0; }
12684 if ac_fn_c_try_compile
"$LINENO"; then :
12685 ac_cv_c_inline
=$ac_kw
12687 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12688 test "$ac_cv_c_inline" != no
&& break
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12693 $as_echo "$ac_cv_c_inline" >&6; }
12695 case $ac_cv_c_inline in
12698 case $ac_cv_c_inline in
12700 *) ac_val
=$ac_cv_c_inline;;
12702 cat >>confdefs.h
<<_ACEOF
12703 #ifndef __cplusplus
12704 #define inline $ac_val
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12711 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12712 if ${ac_cv_c_bigendian+:} false
; then :
12713 $as_echo_n "(cached) " >&6
12715 ac_cv_c_bigendian
=unknown
12716 # See if we're dealing with a universal compiler.
12717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12718 /* end confdefs.h. */
12719 #ifndef __APPLE_CC__
12720 not a universal capable compiler
12725 if ac_fn_c_try_compile
"$LINENO"; then :
12727 # Check for potential -arch flags. It is not universal unless
12728 # there are at least two -arch flags with different values.
12731 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12732 if test -n "$ac_prev"; then
12734 i?
86 | x86_64 | ppc | ppc64
)
12735 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12738 ac_cv_c_bigendian
=universal
12744 elif test "x$ac_word" = "x-arch"; then
12749 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12750 if test $ac_cv_c_bigendian = unknown
; then
12751 # See if sys/param.h defines the BYTE_ORDER macro.
12752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12753 /* end confdefs.h. */
12754 #include <sys/types.h>
12755 #include <sys/param.h>
12760 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12761 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12763 bogus endian macros
12770 if ac_fn_c_try_compile
"$LINENO"; then :
12771 # It does; now see whether it defined to BIG_ENDIAN or not.
12772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12773 /* end confdefs.h. */
12774 #include <sys/types.h>
12775 #include <sys/param.h>
12780 #if BYTE_ORDER != BIG_ENDIAN
12788 if ac_fn_c_try_compile
"$LINENO"; then :
12789 ac_cv_c_bigendian
=yes
12791 ac_cv_c_bigendian
=no
12793 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12797 if test $ac_cv_c_bigendian = unknown
; then
12798 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12800 /* end confdefs.h. */
12801 #include <limits.h>
12806 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12807 bogus endian macros
12814 if ac_fn_c_try_compile
"$LINENO"; then :
12815 # It does; now see whether it defined to _BIG_ENDIAN or not.
12816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12817 /* end confdefs.h. */
12818 #include <limits.h>
12823 #ifndef _BIG_ENDIAN
12831 if ac_fn_c_try_compile
"$LINENO"; then :
12832 ac_cv_c_bigendian
=yes
12834 ac_cv_c_bigendian
=no
12836 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12838 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12840 if test $ac_cv_c_bigendian = unknown
; then
12841 # Compile a test program.
12842 if test "$cross_compiling" = yes; then :
12843 # Try to guess by grepping values from an object file.
12844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12845 /* end confdefs.h. */
12846 short int ascii_mm[] =
12847 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12848 short int ascii_ii[] =
12849 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12850 int use_ascii (int i) {
12851 return ascii_mm[i] + ascii_ii[i];
12853 short int ebcdic_ii[] =
12854 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12855 short int ebcdic_mm[] =
12856 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12857 int use_ebcdic (int i) {
12858 return ebcdic_mm[i] + ebcdic_ii[i];
12865 return use_ascii (foo) == use_ebcdic (foo);
12870 if ac_fn_c_try_compile
"$LINENO"; then :
12871 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12872 ac_cv_c_bigendian
=yes
12874 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12875 if test "$ac_cv_c_bigendian" = unknown
; then
12876 ac_cv_c_bigendian
=no
12878 # finding both strings is unlikely to happen, but who knows?
12879 ac_cv_c_bigendian
=unknown
12883 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12886 /* end confdefs.h. */
12887 $ac_includes_default
12892 /* Are we little or big endian? From Harbison&Steele. */
12896 char c[sizeof (long int)];
12899 return u.c[sizeof (long int) - 1] == 1;
12905 if ac_fn_c_try_run
"$LINENO"; then :
12906 ac_cv_c_bigendian
=no
12908 ac_cv_c_bigendian
=yes
12910 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12911 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12917 $as_echo "$ac_cv_c_bigendian" >&6; }
12918 case $ac_cv_c_bigendian in #(
12920 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12926 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12930 as_fn_error $?
"unknown endianness
12931 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12935 # ------------------------------ #
12936 # Checks for library functions. #
12937 # ------------------------------ #
12939 for ac_func
in getuid getgid \
12940 pipe pread pread64 pwrite resize_term \
12942 sigaction sigsetmask socketpair \
12943 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
12944 setrlimit getrlimit posix_madvise waitpid \
12947 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12948 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12949 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12950 cat >>confdefs.h
<<_ACEOF
12951 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12959 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12960 if ${am_cv_langinfo_codeset+:} false
; then :
12961 $as_echo_n "(cached) " >&6
12963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12964 /* end confdefs.h. */
12965 #include <langinfo.h>
12969 char* cs = nl_langinfo(CODESET);
12974 if ac_fn_c_try_link
"$LINENO"; then :
12975 am_cv_langinfo_codeset
=yes
12977 am_cv_langinfo_codeset
=no
12979 rm -f core conftest.err conftest.
$ac_objext \
12980 conftest
$ac_exeext conftest.
$ac_ext
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12984 $as_echo "$am_cv_langinfo_codeset" >&6; }
12985 if test $am_cv_langinfo_codeset = yes; then
12987 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12991 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12992 if test "x$ac_cv_type_size_t" = xyes
; then :
12996 cat >>confdefs.h
<<_ACEOF
12997 #define size_t unsigned int
13005 for ac_header
in $ac_header_list
13007 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13008 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13010 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13011 cat >>confdefs.h
<<_ACEOF
13012 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13025 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13026 if test "x$ac_cv_type_pid_t" = xyes
; then :
13030 cat >>confdefs.h
<<_ACEOF
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13037 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13038 if ${ac_cv_path_SED+:} false
; then :
13039 $as_echo_n "(cached) " >&6
13041 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
13042 for ac_i
in 1 2 3 4 5 6 7; do
13043 ac_script
="$ac_script$as_nl$ac_script"
13045 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
13046 { ac_script
=; unset ac_script
;}
13047 if test -z "$SED"; then
13048 ac_path_SED_found
=false
13049 # Loop through the user's path and test for each of PROGNAME-LIST
13050 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13051 for as_dir
in $PATH
13054 test -z "$as_dir" && as_dir
=.
13055 for ac_prog
in sed gsed
; do
13056 for ac_exec_ext
in '' $ac_executable_extensions; do
13057 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
13058 as_fn_executable_p
"$ac_path_SED" ||
continue
13059 # Check for GNU ac_path_SED and select it if it is found.
13060 # Check for GNU $ac_path_SED
13061 case `"$ac_path_SED" --version 2>&1` in
13063 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
13066 $as_echo_n 0123456789 >"conftest.in"
13069 cat "conftest.in" "conftest.in" >"conftest.tmp"
13070 mv "conftest.tmp" "conftest.in"
13071 cp "conftest.in" "conftest.nl"
13072 $as_echo '' >> "conftest.nl"
13073 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13074 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13075 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13076 if test $ac_count -gt ${ac_path_SED_max-0}; then
13077 # Best one so far, save it but keep looking for a better one
13078 ac_cv_path_SED
="$ac_path_SED"
13079 ac_path_SED_max
=$ac_count
13081 # 10*(2^10) chars as input seems more than enough
13082 test $ac_count -gt 10 && break
13084 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13087 $ac_path_SED_found && break 3
13092 if test -z "$ac_cv_path_SED"; then
13093 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
13096 ac_cv_path_SED
=$SED
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13101 $as_echo "$ac_cv_path_SED" >&6; }
13102 SED
="$ac_cv_path_SED"
13106 # Set the 'development' global.
13107 .
$srcdir/..
/bfd
/development.sh
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13110 $as_echo_n "checking for ANSI C header files... " >&6; }
13111 if ${ac_cv_header_stdc+:} false
; then :
13112 $as_echo_n "(cached) " >&6
13114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13115 /* end confdefs.h. */
13116 #include <stdlib.h>
13117 #include <stdarg.h>
13118 #include <string.h>
13129 if ac_fn_c_try_compile
"$LINENO"; then :
13130 ac_cv_header_stdc
=yes
13132 ac_cv_header_stdc
=no
13134 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13136 if test $ac_cv_header_stdc = yes; then
13137 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13139 /* end confdefs.h. */
13140 #include <string.h>
13143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13144 $EGREP "memchr" >/dev
/null
2>&1; then :
13147 ac_cv_header_stdc
=no
13153 if test $ac_cv_header_stdc = yes; then
13154 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13156 /* end confdefs.h. */
13157 #include <stdlib.h>
13160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13161 $EGREP "free" >/dev
/null
2>&1; then :
13164 ac_cv_header_stdc
=no
13170 if test $ac_cv_header_stdc = yes; then
13171 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13172 if test "$cross_compiling" = yes; then :
13175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13176 /* end confdefs.h. */
13178 #include <stdlib.h>
13179 #if ((' ' & 0x0FF) == 0x020)
13180 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13181 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13183 # define ISLOWER(c) \
13184 (('a' <= (c) && (c) <= 'i') \
13185 || ('j' <= (c) && (c) <= 'r') \
13186 || ('s' <= (c) && (c) <= 'z'))
13187 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13190 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13195 for (i = 0; i < 256; i++)
13196 if (XOR (islower (i), ISLOWER (i))
13197 || toupper (i) != TOUPPER (i))
13202 if ac_fn_c_try_run
"$LINENO"; then :
13205 ac_cv_header_stdc
=no
13207 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13208 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13214 $as_echo "$ac_cv_header_stdc" >&6; }
13215 if test $ac_cv_header_stdc = yes; then
13217 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13221 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13222 # for constant arguments. Useless!
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13224 $as_echo_n "checking for working alloca.h... " >&6; }
13225 if ${ac_cv_working_alloca_h+:} false
; then :
13226 $as_echo_n "(cached) " >&6
13228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13229 /* end confdefs.h. */
13230 #include <alloca.h>
13234 char *p = (char *) alloca (2 * sizeof (int));
13240 if ac_fn_c_try_link
"$LINENO"; then :
13241 ac_cv_working_alloca_h
=yes
13243 ac_cv_working_alloca_h
=no
13245 rm -f core conftest.err conftest.
$ac_objext \
13246 conftest
$ac_exeext conftest.
$ac_ext
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13249 $as_echo "$ac_cv_working_alloca_h" >&6; }
13250 if test $ac_cv_working_alloca_h = yes; then
13252 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13257 $as_echo_n "checking for alloca... " >&6; }
13258 if ${ac_cv_func_alloca_works+:} false
; then :
13259 $as_echo_n "(cached) " >&6
13261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13262 /* end confdefs.h. */
13264 # define alloca __builtin_alloca
13267 # include <malloc.h>
13268 # define alloca _alloca
13270 # ifdef HAVE_ALLOCA_H
13271 # include <alloca.h>
13276 # ifndef alloca /* predefined by HP cc +Olibcalls */
13277 void *alloca (size_t);
13287 char *p = (char *) alloca (1);
13293 if ac_fn_c_try_link
"$LINENO"; then :
13294 ac_cv_func_alloca_works
=yes
13296 ac_cv_func_alloca_works
=no
13298 rm -f core conftest.err conftest.
$ac_objext \
13299 conftest
$ac_exeext conftest.
$ac_ext
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13302 $as_echo "$ac_cv_func_alloca_works" >&6; }
13304 if test $ac_cv_func_alloca_works = yes; then
13306 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13309 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13310 # that cause trouble. Some versions do not even contain alloca or
13311 # contain a buggy version. If you still want to use their alloca,
13312 # use ar to extract alloca.o from them instead of compiling alloca.c.
13314 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
13316 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13320 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13321 if ${ac_cv_os_cray+:} false
; then :
13322 $as_echo_n "(cached) " >&6
13324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13325 /* end confdefs.h. */
13326 #if defined CRAY && ! defined CRAY2
13333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13334 $EGREP "webecray" >/dev
/null
2>&1; then :
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13343 $as_echo "$ac_cv_os_cray" >&6; }
13344 if test $ac_cv_os_cray = yes; then
13345 for ac_func
in _getb67 GETB67 getb67
; do
13346 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13347 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13348 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13350 cat >>confdefs.h
<<_ACEOF
13351 #define CRAY_STACKSEG_END $ac_func
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13361 $as_echo_n "checking stack direction for C alloca... " >&6; }
13362 if ${ac_cv_c_stack_direction+:} false
; then :
13363 $as_echo_n "(cached) " >&6
13365 if test "$cross_compiling" = yes; then :
13366 ac_cv_c_stack_direction
=0
13368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13369 /* end confdefs.h. */
13370 $ac_includes_default
13372 find_stack_direction (int *addr, int depth)
13374 int dir, dummy = 0;
13377 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13378 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13379 return dir + dummy;
13383 main (int argc, char **argv)
13385 return find_stack_direction (0, argc + !argv + 20) < 0;
13388 if ac_fn_c_try_run
"$LINENO"; then :
13389 ac_cv_c_stack_direction
=1
13391 ac_cv_c_stack_direction
=-1
13393 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13394 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13399 $as_echo "$ac_cv_c_stack_direction" >&6; }
13400 cat >>confdefs.h
<<_ACEOF
13401 #define STACK_DIRECTION $ac_cv_c_stack_direction
13412 $as_echo "#define USE_WIN32API 1" >>confdefs.h
13414 WIN32APILIBS
="-lws2_32"
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13420 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13421 if ${am_cv_langinfo_codeset+:} false
; then :
13422 $as_echo_n "(cached) " >&6
13424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13425 /* end confdefs.h. */
13426 #include <langinfo.h>
13430 char* cs = nl_langinfo(CODESET);
13435 if ac_fn_c_try_link
"$LINENO"; then :
13436 am_cv_langinfo_codeset
=yes
13438 am_cv_langinfo_codeset
=no
13440 rm -f core conftest.err conftest.
$ac_objext \
13441 conftest
$ac_exeext conftest.
$ac_ext
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13445 $as_echo "$am_cv_langinfo_codeset" >&6; }
13446 if test $am_cv_langinfo_codeset = yes; then
13448 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13453 for ac_header
in linux
/perf_event.h locale.h memory.h signal.h sys
/resource.h sys
/socket.h sys
/un.h sys
/wait.h thread_db.h
wait.h termios.h dlfcn.h linux
/elf.h proc_service.h poll.h sys
/poll.h sys
/select.h
13455 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13456 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13457 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13458 cat >>confdefs.h
<<_ACEOF
13459 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13468 for ac_func
in getpagesize
13470 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13471 if test "x$ac_cv_func_getpagesize" = xyes
; then :
13472 cat >>confdefs.h
<<_ACEOF
13473 #define HAVE_GETPAGESIZE 1
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13480 $as_echo_n "checking for working mmap... " >&6; }
13481 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
13482 $as_echo_n "(cached) " >&6
13484 if test "$cross_compiling" = yes; then :
13485 ac_cv_func_mmap_fixed_mapped
=no
13487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13488 /* end confdefs.h. */
13489 $ac_includes_default
13490 /* malloc might have been renamed as rpl_malloc. */
13493 /* Thanks to Mike Haertel and Jim Avera for this test.
13494 Here is a matrix of mmap possibilities:
13495 mmap private not fixed
13496 mmap private fixed at somewhere currently unmapped
13497 mmap private fixed at somewhere already mapped
13498 mmap shared not fixed
13499 mmap shared fixed at somewhere currently unmapped
13500 mmap shared fixed at somewhere already mapped
13501 For private mappings, we should verify that changes cannot be read()
13502 back from the file, nor mmap's back from the file at a different
13503 address. (There have been systems where private was not correctly
13504 implemented like the infamous i386 svr4.0, and systems where the
13505 VM page cache was not coherent with the file system buffer cache
13506 like early versions of FreeBSD and possibly contemporary NetBSD.)
13507 For shared mappings, we should conversely verify that changes get
13508 propagated back to all the places they're supposed to be.
13510 Grep wants private fixed already mapped.
13511 The main things grep needs to know about mmap are:
13512 * does it exist and is it safe to write into the mmap'd area
13513 * how to use it (BSD variants) */
13516 #include <sys/mman.h>
13518 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13522 /* This mess was copied from the GNU getpagesize.h. */
13523 #ifndef HAVE_GETPAGESIZE
13524 # ifdef _SC_PAGESIZE
13525 # define getpagesize() sysconf(_SC_PAGESIZE)
13526 # else /* no _SC_PAGESIZE */
13527 # ifdef HAVE_SYS_PARAM_H
13528 # include <sys/param.h>
13529 # ifdef EXEC_PAGESIZE
13530 # define getpagesize() EXEC_PAGESIZE
13531 # else /* no EXEC_PAGESIZE */
13533 # define getpagesize() NBPG * CLSIZE
13536 # endif /* no CLSIZE */
13537 # else /* no NBPG */
13539 # define getpagesize() NBPC
13540 # else /* no NBPC */
13542 # define getpagesize() PAGESIZE
13543 # endif /* PAGESIZE */
13544 # endif /* no NBPC */
13545 # endif /* no NBPG */
13546 # endif /* no EXEC_PAGESIZE */
13547 # else /* no HAVE_SYS_PARAM_H */
13548 # define getpagesize() 8192 /* punt totally */
13549 # endif /* no HAVE_SYS_PARAM_H */
13550 # endif /* no _SC_PAGESIZE */
13552 #endif /* no HAVE_GETPAGESIZE */
13557 char *data, *data2, *data3;
13558 const char *cdata2;
13562 pagesize = getpagesize ();
13564 /* First, make a file with some known garbage in it. */
13565 data = (char *) malloc (pagesize);
13568 for (i = 0; i < pagesize; ++i)
13569 *(data + i) = rand ();
13571 fd = creat ("conftest.mmap", 0600);
13574 if (write (fd, data, pagesize) != pagesize)
13578 /* Next, check that the tail of a page is zero-filled. File must have
13579 non-zero length, otherwise we risk SIGBUS for entire page. */
13580 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13584 if (write (fd2, cdata2, 1) != 1)
13586 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13587 if (data2 == MAP_FAILED)
13589 for (i = 0; i < pagesize; ++i)
13593 if (munmap (data2, pagesize))
13596 /* Next, try to mmap the file at a fixed address which already has
13597 something else allocated at it. If we can, also make sure that
13598 we see the same garbage. */
13599 fd = open ("conftest.mmap", O_RDWR);
13602 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13603 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13605 for (i = 0; i < pagesize; ++i)
13606 if (*(data + i) != *(data2 + i))
13609 /* Finally, make sure that changes to the mapped area do not
13610 percolate back to the file as seen by read(). (This is a bug on
13611 some variants of i386 svr4.0.) */
13612 for (i = 0; i < pagesize; ++i)
13613 *(data2 + i) = *(data2 + i) + 1;
13614 data3 = (char *) malloc (pagesize);
13617 if (read (fd, data3, pagesize) != pagesize)
13619 for (i = 0; i < pagesize; ++i)
13620 if (*(data + i) != *(data3 + i))
13626 if ac_fn_c_try_run
"$LINENO"; then :
13627 ac_cv_func_mmap_fixed_mapped
=yes
13629 ac_cv_func_mmap_fixed_mapped
=no
13631 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13632 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13637 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13638 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13640 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13643 rm -f conftest.mmap conftest.txt
13645 for ac_header
in vfork.h
13647 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13648 if test "x$ac_cv_header_vfork_h" = xyes
; then :
13649 cat >>confdefs.h
<<_ACEOF
13650 #define HAVE_VFORK_H 1
13657 for ac_func
in fork vfork
13659 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13660 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13661 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13662 cat >>confdefs.h
<<_ACEOF
13663 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13669 if test "x$ac_cv_func_fork" = xyes
; then
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13671 $as_echo_n "checking for working fork... " >&6; }
13672 if ${ac_cv_func_fork_works+:} false
; then :
13673 $as_echo_n "(cached) " >&6
13675 if test "$cross_compiling" = yes; then :
13676 ac_cv_func_fork_works
=cross
13678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13679 /* end confdefs.h. */
13680 $ac_includes_default
13685 /* By Ruediger Kuhlmann. */
13686 return fork () < 0;
13692 if ac_fn_c_try_run
"$LINENO"; then :
13693 ac_cv_func_fork_works
=yes
13695 ac_cv_func_fork_works
=no
13697 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13698 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13703 $as_echo "$ac_cv_func_fork_works" >&6; }
13706 ac_cv_func_fork_works
=$ac_cv_func_fork
13708 if test "x$ac_cv_func_fork_works" = xcross
; then
13710 *-*-amigaos* |
*-*-msdosdjgpp*)
13711 # Override, as these systems have only a dummy fork() stub
13712 ac_cv_func_fork_works
=no
13715 ac_cv_func_fork_works
=yes
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13719 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13721 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13722 if test "x$ac_cv_func_vfork" = xyes
; then
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13724 $as_echo_n "checking for working vfork... " >&6; }
13725 if ${ac_cv_func_vfork_works+:} false
; then :
13726 $as_echo_n "(cached) " >&6
13728 if test "$cross_compiling" = yes; then :
13729 ac_cv_func_vfork_works
=cross
13731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13732 /* end confdefs.h. */
13733 /* Thanks to Paul Eggert for this test. */
13734 $ac_includes_default
13735 #include <sys/wait.h>
13736 #ifdef HAVE_VFORK_H
13737 # include <vfork.h>
13739 /* On some sparc systems, changes by the child to local and incoming
13740 argument registers are propagated back to the parent. The compiler
13741 is told about this with #include <vfork.h>, but some compilers
13742 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13743 static variable whose address is put into a register that is
13744 clobbered by the vfork. */
13747 sparc_address_test (int arg)
13749 sparc_address_test (arg) int arg;
13752 static pid_t child;
13770 pid_t parent = getpid ();
13773 sparc_address_test (0);
13778 /* Here is another test for sparc vfork register problems. This
13779 test uses lots of local variables, at least as many local
13780 variables as main has allocated so far including compiler
13781 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13782 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13783 reuse the register of parent for one of the local variables,
13784 since it will think that parent can't possibly be used any more
13785 in this routine. Assigning to the local variable will thus
13786 munge parent in the parent process. */
13788 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13789 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13790 /* Convince the compiler that p..p7 are live; otherwise, it might
13791 use the same hardware register for all 8 local variables. */
13792 if (p != p1 || p != p2 || p != p3 || p != p4
13793 || p != p5 || p != p6 || p != p7)
13796 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13797 from child file descriptors. If the child closes a descriptor
13798 before it execs or exits, this munges the parent's descriptor
13799 as well. Test for this by closing stdout in the child. */
13800 _exit(close(fileno(stdout)) != 0);
13805 while (wait(&status) != child)
13808 /* Was there some problem with vforking? */
13811 /* Did the child fail? (This shouldn't happen.) */
13814 /* Did the vfork/compiler bug occur? */
13815 || parent != getpid()
13817 /* Did the file descriptor bug occur? */
13818 || fstat(fileno(stdout), &st) != 0
13823 if ac_fn_c_try_run
"$LINENO"; then :
13824 ac_cv_func_vfork_works
=yes
13826 ac_cv_func_vfork_works
=no
13828 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13829 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13834 $as_echo "$ac_cv_func_vfork_works" >&6; }
13837 if test "x$ac_cv_func_fork_works" = xcross
; then
13838 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13840 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13843 if test "x$ac_cv_func_vfork_works" = xyes
; then
13845 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13849 $as_echo "#define vfork fork" >>confdefs.h
13852 if test "x$ac_cv_func_fork_works" = xyes
; then
13854 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13858 for ac_func
in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
13859 ptrace64 sbrk setns sigaltstack sigprocmask \
13860 setpgid setpgrp getrusage getauxval
13862 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13863 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13864 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13865 cat >>confdefs.h
<<_ACEOF
13866 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13873 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13874 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
13880 cat >>confdefs.h
<<_ACEOF
13881 #define HAVE_DECL_STRSTR $ac_have_decl
13885 # ----------------------- #
13886 # Checks for structures. #
13887 # ----------------------- #
13889 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13890 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
13892 cat >>confdefs.h
<<_ACEOF
13893 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13898 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
13899 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
13901 cat >>confdefs.h
<<_ACEOF
13902 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13909 # On FreeBSD we need libutil for the kinfo_get* functions. On
13910 # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
13911 # Figure out which one to use.
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
13913 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
13914 if ${ac_cv_search_kinfo_getfile+:} false
; then :
13915 $as_echo_n "(cached) " >&6
13917 ac_func_search_save_LIBS
=$LIBS
13918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13919 /* end confdefs.h. */
13921 /* Override any GCC internal prototype to avoid an error.
13922 Use char because int might match the return type of a GCC
13923 builtin and then its argument prototype would still apply. */
13927 char kinfo_getfile ();
13931 return kinfo_getfile ();
13936 for ac_lib
in '' util util-freebsd
; do
13937 if test -z "$ac_lib"; then
13938 ac_res
="none required"
13941 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13943 if ac_fn_c_try_link
"$LINENO"; then :
13944 ac_cv_search_kinfo_getfile
=$ac_res
13946 rm -f core conftest.err conftest.
$ac_objext \
13948 if ${ac_cv_search_kinfo_getfile+:} false
; then :
13952 if ${ac_cv_search_kinfo_getfile+:} false
; then :
13955 ac_cv_search_kinfo_getfile
=no
13957 rm conftest.
$ac_ext
13958 LIBS
=$ac_func_search_save_LIBS
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
13961 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
13962 ac_res
=$ac_cv_search_kinfo_getfile
13963 if test "$ac_res" != no
; then :
13964 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13969 # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
13970 for ac_func
in kinfo_getfile
13972 ac_fn_c_check_func
"$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
13973 if test "x$ac_cv_func_kinfo_getfile" = xyes
; then :
13974 cat >>confdefs.h
<<_ACEOF
13975 #define HAVE_KINFO_GETFILE 1
13982 # Check for std::thread. This does not work on some platforms, like
13985 ac_cpp
='$CXXCPP $CPPFLAGS'
13986 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13987 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13988 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
13995 ac_cpp
='$CPP $CPPFLAGS'
13996 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13997 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13998 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14002 # We used to check for pthread.h first, but this fails if pthread.h
14003 # requires special compiler flags (e.g. on Tru64 or Sequent).
14004 # It gets checked for in the link test anyway.
14006 # First of all, check if the user has set any of the PTHREAD_LIBS,
14007 # etcetera environment variables, and if threads linking works using
14009 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
14010 ax_pthread_save_CC
="$CC"
14011 ax_pthread_save_CFLAGS
="$CFLAGS"
14012 ax_pthread_save_LIBS
="$LIBS"
14013 if test "x$PTHREAD_CC" != "x"; then :
14016 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
14017 LIBS
="$PTHREAD_LIBS $LIBS"
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
14019 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
14020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14021 /* end confdefs.h. */
14023 /* Override any GCC internal prototype to avoid an error.
14024 Use char because int might match the return type of a GCC
14025 builtin and then its argument prototype would still apply. */
14029 char pthread_join ();
14033 return pthread_join ();
14038 if ac_fn_c_try_link
"$LINENO"; then :
14041 rm -f core conftest.err conftest.
$ac_objext \
14042 conftest
$ac_exeext conftest.
$ac_ext
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14044 $as_echo "$ax_pthread_ok" >&6; }
14045 if test "x$ax_pthread_ok" = "xno"; then
14049 CC
="$ax_pthread_save_CC"
14050 CFLAGS
="$ax_pthread_save_CFLAGS"
14051 LIBS
="$ax_pthread_save_LIBS"
14054 # We must check for the threads library under a number of different
14055 # names; the ordering is very important because some systems
14056 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14057 # libraries is broken (non-POSIX).
14059 # Create a list of thread flags to try. Items starting with a "-" are
14060 # C compiler flags, and other items are library names, except for "none"
14061 # which indicates that we try without any flags at all, and "pthread-config"
14062 # which is a program returning the flags for the Pth emulation library.
14064 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14066 # The ordering *is* (sometimes) important. Some notes on the
14067 # individual items follow:
14069 # pthreads: AIX (must check this before -lpthread)
14070 # none: in case threads are in libc; should be tried before -Kthread and
14071 # other compiler flags to prevent continual compiler warnings
14072 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14073 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
14074 # (Note: HP C rejects this with "bad form for `-t' option")
14075 # -pthreads: Solaris/gcc (Note: HP C also rejects)
14076 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14077 # doesn't hurt to check since this sometimes defines pthreads and
14078 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
14079 # is present but should not be used directly; and before -mthreads,
14080 # because the compiler interprets this as "-mt" + "-hreads")
14081 # -mthreads: Mingw32/gcc, Lynx/gcc
14082 # pthread: Linux, etcetera
14083 # --thread-safe: KAI C++
14084 # pthread-config: use pthread-config program (for GNU Pth library)
14090 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14091 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14093 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
14098 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
14099 # multi-threading and also sets -lpthread."
14101 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
14106 # IBM z/OS requires a feature-test macro to be defined in order to
14107 # enable POSIX threads at all, so give the user a hint if this is
14108 # not set. (We don't define these ourselves, as they can affect
14109 # other portions of the system API in unpredictable ways.)
14111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14112 /* end confdefs.h. */
14114 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
14115 AX_PTHREAD_ZOS_MISSING
14119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14120 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
14122 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
14130 # On Solaris (at least, for some versions), libc contains stubbed
14131 # (non-functional) versions of the pthreads routines, so link-based
14132 # tests will erroneously succeed. (N.B.: The stubs are missing
14133 # pthread_cleanup_push, or rather a function called by this macro,
14134 # so we could check for that, but who knows whether they'll stub
14135 # that too in a future libc.) So we'll check first for the
14136 # standard Solaris way of linking pthreads (-mt -lpthread).
14138 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
14142 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
14144 if test "x$GCC" = "xyes"; then :
14145 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
14148 # The presence of a feature test macro requesting re-entrant function
14149 # definitions is, on some systems, a strong hint that pthreads support is
14150 # correctly enabled
14153 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
14154 ax_pthread_check_macro
="_REENTRANT"
14158 ax_pthread_check_macro
="_THREAD_SAFE"
14162 ax_pthread_check_macro
="--"
14165 if test "x$ax_pthread_check_macro" = "x--"; then :
14166 ax_pthread_check_cond
=0
14168 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
14171 # Are we compiling with Clang?
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
14174 $as_echo_n "checking whether $CC is Clang... " >&6; }
14175 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
14176 $as_echo_n "(cached) " >&6
14178 ax_cv_PTHREAD_CLANG
=no
14179 # Note that Autoconf sets GCC=yes for Clang as well as GCC
14180 if test "x$GCC" = "xyes"; then
14181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14182 /* end confdefs.h. */
14183 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
14184 # if defined(__clang__) && defined(__llvm__)
14185 AX_PTHREAD_CC_IS_CLANG
14189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14190 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
14191 ax_cv_PTHREAD_CLANG
=yes
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
14199 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
14200 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
14202 ax_pthread_clang_warning
=no
14204 # Clang needs special handling, because older versions handle the -pthread
14205 # option in a rather... idiosyncratic way
14207 if test "x$ax_pthread_clang" = "xyes"; then
14209 # Clang takes -pthread; it has never supported any other flag
14211 # (Note 1: This will need to be revisited if a system that Clang
14212 # supports has POSIX threads in a separate library. This tends not
14213 # to be the way of modern systems, but it's conceivable.)
14215 # (Note 2: On some systems, notably Darwin, -pthread is not needed
14216 # to get POSIX threads support; the API is always present and
14217 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
14218 # -pthread does define _REENTRANT, and while the Darwin headers
14219 # ignore this macro, third-party headers might not.)
14221 PTHREAD_CFLAGS
="-pthread"
14226 # However, older versions of Clang make a point of warning the user
14227 # that, in an invocation where only linking and no compilation is
14228 # taking place, the -pthread option has no effect ("argument unused
14229 # during compilation"). They expect -pthread to be passed in only
14230 # when source code is being compiled.
14232 # Problem is, this is at odds with the way Automake and most other
14233 # C build frameworks function, which is that the same flags used in
14234 # compilation (CFLAGS) are also used in linking. Many systems
14235 # supported by AX_PTHREAD require exactly this for POSIX threads
14236 # support, and in fact it is often not straightforward to specify a
14237 # flag that is used only in the compilation phase and not in
14238 # linking. Such a scenario is extremely rare in practice.
14240 # Even though use of the -pthread flag in linking would only print
14241 # a warning, this can be a nuisance for well-run software projects
14242 # that build with -Werror. So if the active version of Clang has
14243 # this misfeature, we search for an option to squash it.
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
14246 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
14247 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
14248 $as_echo_n "(cached) " >&6
14250 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
14251 # Create an alternate version of $ac_link that compiles and
14252 # links in two steps (.c -> .o, .o -> exe) instead of one
14253 # (.c -> exe), because the warning occurs only in the second
14255 ax_pthread_save_ac_link
="$ac_link"
14256 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
14257 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
14258 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
14259 ax_pthread_save_CFLAGS
="$CFLAGS"
14260 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
14261 if test "x$ax_pthread_try" = "xunknown"; then :
14264 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
14265 ac_link
="$ax_pthread_save_ac_link"
14266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14267 /* end confdefs.h. */
14268 int main(void){return 0;}
14270 if ac_fn_c_try_link
"$LINENO"; then :
14271 ac_link
="$ax_pthread_2step_ac_link"
14272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14273 /* end confdefs.h. */
14274 int main(void){return 0;}
14276 if ac_fn_c_try_link
"$LINENO"; then :
14279 rm -f core conftest.err conftest.
$ac_objext \
14280 conftest
$ac_exeext conftest.
$ac_ext
14283 rm -f core conftest.err conftest.
$ac_objext \
14284 conftest
$ac_exeext conftest.
$ac_ext
14286 ac_link
="$ax_pthread_save_ac_link"
14287 CFLAGS
="$ax_pthread_save_CFLAGS"
14288 if test "x$ax_pthread_try" = "x"; then :
14291 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
14295 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
14297 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
14299 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
14302 fi # $ax_pthread_clang = yes
14304 if test "x$ax_pthread_ok" = "xno"; then
14305 for ax_pthread_try_flag
in $ax_pthread_flags; do
14307 case $ax_pthread_try_flag in
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14310 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
14315 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
14316 PTHREAD_CFLAGS
="-mt"
14317 PTHREAD_LIBS
="-lpthread"
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
14322 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
14323 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
14327 # Extract the first word of "pthread-config", so it can be a program name with args.
14328 set dummy pthread-config
; ac_word
=$2
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14330 $as_echo_n "checking for $ac_word... " >&6; }
14331 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
14332 $as_echo_n "(cached) " >&6
14334 if test -n "$ax_pthread_config"; then
14335 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
14337 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14338 for as_dir
in $PATH
14341 test -z "$as_dir" && as_dir
=.
14342 for ac_exec_ext
in '' $ac_executable_extensions; do
14343 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14344 ac_cv_prog_ax_pthread_config
="yes"
14345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14352 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
14355 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
14356 if test -n "$ax_pthread_config"; then
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
14358 $as_echo "$ax_pthread_config" >&6; }
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14361 $as_echo "no" >&6; }
14365 if test "x$ax_pthread_config" = "xno"; then :
14368 PTHREAD_CFLAGS
="`pthread-config --cflags`"
14369 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
14374 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
14375 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
14379 ax_pthread_save_CFLAGS
="$CFLAGS"
14380 ax_pthread_save_LIBS
="$LIBS"
14381 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
14382 LIBS
="$PTHREAD_LIBS $LIBS"
14384 # Check for various functions. We must include pthread.h,
14385 # since some functions may be macros. (On the Sequent, we
14386 # need a special flag -Kthread to make this header compile.)
14387 # We check for pthread_join because it is in -lpthread on IRIX
14388 # while pthread_create is in libc. We check for pthread_attr_init
14389 # due to DEC craziness with -lpthreads. We check for
14390 # pthread_cleanup_push because it is one of the few pthread
14391 # functions on Solaris that doesn't have a non-functional libc stub.
14392 # We try pthread_create on general principles.
14394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14395 /* end confdefs.h. */
14396 #include <pthread.h>
14397 # if $ax_pthread_check_cond
14398 # error "$ax_pthread_check_macro must be defined"
14400 static void routine(void *a) { a = 0; }
14401 static void *start_routine(void *a) { return a; }
14405 pthread_t th; pthread_attr_t attr;
14406 pthread_create(&th, 0, start_routine, 0);
14407 pthread_join(th, 0);
14408 pthread_attr_init(&attr);
14409 pthread_cleanup_push(routine, 0);
14410 pthread_cleanup_pop(0) /* ; */
14415 if ac_fn_c_try_link
"$LINENO"; then :
14418 rm -f core conftest.err conftest.
$ac_objext \
14419 conftest
$ac_exeext conftest.
$ac_ext
14421 CFLAGS
="$ax_pthread_save_CFLAGS"
14422 LIBS
="$ax_pthread_save_LIBS"
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14425 $as_echo "$ax_pthread_ok" >&6; }
14426 if test "x$ax_pthread_ok" = "xyes"; then :
14435 # Various other checks:
14436 if test "x$ax_pthread_ok" = "xyes"; then
14437 ax_pthread_save_CFLAGS
="$CFLAGS"
14438 ax_pthread_save_LIBS
="$LIBS"
14439 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
14440 LIBS
="$PTHREAD_LIBS $LIBS"
14442 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14444 $as_echo_n "checking for joinable pthread attribute... " >&6; }
14445 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
14446 $as_echo_n "(cached) " >&6
14448 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
14449 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
14450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14451 /* end confdefs.h. */
14452 #include <pthread.h>
14456 int attr = $ax_pthread_attr; return attr /* ; */
14461 if ac_fn_c_try_link
"$LINENO"; then :
14462 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
14464 rm -f core conftest.err conftest.
$ac_objext \
14465 conftest
$ac_exeext conftest.
$ac_ext
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
14470 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
14471 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
14472 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
14473 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
14475 cat >>confdefs.h
<<_ACEOF
14476 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
14479 ax_pthread_joinable_attr_defined
=yes
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
14484 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
14485 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
14486 $as_echo_n "(cached) " >&6
14488 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
14491 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
14497 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
14498 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
14499 test "x$ax_pthread_special_flags_added" != "xyes"; then :
14500 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
14501 ax_pthread_special_flags_added
=yes
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
14505 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
14506 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
14507 $as_echo_n "(cached) " >&6
14509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14510 /* end confdefs.h. */
14511 #include <pthread.h>
14515 int i = PTHREAD_PRIO_INHERIT;
14520 if ac_fn_c_try_link
"$LINENO"; then :
14521 ax_cv_PTHREAD_PRIO_INHERIT
=yes
14523 ax_cv_PTHREAD_PRIO_INHERIT
=no
14525 rm -f core conftest.err conftest.
$ac_objext \
14526 conftest
$ac_exeext conftest.
$ac_ext
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
14530 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
14531 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
14532 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
14534 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
14536 ax_pthread_prio_inherit_defined
=yes
14540 CFLAGS
="$ax_pthread_save_CFLAGS"
14541 LIBS
="$ax_pthread_save_LIBS"
14543 # More AIX lossage: compile with *_r variant
14544 if test "x$GCC" != "xyes"; then
14548 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
14549 #handle absolute path differently from PATH based program lookup
14552 if as_fn_executable_p
${CC}_r
; then :
14553 PTHREAD_CC
="${CC}_r"
14556 for ac_prog
in ${CC}_r
14558 # Extract the first word of "$ac_prog", so it can be a program name with args.
14559 set dummy
$ac_prog; ac_word
=$2
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14561 $as_echo_n "checking for $ac_word... " >&6; }
14562 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
14563 $as_echo_n "(cached) " >&6
14565 if test -n "$PTHREAD_CC"; then
14566 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
14568 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14569 for as_dir
in $PATH
14572 test -z "$as_dir" && as_dir
=.
14573 for ac_exec_ext
in '' $ac_executable_extensions; do
14574 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14575 ac_cv_prog_PTHREAD_CC
="$ac_prog"
14576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14585 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
14586 if test -n "$PTHREAD_CC"; then
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14588 $as_echo "$PTHREAD_CC" >&6; }
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14591 $as_echo "no" >&6; }
14595 test -n "$PTHREAD_CC" && break
14597 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
14608 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
14614 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14615 if test "x$ax_pthread_ok" = "xyes"; then
14623 ac_cpp
='$CXXCPP $CPPFLAGS'
14624 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14625 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14626 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
14629 if test "$threads" = "yes"; then
14631 LIBS
="$PTHREAD_LIBS $LIBS"
14632 save_CXXFLAGS
="$CXXFLAGS"
14633 CXXFLAGS
="$PTHREAD_CFLAGS $save_CXXFLAGS"
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
14635 $as_echo_n "checking for std::thread... " >&6; }
14636 if ${gdb_cv_cxx_std_thread+:} false
; then :
14637 $as_echo_n "(cached) " >&6
14639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14640 /* end confdefs.h. */
14642 void callback() { }
14646 std::thread t(callback);
14651 if ac_fn_cxx_try_compile
"$LINENO"; then :
14652 gdb_cv_cxx_std_thread
=yes
14654 gdb_cv_cxx_std_thread
=no
14656 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
14659 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
14661 # This check must be here, while LIBS includes any necessary
14662 # threading library.
14663 for ac_func
in pthread_sigmask pthread_setname_np
14665 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14666 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14667 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14668 cat >>confdefs.h
<<_ACEOF
14669 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14677 CXXFLAGS
="$save_CXXFLAGS"
14679 if test "$gdb_cv_cxx_std_thread" = "yes"; then
14681 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
14685 ac_cpp
='$CPP $CPPFLAGS'
14686 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14687 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14688 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
14692 $as_echo_n "checking for sigsetjmp... " >&6; }
14693 if ${gdb_cv_func_sigsetjmp+:} false
; then :
14694 $as_echo_n "(cached) " >&6
14696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14697 /* end confdefs.h. */
14698 #include <setjmp.h>
14703 while (! sigsetjmp (env, 1))
14704 siglongjmp (env, 1);
14710 if ac_fn_c_try_compile
"$LINENO"; then :
14711 gdb_cv_func_sigsetjmp
=yes
14713 gdb_cv_func_sigsetjmp
=no
14716 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
14720 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
14721 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
14723 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
14728 # Check whether --with-intel_pt was given.
14729 if test "${with_intel_pt+set}" = set; then :
14730 withval
=$with_intel_pt;
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
14736 $as_echo_n "checking whether to use intel pt... " >&6; }
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
14738 $as_echo "$with_intel_pt" >&6; }
14740 if test "${with_intel_pt}" = no
; then
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
14742 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
14745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14746 /* end confdefs.h. */
14748 #include <linux/perf_event.h>
14749 #ifndef PERF_ATTR_SIZE_VER5
14754 if ac_fn_c_try_cpp
"$LINENO"; then :
14759 rm -f conftest.err conftest.i conftest.
$ac_ext
14760 if test "$perf_event" != yes; then
14761 if test "$with_intel_pt" = yes; then
14762 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
14765 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
14779 acl_save_prefix
="$prefix"
14780 prefix
="$acl_final_prefix"
14781 acl_save_exec_prefix
="$exec_prefix"
14782 exec_prefix
="$acl_final_exec_prefix"
14784 eval additional_includedir
=\"$includedir\"
14785 eval additional_libdir
=\"$libdir\"
14787 exec_prefix
="$acl_save_exec_prefix"
14788 prefix
="$acl_save_prefix"
14791 # Check whether --with-libipt-prefix was given.
14792 if test "${with_libipt_prefix+set}" = set; then :
14793 withval
=$with_libipt_prefix;
14794 if test "X$withval" = "Xno"; then
14797 if test "X$withval" = "X"; then
14799 acl_save_prefix
="$prefix"
14800 prefix
="$acl_final_prefix"
14801 acl_save_exec_prefix
="$exec_prefix"
14802 exec_prefix
="$acl_final_exec_prefix"
14804 eval additional_includedir
=\"$includedir\"
14805 eval additional_libdir
=\"$libdir\"
14807 exec_prefix
="$acl_save_exec_prefix"
14808 prefix
="$acl_save_prefix"
14811 additional_includedir
="$withval/include"
14812 additional_libdir
="$withval/lib"
14819 # Check whether --with-libipt-type was given.
14820 if test "${with_libipt_type+set}" = set; then :
14821 withval
=$with_libipt_type; with_libipt_type
=$withval
14823 with_libipt_type
=auto
14826 lib_type
=`eval echo \$with_libipt_type`
14833 names_already_handled
=
14834 names_next_round
='ipt '
14835 while test -n "$names_next_round"; do
14836 names_this_round
="$names_next_round"
14838 for name
in $names_this_round; do
14840 for n
in $names_already_handled; do
14841 if test "$n" = "$name"; then
14842 already_handled
=yes
14846 if test -z "$already_handled"; then
14847 names_already_handled
="$names_already_handled $name"
14848 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14849 eval value
=\"\
$HAVE_LIB$uppername\"
14850 if test -n "$value"; then
14851 if test "$value" = yes; then
14852 eval value
=\"\
$LIB$uppername\"
14853 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
14854 eval value
=\"\
$LTLIB$uppername\"
14855 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
14864 if test $use_additional = yes; then
14865 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
14866 found_dir
="$additional_libdir"
14867 found_so
="$additional_libdir/lib$name.$shlibext"
14868 if test -f "$additional_libdir/lib$name.la"; then
14869 found_la
="$additional_libdir/lib$name.la"
14871 elif test x
$lib_type != xshared
; then
14872 if test -f "$additional_libdir/lib$name.$libext"; then
14873 found_dir
="$additional_libdir"
14874 found_a
="$additional_libdir/lib$name.$libext"
14875 if test -f "$additional_libdir/lib$name.la"; then
14876 found_la
="$additional_libdir/lib$name.la"
14881 if test "X$found_dir" = "X"; then
14882 for x
in $LDFLAGS $LTLIBIPT; do
14884 acl_save_prefix
="$prefix"
14885 prefix
="$acl_final_prefix"
14886 acl_save_exec_prefix
="$exec_prefix"
14887 exec_prefix
="$acl_final_exec_prefix"
14889 exec_prefix
="$acl_save_exec_prefix"
14890 prefix
="$acl_save_prefix"
14894 dir
=`echo "X$x" | sed -e 's/^X-L//'`
14895 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
14897 found_so
="$dir/lib$name.$shlibext"
14898 if test -f "$dir/lib$name.la"; then
14899 found_la
="$dir/lib$name.la"
14901 elif test x
$lib_type != xshared
; then
14902 if test -f "$dir/lib$name.$libext"; then
14904 found_a
="$dir/lib$name.$libext"
14905 if test -f "$dir/lib$name.la"; then
14906 found_la
="$dir/lib$name.la"
14912 if test "X$found_dir" != "X"; then
14917 if test "X$found_dir" != "X"; then
14918 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
14919 if test "X$found_so" != "X"; then
14920 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
14921 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14924 for x
in $ltrpathdirs; do
14925 if test "X$x" = "X$found_dir"; then
14930 if test -z "$haveit"; then
14931 ltrpathdirs
="$ltrpathdirs $found_dir"
14933 if test "$hardcode_direct" = yes; then
14934 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14936 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
14937 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14939 for x
in $rpathdirs; do
14940 if test "X$x" = "X$found_dir"; then
14945 if test -z "$haveit"; then
14946 rpathdirs
="$rpathdirs $found_dir"
14950 for x
in $LDFLAGS $LIBIPT; do
14952 acl_save_prefix
="$prefix"
14953 prefix
="$acl_final_prefix"
14954 acl_save_exec_prefix
="$exec_prefix"
14955 exec_prefix
="$acl_final_exec_prefix"
14957 exec_prefix
="$acl_save_exec_prefix"
14958 prefix
="$acl_save_prefix"
14960 if test "X$x" = "X-L$found_dir"; then
14965 if test -z "$haveit"; then
14966 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
14968 if test "$hardcode_minus_L" != no
; then
14969 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14971 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
14977 if test "X$found_a" != "X"; then
14978 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
14980 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
14983 additional_includedir
=
14984 case "$found_dir" in
14986 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14987 additional_includedir
="$basedir/include"
14990 if test "X$additional_includedir" != "X"; then
14991 if test "X$additional_includedir" != "X/usr/include"; then
14993 if test "X$additional_includedir" = "X/usr/local/include"; then
14994 if test -n "$GCC"; then
14996 linux
*) haveit
=yes;;
15000 if test -z "$haveit"; then
15001 for x
in $CPPFLAGS $INCIPT; do
15003 acl_save_prefix
="$prefix"
15004 prefix
="$acl_final_prefix"
15005 acl_save_exec_prefix
="$exec_prefix"
15006 exec_prefix
="$acl_final_exec_prefix"
15008 exec_prefix
="$acl_save_exec_prefix"
15009 prefix
="$acl_save_prefix"
15011 if test "X$x" = "X-I$additional_includedir"; then
15016 if test -z "$haveit"; then
15017 if test -d "$additional_includedir"; then
15018 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
15024 if test -n "$found_la"; then
15025 save_libdir
="$libdir"
15026 case "$found_la" in
15027 */* |
*\\*) .
"$found_la" ;;
15028 *) .
"./$found_la" ;;
15030 libdir
="$save_libdir"
15031 for dep
in $dependency_libs; do
15034 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
15035 if test "X$additional_libdir" != "X/usr/lib"; then
15037 if test "X$additional_libdir" = "X/usr/local/lib"; then
15038 if test -n "$GCC"; then
15040 linux
*) haveit
=yes;;
15044 if test -z "$haveit"; then
15046 for x
in $LDFLAGS $LIBIPT; do
15048 acl_save_prefix
="$prefix"
15049 prefix
="$acl_final_prefix"
15050 acl_save_exec_prefix
="$exec_prefix"
15051 exec_prefix
="$acl_final_exec_prefix"
15053 exec_prefix
="$acl_save_exec_prefix"
15054 prefix
="$acl_save_prefix"
15056 if test "X$x" = "X-L$additional_libdir"; then
15061 if test -z "$haveit"; then
15062 if test -d "$additional_libdir"; then
15063 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
15067 for x
in $LDFLAGS $LTLIBIPT; do
15069 acl_save_prefix
="$prefix"
15070 prefix
="$acl_final_prefix"
15071 acl_save_exec_prefix
="$exec_prefix"
15072 exec_prefix
="$acl_final_exec_prefix"
15074 exec_prefix
="$acl_save_exec_prefix"
15075 prefix
="$acl_save_prefix"
15077 if test "X$x" = "X-L$additional_libdir"; then
15082 if test -z "$haveit"; then
15083 if test -d "$additional_libdir"; then
15084 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
15091 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
15092 if test "$enable_rpath" != no
; then
15094 for x
in $rpathdirs; do
15095 if test "X$x" = "X$dir"; then
15100 if test -z "$haveit"; then
15101 rpathdirs
="$rpathdirs $dir"
15104 for x
in $ltrpathdirs; do
15105 if test "X$x" = "X$dir"; then
15110 if test -z "$haveit"; then
15111 ltrpathdirs
="$ltrpathdirs $dir"
15116 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15119 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15122 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
15123 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
15129 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
15130 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
15131 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
15133 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
15134 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
15141 if test "X$rpathdirs" != "X"; then
15142 if test -n "$hardcode_libdir_separator"; then
15144 for found_dir
in $rpathdirs; do
15145 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15147 acl_save_libdir
="$libdir"
15149 eval flag
=\"$hardcode_libdir_flag_spec\"
15150 libdir
="$acl_save_libdir"
15151 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
15153 for found_dir
in $rpathdirs; do
15154 acl_save_libdir
="$libdir"
15155 libdir
="$found_dir"
15156 eval flag
=\"$hardcode_libdir_flag_spec\"
15157 libdir
="$acl_save_libdir"
15158 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
15162 if test "X$ltrpathdirs" != "X"; then
15163 for found_dir
in $ltrpathdirs; do
15164 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
15169 ac_save_CPPFLAGS
="$CPPFLAGS"
15171 for element
in $INCIPT; do
15173 for x
in $CPPFLAGS; do
15175 acl_save_prefix
="$prefix"
15176 prefix
="$acl_final_prefix"
15177 acl_save_exec_prefix
="$exec_prefix"
15178 exec_prefix
="$acl_final_exec_prefix"
15180 exec_prefix
="$acl_save_exec_prefix"
15181 prefix
="$acl_save_prefix"
15183 if test "X$x" = "X$element"; then
15188 if test -z "$haveit"; then
15189 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
15195 $as_echo_n "checking for libipt... " >&6; }
15196 if ${ac_cv_libipt+:} false
; then :
15197 $as_echo_n "(cached) " >&6
15200 ac_save_LIBS
="$LIBS"
15201 LIBS
="$LIBS $LIBIPT"
15202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15203 /* end confdefs.h. */
15204 #include "intel-pt.h"
15208 pt_insn_alloc_decoder (0);
15213 if ac_fn_c_try_link
"$LINENO"; then :
15218 rm -f core conftest.err conftest.
$ac_objext \
15219 conftest
$ac_exeext conftest.
$ac_ext
15220 LIBS
="$ac_save_LIBS"
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
15224 $as_echo "$ac_cv_libipt" >&6; }
15225 if test "$ac_cv_libipt" = yes; then
15228 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
15231 $as_echo_n "checking how to link with libipt... " >&6; }
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
15233 $as_echo "$LIBIPT" >&6; }
15236 CPPFLAGS
="$ac_save_CPPFLAGS"
15246 if test "$HAVE_LIBIPT" != yes; then
15247 if test "$with_intel_pt" = yes; then
15248 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
15251 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
15255 LIBS
="$LIBS $LIBIPT"
15256 for ac_func
in pt_insn_event
15258 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
15259 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
15260 cat >>confdefs.h
<<_ACEOF
15261 #define HAVE_PT_INSN_EVENT 1
15267 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
15269 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
15271 cat >>confdefs.h
<<_ACEOF
15272 #define HAVE_STRUCT_PT_INSN_ENABLED 1
15277 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
15279 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
15281 cat >>confdefs.h
<<_ACEOF
15282 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
15293 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
15295 for ac_header
in sys
/procfs.h
15297 ac_fn_c_check_header_mongrel
"$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
15298 if test "x$ac_cv_header_sys_procfs_h" = xyes
; then :
15299 cat >>confdefs.h
<<_ACEOF
15300 #define HAVE_SYS_PROCFS_H 1
15307 if test "$ac_cv_header_sys_procfs_h" = yes; then
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
15310 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
15311 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
15312 $as_echo_n "(cached) " >&6
15314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15315 /* end confdefs.h. */
15318 #include <sys/procfs.h>
15327 if ac_fn_c_try_compile
"$LINENO"; then :
15328 bfd_cv_have_sys_procfs_type_gregset_t
=yes
15330 bfd_cv_have_sys_procfs_type_gregset_t
=no
15333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15336 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
15338 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
15342 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
15346 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
15347 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
15348 $as_echo_n "(cached) " >&6
15350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15351 /* end confdefs.h. */
15354 #include <sys/procfs.h>
15363 if ac_fn_c_try_compile
"$LINENO"; then :
15364 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
15366 bfd_cv_have_sys_procfs_type_fpregset_t
=no
15369 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15372 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
15374 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
15378 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
15382 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
15383 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
15384 $as_echo_n "(cached) " >&6
15386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15387 /* end confdefs.h. */
15390 #include <sys/procfs.h>
15399 if ac_fn_c_try_compile
"$LINENO"; then :
15400 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
15402 bfd_cv_have_sys_procfs_type_prgregset_t
=no
15405 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15408 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
15410 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
15414 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
15418 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
15419 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
15420 $as_echo_n "(cached) " >&6
15422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15423 /* end confdefs.h. */
15426 #include <sys/procfs.h>
15435 if ac_fn_c_try_compile
"$LINENO"; then :
15436 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
15438 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
15441 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15444 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
15446 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
15450 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
15454 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
15455 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
15456 $as_echo_n "(cached) " >&6
15458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15459 /* end confdefs.h. */
15462 #include <sys/procfs.h>
15471 if ac_fn_c_try_compile
"$LINENO"; then :
15472 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
15474 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
15477 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15480 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
15482 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
15486 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
15490 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
15491 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
15492 $as_echo_n "(cached) " >&6
15494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15495 /* end confdefs.h. */
15498 #include <sys/procfs.h>
15507 if ac_fn_c_try_compile
"$LINENO"; then :
15508 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
15510 bfd_cv_have_sys_procfs_type_lwpid_t
=no
15513 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15516 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
15518 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
15522 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
15526 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
15527 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
15528 $as_echo_n "(cached) " >&6
15530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15531 /* end confdefs.h. */
15534 #include <sys/procfs.h>
15543 if ac_fn_c_try_compile
"$LINENO"; then :
15544 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
15546 bfd_cv_have_sys_procfs_type_psaddr_t
=no
15549 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15552 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
15554 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
15558 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
15562 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
15563 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
15564 $as_echo_n "(cached) " >&6
15566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15567 /* end confdefs.h. */
15570 #include <sys/procfs.h>
15574 elf_fpregset_t avar
15579 if ac_fn_c_try_compile
"$LINENO"; then :
15580 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
15582 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
15585 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15588 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
15590 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
15594 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
15599 # Check the return and argument types of ptrace.
15602 for ac_header
in sys
/ptrace.h ptrace.h
15604 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15605 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15606 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
15607 cat >>confdefs.h
<<_ACEOF
15608 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15616 gdb_ptrace_headers
='
15617 #include <sys/types.h>
15618 #if HAVE_SYS_PTRACE_H
15619 # include <sys/ptrace.h>
15622 # include <unistd.h>
15626 # Check return type. Varargs (used on GNU/Linux) conflict with the
15627 # empty argument list, so check for that explicitly.
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
15629 $as_echo_n "checking return type of ptrace... " >&6; }
15630 if ${gdb_cv_func_ptrace_ret+:} false
; then :
15631 $as_echo_n "(cached) " >&6
15633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15634 /* end confdefs.h. */
15635 Â $gdb_ptrace_headers
15639 extern long ptrace (enum __ptrace_request, ...);
15645 if ac_fn_c_try_compile
"$LINENO"; then :
15646 gdb_cv_func_ptrace_ret
='long'
15648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15649 /* end confdefs.h. */
15650 $gdb_ptrace_headers
15654 extern int ptrace ();
15660 if ac_fn_c_try_compile
"$LINENO"; then :
15661 gdb_cv_func_ptrace_ret
='int'
15663 gdb_cv_func_ptrace_ret
='long'
15666 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15669 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
15673 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
15676 cat >>confdefs.h
<<_ACEOF
15677 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
15681 # Check argument types.
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
15683 $as_echo_n "checking types of arguments for ptrace... " >&6; }
15684 if ${gdb_cv_func_ptrace_args+:} false
; then :
15685 $as_echo_n "(cached) " >&6
15687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15688 /* end confdefs.h. */
15689 $gdb_ptrace_headers
15693 extern long ptrace (enum __ptrace_request, ...);
15699 if ac_fn_c_try_compile
"$LINENO"; then :
15700 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
15702 for gdb_arg1
in 'int' 'long'; do
15703 for gdb_arg2
in 'pid_t' 'int' 'long'; do
15704 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
15705 for gdb_arg4
in 'int' 'long' 'void *'; do
15706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15707 /* end confdefs.h. */
15708 $gdb_ptrace_headers
15712 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
15718 if ac_fn_c_try_compile
"$LINENO"; then :
15719 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
15723 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15725 for gdb_arg5
in 'int *' 'int' 'long'; do
15726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15727 /* end confdefs.h. */
15728 $gdb_ptrace_headers
15732 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
15738 if ac_fn_c_try_compile
"$LINENO"; then :
15739 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
15743 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15749 # Provide a safe default value.
15750 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
15753 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
15757 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
15759 ac_save_IFS
=$IFS; IFS
=','
15760 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
15764 cat >>confdefs.h
<<_ACEOF
15765 #define PTRACE_TYPE_ARG1 $1
15769 cat >>confdefs.h
<<_ACEOF
15770 #define PTRACE_TYPE_ARG3 $3
15774 cat >>confdefs.h
<<_ACEOF
15775 #define PTRACE_TYPE_ARG4 $4
15778 if test -n "$5"; then
15780 cat >>confdefs.h
<<_ACEOF
15781 #define PTRACE_TYPE_ARG5 $5
15787 if test "$cross_compiling" = no
; then
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
15789 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
15790 if ${ac_cv_func_setpgrp_void+:} false
; then :
15791 $as_echo_n "(cached) " >&6
15793 if test "$cross_compiling" = yes; then :
15794 as_fn_error $?
"cannot check setpgrp when cross compiling" "$LINENO" 5
15796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15797 /* end confdefs.h. */
15798 $ac_includes_default
15802 /* If this system has a BSD-style setpgrp which takes arguments,
15803 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
15804 exit successfully. */
15805 return setpgrp (1,1) != -1;
15810 if ac_fn_c_try_run
"$LINENO"; then :
15811 ac_cv_func_setpgrp_void
=no
15813 ac_cv_func_setpgrp_void
=yes
15815 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15816 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
15821 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
15822 if test $ac_cv_func_setpgrp_void = yes; then
15824 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
15830 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
15831 if ${ac_cv_func_setpgrp_void+:} false
; then :
15832 $as_echo_n "(cached) " >&6
15834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15835 /* end confdefs.h. */
15836 #include <unistd.h>
15840 if (setpgrp(1,1) == -1)
15849 if ac_fn_c_try_compile
"$LINENO"; then :
15850 ac_cv_func_setpgrp_void
=no
15852 ac_cv_func_setpgrp_void
=yes
15855 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
15859 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
15860 if test "$ac_cv_func_setpgrp_void" = yes; then
15861 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
15866 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
15867 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
15868 #include <sys/proc.h>
15871 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes
; then :
15873 cat >>confdefs.h
<<_ACEOF
15874 #define HAVE_STRUCT_THREAD_TD_PCB 1
15881 # See if <sys/lwp.h> defines `struct lwp`.
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
15883 $as_echo_n "checking for struct lwp... " >&6; }
15884 if ${gdb_cv_struct_lwp+:} false
; then :
15885 $as_echo_n "(cached) " >&6
15887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15888 /* end confdefs.h. */
15889 #include <sys/param.h>
15891 #include <sys/lwp.h>
15901 if ac_fn_c_try_compile
"$LINENO"; then :
15902 gdb_cv_struct_lwp
=yes
15904 gdb_cv_struct_lwp
=no
15907 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
15911 $as_echo "$gdb_cv_struct_lwp" >&6; }
15912 if test "$gdb_cv_struct_lwp" = yes; then
15914 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
15918 # See if <machine/reg.h> degines `struct reg'.
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
15920 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
15921 if ${gdb_cv_struct_reg+:} false
; then :
15922 $as_echo_n "(cached) " >&6
15924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15925 /* end confdefs.h. */
15926 #include <sys/types.h>
15927 #include <machine/reg.h>
15937 if ac_fn_c_try_compile
"$LINENO"; then :
15938 gdb_cv_struct_reg
=yes
15940 gdb_cv_struct_reg
=no
15943 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
15947 $as_echo "$gdb_cv_struct_reg" >&6; }
15948 if test "$gdb_cv_struct_reg" = yes; then
15950 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
15954 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
15955 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
15956 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
15957 #include <machine/reg.h>
15959 if test "x$ac_cv_member_struct_reg_r_fs" = xyes
; then :
15961 cat >>confdefs.h
<<_ACEOF
15962 #define HAVE_STRUCT_REG_R_FS 1
15967 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
15968 #include <machine/reg.h>
15970 if test "x$ac_cv_member_struct_reg_r_gs" = xyes
; then :
15972 cat >>confdefs.h
<<_ACEOF
15973 #define HAVE_STRUCT_REG_R_GS 1
15980 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
15982 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
15983 if ${gdb_cv_have_ptrace_getregs+:} false
; then :
15984 $as_echo_n "(cached) " >&6
15986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15987 /* end confdefs.h. */
15988 #include <sys/ptrace.h>
15997 if ac_fn_c_try_compile
"$LINENO"; then :
15998 gdb_cv_have_ptrace_getregs
=yes
16000 gdb_cv_have_ptrace_getregs
=no
16003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
16008 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
16009 if test "$gdb_cv_have_ptrace_getregs" = yes; then
16011 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
16015 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
16017 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
16018 if ${gdb_cv_have_ptrace_getfpxregs+:} false
; then :
16019 $as_echo_n "(cached) " >&6
16021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16022 /* end confdefs.h. */
16023 #include <sys/ptrace.h>
16032 if ac_fn_c_try_compile
"$LINENO"; then :
16033 gdb_cv_have_ptrace_getfpxregs
=yes
16035 gdb_cv_have_ptrace_getfpxregs
=no
16038 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
16043 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
16044 if test "$gdb_cv_have_ptrace_getfpxregs" = yes; then
16046 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
16050 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
16052 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
16053 if ${gdb_cv_have_pt_getdbregs+:} false
; then :
16054 $as_echo_n "(cached) " >&6
16056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16057 /* end confdefs.h. */
16058 #include <sys/types.h>
16059 #include <sys/ptrace.h>
16069 if ac_fn_c_try_compile
"$LINENO"; then :
16070 gdb_cv_have_pt_getdbregs
=yes
16072 gdb_cv_have_pt_getdbregs
=no
16075 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
16080 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
16081 if test "$gdb_cv_have_pt_getdbregs" = yes; then
16083 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
16087 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
16089 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
16090 if ${gdb_cv_have_pt_getxmmregs+:} false
; then :
16091 $as_echo_n "(cached) " >&6
16093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16094 /* end confdefs.h. */
16095 #include <sys/types.h>
16096 #include <sys/ptrace.h>
16106 if ac_fn_c_try_compile
"$LINENO"; then :
16107 gdb_cv_have_pt_getxmmregs
=yes
16109 gdb_cv_have_pt_getxmmregs
=no
16112 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
16117 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
16118 if test "$gdb_cv_have_pt_getxmmregs" = yes; then
16120 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
16124 # See if <sys/ptrace.h> supports LWP names on FreeBSD
16125 # Older FreeBSD versions don't have the pl_tdname member of
16126 # `struct ptrace_lwpinfo'.
16127 ac_fn_c_check_member
"$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
16129 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes
; then :
16131 cat >>confdefs.h
<<_ACEOF
16132 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
16139 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
16140 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
16142 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>
16144 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes
; then :
16146 cat >>confdefs.h
<<_ACEOF
16147 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
16154 # Check if the compiler supports the `long long' type.
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
16157 $as_echo_n "checking for long long support in compiler... " >&6; }
16158 if ${gdb_cv_c_long_long+:} false
; then :
16159 $as_echo_n "(cached) " >&6
16161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16162 /* end confdefs.h. */
16163 extern long long foo;
16167 switch (foo & 2) { case 0: return 1; }
16172 if ac_fn_c_try_compile
"$LINENO"; then :
16173 gdb_cv_c_long_long
=yes
16175 gdb_cv_c_long_long
=no
16177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
16180 $as_echo "$gdb_cv_c_long_long" >&6; }
16181 if test "$gdb_cv_c_long_long" != yes; then
16182 # libdecnumber requires long long.
16183 as_fn_error $?
"Compiler must support long long for GDB." "$LINENO" 5
16186 # Check if the compiler and runtime support printing long longs.
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
16189 $as_echo_n "checking for long long support in printf... " >&6; }
16190 if ${gdb_cv_printf_has_long_long+:} false
; then :
16191 $as_echo_n "(cached) " >&6
16193 if test "$cross_compiling" = yes; then :
16194 gdb_cv_printf_has_long_long
=no
16196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16197 /* end confdefs.h. */
16198 $ac_includes_default
16204 l = (l << 16) + 0x0123;
16205 l = (l << 16) + 0x4567;
16206 l = (l << 16) + 0x89ab;
16207 l = (l << 16) + 0xcdef;
16208 sprintf (buf, "0x%016llx", l);
16209 return (strcmp ("0x0123456789abcdef", buf));
16214 if ac_fn_c_try_run
"$LINENO"; then :
16215 gdb_cv_printf_has_long_long
=yes
16217 gdb_cv_printf_has_long_long
=no
16219 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16220 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
16225 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
16226 if test "$gdb_cv_printf_has_long_long" = yes; then
16228 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
16232 # Check if the compiler and runtime support printing decfloats.
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
16235 $as_echo_n "checking for decfloat support in printf... " >&6; }
16236 if ${gdb_cv_printf_has_decfloat+:} false
; then :
16237 $as_echo_n "(cached) " >&6
16239 if test "$cross_compiling" = yes; then :
16240 gdb_cv_printf_has_decfloat
=no
16242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16243 /* end confdefs.h. */
16244 $ac_includes_default
16249 _Decimal32 d32 = 1.2345df;
16250 _Decimal64 d64 = 1.2345dd;
16251 _Decimal128 d128 = 1.2345dl;
16252 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
16253 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
16258 if ac_fn_c_try_run
"$LINENO"; then :
16259 gdb_cv_printf_has_decfloat
=yes
16261 gdb_cv_printf_has_decfloat
=no
16263 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16264 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
16269 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
16270 if test "$gdb_cv_printf_has_decfloat" = yes; then
16272 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
16276 # Check if the compiler supports the `long double' type. We can't use
16277 # AC_C_LONG_DOUBLE because that one does additional checks on the
16278 # constants defined in <float.h> that fail on some systems,
16279 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
16282 $as_echo_n "checking for long double support in compiler... " >&6; }
16283 if ${gdb_cv_c_long_double+:} false
; then :
16284 $as_echo_n "(cached) " >&6
16286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16287 /* end confdefs.h. */
16290 if ac_fn_c_try_compile
"$LINENO"; then :
16291 gdb_cv_c_long_double
=yes
16293 gdb_cv_c_long_double
=no
16295 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
16298 $as_echo "$gdb_cv_c_long_double" >&6; }
16299 if test "$gdb_cv_c_long_double" = yes; then
16301 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
16305 # Check if the compiler and runtime support printing long doubles.
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
16308 $as_echo_n "checking for long double support in printf... " >&6; }
16309 if ${gdb_cv_printf_has_long_double+:} false
; then :
16310 $as_echo_n "(cached) " >&6
16312 if test "$cross_compiling" = yes; then :
16313 gdb_cv_printf_has_long_double
=no
16315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16316 /* end confdefs.h. */
16317 $ac_includes_default
16322 long double f = 3.141592653;
16323 sprintf (buf, "%Lg", f);
16324 return (strncmp ("3.14159", buf, 7));
16329 if ac_fn_c_try_run
"$LINENO"; then :
16330 gdb_cv_printf_has_long_double
=yes
16332 gdb_cv_printf_has_long_double
=no
16334 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16335 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
16340 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
16341 if test "$gdb_cv_printf_has_long_double" = yes; then
16343 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
16347 # Check if the compiler and runtime support scanning long doubles.
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
16350 $as_echo_n "checking for long double support in scanf... " >&6; }
16351 if ${gdb_cv_scanf_has_long_double+:} false
; then :
16352 $as_echo_n "(cached) " >&6
16354 if test "$cross_compiling" = yes; then :
16355 gdb_cv_scanf_has_long_double
=no
16357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16358 /* end confdefs.h. */
16363 char *buf = "3.141592653";
16365 sscanf (buf, "%Lg", &f);
16366 return !(f > 3.14159 && f < 3.14160);
16371 if ac_fn_c_try_run
"$LINENO"; then :
16372 gdb_cv_scanf_has_long_double
=yes
16374 gdb_cv_scanf_has_long_double
=no
16376 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16377 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
16382 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
16383 if test "$gdb_cv_scanf_has_long_double" = yes; then
16385 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
16392 $as_echo_n "checking for -bbigtoc option... " >&6; }
16393 if ${gdb_cv_bigtoc+:} false
; then :
16394 $as_echo_n "(cached) " >&6
16396 SAVE_LDFLAGS
=$LDFLAGS
16399 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
16400 *) gdb_cv_bigtoc
=-bbigtoc ;;
16403 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
16404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16405 /* end confdefs.h. */
16415 if ac_fn_c_try_link
"$LINENO"; then :
16421 rm -f core conftest.err conftest.
$ac_objext \
16422 conftest
$ac_exeext conftest.
$ac_ext
16423 LDFLAGS
="${SAVE_LDFLAGS}"
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
16427 $as_echo "$gdb_cv_bigtoc" >&6; }
16428 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
16433 $as_echo_n "checking for the dynamic export flag... " >&6; }
16435 if test "${gdb_native}" = yes; then
16436 # The dynamically loaded libthread_db needs access to symbols in the gdb
16437 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
16438 # may not be supported there.
16439 old_LDFLAGS
="$LDFLAGS"
16440 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
16441 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
16442 LDFLAGS
="$LDFLAGS $RDYNAMIC"
16443 if test "${have_libpython}" = no
; then
16444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16445 /* end confdefs.h. */
16455 if ac_fn_c_try_link
"$LINENO"; then :
16458 rm -f core conftest.err conftest.
$ac_objext \
16459 conftest
$ac_exeext conftest.
$ac_ext
16461 # Workaround http://bugs.python.org/issue4434 where static
16462 # libpythonX.Y.a would get its symbols required for
16463 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
16464 # Problem does not happen for the recommended libpythonX.Y.so linkage.
16466 # Note the workaround for Python
16467 # http://bugs.python.org/issue10112 earlier has removed
16468 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
16469 # here too, as otherwise it'd make this -Wl,--dynamic-list test
16471 old_CFLAGS
="$CFLAGS"
16472 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
16474 LIBS
="$LIBS $PYTHON_LIBS"
16475 old_CPPFLAGS
="$CPPFLAGS"
16476 CPPFLAGS
="$CPPFLAGS $PYTHON_CPPFLAGS"
16477 if test "$cross_compiling" = yes; then :
16480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16481 /* end confdefs.h. */
16482 #include "Python.h"
16488 err = PyRun_SimpleString ("import ctypes\n");
16490 return err == 0 ? 0 : 1;
16495 if ac_fn_c_try_run
"$LINENO"; then :
16498 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16499 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16503 CFLAGS
="$old_CFLAGS"
16504 CPPFLAGS
="$old_CPPFLAGS"
16506 LDFLAGS
="$old_LDFLAGS"
16508 if $dynamic_list; then
16509 found
="-Wl,--dynamic-list"
16510 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
16513 RDYNAMIC
="-rdynamic"
16516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
16517 $as_echo "$found" >&6; }
16520 if test "${build}" = "${host}" -a "${host}" = "${target}" ; then
16523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
16524 $as_echo_n "checking for AiX thread debugging library... " >&6; }
16525 if ${gdb_cv_have_aix_thread_debug+:} false
; then :
16526 $as_echo_n "(cached) " >&6
16528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16529 /* end confdefs.h. */
16530 #include <sys/pthdebug.h>
16534 #ifndef PTHDB_VERSION_3
16542 if ac_fn_c_try_compile
"$LINENO"; then :
16543 gdb_cv_have_aix_thread_debug
=yes
16545 gdb_cv_have_aix_thread_debug
=no
16548 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
16553 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
16554 if test "$gdb_cv_have_aix_thread_debug" = yes; then
16555 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
16556 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
16557 LIBS
="$LIBS -lpthdebug"
16559 # Older versions of AIX do not provide the declaration for
16560 # the getthrds function (it appears that it was introduced
16562 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
16564 if test "x$ac_cv_have_decl_getthrds" = xyes
; then :
16570 cat >>confdefs.h
<<_ACEOF
16571 #define HAVE_DECL_GETTHRDS $ac_have_decl
16580 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
16582 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
16583 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false
; then :
16584 $as_echo_n "(cached) " >&6
16586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16587 /* end confdefs.h. */
16588 #include <thread_db.h>
16592 int i = TD_NOTALLOC;
16598 if ac_fn_c_try_compile
"$LINENO"; then :
16599 gdb_cv_thread_db_h_has_td_notalloc
=yes
16601 gdb_cv_thread_db_h_has_td_notalloc
=no
16604 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
16608 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
16611 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
16612 if ${gdb_cv_thread_db_h_has_td_version+:} false
; then :
16613 $as_echo_n "(cached) " >&6
16615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16616 /* end confdefs.h. */
16617 #include <thread_db.h>
16621 int i = TD_VERSION;
16627 if ac_fn_c_try_compile
"$LINENO"; then :
16628 gdb_cv_thread_db_h_has_td_version
=yes
16630 gdb_cv_thread_db_h_has_td_version
=no
16633 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
16637 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
16640 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
16641 if ${gdb_cv_thread_db_h_has_td_notls+:} false
; then :
16642 $as_echo_n "(cached) " >&6
16644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16645 /* end confdefs.h. */
16646 #include <thread_db.h>
16656 if ac_fn_c_try_compile
"$LINENO"; then :
16657 gdb_cv_thread_db_h_has_td_notls
=yes
16659 gdb_cv_thread_db_h_has_td_notls
=no
16662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
16666 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
16668 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
16670 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
16673 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
16675 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
16678 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
16680 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
16693 cat >>confdefs.h
<<_ACEOF
16694 #define GDBINIT "$gdbinit"
16699 cat >>confdefs.h
<<_ACEOF
16700 #define GDBEARLYINIT ".gdbearlyinit"
16705 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
16706 # except that the argument to --with-sysroot is optional.
16707 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
16708 if test "x$with_sysroot" = xyes
; then
16709 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
16712 # Check whether --with-sysroot was given.
16713 if test "${with_sysroot+set}" = set; then :
16714 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
16716 TARGET_SYSTEM_ROOT
=
16720 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16721 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16722 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
16723 ac_define_dir
=`eval echo $ac_define_dir`
16725 cat >>confdefs.h
<<_ACEOF
16726 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
16732 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16733 if test "x$prefix" = xNONE
; then
16734 test_prefix
=/usr
/local
16736 test_prefix
=$prefix
16739 test_prefix
=$exec_prefix
16742 case ${ac_define_dir} in
16743 "${test_prefix}"|
"${test_prefix}/"*|\
16744 '${exec_prefix}'|
'${exec_prefix}/'*)
16749 cat >>confdefs.h
<<_ACEOF
16750 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
16757 # Check whether --with-system-gdbinit was given.
16758 if test "${with_system_gdbinit+set}" = set; then :
16759 withval
=$with_system_gdbinit;
16760 SYSTEM_GDBINIT
=$withval
16766 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16767 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16768 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
16769 ac_define_dir
=`eval echo $ac_define_dir`
16771 cat >>confdefs.h
<<_ACEOF
16772 #define SYSTEM_GDBINIT "$ac_define_dir"
16778 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16779 if test "x$prefix" = xNONE
; then
16780 test_prefix
=/usr
/local
16782 test_prefix
=$prefix
16785 test_prefix
=$exec_prefix
16788 case ${ac_define_dir} in
16789 "${test_prefix}"|
"${test_prefix}/"*|\
16790 '${exec_prefix}'|
'${exec_prefix}/'*)
16795 cat >>confdefs.h
<<_ACEOF
16796 #define SYSTEM_GDBINIT_RELOCATABLE $value
16803 # Check whether --with-system-gdbinit-dir was given.
16804 if test "${with_system_gdbinit_dir+set}" = set; then :
16805 withval
=$with_system_gdbinit_dir;
16806 SYSTEM_GDBINIT_DIR
=$withval
16808 SYSTEM_GDBINIT_DIR
=
16812 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16813 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16814 ac_define_dir
=`eval echo $SYSTEM_GDBINIT_DIR`
16815 ac_define_dir
=`eval echo $ac_define_dir`
16817 cat >>confdefs.h
<<_ACEOF
16818 #define SYSTEM_GDBINIT_DIR "$ac_define_dir"
16824 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16825 if test "x$prefix" = xNONE
; then
16826 test_prefix
=/usr
/local
16828 test_prefix
=$prefix
16831 test_prefix
=$exec_prefix
16834 case ${ac_define_dir} in
16835 "${test_prefix}"|
"${test_prefix}/"*|\
16836 '${exec_prefix}'|
'${exec_prefix}/'*)
16841 cat >>confdefs.h
<<_ACEOF
16842 #define SYSTEM_GDBINIT_DIR_RELOCATABLE $value
16849 # Check whether --enable-werror was given.
16850 if test "${enable_werror+set}" = set; then :
16851 enableval
=$enable_werror; case "${enableval}" in
16852 yes | y
) ERROR_ON_WARNING
="yes" ;;
16853 no | n
) ERROR_ON_WARNING
="no" ;;
16854 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16859 # Enable -Werror by default when using gcc. Turn it off for releases.
16860 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
16861 ERROR_ON_WARNING
=yes
16865 if test "${ERROR_ON_WARNING}" = yes ; then
16866 WERROR_CFLAGS
="-Werror"
16869 # The options we'll try to enable.
16870 build_warnings
="-Wall -Wpointer-arith \
16871 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
16872 -Wno-switch -Wno-char-subscripts \
16873 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
16874 -Wno-sign-compare -Wno-error=maybe-uninitialized \
16875 -Wno-mismatched-tags \
16876 -Wno-error=deprecated-register \
16877 -Wsuggest-override \
16878 -Wimplicit-fallthrough=3 \
16879 -Wduplicated-cond \
16881 -Wdeprecated-copy \
16882 -Wdeprecated-copy-dtor \
16884 -Wmissing-declarations \
16885 -Wmissing-prototypes \
16886 -Wstrict-null-sentinel \
16891 # Enable -Wno-format by default when using gcc on mingw since many
16892 # GCC versions complain about %I64.
16893 build_warnings
="$build_warnings -Wno-format" ;;
16895 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
16896 # doesn't understand.
16897 build_warnings
="$build_warnings -Wno-unknown-pragmas"
16898 # Solaris 11 <unistd.h> marks vfork deprecated.
16899 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
16901 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
16902 # but there's a special case for this below.
16903 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
16906 # Check whether --enable-build-warnings was given.
16907 if test "${enable_build_warnings+set}" = set; then :
16908 enableval
=$enable_build_warnings; case "${enableval}" in
16910 no
) build_warnings
="-w";;
16911 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16912 build_warnings
="${build_warnings} ${t}";;
16913 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16914 build_warnings
="${t} ${build_warnings}";;
16915 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16917 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
16918 echo "Setting compiler warning flags = $build_warnings" 6>&1
16921 # Check whether --enable-gdb-build-warnings was given.
16922 if test "${enable_gdb_build_warnings+set}" = set; then :
16923 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
16925 no
) build_warnings
="-w";;
16926 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16927 build_warnings
="${build_warnings} ${t}";;
16928 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16929 build_warnings
="${t} ${build_warnings}";;
16930 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16932 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
16933 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
16937 # The set of warnings supported by a C++ compiler is not the same as
16938 # of the C compiler.
16940 ac_cpp
='$CXXCPP $CPPFLAGS'
16941 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16942 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16943 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
16947 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
16949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
16950 $as_echo_n "checking compiler warning flags... " >&6; }
16951 # Separate out the -Werror flag as some files just cannot be
16952 # compiled with it enabled.
16953 for w
in ${build_warnings}; do
16954 # GCC does not complain about -Wno-unknown-warning. Invert
16955 # and test -Wunknown-warning instead.
16958 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
16959 -Wformat-nonliteral)
16960 # gcc requires -Wformat before -Wformat-nonliteral
16961 # will work, so stick them together.
16970 -Werr*) WERROR_CFLAGS
=-Werror ;;
16972 # Check whether GCC accepts it.
16973 saved_CFLAGS
="$CFLAGS"
16974 CFLAGS
="$CFLAGS -Werror $wtest"
16975 saved_CXXFLAGS
="$CXXFLAGS"
16976 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
16977 if test "x$w" = "x-Wunused-variable"; then
16978 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
16979 # fixed in GCC 4.9. This test is derived from the gdb
16980 # source code that triggered this bug in GCC.
16981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16982 /* end confdefs.h. */
16983 struct scoped_restore_base {};
16984 struct scoped_restore_tmpl : public scoped_restore_base {
16985 ~scoped_restore_tmpl() {}
16990 const scoped_restore_base &b = scoped_restore_tmpl();
16996 if ac_fn_cxx_try_compile
"$LINENO"; then :
16997 WARN_CFLAGS
="${WARN_CFLAGS} $w"
16999 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17002 /* end confdefs.h. */
17012 if ac_fn_cxx_try_compile
"$LINENO"; then :
17013 WARN_CFLAGS
="${WARN_CFLAGS} $w"
17015 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17017 CFLAGS
="$saved_CFLAGS"
17018 CXXFLAGS
="$saved_CXXFLAGS"
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
17022 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
17028 ac_cpp='$CPP $CPPFLAGS'
17029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17035 # Check whether --enable-ubsan was given.
17036 if test "${enable_ubsan+set}" = set; then :
17037 enableval=$enable_ubsan;
17042 if test "x
$enable_ubsan" = xauto; then
17043 if $development; then
17048 ac_cpp='$CXXCPP $CPPFLAGS'
17049 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17050 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17051 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17053 if test "x
$enable_ubsan" = xyes; then
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
-fsanitize=undefined is accepted
" >&5
17055 $as_echo_n "checking whether
-fsanitize=undefined is accepted...
" >&6; }
17056 saved_CXXFLAGS="$CXXFLAGS"
17057 CXXFLAGS="$CXXFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
17058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17059 /* end confdefs.h. */
17069 if ac_fn_cxx_try_link "$LINENO"; then :
17075 rm -f core conftest.err conftest.$ac_objext \
17076 conftest$ac_exeext conftest.$ac_ext
17077 CXXFLAGS="$saved_CXXFLAGS"
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $enable_ubsan" >&5
17079 $as_echo "$enable_ubsan" >&6; }
17080 if test "x
$enable_ubsan" = xyes; then
17081 WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
17082 CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined
"
17086 ac_cpp='$CPP $CPPFLAGS'
17087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17093 # In the Cygwin environment, we need some additional flags.
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
17095 $as_echo_n "checking
for cygwin...
" >&6; }
17096 if ${gdb_cv_os_cygwin+:} false; then :
17097 $as_echo_n "(cached
) " >&6
17099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17100 /* end confdefs.h. */
17102 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
17106 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
17107 $EGREP "^lose$
" >/dev/null 2>&1; then :
17108 gdb_cv_os_cygwin=yes
17110 gdb_cv_os_cygwin=no
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
17116 $as_echo "$gdb_cv_os_cygwin" >&6; }
17119 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
17121 *go32* ) SER_HARDWIRE=ser-go32.o ;;
17122 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
17123 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
17124 *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o
" ;;
17128 # libreadline needs libuser32.a in a cygwin environment
17130 if test x"$gdb_cv_os_cygwin" = xyes; then
17131 WIN32LIBS="-luser32"
17132 case "${target}" in
17133 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
17138 # The ser-tcp.c module requires sockets.
17139 # Note that WIN32APILIBS is set by GDB_AC_COMMON.
17140 WIN32LIBS="$WIN32LIBS $WIN32APILIBS"
17142 # Add ELF support to GDB, but only if BFD includes ELF support.
17145 OLD_LDFLAGS=$LDFLAGS
17147 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
17148 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
17149 # always want our bfd.
17150 CFLAGS="-I${srcdir}/..
/include
-I..
/bfd
-I${srcdir}/..
/bfd
$CFLAGS"
17151 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
17152 LDFLAGS="-L..
/bfd
-L..
/libiberty
$ZLIBDIR $LDFLAGS"
17153 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
17154 LIBS="-lbfd -liberty -lz $intl $LIBS"
17155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ELF support
in BFD
" >&5
17156 $as_echo_n "checking
for ELF support
in BFD...
" >&6; }
17157 if ${gdb_cv_var_elf+:} false; then :
17158 $as_echo_n "(cached
) " >&6
17160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17161 /* end confdefs.h. */
17162 #include <stdlib.h>
17163 #include <string.h>
17165 #include "elf-bfd.h
"
17169 return bfd_get_elf_phdr_upper_bound (NULL);
17175 if ac_fn_c_try_link "$LINENO"; then :
17181 rm -f core conftest.err conftest.$ac_objext \
17182 conftest$ac_exeext conftest.$ac_ext
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_var_elf" >&5
17186 $as_echo "$gdb_cv_var_elf" >&6; }
17188 LDFLAGS=$OLD_LDFLAGS
17190 if test "$gdb_cv_var_elf" = yes; then
17191 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o \
17192 gcore-elf.o elf-none-tdep.o
"
17194 $as_echo "#define HAVE_ELF 1" >>confdefs.h
17196 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
17197 if test "$plugins" = "yes"; then
17198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17199 $as_echo_n "checking for library containing dlopen... " >&6; }
17200 if ${ac_cv_search_dlopen+:} false
; then :
17201 $as_echo_n "(cached) " >&6
17203 ac_func_search_save_LIBS
=$LIBS
17204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17205 /* end confdefs.h. */
17207 /* Override any GCC internal prototype to avoid an error.
17208 Use char because int might match the return type of a GCC
17209 builtin and then its argument prototype would still apply. */
17222 for ac_lib
in '' dl
; do
17223 if test -z "$ac_lib"; then
17224 ac_res
="none required"
17227 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
17229 if ac_fn_c_try_link
"$LINENO"; then :
17230 ac_cv_search_dlopen
=$ac_res
17232 rm -f core conftest.err conftest.
$ac_objext \
17234 if ${ac_cv_search_dlopen+:} false
; then :
17238 if ${ac_cv_search_dlopen+:} false
; then :
17241 ac_cv_search_dlopen
=no
17243 rm conftest.
$ac_ext
17244 LIBS
=$ac_func_search_save_LIBS
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17247 $as_echo "$ac_cv_search_dlopen" >&6; }
17248 ac_res
=$ac_cv_search_dlopen
17249 if test "$ac_res" != no
; then :
17250 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
17257 # Add macho support to GDB, but only if BFD includes it.
17260 OLD_LDFLAGS
=$LDFLAGS
17262 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
17263 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
17264 # always want our bfd.
17265 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
17266 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
17267 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
17268 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
17269 LIBS
="-lbfd -liberty -lz $intl $LIBS"
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
17271 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
17272 if ${gdb_cv_var_macho+:} false
; then :
17273 $as_echo_n "(cached) " >&6
17275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17276 /* end confdefs.h. */
17277 #include <stdlib.h>
17278 #include <string.h>
17280 #include "mach-o.h"
17284 return bfd_mach_o_lookup_command (NULL, 0, NULL);
17290 if ac_fn_c_try_link
"$LINENO"; then :
17291 gdb_cv_var_macho
=yes
17293 gdb_cv_var_macho
=no
17296 rm -f core conftest.err conftest.
$ac_objext \
17297 conftest
$ac_exeext conftest.
$ac_ext
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
17301 $as_echo "$gdb_cv_var_macho" >&6; }
17303 LDFLAGS
=$OLD_LDFLAGS
17305 if test "$gdb_cv_var_macho" = yes; then
17306 CONFIG_OBS
="$CONFIG_OBS machoread.o"
17309 # Add any host-specific objects to GDB.
17310 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
17312 # If building on ELF, look for lzma support for embedded compressed debug info.
17313 if test "$gdb_cv_var_elf" = yes; then
17315 # Check whether --with-lzma was given.
17316 if test "${with_lzma+set}" = set; then :
17317 withval
=$with_lzma;
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
17323 $as_echo_n "checking whether to use lzma... " >&6; }
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
17325 $as_echo "$with_lzma" >&6; }
17327 if test "${with_lzma}" != no
; then
17338 acl_save_prefix
="$prefix"
17339 prefix
="$acl_final_prefix"
17340 acl_save_exec_prefix
="$exec_prefix"
17341 exec_prefix
="$acl_final_exec_prefix"
17343 eval additional_includedir
=\"$includedir\"
17344 eval additional_libdir
=\"$libdir\"
17346 exec_prefix
="$acl_save_exec_prefix"
17347 prefix
="$acl_save_prefix"
17350 # Check whether --with-liblzma-prefix was given.
17351 if test "${with_liblzma_prefix+set}" = set; then :
17352 withval
=$with_liblzma_prefix;
17353 if test "X$withval" = "Xno"; then
17356 if test "X$withval" = "X"; then
17358 acl_save_prefix
="$prefix"
17359 prefix
="$acl_final_prefix"
17360 acl_save_exec_prefix
="$exec_prefix"
17361 exec_prefix
="$acl_final_exec_prefix"
17363 eval additional_includedir
=\"$includedir\"
17364 eval additional_libdir
=\"$libdir\"
17366 exec_prefix
="$acl_save_exec_prefix"
17367 prefix
="$acl_save_prefix"
17370 additional_includedir
="$withval/include"
17371 additional_libdir
="$withval/lib"
17378 # Check whether --with-liblzma-type was given.
17379 if test "${with_liblzma_type+set}" = set; then :
17380 withval
=$with_liblzma_type; with_liblzma_type
=$withval
17382 with_liblzma_type
=auto
17385 lib_type
=`eval echo \$with_liblzma_type`
17392 names_already_handled
=
17393 names_next_round
='lzma '
17394 while test -n "$names_next_round"; do
17395 names_this_round
="$names_next_round"
17397 for name
in $names_this_round; do
17399 for n
in $names_already_handled; do
17400 if test "$n" = "$name"; then
17401 already_handled
=yes
17405 if test -z "$already_handled"; then
17406 names_already_handled
="$names_already_handled $name"
17407 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17408 eval value
=\"\
$HAVE_LIB$uppername\"
17409 if test -n "$value"; then
17410 if test "$value" = yes; then
17411 eval value
=\"\
$LIB$uppername\"
17412 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
17413 eval value
=\"\
$LTLIB$uppername\"
17414 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
17423 if test $use_additional = yes; then
17424 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
17425 found_dir
="$additional_libdir"
17426 found_so
="$additional_libdir/lib$name.$shlibext"
17427 if test -f "$additional_libdir/lib$name.la"; then
17428 found_la
="$additional_libdir/lib$name.la"
17430 elif test x
$lib_type != xshared
; then
17431 if test -f "$additional_libdir/lib$name.$libext"; then
17432 found_dir
="$additional_libdir"
17433 found_a
="$additional_libdir/lib$name.$libext"
17434 if test -f "$additional_libdir/lib$name.la"; then
17435 found_la
="$additional_libdir/lib$name.la"
17440 if test "X$found_dir" = "X"; then
17441 for x
in $LDFLAGS $LTLIBLZMA; do
17443 acl_save_prefix
="$prefix"
17444 prefix
="$acl_final_prefix"
17445 acl_save_exec_prefix
="$exec_prefix"
17446 exec_prefix
="$acl_final_exec_prefix"
17448 exec_prefix
="$acl_save_exec_prefix"
17449 prefix
="$acl_save_prefix"
17453 dir
=`echo "X$x" | sed -e 's/^X-L//'`
17454 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
17456 found_so
="$dir/lib$name.$shlibext"
17457 if test -f "$dir/lib$name.la"; then
17458 found_la
="$dir/lib$name.la"
17460 elif test x
$lib_type != xshared
; then
17461 if test -f "$dir/lib$name.$libext"; then
17463 found_a
="$dir/lib$name.$libext"
17464 if test -f "$dir/lib$name.la"; then
17465 found_la
="$dir/lib$name.la"
17471 if test "X$found_dir" != "X"; then
17476 if test "X$found_dir" != "X"; then
17477 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
17478 if test "X$found_so" != "X"; then
17479 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
17480 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17483 for x
in $ltrpathdirs; do
17484 if test "X$x" = "X$found_dir"; then
17489 if test -z "$haveit"; then
17490 ltrpathdirs
="$ltrpathdirs $found_dir"
17492 if test "$hardcode_direct" = yes; then
17493 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17495 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
17496 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17498 for x
in $rpathdirs; do
17499 if test "X$x" = "X$found_dir"; then
17504 if test -z "$haveit"; then
17505 rpathdirs
="$rpathdirs $found_dir"
17509 for x
in $LDFLAGS $LIBLZMA; do
17511 acl_save_prefix
="$prefix"
17512 prefix
="$acl_final_prefix"
17513 acl_save_exec_prefix
="$exec_prefix"
17514 exec_prefix
="$acl_final_exec_prefix"
17516 exec_prefix
="$acl_save_exec_prefix"
17517 prefix
="$acl_save_prefix"
17519 if test "X$x" = "X-L$found_dir"; then
17524 if test -z "$haveit"; then
17525 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
17527 if test "$hardcode_minus_L" != no
; then
17528 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17530 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
17536 if test "X$found_a" != "X"; then
17537 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
17539 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
17542 additional_includedir
=
17543 case "$found_dir" in
17545 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17546 additional_includedir
="$basedir/include"
17549 if test "X$additional_includedir" != "X"; then
17550 if test "X$additional_includedir" != "X/usr/include"; then
17552 if test "X$additional_includedir" = "X/usr/local/include"; then
17553 if test -n "$GCC"; then
17555 linux
*) haveit
=yes;;
17559 if test -z "$haveit"; then
17560 for x
in $CPPFLAGS $INCLZMA; do
17562 acl_save_prefix
="$prefix"
17563 prefix
="$acl_final_prefix"
17564 acl_save_exec_prefix
="$exec_prefix"
17565 exec_prefix
="$acl_final_exec_prefix"
17567 exec_prefix
="$acl_save_exec_prefix"
17568 prefix
="$acl_save_prefix"
17570 if test "X$x" = "X-I$additional_includedir"; then
17575 if test -z "$haveit"; then
17576 if test -d "$additional_includedir"; then
17577 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
17583 if test -n "$found_la"; then
17584 save_libdir
="$libdir"
17585 case "$found_la" in
17586 */* |
*\\*) .
"$found_la" ;;
17587 *) .
"./$found_la" ;;
17589 libdir
="$save_libdir"
17590 for dep
in $dependency_libs; do
17593 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
17594 if test "X$additional_libdir" != "X/usr/lib"; then
17596 if test "X$additional_libdir" = "X/usr/local/lib"; then
17597 if test -n "$GCC"; then
17599 linux
*) haveit
=yes;;
17603 if test -z "$haveit"; then
17605 for x
in $LDFLAGS $LIBLZMA; do
17607 acl_save_prefix
="$prefix"
17608 prefix
="$acl_final_prefix"
17609 acl_save_exec_prefix
="$exec_prefix"
17610 exec_prefix
="$acl_final_exec_prefix"
17612 exec_prefix
="$acl_save_exec_prefix"
17613 prefix
="$acl_save_prefix"
17615 if test "X$x" = "X-L$additional_libdir"; then
17620 if test -z "$haveit"; then
17621 if test -d "$additional_libdir"; then
17622 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
17626 for x
in $LDFLAGS $LTLIBLZMA; do
17628 acl_save_prefix
="$prefix"
17629 prefix
="$acl_final_prefix"
17630 acl_save_exec_prefix
="$exec_prefix"
17631 exec_prefix
="$acl_final_exec_prefix"
17633 exec_prefix
="$acl_save_exec_prefix"
17634 prefix
="$acl_save_prefix"
17636 if test "X$x" = "X-L$additional_libdir"; then
17641 if test -z "$haveit"; then
17642 if test -d "$additional_libdir"; then
17643 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
17650 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
17651 if test "$enable_rpath" != no
; then
17653 for x
in $rpathdirs; do
17654 if test "X$x" = "X$dir"; then
17659 if test -z "$haveit"; then
17660 rpathdirs
="$rpathdirs $dir"
17663 for x
in $ltrpathdirs; do
17664 if test "X$x" = "X$dir"; then
17669 if test -z "$haveit"; then
17670 ltrpathdirs
="$ltrpathdirs $dir"
17675 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17678 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17681 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
17682 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
17688 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
17689 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
17690 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
17692 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l:lib$name.$libext"
17693 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l:lib$name.$libext"
17700 if test "X$rpathdirs" != "X"; then
17701 if test -n "$hardcode_libdir_separator"; then
17703 for found_dir
in $rpathdirs; do
17704 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17706 acl_save_libdir
="$libdir"
17708 eval flag
=\"$hardcode_libdir_flag_spec\"
17709 libdir
="$acl_save_libdir"
17710 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
17712 for found_dir
in $rpathdirs; do
17713 acl_save_libdir
="$libdir"
17714 libdir
="$found_dir"
17715 eval flag
=\"$hardcode_libdir_flag_spec\"
17716 libdir
="$acl_save_libdir"
17717 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
17721 if test "X$ltrpathdirs" != "X"; then
17722 for found_dir
in $ltrpathdirs; do
17723 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
17728 ac_save_CPPFLAGS
="$CPPFLAGS"
17730 for element
in $INCLZMA; do
17732 for x
in $CPPFLAGS; do
17734 acl_save_prefix
="$prefix"
17735 prefix
="$acl_final_prefix"
17736 acl_save_exec_prefix
="$exec_prefix"
17737 exec_prefix
="$acl_final_exec_prefix"
17739 exec_prefix
="$acl_save_exec_prefix"
17740 prefix
="$acl_save_prefix"
17742 if test "X$x" = "X$element"; then
17747 if test -z "$haveit"; then
17748 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
17754 $as_echo_n "checking for liblzma... " >&6; }
17755 if ${ac_cv_liblzma+:} false
; then :
17756 $as_echo_n "(cached) " >&6
17759 ac_save_LIBS
="$LIBS"
17760 LIBS
="$LIBS $LIBLZMA"
17761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17762 /* end confdefs.h. */
17767 lzma_index_iter iter;
17768 lzma_index_iter_init (&iter, 0);
17769 lzma_mf_is_supported (LZMA_MF_HC3);
17774 if ac_fn_c_try_link
"$LINENO"; then :
17779 rm -f core conftest.err conftest.
$ac_objext \
17780 conftest
$ac_exeext conftest.
$ac_ext
17781 LIBS
="$ac_save_LIBS"
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
17785 $as_echo "$ac_cv_liblzma" >&6; }
17786 if test "$ac_cv_liblzma" = yes; then
17789 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
17792 $as_echo_n "checking how to link with liblzma... " >&6; }
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
17794 $as_echo "$LIBLZMA" >&6; }
17797 CPPFLAGS
="$ac_save_CPPFLAGS"
17807 if test "$HAVE_LIBLZMA" != yes; then
17808 if test "$with_lzma" = yes; then
17809 as_fn_error $?
"missing liblzma for --with-lzma" "$LINENO" 5
17815 LIBGUI
="../libgui/src/libgui.a"
17816 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
17825 *-*-cygwin* |
*-*-mingw* )
17834 if test "${enable_gdbtk}" = "yes"; then
17836 # Gdbtk must have an absolute path to srcdir in order to run
17837 # properly when not installed.
17840 GDBTK_SRC_DIR
=`pwd`
17845 # Ok, lets find the tcl configuration
17846 # First, look for one uninstalled.
17847 # the alternative search directory is invoked by --with-tcl
17850 if test x
"${no_tcl}" = x
; then
17851 # we reset no_tcl in case something fails here
17854 # Check whether --with-tcl was given.
17855 if test "${with_tcl+set}" = set; then :
17856 withval
=$with_tcl; with_tclconfig
=${withval}
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
17860 $as_echo_n "checking for Tcl configuration... " >&6; }
17861 if ${ac_cv_c_tclconfig+:} false
; then :
17862 $as_echo_n "(cached) " >&6
17866 # First check to see if --with-tcl was specified.
17868 *-*-cygwin*) platDir
="win" ;;
17869 *) platDir
="unix" ;;
17871 if test x
"${with_tclconfig}" != x
; then
17872 if test -f "${with_tclconfig}/tclConfig.sh" ; then
17873 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
17875 as_fn_error $?
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
17879 # then check for a private Tcl installation
17880 if test x
"${ac_cv_c_tclconfig}" = x
; then
17883 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17884 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
17885 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
17887 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17888 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
17889 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
17891 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17892 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
17893 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
17894 if test -f "$i/$platDir/tclConfig.sh" ; then
17895 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
17901 # on Darwin, check in Framework installation locations
17902 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
17903 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
17904 `ls -d /Library/Frameworks 2>/dev/null` \
17905 `ls -d /Network/Library/Frameworks 2>/dev/null` \
17906 `ls -d /System/Library/Frameworks 2>/dev/null` \
17908 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
17909 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
17915 # check in a few common install locations
17916 if test x
"${ac_cv_c_tclconfig}" = x
; then
17917 for i
in `ls -d ${libdir} 2>/dev/null` \
17918 `ls -d ${exec_prefix}/lib 2>/dev/null` \
17919 `ls -d ${prefix}/lib 2>/dev/null` \
17920 `ls -d /usr/local/lib 2>/dev/null` \
17921 `ls -d /usr/contrib/lib 2>/dev/null` \
17922 `ls -d /usr/lib 2>/dev/null` \
17924 if test -f "$i/tclConfig.sh" ; then
17925 ac_cv_c_tclconfig
=`(cd $i; pwd)`
17931 # check in a few other private locations
17932 if test x
"${ac_cv_c_tclconfig}" = x
; then
17935 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17936 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
17937 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
17938 if test -f "$i/$platDir/tclConfig.sh" ; then
17939 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
17948 if test x
"${ac_cv_c_tclconfig}" = x
; then
17949 TCL_BIN_DIR
="# no Tcl configs found"
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
17951 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
17954 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
17956 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
17961 # If $no_tk is nonempty, then we can't do Tk, and there is no
17962 # point to doing Tcl.
17965 # Ok, lets find the tk configuration
17966 # First, look for one uninstalled.
17967 # the alternative search directory is invoked by --with-tk
17970 if test x
"${no_tk}" = x
; then
17971 # we reset no_tk in case something fails here
17974 # Check whether --with-tk was given.
17975 if test "${with_tk+set}" = set; then :
17976 withval
=$with_tk; with_tkconfig
=${withval}
17979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
17980 $as_echo_n "checking for Tk configuration... " >&6; }
17981 if ${ac_cv_c_tkconfig+:} false
; then :
17982 $as_echo_n "(cached) " >&6
17986 # First check to see if --with-tkconfig was specified.
17987 if test x
"${with_tkconfig}" != x
; then
17988 if test -f "${with_tkconfig}/tkConfig.sh" ; then
17989 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
17991 as_fn_error $?
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
17995 # then check for a private Tk library
17997 *-*-cygwin*) platDir
="win" ;;
17998 *) platDir
="unix" ;;
18000 if test x
"${ac_cv_c_tkconfig}" = x
; then
18003 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
18004 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
18005 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
18007 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
18008 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
18009 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
18011 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
18012 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
18013 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
18014 if test -f "$i/$platDir/tkConfig.sh" ; then
18015 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
18021 # on Darwin, check in Framework installation locations
18022 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
18023 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
18024 `ls -d /Library/Frameworks 2>/dev/null` \
18025 `ls -d /Network/Library/Frameworks 2>/dev/null` \
18026 `ls -d /System/Library/Frameworks 2>/dev/null` \
18028 if test -f "$i/Tk.framework/tkConfig.sh" ; then
18029 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
18035 # check in a few common install locations
18036 if test x
"${ac_cv_c_tkconfig}" = x
; then
18037 for i
in `ls -d ${libdir} 2>/dev/null` \
18038 `ls -d ${exec_prefix}/lib 2>/dev/null` \
18039 `ls -d ${prefix}/lib 2>/dev/null` \
18040 `ls -d /usr/local/lib 2>/dev/null` \
18041 `ls -d /usr/contrib/lib 2>/dev/null` \
18042 `ls -d /usr/lib 2>/dev/null` \
18044 if test -f "$i/tkConfig.sh" ; then
18045 ac_cv_c_tkconfig
=`(cd $i; pwd)`
18050 # check in a few other private locations
18051 if test x
"${ac_cv_c_tkconfig}" = x
; then
18054 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
18055 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
18056 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
18057 if test -f "$i/$platDir/tkConfig.sh" ; then
18058 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
18067 if test x
"${ac_cv_c_tkconfig}" = x
; then
18068 TK_BIN_DIR
="# no Tk configs found"
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
18070 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
18073 TK_BIN_DIR
=${ac_cv_c_tkconfig}
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
18075 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
18080 if test -z "${no_tcl}" -a -z "${no_tk}"; then
18082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
18083 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
18085 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
18087 $as_echo "loading" >&6; }
18088 .
${TCL_BIN_DIR}/tclConfig.sh
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
18091 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
18094 # eval is required to do the TCL_DBGX substitution
18095 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
18096 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
18098 # If the TCL_BIN_DIR is the build directory (not the install directory),
18099 # then set the common variable name to the value of the build variables.
18100 # For example, the variable TCL_LIB_SPEC will be set to the value
18101 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
18102 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
18103 # installed and uninstalled version of Tcl.
18104 if test -f "${TCL_BIN_DIR}/Makefile" ; then
18105 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
18106 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
18107 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
18108 elif test "`uname -s`" = "Darwin"; then
18109 # If Tcl was built as a framework, attempt to use the libraries
18110 # from the framework at the given location so that linking works
18111 # against Tcl.framework installed in an arbitrary location.
18112 case ${TCL_DEFS} in
18114 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
18115 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
18116 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
18117 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
18118 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
18123 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
18124 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
18125 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
18131 # eval is required to do the TCL_DBGX substitution
18132 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
18133 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
18134 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
18135 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
18151 # Check for in-tree tcl
18158 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
18162 # Find Tcl private headers
18163 if test x
"${intree}" = xno
; then
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
18166 $as_echo_n "checking for Tcl private headers... " >&6; }
18168 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
18169 if test -f ${dir}/tclInt.h
; then
18173 if test x
"${private_dir}" = x
; then
18174 as_fn_error $?
"could not find private Tcl headers" "$LINENO" 5
18176 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
18178 $as_echo "${private_dir}" >&6; }
18181 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
18182 TCL_LIBRARY
="${TCL_LIB_SPEC}"
18185 # If building tcl in the same src tree, private headers
18186 # are not needed, but we need to be sure to use the right
18188 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
18189 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
18190 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
18198 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
18200 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
18202 $as_echo "loading" >&6; }
18203 .
${TK_BIN_DIR}/tkConfig.sh
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
18206 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
18209 # eval is required to do the TK_DBGX substitution
18210 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
18211 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
18213 # If the TK_BIN_DIR is the build directory (not the install directory),
18214 # then set the common variable name to the value of the build variables.
18215 # For example, the variable TK_LIB_SPEC will be set to the value
18216 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
18217 # instead of TK_BUILD_LIB_SPEC since it will work with both an
18218 # installed and uninstalled version of Tcl.
18219 if test -f "${TK_BIN_DIR}/Makefile" ; then
18220 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
18221 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
18222 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
18223 elif test "`uname -s`" = "Darwin"; then
18224 # If Tk was built as a framework, attempt to use the libraries
18225 # from the framework at the given location so that linking works
18226 # against Tk.framework installed in an arbitrary location.
18229 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
18230 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
18231 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
18232 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
18233 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
18238 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
18239 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
18240 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
18246 # eval is required to do the TK_DBGX substitution
18247 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
18248 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
18249 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
18250 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
18265 # Check for in-tree Tk
18267 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
18271 # Find Tk private headers
18272 if test x
"${intree}" = xno
; then
18274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
18275 $as_echo_n "checking for Tk private headers... " >&6; }
18277 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
18278 if test -f ${dir}/tkInt.h
; then
18282 if test x
"${private_dir}" = x
; then
18283 as_fn_error $?
"could not find Tk private headers" "$LINENO" 5
18285 TK_PRIVATE_INCLUDE
="-I${private_dir}"
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
18287 $as_echo "${private_dir}" >&6; }
18290 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
18291 TK_LIBRARY
=${TK_LIB_SPEC}
18294 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
18295 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
18296 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
18303 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
18305 # Include some libraries that Tcl and Tk want.
18306 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
18307 # Yes, the ordering seems wrong here. But it isn't.
18308 # TK_LIBS is the list of libraries that need to be linked
18309 # after Tcl/Tk. Note that this isn't put into LIBS. If it
18310 # were in LIBS then any link tests after this point would
18311 # try to include things like `$(LIBGUI)', which wouldn't work.
18312 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
18314 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
18315 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
18316 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
18317 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
18318 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
18319 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
18320 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
18322 if test x
"$gdb_cv_os_cygwin" = xyes
; then
18323 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
18324 WIN32LDAPP
="-Wl,--subsystem,console"
18325 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
18330 subdirs
="$subdirs gdbtk"
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
18343 $as_echo_n "checking for X... " >&6; }
18346 # Check whether --with-x was given.
18347 if test "${with_x+set}" = set; then :
18351 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18352 if test "x$with_x" = xno
; then
18353 # The user explicitly disabled X.
18356 case $x_includes,$x_libraries in #(
18357 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
18358 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
18359 $as_echo_n "(cached) " >&6
18361 # One or both of the vars are not set, and there is no cached value.
18362 ac_x_includes
=no ac_x_libraries
=no
18363 rm -f -r conftest.dir
18364 if mkdir conftest.dir
; then
18366 cat >Imakefile
<<'_ACEOF'
18368 @echo incroot='${INCROOT}'
18370 @echo usrlibdir='${USRLIBDIR}'
18372 @echo libdir='${LIBDIR}'
18374 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
18375 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
18376 for ac_var
in incroot usrlibdir libdir
; do
18377 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18379 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18380 for ac_extension
in a so sl dylib la dll
; do
18381 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18382 test -f "$ac_im_libdir/libX11.$ac_extension"; then
18383 ac_im_usrlibdir
=$ac_im_libdir; break
18386 # Screen out bogus values from the imake configuration. They are
18387 # bogus both because they are the default anyway, and because
18388 # using them would break gcc on systems where it needs fixed includes.
18389 case $ac_im_incroot in
18390 /usr
/include
) ac_x_includes
= ;;
18391 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
18393 case $ac_im_usrlibdir in
18394 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
18395 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
18399 rm -f -r conftest.dir
18402 # Standard set of common directories for X headers.
18403 # Check X11 before X11Rn because it is often a symlink to the current release.
18417 /usr/local/X11/include
18418 /usr/local/X11R7/include
18419 /usr/local/X11R6/include
18420 /usr/local/X11R5/include
18421 /usr/local/X11R4/include
18423 /usr/local/include/X11
18424 /usr/local/include/X11R7
18425 /usr/local/include/X11R6
18426 /usr/local/include/X11R5
18427 /usr/local/include/X11R4
18431 /usr/XFree86/include/X11
18435 /usr/unsupported/include
18436 /usr/athena/include
18437 /usr/local/x11r5/include
18438 /usr/lpp/Xamples/include
18440 /usr/openwin/include
18441 /usr/openwin/share/include'
18443 if test "$ac_x_includes" = no
; then
18444 # Guess where to find include files, by looking for Xlib.h.
18445 # First, try using that file with no special directory specified.
18446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18447 /* end confdefs.h. */
18448 #include <X11/Xlib.h>
18450 if ac_fn_c_try_cpp
"$LINENO"; then :
18451 # We can compile using X headers with no special include directory.
18454 for ac_dir
in $ac_x_header_dirs; do
18455 if test -r "$ac_dir/X11/Xlib.h"; then
18456 ac_x_includes
=$ac_dir
18461 rm -f conftest.err conftest.i conftest.
$ac_ext
18462 fi # $ac_x_includes = no
18464 if test "$ac_x_libraries" = no
; then
18465 # Check for the libraries.
18466 # See if we find them without any special options.
18467 # Don't add to $LIBS permanently.
18470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18471 /* end confdefs.h. */
18472 #include <X11/Xlib.h>
18481 if ac_fn_c_try_link
"$LINENO"; then :
18483 # We can link X programs with no special library path.
18487 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18489 # Don't even attempt the hair of trying to link an X program!
18490 for ac_extension
in a so sl dylib la dll
; do
18491 if test -r "$ac_dir/libX11.$ac_extension"; then
18492 ac_x_libraries
=$ac_dir
18498 rm -f core conftest.err conftest.
$ac_objext \
18499 conftest
$ac_exeext conftest.
$ac_ext
18500 fi # $ac_x_libraries = no
18502 case $ac_x_includes,$ac_x_libraries in #(
18503 no
,* |
*,no |
*\'*)
18504 # Didn't find X, or a directory has "'" in its name.
18505 ac_cv_have_x
="have_x=no";; #(
18507 # Record where we found X for the cache.
18508 ac_cv_have_x
="have_x=yes\
18509 ac_x_includes='$ac_x_includes'\
18510 ac_x_libraries='$ac_x_libraries'"
18516 eval "$ac_cv_have_x"
18519 if test "$have_x" != yes; then
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
18521 $as_echo "$have_x" >&6; }
18524 # If each of the values was on the command line, it overrides each guess.
18525 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
18526 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
18527 # Update the cache value to reflect the command line values.
18528 ac_cv_have_x
="have_x=yes\
18529 ac_x_includes='$x_includes'\
18530 ac_x_libraries='$x_libraries'"
18531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
18532 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
18536 # Unlike the sim directory, whether a simulator is linked is controlled by
18537 # presence of a gdb_sim definition in the target configure.tgt entry.
18538 # This code just checks for a few cases where we'd like to ignore those
18539 # definitions, even when they're present in the '.mt' file. These cases
18540 # are when --disable-sim is specified, or if the simulator directory is
18541 # not part of the source tree.
18543 # Check whether --enable-sim was given.
18544 if test "${enable_sim+set}" = set; then :
18545 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
18546 echo "enableval = ${enableval}";
18547 case "${enableval}" in
18548 yes) ignore_sim
=false
;;
18549 no
) ignore_sim
=true
;;
18550 *) ignore_sim
=false
;;
18557 if test ! -d "${srcdir}/../sim"; then
18563 if test "${ignore_sim}" = "false"; then
18564 if test x
"${gdb_sim}" != x
; then
18566 SIM_OBS
="remote-sim.o"
18568 $as_echo "#define WITH_SIM 1" >>confdefs.h
18571 # Some tdep code should only be compiled in when the ppc sim is
18572 # built. PR sim/13418.
18576 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
18596 # List of host floatformats.
18598 cat >>confdefs.h
<<_ACEOF
18599 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
18603 cat >>confdefs.h
<<_ACEOF
18604 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
18608 cat >>confdefs.h
<<_ACEOF
18609 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
18613 # target_subdir is used by the testsuite to find the target libraries.
18615 if test "${host}" != "${target}"; then
18616 target_subdir
="${target_alias}/"
18620 # Import nat definitions.
18621 nat_makefile_frag
=/dev
/null
18622 if test "${gdb_native}" = "yes"; then
18623 .
${srcdir}/configure.nat
18624 nativefile
=$NAT_FILE
18637 if test x
"${gdb_osabi}" != x
; then
18639 cat >>confdefs.h
<<_ACEOF
18640 #define GDB_OSABI_DEFAULT $gdb_osabi
18645 # Check for babeltrace and babeltrace-ctf
18647 # Check whether --with-babeltrace was given.
18648 if test "${with_babeltrace+set}" = set; then :
18649 withval
=$with_babeltrace;
18651 with_babeltrace
=auto
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
18655 $as_echo_n "checking whether to use babeltrace... " >&6; }
18656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
18657 $as_echo "$with_babeltrace" >&6; }
18659 if test "x$with_babeltrace" = "xno"; then
18660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
18661 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
18663 # Append -Werror to CFLAGS so that configure can catch the warning
18664 # "assignment from incompatible pointer type", which is related to
18665 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
18666 # in GDB, while babeltrace 1.0.3 is broken.
18667 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
18668 # safe to save and restore CFLAGS here.
18669 saved_CFLAGS
=$CFLAGS
18670 CFLAGS
="$CFLAGS -Werror"
18681 acl_save_prefix
="$prefix"
18682 prefix
="$acl_final_prefix"
18683 acl_save_exec_prefix
="$exec_prefix"
18684 exec_prefix
="$acl_final_exec_prefix"
18686 eval additional_includedir
=\"$includedir\"
18687 eval additional_libdir
=\"$libdir\"
18689 exec_prefix
="$acl_save_exec_prefix"
18690 prefix
="$acl_save_prefix"
18693 # Check whether --with-libbabeltrace-prefix was given.
18694 if test "${with_libbabeltrace_prefix+set}" = set; then :
18695 withval
=$with_libbabeltrace_prefix;
18696 if test "X$withval" = "Xno"; then
18699 if test "X$withval" = "X"; then
18701 acl_save_prefix
="$prefix"
18702 prefix
="$acl_final_prefix"
18703 acl_save_exec_prefix
="$exec_prefix"
18704 exec_prefix
="$acl_final_exec_prefix"
18706 eval additional_includedir
=\"$includedir\"
18707 eval additional_libdir
=\"$libdir\"
18709 exec_prefix
="$acl_save_exec_prefix"
18710 prefix
="$acl_save_prefix"
18713 additional_includedir
="$withval/include"
18714 additional_libdir
="$withval/lib"
18721 # Check whether --with-libbabeltrace-type was given.
18722 if test "${with_libbabeltrace_type+set}" = set; then :
18723 withval
=$with_libbabeltrace_type; with_libbabeltrace_type
=$withval
18725 with_libbabeltrace_type
=auto
18728 lib_type
=`eval echo \$with_libbabeltrace_type`
18735 names_already_handled
=
18736 names_next_round
='babeltrace babeltrace-ctf'
18737 while test -n "$names_next_round"; do
18738 names_this_round
="$names_next_round"
18740 for name
in $names_this_round; do
18742 for n
in $names_already_handled; do
18743 if test "$n" = "$name"; then
18744 already_handled
=yes
18748 if test -z "$already_handled"; then
18749 names_already_handled
="$names_already_handled $name"
18750 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18751 eval value
=\"\
$HAVE_LIB$uppername\"
18752 if test -n "$value"; then
18753 if test "$value" = yes; then
18754 eval value
=\"\
$LIB$uppername\"
18755 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
18756 eval value
=\"\
$LTLIB$uppername\"
18757 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
18766 if test $use_additional = yes; then
18767 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18768 found_dir
="$additional_libdir"
18769 found_so
="$additional_libdir/lib$name.$shlibext"
18770 if test -f "$additional_libdir/lib$name.la"; then
18771 found_la
="$additional_libdir/lib$name.la"
18773 elif test x
$lib_type != xshared
; then
18774 if test -f "$additional_libdir/lib$name.$libext"; then
18775 found_dir
="$additional_libdir"
18776 found_a
="$additional_libdir/lib$name.$libext"
18777 if test -f "$additional_libdir/lib$name.la"; then
18778 found_la
="$additional_libdir/lib$name.la"
18783 if test "X$found_dir" = "X"; then
18784 for x
in $LDFLAGS $LTLIBBABELTRACE; do
18786 acl_save_prefix
="$prefix"
18787 prefix
="$acl_final_prefix"
18788 acl_save_exec_prefix
="$exec_prefix"
18789 exec_prefix
="$acl_final_exec_prefix"
18791 exec_prefix
="$acl_save_exec_prefix"
18792 prefix
="$acl_save_prefix"
18796 dir
=`echo "X$x" | sed -e 's/^X-L//'`
18797 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18799 found_so
="$dir/lib$name.$shlibext"
18800 if test -f "$dir/lib$name.la"; then
18801 found_la
="$dir/lib$name.la"
18803 elif test x
$lib_type != xshared
; then
18804 if test -f "$dir/lib$name.$libext"; then
18806 found_a
="$dir/lib$name.$libext"
18807 if test -f "$dir/lib$name.la"; then
18808 found_la
="$dir/lib$name.la"
18814 if test "X$found_dir" != "X"; then
18819 if test "X$found_dir" != "X"; then
18820 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
18821 if test "X$found_so" != "X"; then
18822 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
18823 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18826 for x
in $ltrpathdirs; do
18827 if test "X$x" = "X$found_dir"; then
18832 if test -z "$haveit"; then
18833 ltrpathdirs
="$ltrpathdirs $found_dir"
18835 if test "$hardcode_direct" = yes; then
18836 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18838 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
18839 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18841 for x
in $rpathdirs; do
18842 if test "X$x" = "X$found_dir"; then
18847 if test -z "$haveit"; then
18848 rpathdirs
="$rpathdirs $found_dir"
18852 for x
in $LDFLAGS $LIBBABELTRACE; do
18854 acl_save_prefix
="$prefix"
18855 prefix
="$acl_final_prefix"
18856 acl_save_exec_prefix
="$exec_prefix"
18857 exec_prefix
="$acl_final_exec_prefix"
18859 exec_prefix
="$acl_save_exec_prefix"
18860 prefix
="$acl_save_prefix"
18862 if test "X$x" = "X-L$found_dir"; then
18867 if test -z "$haveit"; then
18868 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
18870 if test "$hardcode_minus_L" != no
; then
18871 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18873 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
18879 if test "X$found_a" != "X"; then
18880 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
18882 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
18885 additional_includedir
=
18886 case "$found_dir" in
18888 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18889 additional_includedir
="$basedir/include"
18892 if test "X$additional_includedir" != "X"; then
18893 if test "X$additional_includedir" != "X/usr/include"; then
18895 if test "X$additional_includedir" = "X/usr/local/include"; then
18896 if test -n "$GCC"; then
18898 linux
*) haveit
=yes;;
18902 if test -z "$haveit"; then
18903 for x
in $CPPFLAGS $INCBABELTRACE; do
18905 acl_save_prefix
="$prefix"
18906 prefix
="$acl_final_prefix"
18907 acl_save_exec_prefix
="$exec_prefix"
18908 exec_prefix
="$acl_final_exec_prefix"
18910 exec_prefix
="$acl_save_exec_prefix"
18911 prefix
="$acl_save_prefix"
18913 if test "X$x" = "X-I$additional_includedir"; then
18918 if test -z "$haveit"; then
18919 if test -d "$additional_includedir"; then
18920 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
18926 if test -n "$found_la"; then
18927 save_libdir
="$libdir"
18928 case "$found_la" in
18929 */* |
*\\*) .
"$found_la" ;;
18930 *) .
"./$found_la" ;;
18932 libdir
="$save_libdir"
18933 for dep
in $dependency_libs; do
18936 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
18937 if test "X$additional_libdir" != "X/usr/lib"; then
18939 if test "X$additional_libdir" = "X/usr/local/lib"; then
18940 if test -n "$GCC"; then
18942 linux
*) haveit
=yes;;
18946 if test -z "$haveit"; then
18948 for x
in $LDFLAGS $LIBBABELTRACE; do
18950 acl_save_prefix
="$prefix"
18951 prefix
="$acl_final_prefix"
18952 acl_save_exec_prefix
="$exec_prefix"
18953 exec_prefix
="$acl_final_exec_prefix"
18955 exec_prefix
="$acl_save_exec_prefix"
18956 prefix
="$acl_save_prefix"
18958 if test "X$x" = "X-L$additional_libdir"; then
18963 if test -z "$haveit"; then
18964 if test -d "$additional_libdir"; then
18965 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
18969 for x
in $LDFLAGS $LTLIBBABELTRACE; do
18971 acl_save_prefix
="$prefix"
18972 prefix
="$acl_final_prefix"
18973 acl_save_exec_prefix
="$exec_prefix"
18974 exec_prefix
="$acl_final_exec_prefix"
18976 exec_prefix
="$acl_save_exec_prefix"
18977 prefix
="$acl_save_prefix"
18979 if test "X$x" = "X-L$additional_libdir"; then
18984 if test -z "$haveit"; then
18985 if test -d "$additional_libdir"; then
18986 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
18993 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
18994 if test "$enable_rpath" != no
; then
18996 for x
in $rpathdirs; do
18997 if test "X$x" = "X$dir"; then
19002 if test -z "$haveit"; then
19003 rpathdirs
="$rpathdirs $dir"
19006 for x
in $ltrpathdirs; do
19007 if test "X$x" = "X$dir"; then
19012 if test -z "$haveit"; then
19013 ltrpathdirs
="$ltrpathdirs $dir"
19018 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19021 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19024 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
19025 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
19031 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
19032 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
19033 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
19035 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l:lib$name.$libext"
19036 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l:lib$name.$libext"
19043 if test "X$rpathdirs" != "X"; then
19044 if test -n "$hardcode_libdir_separator"; then
19046 for found_dir
in $rpathdirs; do
19047 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
19049 acl_save_libdir
="$libdir"
19051 eval flag
=\"$hardcode_libdir_flag_spec\"
19052 libdir
="$acl_save_libdir"
19053 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
19055 for found_dir
in $rpathdirs; do
19056 acl_save_libdir
="$libdir"
19057 libdir
="$found_dir"
19058 eval flag
=\"$hardcode_libdir_flag_spec\"
19059 libdir
="$acl_save_libdir"
19060 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
19064 if test "X$ltrpathdirs" != "X"; then
19065 for found_dir
in $ltrpathdirs; do
19066 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
19071 ac_save_CPPFLAGS
="$CPPFLAGS"
19073 for element
in $INCBABELTRACE; do
19075 for x
in $CPPFLAGS; do
19077 acl_save_prefix
="$prefix"
19078 prefix
="$acl_final_prefix"
19079 acl_save_exec_prefix
="$exec_prefix"
19080 exec_prefix
="$acl_final_exec_prefix"
19082 exec_prefix
="$acl_save_exec_prefix"
19083 prefix
="$acl_save_prefix"
19085 if test "X$x" = "X$element"; then
19090 if test -z "$haveit"; then
19091 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
19096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
19097 $as_echo_n "checking for libbabeltrace... " >&6; }
19098 if ${ac_cv_libbabeltrace+:} false
; then :
19099 $as_echo_n "(cached) " >&6
19102 ac_save_LIBS
="$LIBS"
19103 LIBS
="$LIBS $LIBBABELTRACE"
19104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19105 /* end confdefs.h. */
19106 #include <babeltrace/babeltrace.h>
19107 #include <babeltrace/ctf/events.h>
19108 #include <babeltrace/ctf/iterator.h>
19112 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
19113 struct bt_ctf_event *event = NULL;
19114 const struct bt_definition *scope;
19116 pos->type = BT_SEEK_BEGIN;
19117 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
19118 scope = bt_ctf_get_top_level_scope (event,
19119 BT_STREAM_EVENT_HEADER);
19120 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
19126 if ac_fn_c_try_link
"$LINENO"; then :
19127 ac_cv_libbabeltrace
=yes
19129 ac_cv_libbabeltrace
=no
19131 rm -f core conftest.err conftest.
$ac_objext \
19132 conftest
$ac_exeext conftest.
$ac_ext
19133 LIBS
="$ac_save_LIBS"
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
19137 $as_echo "$ac_cv_libbabeltrace" >&6; }
19138 if test "$ac_cv_libbabeltrace" = yes; then
19139 HAVE_LIBBABELTRACE
=yes
19141 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
19143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
19144 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
19145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
19146 $as_echo "$LIBBABELTRACE" >&6; }
19148 HAVE_LIBBABELTRACE
=no
19149 CPPFLAGS
="$ac_save_CPPFLAGS"
19159 CFLAGS
=$saved_CFLAGS
19161 if test "$HAVE_LIBBABELTRACE" != yes; then
19162 if test "$with_babeltrace" = yes; then
19163 as_fn_error $?
"babeltrace is missing or unusable" "$LINENO" 5
19165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
19166 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
19173 # Check whether --with-xxhash was given.
19174 if test "${with_xxhash+set}" = set; then :
19175 withval
=$with_xxhash;
19181 # Check whether --enable-libctf was given.
19182 if test "${enable_libctf+set}" = set; then :
19183 enableval
=$enable_libctf;
19184 case "$enableval" in
19186 *) as_fn_error $?
"Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
19194 if test x
${enable_static} = xno
; then
19195 LIBCTF
="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so"
19196 CTF_DEPS
="../libctf/.libs/libctf.so"
19198 LIBCTF
="../libctf/.libs/libctf.a"
19201 if test "${enable_libctf}" = yes; then
19203 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
19213 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
19216 if test "x$with_xxhash" != "xno"; then
19227 acl_save_prefix
="$prefix"
19228 prefix
="$acl_final_prefix"
19229 acl_save_exec_prefix
="$exec_prefix"
19230 exec_prefix
="$acl_final_exec_prefix"
19232 eval additional_includedir
=\"$includedir\"
19233 eval additional_libdir
=\"$libdir\"
19235 exec_prefix
="$acl_save_exec_prefix"
19236 prefix
="$acl_save_prefix"
19239 # Check whether --with-libxxhash-prefix was given.
19240 if test "${with_libxxhash_prefix+set}" = set; then :
19241 withval
=$with_libxxhash_prefix;
19242 if test "X$withval" = "Xno"; then
19245 if test "X$withval" = "X"; then
19247 acl_save_prefix
="$prefix"
19248 prefix
="$acl_final_prefix"
19249 acl_save_exec_prefix
="$exec_prefix"
19250 exec_prefix
="$acl_final_exec_prefix"
19252 eval additional_includedir
=\"$includedir\"
19253 eval additional_libdir
=\"$libdir\"
19255 exec_prefix
="$acl_save_exec_prefix"
19256 prefix
="$acl_save_prefix"
19259 additional_includedir
="$withval/include"
19260 additional_libdir
="$withval/lib"
19267 # Check whether --with-libxxhash-type was given.
19268 if test "${with_libxxhash_type+set}" = set; then :
19269 withval
=$with_libxxhash_type; with_libxxhash_type
=$withval
19271 with_libxxhash_type
=auto
19274 lib_type
=`eval echo \$with_libxxhash_type`
19281 names_already_handled
=
19282 names_next_round
='xxhash '
19283 while test -n "$names_next_round"; do
19284 names_this_round
="$names_next_round"
19286 for name
in $names_this_round; do
19288 for n
in $names_already_handled; do
19289 if test "$n" = "$name"; then
19290 already_handled
=yes
19294 if test -z "$already_handled"; then
19295 names_already_handled
="$names_already_handled $name"
19296 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
19297 eval value
=\"\
$HAVE_LIB$uppername\"
19298 if test -n "$value"; then
19299 if test "$value" = yes; then
19300 eval value
=\"\
$LIB$uppername\"
19301 test -z "$value" || LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$value"
19302 eval value
=\"\
$LTLIB$uppername\"
19303 test -z "$value" || LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$value"
19312 if test $use_additional = yes; then
19313 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
19314 found_dir
="$additional_libdir"
19315 found_so
="$additional_libdir/lib$name.$shlibext"
19316 if test -f "$additional_libdir/lib$name.la"; then
19317 found_la
="$additional_libdir/lib$name.la"
19319 elif test x
$lib_type != xshared
; then
19320 if test -f "$additional_libdir/lib$name.$libext"; then
19321 found_dir
="$additional_libdir"
19322 found_a
="$additional_libdir/lib$name.$libext"
19323 if test -f "$additional_libdir/lib$name.la"; then
19324 found_la
="$additional_libdir/lib$name.la"
19329 if test "X$found_dir" = "X"; then
19330 for x
in $LDFLAGS $LTLIBXXHASH; do
19332 acl_save_prefix
="$prefix"
19333 prefix
="$acl_final_prefix"
19334 acl_save_exec_prefix
="$exec_prefix"
19335 exec_prefix
="$acl_final_exec_prefix"
19337 exec_prefix
="$acl_save_exec_prefix"
19338 prefix
="$acl_save_prefix"
19342 dir
=`echo "X$x" | sed -e 's/^X-L//'`
19343 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
19345 found_so
="$dir/lib$name.$shlibext"
19346 if test -f "$dir/lib$name.la"; then
19347 found_la
="$dir/lib$name.la"
19349 elif test x
$lib_type != xshared
; then
19350 if test -f "$dir/lib$name.$libext"; then
19352 found_a
="$dir/lib$name.$libext"
19353 if test -f "$dir/lib$name.la"; then
19354 found_la
="$dir/lib$name.la"
19360 if test "X$found_dir" != "X"; then
19365 if test "X$found_dir" != "X"; then
19366 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$found_dir -l$name"
19367 if test "X$found_so" != "X"; then
19368 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
19369 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19372 for x
in $ltrpathdirs; do
19373 if test "X$x" = "X$found_dir"; then
19378 if test -z "$haveit"; then
19379 ltrpathdirs
="$ltrpathdirs $found_dir"
19381 if test "$hardcode_direct" = yes; then
19382 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19384 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
19385 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19387 for x
in $rpathdirs; do
19388 if test "X$x" = "X$found_dir"; then
19393 if test -z "$haveit"; then
19394 rpathdirs
="$rpathdirs $found_dir"
19398 for x
in $LDFLAGS $LIBXXHASH; do
19400 acl_save_prefix
="$prefix"
19401 prefix
="$acl_final_prefix"
19402 acl_save_exec_prefix
="$exec_prefix"
19403 exec_prefix
="$acl_final_exec_prefix"
19405 exec_prefix
="$acl_save_exec_prefix"
19406 prefix
="$acl_save_prefix"
19408 if test "X$x" = "X-L$found_dir"; then
19413 if test -z "$haveit"; then
19414 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir"
19416 if test "$hardcode_minus_L" != no
; then
19417 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19419 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
19425 if test "X$found_a" != "X"; then
19426 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_a"
19428 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir -l$name"
19431 additional_includedir
=
19432 case "$found_dir" in
19434 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
19435 additional_includedir
="$basedir/include"
19438 if test "X$additional_includedir" != "X"; then
19439 if test "X$additional_includedir" != "X/usr/include"; then
19441 if test "X$additional_includedir" = "X/usr/local/include"; then
19442 if test -n "$GCC"; then
19444 linux
*) haveit
=yes;;
19448 if test -z "$haveit"; then
19449 for x
in $CPPFLAGS $INCXXHASH; do
19451 acl_save_prefix
="$prefix"
19452 prefix
="$acl_final_prefix"
19453 acl_save_exec_prefix
="$exec_prefix"
19454 exec_prefix
="$acl_final_exec_prefix"
19456 exec_prefix
="$acl_save_exec_prefix"
19457 prefix
="$acl_save_prefix"
19459 if test "X$x" = "X-I$additional_includedir"; then
19464 if test -z "$haveit"; then
19465 if test -d "$additional_includedir"; then
19466 INCXXHASH
="${INCXXHASH}${INCXXHASH:+ }-I$additional_includedir"
19472 if test -n "$found_la"; then
19473 save_libdir
="$libdir"
19474 case "$found_la" in
19475 */* |
*\\*) .
"$found_la" ;;
19476 *) .
"./$found_la" ;;
19478 libdir
="$save_libdir"
19479 for dep
in $dependency_libs; do
19482 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
19483 if test "X$additional_libdir" != "X/usr/lib"; then
19485 if test "X$additional_libdir" = "X/usr/local/lib"; then
19486 if test -n "$GCC"; then
19488 linux
*) haveit
=yes;;
19492 if test -z "$haveit"; then
19494 for x
in $LDFLAGS $LIBXXHASH; do
19496 acl_save_prefix
="$prefix"
19497 prefix
="$acl_final_prefix"
19498 acl_save_exec_prefix
="$exec_prefix"
19499 exec_prefix
="$acl_final_exec_prefix"
19501 exec_prefix
="$acl_save_exec_prefix"
19502 prefix
="$acl_save_prefix"
19504 if test "X$x" = "X-L$additional_libdir"; then
19509 if test -z "$haveit"; then
19510 if test -d "$additional_libdir"; then
19511 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$additional_libdir"
19515 for x
in $LDFLAGS $LTLIBXXHASH; do
19517 acl_save_prefix
="$prefix"
19518 prefix
="$acl_final_prefix"
19519 acl_save_exec_prefix
="$exec_prefix"
19520 exec_prefix
="$acl_final_exec_prefix"
19522 exec_prefix
="$acl_save_exec_prefix"
19523 prefix
="$acl_save_prefix"
19525 if test "X$x" = "X-L$additional_libdir"; then
19530 if test -z "$haveit"; then
19531 if test -d "$additional_libdir"; then
19532 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$additional_libdir"
19539 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
19540 if test "$enable_rpath" != no
; then
19542 for x
in $rpathdirs; do
19543 if test "X$x" = "X$dir"; then
19548 if test -z "$haveit"; then
19549 rpathdirs
="$rpathdirs $dir"
19552 for x
in $ltrpathdirs; do
19553 if test "X$x" = "X$dir"; then
19558 if test -z "$haveit"; then
19559 ltrpathdirs
="$ltrpathdirs $dir"
19564 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19567 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19570 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$dep"
19571 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$dep"
19577 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
19578 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
19579 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l$name"
19581 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l:lib$name.$libext"
19582 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l:lib$name.$libext"
19589 if test "X$rpathdirs" != "X"; then
19590 if test -n "$hardcode_libdir_separator"; then
19592 for found_dir
in $rpathdirs; do
19593 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
19595 acl_save_libdir
="$libdir"
19597 eval flag
=\"$hardcode_libdir_flag_spec\"
19598 libdir
="$acl_save_libdir"
19599 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
19601 for found_dir
in $rpathdirs; do
19602 acl_save_libdir
="$libdir"
19603 libdir
="$found_dir"
19604 eval flag
=\"$hardcode_libdir_flag_spec\"
19605 libdir
="$acl_save_libdir"
19606 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
19610 if test "X$ltrpathdirs" != "X"; then
19611 for found_dir
in $ltrpathdirs; do
19612 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-R$found_dir"
19617 ac_save_CPPFLAGS
="$CPPFLAGS"
19619 for element
in $INCXXHASH; do
19621 for x
in $CPPFLAGS; do
19623 acl_save_prefix
="$prefix"
19624 prefix
="$acl_final_prefix"
19625 acl_save_exec_prefix
="$exec_prefix"
19626 exec_prefix
="$acl_final_exec_prefix"
19628 exec_prefix
="$acl_save_exec_prefix"
19629 prefix
="$acl_save_prefix"
19631 if test "X$x" = "X$element"; then
19636 if test -z "$haveit"; then
19637 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
19642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5
19643 $as_echo_n "checking for libxxhash... " >&6; }
19644 if ${ac_cv_libxxhash+:} false
; then :
19645 $as_echo_n "(cached) " >&6
19648 ac_save_LIBS
="$LIBS"
19649 LIBS
="$LIBS $LIBXXHASH"
19650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19651 /* end confdefs.h. */
19652 #include <xxhash.h>
19656 XXH32("foo", 3, 0);
19662 if ac_fn_c_try_link
"$LINENO"; then :
19663 ac_cv_libxxhash
=yes
19667 rm -f core conftest.err conftest.
$ac_objext \
19668 conftest
$ac_exeext conftest.
$ac_ext
19669 LIBS
="$ac_save_LIBS"
19672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxxhash" >&5
19673 $as_echo "$ac_cv_libxxhash" >&6; }
19674 if test "$ac_cv_libxxhash" = yes; then
19677 $as_echo "#define HAVE_LIBXXHASH 1" >>confdefs.h
19679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libxxhash" >&5
19680 $as_echo_n "checking how to link with libxxhash... " >&6; }
19681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXXHASH" >&5
19682 $as_echo "$LIBXXHASH" >&6; }
19685 CPPFLAGS
="$ac_save_CPPFLAGS"
19695 if test "$HAVE_LIBXXHASH" != yes; then
19696 if test "$with_xxhash" = yes; then
19697 as_fn_error $?
"xxhash is missing or unusable" "$LINENO" 5
19700 if test "x$with_xxhash" = "xauto"; then
19701 with_xxhash
="$HAVE_LIBXXHASH"
19705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
19706 $as_echo_n "checking whether to use xxhash... " >&6; }
19707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
19708 $as_echo "$with_xxhash" >&6; }
19712 if test "${nativefile}" != ""; then
19713 case "${nativefile}" in
19714 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
19715 * ) GDB_NM_FILE
="${nativefile}"
19717 ac_config_links
="$ac_config_links nm.h:$GDB_NM_FILE"
19720 cat >>confdefs.h
<<_ACEOF
19721 #define GDB_NM_FILE "${GDB_NM_FILE}"
19729 for ac_prog
in xsltproc
19731 # Extract the first word of "$ac_prog", so it can be a program name with args.
19732 set dummy
$ac_prog; ac_word
=$2
19733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19734 $as_echo_n "checking for $ac_word... " >&6; }
19735 if ${ac_cv_path_XSLTPROC+:} false
; then :
19736 $as_echo_n "(cached) " >&6
19740 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
19743 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19744 for as_dir
in $PATH
19747 test -z "$as_dir" && as_dir
=.
19748 for ac_exec_ext
in '' $ac_executable_extensions; do
19749 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19750 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
19751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19761 XSLTPROC
=$ac_cv_path_XSLTPROC
19762 if test -n "$XSLTPROC"; then
19763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19764 $as_echo "$XSLTPROC" >&6; }
19766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19767 $as_echo "no" >&6; }
19771 test -n "$XSLTPROC" && break
19773 test -n "$XSLTPROC" || XSLTPROC
="missing"
19775 if test "x$USE_MAINTAINER_MODE" = xyes
; then
19776 if test "${XSLTPROC}" = missing
; then
19777 as_fn_error $?
"unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
19785 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
19789 # Check whether we will enable the inclusion of unit tests when
19792 # The default value of this option changes depending whether we're on
19793 # development mode (in which case it's "true") or not (in which case
19794 # it's "false"). The $development variable is set by the GDB_AC_COMMON
19795 # macro, which must therefore be used before GDB_AC_SELFTEST.
19797 if test "x$development" != xtrue
&& test "x$development" != xfalse
; then :
19798 as_fn_error $?
"Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
19801 # Check whether --enable-unit-tests was given.
19802 if test "${enable_unit_tests+set}" = set; then :
19803 enableval
=$enable_unit_tests; case "${enableval}" in
19804 yes) enable_unittests
=true
;;
19805 no
) enable_unittests
=false
;;
19806 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
19809 enable_unittests
=$development
19813 if $enable_unittests; then
19815 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
19818 CONFIG_OBS
="$CONFIG_OBS \$(SELFTESTS_OBS)"
19819 CONFIG_SRCS
="$CONFIG_SRCS \$(SELFTESTS_SRCS)"
19825 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19826 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
19827 if test "x$GDB_TRANSFORM_NAME" = x
; then
19828 GDB_TRANSFORM_NAME
=gdb
19833 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19834 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
19835 if test "x$GCORE_TRANSFORM_NAME" = x
; then
19836 GCORE_TRANSFORM_NAME
=gcore
19840 ac_config_files
="$ac_config_files gcore"
19842 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
19844 # Transform the name of some programs for the testsuite/lib/pdtrace
19847 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19848 STRIP_TRANSFORM_NAME
=`echo strip | sed -e "$gdb_ac_transform"`
19849 if test "x$STRIP_TRANSFORM_NAME" = x
; then
19850 STRIP_TRANSFORM_NAME
=strip
19855 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19856 READELF_TRANSFORM_NAME
=`echo readelf | sed -e "$gdb_ac_transform"`
19857 if test "x$READELF_TRANSFORM_NAME" = x
; then
19858 READELF_TRANSFORM_NAME
=readelf
19863 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19864 GAS_TRANSFORM_NAME
=`echo as | sed -e "$gdb_ac_transform"`
19865 if test "x$GAS_TRANSFORM_NAME" = x
; then
19866 GAS_TRANSFORM_NAME
=as
19871 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19872 NM_TRANSFORM_NAME
=`echo nm | sed -e "$gdb_ac_transform"`
19873 if test "x$NM_TRANSFORM_NAME" = x
; then
19874 NM_TRANSFORM_NAME
=nm
19878 ac_config_files
="$ac_config_files testsuite/lib/pdtrace"
19880 ac_config_files
="$ac_config_files testsuite/Makefile"
19883 cat >confcache
<<\_ACEOF
19884 # This file is a shell script that caches the results of configure
19885 # tests run on this system so they can be shared between configure
19886 # scripts and configure runs, see configure's option --config-cache.
19887 # It is not useful on other systems. If it contains results you don't
19888 # want to keep, you may remove or edit it.
19890 # config.status only pays attention to the cache file if you give it
19891 # the --recheck option to rerun configure.
19893 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19894 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19895 # following values.
19899 # The following way of writing the cache mishandles newlines in values,
19900 # but we know of no workaround that is simple, portable, and efficient.
19901 # So, we kill variables containing newlines.
19902 # Ultrix sh set writes to stderr and can't be redirected directly,
19903 # and sets the high bit in the cache file unless we assign to the vars.
19905 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19906 eval ac_val
=\$
$ac_var
19910 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19911 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19914 _ | IFS | as_nl
) ;; #(
19915 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
19916 *) { eval $ac_var=; unset $ac_var;} ;;
19922 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19923 *${as_nl}ac_space
=\
*)
19924 # `set' does not quote correctly, so add quotes: double-quote
19925 # substitution turns \\\\ into \\, and sed turns \\ into \.
19928 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19931 # `set' quotes correctly as required by POSIX, so do not add quotes.
19932 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19941 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19943 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19945 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
19946 if test -w "$cache_file"; then
19947 if test "x$cache_file" != "x/dev/null"; then
19948 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19949 $as_echo "$as_me: updating cache $cache_file" >&6;}
19950 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
19951 cat confcache
>"$cache_file"
19953 case $cache_file in #(
19955 mv -f confcache
"$cache_file"$$
&&
19956 mv -f "$cache_file"$$
"$cache_file" ;; #(
19958 mv -f confcache
"$cache_file" ;;
19963 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19964 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19969 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19970 # Let make expand exec_prefix.
19971 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19973 DEFS
=-DHAVE_CONFIG_H
19978 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19979 # 1. Remove the extension, and $U if already installed.
19980 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
19981 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
19982 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19983 # will be set to the directory where LIBOBJS objects are built.
19984 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19985 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
19987 LIBOBJS
=$ac_libobjs
19989 LTLIBOBJS
=$ac_ltlibobjs
19992 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19993 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
19994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19996 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
19997 as_fn_error $?
"conditional \"HAVE_PYTHON\" was never defined.
19998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20000 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
20001 as_fn_error $?
"conditional \"HAVE_GUILE\" was never defined.
20002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20006 : "${CONFIG_STATUS=./config.status}"
20008 ac_clean_files_save
=$ac_clean_files
20009 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
20010 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20011 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20013 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20015 # Generated by $as_me.
20016 # Run this file to recreate the current configuration.
20017 # Compiler output produced by configure, useful for debugging
20018 # configure, is in config.log if it exists.
20021 ac_cs_recheck=false
20024 SHELL=\${CONFIG_SHELL-$SHELL}
20027 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
20028 ## -------------------- ##
20029 ## M4sh Initialization. ##
20030 ## -------------------- ##
20032 # Be more Bourne compatible
20033 DUALCASE
=1; export DUALCASE
# for MKS sh
20034 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20037 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20038 # is contrary to our usage. Disable this feature.
20039 alias -g '${1+"$@"}'='"$@"'
20040 setopt NO_GLOB_SUBST
20042 case `(set -o) 2>/dev/null` in #(
20054 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20055 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20056 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20057 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20058 # Prefer a ksh shell builtin over an external printf program on Solaris,
20059 # but without wasting forks for bash or zsh.
20060 if test -z "$BASH_VERSION$ZSH_VERSION" \
20061 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20062 as_echo='print
-r --'
20063 as_echo_n='print
-rn --'
20064 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20065 as_echo='printf %s
\n'
20066 as_echo_n='printf %s
'
20068 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20069 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
20070 as_echo_n='/usr
/ucb
/echo -n'
20072 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20073 as_echo_n_body='eval
20077 expr "X$arg" : "X\\(.*\\)$as_nl";
20078 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20080 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
20082 export as_echo_n_body
20083 as_echo_n='sh
-c $as_echo_n_body as_echo
'
20085 export as_echo_body
20086 as_echo='sh
-c $as_echo_body as_echo
'
20089 # The user is always right.
20090 if test "${PATH_SEPARATOR+set}" != set; then
20092 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20093 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20100 # We need space, tab and new line, in precisely that order. Quoting is
20101 # there to prevent editors from complaining about space-tab.
20102 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20103 # splitting by setting IFS to empty value.)
20106 # Find who we are. Look in the path if we contain no directory separator.
20109 *[\\/]* ) as_myself=$0 ;;
20110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20111 for as_dir in $PATH
20114 test -z "$as_dir" && as_dir=.
20115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20121 # We did not find ourselves, most probably we were run as `sh COMMAND'
20122 # in which case we are not to be found in the path.
20123 if test "x$as_myself" = x
; then
20126 if test ! -f "$as_myself"; then
20127 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20131 # Unset variables that we do not need and which cause bugs (e.g. in
20132 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20133 # suppresses any "Segmentation fault" message there. '((' could
20134 # trigger a bug in pdksh 5.2.14.
20135 for as_var
in BASH_ENV ENV MAIL MAILPATH
20136 do eval test x\
${$as_var+set} = xset \
20137 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
20150 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
20153 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20154 # ----------------------------------------
20155 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20156 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20157 # script with STATUS, using 1 if that was 0.
20160 as_status
=$1; test $as_status -eq 0 && as_status
=1
20162 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
20163 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20165 $as_echo "$as_me: error: $2" >&2
20166 as_fn_exit
$as_status
20170 # as_fn_set_status STATUS
20171 # -----------------------
20172 # Set $? to STATUS, without forking.
20173 as_fn_set_status
()
20176 } # as_fn_set_status
20178 # as_fn_exit STATUS
20179 # -----------------
20180 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20184 as_fn_set_status
$1
20190 # Portably unset VAR.
20193 { eval $1=; unset $1;}
20195 as_unset
=as_fn_unset
20196 # as_fn_append VAR VALUE
20197 # ----------------------
20198 # Append the text in VALUE to the end of the definition contained in VAR. Take
20199 # advantage of any shell optimizations that allow amortized linear growth over
20200 # repeated appends, instead of the typical quadratic growth present in naive
20202 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
20203 eval 'as_fn_append ()
20214 # as_fn_arith ARG...
20215 # ------------------
20216 # Perform arithmetic evaluation on the ARGs, and store the result in the
20217 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20218 # must be portable across $(()) and expr.
20219 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
20220 eval 'as_fn_arith ()
20227 as_val
=`expr "$@" || test $? -eq 1`
20232 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20233 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20239 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20240 as_basename
=basename
20245 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
20251 as_me
=`$as_basename -- "$0" ||
20252 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20253 X"$0" : 'X\(//\)$' \| \
20254 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20256 sed '/^.*\/\([^/][^/]*\)\/*$/{
20270 # Avoid depending upon Character Ranges.
20271 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
20272 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20273 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
20274 as_cr_digits
='0123456789'
20275 as_cr_alnum
=$as_cr_Letters$as_cr_digits
20277 ECHO_C
= ECHO_N
= ECHO_T
=
20278 case `echo -n x` in #(((((
20280 case `echo 'xy\c'` in
20281 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
20283 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
20290 rm -f conf$$ conf$$.exe conf$$.
file
20291 if test -d conf$$.dir
; then
20292 rm -f conf$$.dir
/conf$$.
file
20295 mkdir conf$$.dir
2>/dev
/null
20297 if (echo >conf$$.
file) 2>/dev
/null
; then
20298 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20300 # ... but there are two gotchas:
20301 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20302 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20303 # In both cases, we have to default to `cp -pR'.
20304 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
20306 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20314 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
20315 rmdir conf$$.dir
2>/dev
/null
20320 # Create "$as_dir" as a directory, including parents if necessary.
20325 -*) as_dir
=.
/$as_dir;;
20327 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
20331 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20332 *) as_qdir
=$as_dir;;
20334 as_dirs
="'$as_qdir' $as_dirs"
20335 as_dir
=`$as_dirname -- "$as_dir" ||
20336 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20337 X"$as_dir" : 'X\(//\)[^/]' \| \
20338 X"$as_dir" : 'X\(//\)$' \| \
20339 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20340 $as_echo X"$as_dir" |
20341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20345 /^X\(\/\/\)[^/].*/{
20358 test -d "$as_dir" && break
20360 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
20361 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
20365 if mkdir
-p .
2>/dev
/null
; then
20366 as_mkdir_p
='mkdir -p "$as_dir"'
20368 test -d .
/-p && rmdir .
/-p
20373 # as_fn_executable_p FILE
20374 # -----------------------
20375 # Test if FILE is an executable regular file.
20376 as_fn_executable_p
()
20378 test -f "$1" && test -x "$1"
20379 } # as_fn_executable_p
20380 as_test_x
='test -x'
20381 as_executable_p
=as_fn_executable_p
20383 # Sed expression to map a string onto a valid CPP name.
20384 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20386 # Sed expression to map a string onto a valid variable name.
20387 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20391 ## ----------------------------------- ##
20392 ## Main body of $CONFIG_STATUS script. ##
20393 ## ----------------------------------- ##
20395 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
20397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20398 # Save the log message, to keep $0 and so on meaningful, and to
20399 # report actual input values of CONFIG_FILES etc. instead of their
20400 # values after options handling.
20402 This file was extended by $as_me, which was
20403 generated by GNU Autoconf 2.69. Invocation command line was
20405 CONFIG_FILES = $CONFIG_FILES
20406 CONFIG_HEADERS = $CONFIG_HEADERS
20407 CONFIG_LINKS = $CONFIG_LINKS
20408 CONFIG_COMMANDS = $CONFIG_COMMANDS
20411 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20416 case $ac_config_files in *"
20417 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
20420 case $ac_config_headers in *"
20421 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
20425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20426 # Files that config.status was made for.
20427 config_files="$ac_config_files"
20428 config_headers="$ac_config_headers"
20429 config_links="$ac_config_links"
20430 config_commands="$ac_config_commands"
20434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20436 \`$as_me' instantiates files and other configuration actions
20437 from templates according to the current configuration. Unless the files
20438 and actions are specified as TAGs, all are instantiated by default.
20440 Usage: $0 [OPTION]... [TAG]...
20442 -h, --help print this help, then exit
20443 -V, --version print version number and configuration settings, then exit
20444 --config print configuration, then exit
20445 -q, --quiet, --silent
20446 do not print progress messages
20447 -d, --debug don't remove temporary files
20448 --recheck update $as_me by reconfiguring in the same conditions
20449 --file=FILE[:TEMPLATE]
20450 instantiate the configuration file FILE
20451 --header=FILE[:TEMPLATE]
20452 instantiate the configuration header FILE
20454 Configuration files:
20457 Configuration headers:
20460 Configuration links:
20463 Configuration commands:
20466 Report bugs to the package provider."
20469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20470 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20473 configured by $0, generated by GNU Autoconf 2.69,
20474 with options \\"\$ac_cs_config\\"
20476 Copyright (C) 2012 Free Software Foundation, Inc.
20477 This config.status script is free software; the Free Software Foundation
20478 gives unlimited permission to copy, distribute and modify it."
20484 test -n "\$AWK" || AWK=awk
20487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20488 # The default lists apply if the user does not specify any file.
20494 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20495 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20499 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20511 # Handling of the options.
20512 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20514 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20515 $as_echo "$ac_cs_version"; exit ;;
20516 --config |
--confi |
--conf |
--con |
--co |
--c )
20517 $as_echo "$ac_cs_config"; exit ;;
20518 --debug |
--debu |
--deb |
--de |
--d |
-d )
20520 --file |
--fil |
--fi |
--f )
20523 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20524 '') as_fn_error $?
"missing file argument" ;;
20526 as_fn_append CONFIG_FILES
" '$ac_optarg'"
20527 ac_need_defaults
=false
;;
20528 --header |
--heade |
--head |
--hea )
20531 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20533 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
20534 ac_need_defaults
=false
;;
20536 # Conflict between --help and --header
20537 as_fn_error $?
"ambiguous option: \`$1'
20538 Try \`$0 --help' for more information.";;
20539 --help |
--hel |
-h )
20540 $as_echo "$ac_cs_usage"; exit ;;
20541 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20542 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20545 # This is an error.
20546 -*) as_fn_error $?
"unrecognized option: \`$1'
20547 Try \`$0 --help' for more information." ;;
20549 *) as_fn_append ac_config_targets
" $1"
20550 ac_need_defaults
=false
;;
20556 ac_configure_extra_args
=
20558 if $ac_cs_silent; then
20560 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20564 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20565 if \$ac_cs_recheck; then
20566 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20568 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20569 CONFIG_SHELL='$SHELL'
20570 export CONFIG_SHELL
20575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20579 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20580 ## Running $as_me. ##
20586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20590 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
20591 GDB_NM_FILE=$GDB_NM_FILE
20595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20597 # Handling of arguments.
20598 for ac_config_target
in $ac_config_targets
20600 case $ac_config_target in
20601 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
20602 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
20603 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
20604 "nm.h") CONFIG_LINKS
="$CONFIG_LINKS nm.h:$GDB_NM_FILE" ;;
20605 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
20606 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20607 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
20608 "gdb-gdb.py") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.py" ;;
20609 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
20610 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
20611 "testsuite/lib/pdtrace") CONFIG_FILES
="$CONFIG_FILES testsuite/lib/pdtrace" ;;
20612 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
20614 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20619 # If the user did not use the arguments to specify the items to instantiate,
20620 # then the envvar interface is used. Set only those that are not.
20621 # We use the long form for the default assignment because of an extremely
20622 # bizarre bug on SunOS 4.1.3.
20623 if $ac_need_defaults; then
20624 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20625 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20626 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
20627 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20630 # Have a temporary directory for convenience. Make it in the build tree
20631 # simply because there is no reason against having it here, and in addition,
20632 # creating and moving files from /tmp can sometimes cause problems.
20633 # Hook for its removal unless debugging.
20634 # Note that there is a small window in which the directory will not be cleaned:
20635 # after its creation but before its name has been assigned to `$tmp'.
20639 trap 'exit_status=$?
20640 : "${ac_tmp:=$tmp}"
20641 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20643 trap 'as_fn_exit 1' 1 2 13 15
20645 # Create a (secure) tmp directory for tmp files.
20648 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20652 tmp
=.
/conf$$
-$RANDOM
20653 (umask 077 && mkdir
"$tmp")
20654 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
20657 # Set up the scripts for CONFIG_FILES section.
20658 # No need to generate them if there are no CONFIG_FILES.
20659 # This happens for instance with `./config.status config.h'.
20660 if test -n "$CONFIG_FILES"; then
20662 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
20663 ac_cs_awk_getline
=:
20664 ac_cs_awk_pipe_init
=
20665 ac_cs_awk_read_file
='
20666 while ((getline aline < (F[key])) > 0)
20669 ac_cs_awk_pipe_fini
=
20671 ac_cs_awk_getline
=false
20672 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
20673 ac_cs_awk_read_file
='
20675 print "cat " F[key] " &&"
20676 '$ac_cs_awk_pipe_init
20677 # The final `:' finishes the AND list.
20678 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
20680 ac_cr
=`echo X | tr X '\015'`
20681 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20682 # But we know of no other shell where ac_cr would be empty at this
20683 # point, so we can use a bashism as a fallback.
20684 if test "x$ac_cr" = x
; then
20685 eval ac_cr
=\$
\'\\r
\'
20687 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20688 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20691 ac_cs_awk_cr
=$ac_cr
20694 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20697 # Create commands to substitute file output variables.
20699 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20700 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
20701 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
20704 } >conf$
$files.sh
&&
20705 . .
/conf$
$files.sh ||
20706 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
20707 rm -f conf$
$files.sh
20710 echo "cat >conf$$subs.awk <<_ACEOF" &&
20711 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20713 } >conf$$subs.sh ||
20714 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20715 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20717 for ac_last_try in false false false false false :; do
20718 . ./conf$$subs.sh ||
20719 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20721 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20722 if test $ac_delim_n = $ac_delim_num; then
20724 elif $ac_last_try; then
20725 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20727 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20730 rm -f conf$$subs.sh
20732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20733 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
20737 s/^/S["/; s
/!.
*/"]=/
20747 s/\(.\{148\}\)..*/\1/
20749 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
20754 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20761 s/\(.\{148\}\)..*/\1/
20763 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
20767 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20772 ' <conf$$subs.awk | sed '
20777 ' >>$CONFIG_STATUS || ac_write_fail=1
20778 rm -f conf$$subs.awk
20779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20781 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
20782 for (key in S) S_is_set[key] = 1
20784 \$ac_cs_awk_pipe_init
20788 nfields = split(line, field, "@
")
20790 len = length(field[1])
20791 for (i = 2; i < nfields; i++) {
20793 keylen = length(key)
20794 if (S_is_set[key]) {
20796 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20797 len += length(value) + length(field[++i])
20802 if (nfields == 3 && !substed) {
20804 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
20805 \$ac_cs_awk_read_file
20811 \$ac_cs_awk_pipe_fini
20814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20815 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20816 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
20819 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
20820 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
20823 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20824 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
20825 # trailing colons and then remove the whole line if VPATH becomes empty
20826 # (actually we leave an empty line to preserve line numbers).
20827 if test "x
$srcdir" = x.; then
20828 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20847 fi # test -n "$CONFIG_FILES"
20849 # Set up the scripts for CONFIG_HEADERS section.
20850 # No need to generate them if there are no CONFIG_HEADERS.
20851 # This happens for instance with `./config.status Makefile'.
20852 if test -n "$CONFIG_HEADERS"; then
20853 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
20857 # Transform confdefs.h into an awk script `defines.awk', embedded as
20858 # here-document in config.status, that substitutes the proper values into
20859 # config.h.in to produce config.h.
20861 # Create a delimiter string that does not exist in confdefs.h, to ease
20862 # handling of long lines.
20864 for ac_last_try in false false :; do
20865 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
20866 if test -z "$ac_tt"; then
20868 elif $ac_last_try; then
20869 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
20871 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20875 # For the awk script, D is an array of macro values keyed by name,
20876 # likewise P contains macro parameters if any. Preserve backslash
20877 # newline sequences.
20879 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20881 s/.\{148\}/&'"$ac_delim"'/g
20884 s/^[ ]*#[ ]*define[ ][ ]*/ /
20891 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
20893 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
20897 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
20898 D["\
1"]=" \
3\\\\\\n
"\\/p
20900 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
20905 s/.\{148\}/&'"$ac_delim"'/g
20910 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
20913 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
20915 ' <confdefs.h | sed '
20916 s/'"$ac_delim"'/"\\\
20917 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20919 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20920 for (key in D) D_is_set[key] = 1
20923 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20925 split(line, arg, " ")
20926 if (arg[1] == "#") {
20930 defundef
= substr
(arg
[1], 2)
20933 split(mac1
, mac2
, "(") #)
20935 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
20936 if (D_is_set
[macro
]) {
20937 # Preserve the white space surrounding the "#".
20938 print prefix
"define", macro P
[macro
] D
[macro
]
20941 # Replace #undef with comments. This is necessary, for example,
20942 # in the case of _POSIX_SOURCE, which is predefined and required
20943 # on some systems where configure will not decide to define it.
20944 if (defundef
== "undef") {
20945 print
"/*", prefix defundef
, macro
, "*/"
20953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20954 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
20955 fi # test -n "$CONFIG_HEADERS"
20958 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
20963 :[FHLC
]) ac_mode
=$ac_tag; continue;;
20965 case $ac_mode$ac_tag in
20967 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
20968 :[FH
]-) ac_tag
=-:-;;
20969 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
20986 -) ac_f
="$ac_tmp/stdin";;
20987 *) # Look for the file first in the build tree, then in the source tree
20988 # (if the path is not absolute). The absolute path cannot be DOS-style,
20989 # because $ac_f cannot contain `:'.
20993 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
20995 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20997 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20998 as_fn_append ac_file_inputs
" '$ac_f'"
21001 # Let's still pretend it is `configure' which instantiates (i.e., don't
21002 # use $as_me), people would be surprised to read:
21003 # /* config.h. Generated by config.status. */
21004 configure_input
='Generated from '`
21005 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21007 if test x
"$ac_file" != x-
; then
21008 configure_input
="$ac_file. $configure_input"
21009 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21010 $as_echo "$as_me: creating $ac_file" >&6;}
21012 # Neutralize special characters interpreted by sed in replacement strings.
21013 case $configure_input in #(
21014 *\
&* |
*\|
* |
*\\* )
21015 ac_sed_conf_input
=`$as_echo "$configure_input" |
21016 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21017 *) ac_sed_conf_input
=$configure_input;;
21021 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
21022 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
21027 ac_dir
=`$as_dirname -- "$ac_file" ||
21028 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21029 X"$ac_file" : 'X\(//\)[^/]' \| \
21030 X"$ac_file" : 'X\(//\)$' \| \
21031 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21032 $as_echo X"$ac_file" |
21033 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21037 /^X\(\/\/\)[^/].*/{
21050 as_dir
="$ac_dir"; as_fn_mkdir_p
21054 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21056 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21057 # A ".." for each directory in $ac_dir_suffix.
21058 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21059 case $ac_top_builddir_sub in
21060 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21061 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
21064 ac_abs_top_builddir
=$ac_pwd
21065 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
21066 # for backward compatibility:
21067 ac_top_builddir
=$ac_top_build_prefix
21070 .
) # We are building in place.
21072 ac_top_srcdir
=$ac_top_builddir_sub
21073 ac_abs_top_srcdir
=$ac_pwd ;;
21074 [\\/]* | ?
:[\\/]* ) # Absolute name.
21075 ac_srcdir
=$srcdir$ac_dir_suffix;
21076 ac_top_srcdir
=$srcdir
21077 ac_abs_top_srcdir
=$srcdir ;;
21078 *) # Relative name.
21079 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
21080 ac_top_srcdir
=$ac_top_build_prefix$srcdir
21081 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
21083 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
21093 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
21094 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
21098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21099 # If the template does not know about datarootdir, expand it.
21100 # FIXME: This hack should be removed a few years after 2.60.
21101 ac_datarootdir_hack
=; ac_datarootdir_seen
=
21112 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21113 *datarootdir
*) ac_datarootdir_seen
=yes;;
21114 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
21115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21116 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21119 ac_datarootdir_hack='
21120 s&@datadir@&$datadir&g
21121 s&@docdir@&$docdir&g
21122 s&@infodir@&$infodir&g
21123 s&@localedir@&$localedir&g
21124 s&@mandir@&$mandir&g
21125 s&\\\${datarootdir}&$datarootdir&g' ;;
21129 # Neutralize VPATH when `$srcdir' = `.'.
21130 # Shell code in configure.ac might set extrasub.
21131 # FIXME: do we really want to maintain this feature?
21132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21133 ac_sed_extra="$ac_vpsub
21136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21138 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
21139 s|@configure_input@|
$ac_sed_conf_input|
;t t
21140 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
21141 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
21142 s
&@srcdir@
&$ac_srcdir&;t t
21143 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
21144 s
&@top_srcdir@
&$ac_top_srcdir&;t t
21145 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
21146 s
&@builddir@
&$ac_builddir&;t t
21147 s
&@abs_builddir@
&$ac_abs_builddir&;t t
21148 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
21149 s
&@INSTALL@
&$ac_INSTALL&;t t
21150 $ac_datarootdir_hack
21152 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
21153 if $ac_cs_awk_getline; then
21154 $AWK -f "$ac_tmp/subs.
awk"
21156 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
21158 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
21160 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21161 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
21162 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21163 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
21164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
21165 which seems to be undefined. Please make sure it is defined" >&5
21166 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
21167 which seems to be undefined. Please make sure it is defined" >&2;}
21169 rm -f "$ac_tmp/stdin"
21171 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21172 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21174 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21180 if test x"$ac_file" != x-; then
21182 $as_echo "/* $configure_input */" \
21183 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21184 } >"$ac_tmp/config.h" \
21185 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21186 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21187 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21188 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21191 mv "$ac_tmp/config.h" "$ac_file" \
21192 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21195 $as_echo "/* $configure_input */" \
21196 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21197 || as_fn_error $? "could not create -" "$LINENO" 5
21205 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
21208 # Prefer the file from the source tree if names are identical.
21209 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
21210 ac_source=$srcdir/$ac_source
21213 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
21214 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
21216 if test ! -r "$ac_source"; then
21217 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
21221 # Try a relative symlink, then a hard link, then a copy.
21223 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
21224 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
21226 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
21227 ln "$ac_source" "$ac_file" 2>/dev/null ||
21228 cp -p "$ac_source" "$ac_file" ||
21229 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
21232 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21233 $as_echo "$as_me: executing $ac_file commands" >&6;}
21238 case $ac_file$ac_mode in
21239 "config.h":H) echo > stamp-h ;;
21240 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
21241 "nm.h":L) echo > stamp-nmh ;;
21242 "gcore":F) chmod +x gcore ;;
21243 "testsuite/lib/pdtrace":F) chmod +x testsuite/lib/pdtrace ;;
21251 ac_clean_files=$ac_clean_files_save
21253 test $ac_write_fail = 0 ||
21254 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21257 # configure is writing to config.log, and then calls config.status.
21258 # config.status does its own redirection, appending to config.log.
21259 # Unfortunately, on DOS this fails, as config.log is still kept open
21260 # by configure, so config.status won't be able to
write to it
; its
21261 # output is simply discarded. So we exec the FD to /dev/null,
21262 # effectively closing config.log, so it can be properly (re)opened and
21263 # appended to by config.status. When coming back to configure, we
21264 # need to make the FD available again.
21265 if test "$no_create" != yes; then
21267 ac_config_status_args
=
21268 test "$silent" = yes &&
21269 ac_config_status_args
="$ac_config_status_args --quiet"
21271 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21273 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21274 # would make configure fail if this is the last instruction.
21275 $ac_cs_success || as_fn_exit
1
21279 # CONFIG_SUBDIRS section.
21281 if test "$no_recursion" != yes; then
21283 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
21284 # so they do not pile up.
21285 ac_sub_configure_args
=
21287 eval "set x $ac_configure_args"
21291 if test -n "$ac_prev"; then
21296 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
21297 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
21298 ac_prev
=cache_file
;;
21299 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
21300 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
21303 --config-cache |
-C)
21305 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
21307 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
21309 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
21311 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
21313 --disable-option-checking)
21317 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21319 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
21323 # Always prepend --prefix to ensure using the same prefix
21324 # in subdir configurations.
21325 ac_arg
="--prefix=$prefix"
21327 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21329 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
21332 if test "$silent" = yes; then
21333 ac_sub_configure_args
="--silent $ac_sub_configure_args"
21336 # Always prepend --disable-option-checking to silence warnings, since
21337 # different subdirs can have different --enable and --with options.
21338 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
21341 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
21343 # Do not complain, so a configure script can configure whichever
21344 # parts of a large source tree are present.
21345 test -d "$srcdir/$ac_dir" ||
continue
21347 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21348 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
21349 $as_echo "$ac_msg" >&6
21350 as_dir
="$ac_dir"; as_fn_mkdir_p
21354 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21356 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21357 # A ".." for each directory in $ac_dir_suffix.
21358 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21359 case $ac_top_builddir_sub in
21360 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21361 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
21364 ac_abs_top_builddir
=$ac_pwd
21365 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
21366 # for backward compatibility:
21367 ac_top_builddir
=$ac_top_build_prefix
21370 .
) # We are building in place.
21372 ac_top_srcdir
=$ac_top_builddir_sub
21373 ac_abs_top_srcdir
=$ac_pwd ;;
21374 [\\/]* | ?
:[\\/]* ) # Absolute name.
21375 ac_srcdir
=$srcdir$ac_dir_suffix;
21376 ac_top_srcdir
=$srcdir
21377 ac_abs_top_srcdir
=$srcdir ;;
21378 *) # Relative name.
21379 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
21380 ac_top_srcdir
=$ac_top_build_prefix$srcdir
21381 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
21383 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
21388 # Check for guested configure; otherwise get Cygnus style configure.
21389 if test -f "$ac_srcdir/configure.gnu"; then
21390 ac_sub_configure
=$ac_srcdir/configure.gnu
21391 elif test -f "$ac_srcdir/configure"; then
21392 ac_sub_configure
=$ac_srcdir/configure
21393 elif test -f "$ac_srcdir/configure.in"; then
21394 # This should be Cygnus configure.
21395 ac_sub_configure
=$ac_aux_dir/configure
21397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
21398 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21402 # The recursion is here.
21403 if test -n "$ac_sub_configure"; then
21404 # Make the cache file name correct relative to the subdirectory.
21405 case $cache_file in
21406 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
21407 *) # Relative name.
21408 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
21411 { $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
21412 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21413 # The eval makes quoting arguments work.
21414 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21415 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21416 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
21422 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
21423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21424 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}