2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="main.c"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
622 enable_option_checking
=no
624 ac_subst_vars
='LTLIBOBJS
640 HAVE_NATIVE_GCORE_HOST
740 READLINE_TEXI_INCFLAG
769 HAVE_NATIVE_GCORE_TARGET
795 INSTALL_STRIP_PROGRAM
825 MAINTAINER_MODE_FALSE
854 program_transform_name
865 ac_subst_files
='nat_makefile_frag'
867 enable_option_checking
868 enable_maintainer_mode
871 with_separate_debug_dir
873 with_relocated_sources
875 with_auto_load_safe_path
905 enable_source_highlight
912 with_system_gdbinit_dir
914 enable_build_warnings
915 enable_gdb_build_warnings
925 with_libbabeltrace_prefix
926 with_libbabeltrace_type
929 with_libxxhash_prefix
933 ac_precious_vars
='build_alias
955 ac_subdirs_all
='testsuite
958 # Initialize some variables set by options.
960 ac_init_version
=false
961 ac_unrecognized_opts
=
963 # The variables have the same names as the options, with
964 # dashes changed to underlines.
972 program_transform_name
=s
,x
,x
,
980 # Installation directory options.
981 # These are left unexpanded so users can "make install exec_prefix=/foo"
982 # and all the variables that are supposed to be based on exec_prefix
983 # by default will actually change.
984 # Use braces instead of parens because sh, perl, etc. also accept them.
985 # (The list follows the same order as the GNU Coding Standards.)
986 bindir
='${exec_prefix}/bin'
987 sbindir
='${exec_prefix}/sbin'
988 libexecdir
='${exec_prefix}/libexec'
989 datarootdir
='${prefix}/share'
990 datadir
='${datarootdir}'
991 sysconfdir
='${prefix}/etc'
992 sharedstatedir
='${prefix}/com'
993 localstatedir
='${prefix}/var'
994 includedir
='${prefix}/include'
995 oldincludedir
='/usr/include'
996 docdir
='${datarootdir}/doc/${PACKAGE}'
997 infodir
='${datarootdir}/info'
1002 libdir
='${exec_prefix}/lib'
1003 localedir
='${datarootdir}/locale'
1004 mandir
='${datarootdir}/man'
1010 # If the previous option needs an argument, assign it.
1011 if test -n "$ac_prev"; then
1012 eval $ac_prev=\
$ac_option
1018 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1023 # Accept the important Cygnus configure options, so we can diagnose typos.
1025 case $ac_dashdash$ac_option in
1029 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1031 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1032 bindir
=$ac_optarg ;;
1034 -build |
--build |
--buil |
--bui |
--bu)
1035 ac_prev
=build_alias
;;
1036 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1037 build_alias
=$ac_optarg ;;
1039 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1040 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1041 ac_prev
=cache_file
;;
1042 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1043 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1044 cache_file
=$ac_optarg ;;
1046 --config-cache |
-C)
1047 cache_file
=config.cache
;;
1049 -datadir |
--datadir |
--datadi |
--datad)
1051 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1052 datadir
=$ac_optarg ;;
1054 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1055 |
--dataroo |
--dataro |
--datar)
1056 ac_prev
=datarootdir
;;
1057 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1058 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1059 datarootdir
=$ac_optarg ;;
1061 -disable-* |
--disable-*)
1062 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1065 as_fn_error $?
"invalid feature name: $ac_useropt"
1066 ac_useropt_orig
=$ac_useropt
1067 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1068 case $ac_user_opts in
1070 "enable_
$ac_useropt"
1072 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1073 ac_unrecognized_sep
=', ';;
1075 eval enable_
$ac_useropt=no
;;
1077 -docdir |
--docdir |
--docdi |
--doc |
--do)
1079 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1080 docdir
=$ac_optarg ;;
1082 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1084 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1085 dvidir
=$ac_optarg ;;
1087 -enable-* |
--enable-*)
1088 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1089 # Reject names that are not valid shell variable names.
1090 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1091 as_fn_error $?
"invalid feature name: $ac_useropt"
1092 ac_useropt_orig
=$ac_useropt
1093 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094 case $ac_user_opts in
1096 "enable_
$ac_useropt"
1098 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1099 ac_unrecognized_sep
=', ';;
1101 eval enable_
$ac_useropt=\
$ac_optarg ;;
1103 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1104 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1105 |
--exec |
--exe |
--ex)
1106 ac_prev
=exec_prefix
;;
1107 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1108 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1109 |
--exec=* |
--exe=* |
--ex=*)
1110 exec_prefix
=$ac_optarg ;;
1112 -gas |
--gas |
--ga |
--g)
1113 # Obsolete; use --with-gas.
1116 -help |
--help |
--hel |
--he |
-h)
1117 ac_init_help
=long
;;
1118 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1119 ac_init_help
=recursive
;;
1120 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1121 ac_init_help
=short
;;
1123 -host |
--host |
--hos |
--ho)
1124 ac_prev
=host_alias
;;
1125 -host=* |
--host=* |
--hos=* |
--ho=*)
1126 host_alias
=$ac_optarg ;;
1128 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1130 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1132 htmldir
=$ac_optarg ;;
1134 -includedir |
--includedir |
--includedi |
--included |
--include \
1135 |
--includ |
--inclu |
--incl |
--inc)
1136 ac_prev
=includedir
;;
1137 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1138 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1139 includedir
=$ac_optarg ;;
1141 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1143 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1144 infodir
=$ac_optarg ;;
1146 -libdir |
--libdir |
--libdi |
--libd)
1148 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1149 libdir
=$ac_optarg ;;
1151 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1152 |
--libexe |
--libex |
--libe)
1153 ac_prev
=libexecdir
;;
1154 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1155 |
--libexe=* |
--libex=* |
--libe=*)
1156 libexecdir
=$ac_optarg ;;
1158 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1159 ac_prev
=localedir
;;
1160 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1161 localedir
=$ac_optarg ;;
1163 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1164 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1165 ac_prev
=localstatedir
;;
1166 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1167 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1168 localstatedir
=$ac_optarg ;;
1170 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1172 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1173 mandir
=$ac_optarg ;;
1175 -nfp |
--nfp |
--nf)
1176 # Obsolete; use --without-fp.
1179 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1180 |
--no-cr |
--no-c |
-n)
1183 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1184 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1187 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1188 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1189 |
--oldin |
--oldi |
--old |
--ol |
--o)
1190 ac_prev
=oldincludedir
;;
1191 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1192 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1193 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1194 oldincludedir
=$ac_optarg ;;
1196 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1198 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1199 prefix
=$ac_optarg ;;
1201 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1202 |
--program-pre |
--program-pr |
--program-p)
1203 ac_prev
=program_prefix
;;
1204 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1205 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1206 program_prefix
=$ac_optarg ;;
1208 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1209 |
--program-suf |
--program-su |
--program-s)
1210 ac_prev
=program_suffix
;;
1211 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1212 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1213 program_suffix
=$ac_optarg ;;
1215 -program-transform-name |
--program-transform-name \
1216 |
--program-transform-nam |
--program-transform-na \
1217 |
--program-transform-n |
--program-transform- \
1218 |
--program-transform |
--program-transfor \
1219 |
--program-transfo |
--program-transf \
1220 |
--program-trans |
--program-tran \
1221 |
--progr-tra |
--program-tr |
--program-t)
1222 ac_prev
=program_transform_name
;;
1223 -program-transform-name=* |
--program-transform-name=* \
1224 |
--program-transform-nam=* |
--program-transform-na=* \
1225 |
--program-transform-n=* |
--program-transform-=* \
1226 |
--program-transform=* |
--program-transfor=* \
1227 |
--program-transfo=* |
--program-transf=* \
1228 |
--program-trans=* |
--program-tran=* \
1229 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1230 program_transform_name
=$ac_optarg ;;
1232 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1234 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1235 pdfdir
=$ac_optarg ;;
1237 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1239 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1242 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1243 |
-silent |
--silent |
--silen |
--sile |
--sil)
1246 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1248 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1250 sbindir
=$ac_optarg ;;
1252 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1253 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1254 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1256 ac_prev
=sharedstatedir
;;
1257 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1258 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1259 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1261 sharedstatedir
=$ac_optarg ;;
1263 -site |
--site |
--sit)
1265 -site=* |
--site=* |
--sit=*)
1268 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1270 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1271 srcdir
=$ac_optarg ;;
1273 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1274 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1275 ac_prev
=sysconfdir
;;
1276 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1277 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1278 sysconfdir
=$ac_optarg ;;
1280 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1281 ac_prev
=target_alias
;;
1282 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1283 target_alias
=$ac_optarg ;;
1285 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1288 -version |
--version |
--versio |
--versi |
--vers |
-V)
1289 ac_init_version
=: ;;
1292 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1295 as_fn_error $?
"invalid package name: $ac_useropt"
1296 ac_useropt_orig
=$ac_useropt
1297 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298 case $ac_user_opts in
1302 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1303 ac_unrecognized_sep
=', ';;
1305 eval with_
$ac_useropt=\
$ac_optarg ;;
1307 -without-* |
--without-*)
1308 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1311 as_fn_error $?
"invalid package name: $ac_useropt"
1312 ac_useropt_orig
=$ac_useropt
1313 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1314 case $ac_user_opts in
1318 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1319 ac_unrecognized_sep
=', ';;
1321 eval with_
$ac_useropt=no
;;
1324 # Obsolete; use --with-x.
1327 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1328 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1329 ac_prev
=x_includes
;;
1330 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1331 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1332 x_includes
=$ac_optarg ;;
1334 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1335 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1336 ac_prev
=x_libraries
;;
1337 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1338 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1339 x_libraries
=$ac_optarg ;;
1341 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1342 Try \`$0 --help' for more information"
1346 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1347 # Reject names that are not valid shell variable names.
1348 case $ac_envvar in #(
1349 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1350 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1352 eval $ac_envvar=\
$ac_optarg
1353 export $ac_envvar ;;
1356 # FIXME: should be removed in autoconf 3.0.
1357 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1358 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1359 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1360 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1366 if test -n "$ac_prev"; then
1367 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1368 as_fn_error $?
"missing argument to $ac_option"
1371 if test -n "$ac_unrecognized_opts"; then
1372 case $enable_option_checking in
1374 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1375 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1379 # Check all directory arguments for consistency.
1380 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1381 datadir sysconfdir sharedstatedir localstatedir includedir \
1382 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1383 libdir localedir mandir
1385 eval ac_val
=\$
$ac_var
1386 # Remove trailing slashes.
1389 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1390 eval $ac_var=\
$ac_val;;
1392 # Be sure to have absolute directory names.
1394 [\\/$
]* | ?
:[\\/]* ) continue;;
1395 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1397 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1400 # There might be people who depend on the old broken behavior: `$host'
1401 # used to hold the argument of --host etc.
1402 # FIXME: To remove some day.
1405 target
=$target_alias
1407 # FIXME: To remove some day.
1408 if test "x$host_alias" != x
; then
1409 if test "x$build_alias" = x
; then
1410 cross_compiling
=maybe
1411 elif test "x$build_alias" != "x$host_alias"; then
1417 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1419 test "$silent" = yes && exec 6>/dev
/null
1422 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1423 ac_ls_di
=`ls -di .` &&
1424 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1425 as_fn_error $?
"working directory cannot be determined"
1426 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1427 as_fn_error $?
"pwd does not report name of working directory"
1430 # Find the source files, if location was not specified.
1431 if test -z "$srcdir"; then
1432 ac_srcdir_defaulted
=yes
1433 # Try the directory containing this script, then the parent directory.
1434 ac_confdir
=`$as_dirname -- "$as_myself" ||
1435 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1436 X"$as_myself" : 'X\(//\)[^/]' \| \
1437 X"$as_myself" : 'X\(//\)$' \| \
1438 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1439 $as_echo X"$as_myself" |
1440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1458 if test ! -r "$srcdir/$ac_unique_file"; then
1462 ac_srcdir_defaulted
=no
1464 if test ! -r "$srcdir/$ac_unique_file"; then
1465 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1466 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1468 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1470 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1472 # When building in place, set srcdir=.
1473 if test "$ac_abs_confdir" = "$ac_pwd"; then
1476 # Remove unnecessary trailing slashes from srcdir.
1477 # Double slashes in file names in object file debugging info
1478 # mess up M-x gdb in Emacs.
1480 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1482 for ac_var
in $ac_precious_vars; do
1483 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1484 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1485 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1486 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1490 # Report the --help message.
1492 if test "$ac_init_help" = "long"; then
1493 # Omit some internal or obsolete options to make the list less imposing.
1494 # This message is too long to be a string in the A/UX 3.1 sh.
1496 \`configure' configures this package to adapt to many kinds of systems.
1498 Usage: $0 [OPTION]... [VAR=VALUE]...
1500 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1501 VAR=VALUE. See below for descriptions of some of the useful variables.
1503 Defaults for the options are specified in brackets.
1506 -h, --help display this help and exit
1507 --help=short display options specific to this package
1508 --help=recursive display the short help of all the included packages
1509 -V, --version display version information and exit
1510 -q, --quiet, --silent do not print \`checking ...' messages
1511 --cache-file=FILE cache test results in FILE [disabled]
1512 -C, --config-cache alias for \`--cache-file=config.cache'
1513 -n, --no-create do not create output files
1514 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1516 Installation directories:
1517 --prefix=PREFIX install architecture-independent files in PREFIX
1518 [$ac_default_prefix]
1519 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1522 By default, \`make install' will install all the files in
1523 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1524 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1525 for instance \`--prefix=\$HOME'.
1527 For better control, use the options below.
1529 Fine tuning of the installation directories:
1530 --bindir=DIR user executables [EPREFIX/bin]
1531 --sbindir=DIR system admin executables [EPREFIX/sbin]
1532 --libexecdir=DIR program executables [EPREFIX/libexec]
1533 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1534 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1535 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1536 --libdir=DIR object code libraries [EPREFIX/lib]
1537 --includedir=DIR C header files [PREFIX/include]
1538 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1539 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1540 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1541 --infodir=DIR info documentation [DATAROOTDIR/info]
1542 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1543 --mandir=DIR man documentation [DATAROOTDIR/man]
1544 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1545 --htmldir=DIR html documentation [DOCDIR]
1546 --dvidir=DIR dvi documentation [DOCDIR]
1547 --pdfdir=DIR pdf documentation [DOCDIR]
1548 --psdir=DIR ps documentation [DOCDIR]
1554 --program-prefix=PREFIX prepend PREFIX to installed program names
1555 --program-suffix=SUFFIX append SUFFIX to installed program names
1556 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1559 --x-includes=DIR X include files are
in DIR
1560 --x-libraries=DIR X library files are
in DIR
1563 --build=BUILD configure
for building on BUILD
[guessed
]
1564 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1565 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1569 if test -n "$ac_init_help"; then
1574 --disable-option-checking ignore unrecognized
--enable/--with options
1575 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1576 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1577 --enable-maintainer-mode
1578 enable make rules and dependencies not useful
(and
1579 sometimes confusing
) to the casual installer
1580 --enable-plugins Enable support
for plugins
1581 --disable-largefile omit support
for large files
1582 --enable-targets=TARGETS
1583 alternative target configurations
1584 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1585 --disable-gdbmi disable machine-interface
(MI
)
1586 --enable-tui enable full-screen terminal user interface
(TUI
)
1587 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1588 --enable-profiling enable profiling of GDB
1589 --enable-codesign=CERT sign gdb with
'codesign -s CERT'
1590 --disable-rpath do not hardcode runtime library paths
1591 --enable-source-highlight
1592 enable source-highlight
for source listings
1593 --enable-werror treat compile warnings as errors
1594 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1595 --enable-gdb-build-warnings
1596 enable GDB specific build-time compiler warnings
if
1598 --enable-ubsan enable undefined behavior sanitizer
(auto
/yes
/no
)
1599 --enable-sim link gdb with simulator
1600 --enable-libctf Handle .ctf type-info sections
[default
=yes]
1601 --enable-unit-tests Enable the inclusion of unit tests when compiling
1605 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1606 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1607 --with-separate-debug-dir=PATH
1608 look for global separate debug info
in this path
1610 --with-gdb-datadir=PATH
look for global separate data files
in this path
1612 --with-relocated-sources=PATH
1613 automatically relocate this path
for source files
1614 --with-auto-load-dir=PATH
1615 directories from
which to load auto-loaded scripts
1616 [$debugdir:$datadir/auto-load
]
1617 --with-auto-load-safe-path=PATH
1618 directories safe to hold auto-loaded files
1619 [--with-auto-load-dir]
1620 --without-auto-load-safe-path
1621 do not restrict auto-loaded files locations
1622 --with-debuginfod Enable debuginfo lookups with debuginfod
1624 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1625 --with-curses use the curses library instead of the termcap
1627 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1628 --with-bugurl=URL Direct users to URL to report a bug
1629 --with-system-zlib use installed libz
1630 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1631 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1632 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1633 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1634 --with-iconv-bin=PATH specify where to find the iconv program
1635 --with-system-readline use installed readline library
1636 --with-jit-reader-dir=PATH
1637 directory to load the JIT readers from
1638 --with-expat include expat support (auto/yes/no)
1639 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1640 --without-libexpat-prefix don't search
for libexpat
in includedir and libdir
1641 --with-libexpat-type=TYPE
type of library to search
for (auto
/static
/shared
)
1642 --with-mpfr include MPFR support
(auto
/yes
/no
)
1643 --with-libmpfr-prefix[=DIR
] search
for libmpfr
in DIR
/include and DIR
/lib
1644 --without-libmpfr-prefix don
't search for libmpfr in includedir and libdir
1645 --with-libmpfr-type=TYPE type of library to search for (auto/static/shared)
1646 --with-python[=PYTHON] include python support
1647 (auto/yes/no/<python-program>)
1648 --with-python-libdir[=DIR]
1649 search for python's libraries
in DIR
1650 --with-guile[=GUILE
] include guile support
1651 (auto
/yes
/no
/<guile-version
>/<pkg-config-program
>)
1652 --with-intel-pt include Intel Processor Trace support
(auto
/yes
/no
)
1653 --with-libipt-prefix[=DIR
] search
for libipt
in DIR
/include and DIR
/lib
1654 --without-libipt-prefix don
't search for libipt in includedir and libdir
1655 --with-libipt-type=TYPE type of library to search for (auto/static/shared)
1656 --without-included-regex
1657 don't use included regex
; this is the default on
1658 systems with version
2 of the GNU C library
(use
1659 with caution on other system
)
1660 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1661 --with-system-gdbinit=PATH
1662 automatically load a system-wide gdbinit
file
1663 --with-system-gdbinit-dir=PATH
1664 automatically load system-wide gdbinit files from
1666 --with-lzma support lzma compression
(auto
/yes
/no
)
1667 --with-liblzma-prefix[=DIR
] search
for liblzma
in DIR
/include and DIR
/lib
1668 --without-liblzma-prefix don
't search for liblzma in includedir and libdir
1669 --with-liblzma-type=TYPE type of library to search for (auto/static/shared)
1670 --with-tcl directory containing tcl configuration (tclConfig.sh)
1671 --with-tk directory containing tk configuration (tkConfig.sh)
1672 --with-x use the X Window System
1673 --with-babeltrace include babeltrace support (auto/yes/no)
1674 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1675 --without-libbabeltrace-prefix don't search
for libbabeltrace
in includedir and libdir
1676 --with-libbabeltrace-type=TYPE
type of library to search
for (auto
/static
/shared
)
1677 --with-xxhash use libxxhash
for hashing
(faster
) (auto
/yes
/no
)
1678 --with-libxxhash-prefix[=DIR
] search
for libxxhash
in DIR
/include and DIR
/lib
1679 --without-libxxhash-prefix don
't search for libxxhash in includedir and libdir
1680 --with-libxxhash-type=TYPE type of library to search for (auto/static/shared)
1682 Some influential environment variables:
1683 CC C compiler command
1684 CFLAGS C compiler flags
1685 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1686 nonstandard directory <lib dir>
1687 LIBS libraries to pass to the linker, e.g. -l<library>
1688 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1689 you have headers in a nonstandard directory <include dir>
1690 CXX C++ compiler command
1691 CXXFLAGS C++ compiler flags
1693 MAKEINFO Parent configure detects if it is of sufficient version.
1695 Parameters for MAKEINFO.
1696 PKG_CONFIG path to pkg-config utility
1698 directories to add to pkg-config's search path
1700 path overriding pkg-config
's built-in search path
1702 C compiler flags for DEBUGINFOD, overriding pkg-config
1704 linker flags for DEBUGINFOD, overriding pkg-config
1705 YACC The `Yet Another Compiler Compiler' implementation to use.
1706 Defaults to the first program found out of
: `bison -y', `byacc
',
1708 YFLAGS The list of arguments that will be passed by default to
$YACC.
1709 This
script will default YFLAGS to the empty string to avoid a
1710 default value of
`-d' given by some make applications.
1711 XMKMF Path to xmkmf, Makefile generator for X Window System
1713 Use these variables to override the choices made by `configure
' or to help
1714 it to find libraries and programs with nonstandard names/locations.
1716 Report bugs to the package provider.
1721 if test "$ac_init_help" = "recursive"; then
1722 # If there are subdirs, report their specific --help.
1723 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1724 test -d "$ac_dir" ||
1725 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1730 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1732 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.
[\\/]||
'`
1733 # A ".." for each directory in $ac_dir_suffix.
1734 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|
/[^
\\/]*|
/..|g
;s|
/||
'`
1735 case $ac_top_builddir_sub in
1736 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1737 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1740 ac_abs_top_builddir=$ac_pwd
1741 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1742 # for backward compatibility:
1743 ac_top_builddir=$ac_top_build_prefix
1746 .) # We are building in place.
1748 ac_top_srcdir=$ac_top_builddir_sub
1749 ac_abs_top_srcdir=$ac_pwd ;;
1750 [\\/]* | ?:[\\/]* ) # Absolute name.
1751 ac_srcdir=$srcdir$ac_dir_suffix;
1752 ac_top_srcdir=$srcdir
1753 ac_abs_top_srcdir=$srcdir ;;
1755 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1756 ac_top_srcdir=$ac_top_build_prefix$srcdir
1757 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1759 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1761 cd "$ac_dir" || { ac_status=$?; continue; }
1762 # Check for guested configure.
1763 if test -f "$ac_srcdir/configure.gnu"; then
1765 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1766 elif test -f "$ac_srcdir/configure"; then
1768 $SHELL "$ac_srcdir/configure" --help=recursive
1770 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1772 cd "$ac_pwd" || { ac_status=$?; break; }
1776 test -n "$ac_init_help" && exit $ac_status
1777 if $ac_init_version; then
1780 generated by GNU Autoconf 2.69
1782 Copyright (C) 2012 Free Software Foundation, Inc.
1783 This configure script is free software; the Free Software Foundation
1784 gives unlimited permission to copy, distribute and modify it.
1789 ## ------------------------ ##
1790 ## Autoconf initialization. ##
1791 ## ------------------------ ##
1793 # ac_fn_c_try_compile LINENO
1794 # --------------------------
1795 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1796 ac_fn_c_try_compile ()
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 rm -f conftest.$ac_objext
1800 if { { ac_try="$ac_compile"
1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803 *) ac_try_echo=$ac_try;;
1805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806 $as_echo "$ac_try_echo"; } >&5
1807 (eval "$ac_compile") 2>conftest.err
1809 if test -s conftest.err; then
1810 grep -v '^
*+' conftest.err >conftest.er1
1811 cat conftest.er1 >&5
1812 mv -f conftest.er1 conftest.err
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && {
1816 test -z "$ac_c_werror_flag" ||
1817 test ! -s conftest.err
1818 } && test -s conftest.$ac_objext; then :
1821 $as_echo "$as_me: failed program was:" >&5
1822 sed 's
/^
/|
/' conftest.$ac_ext >&5
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827 as_fn_set_status $ac_retval
1829 } # ac_fn_c_try_compile
1831 # ac_fn_cxx_try_compile LINENO
1832 # ----------------------------
1833 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1834 ac_fn_cxx_try_compile ()
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 rm -f conftest.$ac_objext
1838 if { { ac_try="$ac_compile"
1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_compile") 2>conftest.err
1847 if test -s conftest.err; then
1848 grep -v '^
*+' conftest.err >conftest.er1
1849 cat conftest.er1 >&5
1850 mv -f conftest.er1 conftest.err
1852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853 test $ac_status = 0; } && {
1854 test -z "$ac_cxx_werror_flag" ||
1855 test ! -s conftest.err
1856 } && test -s conftest.$ac_objext; then :
1859 $as_echo "$as_me: failed program was:" >&5
1860 sed 's
/^
/|
/' conftest.$ac_ext >&5
1864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1865 as_fn_set_status $ac_retval
1867 } # ac_fn_cxx_try_compile
1869 # ac_fn_c_try_cpp LINENO
1870 # ----------------------
1871 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 if { { ac_try="$ac_cpp conftest.$ac_ext"
1877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878 *) ac_try_echo=$ac_try;;
1880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881 $as_echo "$ac_try_echo"; } >&5
1882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1884 if test -s conftest.err; then
1885 grep -v '^
*+' conftest.err >conftest.er1
1886 cat conftest.er1 >&5
1887 mv -f conftest.er1 conftest.err
1889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890 test $ac_status = 0; } > conftest.i && {
1891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1892 test ! -s conftest.err
1896 $as_echo "$as_me: failed program was:" >&5
1897 sed 's
/^
/|
/' conftest.$ac_ext >&5
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 as_fn_set_status $ac_retval
1906 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1907 # -------------------------------------------------------
1908 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1909 # the include files in INCLUDES and setting the cache variable VAR
1911 ac_fn_c_check_header_mongrel ()
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 if eval \${$3+:} false; then :
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916 $as_echo_n "checking for $2... " >&6; }
1917 if eval \${$3+:} false; then :
1918 $as_echo_n "(cached) " >&6
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1922 $as_echo "$ac_res" >&6; }
1924 # Is the header compilable?
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1926 $as_echo_n "checking $2 usability... " >&6; }
1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h. */
1932 if ac_fn_c_try_compile "$LINENO"; then :
1933 ac_header_compiler=yes
1935 ac_header_compiler=no
1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1939 $as_echo "$ac_header_compiler" >&6; }
1941 # Is the header present?
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1943 $as_echo_n "checking $2 presence... " >&6; }
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1948 if ac_fn_c_try_cpp "$LINENO"; then :
1949 ac_header_preproc=yes
1951 ac_header_preproc=no
1953 rm -f conftest.err conftest.i conftest.$ac_ext
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1955 $as_echo "$ac_header_preproc" >&6; }
1957 # So? What about this header?
1958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1961 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1963 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1967 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1969 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1971 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1973 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1975 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1979 $as_echo_n "checking for $2... " >&6; }
1980 if eval \${$3+:} false; then :
1981 $as_echo_n "(cached) " >&6
1983 eval "$3=\$ac_header_compiler"
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987 $as_echo "$ac_res" >&6; }
1989 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1991 } # ac_fn_c_check_header_mongrel
1993 # ac_fn_c_try_run LINENO
1994 # ----------------------
1995 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1996 # that executables *can* be run.
1999 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2000 if { { ac_try="$ac_link"
2002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2003 *) ac_try_echo=$ac_try;;
2005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2006 $as_echo "$ac_try_echo"; } >&5
2007 (eval "$ac_link") 2>&5
2009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2010 test $ac_status = 0; } && { ac_try='.
/conftest
$ac_exeext'
2011 { { case "(($ac_try" in
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_try") 2>&5
2019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2020 test $ac_status = 0; }; }; then :
2023 $as_echo "$as_me: program exited with status $ac_status" >&5
2024 $as_echo "$as_me: failed program was:" >&5
2025 sed 's
/^
/|
/' conftest.$ac_ext >&5
2027 ac_retval=$ac_status
2029 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2031 as_fn_set_status $ac_retval
2035 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2036 # -------------------------------------------------------
2037 # Tests whether HEADER exists and can be compiled using the include files in
2038 # INCLUDES, setting the cache variable VAR accordingly.
2039 ac_fn_c_check_header_compile ()
2041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2043 $as_echo_n "checking for $2... " >&6; }
2044 if eval \${$3+:} false; then :
2045 $as_echo_n "(cached) " >&6
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2052 if ac_fn_c_try_compile "$LINENO"; then :
2057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061 $as_echo "$ac_res" >&6; }
2062 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2064 } # ac_fn_c_check_header_compile
2066 # ac_fn_c_try_link LINENO
2067 # -----------------------
2068 # Try to link conftest.$ac_ext, and return whether this succeeded.
2071 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2072 rm -f conftest.$ac_objext conftest$ac_exeext
2073 if { { ac_try="$ac_link"
2075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2076 *) ac_try_echo=$ac_try;;
2078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2079 $as_echo "$ac_try_echo"; } >&5
2080 (eval "$ac_link") 2>conftest.err
2082 if test -s conftest.err; then
2083 grep -v '^
*+' conftest.err >conftest.er1
2084 cat conftest.er1 >&5
2085 mv -f conftest.er1 conftest.err
2087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2088 test $ac_status = 0; } && {
2089 test -z "$ac_c_werror_flag" ||
2090 test ! -s conftest.err
2091 } && test -s conftest$ac_exeext && {
2092 test "$cross_compiling" = yes ||
2093 test -x conftest$ac_exeext
2097 $as_echo "$as_me: failed program was:" >&5
2098 sed 's
/^
/|
/' conftest.$ac_ext >&5
2102 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2103 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2104 # interfere with the next link command; also delete a directory that is
2105 # left behind by Apple's compiler. We
do this before executing the actions.
2106 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2107 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2108 as_fn_set_status
$ac_retval
2110 } # ac_fn_c_try_link
2112 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2113 # --------------------------------------------
2114 # Tries to find the compile-time value of EXPR in a program that includes
2115 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2117 ac_fn_c_compute_int
()
2119 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2120 if test "$cross_compiling" = yes; then
2121 # Depending upon the size, compute the lo and hi bounds.
2122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2123 /* end confdefs.h. */
2128 static int test_array [1 - 2 * !(($2) >= 0)];
2130 return test_array [0];
2136 if ac_fn_c_try_compile
"$LINENO"; then :
2139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h. */
2145 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2147 return test_array [0];
2153 if ac_fn_c_try_compile
"$LINENO"; then :
2154 ac_hi
=$ac_mid; break
2156 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2157 if test $ac_lo -le $ac_mid; then
2161 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2163 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2167 /* end confdefs.h. */
2172 static int test_array [1 - 2 * !(($2) < 0)];
2174 return test_array [0];
2180 if ac_fn_c_try_compile
"$LINENO"; then :
2183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2184 /* end confdefs.h. */
2189 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2191 return test_array [0];
2197 if ac_fn_c_try_compile
"$LINENO"; then :
2198 ac_lo
=$ac_mid; break
2200 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2201 if test $ac_mid -le $ac_hi; then
2205 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2207 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2212 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2214 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2215 # Binary search between lo and hi bounds.
2216 while test "x$ac_lo" != "x$ac_hi"; do
2217 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h. */
2224 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2226 return test_array [0];
2232 if ac_fn_c_try_compile
"$LINENO"; then :
2235 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2237 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2240 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h. */
2247 static long int longval () { return $2; }
2248 static unsigned long int ulongval () { return $2; }
2255 FILE *f = fopen ("conftest.val", "w");
2260 long int i = longval ();
2263 fprintf (f, "%ld", i);
2267 unsigned long int i = ulongval ();
2270 fprintf (f, "%lu", i);
2272 /* Do not output a trailing newline, as this causes \r\n confusion
2273 on some platforms. */
2274 return ferror (f) || fclose (f) != 0;
2280 if ac_fn_c_try_run
"$LINENO"; then :
2281 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2285 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2286 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2290 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2291 as_fn_set_status
$ac_retval
2293 } # ac_fn_c_compute_int
2295 # ac_fn_c_check_func LINENO FUNC VAR
2296 # ----------------------------------
2297 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2298 ac_fn_c_check_func
()
2300 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2302 $as_echo_n "checking for $2... " >&6; }
2303 if eval \
${$3+:} false
; then :
2304 $as_echo_n "(cached) " >&6
2306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2307 /* end confdefs.h. */
2308 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2310 #define $2 innocuous_$2
2312 /* System header to define __stub macros and hopefully few prototypes,
2313 which can conflict with char $2 (); below.
2314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2315 <limits.h> exists even on freestanding compilers. */
2318 # include <limits.h>
2320 # include <assert.h>
2325 /* Override any GCC internal prototype to avoid an error.
2326 Use char because int might match the return type of a GCC
2327 builtin and then its argument prototype would still apply. */
2332 /* The GNU C library defines this for functions which it implements
2333 to always fail with ENOSYS. Some functions are actually named
2334 something starting with __ and the normal name is an alias. */
2335 #if defined __stub_$2 || defined __stub___$2
2347 if ac_fn_c_try_link
"$LINENO"; then :
2352 rm -f core conftest.err conftest.
$ac_objext \
2353 conftest
$ac_exeext conftest.
$ac_ext
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2357 $as_echo "$ac_res" >&6; }
2358 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2360 } # ac_fn_c_check_func
2362 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2363 # -------------------------------------------
2364 # Tests whether TYPE exists after having included INCLUDES, setting cache
2365 # variable VAR accordingly.
2366 ac_fn_c_check_type
()
2368 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2370 $as_echo_n "checking for $2... " >&6; }
2371 if eval \
${$3+:} false
; then :
2372 $as_echo_n "(cached) " >&6
2375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2376 /* end confdefs.h. */
2387 if ac_fn_c_try_compile
"$LINENO"; then :
2388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2389 /* end confdefs.h. */
2400 if ac_fn_c_try_compile
"$LINENO"; then :
2405 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2407 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2411 $as_echo "$ac_res" >&6; }
2412 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2414 } # ac_fn_c_check_type
2416 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2417 # ---------------------------------------------
2418 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2420 ac_fn_c_check_decl
()
2422 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2423 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2424 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2426 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2427 if eval \
${$3+:} false
; then :
2428 $as_echo_n "(cached) " >&6
2430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2431 /* end confdefs.h. */
2436 #ifndef $as_decl_name
2438 (void) $as_decl_use;
2440 (void) $as_decl_name;
2448 if ac_fn_c_try_compile
"$LINENO"; then :
2453 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2457 $as_echo "$ac_res" >&6; }
2458 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2460 } # ac_fn_c_check_decl
2462 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2463 # ----------------------------------------------------
2464 # Tries to find if the field MEMBER exists in type AGGR, after including
2465 # INCLUDES, setting cache variable VAR accordingly.
2466 ac_fn_c_check_member
()
2468 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2470 $as_echo_n "checking for $2.$3... " >&6; }
2471 if eval \
${$4+:} false
; then :
2472 $as_echo_n "(cached) " >&6
2474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2475 /* end confdefs.h. */
2487 if ac_fn_c_try_compile
"$LINENO"; then :
2490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2491 /* end confdefs.h. */
2497 if (sizeof ac_aggr.$3)
2503 if ac_fn_c_try_compile
"$LINENO"; then :
2508 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2510 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2514 $as_echo "$ac_res" >&6; }
2515 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2517 } # ac_fn_c_check_member
2519 # ac_fn_cxx_try_link LINENO
2520 # -------------------------
2521 # Try to link conftest.$ac_ext, and return whether this succeeded.
2522 ac_fn_cxx_try_link
()
2524 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2525 rm -f conftest.
$ac_objext conftest
$ac_exeext
2526 if { { ac_try
="$ac_link"
2528 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2529 *) ac_try_echo=$ac_try;;
2531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2532 $as_echo "$ac_try_echo"; } >&5
2533 (eval "$ac_link") 2>conftest.err
2535 if test -s conftest.err; then
2536 grep -v '^ *+' conftest.err >conftest.er1
2537 cat conftest.er1 >&5
2538 mv -f conftest.er1 conftest.err
2540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2541 test $ac_status = 0; } && {
2542 test -z "$ac_cxx_werror_flag" ||
2543 test ! -s conftest.err
2544 } && test -s conftest$ac_exeext && {
2545 test "$cross_compiling" = yes ||
2546 test -x conftest$ac_exeext
2550 $as_echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2555 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2556 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2557 # interfere with the next link command; also delete a directory that is
2558 # left behind by Apple's compiler. We do this before executing the actions.
2559 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2560 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2561 as_fn_set_status $ac_retval
2563 } # ac_fn_cxx_try_link
2565 # ac_fn_cxx_check_func LINENO FUNC VAR
2566 # ------------------------------------
2567 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2568 ac_fn_cxx_check_func ()
2570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2572 $as_echo_n "checking for $2... " >&6; }
2573 if eval \${$3+:} false; then :
2574 $as_echo_n "(cached) " >&6
2576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2577 /* end confdefs.h. */
2578 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2580 #define $2 innocuous_$2
2582 /* System header to define __stub macros and hopefully few prototypes,
2583 which can conflict with char $2 (); below.
2584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2585 <limits.h> exists even on freestanding compilers. */
2588 # include <limits.h>
2590 # include <assert.h>
2595 /* Override any GCC internal prototype to avoid an error.
2596 Use char because int might match the return type of a GCC
2597 builtin and then its argument prototype would still apply. */
2602 /* The GNU C library defines this for functions which it implements
2603 to always fail with ENOSYS. Some functions are actually named
2604 something starting with __ and the normal name is an alias. */
2605 #if defined __stub_$2 || defined __stub___$2
2617 if ac_fn_cxx_try_link "$LINENO"; then :
2622 rm -f core conftest.err conftest.$ac_objext \
2623 conftest$ac_exeext conftest.$ac_ext
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2627 $as_echo "$ac_res" >&6; }
2628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2630 } # ac_fn_cxx_check_func
2631 cat >config.log <<_ACEOF
2632 This file contains any messages produced by compilers while
2633 running configure, to aid debugging if configure makes a mistake.
2635 It was created by $as_me, which was
2636 generated by GNU Autoconf 2.69. Invocation command line was
2648 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2649 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2650 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2651 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2652 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2654 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2655 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2657 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2658 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2659 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2660 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2661 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2662 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2663 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 test -z "$as_dir" && as_dir=.
2672 $as_echo "PATH: $as_dir"
2688 # Keep a trace of the command line.
2689 # Strip out --no-create and --no-recursion so they do not pile up.
2690 # Strip out --silent because we don't want to record it for future runs.
2691 # Also quote any args containing shell meta-characters.
2692 # Make two passes to allow for proper duplicate-argument suppression.
2696 ac_must_keep_next=false
2702 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2703 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2704 | -silent | --silent | --silen | --sile | --sil)
2707 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2710 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2712 as_fn_append ac_configure_args1 " '$ac_arg'"
2713 if test $ac_must_keep_next = true; then
2714 ac_must_keep_next=false # Got value, back to normal.
2717 *=* | --config-cache | -C | -disable-* | --disable-* \
2718 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2719 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2720 | -with-* | --with-* | -without-* | --without-* | --x)
2721 case "$ac_configure_args0 " in
2722 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2725 -* ) ac_must_keep_next=true ;;
2728 as_fn_append ac_configure_args " '$ac_arg'"
2733 { ac_configure_args0=; unset ac_configure_args0;}
2734 { ac_configure_args1=; unset ac_configure_args1;}
2736 # When interrupted or exit'd, cleanup temporary files, and complete
2737 # config.log. We remove comments because anyway the quotes in there
2738 # would cause problems or look ugly.
2739 # WARNING: Use '\'' to represent an apostrophe within the trap.
2740 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2741 trap 'exit_status=$?
2742 # Save into config.log some information that might help in debugging.
2746 $as_echo "## ---------------- ##
2747 ## Cache variables. ##
2748 ## ---------------- ##"
2750 # The following way of writing the cache mishandles newlines in values,
2752 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2753 eval ac_val=\$$ac_var
2757 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2758 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2761 _ | IFS | as_nl) ;; #(
2762 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2763 *) { eval $ac_var=; unset $ac_var;} ;;
2768 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2769 *${as_nl}ac_space=\ *)
2771 "s/'\''/'\''\\\\'\'''\''/g;
2772 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2775 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2782 $as_echo "## ----------------- ##
2783 ## Output variables. ##
2784 ## ----------------- ##"
2786 for ac_var in $ac_subst_vars
2788 eval ac_val=\$$ac_var
2790 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2792 $as_echo "$ac_var='\''$ac_val'\''"
2796 if test -n "$ac_subst_files"; then
2797 $as_echo "## ------------------- ##
2798 ## File substitutions. ##
2799 ## ------------------- ##"
2801 for ac_var in $ac_subst_files
2803 eval ac_val=\$$ac_var
2805 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2807 $as_echo "$ac_var='\''$ac_val'\''"
2812 if test -s confdefs.h; then
2813 $as_echo "## ----------- ##
2820 test "$ac_signal" != 0 &&
2821 $as_echo "$as_me: caught signal $ac_signal"
2822 $as_echo "$as_me: exit $exit_status"
2824 rm -f core *.core core.conftest.* &&
2825 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2828 for ac_signal in 1 2 13 15; do
2829 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2833 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2834 rm -f -r conftest* confdefs.h
2836 $as_echo "/* confdefs.h */" > confdefs.h
2838 # Predefined preprocessor variables.
2840 cat >>confdefs.h <<_ACEOF
2841 #define PACKAGE_NAME "$PACKAGE_NAME"
2844 cat >>confdefs.h <<_ACEOF
2845 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2848 cat >>confdefs.h <<_ACEOF
2849 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2852 cat >>confdefs.h <<_ACEOF
2853 #define PACKAGE_STRING "$PACKAGE_STRING"
2856 cat >>confdefs.h <<_ACEOF
2857 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2860 cat >>confdefs.h <<_ACEOF
2861 #define PACKAGE_URL "$PACKAGE_URL"
2865 # Let the site file select an alternate cache file if it wants to.
2866 # Prefer an explicitly selected file to automatically selected ones.
2869 if test -n "$CONFIG_SITE"; then
2870 # We do not want a PATH search for config.site.
2871 case $CONFIG_SITE in #((
2872 -*) ac_site_file1=./$CONFIG_SITE;;
2873 */*) ac_site_file1=$CONFIG_SITE;;
2874 *) ac_site_file1=./$CONFIG_SITE;;
2876 elif test "x$prefix" != xNONE; then
2877 ac_site_file1=$prefix/share/config.site
2878 ac_site_file2=$prefix/etc/config.site
2880 ac_site_file1=$ac_default_prefix/share/config.site
2881 ac_site_file2=$ac_default_prefix/etc/config.site
2883 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2885 test "x$ac_site_file" = xNONE && continue
2886 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2888 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2889 sed 's/^/| /' "$ac_site_file" >&5
2891 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2893 as_fn_error $? "failed to load site
script $ac_site_file
2894 See \
`config.log' for more details" "$LINENO" 5; }
2898 if test -r "$cache_file"; then
2899 # Some versions of bash will fail to source /dev/null (special files
2900 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2901 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2903 $as_echo "$as_me: loading cache $cache_file" >&6;}
2905 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2906 *) . "./$cache_file";;
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2911 $as_echo "$as_me: creating cache $cache_file" >&6;}
2915 as_fn_append ac_header_list " stdlib.h"
2916 as_fn_append ac_header_list " unistd.h"
2917 as_fn_append ac_header_list " sys/param.h"
2918 # Check that the precious variables saved in the cache have kept the same
2920 ac_cache_corrupted=false
2921 for ac_var in $ac_precious_vars; do
2922 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2923 eval ac_new_set=\$ac_env_${ac_var}_set
2924 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2925 eval ac_new_val=\$ac_env_${ac_var}_value
2926 case $ac_old_set,$ac_new_set in
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2929 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2930 ac_cache_corrupted=: ;;
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2933 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2934 ac_cache_corrupted=: ;;
2937 if test "x$ac_old_val" != "x$ac_new_val"; then
2938 # differences in whitespace do not lead to failure.
2939 ac_old_val_w=`echo x
$ac_old_val`
2940 ac_new_val_w=`echo x
$ac_new_val`
2941 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2943 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2944 ac_cache_corrupted=:
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2947 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2948 eval $ac_var=\$ac_old_val
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2951 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2953 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2956 # Pass precious variables to config.status.
2957 if test "$ac_new_set" = set; then
2959 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2960 *) ac_arg=$ac_var=$ac_new_val ;;
2962 case " $ac_configure_args " in
2963 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2964 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2968 if $ac_cache_corrupted; then
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2972 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2973 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2975 ## -------------------- ##
2976 ## Main body of script. ##
2977 ## -------------------- ##
2980 ac_cpp='$CPP $CPPFLAGS'
2981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2989 ac_config_headers="$ac_config_headers config.h:config.in"
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2993 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2994 # Check whether --enable-maintainer-mode was given.
2995 if test "${enable_maintainer_mode+set}" = set; then :
2996 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2998 USE_MAINTAINER_MODE=no
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3002 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3003 if test $USE_MAINTAINER_MODE = yes; then
3004 MAINTAINER_MODE_TRUE=
3005 MAINTAINER_MODE_FALSE='#'
3007 MAINTAINER_MODE_TRUE='#'
3008 MAINTAINER_MODE_FALSE=
3011 MAINT=$MAINTAINER_MODE_TRUE
3016 ac_cpp='$CPP $CPPFLAGS'
3017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3020 if test -n "$ac_tool_prefix"; then
3021 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3022 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3024 $as_echo_n "checking for $ac_word... " >&6; }
3025 if ${ac_cv_prog_CC+:} false; then :
3026 $as_echo_n "(cached) " >&6
3028 if test -n "$CC"; then
3029 ac_cv_prog_CC="$CC" # Let the user override the test.
3031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 test -z "$as_dir" && as_dir=.
3036 for ac_exec_ext in '' $ac_executable_extensions; do
3037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3038 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 if test -n "$CC"; then
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3051 $as_echo "$CC" >&6; }
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054 $as_echo "no" >&6; }
3059 if test -z "$ac_cv_prog_CC"; then
3061 # Extract the first word of "gcc", so it can be a program name with args.
3062 set dummy gcc; ac_word=$2
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064 $as_echo_n "checking for $ac_word... " >&6; }
3065 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3066 $as_echo_n "(cached) " >&6
3068 if test -n "$ac_ct_CC"; then
3069 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078 ac_cv_prog_ac_ct_CC="gcc"
3079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3088 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3089 if test -n "$ac_ct_CC"; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3091 $as_echo "$ac_ct_CC" >&6; }
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 $as_echo "no" >&6; }
3097 if test "x$ac_ct_CC" = x; then
3100 case $cross_compiling:$ac_tool_warned in
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3104 ac_tool_warned=yes ;;
3112 if test -z "$CC"; then
3113 if test -n "$ac_tool_prefix"; then
3114 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3115 set dummy ${ac_tool_prefix}cc; ac_word=$2
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3117 $as_echo_n "checking for $ac_word... " >&6; }
3118 if ${ac_cv_prog_CC+:} false; then :
3119 $as_echo_n "(cached) " >&6
3121 if test -n "$CC"; then
3122 ac_cv_prog_CC="$CC" # Let the user override the test.
3124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 test -z "$as_dir" && as_dir=.
3129 for ac_exec_ext in '' $ac_executable_extensions; do
3130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3131 ac_cv_prog_CC="${ac_tool_prefix}cc"
3132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3142 if test -n "$CC"; then
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3144 $as_echo "$CC" >&6; }
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 $as_echo "no" >&6; }
3153 if test -z "$CC"; then
3154 # Extract the first word of "cc", so it can be a program name with args.
3155 set dummy cc; ac_word=$2
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157 $as_echo_n "checking for $ac_word... " >&6; }
3158 if ${ac_cv_prog_CC+:} false; then :
3159 $as_echo_n "(cached) " >&6
3161 if test -n "$CC"; then
3162 ac_cv_prog_CC="$CC" # Let the user override the test.
3165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 test -z "$as_dir" && as_dir=.
3170 for ac_exec_ext in '' $ac_executable_extensions; do
3171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3172 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3173 ac_prog_rejected=yes
3177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3184 if test $ac_prog_rejected = yes; then
3185 # We found a bogon in the path, so make sure we never use it.
3186 set dummy $ac_cv_prog_CC
3188 if test $# != 0; then
3189 # We chose a different compiler from the bogus one.
3190 # However, it has the same basename, so the bogon will be chosen
3191 # first if we set CC to just the basename; use the full file name.
3193 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3199 if test -n "$CC"; then
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3201 $as_echo "$CC" >&6; }
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3209 if test -z "$CC"; then
3210 if test -n "$ac_tool_prefix"; then
3211 for ac_prog in cl.exe
3213 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3214 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3216 $as_echo_n "checking for $ac_word... " >&6; }
3217 if ${ac_cv_prog_CC+:} false; then :
3218 $as_echo_n "(cached) " >&6
3220 if test -n "$CC"; then
3221 ac_cv_prog_CC="$CC" # Let the user override the test.
3223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 test -z "$as_dir" && as_dir=.
3228 for ac_exec_ext in '' $ac_executable_extensions; do
3229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3230 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3241 if test -n "$CC"; then
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3243 $as_echo "$CC" >&6; }
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246 $as_echo "no" >&6; }
3250 test -n "$CC" && break
3253 if test -z "$CC"; then
3255 for ac_prog in cl.exe
3257 # Extract the first word of "$ac_prog", so it can be a program name with args.
3258 set dummy $ac_prog; ac_word=$2
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3260 $as_echo_n "checking for $ac_word... " >&6; }
3261 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3262 $as_echo_n "(cached) " >&6
3264 if test -n "$ac_ct_CC"; then
3265 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 test -z "$as_dir" && as_dir=.
3272 for ac_exec_ext in '' $ac_executable_extensions; do
3273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3274 ac_cv_prog_ac_ct_CC="$ac_prog"
3275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3284 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3285 if test -n "$ac_ct_CC"; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3287 $as_echo "$ac_ct_CC" >&6; }
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 $as_echo "no" >&6; }
3294 test -n "$ac_ct_CC" && break
3297 if test "x$ac_ct_CC" = x; then
3300 case $cross_compiling:$ac_tool_warned in
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3304 ac_tool_warned=yes ;;
3313 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3315 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3316 See \
`config.log' for more details" "$LINENO" 5; }
3318 # Provide some information about the compiler.
3319 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3322 for ac_option in --version -v -V -qversion; do
3323 { { ac_try="$ac_compiler $ac_option >&5"
3325 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3326 *) ac_try_echo
=$ac_try;;
3328 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329 $as_echo "$ac_try_echo"; } >&5
3330 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3332 if test -s conftest.err
; then
3334 ... rest of stderr output deleted ...
3335 10q' conftest.err
>conftest.er1
3336 cat conftest.er1
>&5
3338 rm -f conftest.er1 conftest.err
3339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3340 test $ac_status = 0; }
3343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3344 /* end confdefs.h. */
3354 ac_clean_files_save
=$ac_clean_files
3355 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3356 # Try to create an executable without -o first, disregard a.out.
3357 # It will help us diagnose broken compilers, and finding out an intuition
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3360 $as_echo_n "checking whether the C compiler works... " >&6; }
3361 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3363 # The possible output files:
3364 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3367 for ac_file
in $ac_files
3370 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3371 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3376 if { { ac_try
="$ac_link_default"
3378 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3382 $as_echo "$ac_try_echo"; } >&5
3383 (eval "$ac_link_default") 2>&5
3385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3386 test $ac_status = 0; }; then :
3387 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3388 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3389 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3390 # so that the user can short-circuit this test for compilers unknown to
3392 for ac_file in $ac_files ''
3394 test -f "$ac_file" || continue
3396 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3399 # We found the default executable, but exeext='' is most
3403 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3405 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3407 # We set ac_cv_exeext here because the later test for it is not
3408 # safe: cross compilers may not add the suffix if given an `-o'
3409 # argument, so we may need to know it at that point already.
3410 # Even if this section looks crufty: it has the advantage of
3417 test "$ac_cv_exeext" = no && ac_cv_exeext=
3422 if test -z "$ac_file"; then :
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424 $as_echo "no" >&6; }
3425 $as_echo "$as_me: failed program was:" >&5
3426 sed 's
/^
/|
/' conftest.$ac_ext >&5
3428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3429 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3430 as_fn_error 77 "C compiler cannot create executables
3431 See \`config.log
' for more details" "$LINENO" 5; }
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3434 $as_echo "yes" >&6; }
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3437 $as_echo_n "checking for C compiler default output file name... " >&6; }
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3439 $as_echo "$ac_file" >&6; }
3440 ac_exeext=$ac_cv_exeext
3442 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3443 ac_clean_files=$ac_clean_files_save
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3445 $as_echo_n "checking for suffix of executables... " >&6; }
3446 if { { ac_try="$ac_link"
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3452 $as_echo "$ac_try_echo"; } >&5
3453 (eval "$ac_link") 2>&5
3455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3456 test $ac_status = 0; }; then :
3457 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3458 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3459 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3461 for ac_file
in conftest.exe conftest conftest.
*; do
3462 test -f "$ac_file" ||
continue
3464 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3465 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3473 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3474 See \`config.log' for more details" "$LINENO" 5; }
3476 rm -f conftest conftest
$ac_cv_exeext
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3478 $as_echo "$ac_cv_exeext" >&6; }
3480 rm -f conftest.
$ac_ext
3481 EXEEXT
=$ac_cv_exeext
3483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3484 /* end confdefs.h. */
3489 FILE *f = fopen ("conftest.out", "w");
3490 return ferror (f) || fclose (f) != 0;
3496 ac_clean_files
="$ac_clean_files conftest.out"
3497 # Check that the compiler produces executables we can run. If not, either
3498 # the compiler is broken, or we cross compile.
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3500 $as_echo_n "checking whether we are cross compiling... " >&6; }
3501 if test "$cross_compiling" != yes; then
3502 { { ac_try
="$ac_link"
3504 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3508 $as_echo "$ac_try_echo"; } >&5
3509 (eval "$ac_link") 2>&5
3511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3512 test $ac_status = 0; }
3513 if { ac_try='./conftest$ac_cv_exeext'
3514 { { case "(($ac_try" in
3515 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3516 *) ac_try_echo
=$ac_try;;
3518 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3519 $as_echo "$ac_try_echo"; } >&5
3520 (eval "$ac_try") 2>&5
3522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3523 test $ac_status = 0; }; }; then
3526 if test "$cross_compiling" = maybe
; then
3529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3531 as_fn_error $?
"cannot run C compiled programs.
3532 If you meant to cross compile, use \`--host'.
3533 See \`config.log' for more details" "$LINENO" 5; }
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3538 $as_echo "$cross_compiling" >&6; }
3540 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3541 ac_clean_files
=$ac_clean_files_save
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3543 $as_echo_n "checking for suffix of object files... " >&6; }
3544 if ${ac_cv_objext+:} false
; then :
3545 $as_echo_n "(cached) " >&6
3547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3548 /* end confdefs.h. */
3558 rm -f conftest.o conftest.obj
3559 if { { ac_try
="$ac_compile"
3561 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3565 $as_echo "$ac_try_echo"; } >&5
3566 (eval "$ac_compile") 2>&5
3568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3569 test $ac_status = 0; }; then :
3570 for ac_file in conftest.o conftest.obj conftest.*; do
3571 test -f "$ac_file" || continue;
3573 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3574 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3579 $as_echo "$as_me: failed program was:" >&5
3580 sed 's/^/| /' conftest.$ac_ext >&5
3582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3584 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3585 See \
`config.log' for more details" "$LINENO" 5; }
3587 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3590 $as_echo "$ac_cv_objext" >&6; }
3591 OBJEXT=$ac_cv_objext
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3594 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3595 if ${ac_cv_c_compiler_gnu+:} false; then :
3596 $as_echo_n "(cached) " >&6
3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599 /* end confdefs.h. */
3612 if ac_fn_c_try_compile "$LINENO"; then :
3617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3618 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3622 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3623 if test $ac_compiler_gnu = yes; then
3628 ac_test_CFLAGS=${CFLAGS+set}
3629 ac_save_CFLAGS=$CFLAGS
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3631 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3632 if ${ac_cv_prog_cc_g+:} false; then :
3633 $as_echo_n "(cached) " >&6
3635 ac_save_c_werror_flag=$ac_c_werror_flag
3636 ac_c_werror_flag=yes
3639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640 /* end confdefs.h. */
3650 if ac_fn_c_try_compile "$LINENO"; then :
3654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655 /* end confdefs.h. */
3665 if ac_fn_c_try_compile "$LINENO"; then :
3668 ac_c_werror_flag=$ac_save_c_werror_flag
3670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671 /* end confdefs.h. */
3681 if ac_fn_c_try_compile "$LINENO"; then :
3684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3689 ac_c_werror_flag=$ac_save_c_werror_flag
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3692 $as_echo "$ac_cv_prog_cc_g" >&6; }
3693 if test "$ac_test_CFLAGS" = set; then
3694 CFLAGS=$ac_save_CFLAGS
3695 elif test $ac_cv_prog_cc_g = yes; then
3696 if test "$GCC" = yes; then
3702 if test "$GCC" = yes; then
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3709 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3710 if ${ac_cv_prog_cc_c89+:} false; then :
3711 $as_echo_n "(cached) " >&6
3713 ac_cv_prog_cc_c89=no
3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h. */
3720 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3721 struct buf { int x; };
3722 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3723 static char *e (p, i)
3729 static char *f (char * (*g) (char **, int), char **p, ...)
3734 s = g (p, va_arg (v,int));
3739 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3740 function prototypes and stuff, but not '\xHH' hex character constants.
3741 These don't provoke an error unfortunately, instead are silently treated
3742 as 'x'. The following induces an error, until -std is added to get
3743 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3744 array size at least. It's necessary to write '\x00'==0 to get something
3745 that's true only with -std. */
3746 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3748 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3749 inside strings and character constants. */
3751 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3753 int test (int i, double x);
3754 struct s1 {int (*f) (int a);};
3755 struct s2 {int (*f) (double a);};
3756 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3762 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3767 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3768 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3770 CC="$ac_save_CC $ac_arg"
3771 if ac_fn_c_try_compile "$LINENO"; then :
3772 ac_cv_prog_cc_c89=$ac_arg
3774 rm -f core conftest.err conftest.$ac_objext
3775 test "x$ac_cv_prog_cc_c89" != "xno" && break
3777 rm -f conftest.$ac_ext
3782 case "x$ac_cv_prog_cc_c89" in
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3785 $as_echo "none needed" >&6; } ;;
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3788 $as_echo "unsupported" >&6; } ;;
3790 CC="$CC $ac_cv_prog_cc_c89"
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3792 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3794 if test "x$ac_cv_prog_cc_c89" != xno; then :
3799 ac_cpp='$CPP $CPPFLAGS'
3800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3805 ac_cpp='$CXXCPP $CPPFLAGS'
3806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3809 if test -z "$CXX"; then
3810 if test -n "$CCC"; then
3813 if test -n "$ac_tool_prefix"; then
3814 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3816 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3817 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3819 $as_echo_n "checking for $ac_word... " >&6; }
3820 if ${ac_cv_prog_CXX+:} false; then :
3821 $as_echo_n "(cached) " >&6
3823 if test -n "$CXX"; then
3824 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830 test -z "$as_dir" && as_dir=.
3831 for ac_exec_ext in '' $ac_executable_extensions; do
3832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3833 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3844 if test -n "$CXX"; then
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3846 $as_echo "$CXX" >&6; }
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3849 $as_echo "no" >&6; }
3853 test -n "$CXX" && break
3856 if test -z "$CXX"; then
3858 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3860 # Extract the first word of "$ac_prog", so it can be a program name with args.
3861 set dummy $ac_prog; ac_word=$2
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3863 $as_echo_n "checking for $ac_word... " >&6; }
3864 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3865 $as_echo_n "(cached) " >&6
3867 if test -n "$ac_ct_CXX"; then
3868 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874 test -z "$as_dir" && as_dir=.
3875 for ac_exec_ext in '' $ac_executable_extensions; do
3876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3877 ac_cv_prog_ac_ct_CXX="$ac_prog"
3878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3887 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3888 if test -n "$ac_ct_CXX"; then
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3890 $as_echo "$ac_ct_CXX" >&6; }
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3893 $as_echo "no" >&6; }
3897 test -n "$ac_ct_CXX" && break
3900 if test "x$ac_ct_CXX" = x; then
3903 case $cross_compiling:$ac_tool_warned in
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3907 ac_tool_warned=yes ;;
3915 # Provide some information about the compiler.
3916 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3919 for ac_option in --version -v -V -qversion; do
3920 { { ac_try="$ac_compiler $ac_option >&5"
3922 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3923 *) ac_try_echo
=$ac_try;;
3925 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3926 $as_echo "$ac_try_echo"; } >&5
3927 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3929 if test -s conftest.err
; then
3931 ... rest of stderr output deleted ...
3932 10q' conftest.err
>conftest.er1
3933 cat conftest.er1
>&5
3935 rm -f conftest.er1 conftest.err
3936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3937 test $ac_status = 0; }
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3941 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3942 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3943 $as_echo_n "(cached) " >&6
3945 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3946 /* end confdefs.h. */
3959 if ac_fn_cxx_try_compile
"$LINENO"; then :
3964 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3965 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3969 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3970 if test $ac_compiler_gnu = yes; then
3975 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3976 ac_save_CXXFLAGS
=$CXXFLAGS
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3978 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3979 if ${ac_cv_prog_cxx_g+:} false
; then :
3980 $as_echo_n "(cached) " >&6
3982 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3983 ac_cxx_werror_flag
=yes
3986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
3997 if ac_fn_cxx_try_compile
"$LINENO"; then :
3998 ac_cv_prog_cxx_g
=yes
4001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h. */
4012 if ac_fn_cxx_try_compile
"$LINENO"; then :
4015 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4028 if ac_fn_cxx_try_compile
"$LINENO"; then :
4029 ac_cv_prog_cxx_g
=yes
4031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4033 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4036 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4039 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4040 if test "$ac_test_CXXFLAGS" = set; then
4041 CXXFLAGS
=$ac_save_CXXFLAGS
4042 elif test $ac_cv_prog_cxx_g = yes; then
4043 if test "$GXX" = yes; then
4049 if test "$GXX" = yes; then
4056 ac_cpp
='$CPP $CPPFLAGS'
4057 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4058 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4059 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4064 ac_cpp
='$CPP $CPPFLAGS'
4065 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4066 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4067 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4069 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4070 # On Suns, sometimes $CPP names a directory.
4071 if test -n "$CPP" && test -d "$CPP"; then
4074 if test -z "$CPP"; then
4075 if ${ac_cv_prog_CPP+:} false
; then :
4076 $as_echo_n "(cached) " >&6
4078 # Double quotes because CPP needs to be expanded
4079 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4082 for ac_c_preproc_warn_flag
in '' yes
4084 # Use a header file that comes with gcc, so configuring glibc
4085 # with a fresh cross-compiler works.
4086 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4087 # <limits.h> exists even on freestanding compilers.
4088 # On the NeXT, cc -E runs the code through the compiler's parser,
4089 # not just through cpp. "Syntax error" is here to catch this case.
4090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h. */
4093 # include <limits.h>
4095 # include <assert.h>
4099 if ac_fn_c_try_cpp
"$LINENO"; then :
4102 # Broken: fails on valid input.
4105 rm -f conftest.err conftest.i conftest.
$ac_ext
4107 # OK, works on sane cases. Now check whether nonexistent headers
4108 # can be detected and how.
4109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4110 /* end confdefs.h. */
4111 #include <ac_nonexistent.h>
4113 if ac_fn_c_try_cpp
"$LINENO"; then :
4114 # Broken: success on invalid input.
4117 # Passes both tests.
4121 rm -f conftest.err conftest.i conftest.
$ac_ext
4124 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4125 rm -f conftest.i conftest.err conftest.
$ac_ext
4126 if $ac_preproc_ok; then :
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4139 $as_echo "$CPP" >&6; }
4141 for ac_c_preproc_warn_flag
in '' yes
4143 # Use a header file that comes with gcc, so configuring glibc
4144 # with a fresh cross-compiler works.
4145 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4146 # <limits.h> exists even on freestanding compilers.
4147 # On the NeXT, cc -E runs the code through the compiler's parser,
4148 # not just through cpp. "Syntax error" is here to catch this case.
4149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4150 /* end confdefs.h. */
4152 # include <limits.h>
4154 # include <assert.h>
4158 if ac_fn_c_try_cpp
"$LINENO"; then :
4161 # Broken: fails on valid input.
4164 rm -f conftest.err conftest.i conftest.
$ac_ext
4166 # OK, works on sane cases. Now check whether nonexistent headers
4167 # can be detected and how.
4168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4169 /* end confdefs.h. */
4170 #include <ac_nonexistent.h>
4172 if ac_fn_c_try_cpp
"$LINENO"; then :
4173 # Broken: success on invalid input.
4176 # Passes both tests.
4180 rm -f conftest.err conftest.i conftest.
$ac_ext
4183 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4184 rm -f conftest.i conftest.err conftest.
$ac_ext
4185 if $ac_preproc_ok; then :
4188 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4190 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4191 See \`config.log' for more details" "$LINENO" 5; }
4195 ac_cpp
='$CPP $CPPFLAGS'
4196 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4197 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4198 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4202 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4203 if ${ac_cv_path_GREP+:} false
; then :
4204 $as_echo_n "(cached) " >&6
4206 if test -z "$GREP"; then
4207 ac_path_GREP_found
=false
4208 # Loop through the user's path and test for each of PROGNAME-LIST
4209 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4210 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4213 test -z "$as_dir" && as_dir
=.
4214 for ac_prog
in grep ggrep
; do
4215 for ac_exec_ext
in '' $ac_executable_extensions; do
4216 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4217 as_fn_executable_p
"$ac_path_GREP" ||
continue
4218 # Check for GNU ac_path_GREP and select it if it is found.
4219 # Check for GNU $ac_path_GREP
4220 case `"$ac_path_GREP" --version 2>&1` in
4222 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4225 $as_echo_n 0123456789 >"conftest.in"
4228 cat "conftest.in" "conftest.in" >"conftest.tmp"
4229 mv "conftest.tmp" "conftest.in"
4230 cp "conftest.in" "conftest.nl"
4231 $as_echo 'GREP' >> "conftest.nl"
4232 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4233 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4234 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4235 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4236 # Best one so far, save it but keep looking for a better one
4237 ac_cv_path_GREP
="$ac_path_GREP"
4238 ac_path_GREP_max
=$ac_count
4240 # 10*(2^10) chars as input seems more than enough
4241 test $ac_count -gt 10 && break
4243 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4246 $ac_path_GREP_found && break 3
4251 if test -z "$ac_cv_path_GREP"; then
4252 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4255 ac_cv_path_GREP
=$GREP
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4260 $as_echo "$ac_cv_path_GREP" >&6; }
4261 GREP
="$ac_cv_path_GREP"
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4265 $as_echo_n "checking for egrep... " >&6; }
4266 if ${ac_cv_path_EGREP+:} false
; then :
4267 $as_echo_n "(cached) " >&6
4269 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4270 then ac_cv_path_EGREP
="$GREP -E"
4272 if test -z "$EGREP"; then
4273 ac_path_EGREP_found
=false
4274 # Loop through the user's path and test for each of PROGNAME-LIST
4275 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4276 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4279 test -z "$as_dir" && as_dir
=.
4280 for ac_prog
in egrep; do
4281 for ac_exec_ext
in '' $ac_executable_extensions; do
4282 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4283 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4284 # Check for GNU ac_path_EGREP and select it if it is found.
4285 # Check for GNU $ac_path_EGREP
4286 case `"$ac_path_EGREP" --version 2>&1` in
4288 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4291 $as_echo_n 0123456789 >"conftest.in"
4294 cat "conftest.in" "conftest.in" >"conftest.tmp"
4295 mv "conftest.tmp" "conftest.in"
4296 cp "conftest.in" "conftest.nl"
4297 $as_echo 'EGREP' >> "conftest.nl"
4298 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4299 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4300 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4301 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4302 # Best one so far, save it but keep looking for a better one
4303 ac_cv_path_EGREP
="$ac_path_EGREP"
4304 ac_path_EGREP_max
=$ac_count
4306 # 10*(2^10) chars as input seems more than enough
4307 test $ac_count -gt 10 && break
4309 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4312 $ac_path_EGREP_found && break 3
4317 if test -z "$ac_cv_path_EGREP"; then
4318 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4321 ac_cv_path_EGREP
=$EGREP
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4327 $as_echo "$ac_cv_path_EGREP" >&6; }
4328 EGREP
="$ac_cv_path_EGREP"
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4332 $as_echo_n "checking for ANSI C header files... " >&6; }
4333 if ${ac_cv_header_stdc+:} false
; then :
4334 $as_echo_n "(cached) " >&6
4336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4337 /* end confdefs.h. */
4351 if ac_fn_c_try_compile
"$LINENO"; then :
4352 ac_cv_header_stdc
=yes
4354 ac_cv_header_stdc
=no
4356 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4358 if test $ac_cv_header_stdc = yes; then
4359 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4361 /* end confdefs.h. */
4365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4366 $EGREP "memchr" >/dev
/null
2>&1; then :
4369 ac_cv_header_stdc
=no
4375 if test $ac_cv_header_stdc = yes; then
4376 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4378 /* end confdefs.h. */
4382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4383 $EGREP "free" >/dev
/null
2>&1; then :
4386 ac_cv_header_stdc
=no
4392 if test $ac_cv_header_stdc = yes; then
4393 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4394 if test "$cross_compiling" = yes; then :
4397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4398 /* end confdefs.h. */
4401 #if ((' ' & 0x0FF) == 0x020)
4402 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4403 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4405 # define ISLOWER(c) \
4406 (('a' <= (c) && (c) <= 'i') \
4407 || ('j' <= (c) && (c) <= 'r') \
4408 || ('s' <= (c) && (c) <= 'z'))
4409 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4412 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4417 for (i = 0; i < 256; i++)
4418 if (XOR (islower (i), ISLOWER (i))
4419 || toupper (i) != TOUPPER (i))
4424 if ac_fn_c_try_run
"$LINENO"; then :
4427 ac_cv_header_stdc
=no
4429 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4430 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4436 $as_echo "$ac_cv_header_stdc" >&6; }
4437 if test $ac_cv_header_stdc = yes; then
4439 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4443 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4444 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4445 inttypes.h stdint.h unistd.h
4447 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4448 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4450 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4451 cat >>confdefs.h
<<_ACEOF
4452 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4461 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4462 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4469 if test "$MINIX" = yes; then
4471 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4474 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4477 $as_echo "#define _MINIX 1" >>confdefs.h
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4483 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4484 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4485 $as_echo_n "(cached) " >&6
4487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4488 /* end confdefs.h. */
4490 # define __EXTENSIONS__ 1
4491 $ac_includes_default
4500 if ac_fn_c_try_compile
"$LINENO"; then :
4501 ac_cv_safe_to_define___extensions__
=yes
4503 ac_cv_safe_to_define___extensions__
=no
4505 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4508 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4509 test $ac_cv_safe_to_define___extensions__ = yes &&
4510 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4512 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4514 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4516 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4518 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4522 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4523 if test -f "$ac_dir/install-sh"; then
4525 ac_install_sh
="$ac_aux_dir/install-sh -c"
4527 elif test -f "$ac_dir/install.sh"; then
4529 ac_install_sh
="$ac_aux_dir/install.sh -c"
4531 elif test -f "$ac_dir/shtool"; then
4533 ac_install_sh
="$ac_aux_dir/shtool install -c"
4537 if test -z "$ac_aux_dir"; then
4538 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4541 # These three variables are undocumented and unsupported,
4542 # and are intended to be withdrawn in a future Autoconf release.
4543 # They can cause serious problems if a builder's source tree is in a directory
4544 # whose full name contains unusual characters.
4545 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4546 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4547 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4550 # Make sure we can run config.sub.
4551 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4552 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4555 $as_echo_n "checking build system type... " >&6; }
4556 if ${ac_cv_build+:} false
; then :
4557 $as_echo_n "(cached) " >&6
4559 ac_build_alias
=$build_alias
4560 test "x$ac_build_alias" = x
&&
4561 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4562 test "x$ac_build_alias" = x
&&
4563 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4564 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4565 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4569 $as_echo "$ac_cv_build" >&6; }
4570 case $ac_cv_build in
4572 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4575 ac_save_IFS
=$IFS; IFS
='-'
4581 # Remember, the first character of IFS is used to create $*,
4582 # except with old shells:
4585 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4589 $as_echo_n "checking host system type... " >&6; }
4590 if ${ac_cv_host+:} false
; then :
4591 $as_echo_n "(cached) " >&6
4593 if test "x$host_alias" = x
; then
4594 ac_cv_host
=$ac_cv_build
4596 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4597 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4602 $as_echo "$ac_cv_host" >&6; }
4605 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4608 ac_save_IFS
=$IFS; IFS
='-'
4614 # Remember, the first character of IFS is used to create $*,
4615 # except with old shells:
4618 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4622 $as_echo_n "checking target system type... " >&6; }
4623 if ${ac_cv_target+:} false
; then :
4624 $as_echo_n "(cached) " >&6
4626 if test "x$target_alias" = x
; then
4627 ac_cv_target
=$ac_cv_host
4629 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4630 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4635 $as_echo "$ac_cv_target" >&6; }
4636 case $ac_cv_target in
4638 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4640 target
=$ac_cv_target
4641 ac_save_IFS
=$IFS; IFS
='-'
4647 # Remember, the first character of IFS is used to create $*,
4648 # except with old shells:
4651 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4654 # The aliases save the names the user supplied, while $host etc.
4655 # will get canonicalized.
4656 test -n "$target_alias" &&
4657 test "$program_prefix$program_suffix$program_transform_name" = \
4659 program_prefix
=${target_alias}-
4661 # The tests for host and target for $enable_largefile require
4666 # As the $enable_largefile decision depends on --enable-plugins we must set it
4667 # even in directories otherwise not depending on the $plugins option.
4671 for ac_header
in dlfcn.h
4673 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4675 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
4676 cat >>confdefs.h
<<_ACEOF
4677 #define HAVE_DLFCN_H 1
4684 for ac_header
in windows.h
4686 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4688 if test "x$ac_cv_header_windows_h" = xyes
; then :
4689 cat >>confdefs.h
<<_ACEOF
4690 #define HAVE_WINDOWS_H 1
4698 # Check whether --enable-plugins was given.
4699 if test "${enable_plugins+set}" = set; then :
4700 enableval
=$enable_plugins; case "${enableval}" in
4703 if test "$maybe_plugins" != "yes" ; then
4704 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4708 plugins
=$maybe_plugins
4712 if test "$plugins" = "yes"; then
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4714 $as_echo_n "checking for library containing dlsym... " >&6; }
4715 if ${ac_cv_search_dlsym+:} false
; then :
4716 $as_echo_n "(cached) " >&6
4718 ac_func_search_save_LIBS
=$LIBS
4719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h. */
4722 /* Override any GCC internal prototype to avoid an error.
4723 Use char because int might match the return type of a GCC
4724 builtin and then its argument prototype would still apply. */
4737 for ac_lib
in '' dl
; do
4738 if test -z "$ac_lib"; then
4739 ac_res
="none required"
4742 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4744 if ac_fn_c_try_link
"$LINENO"; then :
4745 ac_cv_search_dlsym
=$ac_res
4747 rm -f core conftest.err conftest.
$ac_objext \
4749 if ${ac_cv_search_dlsym+:} false
; then :
4753 if ${ac_cv_search_dlsym+:} false
; then :
4756 ac_cv_search_dlsym
=no
4759 LIBS
=$ac_func_search_save_LIBS
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4762 $as_echo "$ac_cv_search_dlsym" >&6; }
4763 ac_res
=$ac_cv_search_dlsym
4764 if test "$ac_res" != no
; then :
4765 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4773 sparc-
*-solaris*|i?
86-*-solaris*)
4774 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
4775 # were mutually exclusive until Solaris 11.3. Without procfs support,
4776 # the bfd/ elf module cannot provide certain routines such as
4777 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
4778 # explicitly requested large-file support through the
4779 # --enable-largefile switch, disable large-file support in favor of
4782 # Check if <sys/procfs.h> is incompatible with large-file support.
4783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4784 /* end confdefs.h. */
4785 #define _FILE_OFFSET_BITS 64
4786 #define _STRUCTURED_PROC 1
4787 #include <sys/procfs.h>
4796 if ac_fn_c_try_compile
"$LINENO"; then :
4797 acx_cv_procfs_lfs
=yes
4799 acx_cv_procfs_lfs
=no
4801 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4803 # Forcefully disable large-file support only if necessary, gdb is in
4805 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
4806 -a -d $srcdir/..
/gdb
-a "$enable_gdb" != no
; then
4807 : ${enable_largefile="no"}
4808 if test "$plugins" = yes; then
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4810 plugin support disabled; require large-file support which is incompatible with GDB." >&5
4811 $as_echo "$as_me: WARNING:
4812 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
4817 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
4818 # benefit of g++ 9+ which predefines it on Solaris.
4819 if test "$enable_largefile" = no
; then
4820 LARGEFILE_CPPFLAGS
="-U_FILE_OFFSET_BITS"
4826 # Check whether --enable-largefile was given.
4827 if test "${enable_largefile+set}" = set; then :
4828 enableval
=$enable_largefile;
4831 if test "$enable_largefile" != no
; then
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4834 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4835 if ${ac_cv_sys_largefile_CC+:} false
; then :
4836 $as_echo_n "(cached) " >&6
4838 ac_cv_sys_largefile_CC
=no
4839 if test "$GCC" != yes; then
4842 # IRIX 6.2 and later do not support large files by default,
4843 # so use the C compiler's -n32 option if that helps.
4844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4845 /* end confdefs.h. */
4846 #include <sys/types.h>
4847 /* Check that off_t can represent 2**63 - 1 correctly.
4848 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4849 since some C++ compilers masquerading as C compilers
4850 incorrectly reject 9223372036854775807. */
4851 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4852 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4853 && LARGE_OFF_T % 2147483647 == 1)
4863 if ac_fn_c_try_compile
"$LINENO"; then :
4866 rm -f core conftest.err conftest.
$ac_objext
4868 if ac_fn_c_try_compile
"$LINENO"; then :
4869 ac_cv_sys_largefile_CC
=' -n32'; break
4871 rm -f core conftest.err conftest.
$ac_objext
4875 rm -f conftest.
$ac_ext
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4879 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4880 if test "$ac_cv_sys_largefile_CC" != no
; then
4881 CC
=$CC$ac_cv_sys_largefile_CC
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4885 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4886 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4887 $as_echo_n "(cached) " >&6
4890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4891 /* end confdefs.h. */
4892 #include <sys/types.h>
4893 /* Check that off_t can represent 2**63 - 1 correctly.
4894 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4895 since some C++ compilers masquerading as C compilers
4896 incorrectly reject 9223372036854775807. */
4897 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4898 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4899 && LARGE_OFF_T % 2147483647 == 1)
4909 if ac_fn_c_try_compile
"$LINENO"; then :
4910 ac_cv_sys_file_offset_bits
=no
; break
4912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4914 /* end confdefs.h. */
4915 #define _FILE_OFFSET_BITS 64
4916 #include <sys/types.h>
4917 /* Check that off_t can represent 2**63 - 1 correctly.
4918 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4919 since some C++ compilers masquerading as C compilers
4920 incorrectly reject 9223372036854775807. */
4921 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4922 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4923 && LARGE_OFF_T % 2147483647 == 1)
4933 if ac_fn_c_try_compile
"$LINENO"; then :
4934 ac_cv_sys_file_offset_bits
=64; break
4936 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4937 ac_cv_sys_file_offset_bits
=unknown
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4942 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4943 case $ac_cv_sys_file_offset_bits in #(
4946 cat >>confdefs.h
<<_ACEOF
4947 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4952 if test $ac_cv_sys_file_offset_bits = unknown
; then
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4954 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4955 if ${ac_cv_sys_large_files+:} false
; then :
4956 $as_echo_n "(cached) " >&6
4959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4960 /* end confdefs.h. */
4961 #include <sys/types.h>
4962 /* Check that off_t can represent 2**63 - 1 correctly.
4963 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4964 since some C++ compilers masquerading as C compilers
4965 incorrectly reject 9223372036854775807. */
4966 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4967 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4968 && LARGE_OFF_T % 2147483647 == 1)
4978 if ac_fn_c_try_compile
"$LINENO"; then :
4979 ac_cv_sys_large_files
=no
; break
4981 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h. */
4984 #define _LARGE_FILES 1
4985 #include <sys/types.h>
4986 /* Check that off_t can represent 2**63 - 1 correctly.
4987 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4988 since some C++ compilers masquerading as C compilers
4989 incorrectly reject 9223372036854775807. */
4990 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4991 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4992 && LARGE_OFF_T % 2147483647 == 1)
5002 if ac_fn_c_try_compile
"$LINENO"; then :
5003 ac_cv_sys_large_files
=1; break
5005 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5006 ac_cv_sys_large_files
=unknown
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5011 $as_echo "$ac_cv_sys_large_files" >&6; }
5012 case $ac_cv_sys_large_files in #(
5015 cat >>confdefs.h
<<_ACEOF
5016 #define _LARGE_FILES $ac_cv_sys_large_files
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
5031 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
5032 if ${am_cv_prog_cc_stdc+:} false
; then :
5033 $as_echo_n "(cached) " >&6
5035 am_cv_prog_cc_stdc
=no
5037 # Don't try gcc -ansi; that turns off useful extensions and
5038 # breaks some systems' header files.
5039 # AIX -qlanglvl=ansi
5040 # Ultrix and OSF/1 -std1
5041 # HP-UX 10.20 and later -Ae
5042 # HP-UX older versions -Aa -D_HPUX_SOURCE
5043 # SVR4 -Xc -D__EXTENSIONS__
5044 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5046 CC
="$ac_save_CC $ac_arg"
5047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5048 /* end confdefs.h. */
5051 #include <sys/types.h>
5052 #include <sys/stat.h>
5053 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5054 struct buf { int x; };
5055 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5056 static char *e (p, i)
5062 static char *f (char * (*g) (char **, int), char **p, ...)
5067 s = g (p, va_arg (v,int));
5071 int test (int i, double x);
5072 struct s1 {int (*f) (int a);};
5073 struct s2 {int (*f) (double a);};
5074 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5082 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5088 if ac_fn_c_try_compile
"$LINENO"; then :
5089 am_cv_prog_cc_stdc
="$ac_arg"; break
5091 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5097 if test -z "$am_cv_prog_cc_stdc"; then
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5099 $as_echo "none needed" >&6; }
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
5102 $as_echo "$am_cv_prog_cc_stdc" >&6; }
5104 case "x$am_cv_prog_cc_stdc" in
5106 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
5109 # Expand $ac_aux_dir to an absolute path.
5110 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
5112 if test x
"${install_sh+set}" != xset
; then
5115 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
5117 install_sh
="\${SHELL} $am_aux_dir/install-sh"
5121 # Installed binaries are usually stripped using 'strip' when the user
5122 # run "make install-strip". However 'strip' might not be the right
5123 # tool to use in cross-compilation environments, therefore Automake
5124 # will honor the 'STRIP' environment variable to overrule this program.
5125 if test "$cross_compiling" != no
; then
5126 if test -n "$ac_tool_prefix"; then
5127 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5128 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5130 $as_echo_n "checking for $ac_word... " >&6; }
5131 if ${ac_cv_prog_STRIP+:} false
; then :
5132 $as_echo_n "(cached) " >&6
5134 if test -n "$STRIP"; then
5135 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5137 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5141 test -z "$as_dir" && as_dir
=.
5142 for ac_exec_ext
in '' $ac_executable_extensions; do
5143 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5144 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5154 STRIP
=$ac_cv_prog_STRIP
5155 if test -n "$STRIP"; then
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5157 $as_echo "$STRIP" >&6; }
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5160 $as_echo "no" >&6; }
5165 if test -z "$ac_cv_prog_STRIP"; then
5167 # Extract the first word of "strip", so it can be a program name with args.
5168 set dummy strip
; ac_word
=$2
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5170 $as_echo_n "checking for $ac_word... " >&6; }
5171 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
5172 $as_echo_n "(cached) " >&6
5174 if test -n "$ac_ct_STRIP"; then
5175 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5177 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5181 test -z "$as_dir" && as_dir
=.
5182 for ac_exec_ext
in '' $ac_executable_extensions; do
5183 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5184 ac_cv_prog_ac_ct_STRIP
="strip"
5185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5195 if test -n "$ac_ct_STRIP"; then
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5197 $as_echo "$ac_ct_STRIP" >&6; }
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200 $as_echo "no" >&6; }
5203 if test "x$ac_ct_STRIP" = x
; then
5206 case $cross_compiling:$ac_tool_warned in
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5210 ac_tool_warned
=yes ;;
5215 STRIP
="$ac_cv_prog_STRIP"
5219 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
5223 for ac_dir
in ..
"$srcdir"/..
; do
5224 if test -f "$ac_dir/install-sh"; then
5226 ac_install_sh
="$ac_aux_dir/install-sh -c"
5228 elif test -f "$ac_dir/install.sh"; then
5230 ac_install_sh
="$ac_aux_dir/install.sh -c"
5232 elif test -f "$ac_dir/shtool"; then
5234 ac_install_sh
="$ac_aux_dir/shtool install -c"
5238 if test -z "$ac_aux_dir"; then
5239 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
5242 # These three variables are undocumented and unsupported,
5243 # and are intended to be withdrawn in a future Autoconf release.
5244 # They can cause serious problems if a builder's source tree is in a directory
5245 # whose full name contains unusual characters.
5246 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5247 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5248 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5252 test "$program_prefix" != NONE
&&
5253 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
5254 # Use a double $ so make ignores it.
5255 test "$program_suffix" != NONE
&&
5256 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
5257 # Double any \ or $.
5258 # By default was `s,x,x', remove it if useless.
5259 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
5260 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
5263 # We require a C++11 compiler. Check if one is available, and if
5264 # necessary, set CXX_DIALECT to some -std=xxx switch.
5266 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5268 ac_cpp
='$CXXCPP $CPPFLAGS'
5269 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5270 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5271 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5275 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5276 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5277 $as_echo_n "(cached) " >&6
5279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5280 /* end confdefs.h. */
5283 // If the compiler admits that it is not ready for C++11, why torture it?
5284 // Hopefully, this will speed up the test.
5288 #error "This is not a C++ compiler"
5290 #elif __cplusplus < 201103L
5292 #error "This is not a C++11 compiler"
5299 namespace test_static_assert
5302 template <typename T>
5305 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5310 namespace test_final_override
5318 struct Derived : public Base
5320 virtual void f() override {}
5325 namespace test_double_right_angle_brackets
5328 template < typename T >
5331 typedef check<void> single_type;
5332 typedef check<check<void>> double_type;
5333 typedef check<check<check<void>>> triple_type;
5334 typedef check<check<check<check<void>>>> quadruple_type;
5338 namespace test_decltype
5351 namespace test_type_deduction
5354 template < typename T1, typename T2 >
5357 static const bool value = false;
5360 template < typename T >
5361 struct is_same<T, T>
5363 static const bool value = true;
5366 template < typename T1, typename T2 >
5368 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5374 test(const int c, volatile int v)
5376 static_assert(is_same<int, decltype(0)>::value == true, "");
5377 static_assert(is_same<int, decltype(c)>::value == false, "");
5378 static_assert(is_same<int, decltype(v)>::value == false, "");
5381 auto sumi = ac + av + 'x';
5382 auto sumf = ac + av + 1.0;
5383 static_assert(is_same<int, decltype(ac)>::value == true, "");
5384 static_assert(is_same<int, decltype(av)>::value == true, "");
5385 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5386 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5387 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5388 return (sumf > 0.0) ? sumi : add(c, v);
5393 namespace test_noexcept
5396 int f() { return 0; }
5397 int g() noexcept { return 0; }
5399 static_assert(noexcept(f()) == false, "");
5400 static_assert(noexcept(g()) == true, "");
5404 namespace test_constexpr
5407 template < typename CharT >
5408 unsigned long constexpr
5409 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5411 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5414 template < typename CharT >
5415 unsigned long constexpr
5416 strlen_c(const CharT *const s) noexcept
5418 return strlen_c_r(s, 0UL);
5421 static_assert(strlen_c("") == 0UL, "");
5422 static_assert(strlen_c("1") == 1UL, "");
5423 static_assert(strlen_c("example") == 7UL, "");
5424 static_assert(strlen_c("another\0example") == 7UL, "");
5428 namespace test_rvalue_references
5434 static constexpr int value = N;
5437 answer<1> f(int&) { return answer<1>(); }
5438 answer<2> f(const int&) { return answer<2>(); }
5439 answer<3> f(int&&) { return answer<3>(); }
5446 static_assert(decltype(f(i))::value == 1, "");
5447 static_assert(decltype(f(c))::value == 2, "");
5448 static_assert(decltype(f(0))::value == 3, "");
5453 namespace test_uniform_initialization
5458 static const int zero {};
5459 static const int one {1};
5462 static_assert(test::zero == 0, "");
5463 static_assert(test::one == 1, "");
5467 namespace test_lambdas
5473 auto lambda1 = [](){};
5474 auto lambda2 = lambda1;
5482 auto a = [](int i, int j){ return i + j; }(1, 2);
5483 auto b = []() -> int { return '0'; }();
5484 auto c = [=](){ return a + b; }();
5485 auto d = [&](){ return c; }();
5486 auto e = [a, &b](int x) mutable {
5487 const auto identity = [](int y){ return y; };
5488 for (auto i = 0; i < a; ++i)
5490 return x + identity(a + b);
5492 return a + b + c + d + e;
5498 const auto nullary = [](){ return 0; };
5499 const auto unary = [](int x){ return x; };
5500 using nullary_t = decltype(nullary);
5501 using unary_t = decltype(unary);
5502 const auto higher1st = [](nullary_t f){ return f(); };
5503 const auto higher2nd = [unary](nullary_t f1){
5504 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5506 return higher1st(nullary) + higher2nd(nullary)(unary);
5511 namespace test_variadic_templates
5517 template <int N0, int... N1toN>
5518 struct sum<N0, N1toN...>
5520 static constexpr auto value = N0 + sum<N1toN...>::value;
5526 static constexpr auto value = 0;
5529 static_assert(sum<>::value == 0, "");
5530 static_assert(sum<1>::value == 1, "");
5531 static_assert(sum<23>::value == 23, "");
5532 static_assert(sum<1, 2>::value == 3, "");
5533 static_assert(sum<5, 5, 11>::value == 21, "");
5534 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5538 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5539 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5541 namespace test_template_alias_sfinae
5546 template<typename T>
5547 using member = typename T::member_type;
5549 template<typename T>
5552 template<typename T>
5553 void func(member<T>*) {}
5557 void test() { func<foo>(0); }
5561 } // namespace cxx11
5563 #endif // __cplusplus >= 201103L
5568 if ac_fn_cxx_try_compile
"$LINENO"; then :
5569 ax_cv_cxx_compile_cxx11
=yes
5571 ax_cv_cxx_compile_cxx11
=no
5573 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5576 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5577 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
5581 if test x
$ac_success = xno
; then
5582 for alternative
in ${ax_cxx_compile_alternatives}; do
5583 switch
="-std=gnu++${alternative}"
5584 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5586 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5587 if eval \
${$cachevar+:} false
; then :
5588 $as_echo_n "(cached) " >&6
5592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h. */
5596 // If the compiler admits that it is not ready for C++11, why torture it?
5597 // Hopefully, this will speed up the test.
5601 #error "This is not a C++ compiler"
5603 #elif __cplusplus < 201103L
5605 #error "This is not a C++11 compiler"
5612 namespace test_static_assert
5615 template <typename T>
5618 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5623 namespace test_final_override
5631 struct Derived : public Base
5633 virtual void f() override {}
5638 namespace test_double_right_angle_brackets
5641 template < typename T >
5644 typedef check<void> single_type;
5645 typedef check<check<void>> double_type;
5646 typedef check<check<check<void>>> triple_type;
5647 typedef check<check<check<check<void>>>> quadruple_type;
5651 namespace test_decltype
5664 namespace test_type_deduction
5667 template < typename T1, typename T2 >
5670 static const bool value = false;
5673 template < typename T >
5674 struct is_same<T, T>
5676 static const bool value = true;
5679 template < typename T1, typename T2 >
5681 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5687 test(const int c, volatile int v)
5689 static_assert(is_same<int, decltype(0)>::value == true, "");
5690 static_assert(is_same<int, decltype(c)>::value == false, "");
5691 static_assert(is_same<int, decltype(v)>::value == false, "");
5694 auto sumi = ac + av + 'x';
5695 auto sumf = ac + av + 1.0;
5696 static_assert(is_same<int, decltype(ac)>::value == true, "");
5697 static_assert(is_same<int, decltype(av)>::value == true, "");
5698 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5699 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5700 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5701 return (sumf > 0.0) ? sumi : add(c, v);
5706 namespace test_noexcept
5709 int f() { return 0; }
5710 int g() noexcept { return 0; }
5712 static_assert(noexcept(f()) == false, "");
5713 static_assert(noexcept(g()) == true, "");
5717 namespace test_constexpr
5720 template < typename CharT >
5721 unsigned long constexpr
5722 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5724 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5727 template < typename CharT >
5728 unsigned long constexpr
5729 strlen_c(const CharT *const s) noexcept
5731 return strlen_c_r(s, 0UL);
5734 static_assert(strlen_c("") == 0UL, "");
5735 static_assert(strlen_c("1") == 1UL, "");
5736 static_assert(strlen_c("example") == 7UL, "");
5737 static_assert(strlen_c("another\0example") == 7UL, "");
5741 namespace test_rvalue_references
5747 static constexpr int value = N;
5750 answer<1> f(int&) { return answer<1>(); }
5751 answer<2> f(const int&) { return answer<2>(); }
5752 answer<3> f(int&&) { return answer<3>(); }
5759 static_assert(decltype(f(i))::value == 1, "");
5760 static_assert(decltype(f(c))::value == 2, "");
5761 static_assert(decltype(f(0))::value == 3, "");
5766 namespace test_uniform_initialization
5771 static const int zero {};
5772 static const int one {1};
5775 static_assert(test::zero == 0, "");
5776 static_assert(test::one == 1, "");
5780 namespace test_lambdas
5786 auto lambda1 = [](){};
5787 auto lambda2 = lambda1;
5795 auto a = [](int i, int j){ return i + j; }(1, 2);
5796 auto b = []() -> int { return '0'; }();
5797 auto c = [=](){ return a + b; }();
5798 auto d = [&](){ return c; }();
5799 auto e = [a, &b](int x) mutable {
5800 const auto identity = [](int y){ return y; };
5801 for (auto i = 0; i < a; ++i)
5803 return x + identity(a + b);
5805 return a + b + c + d + e;
5811 const auto nullary = [](){ return 0; };
5812 const auto unary = [](int x){ return x; };
5813 using nullary_t = decltype(nullary);
5814 using unary_t = decltype(unary);
5815 const auto higher1st = [](nullary_t f){ return f(); };
5816 const auto higher2nd = [unary](nullary_t f1){
5817 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5819 return higher1st(nullary) + higher2nd(nullary)(unary);
5824 namespace test_variadic_templates
5830 template <int N0, int... N1toN>
5831 struct sum<N0, N1toN...>
5833 static constexpr auto value = N0 + sum<N1toN...>::value;
5839 static constexpr auto value = 0;
5842 static_assert(sum<>::value == 0, "");
5843 static_assert(sum<1>::value == 1, "");
5844 static_assert(sum<23>::value == 23, "");
5845 static_assert(sum<1, 2>::value == 3, "");
5846 static_assert(sum<5, 5, 11>::value == 21, "");
5847 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5851 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5852 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5854 namespace test_template_alias_sfinae
5859 template<typename T>
5860 using member = typename T::member_type;
5862 template<typename T>
5865 template<typename T>
5866 void func(member<T>*) {}
5870 void test() { func<foo>(0); }
5874 } // namespace cxx11
5876 #endif // __cplusplus >= 201103L
5881 if ac_fn_cxx_try_compile
"$LINENO"; then :
5886 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5889 eval ac_res
=\$
$cachevar
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5891 $as_echo "$ac_res" >&6; }
5892 if eval test x\$
$cachevar = xyes
; then
5893 CXX_DIALECT
="$switch"
5900 if test x
$ac_success = xno
; then
5901 for alternative
in ${ax_cxx_compile_alternatives}; do
5902 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5903 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
5905 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
5906 if eval \${$cachevar+:} false; then :
5907 $as_echo_n "(cached
) " >&6
5911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5912 /* end confdefs.h. */
5915 // If the compiler admits that it is not ready for C++11, why torture it?
5916 // Hopefully, this will speed up the test.
5920 #error "This is not a C
++ compiler
"
5922 #elif __cplusplus < 201103L
5924 #error "This is not a C
++11 compiler
"
5931 namespace test_static_assert
5934 template <typename T>
5937 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
5942 namespace test_final_override
5950 struct Derived : public Base
5952 virtual void f() override {}
5957 namespace test_double_right_angle_brackets
5960 template < typename T >
5963 typedef check<void> single_type;
5964 typedef check<check<void>> double_type;
5965 typedef check<check<check<void>>> triple_type;
5966 typedef check<check<check<check<void>>>> quadruple_type;
5970 namespace test_decltype
5983 namespace test_type_deduction
5986 template < typename T1, typename T2 >
5989 static const bool value = false;
5992 template < typename T >
5993 struct is_same<T, T>
5995 static const bool value = true;
5998 template < typename T1, typename T2 >
6000 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6006 test(const int c, volatile int v)
6008 static_assert(is_same<int, decltype(0)>::value == true, "");
6009 static_assert(is_same<int, decltype(c)>::value == false, "");
6010 static_assert(is_same<int, decltype(v)>::value == false, "");
6013 auto sumi = ac + av + 'x';
6014 auto sumf = ac + av + 1.0;
6015 static_assert(is_same<int, decltype(ac)>::value == true, "");
6016 static_assert(is_same<int, decltype(av)>::value == true, "");
6017 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6018 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6019 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6020 return (sumf > 0.0) ? sumi : add(c, v);
6025 namespace test_noexcept
6028 int f() { return 0; }
6029 int g() noexcept { return 0; }
6031 static_assert(noexcept(f()) == false, "");
6032 static_assert(noexcept(g()) == true, "");
6036 namespace test_constexpr
6039 template < typename CharT >
6040 unsigned long constexpr
6041 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6043 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6046 template < typename CharT >
6047 unsigned long constexpr
6048 strlen_c(const CharT *const s) noexcept
6050 return strlen_c_r(s, 0UL);
6053 static_assert(strlen_c("") == 0UL, "");
6054 static_assert(strlen_c("1") == 1UL, "");
6055 static_assert(strlen_c("example
") == 7UL, "");
6056 static_assert(strlen_c("another\
0example
") == 7UL, "");
6060 namespace test_rvalue_references
6066 static constexpr int value = N;
6069 answer<1> f(int&) { return answer<1>(); }
6070 answer<2> f(const int&) { return answer<2>(); }
6071 answer<3> f(int&&) { return answer<3>(); }
6078 static_assert(decltype(f(i))::value == 1, "");
6079 static_assert(decltype(f(c))::value == 2, "");
6080 static_assert(decltype(f(0))::value == 3, "");
6085 namespace test_uniform_initialization
6090 static const int zero {};
6091 static const int one {1};
6094 static_assert(test::zero == 0, "");
6095 static_assert(test::one == 1, "");
6099 namespace test_lambdas
6105 auto lambda1 = [](){};
6106 auto lambda2 = lambda1;
6114 auto a = [](int i, int j){ return i + j; }(1, 2);
6115 auto b = []() -> int { return '0'; }();
6116 auto c = [=](){ return a + b; }();
6117 auto d = [&](){ return c; }();
6118 auto e = [a, &b](int x) mutable {
6119 const auto identity = [](int y){ return y; };
6120 for (auto i = 0; i < a; ++i)
6122 return x + identity(a + b);
6124 return a + b + c + d + e;
6130 const auto nullary = [](){ return 0; };
6131 const auto unary = [](int x){ return x; };
6132 using nullary_t = decltype(nullary);
6133 using unary_t = decltype(unary);
6134 const auto higher1st = [](nullary_t f){ return f(); };
6135 const auto higher2nd = [unary](nullary_t f1){
6136 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6138 return higher1st(nullary) + higher2nd(nullary)(unary);
6143 namespace test_variadic_templates
6149 template <int N0, int... N1toN>
6150 struct sum<N0, N1toN...>
6152 static constexpr auto value = N0 + sum<N1toN...>::value;
6158 static constexpr auto value = 0;
6161 static_assert(sum<>::value == 0, "");
6162 static_assert(sum<1>::value == 1, "");
6163 static_assert(sum<23>::value == 23, "");
6164 static_assert(sum<1, 2>::value == 3, "");
6165 static_assert(sum<5, 5, 11>::value == 21, "");
6166 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6170 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6171 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6173 namespace test_template_alias_sfinae
6178 template<typename T>
6179 using member = typename T::member_type;
6181 template<typename T>
6184 template<typename T>
6185 void func(member<T>*) {}
6189 void test() { func<foo>(0); }
6193 } // namespace cxx11
6195 #endif // __cplusplus >= 201103L
6200 if ac_fn_cxx_try_compile "$LINENO"; then :
6205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6208 eval ac_res=\$$cachevar
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6210 $as_echo "$ac_res" >&6; }
6211 if eval test x\$$cachevar = xyes; then
6212 CXX_DIALECT="$switch"
6217 if test x$ac_success = xyes; then
6223 ac_cpp='$CPP $CPPFLAGS'
6224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6228 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6229 if test x$ac_success = xno; then
6230 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6233 if test x$ac_success = xno; then
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6236 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6240 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6247 # Dependency checking.
6248 rm -rf .tst
2>/dev
/null
6249 mkdir .tst
2>/dev
/null
6250 if test -d .tst
; then
6255 rmdir .tst
2>/dev
/null
6257 DEPDIR
="${am__leading_dot}deps"
6259 ac_config_commands
="$ac_config_commands depdir"
6262 depcc
="$CC" am_compiler_list
=
6264 am_depcomp
=$ac_aux_dir/depcomp
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6266 $as_echo_n "checking dependency style of $depcc... " >&6; }
6267 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
6268 $as_echo_n "(cached) " >&6
6270 if test -f "$am_depcomp"; then
6271 # We make a subdir and do the tests there. Otherwise we can end up
6272 # making bogus files that we don't know about and never remove. For
6273 # instance it was reported that on HP-UX the gcc test will end up
6274 # making a dummy file named `D' -- because `-MD' means `put the output
6277 # Copy depcomp to subdir because otherwise we won't find it if we're
6278 # using a relative directory.
6279 cp "$am_depcomp" conftest.dir
6281 # We will build objects and dependencies in a subdirectory because
6282 # it helps to detect inapplicable dependency modes. For instance
6283 # both Tru64's cc and ICC support -MD to output dependencies as a
6284 # side effect of compilation, but ICC will put the dependencies in
6285 # the current directory while Tru64 will put them in the object
6289 am_cv_CC_dependencies_compiler_type
=none
6290 if test "$am_compiler_list" = ""; then
6291 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6293 for depmode
in $am_compiler_list; do
6294 if test $depmode = none
; then break; fi
6296 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6297 # Setup a source with many dependencies, because some compilers
6298 # like to wrap large dependency lists on column 80 (with \), and
6299 # we should not choose a depcomp mode which is confused by this.
6301 # We need to recreate these files for each test, as the compiler may
6302 # overwrite some of them when testing with obscure command lines.
6303 # This happens at least with the AIX C compiler.
6305 for i
in 1 2 3 4 5 6; do
6306 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6307 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6308 # Solaris 8's {/usr,}/bin/sh.
6309 touch sub
/conftst
$i.h
6311 echo "include sub/conftest.Po" > confmf
6313 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6314 # mode. It turns out that the SunPro C++ compiler does not properly
6315 # handle `-M -o', and we need to detect this.
6316 depcmd
="depmode=$depmode \
6317 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6318 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6319 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6320 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
6321 if env
$depcmd > conftest.err
2>&1 &&
6322 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
6323 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
6324 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
6325 # icc doesn't choke on unknown options, it will just issue warnings
6326 # or remarks (even with -Werror). So we grep stderr for any message
6327 # that says an option was ignored or not supported.
6328 # When given -MP, icc 7.0 and 7.1 complain thusly:
6329 # icc: Command line warning: ignoring option '-M'; no argument required
6330 # The diagnosis changed in icc 8.0:
6331 # icc: Command line remark: option '-MP' not supported
6332 if (grep 'ignoring option' conftest.err ||
6333 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6334 am_cv_CC_dependencies_compiler_type
=$depmode
6335 $as_echo "$as_me:$LINENO: success" >&5
6339 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6340 sed -e 's/^/| /' < conftest.err
>&5
6346 am_cv_CC_dependencies_compiler_type
=none
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6351 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6352 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
6353 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
6354 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
6370 # If we haven't got the data from the intl directory,
6371 # assume NLS is disabled.
6380 if test -f ..
/intl
/config.intl
; then
6381 . ..
/intl
/config.intl
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6384 $as_echo_n "checking whether NLS is requested... " >&6; }
6385 if test x
"$USE_NLS" != xyes
; then
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6387 $as_echo "no" >&6; }
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6390 $as_echo "yes" >&6; }
6392 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6396 $as_echo_n "checking for catalogs to be installed... " >&6; }
6397 # Look for .po and .gmo files in the source directory.
6400 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
6401 # If there aren't any .gmo files the shell will give us the
6402 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6404 case "$cat" in *\
**)
6407 # The quadruple backslash is collapsed to a double backslash
6408 # by the backticks, then collapsed again by the double quotes,
6409 # leaving us with one backslash in the sed expression (right
6410 # before the dot that mustn't act as a wildcard).
6411 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6412 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
6413 # The user is allowed to set LINGUAS to a list of languages to
6414 # install catalogs for. If it's empty that means "all of them."
6415 if test "x$LINGUAS" = x
; then
6416 CATALOGS
="$CATALOGS $cat"
6417 XLINGUAS
="$XLINGUAS $lang"
6419 case "$LINGUAS" in *$lang*)
6420 CATALOGS
="$CATALOGS $cat"
6421 XLINGUAS
="$XLINGUAS $lang"
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6428 $as_echo "$LINGUAS" >&6; }
6441 localedir
='${datadir}/locale'
6444 if test x
"$USE_NLS" = xyes
; then
6445 CONFIG_ALL
="$CONFIG_ALL all-po"
6446 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
6447 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
6448 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
6453 cat >>confdefs.h
<<_ACEOF
6454 #define PACKAGE "$PACKAGE"
6459 # We never need to detect it in this sub-configure.
6460 # But preserve it for config.status --recheck.
6464 MAKEINFO_EXTRA_FLAGS
=""
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
6466 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
6467 if ${gdb_cv_have_makeinfo_click+:} false
; then :
6468 $as_echo_n "(cached) " >&6
6470 echo '@clicksequence{a @click{} b}' >conftest.texinfo
6471 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
6472 gdb_cv_have_makeinfo_click
=yes
6474 gdb_cv_have_makeinfo_click
=no
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
6478 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
6479 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
6480 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
6486 # Check whether --with-separate-debug-dir was given.
6487 if test "${with_separate_debug_dir+set}" = set; then :
6488 withval
=$with_separate_debug_dir;
6491 DEBUGDIR
=${libdir}/debug
6495 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6496 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6497 ac_define_dir
=`eval echo $DEBUGDIR`
6498 ac_define_dir
=`eval echo $ac_define_dir`
6500 cat >>confdefs.h
<<_ACEOF
6501 #define DEBUGDIR "$ac_define_dir"
6507 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6508 if test "x$prefix" = xNONE
; then
6509 test_prefix
=/usr
/local
6514 test_prefix
=$exec_prefix
6517 case ${ac_define_dir} in
6518 "${test_prefix}"|
"${test_prefix}/"*|\
6519 '${exec_prefix}'|
'${exec_prefix}/'*)
6524 cat >>confdefs.h
<<_ACEOF
6525 #define DEBUGDIR_RELOCATABLE $value
6531 # We can't pass paths as command line arguments.
6532 # Mingw32 tries to be clever and will convert the paths for us.
6533 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
6534 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
6535 # This breaks GDB's relocatable path conversions since paths passed in
6536 # config.h would not get so translated, the path prefixes no longer match.
6538 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6539 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6540 ac_define_dir
=`eval echo $bindir`
6541 ac_define_dir
=`eval echo $ac_define_dir`
6543 cat >>confdefs.h
<<_ACEOF
6544 #define BINDIR "$ac_define_dir"
6549 # GDB's datadir relocation
6553 # Check whether --with-gdb-datadir was given.
6554 if test "${with_gdb_datadir+set}" = set; then :
6555 withval
=$with_gdb_datadir;
6556 GDB_DATADIR
=$withval
6558 GDB_DATADIR
=${datadir}/gdb
6562 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6563 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6564 ac_define_dir
=`eval echo $GDB_DATADIR`
6565 ac_define_dir
=`eval echo $ac_define_dir`
6567 cat >>confdefs.h
<<_ACEOF
6568 #define GDB_DATADIR "$ac_define_dir"
6574 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6575 if test "x$prefix" = xNONE
; then
6576 test_prefix
=/usr
/local
6581 test_prefix
=$exec_prefix
6584 case ${ac_define_dir} in
6585 "${test_prefix}"|
"${test_prefix}/"*|\
6586 '${exec_prefix}'|
'${exec_prefix}/'*)
6591 cat >>confdefs.h
<<_ACEOF
6592 #define GDB_DATADIR_RELOCATABLE $value
6599 # Check whether --with-relocated-sources was given.
6600 if test "${with_relocated_sources+set}" = set; then :
6601 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
6603 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6604 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6605 ac_define_dir
=`eval echo $reloc_srcdir`
6606 ac_define_dir
=`eval echo $ac_define_dir`
6608 cat >>confdefs.h
<<_ACEOF
6609 #define RELOC_SRCDIR "$ac_define_dir"
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
6618 $as_echo_n "checking for default auto-load directory... " >&6; }
6620 # Check whether --with-auto-load-dir was given.
6621 if test "${with_auto_load_dir+set}" = set; then :
6622 withval
=$with_auto_load_dir;
6624 with_auto_load_dir
='$debugdir:$datadir/auto-load'
6627 escape_dir
=`echo $with_auto_load_dir | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6629 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6630 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6631 ac_define_dir
=`eval echo $escape_dir`
6632 ac_define_dir
=`eval echo $ac_define_dir`
6634 cat >>confdefs.h
<<_ACEOF
6635 #define AUTO_LOAD_DIR "$ac_define_dir"
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
6640 $as_echo "$with_auto_load_dir" >&6; }
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
6643 $as_echo_n "checking for default auto-load safe-path... " >&6; }
6645 # Check whether --with-auto-load-safe-path was given.
6646 if test "${with_auto_load_safe_path+set}" = set; then :
6647 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
6648 with_auto_load_safe_path
="/"
6651 with_auto_load_safe_path
="$with_auto_load_dir"
6654 escape_dir
=`echo $with_auto_load_safe_path | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6656 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6657 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6658 ac_define_dir
=`eval echo $escape_dir`
6659 ac_define_dir
=`eval echo $ac_define_dir`
6661 cat >>confdefs.h
<<_ACEOF
6662 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
6667 $as_echo "$with_auto_load_safe_path" >&6; }
6671 subdirs
="$subdirs testsuite"
6674 # Check whether to support alternative target configurations
6675 # Check whether --enable-targets was given.
6676 if test "${enable_targets+set}" = set; then :
6677 enableval
=$enable_targets; case "${enableval}" in
6678 yes |
"") as_fn_error $?
"enable-targets option must specify target names or 'all'" "$LINENO" 5
6680 no
) enable_targets
= ;;
6681 *) enable_targets
=$enableval ;;
6686 # Check whether to enable 64-bit support on 32-bit hosts
6687 # Check whether --enable-64-bit-bfd was given.
6688 if test "${enable_64_bit_bfd+set}" = set; then :
6689 enableval
=$enable_64_bit_bfd; case "${enableval}" in
6692 *) as_fn_error $?
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
6698 # Provide defaults for some variables set by the per-host and per-target
6700 gdb_host_obs
=posix-hdep.o
6702 if test "${target}" = "${host}"; then
6708 .
$srcdir/configure.
host
6710 # Accumulate some settings from configure.tgt over all enabled targets
6714 HAVE_NATIVE_GCORE_TARGET
=
6716 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6718 if test "$targ_alias" = "all"; then
6721 # Canonicalize the secondary target names.
6722 result
=`$ac_config_sub $targ_alias 2>/dev/null`
6723 if test -n "$result"; then
6729 .
${srcdir}/configure.tgt
6731 if test -z "${gdb_target_obs}"; then :
6732 as_fn_error $?
"configuration ${targ} is unsupported." "$LINENO" 5
6735 # Target-specific object files
6736 for i
in ${gdb_target_obs}; do
6737 case " $TARGET_OBS " in
6740 TARGET_OBS
="$TARGET_OBS ${i}"
6745 # Check whether this target needs 64-bit CORE_ADDR
6746 if test x
${want64} = xfalse
; then
6747 .
${srcdir}/..
/bfd
/config.bfd
6750 # Check whether this target is native and supports gcore.
6751 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
6752 && $gdb_have_gcore; then
6753 HAVE_NATIVE_GCORE_TARGET
=1
6758 if test x
${all_targets} = xtrue
; then
6760 # We want all 64-bit targets if we either:
6761 # - run on a 64-bit host or
6762 # - already require 64-bit support for some other target or
6763 # - the --enable-64-bit-bfd option was supplied
6764 # Otherwise we only support all 32-bit targets.
6766 # NOTE: This test must be in sync with the corresponding
6769 if test x
${want64} = xfalse
; then
6770 # The cast to long int works around a bug in the HP C Compiler
6771 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6772 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6773 # This bug is HP SR number 8606223364.
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6775 $as_echo_n "checking size of long... " >&6; }
6776 if ${ac_cv_sizeof_long+:} false
; then :
6777 $as_echo_n "(cached) " >&6
6779 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6782 if test "$ac_cv_type_long" = yes; then
6783 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6785 as_fn_error
77 "cannot compute sizeof (long)
6786 See \`config.log' for more details" "$LINENO" 5; }
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6794 $as_echo "$ac_cv_sizeof_long" >&6; }
6798 cat >>confdefs.h
<<_ACEOF
6799 #define SIZEOF_LONG $ac_cv_sizeof_long
6803 if test "x${ac_cv_sizeof_long}" = "x8"; then
6807 if test x
${want64} = xtrue
; then
6808 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
6810 TARGET_OBS
='$(ALL_TARGET_OBS)'
6817 # For other settings, only the main target counts.
6820 targ
=$target; .
${srcdir}/configure.tgt
6822 # Fetch the default architecture and default target vector from BFD.
6823 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
6825 # We only want the first architecture, so strip off the others if
6826 # there is more than one.
6827 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
6829 if test "x$targ_archs" != x
; then
6831 cat >>confdefs.h
<<_ACEOF
6832 #define DEFAULT_BFD_ARCH $targ_archs
6836 if test "x$targ_defvec" != x
; then
6838 cat >>confdefs.h
<<_ACEOF
6839 #define DEFAULT_BFD_VEC $targ_defvec
6845 # Check whether --enable-gdbmi was given.
6846 if test "${enable_gdbmi+set}" = set; then :
6847 enableval
=$enable_gdbmi; case $enableval in
6851 as_fn_error $?
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
6857 if test x
"$enable_gdbmi" = xyes
; then
6858 if test -d "$srcdir/mi"; then
6859 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6860 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6861 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6862 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6867 # Check whether --enable-tui was given.
6868 if test "${enable_tui+set}" = set; then :
6869 enableval
=$enable_tui; case $enableval in
6873 as_fn_error $?
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
6881 # Check whether --enable-gdbtk was given.
6882 if test "${enable_gdbtk+set}" = set; then :
6883 enableval
=$enable_gdbtk; case $enableval in
6887 as_fn_error $?
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
6890 if test -d "$srcdir/gdbtk"; then
6897 # We unconditionally disable gdbtk tests on selected platforms.
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
6901 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6905 # Handle optional debuginfod support
6913 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6914 if test -n "$ac_tool_prefix"; then
6915 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6916 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6918 $as_echo_n "checking for $ac_word... " >&6; }
6919 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
6920 $as_echo_n "(cached) " >&6
6924 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6927 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6931 test -z "$as_dir" && as_dir
=.
6932 for ac_exec_ext
in '' $ac_executable_extensions; do
6933 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6934 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6945 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6946 if test -n "$PKG_CONFIG"; then
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6948 $as_echo "$PKG_CONFIG" >&6; }
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6951 $as_echo "no" >&6; }
6956 if test -z "$ac_cv_path_PKG_CONFIG"; then
6957 ac_pt_PKG_CONFIG
=$PKG_CONFIG
6958 # Extract the first word of "pkg-config", so it can be a program name with args.
6959 set dummy pkg-config
; ac_word
=$2
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6961 $as_echo_n "checking for $ac_word... " >&6; }
6962 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
6963 $as_echo_n "(cached) " >&6
6965 case $ac_pt_PKG_CONFIG in
6967 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6970 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6974 test -z "$as_dir" && as_dir
=.
6975 for ac_exec_ext
in '' $ac_executable_extensions; do
6976 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6977 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6988 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
6989 if test -n "$ac_pt_PKG_CONFIG"; then
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6991 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6994 $as_echo "no" >&6; }
6997 if test "x$ac_pt_PKG_CONFIG" = x
; then
7000 case $cross_compiling:$ac_tool_warned in
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7004 ac_tool_warned
=yes ;;
7006 PKG_CONFIG
=$ac_pt_PKG_CONFIG
7009 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
7013 if test -n "$PKG_CONFIG"; then
7014 _pkg_min_version
=0.9.0
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7016 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7017 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7019 $as_echo "yes" >&6; }
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7022 $as_echo "no" >&6; }
7027 # Handle optional debuginfod support
7029 # Check whether --with-debuginfod was given.
7030 if test "${with_debuginfod+set}" = set; then :
7031 withval
=$with_debuginfod;
7033 with_debuginfod
=auto
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
7037 $as_echo_n "checking whether to use debuginfod... " >&6; }
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
7039 $as_echo "$with_debuginfod" >&6; }
7041 if test "x$with_debuginfod" != xno
; then
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
7045 $as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
7047 if test -n "$DEBUGINFOD_CFLAGS"; then
7048 pkg_cv_DEBUGINFOD_CFLAGS
="$DEBUGINFOD_CFLAGS"
7049 elif test -n "$PKG_CONFIG"; then
7050 if test -n "$PKG_CONFIG" && \
7051 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
7052 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
7054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7055 test $ac_status = 0; }; then
7056 pkg_cv_DEBUGINFOD_CFLAGS
=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
7057 test "x$?" != "x0" && pkg_failed
=yes
7064 if test -n "$DEBUGINFOD_LIBS"; then
7065 pkg_cv_DEBUGINFOD_LIBS
="$DEBUGINFOD_LIBS"
7066 elif test -n "$PKG_CONFIG"; then
7067 if test -n "$PKG_CONFIG" && \
7068 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
7069 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
7071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7072 test $ac_status = 0; }; then
7073 pkg_cv_DEBUGINFOD_LIBS
=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
7074 test "x$?" != "x0" && pkg_failed
=yes
7082 if test $pkg_failed = no
; then
7083 pkg_save_LDFLAGS
="$LDFLAGS"
7084 LDFLAGS
="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
7085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7086 /* end confdefs.h. */
7096 if ac_fn_c_try_link
"$LINENO"; then :
7101 rm -f core conftest.err conftest.
$ac_objext \
7102 conftest
$ac_exeext conftest.
$ac_ext
7103 LDFLAGS
=$pkg_save_LDFLAGS
7108 if test $pkg_failed = yes; then
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110 $as_echo "no" >&6; }
7112 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7113 _pkg_short_errors_supported
=yes
7115 _pkg_short_errors_supported
=no
7117 if test $_pkg_short_errors_supported = yes; then
7118 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
7120 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
7122 # Put the nasty error message in config.log where it belongs
7123 echo "$DEBUGINFOD_PKG_ERRORS" >&5
7125 if test "x$with_debuginfod" = xyes
; then
7126 as_fn_error $?
"\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
7129 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
7131 elif test $pkg_failed = untried
; then
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7133 $as_echo "no" >&6; }
7134 if test "x$with_debuginfod" = xyes
; then
7135 as_fn_error $?
"\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
7138 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
7141 DEBUGINFOD_CFLAGS
=$pkg_cv_DEBUGINFOD_CFLAGS
7142 DEBUGINFOD_LIBS
=$pkg_cv_DEBUGINFOD_LIBS
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7144 $as_echo "yes" >&6; }
7146 $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
7151 $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
7155 # Libunwind support for ia64.
7157 # Check whether --with-libunwind-ia64 was given.
7158 if test "${with_libunwind_ia64+set}" = set; then :
7159 withval
=$with_libunwind_ia64;
7161 with_libunwind_ia64
=auto
7165 # Backward compatibility option.
7166 if test "${with_libunwind+set}" = set; then
7167 if test x
"$with_libunwind_ia64" != xauto
; then
7168 as_fn_error $?
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
7171 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
7172 with_libunwind_ia64
="$with_libunwind"
7175 case "$with_libunwind_ia64" in
7179 for ac_header
in libunwind-ia64.h
7181 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
7182 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
7183 cat >>confdefs.h
<<_ACEOF
7184 #define HAVE_LIBUNWIND_IA64_H 1
7191 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
7194 as_fn_error $?
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
7198 if test x
"$with_libunwind_ia64" = xyes
; then
7199 for ac_header
in libunwind-ia64.h
7201 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
7202 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
7203 cat >>confdefs.h
<<_ACEOF
7204 #define HAVE_LIBUNWIND_IA64_H 1
7211 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
7212 as_fn_error $?
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
7214 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
7215 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
7216 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
7221 # Check whether --with-curses was given.
7222 if test "${with_curses+set}" = set; then :
7223 withval
=$with_curses; opt_curses
=$withval
7228 if test "$opt_curses" = "yes"; then
7232 # Profiling support.
7233 # Check whether --enable-profiling was given.
7234 if test "${enable_profiling+set}" = set; then :
7235 enableval
=$enable_profiling; case $enableval in
7239 as_fn_error $?
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
7246 for ac_func
in monstartup _mcleanup
7248 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7249 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7250 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7251 cat >>confdefs.h
<<_ACEOF
7252 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
7259 $as_echo_n "checking for _etext... " >&6; }
7260 if ${ac_cv_var__etext+:} false
; then :
7261 $as_echo_n "(cached) " >&6
7263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7264 /* end confdefs.h. */
7276 if ac_fn_c_try_link
"$LINENO"; then :
7277 ac_cv_var__etext
=yes
7281 rm -f core conftest.err conftest.
$ac_objext \
7282 conftest
$ac_exeext conftest.
$ac_ext
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
7285 $as_echo "$ac_cv_var__etext" >&6; }
7286 if test "$ac_cv_var__etext" = yes; then
7288 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
7292 $as_echo_n "checking for etext... " >&6; }
7293 if ${ac_cv_var_etext+:} false
; then :
7294 $as_echo_n "(cached) " >&6
7296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7297 /* end confdefs.h. */
7309 if ac_fn_c_try_link
"$LINENO"; then :
7314 rm -f core conftest.err conftest.
$ac_objext \
7315 conftest
$ac_exeext conftest.
$ac_ext
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
7318 $as_echo "$ac_cv_var_etext" >&6; }
7319 if test "$ac_cv_var_etext" = yes; then
7321 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
7324 if test "$enable_profiling" = yes ; then
7325 if test "$ac_cv_func_monstartup" = no ||
test "$ac_cv_func__mcleanup" = no
; then
7326 as_fn_error $?
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
7329 OLD_CFLAGS
="$CFLAGS"
7330 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
7333 $as_echo_n "checking whether $CC supports -pg... " >&6; }
7334 if ${ac_cv_cc_supports_pg+:} false
; then :
7335 $as_echo_n "(cached) " >&6
7337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7338 /* end confdefs.h. */
7348 if ac_fn_c_try_compile
"$LINENO"; then :
7349 ac_cv_cc_supports_pg
=yes
7351 ac_cv_cc_supports_pg
=no
7353 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
7356 $as_echo "$ac_cv_cc_supports_pg" >&6; }
7358 if test "$ac_cv_cc_supports_pg" = no
; then
7359 as_fn_error $?
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
7362 CFLAGS
="$OLD_CFLAGS"
7366 # Check whether --enable-codesign was given.
7367 if test "${enable_codesign+set}" = set; then :
7368 enableval
=$enable_codesign; CODESIGN_CERT
=$enableval
7375 # Check whether --with-pkgversion was given.
7376 if test "${with_pkgversion+set}" = set; then :
7377 withval
=$with_pkgversion; case "$withval" in
7378 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
7380 *) PKGVERSION
="($withval) " ;;
7391 # Check whether --with-bugurl was given.
7392 if test "${with_bugurl+set}" = set; then :
7393 withval
=$with_bugurl; case "$withval" in
7394 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
7397 *) BUGURL
="$withval"
7401 BUGURL
="https://www.gnu.org/software/gdb/bugs/"
7411 REPORT_BUGS_TO
="<$BUGURL>"
7412 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7419 cat >>confdefs.h
<<_ACEOF
7420 #define PKGVERSION "$PKGVERSION"
7424 cat >>confdefs.h
<<_ACEOF
7425 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7429 # --------------------- #
7430 # Checks for programs. #
7431 # --------------------- #
7433 for ac_prog
in gawk mawk nawk
awk
7435 # Extract the first word of "$ac_prog", so it can be a program name with args.
7436 set dummy
$ac_prog; ac_word
=$2
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7438 $as_echo_n "checking for $ac_word... " >&6; }
7439 if ${ac_cv_prog_AWK+:} false
; then :
7440 $as_echo_n "(cached) " >&6
7442 if test -n "$AWK"; then
7443 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7445 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7449 test -z "$as_dir" && as_dir
=.
7450 for ac_exec_ext
in '' $ac_executable_extensions; do
7451 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7452 ac_cv_prog_AWK
="$ac_prog"
7453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7463 if test -n "$AWK"; then
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7465 $as_echo "$AWK" >&6; }
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7468 $as_echo "no" >&6; }
7472 test -n "$AWK" && break
7475 # Find a good install program. We prefer a C program (faster),
7476 # so one script is as good as another. But avoid the broken or
7477 # incompatible versions:
7478 # SysV /etc/install, /usr/sbin/install
7479 # SunOS /usr/etc/install
7480 # IRIX /sbin/install
7482 # AmigaOS /C/install, which installs bootblocks on floppy discs
7483 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7484 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7485 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7486 # OS/2's system install, which has a completely different semantic
7487 # ./install, which can be erroneously created by make from ./install.sh.
7488 # Reject install programs that cannot install multiple files.
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7490 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7491 if test -z "$INSTALL"; then
7492 if ${ac_cv_path_install+:} false
; then :
7493 $as_echo_n "(cached) " >&6
7495 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7499 test -z "$as_dir" && as_dir
=.
7500 # Account for people who put trailing slashes in PATH elements.
7501 case $as_dir/ in #((
7502 .
/ | .
// |
/[cC
]/* | \
7503 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7504 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
7507 # OSF1 and SCO ODT 3.0 have their own names for install.
7508 # Don't use installbsd from OSF since it installs stuff as root
7510 for ac_prog
in ginstall scoinst
install; do
7511 for ac_exec_ext
in '' $ac_executable_extensions; do
7512 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
7513 if test $ac_prog = install &&
7514 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7515 # AIX install. It has an incompatible calling convention.
7517 elif test $ac_prog = install &&
7518 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7519 # program-specific install script used by HP pwplus--don't use.
7522 rm -rf conftest.one conftest.two conftest.dir
7523 echo one
> conftest.one
7524 echo two
> conftest.two
7526 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
7527 test -s conftest.one
&& test -s conftest.two
&&
7528 test -s conftest.dir
/conftest.one
&&
7529 test -s conftest.dir
/conftest.two
7531 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7544 rm -rf conftest.one conftest.two conftest.dir
7547 if test "${ac_cv_path_install+set}" = set; then
7548 INSTALL
=$ac_cv_path_install
7550 # As a last resort, use the slow shell script. Don't cache a
7551 # value for INSTALL within a source directory, because that will
7552 # break other packages using the cache if that directory is
7553 # removed, or if the value is a relative name.
7554 INSTALL
=$ac_install_sh
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7558 $as_echo "$INSTALL" >&6; }
7560 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7561 # It thinks the first close brace ends the variable substitution.
7562 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7564 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7566 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7569 $as_echo_n "checking whether ln -s works... " >&6; }
7571 if test "$LN_S" = "ln -s"; then
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7573 $as_echo "yes" >&6; }
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7576 $as_echo "no, using $LN_S" >&6; }
7579 if test -n "$ac_tool_prefix"; then
7580 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7581 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7583 $as_echo_n "checking for $ac_word... " >&6; }
7584 if ${ac_cv_prog_RANLIB+:} false
; then :
7585 $as_echo_n "(cached) " >&6
7587 if test -n "$RANLIB"; then
7588 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7594 test -z "$as_dir" && as_dir
=.
7595 for ac_exec_ext
in '' $ac_executable_extensions; do
7596 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7597 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7607 RANLIB
=$ac_cv_prog_RANLIB
7608 if test -n "$RANLIB"; then
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7610 $as_echo "$RANLIB" >&6; }
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7613 $as_echo "no" >&6; }
7618 if test -z "$ac_cv_prog_RANLIB"; then
7619 ac_ct_RANLIB
=$RANLIB
7620 # Extract the first word of "ranlib", so it can be a program name with args.
7621 set dummy ranlib
; ac_word
=$2
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7623 $as_echo_n "checking for $ac_word... " >&6; }
7624 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
7625 $as_echo_n "(cached) " >&6
7627 if test -n "$ac_ct_RANLIB"; then
7628 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7630 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7634 test -z "$as_dir" && as_dir
=.
7635 for ac_exec_ext
in '' $ac_executable_extensions; do
7636 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7637 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7647 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7648 if test -n "$ac_ct_RANLIB"; then
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7650 $as_echo "$ac_ct_RANLIB" >&6; }
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7653 $as_echo "no" >&6; }
7656 if test "x$ac_ct_RANLIB" = x
; then
7659 case $cross_compiling:$ac_tool_warned in
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7663 ac_tool_warned
=yes ;;
7665 RANLIB
=$ac_ct_RANLIB
7668 RANLIB
="$ac_cv_prog_RANLIB"
7671 for ac_prog
in 'bison -y' byacc
7673 # Extract the first word of "$ac_prog", so it can be a program name with args.
7674 set dummy
$ac_prog; ac_word
=$2
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7676 $as_echo_n "checking for $ac_word... " >&6; }
7677 if ${ac_cv_prog_YACC+:} false
; then :
7678 $as_echo_n "(cached) " >&6
7680 if test -n "$YACC"; then
7681 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
7683 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7687 test -z "$as_dir" && as_dir
=.
7688 for ac_exec_ext
in '' $ac_executable_extensions; do
7689 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7690 ac_cv_prog_YACC
="$ac_prog"
7691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7700 YACC
=$ac_cv_prog_YACC
7701 if test -n "$YACC"; then
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7703 $as_echo "$YACC" >&6; }
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7706 $as_echo "no" >&6; }
7710 test -n "$YACC" && break
7712 test -n "$YACC" || YACC
="yacc"
7715 if test -n "$ac_tool_prefix"; then
7716 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7717 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7719 $as_echo_n "checking for $ac_word... " >&6; }
7720 if ${ac_cv_prog_AR+:} false
; then :
7721 $as_echo_n "(cached) " >&6
7723 if test -n "$AR"; then
7724 ac_cv_prog_AR
="$AR" # Let the user override the test.
7726 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7730 test -z "$as_dir" && as_dir
=.
7731 for ac_exec_ext
in '' $ac_executable_extensions; do
7732 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7733 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7744 if test -n "$AR"; then
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7746 $as_echo "$AR" >&6; }
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7749 $as_echo "no" >&6; }
7754 if test -z "$ac_cv_prog_AR"; then
7756 # Extract the first word of "ar", so it can be a program name with args.
7757 set dummy
ar; ac_word
=$2
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7759 $as_echo_n "checking for $ac_word... " >&6; }
7760 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
7761 $as_echo_n "(cached) " >&6
7763 if test -n "$ac_ct_AR"; then
7764 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7766 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7770 test -z "$as_dir" && as_dir
=.
7771 for ac_exec_ext
in '' $ac_executable_extensions; do
7772 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7773 ac_cv_prog_ac_ct_AR
="ar"
7774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7783 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7784 if test -n "$ac_ct_AR"; then
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7786 $as_echo "$ac_ct_AR" >&6; }
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7789 $as_echo "no" >&6; }
7792 if test "x$ac_ct_AR" = x
; then
7795 case $cross_compiling:$ac_tool_warned in
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7799 ac_tool_warned
=yes ;;
7807 if test -n "$ac_tool_prefix"; then
7808 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7809 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7811 $as_echo_n "checking for $ac_word... " >&6; }
7812 if ${ac_cv_prog_DLLTOOL+:} false
; then :
7813 $as_echo_n "(cached) " >&6
7815 if test -n "$DLLTOOL"; then
7816 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
7818 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7822 test -z "$as_dir" && as_dir
=.
7823 for ac_exec_ext
in '' $ac_executable_extensions; do
7824 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7825 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
7826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7835 DLLTOOL
=$ac_cv_prog_DLLTOOL
7836 if test -n "$DLLTOOL"; then
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7838 $as_echo "$DLLTOOL" >&6; }
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7841 $as_echo "no" >&6; }
7846 if test -z "$ac_cv_prog_DLLTOOL"; then
7847 ac_ct_DLLTOOL
=$DLLTOOL
7848 # Extract the first word of "dlltool", so it can be a program name with args.
7849 set dummy dlltool
; ac_word
=$2
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7851 $as_echo_n "checking for $ac_word... " >&6; }
7852 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
7853 $as_echo_n "(cached) " >&6
7855 if test -n "$ac_ct_DLLTOOL"; then
7856 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
7858 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7862 test -z "$as_dir" && as_dir
=.
7863 for ac_exec_ext
in '' $ac_executable_extensions; do
7864 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7865 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
7866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7875 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
7876 if test -n "$ac_ct_DLLTOOL"; then
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7878 $as_echo "$ac_ct_DLLTOOL" >&6; }
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7881 $as_echo "no" >&6; }
7884 if test "x$ac_ct_DLLTOOL" = x
; then
7887 case $cross_compiling:$ac_tool_warned in
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7891 ac_tool_warned
=yes ;;
7893 DLLTOOL
=$ac_ct_DLLTOOL
7896 DLLTOOL
="$ac_cv_prog_DLLTOOL"
7899 if test -n "$ac_tool_prefix"; then
7900 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7901 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7903 $as_echo_n "checking for $ac_word... " >&6; }
7904 if ${ac_cv_prog_WINDRES+:} false
; then :
7905 $as_echo_n "(cached) " >&6
7907 if test -n "$WINDRES"; then
7908 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
7910 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7914 test -z "$as_dir" && as_dir
=.
7915 for ac_exec_ext
in '' $ac_executable_extensions; do
7916 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7917 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
7918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7927 WINDRES
=$ac_cv_prog_WINDRES
7928 if test -n "$WINDRES"; then
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7930 $as_echo "$WINDRES" >&6; }
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7933 $as_echo "no" >&6; }
7938 if test -z "$ac_cv_prog_WINDRES"; then
7939 ac_ct_WINDRES
=$WINDRES
7940 # Extract the first word of "windres", so it can be a program name with args.
7941 set dummy windres
; ac_word
=$2
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7943 $as_echo_n "checking for $ac_word... " >&6; }
7944 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
7945 $as_echo_n "(cached) " >&6
7947 if test -n "$ac_ct_WINDRES"; then
7948 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
7950 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7954 test -z "$as_dir" && as_dir
=.
7955 for ac_exec_ext
in '' $ac_executable_extensions; do
7956 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7957 ac_cv_prog_ac_ct_WINDRES
="windres"
7958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7967 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
7968 if test -n "$ac_ct_WINDRES"; then
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7970 $as_echo "$ac_ct_WINDRES" >&6; }
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7973 $as_echo "no" >&6; }
7976 if test "x$ac_ct_WINDRES" = x
; then
7979 case $cross_compiling:$ac_tool_warned in
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7983 ac_tool_warned
=yes ;;
7985 WINDRES
=$ac_ct_WINDRES
7988 WINDRES
="$ac_cv_prog_WINDRES"
7994 # Needed for GNU Hurd hosts.
7995 if test -n "$ac_tool_prefix"; then
7996 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7997 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7999 $as_echo_n "checking for $ac_word... " >&6; }
8000 if ${ac_cv_prog_MIG+:} false
; then :
8001 $as_echo_n "(cached) " >&6
8003 if test -n "$MIG"; then
8004 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
8006 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8010 test -z "$as_dir" && as_dir
=.
8011 for ac_exec_ext
in '' $ac_executable_extensions; do
8012 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8013 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
8014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8024 if test -n "$MIG"; then
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
8026 $as_echo "$MIG" >&6; }
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8029 $as_echo "no" >&6; }
8034 if test -z "$ac_cv_prog_MIG"; then
8036 # Extract the first word of "mig", so it can be a program name with args.
8037 set dummy mig
; ac_word
=$2
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8039 $as_echo_n "checking for $ac_word... " >&6; }
8040 if ${ac_cv_prog_ac_ct_MIG+:} false
; then :
8041 $as_echo_n "(cached) " >&6
8043 if test -n "$ac_ct_MIG"; then
8044 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
8046 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8050 test -z "$as_dir" && as_dir
=.
8051 for ac_exec_ext
in '' $ac_executable_extensions; do
8052 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8053 ac_cv_prog_ac_ct_MIG
="mig"
8054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8063 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
8064 if test -n "$ac_ct_MIG"; then
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
8066 $as_echo "$ac_ct_MIG" >&6; }
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8069 $as_echo "no" >&6; }
8072 if test "x$ac_ct_MIG" = x
; then
8075 case $cross_compiling:$ac_tool_warned in
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8079 ac_tool_warned
=yes ;;
8084 MIG
="$ac_cv_prog_MIG"
8087 if test x
"$MIG" = x
; then
8088 as_fn_error $?
"MIG not found but required for $host hosts" "$LINENO" 5
8093 # ---------------------- #
8094 # Checks for libraries. #
8095 # ---------------------- #
8097 # We might need to link with -lm; most simulators need it.
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
8099 $as_echo_n "checking for main in -lm... " >&6; }
8100 if ${ac_cv_lib_m_main+:} false
; then :
8101 $as_echo_n "(cached) " >&6
8103 ac_check_lib_save_LIBS
=$LIBS
8105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8106 /* end confdefs.h. */
8117 if ac_fn_c_try_link
"$LINENO"; then :
8118 ac_cv_lib_m_main
=yes
8122 rm -f core conftest.err conftest.
$ac_objext \
8123 conftest
$ac_exeext conftest.
$ac_ext
8124 LIBS
=$ac_check_lib_save_LIBS
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
8127 $as_echo "$ac_cv_lib_m_main" >&6; }
8128 if test "x$ac_cv_lib_m_main" = xyes
; then :
8129 cat >>confdefs.h
<<_ACEOF
8138 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
8140 $as_echo_n "checking for library containing gethostbyname... " >&6; }
8141 if ${ac_cv_search_gethostbyname+:} false
; then :
8142 $as_echo_n "(cached) " >&6
8144 ac_func_search_save_LIBS
=$LIBS
8145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8146 /* end confdefs.h. */
8148 /* Override any GCC internal prototype to avoid an error.
8149 Use char because int might match the return type of a GCC
8150 builtin and then its argument prototype would still apply. */
8154 char gethostbyname ();
8158 return gethostbyname ();
8163 for ac_lib
in '' nsl
; do
8164 if test -z "$ac_lib"; then
8165 ac_res
="none required"
8168 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8170 if ac_fn_c_try_link
"$LINENO"; then :
8171 ac_cv_search_gethostbyname
=$ac_res
8173 rm -f core conftest.err conftest.
$ac_objext \
8175 if ${ac_cv_search_gethostbyname+:} false
; then :
8179 if ${ac_cv_search_gethostbyname+:} false
; then :
8182 ac_cv_search_gethostbyname
=no
8185 LIBS
=$ac_func_search_save_LIBS
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
8188 $as_echo "$ac_cv_search_gethostbyname" >&6; }
8189 ac_res
=$ac_cv_search_gethostbyname
8190 if test "$ac_res" != no
; then :
8191 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8196 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
8198 $as_echo_n "checking for library containing socketpair... " >&6; }
8199 if ${ac_cv_search_socketpair+:} false
; then :
8200 $as_echo_n "(cached) " >&6
8202 ac_func_search_save_LIBS
=$LIBS
8203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8204 /* end confdefs.h. */
8206 /* Override any GCC internal prototype to avoid an error.
8207 Use char because int might match the return type of a GCC
8208 builtin and then its argument prototype would still apply. */
8216 return socketpair ();
8221 for ac_lib
in '' socket
; do
8222 if test -z "$ac_lib"; then
8223 ac_res
="none required"
8226 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8228 if ac_fn_c_try_link
"$LINENO"; then :
8229 ac_cv_search_socketpair
=$ac_res
8231 rm -f core conftest.err conftest.
$ac_objext \
8233 if ${ac_cv_search_socketpair+:} false
; then :
8237 if ${ac_cv_search_socketpair+:} false
; then :
8240 ac_cv_search_socketpair
=no
8243 LIBS
=$ac_func_search_save_LIBS
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
8246 $as_echo "$ac_cv_search_socketpair" >&6; }
8247 ac_res
=$ac_cv_search_socketpair
8248 if test "$ac_res" != no
; then :
8249 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8254 # Link in zlib if we can. This allows us to read compressed debug sections.
8256 # Use the system's zlib library.
8257 zlibdir
="-L\$(top_builddir)/../zlib"
8258 zlibinc
="-I\$(top_srcdir)/../zlib"
8260 # Check whether --with-system-zlib was given.
8261 if test "${with_system_zlib+set}" = set; then :
8262 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
8274 if test "X$prefix" = "XNONE"; then
8275 acl_final_prefix
="$ac_default_prefix"
8277 acl_final_prefix
="$prefix"
8279 if test "X$exec_prefix" = "XNONE"; then
8280 acl_final_exec_prefix
='${prefix}'
8282 acl_final_exec_prefix
="$exec_prefix"
8284 acl_save_prefix
="$prefix"
8285 prefix
="$acl_final_prefix"
8286 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8287 prefix
="$acl_save_prefix"
8290 # Check whether --with-gnu-ld was given.
8291 if test "${with_gnu_ld+set}" = set; then :
8292 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8297 # Prepare PATH_SEPARATOR.
8298 # The user is always right.
8299 if test "${PATH_SEPARATOR+set}" != set; then
8300 echo "#! /bin/sh" >conf$$.sh
8301 echo "exit 0" >>conf$$.sh
8303 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8311 if test "$GCC" = yes; then
8312 # Check if gcc -print-prog-name=ld gives a path.
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8314 $as_echo_n "checking for ld used by GCC... " >&6; }
8317 # gcc leaves a trailing carriage return which upsets mingw
8318 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8320 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8323 # Accept absolute paths.
8324 [\\/]* |
[A-Za-z
]:[\\/]*)
8325 re_direlt
='/[^/][^/]*/\.\./'
8326 # Canonicalize the path of ld
8327 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8328 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8329 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8331 test -z "$LD" && LD
="$ac_prog"
8334 # If it fails, then pretend we aren't using GCC.
8338 # If it is relative, then search for the first ld in PATH.
8342 elif test "$with_gnu_ld" = yes; then
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8344 $as_echo_n "checking for GNU ld... " >&6; }
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8347 $as_echo_n "checking for non-GNU ld... " >&6; }
8349 if ${acl_cv_path_LD+:} false
; then :
8350 $as_echo_n "(cached) " >&6
8352 if test -z "$LD"; then
8353 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8354 for ac_dir
in $PATH; do
8355 test -z "$ac_dir" && ac_dir
=.
8356 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8357 acl_cv_path_LD
="$ac_dir/$ac_prog"
8358 # Check to see if the program is GNU ld. I'd rather use --version,
8359 # but apparently some GNU ld's only accept -v.
8360 # Break only if it was the GNU/non-GNU ld that we prefer.
8361 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
8362 test "$with_gnu_ld" != no
&& break
8364 test "$with_gnu_ld" != yes && break
8370 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8374 LD
="$acl_cv_path_LD"
8375 if test -n "$LD"; then
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8377 $as_echo "$LD" >&6; }
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8380 $as_echo "no" >&6; }
8382 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8384 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8385 if ${acl_cv_prog_gnu_ld+:} false
; then :
8386 $as_echo_n "(cached) " >&6
8388 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8389 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8390 acl_cv_prog_gnu_ld
=yes
8392 acl_cv_prog_gnu_ld
=no
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8396 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8397 with_gnu_ld
=$acl_cv_prog_gnu_ld
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8402 $as_echo_n "checking for shared library run path origin... " >&6; }
8403 if ${acl_cv_rpath+:} false
; then :
8404 $as_echo_n "(cached) " >&6
8407 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8408 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8415 $as_echo "$acl_cv_rpath" >&6; }
8417 libext
="$acl_cv_libext"
8418 shlibext
="$acl_cv_shlibext"
8419 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8420 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8421 hardcode_direct
="$acl_cv_hardcode_direct"
8422 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8423 # Check whether --enable-rpath was given.
8424 if test "${enable_rpath+set}" = set; then :
8425 enableval
=$enable_rpath; :
8439 acl_save_prefix
="$prefix"
8440 prefix
="$acl_final_prefix"
8441 acl_save_exec_prefix
="$exec_prefix"
8442 exec_prefix
="$acl_final_exec_prefix"
8444 eval additional_includedir
=\"$includedir\"
8445 eval additional_libdir
=\"$libdir\"
8447 exec_prefix
="$acl_save_exec_prefix"
8448 prefix
="$acl_save_prefix"
8451 # Check whether --with-libiconv-prefix was given.
8452 if test "${with_libiconv_prefix+set}" = set; then :
8453 withval
=$with_libiconv_prefix;
8454 if test "X$withval" = "Xno"; then
8457 if test "X$withval" = "X"; then
8459 acl_save_prefix
="$prefix"
8460 prefix
="$acl_final_prefix"
8461 acl_save_exec_prefix
="$exec_prefix"
8462 exec_prefix
="$acl_final_exec_prefix"
8464 eval additional_includedir
=\"$includedir\"
8465 eval additional_libdir
=\"$libdir\"
8467 exec_prefix
="$acl_save_exec_prefix"
8468 prefix
="$acl_save_prefix"
8471 additional_includedir
="$withval/include"
8472 additional_libdir
="$withval/lib"
8479 # Check whether --with-libiconv-type was given.
8480 if test "${with_libiconv_type+set}" = set; then :
8481 withval
=$with_libiconv_type; with_libiconv_type
=$withval
8483 with_libiconv_type
=auto
8486 lib_type
=`eval echo \$with_libiconv_type`
8493 names_already_handled
=
8494 names_next_round
='iconv '
8495 while test -n "$names_next_round"; do
8496 names_this_round
="$names_next_round"
8498 for name
in $names_this_round; do
8500 for n
in $names_already_handled; do
8501 if test "$n" = "$name"; then
8506 if test -z "$already_handled"; then
8507 names_already_handled
="$names_already_handled $name"
8508 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8509 eval value
=\"\
$HAVE_LIB$uppername\"
8510 if test -n "$value"; then
8511 if test "$value" = yes; then
8512 eval value
=\"\
$LIB$uppername\"
8513 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
8514 eval value
=\"\
$LTLIB$uppername\"
8515 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
8524 if test $use_additional = yes; then
8525 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8526 found_dir
="$additional_libdir"
8527 found_so
="$additional_libdir/lib$name.$shlibext"
8528 if test -f "$additional_libdir/lib$name.la"; then
8529 found_la
="$additional_libdir/lib$name.la"
8531 elif test x
$lib_type != xshared
; then
8532 if test -f "$additional_libdir/lib$name.$libext"; then
8533 found_dir
="$additional_libdir"
8534 found_a
="$additional_libdir/lib$name.$libext"
8535 if test -f "$additional_libdir/lib$name.la"; then
8536 found_la
="$additional_libdir/lib$name.la"
8541 if test "X$found_dir" = "X"; then
8542 for x
in $LDFLAGS $LTLIBICONV; do
8544 acl_save_prefix
="$prefix"
8545 prefix
="$acl_final_prefix"
8546 acl_save_exec_prefix
="$exec_prefix"
8547 exec_prefix
="$acl_final_exec_prefix"
8549 exec_prefix
="$acl_save_exec_prefix"
8550 prefix
="$acl_save_prefix"
8554 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8555 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8557 found_so
="$dir/lib$name.$shlibext"
8558 if test -f "$dir/lib$name.la"; then
8559 found_la
="$dir/lib$name.la"
8561 elif test x
$lib_type != xshared
; then
8562 if test -f "$dir/lib$name.$libext"; then
8564 found_a
="$dir/lib$name.$libext"
8565 if test -f "$dir/lib$name.la"; then
8566 found_la
="$dir/lib$name.la"
8572 if test "X$found_dir" != "X"; then
8577 if test "X$found_dir" != "X"; then
8578 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8579 if test "X$found_so" != "X"; then
8580 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8581 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8584 for x
in $ltrpathdirs; do
8585 if test "X$x" = "X$found_dir"; then
8590 if test -z "$haveit"; then
8591 ltrpathdirs
="$ltrpathdirs $found_dir"
8593 if test "$hardcode_direct" = yes; then
8594 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8596 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8597 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8599 for x
in $rpathdirs; do
8600 if test "X$x" = "X$found_dir"; then
8605 if test -z "$haveit"; then
8606 rpathdirs
="$rpathdirs $found_dir"
8610 for x
in $LDFLAGS $LIBICONV; do
8612 acl_save_prefix
="$prefix"
8613 prefix
="$acl_final_prefix"
8614 acl_save_exec_prefix
="$exec_prefix"
8615 exec_prefix
="$acl_final_exec_prefix"
8617 exec_prefix
="$acl_save_exec_prefix"
8618 prefix
="$acl_save_prefix"
8620 if test "X$x" = "X-L$found_dir"; then
8625 if test -z "$haveit"; then
8626 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8628 if test "$hardcode_minus_L" != no
; then
8629 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8631 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8637 if test "X$found_a" != "X"; then
8638 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
8640 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8643 additional_includedir
=
8644 case "$found_dir" in
8646 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8647 additional_includedir
="$basedir/include"
8650 if test "X$additional_includedir" != "X"; then
8651 if test "X$additional_includedir" != "X/usr/include"; then
8653 if test "X$additional_includedir" = "X/usr/local/include"; then
8654 if test -n "$GCC"; then
8656 linux
*) haveit
=yes;;
8660 if test -z "$haveit"; then
8661 for x
in $CPPFLAGS $INCICONV; do
8663 acl_save_prefix
="$prefix"
8664 prefix
="$acl_final_prefix"
8665 acl_save_exec_prefix
="$exec_prefix"
8666 exec_prefix
="$acl_final_exec_prefix"
8668 exec_prefix
="$acl_save_exec_prefix"
8669 prefix
="$acl_save_prefix"
8671 if test "X$x" = "X-I$additional_includedir"; then
8676 if test -z "$haveit"; then
8677 if test -d "$additional_includedir"; then
8678 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8684 if test -n "$found_la"; then
8685 save_libdir
="$libdir"
8687 */* |
*\\*) .
"$found_la" ;;
8688 *) .
"./$found_la" ;;
8690 libdir
="$save_libdir"
8691 for dep
in $dependency_libs; do
8694 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8695 if test "X$additional_libdir" != "X/usr/lib"; then
8697 if test "X$additional_libdir" = "X/usr/local/lib"; then
8698 if test -n "$GCC"; then
8700 linux
*) haveit
=yes;;
8704 if test -z "$haveit"; then
8706 for x
in $LDFLAGS $LIBICONV; do
8708 acl_save_prefix
="$prefix"
8709 prefix
="$acl_final_prefix"
8710 acl_save_exec_prefix
="$exec_prefix"
8711 exec_prefix
="$acl_final_exec_prefix"
8713 exec_prefix
="$acl_save_exec_prefix"
8714 prefix
="$acl_save_prefix"
8716 if test "X$x" = "X-L$additional_libdir"; then
8721 if test -z "$haveit"; then
8722 if test -d "$additional_libdir"; then
8723 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8727 for x
in $LDFLAGS $LTLIBICONV; do
8729 acl_save_prefix
="$prefix"
8730 prefix
="$acl_final_prefix"
8731 acl_save_exec_prefix
="$exec_prefix"
8732 exec_prefix
="$acl_final_exec_prefix"
8734 exec_prefix
="$acl_save_exec_prefix"
8735 prefix
="$acl_save_prefix"
8737 if test "X$x" = "X-L$additional_libdir"; then
8742 if test -z "$haveit"; then
8743 if test -d "$additional_libdir"; then
8744 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8751 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8752 if test "$enable_rpath" != no
; then
8754 for x
in $rpathdirs; do
8755 if test "X$x" = "X$dir"; then
8760 if test -z "$haveit"; then
8761 rpathdirs
="$rpathdirs $dir"
8764 for x
in $ltrpathdirs; do
8765 if test "X$x" = "X$dir"; then
8770 if test -z "$haveit"; then
8771 ltrpathdirs
="$ltrpathdirs $dir"
8776 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8779 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8782 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
8783 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8789 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
8790 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8791 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8793 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
8794 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
8801 if test "X$rpathdirs" != "X"; then
8802 if test -n "$hardcode_libdir_separator"; then
8804 for found_dir
in $rpathdirs; do
8805 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8807 acl_save_libdir
="$libdir"
8809 eval flag
=\"$hardcode_libdir_flag_spec\"
8810 libdir
="$acl_save_libdir"
8811 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8813 for found_dir
in $rpathdirs; do
8814 acl_save_libdir
="$libdir"
8816 eval flag
=\"$hardcode_libdir_flag_spec\"
8817 libdir
="$acl_save_libdir"
8818 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8822 if test "X$ltrpathdirs" != "X"; then
8823 for found_dir
in $ltrpathdirs; do
8824 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8835 $as_echo_n "checking for iconv... " >&6; }
8836 if ${am_cv_func_iconv+:} false
; then :
8837 $as_echo_n "(cached) " >&6
8840 am_cv_func_iconv
="no, consider installing GNU libiconv"
8842 am_save_CPPFLAGS
="$CPPFLAGS"
8843 CPPFLAGS
="$CPPFLAGS $INCICONV"
8844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8845 /* end confdefs.h. */
8851 iconv_t cd = iconv_open("","");
8852 iconv(cd,NULL,NULL,NULL,NULL);
8858 if ac_fn_c_try_link
"$LINENO"; then :
8859 am_cv_func_iconv
=yes
8861 rm -f core conftest.err conftest.
$ac_objext \
8862 conftest
$ac_exeext conftest.
$ac_ext
8863 CPPFLAGS
="$am_save_CPPFLAGS"
8865 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
8866 for _libs
in .libs _libs
; do
8867 am_save_CPPFLAGS
="$CPPFLAGS"
8868 am_save_LIBS
="$LIBS"
8869 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
8870 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
8871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8872 /* end confdefs.h. */
8878 iconv_t cd = iconv_open("","");
8879 iconv(cd,NULL,NULL,NULL,NULL);
8885 if ac_fn_c_try_link
"$LINENO"; then :
8886 INCICONV
="-I../libiconv/include"
8887 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
8888 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
8890 am_cv_func_iconv
=yes
8892 rm -f core conftest.err conftest.
$ac_objext \
8893 conftest
$ac_exeext conftest.
$ac_ext
8894 CPPFLAGS
="$am_save_CPPFLAGS"
8895 LIBS
="$am_save_LIBS"
8896 if test "$am_cv_func_iconv" = "yes"; then
8902 if test "$am_cv_func_iconv" != yes; then
8903 am_save_CPPFLAGS
="$CPPFLAGS"
8904 am_save_LIBS
="$LIBS"
8905 CPPFLAGS
="$CPPFLAGS $INCICONV"
8906 LIBS
="$LIBS $LIBICONV"
8907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8908 /* end confdefs.h. */
8914 iconv_t cd = iconv_open("","");
8915 iconv(cd,NULL,NULL,NULL,NULL);
8921 if ac_fn_c_try_link
"$LINENO"; then :
8923 am_cv_func_iconv
=yes
8925 rm -f core conftest.err conftest.
$ac_objext \
8926 conftest
$ac_exeext conftest.
$ac_ext
8927 CPPFLAGS
="$am_save_CPPFLAGS"
8928 LIBS
="$am_save_LIBS"
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8933 $as_echo "$am_cv_func_iconv" >&6; }
8934 if test "$am_cv_func_iconv" = yes; then
8936 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8939 if test "$am_cv_lib_iconv" = yes; then
8941 for element
in $INCICONV; do
8943 for x
in $CPPFLAGS; do
8945 acl_save_prefix
="$prefix"
8946 prefix
="$acl_final_prefix"
8947 acl_save_exec_prefix
="$exec_prefix"
8948 exec_prefix
="$acl_final_exec_prefix"
8950 exec_prefix
="$acl_save_exec_prefix"
8951 prefix
="$acl_save_prefix"
8953 if test "X$x" = "X$element"; then
8958 if test -z "$haveit"; then
8959 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8964 $as_echo_n "checking how to link with libiconv... " >&6; }
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8966 $as_echo "$LIBICONV" >&6; }
8974 if test "$am_cv_func_iconv" = yes; then
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8976 $as_echo_n "checking for iconv declaration... " >&6; }
8977 if ${am_cv_proto_iconv+:} false
; then :
8978 $as_echo_n "(cached) " >&6
8981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8982 /* end confdefs.h. */
8990 #if defined(__STDC__) || defined(__cplusplus)
8991 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9004 if ac_fn_c_try_compile
"$LINENO"; then :
9005 am_cv_proto_iconv_arg1
=""
9007 am_cv_proto_iconv_arg1
="const"
9009 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9010 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);"
9013 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9015 }$am_cv_proto_iconv" >&5
9017 }$am_cv_proto_iconv" >&6; }
9019 cat >>confdefs.h
<<_ACEOF
9020 #define ICONV_CONST $am_cv_proto_iconv_arg1
9026 # GDB may fork/exec the iconv program to get the list of supported character
9027 # sets. Allow the user to specify where to find it.
9028 # There are several factors affecting the choice of option name:
9029 # - There is already --with-libiconv-prefix but we can't use it, it specifies
9030 # the build-time location of libiconv files.
9031 # - The program we need to find is iconv, which comes with glibc. The user
9032 # doesn't necessarily have libiconv installed. Therefore naming this
9033 # --with-libiconv-foo feels wrong.
9034 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
9035 # defined to work on directories not files (though it really doesn't know
9037 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
9038 # with --with-libiconv-prefix.
9039 # Putting these together is why the option name is --with-iconv-bin.
9042 # Check whether --with-iconv-bin was given.
9043 if test "${with_iconv_bin+set}" = set; then :
9044 withval
=$with_iconv_bin; iconv_bin
="${withval}"
9046 cat >>confdefs.h
<<_ACEOF
9047 #define ICONV_BIN "${iconv_bin}"
9051 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9052 if test "x$prefix" = xNONE
; then
9053 test_prefix
=/usr
/local
9058 test_prefix
=$exec_prefix
9061 case ${iconv_bin} in
9062 "${test_prefix}"|
"${test_prefix}/"*|\
9063 '${exec_prefix}'|
'${exec_prefix}/'*)
9068 cat >>confdefs.h
<<_ACEOF
9069 #define ICONV_BIN_RELOCATABLE $value
9077 # For the TUI, we need enhanced curses functionality.
9078 if test x
"$enable_tui" != xno
; then
9083 if test x
"$prefer_curses" = xyes
; then
9084 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9085 # curses library because the latter might not provide all the
9086 # functionality we need. However, this leads to problems on systems
9087 # where the linker searches /usr/local/lib, but the compiler doesn't
9088 # search /usr/local/include, if ncurses is installed in /usr/local. A
9089 # default installation of ncurses on alpha*-dec-osf* will lead to such
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
9092 $as_echo_n "checking for library containing waddstr... " >&6; }
9093 if ${ac_cv_search_waddstr+:} false
; then :
9094 $as_echo_n "(cached) " >&6
9096 ac_func_search_save_LIBS
=$LIBS
9097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9098 /* end confdefs.h. */
9100 /* Override any GCC internal prototype to avoid an error.
9101 Use char because int might match the return type of a GCC
9102 builtin and then its argument prototype would still apply. */
9115 for ac_lib
in '' ncursesw ncurses cursesX curses
; do
9116 if test -z "$ac_lib"; then
9117 ac_res
="none required"
9120 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9122 if ac_fn_c_try_link
"$LINENO"; then :
9123 ac_cv_search_waddstr
=$ac_res
9125 rm -f core conftest.err conftest.
$ac_objext \
9127 if ${ac_cv_search_waddstr+:} false
; then :
9131 if ${ac_cv_search_waddstr+:} false
; then :
9134 ac_cv_search_waddstr
=no
9137 LIBS
=$ac_func_search_save_LIBS
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
9140 $as_echo "$ac_cv_search_waddstr" >&6; }
9141 ac_res
=$ac_cv_search_waddstr
9142 if test "$ac_res" != no
; then :
9143 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9148 if test "$ac_cv_search_waddstr" != no
; then
9153 # Check whether we should enable the TUI, but only do so if we really
9155 if test x
"$enable_tui" != xno
; then
9156 if test -d "$srcdir/tui"; then
9157 if test "$curses_found" != no
; then
9158 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
9159 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
9160 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9161 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
9163 if test x
"$enable_tui" = xyes
; then
9164 as_fn_error $?
"no enhanced curses library found; disable TUI" "$LINENO" 5
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
9167 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9173 # Since GDB uses Readline, we need termcap functionality. In many
9174 # cases this will be provided by the curses library, but some systems
9175 # have a separate termcap library, or no curses library at all.
9179 if test -d "$srcdir/libtermcap"; then
9180 LIBS
="../libtermcap/libtermcap.a $LIBS"
9181 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
9184 ac_cv_search_tgetent
="none required"
9188 # These are the libraries checked by Readline.
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9190 $as_echo_n "checking for library containing tgetent... " >&6; }
9191 if ${ac_cv_search_tgetent+:} false
; then :
9192 $as_echo_n "(cached) " >&6
9194 ac_func_search_save_LIBS
=$LIBS
9195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9196 /* end confdefs.h. */
9198 /* Override any GCC internal prototype to avoid an error.
9199 Use char because int might match the return type of a GCC
9200 builtin and then its argument prototype would still apply. */
9213 for ac_lib
in '' termcap tinfow tinfo curses ncursesw ncurses
; do
9214 if test -z "$ac_lib"; then
9215 ac_res
="none required"
9218 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9220 if ac_fn_c_try_link
"$LINENO"; then :
9221 ac_cv_search_tgetent
=$ac_res
9223 rm -f core conftest.err conftest.
$ac_objext \
9225 if ${ac_cv_search_tgetent+:} false
; then :
9229 if ${ac_cv_search_tgetent+:} false
; then :
9232 ac_cv_search_tgetent
=no
9235 LIBS
=$ac_func_search_save_LIBS
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9238 $as_echo "$ac_cv_search_tgetent" >&6; }
9239 ac_res
=$ac_cv_search_tgetent
9240 if test "$ac_res" != no
; then :
9241 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9246 if test "$ac_cv_search_tgetent" = no
; then
9247 CONFIG_OBS
="$CONFIG_OBS stub-termcap.o"
9251 # Check whether --with-system-readline was given.
9252 if test "${with_system_readline+set}" = set; then :
9253 withval
=$with_system_readline;
9257 if test "$with_system_readline" = yes; then
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system readline is new enough" >&5
9259 $as_echo_n "checking whether system readline is new enough... " >&6; }
9260 if ${gdb_cv_readline_ok+:} false
; then :
9261 $as_echo_n "(cached) " >&6
9263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9264 /* end confdefs.h. */
9266 #include <readline/readline.h>
9270 #if RL_VERSION_MAJOR < 7
9271 # error "readline version 7 required"
9277 if ac_fn_c_try_compile
"$LINENO"; then :
9278 gdb_cv_readline_ok
=yes
9280 gdb_cv_readline_ok
=no
9282 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_readline_ok" >&5
9285 $as_echo "$gdb_cv_readline_ok" >&6; }
9286 if test "$gdb_cv_readline_ok" != yes; then
9287 as_fn_error $?
"system readline is not new enough" "$LINENO" 5
9293 READLINE_TEXI_INCFLAG
=
9295 READLINE
='$(READLINE_DIR)/libreadline.a'
9296 READLINE_DEPS
='$(READLINE)'
9297 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
9298 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
9305 # Generate jit-reader.h
9307 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
9310 # The cast to long int works around a bug in the HP C Compiler
9311 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9312 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9313 # This bug is HP SR number 8606223364.
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
9315 $as_echo_n "checking size of unsigned long long... " >&6; }
9316 if ${ac_cv_sizeof_unsigned_long_long+:} false
; then :
9317 $as_echo_n "(cached) " >&6
9319 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
9322 if test "$ac_cv_type_unsigned_long_long" = yes; then
9323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9325 as_fn_error
77 "cannot compute sizeof (unsigned long long)
9326 See \`config.log' for more details" "$LINENO" 5; }
9328 ac_cv_sizeof_unsigned_long_long
=0
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
9334 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
9338 cat >>confdefs.h
<<_ACEOF
9339 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
9343 # The cast to long int works around a bug in the HP C Compiler
9344 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9345 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9346 # This bug is HP SR number 8606223364.
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
9348 $as_echo_n "checking size of unsigned long... " >&6; }
9349 if ${ac_cv_sizeof_unsigned_long+:} false
; then :
9350 $as_echo_n "(cached) " >&6
9352 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
9355 if test "$ac_cv_type_unsigned_long" = yes; then
9356 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9358 as_fn_error
77 "cannot compute sizeof (unsigned long)
9359 See \`config.log' for more details" "$LINENO" 5; }
9361 ac_cv_sizeof_unsigned_long
=0
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
9367 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
9371 cat >>confdefs.h
<<_ACEOF
9372 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9376 # The cast to long int works around a bug in the HP C Compiler
9377 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9378 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9379 # This bug is HP SR number 8606223364.
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
9381 $as_echo_n "checking size of unsigned __int128... " >&6; }
9382 if ${ac_cv_sizeof_unsigned___int128+:} false
; then :
9383 $as_echo_n "(cached) " >&6
9385 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
9388 if test "$ac_cv_type_unsigned___int128" = yes; then
9389 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9391 as_fn_error
77 "cannot compute sizeof (unsigned __int128)
9392 See \`config.log' for more details" "$LINENO" 5; }
9394 ac_cv_sizeof_unsigned___int128
=0
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
9400 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
9404 cat >>confdefs.h
<<_ACEOF
9405 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
9410 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9411 TARGET_PTR
="unsigned long"
9412 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9413 TARGET_PTR
="unsigned long long"
9414 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
9415 TARGET_PTR
="unsigned __int128"
9417 TARGET_PTR
="unsigned long"
9421 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9425 $as_echo_n "checking for library containing dlopen... " >&6; }
9426 if ${ac_cv_search_dlopen+:} false
; then :
9427 $as_echo_n "(cached) " >&6
9429 ac_func_search_save_LIBS
=$LIBS
9430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9431 /* end confdefs.h. */
9433 /* Override any GCC internal prototype to avoid an error.
9434 Use char because int might match the return type of a GCC
9435 builtin and then its argument prototype would still apply. */
9448 for ac_lib
in '' dl
; do
9449 if test -z "$ac_lib"; then
9450 ac_res
="none required"
9453 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9455 if ac_fn_c_try_link
"$LINENO"; then :
9456 ac_cv_search_dlopen
=$ac_res
9458 rm -f core conftest.err conftest.
$ac_objext \
9460 if ${ac_cv_search_dlopen+:} false
; then :
9464 if ${ac_cv_search_dlopen+:} false
; then :
9467 ac_cv_search_dlopen
=no
9470 LIBS
=$ac_func_search_save_LIBS
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9473 $as_echo "$ac_cv_search_dlopen" >&6; }
9474 ac_res
=$ac_cv_search_dlopen
9475 if test "$ac_res" != no
; then :
9476 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9483 # Check whether --with-jit-reader-dir was given.
9484 if test "${with_jit_reader_dir+set}" = set; then :
9485 withval
=$with_jit_reader_dir;
9486 JIT_READER_DIR
=$withval
9488 JIT_READER_DIR
=${libdir}/gdb
9492 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9493 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9494 ac_define_dir
=`eval echo $JIT_READER_DIR`
9495 ac_define_dir
=`eval echo $ac_define_dir`
9497 cat >>confdefs.h
<<_ACEOF
9498 #define JIT_READER_DIR "$ac_define_dir"
9504 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9505 if test "x$prefix" = xNONE
; then
9506 test_prefix
=/usr
/local
9511 test_prefix
=$exec_prefix
9514 case ${ac_define_dir} in
9515 "${test_prefix}"|
"${test_prefix}/"*|\
9516 '${exec_prefix}'|
'${exec_prefix}/'*)
9521 cat >>confdefs.h
<<_ACEOF
9522 #define JIT_READER_DIR_RELOCATABLE $value
9529 # Check whether --with-expat was given.
9530 if test "${with_expat+set}" = set; then :
9531 withval
=$with_expat;
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9537 $as_echo_n "checking whether to use expat... " >&6; }
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9539 $as_echo "$with_expat" >&6; }
9541 if test "${with_expat}" = no
; then
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9543 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9556 acl_save_prefix
="$prefix"
9557 prefix
="$acl_final_prefix"
9558 acl_save_exec_prefix
="$exec_prefix"
9559 exec_prefix
="$acl_final_exec_prefix"
9561 eval additional_includedir
=\"$includedir\"
9562 eval additional_libdir
=\"$libdir\"
9564 exec_prefix
="$acl_save_exec_prefix"
9565 prefix
="$acl_save_prefix"
9568 # Check whether --with-libexpat-prefix was given.
9569 if test "${with_libexpat_prefix+set}" = set; then :
9570 withval
=$with_libexpat_prefix;
9571 if test "X$withval" = "Xno"; then
9574 if test "X$withval" = "X"; then
9576 acl_save_prefix
="$prefix"
9577 prefix
="$acl_final_prefix"
9578 acl_save_exec_prefix
="$exec_prefix"
9579 exec_prefix
="$acl_final_exec_prefix"
9581 eval additional_includedir
=\"$includedir\"
9582 eval additional_libdir
=\"$libdir\"
9584 exec_prefix
="$acl_save_exec_prefix"
9585 prefix
="$acl_save_prefix"
9588 additional_includedir
="$withval/include"
9589 additional_libdir
="$withval/lib"
9596 # Check whether --with-libexpat-type was given.
9597 if test "${with_libexpat_type+set}" = set; then :
9598 withval
=$with_libexpat_type; with_libexpat_type
=$withval
9600 with_libexpat_type
=auto
9603 lib_type
=`eval echo \$with_libexpat_type`
9610 names_already_handled
=
9611 names_next_round
='expat '
9612 while test -n "$names_next_round"; do
9613 names_this_round
="$names_next_round"
9615 for name
in $names_this_round; do
9617 for n
in $names_already_handled; do
9618 if test "$n" = "$name"; then
9623 if test -z "$already_handled"; then
9624 names_already_handled
="$names_already_handled $name"
9625 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9626 eval value
=\"\
$HAVE_LIB$uppername\"
9627 if test -n "$value"; then
9628 if test "$value" = yes; then
9629 eval value
=\"\
$LIB$uppername\"
9630 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
9631 eval value
=\"\
$LTLIB$uppername\"
9632 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
9641 if test $use_additional = yes; then
9642 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9643 found_dir
="$additional_libdir"
9644 found_so
="$additional_libdir/lib$name.$shlibext"
9645 if test -f "$additional_libdir/lib$name.la"; then
9646 found_la
="$additional_libdir/lib$name.la"
9648 elif test x
$lib_type != xshared
; then
9649 if test -f "$additional_libdir/lib$name.$libext"; then
9650 found_dir
="$additional_libdir"
9651 found_a
="$additional_libdir/lib$name.$libext"
9652 if test -f "$additional_libdir/lib$name.la"; then
9653 found_la
="$additional_libdir/lib$name.la"
9658 if test "X$found_dir" = "X"; then
9659 for x
in $LDFLAGS $LTLIBEXPAT; do
9661 acl_save_prefix
="$prefix"
9662 prefix
="$acl_final_prefix"
9663 acl_save_exec_prefix
="$exec_prefix"
9664 exec_prefix
="$acl_final_exec_prefix"
9666 exec_prefix
="$acl_save_exec_prefix"
9667 prefix
="$acl_save_prefix"
9671 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9672 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9674 found_so
="$dir/lib$name.$shlibext"
9675 if test -f "$dir/lib$name.la"; then
9676 found_la
="$dir/lib$name.la"
9678 elif test x
$lib_type != xshared
; then
9679 if test -f "$dir/lib$name.$libext"; then
9681 found_a
="$dir/lib$name.$libext"
9682 if test -f "$dir/lib$name.la"; then
9683 found_la
="$dir/lib$name.la"
9689 if test "X$found_dir" != "X"; then
9694 if test "X$found_dir" != "X"; then
9695 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
9696 if test "X$found_so" != "X"; then
9697 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9698 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9701 for x
in $ltrpathdirs; do
9702 if test "X$x" = "X$found_dir"; then
9707 if test -z "$haveit"; then
9708 ltrpathdirs
="$ltrpathdirs $found_dir"
9710 if test "$hardcode_direct" = yes; then
9711 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9713 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9714 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9716 for x
in $rpathdirs; do
9717 if test "X$x" = "X$found_dir"; then
9722 if test -z "$haveit"; then
9723 rpathdirs
="$rpathdirs $found_dir"
9727 for x
in $LDFLAGS $LIBEXPAT; do
9729 acl_save_prefix
="$prefix"
9730 prefix
="$acl_final_prefix"
9731 acl_save_exec_prefix
="$exec_prefix"
9732 exec_prefix
="$acl_final_exec_prefix"
9734 exec_prefix
="$acl_save_exec_prefix"
9735 prefix
="$acl_save_prefix"
9737 if test "X$x" = "X-L$found_dir"; then
9742 if test -z "$haveit"; then
9743 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
9745 if test "$hardcode_minus_L" != no
; then
9746 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9748 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9754 if test "X$found_a" != "X"; then
9755 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
9757 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
9760 additional_includedir
=
9761 case "$found_dir" in
9763 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9764 additional_includedir
="$basedir/include"
9767 if test "X$additional_includedir" != "X"; then
9768 if test "X$additional_includedir" != "X/usr/include"; then
9770 if test "X$additional_includedir" = "X/usr/local/include"; then
9771 if test -n "$GCC"; then
9773 linux
*) haveit
=yes;;
9777 if test -z "$haveit"; then
9778 for x
in $CPPFLAGS $INCEXPAT; do
9780 acl_save_prefix
="$prefix"
9781 prefix
="$acl_final_prefix"
9782 acl_save_exec_prefix
="$exec_prefix"
9783 exec_prefix
="$acl_final_exec_prefix"
9785 exec_prefix
="$acl_save_exec_prefix"
9786 prefix
="$acl_save_prefix"
9788 if test "X$x" = "X-I$additional_includedir"; then
9793 if test -z "$haveit"; then
9794 if test -d "$additional_includedir"; then
9795 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
9801 if test -n "$found_la"; then
9802 save_libdir
="$libdir"
9804 */* |
*\\*) .
"$found_la" ;;
9805 *) .
"./$found_la" ;;
9807 libdir
="$save_libdir"
9808 for dep
in $dependency_libs; do
9811 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9812 if test "X$additional_libdir" != "X/usr/lib"; then
9814 if test "X$additional_libdir" = "X/usr/local/lib"; then
9815 if test -n "$GCC"; then
9817 linux
*) haveit
=yes;;
9821 if test -z "$haveit"; then
9823 for x
in $LDFLAGS $LIBEXPAT; do
9825 acl_save_prefix
="$prefix"
9826 prefix
="$acl_final_prefix"
9827 acl_save_exec_prefix
="$exec_prefix"
9828 exec_prefix
="$acl_final_exec_prefix"
9830 exec_prefix
="$acl_save_exec_prefix"
9831 prefix
="$acl_save_prefix"
9833 if test "X$x" = "X-L$additional_libdir"; then
9838 if test -z "$haveit"; then
9839 if test -d "$additional_libdir"; then
9840 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
9844 for x
in $LDFLAGS $LTLIBEXPAT; do
9846 acl_save_prefix
="$prefix"
9847 prefix
="$acl_final_prefix"
9848 acl_save_exec_prefix
="$exec_prefix"
9849 exec_prefix
="$acl_final_exec_prefix"
9851 exec_prefix
="$acl_save_exec_prefix"
9852 prefix
="$acl_save_prefix"
9854 if test "X$x" = "X-L$additional_libdir"; then
9859 if test -z "$haveit"; then
9860 if test -d "$additional_libdir"; then
9861 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
9868 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9869 if test "$enable_rpath" != no
; then
9871 for x
in $rpathdirs; do
9872 if test "X$x" = "X$dir"; then
9877 if test -z "$haveit"; then
9878 rpathdirs
="$rpathdirs $dir"
9881 for x
in $ltrpathdirs; do
9882 if test "X$x" = "X$dir"; then
9887 if test -z "$haveit"; then
9888 ltrpathdirs
="$ltrpathdirs $dir"
9893 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9896 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9899 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
9900 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
9906 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
9907 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9908 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
9910 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l:lib$name.$libext"
9911 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l:lib$name.$libext"
9918 if test "X$rpathdirs" != "X"; then
9919 if test -n "$hardcode_libdir_separator"; then
9921 for found_dir
in $rpathdirs; do
9922 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9924 acl_save_libdir
="$libdir"
9926 eval flag
=\"$hardcode_libdir_flag_spec\"
9927 libdir
="$acl_save_libdir"
9928 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9930 for found_dir
in $rpathdirs; do
9931 acl_save_libdir
="$libdir"
9933 eval flag
=\"$hardcode_libdir_flag_spec\"
9934 libdir
="$acl_save_libdir"
9935 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9939 if test "X$ltrpathdirs" != "X"; then
9940 for found_dir
in $ltrpathdirs; do
9941 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9946 ac_save_CPPFLAGS
="$CPPFLAGS"
9948 for element
in $INCEXPAT; do
9950 for x
in $CPPFLAGS; do
9952 acl_save_prefix
="$prefix"
9953 prefix
="$acl_final_prefix"
9954 acl_save_exec_prefix
="$exec_prefix"
9955 exec_prefix
="$acl_final_exec_prefix"
9957 exec_prefix
="$acl_save_exec_prefix"
9958 prefix
="$acl_save_prefix"
9960 if test "X$x" = "X$element"; then
9965 if test -z "$haveit"; then
9966 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9972 $as_echo_n "checking for libexpat... " >&6; }
9973 if ${ac_cv_libexpat+:} false
; then :
9974 $as_echo_n "(cached) " >&6
9977 ac_save_LIBS
="$LIBS"
9978 LIBS
="$LIBS $LIBEXPAT"
9979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9980 /* end confdefs.h. */
9985 XML_Parser p = XML_ParserCreate (0);
9990 if ac_fn_c_try_link
"$LINENO"; then :
9995 rm -f core conftest.err conftest.
$ac_objext \
9996 conftest
$ac_exeext conftest.
$ac_ext
9997 LIBS
="$ac_save_LIBS"
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
10001 $as_echo "$ac_cv_libexpat" >&6; }
10002 if test "$ac_cv_libexpat" = yes; then
10005 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
10008 $as_echo_n "checking how to link with libexpat... " >&6; }
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
10010 $as_echo "$LIBEXPAT" >&6; }
10013 CPPFLAGS
="$ac_save_CPPFLAGS"
10023 if test "$HAVE_LIBEXPAT" != yes; then
10024 if test "$with_expat" = yes; then
10025 as_fn_error $?
"expat is missing or unusable" "$LINENO" 5
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
10028 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
10032 LIBS
="$LIBS $LIBEXPAT"
10033 for ac_func
in XML_StopParser
10035 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
10036 if test "x$ac_cv_func_XML_StopParser" = xyes
; then :
10037 cat >>confdefs.h
<<_ACEOF
10038 #define HAVE_XML_STOPPARSER 1
10049 # Check whether --with-mpfr was given.
10050 if test "${with_mpfr+set}" = set; then :
10051 withval
=$with_mpfr;
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5
10057 $as_echo_n "checking whether to use MPFR... " >&6; }
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5
10059 $as_echo "$with_mpfr" >&6; }
10061 if test "${with_mpfr}" = no
; then
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5
10063 $as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;}
10076 acl_save_prefix
="$prefix"
10077 prefix
="$acl_final_prefix"
10078 acl_save_exec_prefix
="$exec_prefix"
10079 exec_prefix
="$acl_final_exec_prefix"
10081 eval additional_includedir
=\"$includedir\"
10082 eval additional_libdir
=\"$libdir\"
10084 exec_prefix
="$acl_save_exec_prefix"
10085 prefix
="$acl_save_prefix"
10088 # Check whether --with-libmpfr-prefix was given.
10089 if test "${with_libmpfr_prefix+set}" = set; then :
10090 withval
=$with_libmpfr_prefix;
10091 if test "X$withval" = "Xno"; then
10094 if test "X$withval" = "X"; then
10096 acl_save_prefix
="$prefix"
10097 prefix
="$acl_final_prefix"
10098 acl_save_exec_prefix
="$exec_prefix"
10099 exec_prefix
="$acl_final_exec_prefix"
10101 eval additional_includedir
=\"$includedir\"
10102 eval additional_libdir
=\"$libdir\"
10104 exec_prefix
="$acl_save_exec_prefix"
10105 prefix
="$acl_save_prefix"
10108 additional_includedir
="$withval/include"
10109 additional_libdir
="$withval/lib"
10116 # Check whether --with-libmpfr-type was given.
10117 if test "${with_libmpfr_type+set}" = set; then :
10118 withval
=$with_libmpfr_type; with_libmpfr_type
=$withval
10120 with_libmpfr_type
=auto
10123 lib_type
=`eval echo \$with_libmpfr_type`
10130 names_already_handled
=
10131 names_next_round
='mpfr gmp'
10132 while test -n "$names_next_round"; do
10133 names_this_round
="$names_next_round"
10135 for name
in $names_this_round; do
10137 for n
in $names_already_handled; do
10138 if test "$n" = "$name"; then
10139 already_handled
=yes
10143 if test -z "$already_handled"; then
10144 names_already_handled
="$names_already_handled $name"
10145 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10146 eval value
=\"\
$HAVE_LIB$uppername\"
10147 if test -n "$value"; then
10148 if test "$value" = yes; then
10149 eval value
=\"\
$LIB$uppername\"
10150 test -z "$value" || LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$value"
10151 eval value
=\"\
$LTLIB$uppername\"
10152 test -z "$value" || LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$value"
10161 if test $use_additional = yes; then
10162 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10163 found_dir
="$additional_libdir"
10164 found_so
="$additional_libdir/lib$name.$shlibext"
10165 if test -f "$additional_libdir/lib$name.la"; then
10166 found_la
="$additional_libdir/lib$name.la"
10168 elif test x
$lib_type != xshared
; then
10169 if test -f "$additional_libdir/lib$name.$libext"; then
10170 found_dir
="$additional_libdir"
10171 found_a
="$additional_libdir/lib$name.$libext"
10172 if test -f "$additional_libdir/lib$name.la"; then
10173 found_la
="$additional_libdir/lib$name.la"
10178 if test "X$found_dir" = "X"; then
10179 for x
in $LDFLAGS $LTLIBMPFR; do
10181 acl_save_prefix
="$prefix"
10182 prefix
="$acl_final_prefix"
10183 acl_save_exec_prefix
="$exec_prefix"
10184 exec_prefix
="$acl_final_exec_prefix"
10186 exec_prefix
="$acl_save_exec_prefix"
10187 prefix
="$acl_save_prefix"
10191 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10192 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10194 found_so
="$dir/lib$name.$shlibext"
10195 if test -f "$dir/lib$name.la"; then
10196 found_la
="$dir/lib$name.la"
10198 elif test x
$lib_type != xshared
; then
10199 if test -f "$dir/lib$name.$libext"; then
10201 found_a
="$dir/lib$name.$libext"
10202 if test -f "$dir/lib$name.la"; then
10203 found_la
="$dir/lib$name.la"
10209 if test "X$found_dir" != "X"; then
10214 if test "X$found_dir" != "X"; then
10215 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$found_dir -l$name"
10216 if test "X$found_so" != "X"; then
10217 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10218 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10221 for x
in $ltrpathdirs; do
10222 if test "X$x" = "X$found_dir"; then
10227 if test -z "$haveit"; then
10228 ltrpathdirs
="$ltrpathdirs $found_dir"
10230 if test "$hardcode_direct" = yes; then
10231 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10233 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10234 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10236 for x
in $rpathdirs; do
10237 if test "X$x" = "X$found_dir"; then
10242 if test -z "$haveit"; then
10243 rpathdirs
="$rpathdirs $found_dir"
10247 for x
in $LDFLAGS $LIBMPFR; do
10249 acl_save_prefix
="$prefix"
10250 prefix
="$acl_final_prefix"
10251 acl_save_exec_prefix
="$exec_prefix"
10252 exec_prefix
="$acl_final_exec_prefix"
10254 exec_prefix
="$acl_save_exec_prefix"
10255 prefix
="$acl_save_prefix"
10257 if test "X$x" = "X-L$found_dir"; then
10262 if test -z "$haveit"; then
10263 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir"
10265 if test "$hardcode_minus_L" != no
; then
10266 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10268 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10274 if test "X$found_a" != "X"; then
10275 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_a"
10277 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir -l$name"
10280 additional_includedir
=
10281 case "$found_dir" in
10283 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10284 additional_includedir
="$basedir/include"
10287 if test "X$additional_includedir" != "X"; then
10288 if test "X$additional_includedir" != "X/usr/include"; then
10290 if test "X$additional_includedir" = "X/usr/local/include"; then
10291 if test -n "$GCC"; then
10293 linux
*) haveit
=yes;;
10297 if test -z "$haveit"; then
10298 for x
in $CPPFLAGS $INCMPFR; do
10300 acl_save_prefix
="$prefix"
10301 prefix
="$acl_final_prefix"
10302 acl_save_exec_prefix
="$exec_prefix"
10303 exec_prefix
="$acl_final_exec_prefix"
10305 exec_prefix
="$acl_save_exec_prefix"
10306 prefix
="$acl_save_prefix"
10308 if test "X$x" = "X-I$additional_includedir"; then
10313 if test -z "$haveit"; then
10314 if test -d "$additional_includedir"; then
10315 INCMPFR
="${INCMPFR}${INCMPFR:+ }-I$additional_includedir"
10321 if test -n "$found_la"; then
10322 save_libdir
="$libdir"
10323 case "$found_la" in
10324 */* |
*\\*) .
"$found_la" ;;
10325 *) .
"./$found_la" ;;
10327 libdir
="$save_libdir"
10328 for dep
in $dependency_libs; do
10331 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10332 if test "X$additional_libdir" != "X/usr/lib"; then
10334 if test "X$additional_libdir" = "X/usr/local/lib"; then
10335 if test -n "$GCC"; then
10337 linux
*) haveit
=yes;;
10341 if test -z "$haveit"; then
10343 for x
in $LDFLAGS $LIBMPFR; do
10345 acl_save_prefix
="$prefix"
10346 prefix
="$acl_final_prefix"
10347 acl_save_exec_prefix
="$exec_prefix"
10348 exec_prefix
="$acl_final_exec_prefix"
10350 exec_prefix
="$acl_save_exec_prefix"
10351 prefix
="$acl_save_prefix"
10353 if test "X$x" = "X-L$additional_libdir"; then
10358 if test -z "$haveit"; then
10359 if test -d "$additional_libdir"; then
10360 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$additional_libdir"
10364 for x
in $LDFLAGS $LTLIBMPFR; do
10366 acl_save_prefix
="$prefix"
10367 prefix
="$acl_final_prefix"
10368 acl_save_exec_prefix
="$exec_prefix"
10369 exec_prefix
="$acl_final_exec_prefix"
10371 exec_prefix
="$acl_save_exec_prefix"
10372 prefix
="$acl_save_prefix"
10374 if test "X$x" = "X-L$additional_libdir"; then
10379 if test -z "$haveit"; then
10380 if test -d "$additional_libdir"; then
10381 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$additional_libdir"
10388 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10389 if test "$enable_rpath" != no
; then
10391 for x
in $rpathdirs; do
10392 if test "X$x" = "X$dir"; then
10397 if test -z "$haveit"; then
10398 rpathdirs
="$rpathdirs $dir"
10401 for x
in $ltrpathdirs; do
10402 if test "X$x" = "X$dir"; then
10407 if test -z "$haveit"; then
10408 ltrpathdirs
="$ltrpathdirs $dir"
10413 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10416 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10419 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$dep"
10420 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$dep"
10426 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
10427 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10428 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l$name"
10430 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l:lib$name.$libext"
10431 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l:lib$name.$libext"
10438 if test "X$rpathdirs" != "X"; then
10439 if test -n "$hardcode_libdir_separator"; then
10441 for found_dir
in $rpathdirs; do
10442 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10444 acl_save_libdir
="$libdir"
10446 eval flag
=\"$hardcode_libdir_flag_spec\"
10447 libdir
="$acl_save_libdir"
10448 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10450 for found_dir
in $rpathdirs; do
10451 acl_save_libdir
="$libdir"
10452 libdir
="$found_dir"
10453 eval flag
=\"$hardcode_libdir_flag_spec\"
10454 libdir
="$acl_save_libdir"
10455 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10459 if test "X$ltrpathdirs" != "X"; then
10460 for found_dir
in $ltrpathdirs; do
10461 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-R$found_dir"
10466 ac_save_CPPFLAGS
="$CPPFLAGS"
10468 for element
in $INCMPFR; do
10470 for x
in $CPPFLAGS; do
10472 acl_save_prefix
="$prefix"
10473 prefix
="$acl_final_prefix"
10474 acl_save_exec_prefix
="$exec_prefix"
10475 exec_prefix
="$acl_final_exec_prefix"
10477 exec_prefix
="$acl_save_exec_prefix"
10478 prefix
="$acl_save_prefix"
10480 if test "X$x" = "X$element"; then
10485 if test -z "$haveit"; then
10486 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpfr" >&5
10492 $as_echo_n "checking for libmpfr... " >&6; }
10493 if ${ac_cv_libmpfr+:} false
; then :
10494 $as_echo_n "(cached) " >&6
10497 ac_save_LIBS
="$LIBS"
10498 LIBS
="$LIBS $LIBMPFR"
10499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10500 /* end confdefs.h. */
10505 mpfr_exp_t exp; mpfr_t x;
10506 mpfr_frexp (&exp, x, x, MPFR_RNDN);
10511 if ac_fn_c_try_link
"$LINENO"; then :
10516 rm -f core conftest.err conftest.
$ac_objext \
10517 conftest
$ac_exeext conftest.
$ac_ext
10518 LIBS
="$ac_save_LIBS"
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmpfr" >&5
10522 $as_echo "$ac_cv_libmpfr" >&6; }
10523 if test "$ac_cv_libmpfr" = yes; then
10526 $as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libmpfr" >&5
10529 $as_echo_n "checking how to link with libmpfr... " >&6; }
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPFR" >&5
10531 $as_echo "$LIBMPFR" >&6; }
10534 CPPFLAGS
="$ac_save_CPPFLAGS"
10544 if test "$HAVE_LIBMPFR" != yes; then
10545 if test "$with_mpfr" = yes; then
10546 as_fn_error $?
"MPFR is missing or unusable" "$LINENO" 5
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR is missing or unusable; some features may be unavailable." >&5
10549 $as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;}
10554 # --------------------- #
10555 # Check for libpython. #
10556 # --------------------- #
10563 # Check whether --with-python was given.
10564 if test "${with_python+set}" = set; then :
10565 withval
=$with_python;
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10571 $as_echo_n "checking whether to use python... " >&6; }
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10573 $as_echo "$with_python" >&6; }
10575 if test "${with_python}" = no
; then
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10577 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10580 case "${with_python}" in
10582 if test -d "${with_python}"; then
10583 # Assume the python binary is ${with_python}/bin/python.
10584 python_prog
="${with_python}/bin/python"
10586 # If python does not exit ${with_python}/bin, then try in
10587 # ${with_python}. On Windows/MinGW, this is where the Python
10589 if test ! -x "${python_prog}"; then
10590 python_prog
="${with_python}/python"
10593 if test ! -x "${python_prog}"; then
10594 # Fall back to gdb 7.0/7.1 behaviour.
10595 python_prog
=missing
10596 python_prefix
=${with_python}
10598 elif test -x "${with_python}"; then
10599 # While we can't run python compiled for $host (unless host == build),
10600 # the user could write a script that provides the needed information,
10601 # so we support that.
10602 python_prog
=${with_python}
10605 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
10609 # Disallow --with-python=foo/bar.
10610 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
10613 # The user has either specified auto, yes, or the name of the python
10614 # program assumed to be in $PATH.
10616 case "${with_python}" in
10618 if test "${build}" = "${host}"; then
10619 # Extract the first word of "python", so it can be a program name with args.
10620 set dummy python
; ac_word
=$2
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10622 $as_echo_n "checking for $ac_word... " >&6; }
10623 if ${ac_cv_path_python_prog_path+:} false
; then :
10624 $as_echo_n "(cached) " >&6
10626 case $python_prog_path in
10628 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10631 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10632 for as_dir
in $PATH
10635 test -z "$as_dir" && as_dir
=.
10636 for ac_exec_ext
in '' $ac_executable_extensions; do
10637 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10638 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10646 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10650 python_prog_path
=$ac_cv_path_python_prog_path
10651 if test -n "$python_prog_path"; then
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10653 $as_echo "$python_prog_path" >&6; }
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10656 $as_echo "no" >&6; }
10660 if test "${python_prog_path}" = missing
; then
10661 python_prog
=missing
10663 python_prog
=${python_prog_path}
10666 # Not much we can do except assume the cross-compiler will find the
10668 python_prog
=missing
10672 # While we can't run python compiled for $host (unless host == build),
10673 # the user could write a script that provides the needed information,
10674 # so we support that.
10675 python_prog
="${with_python}"
10676 # Extract the first word of "${python_prog}", so it can be a program name with args.
10677 set dummy
${python_prog}; ac_word
=$2
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10679 $as_echo_n "checking for $ac_word... " >&6; }
10680 if ${ac_cv_path_python_prog_path+:} false
; then :
10681 $as_echo_n "(cached) " >&6
10683 case $python_prog_path in
10685 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10688 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10689 for as_dir
in $PATH
10692 test -z "$as_dir" && as_dir
=.
10693 for ac_exec_ext
in '' $ac_executable_extensions; do
10694 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10695 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10703 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10707 python_prog_path
=$ac_cv_path_python_prog_path
10708 if test -n "$python_prog_path"; then
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10710 $as_echo "$python_prog_path" >&6; }
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10713 $as_echo "no" >&6; }
10717 if test "${python_prog_path}" = missing
; then
10718 as_fn_error $?
"unable to find python program ${python_prog}" "$LINENO" 5
10724 if test "${python_prog}" != missing
; then
10725 # We have a python program to use, but it may be too old.
10726 # Don't flag an error for --with-python=auto (the default).
10727 have_python_config
=yes
10728 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
10729 if test $?
!= 0; then
10730 have_python_config
=failed
10731 if test "${with_python}" != auto
; then
10732 as_fn_error $?
"failure running python-config --includes" "$LINENO" 5
10735 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10736 if test $?
!= 0; then
10737 have_python_config
=failed
10738 if test "${with_python}" != auto
; then
10739 as_fn_error $?
"failure running python-config --ldflags" "$LINENO" 5
10742 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10743 if test $?
!= 0; then
10744 have_python_config
=failed
10745 if test "${with_python}" != auto
; then
10746 as_fn_error $?
"failure running python-config --exec-prefix" "$LINENO" 5
10750 # We do not have a python executable we can use to determine where
10751 # to find the Python headers and libs. We cannot guess the include
10752 # path from the python_prefix either, because that include path
10753 # depends on the Python version. So, there is nothing much we can
10754 # do except assume that the compiler will be able to find those files.
10757 have_python_config
=no
10760 # If we have python-config, only try the configuration it provides.
10761 # Otherwise fallback on the old way of trying different versions of
10765 if test "${have_python_config}" = yes; then
10768 new_CPPFLAGS
=${python_includes}
10769 new_LIBS
=${python_libs}
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
10771 $as_echo_n "checking for python... " >&6; }
10772 save_CPPFLAGS
=$CPPFLAGS
10774 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10775 LIBS
="$new_LIBS $LIBS"
10776 found_usable_python
=no
10777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10778 /* end confdefs.h. */
10779 #include "Python.h"
10788 if ac_fn_c_try_link
"$LINENO"; then :
10790 found_usable_python
=yes
10791 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10792 PYTHON_LIBS
=$new_LIBS
10794 rm -f core conftest.err conftest.
$ac_objext \
10795 conftest
$ac_exeext conftest.
$ac_ext
10796 CPPFLAGS
=$save_CPPFLAGS
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10799 $as_echo "${found_usable_python}" >&6; }
10801 elif test "${have_python_config}" != failed
; then
10802 if test "${have_libpython}" = no
; then
10805 new_CPPFLAGS
=${python_includes}
10806 new_LIBS
="-lpython2.7 ${python_libs}"
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
10808 $as_echo_n "checking for python... " >&6; }
10809 save_CPPFLAGS
=$CPPFLAGS
10811 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10812 LIBS
="$new_LIBS $LIBS"
10813 found_usable_python
=no
10814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10815 /* end confdefs.h. */
10816 #include "Python.h"
10825 if ac_fn_c_try_link
"$LINENO"; then :
10827 found_usable_python
=yes
10828 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10829 PYTHON_LIBS
=$new_LIBS
10831 rm -f core conftest.err conftest.
$ac_objext \
10832 conftest
$ac_exeext conftest.
$ac_ext
10833 CPPFLAGS
=$save_CPPFLAGS
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10836 $as_echo "${found_usable_python}" >&6; }
10839 if test "${have_libpython}" = no
; then
10842 new_CPPFLAGS
=${python_includes}
10843 new_LIBS
="-lpython2.6 ${python_libs}"
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
10845 $as_echo_n "checking for python... " >&6; }
10846 save_CPPFLAGS
=$CPPFLAGS
10848 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10849 LIBS
="$new_LIBS $LIBS"
10850 found_usable_python
=no
10851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10852 /* end confdefs.h. */
10853 #include "Python.h"
10862 if ac_fn_c_try_link
"$LINENO"; then :
10864 found_usable_python
=yes
10865 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10866 PYTHON_LIBS
=$new_LIBS
10868 rm -f core conftest.err conftest.
$ac_objext \
10869 conftest
$ac_exeext conftest.
$ac_ext
10870 CPPFLAGS
=$save_CPPFLAGS
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10873 $as_echo "${found_usable_python}" >&6; }
10878 if test "${have_libpython}" = no
; then
10879 case "${with_python}" in
10881 as_fn_error $?
"python is missing or unusable" "$LINENO" 5
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10885 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10888 as_fn_error $?
"no usable python found at ${with_python}" "$LINENO" 5
10892 if test -n "${python_prefix}"; then
10894 cat >>confdefs.h
<<_ACEOF
10895 #define WITH_PYTHON_PATH "${python_prefix}"
10899 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
10900 if test "x$prefix" = xNONE
; then
10901 test_prefix
=/usr
/local
10903 test_prefix
=$prefix
10906 test_prefix
=$exec_prefix
10909 case ${python_prefix} in
10910 "${test_prefix}"|
"${test_prefix}/"*|\
10911 '${exec_prefix}'|
'${exec_prefix}/'*)
10916 cat >>confdefs.h
<<_ACEOF
10917 #define PYTHON_PATH_RELOCATABLE $value
10926 # Check whether --with-python-libdir was given.
10927 if test "${with_python_libdir+set}" = set; then :
10928 withval
=$with_python_libdir;
10931 # If no python libdir is specified then select one based on
10932 # python's prefix path.
10933 if test -n "${python_prefix}"; then
10934 with_python_libdir
=${python_prefix}/lib
10940 if test "${have_libpython}" != no
; then
10942 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10944 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10945 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10946 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
10947 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
10948 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
10950 if test -n "${with_python_libdir}"; then
10952 cat >>confdefs.h
<<_ACEOF
10953 #define WITH_PYTHON_LIBDIR "${with_python_libdir}"
10957 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
10958 if test "x$prefix" = xNONE
; then
10959 test_prefix
=/usr
/local
10961 test_prefix
=$prefix
10964 test_prefix
=$exec_prefix
10967 case ${with_python_libdir} in
10968 "${test_prefix}"|
"${test_prefix}/"*|\
10969 '${exec_prefix}'|
'${exec_prefix}/'*)
10974 cat >>confdefs.h
<<_ACEOF
10975 #define PYTHON_LIBDIR_RELOCATABLE $value
10981 # Flags needed to compile Python code (taken from python-config --cflags).
10982 # We cannot call python-config directly because it will output whatever was
10983 # used when compiling the Python interpreter itself, including flags which
10984 # would make the python-related objects be compiled differently from the
10985 # rest of GDB (e.g., -O2 and -fPIC).
10986 if test "${GCC}" = yes; then
10987 tentative_python_cflags
="-fno-strict-aliasing -fwrapv"
10988 # Python headers recommend -DNDEBUG, but it's unclear if that just
10989 # refers to building Python itself. In release mode, though, it
10990 # doesn't hurt for the Python code in gdb to follow.
10991 $development || tentative_python_cflags
="$tentative_python_cflags -DNDEBUG"
10994 if test "x${tentative_python_cflags}" != x
; then
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10996 $as_echo_n "checking compiler flags for python code... " >&6; }
10997 for flag
in ${tentative_python_cflags}; do
10998 # Check that the compiler accepts it
10999 saved_CFLAGS
="$CFLAGS"
11000 CFLAGS
="$CFLAGS $flag"
11001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11002 /* end confdefs.h. */
11012 if ac_fn_c_try_compile
"$LINENO"; then :
11013 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
11015 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11016 CFLAGS
="$saved_CFLAGS"
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
11019 $as_echo "${PYTHON_CFLAGS}" >&6; }
11022 # On x64 Windows, Python's include headers, and pyconfig.h in
11023 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
11024 # version of Windows. Unfortunately, MS_WIN64 is only defined if
11025 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
11026 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
11027 # The issue was reported to the Python community, but still isn't
11028 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
11030 case "$gdb_host" in
11032 if test "${GCC}" = yes; then
11033 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
11038 # Even if Python support is not compiled in, we need to have this file
11039 # included so that the "python" command, et.al., still exists.
11040 CONFIG_OBS
="$CONFIG_OBS python/python.o"
11041 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
11044 # Work around Python http://bugs.python.org/issue10112. See also
11045 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
11046 # no effect. Note that the only test after this that uses Python is
11047 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
11048 # run without -export-dynamic too.
11049 PYTHON_LIBS
=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
11054 if test "${have_libpython}" != no
; then
11056 HAVE_PYTHON_FALSE
='#'
11058 HAVE_PYTHON_TRUE
='#'
11063 # -------------------- #
11064 # Check for libguile. #
11065 # -------------------- #
11072 # Check whether --with-guile was given.
11073 if test "${with_guile+set}" = set; then :
11074 withval
=$with_guile;
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
11080 $as_echo_n "checking whether to use guile... " >&6; }
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
11082 $as_echo "$with_guile" >&6; }
11084 # Extract the first word of "pkg-config", so it can be a program name with args.
11085 set dummy pkg-config
; ac_word
=$2
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11087 $as_echo_n "checking for $ac_word... " >&6; }
11088 if ${ac_cv_path_pkg_config_prog_path+:} false
; then :
11089 $as_echo_n "(cached) " >&6
11091 case $pkg_config_prog_path in
11093 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
11096 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11097 for as_dir
in $PATH
11100 test -z "$as_dir" && as_dir
=.
11101 for ac_exec_ext
in '' $ac_executable_extensions; do
11102 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11103 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
11104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11111 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
11115 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
11116 if test -n "$pkg_config_prog_path"; then
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
11118 $as_echo "$pkg_config_prog_path" >&6; }
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11121 $as_echo "no" >&6; }
11126 try_guile_versions
="guile-3.0 guile-2.2 guile-2.0"
11128 case "${with_guile}" in
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
11131 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
11134 if test "${pkg_config_prog_path}" = "missing"; then
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
11136 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
11139 pkg_config
=${pkg_config_prog_path}
11140 guile_version_list
=${try_guile_versions}
11143 found_usable_guile
=checking
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11145 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11146 for guile_version
in ${guile_version_list}; do
11147 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11148 if test $?
!= 0; then
11151 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11152 if test $?
!= 0; then
11153 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11155 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11156 if test $?
!= 0; then
11157 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11159 found_usable_guile
=${guile_version}
11162 if test "${found_usable_guile}" = "checking"; then
11163 if test "${flag_errors}" = "yes"; then
11164 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11166 found_usable_guile
=no
11169 if test "${found_usable_guile}" != no
; then
11170 save_CPPFLAGS
=$CPPFLAGS
11172 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11173 LIBS
="$LIBS $new_LIBS"
11174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11175 /* end confdefs.h. */
11176 #include "libguile.h"
11185 if ac_fn_c_try_link
"$LINENO"; then :
11187 GUILE_CPPFLAGS
=$new_CPPFLAGS
11188 GUILE_LIBS
=$new_LIBS
11190 found_usable_guile
=no
11192 rm -f core conftest.err conftest.
$ac_objext \
11193 conftest
$ac_exeext conftest.
$ac_ext
11194 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11195 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11197 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11202 CPPFLAGS
=$save_CPPFLAGS
11204 if test "${found_usable_guile}" = no
; then
11205 if test "${flag_errors}" = yes; then
11206 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11208 as_fn_error $?
"linking guile version ${guile_version} test program failed
11209 See \`config.log' for more details" "$LINENO" 5; }
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11214 $as_echo "${found_usable_guile}" >&6; }
11219 if test "${pkg_config_prog_path}" = "missing"; then
11220 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11223 pkg_config
=${pkg_config_prog_path}
11224 guile_version_list
=${try_guile_versions}
11227 found_usable_guile
=checking
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11229 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11230 for guile_version
in ${guile_version_list}; do
11231 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11232 if test $?
!= 0; then
11235 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11236 if test $?
!= 0; then
11237 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11239 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11240 if test $?
!= 0; then
11241 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11243 found_usable_guile
=${guile_version}
11246 if test "${found_usable_guile}" = "checking"; then
11247 if test "${flag_errors}" = "yes"; then
11248 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11250 found_usable_guile
=no
11253 if test "${found_usable_guile}" != no
; then
11254 save_CPPFLAGS
=$CPPFLAGS
11256 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11257 LIBS
="$LIBS $new_LIBS"
11258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11259 /* end confdefs.h. */
11260 #include "libguile.h"
11269 if ac_fn_c_try_link
"$LINENO"; then :
11271 GUILE_CPPFLAGS
=$new_CPPFLAGS
11272 GUILE_LIBS
=$new_LIBS
11274 found_usable_guile
=no
11276 rm -f core conftest.err conftest.
$ac_objext \
11277 conftest
$ac_exeext conftest.
$ac_ext
11278 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11279 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11281 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11286 CPPFLAGS
=$save_CPPFLAGS
11288 if test "${found_usable_guile}" = no
; then
11289 if test "${flag_errors}" = yes; then
11290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11292 as_fn_error $?
"linking guile version ${guile_version} test program failed
11293 See \`config.log' for more details" "$LINENO" 5; }
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11298 $as_echo "${found_usable_guile}" >&6; }
11302 if test -x "${with_guile}"; then
11304 pkg_config
=${with_guile}
11305 guile_version_list
=${try_guile_versions}
11308 found_usable_guile
=checking
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11310 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11311 for guile_version
in ${guile_version_list}; do
11312 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11313 if test $?
!= 0; then
11316 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11317 if test $?
!= 0; then
11318 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11320 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11321 if test $?
!= 0; then
11322 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11324 found_usable_guile
=${guile_version}
11327 if test "${found_usable_guile}" = "checking"; then
11328 if test "${flag_errors}" = "yes"; then
11329 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11331 found_usable_guile
=no
11334 if test "${found_usable_guile}" != no
; then
11335 save_CPPFLAGS
=$CPPFLAGS
11337 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11338 LIBS
="$LIBS $new_LIBS"
11339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11340 /* end confdefs.h. */
11341 #include "libguile.h"
11350 if ac_fn_c_try_link
"$LINENO"; then :
11352 GUILE_CPPFLAGS
=$new_CPPFLAGS
11353 GUILE_LIBS
=$new_LIBS
11355 found_usable_guile
=no
11357 rm -f core conftest.err conftest.
$ac_objext \
11358 conftest
$ac_exeext conftest.
$ac_ext
11359 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11360 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11362 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11367 CPPFLAGS
=$save_CPPFLAGS
11369 if test "${found_usable_guile}" = no
; then
11370 if test "${flag_errors}" = yes; then
11371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11373 as_fn_error $?
"linking guile version ${guile_version} test program failed
11374 See \`config.log' for more details" "$LINENO" 5; }
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11379 $as_echo "${found_usable_guile}" >&6; }
11382 as_fn_error $?
"Guile config program not executable: ${with_guile}" "$LINENO" 5
11386 # Disallow --with=guile="" and --with-guile=foo/bar.
11387 as_fn_error $?
"invalid value for --with-guile" "$LINENO" 5
11390 # A space separate list of guile versions to try, in order.
11391 if test "${pkg_config_prog_path}" = "missing"; then
11392 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11395 pkg_config
=${pkg_config_prog_path}
11396 guile_version_list
=${with_guile}
11399 found_usable_guile
=checking
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11401 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11402 for guile_version
in ${guile_version_list}; do
11403 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11404 if test $?
!= 0; then
11407 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11408 if test $?
!= 0; then
11409 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11411 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11412 if test $?
!= 0; then
11413 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11415 found_usable_guile
=${guile_version}
11418 if test "${found_usable_guile}" = "checking"; then
11419 if test "${flag_errors}" = "yes"; then
11420 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11422 found_usable_guile
=no
11425 if test "${found_usable_guile}" != no
; then
11426 save_CPPFLAGS
=$CPPFLAGS
11428 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11429 LIBS
="$LIBS $new_LIBS"
11430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11431 /* end confdefs.h. */
11432 #include "libguile.h"
11441 if ac_fn_c_try_link
"$LINENO"; then :
11443 GUILE_CPPFLAGS
=$new_CPPFLAGS
11444 GUILE_LIBS
=$new_LIBS
11446 found_usable_guile
=no
11448 rm -f core conftest.err conftest.
$ac_objext \
11449 conftest
$ac_exeext conftest.
$ac_ext
11450 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11451 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11453 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11458 CPPFLAGS
=$save_CPPFLAGS
11460 if test "${found_usable_guile}" = no
; then
11461 if test "${flag_errors}" = yes; then
11462 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11464 as_fn_error $?
"linking guile version ${guile_version} test program failed
11465 See \`config.log' for more details" "$LINENO" 5; }
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11470 $as_echo "${found_usable_guile}" >&6; }
11475 if test "${have_libguile}" != no
; then
11476 case "${with_guile}" in
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11480 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11481 if ${ac_cv_guild_program_name+:} false
; then :
11482 $as_echo_n "(cached) " >&6
11484 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
11486 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11487 # the 'guild' and 'bindir' variables. In that case, try to guess
11488 # what the program name is, at the risk of getting it wrong if
11489 # Guile was configured with '--program-suffix' or similar.
11490 if test "x$ac_cv_guild_program_name" = "x"; then
11491 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
11492 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11497 $as_echo "$ac_cv_guild_program_name" >&6; }
11499 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11500 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11503 GUILD
="$ac_cv_guild_program_name"
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11510 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11511 if ${ac_cv_guild_program_name+:} false
; then :
11512 $as_echo_n "(cached) " >&6
11514 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
11516 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11517 # the 'guild' and 'bindir' variables. In that case, try to guess
11518 # what the program name is, at the risk of getting it wrong if
11519 # Guile was configured with '--program-suffix' or similar.
11520 if test "x$ac_cv_guild_program_name" = "x"; then
11521 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
11522 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11527 $as_echo "$ac_cv_guild_program_name" >&6; }
11529 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11530 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11533 GUILD
="$ac_cv_guild_program_name"
11540 if test "$cross_compiling" = no
; then
11543 GUILD_TARGET_FLAG
="--target=$host"
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
11550 $as_echo_n "checking whether guild supports this host... " >&6; }
11551 if ${ac_cv_guild_ok+:} false
; then :
11552 $as_echo_n "(cached) " >&6
11554 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
11555 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
11562 $as_echo "$ac_cv_guild_ok" >&6; }
11564 if test "$ac_cv_guild_ok" = no
; then
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
11567 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
11571 if test "${have_libguile}" != no
; then
11573 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
11575 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
11576 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
11577 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
11578 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
11579 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
11582 save_CPPFLAGS
="$CPPFLAGS"
11584 CPPFLAGS
="$GUILE_CPPFLAGS"
11585 for ac_func
in scm_new_smob
11587 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
11588 if test "x$ac_cv_func_scm_new_smob" = xyes
; then :
11589 cat >>confdefs.h
<<_ACEOF
11590 #define HAVE_SCM_NEW_SMOB 1
11597 CPPFLAGS
="$save_CPPFLAGS"
11599 # Even if Guile support is not compiled in, we need to have these files
11601 CONFIG_OBS
="$CONFIG_OBS guile/guile.o"
11602 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
11606 if test "${have_libguile}" != no
; then
11608 HAVE_GUILE_FALSE
='#'
11610 HAVE_GUILE_TRUE
='#'
11615 # ---------------------------- #
11616 # Check for source highlight. #
11617 # ---------------------------- #
11622 # Check whether --enable-source-highlight was given.
11623 if test "${enable_source_highlight+set}" = set; then :
11624 enableval
=$enable_source_highlight; case "${enableval}" in
11625 yes) enable_source_highlight
=yes ;;
11626 no
) enable_source_highlight
=no
;;
11627 *) as_fn_error $?
"bad value ${enableval} for source-highlight option" "$LINENO" 5 ;;
11630 enable_source_highlight
=auto
11634 if test "${enable_source_highlight}" != "no"; then
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
11636 $as_echo_n "checking for the source-highlight library... " >&6; }
11637 if test "${pkg_config_prog_path}" = "missing"; then
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
11639 $as_echo "no - pkg-config not found" >&6; }
11640 if test "${enable_source_highlight}" = "yes"; then
11641 as_fn_error $?
"pkg-config was not found in your system" "$LINENO" 5
11646 as_fn_error $?
"source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
11650 if ${pkg_config_prog_path} --exists source-highlight
; then
11651 SRCHIGH_CFLAGS
=`${pkg_config_prog_path} --cflags source-highlight`
11652 SRCHIGH_LIBS
=`${pkg_config_prog_path} --libs source-highlight`
11654 $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11657 $as_echo "yes" >&6; }
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11660 $as_echo "no" >&6; }
11661 if test "${enable_source_highlight}" = "yes"; then
11662 as_fn_error $?
"source-highlight was not found in your system" "$LINENO" 5
11670 # ------------------------- #
11671 # Checks for header files. #
11672 # ------------------------- #
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11675 $as_echo_n "checking for ANSI C header files... " >&6; }
11676 if ${ac_cv_header_stdc+:} false
; then :
11677 $as_echo_n "(cached) " >&6
11679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11680 /* end confdefs.h. */
11681 #include <stdlib.h>
11682 #include <stdarg.h>
11683 #include <string.h>
11694 if ac_fn_c_try_compile
"$LINENO"; then :
11695 ac_cv_header_stdc
=yes
11697 ac_cv_header_stdc
=no
11699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11701 if test $ac_cv_header_stdc = yes; then
11702 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11704 /* end confdefs.h. */
11705 #include <string.h>
11708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11709 $EGREP "memchr" >/dev
/null
2>&1; then :
11712 ac_cv_header_stdc
=no
11718 if test $ac_cv_header_stdc = yes; then
11719 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11721 /* end confdefs.h. */
11722 #include <stdlib.h>
11725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11726 $EGREP "free" >/dev
/null
2>&1; then :
11729 ac_cv_header_stdc
=no
11735 if test $ac_cv_header_stdc = yes; then
11736 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11737 if test "$cross_compiling" = yes; then :
11740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11741 /* end confdefs.h. */
11743 #include <stdlib.h>
11744 #if ((' ' & 0x0FF) == 0x020)
11745 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11746 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11748 # define ISLOWER(c) \
11749 (('a' <= (c) && (c) <= 'i') \
11750 || ('j' <= (c) && (c) <= 'r') \
11751 || ('s' <= (c) && (c) <= 'z'))
11752 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11755 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11760 for (i = 0; i < 256; i++)
11761 if (XOR (islower (i), ISLOWER (i))
11762 || toupper (i) != TOUPPER (i))
11767 if ac_fn_c_try_run
"$LINENO"; then :
11770 ac_cv_header_stdc
=no
11772 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11773 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11779 $as_echo "$ac_cv_header_stdc" >&6; }
11780 if test $ac_cv_header_stdc = yes; then
11782 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11786 # elf_hp.h is for HP/UX 64-bit shared library support.
11787 for ac_header
in nlist.h machine
/reg.h \
11789 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
11790 sys
/resource.h sys
/ptrace.h ptrace.h \
11791 sys
/reg.h sys
/debugreg.h \
11794 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11795 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11796 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
11797 cat >>confdefs.h
<<_ACEOF
11798 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11805 for ac_header
in sys
/user.h
11807 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
11808 # include <sys/param.h>
11812 if test "x$ac_cv_header_sys_user_h" = xyes
; then :
11813 cat >>confdefs.h
<<_ACEOF
11814 #define HAVE_SYS_USER_H 1
11822 for ac_header
in curses.h cursesX.h ncurses.h ncursesw
/ncurses.h ncurses
/ncurses.h ncurses
/term.h
11824 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11825 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11826 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
11827 cat >>confdefs.h
<<_ACEOF
11828 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11835 for ac_header
in term.h
11837 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
11838 # include <curses.h>
11842 if test "x$ac_cv_header_term_h" = xyes
; then :
11843 cat >>confdefs.h
<<_ACEOF
11844 #define HAVE_TERM_H 1
11852 for ac_header
in sys
/socket.h
11854 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
11855 if test "x$ac_cv_header_sys_socket_h" = xyes
; then :
11856 cat >>confdefs.h
<<_ACEOF
11857 #define HAVE_SYS_SOCKET_H 1
11864 for ac_header
in ws2tcpip.h
11866 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
11867 if test "x$ac_cv_header_ws2tcpip_h" = xyes
; then :
11868 cat >>confdefs.h
<<_ACEOF
11869 #define HAVE_WS2TCPIP_H 1
11877 # ------------------------- #
11878 # Checks for declarations. #
11879 # ------------------------- #
11882 # Check for presence and size of long long.
11883 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
11884 if test "x$ac_cv_type_long_long" = xyes
; then :
11886 cat >>confdefs.h
<<_ACEOF
11887 #define HAVE_LONG_LONG 1
11890 # The cast to long int works around a bug in the HP C Compiler
11891 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11892 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11893 # This bug is HP SR number 8606223364.
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
11895 $as_echo_n "checking size of long long... " >&6; }
11896 if ${ac_cv_sizeof_long_long+:} false
; then :
11897 $as_echo_n "(cached) " >&6
11899 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
11902 if test "$ac_cv_type_long_long" = yes; then
11903 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11905 as_fn_error
77 "cannot compute sizeof (long long)
11906 See \`config.log' for more details" "$LINENO" 5; }
11908 ac_cv_sizeof_long_long
=0
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
11914 $as_echo "$ac_cv_sizeof_long_long" >&6; }
11918 cat >>confdefs.h
<<_ACEOF
11919 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11926 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
11927 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
11928 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
11934 cat >>confdefs.h
<<_ACEOF
11935 #define HAVE_DECL_BASENAME $ac_have_decl
11937 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
11938 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
11944 cat >>confdefs.h
<<_ACEOF
11945 #define HAVE_DECL_FFS $ac_have_decl
11947 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
11948 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
11954 cat >>confdefs.h
<<_ACEOF
11955 #define HAVE_DECL_ASPRINTF $ac_have_decl
11957 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
11958 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
11964 cat >>confdefs.h
<<_ACEOF
11965 #define HAVE_DECL_VASPRINTF $ac_have_decl
11967 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11968 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
11974 cat >>confdefs.h
<<_ACEOF
11975 #define HAVE_DECL_SNPRINTF $ac_have_decl
11977 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
11978 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
11984 cat >>confdefs.h
<<_ACEOF
11985 #define HAVE_DECL_VSNPRINTF $ac_have_decl
11988 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
11989 if test "x$ac_cv_have_decl_strtol" = xyes
; then :
11995 cat >>confdefs.h
<<_ACEOF
11996 #define HAVE_DECL_STRTOL $ac_have_decl
11998 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
11999 if test "x$ac_cv_have_decl_strtoul" = xyes
; then :
12005 cat >>confdefs.h
<<_ACEOF
12006 #define HAVE_DECL_STRTOUL $ac_have_decl
12008 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
12009 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
12015 cat >>confdefs.h
<<_ACEOF
12016 #define HAVE_DECL_STRTOLL $ac_have_decl
12018 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
12019 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
12025 cat >>confdefs.h
<<_ACEOF
12026 #define HAVE_DECL_STRTOULL $ac_have_decl
12029 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12030 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
12036 cat >>confdefs.h
<<_ACEOF
12037 #define HAVE_DECL_STRVERSCMP $ac_have_decl
12042 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12043 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12049 cat >>confdefs.h
<<_ACEOF
12050 #define HAVE_DECL_SNPRINTF $ac_have_decl
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12055 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12056 if ${am_cv_val_LC_MESSAGES+:} false
; then :
12057 $as_echo_n "(cached) " >&6
12059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12060 /* end confdefs.h. */
12061 #include <locale.h>
12070 if ac_fn_c_try_link
"$LINENO"; then :
12071 am_cv_val_LC_MESSAGES
=yes
12073 am_cv_val_LC_MESSAGES
=no
12075 rm -f core conftest.err conftest.
$ac_objext \
12076 conftest
$ac_exeext conftest.
$ac_ext
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12079 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12080 if test $am_cv_val_LC_MESSAGES = yes; then
12082 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12087 # ------------------ #
12088 # Checks for types. #
12089 # ------------------ #
12091 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12092 #if HAVE_SYS_SOCKET_H
12093 # include <sys/socket.h>
12094 #elif HAVE_WS2TCPIP_H
12095 # include <ws2tcpip.h>
12099 if test "x$ac_cv_type_socklen_t" = xyes
; then :
12101 cat >>confdefs.h
<<_ACEOF
12102 #define HAVE_SOCKLEN_T 1
12109 # ------------------------------------- #
12110 # Checks for compiler characteristics. #
12111 # ------------------------------------- #
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12114 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12115 if ${ac_cv_c_const+:} false
; then :
12116 $as_echo_n "(cached) " >&6
12118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12119 /* end confdefs.h. */
12125 #ifndef __cplusplus
12126 /* Ultrix mips cc rejects this sort of thing. */
12127 typedef int charset[2];
12128 const charset cs = { 0, 0 };
12129 /* SunOS 4.1.1 cc rejects this. */
12130 char const *const *pcpcc;
12132 /* NEC SVR4.0.2 mips cc rejects this. */
12133 struct point {int x, y;};
12134 static struct point const zero = {0,0};
12135 /* AIX XL C 1.02.0.0 rejects this.
12136 It does not let you subtract one const X* pointer from another in
12137 an arm of an if-expression whose if-part is not a constant
12139 const char *g = "string";
12140 pcpcc = &g + (g ? g-g : 0);
12141 /* HPUX 7.0 cc rejects these. */
12143 ppc = (char**) pcpcc;
12144 pcpcc = (char const *const *) ppc;
12145 { /* SCO 3.2v4 cc rejects this sort of thing. */
12148 char const *s = 0 ? (char *) 0 : (char const *) 0;
12153 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12154 int x[] = {25, 17};
12155 const int *foo = &x[0];
12158 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12159 typedef const int *iptr;
12163 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12164 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12165 struct s { int j; const int *ap[3]; } bx;
12166 struct s *b = &bx; b->j = 5;
12168 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12169 const int foo = 10;
12170 if (!foo) return 0;
12172 return !cs[0] && !zero.x;
12179 if ac_fn_c_try_compile
"$LINENO"; then :
12184 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12187 $as_echo "$ac_cv_c_const" >&6; }
12188 if test $ac_cv_c_const = no
; then
12190 $as_echo "#define const /**/" >>confdefs.h
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12195 $as_echo_n "checking for inline... " >&6; }
12196 if ${ac_cv_c_inline+:} false
; then :
12197 $as_echo_n "(cached) " >&6
12200 for ac_kw
in inline __inline__ __inline
; do
12201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12202 /* end confdefs.h. */
12203 #ifndef __cplusplus
12205 static $ac_kw foo_t static_foo () {return 0; }
12206 $ac_kw foo_t foo () {return 0; }
12210 if ac_fn_c_try_compile
"$LINENO"; then :
12211 ac_cv_c_inline
=$ac_kw
12213 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12214 test "$ac_cv_c_inline" != no
&& break
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12219 $as_echo "$ac_cv_c_inline" >&6; }
12221 case $ac_cv_c_inline in
12224 case $ac_cv_c_inline in
12226 *) ac_val
=$ac_cv_c_inline;;
12228 cat >>confdefs.h
<<_ACEOF
12229 #ifndef __cplusplus
12230 #define inline $ac_val
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12237 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12238 if ${ac_cv_c_bigendian+:} false
; then :
12239 $as_echo_n "(cached) " >&6
12241 ac_cv_c_bigendian
=unknown
12242 # See if we're dealing with a universal compiler.
12243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12244 /* end confdefs.h. */
12245 #ifndef __APPLE_CC__
12246 not a universal capable compiler
12251 if ac_fn_c_try_compile
"$LINENO"; then :
12253 # Check for potential -arch flags. It is not universal unless
12254 # there are at least two -arch flags with different values.
12257 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12258 if test -n "$ac_prev"; then
12260 i?
86 | x86_64 | ppc | ppc64
)
12261 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12264 ac_cv_c_bigendian
=universal
12270 elif test "x$ac_word" = "x-arch"; then
12275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12276 if test $ac_cv_c_bigendian = unknown
; then
12277 # See if sys/param.h defines the BYTE_ORDER macro.
12278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12279 /* end confdefs.h. */
12280 #include <sys/types.h>
12281 #include <sys/param.h>
12286 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12287 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12289 bogus endian macros
12296 if ac_fn_c_try_compile
"$LINENO"; then :
12297 # It does; now see whether it defined to BIG_ENDIAN or not.
12298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12299 /* end confdefs.h. */
12300 #include <sys/types.h>
12301 #include <sys/param.h>
12306 #if BYTE_ORDER != BIG_ENDIAN
12314 if ac_fn_c_try_compile
"$LINENO"; then :
12315 ac_cv_c_bigendian
=yes
12317 ac_cv_c_bigendian
=no
12319 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12321 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12323 if test $ac_cv_c_bigendian = unknown
; then
12324 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12326 /* end confdefs.h. */
12327 #include <limits.h>
12332 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12333 bogus endian macros
12340 if ac_fn_c_try_compile
"$LINENO"; then :
12341 # It does; now see whether it defined to _BIG_ENDIAN or not.
12342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12343 /* end confdefs.h. */
12344 #include <limits.h>
12349 #ifndef _BIG_ENDIAN
12357 if ac_fn_c_try_compile
"$LINENO"; then :
12358 ac_cv_c_bigendian
=yes
12360 ac_cv_c_bigendian
=no
12362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12364 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12366 if test $ac_cv_c_bigendian = unknown
; then
12367 # Compile a test program.
12368 if test "$cross_compiling" = yes; then :
12369 # Try to guess by grepping values from an object file.
12370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12371 /* end confdefs.h. */
12372 short int ascii_mm[] =
12373 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12374 short int ascii_ii[] =
12375 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12376 int use_ascii (int i) {
12377 return ascii_mm[i] + ascii_ii[i];
12379 short int ebcdic_ii[] =
12380 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12381 short int ebcdic_mm[] =
12382 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12383 int use_ebcdic (int i) {
12384 return ebcdic_mm[i] + ebcdic_ii[i];
12391 return use_ascii (foo) == use_ebcdic (foo);
12396 if ac_fn_c_try_compile
"$LINENO"; then :
12397 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12398 ac_cv_c_bigendian
=yes
12400 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12401 if test "$ac_cv_c_bigendian" = unknown
; then
12402 ac_cv_c_bigendian
=no
12404 # finding both strings is unlikely to happen, but who knows?
12405 ac_cv_c_bigendian
=unknown
12409 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12412 /* end confdefs.h. */
12413 $ac_includes_default
12418 /* Are we little or big endian? From Harbison&Steele. */
12422 char c[sizeof (long int)];
12425 return u.c[sizeof (long int) - 1] == 1;
12431 if ac_fn_c_try_run
"$LINENO"; then :
12432 ac_cv_c_bigendian
=no
12434 ac_cv_c_bigendian
=yes
12436 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12437 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12443 $as_echo "$ac_cv_c_bigendian" >&6; }
12444 case $ac_cv_c_bigendian in #(
12446 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12452 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12456 as_fn_error $?
"unknown endianness
12457 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12461 # ------------------------------ #
12462 # Checks for library functions. #
12463 # ------------------------------ #
12465 for ac_func
in getuid getgid \
12466 pipe pread pread64 pwrite resize_term \
12468 sigaction sigsetmask socketpair \
12469 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
12470 setrlimit getrlimit posix_madvise waitpid \
12473 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12474 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12475 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12476 cat >>confdefs.h
<<_ACEOF
12477 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12485 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12486 if ${am_cv_langinfo_codeset+:} false
; then :
12487 $as_echo_n "(cached) " >&6
12489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12490 /* end confdefs.h. */
12491 #include <langinfo.h>
12495 char* cs = nl_langinfo(CODESET);
12500 if ac_fn_c_try_link
"$LINENO"; then :
12501 am_cv_langinfo_codeset
=yes
12503 am_cv_langinfo_codeset
=no
12505 rm -f core conftest.err conftest.
$ac_objext \
12506 conftest
$ac_exeext conftest.
$ac_ext
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12510 $as_echo "$am_cv_langinfo_codeset" >&6; }
12511 if test $am_cv_langinfo_codeset = yes; then
12513 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12517 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12518 if test "x$ac_cv_type_size_t" = xyes
; then :
12522 cat >>confdefs.h
<<_ACEOF
12523 #define size_t unsigned int
12531 for ac_header
in $ac_header_list
12533 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12534 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12536 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12537 cat >>confdefs.h
<<_ACEOF
12538 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12551 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12552 if test "x$ac_cv_type_pid_t" = xyes
; then :
12556 cat >>confdefs.h
<<_ACEOF
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12563 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12564 if ${ac_cv_path_SED+:} false
; then :
12565 $as_echo_n "(cached) " >&6
12567 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
12568 for ac_i
in 1 2 3 4 5 6 7; do
12569 ac_script
="$ac_script$as_nl$ac_script"
12571 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
12572 { ac_script
=; unset ac_script
;}
12573 if test -z "$SED"; then
12574 ac_path_SED_found
=false
12575 # Loop through the user's path and test for each of PROGNAME-LIST
12576 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12577 for as_dir
in $PATH
12580 test -z "$as_dir" && as_dir
=.
12581 for ac_prog
in sed gsed
; do
12582 for ac_exec_ext
in '' $ac_executable_extensions; do
12583 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12584 as_fn_executable_p
"$ac_path_SED" ||
continue
12585 # Check for GNU ac_path_SED and select it if it is found.
12586 # Check for GNU $ac_path_SED
12587 case `"$ac_path_SED" --version 2>&1` in
12589 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12592 $as_echo_n 0123456789 >"conftest.in"
12595 cat "conftest.in" "conftest.in" >"conftest.tmp"
12596 mv "conftest.tmp" "conftest.in"
12597 cp "conftest.in" "conftest.nl"
12598 $as_echo '' >> "conftest.nl"
12599 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12600 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12601 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12602 if test $ac_count -gt ${ac_path_SED_max-0}; then
12603 # Best one so far, save it but keep looking for a better one
12604 ac_cv_path_SED
="$ac_path_SED"
12605 ac_path_SED_max
=$ac_count
12607 # 10*(2^10) chars as input seems more than enough
12608 test $ac_count -gt 10 && break
12610 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12613 $ac_path_SED_found && break 3
12618 if test -z "$ac_cv_path_SED"; then
12619 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12622 ac_cv_path_SED
=$SED
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12627 $as_echo "$ac_cv_path_SED" >&6; }
12628 SED
="$ac_cv_path_SED"
12632 # Set the 'development' global.
12633 .
$srcdir/..
/bfd
/development.sh
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12636 $as_echo_n "checking for ANSI C header files... " >&6; }
12637 if ${ac_cv_header_stdc+:} false
; then :
12638 $as_echo_n "(cached) " >&6
12640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12641 /* end confdefs.h. */
12642 #include <stdlib.h>
12643 #include <stdarg.h>
12644 #include <string.h>
12655 if ac_fn_c_try_compile
"$LINENO"; then :
12656 ac_cv_header_stdc
=yes
12658 ac_cv_header_stdc
=no
12660 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12662 if test $ac_cv_header_stdc = yes; then
12663 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12665 /* end confdefs.h. */
12666 #include <string.h>
12669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12670 $EGREP "memchr" >/dev
/null
2>&1; then :
12673 ac_cv_header_stdc
=no
12679 if test $ac_cv_header_stdc = yes; then
12680 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12682 /* end confdefs.h. */
12683 #include <stdlib.h>
12686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12687 $EGREP "free" >/dev
/null
2>&1; then :
12690 ac_cv_header_stdc
=no
12696 if test $ac_cv_header_stdc = yes; then
12697 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12698 if test "$cross_compiling" = yes; then :
12701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12702 /* end confdefs.h. */
12704 #include <stdlib.h>
12705 #if ((' ' & 0x0FF) == 0x020)
12706 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12707 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12709 # define ISLOWER(c) \
12710 (('a' <= (c) && (c) <= 'i') \
12711 || ('j' <= (c) && (c) <= 'r') \
12712 || ('s' <= (c) && (c) <= 'z'))
12713 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12716 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12721 for (i = 0; i < 256; i++)
12722 if (XOR (islower (i), ISLOWER (i))
12723 || toupper (i) != TOUPPER (i))
12728 if ac_fn_c_try_run
"$LINENO"; then :
12731 ac_cv_header_stdc
=no
12733 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12734 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12740 $as_echo "$ac_cv_header_stdc" >&6; }
12741 if test $ac_cv_header_stdc = yes; then
12743 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12747 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12748 # for constant arguments. Useless!
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12750 $as_echo_n "checking for working alloca.h... " >&6; }
12751 if ${ac_cv_working_alloca_h+:} false
; then :
12752 $as_echo_n "(cached) " >&6
12754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12755 /* end confdefs.h. */
12756 #include <alloca.h>
12760 char *p = (char *) alloca (2 * sizeof (int));
12766 if ac_fn_c_try_link
"$LINENO"; then :
12767 ac_cv_working_alloca_h
=yes
12769 ac_cv_working_alloca_h
=no
12771 rm -f core conftest.err conftest.
$ac_objext \
12772 conftest
$ac_exeext conftest.
$ac_ext
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12775 $as_echo "$ac_cv_working_alloca_h" >&6; }
12776 if test $ac_cv_working_alloca_h = yes; then
12778 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12783 $as_echo_n "checking for alloca... " >&6; }
12784 if ${ac_cv_func_alloca_works+:} false
; then :
12785 $as_echo_n "(cached) " >&6
12787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12788 /* end confdefs.h. */
12790 # define alloca __builtin_alloca
12793 # include <malloc.h>
12794 # define alloca _alloca
12796 # ifdef HAVE_ALLOCA_H
12797 # include <alloca.h>
12802 # ifndef alloca /* predefined by HP cc +Olibcalls */
12803 void *alloca (size_t);
12813 char *p = (char *) alloca (1);
12819 if ac_fn_c_try_link
"$LINENO"; then :
12820 ac_cv_func_alloca_works
=yes
12822 ac_cv_func_alloca_works
=no
12824 rm -f core conftest.err conftest.
$ac_objext \
12825 conftest
$ac_exeext conftest.
$ac_ext
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12828 $as_echo "$ac_cv_func_alloca_works" >&6; }
12830 if test $ac_cv_func_alloca_works = yes; then
12832 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12835 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12836 # that cause trouble. Some versions do not even contain alloca or
12837 # contain a buggy version. If you still want to use their alloca,
12838 # use ar to extract alloca.o from them instead of compiling alloca.c.
12840 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
12842 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12846 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12847 if ${ac_cv_os_cray+:} false
; then :
12848 $as_echo_n "(cached) " >&6
12850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12851 /* end confdefs.h. */
12852 #if defined CRAY && ! defined CRAY2
12859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12860 $EGREP "webecray" >/dev
/null
2>&1; then :
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12869 $as_echo "$ac_cv_os_cray" >&6; }
12870 if test $ac_cv_os_cray = yes; then
12871 for ac_func
in _getb67 GETB67 getb67
; do
12872 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12873 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12874 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12876 cat >>confdefs.h
<<_ACEOF
12877 #define CRAY_STACKSEG_END $ac_func
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12887 $as_echo_n "checking stack direction for C alloca... " >&6; }
12888 if ${ac_cv_c_stack_direction+:} false
; then :
12889 $as_echo_n "(cached) " >&6
12891 if test "$cross_compiling" = yes; then :
12892 ac_cv_c_stack_direction
=0
12894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12895 /* end confdefs.h. */
12896 $ac_includes_default
12898 find_stack_direction (int *addr, int depth)
12900 int dir, dummy = 0;
12903 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
12904 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
12905 return dir + dummy;
12909 main (int argc, char **argv)
12911 return find_stack_direction (0, argc + !argv + 20) < 0;
12914 if ac_fn_c_try_run
"$LINENO"; then :
12915 ac_cv_c_stack_direction
=1
12917 ac_cv_c_stack_direction
=-1
12919 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12920 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12925 $as_echo "$ac_cv_c_stack_direction" >&6; }
12926 cat >>confdefs.h
<<_ACEOF
12927 #define STACK_DIRECTION $ac_cv_c_stack_direction
12938 $as_echo "#define USE_WIN32API 1" >>confdefs.h
12940 WIN32APILIBS
="-lws2_32"
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12946 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12947 if ${am_cv_langinfo_codeset+:} false
; then :
12948 $as_echo_n "(cached) " >&6
12950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12951 /* end confdefs.h. */
12952 #include <langinfo.h>
12956 char* cs = nl_langinfo(CODESET);
12961 if ac_fn_c_try_link
"$LINENO"; then :
12962 am_cv_langinfo_codeset
=yes
12964 am_cv_langinfo_codeset
=no
12966 rm -f core conftest.err conftest.
$ac_objext \
12967 conftest
$ac_exeext conftest.
$ac_ext
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12971 $as_echo "$am_cv_langinfo_codeset" >&6; }
12972 if test $am_cv_langinfo_codeset = yes; then
12974 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12979 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
12981 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12982 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12983 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12984 cat >>confdefs.h
<<_ACEOF
12985 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12994 for ac_func
in getpagesize
12996 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12997 if test "x$ac_cv_func_getpagesize" = xyes
; then :
12998 cat >>confdefs.h
<<_ACEOF
12999 #define HAVE_GETPAGESIZE 1
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13006 $as_echo_n "checking for working mmap... " >&6; }
13007 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
13008 $as_echo_n "(cached) " >&6
13010 if test "$cross_compiling" = yes; then :
13011 ac_cv_func_mmap_fixed_mapped
=no
13013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13014 /* end confdefs.h. */
13015 $ac_includes_default
13016 /* malloc might have been renamed as rpl_malloc. */
13019 /* Thanks to Mike Haertel and Jim Avera for this test.
13020 Here is a matrix of mmap possibilities:
13021 mmap private not fixed
13022 mmap private fixed at somewhere currently unmapped
13023 mmap private fixed at somewhere already mapped
13024 mmap shared not fixed
13025 mmap shared fixed at somewhere currently unmapped
13026 mmap shared fixed at somewhere already mapped
13027 For private mappings, we should verify that changes cannot be read()
13028 back from the file, nor mmap's back from the file at a different
13029 address. (There have been systems where private was not correctly
13030 implemented like the infamous i386 svr4.0, and systems where the
13031 VM page cache was not coherent with the file system buffer cache
13032 like early versions of FreeBSD and possibly contemporary NetBSD.)
13033 For shared mappings, we should conversely verify that changes get
13034 propagated back to all the places they're supposed to be.
13036 Grep wants private fixed already mapped.
13037 The main things grep needs to know about mmap are:
13038 * does it exist and is it safe to write into the mmap'd area
13039 * how to use it (BSD variants) */
13042 #include <sys/mman.h>
13044 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13048 /* This mess was copied from the GNU getpagesize.h. */
13049 #ifndef HAVE_GETPAGESIZE
13050 # ifdef _SC_PAGESIZE
13051 # define getpagesize() sysconf(_SC_PAGESIZE)
13052 # else /* no _SC_PAGESIZE */
13053 # ifdef HAVE_SYS_PARAM_H
13054 # include <sys/param.h>
13055 # ifdef EXEC_PAGESIZE
13056 # define getpagesize() EXEC_PAGESIZE
13057 # else /* no EXEC_PAGESIZE */
13059 # define getpagesize() NBPG * CLSIZE
13062 # endif /* no CLSIZE */
13063 # else /* no NBPG */
13065 # define getpagesize() NBPC
13066 # else /* no NBPC */
13068 # define getpagesize() PAGESIZE
13069 # endif /* PAGESIZE */
13070 # endif /* no NBPC */
13071 # endif /* no NBPG */
13072 # endif /* no EXEC_PAGESIZE */
13073 # else /* no HAVE_SYS_PARAM_H */
13074 # define getpagesize() 8192 /* punt totally */
13075 # endif /* no HAVE_SYS_PARAM_H */
13076 # endif /* no _SC_PAGESIZE */
13078 #endif /* no HAVE_GETPAGESIZE */
13083 char *data, *data2, *data3;
13084 const char *cdata2;
13088 pagesize = getpagesize ();
13090 /* First, make a file with some known garbage in it. */
13091 data = (char *) malloc (pagesize);
13094 for (i = 0; i < pagesize; ++i)
13095 *(data + i) = rand ();
13097 fd = creat ("conftest.mmap", 0600);
13100 if (write (fd, data, pagesize) != pagesize)
13104 /* Next, check that the tail of a page is zero-filled. File must have
13105 non-zero length, otherwise we risk SIGBUS for entire page. */
13106 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13110 if (write (fd2, cdata2, 1) != 1)
13112 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13113 if (data2 == MAP_FAILED)
13115 for (i = 0; i < pagesize; ++i)
13119 if (munmap (data2, pagesize))
13122 /* Next, try to mmap the file at a fixed address which already has
13123 something else allocated at it. If we can, also make sure that
13124 we see the same garbage. */
13125 fd = open ("conftest.mmap", O_RDWR);
13128 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13129 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13131 for (i = 0; i < pagesize; ++i)
13132 if (*(data + i) != *(data2 + i))
13135 /* Finally, make sure that changes to the mapped area do not
13136 percolate back to the file as seen by read(). (This is a bug on
13137 some variants of i386 svr4.0.) */
13138 for (i = 0; i < pagesize; ++i)
13139 *(data2 + i) = *(data2 + i) + 1;
13140 data3 = (char *) malloc (pagesize);
13143 if (read (fd, data3, pagesize) != pagesize)
13145 for (i = 0; i < pagesize; ++i)
13146 if (*(data + i) != *(data3 + i))
13152 if ac_fn_c_try_run
"$LINENO"; then :
13153 ac_cv_func_mmap_fixed_mapped
=yes
13155 ac_cv_func_mmap_fixed_mapped
=no
13157 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13158 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13163 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13164 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13166 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13169 rm -f conftest.mmap conftest.txt
13171 for ac_header
in vfork.h
13173 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13174 if test "x$ac_cv_header_vfork_h" = xyes
; then :
13175 cat >>confdefs.h
<<_ACEOF
13176 #define HAVE_VFORK_H 1
13183 for ac_func
in fork vfork
13185 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13186 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13187 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13188 cat >>confdefs.h
<<_ACEOF
13189 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13195 if test "x$ac_cv_func_fork" = xyes
; then
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13197 $as_echo_n "checking for working fork... " >&6; }
13198 if ${ac_cv_func_fork_works+:} false
; then :
13199 $as_echo_n "(cached) " >&6
13201 if test "$cross_compiling" = yes; then :
13202 ac_cv_func_fork_works
=cross
13204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13205 /* end confdefs.h. */
13206 $ac_includes_default
13211 /* By Ruediger Kuhlmann. */
13212 return fork () < 0;
13218 if ac_fn_c_try_run
"$LINENO"; then :
13219 ac_cv_func_fork_works
=yes
13221 ac_cv_func_fork_works
=no
13223 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13224 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13229 $as_echo "$ac_cv_func_fork_works" >&6; }
13232 ac_cv_func_fork_works
=$ac_cv_func_fork
13234 if test "x$ac_cv_func_fork_works" = xcross
; then
13236 *-*-amigaos* |
*-*-msdosdjgpp*)
13237 # Override, as these systems have only a dummy fork() stub
13238 ac_cv_func_fork_works
=no
13241 ac_cv_func_fork_works
=yes
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13245 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13247 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13248 if test "x$ac_cv_func_vfork" = xyes
; then
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13250 $as_echo_n "checking for working vfork... " >&6; }
13251 if ${ac_cv_func_vfork_works+:} false
; then :
13252 $as_echo_n "(cached) " >&6
13254 if test "$cross_compiling" = yes; then :
13255 ac_cv_func_vfork_works
=cross
13257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13258 /* end confdefs.h. */
13259 /* Thanks to Paul Eggert for this test. */
13260 $ac_includes_default
13261 #include <sys/wait.h>
13262 #ifdef HAVE_VFORK_H
13263 # include <vfork.h>
13265 /* On some sparc systems, changes by the child to local and incoming
13266 argument registers are propagated back to the parent. The compiler
13267 is told about this with #include <vfork.h>, but some compilers
13268 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13269 static variable whose address is put into a register that is
13270 clobbered by the vfork. */
13273 sparc_address_test (int arg)
13275 sparc_address_test (arg) int arg;
13278 static pid_t child;
13296 pid_t parent = getpid ();
13299 sparc_address_test (0);
13304 /* Here is another test for sparc vfork register problems. This
13305 test uses lots of local variables, at least as many local
13306 variables as main has allocated so far including compiler
13307 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13308 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13309 reuse the register of parent for one of the local variables,
13310 since it will think that parent can't possibly be used any more
13311 in this routine. Assigning to the local variable will thus
13312 munge parent in the parent process. */
13314 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13315 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13316 /* Convince the compiler that p..p7 are live; otherwise, it might
13317 use the same hardware register for all 8 local variables. */
13318 if (p != p1 || p != p2 || p != p3 || p != p4
13319 || p != p5 || p != p6 || p != p7)
13322 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13323 from child file descriptors. If the child closes a descriptor
13324 before it execs or exits, this munges the parent's descriptor
13325 as well. Test for this by closing stdout in the child. */
13326 _exit(close(fileno(stdout)) != 0);
13331 while (wait(&status) != child)
13334 /* Was there some problem with vforking? */
13337 /* Did the child fail? (This shouldn't happen.) */
13340 /* Did the vfork/compiler bug occur? */
13341 || parent != getpid()
13343 /* Did the file descriptor bug occur? */
13344 || fstat(fileno(stdout), &st) != 0
13349 if ac_fn_c_try_run
"$LINENO"; then :
13350 ac_cv_func_vfork_works
=yes
13352 ac_cv_func_vfork_works
=no
13354 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13355 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13360 $as_echo "$ac_cv_func_vfork_works" >&6; }
13363 if test "x$ac_cv_func_fork_works" = xcross
; then
13364 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13366 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13369 if test "x$ac_cv_func_vfork_works" = xyes
; then
13371 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13375 $as_echo "#define vfork fork" >>confdefs.h
13378 if test "x$ac_cv_func_fork_works" = xyes
; then
13380 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13384 for ac_func
in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
13385 ptrace64 sbrk setns sigaltstack sigprocmask \
13386 setpgid setpgrp getrusage getauxval
13388 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13389 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13390 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13391 cat >>confdefs.h
<<_ACEOF
13392 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13399 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
13401 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
13407 cat >>confdefs.h
<<_ACEOF
13408 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
13412 if test "$cross_compiling" = yes; then :
13413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13414 /* end confdefs.h. */
13415 #include <sys/personality.h>
13420 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
13421 # define ADDR_NO_RANDOMIZE 0x0040000
13423 /* Test the flag could be set and stays set. */
13424 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13425 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13431 if ac_fn_c_try_link
"$LINENO"; then :
13432 have_personality
=true
13434 have_personality
=false
13436 rm -f core conftest.err conftest.
$ac_objext \
13437 conftest
$ac_exeext conftest.
$ac_ext
13439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13440 /* end confdefs.h. */
13441 #include <sys/personality.h>
13446 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
13447 # define ADDR_NO_RANDOMIZE 0x0040000
13449 /* Test the flag could be set and stays set. */
13450 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13451 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13457 if ac_fn_c_try_run
"$LINENO"; then :
13458 have_personality
=true
13460 have_personality
=false
13462 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13463 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13466 if $have_personality
13469 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
13473 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13474 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
13480 cat >>confdefs.h
<<_ACEOF
13481 #define HAVE_DECL_STRSTR $ac_have_decl
13485 # ----------------------- #
13486 # Checks for structures. #
13487 # ----------------------- #
13489 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13490 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
13492 cat >>confdefs.h
<<_ACEOF
13493 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13498 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
13499 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
13501 cat >>confdefs.h
<<_ACEOF
13502 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13509 # On FreeBSD we need libutil for the kinfo_get* functions. On
13510 # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
13511 # Figure out which one to use.
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
13513 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
13514 if ${ac_cv_search_kinfo_getfile+:} false
; then :
13515 $as_echo_n "(cached) " >&6
13517 ac_func_search_save_LIBS
=$LIBS
13518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13519 /* end confdefs.h. */
13521 /* Override any GCC internal prototype to avoid an error.
13522 Use char because int might match the return type of a GCC
13523 builtin and then its argument prototype would still apply. */
13527 char kinfo_getfile ();
13531 return kinfo_getfile ();
13536 for ac_lib
in '' util util-freebsd
; do
13537 if test -z "$ac_lib"; then
13538 ac_res
="none required"
13541 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13543 if ac_fn_c_try_link
"$LINENO"; then :
13544 ac_cv_search_kinfo_getfile
=$ac_res
13546 rm -f core conftest.err conftest.
$ac_objext \
13548 if ${ac_cv_search_kinfo_getfile+:} false
; then :
13552 if ${ac_cv_search_kinfo_getfile+:} false
; then :
13555 ac_cv_search_kinfo_getfile
=no
13557 rm conftest.
$ac_ext
13558 LIBS
=$ac_func_search_save_LIBS
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
13561 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
13562 ac_res
=$ac_cv_search_kinfo_getfile
13563 if test "$ac_res" != no
; then :
13564 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13569 # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
13570 for ac_func
in kinfo_getfile
13572 ac_fn_c_check_func
"$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
13573 if test "x$ac_cv_func_kinfo_getfile" = xyes
; then :
13574 cat >>confdefs.h
<<_ACEOF
13575 #define HAVE_KINFO_GETFILE 1
13582 # Check for std::thread. This does not work on some platforms, like
13585 ac_cpp
='$CXXCPP $CPPFLAGS'
13586 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13587 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13588 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
13595 ac_cpp
='$CPP $CPPFLAGS'
13596 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13597 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13598 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13602 # We used to check for pthread.h first, but this fails if pthread.h
13603 # requires special compiler flags (e.g. on Tru64 or Sequent).
13604 # It gets checked for in the link test anyway.
13606 # First of all, check if the user has set any of the PTHREAD_LIBS,
13607 # etcetera environment variables, and if threads linking works using
13609 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
13610 ax_pthread_save_CC
="$CC"
13611 ax_pthread_save_CFLAGS
="$CFLAGS"
13612 ax_pthread_save_LIBS
="$LIBS"
13613 if test "x$PTHREAD_CC" != "x"; then :
13616 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
13617 LIBS
="$PTHREAD_LIBS $LIBS"
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
13619 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
13620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13621 /* end confdefs.h. */
13623 /* Override any GCC internal prototype to avoid an error.
13624 Use char because int might match the return type of a GCC
13625 builtin and then its argument prototype would still apply. */
13629 char pthread_join ();
13633 return pthread_join ();
13638 if ac_fn_c_try_link
"$LINENO"; then :
13641 rm -f core conftest.err conftest.
$ac_objext \
13642 conftest
$ac_exeext conftest.
$ac_ext
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
13644 $as_echo "$ax_pthread_ok" >&6; }
13645 if test "x$ax_pthread_ok" = "xno"; then
13649 CC
="$ax_pthread_save_CC"
13650 CFLAGS
="$ax_pthread_save_CFLAGS"
13651 LIBS
="$ax_pthread_save_LIBS"
13654 # We must check for the threads library under a number of different
13655 # names; the ordering is very important because some systems
13656 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
13657 # libraries is broken (non-POSIX).
13659 # Create a list of thread flags to try. Items starting with a "-" are
13660 # C compiler flags, and other items are library names, except for "none"
13661 # which indicates that we try without any flags at all, and "pthread-config"
13662 # which is a program returning the flags for the Pth emulation library.
13664 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
13666 # The ordering *is* (sometimes) important. Some notes on the
13667 # individual items follow:
13669 # pthreads: AIX (must check this before -lpthread)
13670 # none: in case threads are in libc; should be tried before -Kthread and
13671 # other compiler flags to prevent continual compiler warnings
13672 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
13673 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
13674 # (Note: HP C rejects this with "bad form for `-t' option")
13675 # -pthreads: Solaris/gcc (Note: HP C also rejects)
13676 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
13677 # doesn't hurt to check since this sometimes defines pthreads and
13678 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
13679 # is present but should not be used directly; and before -mthreads,
13680 # because the compiler interprets this as "-mt" + "-hreads")
13681 # -mthreads: Mingw32/gcc, Lynx/gcc
13682 # pthread: Linux, etcetera
13683 # --thread-safe: KAI C++
13684 # pthread-config: use pthread-config program (for GNU Pth library)
13690 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
13691 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
13693 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
13698 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
13699 # multi-threading and also sets -lpthread."
13701 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
13706 # IBM z/OS requires a feature-test macro to be defined in order to
13707 # enable POSIX threads at all, so give the user a hint if this is
13708 # not set. (We don't define these ourselves, as they can affect
13709 # other portions of the system API in unpredictable ways.)
13711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13712 /* end confdefs.h. */
13714 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
13715 AX_PTHREAD_ZOS_MISSING
13719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13720 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
13722 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
13730 # On Solaris (at least, for some versions), libc contains stubbed
13731 # (non-functional) versions of the pthreads routines, so link-based
13732 # tests will erroneously succeed. (N.B.: The stubs are missing
13733 # pthread_cleanup_push, or rather a function called by this macro,
13734 # so we could check for that, but who knows whether they'll stub
13735 # that too in a future libc.) So we'll check first for the
13736 # standard Solaris way of linking pthreads (-mt -lpthread).
13738 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
13742 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
13744 if test "x$GCC" = "xyes"; then :
13745 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
13748 # The presence of a feature test macro requesting re-entrant function
13749 # definitions is, on some systems, a strong hint that pthreads support is
13750 # correctly enabled
13753 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
13754 ax_pthread_check_macro
="_REENTRANT"
13758 ax_pthread_check_macro
="_THREAD_SAFE"
13762 ax_pthread_check_macro
="--"
13765 if test "x$ax_pthread_check_macro" = "x--"; then :
13766 ax_pthread_check_cond
=0
13768 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
13771 # Are we compiling with Clang?
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
13774 $as_echo_n "checking whether $CC is Clang... " >&6; }
13775 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
13776 $as_echo_n "(cached) " >&6
13778 ax_cv_PTHREAD_CLANG
=no
13779 # Note that Autoconf sets GCC=yes for Clang as well as GCC
13780 if test "x$GCC" = "xyes"; then
13781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13782 /* end confdefs.h. */
13783 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
13784 # if defined(__clang__) && defined(__llvm__)
13785 AX_PTHREAD_CC_IS_CLANG
13789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13790 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
13791 ax_cv_PTHREAD_CLANG
=yes
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
13799 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
13800 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
13802 ax_pthread_clang_warning
=no
13804 # Clang needs special handling, because older versions handle the -pthread
13805 # option in a rather... idiosyncratic way
13807 if test "x$ax_pthread_clang" = "xyes"; then
13809 # Clang takes -pthread; it has never supported any other flag
13811 # (Note 1: This will need to be revisited if a system that Clang
13812 # supports has POSIX threads in a separate library. This tends not
13813 # to be the way of modern systems, but it's conceivable.)
13815 # (Note 2: On some systems, notably Darwin, -pthread is not needed
13816 # to get POSIX threads support; the API is always present and
13817 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
13818 # -pthread does define _REENTRANT, and while the Darwin headers
13819 # ignore this macro, third-party headers might not.)
13821 PTHREAD_CFLAGS
="-pthread"
13826 # However, older versions of Clang make a point of warning the user
13827 # that, in an invocation where only linking and no compilation is
13828 # taking place, the -pthread option has no effect ("argument unused
13829 # during compilation"). They expect -pthread to be passed in only
13830 # when source code is being compiled.
13832 # Problem is, this is at odds with the way Automake and most other
13833 # C build frameworks function, which is that the same flags used in
13834 # compilation (CFLAGS) are also used in linking. Many systems
13835 # supported by AX_PTHREAD require exactly this for POSIX threads
13836 # support, and in fact it is often not straightforward to specify a
13837 # flag that is used only in the compilation phase and not in
13838 # linking. Such a scenario is extremely rare in practice.
13840 # Even though use of the -pthread flag in linking would only print
13841 # a warning, this can be a nuisance for well-run software projects
13842 # that build with -Werror. So if the active version of Clang has
13843 # this misfeature, we search for an option to squash it.
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
13846 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
13847 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
13848 $as_echo_n "(cached) " >&6
13850 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
13851 # Create an alternate version of $ac_link that compiles and
13852 # links in two steps (.c -> .o, .o -> exe) instead of one
13853 # (.c -> exe), because the warning occurs only in the second
13855 ax_pthread_save_ac_link
="$ac_link"
13856 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
13857 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
13858 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
13859 ax_pthread_save_CFLAGS
="$CFLAGS"
13860 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
13861 if test "x$ax_pthread_try" = "xunknown"; then :
13864 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
13865 ac_link
="$ax_pthread_save_ac_link"
13866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13867 /* end confdefs.h. */
13868 int main(void){return 0;}
13870 if ac_fn_c_try_link
"$LINENO"; then :
13871 ac_link
="$ax_pthread_2step_ac_link"
13872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13873 /* end confdefs.h. */
13874 int main(void){return 0;}
13876 if ac_fn_c_try_link
"$LINENO"; then :
13879 rm -f core conftest.err conftest.
$ac_objext \
13880 conftest
$ac_exeext conftest.
$ac_ext
13883 rm -f core conftest.err conftest.
$ac_objext \
13884 conftest
$ac_exeext conftest.
$ac_ext
13886 ac_link
="$ax_pthread_save_ac_link"
13887 CFLAGS
="$ax_pthread_save_CFLAGS"
13888 if test "x$ax_pthread_try" = "x"; then :
13891 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
13895 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
13897 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
13899 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
13902 fi # $ax_pthread_clang = yes
13904 if test "x$ax_pthread_ok" = "xno"; then
13905 for ax_pthread_try_flag
in $ax_pthread_flags; do
13907 case $ax_pthread_try_flag in
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
13910 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
13915 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
13916 PTHREAD_CFLAGS
="-mt"
13917 PTHREAD_LIBS
="-lpthread"
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
13922 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
13923 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
13927 # Extract the first word of "pthread-config", so it can be a program name with args.
13928 set dummy pthread-config
; ac_word
=$2
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13930 $as_echo_n "checking for $ac_word... " >&6; }
13931 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
13932 $as_echo_n "(cached) " >&6
13934 if test -n "$ax_pthread_config"; then
13935 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
13937 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13938 for as_dir
in $PATH
13941 test -z "$as_dir" && as_dir
=.
13942 for ac_exec_ext
in '' $ac_executable_extensions; do
13943 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13944 ac_cv_prog_ax_pthread_config
="yes"
13945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13952 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
13955 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
13956 if test -n "$ax_pthread_config"; then
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
13958 $as_echo "$ax_pthread_config" >&6; }
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13961 $as_echo "no" >&6; }
13965 if test "x$ax_pthread_config" = "xno"; then :
13968 PTHREAD_CFLAGS
="`pthread-config --cflags`"
13969 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
13974 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
13975 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
13979 ax_pthread_save_CFLAGS
="$CFLAGS"
13980 ax_pthread_save_LIBS
="$LIBS"
13981 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
13982 LIBS
="$PTHREAD_LIBS $LIBS"
13984 # Check for various functions. We must include pthread.h,
13985 # since some functions may be macros. (On the Sequent, we
13986 # need a special flag -Kthread to make this header compile.)
13987 # We check for pthread_join because it is in -lpthread on IRIX
13988 # while pthread_create is in libc. We check for pthread_attr_init
13989 # due to DEC craziness with -lpthreads. We check for
13990 # pthread_cleanup_push because it is one of the few pthread
13991 # functions on Solaris that doesn't have a non-functional libc stub.
13992 # We try pthread_create on general principles.
13994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13995 /* end confdefs.h. */
13996 #include <pthread.h>
13997 # if $ax_pthread_check_cond
13998 # error "$ax_pthread_check_macro must be defined"
14000 static void routine(void *a) { a = 0; }
14001 static void *start_routine(void *a) { return a; }
14005 pthread_t th; pthread_attr_t attr;
14006 pthread_create(&th, 0, start_routine, 0);
14007 pthread_join(th, 0);
14008 pthread_attr_init(&attr);
14009 pthread_cleanup_push(routine, 0);
14010 pthread_cleanup_pop(0) /* ; */
14015 if ac_fn_c_try_link
"$LINENO"; then :
14018 rm -f core conftest.err conftest.
$ac_objext \
14019 conftest
$ac_exeext conftest.
$ac_ext
14021 CFLAGS
="$ax_pthread_save_CFLAGS"
14022 LIBS
="$ax_pthread_save_LIBS"
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14025 $as_echo "$ax_pthread_ok" >&6; }
14026 if test "x$ax_pthread_ok" = "xyes"; then :
14035 # Various other checks:
14036 if test "x$ax_pthread_ok" = "xyes"; then
14037 ax_pthread_save_CFLAGS
="$CFLAGS"
14038 ax_pthread_save_LIBS
="$LIBS"
14039 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
14040 LIBS
="$PTHREAD_LIBS $LIBS"
14042 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14044 $as_echo_n "checking for joinable pthread attribute... " >&6; }
14045 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
14046 $as_echo_n "(cached) " >&6
14048 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
14049 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
14050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14051 /* end confdefs.h. */
14052 #include <pthread.h>
14056 int attr = $ax_pthread_attr; return attr /* ; */
14061 if ac_fn_c_try_link
"$LINENO"; then :
14062 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
14064 rm -f core conftest.err conftest.
$ac_objext \
14065 conftest
$ac_exeext conftest.
$ac_ext
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
14070 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
14071 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
14072 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
14073 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
14075 cat >>confdefs.h
<<_ACEOF
14076 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
14079 ax_pthread_joinable_attr_defined
=yes
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
14084 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
14085 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
14086 $as_echo_n "(cached) " >&6
14088 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
14091 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
14097 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
14098 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
14099 test "x$ax_pthread_special_flags_added" != "xyes"; then :
14100 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
14101 ax_pthread_special_flags_added
=yes
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
14105 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
14106 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
14107 $as_echo_n "(cached) " >&6
14109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14110 /* end confdefs.h. */
14111 #include <pthread.h>
14115 int i = PTHREAD_PRIO_INHERIT;
14120 if ac_fn_c_try_link
"$LINENO"; then :
14121 ax_cv_PTHREAD_PRIO_INHERIT
=yes
14123 ax_cv_PTHREAD_PRIO_INHERIT
=no
14125 rm -f core conftest.err conftest.
$ac_objext \
14126 conftest
$ac_exeext conftest.
$ac_ext
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
14130 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
14131 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
14132 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
14134 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
14136 ax_pthread_prio_inherit_defined
=yes
14140 CFLAGS
="$ax_pthread_save_CFLAGS"
14141 LIBS
="$ax_pthread_save_LIBS"
14143 # More AIX lossage: compile with *_r variant
14144 if test "x$GCC" != "xyes"; then
14148 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
14149 #handle absolute path differently from PATH based program lookup
14152 if as_fn_executable_p
${CC}_r
; then :
14153 PTHREAD_CC
="${CC}_r"
14156 for ac_prog
in ${CC}_r
14158 # Extract the first word of "$ac_prog", so it can be a program name with args.
14159 set dummy
$ac_prog; ac_word
=$2
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14161 $as_echo_n "checking for $ac_word... " >&6; }
14162 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
14163 $as_echo_n "(cached) " >&6
14165 if test -n "$PTHREAD_CC"; then
14166 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
14168 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14169 for as_dir
in $PATH
14172 test -z "$as_dir" && as_dir
=.
14173 for ac_exec_ext
in '' $ac_executable_extensions; do
14174 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14175 ac_cv_prog_PTHREAD_CC
="$ac_prog"
14176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14185 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
14186 if test -n "$PTHREAD_CC"; then
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14188 $as_echo "$PTHREAD_CC" >&6; }
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14191 $as_echo "no" >&6; }
14195 test -n "$PTHREAD_CC" && break
14197 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
14208 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
14214 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14215 if test "x$ax_pthread_ok" = "xyes"; then
14223 ac_cpp
='$CXXCPP $CPPFLAGS'
14224 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14225 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14226 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
14229 if test "$threads" = "yes"; then
14231 LIBS
="$PTHREAD_LIBS $LIBS"
14232 save_CXXFLAGS
="$CXXFLAGS"
14233 CXXFLAGS
="$PTHREAD_CFLAGS $save_CXXFLAGS"
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
14235 $as_echo_n "checking for std::thread... " >&6; }
14236 if ${gdb_cv_cxx_std_thread+:} false
; then :
14237 $as_echo_n "(cached) " >&6
14239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14240 /* end confdefs.h. */
14242 void callback() { }
14246 std::thread t(callback);
14251 if ac_fn_cxx_try_compile
"$LINENO"; then :
14252 gdb_cv_cxx_std_thread
=yes
14254 gdb_cv_cxx_std_thread
=no
14256 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
14259 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
14261 # This check must be here, while LIBS includes any necessary
14262 # threading library.
14263 for ac_func
in pthread_sigmask pthread_setname_np
14265 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14266 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14267 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14268 cat >>confdefs.h
<<_ACEOF
14269 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14277 CXXFLAGS
="$save_CXXFLAGS"
14279 if test "$gdb_cv_cxx_std_thread" = "yes"; then
14281 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
14285 ac_cpp
='$CPP $CPPFLAGS'
14286 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14287 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14288 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
14292 $as_echo_n "checking for sigsetjmp... " >&6; }
14293 if ${gdb_cv_func_sigsetjmp+:} false
; then :
14294 $as_echo_n "(cached) " >&6
14296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14297 /* end confdefs.h. */
14299 #include <setjmp.h>
14304 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
14309 if ac_fn_c_try_compile
"$LINENO"; then :
14310 gdb_cv_func_sigsetjmp
=yes
14312 gdb_cv_func_sigsetjmp
=no
14314 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
14317 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
14318 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
14320 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
14325 # Check whether --with-intel_pt was given.
14326 if test "${with_intel_pt+set}" = set; then :
14327 withval
=$with_intel_pt;
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
14333 $as_echo_n "checking whether to use intel pt... " >&6; }
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
14335 $as_echo "$with_intel_pt" >&6; }
14337 if test "${with_intel_pt}" = no
; then
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
14339 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
14342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14343 /* end confdefs.h. */
14345 #include <linux/perf_event.h>
14346 #ifndef PERF_ATTR_SIZE_VER5
14351 if ac_fn_c_try_cpp
"$LINENO"; then :
14356 rm -f conftest.err conftest.i conftest.
$ac_ext
14357 if test "$perf_event" != yes; then
14358 if test "$with_intel_pt" = yes; then
14359 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
14362 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
14376 acl_save_prefix
="$prefix"
14377 prefix
="$acl_final_prefix"
14378 acl_save_exec_prefix
="$exec_prefix"
14379 exec_prefix
="$acl_final_exec_prefix"
14381 eval additional_includedir
=\"$includedir\"
14382 eval additional_libdir
=\"$libdir\"
14384 exec_prefix
="$acl_save_exec_prefix"
14385 prefix
="$acl_save_prefix"
14388 # Check whether --with-libipt-prefix was given.
14389 if test "${with_libipt_prefix+set}" = set; then :
14390 withval
=$with_libipt_prefix;
14391 if test "X$withval" = "Xno"; then
14394 if test "X$withval" = "X"; then
14396 acl_save_prefix
="$prefix"
14397 prefix
="$acl_final_prefix"
14398 acl_save_exec_prefix
="$exec_prefix"
14399 exec_prefix
="$acl_final_exec_prefix"
14401 eval additional_includedir
=\"$includedir\"
14402 eval additional_libdir
=\"$libdir\"
14404 exec_prefix
="$acl_save_exec_prefix"
14405 prefix
="$acl_save_prefix"
14408 additional_includedir
="$withval/include"
14409 additional_libdir
="$withval/lib"
14416 # Check whether --with-libipt-type was given.
14417 if test "${with_libipt_type+set}" = set; then :
14418 withval
=$with_libipt_type; with_libipt_type
=$withval
14420 with_libipt_type
=auto
14423 lib_type
=`eval echo \$with_libipt_type`
14430 names_already_handled
=
14431 names_next_round
='ipt '
14432 while test -n "$names_next_round"; do
14433 names_this_round
="$names_next_round"
14435 for name
in $names_this_round; do
14437 for n
in $names_already_handled; do
14438 if test "$n" = "$name"; then
14439 already_handled
=yes
14443 if test -z "$already_handled"; then
14444 names_already_handled
="$names_already_handled $name"
14445 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14446 eval value
=\"\
$HAVE_LIB$uppername\"
14447 if test -n "$value"; then
14448 if test "$value" = yes; then
14449 eval value
=\"\
$LIB$uppername\"
14450 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
14451 eval value
=\"\
$LTLIB$uppername\"
14452 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
14461 if test $use_additional = yes; then
14462 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
14463 found_dir
="$additional_libdir"
14464 found_so
="$additional_libdir/lib$name.$shlibext"
14465 if test -f "$additional_libdir/lib$name.la"; then
14466 found_la
="$additional_libdir/lib$name.la"
14468 elif test x
$lib_type != xshared
; then
14469 if test -f "$additional_libdir/lib$name.$libext"; then
14470 found_dir
="$additional_libdir"
14471 found_a
="$additional_libdir/lib$name.$libext"
14472 if test -f "$additional_libdir/lib$name.la"; then
14473 found_la
="$additional_libdir/lib$name.la"
14478 if test "X$found_dir" = "X"; then
14479 for x
in $LDFLAGS $LTLIBIPT; do
14481 acl_save_prefix
="$prefix"
14482 prefix
="$acl_final_prefix"
14483 acl_save_exec_prefix
="$exec_prefix"
14484 exec_prefix
="$acl_final_exec_prefix"
14486 exec_prefix
="$acl_save_exec_prefix"
14487 prefix
="$acl_save_prefix"
14491 dir
=`echo "X$x" | sed -e 's/^X-L//'`
14492 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
14494 found_so
="$dir/lib$name.$shlibext"
14495 if test -f "$dir/lib$name.la"; then
14496 found_la
="$dir/lib$name.la"
14498 elif test x
$lib_type != xshared
; then
14499 if test -f "$dir/lib$name.$libext"; then
14501 found_a
="$dir/lib$name.$libext"
14502 if test -f "$dir/lib$name.la"; then
14503 found_la
="$dir/lib$name.la"
14509 if test "X$found_dir" != "X"; then
14514 if test "X$found_dir" != "X"; then
14515 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
14516 if test "X$found_so" != "X"; then
14517 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
14518 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14521 for x
in $ltrpathdirs; do
14522 if test "X$x" = "X$found_dir"; then
14527 if test -z "$haveit"; then
14528 ltrpathdirs
="$ltrpathdirs $found_dir"
14530 if test "$hardcode_direct" = yes; then
14531 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14533 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
14534 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14536 for x
in $rpathdirs; do
14537 if test "X$x" = "X$found_dir"; then
14542 if test -z "$haveit"; then
14543 rpathdirs
="$rpathdirs $found_dir"
14547 for x
in $LDFLAGS $LIBIPT; do
14549 acl_save_prefix
="$prefix"
14550 prefix
="$acl_final_prefix"
14551 acl_save_exec_prefix
="$exec_prefix"
14552 exec_prefix
="$acl_final_exec_prefix"
14554 exec_prefix
="$acl_save_exec_prefix"
14555 prefix
="$acl_save_prefix"
14557 if test "X$x" = "X-L$found_dir"; then
14562 if test -z "$haveit"; then
14563 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
14565 if test "$hardcode_minus_L" != no
; then
14566 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14568 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
14574 if test "X$found_a" != "X"; then
14575 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
14577 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
14580 additional_includedir
=
14581 case "$found_dir" in
14583 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14584 additional_includedir
="$basedir/include"
14587 if test "X$additional_includedir" != "X"; then
14588 if test "X$additional_includedir" != "X/usr/include"; then
14590 if test "X$additional_includedir" = "X/usr/local/include"; then
14591 if test -n "$GCC"; then
14593 linux
*) haveit
=yes;;
14597 if test -z "$haveit"; then
14598 for x
in $CPPFLAGS $INCIPT; do
14600 acl_save_prefix
="$prefix"
14601 prefix
="$acl_final_prefix"
14602 acl_save_exec_prefix
="$exec_prefix"
14603 exec_prefix
="$acl_final_exec_prefix"
14605 exec_prefix
="$acl_save_exec_prefix"
14606 prefix
="$acl_save_prefix"
14608 if test "X$x" = "X-I$additional_includedir"; then
14613 if test -z "$haveit"; then
14614 if test -d "$additional_includedir"; then
14615 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
14621 if test -n "$found_la"; then
14622 save_libdir
="$libdir"
14623 case "$found_la" in
14624 */* |
*\\*) .
"$found_la" ;;
14625 *) .
"./$found_la" ;;
14627 libdir
="$save_libdir"
14628 for dep
in $dependency_libs; do
14631 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
14632 if test "X$additional_libdir" != "X/usr/lib"; then
14634 if test "X$additional_libdir" = "X/usr/local/lib"; then
14635 if test -n "$GCC"; then
14637 linux
*) haveit
=yes;;
14641 if test -z "$haveit"; then
14643 for x
in $LDFLAGS $LIBIPT; do
14645 acl_save_prefix
="$prefix"
14646 prefix
="$acl_final_prefix"
14647 acl_save_exec_prefix
="$exec_prefix"
14648 exec_prefix
="$acl_final_exec_prefix"
14650 exec_prefix
="$acl_save_exec_prefix"
14651 prefix
="$acl_save_prefix"
14653 if test "X$x" = "X-L$additional_libdir"; then
14658 if test -z "$haveit"; then
14659 if test -d "$additional_libdir"; then
14660 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
14664 for x
in $LDFLAGS $LTLIBIPT; do
14666 acl_save_prefix
="$prefix"
14667 prefix
="$acl_final_prefix"
14668 acl_save_exec_prefix
="$exec_prefix"
14669 exec_prefix
="$acl_final_exec_prefix"
14671 exec_prefix
="$acl_save_exec_prefix"
14672 prefix
="$acl_save_prefix"
14674 if test "X$x" = "X-L$additional_libdir"; then
14679 if test -z "$haveit"; then
14680 if test -d "$additional_libdir"; then
14681 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
14688 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
14689 if test "$enable_rpath" != no
; then
14691 for x
in $rpathdirs; do
14692 if test "X$x" = "X$dir"; then
14697 if test -z "$haveit"; then
14698 rpathdirs
="$rpathdirs $dir"
14701 for x
in $ltrpathdirs; do
14702 if test "X$x" = "X$dir"; then
14707 if test -z "$haveit"; then
14708 ltrpathdirs
="$ltrpathdirs $dir"
14713 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14716 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14719 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
14720 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
14726 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
14727 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
14728 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
14730 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
14731 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
14738 if test "X$rpathdirs" != "X"; then
14739 if test -n "$hardcode_libdir_separator"; then
14741 for found_dir
in $rpathdirs; do
14742 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14744 acl_save_libdir
="$libdir"
14746 eval flag
=\"$hardcode_libdir_flag_spec\"
14747 libdir
="$acl_save_libdir"
14748 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
14750 for found_dir
in $rpathdirs; do
14751 acl_save_libdir
="$libdir"
14752 libdir
="$found_dir"
14753 eval flag
=\"$hardcode_libdir_flag_spec\"
14754 libdir
="$acl_save_libdir"
14755 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
14759 if test "X$ltrpathdirs" != "X"; then
14760 for found_dir
in $ltrpathdirs; do
14761 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
14766 ac_save_CPPFLAGS
="$CPPFLAGS"
14768 for element
in $INCIPT; do
14770 for x
in $CPPFLAGS; do
14772 acl_save_prefix
="$prefix"
14773 prefix
="$acl_final_prefix"
14774 acl_save_exec_prefix
="$exec_prefix"
14775 exec_prefix
="$acl_final_exec_prefix"
14777 exec_prefix
="$acl_save_exec_prefix"
14778 prefix
="$acl_save_prefix"
14780 if test "X$x" = "X$element"; then
14785 if test -z "$haveit"; then
14786 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
14792 $as_echo_n "checking for libipt... " >&6; }
14793 if ${ac_cv_libipt+:} false
; then :
14794 $as_echo_n "(cached) " >&6
14797 ac_save_LIBS
="$LIBS"
14798 LIBS
="$LIBS $LIBIPT"
14799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14800 /* end confdefs.h. */
14801 #include "intel-pt.h"
14805 pt_insn_alloc_decoder (0);
14810 if ac_fn_c_try_link
"$LINENO"; then :
14815 rm -f core conftest.err conftest.
$ac_objext \
14816 conftest
$ac_exeext conftest.
$ac_ext
14817 LIBS
="$ac_save_LIBS"
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
14821 $as_echo "$ac_cv_libipt" >&6; }
14822 if test "$ac_cv_libipt" = yes; then
14825 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
14828 $as_echo_n "checking how to link with libipt... " >&6; }
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
14830 $as_echo "$LIBIPT" >&6; }
14833 CPPFLAGS
="$ac_save_CPPFLAGS"
14843 if test "$HAVE_LIBIPT" != yes; then
14844 if test "$with_intel_pt" = yes; then
14845 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
14848 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
14852 LIBS
="$LIBS $LIBIPT"
14853 for ac_func
in pt_insn_event
14855 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
14856 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
14857 cat >>confdefs.h
<<_ACEOF
14858 #define HAVE_PT_INSN_EVENT 1
14864 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
14866 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
14868 cat >>confdefs.h
<<_ACEOF
14869 #define HAVE_STRUCT_PT_INSN_ENABLED 1
14874 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
14876 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
14878 cat >>confdefs.h
<<_ACEOF
14879 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
14890 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
14892 for ac_header
in sys
/procfs.h
14894 ac_fn_c_check_header_mongrel
"$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
14895 if test "x$ac_cv_header_sys_procfs_h" = xyes
; then :
14896 cat >>confdefs.h
<<_ACEOF
14897 #define HAVE_SYS_PROCFS_H 1
14904 if test "$ac_cv_header_sys_procfs_h" = yes; then
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
14907 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
14908 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
14909 $as_echo_n "(cached) " >&6
14911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14912 /* end confdefs.h. */
14915 #include <sys/procfs.h>
14924 if ac_fn_c_try_compile
"$LINENO"; then :
14925 bfd_cv_have_sys_procfs_type_gregset_t
=yes
14927 bfd_cv_have_sys_procfs_type_gregset_t
=no
14930 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14933 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
14935 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
14939 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
14943 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
14944 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
14945 $as_echo_n "(cached) " >&6
14947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14948 /* end confdefs.h. */
14951 #include <sys/procfs.h>
14960 if ac_fn_c_try_compile
"$LINENO"; then :
14961 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
14963 bfd_cv_have_sys_procfs_type_fpregset_t
=no
14966 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14969 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
14971 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
14975 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
14979 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
14980 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
14981 $as_echo_n "(cached) " >&6
14983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14984 /* end confdefs.h. */
14987 #include <sys/procfs.h>
14996 if ac_fn_c_try_compile
"$LINENO"; then :
14997 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
14999 bfd_cv_have_sys_procfs_type_prgregset_t
=no
15002 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15005 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
15007 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
15011 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
15015 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
15016 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
15017 $as_echo_n "(cached) " >&6
15019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15020 /* end confdefs.h. */
15023 #include <sys/procfs.h>
15032 if ac_fn_c_try_compile
"$LINENO"; then :
15033 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
15035 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
15038 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15041 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
15043 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
15047 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
15051 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
15052 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
15053 $as_echo_n "(cached) " >&6
15055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15056 /* end confdefs.h. */
15059 #include <sys/procfs.h>
15068 if ac_fn_c_try_compile
"$LINENO"; then :
15069 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
15071 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
15074 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15077 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
15079 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
15083 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
15087 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
15088 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
15089 $as_echo_n "(cached) " >&6
15091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15092 /* end confdefs.h. */
15095 #include <sys/procfs.h>
15104 if ac_fn_c_try_compile
"$LINENO"; then :
15105 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
15107 bfd_cv_have_sys_procfs_type_lwpid_t
=no
15110 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15113 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
15115 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
15119 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
15123 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
15124 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
15125 $as_echo_n "(cached) " >&6
15127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15128 /* end confdefs.h. */
15131 #include <sys/procfs.h>
15140 if ac_fn_c_try_compile
"$LINENO"; then :
15141 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
15143 bfd_cv_have_sys_procfs_type_psaddr_t
=no
15146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15149 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
15151 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
15155 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
15159 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
15160 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
15161 $as_echo_n "(cached) " >&6
15163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15164 /* end confdefs.h. */
15167 #include <sys/procfs.h>
15171 elf_fpregset_t avar
15176 if ac_fn_c_try_compile
"$LINENO"; then :
15177 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
15179 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
15182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15185 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
15187 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
15191 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
15196 # Check the return and argument types of ptrace.
15199 for ac_header
in sys
/ptrace.h ptrace.h
15201 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15202 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15203 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
15204 cat >>confdefs.h
<<_ACEOF
15205 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15213 gdb_ptrace_headers
='
15214 #include <sys/types.h>
15215 #if HAVE_SYS_PTRACE_H
15216 # include <sys/ptrace.h>
15219 # include <unistd.h>
15223 # Check return type. Varargs (used on GNU/Linux) conflict with the
15224 # empty argument list, so check for that explicitly.
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
15226 $as_echo_n "checking return type of ptrace... " >&6; }
15227 if ${gdb_cv_func_ptrace_ret+:} false
; then :
15228 $as_echo_n "(cached) " >&6
15230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15231 /* end confdefs.h. */
15232 $gdb_ptrace_headers
15236 extern long ptrace (enum __ptrace_request, ...);
15241 if ac_fn_c_try_compile
"$LINENO"; then :
15242 gdb_cv_func_ptrace_ret
='long'
15244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15245 /* end confdefs.h. */
15246 $gdb_ptrace_headers
15250 extern int ptrace ();
15255 if ac_fn_c_try_compile
"$LINENO"; then :
15256 gdb_cv_func_ptrace_ret
='int'
15258 gdb_cv_func_ptrace_ret
='long'
15260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
15265 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
15267 cat >>confdefs.h
<<_ACEOF
15268 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
15271 # Check argument types.
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
15273 $as_echo_n "checking types of arguments for ptrace... " >&6; }
15274 if ${gdb_cv_func_ptrace_args+:} false
; then :
15275 $as_echo_n "(cached) " >&6
15278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15279 /* end confdefs.h. */
15280 $gdb_ptrace_headers
15284 extern long ptrace (enum __ptrace_request, ...);
15289 if ac_fn_c_try_compile
"$LINENO"; then :
15290 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
15293 for gdb_arg1
in 'int' 'long'; do
15294 for gdb_arg2
in 'pid_t' 'int' 'long'; do
15295 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
15296 for gdb_arg4
in 'int' 'long' 'void *'; do
15297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15298 /* end confdefs.h. */
15299 $gdb_ptrace_headers
15304 extern $gdb_cv_func_ptrace_ret
15305 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
15311 if ac_fn_c_try_compile
"$LINENO"; then :
15312 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
15315 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15316 for gdb_arg5
in 'int *' 'int' 'long'; do
15317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15318 /* end confdefs.h. */
15319 $gdb_ptrace_headers
15324 extern $gdb_cv_func_ptrace_ret
15325 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
15331 if ac_fn_c_try_compile
"$LINENO"; then :
15333 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
15336 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15342 # Provide a safe default value.
15343 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
15346 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
15349 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
15350 ac_save_IFS
=$IFS; IFS
=','
15351 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
15355 cat >>confdefs.h
<<_ACEOF
15356 #define PTRACE_TYPE_ARG1 $1
15360 cat >>confdefs.h
<<_ACEOF
15361 #define PTRACE_TYPE_ARG3 $3
15365 cat >>confdefs.h
<<_ACEOF
15366 #define PTRACE_TYPE_ARG4 $4
15369 if test -n "$5"; then
15371 cat >>confdefs.h
<<_ACEOF
15372 #define PTRACE_TYPE_ARG5 $5
15378 if test "$cross_compiling" = no
; then
15379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
15380 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
15381 if ${ac_cv_func_setpgrp_void+:} false
; then :
15382 $as_echo_n "(cached) " >&6
15384 if test "$cross_compiling" = yes; then :
15385 as_fn_error $?
"cannot check setpgrp when cross compiling" "$LINENO" 5
15387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15388 /* end confdefs.h. */
15389 $ac_includes_default
15393 /* If this system has a BSD-style setpgrp which takes arguments,
15394 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
15395 exit successfully. */
15396 return setpgrp (1,1) != -1;
15401 if ac_fn_c_try_run
"$LINENO"; then :
15402 ac_cv_func_setpgrp_void
=no
15404 ac_cv_func_setpgrp_void
=yes
15406 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15407 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
15412 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
15413 if test $ac_cv_func_setpgrp_void = yes; then
15415 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
15421 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
15422 if ${ac_cv_func_setpgrp_void+:} false
; then :
15423 $as_echo_n "(cached) " >&6
15425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15426 /* end confdefs.h. */
15428 #include <unistd.h>
15434 if (setpgrp(1,1) == -1)
15443 if ac_fn_c_try_compile
"$LINENO"; then :
15444 ac_cv_func_setpgrp_void
=no
15446 ac_cv_func_setpgrp_void
=yes
15448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
15451 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
15452 if test "$ac_cv_func_setpgrp_void" = yes; then
15453 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
15458 # Assume we'll default to using the included libiberty regex.
15459 gdb_use_included_regex
=yes
15461 # However, if the system regex is GNU regex, then default to *not*
15462 # using the included regex.
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
15464 $as_echo_n "checking for GNU regex... " >&6; }
15465 if ${gdb_cv_have_gnu_regex+:} false
; then :
15466 $as_echo_n "(cached) " >&6
15468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15469 /* end confdefs.h. */
15470 #include <gnu-versions.h>
15474 #define REGEX_INTERFACE_VERSION 1
15475 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
15476 # error "Version mismatch"
15482 if ac_fn_c_try_compile
"$LINENO"; then :
15483 gdb_cv_have_gnu_regex
=yes
15485 gdb_cv_have_gnu_regex
=no
15487 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
15490 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
15491 if test "$gdb_cv_have_gnu_regex" = yes; then
15492 gdb_use_included_regex
=no
15496 # Check whether --with-included-regex was given.
15497 if test "${with_included_regex+set}" = set; then :
15498 withval
=$with_included_regex; gdb_with_regex
=$withval
15500 gdb_with_regex
=$gdb_use_included_regex
15503 if test "$gdb_with_regex" = yes; then
15505 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
15509 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
15510 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
15511 #include <sys/proc.h>
15514 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes
; then :
15516 cat >>confdefs.h
<<_ACEOF
15517 #define HAVE_STRUCT_THREAD_TD_PCB 1
15524 # See if <sys/lwp.h> defines `struct lwp`.
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
15526 $as_echo_n "checking for struct lwp... " >&6; }
15527 if ${gdb_cv_struct_lwp+:} false
; then :
15528 $as_echo_n "(cached) " >&6
15530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15531 /* end confdefs.h. */
15532 #include <sys/param.h>
15534 #include <sys/lwp.h>
15543 if ac_fn_c_try_compile
"$LINENO"; then :
15544 gdb_cv_struct_lwp
=yes
15546 gdb_cv_struct_lwp
=no
15548 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
15551 $as_echo "$gdb_cv_struct_lwp" >&6; }
15552 if test "$gdb_cv_struct_lwp" = yes; then
15554 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
15558 # See if <machine/reg.h> degines `struct reg'.
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
15560 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
15561 if ${gdb_cv_struct_reg+:} false
; then :
15562 $as_echo_n "(cached) " >&6
15564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15565 /* end confdefs.h. */
15566 #include <sys/types.h>
15567 #include <machine/reg.h>
15576 if ac_fn_c_try_compile
"$LINENO"; then :
15577 gdb_cv_struct_reg
=yes
15579 gdb_cv_struct_reg
=no
15581 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
15584 $as_echo "$gdb_cv_struct_reg" >&6; }
15585 if test "$gdb_cv_struct_reg" = yes; then
15587 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
15591 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
15592 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
15593 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
15594 #include <machine/reg.h>
15596 if test "x$ac_cv_member_struct_reg_r_fs" = xyes
; then :
15598 cat >>confdefs.h
<<_ACEOF
15599 #define HAVE_STRUCT_REG_R_FS 1
15604 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
15605 #include <machine/reg.h>
15607 if test "x$ac_cv_member_struct_reg_r_gs" = xyes
; then :
15609 cat >>confdefs.h
<<_ACEOF
15610 #define HAVE_STRUCT_REG_R_GS 1
15617 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
15619 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
15620 if ${gdb_cv_have_ptrace_getregs+:} false
; then :
15621 $as_echo_n "(cached) " >&6
15623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15624 /* end confdefs.h. */
15625 #include <sys/ptrace.h>
15634 if ac_fn_c_try_compile
"$LINENO"; then :
15635 gdb_cv_have_ptrace_getregs
=yes
15637 gdb_cv_have_ptrace_getregs
=no
15639 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
15643 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
15644 if test "$gdb_cv_have_ptrace_getregs" = yes; then
15646 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
15650 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
15652 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
15653 if ${gdb_cv_have_ptrace_getfpxregs+:} false
; then :
15654 $as_echo_n "(cached) " >&6
15656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15657 /* end confdefs.h. */
15658 #include <sys/ptrace.h>
15667 if ac_fn_c_try_compile
"$LINENO"; then :
15668 gdb_cv_have_ptrace_getfpxregs
=yes
15670 gdb_cv_have_ptrace_getfpxregs
=no
15672 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
15676 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
15677 if test "$gdb_cv_have_ptrace_getfpxregs" = yes; then
15679 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
15683 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
15685 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
15686 if ${gdb_cv_have_pt_getdbregs+:} false
; then :
15687 $as_echo_n "(cached) " >&6
15689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15690 /* end confdefs.h. */
15691 #include <sys/types.h>
15692 #include <sys/ptrace.h>
15701 if ac_fn_c_try_compile
"$LINENO"; then :
15702 gdb_cv_have_pt_getdbregs
=yes
15704 gdb_cv_have_pt_getdbregs
=no
15706 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
15710 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
15711 if test "$gdb_cv_have_pt_getdbregs" = yes; then
15713 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
15717 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
15719 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
15720 if ${gdb_cv_have_pt_getxmmregs+:} false
; then :
15721 $as_echo_n "(cached) " >&6
15723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15724 /* end confdefs.h. */
15725 #include <sys/types.h>
15726 #include <sys/ptrace.h>
15735 if ac_fn_c_try_compile
"$LINENO"; then :
15736 gdb_cv_have_pt_getxmmregs
=yes
15738 gdb_cv_have_pt_getxmmregs
=no
15740 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
15744 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
15745 if test "$gdb_cv_have_pt_getxmmregs" = yes; then
15747 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
15751 # See if <sys/ptrace.h> supports LWP names on FreeBSD
15752 # Older FreeBSD versions don't have the pl_tdname member of
15753 # `struct ptrace_lwpinfo'.
15754 ac_fn_c_check_member
"$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
15756 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes
; then :
15758 cat >>confdefs.h
<<_ACEOF
15759 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
15766 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
15767 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
15769 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>
15771 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes
; then :
15773 cat >>confdefs.h
<<_ACEOF
15774 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
15781 # Check if the compiler supports the `long long' type.
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
15784 $as_echo_n "checking for long long support in compiler... " >&6; }
15785 if ${gdb_cv_c_long_long+:} false
; then :
15786 $as_echo_n "(cached) " >&6
15788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15789 /* end confdefs.h. */
15790 extern long long foo;
15794 switch (foo & 2) { case 0: return 1; }
15799 if ac_fn_c_try_compile
"$LINENO"; then :
15800 gdb_cv_c_long_long
=yes
15802 gdb_cv_c_long_long
=no
15804 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
15807 $as_echo "$gdb_cv_c_long_long" >&6; }
15808 if test "$gdb_cv_c_long_long" != yes; then
15809 # libdecnumber requires long long.
15810 as_fn_error $?
"Compiler must support long long for GDB." "$LINENO" 5
15813 # Check if the compiler and runtime support printing long longs.
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
15816 $as_echo_n "checking for long long support in printf... " >&6; }
15817 if ${gdb_cv_printf_has_long_long+:} false
; then :
15818 $as_echo_n "(cached) " >&6
15820 if test "$cross_compiling" = yes; then :
15821 gdb_cv_printf_has_long_long
=no
15823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15824 /* end confdefs.h. */
15825 $ac_includes_default
15831 l = (l << 16) + 0x0123;
15832 l = (l << 16) + 0x4567;
15833 l = (l << 16) + 0x89ab;
15834 l = (l << 16) + 0xcdef;
15835 sprintf (buf, "0x%016llx", l);
15836 return (strcmp ("0x0123456789abcdef", buf));
15841 if ac_fn_c_try_run
"$LINENO"; then :
15842 gdb_cv_printf_has_long_long
=yes
15844 gdb_cv_printf_has_long_long
=no
15846 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15847 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
15852 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
15853 if test "$gdb_cv_printf_has_long_long" = yes; then
15855 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
15859 # Check if the compiler and runtime support printing decfloats.
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
15862 $as_echo_n "checking for decfloat support in printf... " >&6; }
15863 if ${gdb_cv_printf_has_decfloat+:} false
; then :
15864 $as_echo_n "(cached) " >&6
15866 if test "$cross_compiling" = yes; then :
15867 gdb_cv_printf_has_decfloat
=no
15869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15870 /* end confdefs.h. */
15871 $ac_includes_default
15876 _Decimal32 d32 = 1.2345df;
15877 _Decimal64 d64 = 1.2345dd;
15878 _Decimal128 d128 = 1.2345dl;
15879 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
15880 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
15885 if ac_fn_c_try_run
"$LINENO"; then :
15886 gdb_cv_printf_has_decfloat
=yes
15888 gdb_cv_printf_has_decfloat
=no
15890 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15891 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
15896 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
15897 if test "$gdb_cv_printf_has_decfloat" = yes; then
15899 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
15903 # Check if the compiler supports the `long double' type. We can't use
15904 # AC_C_LONG_DOUBLE because that one does additional checks on the
15905 # constants defined in <float.h> that fail on some systems,
15906 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
15909 $as_echo_n "checking for long double support in compiler... " >&6; }
15910 if ${gdb_cv_c_long_double+:} false
; then :
15911 $as_echo_n "(cached) " >&6
15913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15914 /* end confdefs.h. */
15917 if ac_fn_c_try_compile
"$LINENO"; then :
15918 gdb_cv_c_long_double
=yes
15920 gdb_cv_c_long_double
=no
15922 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
15925 $as_echo "$gdb_cv_c_long_double" >&6; }
15926 if test "$gdb_cv_c_long_double" = yes; then
15928 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
15932 # Check if the compiler and runtime support printing long doubles.
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
15935 $as_echo_n "checking for long double support in printf... " >&6; }
15936 if ${gdb_cv_printf_has_long_double+:} false
; then :
15937 $as_echo_n "(cached) " >&6
15939 if test "$cross_compiling" = yes; then :
15940 gdb_cv_printf_has_long_double
=no
15942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15943 /* end confdefs.h. */
15944 $ac_includes_default
15949 long double f = 3.141592653;
15950 sprintf (buf, "%Lg", f);
15951 return (strncmp ("3.14159", buf, 7));
15956 if ac_fn_c_try_run
"$LINENO"; then :
15957 gdb_cv_printf_has_long_double
=yes
15959 gdb_cv_printf_has_long_double
=no
15961 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15962 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
15967 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
15968 if test "$gdb_cv_printf_has_long_double" = yes; then
15970 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
15974 # Check if the compiler and runtime support scanning long doubles.
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
15977 $as_echo_n "checking for long double support in scanf... " >&6; }
15978 if ${gdb_cv_scanf_has_long_double+:} false
; then :
15979 $as_echo_n "(cached) " >&6
15981 if test "$cross_compiling" = yes; then :
15982 gdb_cv_scanf_has_long_double
=no
15984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15985 /* end confdefs.h. */
15990 char *buf = "3.141592653";
15992 sscanf (buf, "%Lg", &f);
15993 return !(f > 3.14159 && f < 3.14160);
15998 if ac_fn_c_try_run
"$LINENO"; then :
15999 gdb_cv_scanf_has_long_double
=yes
16001 gdb_cv_scanf_has_long_double
=no
16003 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16004 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
16009 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
16010 if test "$gdb_cv_scanf_has_long_double" = yes; then
16012 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
16019 $as_echo_n "checking for -bbigtoc option... " >&6; }
16020 if ${gdb_cv_bigtoc+:} false
; then :
16021 $as_echo_n "(cached) " >&6
16024 SAVE_LDFLAGS
=$LDFLAGS
16027 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
16028 *) gdb_cv_bigtoc
=-bbigtoc ;;
16031 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
16032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16033 /* end confdefs.h. */
16043 if ac_fn_c_try_link
"$LINENO"; then :
16048 rm -f core conftest.err conftest.
$ac_objext \
16049 conftest
$ac_exeext conftest.
$ac_ext
16050 LDFLAGS
="${SAVE_LDFLAGS}"
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
16054 $as_echo "$gdb_cv_bigtoc" >&6; }
16055 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
16059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
16060 $as_echo_n "checking for the dynamic export flag... " >&6; }
16062 if test "${gdb_native}" = yes; then
16063 # The dynamically loaded libthread_db needs access to symbols in the gdb
16064 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
16065 # may not be supported there.
16066 old_LDFLAGS
="$LDFLAGS"
16067 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
16068 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
16069 LDFLAGS
="$LDFLAGS $RDYNAMIC"
16070 if test "${have_libpython}" = no
; then
16071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16072 /* end confdefs.h. */
16082 if ac_fn_c_try_link
"$LINENO"; then :
16085 rm -f core conftest.err conftest.
$ac_objext \
16086 conftest
$ac_exeext conftest.
$ac_ext
16088 # Workaround http://bugs.python.org/issue4434 where static
16089 # libpythonX.Y.a would get its symbols required for
16090 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
16091 # Problem does not happen for the recommended libpythonX.Y.so linkage.
16093 # Note the workaround for Python
16094 # http://bugs.python.org/issue10112 earlier has removed
16095 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
16096 # here too, as otherwise it'd make this -Wl,--dynamic-list test
16098 old_CFLAGS
="$CFLAGS"
16099 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
16101 LIBS
="$LIBS $PYTHON_LIBS"
16102 old_CPPFLAGS
="$CPPFLAGS"
16103 CPPFLAGS
="$CPPFLAGS $PYTHON_CPPFLAGS"
16104 if test "$cross_compiling" = yes; then :
16107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16108 /* end confdefs.h. */
16109 #include "Python.h"
16115 err = PyRun_SimpleString ("import itertools\n");
16117 return err == 0 ? 0 : 1;
16122 if ac_fn_c_try_run
"$LINENO"; then :
16125 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16126 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16130 CFLAGS
="$old_CFLAGS"
16131 CPPFLAGS
="$old_CPPFLAGS"
16133 LDFLAGS
="$old_LDFLAGS"
16135 if $dynamic_list; then
16136 found
="-Wl,--dynamic-list"
16137 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
16140 RDYNAMIC
="-rdynamic"
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
16144 $as_echo "$found" >&6; }
16147 if test "${build}" = "${host}" -a "${host}" = "${target}" ; then
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
16151 $as_echo_n "checking for AiX thread debugging library... " >&6; }
16152 if ${gdb_cv_have_aix_thread_debug+:} false
; then :
16153 $as_echo_n "(cached) " >&6
16155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16156 /* end confdefs.h. */
16157 #include <sys/pthdebug.h>
16161 #ifndef PTHDB_VERSION_3
16168 if ac_fn_c_try_compile
"$LINENO"; then :
16169 gdb_cv_have_aix_thread_debug
=yes
16171 gdb_cv_have_aix_thread_debug
=no
16173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
16177 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
16178 if test "$gdb_cv_have_aix_thread_debug" = yes; then
16179 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
16180 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
16181 LIBS
="$LIBS -lpthdebug"
16183 # Older versions of AIX do not provide the declaration for
16184 # the getthrds function (it appears that it was introduced
16186 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
16188 if test "x$ac_cv_have_decl_getthrds" = xyes
; then :
16194 cat >>confdefs.h
<<_ACEOF
16195 #define HAVE_DECL_GETTHRDS $ac_have_decl
16204 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
16206 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
16207 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false
; then :
16208 $as_echo_n "(cached) " >&6
16210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16211 /* end confdefs.h. */
16212 #include <thread_db.h>
16216 int i = TD_NOTALLOC;
16221 if ac_fn_c_try_compile
"$LINENO"; then :
16222 gdb_cv_thread_db_h_has_td_notalloc
=yes
16224 gdb_cv_thread_db_h_has_td_notalloc
=no
16227 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
16231 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
16233 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
16234 if ${gdb_cv_thread_db_h_has_td_version+:} false
; then :
16235 $as_echo_n "(cached) " >&6
16237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16238 /* end confdefs.h. */
16239 #include <thread_db.h>
16243 int i = TD_VERSION;
16248 if ac_fn_c_try_compile
"$LINENO"; then :
16249 gdb_cv_thread_db_h_has_td_version
=yes
16251 gdb_cv_thread_db_h_has_td_version
=no
16254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
16258 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
16260 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
16261 if ${gdb_cv_thread_db_h_has_td_notls+:} false
; then :
16262 $as_echo_n "(cached) " >&6
16264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16265 /* end confdefs.h. */
16266 #include <thread_db.h>
16275 if ac_fn_c_try_compile
"$LINENO"; then :
16276 gdb_cv_thread_db_h_has_td_notls
=yes
16278 gdb_cv_thread_db_h_has_td_notls
=no
16281 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
16285 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
16287 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
16289 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
16292 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
16294 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
16297 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
16299 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
16312 cat >>confdefs.h
<<_ACEOF
16313 #define GDBINIT "$gdbinit"
16318 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
16319 # except that the argument to --with-sysroot is optional.
16320 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
16321 if test "x$with_sysroot" = xyes
; then
16322 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
16325 # Check whether --with-sysroot was given.
16326 if test "${with_sysroot+set}" = set; then :
16327 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
16329 TARGET_SYSTEM_ROOT
=
16333 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16334 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16335 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
16336 ac_define_dir
=`eval echo $ac_define_dir`
16338 cat >>confdefs.h
<<_ACEOF
16339 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
16345 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16346 if test "x$prefix" = xNONE
; then
16347 test_prefix
=/usr
/local
16349 test_prefix
=$prefix
16352 test_prefix
=$exec_prefix
16355 case ${ac_define_dir} in
16356 "${test_prefix}"|
"${test_prefix}/"*|\
16357 '${exec_prefix}'|
'${exec_prefix}/'*)
16362 cat >>confdefs.h
<<_ACEOF
16363 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
16370 # Check whether --with-system-gdbinit was given.
16371 if test "${with_system_gdbinit+set}" = set; then :
16372 withval
=$with_system_gdbinit;
16373 SYSTEM_GDBINIT
=$withval
16379 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16380 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16381 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
16382 ac_define_dir
=`eval echo $ac_define_dir`
16384 cat >>confdefs.h
<<_ACEOF
16385 #define SYSTEM_GDBINIT "$ac_define_dir"
16391 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16392 if test "x$prefix" = xNONE
; then
16393 test_prefix
=/usr
/local
16395 test_prefix
=$prefix
16398 test_prefix
=$exec_prefix
16401 case ${ac_define_dir} in
16402 "${test_prefix}"|
"${test_prefix}/"*|\
16403 '${exec_prefix}'|
'${exec_prefix}/'*)
16408 cat >>confdefs.h
<<_ACEOF
16409 #define SYSTEM_GDBINIT_RELOCATABLE $value
16416 # Check whether --with-system-gdbinit-dir was given.
16417 if test "${with_system_gdbinit_dir+set}" = set; then :
16418 withval
=$with_system_gdbinit_dir;
16419 SYSTEM_GDBINIT_DIR
=$withval
16421 SYSTEM_GDBINIT_DIR
=
16425 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16426 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16427 ac_define_dir
=`eval echo $SYSTEM_GDBINIT_DIR`
16428 ac_define_dir
=`eval echo $ac_define_dir`
16430 cat >>confdefs.h
<<_ACEOF
16431 #define SYSTEM_GDBINIT_DIR "$ac_define_dir"
16437 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16438 if test "x$prefix" = xNONE
; then
16439 test_prefix
=/usr
/local
16441 test_prefix
=$prefix
16444 test_prefix
=$exec_prefix
16447 case ${ac_define_dir} in
16448 "${test_prefix}"|
"${test_prefix}/"*|\
16449 '${exec_prefix}'|
'${exec_prefix}/'*)
16454 cat >>confdefs.h
<<_ACEOF
16455 #define SYSTEM_GDBINIT_DIR_RELOCATABLE $value
16462 # Check whether --enable-werror was given.
16463 if test "${enable_werror+set}" = set; then :
16464 enableval
=$enable_werror; case "${enableval}" in
16465 yes | y
) ERROR_ON_WARNING
="yes" ;;
16466 no | n
) ERROR_ON_WARNING
="no" ;;
16467 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16472 # Enable -Werror by default when using gcc. Turn it off for releases.
16473 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
16474 ERROR_ON_WARNING
=yes
16478 if test "${ERROR_ON_WARNING}" = yes ; then
16479 WERROR_CFLAGS
="-Werror"
16482 # The options we'll try to enable.
16483 build_warnings
="-Wall -Wpointer-arith \
16484 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
16485 -Wno-switch -Wno-char-subscripts \
16486 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
16487 -Wno-sign-compare -Wno-error=maybe-uninitialized \
16488 -Wno-mismatched-tags \
16489 -Wno-error=deprecated-register \
16490 -Wsuggest-override \
16491 -Wimplicit-fallthrough=3 \
16492 -Wduplicated-cond \
16494 -Wdeprecated-copy \
16495 -Wdeprecated-copy-dtor \
16497 -Wmissing-declarations \
16498 -Wmissing-prototypes \
16499 -Wstrict-null-sentinel \
16504 # Enable -Wno-format by default when using gcc on mingw since many
16505 # GCC versions complain about %I64.
16506 build_warnings
="$build_warnings -Wno-format" ;;
16508 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
16509 # doesn't understand.
16510 build_warnings
="$build_warnings -Wno-unknown-pragmas"
16511 # Solaris 11 <unistd.h> marks vfork deprecated.
16512 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
16514 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
16515 # but there's a special case for this below.
16516 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
16519 # Check whether --enable-build-warnings was given.
16520 if test "${enable_build_warnings+set}" = set; then :
16521 enableval
=$enable_build_warnings; case "${enableval}" in
16523 no
) build_warnings
="-w";;
16524 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16525 build_warnings
="${build_warnings} ${t}";;
16526 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16527 build_warnings
="${t} ${build_warnings}";;
16528 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16530 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
16531 echo "Setting compiler warning flags = $build_warnings" 6>&1
16534 # Check whether --enable-gdb-build-warnings was given.
16535 if test "${enable_gdb_build_warnings+set}" = set; then :
16536 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
16538 no
) build_warnings
="-w";;
16539 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16540 build_warnings
="${build_warnings} ${t}";;
16541 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16542 build_warnings
="${t} ${build_warnings}";;
16543 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16545 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
16546 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
16550 # The set of warnings supported by a C++ compiler is not the same as
16551 # of the C compiler.
16553 ac_cpp
='$CXXCPP $CPPFLAGS'
16554 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16555 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16556 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
16560 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
16563 $as_echo_n "checking compiler warning flags... " >&6; }
16564 # Separate out the -Werror flag as some files just cannot be
16565 # compiled with it enabled.
16566 for w
in ${build_warnings}; do
16567 # GCC does not complain about -Wno-unknown-warning. Invert
16568 # and test -Wunknown-warning instead.
16571 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
16572 -Wformat-nonliteral)
16573 # gcc requires -Wformat before -Wformat-nonliteral
16574 # will work, so stick them together.
16583 -Werr*) WERROR_CFLAGS
=-Werror ;;
16585 # Check whether GCC accepts it.
16586 saved_CFLAGS
="$CFLAGS"
16587 CFLAGS
="$CFLAGS -Werror $wtest"
16588 saved_CXXFLAGS
="$CXXFLAGS"
16589 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
16590 if test "x$w" = "x-Wunused-variable"; then
16591 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
16592 # fixed in GCC 4.9. This test is derived from the gdb
16593 # source code that triggered this bug in GCC.
16594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16595 /* end confdefs.h. */
16596 struct scoped_restore_base {};
16597 struct scoped_restore_tmpl : public scoped_restore_base {
16598 ~scoped_restore_tmpl() {}
16603 const scoped_restore_base &b = scoped_restore_tmpl();
16608 if ac_fn_cxx_try_compile
"$LINENO"; then :
16609 WARN_CFLAGS
="${WARN_CFLAGS} $w"
16611 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16614 /* end confdefs.h. */
16624 if ac_fn_cxx_try_compile
"$LINENO"; then :
16625 WARN_CFLAGS
="${WARN_CFLAGS} $w"
16627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16629 CFLAGS
="$saved_CFLAGS"
16630 CXXFLAGS
="$saved_CXXFLAGS"
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
16634 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
16640 ac_cpp='$CPP $CPPFLAGS'
16641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16647 # Check whether --enable-ubsan was given.
16648 if test "${enable_ubsan+set}" = set; then :
16649 enableval=$enable_ubsan;
16654 if test "x
$enable_ubsan" = xauto; then
16655 if $development; then
16660 ac_cpp='$CXXCPP $CPPFLAGS'
16661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16665 if test "x
$enable_ubsan" = xyes; then
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
-fsanitize=undefined is accepted
" >&5
16667 $as_echo_n "checking whether
-fsanitize=undefined is accepted...
" >&6; }
16668 saved_CXXFLAGS="$CXXFLAGS"
16669 CXXFLAGS="$CXXFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
16670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16671 /* end confdefs.h. */
16681 if ac_fn_cxx_try_link "$LINENO"; then :
16686 rm -f core conftest.err conftest.$ac_objext \
16687 conftest$ac_exeext conftest.$ac_ext
16688 CXXFLAGS="$saved_CXXFLAGS"
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $enable_ubsan" >&5
16690 $as_echo "$enable_ubsan" >&6; }
16691 if test "x
$enable_ubsan" = xyes; then
16692 WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
16693 CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined
"
16697 ac_cpp='$CPP $CPPFLAGS'
16698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16704 # In the Cygwin environment, we need some additional flags.
16705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
16706 $as_echo_n "checking
for cygwin...
" >&6; }
16707 if ${gdb_cv_os_cygwin+:} false; then :
16708 $as_echo_n "(cached
) " >&6
16710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16711 /* end confdefs.h. */
16713 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
16717 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
16718 $EGREP "^lose$
" >/dev/null 2>&1; then :
16719 gdb_cv_os_cygwin=yes
16721 gdb_cv_os_cygwin=no
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
16727 $as_echo "$gdb_cv_os_cygwin" >&6; }
16730 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
16732 *go32* ) SER_HARDWIRE=ser-go32.o ;;
16733 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
16734 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
16735 *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o
" ;;
16739 # libreadline needs libuser32.a in a cygwin environment
16741 if test x"$gdb_cv_os_cygwin" = xyes; then
16742 WIN32LIBS="-luser32"
16743 case "${target}" in
16744 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
16749 # The ser-tcp.c module requires sockets.
16750 # Note that WIN32APILIBS is set by GDB_AC_COMMON.
16751 WIN32LIBS="$WIN32LIBS $WIN32APILIBS"
16753 # Add ELF support to GDB, but only if BFD includes ELF support.
16756 OLD_LDFLAGS=$LDFLAGS
16758 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
16759 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
16760 # always want our bfd.
16761 CFLAGS="-I${srcdir}/..
/include
-I..
/bfd
-I${srcdir}/..
/bfd
$CFLAGS"
16762 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
16763 LDFLAGS="-L..
/bfd
-L..
/libiberty
$ZLIBDIR $LDFLAGS"
16764 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
16765 LIBS="-lbfd -liberty -lz $intl $LIBS"
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ELF support
in BFD
" >&5
16767 $as_echo_n "checking
for ELF support
in BFD...
" >&6; }
16768 if ${gdb_cv_var_elf+:} false; then :
16769 $as_echo_n "(cached
) " >&6
16771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16772 /* end confdefs.h. */
16773 #include <stdlib.h>
16775 #include "elf-bfd.h
"
16780 return bfd_get_elf_phdr_upper_bound (NULL);
16785 if ac_fn_c_try_link "$LINENO"; then :
16790 rm -f core conftest.err conftest.$ac_objext \
16791 conftest$ac_exeext conftest.$ac_ext
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_var_elf" >&5
16794 $as_echo "$gdb_cv_var_elf" >&6; }
16796 LDFLAGS=$OLD_LDFLAGS
16798 if test "$gdb_cv_var_elf" = yes; then
16799 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o
"
16801 $as_echo "#define HAVE_ELF 1" >>confdefs.h
16803 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
16804 if test "$plugins" = "yes"; then
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16806 $as_echo_n "checking for library containing dlopen... " >&6; }
16807 if ${ac_cv_search_dlopen+:} false
; then :
16808 $as_echo_n "(cached) " >&6
16810 ac_func_search_save_LIBS
=$LIBS
16811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16812 /* end confdefs.h. */
16814 /* Override any GCC internal prototype to avoid an error.
16815 Use char because int might match the return type of a GCC
16816 builtin and then its argument prototype would still apply. */
16829 for ac_lib
in '' dl
; do
16830 if test -z "$ac_lib"; then
16831 ac_res
="none required"
16834 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
16836 if ac_fn_c_try_link
"$LINENO"; then :
16837 ac_cv_search_dlopen
=$ac_res
16839 rm -f core conftest.err conftest.
$ac_objext \
16841 if ${ac_cv_search_dlopen+:} false
; then :
16845 if ${ac_cv_search_dlopen+:} false
; then :
16848 ac_cv_search_dlopen
=no
16850 rm conftest.
$ac_ext
16851 LIBS
=$ac_func_search_save_LIBS
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16854 $as_echo "$ac_cv_search_dlopen" >&6; }
16855 ac_res
=$ac_cv_search_dlopen
16856 if test "$ac_res" != no
; then :
16857 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
16864 # Add macho support to GDB, but only if BFD includes it.
16867 OLD_LDFLAGS
=$LDFLAGS
16869 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
16870 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
16871 # always want our bfd.
16872 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
16873 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
16874 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
16875 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
16876 LIBS
="-lbfd -liberty -lz $intl $LIBS"
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
16878 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
16879 if ${gdb_cv_var_macho+:} false
; then :
16880 $as_echo_n "(cached) " >&6
16882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16883 /* end confdefs.h. */
16884 #include <stdlib.h>
16886 #include "mach-o.h"
16891 return bfd_mach_o_lookup_command (NULL, 0, NULL);
16896 if ac_fn_c_try_link
"$LINENO"; then :
16897 gdb_cv_var_macho
=yes
16899 gdb_cv_var_macho
=no
16901 rm -f core conftest.err conftest.
$ac_objext \
16902 conftest
$ac_exeext conftest.
$ac_ext
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
16905 $as_echo "$gdb_cv_var_macho" >&6; }
16907 LDFLAGS
=$OLD_LDFLAGS
16909 if test "$gdb_cv_var_macho" = yes; then
16910 CONFIG_OBS
="$CONFIG_OBS machoread.o"
16913 # Add any host-specific objects to GDB.
16914 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
16916 # If building on ELF, look for lzma support for embedded compressed debug info.
16917 if test "$gdb_cv_var_elf" = yes; then
16919 # Check whether --with-lzma was given.
16920 if test "${with_lzma+set}" = set; then :
16921 withval
=$with_lzma;
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
16927 $as_echo_n "checking whether to use lzma... " >&6; }
16928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
16929 $as_echo "$with_lzma" >&6; }
16931 if test "${with_lzma}" != no
; then
16942 acl_save_prefix
="$prefix"
16943 prefix
="$acl_final_prefix"
16944 acl_save_exec_prefix
="$exec_prefix"
16945 exec_prefix
="$acl_final_exec_prefix"
16947 eval additional_includedir
=\"$includedir\"
16948 eval additional_libdir
=\"$libdir\"
16950 exec_prefix
="$acl_save_exec_prefix"
16951 prefix
="$acl_save_prefix"
16954 # Check whether --with-liblzma-prefix was given.
16955 if test "${with_liblzma_prefix+set}" = set; then :
16956 withval
=$with_liblzma_prefix;
16957 if test "X$withval" = "Xno"; then
16960 if test "X$withval" = "X"; then
16962 acl_save_prefix
="$prefix"
16963 prefix
="$acl_final_prefix"
16964 acl_save_exec_prefix
="$exec_prefix"
16965 exec_prefix
="$acl_final_exec_prefix"
16967 eval additional_includedir
=\"$includedir\"
16968 eval additional_libdir
=\"$libdir\"
16970 exec_prefix
="$acl_save_exec_prefix"
16971 prefix
="$acl_save_prefix"
16974 additional_includedir
="$withval/include"
16975 additional_libdir
="$withval/lib"
16982 # Check whether --with-liblzma-type was given.
16983 if test "${with_liblzma_type+set}" = set; then :
16984 withval
=$with_liblzma_type; with_liblzma_type
=$withval
16986 with_liblzma_type
=auto
16989 lib_type
=`eval echo \$with_liblzma_type`
16996 names_already_handled
=
16997 names_next_round
='lzma '
16998 while test -n "$names_next_round"; do
16999 names_this_round
="$names_next_round"
17001 for name
in $names_this_round; do
17003 for n
in $names_already_handled; do
17004 if test "$n" = "$name"; then
17005 already_handled
=yes
17009 if test -z "$already_handled"; then
17010 names_already_handled
="$names_already_handled $name"
17011 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17012 eval value
=\"\
$HAVE_LIB$uppername\"
17013 if test -n "$value"; then
17014 if test "$value" = yes; then
17015 eval value
=\"\
$LIB$uppername\"
17016 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
17017 eval value
=\"\
$LTLIB$uppername\"
17018 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
17027 if test $use_additional = yes; then
17028 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
17029 found_dir
="$additional_libdir"
17030 found_so
="$additional_libdir/lib$name.$shlibext"
17031 if test -f "$additional_libdir/lib$name.la"; then
17032 found_la
="$additional_libdir/lib$name.la"
17034 elif test x
$lib_type != xshared
; then
17035 if test -f "$additional_libdir/lib$name.$libext"; then
17036 found_dir
="$additional_libdir"
17037 found_a
="$additional_libdir/lib$name.$libext"
17038 if test -f "$additional_libdir/lib$name.la"; then
17039 found_la
="$additional_libdir/lib$name.la"
17044 if test "X$found_dir" = "X"; then
17045 for x
in $LDFLAGS $LTLIBLZMA; do
17047 acl_save_prefix
="$prefix"
17048 prefix
="$acl_final_prefix"
17049 acl_save_exec_prefix
="$exec_prefix"
17050 exec_prefix
="$acl_final_exec_prefix"
17052 exec_prefix
="$acl_save_exec_prefix"
17053 prefix
="$acl_save_prefix"
17057 dir
=`echo "X$x" | sed -e 's/^X-L//'`
17058 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
17060 found_so
="$dir/lib$name.$shlibext"
17061 if test -f "$dir/lib$name.la"; then
17062 found_la
="$dir/lib$name.la"
17064 elif test x
$lib_type != xshared
; then
17065 if test -f "$dir/lib$name.$libext"; then
17067 found_a
="$dir/lib$name.$libext"
17068 if test -f "$dir/lib$name.la"; then
17069 found_la
="$dir/lib$name.la"
17075 if test "X$found_dir" != "X"; then
17080 if test "X$found_dir" != "X"; then
17081 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
17082 if test "X$found_so" != "X"; then
17083 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
17084 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17087 for x
in $ltrpathdirs; do
17088 if test "X$x" = "X$found_dir"; then
17093 if test -z "$haveit"; then
17094 ltrpathdirs
="$ltrpathdirs $found_dir"
17096 if test "$hardcode_direct" = yes; then
17097 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17099 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
17100 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17102 for x
in $rpathdirs; do
17103 if test "X$x" = "X$found_dir"; then
17108 if test -z "$haveit"; then
17109 rpathdirs
="$rpathdirs $found_dir"
17113 for x
in $LDFLAGS $LIBLZMA; do
17115 acl_save_prefix
="$prefix"
17116 prefix
="$acl_final_prefix"
17117 acl_save_exec_prefix
="$exec_prefix"
17118 exec_prefix
="$acl_final_exec_prefix"
17120 exec_prefix
="$acl_save_exec_prefix"
17121 prefix
="$acl_save_prefix"
17123 if test "X$x" = "X-L$found_dir"; then
17128 if test -z "$haveit"; then
17129 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
17131 if test "$hardcode_minus_L" != no
; then
17132 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17134 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
17140 if test "X$found_a" != "X"; then
17141 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
17143 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
17146 additional_includedir
=
17147 case "$found_dir" in
17149 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17150 additional_includedir
="$basedir/include"
17153 if test "X$additional_includedir" != "X"; then
17154 if test "X$additional_includedir" != "X/usr/include"; then
17156 if test "X$additional_includedir" = "X/usr/local/include"; then
17157 if test -n "$GCC"; then
17159 linux
*) haveit
=yes;;
17163 if test -z "$haveit"; then
17164 for x
in $CPPFLAGS $INCLZMA; do
17166 acl_save_prefix
="$prefix"
17167 prefix
="$acl_final_prefix"
17168 acl_save_exec_prefix
="$exec_prefix"
17169 exec_prefix
="$acl_final_exec_prefix"
17171 exec_prefix
="$acl_save_exec_prefix"
17172 prefix
="$acl_save_prefix"
17174 if test "X$x" = "X-I$additional_includedir"; then
17179 if test -z "$haveit"; then
17180 if test -d "$additional_includedir"; then
17181 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
17187 if test -n "$found_la"; then
17188 save_libdir
="$libdir"
17189 case "$found_la" in
17190 */* |
*\\*) .
"$found_la" ;;
17191 *) .
"./$found_la" ;;
17193 libdir
="$save_libdir"
17194 for dep
in $dependency_libs; do
17197 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
17198 if test "X$additional_libdir" != "X/usr/lib"; then
17200 if test "X$additional_libdir" = "X/usr/local/lib"; then
17201 if test -n "$GCC"; then
17203 linux
*) haveit
=yes;;
17207 if test -z "$haveit"; then
17209 for x
in $LDFLAGS $LIBLZMA; do
17211 acl_save_prefix
="$prefix"
17212 prefix
="$acl_final_prefix"
17213 acl_save_exec_prefix
="$exec_prefix"
17214 exec_prefix
="$acl_final_exec_prefix"
17216 exec_prefix
="$acl_save_exec_prefix"
17217 prefix
="$acl_save_prefix"
17219 if test "X$x" = "X-L$additional_libdir"; then
17224 if test -z "$haveit"; then
17225 if test -d "$additional_libdir"; then
17226 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
17230 for x
in $LDFLAGS $LTLIBLZMA; do
17232 acl_save_prefix
="$prefix"
17233 prefix
="$acl_final_prefix"
17234 acl_save_exec_prefix
="$exec_prefix"
17235 exec_prefix
="$acl_final_exec_prefix"
17237 exec_prefix
="$acl_save_exec_prefix"
17238 prefix
="$acl_save_prefix"
17240 if test "X$x" = "X-L$additional_libdir"; then
17245 if test -z "$haveit"; then
17246 if test -d "$additional_libdir"; then
17247 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
17254 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
17255 if test "$enable_rpath" != no
; then
17257 for x
in $rpathdirs; do
17258 if test "X$x" = "X$dir"; then
17263 if test -z "$haveit"; then
17264 rpathdirs
="$rpathdirs $dir"
17267 for x
in $ltrpathdirs; do
17268 if test "X$x" = "X$dir"; then
17273 if test -z "$haveit"; then
17274 ltrpathdirs
="$ltrpathdirs $dir"
17279 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17282 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17285 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
17286 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
17292 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
17293 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
17294 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
17296 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l:lib$name.$libext"
17297 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l:lib$name.$libext"
17304 if test "X$rpathdirs" != "X"; then
17305 if test -n "$hardcode_libdir_separator"; then
17307 for found_dir
in $rpathdirs; do
17308 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17310 acl_save_libdir
="$libdir"
17312 eval flag
=\"$hardcode_libdir_flag_spec\"
17313 libdir
="$acl_save_libdir"
17314 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
17316 for found_dir
in $rpathdirs; do
17317 acl_save_libdir
="$libdir"
17318 libdir
="$found_dir"
17319 eval flag
=\"$hardcode_libdir_flag_spec\"
17320 libdir
="$acl_save_libdir"
17321 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
17325 if test "X$ltrpathdirs" != "X"; then
17326 for found_dir
in $ltrpathdirs; do
17327 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
17332 ac_save_CPPFLAGS
="$CPPFLAGS"
17334 for element
in $INCLZMA; do
17336 for x
in $CPPFLAGS; do
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 exec_prefix
="$acl_save_exec_prefix"
17344 prefix
="$acl_save_prefix"
17346 if test "X$x" = "X$element"; then
17351 if test -z "$haveit"; then
17352 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
17357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
17358 $as_echo_n "checking for liblzma... " >&6; }
17359 if ${ac_cv_liblzma+:} false
; then :
17360 $as_echo_n "(cached) " >&6
17363 ac_save_LIBS
="$LIBS"
17364 LIBS
="$LIBS $LIBLZMA"
17365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17366 /* end confdefs.h. */
17371 lzma_index_iter iter;
17372 lzma_index_iter_init (&iter, 0);
17373 lzma_mf_is_supported (LZMA_MF_HC3);
17378 if ac_fn_c_try_link
"$LINENO"; then :
17383 rm -f core conftest.err conftest.
$ac_objext \
17384 conftest
$ac_exeext conftest.
$ac_ext
17385 LIBS
="$ac_save_LIBS"
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
17389 $as_echo "$ac_cv_liblzma" >&6; }
17390 if test "$ac_cv_liblzma" = yes; then
17393 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
17395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
17396 $as_echo_n "checking how to link with liblzma... " >&6; }
17397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
17398 $as_echo "$LIBLZMA" >&6; }
17401 CPPFLAGS
="$ac_save_CPPFLAGS"
17411 if test "$HAVE_LIBLZMA" != yes; then
17412 if test "$with_lzma" = yes; then
17413 as_fn_error $?
"missing liblzma for --with-lzma" "$LINENO" 5
17419 LIBGUI
="../libgui/src/libgui.a"
17420 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
17429 *-*-cygwin* |
*-*-mingw* )
17438 if test "${enable_gdbtk}" = "yes"; then
17440 # Gdbtk must have an absolute path to srcdir in order to run
17441 # properly when not installed.
17444 GDBTK_SRC_DIR
=`pwd`
17449 # Ok, lets find the tcl configuration
17450 # First, look for one uninstalled.
17451 # the alternative search directory is invoked by --with-tcl
17454 if test x
"${no_tcl}" = x
; then
17455 # we reset no_tcl in case something fails here
17458 # Check whether --with-tcl was given.
17459 if test "${with_tcl+set}" = set; then :
17460 withval
=$with_tcl; with_tclconfig
=${withval}
17463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
17464 $as_echo_n "checking for Tcl configuration... " >&6; }
17465 if ${ac_cv_c_tclconfig+:} false
; then :
17466 $as_echo_n "(cached) " >&6
17470 # First check to see if --with-tcl was specified.
17472 *-*-cygwin*) platDir
="win" ;;
17473 *) platDir
="unix" ;;
17475 if test x
"${with_tclconfig}" != x
; then
17476 if test -f "${with_tclconfig}/tclConfig.sh" ; then
17477 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
17479 as_fn_error $?
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
17483 # then check for a private Tcl installation
17484 if test x
"${ac_cv_c_tclconfig}" = x
; then
17487 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17488 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
17489 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
17491 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17492 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
17493 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
17495 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17496 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
17497 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
17498 if test -f "$i/$platDir/tclConfig.sh" ; then
17499 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
17505 # on Darwin, check in Framework installation locations
17506 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
17507 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
17508 `ls -d /Library/Frameworks 2>/dev/null` \
17509 `ls -d /Network/Library/Frameworks 2>/dev/null` \
17510 `ls -d /System/Library/Frameworks 2>/dev/null` \
17512 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
17513 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
17519 # check in a few common install locations
17520 if test x
"${ac_cv_c_tclconfig}" = x
; then
17521 for i
in `ls -d ${libdir} 2>/dev/null` \
17522 `ls -d ${exec_prefix}/lib 2>/dev/null` \
17523 `ls -d ${prefix}/lib 2>/dev/null` \
17524 `ls -d /usr/local/lib 2>/dev/null` \
17525 `ls -d /usr/contrib/lib 2>/dev/null` \
17526 `ls -d /usr/lib 2>/dev/null` \
17528 if test -f "$i/tclConfig.sh" ; then
17529 ac_cv_c_tclconfig
=`(cd $i; pwd)`
17535 # check in a few other private locations
17536 if test x
"${ac_cv_c_tclconfig}" = x
; then
17539 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17540 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
17541 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
17542 if test -f "$i/$platDir/tclConfig.sh" ; then
17543 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
17552 if test x
"${ac_cv_c_tclconfig}" = x
; then
17553 TCL_BIN_DIR
="# no Tcl configs found"
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
17555 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
17558 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
17560 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
17565 # If $no_tk is nonempty, then we can't do Tk, and there is no
17566 # point to doing Tcl.
17569 # Ok, lets find the tk configuration
17570 # First, look for one uninstalled.
17571 # the alternative search directory is invoked by --with-tk
17574 if test x
"${no_tk}" = x
; then
17575 # we reset no_tk in case something fails here
17578 # Check whether --with-tk was given.
17579 if test "${with_tk+set}" = set; then :
17580 withval
=$with_tk; with_tkconfig
=${withval}
17583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
17584 $as_echo_n "checking for Tk configuration... " >&6; }
17585 if ${ac_cv_c_tkconfig+:} false
; then :
17586 $as_echo_n "(cached) " >&6
17590 # First check to see if --with-tkconfig was specified.
17591 if test x
"${with_tkconfig}" != x
; then
17592 if test -f "${with_tkconfig}/tkConfig.sh" ; then
17593 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
17595 as_fn_error $?
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
17599 # then check for a private Tk library
17601 *-*-cygwin*) platDir
="win" ;;
17602 *) platDir
="unix" ;;
17604 if test x
"${ac_cv_c_tkconfig}" = x
; then
17607 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17608 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
17609 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
17611 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17612 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
17613 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
17615 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17616 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
17617 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
17618 if test -f "$i/$platDir/tkConfig.sh" ; then
17619 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
17625 # on Darwin, check in Framework installation locations
17626 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
17627 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
17628 `ls -d /Library/Frameworks 2>/dev/null` \
17629 `ls -d /Network/Library/Frameworks 2>/dev/null` \
17630 `ls -d /System/Library/Frameworks 2>/dev/null` \
17632 if test -f "$i/Tk.framework/tkConfig.sh" ; then
17633 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
17639 # check in a few common install locations
17640 if test x
"${ac_cv_c_tkconfig}" = x
; then
17641 for i
in `ls -d ${libdir} 2>/dev/null` \
17642 `ls -d ${exec_prefix}/lib 2>/dev/null` \
17643 `ls -d ${prefix}/lib 2>/dev/null` \
17644 `ls -d /usr/local/lib 2>/dev/null` \
17645 `ls -d /usr/contrib/lib 2>/dev/null` \
17646 `ls -d /usr/lib 2>/dev/null` \
17648 if test -f "$i/tkConfig.sh" ; then
17649 ac_cv_c_tkconfig
=`(cd $i; pwd)`
17654 # check in a few other private locations
17655 if test x
"${ac_cv_c_tkconfig}" = x
; then
17658 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17659 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
17660 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
17661 if test -f "$i/$platDir/tkConfig.sh" ; then
17662 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
17671 if test x
"${ac_cv_c_tkconfig}" = x
; then
17672 TK_BIN_DIR
="# no Tk configs found"
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
17674 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
17677 TK_BIN_DIR
=${ac_cv_c_tkconfig}
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
17679 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
17684 if test -z "${no_tcl}" -a -z "${no_tk}"; then
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
17687 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
17689 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
17691 $as_echo "loading" >&6; }
17692 .
${TCL_BIN_DIR}/tclConfig.sh
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
17695 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
17698 # eval is required to do the TCL_DBGX substitution
17699 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
17700 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
17702 # If the TCL_BIN_DIR is the build directory (not the install directory),
17703 # then set the common variable name to the value of the build variables.
17704 # For example, the variable TCL_LIB_SPEC will be set to the value
17705 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
17706 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
17707 # installed and uninstalled version of Tcl.
17708 if test -f "${TCL_BIN_DIR}/Makefile" ; then
17709 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
17710 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
17711 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
17712 elif test "`uname -s`" = "Darwin"; then
17713 # If Tcl was built as a framework, attempt to use the libraries
17714 # from the framework at the given location so that linking works
17715 # against Tcl.framework installed in an arbitrary location.
17716 case ${TCL_DEFS} in
17718 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
17719 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
17720 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
17721 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
17722 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
17727 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
17728 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
17729 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
17735 # eval is required to do the TCL_DBGX substitution
17736 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
17737 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
17738 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
17739 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
17755 # Check for in-tree tcl
17762 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
17766 # Find Tcl private headers
17767 if test x
"${intree}" = xno
; then
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
17770 $as_echo_n "checking for Tcl private headers... " >&6; }
17772 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
17773 if test -f ${dir}/tclInt.h
; then
17777 if test x
"${private_dir}" = x
; then
17778 as_fn_error $?
"could not find private Tcl headers" "$LINENO" 5
17780 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
17782 $as_echo "${private_dir}" >&6; }
17785 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
17786 TCL_LIBRARY
="${TCL_LIB_SPEC}"
17789 # If building tcl in the same src tree, private headers
17790 # are not needed, but we need to be sure to use the right
17792 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
17793 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
17794 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
17802 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
17804 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
17806 $as_echo "loading" >&6; }
17807 .
${TK_BIN_DIR}/tkConfig.sh
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
17810 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
17813 # eval is required to do the TK_DBGX substitution
17814 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
17815 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
17817 # If the TK_BIN_DIR is the build directory (not the install directory),
17818 # then set the common variable name to the value of the build variables.
17819 # For example, the variable TK_LIB_SPEC will be set to the value
17820 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
17821 # instead of TK_BUILD_LIB_SPEC since it will work with both an
17822 # installed and uninstalled version of Tcl.
17823 if test -f "${TK_BIN_DIR}/Makefile" ; then
17824 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
17825 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
17826 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
17827 elif test "`uname -s`" = "Darwin"; then
17828 # If Tk was built as a framework, attempt to use the libraries
17829 # from the framework at the given location so that linking works
17830 # against Tk.framework installed in an arbitrary location.
17833 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
17834 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
17835 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
17836 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
17837 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
17842 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
17843 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
17844 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
17850 # eval is required to do the TK_DBGX substitution
17851 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
17852 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
17853 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
17854 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
17869 # Check for in-tree Tk
17871 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
17875 # Find Tk private headers
17876 if test x
"${intree}" = xno
; then
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
17879 $as_echo_n "checking for Tk private headers... " >&6; }
17881 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
17882 if test -f ${dir}/tkInt.h
; then
17886 if test x
"${private_dir}" = x
; then
17887 as_fn_error $?
"could not find Tk private headers" "$LINENO" 5
17889 TK_PRIVATE_INCLUDE
="-I${private_dir}"
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
17891 $as_echo "${private_dir}" >&6; }
17894 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
17895 TK_LIBRARY
=${TK_LIB_SPEC}
17898 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
17899 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
17900 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
17907 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
17909 # Include some libraries that Tcl and Tk want.
17910 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
17911 # Yes, the ordering seems wrong here. But it isn't.
17912 # TK_LIBS is the list of libraries that need to be linked
17913 # after Tcl/Tk. Note that this isn't put into LIBS. If it
17914 # were in LIBS then any link tests after this point would
17915 # try to include things like `$(LIBGUI)', which wouldn't work.
17916 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
17918 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
17919 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
17920 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
17921 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
17922 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
17923 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
17924 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
17926 if test x
"$gdb_cv_os_cygwin" = xyes
; then
17927 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
17928 WIN32LDAPP
="-Wl,--subsystem,console"
17929 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
17932 subdirs
="$subdirs gdbtk"
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
17945 $as_echo_n "checking for X... " >&6; }
17948 # Check whether --with-x was given.
17949 if test "${with_x+set}" = set; then :
17953 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17954 if test "x$with_x" = xno
; then
17955 # The user explicitly disabled X.
17958 case $x_includes,$x_libraries in #(
17959 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
17960 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
17961 $as_echo_n "(cached) " >&6
17963 # One or both of the vars are not set, and there is no cached value.
17964 ac_x_includes
=no ac_x_libraries
=no
17965 rm -f -r conftest.dir
17966 if mkdir conftest.dir
; then
17968 cat >Imakefile
<<'_ACEOF'
17970 @echo incroot='${INCROOT}'
17972 @echo usrlibdir='${USRLIBDIR}'
17974 @echo libdir='${LIBDIR}'
17976 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
17977 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17978 for ac_var
in incroot usrlibdir libdir
; do
17979 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
17981 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17982 for ac_extension
in a so sl dylib la dll
; do
17983 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
17984 test -f "$ac_im_libdir/libX11.$ac_extension"; then
17985 ac_im_usrlibdir
=$ac_im_libdir; break
17988 # Screen out bogus values from the imake configuration. They are
17989 # bogus both because they are the default anyway, and because
17990 # using them would break gcc on systems where it needs fixed includes.
17991 case $ac_im_incroot in
17992 /usr
/include
) ac_x_includes
= ;;
17993 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
17995 case $ac_im_usrlibdir in
17996 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
17997 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
18001 rm -f -r conftest.dir
18004 # Standard set of common directories for X headers.
18005 # Check X11 before X11Rn because it is often a symlink to the current release.
18019 /usr/local/X11/include
18020 /usr/local/X11R7/include
18021 /usr/local/X11R6/include
18022 /usr/local/X11R5/include
18023 /usr/local/X11R4/include
18025 /usr/local/include/X11
18026 /usr/local/include/X11R7
18027 /usr/local/include/X11R6
18028 /usr/local/include/X11R5
18029 /usr/local/include/X11R4
18033 /usr/XFree86/include/X11
18037 /usr/unsupported/include
18038 /usr/athena/include
18039 /usr/local/x11r5/include
18040 /usr/lpp/Xamples/include
18042 /usr/openwin/include
18043 /usr/openwin/share/include'
18045 if test "$ac_x_includes" = no
; then
18046 # Guess where to find include files, by looking for Xlib.h.
18047 # First, try using that file with no special directory specified.
18048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18049 /* end confdefs.h. */
18050 #include <X11/Xlib.h>
18052 if ac_fn_c_try_cpp
"$LINENO"; then :
18053 # We can compile using X headers with no special include directory.
18056 for ac_dir
in $ac_x_header_dirs; do
18057 if test -r "$ac_dir/X11/Xlib.h"; then
18058 ac_x_includes
=$ac_dir
18063 rm -f conftest.err conftest.i conftest.
$ac_ext
18064 fi # $ac_x_includes = no
18066 if test "$ac_x_libraries" = no
; then
18067 # Check for the libraries.
18068 # See if we find them without any special options.
18069 # Don't add to $LIBS permanently.
18072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18073 /* end confdefs.h. */
18074 #include <X11/Xlib.h>
18083 if ac_fn_c_try_link
"$LINENO"; then :
18085 # We can link X programs with no special library path.
18089 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18091 # Don't even attempt the hair of trying to link an X program!
18092 for ac_extension
in a so sl dylib la dll
; do
18093 if test -r "$ac_dir/libX11.$ac_extension"; then
18094 ac_x_libraries
=$ac_dir
18100 rm -f core conftest.err conftest.
$ac_objext \
18101 conftest
$ac_exeext conftest.
$ac_ext
18102 fi # $ac_x_libraries = no
18104 case $ac_x_includes,$ac_x_libraries in #(
18105 no
,* |
*,no |
*\'*)
18106 # Didn't find X, or a directory has "'" in its name.
18107 ac_cv_have_x
="have_x=no";; #(
18109 # Record where we found X for the cache.
18110 ac_cv_have_x
="have_x=yes\
18111 ac_x_includes='$ac_x_includes'\
18112 ac_x_libraries='$ac_x_libraries'"
18118 eval "$ac_cv_have_x"
18121 if test "$have_x" != yes; then
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
18123 $as_echo "$have_x" >&6; }
18126 # If each of the values was on the command line, it overrides each guess.
18127 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
18128 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
18129 # Update the cache value to reflect the command line values.
18130 ac_cv_have_x
="have_x=yes\
18131 ac_x_includes='$x_includes'\
18132 ac_x_libraries='$x_libraries'"
18133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
18134 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
18138 # Unlike the sim directory, whether a simulator is linked is controlled by
18139 # presence of a gdb_sim definition in the target configure.tgt entry.
18140 # This code just checks for a few cases where we'd like to ignore those
18141 # definitions, even when they're present in the '.mt' file. These cases
18142 # are when --disable-sim is specified, or if the simulator directory is
18143 # not part of the source tree.
18145 # Check whether --enable-sim was given.
18146 if test "${enable_sim+set}" = set; then :
18147 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
18148 echo "enableval = ${enableval}";
18149 case "${enableval}" in
18150 yes) ignore_sim
=false
;;
18151 no
) ignore_sim
=true
;;
18152 *) ignore_sim
=false
;;
18159 if test ! -d "${srcdir}/../sim"; then
18165 if test "${ignore_sim}" = "false"; then
18166 if test x
"${gdb_sim}" != x
; then
18168 SIM_OBS
="remote-sim.o"
18170 $as_echo "#define WITH_SIM 1" >>confdefs.h
18173 # Some tdep code should only be compiled in when the ppc sim is
18174 # built. PR sim/13418.
18178 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
18198 # List of host floatformats.
18200 cat >>confdefs.h
<<_ACEOF
18201 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
18205 cat >>confdefs.h
<<_ACEOF
18206 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
18210 cat >>confdefs.h
<<_ACEOF
18211 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
18215 # target_subdir is used by the testsuite to find the target libraries.
18217 if test "${host}" != "${target}"; then
18218 target_subdir
="${target_alias}/"
18222 # Import nat definitions.
18223 nat_makefile_frag
=/dev
/null
18224 if test "${gdb_native}" = "yes"; then
18225 .
${srcdir}/configure.nat
18226 nativefile
=$NAT_FILE
18239 if test x
"${gdb_osabi}" != x
; then
18241 cat >>confdefs.h
<<_ACEOF
18242 #define GDB_OSABI_DEFAULT $gdb_osabi
18247 # Check for babeltrace and babeltrace-ctf
18249 # Check whether --with-babeltrace was given.
18250 if test "${with_babeltrace+set}" = set; then :
18251 withval
=$with_babeltrace;
18253 with_babeltrace
=auto
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
18257 $as_echo_n "checking whether to use babeltrace... " >&6; }
18258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
18259 $as_echo "$with_babeltrace" >&6; }
18261 if test "x$with_babeltrace" = "xno"; then
18262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
18263 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
18265 # Append -Werror to CFLAGS so that configure can catch the warning
18266 # "assignment from incompatible pointer type", which is related to
18267 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
18268 # in GDB, while babeltrace 1.0.3 is broken.
18269 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
18270 # safe to save and restore CFLAGS here.
18271 saved_CFLAGS
=$CFLAGS
18272 CFLAGS
="$CFLAGS -Werror"
18283 acl_save_prefix
="$prefix"
18284 prefix
="$acl_final_prefix"
18285 acl_save_exec_prefix
="$exec_prefix"
18286 exec_prefix
="$acl_final_exec_prefix"
18288 eval additional_includedir
=\"$includedir\"
18289 eval additional_libdir
=\"$libdir\"
18291 exec_prefix
="$acl_save_exec_prefix"
18292 prefix
="$acl_save_prefix"
18295 # Check whether --with-libbabeltrace-prefix was given.
18296 if test "${with_libbabeltrace_prefix+set}" = set; then :
18297 withval
=$with_libbabeltrace_prefix;
18298 if test "X$withval" = "Xno"; then
18301 if test "X$withval" = "X"; then
18303 acl_save_prefix
="$prefix"
18304 prefix
="$acl_final_prefix"
18305 acl_save_exec_prefix
="$exec_prefix"
18306 exec_prefix
="$acl_final_exec_prefix"
18308 eval additional_includedir
=\"$includedir\"
18309 eval additional_libdir
=\"$libdir\"
18311 exec_prefix
="$acl_save_exec_prefix"
18312 prefix
="$acl_save_prefix"
18315 additional_includedir
="$withval/include"
18316 additional_libdir
="$withval/lib"
18323 # Check whether --with-libbabeltrace-type was given.
18324 if test "${with_libbabeltrace_type+set}" = set; then :
18325 withval
=$with_libbabeltrace_type; with_libbabeltrace_type
=$withval
18327 with_libbabeltrace_type
=auto
18330 lib_type
=`eval echo \$with_libbabeltrace_type`
18337 names_already_handled
=
18338 names_next_round
='babeltrace babeltrace-ctf'
18339 while test -n "$names_next_round"; do
18340 names_this_round
="$names_next_round"
18342 for name
in $names_this_round; do
18344 for n
in $names_already_handled; do
18345 if test "$n" = "$name"; then
18346 already_handled
=yes
18350 if test -z "$already_handled"; then
18351 names_already_handled
="$names_already_handled $name"
18352 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18353 eval value
=\"\
$HAVE_LIB$uppername\"
18354 if test -n "$value"; then
18355 if test "$value" = yes; then
18356 eval value
=\"\
$LIB$uppername\"
18357 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
18358 eval value
=\"\
$LTLIB$uppername\"
18359 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
18368 if test $use_additional = yes; then
18369 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18370 found_dir
="$additional_libdir"
18371 found_so
="$additional_libdir/lib$name.$shlibext"
18372 if test -f "$additional_libdir/lib$name.la"; then
18373 found_la
="$additional_libdir/lib$name.la"
18375 elif test x
$lib_type != xshared
; then
18376 if test -f "$additional_libdir/lib$name.$libext"; then
18377 found_dir
="$additional_libdir"
18378 found_a
="$additional_libdir/lib$name.$libext"
18379 if test -f "$additional_libdir/lib$name.la"; then
18380 found_la
="$additional_libdir/lib$name.la"
18385 if test "X$found_dir" = "X"; then
18386 for x
in $LDFLAGS $LTLIBBABELTRACE; do
18388 acl_save_prefix
="$prefix"
18389 prefix
="$acl_final_prefix"
18390 acl_save_exec_prefix
="$exec_prefix"
18391 exec_prefix
="$acl_final_exec_prefix"
18393 exec_prefix
="$acl_save_exec_prefix"
18394 prefix
="$acl_save_prefix"
18398 dir
=`echo "X$x" | sed -e 's/^X-L//'`
18399 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18401 found_so
="$dir/lib$name.$shlibext"
18402 if test -f "$dir/lib$name.la"; then
18403 found_la
="$dir/lib$name.la"
18405 elif test x
$lib_type != xshared
; then
18406 if test -f "$dir/lib$name.$libext"; then
18408 found_a
="$dir/lib$name.$libext"
18409 if test -f "$dir/lib$name.la"; then
18410 found_la
="$dir/lib$name.la"
18416 if test "X$found_dir" != "X"; then
18421 if test "X$found_dir" != "X"; then
18422 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
18423 if test "X$found_so" != "X"; then
18424 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
18425 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18428 for x
in $ltrpathdirs; do
18429 if test "X$x" = "X$found_dir"; then
18434 if test -z "$haveit"; then
18435 ltrpathdirs
="$ltrpathdirs $found_dir"
18437 if test "$hardcode_direct" = yes; then
18438 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18440 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
18441 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18443 for x
in $rpathdirs; do
18444 if test "X$x" = "X$found_dir"; then
18449 if test -z "$haveit"; then
18450 rpathdirs
="$rpathdirs $found_dir"
18454 for x
in $LDFLAGS $LIBBABELTRACE; do
18456 acl_save_prefix
="$prefix"
18457 prefix
="$acl_final_prefix"
18458 acl_save_exec_prefix
="$exec_prefix"
18459 exec_prefix
="$acl_final_exec_prefix"
18461 exec_prefix
="$acl_save_exec_prefix"
18462 prefix
="$acl_save_prefix"
18464 if test "X$x" = "X-L$found_dir"; then
18469 if test -z "$haveit"; then
18470 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
18472 if test "$hardcode_minus_L" != no
; then
18473 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18475 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
18481 if test "X$found_a" != "X"; then
18482 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
18484 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
18487 additional_includedir
=
18488 case "$found_dir" in
18490 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18491 additional_includedir
="$basedir/include"
18494 if test "X$additional_includedir" != "X"; then
18495 if test "X$additional_includedir" != "X/usr/include"; then
18497 if test "X$additional_includedir" = "X/usr/local/include"; then
18498 if test -n "$GCC"; then
18500 linux
*) haveit
=yes;;
18504 if test -z "$haveit"; then
18505 for x
in $CPPFLAGS $INCBABELTRACE; do
18507 acl_save_prefix
="$prefix"
18508 prefix
="$acl_final_prefix"
18509 acl_save_exec_prefix
="$exec_prefix"
18510 exec_prefix
="$acl_final_exec_prefix"
18512 exec_prefix
="$acl_save_exec_prefix"
18513 prefix
="$acl_save_prefix"
18515 if test "X$x" = "X-I$additional_includedir"; then
18520 if test -z "$haveit"; then
18521 if test -d "$additional_includedir"; then
18522 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
18528 if test -n "$found_la"; then
18529 save_libdir
="$libdir"
18530 case "$found_la" in
18531 */* |
*\\*) .
"$found_la" ;;
18532 *) .
"./$found_la" ;;
18534 libdir
="$save_libdir"
18535 for dep
in $dependency_libs; do
18538 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
18539 if test "X$additional_libdir" != "X/usr/lib"; then
18541 if test "X$additional_libdir" = "X/usr/local/lib"; then
18542 if test -n "$GCC"; then
18544 linux
*) haveit
=yes;;
18548 if test -z "$haveit"; then
18550 for x
in $LDFLAGS $LIBBABELTRACE; do
18552 acl_save_prefix
="$prefix"
18553 prefix
="$acl_final_prefix"
18554 acl_save_exec_prefix
="$exec_prefix"
18555 exec_prefix
="$acl_final_exec_prefix"
18557 exec_prefix
="$acl_save_exec_prefix"
18558 prefix
="$acl_save_prefix"
18560 if test "X$x" = "X-L$additional_libdir"; then
18565 if test -z "$haveit"; then
18566 if test -d "$additional_libdir"; then
18567 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
18571 for x
in $LDFLAGS $LTLIBBABELTRACE; do
18573 acl_save_prefix
="$prefix"
18574 prefix
="$acl_final_prefix"
18575 acl_save_exec_prefix
="$exec_prefix"
18576 exec_prefix
="$acl_final_exec_prefix"
18578 exec_prefix
="$acl_save_exec_prefix"
18579 prefix
="$acl_save_prefix"
18581 if test "X$x" = "X-L$additional_libdir"; then
18586 if test -z "$haveit"; then
18587 if test -d "$additional_libdir"; then
18588 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
18595 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
18596 if test "$enable_rpath" != no
; then
18598 for x
in $rpathdirs; do
18599 if test "X$x" = "X$dir"; then
18604 if test -z "$haveit"; then
18605 rpathdirs
="$rpathdirs $dir"
18608 for x
in $ltrpathdirs; do
18609 if test "X$x" = "X$dir"; then
18614 if test -z "$haveit"; then
18615 ltrpathdirs
="$ltrpathdirs $dir"
18620 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18623 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18626 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
18627 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
18633 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
18634 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
18635 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
18637 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l:lib$name.$libext"
18638 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l:lib$name.$libext"
18645 if test "X$rpathdirs" != "X"; then
18646 if test -n "$hardcode_libdir_separator"; then
18648 for found_dir
in $rpathdirs; do
18649 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18651 acl_save_libdir
="$libdir"
18653 eval flag
=\"$hardcode_libdir_flag_spec\"
18654 libdir
="$acl_save_libdir"
18655 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
18657 for found_dir
in $rpathdirs; do
18658 acl_save_libdir
="$libdir"
18659 libdir
="$found_dir"
18660 eval flag
=\"$hardcode_libdir_flag_spec\"
18661 libdir
="$acl_save_libdir"
18662 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
18666 if test "X$ltrpathdirs" != "X"; then
18667 for found_dir
in $ltrpathdirs; do
18668 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
18673 ac_save_CPPFLAGS
="$CPPFLAGS"
18675 for element
in $INCBABELTRACE; do
18677 for x
in $CPPFLAGS; do
18679 acl_save_prefix
="$prefix"
18680 prefix
="$acl_final_prefix"
18681 acl_save_exec_prefix
="$exec_prefix"
18682 exec_prefix
="$acl_final_exec_prefix"
18684 exec_prefix
="$acl_save_exec_prefix"
18685 prefix
="$acl_save_prefix"
18687 if test "X$x" = "X$element"; then
18692 if test -z "$haveit"; then
18693 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
18699 $as_echo_n "checking for libbabeltrace... " >&6; }
18700 if ${ac_cv_libbabeltrace+:} false
; then :
18701 $as_echo_n "(cached) " >&6
18704 ac_save_LIBS
="$LIBS"
18705 LIBS
="$LIBS $LIBBABELTRACE"
18706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18707 /* end confdefs.h. */
18708 #include <babeltrace/babeltrace.h>
18709 #include <babeltrace/ctf/events.h>
18710 #include <babeltrace/ctf/iterator.h>
18714 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
18715 struct bt_ctf_event *event = NULL;
18716 const struct bt_definition *scope;
18718 pos->type = BT_SEEK_BEGIN;
18719 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
18720 scope = bt_ctf_get_top_level_scope (event,
18721 BT_STREAM_EVENT_HEADER);
18722 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
18728 if ac_fn_c_try_link
"$LINENO"; then :
18729 ac_cv_libbabeltrace
=yes
18731 ac_cv_libbabeltrace
=no
18733 rm -f core conftest.err conftest.
$ac_objext \
18734 conftest
$ac_exeext conftest.
$ac_ext
18735 LIBS
="$ac_save_LIBS"
18738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
18739 $as_echo "$ac_cv_libbabeltrace" >&6; }
18740 if test "$ac_cv_libbabeltrace" = yes; then
18741 HAVE_LIBBABELTRACE
=yes
18743 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
18745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
18746 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
18747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
18748 $as_echo "$LIBBABELTRACE" >&6; }
18750 HAVE_LIBBABELTRACE
=no
18751 CPPFLAGS
="$ac_save_CPPFLAGS"
18761 CFLAGS
=$saved_CFLAGS
18763 if test "$HAVE_LIBBABELTRACE" != yes; then
18764 if test "$with_babeltrace" = yes; then
18765 as_fn_error $?
"babeltrace is missing or unusable" "$LINENO" 5
18767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
18768 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
18775 # Check whether --with-xxhash was given.
18776 if test "${with_xxhash+set}" = set; then :
18777 withval
=$with_xxhash;
18783 # Check whether --enable-libctf was given.
18784 if test "${enable_libctf+set}" = set; then :
18785 enableval
=$enable_libctf;
18786 case "$enableval" in
18788 *) as_fn_error $?
"Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
18796 if test x
${enable_static} = xno
; then
18797 LIBCTF
="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so"
18798 CTF_DEPS
="../libctf/.libs/libctf.so"
18800 LIBCTF
="../libctf/.libs/libctf.a"
18803 if test "${enable_libctf}" = yes; then
18805 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
18815 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
18818 if test "x$with_xxhash" != "xno"; then
18829 acl_save_prefix
="$prefix"
18830 prefix
="$acl_final_prefix"
18831 acl_save_exec_prefix
="$exec_prefix"
18832 exec_prefix
="$acl_final_exec_prefix"
18834 eval additional_includedir
=\"$includedir\"
18835 eval additional_libdir
=\"$libdir\"
18837 exec_prefix
="$acl_save_exec_prefix"
18838 prefix
="$acl_save_prefix"
18841 # Check whether --with-libxxhash-prefix was given.
18842 if test "${with_libxxhash_prefix+set}" = set; then :
18843 withval
=$with_libxxhash_prefix;
18844 if test "X$withval" = "Xno"; then
18847 if test "X$withval" = "X"; then
18849 acl_save_prefix
="$prefix"
18850 prefix
="$acl_final_prefix"
18851 acl_save_exec_prefix
="$exec_prefix"
18852 exec_prefix
="$acl_final_exec_prefix"
18854 eval additional_includedir
=\"$includedir\"
18855 eval additional_libdir
=\"$libdir\"
18857 exec_prefix
="$acl_save_exec_prefix"
18858 prefix
="$acl_save_prefix"
18861 additional_includedir
="$withval/include"
18862 additional_libdir
="$withval/lib"
18869 # Check whether --with-libxxhash-type was given.
18870 if test "${with_libxxhash_type+set}" = set; then :
18871 withval
=$with_libxxhash_type; with_libxxhash_type
=$withval
18873 with_libxxhash_type
=auto
18876 lib_type
=`eval echo \$with_libxxhash_type`
18883 names_already_handled
=
18884 names_next_round
='xxhash '
18885 while test -n "$names_next_round"; do
18886 names_this_round
="$names_next_round"
18888 for name
in $names_this_round; do
18890 for n
in $names_already_handled; do
18891 if test "$n" = "$name"; then
18892 already_handled
=yes
18896 if test -z "$already_handled"; then
18897 names_already_handled
="$names_already_handled $name"
18898 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18899 eval value
=\"\
$HAVE_LIB$uppername\"
18900 if test -n "$value"; then
18901 if test "$value" = yes; then
18902 eval value
=\"\
$LIB$uppername\"
18903 test -z "$value" || LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$value"
18904 eval value
=\"\
$LTLIB$uppername\"
18905 test -z "$value" || LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$value"
18914 if test $use_additional = yes; then
18915 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18916 found_dir
="$additional_libdir"
18917 found_so
="$additional_libdir/lib$name.$shlibext"
18918 if test -f "$additional_libdir/lib$name.la"; then
18919 found_la
="$additional_libdir/lib$name.la"
18921 elif test x
$lib_type != xshared
; then
18922 if test -f "$additional_libdir/lib$name.$libext"; then
18923 found_dir
="$additional_libdir"
18924 found_a
="$additional_libdir/lib$name.$libext"
18925 if test -f "$additional_libdir/lib$name.la"; then
18926 found_la
="$additional_libdir/lib$name.la"
18931 if test "X$found_dir" = "X"; then
18932 for x
in $LDFLAGS $LTLIBXXHASH; do
18934 acl_save_prefix
="$prefix"
18935 prefix
="$acl_final_prefix"
18936 acl_save_exec_prefix
="$exec_prefix"
18937 exec_prefix
="$acl_final_exec_prefix"
18939 exec_prefix
="$acl_save_exec_prefix"
18940 prefix
="$acl_save_prefix"
18944 dir
=`echo "X$x" | sed -e 's/^X-L//'`
18945 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18947 found_so
="$dir/lib$name.$shlibext"
18948 if test -f "$dir/lib$name.la"; then
18949 found_la
="$dir/lib$name.la"
18951 elif test x
$lib_type != xshared
; then
18952 if test -f "$dir/lib$name.$libext"; then
18954 found_a
="$dir/lib$name.$libext"
18955 if test -f "$dir/lib$name.la"; then
18956 found_la
="$dir/lib$name.la"
18962 if test "X$found_dir" != "X"; then
18967 if test "X$found_dir" != "X"; then
18968 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$found_dir -l$name"
18969 if test "X$found_so" != "X"; then
18970 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
18971 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
18974 for x
in $ltrpathdirs; do
18975 if test "X$x" = "X$found_dir"; then
18980 if test -z "$haveit"; then
18981 ltrpathdirs
="$ltrpathdirs $found_dir"
18983 if test "$hardcode_direct" = yes; then
18984 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
18986 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
18987 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
18989 for x
in $rpathdirs; do
18990 if test "X$x" = "X$found_dir"; then
18995 if test -z "$haveit"; then
18996 rpathdirs
="$rpathdirs $found_dir"
19000 for x
in $LDFLAGS $LIBXXHASH; do
19002 acl_save_prefix
="$prefix"
19003 prefix
="$acl_final_prefix"
19004 acl_save_exec_prefix
="$exec_prefix"
19005 exec_prefix
="$acl_final_exec_prefix"
19007 exec_prefix
="$acl_save_exec_prefix"
19008 prefix
="$acl_save_prefix"
19010 if test "X$x" = "X-L$found_dir"; then
19015 if test -z "$haveit"; then
19016 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir"
19018 if test "$hardcode_minus_L" != no
; then
19019 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19021 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
19027 if test "X$found_a" != "X"; then
19028 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_a"
19030 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir -l$name"
19033 additional_includedir
=
19034 case "$found_dir" in
19036 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
19037 additional_includedir
="$basedir/include"
19040 if test "X$additional_includedir" != "X"; then
19041 if test "X$additional_includedir" != "X/usr/include"; then
19043 if test "X$additional_includedir" = "X/usr/local/include"; then
19044 if test -n "$GCC"; then
19046 linux
*) haveit
=yes;;
19050 if test -z "$haveit"; then
19051 for x
in $CPPFLAGS $INCXXHASH; do
19053 acl_save_prefix
="$prefix"
19054 prefix
="$acl_final_prefix"
19055 acl_save_exec_prefix
="$exec_prefix"
19056 exec_prefix
="$acl_final_exec_prefix"
19058 exec_prefix
="$acl_save_exec_prefix"
19059 prefix
="$acl_save_prefix"
19061 if test "X$x" = "X-I$additional_includedir"; then
19066 if test -z "$haveit"; then
19067 if test -d "$additional_includedir"; then
19068 INCXXHASH
="${INCXXHASH}${INCXXHASH:+ }-I$additional_includedir"
19074 if test -n "$found_la"; then
19075 save_libdir
="$libdir"
19076 case "$found_la" in
19077 */* |
*\\*) .
"$found_la" ;;
19078 *) .
"./$found_la" ;;
19080 libdir
="$save_libdir"
19081 for dep
in $dependency_libs; do
19084 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
19085 if test "X$additional_libdir" != "X/usr/lib"; then
19087 if test "X$additional_libdir" = "X/usr/local/lib"; then
19088 if test -n "$GCC"; then
19090 linux
*) haveit
=yes;;
19094 if test -z "$haveit"; then
19096 for x
in $LDFLAGS $LIBXXHASH; do
19098 acl_save_prefix
="$prefix"
19099 prefix
="$acl_final_prefix"
19100 acl_save_exec_prefix
="$exec_prefix"
19101 exec_prefix
="$acl_final_exec_prefix"
19103 exec_prefix
="$acl_save_exec_prefix"
19104 prefix
="$acl_save_prefix"
19106 if test "X$x" = "X-L$additional_libdir"; then
19111 if test -z "$haveit"; then
19112 if test -d "$additional_libdir"; then
19113 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$additional_libdir"
19117 for x
in $LDFLAGS $LTLIBXXHASH; do
19119 acl_save_prefix
="$prefix"
19120 prefix
="$acl_final_prefix"
19121 acl_save_exec_prefix
="$exec_prefix"
19122 exec_prefix
="$acl_final_exec_prefix"
19124 exec_prefix
="$acl_save_exec_prefix"
19125 prefix
="$acl_save_prefix"
19127 if test "X$x" = "X-L$additional_libdir"; then
19132 if test -z "$haveit"; then
19133 if test -d "$additional_libdir"; then
19134 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$additional_libdir"
19141 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
19142 if test "$enable_rpath" != no
; then
19144 for x
in $rpathdirs; do
19145 if test "X$x" = "X$dir"; then
19150 if test -z "$haveit"; then
19151 rpathdirs
="$rpathdirs $dir"
19154 for x
in $ltrpathdirs; do
19155 if test "X$x" = "X$dir"; then
19160 if test -z "$haveit"; then
19161 ltrpathdirs
="$ltrpathdirs $dir"
19166 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19169 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19172 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$dep"
19173 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$dep"
19179 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
19180 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
19181 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l$name"
19183 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l:lib$name.$libext"
19184 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l:lib$name.$libext"
19191 if test "X$rpathdirs" != "X"; then
19192 if test -n "$hardcode_libdir_separator"; then
19194 for found_dir
in $rpathdirs; do
19195 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
19197 acl_save_libdir
="$libdir"
19199 eval flag
=\"$hardcode_libdir_flag_spec\"
19200 libdir
="$acl_save_libdir"
19201 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
19203 for found_dir
in $rpathdirs; do
19204 acl_save_libdir
="$libdir"
19205 libdir
="$found_dir"
19206 eval flag
=\"$hardcode_libdir_flag_spec\"
19207 libdir
="$acl_save_libdir"
19208 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
19212 if test "X$ltrpathdirs" != "X"; then
19213 for found_dir
in $ltrpathdirs; do
19214 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-R$found_dir"
19219 ac_save_CPPFLAGS
="$CPPFLAGS"
19221 for element
in $INCXXHASH; do
19223 for x
in $CPPFLAGS; do
19225 acl_save_prefix
="$prefix"
19226 prefix
="$acl_final_prefix"
19227 acl_save_exec_prefix
="$exec_prefix"
19228 exec_prefix
="$acl_final_exec_prefix"
19230 exec_prefix
="$acl_save_exec_prefix"
19231 prefix
="$acl_save_prefix"
19233 if test "X$x" = "X$element"; then
19238 if test -z "$haveit"; then
19239 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
19244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5
19245 $as_echo_n "checking for libxxhash... " >&6; }
19246 if ${ac_cv_libxxhash+:} false
; then :
19247 $as_echo_n "(cached) " >&6
19250 ac_save_LIBS
="$LIBS"
19251 LIBS
="$LIBS $LIBXXHASH"
19252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19253 /* end confdefs.h. */
19254 #include <xxhash.h>
19258 XXH32("foo", 3, 0);
19264 if ac_fn_c_try_link
"$LINENO"; then :
19265 ac_cv_libxxhash
=yes
19269 rm -f core conftest.err conftest.
$ac_objext \
19270 conftest
$ac_exeext conftest.
$ac_ext
19271 LIBS
="$ac_save_LIBS"
19274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxxhash" >&5
19275 $as_echo "$ac_cv_libxxhash" >&6; }
19276 if test "$ac_cv_libxxhash" = yes; then
19279 $as_echo "#define HAVE_LIBXXHASH 1" >>confdefs.h
19281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libxxhash" >&5
19282 $as_echo_n "checking how to link with libxxhash... " >&6; }
19283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXXHASH" >&5
19284 $as_echo "$LIBXXHASH" >&6; }
19287 CPPFLAGS
="$ac_save_CPPFLAGS"
19297 if test "$HAVE_LIBXXHASH" != yes; then
19298 if test "$with_xxhash" = yes; then
19299 as_fn_error $?
"xxhash is missing or unusable" "$LINENO" 5
19302 if test "x$with_xxhash" = "xauto"; then
19303 with_xxhash
="$HAVE_LIBXXHASH"
19307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
19308 $as_echo_n "checking whether to use xxhash... " >&6; }
19309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
19310 $as_echo "$with_xxhash" >&6; }
19314 if test "${nativefile}" != ""; then
19315 case "${nativefile}" in
19316 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
19317 * ) GDB_NM_FILE
="${nativefile}"
19319 ac_config_links
="$ac_config_links nm.h:$GDB_NM_FILE"
19322 cat >>confdefs.h
<<_ACEOF
19323 #define GDB_NM_FILE "${GDB_NM_FILE}"
19331 for ac_prog
in xsltproc
19333 # Extract the first word of "$ac_prog", so it can be a program name with args.
19334 set dummy
$ac_prog; ac_word
=$2
19335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19336 $as_echo_n "checking for $ac_word... " >&6; }
19337 if ${ac_cv_path_XSLTPROC+:} false
; then :
19338 $as_echo_n "(cached) " >&6
19342 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
19345 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19346 for as_dir
in $PATH
19349 test -z "$as_dir" && as_dir
=.
19350 for ac_exec_ext
in '' $ac_executable_extensions; do
19351 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19352 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
19353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19363 XSLTPROC
=$ac_cv_path_XSLTPROC
19364 if test -n "$XSLTPROC"; then
19365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19366 $as_echo "$XSLTPROC" >&6; }
19368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19369 $as_echo "no" >&6; }
19373 test -n "$XSLTPROC" && break
19375 test -n "$XSLTPROC" || XSLTPROC
="missing"
19377 if test "x$USE_MAINTAINER_MODE" = xyes
; then
19378 if test "${XSLTPROC}" = missing
; then
19379 as_fn_error $?
"unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
19387 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
19391 # Check whether we will enable the inclusion of unit tests when
19394 # The default value of this option changes depending whether we're on
19395 # development mode (in which case it's "true") or not (in which case
19396 # it's "false"). The $development variable is set by the GDB_AC_COMMON
19397 # macro, which must therefore be used before GDB_AC_SELFTEST.
19399 if test "x$development" != xtrue
&& test "x$development" != xfalse
; then :
19400 as_fn_error $?
"Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
19403 # Check whether --enable-unit-tests was given.
19404 if test "${enable_unit_tests+set}" = set; then :
19405 enableval
=$enable_unit_tests; case "${enableval}" in
19406 yes) enable_unittests
=true
;;
19407 no
) enable_unittests
=false
;;
19408 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
19411 enable_unittests
=$development
19415 if $enable_unittests; then
19417 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
19420 CONFIG_OBS
="$CONFIG_OBS \$(SELFTESTS_OBS)"
19421 CONFIG_SRCS
="$CONFIG_SRCS \$(SELFTESTS_SRCS)"
19427 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19428 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
19429 if test "x$GDB_TRANSFORM_NAME" = x
; then
19430 GDB_TRANSFORM_NAME
=gdb
19435 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19436 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
19437 if test "x$GCORE_TRANSFORM_NAME" = x
; then
19438 GCORE_TRANSFORM_NAME
=gcore
19442 ac_config_files
="$ac_config_files gcore"
19444 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
19447 cat >confcache
<<\_ACEOF
19448 # This file is a shell script that caches the results of configure
19449 # tests run on this system so they can be shared between configure
19450 # scripts and configure runs, see configure's option --config-cache.
19451 # It is not useful on other systems. If it contains results you don't
19452 # want to keep, you may remove or edit it.
19454 # config.status only pays attention to the cache file if you give it
19455 # the --recheck option to rerun configure.
19457 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19458 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19459 # following values.
19463 # The following way of writing the cache mishandles newlines in values,
19464 # but we know of no workaround that is simple, portable, and efficient.
19465 # So, we kill variables containing newlines.
19466 # Ultrix sh set writes to stderr and can't be redirected directly,
19467 # and sets the high bit in the cache file unless we assign to the vars.
19469 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19470 eval ac_val
=\$
$ac_var
19474 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19475 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19478 _ | IFS | as_nl
) ;; #(
19479 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
19480 *) { eval $ac_var=; unset $ac_var;} ;;
19486 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19487 *${as_nl}ac_space
=\
*)
19488 # `set' does not quote correctly, so add quotes: double-quote
19489 # substitution turns \\\\ into \\, and sed turns \\ into \.
19492 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19495 # `set' quotes correctly as required by POSIX, so do not add quotes.
19496 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19505 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19507 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19509 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
19510 if test -w "$cache_file"; then
19511 if test "x$cache_file" != "x/dev/null"; then
19512 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19513 $as_echo "$as_me: updating cache $cache_file" >&6;}
19514 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
19515 cat confcache
>"$cache_file"
19517 case $cache_file in #(
19519 mv -f confcache
"$cache_file"$$
&&
19520 mv -f "$cache_file"$$
"$cache_file" ;; #(
19522 mv -f confcache
"$cache_file" ;;
19527 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19528 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19533 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19534 # Let make expand exec_prefix.
19535 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19537 DEFS
=-DHAVE_CONFIG_H
19542 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19543 # 1. Remove the extension, and $U if already installed.
19544 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
19545 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
19546 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19547 # will be set to the directory where LIBOBJS objects are built.
19548 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19549 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
19551 LIBOBJS
=$ac_libobjs
19553 LTLIBOBJS
=$ac_ltlibobjs
19556 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19557 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
19558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19560 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
19561 as_fn_error $?
"conditional \"HAVE_PYTHON\" was never defined.
19562 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19564 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
19565 as_fn_error $?
"conditional \"HAVE_GUILE\" was never defined.
19566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19570 : "${CONFIG_STATUS=./config.status}"
19572 ac_clean_files_save
=$ac_clean_files
19573 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19574 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19575 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19577 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19579 # Generated by $as_me.
19580 # Run this file to recreate the current configuration.
19581 # Compiler output produced by configure, useful for debugging
19582 # configure, is in config.log if it exists.
19585 ac_cs_recheck=false
19588 SHELL=\${CONFIG_SHELL-$SHELL}
19591 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
19592 ## -------------------- ##
19593 ## M4sh Initialization. ##
19594 ## -------------------- ##
19596 # Be more Bourne compatible
19597 DUALCASE
=1; export DUALCASE
# for MKS sh
19598 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
19601 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19602 # is contrary to our usage. Disable this feature.
19603 alias -g '${1+"$@"}'='"$@"'
19604 setopt NO_GLOB_SUBST
19606 case `(set -o) 2>/dev/null` in #(
19618 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19619 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19620 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19621 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19622 # Prefer a ksh shell builtin over an external printf program on Solaris,
19623 # but without wasting forks for bash or zsh.
19624 if test -z "$BASH_VERSION$ZSH_VERSION" \
19625 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19626 as_echo='print
-r --'
19627 as_echo_n='print
-rn --'
19628 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19629 as_echo='printf %s
\n'
19630 as_echo_n='printf %s
'
19632 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19633 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
19634 as_echo_n='/usr
/ucb
/echo -n'
19636 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19637 as_echo_n_body='eval
19641 expr "X$arg" : "X\\(.*\\)$as_nl";
19642 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19644 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
19646 export as_echo_n_body
19647 as_echo_n='sh
-c $as_echo_n_body as_echo
'
19649 export as_echo_body
19650 as_echo='sh
-c $as_echo_body as_echo
'
19653 # The user is always right.
19654 if test "${PATH_SEPARATOR+set}" != set; then
19656 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19657 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19664 # We need space, tab and new line, in precisely that order. Quoting is
19665 # there to prevent editors from complaining about space-tab.
19666 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19667 # splitting by setting IFS to empty value.)
19670 # Find who we are. Look in the path if we contain no directory separator.
19673 *[\\/]* ) as_myself=$0 ;;
19674 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19675 for as_dir in $PATH
19678 test -z "$as_dir" && as_dir=.
19679 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19685 # We did not find ourselves, most probably we were run as `sh COMMAND'
19686 # in which case we are not to be found in the path.
19687 if test "x$as_myself" = x
; then
19690 if test ! -f "$as_myself"; then
19691 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19695 # Unset variables that we do not need and which cause bugs (e.g. in
19696 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19697 # suppresses any "Segmentation fault" message there. '((' could
19698 # trigger a bug in pdksh 5.2.14.
19699 for as_var
in BASH_ENV ENV MAIL MAILPATH
19700 do eval test x\
${$as_var+set} = xset \
19701 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
19714 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
19717 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19718 # ----------------------------------------
19719 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19720 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19721 # script with STATUS, using 1 if that was 0.
19724 as_status
=$1; test $as_status -eq 0 && as_status
=1
19726 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
19727 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19729 $as_echo "$as_me: error: $2" >&2
19730 as_fn_exit
$as_status
19734 # as_fn_set_status STATUS
19735 # -----------------------
19736 # Set $? to STATUS, without forking.
19737 as_fn_set_status
()
19740 } # as_fn_set_status
19742 # as_fn_exit STATUS
19743 # -----------------
19744 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19748 as_fn_set_status
$1
19754 # Portably unset VAR.
19757 { eval $1=; unset $1;}
19759 as_unset
=as_fn_unset
19760 # as_fn_append VAR VALUE
19761 # ----------------------
19762 # Append the text in VALUE to the end of the definition contained in VAR. Take
19763 # advantage of any shell optimizations that allow amortized linear growth over
19764 # repeated appends, instead of the typical quadratic growth present in naive
19766 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
19767 eval 'as_fn_append ()
19778 # as_fn_arith ARG...
19779 # ------------------
19780 # Perform arithmetic evaluation on the ARGs, and store the result in the
19781 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19782 # must be portable across $(()) and expr.
19783 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
19784 eval 'as_fn_arith ()
19791 as_val
=`expr "$@" || test $? -eq 1`
19796 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
19797 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
19803 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19804 as_basename
=basename
19809 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
19815 as_me
=`$as_basename -- "$0" ||
19816 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19817 X"$0" : 'X\(//\)$' \| \
19818 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19820 sed '/^.*\/\([^/][^/]*\)\/*$/{
19834 # Avoid depending upon Character Ranges.
19835 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19836 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19837 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19838 as_cr_digits
='0123456789'
19839 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19841 ECHO_C
= ECHO_N
= ECHO_T
=
19842 case `echo -n x` in #(((((
19844 case `echo 'xy\c'` in
19845 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
19847 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
19854 rm -f conf$$ conf$$.exe conf$$.
file
19855 if test -d conf$$.dir
; then
19856 rm -f conf$$.dir
/conf$$.
file
19859 mkdir conf$$.dir
2>/dev
/null
19861 if (echo >conf$$.
file) 2>/dev
/null
; then
19862 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19864 # ... but there are two gotchas:
19865 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19866 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19867 # In both cases, we have to default to `cp -pR'.
19868 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
19870 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19878 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
19879 rmdir conf$$.dir
2>/dev
/null
19884 # Create "$as_dir" as a directory, including parents if necessary.
19889 -*) as_dir
=.
/$as_dir;;
19891 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
19895 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19896 *) as_qdir
=$as_dir;;
19898 as_dirs
="'$as_qdir' $as_dirs"
19899 as_dir
=`$as_dirname -- "$as_dir" ||
19900 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19901 X"$as_dir" : 'X\(//\)[^/]' \| \
19902 X"$as_dir" : 'X\(//\)$' \| \
19903 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19904 $as_echo X"$as_dir" |
19905 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19909 /^X\(\/\/\)[^/].*/{
19922 test -d "$as_dir" && break
19924 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19925 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
19929 if mkdir
-p .
2>/dev
/null
; then
19930 as_mkdir_p
='mkdir -p "$as_dir"'
19932 test -d .
/-p && rmdir .
/-p
19937 # as_fn_executable_p FILE
19938 # -----------------------
19939 # Test if FILE is an executable regular file.
19940 as_fn_executable_p
()
19942 test -f "$1" && test -x "$1"
19943 } # as_fn_executable_p
19944 as_test_x
='test -x'
19945 as_executable_p
=as_fn_executable_p
19947 # Sed expression to map a string onto a valid CPP name.
19948 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19950 # Sed expression to map a string onto a valid variable name.
19951 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19955 ## ----------------------------------- ##
19956 ## Main body of $CONFIG_STATUS script. ##
19957 ## ----------------------------------- ##
19959 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
19961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19962 # Save the log message, to keep $0 and so on meaningful, and to
19963 # report actual input values of CONFIG_FILES etc. instead of their
19964 # values after options handling.
19966 This file was extended by $as_me, which was
19967 generated by GNU Autoconf 2.69. Invocation command line was
19969 CONFIG_FILES = $CONFIG_FILES
19970 CONFIG_HEADERS = $CONFIG_HEADERS
19971 CONFIG_LINKS = $CONFIG_LINKS
19972 CONFIG_COMMANDS = $CONFIG_COMMANDS
19975 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19980 case $ac_config_files in *"
19981 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
19984 case $ac_config_headers in *"
19985 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
19989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19990 # Files that config.status was made for.
19991 config_files="$ac_config_files"
19992 config_headers="$ac_config_headers"
19993 config_links="$ac_config_links"
19994 config_commands="$ac_config_commands"
19998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20000 \`$as_me' instantiates files and other configuration actions
20001 from templates according to the current configuration. Unless the files
20002 and actions are specified as TAGs, all are instantiated by default.
20004 Usage: $0 [OPTION]... [TAG]...
20006 -h, --help print this help, then exit
20007 -V, --version print version number and configuration settings, then exit
20008 --config print configuration, then exit
20009 -q, --quiet, --silent
20010 do not print progress messages
20011 -d, --debug don't remove temporary files
20012 --recheck update $as_me by reconfiguring in the same conditions
20013 --file=FILE[:TEMPLATE]
20014 instantiate the configuration file FILE
20015 --header=FILE[:TEMPLATE]
20016 instantiate the configuration header FILE
20018 Configuration files:
20021 Configuration headers:
20024 Configuration links:
20027 Configuration commands:
20030 Report bugs to the package provider."
20033 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20034 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20037 configured by $0, generated by GNU Autoconf 2.69,
20038 with options \\"\$ac_cs_config\\"
20040 Copyright (C) 2012 Free Software Foundation, Inc.
20041 This config.status script is free software; the Free Software Foundation
20042 gives unlimited permission to copy, distribute and modify it."
20048 test -n "\$AWK" || AWK=awk
20051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20052 # The default lists apply if the user does not specify any file.
20058 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20059 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20063 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20075 # Handling of the options.
20076 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20078 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20079 $as_echo "$ac_cs_version"; exit ;;
20080 --config |
--confi |
--conf |
--con |
--co |
--c )
20081 $as_echo "$ac_cs_config"; exit ;;
20082 --debug |
--debu |
--deb |
--de |
--d |
-d )
20084 --file |
--fil |
--fi |
--f )
20087 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20088 '') as_fn_error $?
"missing file argument" ;;
20090 as_fn_append CONFIG_FILES
" '$ac_optarg'"
20091 ac_need_defaults
=false
;;
20092 --header |
--heade |
--head |
--hea )
20095 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20097 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
20098 ac_need_defaults
=false
;;
20100 # Conflict between --help and --header
20101 as_fn_error $?
"ambiguous option: \`$1'
20102 Try \`$0 --help' for more information.";;
20103 --help |
--hel |
-h )
20104 $as_echo "$ac_cs_usage"; exit ;;
20105 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20106 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20109 # This is an error.
20110 -*) as_fn_error $?
"unrecognized option: \`$1'
20111 Try \`$0 --help' for more information." ;;
20113 *) as_fn_append ac_config_targets
" $1"
20114 ac_need_defaults
=false
;;
20120 ac_configure_extra_args
=
20122 if $ac_cs_silent; then
20124 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20129 if \$ac_cs_recheck; then
20130 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20132 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20133 CONFIG_SHELL='$SHELL'
20134 export CONFIG_SHELL
20139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20143 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20144 ## Running $as_me. ##
20150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20154 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
20155 GDB_NM_FILE=$GDB_NM_FILE
20159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20161 # Handling of arguments.
20162 for ac_config_target
in $ac_config_targets
20164 case $ac_config_target in
20165 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
20166 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
20167 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
20168 "nm.h") CONFIG_LINKS
="$CONFIG_LINKS nm.h:$GDB_NM_FILE" ;;
20169 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
20170 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20171 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
20172 "gdb-gdb.py") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.py" ;;
20173 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
20174 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
20176 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20181 # If the user did not use the arguments to specify the items to instantiate,
20182 # then the envvar interface is used. Set only those that are not.
20183 # We use the long form for the default assignment because of an extremely
20184 # bizarre bug on SunOS 4.1.3.
20185 if $ac_need_defaults; then
20186 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20187 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20188 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
20189 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20192 # Have a temporary directory for convenience. Make it in the build tree
20193 # simply because there is no reason against having it here, and in addition,
20194 # creating and moving files from /tmp can sometimes cause problems.
20195 # Hook for its removal unless debugging.
20196 # Note that there is a small window in which the directory will not be cleaned:
20197 # after its creation but before its name has been assigned to `$tmp'.
20201 trap 'exit_status=$?
20202 : "${ac_tmp:=$tmp}"
20203 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20205 trap 'as_fn_exit 1' 1 2 13 15
20207 # Create a (secure) tmp directory for tmp files.
20210 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20214 tmp
=.
/conf$$
-$RANDOM
20215 (umask 077 && mkdir
"$tmp")
20216 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
20219 # Set up the scripts for CONFIG_FILES section.
20220 # No need to generate them if there are no CONFIG_FILES.
20221 # This happens for instance with `./config.status config.h'.
20222 if test -n "$CONFIG_FILES"; then
20224 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
20225 ac_cs_awk_getline
=:
20226 ac_cs_awk_pipe_init
=
20227 ac_cs_awk_read_file
='
20228 while ((getline aline < (F[key])) > 0)
20231 ac_cs_awk_pipe_fini
=
20233 ac_cs_awk_getline
=false
20234 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
20235 ac_cs_awk_read_file
='
20237 print "cat " F[key] " &&"
20238 '$ac_cs_awk_pipe_init
20239 # The final `:' finishes the AND list.
20240 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
20242 ac_cr
=`echo X | tr X '\015'`
20243 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20244 # But we know of no other shell where ac_cr would be empty at this
20245 # point, so we can use a bashism as a fallback.
20246 if test "x$ac_cr" = x
; then
20247 eval ac_cr
=\$
\'\\r
\'
20249 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20250 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20253 ac_cs_awk_cr
=$ac_cr
20256 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20259 # Create commands to substitute file output variables.
20261 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20262 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
20263 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
20266 } >conf$
$files.sh
&&
20267 . .
/conf$
$files.sh ||
20268 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
20269 rm -f conf$
$files.sh
20272 echo "cat >conf$$subs.awk <<_ACEOF" &&
20273 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20275 } >conf$$subs.sh ||
20276 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20277 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20279 for ac_last_try in false false false false false :; do
20280 . ./conf$$subs.sh ||
20281 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20283 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20284 if test $ac_delim_n = $ac_delim_num; then
20286 elif $ac_last_try; then
20287 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20289 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20292 rm -f conf$$subs.sh
20294 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20295 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
20299 s/^/S["/; s
/!.
*/"]=/
20309 s/\(.\{148\}\)..*/\1/
20311 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
20316 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20323 s/\(.\{148\}\)..*/\1/
20325 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
20329 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20334 ' <conf$$subs.awk | sed '
20339 ' >>$CONFIG_STATUS || ac_write_fail=1
20340 rm -f conf$$subs.awk
20341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20343 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
20344 for (key in S) S_is_set[key] = 1
20346 \$ac_cs_awk_pipe_init
20350 nfields = split(line, field, "@
")
20352 len = length(field[1])
20353 for (i = 2; i < nfields; i++) {
20355 keylen = length(key)
20356 if (S_is_set[key]) {
20358 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20359 len += length(value) + length(field[++i])
20364 if (nfields == 3 && !substed) {
20366 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
20367 \$ac_cs_awk_read_file
20373 \$ac_cs_awk_pipe_fini
20376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20377 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20378 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
20381 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
20382 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
20385 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20386 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
20387 # trailing colons and then remove the whole line if VPATH becomes empty
20388 # (actually we leave an empty line to preserve line numbers).
20389 if test "x
$srcdir" = x.; then
20390 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20409 fi # test -n "$CONFIG_FILES"
20411 # Set up the scripts for CONFIG_HEADERS section.
20412 # No need to generate them if there are no CONFIG_HEADERS.
20413 # This happens for instance with `./config.status Makefile'.
20414 if test -n "$CONFIG_HEADERS"; then
20415 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
20419 # Transform confdefs.h into an awk script `defines.awk', embedded as
20420 # here-document in config.status, that substitutes the proper values into
20421 # config.h.in to produce config.h.
20423 # Create a delimiter string that does not exist in confdefs.h, to ease
20424 # handling of long lines.
20426 for ac_last_try in false false :; do
20427 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
20428 if test -z "$ac_tt"; then
20430 elif $ac_last_try; then
20431 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
20433 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20437 # For the awk script, D is an array of macro values keyed by name,
20438 # likewise P contains macro parameters if any. Preserve backslash
20439 # newline sequences.
20441 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20443 s/.\{148\}/&'"$ac_delim"'/g
20446 s/^[ ]*#[ ]*define[ ][ ]*/ /
20453 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
20455 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
20459 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
20460 D["\
1"]=" \
3\\\\\\n
"\\/p
20462 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
20467 s/.\{148\}/&'"$ac_delim"'/g
20472 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
20475 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
20477 ' <confdefs.h | sed '
20478 s/'"$ac_delim"'/"\\\
20479 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20481 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20482 for (key in D) D_is_set[key] = 1
20485 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20487 split(line, arg, " ")
20488 if (arg[1] == "#") {
20492 defundef
= substr
(arg
[1], 2)
20495 split(mac1
, mac2
, "(") #)
20497 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
20498 if (D_is_set
[macro
]) {
20499 # Preserve the white space surrounding the "#".
20500 print prefix
"define", macro P
[macro
] D
[macro
]
20503 # Replace #undef with comments. This is necessary, for example,
20504 # in the case of _POSIX_SOURCE, which is predefined and required
20505 # on some systems where configure will not decide to define it.
20506 if (defundef
== "undef") {
20507 print
"/*", prefix defundef
, macro
, "*/"
20515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20516 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
20517 fi # test -n "$CONFIG_HEADERS"
20520 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
20525 :[FHLC
]) ac_mode
=$ac_tag; continue;;
20527 case $ac_mode$ac_tag in
20529 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
20530 :[FH
]-) ac_tag
=-:-;;
20531 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
20548 -) ac_f
="$ac_tmp/stdin";;
20549 *) # Look for the file first in the build tree, then in the source tree
20550 # (if the path is not absolute). The absolute path cannot be DOS-style,
20551 # because $ac_f cannot contain `:'.
20555 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
20557 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20559 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20560 as_fn_append ac_file_inputs
" '$ac_f'"
20563 # Let's still pretend it is `configure' which instantiates (i.e., don't
20564 # use $as_me), people would be surprised to read:
20565 # /* config.h. Generated by config.status. */
20566 configure_input
='Generated from '`
20567 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20569 if test x
"$ac_file" != x-
; then
20570 configure_input
="$ac_file. $configure_input"
20571 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20572 $as_echo "$as_me: creating $ac_file" >&6;}
20574 # Neutralize special characters interpreted by sed in replacement strings.
20575 case $configure_input in #(
20576 *\
&* |
*\|
* |
*\\* )
20577 ac_sed_conf_input
=`$as_echo "$configure_input" |
20578 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20579 *) ac_sed_conf_input
=$configure_input;;
20583 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
20584 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
20589 ac_dir
=`$as_dirname -- "$ac_file" ||
20590 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20591 X"$ac_file" : 'X\(//\)[^/]' \| \
20592 X"$ac_file" : 'X\(//\)$' \| \
20593 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20594 $as_echo X"$ac_file" |
20595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20599 /^X\(\/\/\)[^/].*/{
20612 as_dir
="$ac_dir"; as_fn_mkdir_p
20616 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20618 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20619 # A ".." for each directory in $ac_dir_suffix.
20620 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20621 case $ac_top_builddir_sub in
20622 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20623 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20626 ac_abs_top_builddir
=$ac_pwd
20627 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
20628 # for backward compatibility:
20629 ac_top_builddir
=$ac_top_build_prefix
20632 .
) # We are building in place.
20634 ac_top_srcdir
=$ac_top_builddir_sub
20635 ac_abs_top_srcdir
=$ac_pwd ;;
20636 [\\/]* | ?
:[\\/]* ) # Absolute name.
20637 ac_srcdir
=$srcdir$ac_dir_suffix;
20638 ac_top_srcdir
=$srcdir
20639 ac_abs_top_srcdir
=$srcdir ;;
20640 *) # Relative name.
20641 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
20642 ac_top_srcdir
=$ac_top_build_prefix$srcdir
20643 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
20645 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
20655 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20656 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
20660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20661 # If the template does not know about datarootdir, expand it.
20662 # FIXME: This hack should be removed a few years after 2.60.
20663 ac_datarootdir_hack
=; ac_datarootdir_seen
=
20674 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20675 *datarootdir
*) ac_datarootdir_seen
=yes;;
20676 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
20677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20678 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20680 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20681 ac_datarootdir_hack='
20682 s&@datadir@&$datadir&g
20683 s&@docdir@&$docdir&g
20684 s&@infodir@&$infodir&g
20685 s&@localedir@&$localedir&g
20686 s&@mandir@&$mandir&g
20687 s&\\\${datarootdir}&$datarootdir&g' ;;
20691 # Neutralize VPATH when `$srcdir' = `.'.
20692 # Shell code in configure.ac might set extrasub.
20693 # FIXME: do we really want to maintain this feature?
20694 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20695 ac_sed_extra="$ac_vpsub
20698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20700 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20701 s|@configure_input@|
$ac_sed_conf_input|
;t t
20702 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
20703 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
20704 s
&@srcdir@
&$ac_srcdir&;t t
20705 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
20706 s
&@top_srcdir@
&$ac_top_srcdir&;t t
20707 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
20708 s
&@builddir@
&$ac_builddir&;t t
20709 s
&@abs_builddir@
&$ac_abs_builddir&;t t
20710 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
20711 s
&@INSTALL@
&$ac_INSTALL&;t t
20712 $ac_datarootdir_hack
20714 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
20715 if $ac_cs_awk_getline; then
20716 $AWK -f "$ac_tmp/subs.
awk"
20718 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
20720 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
20722 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20723 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
20724 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20725 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
20726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
20727 which seems to be undefined. Please make sure it is defined" >&5
20728 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
20729 which seems to be undefined. Please make sure it is defined" >&2;}
20731 rm -f "$ac_tmp/stdin"
20733 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20734 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20736 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20742 if test x"$ac_file" != x-; then
20744 $as_echo "/* $configure_input */" \
20745 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20746 } >"$ac_tmp/config.h" \
20747 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20748 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20749 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20750 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20753 mv "$ac_tmp/config.h" "$ac_file" \
20754 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20757 $as_echo "/* $configure_input */" \
20758 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20759 || as_fn_error $? "could not create -" "$LINENO" 5
20767 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
20770 # Prefer the file from the source tree if names are identical.
20771 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
20772 ac_source=$srcdir/$ac_source
20775 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
20776 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
20778 if test ! -r "$ac_source"; then
20779 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
20783 # Try a relative symlink, then a hard link, then a copy.
20785 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
20786 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
20788 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
20789 ln "$ac_source" "$ac_file" 2>/dev/null ||
20790 cp -p "$ac_source" "$ac_file" ||
20791 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
20794 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20795 $as_echo "$as_me: executing $ac_file commands" >&6;}
20800 case $ac_file$ac_mode in
20801 "config.h":H) echo > stamp-h ;;
20802 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
20803 "nm.h":L) echo > stamp-nmh ;;
20804 "gcore":F) chmod +x gcore ;;
20812 ac_clean_files=$ac_clean_files_save
20814 test $ac_write_fail = 0 ||
20815 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20818 # configure is writing to config.log, and then calls config.status.
20819 # config.status does its own redirection, appending to config.log.
20820 # Unfortunately, on DOS this fails, as config.log is still kept open
20821 # by configure, so config.status won't be able to
write to it
; its
20822 # output is simply discarded. So we exec the FD to /dev/null,
20823 # effectively closing config.log, so it can be properly (re)opened and
20824 # appended to by config.status. When coming back to configure, we
20825 # need to make the FD available again.
20826 if test "$no_create" != yes; then
20828 ac_config_status_args
=
20829 test "$silent" = yes &&
20830 ac_config_status_args
="$ac_config_status_args --quiet"
20832 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20834 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20835 # would make configure fail if this is the last instruction.
20836 $ac_cs_success || as_fn_exit
1
20840 # CONFIG_SUBDIRS section.
20842 if test "$no_recursion" != yes; then
20844 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
20845 # so they do not pile up.
20846 ac_sub_configure_args
=
20848 eval "set x $ac_configure_args"
20852 if test -n "$ac_prev"; then
20857 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
20858 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
20859 ac_prev
=cache_file
;;
20860 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
20861 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
20864 --config-cache |
-C)
20866 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
20868 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
20870 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
20872 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
20874 --disable-option-checking)
20878 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20880 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
20884 # Always prepend --prefix to ensure using the same prefix
20885 # in subdir configurations.
20886 ac_arg
="--prefix=$prefix"
20888 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20890 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
20893 if test "$silent" = yes; then
20894 ac_sub_configure_args
="--silent $ac_sub_configure_args"
20897 # Always prepend --disable-option-checking to silence warnings, since
20898 # different subdirs can have different --enable and --with options.
20899 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
20902 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
20904 # Do not complain, so a configure script can configure whichever
20905 # parts of a large source tree are present.
20906 test -d "$srcdir/$ac_dir" ||
continue
20908 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20909 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
20910 $as_echo "$ac_msg" >&6
20911 as_dir
="$ac_dir"; as_fn_mkdir_p
20915 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20917 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20918 # A ".." for each directory in $ac_dir_suffix.
20919 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20920 case $ac_top_builddir_sub in
20921 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20922 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20925 ac_abs_top_builddir
=$ac_pwd
20926 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
20927 # for backward compatibility:
20928 ac_top_builddir
=$ac_top_build_prefix
20931 .
) # We are building in place.
20933 ac_top_srcdir
=$ac_top_builddir_sub
20934 ac_abs_top_srcdir
=$ac_pwd ;;
20935 [\\/]* | ?
:[\\/]* ) # Absolute name.
20936 ac_srcdir
=$srcdir$ac_dir_suffix;
20937 ac_top_srcdir
=$srcdir
20938 ac_abs_top_srcdir
=$srcdir ;;
20939 *) # Relative name.
20940 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
20941 ac_top_srcdir
=$ac_top_build_prefix$srcdir
20942 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
20944 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
20949 # Check for guested configure; otherwise get Cygnus style configure.
20950 if test -f "$ac_srcdir/configure.gnu"; then
20951 ac_sub_configure
=$ac_srcdir/configure.gnu
20952 elif test -f "$ac_srcdir/configure"; then
20953 ac_sub_configure
=$ac_srcdir/configure
20954 elif test -f "$ac_srcdir/configure.in"; then
20955 # This should be Cygnus configure.
20956 ac_sub_configure
=$ac_aux_dir/configure
20958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
20959 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20963 # The recursion is here.
20964 if test -n "$ac_sub_configure"; then
20965 # Make the cache file name correct relative to the subdirectory.
20966 case $cache_file in
20967 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
20968 *) # Relative name.
20969 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
20972 { $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
20973 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20974 # The eval makes quoting arguments work.
20975 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20976 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20977 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
20983 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
20984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20985 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}