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
641 HAVE_NATIVE_GCORE_HOST
744 READLINE_TEXI_INCFLAG
773 HAVE_NATIVE_GCORE_TARGET
800 INSTALL_STRIP_PROGRAM
830 MAINTAINER_MODE_FALSE
859 program_transform_name
870 ac_subst_files
='nat_makefile_frag'
872 enable_option_checking
873 enable_maintainer_mode
876 with_separate_debug_dir
878 with_relocated_sources
880 with_auto_load_safe_path
912 enable_source_highlight
919 with_system_gdbinit_dir
921 enable_build_warnings
922 enable_gdb_build_warnings
933 with_libbabeltrace_prefix
934 with_libbabeltrace_type
937 with_libxxhash_prefix
941 ac_precious_vars
='build_alias
963 ac_subdirs_all
='testsuite
966 # Initialize some variables set by options.
968 ac_init_version
=false
969 ac_unrecognized_opts
=
971 # The variables have the same names as the options, with
972 # dashes changed to underlines.
980 program_transform_name
=s
,x
,x
,
988 # Installation directory options.
989 # These are left unexpanded so users can "make install exec_prefix=/foo"
990 # and all the variables that are supposed to be based on exec_prefix
991 # by default will actually change.
992 # Use braces instead of parens because sh, perl, etc. also accept them.
993 # (The list follows the same order as the GNU Coding Standards.)
994 bindir
='${exec_prefix}/bin'
995 sbindir
='${exec_prefix}/sbin'
996 libexecdir
='${exec_prefix}/libexec'
997 datarootdir
='${prefix}/share'
998 datadir
='${datarootdir}'
999 sysconfdir
='${prefix}/etc'
1000 sharedstatedir
='${prefix}/com'
1001 localstatedir
='${prefix}/var'
1002 includedir
='${prefix}/include'
1003 oldincludedir
='/usr/include'
1004 docdir
='${datarootdir}/doc/${PACKAGE}'
1005 infodir
='${datarootdir}/info'
1010 libdir
='${exec_prefix}/lib'
1011 localedir
='${datarootdir}/locale'
1012 mandir
='${datarootdir}/man'
1018 # If the previous option needs an argument, assign it.
1019 if test -n "$ac_prev"; then
1020 eval $ac_prev=\
$ac_option
1026 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1031 # Accept the important Cygnus configure options, so we can diagnose typos.
1033 case $ac_dashdash$ac_option in
1037 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1039 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1040 bindir
=$ac_optarg ;;
1042 -build |
--build |
--buil |
--bui |
--bu)
1043 ac_prev
=build_alias
;;
1044 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1045 build_alias
=$ac_optarg ;;
1047 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1048 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1049 ac_prev
=cache_file
;;
1050 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1051 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1052 cache_file
=$ac_optarg ;;
1054 --config-cache |
-C)
1055 cache_file
=config.cache
;;
1057 -datadir |
--datadir |
--datadi |
--datad)
1059 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1060 datadir
=$ac_optarg ;;
1062 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1063 |
--dataroo |
--dataro |
--datar)
1064 ac_prev
=datarootdir
;;
1065 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1066 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1067 datarootdir
=$ac_optarg ;;
1069 -disable-* |
--disable-*)
1070 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1073 as_fn_error $?
"invalid feature name: $ac_useropt"
1074 ac_useropt_orig
=$ac_useropt
1075 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076 case $ac_user_opts in
1078 "enable_
$ac_useropt"
1080 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1081 ac_unrecognized_sep
=', ';;
1083 eval enable_
$ac_useropt=no
;;
1085 -docdir |
--docdir |
--docdi |
--doc |
--do)
1087 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1088 docdir
=$ac_optarg ;;
1090 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1092 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1093 dvidir
=$ac_optarg ;;
1095 -enable-* |
--enable-*)
1096 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1099 as_fn_error $?
"invalid feature name: $ac_useropt"
1100 ac_useropt_orig
=$ac_useropt
1101 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1104 "enable_
$ac_useropt"
1106 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1107 ac_unrecognized_sep
=', ';;
1109 eval enable_
$ac_useropt=\
$ac_optarg ;;
1111 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1112 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1113 |
--exec |
--exe |
--ex)
1114 ac_prev
=exec_prefix
;;
1115 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1116 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1117 |
--exec=* |
--exe=* |
--ex=*)
1118 exec_prefix
=$ac_optarg ;;
1120 -gas |
--gas |
--ga |
--g)
1121 # Obsolete; use --with-gas.
1124 -help |
--help |
--hel |
--he |
-h)
1125 ac_init_help
=long
;;
1126 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1127 ac_init_help
=recursive
;;
1128 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1129 ac_init_help
=short
;;
1131 -host |
--host |
--hos |
--ho)
1132 ac_prev
=host_alias
;;
1133 -host=* |
--host=* |
--hos=* |
--ho=*)
1134 host_alias
=$ac_optarg ;;
1136 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1138 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1140 htmldir
=$ac_optarg ;;
1142 -includedir |
--includedir |
--includedi |
--included |
--include \
1143 |
--includ |
--inclu |
--incl |
--inc)
1144 ac_prev
=includedir
;;
1145 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1146 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1147 includedir
=$ac_optarg ;;
1149 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1151 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1152 infodir
=$ac_optarg ;;
1154 -libdir |
--libdir |
--libdi |
--libd)
1156 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1157 libdir
=$ac_optarg ;;
1159 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1160 |
--libexe |
--libex |
--libe)
1161 ac_prev
=libexecdir
;;
1162 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1163 |
--libexe=* |
--libex=* |
--libe=*)
1164 libexecdir
=$ac_optarg ;;
1166 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1167 ac_prev
=localedir
;;
1168 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1169 localedir
=$ac_optarg ;;
1171 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1172 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1173 ac_prev
=localstatedir
;;
1174 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1175 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1176 localstatedir
=$ac_optarg ;;
1178 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1180 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1181 mandir
=$ac_optarg ;;
1183 -nfp |
--nfp |
--nf)
1184 # Obsolete; use --without-fp.
1187 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1188 |
--no-cr |
--no-c |
-n)
1191 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1192 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1195 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1196 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1197 |
--oldin |
--oldi |
--old |
--ol |
--o)
1198 ac_prev
=oldincludedir
;;
1199 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1200 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1201 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1202 oldincludedir
=$ac_optarg ;;
1204 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1206 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1207 prefix
=$ac_optarg ;;
1209 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1210 |
--program-pre |
--program-pr |
--program-p)
1211 ac_prev
=program_prefix
;;
1212 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1213 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1214 program_prefix
=$ac_optarg ;;
1216 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1217 |
--program-suf |
--program-su |
--program-s)
1218 ac_prev
=program_suffix
;;
1219 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1220 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1221 program_suffix
=$ac_optarg ;;
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 ac_prev
=program_transform_name
;;
1231 -program-transform-name=* |
--program-transform-name=* \
1232 |
--program-transform-nam=* |
--program-transform-na=* \
1233 |
--program-transform-n=* |
--program-transform-=* \
1234 |
--program-transform=* |
--program-transfor=* \
1235 |
--program-transfo=* |
--program-transf=* \
1236 |
--program-trans=* |
--program-tran=* \
1237 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1238 program_transform_name
=$ac_optarg ;;
1240 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1242 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1243 pdfdir
=$ac_optarg ;;
1245 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1247 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1250 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1251 |
-silent |
--silent |
--silen |
--sile |
--sil)
1254 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1256 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1258 sbindir
=$ac_optarg ;;
1260 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1261 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1262 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1264 ac_prev
=sharedstatedir
;;
1265 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1266 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1267 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1269 sharedstatedir
=$ac_optarg ;;
1271 -site |
--site |
--sit)
1273 -site=* |
--site=* |
--sit=*)
1276 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1278 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1279 srcdir
=$ac_optarg ;;
1281 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1282 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1283 ac_prev
=sysconfdir
;;
1284 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1285 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1286 sysconfdir
=$ac_optarg ;;
1288 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1289 ac_prev
=target_alias
;;
1290 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1291 target_alias
=$ac_optarg ;;
1293 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1296 -version |
--version |
--versio |
--versi |
--vers |
-V)
1297 ac_init_version
=: ;;
1300 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1301 # Reject names that are not valid shell variable names.
1302 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1303 as_fn_error $?
"invalid package name: $ac_useropt"
1304 ac_useropt_orig
=$ac_useropt
1305 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1306 case $ac_user_opts in
1310 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1311 ac_unrecognized_sep
=', ';;
1313 eval with_
$ac_useropt=\
$ac_optarg ;;
1315 -without-* |
--without-*)
1316 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1317 # Reject names that are not valid shell variable names.
1318 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1319 as_fn_error $?
"invalid package name: $ac_useropt"
1320 ac_useropt_orig
=$ac_useropt
1321 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1322 case $ac_user_opts in
1326 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1327 ac_unrecognized_sep
=', ';;
1329 eval with_
$ac_useropt=no
;;
1332 # Obsolete; use --with-x.
1335 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1336 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1337 ac_prev
=x_includes
;;
1338 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1339 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1340 x_includes
=$ac_optarg ;;
1342 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1343 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1344 ac_prev
=x_libraries
;;
1345 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1346 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1347 x_libraries
=$ac_optarg ;;
1349 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1350 Try \`$0 --help' for more information"
1354 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1355 # Reject names that are not valid shell variable names.
1356 case $ac_envvar in #(
1357 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1358 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1360 eval $ac_envvar=\
$ac_optarg
1361 export $ac_envvar ;;
1364 # FIXME: should be removed in autoconf 3.0.
1365 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1366 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1367 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1368 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1374 if test -n "$ac_prev"; then
1375 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1376 as_fn_error $?
"missing argument to $ac_option"
1379 if test -n "$ac_unrecognized_opts"; then
1380 case $enable_option_checking in
1382 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1383 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1387 # Check all directory arguments for consistency.
1388 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1389 datadir sysconfdir sharedstatedir localstatedir includedir \
1390 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1391 libdir localedir mandir
1393 eval ac_val
=\$
$ac_var
1394 # Remove trailing slashes.
1397 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1398 eval $ac_var=\
$ac_val;;
1400 # Be sure to have absolute directory names.
1402 [\\/$
]* | ?
:[\\/]* ) continue;;
1403 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1405 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1408 # There might be people who depend on the old broken behavior: `$host'
1409 # used to hold the argument of --host etc.
1410 # FIXME: To remove some day.
1413 target
=$target_alias
1415 # FIXME: To remove some day.
1416 if test "x$host_alias" != x
; then
1417 if test "x$build_alias" = x
; then
1418 cross_compiling
=maybe
1419 elif test "x$build_alias" != "x$host_alias"; then
1425 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1427 test "$silent" = yes && exec 6>/dev
/null
1430 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1431 ac_ls_di
=`ls -di .` &&
1432 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1433 as_fn_error $?
"working directory cannot be determined"
1434 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1435 as_fn_error $?
"pwd does not report name of working directory"
1438 # Find the source files, if location was not specified.
1439 if test -z "$srcdir"; then
1440 ac_srcdir_defaulted
=yes
1441 # Try the directory containing this script, then the parent directory.
1442 ac_confdir
=`$as_dirname -- "$as_myself" ||
1443 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1444 X"$as_myself" : 'X\(//\)[^/]' \| \
1445 X"$as_myself" : 'X\(//\)$' \| \
1446 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1447 $as_echo X"$as_myself" |
1448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1466 if test ! -r "$srcdir/$ac_unique_file"; then
1470 ac_srcdir_defaulted
=no
1472 if test ! -r "$srcdir/$ac_unique_file"; then
1473 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1474 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1476 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1478 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1480 # When building in place, set srcdir=.
1481 if test "$ac_abs_confdir" = "$ac_pwd"; then
1484 # Remove unnecessary trailing slashes from srcdir.
1485 # Double slashes in file names in object file debugging info
1486 # mess up M-x gdb in Emacs.
1488 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1490 for ac_var
in $ac_precious_vars; do
1491 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1492 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1493 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1494 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1498 # Report the --help message.
1500 if test "$ac_init_help" = "long"; then
1501 # Omit some internal or obsolete options to make the list less imposing.
1502 # This message is too long to be a string in the A/UX 3.1 sh.
1504 \`configure' configures this package to adapt to many kinds of systems.
1506 Usage: $0 [OPTION]... [VAR=VALUE]...
1508 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1509 VAR=VALUE. See below for descriptions of some of the useful variables.
1511 Defaults for the options are specified in brackets.
1514 -h, --help display this help and exit
1515 --help=short display options specific to this package
1516 --help=recursive display the short help of all the included packages
1517 -V, --version display version information and exit
1518 -q, --quiet, --silent do not print \`checking ...' messages
1519 --cache-file=FILE cache test results in FILE [disabled]
1520 -C, --config-cache alias for \`--cache-file=config.cache'
1521 -n, --no-create do not create output files
1522 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1524 Installation directories:
1525 --prefix=PREFIX install architecture-independent files in PREFIX
1526 [$ac_default_prefix]
1527 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1530 By default, \`make install' will install all the files in
1531 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1532 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1533 for instance \`--prefix=\$HOME'.
1535 For better control, use the options below.
1537 Fine tuning of the installation directories:
1538 --bindir=DIR user executables [EPREFIX/bin]
1539 --sbindir=DIR system admin executables [EPREFIX/sbin]
1540 --libexecdir=DIR program executables [EPREFIX/libexec]
1541 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1542 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1543 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1544 --libdir=DIR object code libraries [EPREFIX/lib]
1545 --includedir=DIR C header files [PREFIX/include]
1546 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1547 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1548 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1549 --infodir=DIR info documentation [DATAROOTDIR/info]
1550 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1551 --mandir=DIR man documentation [DATAROOTDIR/man]
1552 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1553 --htmldir=DIR html documentation [DOCDIR]
1554 --dvidir=DIR dvi documentation [DOCDIR]
1555 --pdfdir=DIR pdf documentation [DOCDIR]
1556 --psdir=DIR ps documentation [DOCDIR]
1562 --program-prefix=PREFIX prepend PREFIX to installed program names
1563 --program-suffix=SUFFIX append SUFFIX to installed program names
1564 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1567 --x-includes=DIR X include files are
in DIR
1568 --x-libraries=DIR X library files are
in DIR
1571 --build=BUILD configure
for building on BUILD
[guessed
]
1572 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1573 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1577 if test -n "$ac_init_help"; then
1582 --disable-option-checking ignore unrecognized
--enable/--with options
1583 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1584 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1585 --enable-maintainer-mode
1586 enable make rules and dependencies not useful
(and
1587 sometimes confusing
) to the casual installer
1588 --enable-plugins Enable support
for plugins
1589 --disable-largefile omit support
for large files
1590 --enable-targets=TARGETS
1591 alternative target configurations
1592 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1593 --disable-gdbmi disable machine-interface
(MI
)
1594 --enable-tui enable full-screen terminal user interface
(TUI
)
1595 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1596 --enable-profiling enable profiling of GDB
1597 --enable-codesign=CERT sign gdb with
'codesign -s CERT'
1598 --disable-rpath do not hardcode runtime library paths
1599 --enable-source-highlight
1600 enable source-highlight
for source listings
1601 --enable-threading include support
for parallel processing of data
1603 --enable-werror treat compile warnings as errors
1604 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1605 --enable-gdb-build-warnings
1606 enable GDB specific build-time compiler warnings
if
1608 --enable-ubsan enable undefined behavior sanitizer
(auto
/yes
/no
)
1609 --enable-sim link gdb with simulator
1610 --enable-libbacktrace use libbacktrace to
write a backtrace after a fatal
1612 --enable-libctf Handle .ctf type-info sections
[default
=yes]
1613 --enable-unit-tests Enable the inclusion of unit tests when compiling
1617 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1618 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1619 --with-separate-debug-dir=PATH
1620 look for global separate debug info
in this path
1622 --with-gdb-datadir=PATH
look for global separate data files
in this path
1624 --with-relocated-sources=PATH
1625 automatically relocate this path
for source files
1626 --with-auto-load-dir=PATH
1627 directories from
which to load auto-loaded scripts
1628 [$debugdir:$datadir/auto-load
]
1629 --with-auto-load-safe-path=PATH
1630 directories safe to hold auto-loaded files
1631 [--with-auto-load-dir]
1632 --without-auto-load-safe-path
1633 do not restrict auto-loaded files locations
1634 --with-debuginfod Enable debuginfo lookups with debuginfod
1636 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1637 --with-curses use the curses library instead of the termcap
1639 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1640 --with-bugurl=URL Direct users to URL to report a bug
1641 --with-system-zlib use installed libz
1642 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1643 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1644 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1645 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1646 --with-iconv-bin=PATH specify where to find the iconv program
1647 --with-system-readline use installed readline library
1648 --with-jit-reader-dir=PATH
1649 directory to load the JIT readers from
1650 --with-expat include expat support (auto/yes/no)
1651 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1652 --without-libexpat-prefix don't search
for libexpat
in includedir and libdir
1653 --with-libexpat-type=TYPE
type of library to search
for (auto
/static
/shared
)
1654 --with-libgmp-prefix[=DIR
] search
for libgmp
in DIR
/include and DIR
/lib
1655 --without-libgmp-prefix don
't search for libgmp in includedir and libdir
1656 --with-libgmp-type=TYPE type of library to search for (auto/static/shared)
1657 --with-mpfr include MPFR support (auto/yes/no)
1658 --with-libmpfr-prefix[=DIR] search for libmpfr in DIR/include and DIR/lib
1659 --without-libmpfr-prefix don't search
for libmpfr
in includedir and libdir
1660 --with-libmpfr-type=TYPE
type of library to search
for (auto
/static
/shared
)
1661 --with-python[=PYTHON
] include python support
1662 (auto
/yes
/no
/<python-program
>)
1663 --with-python-libdir[=DIR
]
1664 search
for python
's libraries in DIR
1665 --with-guile[=GUILE] include guile support
1666 (auto/yes/no/<guile-version>/<pkg-config-program>)
1667 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1668 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1669 --without-libipt-prefix don't search
for libipt
in includedir and libdir
1670 --with-libipt-type=TYPE
type of library to search
for (auto
/static
/shared
)
1671 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1672 --with-system-gdbinit=PATH
1673 automatically load a system-wide gdbinit
file
1674 --with-system-gdbinit-dir=PATH
1675 automatically load system-wide gdbinit files from
1677 --with-lzma support lzma compression
(auto
/yes
/no
)
1678 --with-liblzma-prefix[=DIR
] search
for liblzma
in DIR
/include and DIR
/lib
1679 --without-liblzma-prefix don
't search for liblzma in includedir and libdir
1680 --with-liblzma-type=TYPE type of library to search for (auto/static/shared)
1681 --with-tcl directory containing tcl configuration (tclConfig.sh)
1682 --with-tk directory containing tk configuration (tkConfig.sh)
1683 --with-x use the X Window System
1684 --with-babeltrace include babeltrace support (auto/yes/no)
1685 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1686 --without-libbabeltrace-prefix don't search
for libbabeltrace
in includedir and libdir
1687 --with-libbabeltrace-type=TYPE
type of library to search
for (auto
/static
/shared
)
1688 --with-xxhash use libxxhash
for hashing
(faster
) (auto
/yes
/no
)
1689 --with-libxxhash-prefix[=DIR
] search
for libxxhash
in DIR
/include and DIR
/lib
1690 --without-libxxhash-prefix don
't search for libxxhash in includedir and libdir
1691 --with-libxxhash-type=TYPE type of library to search for (auto/static/shared)
1693 Some influential environment variables:
1694 CC C compiler command
1695 CFLAGS C compiler flags
1696 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1697 nonstandard directory <lib dir>
1698 LIBS libraries to pass to the linker, e.g. -l<library>
1699 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1700 you have headers in a nonstandard directory <include dir>
1701 CXX C++ compiler command
1702 CXXFLAGS C++ compiler flags
1704 MAKEINFO Parent configure detects if it is of sufficient version.
1706 Parameters for MAKEINFO.
1707 PKG_CONFIG path to pkg-config utility
1709 directories to add to pkg-config's search path
1711 path overriding pkg-config
's built-in search path
1713 C compiler flags for DEBUGINFOD, overriding pkg-config
1715 linker flags for DEBUGINFOD, overriding pkg-config
1716 YACC The `Yet Another Compiler Compiler' implementation to use.
1717 Defaults to the first program found out of
: `bison -y', `byacc
',
1719 YFLAGS The list of arguments that will be passed by default to
$YACC.
1720 This
script will default YFLAGS to the empty string to avoid a
1721 default value of
`-d' given by some make applications.
1722 XMKMF Path to xmkmf, Makefile generator for X Window System
1724 Use these variables to override the choices made by `configure
' or to help
1725 it to find libraries and programs with nonstandard names/locations.
1727 Report bugs to the package provider.
1732 if test "$ac_init_help" = "recursive"; then
1733 # If there are subdirs, report their specific --help.
1734 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1735 test -d "$ac_dir" ||
1736 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1741 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1743 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.
[\\/]||
'`
1744 # A ".." for each directory in $ac_dir_suffix.
1745 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|
/[^
\\/]*|
/..|g
;s|
/||
'`
1746 case $ac_top_builddir_sub in
1747 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1748 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1751 ac_abs_top_builddir=$ac_pwd
1752 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1753 # for backward compatibility:
1754 ac_top_builddir=$ac_top_build_prefix
1757 .) # We are building in place.
1759 ac_top_srcdir=$ac_top_builddir_sub
1760 ac_abs_top_srcdir=$ac_pwd ;;
1761 [\\/]* | ?:[\\/]* ) # Absolute name.
1762 ac_srcdir=$srcdir$ac_dir_suffix;
1763 ac_top_srcdir=$srcdir
1764 ac_abs_top_srcdir=$srcdir ;;
1766 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1767 ac_top_srcdir=$ac_top_build_prefix$srcdir
1768 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1770 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1772 cd "$ac_dir" || { ac_status=$?; continue; }
1773 # Check for guested configure.
1774 if test -f "$ac_srcdir/configure.gnu"; then
1776 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1777 elif test -f "$ac_srcdir/configure"; then
1779 $SHELL "$ac_srcdir/configure" --help=recursive
1781 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1783 cd "$ac_pwd" || { ac_status=$?; break; }
1787 test -n "$ac_init_help" && exit $ac_status
1788 if $ac_init_version; then
1791 generated by GNU Autoconf 2.69
1793 Copyright (C) 2012 Free Software Foundation, Inc.
1794 This configure script is free software; the Free Software Foundation
1795 gives unlimited permission to copy, distribute and modify it.
1800 ## ------------------------ ##
1801 ## Autoconf initialization. ##
1802 ## ------------------------ ##
1804 # ac_fn_c_try_compile LINENO
1805 # --------------------------
1806 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1807 ac_fn_c_try_compile ()
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 rm -f conftest.$ac_objext
1811 if { { ac_try="$ac_compile"
1813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814 *) ac_try_echo=$ac_try;;
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818 (eval "$ac_compile") 2>conftest.err
1820 if test -s conftest.err; then
1821 grep -v '^
*+' conftest.err >conftest.er1
1822 cat conftest.er1 >&5
1823 mv -f conftest.er1 conftest.err
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; } && {
1827 test -z "$ac_c_werror_flag" ||
1828 test ! -s conftest.err
1829 } && test -s conftest.$ac_objext; then :
1832 $as_echo "$as_me: failed program was:" >&5
1833 sed 's
/^
/|
/' conftest.$ac_ext >&5
1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838 as_fn_set_status $ac_retval
1840 } # ac_fn_c_try_compile
1842 # ac_fn_cxx_try_compile LINENO
1843 # ----------------------------
1844 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1845 ac_fn_cxx_try_compile ()
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 rm -f conftest.$ac_objext
1849 if { { ac_try="$ac_compile"
1851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1852 *) ac_try_echo=$ac_try;;
1854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855 $as_echo "$ac_try_echo"; } >&5
1856 (eval "$ac_compile") 2>conftest.err
1858 if test -s conftest.err; then
1859 grep -v '^
*+' conftest.err >conftest.er1
1860 cat conftest.er1 >&5
1861 mv -f conftest.er1 conftest.err
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; } && {
1865 test -z "$ac_cxx_werror_flag" ||
1866 test ! -s conftest.err
1867 } && test -s conftest.$ac_objext; then :
1870 $as_echo "$as_me: failed program was:" >&5
1871 sed 's
/^
/|
/' conftest.$ac_ext >&5
1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876 as_fn_set_status $ac_retval
1878 } # ac_fn_cxx_try_compile
1880 # ac_fn_c_try_cpp LINENO
1881 # ----------------------
1882 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 if { { ac_try="$ac_cpp conftest.$ac_ext"
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 $as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1895 if test -s conftest.err; then
1896 grep -v '^
*+' conftest.err >conftest.er1
1897 cat conftest.er1 >&5
1898 mv -f conftest.er1 conftest.err
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } > conftest.i && {
1902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1903 test ! -s conftest.err
1907 $as_echo "$as_me: failed program was:" >&5
1908 sed 's
/^
/|
/' conftest.$ac_ext >&5
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913 as_fn_set_status $ac_retval
1917 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1918 # -------------------------------------------------------
1919 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1920 # the include files in INCLUDES and setting the cache variable VAR
1922 ac_fn_c_check_header_mongrel ()
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 if eval \${$3+:} false; then :
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1927 $as_echo_n "checking for $2... " >&6; }
1928 if eval \${$3+:} false; then :
1929 $as_echo_n "(cached) " >&6
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 $as_echo "$ac_res" >&6; }
1935 # Is the header compilable?
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1937 $as_echo_n "checking $2 usability... " >&6; }
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1943 if ac_fn_c_try_compile "$LINENO"; then :
1944 ac_header_compiler=yes
1946 ac_header_compiler=no
1948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1950 $as_echo "$ac_header_compiler" >&6; }
1952 # Is the header present?
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1954 $as_echo_n "checking $2 presence... " >&6; }
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h. */
1959 if ac_fn_c_try_cpp "$LINENO"; then :
1960 ac_header_preproc=yes
1962 ac_header_preproc=no
1964 rm -f conftest.err conftest.i conftest.$ac_ext
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1966 $as_echo "$ac_header_preproc" >&6; }
1968 # So? What about this header?
1969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1972 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1974 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1978 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1980 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1982 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1984 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1986 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1990 $as_echo_n "checking for $2... " >&6; }
1991 if eval \${$3+:} false; then :
1992 $as_echo_n "(cached) " >&6
1994 eval "$3=\$ac_header_compiler"
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998 $as_echo "$ac_res" >&6; }
2000 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002 } # ac_fn_c_check_header_mongrel
2004 # ac_fn_c_try_run LINENO
2005 # ----------------------
2006 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2007 # that executables *can* be run.
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 if { { ac_try="$ac_link"
2013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2014 *) ac_try_echo=$ac_try;;
2016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2017 $as_echo "$ac_try_echo"; } >&5
2018 (eval "$ac_link") 2>&5
2020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2021 test $ac_status = 0; } && { ac_try='.
/conftest
$ac_exeext'
2022 { { case "(($ac_try" in
2023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2024 *) ac_try_echo=$ac_try;;
2026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2027 $as_echo "$ac_try_echo"; } >&5
2028 (eval "$ac_try") 2>&5
2030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2031 test $ac_status = 0; }; }; then :
2034 $as_echo "$as_me: program exited with status $ac_status" >&5
2035 $as_echo "$as_me: failed program was:" >&5
2036 sed 's
/^
/|
/' conftest.$ac_ext >&5
2038 ac_retval=$ac_status
2040 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2041 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2042 as_fn_set_status $ac_retval
2046 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2047 # -------------------------------------------------------
2048 # Tests whether HEADER exists and can be compiled using the include files in
2049 # INCLUDES, setting the cache variable VAR accordingly.
2050 ac_fn_c_check_header_compile ()
2052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2054 $as_echo_n "checking for $2... " >&6; }
2055 if eval \${$3+:} false; then :
2056 $as_echo_n "(cached) " >&6
2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h. */
2063 if ac_fn_c_try_compile "$LINENO"; then :
2068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072 $as_echo "$ac_res" >&6; }
2073 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2075 } # ac_fn_c_check_header_compile
2077 # ac_fn_c_try_link LINENO
2078 # -----------------------
2079 # Try to link conftest.$ac_ext, and return whether this succeeded.
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 rm -f conftest.$ac_objext conftest$ac_exeext
2084 if { { ac_try="$ac_link"
2086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2087 *) ac_try_echo=$ac_try;;
2089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2090 $as_echo "$ac_try_echo"; } >&5
2091 (eval "$ac_link") 2>conftest.err
2093 if test -s conftest.err; then
2094 grep -v '^
*+' conftest.err >conftest.er1
2095 cat conftest.er1 >&5
2096 mv -f conftest.er1 conftest.err
2098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2099 test $ac_status = 0; } && {
2100 test -z "$ac_c_werror_flag" ||
2101 test ! -s conftest.err
2102 } && test -s conftest$ac_exeext && {
2103 test "$cross_compiling" = yes ||
2104 test -x conftest$ac_exeext
2108 $as_echo "$as_me: failed program was:" >&5
2109 sed 's
/^
/|
/' conftest.$ac_ext >&5
2113 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2114 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2115 # interfere with the next link command; also delete a directory that is
2116 # left behind by Apple's compiler. We
do this before executing the actions.
2117 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2118 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2119 as_fn_set_status
$ac_retval
2121 } # ac_fn_c_try_link
2123 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2124 # --------------------------------------------
2125 # Tries to find the compile-time value of EXPR in a program that includes
2126 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2128 ac_fn_c_compute_int
()
2130 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2131 if test "$cross_compiling" = yes; then
2132 # Depending upon the size, compute the lo and hi bounds.
2133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2139 static int test_array [1 - 2 * !(($2) >= 0)];
2141 return test_array [0];
2147 if ac_fn_c_try_compile
"$LINENO"; then :
2150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h. */
2156 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2158 return test_array [0];
2164 if ac_fn_c_try_compile
"$LINENO"; then :
2165 ac_hi
=$ac_mid; break
2167 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2168 if test $ac_lo -le $ac_mid; then
2172 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2174 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2178 /* end confdefs.h. */
2183 static int test_array [1 - 2 * !(($2) < 0)];
2185 return test_array [0];
2191 if ac_fn_c_try_compile
"$LINENO"; then :
2194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2200 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2202 return test_array [0];
2208 if ac_fn_c_try_compile
"$LINENO"; then :
2209 ac_lo
=$ac_mid; break
2211 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2212 if test $ac_mid -le $ac_hi; then
2216 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2223 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2225 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2226 # Binary search between lo and hi bounds.
2227 while test "x$ac_lo" != "x$ac_hi"; do
2228 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h. */
2235 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2237 return test_array [0];
2243 if ac_fn_c_try_compile
"$LINENO"; then :
2246 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2248 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2251 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2256 /* end confdefs.h. */
2258 static long int longval () { return $2; }
2259 static unsigned long int ulongval () { return $2; }
2266 FILE *f = fopen ("conftest.val", "w");
2271 long int i = longval ();
2274 fprintf (f, "%ld", i);
2278 unsigned long int i = ulongval ();
2281 fprintf (f, "%lu", i);
2283 /* Do not output a trailing newline, as this causes \r\n confusion
2284 on some platforms. */
2285 return ferror (f) || fclose (f) != 0;
2291 if ac_fn_c_try_run
"$LINENO"; then :
2292 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2296 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2297 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2301 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2302 as_fn_set_status
$ac_retval
2304 } # ac_fn_c_compute_int
2306 # ac_fn_c_check_func LINENO FUNC VAR
2307 # ----------------------------------
2308 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2309 ac_fn_c_check_func
()
2311 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2313 $as_echo_n "checking for $2... " >&6; }
2314 if eval \
${$3+:} false
; then :
2315 $as_echo_n "(cached) " >&6
2317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2318 /* end confdefs.h. */
2319 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2321 #define $2 innocuous_$2
2323 /* System header to define __stub macros and hopefully few prototypes,
2324 which can conflict with char $2 (); below.
2325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2326 <limits.h> exists even on freestanding compilers. */
2329 # include <limits.h>
2331 # include <assert.h>
2336 /* Override any GCC internal prototype to avoid an error.
2337 Use char because int might match the return type of a GCC
2338 builtin and then its argument prototype would still apply. */
2343 /* The GNU C library defines this for functions which it implements
2344 to always fail with ENOSYS. Some functions are actually named
2345 something starting with __ and the normal name is an alias. */
2346 #if defined __stub_$2 || defined __stub___$2
2358 if ac_fn_c_try_link
"$LINENO"; then :
2363 rm -f core conftest.err conftest.
$ac_objext \
2364 conftest
$ac_exeext conftest.
$ac_ext
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2368 $as_echo "$ac_res" >&6; }
2369 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2371 } # ac_fn_c_check_func
2373 # ac_fn_cxx_try_link LINENO
2374 # -------------------------
2375 # Try to link conftest.$ac_ext, and return whether this succeeded.
2376 ac_fn_cxx_try_link
()
2378 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2379 rm -f conftest.
$ac_objext conftest
$ac_exeext
2380 if { { ac_try
="$ac_link"
2382 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2383 *) ac_try_echo=$ac_try;;
2385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2386 $as_echo "$ac_try_echo"; } >&5
2387 (eval "$ac_link") 2>conftest.err
2389 if test -s conftest.err; then
2390 grep -v '^ *+' conftest.err >conftest.er1
2391 cat conftest.er1 >&5
2392 mv -f conftest.er1 conftest.err
2394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2395 test $ac_status = 0; } && {
2396 test -z "$ac_cxx_werror_flag" ||
2397 test ! -s conftest.err
2398 } && test -s conftest$ac_exeext && {
2399 test "$cross_compiling" = yes ||
2400 test -x conftest$ac_exeext
2404 $as_echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.$ac_ext >&5
2409 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2410 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2411 # interfere with the next link command; also delete a directory that is
2412 # left behind by Apple's compiler. We do this before executing the actions.
2413 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2414 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2415 as_fn_set_status $ac_retval
2417 } # ac_fn_cxx_try_link
2419 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2420 # -------------------------------------------
2421 # Tests whether TYPE exists after having included INCLUDES, setting cache
2422 # variable VAR accordingly.
2423 ac_fn_c_check_type ()
2425 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2427 $as_echo_n "checking for $2... " >&6; }
2428 if eval \${$3+:} false; then :
2429 $as_echo_n "(cached) " >&6
2432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2433 /* end confdefs.h. */
2444 if ac_fn_c_try_compile "$LINENO"; then :
2445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2446 /* end confdefs.h. */
2457 if ac_fn_c_try_compile "$LINENO"; then :
2462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2468 $as_echo "$ac_res" >&6; }
2469 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2471 } # ac_fn_c_check_type
2473 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2474 # ---------------------------------------------
2475 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2477 ac_fn_c_check_decl ()
2479 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2480 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2481 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2483 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2484 if eval \${$3+:} false; then :
2485 $as_echo_n "(cached) " >&6
2487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2488 /* end confdefs.h. */
2493 #ifndef $as_decl_name
2495 (void) $as_decl_use;
2497 (void) $as_decl_name;
2505 if ac_fn_c_try_compile "$LINENO"; then :
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_decl
2519 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2520 # ----------------------------------------------------
2521 # Tries to find if the field MEMBER exists in type AGGR, after including
2522 # INCLUDES, setting cache variable VAR accordingly.
2523 ac_fn_c_check_member ()
2525 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2527 $as_echo_n "checking for $2.$3... " >&6; }
2528 if eval \${$4+:} false; then :
2529 $as_echo_n "(cached) " >&6
2531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2532 /* end confdefs.h. */
2544 if ac_fn_c_try_compile "$LINENO"; then :
2547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2548 /* end confdefs.h. */
2554 if (sizeof ac_aggr.$3)
2560 if ac_fn_c_try_compile "$LINENO"; then :
2565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2571 $as_echo "$ac_res" >&6; }
2572 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2574 } # ac_fn_c_check_member
2576 # ac_fn_cxx_check_func LINENO FUNC VAR
2577 # ------------------------------------
2578 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2579 ac_fn_cxx_check_func ()
2581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2583 $as_echo_n "checking for $2... " >&6; }
2584 if eval \${$3+:} false; then :
2585 $as_echo_n "(cached) " >&6
2587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2588 /* end confdefs.h. */
2589 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2591 #define $2 innocuous_$2
2593 /* System header to define __stub macros and hopefully few prototypes,
2594 which can conflict with char $2 (); below.
2595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2596 <limits.h> exists even on freestanding compilers. */
2599 # include <limits.h>
2601 # include <assert.h>
2606 /* Override any GCC internal prototype to avoid an error.
2607 Use char because int might match the return type of a GCC
2608 builtin and then its argument prototype would still apply. */
2613 /* The GNU C library defines this for functions which it implements
2614 to always fail with ENOSYS. Some functions are actually named
2615 something starting with __ and the normal name is an alias. */
2616 #if defined __stub_$2 || defined __stub___$2
2628 if ac_fn_cxx_try_link "$LINENO"; then :
2633 rm -f core conftest.err conftest.$ac_objext \
2634 conftest$ac_exeext conftest.$ac_ext
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2638 $as_echo "$ac_res" >&6; }
2639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2641 } # ac_fn_cxx_check_func
2642 cat >config.log <<_ACEOF
2643 This file contains any messages produced by compilers while
2644 running configure, to aid debugging if configure makes a mistake.
2646 It was created by $as_me, which was
2647 generated by GNU Autoconf 2.69. Invocation command line was
2659 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2660 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2661 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2662 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2663 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2665 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2666 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2668 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2669 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2670 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2671 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2672 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2673 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2674 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 test -z "$as_dir" && as_dir=.
2683 $as_echo "PATH: $as_dir"
2699 # Keep a trace of the command line.
2700 # Strip out --no-create and --no-recursion so they do not pile up.
2701 # Strip out --silent because we don't want to record it for future runs.
2702 # Also quote any args containing shell meta-characters.
2703 # Make two passes to allow for proper duplicate-argument suppression.
2707 ac_must_keep_next=false
2713 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2714 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2715 | -silent | --silent | --silen | --sile | --sil)
2718 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2721 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2723 as_fn_append ac_configure_args1 " '$ac_arg'"
2724 if test $ac_must_keep_next = true; then
2725 ac_must_keep_next=false # Got value, back to normal.
2728 *=* | --config-cache | -C | -disable-* | --disable-* \
2729 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2730 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2731 | -with-* | --with-* | -without-* | --without-* | --x)
2732 case "$ac_configure_args0 " in
2733 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2736 -* ) ac_must_keep_next=true ;;
2739 as_fn_append ac_configure_args " '$ac_arg'"
2744 { ac_configure_args0=; unset ac_configure_args0;}
2745 { ac_configure_args1=; unset ac_configure_args1;}
2747 # When interrupted or exit'd, cleanup temporary files, and complete
2748 # config.log. We remove comments because anyway the quotes in there
2749 # would cause problems or look ugly.
2750 # WARNING: Use '\'' to represent an apostrophe within the trap.
2751 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2752 trap 'exit_status=$?
2753 # Save into config.log some information that might help in debugging.
2757 $as_echo "## ---------------- ##
2758 ## Cache variables. ##
2759 ## ---------------- ##"
2761 # The following way of writing the cache mishandles newlines in values,
2763 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2764 eval ac_val=\$$ac_var
2768 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2769 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2772 _ | IFS | as_nl) ;; #(
2773 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2774 *) { eval $ac_var=; unset $ac_var;} ;;
2779 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2780 *${as_nl}ac_space=\ *)
2782 "s/'\''/'\''\\\\'\'''\''/g;
2783 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2786 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2793 $as_echo "## ----------------- ##
2794 ## Output variables. ##
2795 ## ----------------- ##"
2797 for ac_var in $ac_subst_vars
2799 eval ac_val=\$$ac_var
2801 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2803 $as_echo "$ac_var='\''$ac_val'\''"
2807 if test -n "$ac_subst_files"; then
2808 $as_echo "## ------------------- ##
2809 ## File substitutions. ##
2810 ## ------------------- ##"
2812 for ac_var in $ac_subst_files
2814 eval ac_val=\$$ac_var
2816 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2818 $as_echo "$ac_var='\''$ac_val'\''"
2823 if test -s confdefs.h; then
2824 $as_echo "## ----------- ##
2831 test "$ac_signal" != 0 &&
2832 $as_echo "$as_me: caught signal $ac_signal"
2833 $as_echo "$as_me: exit $exit_status"
2835 rm -f core *.core core.conftest.* &&
2836 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2839 for ac_signal in 1 2 13 15; do
2840 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2844 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2845 rm -f -r conftest* confdefs.h
2847 $as_echo "/* confdefs.h */" > confdefs.h
2849 # Predefined preprocessor variables.
2851 cat >>confdefs.h <<_ACEOF
2852 #define PACKAGE_NAME "$PACKAGE_NAME"
2855 cat >>confdefs.h <<_ACEOF
2856 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2859 cat >>confdefs.h <<_ACEOF
2860 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2863 cat >>confdefs.h <<_ACEOF
2864 #define PACKAGE_STRING "$PACKAGE_STRING"
2867 cat >>confdefs.h <<_ACEOF
2868 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2871 cat >>confdefs.h <<_ACEOF
2872 #define PACKAGE_URL "$PACKAGE_URL"
2876 # Let the site file select an alternate cache file if it wants to.
2877 # Prefer an explicitly selected file to automatically selected ones.
2880 if test -n "$CONFIG_SITE"; then
2881 # We do not want a PATH search for config.site.
2882 case $CONFIG_SITE in #((
2883 -*) ac_site_file1=./$CONFIG_SITE;;
2884 */*) ac_site_file1=$CONFIG_SITE;;
2885 *) ac_site_file1=./$CONFIG_SITE;;
2887 elif test "x$prefix" != xNONE; then
2888 ac_site_file1=$prefix/share/config.site
2889 ac_site_file2=$prefix/etc/config.site
2891 ac_site_file1=$ac_default_prefix/share/config.site
2892 ac_site_file2=$ac_default_prefix/etc/config.site
2894 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2896 test "x$ac_site_file" = xNONE && continue
2897 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2899 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2900 sed 's/^/| /' "$ac_site_file" >&5
2902 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2904 as_fn_error $? "failed to load site
script $ac_site_file
2905 See \
`config.log' for more details" "$LINENO" 5; }
2909 if test -r "$cache_file"; then
2910 # Some versions of bash will fail to source /dev/null (special files
2911 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2912 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2914 $as_echo "$as_me: loading cache $cache_file" >&6;}
2916 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2917 *) . "./$cache_file";;
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2922 $as_echo "$as_me: creating cache $cache_file" >&6;}
2926 as_fn_append ac_header_list " stdlib.h"
2927 as_fn_append ac_header_list " unistd.h"
2928 as_fn_append ac_header_list " sys/param.h"
2929 # Check that the precious variables saved in the cache have kept the same
2931 ac_cache_corrupted=false
2932 for ac_var in $ac_precious_vars; do
2933 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2934 eval ac_new_set=\$ac_env_${ac_var}_set
2935 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2936 eval ac_new_val=\$ac_env_${ac_var}_value
2937 case $ac_old_set,$ac_new_set in
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2940 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2941 ac_cache_corrupted=: ;;
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2944 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2945 ac_cache_corrupted=: ;;
2948 if test "x$ac_old_val" != "x$ac_new_val"; then
2949 # differences in whitespace do not lead to failure.
2950 ac_old_val_w=`echo x
$ac_old_val`
2951 ac_new_val_w=`echo x
$ac_new_val`
2952 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2954 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2955 ac_cache_corrupted=:
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2958 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2959 eval $ac_var=\$ac_old_val
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2962 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2964 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2967 # Pass precious variables to config.status.
2968 if test "$ac_new_set" = set; then
2970 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2971 *) ac_arg=$ac_var=$ac_new_val ;;
2973 case " $ac_configure_args " in
2974 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2975 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2979 if $ac_cache_corrupted; then
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2983 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2984 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2986 ## -------------------- ##
2987 ## Main body of script. ##
2988 ## -------------------- ##
2991 ac_cpp='$CPP $CPPFLAGS'
2992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3002 ac_config_headers="$ac_config_headers config.h:config.in"
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3006 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3007 # Check whether --enable-maintainer-mode was given.
3008 if test "${enable_maintainer_mode+set}" = set; then :
3009 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3011 USE_MAINTAINER_MODE=no
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3015 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3016 if test $USE_MAINTAINER_MODE = yes; then
3017 MAINTAINER_MODE_TRUE=
3018 MAINTAINER_MODE_FALSE='#'
3020 MAINTAINER_MODE_TRUE='#'
3021 MAINTAINER_MODE_FALSE=
3024 MAINT=$MAINTAINER_MODE_TRUE
3029 ac_cpp='$CPP $CPPFLAGS'
3030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3033 if test -n "$ac_tool_prefix"; then
3034 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3035 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3037 $as_echo_n "checking for $ac_word... " >&6; }
3038 if ${ac_cv_prog_CC+:} false; then :
3039 $as_echo_n "(cached) " >&6
3041 if test -n "$CC"; then
3042 ac_cv_prog_CC="$CC" # Let the user override the test.
3044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 test -z "$as_dir" && as_dir=.
3049 for ac_exec_ext in '' $ac_executable_extensions; do
3050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3051 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3062 if test -n "$CC"; then
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3064 $as_echo "$CC" >&6; }
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067 $as_echo "no" >&6; }
3072 if test -z "$ac_cv_prog_CC"; then
3074 # Extract the first word of "gcc", so it can be a program name with args.
3075 set dummy gcc; ac_word=$2
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3077 $as_echo_n "checking for $ac_word... " >&6; }
3078 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3079 $as_echo_n "(cached) " >&6
3081 if test -n "$ac_ct_CC"; then
3082 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3091 ac_cv_prog_ac_ct_CC="gcc"
3092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3102 if test -n "$ac_ct_CC"; then
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3104 $as_echo "$ac_ct_CC" >&6; }
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107 $as_echo "no" >&6; }
3110 if test "x$ac_ct_CC" = x; then
3113 case $cross_compiling:$ac_tool_warned in
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3117 ac_tool_warned=yes ;;
3125 if test -z "$CC"; then
3126 if test -n "$ac_tool_prefix"; then
3127 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3128 set dummy ${ac_tool_prefix}cc; ac_word=$2
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3130 $as_echo_n "checking for $ac_word... " >&6; }
3131 if ${ac_cv_prog_CC+:} false; then :
3132 $as_echo_n "(cached) " >&6
3134 if test -n "$CC"; then
3135 ac_cv_prog_CC="$CC" # Let the user override the test.
3137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141 test -z "$as_dir" && as_dir=.
3142 for ac_exec_ext in '' $ac_executable_extensions; do
3143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3144 ac_cv_prog_CC="${ac_tool_prefix}cc"
3145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3155 if test -n "$CC"; then
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3157 $as_echo "$CC" >&6; }
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160 $as_echo "no" >&6; }
3166 if test -z "$CC"; then
3167 # Extract the first word of "cc", so it can be a program name with args.
3168 set dummy cc; ac_word=$2
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3170 $as_echo_n "checking for $ac_word... " >&6; }
3171 if ${ac_cv_prog_CC+:} false; then :
3172 $as_echo_n "(cached) " >&6
3174 if test -n "$CC"; then
3175 ac_cv_prog_CC="$CC" # Let the user override the test.
3178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 test -z "$as_dir" && as_dir=.
3183 for ac_exec_ext in '' $ac_executable_extensions; do
3184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3185 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3186 ac_prog_rejected=yes
3190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3197 if test $ac_prog_rejected = yes; then
3198 # We found a bogon in the path, so make sure we never use it.
3199 set dummy $ac_cv_prog_CC
3201 if test $# != 0; then
3202 # We chose a different compiler from the bogus one.
3203 # However, it has the same basename, so the bogon will be chosen
3204 # first if we set CC to just the basename; use the full file name.
3206 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3212 if test -n "$CC"; then
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3214 $as_echo "$CC" >&6; }
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3222 if test -z "$CC"; then
3223 if test -n "$ac_tool_prefix"; then
3224 for ac_prog in cl.exe
3226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229 $as_echo_n "checking for $ac_word... " >&6; }
3230 if ${ac_cv_prog_CC+:} false; then :
3231 $as_echo_n "(cached) " >&6
3233 if test -n "$CC"; then
3234 ac_cv_prog_CC="$CC" # Let the user override the test.
3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240 test -z "$as_dir" && as_dir=.
3241 for ac_exec_ext in '' $ac_executable_extensions; do
3242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3243 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3254 if test -n "$CC"; then
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3256 $as_echo "$CC" >&6; }
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259 $as_echo "no" >&6; }
3263 test -n "$CC" && break
3266 if test -z "$CC"; then
3268 for ac_prog in cl.exe
3270 # Extract the first word of "$ac_prog", so it can be a program name with args.
3271 set dummy $ac_prog; ac_word=$2
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3273 $as_echo_n "checking for $ac_word... " >&6; }
3274 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3275 $as_echo_n "(cached) " >&6
3277 if test -n "$ac_ct_CC"; then
3278 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 test -z "$as_dir" && as_dir=.
3285 for ac_exec_ext in '' $ac_executable_extensions; do
3286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3287 ac_cv_prog_ac_ct_CC="$ac_prog"
3288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3297 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3298 if test -n "$ac_ct_CC"; then
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3300 $as_echo "$ac_ct_CC" >&6; }
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3303 $as_echo "no" >&6; }
3307 test -n "$ac_ct_CC" && break
3310 if test "x$ac_ct_CC" = x; then
3313 case $cross_compiling:$ac_tool_warned in
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3317 ac_tool_warned=yes ;;
3326 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3328 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3329 See \
`config.log' for more details" "$LINENO" 5; }
3331 # Provide some information about the compiler.
3332 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3335 for ac_option in --version -v -V -qversion; do
3336 { { ac_try="$ac_compiler $ac_option >&5"
3338 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3339 *) ac_try_echo
=$ac_try;;
3341 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3342 $as_echo "$ac_try_echo"; } >&5
3343 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3345 if test -s conftest.err
; then
3347 ... rest of stderr output deleted ...
3348 10q' conftest.err
>conftest.er1
3349 cat conftest.er1
>&5
3351 rm -f conftest.er1 conftest.err
3352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3353 test $ac_status = 0; }
3356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3357 /* end confdefs.h. */
3367 ac_clean_files_save
=$ac_clean_files
3368 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3369 # Try to create an executable without -o first, disregard a.out.
3370 # It will help us diagnose broken compilers, and finding out an intuition
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3373 $as_echo_n "checking whether the C compiler works... " >&6; }
3374 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3376 # The possible output files:
3377 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3380 for ac_file
in $ac_files
3383 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3384 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3389 if { { ac_try
="$ac_link_default"
3391 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3395 $as_echo "$ac_try_echo"; } >&5
3396 (eval "$ac_link_default") 2>&5
3398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3399 test $ac_status = 0; }; then :
3400 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3401 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3402 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3403 # so that the user can short-circuit this test for compilers unknown to
3405 for ac_file in $ac_files ''
3407 test -f "$ac_file" || continue
3409 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3412 # We found the default executable, but exeext='' is most
3416 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3418 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3420 # We set ac_cv_exeext here because the later test for it is not
3421 # safe: cross compilers may not add the suffix if given an `-o'
3422 # argument, so we may need to know it at that point already.
3423 # Even if this section looks crufty: it has the advantage of
3430 test "$ac_cv_exeext" = no && ac_cv_exeext=
3435 if test -z "$ac_file"; then :
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437 $as_echo "no" >&6; }
3438 $as_echo "$as_me: failed program was:" >&5
3439 sed 's
/^
/|
/' conftest.$ac_ext >&5
3441 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3442 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3443 as_fn_error 77 "C compiler cannot create executables
3444 See \`config.log
' for more details" "$LINENO" 5; }
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3447 $as_echo "yes" >&6; }
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3450 $as_echo_n "checking for C compiler default output file name... " >&6; }
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3452 $as_echo "$ac_file" >&6; }
3453 ac_exeext=$ac_cv_exeext
3455 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3456 ac_clean_files=$ac_clean_files_save
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3458 $as_echo_n "checking for suffix of executables... " >&6; }
3459 if { { ac_try="$ac_link"
3461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462 *) ac_try_echo=$ac_try;;
3464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3465 $as_echo "$ac_try_echo"; } >&5
3466 (eval "$ac_link") 2>&5
3468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3469 test $ac_status = 0; }; then :
3470 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3471 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3472 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3474 for ac_file
in conftest.exe conftest conftest.
*; do
3475 test -f "$ac_file" ||
continue
3477 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3478 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3484 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3485 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3486 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3487 See \`config.log' for more details" "$LINENO" 5; }
3489 rm -f conftest conftest
$ac_cv_exeext
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3491 $as_echo "$ac_cv_exeext" >&6; }
3493 rm -f conftest.
$ac_ext
3494 EXEEXT
=$ac_cv_exeext
3496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3497 /* end confdefs.h. */
3502 FILE *f = fopen ("conftest.out", "w");
3503 return ferror (f) || fclose (f) != 0;
3509 ac_clean_files
="$ac_clean_files conftest.out"
3510 # Check that the compiler produces executables we can run. If not, either
3511 # the compiler is broken, or we cross compile.
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3513 $as_echo_n "checking whether we are cross compiling... " >&6; }
3514 if test "$cross_compiling" != yes; then
3515 { { ac_try
="$ac_link"
3517 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3521 $as_echo "$ac_try_echo"; } >&5
3522 (eval "$ac_link") 2>&5
3524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3525 test $ac_status = 0; }
3526 if { ac_try='./conftest$ac_cv_exeext'
3527 { { case "(($ac_try" in
3528 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3529 *) ac_try_echo
=$ac_try;;
3531 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3532 $as_echo "$ac_try_echo"; } >&5
3533 (eval "$ac_try") 2>&5
3535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3536 test $ac_status = 0; }; }; then
3539 if test "$cross_compiling" = maybe
; then
3542 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3544 as_fn_error $?
"cannot run C compiled programs.
3545 If you meant to cross compile, use \`--host'.
3546 See \`config.log' for more details" "$LINENO" 5; }
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3551 $as_echo "$cross_compiling" >&6; }
3553 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3554 ac_clean_files
=$ac_clean_files_save
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3556 $as_echo_n "checking for suffix of object files... " >&6; }
3557 if ${ac_cv_objext+:} false
; then :
3558 $as_echo_n "(cached) " >&6
3560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3561 /* end confdefs.h. */
3571 rm -f conftest.o conftest.obj
3572 if { { ac_try
="$ac_compile"
3574 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3575 *) ac_try_echo=$ac_try;;
3577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3578 $as_echo "$ac_try_echo"; } >&5
3579 (eval "$ac_compile") 2>&5
3581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3582 test $ac_status = 0; }; then :
3583 for ac_file in conftest.o conftest.obj conftest.*; do
3584 test -f "$ac_file" || continue;
3586 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3587 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3592 $as_echo "$as_me: failed program was:" >&5
3593 sed 's/^/| /' conftest.$ac_ext >&5
3595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3597 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3598 See \
`config.log' for more details" "$LINENO" 5; }
3600 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3603 $as_echo "$ac_cv_objext" >&6; }
3604 OBJEXT=$ac_cv_objext
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3607 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3608 if ${ac_cv_c_compiler_gnu+:} false; then :
3609 $as_echo_n "(cached) " >&6
3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612 /* end confdefs.h. */
3625 if ac_fn_c_try_compile "$LINENO"; then :
3630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3631 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3635 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3636 if test $ac_compiler_gnu = yes; then
3641 ac_test_CFLAGS=${CFLAGS+set}
3642 ac_save_CFLAGS=$CFLAGS
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3644 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3645 if ${ac_cv_prog_cc_g+:} false; then :
3646 $as_echo_n "(cached) " >&6
3648 ac_save_c_werror_flag=$ac_c_werror_flag
3649 ac_c_werror_flag=yes
3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653 /* end confdefs.h. */
3663 if ac_fn_c_try_compile "$LINENO"; then :
3667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3668 /* end confdefs.h. */
3678 if ac_fn_c_try_compile "$LINENO"; then :
3681 ac_c_werror_flag=$ac_save_c_werror_flag
3683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3684 /* end confdefs.h. */
3694 if ac_fn_c_try_compile "$LINENO"; then :
3697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3702 ac_c_werror_flag=$ac_save_c_werror_flag
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3705 $as_echo "$ac_cv_prog_cc_g" >&6; }
3706 if test "$ac_test_CFLAGS" = set; then
3707 CFLAGS=$ac_save_CFLAGS
3708 elif test $ac_cv_prog_cc_g = yes; then
3709 if test "$GCC" = yes; then
3715 if test "$GCC" = yes; then
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3722 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3723 if ${ac_cv_prog_cc_c89+:} false; then :
3724 $as_echo_n "(cached) " >&6
3726 ac_cv_prog_cc_c89=no
3728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729 /* end confdefs.h. */
3733 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3734 struct buf { int x; };
3735 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3736 static char *e (p, i)
3742 static char *f (char * (*g) (char **, int), char **p, ...)
3747 s = g (p, va_arg (v,int));
3752 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3753 function prototypes and stuff, but not '\xHH' hex character constants.
3754 These don't provoke an error unfortunately, instead are silently treated
3755 as 'x'. The following induces an error, until -std is added to get
3756 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3757 array size at least. It's necessary to write '\x00'==0 to get something
3758 that's true only with -std. */
3759 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3761 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3762 inside strings and character constants. */
3764 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3766 int test (int i, double x);
3767 struct s1 {int (*f) (int a);};
3768 struct s2 {int (*f) (double a);};
3769 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3775 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3780 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3781 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3783 CC="$ac_save_CC $ac_arg"
3784 if ac_fn_c_try_compile "$LINENO"; then :
3785 ac_cv_prog_cc_c89=$ac_arg
3787 rm -f core conftest.err conftest.$ac_objext
3788 test "x$ac_cv_prog_cc_c89" != "xno" && break
3790 rm -f conftest.$ac_ext
3795 case "x$ac_cv_prog_cc_c89" in
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3798 $as_echo "none needed" >&6; } ;;
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3801 $as_echo "unsupported" >&6; } ;;
3803 CC="$CC $ac_cv_prog_cc_c89"
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3805 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3807 if test "x$ac_cv_prog_cc_c89" != xno; then :
3812 ac_cpp='$CPP $CPPFLAGS'
3813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3818 ac_cpp='$CXXCPP $CPPFLAGS'
3819 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3820 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3821 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3822 if test -z "$CXX"; then
3823 if test -n "$CCC"; then
3826 if test -n "$ac_tool_prefix"; then
3827 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3829 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3830 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3832 $as_echo_n "checking for $ac_word... " >&6; }
3833 if ${ac_cv_prog_CXX+:} false; then :
3834 $as_echo_n "(cached) " >&6
3836 if test -n "$CXX"; then
3837 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843 test -z "$as_dir" && as_dir=.
3844 for ac_exec_ext in '' $ac_executable_extensions; do
3845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3846 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3857 if test -n "$CXX"; then
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3859 $as_echo "$CXX" >&6; }
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3862 $as_echo "no" >&6; }
3866 test -n "$CXX" && break
3869 if test -z "$CXX"; then
3871 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3873 # Extract the first word of "$ac_prog", so it can be a program name with args.
3874 set dummy $ac_prog; ac_word=$2
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3876 $as_echo_n "checking for $ac_word... " >&6; }
3877 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3878 $as_echo_n "(cached) " >&6
3880 if test -n "$ac_ct_CXX"; then
3881 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 test -z "$as_dir" && as_dir=.
3888 for ac_exec_ext in '' $ac_executable_extensions; do
3889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3890 ac_cv_prog_ac_ct_CXX="$ac_prog"
3891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3900 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3901 if test -n "$ac_ct_CXX"; then
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3903 $as_echo "$ac_ct_CXX" >&6; }
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3906 $as_echo "no" >&6; }
3910 test -n "$ac_ct_CXX" && break
3913 if test "x$ac_ct_CXX" = x; then
3916 case $cross_compiling:$ac_tool_warned in
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3920 ac_tool_warned=yes ;;
3928 # Provide some information about the compiler.
3929 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3932 for ac_option in --version -v -V -qversion; do
3933 { { ac_try="$ac_compiler $ac_option >&5"
3935 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3936 *) ac_try_echo
=$ac_try;;
3938 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3939 $as_echo "$ac_try_echo"; } >&5
3940 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3942 if test -s conftest.err
; then
3944 ... rest of stderr output deleted ...
3945 10q' conftest.err
>conftest.er1
3946 cat conftest.er1
>&5
3948 rm -f conftest.er1 conftest.err
3949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3950 test $ac_status = 0; }
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3954 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3955 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3956 $as_echo_n "(cached) " >&6
3958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h. */
3972 if ac_fn_cxx_try_compile
"$LINENO"; then :
3977 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3978 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3982 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3983 if test $ac_compiler_gnu = yes; then
3988 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3989 ac_save_CXXFLAGS
=$CXXFLAGS
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3991 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3992 if ${ac_cv_prog_cxx_g+:} false
; then :
3993 $as_echo_n "(cached) " >&6
3995 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3996 ac_cxx_werror_flag
=yes
3999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h. */
4010 if ac_fn_cxx_try_compile
"$LINENO"; then :
4011 ac_cv_prog_cxx_g
=yes
4014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4015 /* end confdefs.h. */
4025 if ac_fn_cxx_try_compile
"$LINENO"; then :
4028 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4031 /* end confdefs.h. */
4041 if ac_fn_cxx_try_compile
"$LINENO"; then :
4042 ac_cv_prog_cxx_g
=yes
4044 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4046 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4048 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4049 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4052 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4053 if test "$ac_test_CXXFLAGS" = set; then
4054 CXXFLAGS
=$ac_save_CXXFLAGS
4055 elif test $ac_cv_prog_cxx_g = yes; then
4056 if test "$GXX" = yes; then
4062 if test "$GXX" = yes; then
4069 ac_cpp
='$CPP $CPPFLAGS'
4070 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4071 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4072 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4077 ac_cpp
='$CPP $CPPFLAGS'
4078 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4079 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4080 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4082 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4083 # On Suns, sometimes $CPP names a directory.
4084 if test -n "$CPP" && test -d "$CPP"; then
4087 if test -z "$CPP"; then
4088 if ${ac_cv_prog_CPP+:} false
; then :
4089 $as_echo_n "(cached) " >&6
4091 # Double quotes because CPP needs to be expanded
4092 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4095 for ac_c_preproc_warn_flag
in '' yes
4097 # Use a header file that comes with gcc, so configuring glibc
4098 # with a fresh cross-compiler works.
4099 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4100 # <limits.h> exists even on freestanding compilers.
4101 # On the NeXT, cc -E runs the code through the compiler's parser,
4102 # not just through cpp. "Syntax error" is here to catch this case.
4103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4106 # include <limits.h>
4108 # include <assert.h>
4112 if ac_fn_c_try_cpp
"$LINENO"; then :
4115 # Broken: fails on valid input.
4118 rm -f conftest.err conftest.i conftest.
$ac_ext
4120 # OK, works on sane cases. Now check whether nonexistent headers
4121 # can be detected and how.
4122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4124 #include <ac_nonexistent.h>
4126 if ac_fn_c_try_cpp
"$LINENO"; then :
4127 # Broken: success on invalid input.
4130 # Passes both tests.
4134 rm -f conftest.err conftest.i conftest.
$ac_ext
4137 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4138 rm -f conftest.i conftest.err conftest.
$ac_ext
4139 if $ac_preproc_ok; then :
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4152 $as_echo "$CPP" >&6; }
4154 for ac_c_preproc_warn_flag
in '' yes
4156 # Use a header file that comes with gcc, so configuring glibc
4157 # with a fresh cross-compiler works.
4158 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4159 # <limits.h> exists even on freestanding compilers.
4160 # On the NeXT, cc -E runs the code through the compiler's parser,
4161 # not just through cpp. "Syntax error" is here to catch this case.
4162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h. */
4165 # include <limits.h>
4167 # include <assert.h>
4171 if ac_fn_c_try_cpp
"$LINENO"; then :
4174 # Broken: fails on valid input.
4177 rm -f conftest.err conftest.i conftest.
$ac_ext
4179 # OK, works on sane cases. Now check whether nonexistent headers
4180 # can be detected and how.
4181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h. */
4183 #include <ac_nonexistent.h>
4185 if ac_fn_c_try_cpp
"$LINENO"; then :
4186 # Broken: success on invalid input.
4189 # Passes both tests.
4193 rm -f conftest.err conftest.i conftest.
$ac_ext
4196 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4197 rm -f conftest.i conftest.err conftest.
$ac_ext
4198 if $ac_preproc_ok; then :
4201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4203 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4204 See \`config.log' for more details" "$LINENO" 5; }
4208 ac_cpp
='$CPP $CPPFLAGS'
4209 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4210 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4211 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4215 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4216 if ${ac_cv_path_GREP+:} false
; then :
4217 $as_echo_n "(cached) " >&6
4219 if test -z "$GREP"; then
4220 ac_path_GREP_found
=false
4221 # Loop through the user's path and test for each of PROGNAME-LIST
4222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4223 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4226 test -z "$as_dir" && as_dir
=.
4227 for ac_prog
in grep ggrep
; do
4228 for ac_exec_ext
in '' $ac_executable_extensions; do
4229 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4230 as_fn_executable_p
"$ac_path_GREP" ||
continue
4231 # Check for GNU ac_path_GREP and select it if it is found.
4232 # Check for GNU $ac_path_GREP
4233 case `"$ac_path_GREP" --version 2>&1` in
4235 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4238 $as_echo_n 0123456789 >"conftest.in"
4241 cat "conftest.in" "conftest.in" >"conftest.tmp"
4242 mv "conftest.tmp" "conftest.in"
4243 cp "conftest.in" "conftest.nl"
4244 $as_echo 'GREP' >> "conftest.nl"
4245 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4246 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4247 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4248 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4249 # Best one so far, save it but keep looking for a better one
4250 ac_cv_path_GREP
="$ac_path_GREP"
4251 ac_path_GREP_max
=$ac_count
4253 # 10*(2^10) chars as input seems more than enough
4254 test $ac_count -gt 10 && break
4256 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4259 $ac_path_GREP_found && break 3
4264 if test -z "$ac_cv_path_GREP"; then
4265 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4268 ac_cv_path_GREP
=$GREP
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4273 $as_echo "$ac_cv_path_GREP" >&6; }
4274 GREP
="$ac_cv_path_GREP"
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4278 $as_echo_n "checking for egrep... " >&6; }
4279 if ${ac_cv_path_EGREP+:} false
; then :
4280 $as_echo_n "(cached) " >&6
4282 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4283 then ac_cv_path_EGREP
="$GREP -E"
4285 if test -z "$EGREP"; then
4286 ac_path_EGREP_found
=false
4287 # Loop through the user's path and test for each of PROGNAME-LIST
4288 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4289 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4292 test -z "$as_dir" && as_dir
=.
4293 for ac_prog
in egrep; do
4294 for ac_exec_ext
in '' $ac_executable_extensions; do
4295 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4296 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4297 # Check for GNU ac_path_EGREP and select it if it is found.
4298 # Check for GNU $ac_path_EGREP
4299 case `"$ac_path_EGREP" --version 2>&1` in
4301 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4304 $as_echo_n 0123456789 >"conftest.in"
4307 cat "conftest.in" "conftest.in" >"conftest.tmp"
4308 mv "conftest.tmp" "conftest.in"
4309 cp "conftest.in" "conftest.nl"
4310 $as_echo 'EGREP' >> "conftest.nl"
4311 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4312 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4313 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4314 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4315 # Best one so far, save it but keep looking for a better one
4316 ac_cv_path_EGREP
="$ac_path_EGREP"
4317 ac_path_EGREP_max
=$ac_count
4319 # 10*(2^10) chars as input seems more than enough
4320 test $ac_count -gt 10 && break
4322 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4325 $ac_path_EGREP_found && break 3
4330 if test -z "$ac_cv_path_EGREP"; then
4331 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4334 ac_cv_path_EGREP
=$EGREP
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4340 $as_echo "$ac_cv_path_EGREP" >&6; }
4341 EGREP
="$ac_cv_path_EGREP"
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4345 $as_echo_n "checking for ANSI C header files... " >&6; }
4346 if ${ac_cv_header_stdc+:} false
; then :
4347 $as_echo_n "(cached) " >&6
4349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4350 /* end confdefs.h. */
4364 if ac_fn_c_try_compile
"$LINENO"; then :
4365 ac_cv_header_stdc
=yes
4367 ac_cv_header_stdc
=no
4369 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4371 if test $ac_cv_header_stdc = yes; then
4372 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4374 /* end confdefs.h. */
4378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4379 $EGREP "memchr" >/dev
/null
2>&1; then :
4382 ac_cv_header_stdc
=no
4388 if test $ac_cv_header_stdc = yes; then
4389 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h. */
4395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4396 $EGREP "free" >/dev
/null
2>&1; then :
4399 ac_cv_header_stdc
=no
4405 if test $ac_cv_header_stdc = yes; then
4406 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4407 if test "$cross_compiling" = yes; then :
4410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4411 /* end confdefs.h. */
4414 #if ((' ' & 0x0FF) == 0x020)
4415 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4416 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4418 # define ISLOWER(c) \
4419 (('a' <= (c) && (c) <= 'i') \
4420 || ('j' <= (c) && (c) <= 'r') \
4421 || ('s' <= (c) && (c) <= 'z'))
4422 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4425 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4430 for (i = 0; i < 256; i++)
4431 if (XOR (islower (i), ISLOWER (i))
4432 || toupper (i) != TOUPPER (i))
4437 if ac_fn_c_try_run
"$LINENO"; then :
4440 ac_cv_header_stdc
=no
4442 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4443 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4449 $as_echo "$ac_cv_header_stdc" >&6; }
4450 if test $ac_cv_header_stdc = yes; then
4452 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4456 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4457 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4458 inttypes.h stdint.h unistd.h
4460 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4461 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4463 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4464 cat >>confdefs.h
<<_ACEOF
4465 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4474 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4475 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4482 if test "$MINIX" = yes; then
4484 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4487 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4490 $as_echo "#define _MINIX 1" >>confdefs.h
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4496 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4497 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4498 $as_echo_n "(cached) " >&6
4500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4501 /* end confdefs.h. */
4503 # define __EXTENSIONS__ 1
4504 $ac_includes_default
4513 if ac_fn_c_try_compile
"$LINENO"; then :
4514 ac_cv_safe_to_define___extensions__
=yes
4516 ac_cv_safe_to_define___extensions__
=no
4518 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4521 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4522 test $ac_cv_safe_to_define___extensions__ = yes &&
4523 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4525 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4527 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4529 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4531 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4535 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4536 if test -f "$ac_dir/install-sh"; then
4538 ac_install_sh
="$ac_aux_dir/install-sh -c"
4540 elif test -f "$ac_dir/install.sh"; then
4542 ac_install_sh
="$ac_aux_dir/install.sh -c"
4544 elif test -f "$ac_dir/shtool"; then
4546 ac_install_sh
="$ac_aux_dir/shtool install -c"
4550 if test -z "$ac_aux_dir"; then
4551 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4554 # These three variables are undocumented and unsupported,
4555 # and are intended to be withdrawn in a future Autoconf release.
4556 # They can cause serious problems if a builder's source tree is in a directory
4557 # whose full name contains unusual characters.
4558 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4559 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4560 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4563 # Make sure we can run config.sub.
4564 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4565 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4568 $as_echo_n "checking build system type... " >&6; }
4569 if ${ac_cv_build+:} false
; then :
4570 $as_echo_n "(cached) " >&6
4572 ac_build_alias
=$build_alias
4573 test "x$ac_build_alias" = x
&&
4574 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4575 test "x$ac_build_alias" = x
&&
4576 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4577 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4578 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4582 $as_echo "$ac_cv_build" >&6; }
4583 case $ac_cv_build in
4585 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4588 ac_save_IFS
=$IFS; IFS
='-'
4594 # Remember, the first character of IFS is used to create $*,
4595 # except with old shells:
4598 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4602 $as_echo_n "checking host system type... " >&6; }
4603 if ${ac_cv_host+:} false
; then :
4604 $as_echo_n "(cached) " >&6
4606 if test "x$host_alias" = x
; then
4607 ac_cv_host
=$ac_cv_build
4609 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4610 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4615 $as_echo "$ac_cv_host" >&6; }
4618 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4621 ac_save_IFS
=$IFS; IFS
='-'
4627 # Remember, the first character of IFS is used to create $*,
4628 # except with old shells:
4631 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4635 $as_echo_n "checking target system type... " >&6; }
4636 if ${ac_cv_target+:} false
; then :
4637 $as_echo_n "(cached) " >&6
4639 if test "x$target_alias" = x
; then
4640 ac_cv_target
=$ac_cv_host
4642 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4643 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4648 $as_echo "$ac_cv_target" >&6; }
4649 case $ac_cv_target in
4651 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4653 target
=$ac_cv_target
4654 ac_save_IFS
=$IFS; IFS
='-'
4660 # Remember, the first character of IFS is used to create $*,
4661 # except with old shells:
4664 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4667 # The aliases save the names the user supplied, while $host etc.
4668 # will get canonicalized.
4669 test -n "$target_alias" &&
4670 test "$program_prefix$program_suffix$program_transform_name" = \
4672 program_prefix
=${target_alias}-
4674 # The tests for host and target for $enable_largefile require
4679 # As the $enable_largefile decision depends on --enable-plugins we must set it
4680 # even in directories otherwise not depending on the $plugins option.
4684 for ac_header
in dlfcn.h
4686 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4688 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
4689 cat >>confdefs.h
<<_ACEOF
4690 #define HAVE_DLFCN_H 1
4697 for ac_header
in windows.h
4699 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4701 if test "x$ac_cv_header_windows_h" = xyes
; then :
4702 cat >>confdefs.h
<<_ACEOF
4703 #define HAVE_WINDOWS_H 1
4711 # Check whether --enable-plugins was given.
4712 if test "${enable_plugins+set}" = set; then :
4713 enableval
=$enable_plugins; case "${enableval}" in
4716 if test "$maybe_plugins" != "yes" ; then
4717 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4721 plugins
=$maybe_plugins
4725 if test "$plugins" = "yes"; then
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4727 $as_echo_n "checking for library containing dlsym... " >&6; }
4728 if ${ac_cv_search_dlsym+:} false
; then :
4729 $as_echo_n "(cached) " >&6
4731 ac_func_search_save_LIBS
=$LIBS
4732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4733 /* end confdefs.h. */
4735 /* Override any GCC internal prototype to avoid an error.
4736 Use char because int might match the return type of a GCC
4737 builtin and then its argument prototype would still apply. */
4750 for ac_lib
in '' dl
; do
4751 if test -z "$ac_lib"; then
4752 ac_res
="none required"
4755 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4757 if ac_fn_c_try_link
"$LINENO"; then :
4758 ac_cv_search_dlsym
=$ac_res
4760 rm -f core conftest.err conftest.
$ac_objext \
4762 if ${ac_cv_search_dlsym+:} false
; then :
4766 if ${ac_cv_search_dlsym+:} false
; then :
4769 ac_cv_search_dlsym
=no
4772 LIBS
=$ac_func_search_save_LIBS
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4775 $as_echo "$ac_cv_search_dlsym" >&6; }
4776 ac_res
=$ac_cv_search_dlsym
4777 if test "$ac_res" != no
; then :
4778 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4786 sparc-
*-solaris*|i?
86-*-solaris*)
4787 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
4788 # were mutually exclusive until Solaris 11.3. Without procfs support,
4789 # the bfd/ elf module cannot provide certain routines such as
4790 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
4791 # explicitly requested large-file support through the
4792 # --enable-largefile switch, disable large-file support in favor of
4795 # Check if <sys/procfs.h> is incompatible with large-file support.
4796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4797 /* end confdefs.h. */
4798 #define _FILE_OFFSET_BITS 64
4799 #define _STRUCTURED_PROC 1
4800 #include <sys/procfs.h>
4809 if ac_fn_c_try_compile
"$LINENO"; then :
4810 acx_cv_procfs_lfs
=yes
4812 acx_cv_procfs_lfs
=no
4814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4816 # Forcefully disable large-file support only if necessary, gdb is in
4818 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
4819 -a -d $srcdir/..
/gdb
-a "$enable_gdb" != no
; then
4820 : ${enable_largefile="no"}
4821 if test "$plugins" = yes; then
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4823 plugin support disabled; require large-file support which is incompatible with GDB." >&5
4824 $as_echo "$as_me: WARNING:
4825 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
4830 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
4831 # benefit of g++ 9+ which predefines it on Solaris.
4832 if test "$enable_largefile" = no
; then
4833 LARGEFILE_CPPFLAGS
="-U_FILE_OFFSET_BITS"
4839 # Check whether --enable-largefile was given.
4840 if test "${enable_largefile+set}" = set; then :
4841 enableval
=$enable_largefile;
4844 if test "$enable_largefile" != no
; then
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4847 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4848 if ${ac_cv_sys_largefile_CC+:} false
; then :
4849 $as_echo_n "(cached) " >&6
4851 ac_cv_sys_largefile_CC
=no
4852 if test "$GCC" != yes; then
4855 # IRIX 6.2 and later do not support large files by default,
4856 # so use the C compiler's -n32 option if that helps.
4857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4858 /* end confdefs.h. */
4859 #include <sys/types.h>
4860 /* Check that off_t can represent 2**63 - 1 correctly.
4861 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4862 since some C++ compilers masquerading as C compilers
4863 incorrectly reject 9223372036854775807. */
4864 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4865 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4866 && LARGE_OFF_T % 2147483647 == 1)
4876 if ac_fn_c_try_compile
"$LINENO"; then :
4879 rm -f core conftest.err conftest.
$ac_objext
4881 if ac_fn_c_try_compile
"$LINENO"; then :
4882 ac_cv_sys_largefile_CC
=' -n32'; break
4884 rm -f core conftest.err conftest.
$ac_objext
4888 rm -f conftest.
$ac_ext
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4892 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4893 if test "$ac_cv_sys_largefile_CC" != no
; then
4894 CC
=$CC$ac_cv_sys_largefile_CC
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4898 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4899 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4900 $as_echo_n "(cached) " >&6
4903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4904 /* end confdefs.h. */
4905 #include <sys/types.h>
4906 /* Check that off_t can represent 2**63 - 1 correctly.
4907 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4908 since some C++ compilers masquerading as C compilers
4909 incorrectly reject 9223372036854775807. */
4910 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4911 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4912 && LARGE_OFF_T % 2147483647 == 1)
4922 if ac_fn_c_try_compile
"$LINENO"; then :
4923 ac_cv_sys_file_offset_bits
=no
; break
4925 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4927 /* end confdefs.h. */
4928 #define _FILE_OFFSET_BITS 64
4929 #include <sys/types.h>
4930 /* Check that off_t can represent 2**63 - 1 correctly.
4931 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4932 since some C++ compilers masquerading as C compilers
4933 incorrectly reject 9223372036854775807. */
4934 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4935 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4936 && LARGE_OFF_T % 2147483647 == 1)
4946 if ac_fn_c_try_compile
"$LINENO"; then :
4947 ac_cv_sys_file_offset_bits
=64; break
4949 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4950 ac_cv_sys_file_offset_bits
=unknown
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4955 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4956 case $ac_cv_sys_file_offset_bits in #(
4959 cat >>confdefs.h
<<_ACEOF
4960 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4965 if test $ac_cv_sys_file_offset_bits = unknown
; then
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4967 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4968 if ${ac_cv_sys_large_files+:} false
; then :
4969 $as_echo_n "(cached) " >&6
4972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4973 /* end confdefs.h. */
4974 #include <sys/types.h>
4975 /* Check that off_t can represent 2**63 - 1 correctly.
4976 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4977 since some C++ compilers masquerading as C compilers
4978 incorrectly reject 9223372036854775807. */
4979 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4980 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4981 && LARGE_OFF_T % 2147483647 == 1)
4991 if ac_fn_c_try_compile
"$LINENO"; then :
4992 ac_cv_sys_large_files
=no
; break
4994 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4996 /* end confdefs.h. */
4997 #define _LARGE_FILES 1
4998 #include <sys/types.h>
4999 /* Check that off_t can represent 2**63 - 1 correctly.
5000 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5001 since some C++ compilers masquerading as C compilers
5002 incorrectly reject 9223372036854775807. */
5003 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5004 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5005 && LARGE_OFF_T % 2147483647 == 1)
5015 if ac_fn_c_try_compile
"$LINENO"; then :
5016 ac_cv_sys_large_files
=1; break
5018 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5019 ac_cv_sys_large_files
=unknown
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5024 $as_echo "$ac_cv_sys_large_files" >&6; }
5025 case $ac_cv_sys_large_files in #(
5028 cat >>confdefs.h
<<_ACEOF
5029 #define _LARGE_FILES $ac_cv_sys_large_files
5040 # Expand $ac_aux_dir to an absolute path.
5041 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
5043 if test x
"${install_sh+set}" != xset
; then
5046 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
5048 install_sh
="\${SHELL} $am_aux_dir/install-sh"
5052 # Installed binaries are usually stripped using 'strip' when the user
5053 # run "make install-strip". However 'strip' might not be the right
5054 # tool to use in cross-compilation environments, therefore Automake
5055 # will honor the 'STRIP' environment variable to overrule this program.
5056 if test "$cross_compiling" != no
; then
5057 if test -n "$ac_tool_prefix"; then
5058 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5059 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5061 $as_echo_n "checking for $ac_word... " >&6; }
5062 if ${ac_cv_prog_STRIP+:} false
; then :
5063 $as_echo_n "(cached) " >&6
5065 if test -n "$STRIP"; then
5066 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5072 test -z "$as_dir" && as_dir
=.
5073 for ac_exec_ext
in '' $ac_executable_extensions; do
5074 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5075 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5085 STRIP
=$ac_cv_prog_STRIP
5086 if test -n "$STRIP"; then
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5088 $as_echo "$STRIP" >&6; }
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5091 $as_echo "no" >&6; }
5096 if test -z "$ac_cv_prog_STRIP"; then
5098 # Extract the first word of "strip", so it can be a program name with args.
5099 set dummy strip
; ac_word
=$2
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5101 $as_echo_n "checking for $ac_word... " >&6; }
5102 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
5103 $as_echo_n "(cached) " >&6
5105 if test -n "$ac_ct_STRIP"; then
5106 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5108 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5112 test -z "$as_dir" && as_dir
=.
5113 for ac_exec_ext
in '' $ac_executable_extensions; do
5114 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5115 ac_cv_prog_ac_ct_STRIP
="strip"
5116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5125 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5126 if test -n "$ac_ct_STRIP"; then
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5128 $as_echo "$ac_ct_STRIP" >&6; }
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5131 $as_echo "no" >&6; }
5134 if test "x$ac_ct_STRIP" = x
; then
5137 case $cross_compiling:$ac_tool_warned in
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5141 ac_tool_warned
=yes ;;
5146 STRIP
="$ac_cv_prog_STRIP"
5150 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
5154 for ac_dir
in ..
"$srcdir"/..
; do
5155 if test -f "$ac_dir/install-sh"; then
5157 ac_install_sh
="$ac_aux_dir/install-sh -c"
5159 elif test -f "$ac_dir/install.sh"; then
5161 ac_install_sh
="$ac_aux_dir/install.sh -c"
5163 elif test -f "$ac_dir/shtool"; then
5165 ac_install_sh
="$ac_aux_dir/shtool install -c"
5169 if test -z "$ac_aux_dir"; then
5170 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
5173 # These three variables are undocumented and unsupported,
5174 # and are intended to be withdrawn in a future Autoconf release.
5175 # They can cause serious problems if a builder's source tree is in a directory
5176 # whose full name contains unusual characters.
5177 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5178 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5179 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5183 # Set build, build_cpu, build_vendor and build_os.
5186 # Set host, host_cpu, host_vendor, and host_os.
5189 # Set target, target_cpu, target_vendor, and target_os.
5192 case ${build_alias} in
5193 "") build_noncanonical
=${build} ;;
5194 *) build_noncanonical
=${build_alias} ;;
5197 case ${host_alias} in
5198 "") host_noncanonical
=${build_noncanonical} ;;
5199 *) host_noncanonical
=${host_alias} ;;
5202 case ${target_alias} in
5203 "") target_noncanonical
=${host_noncanonical} ;;
5204 *) target_noncanonical
=${target_alias} ;;
5210 test "$program_prefix" != NONE
&&
5211 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
5212 # Use a double $ so make ignores it.
5213 test "$program_suffix" != NONE
&&
5214 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
5215 # Double any \ or $.
5216 # By default was `s,x,x', remove it if useless.
5217 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
5218 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
5221 # We require a C++11 compiler. Check if one is available, and if
5222 # necessary, set CXX_DIALECT to some -std=xxx switch.
5224 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5226 ac_cpp
='$CXXCPP $CPPFLAGS'
5227 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5228 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5229 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5233 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5234 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5235 $as_echo_n "(cached) " >&6
5237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5241 // If the compiler admits that it is not ready for C++11, why torture it?
5242 // Hopefully, this will speed up the test.
5246 #error "This is not a C++ compiler"
5248 #elif __cplusplus < 201103L
5250 #error "This is not a C++11 compiler"
5257 namespace test_static_assert
5260 template <typename T>
5263 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5268 namespace test_final_override
5276 struct Derived : public Base
5278 virtual void f() override {}
5283 namespace test_double_right_angle_brackets
5286 template < typename T >
5289 typedef check<void> single_type;
5290 typedef check<check<void>> double_type;
5291 typedef check<check<check<void>>> triple_type;
5292 typedef check<check<check<check<void>>>> quadruple_type;
5296 namespace test_decltype
5309 namespace test_type_deduction
5312 template < typename T1, typename T2 >
5315 static const bool value = false;
5318 template < typename T >
5319 struct is_same<T, T>
5321 static const bool value = true;
5324 template < typename T1, typename T2 >
5326 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5332 test(const int c, volatile int v)
5334 static_assert(is_same<int, decltype(0)>::value == true, "");
5335 static_assert(is_same<int, decltype(c)>::value == false, "");
5336 static_assert(is_same<int, decltype(v)>::value == false, "");
5339 auto sumi = ac + av + 'x';
5340 auto sumf = ac + av + 1.0;
5341 static_assert(is_same<int, decltype(ac)>::value == true, "");
5342 static_assert(is_same<int, decltype(av)>::value == true, "");
5343 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5344 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5345 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5346 return (sumf > 0.0) ? sumi : add(c, v);
5351 namespace test_noexcept
5354 int f() { return 0; }
5355 int g() noexcept { return 0; }
5357 static_assert(noexcept(f()) == false, "");
5358 static_assert(noexcept(g()) == true, "");
5362 namespace test_constexpr
5365 template < typename CharT >
5366 unsigned long constexpr
5367 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5369 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5372 template < typename CharT >
5373 unsigned long constexpr
5374 strlen_c(const CharT *const s) noexcept
5376 return strlen_c_r(s, 0UL);
5379 static_assert(strlen_c("") == 0UL, "");
5380 static_assert(strlen_c("1") == 1UL, "");
5381 static_assert(strlen_c("example") == 7UL, "");
5382 static_assert(strlen_c("another\0example") == 7UL, "");
5386 namespace test_rvalue_references
5392 static constexpr int value = N;
5395 answer<1> f(int&) { return answer<1>(); }
5396 answer<2> f(const int&) { return answer<2>(); }
5397 answer<3> f(int&&) { return answer<3>(); }
5404 static_assert(decltype(f(i))::value == 1, "");
5405 static_assert(decltype(f(c))::value == 2, "");
5406 static_assert(decltype(f(0))::value == 3, "");
5411 namespace test_uniform_initialization
5416 static const int zero {};
5417 static const int one {1};
5420 static_assert(test::zero == 0, "");
5421 static_assert(test::one == 1, "");
5425 namespace test_lambdas
5431 auto lambda1 = [](){};
5432 auto lambda2 = lambda1;
5440 auto a = [](int i, int j){ return i + j; }(1, 2);
5441 auto b = []() -> int { return '0'; }();
5442 auto c = [=](){ return a + b; }();
5443 auto d = [&](){ return c; }();
5444 auto e = [a, &b](int x) mutable {
5445 const auto identity = [](int y){ return y; };
5446 for (auto i = 0; i < a; ++i)
5448 return x + identity(a + b);
5450 return a + b + c + d + e;
5456 const auto nullary = [](){ return 0; };
5457 const auto unary = [](int x){ return x; };
5458 using nullary_t = decltype(nullary);
5459 using unary_t = decltype(unary);
5460 const auto higher1st = [](nullary_t f){ return f(); };
5461 const auto higher2nd = [unary](nullary_t f1){
5462 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5464 return higher1st(nullary) + higher2nd(nullary)(unary);
5469 namespace test_variadic_templates
5475 template <int N0, int... N1toN>
5476 struct sum<N0, N1toN...>
5478 static constexpr auto value = N0 + sum<N1toN...>::value;
5484 static constexpr auto value = 0;
5487 static_assert(sum<>::value == 0, "");
5488 static_assert(sum<1>::value == 1, "");
5489 static_assert(sum<23>::value == 23, "");
5490 static_assert(sum<1, 2>::value == 3, "");
5491 static_assert(sum<5, 5, 11>::value == 21, "");
5492 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5496 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5497 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5499 namespace test_template_alias_sfinae
5504 template<typename T>
5505 using member = typename T::member_type;
5507 template<typename T>
5510 template<typename T>
5511 void func(member<T>*) {}
5515 void test() { func<foo>(0); }
5519 } // namespace cxx11
5521 #endif // __cplusplus >= 201103L
5526 if ac_fn_cxx_try_compile
"$LINENO"; then :
5527 ax_cv_cxx_compile_cxx11
=yes
5529 ax_cv_cxx_compile_cxx11
=no
5531 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5534 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5535 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
5539 if test x
$ac_success = xno
; then
5540 for alternative
in ${ax_cxx_compile_alternatives}; do
5541 switch
="-std=gnu++${alternative}"
5542 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5544 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5545 if eval \
${$cachevar+:} false
; then :
5546 $as_echo_n "(cached) " >&6
5550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5551 /* end confdefs.h. */
5554 // If the compiler admits that it is not ready for C++11, why torture it?
5555 // Hopefully, this will speed up the test.
5559 #error "This is not a C++ compiler"
5561 #elif __cplusplus < 201103L
5563 #error "This is not a C++11 compiler"
5570 namespace test_static_assert
5573 template <typename T>
5576 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5581 namespace test_final_override
5589 struct Derived : public Base
5591 virtual void f() override {}
5596 namespace test_double_right_angle_brackets
5599 template < typename T >
5602 typedef check<void> single_type;
5603 typedef check<check<void>> double_type;
5604 typedef check<check<check<void>>> triple_type;
5605 typedef check<check<check<check<void>>>> quadruple_type;
5609 namespace test_decltype
5622 namespace test_type_deduction
5625 template < typename T1, typename T2 >
5628 static const bool value = false;
5631 template < typename T >
5632 struct is_same<T, T>
5634 static const bool value = true;
5637 template < typename T1, typename T2 >
5639 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5645 test(const int c, volatile int v)
5647 static_assert(is_same<int, decltype(0)>::value == true, "");
5648 static_assert(is_same<int, decltype(c)>::value == false, "");
5649 static_assert(is_same<int, decltype(v)>::value == false, "");
5652 auto sumi = ac + av + 'x';
5653 auto sumf = ac + av + 1.0;
5654 static_assert(is_same<int, decltype(ac)>::value == true, "");
5655 static_assert(is_same<int, decltype(av)>::value == true, "");
5656 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5657 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5658 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5659 return (sumf > 0.0) ? sumi : add(c, v);
5664 namespace test_noexcept
5667 int f() { return 0; }
5668 int g() noexcept { return 0; }
5670 static_assert(noexcept(f()) == false, "");
5671 static_assert(noexcept(g()) == true, "");
5675 namespace test_constexpr
5678 template < typename CharT >
5679 unsigned long constexpr
5680 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5682 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5685 template < typename CharT >
5686 unsigned long constexpr
5687 strlen_c(const CharT *const s) noexcept
5689 return strlen_c_r(s, 0UL);
5692 static_assert(strlen_c("") == 0UL, "");
5693 static_assert(strlen_c("1") == 1UL, "");
5694 static_assert(strlen_c("example") == 7UL, "");
5695 static_assert(strlen_c("another\0example") == 7UL, "");
5699 namespace test_rvalue_references
5705 static constexpr int value = N;
5708 answer<1> f(int&) { return answer<1>(); }
5709 answer<2> f(const int&) { return answer<2>(); }
5710 answer<3> f(int&&) { return answer<3>(); }
5717 static_assert(decltype(f(i))::value == 1, "");
5718 static_assert(decltype(f(c))::value == 2, "");
5719 static_assert(decltype(f(0))::value == 3, "");
5724 namespace test_uniform_initialization
5729 static const int zero {};
5730 static const int one {1};
5733 static_assert(test::zero == 0, "");
5734 static_assert(test::one == 1, "");
5738 namespace test_lambdas
5744 auto lambda1 = [](){};
5745 auto lambda2 = lambda1;
5753 auto a = [](int i, int j){ return i + j; }(1, 2);
5754 auto b = []() -> int { return '0'; }();
5755 auto c = [=](){ return a + b; }();
5756 auto d = [&](){ return c; }();
5757 auto e = [a, &b](int x) mutable {
5758 const auto identity = [](int y){ return y; };
5759 for (auto i = 0; i < a; ++i)
5761 return x + identity(a + b);
5763 return a + b + c + d + e;
5769 const auto nullary = [](){ return 0; };
5770 const auto unary = [](int x){ return x; };
5771 using nullary_t = decltype(nullary);
5772 using unary_t = decltype(unary);
5773 const auto higher1st = [](nullary_t f){ return f(); };
5774 const auto higher2nd = [unary](nullary_t f1){
5775 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5777 return higher1st(nullary) + higher2nd(nullary)(unary);
5782 namespace test_variadic_templates
5788 template <int N0, int... N1toN>
5789 struct sum<N0, N1toN...>
5791 static constexpr auto value = N0 + sum<N1toN...>::value;
5797 static constexpr auto value = 0;
5800 static_assert(sum<>::value == 0, "");
5801 static_assert(sum<1>::value == 1, "");
5802 static_assert(sum<23>::value == 23, "");
5803 static_assert(sum<1, 2>::value == 3, "");
5804 static_assert(sum<5, 5, 11>::value == 21, "");
5805 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5809 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5810 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5812 namespace test_template_alias_sfinae
5817 template<typename T>
5818 using member = typename T::member_type;
5820 template<typename T>
5823 template<typename T>
5824 void func(member<T>*) {}
5828 void test() { func<foo>(0); }
5832 } // namespace cxx11
5834 #endif // __cplusplus >= 201103L
5839 if ac_fn_cxx_try_compile
"$LINENO"; then :
5844 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5847 eval ac_res
=\$
$cachevar
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5849 $as_echo "$ac_res" >&6; }
5850 if eval test x\$
$cachevar = xyes
; then
5851 CXX_DIALECT
="$switch"
5853 if test -n "$CXXCPP" ; then
5854 CXXCPP
="$CXXCPP $switch"
5862 if test x
$ac_success = xno
; then
5863 for alternative
in ${ax_cxx_compile_alternatives}; do
5864 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5865 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
5867 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
5868 if eval \${$cachevar+:} false; then :
5869 $as_echo_n "(cached
) " >&6
5873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5874 /* end confdefs.h. */
5877 // If the compiler admits that it is not ready for C++11, why torture it?
5878 // Hopefully, this will speed up the test.
5882 #error "This is not a C
++ compiler
"
5884 #elif __cplusplus < 201103L
5886 #error "This is not a C
++11 compiler
"
5893 namespace test_static_assert
5896 template <typename T>
5899 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
5904 namespace test_final_override
5912 struct Derived : public Base
5914 virtual void f() override {}
5919 namespace test_double_right_angle_brackets
5922 template < typename T >
5925 typedef check<void> single_type;
5926 typedef check<check<void>> double_type;
5927 typedef check<check<check<void>>> triple_type;
5928 typedef check<check<check<check<void>>>> quadruple_type;
5932 namespace test_decltype
5945 namespace test_type_deduction
5948 template < typename T1, typename T2 >
5951 static const bool value = false;
5954 template < typename T >
5955 struct is_same<T, T>
5957 static const bool value = true;
5960 template < typename T1, typename T2 >
5962 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5968 test(const int c, volatile int v)
5970 static_assert(is_same<int, decltype(0)>::value == true, "");
5971 static_assert(is_same<int, decltype(c)>::value == false, "");
5972 static_assert(is_same<int, decltype(v)>::value == false, "");
5975 auto sumi = ac + av + 'x';
5976 auto sumf = ac + av + 1.0;
5977 static_assert(is_same<int, decltype(ac)>::value == true, "");
5978 static_assert(is_same<int, decltype(av)>::value == true, "");
5979 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5980 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5981 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5982 return (sumf > 0.0) ? sumi : add(c, v);
5987 namespace test_noexcept
5990 int f() { return 0; }
5991 int g() noexcept { return 0; }
5993 static_assert(noexcept(f()) == false, "");
5994 static_assert(noexcept(g()) == true, "");
5998 namespace test_constexpr
6001 template < typename CharT >
6002 unsigned long constexpr
6003 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6005 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6008 template < typename CharT >
6009 unsigned long constexpr
6010 strlen_c(const CharT *const s) noexcept
6012 return strlen_c_r(s, 0UL);
6015 static_assert(strlen_c("") == 0UL, "");
6016 static_assert(strlen_c("1") == 1UL, "");
6017 static_assert(strlen_c("example
") == 7UL, "");
6018 static_assert(strlen_c("another\
0example
") == 7UL, "");
6022 namespace test_rvalue_references
6028 static constexpr int value = N;
6031 answer<1> f(int&) { return answer<1>(); }
6032 answer<2> f(const int&) { return answer<2>(); }
6033 answer<3> f(int&&) { return answer<3>(); }
6040 static_assert(decltype(f(i))::value == 1, "");
6041 static_assert(decltype(f(c))::value == 2, "");
6042 static_assert(decltype(f(0))::value == 3, "");
6047 namespace test_uniform_initialization
6052 static const int zero {};
6053 static const int one {1};
6056 static_assert(test::zero == 0, "");
6057 static_assert(test::one == 1, "");
6061 namespace test_lambdas
6067 auto lambda1 = [](){};
6068 auto lambda2 = lambda1;
6076 auto a = [](int i, int j){ return i + j; }(1, 2);
6077 auto b = []() -> int { return '0'; }();
6078 auto c = [=](){ return a + b; }();
6079 auto d = [&](){ return c; }();
6080 auto e = [a, &b](int x) mutable {
6081 const auto identity = [](int y){ return y; };
6082 for (auto i = 0; i < a; ++i)
6084 return x + identity(a + b);
6086 return a + b + c + d + e;
6092 const auto nullary = [](){ return 0; };
6093 const auto unary = [](int x){ return x; };
6094 using nullary_t = decltype(nullary);
6095 using unary_t = decltype(unary);
6096 const auto higher1st = [](nullary_t f){ return f(); };
6097 const auto higher2nd = [unary](nullary_t f1){
6098 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6100 return higher1st(nullary) + higher2nd(nullary)(unary);
6105 namespace test_variadic_templates
6111 template <int N0, int... N1toN>
6112 struct sum<N0, N1toN...>
6114 static constexpr auto value = N0 + sum<N1toN...>::value;
6120 static constexpr auto value = 0;
6123 static_assert(sum<>::value == 0, "");
6124 static_assert(sum<1>::value == 1, "");
6125 static_assert(sum<23>::value == 23, "");
6126 static_assert(sum<1, 2>::value == 3, "");
6127 static_assert(sum<5, 5, 11>::value == 21, "");
6128 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6132 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6133 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6135 namespace test_template_alias_sfinae
6140 template<typename T>
6141 using member = typename T::member_type;
6143 template<typename T>
6146 template<typename T>
6147 void func(member<T>*) {}
6151 void test() { func<foo>(0); }
6155 } // namespace cxx11
6157 #endif // __cplusplus >= 201103L
6162 if ac_fn_cxx_try_compile "$LINENO"; then :
6167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6170 eval ac_res=\$$cachevar
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6172 $as_echo "$ac_res" >&6; }
6173 if eval test x\$$cachevar = xyes; then
6174 CXX_DIALECT="$switch"
6176 if test -n "$CXXCPP" ; then
6177 CXXCPP="$CXXCPP $switch"
6183 if test x$ac_success = xyes; then
6189 ac_cpp='$CPP $CPPFLAGS'
6190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6194 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6195 if test x$ac_success = xno; then
6196 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6199 if test x$ac_success = xno; then
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6202 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6206 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6213 # Dependency checking.
6214 rm -rf .tst
2>/dev
/null
6215 mkdir .tst
2>/dev
/null
6216 if test -d .tst
; then
6221 rmdir .tst
2>/dev
/null
6223 DEPDIR
="${am__leading_dot}deps"
6225 ac_config_commands
="$ac_config_commands depdir"
6228 depcc
="$CC" am_compiler_list
=
6230 am_depcomp
=$ac_aux_dir/depcomp
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6232 $as_echo_n "checking dependency style of $depcc... " >&6; }
6233 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
6234 $as_echo_n "(cached) " >&6
6236 if test -f "$am_depcomp"; then
6237 # We make a subdir and do the tests there. Otherwise we can end up
6238 # making bogus files that we don't know about and never remove. For
6239 # instance it was reported that on HP-UX the gcc test will end up
6240 # making a dummy file named `D' -- because `-MD' means `put the output
6243 # Copy depcomp to subdir because otherwise we won't find it if we're
6244 # using a relative directory.
6245 cp "$am_depcomp" conftest.dir
6247 # We will build objects and dependencies in a subdirectory because
6248 # it helps to detect inapplicable dependency modes. For instance
6249 # both Tru64's cc and ICC support -MD to output dependencies as a
6250 # side effect of compilation, but ICC will put the dependencies in
6251 # the current directory while Tru64 will put them in the object
6255 am_cv_CC_dependencies_compiler_type
=none
6256 if test "$am_compiler_list" = ""; then
6257 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6259 for depmode
in $am_compiler_list; do
6260 if test $depmode = none
; then break; fi
6262 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6263 # Setup a source with many dependencies, because some compilers
6264 # like to wrap large dependency lists on column 80 (with \), and
6265 # we should not choose a depcomp mode which is confused by this.
6267 # We need to recreate these files for each test, as the compiler may
6268 # overwrite some of them when testing with obscure command lines.
6269 # This happens at least with the AIX C compiler.
6271 for i
in 1 2 3 4 5 6; do
6272 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6273 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6274 # Solaris 8's {/usr,}/bin/sh.
6275 touch sub
/conftst
$i.h
6277 echo "include sub/conftest.Po" > confmf
6279 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6280 # mode. It turns out that the SunPro C++ compiler does not properly
6281 # handle `-M -o', and we need to detect this.
6282 depcmd
="depmode=$depmode \
6283 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6284 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6285 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6286 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
6287 if env
$depcmd > conftest.err
2>&1 &&
6288 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
6289 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
6290 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
6291 # icc doesn't choke on unknown options, it will just issue warnings
6292 # or remarks (even with -Werror). So we grep stderr for any message
6293 # that says an option was ignored or not supported.
6294 # When given -MP, icc 7.0 and 7.1 complain thusly:
6295 # icc: Command line warning: ignoring option '-M'; no argument required
6296 # The diagnosis changed in icc 8.0:
6297 # icc: Command line remark: option '-MP' not supported
6298 if (grep 'ignoring option' conftest.err ||
6299 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6300 am_cv_CC_dependencies_compiler_type
=$depmode
6301 $as_echo "$as_me:$LINENO: success" >&5
6305 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6306 sed -e 's/^/| /' < conftest.err
>&5
6312 am_cv_CC_dependencies_compiler_type
=none
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6317 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6318 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
6319 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
6320 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
6336 # If we haven't got the data from the intl directory,
6337 # assume NLS is disabled.
6346 if test -f ..
/intl
/config.intl
; then
6347 . ..
/intl
/config.intl
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6350 $as_echo_n "checking whether NLS is requested... " >&6; }
6351 if test x
"$USE_NLS" != xyes
; then
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6353 $as_echo "no" >&6; }
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6356 $as_echo "yes" >&6; }
6358 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6362 $as_echo_n "checking for catalogs to be installed... " >&6; }
6363 # Look for .po and .gmo files in the source directory.
6366 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
6367 # If there aren't any .gmo files the shell will give us the
6368 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6370 case "$cat" in *\
**)
6373 # The quadruple backslash is collapsed to a double backslash
6374 # by the backticks, then collapsed again by the double quotes,
6375 # leaving us with one backslash in the sed expression (right
6376 # before the dot that mustn't act as a wildcard).
6377 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6378 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
6379 # The user is allowed to set LINGUAS to a list of languages to
6380 # install catalogs for. If it's empty that means "all of them."
6381 if test "x$LINGUAS" = x
; then
6382 CATALOGS
="$CATALOGS $cat"
6383 XLINGUAS
="$XLINGUAS $lang"
6385 case "$LINGUAS" in *$lang*)
6386 CATALOGS
="$CATALOGS $cat"
6387 XLINGUAS
="$XLINGUAS $lang"
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6394 $as_echo "$LINGUAS" >&6; }
6407 localedir
='${datadir}/locale'
6410 if test x
"$USE_NLS" = xyes
; then
6411 CONFIG_ALL
="$CONFIG_ALL all-po"
6412 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
6413 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
6414 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
6419 cat >>confdefs.h
<<_ACEOF
6420 #define PACKAGE "$PACKAGE"
6425 # We never need to detect it in this sub-configure.
6426 # But preserve it for config.status --recheck.
6430 MAKEINFO_EXTRA_FLAGS
=""
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
6432 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
6433 if ${gdb_cv_have_makeinfo_click+:} false
; then :
6434 $as_echo_n "(cached) " >&6
6436 echo '@clicksequence{a @click{} b}' >conftest.texinfo
6437 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
6438 gdb_cv_have_makeinfo_click
=yes
6440 gdb_cv_have_makeinfo_click
=no
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
6444 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
6445 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
6446 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
6452 # Check whether --with-separate-debug-dir was given.
6453 if test "${with_separate_debug_dir+set}" = set; then :
6454 withval
=$with_separate_debug_dir;
6457 DEBUGDIR
=${libdir}/debug
6461 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6462 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6463 ac_define_dir
=`eval echo $DEBUGDIR`
6464 ac_define_dir
=`eval echo $ac_define_dir`
6466 cat >>confdefs.h
<<_ACEOF
6467 #define DEBUGDIR "$ac_define_dir"
6473 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6474 if test "x$prefix" = xNONE
; then
6475 test_prefix
=/usr
/local
6480 test_prefix
=$exec_prefix
6483 case ${ac_define_dir} in
6484 "${test_prefix}"|
"${test_prefix}/"*|\
6485 '${exec_prefix}'|
'${exec_prefix}/'*)
6490 cat >>confdefs.h
<<_ACEOF
6491 #define DEBUGDIR_RELOCATABLE $value
6497 # We can't pass paths as command line arguments.
6498 # Mingw32 tries to be clever and will convert the paths for us.
6499 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
6500 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
6501 # This breaks GDB's relocatable path conversions since paths passed in
6502 # config.h would not get so translated, the path prefixes no longer match.
6504 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6505 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6506 ac_define_dir
=`eval echo $bindir`
6507 ac_define_dir
=`eval echo $ac_define_dir`
6509 cat >>confdefs.h
<<_ACEOF
6510 #define BINDIR "$ac_define_dir"
6515 # GDB's datadir relocation
6519 # Check whether --with-gdb-datadir was given.
6520 if test "${with_gdb_datadir+set}" = set; then :
6521 withval
=$with_gdb_datadir;
6522 GDB_DATADIR
=$withval
6524 GDB_DATADIR
=${datadir}/gdb
6528 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6529 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6530 ac_define_dir
=`eval echo $GDB_DATADIR`
6531 ac_define_dir
=`eval echo $ac_define_dir`
6533 cat >>confdefs.h
<<_ACEOF
6534 #define GDB_DATADIR "$ac_define_dir"
6540 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6541 if test "x$prefix" = xNONE
; then
6542 test_prefix
=/usr
/local
6547 test_prefix
=$exec_prefix
6550 case ${ac_define_dir} in
6551 "${test_prefix}"|
"${test_prefix}/"*|\
6552 '${exec_prefix}'|
'${exec_prefix}/'*)
6557 cat >>confdefs.h
<<_ACEOF
6558 #define GDB_DATADIR_RELOCATABLE $value
6565 # Check whether --with-relocated-sources was given.
6566 if test "${with_relocated_sources+set}" = set; then :
6567 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
6569 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6570 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6571 ac_define_dir
=`eval echo $reloc_srcdir`
6572 ac_define_dir
=`eval echo $ac_define_dir`
6574 cat >>confdefs.h
<<_ACEOF
6575 #define RELOC_SRCDIR "$ac_define_dir"
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
6584 $as_echo_n "checking for default auto-load directory... " >&6; }
6586 # Check whether --with-auto-load-dir was given.
6587 if test "${with_auto_load_dir+set}" = set; then :
6588 withval
=$with_auto_load_dir;
6590 with_auto_load_dir
='$debugdir:$datadir/auto-load'
6593 escape_dir
=`echo $with_auto_load_dir | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6595 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6596 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6597 ac_define_dir
=`eval echo $escape_dir`
6598 ac_define_dir
=`eval echo $ac_define_dir`
6600 cat >>confdefs.h
<<_ACEOF
6601 #define AUTO_LOAD_DIR "$ac_define_dir"
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
6606 $as_echo "$with_auto_load_dir" >&6; }
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
6609 $as_echo_n "checking for default auto-load safe-path... " >&6; }
6611 # Check whether --with-auto-load-safe-path was given.
6612 if test "${with_auto_load_safe_path+set}" = set; then :
6613 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
6614 with_auto_load_safe_path
="/"
6617 with_auto_load_safe_path
="$with_auto_load_dir"
6620 escape_dir
=`echo $with_auto_load_safe_path | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6622 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6623 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6624 ac_define_dir
=`eval echo $escape_dir`
6625 ac_define_dir
=`eval echo $ac_define_dir`
6627 cat >>confdefs.h
<<_ACEOF
6628 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
6633 $as_echo "$with_auto_load_safe_path" >&6; }
6637 subdirs
="$subdirs testsuite"
6640 # Check whether to support alternative target configurations
6641 # Check whether --enable-targets was given.
6642 if test "${enable_targets+set}" = set; then :
6643 enableval
=$enable_targets; case "${enableval}" in
6644 yes |
"") as_fn_error $?
"enable-targets option must specify target names or 'all'" "$LINENO" 5
6646 no
) enable_targets
= ;;
6647 *) enable_targets
=$enableval ;;
6652 # Check whether to enable 64-bit support on 32-bit hosts
6653 # Check whether --enable-64-bit-bfd was given.
6654 if test "${enable_64_bit_bfd+set}" = set; then :
6655 enableval
=$enable_64_bit_bfd; case "${enableval}" in
6658 *) as_fn_error $?
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
6664 # Provide defaults for some variables set by the per-host and per-target
6666 gdb_host_obs
=posix-hdep.o
6668 if test "${target}" = "${host}"; then
6674 .
$srcdir/configure.
host
6676 # Accumulate some settings from configure.tgt over all enabled targets
6680 HAVE_NATIVE_GCORE_TARGET
=
6682 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6684 if test "$targ_alias" = "all"; then
6687 # Canonicalize the secondary target names.
6688 result
=`$ac_config_sub $targ_alias 2>/dev/null`
6689 if test -n "$result"; then
6695 .
${srcdir}/configure.tgt
6697 if test -z "${gdb_target_obs}"; then :
6698 as_fn_error $?
"configuration ${targ} is unsupported." "$LINENO" 5
6701 # Target-specific object files
6702 for i
in ${gdb_target_obs}; do
6703 case " $TARGET_OBS " in
6706 TARGET_OBS
="$TARGET_OBS ${i}"
6711 # Check whether this target needs 64-bit CORE_ADDR
6712 if test x
${want64} = xfalse
; then
6713 .
${srcdir}/..
/bfd
/config.bfd
6716 # Check whether this target is native and supports gcore.
6717 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
6718 && $gdb_have_gcore; then
6719 HAVE_NATIVE_GCORE_TARGET
=1
6724 if test x
${all_targets} = xtrue
; then
6726 # We want all 64-bit targets if we either:
6727 # - run on a 64-bit host or
6728 # - already require 64-bit support for some other target or
6729 # - the --enable-64-bit-bfd option was supplied
6730 # Otherwise we only support all 32-bit targets.
6732 # NOTE: This test must be in sync with the corresponding
6735 if test x
${want64} = xfalse
; then
6736 # The cast to long int works around a bug in the HP C Compiler
6737 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6738 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6739 # This bug is HP SR number 8606223364.
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6741 $as_echo_n "checking size of long... " >&6; }
6742 if ${ac_cv_sizeof_long+:} false
; then :
6743 $as_echo_n "(cached) " >&6
6745 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6748 if test "$ac_cv_type_long" = yes; then
6749 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6751 as_fn_error
77 "cannot compute sizeof (long)
6752 See \`config.log' for more details" "$LINENO" 5; }
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6760 $as_echo "$ac_cv_sizeof_long" >&6; }
6764 cat >>confdefs.h
<<_ACEOF
6765 #define SIZEOF_LONG $ac_cv_sizeof_long
6769 if test "x${ac_cv_sizeof_long}" = "x8"; then
6773 if test x
${want64} = xtrue
; then
6774 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
6776 TARGET_OBS
='$(ALL_TARGET_OBS)'
6783 # For other settings, only the main target counts.
6786 targ
=$target; .
${srcdir}/configure.tgt
6788 # Fetch the default architecture and default target vector from BFD.
6789 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
6791 # We only want the first architecture, so strip off the others if
6792 # there is more than one.
6793 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
6795 if test "x$targ_archs" != x
; then
6797 cat >>confdefs.h
<<_ACEOF
6798 #define DEFAULT_BFD_ARCH $targ_archs
6802 if test "x$targ_defvec" != x
; then
6804 cat >>confdefs.h
<<_ACEOF
6805 #define DEFAULT_BFD_VEC $targ_defvec
6811 # Check whether --enable-gdbmi was given.
6812 if test "${enable_gdbmi+set}" = set; then :
6813 enableval
=$enable_gdbmi; case $enableval in
6817 as_fn_error $?
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
6823 if test x
"$enable_gdbmi" = xyes
; then
6824 if test -d "$srcdir/mi"; then
6825 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6826 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6827 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6828 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6833 # Check whether --enable-tui was given.
6834 if test "${enable_tui+set}" = set; then :
6835 enableval
=$enable_tui; case $enableval in
6839 as_fn_error $?
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
6847 # Check whether --enable-gdbtk was given.
6848 if test "${enable_gdbtk+set}" = set; then :
6849 enableval
=$enable_gdbtk; case $enableval in
6853 as_fn_error $?
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
6856 if test -d "$srcdir/gdbtk"; then
6863 # We unconditionally disable gdbtk tests on selected platforms.
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
6867 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6871 # Handle optional debuginfod support
6879 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6880 if test -n "$ac_tool_prefix"; then
6881 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6882 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6884 $as_echo_n "checking for $ac_word... " >&6; }
6885 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
6886 $as_echo_n "(cached) " >&6
6890 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6893 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6897 test -z "$as_dir" && as_dir
=.
6898 for ac_exec_ext
in '' $ac_executable_extensions; do
6899 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6900 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6911 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6912 if test -n "$PKG_CONFIG"; then
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6914 $as_echo "$PKG_CONFIG" >&6; }
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6917 $as_echo "no" >&6; }
6922 if test -z "$ac_cv_path_PKG_CONFIG"; then
6923 ac_pt_PKG_CONFIG
=$PKG_CONFIG
6924 # Extract the first word of "pkg-config", so it can be a program name with args.
6925 set dummy pkg-config
; ac_word
=$2
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6927 $as_echo_n "checking for $ac_word... " >&6; }
6928 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
6929 $as_echo_n "(cached) " >&6
6931 case $ac_pt_PKG_CONFIG in
6933 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6936 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6940 test -z "$as_dir" && as_dir
=.
6941 for ac_exec_ext
in '' $ac_executable_extensions; do
6942 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6943 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6954 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
6955 if test -n "$ac_pt_PKG_CONFIG"; then
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6957 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6960 $as_echo "no" >&6; }
6963 if test "x$ac_pt_PKG_CONFIG" = x
; then
6966 case $cross_compiling:$ac_tool_warned in
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6970 ac_tool_warned
=yes ;;
6972 PKG_CONFIG
=$ac_pt_PKG_CONFIG
6975 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
6979 if test -n "$PKG_CONFIG"; then
6980 _pkg_min_version
=0.9.0
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6982 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6983 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6985 $as_echo "yes" >&6; }
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6988 $as_echo "no" >&6; }
6993 # Handle optional debuginfod support
6995 # Check whether --with-debuginfod was given.
6996 if test "${with_debuginfod+set}" = set; then :
6997 withval
=$with_debuginfod;
6999 with_debuginfod
=auto
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
7003 $as_echo_n "checking whether to use debuginfod... " >&6; }
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
7005 $as_echo "$with_debuginfod" >&6; }
7007 if test "x$with_debuginfod" != xno
; then
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
7011 $as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
7013 if test -n "$DEBUGINFOD_CFLAGS"; then
7014 pkg_cv_DEBUGINFOD_CFLAGS
="$DEBUGINFOD_CFLAGS"
7015 elif test -n "$PKG_CONFIG"; then
7016 if test -n "$PKG_CONFIG" && \
7017 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
7018 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
7020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7021 test $ac_status = 0; }; then
7022 pkg_cv_DEBUGINFOD_CFLAGS
=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
7023 test "x$?" != "x0" && pkg_failed
=yes
7030 if test -n "$DEBUGINFOD_LIBS"; then
7031 pkg_cv_DEBUGINFOD_LIBS
="$DEBUGINFOD_LIBS"
7032 elif test -n "$PKG_CONFIG"; then
7033 if test -n "$PKG_CONFIG" && \
7034 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
7035 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
7037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7038 test $ac_status = 0; }; then
7039 pkg_cv_DEBUGINFOD_LIBS
=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
7040 test "x$?" != "x0" && pkg_failed
=yes
7048 if test $pkg_failed = no
; then
7049 pkg_save_LDFLAGS
="$LDFLAGS"
7050 LDFLAGS
="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
7051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7052 /* end confdefs.h. */
7062 if ac_fn_c_try_link
"$LINENO"; then :
7067 rm -f core conftest.err conftest.
$ac_objext \
7068 conftest
$ac_exeext conftest.
$ac_ext
7069 LDFLAGS
=$pkg_save_LDFLAGS
7074 if test $pkg_failed = yes; then
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076 $as_echo "no" >&6; }
7078 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7079 _pkg_short_errors_supported
=yes
7081 _pkg_short_errors_supported
=no
7083 if test $_pkg_short_errors_supported = yes; then
7084 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
7086 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
7088 # Put the nasty error message in config.log where it belongs
7089 echo "$DEBUGINFOD_PKG_ERRORS" >&5
7091 if test "x$with_debuginfod" = xyes
; then
7092 as_fn_error $?
"\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
7095 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
7097 elif test $pkg_failed = untried
; then
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7099 $as_echo "no" >&6; }
7100 if test "x$with_debuginfod" = xyes
; then
7101 as_fn_error $?
"\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
7104 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
7107 DEBUGINFOD_CFLAGS
=$pkg_cv_DEBUGINFOD_CFLAGS
7108 DEBUGINFOD_LIBS
=$pkg_cv_DEBUGINFOD_LIBS
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7110 $as_echo "yes" >&6; }
7112 $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
7117 $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
7121 # Libunwind support for ia64.
7123 # Check whether --with-libunwind-ia64 was given.
7124 if test "${with_libunwind_ia64+set}" = set; then :
7125 withval
=$with_libunwind_ia64;
7127 with_libunwind_ia64
=auto
7131 # Backward compatibility option.
7132 if test "${with_libunwind+set}" = set; then
7133 if test x
"$with_libunwind_ia64" != xauto
; then
7134 as_fn_error $?
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
7137 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
7138 with_libunwind_ia64
="$with_libunwind"
7141 case "$with_libunwind_ia64" in
7145 for ac_header
in libunwind-ia64.h
7147 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
7148 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
7149 cat >>confdefs.h
<<_ACEOF
7150 #define HAVE_LIBUNWIND_IA64_H 1
7157 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
7160 as_fn_error $?
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
7164 if test x
"$with_libunwind_ia64" = xyes
; then
7165 for ac_header
in libunwind-ia64.h
7167 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
7168 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
7169 cat >>confdefs.h
<<_ACEOF
7170 #define HAVE_LIBUNWIND_IA64_H 1
7177 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
7178 as_fn_error $?
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
7180 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
7181 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
7182 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
7187 # Check whether --with-curses was given.
7188 if test "${with_curses+set}" = set; then :
7189 withval
=$with_curses; opt_curses
=$withval
7194 if test "$opt_curses" = "yes"; then
7198 # Profiling support.
7199 # Check whether --enable-profiling was given.
7200 if test "${enable_profiling+set}" = set; then :
7201 enableval
=$enable_profiling; case $enableval in
7205 as_fn_error $?
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
7212 for ac_func
in monstartup _mcleanup
7214 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7215 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7216 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7217 cat >>confdefs.h
<<_ACEOF
7218 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
7225 $as_echo_n "checking for _etext... " >&6; }
7226 if ${ac_cv_var__etext+:} false
; then :
7227 $as_echo_n "(cached) " >&6
7229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7230 /* end confdefs.h. */
7242 if ac_fn_c_try_link
"$LINENO"; then :
7243 ac_cv_var__etext
=yes
7248 rm -f core conftest.err conftest.
$ac_objext \
7249 conftest
$ac_exeext conftest.
$ac_ext
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
7253 $as_echo "$ac_cv_var__etext" >&6; }
7254 if test "$ac_cv_var__etext" = yes; then
7256 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
7260 $as_echo_n "checking for etext... " >&6; }
7261 if ${ac_cv_var_etext+:} false
; then :
7262 $as_echo_n "(cached) " >&6
7264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7265 /* end confdefs.h. */
7277 if ac_fn_c_try_link
"$LINENO"; then :
7283 rm -f core conftest.err conftest.
$ac_objext \
7284 conftest
$ac_exeext conftest.
$ac_ext
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
7288 $as_echo "$ac_cv_var_etext" >&6; }
7289 if test "$ac_cv_var_etext" = yes; then
7291 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
7294 if test "$enable_profiling" = yes ; then
7295 if test "$ac_cv_func_monstartup" = no ||
test "$ac_cv_func__mcleanup" = no
; then
7296 as_fn_error $?
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
7299 OLD_CFLAGS
="$CFLAGS"
7300 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
7303 $as_echo_n "checking whether $CC supports -pg... " >&6; }
7304 if ${ac_cv_cc_supports_pg+:} false
; then :
7305 $as_echo_n "(cached) " >&6
7307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h. */
7318 if ac_fn_c_try_compile
"$LINENO"; then :
7319 ac_cv_cc_supports_pg
=yes
7321 ac_cv_cc_supports_pg
=no
7324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
7328 $as_echo "$ac_cv_cc_supports_pg" >&6; }
7330 if test "$ac_cv_cc_supports_pg" = no
; then
7331 as_fn_error $?
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
7334 CFLAGS
="$OLD_CFLAGS"
7338 # Check whether --enable-codesign was given.
7339 if test "${enable_codesign+set}" = set; then :
7340 enableval
=$enable_codesign; CODESIGN_CERT
=$enableval
7347 # Check whether --with-pkgversion was given.
7348 if test "${with_pkgversion+set}" = set; then :
7349 withval
=$with_pkgversion; case "$withval" in
7350 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
7352 *) PKGVERSION
="($withval) " ;;
7363 # Check whether --with-bugurl was given.
7364 if test "${with_bugurl+set}" = set; then :
7365 withval
=$with_bugurl; case "$withval" in
7366 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
7369 *) BUGURL
="$withval"
7373 BUGURL
="https://www.gnu.org/software/gdb/bugs/"
7383 REPORT_BUGS_TO
="<$BUGURL>"
7384 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7391 cat >>confdefs.h
<<_ACEOF
7392 #define PKGVERSION "$PKGVERSION"
7396 cat >>confdefs.h
<<_ACEOF
7397 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7401 # --------------------- #
7402 # Checks for programs. #
7403 # --------------------- #
7405 for ac_prog
in gawk mawk nawk
awk
7407 # Extract the first word of "$ac_prog", so it can be a program name with args.
7408 set dummy
$ac_prog; ac_word
=$2
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7410 $as_echo_n "checking for $ac_word... " >&6; }
7411 if ${ac_cv_prog_AWK+:} false
; then :
7412 $as_echo_n "(cached) " >&6
7414 if test -n "$AWK"; then
7415 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7417 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7421 test -z "$as_dir" && as_dir
=.
7422 for ac_exec_ext
in '' $ac_executable_extensions; do
7423 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7424 ac_cv_prog_AWK
="$ac_prog"
7425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7435 if test -n "$AWK"; then
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7437 $as_echo "$AWK" >&6; }
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7440 $as_echo "no" >&6; }
7444 test -n "$AWK" && break
7447 # Find a good install program. We prefer a C program (faster),
7448 # so one script is as good as another. But avoid the broken or
7449 # incompatible versions:
7450 # SysV /etc/install, /usr/sbin/install
7451 # SunOS /usr/etc/install
7452 # IRIX /sbin/install
7454 # AmigaOS /C/install, which installs bootblocks on floppy discs
7455 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7456 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7457 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7458 # OS/2's system install, which has a completely different semantic
7459 # ./install, which can be erroneously created by make from ./install.sh.
7460 # Reject install programs that cannot install multiple files.
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7462 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7463 if test -z "$INSTALL"; then
7464 if ${ac_cv_path_install+:} false
; then :
7465 $as_echo_n "(cached) " >&6
7467 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7471 test -z "$as_dir" && as_dir
=.
7472 # Account for people who put trailing slashes in PATH elements.
7473 case $as_dir/ in #((
7474 .
/ | .
// |
/[cC
]/* | \
7475 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7476 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
7479 # OSF1 and SCO ODT 3.0 have their own names for install.
7480 # Don't use installbsd from OSF since it installs stuff as root
7482 for ac_prog
in ginstall scoinst
install; do
7483 for ac_exec_ext
in '' $ac_executable_extensions; do
7484 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
7485 if test $ac_prog = install &&
7486 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7487 # AIX install. It has an incompatible calling convention.
7489 elif test $ac_prog = install &&
7490 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7491 # program-specific install script used by HP pwplus--don't use.
7494 rm -rf conftest.one conftest.two conftest.dir
7495 echo one
> conftest.one
7496 echo two
> conftest.two
7498 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
7499 test -s conftest.one
&& test -s conftest.two
&&
7500 test -s conftest.dir
/conftest.one
&&
7501 test -s conftest.dir
/conftest.two
7503 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7516 rm -rf conftest.one conftest.two conftest.dir
7519 if test "${ac_cv_path_install+set}" = set; then
7520 INSTALL
=$ac_cv_path_install
7522 # As a last resort, use the slow shell script. Don't cache a
7523 # value for INSTALL within a source directory, because that will
7524 # break other packages using the cache if that directory is
7525 # removed, or if the value is a relative name.
7526 INSTALL
=$ac_install_sh
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7530 $as_echo "$INSTALL" >&6; }
7532 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7533 # It thinks the first close brace ends the variable substitution.
7534 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7536 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7538 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7541 $as_echo_n "checking whether ln -s works... " >&6; }
7543 if test "$LN_S" = "ln -s"; then
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7545 $as_echo "yes" >&6; }
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7548 $as_echo "no, using $LN_S" >&6; }
7551 if test -n "$ac_tool_prefix"; then
7552 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7553 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7555 $as_echo_n "checking for $ac_word... " >&6; }
7556 if ${ac_cv_prog_RANLIB+:} false
; then :
7557 $as_echo_n "(cached) " >&6
7559 if test -n "$RANLIB"; then
7560 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7562 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7566 test -z "$as_dir" && as_dir
=.
7567 for ac_exec_ext
in '' $ac_executable_extensions; do
7568 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7569 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7579 RANLIB
=$ac_cv_prog_RANLIB
7580 if test -n "$RANLIB"; then
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7582 $as_echo "$RANLIB" >&6; }
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7585 $as_echo "no" >&6; }
7590 if test -z "$ac_cv_prog_RANLIB"; then
7591 ac_ct_RANLIB
=$RANLIB
7592 # Extract the first word of "ranlib", so it can be a program name with args.
7593 set dummy ranlib
; ac_word
=$2
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7595 $as_echo_n "checking for $ac_word... " >&6; }
7596 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
7597 $as_echo_n "(cached) " >&6
7599 if test -n "$ac_ct_RANLIB"; then
7600 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7602 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7606 test -z "$as_dir" && as_dir
=.
7607 for ac_exec_ext
in '' $ac_executable_extensions; do
7608 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7609 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7619 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7620 if test -n "$ac_ct_RANLIB"; then
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7622 $as_echo "$ac_ct_RANLIB" >&6; }
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7625 $as_echo "no" >&6; }
7628 if test "x$ac_ct_RANLIB" = x
; then
7631 case $cross_compiling:$ac_tool_warned in
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7635 ac_tool_warned
=yes ;;
7637 RANLIB
=$ac_ct_RANLIB
7640 RANLIB
="$ac_cv_prog_RANLIB"
7643 for ac_prog
in 'bison -y' byacc
7645 # Extract the first word of "$ac_prog", so it can be a program name with args.
7646 set dummy
$ac_prog; ac_word
=$2
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7648 $as_echo_n "checking for $ac_word... " >&6; }
7649 if ${ac_cv_prog_YACC+:} false
; then :
7650 $as_echo_n "(cached) " >&6
7652 if test -n "$YACC"; then
7653 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
7655 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7659 test -z "$as_dir" && as_dir
=.
7660 for ac_exec_ext
in '' $ac_executable_extensions; do
7661 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7662 ac_cv_prog_YACC
="$ac_prog"
7663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7672 YACC
=$ac_cv_prog_YACC
7673 if test -n "$YACC"; then
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7675 $as_echo "$YACC" >&6; }
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7678 $as_echo "no" >&6; }
7682 test -n "$YACC" && break
7684 test -n "$YACC" || YACC
="yacc"
7687 if test -n "$ac_tool_prefix"; then
7688 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7689 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7691 $as_echo_n "checking for $ac_word... " >&6; }
7692 if ${ac_cv_prog_AR+:} false
; then :
7693 $as_echo_n "(cached) " >&6
7695 if test -n "$AR"; then
7696 ac_cv_prog_AR
="$AR" # Let the user override the test.
7698 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7702 test -z "$as_dir" && as_dir
=.
7703 for ac_exec_ext
in '' $ac_executable_extensions; do
7704 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7705 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7716 if test -n "$AR"; then
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7718 $as_echo "$AR" >&6; }
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7721 $as_echo "no" >&6; }
7726 if test -z "$ac_cv_prog_AR"; then
7728 # Extract the first word of "ar", so it can be a program name with args.
7729 set dummy
ar; ac_word
=$2
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7731 $as_echo_n "checking for $ac_word... " >&6; }
7732 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
7733 $as_echo_n "(cached) " >&6
7735 if test -n "$ac_ct_AR"; then
7736 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7738 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7742 test -z "$as_dir" && as_dir
=.
7743 for ac_exec_ext
in '' $ac_executable_extensions; do
7744 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7745 ac_cv_prog_ac_ct_AR
="ar"
7746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7755 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7756 if test -n "$ac_ct_AR"; then
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7758 $as_echo "$ac_ct_AR" >&6; }
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7761 $as_echo "no" >&6; }
7764 if test "x$ac_ct_AR" = x
; then
7767 case $cross_compiling:$ac_tool_warned in
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7771 ac_tool_warned
=yes ;;
7779 if test -n "$ac_tool_prefix"; then
7780 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7781 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7783 $as_echo_n "checking for $ac_word... " >&6; }
7784 if ${ac_cv_prog_DLLTOOL+:} false
; then :
7785 $as_echo_n "(cached) " >&6
7787 if test -n "$DLLTOOL"; then
7788 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
7790 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7794 test -z "$as_dir" && as_dir
=.
7795 for ac_exec_ext
in '' $ac_executable_extensions; do
7796 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7797 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
7798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7807 DLLTOOL
=$ac_cv_prog_DLLTOOL
7808 if test -n "$DLLTOOL"; then
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7810 $as_echo "$DLLTOOL" >&6; }
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7813 $as_echo "no" >&6; }
7818 if test -z "$ac_cv_prog_DLLTOOL"; then
7819 ac_ct_DLLTOOL
=$DLLTOOL
7820 # Extract the first word of "dlltool", so it can be a program name with args.
7821 set dummy dlltool
; ac_word
=$2
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7823 $as_echo_n "checking for $ac_word... " >&6; }
7824 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
7825 $as_echo_n "(cached) " >&6
7827 if test -n "$ac_ct_DLLTOOL"; then
7828 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
7830 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7834 test -z "$as_dir" && as_dir
=.
7835 for ac_exec_ext
in '' $ac_executable_extensions; do
7836 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7837 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
7838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7847 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
7848 if test -n "$ac_ct_DLLTOOL"; then
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7850 $as_echo "$ac_ct_DLLTOOL" >&6; }
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853 $as_echo "no" >&6; }
7856 if test "x$ac_ct_DLLTOOL" = x
; then
7859 case $cross_compiling:$ac_tool_warned in
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7863 ac_tool_warned
=yes ;;
7865 DLLTOOL
=$ac_ct_DLLTOOL
7868 DLLTOOL
="$ac_cv_prog_DLLTOOL"
7871 if test -n "$ac_tool_prefix"; then
7872 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7873 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7875 $as_echo_n "checking for $ac_word... " >&6; }
7876 if ${ac_cv_prog_WINDRES+:} false
; then :
7877 $as_echo_n "(cached) " >&6
7879 if test -n "$WINDRES"; then
7880 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
7882 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7886 test -z "$as_dir" && as_dir
=.
7887 for ac_exec_ext
in '' $ac_executable_extensions; do
7888 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7889 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
7890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7899 WINDRES
=$ac_cv_prog_WINDRES
7900 if test -n "$WINDRES"; then
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7902 $as_echo "$WINDRES" >&6; }
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7905 $as_echo "no" >&6; }
7910 if test -z "$ac_cv_prog_WINDRES"; then
7911 ac_ct_WINDRES
=$WINDRES
7912 # Extract the first word of "windres", so it can be a program name with args.
7913 set dummy windres
; ac_word
=$2
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7915 $as_echo_n "checking for $ac_word... " >&6; }
7916 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
7917 $as_echo_n "(cached) " >&6
7919 if test -n "$ac_ct_WINDRES"; then
7920 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
7922 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7926 test -z "$as_dir" && as_dir
=.
7927 for ac_exec_ext
in '' $ac_executable_extensions; do
7928 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7929 ac_cv_prog_ac_ct_WINDRES
="windres"
7930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7939 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
7940 if test -n "$ac_ct_WINDRES"; then
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7942 $as_echo "$ac_ct_WINDRES" >&6; }
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7945 $as_echo "no" >&6; }
7948 if test "x$ac_ct_WINDRES" = x
; then
7951 case $cross_compiling:$ac_tool_warned in
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7955 ac_tool_warned
=yes ;;
7957 WINDRES
=$ac_ct_WINDRES
7960 WINDRES
="$ac_cv_prog_WINDRES"
7966 # Needed for GNU Hurd hosts.
7967 if test -n "$ac_tool_prefix"; then
7968 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7969 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7971 $as_echo_n "checking for $ac_word... " >&6; }
7972 if ${ac_cv_prog_MIG+:} false
; then :
7973 $as_echo_n "(cached) " >&6
7975 if test -n "$MIG"; then
7976 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
7978 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7982 test -z "$as_dir" && as_dir
=.
7983 for ac_exec_ext
in '' $ac_executable_extensions; do
7984 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7985 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
7986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7996 if test -n "$MIG"; then
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
7998 $as_echo "$MIG" >&6; }
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001 $as_echo "no" >&6; }
8006 if test -z "$ac_cv_prog_MIG"; then
8008 # Extract the first word of "mig", so it can be a program name with args.
8009 set dummy mig
; ac_word
=$2
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8011 $as_echo_n "checking for $ac_word... " >&6; }
8012 if ${ac_cv_prog_ac_ct_MIG+:} false
; then :
8013 $as_echo_n "(cached) " >&6
8015 if test -n "$ac_ct_MIG"; then
8016 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
8018 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8022 test -z "$as_dir" && as_dir
=.
8023 for ac_exec_ext
in '' $ac_executable_extensions; do
8024 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8025 ac_cv_prog_ac_ct_MIG
="mig"
8026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8035 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
8036 if test -n "$ac_ct_MIG"; then
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
8038 $as_echo "$ac_ct_MIG" >&6; }
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8041 $as_echo "no" >&6; }
8044 if test "x$ac_ct_MIG" = x
; then
8047 case $cross_compiling:$ac_tool_warned in
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8051 ac_tool_warned
=yes ;;
8056 MIG
="$ac_cv_prog_MIG"
8059 if test x
"$MIG" = x
; then
8060 as_fn_error $?
"MIG not found but required for $host hosts" "$LINENO" 5
8065 # ---------------------- #
8066 # Checks for libraries. #
8067 # ---------------------- #
8069 # We might need to link with -lm; most simulators need it.
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
8071 $as_echo_n "checking for main in -lm... " >&6; }
8072 if ${ac_cv_lib_m_main+:} false
; then :
8073 $as_echo_n "(cached) " >&6
8075 ac_check_lib_save_LIBS
=$LIBS
8077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8078 /* end confdefs.h. */
8089 if ac_fn_c_try_link
"$LINENO"; then :
8090 ac_cv_lib_m_main
=yes
8094 rm -f core conftest.err conftest.
$ac_objext \
8095 conftest
$ac_exeext conftest.
$ac_ext
8096 LIBS
=$ac_check_lib_save_LIBS
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
8099 $as_echo "$ac_cv_lib_m_main" >&6; }
8100 if test "x$ac_cv_lib_m_main" = xyes
; then :
8101 cat >>confdefs.h
<<_ACEOF
8110 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
8112 $as_echo_n "checking for library containing gethostbyname... " >&6; }
8113 if ${ac_cv_search_gethostbyname+:} false
; then :
8114 $as_echo_n "(cached) " >&6
8116 ac_func_search_save_LIBS
=$LIBS
8117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8118 /* end confdefs.h. */
8120 /* Override any GCC internal prototype to avoid an error.
8121 Use char because int might match the return type of a GCC
8122 builtin and then its argument prototype would still apply. */
8126 char gethostbyname ();
8130 return gethostbyname ();
8135 for ac_lib
in '' nsl
; do
8136 if test -z "$ac_lib"; then
8137 ac_res
="none required"
8140 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8142 if ac_fn_c_try_link
"$LINENO"; then :
8143 ac_cv_search_gethostbyname
=$ac_res
8145 rm -f core conftest.err conftest.
$ac_objext \
8147 if ${ac_cv_search_gethostbyname+:} false
; then :
8151 if ${ac_cv_search_gethostbyname+:} false
; then :
8154 ac_cv_search_gethostbyname
=no
8157 LIBS
=$ac_func_search_save_LIBS
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
8160 $as_echo "$ac_cv_search_gethostbyname" >&6; }
8161 ac_res
=$ac_cv_search_gethostbyname
8162 if test "$ac_res" != no
; then :
8163 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8168 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
8170 $as_echo_n "checking for library containing socketpair... " >&6; }
8171 if ${ac_cv_search_socketpair+:} false
; then :
8172 $as_echo_n "(cached) " >&6
8174 ac_func_search_save_LIBS
=$LIBS
8175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8176 /* end confdefs.h. */
8178 /* Override any GCC internal prototype to avoid an error.
8179 Use char because int might match the return type of a GCC
8180 builtin and then its argument prototype would still apply. */
8188 return socketpair ();
8193 for ac_lib
in '' socket
; do
8194 if test -z "$ac_lib"; then
8195 ac_res
="none required"
8198 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8200 if ac_fn_c_try_link
"$LINENO"; then :
8201 ac_cv_search_socketpair
=$ac_res
8203 rm -f core conftest.err conftest.
$ac_objext \
8205 if ${ac_cv_search_socketpair+:} false
; then :
8209 if ${ac_cv_search_socketpair+:} false
; then :
8212 ac_cv_search_socketpair
=no
8215 LIBS
=$ac_func_search_save_LIBS
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
8218 $as_echo "$ac_cv_search_socketpair" >&6; }
8219 ac_res
=$ac_cv_search_socketpair
8220 if test "$ac_res" != no
; then :
8221 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8226 # Link in zlib if we can. This allows us to read compressed debug sections.
8228 # Use the system's zlib library.
8229 zlibdir
="-L\$(top_builddir)/../zlib"
8230 zlibinc
="-I\$(top_srcdir)/../zlib"
8232 # Check whether --with-system-zlib was given.
8233 if test "${with_system_zlib+set}" = set; then :
8234 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
8246 if test "X$prefix" = "XNONE"; then
8247 acl_final_prefix
="$ac_default_prefix"
8249 acl_final_prefix
="$prefix"
8251 if test "X$exec_prefix" = "XNONE"; then
8252 acl_final_exec_prefix
='${prefix}'
8254 acl_final_exec_prefix
="$exec_prefix"
8256 acl_save_prefix
="$prefix"
8257 prefix
="$acl_final_prefix"
8258 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8259 prefix
="$acl_save_prefix"
8262 # Check whether --with-gnu-ld was given.
8263 if test "${with_gnu_ld+set}" = set; then :
8264 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8269 # Prepare PATH_SEPARATOR.
8270 # The user is always right.
8271 if test "${PATH_SEPARATOR+set}" != set; then
8272 echo "#! /bin/sh" >conf$$.sh
8273 echo "exit 0" >>conf$$.sh
8275 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8283 if test "$GCC" = yes; then
8284 # Check if gcc -print-prog-name=ld gives a path.
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8286 $as_echo_n "checking for ld used by GCC... " >&6; }
8289 # gcc leaves a trailing carriage return which upsets mingw
8290 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8292 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8295 # Accept absolute paths.
8296 [\\/]* |
[A-Za-z
]:[\\/]*)
8297 re_direlt
='/[^/][^/]*/\.\./'
8298 # Canonicalize the path of ld
8299 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8300 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8301 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8303 test -z "$LD" && LD
="$ac_prog"
8306 # If it fails, then pretend we aren't using GCC.
8310 # If it is relative, then search for the first ld in PATH.
8314 elif test "$with_gnu_ld" = yes; then
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8316 $as_echo_n "checking for GNU ld... " >&6; }
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8319 $as_echo_n "checking for non-GNU ld... " >&6; }
8321 if ${acl_cv_path_LD+:} false
; then :
8322 $as_echo_n "(cached) " >&6
8324 if test -z "$LD"; then
8325 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8326 for ac_dir
in $PATH; do
8327 test -z "$ac_dir" && ac_dir
=.
8328 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8329 acl_cv_path_LD
="$ac_dir/$ac_prog"
8330 # Check to see if the program is GNU ld. I'd rather use --version,
8331 # but apparently some GNU ld's only accept -v.
8332 # Break only if it was the GNU/non-GNU ld that we prefer.
8333 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
8334 test "$with_gnu_ld" != no
&& break
8336 test "$with_gnu_ld" != yes && break
8342 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8346 LD
="$acl_cv_path_LD"
8347 if test -n "$LD"; then
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8349 $as_echo "$LD" >&6; }
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8352 $as_echo "no" >&6; }
8354 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8356 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8357 if ${acl_cv_prog_gnu_ld+:} false
; then :
8358 $as_echo_n "(cached) " >&6
8360 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8361 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8362 acl_cv_prog_gnu_ld
=yes
8364 acl_cv_prog_gnu_ld
=no
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8368 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8369 with_gnu_ld
=$acl_cv_prog_gnu_ld
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8374 $as_echo_n "checking for shared library run path origin... " >&6; }
8375 if ${acl_cv_rpath+:} false
; then :
8376 $as_echo_n "(cached) " >&6
8379 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8380 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8387 $as_echo "$acl_cv_rpath" >&6; }
8389 libext
="$acl_cv_libext"
8390 shlibext
="$acl_cv_shlibext"
8391 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8392 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8393 hardcode_direct
="$acl_cv_hardcode_direct"
8394 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8395 # Check whether --enable-rpath was given.
8396 if test "${enable_rpath+set}" = set; then :
8397 enableval
=$enable_rpath; :
8411 acl_save_prefix
="$prefix"
8412 prefix
="$acl_final_prefix"
8413 acl_save_exec_prefix
="$exec_prefix"
8414 exec_prefix
="$acl_final_exec_prefix"
8416 eval additional_includedir
=\"$includedir\"
8417 eval additional_libdir
=\"$libdir\"
8419 exec_prefix
="$acl_save_exec_prefix"
8420 prefix
="$acl_save_prefix"
8423 # Check whether --with-libiconv-prefix was given.
8424 if test "${with_libiconv_prefix+set}" = set; then :
8425 withval
=$with_libiconv_prefix;
8426 if test "X$withval" = "Xno"; then
8429 if test "X$withval" = "X"; then
8431 acl_save_prefix
="$prefix"
8432 prefix
="$acl_final_prefix"
8433 acl_save_exec_prefix
="$exec_prefix"
8434 exec_prefix
="$acl_final_exec_prefix"
8436 eval additional_includedir
=\"$includedir\"
8437 eval additional_libdir
=\"$libdir\"
8439 exec_prefix
="$acl_save_exec_prefix"
8440 prefix
="$acl_save_prefix"
8443 additional_includedir
="$withval/include"
8444 additional_libdir
="$withval/lib"
8451 # Check whether --with-libiconv-type was given.
8452 if test "${with_libiconv_type+set}" = set; then :
8453 withval
=$with_libiconv_type; with_libiconv_type
=$withval
8455 with_libiconv_type
=auto
8458 lib_type
=`eval echo \$with_libiconv_type`
8465 names_already_handled
=
8466 names_next_round
='iconv '
8467 while test -n "$names_next_round"; do
8468 names_this_round
="$names_next_round"
8470 for name
in $names_this_round; do
8472 for n
in $names_already_handled; do
8473 if test "$n" = "$name"; then
8478 if test -z "$already_handled"; then
8479 names_already_handled
="$names_already_handled $name"
8480 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8481 eval value
=\"\
$HAVE_LIB$uppername\"
8482 if test -n "$value"; then
8483 if test "$value" = yes; then
8484 eval value
=\"\
$LIB$uppername\"
8485 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
8486 eval value
=\"\
$LTLIB$uppername\"
8487 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
8496 if test $use_additional = yes; then
8497 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8498 found_dir
="$additional_libdir"
8499 found_so
="$additional_libdir/lib$name.$shlibext"
8500 if test -f "$additional_libdir/lib$name.la"; then
8501 found_la
="$additional_libdir/lib$name.la"
8503 elif test x
$lib_type != xshared
; then
8504 if test -f "$additional_libdir/lib$name.$libext"; then
8505 found_dir
="$additional_libdir"
8506 found_a
="$additional_libdir/lib$name.$libext"
8507 if test -f "$additional_libdir/lib$name.la"; then
8508 found_la
="$additional_libdir/lib$name.la"
8513 if test "X$found_dir" = "X"; then
8514 for x
in $LDFLAGS $LTLIBICONV; do
8516 acl_save_prefix
="$prefix"
8517 prefix
="$acl_final_prefix"
8518 acl_save_exec_prefix
="$exec_prefix"
8519 exec_prefix
="$acl_final_exec_prefix"
8521 exec_prefix
="$acl_save_exec_prefix"
8522 prefix
="$acl_save_prefix"
8526 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8527 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8529 found_so
="$dir/lib$name.$shlibext"
8530 if test -f "$dir/lib$name.la"; then
8531 found_la
="$dir/lib$name.la"
8533 elif test x
$lib_type != xshared
; then
8534 if test -f "$dir/lib$name.$libext"; then
8536 found_a
="$dir/lib$name.$libext"
8537 if test -f "$dir/lib$name.la"; then
8538 found_la
="$dir/lib$name.la"
8544 if test "X$found_dir" != "X"; then
8549 if test "X$found_dir" != "X"; then
8550 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8551 if test "X$found_so" != "X"; then
8552 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8553 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8556 for x
in $ltrpathdirs; do
8557 if test "X$x" = "X$found_dir"; then
8562 if test -z "$haveit"; then
8563 ltrpathdirs
="$ltrpathdirs $found_dir"
8565 if test "$hardcode_direct" = yes; then
8566 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8568 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8569 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8571 for x
in $rpathdirs; do
8572 if test "X$x" = "X$found_dir"; then
8577 if test -z "$haveit"; then
8578 rpathdirs
="$rpathdirs $found_dir"
8582 for x
in $LDFLAGS $LIBICONV; do
8584 acl_save_prefix
="$prefix"
8585 prefix
="$acl_final_prefix"
8586 acl_save_exec_prefix
="$exec_prefix"
8587 exec_prefix
="$acl_final_exec_prefix"
8589 exec_prefix
="$acl_save_exec_prefix"
8590 prefix
="$acl_save_prefix"
8592 if test "X$x" = "X-L$found_dir"; then
8597 if test -z "$haveit"; then
8598 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8600 if test "$hardcode_minus_L" != no
; then
8601 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8603 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8609 if test "X$found_a" != "X"; then
8610 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
8612 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8615 additional_includedir
=
8616 case "$found_dir" in
8618 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8619 additional_includedir
="$basedir/include"
8622 if test "X$additional_includedir" != "X"; then
8623 if test "X$additional_includedir" != "X/usr/include"; then
8625 if test "X$additional_includedir" = "X/usr/local/include"; then
8626 if test -n "$GCC"; then
8628 linux
*) haveit
=yes;;
8632 if test -z "$haveit"; then
8633 for x
in $CPPFLAGS $INCICONV; do
8635 acl_save_prefix
="$prefix"
8636 prefix
="$acl_final_prefix"
8637 acl_save_exec_prefix
="$exec_prefix"
8638 exec_prefix
="$acl_final_exec_prefix"
8640 exec_prefix
="$acl_save_exec_prefix"
8641 prefix
="$acl_save_prefix"
8643 if test "X$x" = "X-I$additional_includedir"; then
8648 if test -z "$haveit"; then
8649 if test -d "$additional_includedir"; then
8650 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8656 if test -n "$found_la"; then
8657 save_libdir
="$libdir"
8659 */* |
*\\*) .
"$found_la" ;;
8660 *) .
"./$found_la" ;;
8662 libdir
="$save_libdir"
8663 for dep
in $dependency_libs; do
8666 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8667 if test "X$additional_libdir" != "X/usr/lib"; then
8669 if test "X$additional_libdir" = "X/usr/local/lib"; then
8670 if test -n "$GCC"; then
8672 linux
*) haveit
=yes;;
8676 if test -z "$haveit"; then
8678 for x
in $LDFLAGS $LIBICONV; do
8680 acl_save_prefix
="$prefix"
8681 prefix
="$acl_final_prefix"
8682 acl_save_exec_prefix
="$exec_prefix"
8683 exec_prefix
="$acl_final_exec_prefix"
8685 exec_prefix
="$acl_save_exec_prefix"
8686 prefix
="$acl_save_prefix"
8688 if test "X$x" = "X-L$additional_libdir"; then
8693 if test -z "$haveit"; then
8694 if test -d "$additional_libdir"; then
8695 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8699 for x
in $LDFLAGS $LTLIBICONV; do
8701 acl_save_prefix
="$prefix"
8702 prefix
="$acl_final_prefix"
8703 acl_save_exec_prefix
="$exec_prefix"
8704 exec_prefix
="$acl_final_exec_prefix"
8706 exec_prefix
="$acl_save_exec_prefix"
8707 prefix
="$acl_save_prefix"
8709 if test "X$x" = "X-L$additional_libdir"; then
8714 if test -z "$haveit"; then
8715 if test -d "$additional_libdir"; then
8716 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8723 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8724 if test "$enable_rpath" != no
; then
8726 for x
in $rpathdirs; do
8727 if test "X$x" = "X$dir"; then
8732 if test -z "$haveit"; then
8733 rpathdirs
="$rpathdirs $dir"
8736 for x
in $ltrpathdirs; do
8737 if test "X$x" = "X$dir"; then
8742 if test -z "$haveit"; then
8743 ltrpathdirs
="$ltrpathdirs $dir"
8748 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8751 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8754 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
8755 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8761 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
8762 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8763 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8765 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
8766 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
8773 if test "X$rpathdirs" != "X"; then
8774 if test -n "$hardcode_libdir_separator"; then
8776 for found_dir
in $rpathdirs; do
8777 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8779 acl_save_libdir
="$libdir"
8781 eval flag
=\"$hardcode_libdir_flag_spec\"
8782 libdir
="$acl_save_libdir"
8783 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8785 for found_dir
in $rpathdirs; do
8786 acl_save_libdir
="$libdir"
8788 eval flag
=\"$hardcode_libdir_flag_spec\"
8789 libdir
="$acl_save_libdir"
8790 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8794 if test "X$ltrpathdirs" != "X"; then
8795 for found_dir
in $ltrpathdirs; do
8796 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8807 $as_echo_n "checking for iconv... " >&6; }
8808 if ${am_cv_func_iconv+:} false
; then :
8809 $as_echo_n "(cached) " >&6
8812 am_cv_func_iconv
="no, consider installing GNU libiconv"
8814 am_save_CPPFLAGS
="$CPPFLAGS"
8815 CPPFLAGS
="$CPPFLAGS $INCICONV"
8816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8817 /* end confdefs.h. */
8823 iconv_t cd = iconv_open("","");
8824 iconv(cd,NULL,NULL,NULL,NULL);
8830 if ac_fn_c_try_link
"$LINENO"; then :
8831 am_cv_func_iconv
=yes
8833 rm -f core conftest.err conftest.
$ac_objext \
8834 conftest
$ac_exeext conftest.
$ac_ext
8835 CPPFLAGS
="$am_save_CPPFLAGS"
8837 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
8838 for _libs
in .libs _libs
; do
8839 am_save_CPPFLAGS
="$CPPFLAGS"
8840 am_save_LIBS
="$LIBS"
8841 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
8842 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
8843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8844 /* end confdefs.h. */
8850 iconv_t cd = iconv_open("","");
8851 iconv(cd,NULL,NULL,NULL,NULL);
8857 if ac_fn_c_try_link
"$LINENO"; then :
8858 INCICONV
="-I../libiconv/include"
8859 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
8860 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
8862 am_cv_func_iconv
=yes
8864 rm -f core conftest.err conftest.
$ac_objext \
8865 conftest
$ac_exeext conftest.
$ac_ext
8866 CPPFLAGS
="$am_save_CPPFLAGS"
8867 LIBS
="$am_save_LIBS"
8868 if test "$am_cv_func_iconv" = "yes"; then
8874 if test "$am_cv_func_iconv" != yes; then
8875 am_save_CPPFLAGS
="$CPPFLAGS"
8876 am_save_LIBS
="$LIBS"
8877 CPPFLAGS
="$CPPFLAGS $INCICONV"
8878 LIBS
="$LIBS $LIBICONV"
8879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8880 /* end confdefs.h. */
8886 iconv_t cd = iconv_open("","");
8887 iconv(cd,NULL,NULL,NULL,NULL);
8893 if ac_fn_c_try_link
"$LINENO"; then :
8895 am_cv_func_iconv
=yes
8897 rm -f core conftest.err conftest.
$ac_objext \
8898 conftest
$ac_exeext conftest.
$ac_ext
8899 CPPFLAGS
="$am_save_CPPFLAGS"
8900 LIBS
="$am_save_LIBS"
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8905 $as_echo "$am_cv_func_iconv" >&6; }
8906 if test "$am_cv_func_iconv" = yes; then
8908 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8911 if test "$am_cv_lib_iconv" = yes; then
8913 for element
in $INCICONV; do
8915 for x
in $CPPFLAGS; do
8917 acl_save_prefix
="$prefix"
8918 prefix
="$acl_final_prefix"
8919 acl_save_exec_prefix
="$exec_prefix"
8920 exec_prefix
="$acl_final_exec_prefix"
8922 exec_prefix
="$acl_save_exec_prefix"
8923 prefix
="$acl_save_prefix"
8925 if test "X$x" = "X$element"; then
8930 if test -z "$haveit"; then
8931 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8936 $as_echo_n "checking how to link with libiconv... " >&6; }
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8938 $as_echo "$LIBICONV" >&6; }
8946 if test "$am_cv_func_iconv" = yes; then
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8948 $as_echo_n "checking for iconv declaration... " >&6; }
8949 if ${am_cv_proto_iconv+:} false
; then :
8950 $as_echo_n "(cached) " >&6
8953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8954 /* end confdefs.h. */
8962 #if defined(__STDC__) || defined(__cplusplus)
8963 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8976 if ac_fn_c_try_compile
"$LINENO"; then :
8977 am_cv_proto_iconv_arg1
=""
8979 am_cv_proto_iconv_arg1
="const"
8981 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8982 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);"
8985 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8987 }$am_cv_proto_iconv" >&5
8989 }$am_cv_proto_iconv" >&6; }
8991 cat >>confdefs.h
<<_ACEOF
8992 #define ICONV_CONST $am_cv_proto_iconv_arg1
8998 # GDB may fork/exec the iconv program to get the list of supported character
8999 # sets. Allow the user to specify where to find it.
9000 # There are several factors affecting the choice of option name:
9001 # - There is already --with-libiconv-prefix but we can't use it, it specifies
9002 # the build-time location of libiconv files.
9003 # - The program we need to find is iconv, which comes with glibc. The user
9004 # doesn't necessarily have libiconv installed. Therefore naming this
9005 # --with-libiconv-foo feels wrong.
9006 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
9007 # defined to work on directories not files (though it really doesn't know
9009 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
9010 # with --with-libiconv-prefix.
9011 # Putting these together is why the option name is --with-iconv-bin.
9014 # Check whether --with-iconv-bin was given.
9015 if test "${with_iconv_bin+set}" = set; then :
9016 withval
=$with_iconv_bin; iconv_bin
="${withval}"
9018 cat >>confdefs.h
<<_ACEOF
9019 #define ICONV_BIN "${iconv_bin}"
9023 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9024 if test "x$prefix" = xNONE
; then
9025 test_prefix
=/usr
/local
9030 test_prefix
=$exec_prefix
9033 case ${iconv_bin} in
9034 "${test_prefix}"|
"${test_prefix}/"*|\
9035 '${exec_prefix}'|
'${exec_prefix}/'*)
9040 cat >>confdefs.h
<<_ACEOF
9041 #define ICONV_BIN_RELOCATABLE $value
9049 # For the TUI, we need enhanced curses functionality.
9050 if test x
"$enable_tui" != xno
; then
9055 if test x
"$prefer_curses" = xyes
; then
9056 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9057 # curses library because the latter might not provide all the
9058 # functionality we need. However, this leads to problems on systems
9059 # where the linker searches /usr/local/lib, but the compiler doesn't
9060 # search /usr/local/include, if ncurses is installed in /usr/local. A
9061 # default installation of ncurses on alpha*-dec-osf* will lead to such
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
9064 $as_echo_n "checking for library containing waddstr... " >&6; }
9065 if ${ac_cv_search_waddstr+:} false
; then :
9066 $as_echo_n "(cached) " >&6
9068 ac_func_search_save_LIBS
=$LIBS
9069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9070 /* end confdefs.h. */
9072 /* Override any GCC internal prototype to avoid an error.
9073 Use char because int might match the return type of a GCC
9074 builtin and then its argument prototype would still apply. */
9087 for ac_lib
in '' ncursesw ncurses cursesX curses
; do
9088 if test -z "$ac_lib"; then
9089 ac_res
="none required"
9092 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9094 if ac_fn_c_try_link
"$LINENO"; then :
9095 ac_cv_search_waddstr
=$ac_res
9097 rm -f core conftest.err conftest.
$ac_objext \
9099 if ${ac_cv_search_waddstr+:} false
; then :
9103 if ${ac_cv_search_waddstr+:} false
; then :
9106 ac_cv_search_waddstr
=no
9109 LIBS
=$ac_func_search_save_LIBS
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
9112 $as_echo "$ac_cv_search_waddstr" >&6; }
9113 ac_res
=$ac_cv_search_waddstr
9114 if test "$ac_res" != no
; then :
9115 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9120 if test "$ac_cv_search_waddstr" != no
; then
9125 # Check whether we should enable the TUI, but only do so if we really
9127 if test x
"$enable_tui" != xno
; then
9128 if test -d "$srcdir/tui"; then
9129 if test "$curses_found" != no
; then
9130 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
9131 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
9132 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9133 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
9135 if test x
"$enable_tui" = xyes
; then
9136 as_fn_error $?
"no enhanced curses library found; disable TUI" "$LINENO" 5
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
9139 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9145 # Since GDB uses Readline, we need termcap functionality. In many
9146 # cases this will be provided by the curses library, but some systems
9147 # have a separate termcap library, or no curses library at all.
9151 if test -d "$srcdir/libtermcap"; then
9152 LIBS
="../libtermcap/libtermcap.a $LIBS"
9153 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
9156 ac_cv_search_tgetent
="none required"
9160 # These are the libraries checked by Readline.
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9162 $as_echo_n "checking for library containing tgetent... " >&6; }
9163 if ${ac_cv_search_tgetent+:} false
; then :
9164 $as_echo_n "(cached) " >&6
9166 ac_func_search_save_LIBS
=$LIBS
9167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9168 /* end confdefs.h. */
9170 /* Override any GCC internal prototype to avoid an error.
9171 Use char because int might match the return type of a GCC
9172 builtin and then its argument prototype would still apply. */
9185 for ac_lib
in '' termcap tinfow tinfo curses ncursesw ncurses
; do
9186 if test -z "$ac_lib"; then
9187 ac_res
="none required"
9190 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9192 if ac_fn_c_try_link
"$LINENO"; then :
9193 ac_cv_search_tgetent
=$ac_res
9195 rm -f core conftest.err conftest.
$ac_objext \
9197 if ${ac_cv_search_tgetent+:} false
; then :
9201 if ${ac_cv_search_tgetent+:} false
; then :
9204 ac_cv_search_tgetent
=no
9207 LIBS
=$ac_func_search_save_LIBS
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9210 $as_echo "$ac_cv_search_tgetent" >&6; }
9211 ac_res
=$ac_cv_search_tgetent
9212 if test "$ac_res" != no
; then :
9213 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9218 if test "$ac_cv_search_tgetent" = no
; then
9219 CONFIG_OBS
="$CONFIG_OBS stub-termcap.o"
9223 # Check whether --with-system-readline was given.
9224 if test "${with_system_readline+set}" = set; then :
9225 withval
=$with_system_readline;
9229 if test "$with_system_readline" = yes; then
9230 for ac_header
in readline
/readline.h
9232 ac_fn_c_check_header_mongrel
"$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
9233 if test "x$ac_cv_header_readline_readline_h" = xyes
; then :
9234 cat >>confdefs.h
<<_ACEOF
9235 #define HAVE_READLINE_READLINE_H 1
9244 if test "$readline_h" = "no"; then
9245 as_fn_error $?
"readline development packages are probably missing" "$LINENO" 5
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system readline is new enough" >&5
9248 $as_echo_n "checking whether system readline is new enough... " >&6; }
9249 if ${gdb_cv_readline_ok+:} false
; then :
9250 $as_echo_n "(cached) " >&6
9252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9253 /* end confdefs.h. */
9255 #include <readline/readline.h>
9259 #if RL_VERSION_MAJOR < 7
9260 # error "readline version 7 required"
9267 if ac_fn_c_try_compile
"$LINENO"; then :
9268 gdb_cv_readline_ok
=yes
9270 gdb_cv_readline_ok
=no
9273 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_readline_ok" >&5
9277 $as_echo "$gdb_cv_readline_ok" >&6; }
9278 if test "$gdb_cv_readline_ok" != yes; then
9279 as_fn_error $?
"system readline is not new enough" "$LINENO" 5
9285 READLINE_TEXI_INCFLAG
=
9287 READLINE
='$(READLINE_DIR)/libreadline.a'
9288 READLINE_DEPS
='$(READLINE)'
9289 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
9290 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
9297 # Generate jit-reader.h
9299 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
9302 # The cast to long int works around a bug in the HP C Compiler
9303 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9304 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9305 # This bug is HP SR number 8606223364.
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
9307 $as_echo_n "checking size of unsigned long long... " >&6; }
9308 if ${ac_cv_sizeof_unsigned_long_long+:} false
; then :
9309 $as_echo_n "(cached) " >&6
9311 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
9314 if test "$ac_cv_type_unsigned_long_long" = yes; then
9315 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9317 as_fn_error
77 "cannot compute sizeof (unsigned long long)
9318 See \`config.log' for more details" "$LINENO" 5; }
9320 ac_cv_sizeof_unsigned_long_long
=0
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
9326 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
9330 cat >>confdefs.h
<<_ACEOF
9331 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
9335 # The cast to long int works around a bug in the HP C Compiler
9336 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9337 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9338 # This bug is HP SR number 8606223364.
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
9340 $as_echo_n "checking size of unsigned long... " >&6; }
9341 if ${ac_cv_sizeof_unsigned_long+:} false
; then :
9342 $as_echo_n "(cached) " >&6
9344 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
9347 if test "$ac_cv_type_unsigned_long" = yes; then
9348 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9350 as_fn_error
77 "cannot compute sizeof (unsigned long)
9351 See \`config.log' for more details" "$LINENO" 5; }
9353 ac_cv_sizeof_unsigned_long
=0
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
9359 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
9363 cat >>confdefs.h
<<_ACEOF
9364 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9368 # The cast to long int works around a bug in the HP C Compiler
9369 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9370 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9371 # This bug is HP SR number 8606223364.
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
9373 $as_echo_n "checking size of unsigned __int128... " >&6; }
9374 if ${ac_cv_sizeof_unsigned___int128+:} false
; then :
9375 $as_echo_n "(cached) " >&6
9377 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
9380 if test "$ac_cv_type_unsigned___int128" = yes; then
9381 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9383 as_fn_error
77 "cannot compute sizeof (unsigned __int128)
9384 See \`config.log' for more details" "$LINENO" 5; }
9386 ac_cv_sizeof_unsigned___int128
=0
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
9392 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
9396 cat >>confdefs.h
<<_ACEOF
9397 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
9402 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9403 TARGET_PTR
="unsigned long"
9404 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9405 TARGET_PTR
="unsigned long long"
9406 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
9407 TARGET_PTR
="unsigned __int128"
9409 TARGET_PTR
="unsigned long"
9413 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9417 $as_echo_n "checking for library containing dlopen... " >&6; }
9418 if ${ac_cv_search_dlopen+:} false
; then :
9419 $as_echo_n "(cached) " >&6
9421 ac_func_search_save_LIBS
=$LIBS
9422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9423 /* end confdefs.h. */
9425 /* Override any GCC internal prototype to avoid an error.
9426 Use char because int might match the return type of a GCC
9427 builtin and then its argument prototype would still apply. */
9440 for ac_lib
in '' dl
; do
9441 if test -z "$ac_lib"; then
9442 ac_res
="none required"
9445 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9447 if ac_fn_c_try_link
"$LINENO"; then :
9448 ac_cv_search_dlopen
=$ac_res
9450 rm -f core conftest.err conftest.
$ac_objext \
9452 if ${ac_cv_search_dlopen+:} false
; then :
9456 if ${ac_cv_search_dlopen+:} false
; then :
9459 ac_cv_search_dlopen
=no
9462 LIBS
=$ac_func_search_save_LIBS
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9465 $as_echo "$ac_cv_search_dlopen" >&6; }
9466 ac_res
=$ac_cv_search_dlopen
9467 if test "$ac_res" != no
; then :
9468 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9475 # Check whether --with-jit-reader-dir was given.
9476 if test "${with_jit_reader_dir+set}" = set; then :
9477 withval
=$with_jit_reader_dir;
9478 JIT_READER_DIR
=$withval
9480 JIT_READER_DIR
=${libdir}/gdb
9484 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9485 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9486 ac_define_dir
=`eval echo $JIT_READER_DIR`
9487 ac_define_dir
=`eval echo $ac_define_dir`
9489 cat >>confdefs.h
<<_ACEOF
9490 #define JIT_READER_DIR "$ac_define_dir"
9496 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9497 if test "x$prefix" = xNONE
; then
9498 test_prefix
=/usr
/local
9503 test_prefix
=$exec_prefix
9506 case ${ac_define_dir} in
9507 "${test_prefix}"|
"${test_prefix}/"*|\
9508 '${exec_prefix}'|
'${exec_prefix}/'*)
9513 cat >>confdefs.h
<<_ACEOF
9514 #define JIT_READER_DIR_RELOCATABLE $value
9521 # Check whether --with-expat was given.
9522 if test "${with_expat+set}" = set; then :
9523 withval
=$with_expat;
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9529 $as_echo_n "checking whether to use expat... " >&6; }
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9531 $as_echo "$with_expat" >&6; }
9533 if test "${with_expat}" = no
; then
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9535 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9548 acl_save_prefix
="$prefix"
9549 prefix
="$acl_final_prefix"
9550 acl_save_exec_prefix
="$exec_prefix"
9551 exec_prefix
="$acl_final_exec_prefix"
9553 eval additional_includedir
=\"$includedir\"
9554 eval additional_libdir
=\"$libdir\"
9556 exec_prefix
="$acl_save_exec_prefix"
9557 prefix
="$acl_save_prefix"
9560 # Check whether --with-libexpat-prefix was given.
9561 if test "${with_libexpat_prefix+set}" = set; then :
9562 withval
=$with_libexpat_prefix;
9563 if test "X$withval" = "Xno"; then
9566 if test "X$withval" = "X"; then
9568 acl_save_prefix
="$prefix"
9569 prefix
="$acl_final_prefix"
9570 acl_save_exec_prefix
="$exec_prefix"
9571 exec_prefix
="$acl_final_exec_prefix"
9573 eval additional_includedir
=\"$includedir\"
9574 eval additional_libdir
=\"$libdir\"
9576 exec_prefix
="$acl_save_exec_prefix"
9577 prefix
="$acl_save_prefix"
9580 additional_includedir
="$withval/include"
9581 additional_libdir
="$withval/lib"
9588 # Check whether --with-libexpat-type was given.
9589 if test "${with_libexpat_type+set}" = set; then :
9590 withval
=$with_libexpat_type; with_libexpat_type
=$withval
9592 with_libexpat_type
=auto
9595 lib_type
=`eval echo \$with_libexpat_type`
9602 names_already_handled
=
9603 names_next_round
='expat '
9604 while test -n "$names_next_round"; do
9605 names_this_round
="$names_next_round"
9607 for name
in $names_this_round; do
9609 for n
in $names_already_handled; do
9610 if test "$n" = "$name"; then
9615 if test -z "$already_handled"; then
9616 names_already_handled
="$names_already_handled $name"
9617 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9618 eval value
=\"\
$HAVE_LIB$uppername\"
9619 if test -n "$value"; then
9620 if test "$value" = yes; then
9621 eval value
=\"\
$LIB$uppername\"
9622 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
9623 eval value
=\"\
$LTLIB$uppername\"
9624 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
9633 if test $use_additional = yes; then
9634 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9635 found_dir
="$additional_libdir"
9636 found_so
="$additional_libdir/lib$name.$shlibext"
9637 if test -f "$additional_libdir/lib$name.la"; then
9638 found_la
="$additional_libdir/lib$name.la"
9640 elif test x
$lib_type != xshared
; then
9641 if test -f "$additional_libdir/lib$name.$libext"; then
9642 found_dir
="$additional_libdir"
9643 found_a
="$additional_libdir/lib$name.$libext"
9644 if test -f "$additional_libdir/lib$name.la"; then
9645 found_la
="$additional_libdir/lib$name.la"
9650 if test "X$found_dir" = "X"; then
9651 for x
in $LDFLAGS $LTLIBEXPAT; do
9653 acl_save_prefix
="$prefix"
9654 prefix
="$acl_final_prefix"
9655 acl_save_exec_prefix
="$exec_prefix"
9656 exec_prefix
="$acl_final_exec_prefix"
9658 exec_prefix
="$acl_save_exec_prefix"
9659 prefix
="$acl_save_prefix"
9663 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9664 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9666 found_so
="$dir/lib$name.$shlibext"
9667 if test -f "$dir/lib$name.la"; then
9668 found_la
="$dir/lib$name.la"
9670 elif test x
$lib_type != xshared
; then
9671 if test -f "$dir/lib$name.$libext"; then
9673 found_a
="$dir/lib$name.$libext"
9674 if test -f "$dir/lib$name.la"; then
9675 found_la
="$dir/lib$name.la"
9681 if test "X$found_dir" != "X"; then
9686 if test "X$found_dir" != "X"; then
9687 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
9688 if test "X$found_so" != "X"; then
9689 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9690 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9693 for x
in $ltrpathdirs; do
9694 if test "X$x" = "X$found_dir"; then
9699 if test -z "$haveit"; then
9700 ltrpathdirs
="$ltrpathdirs $found_dir"
9702 if test "$hardcode_direct" = yes; then
9703 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9705 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9706 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9708 for x
in $rpathdirs; do
9709 if test "X$x" = "X$found_dir"; then
9714 if test -z "$haveit"; then
9715 rpathdirs
="$rpathdirs $found_dir"
9719 for x
in $LDFLAGS $LIBEXPAT; do
9721 acl_save_prefix
="$prefix"
9722 prefix
="$acl_final_prefix"
9723 acl_save_exec_prefix
="$exec_prefix"
9724 exec_prefix
="$acl_final_exec_prefix"
9726 exec_prefix
="$acl_save_exec_prefix"
9727 prefix
="$acl_save_prefix"
9729 if test "X$x" = "X-L$found_dir"; then
9734 if test -z "$haveit"; then
9735 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
9737 if test "$hardcode_minus_L" != no
; then
9738 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9740 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9746 if test "X$found_a" != "X"; then
9747 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
9749 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
9752 additional_includedir
=
9753 case "$found_dir" in
9755 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9756 additional_includedir
="$basedir/include"
9759 if test "X$additional_includedir" != "X"; then
9760 if test "X$additional_includedir" != "X/usr/include"; then
9762 if test "X$additional_includedir" = "X/usr/local/include"; then
9763 if test -n "$GCC"; then
9765 linux
*) haveit
=yes;;
9769 if test -z "$haveit"; then
9770 for x
in $CPPFLAGS $INCEXPAT; do
9772 acl_save_prefix
="$prefix"
9773 prefix
="$acl_final_prefix"
9774 acl_save_exec_prefix
="$exec_prefix"
9775 exec_prefix
="$acl_final_exec_prefix"
9777 exec_prefix
="$acl_save_exec_prefix"
9778 prefix
="$acl_save_prefix"
9780 if test "X$x" = "X-I$additional_includedir"; then
9785 if test -z "$haveit"; then
9786 if test -d "$additional_includedir"; then
9787 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
9793 if test -n "$found_la"; then
9794 save_libdir
="$libdir"
9796 */* |
*\\*) .
"$found_la" ;;
9797 *) .
"./$found_la" ;;
9799 libdir
="$save_libdir"
9800 for dep
in $dependency_libs; do
9803 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9804 if test "X$additional_libdir" != "X/usr/lib"; then
9806 if test "X$additional_libdir" = "X/usr/local/lib"; then
9807 if test -n "$GCC"; then
9809 linux
*) haveit
=yes;;
9813 if test -z "$haveit"; then
9815 for x
in $LDFLAGS $LIBEXPAT; do
9817 acl_save_prefix
="$prefix"
9818 prefix
="$acl_final_prefix"
9819 acl_save_exec_prefix
="$exec_prefix"
9820 exec_prefix
="$acl_final_exec_prefix"
9822 exec_prefix
="$acl_save_exec_prefix"
9823 prefix
="$acl_save_prefix"
9825 if test "X$x" = "X-L$additional_libdir"; then
9830 if test -z "$haveit"; then
9831 if test -d "$additional_libdir"; then
9832 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
9836 for x
in $LDFLAGS $LTLIBEXPAT; do
9838 acl_save_prefix
="$prefix"
9839 prefix
="$acl_final_prefix"
9840 acl_save_exec_prefix
="$exec_prefix"
9841 exec_prefix
="$acl_final_exec_prefix"
9843 exec_prefix
="$acl_save_exec_prefix"
9844 prefix
="$acl_save_prefix"
9846 if test "X$x" = "X-L$additional_libdir"; then
9851 if test -z "$haveit"; then
9852 if test -d "$additional_libdir"; then
9853 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
9860 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9861 if test "$enable_rpath" != no
; then
9863 for x
in $rpathdirs; do
9864 if test "X$x" = "X$dir"; then
9869 if test -z "$haveit"; then
9870 rpathdirs
="$rpathdirs $dir"
9873 for x
in $ltrpathdirs; do
9874 if test "X$x" = "X$dir"; then
9879 if test -z "$haveit"; then
9880 ltrpathdirs
="$ltrpathdirs $dir"
9885 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9888 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9891 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
9892 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
9898 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
9899 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9900 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
9902 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l:lib$name.$libext"
9903 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l:lib$name.$libext"
9910 if test "X$rpathdirs" != "X"; then
9911 if test -n "$hardcode_libdir_separator"; then
9913 for found_dir
in $rpathdirs; do
9914 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9916 acl_save_libdir
="$libdir"
9918 eval flag
=\"$hardcode_libdir_flag_spec\"
9919 libdir
="$acl_save_libdir"
9920 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9922 for found_dir
in $rpathdirs; do
9923 acl_save_libdir
="$libdir"
9925 eval flag
=\"$hardcode_libdir_flag_spec\"
9926 libdir
="$acl_save_libdir"
9927 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9931 if test "X$ltrpathdirs" != "X"; then
9932 for found_dir
in $ltrpathdirs; do
9933 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9938 ac_save_CPPFLAGS
="$CPPFLAGS"
9940 for element
in $INCEXPAT; do
9942 for x
in $CPPFLAGS; do
9944 acl_save_prefix
="$prefix"
9945 prefix
="$acl_final_prefix"
9946 acl_save_exec_prefix
="$exec_prefix"
9947 exec_prefix
="$acl_final_exec_prefix"
9949 exec_prefix
="$acl_save_exec_prefix"
9950 prefix
="$acl_save_prefix"
9952 if test "X$x" = "X$element"; then
9957 if test -z "$haveit"; then
9958 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9964 $as_echo_n "checking for libexpat... " >&6; }
9965 if ${ac_cv_libexpat+:} false
; then :
9966 $as_echo_n "(cached) " >&6
9969 ac_save_LIBS
="$LIBS"
9970 LIBS
="$LIBS $LIBEXPAT"
9971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9972 /* end confdefs.h. */
9977 XML_Parser p = XML_ParserCreate (0);
9982 if ac_fn_c_try_link
"$LINENO"; then :
9987 rm -f core conftest.err conftest.
$ac_objext \
9988 conftest
$ac_exeext conftest.
$ac_ext
9989 LIBS
="$ac_save_LIBS"
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
9993 $as_echo "$ac_cv_libexpat" >&6; }
9994 if test "$ac_cv_libexpat" = yes; then
9997 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
10000 $as_echo_n "checking how to link with libexpat... " >&6; }
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
10002 $as_echo "$LIBEXPAT" >&6; }
10005 CPPFLAGS
="$ac_save_CPPFLAGS"
10015 if test "$HAVE_LIBEXPAT" != yes; then
10016 if test "$with_expat" = yes; then
10017 as_fn_error $?
"expat is missing or unusable" "$LINENO" 5
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
10020 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
10024 LIBS
="$LIBS $LIBEXPAT"
10025 for ac_func
in XML_StopParser
10027 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
10028 if test "x$ac_cv_func_XML_StopParser" = xyes
; then :
10029 cat >>confdefs.h
<<_ACEOF
10030 #define HAVE_XML_STOPPARSER 1
10040 # Verify that we have a usable GMP library.
10051 acl_save_prefix
="$prefix"
10052 prefix
="$acl_final_prefix"
10053 acl_save_exec_prefix
="$exec_prefix"
10054 exec_prefix
="$acl_final_exec_prefix"
10056 eval additional_includedir
=\"$includedir\"
10057 eval additional_libdir
=\"$libdir\"
10059 exec_prefix
="$acl_save_exec_prefix"
10060 prefix
="$acl_save_prefix"
10063 # Check whether --with-libgmp-prefix was given.
10064 if test "${with_libgmp_prefix+set}" = set; then :
10065 withval
=$with_libgmp_prefix;
10066 if test "X$withval" = "Xno"; then
10069 if test "X$withval" = "X"; then
10071 acl_save_prefix
="$prefix"
10072 prefix
="$acl_final_prefix"
10073 acl_save_exec_prefix
="$exec_prefix"
10074 exec_prefix
="$acl_final_exec_prefix"
10076 eval additional_includedir
=\"$includedir\"
10077 eval additional_libdir
=\"$libdir\"
10079 exec_prefix
="$acl_save_exec_prefix"
10080 prefix
="$acl_save_prefix"
10083 additional_includedir
="$withval/include"
10084 additional_libdir
="$withval/lib"
10091 # Check whether --with-libgmp-type was given.
10092 if test "${with_libgmp_type+set}" = set; then :
10093 withval
=$with_libgmp_type; with_libgmp_type
=$withval
10095 with_libgmp_type
=auto
10098 lib_type
=`eval echo \$with_libgmp_type`
10105 names_already_handled
=
10106 names_next_round
='gmp '
10107 while test -n "$names_next_round"; do
10108 names_this_round
="$names_next_round"
10110 for name
in $names_this_round; do
10112 for n
in $names_already_handled; do
10113 if test "$n" = "$name"; then
10114 already_handled
=yes
10118 if test -z "$already_handled"; then
10119 names_already_handled
="$names_already_handled $name"
10120 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10121 eval value
=\"\
$HAVE_LIB$uppername\"
10122 if test -n "$value"; then
10123 if test "$value" = yes; then
10124 eval value
=\"\
$LIB$uppername\"
10125 test -z "$value" || LIBGMP
="${LIBGMP}${LIBGMP:+ }$value"
10126 eval value
=\"\
$LTLIB$uppername\"
10127 test -z "$value" || LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }$value"
10136 if test $use_additional = yes; then
10137 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10138 found_dir
="$additional_libdir"
10139 found_so
="$additional_libdir/lib$name.$shlibext"
10140 if test -f "$additional_libdir/lib$name.la"; then
10141 found_la
="$additional_libdir/lib$name.la"
10143 elif test x
$lib_type != xshared
; then
10144 if test -f "$additional_libdir/lib$name.$libext"; then
10145 found_dir
="$additional_libdir"
10146 found_a
="$additional_libdir/lib$name.$libext"
10147 if test -f "$additional_libdir/lib$name.la"; then
10148 found_la
="$additional_libdir/lib$name.la"
10153 if test "X$found_dir" = "X"; then
10154 for x
in $LDFLAGS $LTLIBGMP; do
10156 acl_save_prefix
="$prefix"
10157 prefix
="$acl_final_prefix"
10158 acl_save_exec_prefix
="$exec_prefix"
10159 exec_prefix
="$acl_final_exec_prefix"
10161 exec_prefix
="$acl_save_exec_prefix"
10162 prefix
="$acl_save_prefix"
10166 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10167 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10169 found_so
="$dir/lib$name.$shlibext"
10170 if test -f "$dir/lib$name.la"; then
10171 found_la
="$dir/lib$name.la"
10173 elif test x
$lib_type != xshared
; then
10174 if test -f "$dir/lib$name.$libext"; then
10176 found_a
="$dir/lib$name.$libext"
10177 if test -f "$dir/lib$name.la"; then
10178 found_la
="$dir/lib$name.la"
10184 if test "X$found_dir" != "X"; then
10189 if test "X$found_dir" != "X"; then
10190 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }-L$found_dir -l$name"
10191 if test "X$found_so" != "X"; then
10192 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10193 LIBGMP
="${LIBGMP}${LIBGMP:+ }$found_so"
10196 for x
in $ltrpathdirs; do
10197 if test "X$x" = "X$found_dir"; then
10202 if test -z "$haveit"; then
10203 ltrpathdirs
="$ltrpathdirs $found_dir"
10205 if test "$hardcode_direct" = yes; then
10206 LIBGMP
="${LIBGMP}${LIBGMP:+ }$found_so"
10208 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10209 LIBGMP
="${LIBGMP}${LIBGMP:+ }$found_so"
10211 for x
in $rpathdirs; do
10212 if test "X$x" = "X$found_dir"; then
10217 if test -z "$haveit"; then
10218 rpathdirs
="$rpathdirs $found_dir"
10222 for x
in $LDFLAGS $LIBGMP; do
10224 acl_save_prefix
="$prefix"
10225 prefix
="$acl_final_prefix"
10226 acl_save_exec_prefix
="$exec_prefix"
10227 exec_prefix
="$acl_final_exec_prefix"
10229 exec_prefix
="$acl_save_exec_prefix"
10230 prefix
="$acl_save_prefix"
10232 if test "X$x" = "X-L$found_dir"; then
10237 if test -z "$haveit"; then
10238 LIBGMP
="${LIBGMP}${LIBGMP:+ }-L$found_dir"
10240 if test "$hardcode_minus_L" != no
; then
10241 LIBGMP
="${LIBGMP}${LIBGMP:+ }$found_so"
10243 LIBGMP
="${LIBGMP}${LIBGMP:+ }-l$name"
10249 if test "X$found_a" != "X"; then
10250 LIBGMP
="${LIBGMP}${LIBGMP:+ }$found_a"
10252 LIBGMP
="${LIBGMP}${LIBGMP:+ }-L$found_dir -l$name"
10255 additional_includedir
=
10256 case "$found_dir" in
10258 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10259 additional_includedir
="$basedir/include"
10262 if test "X$additional_includedir" != "X"; then
10263 if test "X$additional_includedir" != "X/usr/include"; then
10265 if test "X$additional_includedir" = "X/usr/local/include"; then
10266 if test -n "$GCC"; then
10268 linux
*) haveit
=yes;;
10272 if test -z "$haveit"; then
10273 for x
in $CPPFLAGS $INCGMP; do
10275 acl_save_prefix
="$prefix"
10276 prefix
="$acl_final_prefix"
10277 acl_save_exec_prefix
="$exec_prefix"
10278 exec_prefix
="$acl_final_exec_prefix"
10280 exec_prefix
="$acl_save_exec_prefix"
10281 prefix
="$acl_save_prefix"
10283 if test "X$x" = "X-I$additional_includedir"; then
10288 if test -z "$haveit"; then
10289 if test -d "$additional_includedir"; then
10290 INCGMP
="${INCGMP}${INCGMP:+ }-I$additional_includedir"
10296 if test -n "$found_la"; then
10297 save_libdir
="$libdir"
10298 case "$found_la" in
10299 */* |
*\\*) .
"$found_la" ;;
10300 *) .
"./$found_la" ;;
10302 libdir
="$save_libdir"
10303 for dep
in $dependency_libs; do
10306 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10307 if test "X$additional_libdir" != "X/usr/lib"; then
10309 if test "X$additional_libdir" = "X/usr/local/lib"; then
10310 if test -n "$GCC"; then
10312 linux
*) haveit
=yes;;
10316 if test -z "$haveit"; then
10318 for x
in $LDFLAGS $LIBGMP; do
10320 acl_save_prefix
="$prefix"
10321 prefix
="$acl_final_prefix"
10322 acl_save_exec_prefix
="$exec_prefix"
10323 exec_prefix
="$acl_final_exec_prefix"
10325 exec_prefix
="$acl_save_exec_prefix"
10326 prefix
="$acl_save_prefix"
10328 if test "X$x" = "X-L$additional_libdir"; then
10333 if test -z "$haveit"; then
10334 if test -d "$additional_libdir"; then
10335 LIBGMP
="${LIBGMP}${LIBGMP:+ }-L$additional_libdir"
10339 for x
in $LDFLAGS $LTLIBGMP; do
10341 acl_save_prefix
="$prefix"
10342 prefix
="$acl_final_prefix"
10343 acl_save_exec_prefix
="$exec_prefix"
10344 exec_prefix
="$acl_final_exec_prefix"
10346 exec_prefix
="$acl_save_exec_prefix"
10347 prefix
="$acl_save_prefix"
10349 if test "X$x" = "X-L$additional_libdir"; then
10354 if test -z "$haveit"; then
10355 if test -d "$additional_libdir"; then
10356 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }-L$additional_libdir"
10363 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10364 if test "$enable_rpath" != no
; then
10366 for x
in $rpathdirs; do
10367 if test "X$x" = "X$dir"; then
10372 if test -z "$haveit"; then
10373 rpathdirs
="$rpathdirs $dir"
10376 for x
in $ltrpathdirs; do
10377 if test "X$x" = "X$dir"; then
10382 if test -z "$haveit"; then
10383 ltrpathdirs
="$ltrpathdirs $dir"
10388 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10391 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10394 LIBGMP
="${LIBGMP}${LIBGMP:+ }$dep"
10395 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }$dep"
10401 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
10402 LIBGMP
="${LIBGMP}${LIBGMP:+ }-l$name"
10403 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }-l$name"
10405 LIBGMP
="${LIBGMP}${LIBGMP:+ }-l:lib$name.$libext"
10406 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }-l:lib$name.$libext"
10413 if test "X$rpathdirs" != "X"; then
10414 if test -n "$hardcode_libdir_separator"; then
10416 for found_dir
in $rpathdirs; do
10417 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10419 acl_save_libdir
="$libdir"
10421 eval flag
=\"$hardcode_libdir_flag_spec\"
10422 libdir
="$acl_save_libdir"
10423 LIBGMP
="${LIBGMP}${LIBGMP:+ }$flag"
10425 for found_dir
in $rpathdirs; do
10426 acl_save_libdir
="$libdir"
10427 libdir
="$found_dir"
10428 eval flag
=\"$hardcode_libdir_flag_spec\"
10429 libdir
="$acl_save_libdir"
10430 LIBGMP
="${LIBGMP}${LIBGMP:+ }$flag"
10434 if test "X$ltrpathdirs" != "X"; then
10435 for found_dir
in $ltrpathdirs; do
10436 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }-R$found_dir"
10441 ac_save_CPPFLAGS
="$CPPFLAGS"
10443 for element
in $INCGMP; do
10445 for x
in $CPPFLAGS; do
10447 acl_save_prefix
="$prefix"
10448 prefix
="$acl_final_prefix"
10449 acl_save_exec_prefix
="$exec_prefix"
10450 exec_prefix
="$acl_final_exec_prefix"
10452 exec_prefix
="$acl_save_exec_prefix"
10453 prefix
="$acl_save_prefix"
10455 if test "X$x" = "X$element"; then
10460 if test -z "$haveit"; then
10461 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgmp" >&5
10467 $as_echo_n "checking for libgmp... " >&6; }
10468 if ${ac_cv_libgmp+:} false
; then :
10469 $as_echo_n "(cached) " >&6
10472 ac_save_LIBS
="$LIBS"
10473 LIBS
="$LIBS $LIBGMP"
10474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10475 /* end confdefs.h. */
10486 if ac_fn_c_try_link
"$LINENO"; then :
10491 rm -f core conftest.err conftest.
$ac_objext \
10492 conftest
$ac_exeext conftest.
$ac_ext
10493 LIBS
="$ac_save_LIBS"
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgmp" >&5
10497 $as_echo "$ac_cv_libgmp" >&6; }
10498 if test "$ac_cv_libgmp" = yes; then
10501 $as_echo "#define HAVE_LIBGMP 1" >>confdefs.h
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libgmp" >&5
10504 $as_echo_n "checking how to link with libgmp... " >&6; }
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGMP" >&5
10506 $as_echo "$LIBGMP" >&6; }
10509 CPPFLAGS
="$ac_save_CPPFLAGS"
10519 if test "$HAVE_LIBGMP" != yes; then
10520 as_fn_error $?
"GMP is missing or unusable" "$LINENO" 5
10524 # Check whether --with-mpfr was given.
10525 if test "${with_mpfr+set}" = set; then :
10526 withval
=$with_mpfr;
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5
10532 $as_echo_n "checking whether to use MPFR... " >&6; }
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5
10534 $as_echo "$with_mpfr" >&6; }
10536 if test "${with_mpfr}" = no
; then
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5
10538 $as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;}
10551 acl_save_prefix
="$prefix"
10552 prefix
="$acl_final_prefix"
10553 acl_save_exec_prefix
="$exec_prefix"
10554 exec_prefix
="$acl_final_exec_prefix"
10556 eval additional_includedir
=\"$includedir\"
10557 eval additional_libdir
=\"$libdir\"
10559 exec_prefix
="$acl_save_exec_prefix"
10560 prefix
="$acl_save_prefix"
10563 # Check whether --with-libmpfr-prefix was given.
10564 if test "${with_libmpfr_prefix+set}" = set; then :
10565 withval
=$with_libmpfr_prefix;
10566 if test "X$withval" = "Xno"; then
10569 if test "X$withval" = "X"; then
10571 acl_save_prefix
="$prefix"
10572 prefix
="$acl_final_prefix"
10573 acl_save_exec_prefix
="$exec_prefix"
10574 exec_prefix
="$acl_final_exec_prefix"
10576 eval additional_includedir
=\"$includedir\"
10577 eval additional_libdir
=\"$libdir\"
10579 exec_prefix
="$acl_save_exec_prefix"
10580 prefix
="$acl_save_prefix"
10583 additional_includedir
="$withval/include"
10584 additional_libdir
="$withval/lib"
10591 # Check whether --with-libmpfr-type was given.
10592 if test "${with_libmpfr_type+set}" = set; then :
10593 withval
=$with_libmpfr_type; with_libmpfr_type
=$withval
10595 with_libmpfr_type
=auto
10598 lib_type
=`eval echo \$with_libmpfr_type`
10605 names_already_handled
=
10606 names_next_round
='mpfr gmp'
10607 while test -n "$names_next_round"; do
10608 names_this_round
="$names_next_round"
10610 for name
in $names_this_round; do
10612 for n
in $names_already_handled; do
10613 if test "$n" = "$name"; then
10614 already_handled
=yes
10618 if test -z "$already_handled"; then
10619 names_already_handled
="$names_already_handled $name"
10620 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10621 eval value
=\"\
$HAVE_LIB$uppername\"
10622 if test -n "$value"; then
10623 if test "$value" = yes; then
10624 eval value
=\"\
$LIB$uppername\"
10625 test -z "$value" || LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$value"
10626 eval value
=\"\
$LTLIB$uppername\"
10627 test -z "$value" || LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$value"
10636 if test $use_additional = yes; then
10637 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10638 found_dir
="$additional_libdir"
10639 found_so
="$additional_libdir/lib$name.$shlibext"
10640 if test -f "$additional_libdir/lib$name.la"; then
10641 found_la
="$additional_libdir/lib$name.la"
10643 elif test x
$lib_type != xshared
; then
10644 if test -f "$additional_libdir/lib$name.$libext"; then
10645 found_dir
="$additional_libdir"
10646 found_a
="$additional_libdir/lib$name.$libext"
10647 if test -f "$additional_libdir/lib$name.la"; then
10648 found_la
="$additional_libdir/lib$name.la"
10653 if test "X$found_dir" = "X"; then
10654 for x
in $LDFLAGS $LTLIBMPFR; do
10656 acl_save_prefix
="$prefix"
10657 prefix
="$acl_final_prefix"
10658 acl_save_exec_prefix
="$exec_prefix"
10659 exec_prefix
="$acl_final_exec_prefix"
10661 exec_prefix
="$acl_save_exec_prefix"
10662 prefix
="$acl_save_prefix"
10666 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10667 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10669 found_so
="$dir/lib$name.$shlibext"
10670 if test -f "$dir/lib$name.la"; then
10671 found_la
="$dir/lib$name.la"
10673 elif test x
$lib_type != xshared
; then
10674 if test -f "$dir/lib$name.$libext"; then
10676 found_a
="$dir/lib$name.$libext"
10677 if test -f "$dir/lib$name.la"; then
10678 found_la
="$dir/lib$name.la"
10684 if test "X$found_dir" != "X"; then
10689 if test "X$found_dir" != "X"; then
10690 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$found_dir -l$name"
10691 if test "X$found_so" != "X"; then
10692 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10693 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10696 for x
in $ltrpathdirs; do
10697 if test "X$x" = "X$found_dir"; then
10702 if test -z "$haveit"; then
10703 ltrpathdirs
="$ltrpathdirs $found_dir"
10705 if test "$hardcode_direct" = yes; then
10706 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10708 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10709 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10711 for x
in $rpathdirs; do
10712 if test "X$x" = "X$found_dir"; then
10717 if test -z "$haveit"; then
10718 rpathdirs
="$rpathdirs $found_dir"
10722 for x
in $LDFLAGS $LIBMPFR; do
10724 acl_save_prefix
="$prefix"
10725 prefix
="$acl_final_prefix"
10726 acl_save_exec_prefix
="$exec_prefix"
10727 exec_prefix
="$acl_final_exec_prefix"
10729 exec_prefix
="$acl_save_exec_prefix"
10730 prefix
="$acl_save_prefix"
10732 if test "X$x" = "X-L$found_dir"; then
10737 if test -z "$haveit"; then
10738 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir"
10740 if test "$hardcode_minus_L" != no
; then
10741 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10743 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10749 if test "X$found_a" != "X"; then
10750 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_a"
10752 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir -l$name"
10755 additional_includedir
=
10756 case "$found_dir" in
10758 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10759 additional_includedir
="$basedir/include"
10762 if test "X$additional_includedir" != "X"; then
10763 if test "X$additional_includedir" != "X/usr/include"; then
10765 if test "X$additional_includedir" = "X/usr/local/include"; then
10766 if test -n "$GCC"; then
10768 linux
*) haveit
=yes;;
10772 if test -z "$haveit"; then
10773 for x
in $CPPFLAGS $INCMPFR; do
10775 acl_save_prefix
="$prefix"
10776 prefix
="$acl_final_prefix"
10777 acl_save_exec_prefix
="$exec_prefix"
10778 exec_prefix
="$acl_final_exec_prefix"
10780 exec_prefix
="$acl_save_exec_prefix"
10781 prefix
="$acl_save_prefix"
10783 if test "X$x" = "X-I$additional_includedir"; then
10788 if test -z "$haveit"; then
10789 if test -d "$additional_includedir"; then
10790 INCMPFR
="${INCMPFR}${INCMPFR:+ }-I$additional_includedir"
10796 if test -n "$found_la"; then
10797 save_libdir
="$libdir"
10798 case "$found_la" in
10799 */* |
*\\*) .
"$found_la" ;;
10800 *) .
"./$found_la" ;;
10802 libdir
="$save_libdir"
10803 for dep
in $dependency_libs; do
10806 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10807 if test "X$additional_libdir" != "X/usr/lib"; then
10809 if test "X$additional_libdir" = "X/usr/local/lib"; then
10810 if test -n "$GCC"; then
10812 linux
*) haveit
=yes;;
10816 if test -z "$haveit"; then
10818 for x
in $LDFLAGS $LIBMPFR; do
10820 acl_save_prefix
="$prefix"
10821 prefix
="$acl_final_prefix"
10822 acl_save_exec_prefix
="$exec_prefix"
10823 exec_prefix
="$acl_final_exec_prefix"
10825 exec_prefix
="$acl_save_exec_prefix"
10826 prefix
="$acl_save_prefix"
10828 if test "X$x" = "X-L$additional_libdir"; then
10833 if test -z "$haveit"; then
10834 if test -d "$additional_libdir"; then
10835 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$additional_libdir"
10839 for x
in $LDFLAGS $LTLIBMPFR; do
10841 acl_save_prefix
="$prefix"
10842 prefix
="$acl_final_prefix"
10843 acl_save_exec_prefix
="$exec_prefix"
10844 exec_prefix
="$acl_final_exec_prefix"
10846 exec_prefix
="$acl_save_exec_prefix"
10847 prefix
="$acl_save_prefix"
10849 if test "X$x" = "X-L$additional_libdir"; then
10854 if test -z "$haveit"; then
10855 if test -d "$additional_libdir"; then
10856 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$additional_libdir"
10863 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10864 if test "$enable_rpath" != no
; then
10866 for x
in $rpathdirs; do
10867 if test "X$x" = "X$dir"; then
10872 if test -z "$haveit"; then
10873 rpathdirs
="$rpathdirs $dir"
10876 for x
in $ltrpathdirs; do
10877 if test "X$x" = "X$dir"; then
10882 if test -z "$haveit"; then
10883 ltrpathdirs
="$ltrpathdirs $dir"
10888 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10891 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10894 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$dep"
10895 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$dep"
10901 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
10902 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10903 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l$name"
10905 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l:lib$name.$libext"
10906 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l:lib$name.$libext"
10913 if test "X$rpathdirs" != "X"; then
10914 if test -n "$hardcode_libdir_separator"; then
10916 for found_dir
in $rpathdirs; do
10917 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10919 acl_save_libdir
="$libdir"
10921 eval flag
=\"$hardcode_libdir_flag_spec\"
10922 libdir
="$acl_save_libdir"
10923 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10925 for found_dir
in $rpathdirs; do
10926 acl_save_libdir
="$libdir"
10927 libdir
="$found_dir"
10928 eval flag
=\"$hardcode_libdir_flag_spec\"
10929 libdir
="$acl_save_libdir"
10930 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10934 if test "X$ltrpathdirs" != "X"; then
10935 for found_dir
in $ltrpathdirs; do
10936 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-R$found_dir"
10941 ac_save_CPPFLAGS
="$CPPFLAGS"
10943 for element
in $INCMPFR; do
10945 for x
in $CPPFLAGS; do
10947 acl_save_prefix
="$prefix"
10948 prefix
="$acl_final_prefix"
10949 acl_save_exec_prefix
="$exec_prefix"
10950 exec_prefix
="$acl_final_exec_prefix"
10952 exec_prefix
="$acl_save_exec_prefix"
10953 prefix
="$acl_save_prefix"
10955 if test "X$x" = "X$element"; then
10960 if test -z "$haveit"; then
10961 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpfr" >&5
10967 $as_echo_n "checking for libmpfr... " >&6; }
10968 if ${ac_cv_libmpfr+:} false
; then :
10969 $as_echo_n "(cached) " >&6
10972 ac_save_LIBS
="$LIBS"
10973 LIBS
="$LIBS $LIBMPFR"
10974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10975 /* end confdefs.h. */
10980 mpfr_exp_t exp; mpfr_t x;
10981 mpfr_frexp (&exp, x, x, MPFR_RNDN);
10986 if ac_fn_c_try_link
"$LINENO"; then :
10991 rm -f core conftest.err conftest.
$ac_objext \
10992 conftest
$ac_exeext conftest.
$ac_ext
10993 LIBS
="$ac_save_LIBS"
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmpfr" >&5
10997 $as_echo "$ac_cv_libmpfr" >&6; }
10998 if test "$ac_cv_libmpfr" = yes; then
11001 $as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libmpfr" >&5
11004 $as_echo_n "checking how to link with libmpfr... " >&6; }
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPFR" >&5
11006 $as_echo "$LIBMPFR" >&6; }
11009 CPPFLAGS
="$ac_save_CPPFLAGS"
11019 if test "$HAVE_LIBMPFR" != yes; then
11020 if test "$with_mpfr" = yes; then
11021 as_fn_error $?
"MPFR is missing or unusable" "$LINENO" 5
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR is missing or unusable; some features may be unavailable." >&5
11024 $as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;}
11029 # --------------------- #
11030 # Check for libpython. #
11031 # --------------------- #
11038 # Check whether --with-python was given.
11039 if test "${with_python+set}" = set; then :
11040 withval
=$with_python;
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
11046 $as_echo_n "checking whether to use python... " >&6; }
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
11048 $as_echo "$with_python" >&6; }
11050 if test "${with_python}" = no
; then
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
11052 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
11055 case "${with_python}" in
11057 if test -d "${with_python}"; then
11058 # Assume the python binary is ${with_python}/bin/python.
11059 python_prog
="${with_python}/bin/python"
11061 # If python does not exit ${with_python}/bin, then try in
11062 # ${with_python}. On Windows/MinGW, this is where the Python
11064 if test ! -x "${python_prog}"; then
11065 python_prog
="${with_python}/python"
11068 if test ! -x "${python_prog}"; then
11069 # Fall back to gdb 7.0/7.1 behaviour.
11070 python_prog
=missing
11071 python_prefix
=${with_python}
11073 elif test -x "${with_python}"; then
11074 # While we can't run python compiled for $host (unless host == build),
11075 # the user could write a script that provides the needed information,
11076 # so we support that.
11077 python_prog
=${with_python}
11080 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
11084 # Disallow --with-python=foo/bar.
11085 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
11088 # The user has either specified auto, yes, or the name of the python
11089 # program assumed to be in $PATH.
11091 case "${with_python}" in
11093 if test "${build}" = "${host}"; then
11094 # Extract the first word of "python", so it can be a program name with args.
11095 set dummy python
; ac_word
=$2
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11097 $as_echo_n "checking for $ac_word... " >&6; }
11098 if ${ac_cv_path_python_prog_path+:} false
; then :
11099 $as_echo_n "(cached) " >&6
11101 case $python_prog_path in
11103 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
11106 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11107 for as_dir
in $PATH
11110 test -z "$as_dir" && as_dir
=.
11111 for ac_exec_ext
in '' $ac_executable_extensions; do
11112 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11113 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
11114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11121 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
11125 python_prog_path
=$ac_cv_path_python_prog_path
11126 if test -n "$python_prog_path"; then
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
11128 $as_echo "$python_prog_path" >&6; }
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11131 $as_echo "no" >&6; }
11135 if test "${python_prog_path}" = missing
; then
11136 python_prog
=missing
11138 python_prog
=${python_prog_path}
11141 # Not much we can do except assume the cross-compiler will find the
11143 python_prog
=missing
11147 # While we can't run python compiled for $host (unless host == build),
11148 # the user could write a script that provides the needed information,
11149 # so we support that.
11150 python_prog
="${with_python}"
11151 # Extract the first word of "${python_prog}", so it can be a program name with args.
11152 set dummy
${python_prog}; ac_word
=$2
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11154 $as_echo_n "checking for $ac_word... " >&6; }
11155 if ${ac_cv_path_python_prog_path+:} false
; then :
11156 $as_echo_n "(cached) " >&6
11158 case $python_prog_path in
11160 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
11163 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11164 for as_dir
in $PATH
11167 test -z "$as_dir" && as_dir
=.
11168 for ac_exec_ext
in '' $ac_executable_extensions; do
11169 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11170 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
11171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11178 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
11182 python_prog_path
=$ac_cv_path_python_prog_path
11183 if test -n "$python_prog_path"; then
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
11185 $as_echo "$python_prog_path" >&6; }
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11188 $as_echo "no" >&6; }
11192 if test "${python_prog_path}" = missing
; then
11193 as_fn_error $?
"unable to find python program ${python_prog}" "$LINENO" 5
11199 if test "${python_prog}" != missing
; then
11200 # We have a python program to use, but it may be too old.
11201 # Don't flag an error for --with-python=auto (the default).
11202 have_python_config
=yes
11203 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
11204 if test $?
!= 0; then
11205 have_python_config
=failed
11206 if test "${with_python}" != auto
; then
11207 as_fn_error $?
"failure running python-config --includes" "$LINENO" 5
11210 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
11211 if test $?
!= 0; then
11212 have_python_config
=failed
11213 if test "${with_python}" != auto
; then
11214 as_fn_error $?
"failure running python-config --ldflags" "$LINENO" 5
11217 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
11218 if test $?
!= 0; then
11219 have_python_config
=failed
11220 if test "${with_python}" != auto
; then
11221 as_fn_error $?
"failure running python-config --exec-prefix" "$LINENO" 5
11225 # We do not have a python executable we can use to determine where
11226 # to find the Python headers and libs. We cannot guess the include
11227 # path from the python_prefix either, because that include path
11228 # depends on the Python version. So, there is nothing much we can
11229 # do except assume that the compiler will be able to find those files.
11232 have_python_config
=no
11235 # If we have python-config, only try the configuration it provides.
11236 # Otherwise fallback on the old way of trying different versions of
11240 if test "${have_python_config}" = yes; then
11243 new_CPPFLAGS
=${python_includes}
11244 new_LIBS
=${python_libs}
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
11246 $as_echo_n "checking for python... " >&6; }
11247 save_CPPFLAGS
=$CPPFLAGS
11249 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11250 LIBS
="$new_LIBS $LIBS"
11251 found_usable_python
=no
11252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11253 /* end confdefs.h. */
11254 #include "Python.h"
11263 if ac_fn_c_try_link
"$LINENO"; then :
11265 found_usable_python
=yes
11266 PYTHON_CPPFLAGS
=$new_CPPFLAGS
11267 PYTHON_LIBS
=$new_LIBS
11269 rm -f core conftest.err conftest.
$ac_objext \
11270 conftest
$ac_exeext conftest.
$ac_ext
11271 CPPFLAGS
=$save_CPPFLAGS
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11274 $as_echo "${found_usable_python}" >&6; }
11276 elif test "${have_python_config}" != failed
; then
11277 if test "${have_libpython}" = no
; then
11280 new_CPPFLAGS
=${python_includes}
11281 new_LIBS
="-lpython2.7 ${python_libs}"
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
11283 $as_echo_n "checking for python... " >&6; }
11284 save_CPPFLAGS
=$CPPFLAGS
11286 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11287 LIBS
="$new_LIBS $LIBS"
11288 found_usable_python
=no
11289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11290 /* end confdefs.h. */
11291 #include "Python.h"
11300 if ac_fn_c_try_link
"$LINENO"; then :
11302 found_usable_python
=yes
11303 PYTHON_CPPFLAGS
=$new_CPPFLAGS
11304 PYTHON_LIBS
=$new_LIBS
11306 rm -f core conftest.err conftest.
$ac_objext \
11307 conftest
$ac_exeext conftest.
$ac_ext
11308 CPPFLAGS
=$save_CPPFLAGS
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11311 $as_echo "${found_usable_python}" >&6; }
11314 if test "${have_libpython}" = no
; then
11317 new_CPPFLAGS
=${python_includes}
11318 new_LIBS
="-lpython2.6 ${python_libs}"
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
11320 $as_echo_n "checking for python... " >&6; }
11321 save_CPPFLAGS
=$CPPFLAGS
11323 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11324 LIBS
="$new_LIBS $LIBS"
11325 found_usable_python
=no
11326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11327 /* end confdefs.h. */
11328 #include "Python.h"
11337 if ac_fn_c_try_link
"$LINENO"; then :
11339 found_usable_python
=yes
11340 PYTHON_CPPFLAGS
=$new_CPPFLAGS
11341 PYTHON_LIBS
=$new_LIBS
11343 rm -f core conftest.err conftest.
$ac_objext \
11344 conftest
$ac_exeext conftest.
$ac_ext
11345 CPPFLAGS
=$save_CPPFLAGS
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11348 $as_echo "${found_usable_python}" >&6; }
11353 if test "${have_libpython}" = no
; then
11354 case "${with_python}" in
11356 as_fn_error $?
"python is missing or unusable" "$LINENO" 5
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
11360 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
11363 as_fn_error $?
"no usable python found at ${with_python}" "$LINENO" 5
11367 if test -n "${python_prefix}"; then
11369 cat >>confdefs.h
<<_ACEOF
11370 #define WITH_PYTHON_PATH "${python_prefix}"
11374 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
11375 if test "x$prefix" = xNONE
; then
11376 test_prefix
=/usr
/local
11378 test_prefix
=$prefix
11381 test_prefix
=$exec_prefix
11384 case ${python_prefix} in
11385 "${test_prefix}"|
"${test_prefix}/"*|\
11386 '${exec_prefix}'|
'${exec_prefix}/'*)
11391 cat >>confdefs.h
<<_ACEOF
11392 #define PYTHON_PATH_RELOCATABLE $value
11401 # Check whether --with-python-libdir was given.
11402 if test "${with_python_libdir+set}" = set; then :
11403 withval
=$with_python_libdir;
11406 # If no python libdir is specified then select one based on
11407 # python's prefix path.
11408 if test -n "${python_prefix}"; then
11409 with_python_libdir
=${python_prefix}/lib
11415 if test "${have_libpython}" != no
; then
11417 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
11419 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
11420 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
11421 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
11422 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
11423 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
11425 if test -n "${with_python_libdir}"; then
11427 cat >>confdefs.h
<<_ACEOF
11428 #define WITH_PYTHON_LIBDIR "${with_python_libdir}"
11432 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
11433 if test "x$prefix" = xNONE
; then
11434 test_prefix
=/usr
/local
11436 test_prefix
=$prefix
11439 test_prefix
=$exec_prefix
11442 case ${with_python_libdir} in
11443 "${test_prefix}"|
"${test_prefix}/"*|\
11444 '${exec_prefix}'|
'${exec_prefix}/'*)
11449 cat >>confdefs.h
<<_ACEOF
11450 #define PYTHON_LIBDIR_RELOCATABLE $value
11456 # Flags needed to compile Python code (taken from python-config --cflags).
11457 # We cannot call python-config directly because it will output whatever was
11458 # used when compiling the Python interpreter itself, including flags which
11459 # would make the python-related objects be compiled differently from the
11460 # rest of GDB (e.g., -O2 and -fPIC).
11461 if test "${GCC}" = yes; then
11462 tentative_python_cflags
="-fno-strict-aliasing -fwrapv"
11463 # Python headers recommend -DNDEBUG, but it's unclear if that just
11464 # refers to building Python itself. In release mode, though, it
11465 # doesn't hurt for the Python code in gdb to follow.
11466 $development || tentative_python_cflags
="$tentative_python_cflags -DNDEBUG"
11469 if test "x${tentative_python_cflags}" != x
; then
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
11471 $as_echo_n "checking compiler flags for python code... " >&6; }
11472 for flag
in ${tentative_python_cflags}; do
11473 # Check that the compiler accepts it
11474 saved_CFLAGS
="$CFLAGS"
11475 CFLAGS
="$CFLAGS $flag"
11476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11477 /* end confdefs.h. */
11487 if ac_fn_c_try_compile
"$LINENO"; then :
11488 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
11490 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11491 CFLAGS
="$saved_CFLAGS"
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
11494 $as_echo "${PYTHON_CFLAGS}" >&6; }
11497 # On x64 Windows, Python's include headers, and pyconfig.h in
11498 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
11499 # version of Windows. Unfortunately, MS_WIN64 is only defined if
11500 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
11501 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
11502 # The issue was reported to the Python community, but still isn't
11503 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
11505 case "$gdb_host" in
11507 if test "${GCC}" = yes; then
11508 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
11513 # Even if Python support is not compiled in, we need to have this file
11514 # included so that the "python" command, et.al., still exists.
11515 CONFIG_OBS
="$CONFIG_OBS python/python.o"
11516 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
11519 # Work around Python http://bugs.python.org/issue10112. See also
11520 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
11521 # no effect. Note that the only test after this that uses Python is
11522 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
11523 # run without -export-dynamic too.
11524 PYTHON_LIBS
=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
11529 if test "${have_libpython}" != no
; then
11531 HAVE_PYTHON_FALSE
='#'
11533 HAVE_PYTHON_TRUE
='#'
11538 # -------------------- #
11539 # Check for libguile. #
11540 # -------------------- #
11547 # Check whether --with-guile was given.
11548 if test "${with_guile+set}" = set; then :
11549 withval
=$with_guile;
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
11555 $as_echo_n "checking whether to use guile... " >&6; }
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
11557 $as_echo "$with_guile" >&6; }
11559 # Extract the first word of "pkg-config", so it can be a program name with args.
11560 set dummy pkg-config
; ac_word
=$2
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11562 $as_echo_n "checking for $ac_word... " >&6; }
11563 if ${ac_cv_path_pkg_config_prog_path+:} false
; then :
11564 $as_echo_n "(cached) " >&6
11566 case $pkg_config_prog_path in
11568 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
11571 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11572 for as_dir
in $PATH
11575 test -z "$as_dir" && as_dir
=.
11576 for ac_exec_ext
in '' $ac_executable_extensions; do
11577 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11578 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
11579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11586 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
11590 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
11591 if test -n "$pkg_config_prog_path"; then
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
11593 $as_echo "$pkg_config_prog_path" >&6; }
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11596 $as_echo "no" >&6; }
11601 try_guile_versions
="guile-3.0 guile-2.2 guile-2.0"
11603 case "${with_guile}" in
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
11606 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
11609 if test "${pkg_config_prog_path}" = "missing"; then
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
11611 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
11614 pkg_config
=${pkg_config_prog_path}
11615 guile_version_list
=${try_guile_versions}
11618 found_usable_guile
=checking
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11620 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11621 for guile_version
in ${guile_version_list}; do
11622 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11623 if test $?
!= 0; then
11626 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11627 if test $?
!= 0; then
11628 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11630 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11631 if test $?
!= 0; then
11632 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11634 found_usable_guile
=${guile_version}
11637 if test "${found_usable_guile}" = "checking"; then
11638 if test "${flag_errors}" = "yes"; then
11639 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11641 found_usable_guile
=no
11644 if test "${found_usable_guile}" != no
; then
11645 save_CPPFLAGS
=$CPPFLAGS
11647 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11648 LIBS
="$LIBS $new_LIBS"
11649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11650 /* end confdefs.h. */
11651 #include "libguile.h"
11660 if ac_fn_c_try_link
"$LINENO"; then :
11662 GUILE_CPPFLAGS
=$new_CPPFLAGS
11663 GUILE_LIBS
=$new_LIBS
11665 found_usable_guile
=no
11667 rm -f core conftest.err conftest.
$ac_objext \
11668 conftest
$ac_exeext conftest.
$ac_ext
11669 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11670 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11672 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11677 CPPFLAGS
=$save_CPPFLAGS
11679 if test "${found_usable_guile}" = no
; then
11680 if test "${flag_errors}" = yes; then
11681 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11682 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11683 as_fn_error $?
"linking guile version ${guile_version} test program failed
11684 See \`config.log' for more details" "$LINENO" 5; }
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11689 $as_echo "${found_usable_guile}" >&6; }
11694 if test "${pkg_config_prog_path}" = "missing"; then
11695 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11698 pkg_config
=${pkg_config_prog_path}
11699 guile_version_list
=${try_guile_versions}
11702 found_usable_guile
=checking
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11704 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11705 for guile_version
in ${guile_version_list}; do
11706 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11707 if test $?
!= 0; then
11710 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11711 if test $?
!= 0; then
11712 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11714 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11715 if test $?
!= 0; then
11716 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11718 found_usable_guile
=${guile_version}
11721 if test "${found_usable_guile}" = "checking"; then
11722 if test "${flag_errors}" = "yes"; then
11723 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11725 found_usable_guile
=no
11728 if test "${found_usable_guile}" != no
; then
11729 save_CPPFLAGS
=$CPPFLAGS
11731 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11732 LIBS
="$LIBS $new_LIBS"
11733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11734 /* end confdefs.h. */
11735 #include "libguile.h"
11744 if ac_fn_c_try_link
"$LINENO"; then :
11746 GUILE_CPPFLAGS
=$new_CPPFLAGS
11747 GUILE_LIBS
=$new_LIBS
11749 found_usable_guile
=no
11751 rm -f core conftest.err conftest.
$ac_objext \
11752 conftest
$ac_exeext conftest.
$ac_ext
11753 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11754 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11756 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11761 CPPFLAGS
=$save_CPPFLAGS
11763 if test "${found_usable_guile}" = no
; then
11764 if test "${flag_errors}" = yes; then
11765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11767 as_fn_error $?
"linking guile version ${guile_version} test program failed
11768 See \`config.log' for more details" "$LINENO" 5; }
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11773 $as_echo "${found_usable_guile}" >&6; }
11777 if test -x "${with_guile}"; then
11779 pkg_config
=${with_guile}
11780 guile_version_list
=${try_guile_versions}
11783 found_usable_guile
=checking
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11785 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11786 for guile_version
in ${guile_version_list}; do
11787 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11788 if test $?
!= 0; then
11791 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11792 if test $?
!= 0; then
11793 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11795 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11796 if test $?
!= 0; then
11797 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11799 found_usable_guile
=${guile_version}
11802 if test "${found_usable_guile}" = "checking"; then
11803 if test "${flag_errors}" = "yes"; then
11804 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11806 found_usable_guile
=no
11809 if test "${found_usable_guile}" != no
; then
11810 save_CPPFLAGS
=$CPPFLAGS
11812 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11813 LIBS
="$LIBS $new_LIBS"
11814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11815 /* end confdefs.h. */
11816 #include "libguile.h"
11825 if ac_fn_c_try_link
"$LINENO"; then :
11827 GUILE_CPPFLAGS
=$new_CPPFLAGS
11828 GUILE_LIBS
=$new_LIBS
11830 found_usable_guile
=no
11832 rm -f core conftest.err conftest.
$ac_objext \
11833 conftest
$ac_exeext conftest.
$ac_ext
11834 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11835 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11837 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11842 CPPFLAGS
=$save_CPPFLAGS
11844 if test "${found_usable_guile}" = no
; then
11845 if test "${flag_errors}" = yes; then
11846 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11848 as_fn_error $?
"linking guile version ${guile_version} test program failed
11849 See \`config.log' for more details" "$LINENO" 5; }
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11854 $as_echo "${found_usable_guile}" >&6; }
11857 as_fn_error $?
"Guile config program not executable: ${with_guile}" "$LINENO" 5
11861 # Disallow --with=guile="" and --with-guile=foo/bar.
11862 as_fn_error $?
"invalid value for --with-guile" "$LINENO" 5
11865 # A space separate list of guile versions to try, in order.
11866 if test "${pkg_config_prog_path}" = "missing"; then
11867 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11870 pkg_config
=${pkg_config_prog_path}
11871 guile_version_list
=${with_guile}
11874 found_usable_guile
=checking
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11876 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11877 for guile_version
in ${guile_version_list}; do
11878 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11879 if test $?
!= 0; then
11882 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11883 if test $?
!= 0; then
11884 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11886 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11887 if test $?
!= 0; then
11888 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11890 found_usable_guile
=${guile_version}
11893 if test "${found_usable_guile}" = "checking"; then
11894 if test "${flag_errors}" = "yes"; then
11895 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11897 found_usable_guile
=no
11900 if test "${found_usable_guile}" != no
; then
11901 save_CPPFLAGS
=$CPPFLAGS
11903 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11904 LIBS
="$LIBS $new_LIBS"
11905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11906 /* end confdefs.h. */
11907 #include "libguile.h"
11916 if ac_fn_c_try_link
"$LINENO"; then :
11918 GUILE_CPPFLAGS
=$new_CPPFLAGS
11919 GUILE_LIBS
=$new_LIBS
11921 found_usable_guile
=no
11923 rm -f core conftest.err conftest.
$ac_objext \
11924 conftest
$ac_exeext conftest.
$ac_ext
11925 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11926 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11928 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11933 CPPFLAGS
=$save_CPPFLAGS
11935 if test "${found_usable_guile}" = no
; then
11936 if test "${flag_errors}" = yes; then
11937 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11939 as_fn_error $?
"linking guile version ${guile_version} test program failed
11940 See \`config.log' for more details" "$LINENO" 5; }
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11945 $as_echo "${found_usable_guile}" >&6; }
11950 if test "${have_libguile}" != no
; then
11951 case "${with_guile}" in
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11955 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11956 if ${ac_cv_guild_program_name+:} false
; then :
11957 $as_echo_n "(cached) " >&6
11959 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
11961 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11962 # the 'guild' and 'bindir' variables. In that case, try to guess
11963 # what the program name is, at the risk of getting it wrong if
11964 # Guile was configured with '--program-suffix' or similar.
11965 if test "x$ac_cv_guild_program_name" = "x"; then
11966 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
11967 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11972 $as_echo "$ac_cv_guild_program_name" >&6; }
11974 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11975 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11978 GUILD
="$ac_cv_guild_program_name"
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11985 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11986 if ${ac_cv_guild_program_name+:} false
; then :
11987 $as_echo_n "(cached) " >&6
11989 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
11991 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11992 # the 'guild' and 'bindir' variables. In that case, try to guess
11993 # what the program name is, at the risk of getting it wrong if
11994 # Guile was configured with '--program-suffix' or similar.
11995 if test "x$ac_cv_guild_program_name" = "x"; then
11996 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
11997 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
12002 $as_echo "$ac_cv_guild_program_name" >&6; }
12004 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
12005 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
12008 GUILD
="$ac_cv_guild_program_name"
12015 if test "$cross_compiling" = no
; then
12018 GUILD_TARGET_FLAG
="--target=$host"
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
12025 $as_echo_n "checking whether guild supports this host... " >&6; }
12026 if ${ac_cv_guild_ok+:} false
; then :
12027 $as_echo_n "(cached) " >&6
12029 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
12030 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
12037 $as_echo "$ac_cv_guild_ok" >&6; }
12039 if test "$ac_cv_guild_ok" = no
; then
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
12042 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
12046 if test "${have_libguile}" != no
; then
12048 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
12050 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
12051 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
12052 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
12053 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
12054 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
12057 save_CPPFLAGS
="$CPPFLAGS"
12059 CPPFLAGS
="$GUILE_CPPFLAGS"
12060 for ac_func
in scm_new_smob
12062 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
12063 if test "x$ac_cv_func_scm_new_smob" = xyes
; then :
12064 cat >>confdefs.h
<<_ACEOF
12065 #define HAVE_SCM_NEW_SMOB 1
12072 CPPFLAGS
="$save_CPPFLAGS"
12074 # Even if Guile support is not compiled in, we need to have these files
12076 CONFIG_OBS
="$CONFIG_OBS guile/guile.o"
12077 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
12081 if test "${have_libguile}" != no
; then
12083 HAVE_GUILE_FALSE
='#'
12085 HAVE_GUILE_TRUE
='#'
12090 # ---------------------------- #
12091 # Check for source highlight. #
12092 # ---------------------------- #
12097 # Check whether --enable-source-highlight was given.
12098 if test "${enable_source_highlight+set}" = set; then :
12099 enableval
=$enable_source_highlight; case "${enableval}" in
12100 yes) enable_source_highlight
=yes ;;
12101 no
) enable_source_highlight
=no
;;
12102 *) as_fn_error $?
"bad value ${enableval} for source-highlight option" "$LINENO" 5 ;;
12105 enable_source_highlight
=auto
12109 if test "${enable_source_highlight}" != "no"; then
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
12111 $as_echo_n "checking for the source-highlight library... " >&6; }
12112 if test "${pkg_config_prog_path}" = "missing"; then
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
12114 $as_echo "no - pkg-config not found" >&6; }
12115 if test "${enable_source_highlight}" = "yes"; then
12116 as_fn_error $?
"pkg-config was not found in your system" "$LINENO" 5
12119 if ${pkg_config_prog_path} --exists source-highlight
; then
12122 as_fn_error $?
"source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
12126 srchigh_pkg_cflags
=`${pkg_config_prog_path} --cflags source-highlight`
12127 srchigh_pkg_libs
=`${pkg_config_prog_path} --libs source-highlight`
12129 # Now that we have found a source-highlight library, check if we can use
12130 # it. In particular, we're trying to detect the situation that the
12131 # library is using the new libstdc++ library abi ( see
12132 # https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html )
12133 # while the compiler being used to compile gdb is using the old abi.
12134 # Such a situation will result in an undefined reference to
12135 # srchilite::SourceHighlight::SourceHighlight(std::string const&).
12136 # This situation can occur for instance when using a source highlight
12137 # library compiled with g++ 7.5.0 while building gdb with g++ 4.8.5.
12139 ac_cpp
='$CXXCPP $CPPFLAGS'
12140 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12141 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12142 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12144 save_CFLAGS
="$CFLAGS"
12145 save_LDFLAGS
="$LDFLAGS"
12146 CFLAGS
="$CFLAGS $srchigh_pkg_cflags"
12147 LDFLAGS
="$LDFLAGS $srchigh_pkg_libs"
12148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12149 /* end confdefs.h. */
12150 #include <srchilite/sourcehighlight.h>
12154 std::string outlang = "esc.outlang";
12155 new srchilite::SourceHighlight (outlang);
12161 if ac_fn_cxx_try_link
"$LINENO"; then :
12162 have_usable_source_highlight
=yes
12164 have_usable_source_highlight
=no
12167 rm -f core conftest.err conftest.
$ac_objext \
12168 conftest
$ac_exeext conftest.
$ac_ext
12169 CFLAGS
="$save_CFLAGS"
12170 LDFLAGS
="$save_LDFLAGS"
12172 ac_cpp
='$CPP $CPPFLAGS'
12173 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12174 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12175 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12178 if test "${have_usable_source_highlight}" = "yes"; then
12180 $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12183 $as_echo "yes" >&6; }
12184 SRCHIGH_CFLAGS
="$srchigh_pkg_cflags"
12185 SRCHIGH_LIBS
="$srchigh_pkg_libs"
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12188 $as_echo "no" >&6; }
12189 if test "${enable_source_highlight}" = "yes"; then
12190 as_fn_error $?
"source-highlight in your system could not be used" "$LINENO" 5
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12195 $as_echo "no" >&6; }
12196 if test "${enable_source_highlight}" = "yes"; then
12197 as_fn_error $?
"source-highlight was not found in your system" "$LINENO" 5
12205 # ------------------------- #
12206 # Checks for header files. #
12207 # ------------------------- #
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12210 $as_echo_n "checking for ANSI C header files... " >&6; }
12211 if ${ac_cv_header_stdc+:} false
; then :
12212 $as_echo_n "(cached) " >&6
12214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12215 /* end confdefs.h. */
12216 #include <stdlib.h>
12217 #include <stdarg.h>
12218 #include <string.h>
12229 if ac_fn_c_try_compile
"$LINENO"; then :
12230 ac_cv_header_stdc
=yes
12232 ac_cv_header_stdc
=no
12234 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12236 if test $ac_cv_header_stdc = yes; then
12237 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12239 /* end confdefs.h. */
12240 #include <string.h>
12243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12244 $EGREP "memchr" >/dev
/null
2>&1; then :
12247 ac_cv_header_stdc
=no
12253 if test $ac_cv_header_stdc = yes; then
12254 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12256 /* end confdefs.h. */
12257 #include <stdlib.h>
12260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12261 $EGREP "free" >/dev
/null
2>&1; then :
12264 ac_cv_header_stdc
=no
12270 if test $ac_cv_header_stdc = yes; then
12271 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12272 if test "$cross_compiling" = yes; then :
12275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12276 /* end confdefs.h. */
12278 #include <stdlib.h>
12279 #if ((' ' & 0x0FF) == 0x020)
12280 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12281 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12283 # define ISLOWER(c) \
12284 (('a' <= (c) && (c) <= 'i') \
12285 || ('j' <= (c) && (c) <= 'r') \
12286 || ('s' <= (c) && (c) <= 'z'))
12287 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12290 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12295 for (i = 0; i < 256; i++)
12296 if (XOR (islower (i), ISLOWER (i))
12297 || toupper (i) != TOUPPER (i))
12302 if ac_fn_c_try_run
"$LINENO"; then :
12305 ac_cv_header_stdc
=no
12307 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12308 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12314 $as_echo "$ac_cv_header_stdc" >&6; }
12315 if test $ac_cv_header_stdc = yes; then
12317 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12321 # elf_hp.h is for HP/UX 64-bit shared library support.
12322 for ac_header
in nlist.h machine
/reg.h \
12324 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
12325 sys
/procctl.h sys
/resource.h sys
/ptrace.h ptrace.h \
12326 sys
/reg.h sys
/debugreg.h \
12329 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12330 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12331 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12332 cat >>confdefs.h
<<_ACEOF
12333 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12340 for ac_header
in sys
/user.h
12342 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
12343 # include <sys/param.h>
12347 if test "x$ac_cv_header_sys_user_h" = xyes
; then :
12348 cat >>confdefs.h
<<_ACEOF
12349 #define HAVE_SYS_USER_H 1
12357 for ac_header
in curses.h cursesX.h ncurses.h ncursesw
/ncurses.h ncurses
/ncurses.h ncurses
/term.h
12359 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12360 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12361 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12362 cat >>confdefs.h
<<_ACEOF
12363 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12370 for ac_header
in term.h
12372 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
12373 # include <curses.h>
12377 if test "x$ac_cv_header_term_h" = xyes
; then :
12378 cat >>confdefs.h
<<_ACEOF
12379 #define HAVE_TERM_H 1
12387 for ac_header
in sys
/socket.h
12389 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
12390 if test "x$ac_cv_header_sys_socket_h" = xyes
; then :
12391 cat >>confdefs.h
<<_ACEOF
12392 #define HAVE_SYS_SOCKET_H 1
12399 for ac_header
in ws2tcpip.h
12401 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
12402 if test "x$ac_cv_header_ws2tcpip_h" = xyes
; then :
12403 cat >>confdefs.h
<<_ACEOF
12404 #define HAVE_WS2TCPIP_H 1
12411 for ac_header
in execinfo.h
12413 ac_fn_c_check_header_mongrel
"$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
12414 if test "x$ac_cv_header_execinfo_h" = xyes
; then :
12415 cat >>confdefs.h
<<_ACEOF
12416 #define HAVE_EXECINFO_H 1
12424 # ------------------------- #
12425 # Checks for declarations. #
12426 # ------------------------- #
12429 # Check for presence and size of long long.
12430 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12431 if test "x$ac_cv_type_long_long" = xyes
; then :
12433 cat >>confdefs.h
<<_ACEOF
12434 #define HAVE_LONG_LONG 1
12437 # The cast to long int works around a bug in the HP C Compiler
12438 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12439 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12440 # This bug is HP SR number 8606223364.
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12442 $as_echo_n "checking size of long long... " >&6; }
12443 if ${ac_cv_sizeof_long_long+:} false
; then :
12444 $as_echo_n "(cached) " >&6
12446 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12449 if test "$ac_cv_type_long_long" = yes; then
12450 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12452 as_fn_error
77 "cannot compute sizeof (long long)
12453 See \`config.log' for more details" "$LINENO" 5; }
12455 ac_cv_sizeof_long_long
=0
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12461 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12465 cat >>confdefs.h
<<_ACEOF
12466 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12473 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
12474 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
12475 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
12481 cat >>confdefs.h
<<_ACEOF
12482 #define HAVE_DECL_BASENAME $ac_have_decl
12484 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
12485 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
12491 cat >>confdefs.h
<<_ACEOF
12492 #define HAVE_DECL_FFS $ac_have_decl
12494 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12495 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
12501 cat >>confdefs.h
<<_ACEOF
12502 #define HAVE_DECL_ASPRINTF $ac_have_decl
12504 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12505 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
12511 cat >>confdefs.h
<<_ACEOF
12512 #define HAVE_DECL_VASPRINTF $ac_have_decl
12514 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12515 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12521 cat >>confdefs.h
<<_ACEOF
12522 #define HAVE_DECL_SNPRINTF $ac_have_decl
12524 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12525 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
12531 cat >>confdefs.h
<<_ACEOF
12532 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12535 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
12536 if test "x$ac_cv_have_decl_strtol" = xyes
; then :
12542 cat >>confdefs.h
<<_ACEOF
12543 #define HAVE_DECL_STRTOL $ac_have_decl
12545 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
12546 if test "x$ac_cv_have_decl_strtoul" = xyes
; then :
12552 cat >>confdefs.h
<<_ACEOF
12553 #define HAVE_DECL_STRTOUL $ac_have_decl
12555 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
12556 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
12562 cat >>confdefs.h
<<_ACEOF
12563 #define HAVE_DECL_STRTOLL $ac_have_decl
12565 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
12566 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
12572 cat >>confdefs.h
<<_ACEOF
12573 #define HAVE_DECL_STRTOULL $ac_have_decl
12576 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12577 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
12583 cat >>confdefs.h
<<_ACEOF
12584 #define HAVE_DECL_STRVERSCMP $ac_have_decl
12589 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12590 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12596 cat >>confdefs.h
<<_ACEOF
12597 #define HAVE_DECL_SNPRINTF $ac_have_decl
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12602 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12603 if ${am_cv_val_LC_MESSAGES+:} false
; then :
12604 $as_echo_n "(cached) " >&6
12606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12607 /* end confdefs.h. */
12608 #include <locale.h>
12617 if ac_fn_c_try_link
"$LINENO"; then :
12618 am_cv_val_LC_MESSAGES
=yes
12620 am_cv_val_LC_MESSAGES
=no
12622 rm -f core conftest.err conftest.
$ac_objext \
12623 conftest
$ac_exeext conftest.
$ac_ext
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12626 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12627 if test $am_cv_val_LC_MESSAGES = yes; then
12629 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12634 # ------------------ #
12635 # Checks for types. #
12636 # ------------------ #
12638 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12639 #if HAVE_SYS_SOCKET_H
12640 # include <sys/socket.h>
12641 #elif HAVE_WS2TCPIP_H
12642 # include <ws2tcpip.h>
12646 if test "x$ac_cv_type_socklen_t" = xyes
; then :
12648 cat >>confdefs.h
<<_ACEOF
12649 #define HAVE_SOCKLEN_T 1
12656 # ------------------------------------- #
12657 # Checks for compiler characteristics. #
12658 # ------------------------------------- #
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12661 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12662 if ${ac_cv_c_const+:} false
; then :
12663 $as_echo_n "(cached) " >&6
12665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12666 /* end confdefs.h. */
12672 #ifndef __cplusplus
12673 /* Ultrix mips cc rejects this sort of thing. */
12674 typedef int charset[2];
12675 const charset cs = { 0, 0 };
12676 /* SunOS 4.1.1 cc rejects this. */
12677 char const *const *pcpcc;
12679 /* NEC SVR4.0.2 mips cc rejects this. */
12680 struct point {int x, y;};
12681 static struct point const zero = {0,0};
12682 /* AIX XL C 1.02.0.0 rejects this.
12683 It does not let you subtract one const X* pointer from another in
12684 an arm of an if-expression whose if-part is not a constant
12686 const char *g = "string";
12687 pcpcc = &g + (g ? g-g : 0);
12688 /* HPUX 7.0 cc rejects these. */
12690 ppc = (char**) pcpcc;
12691 pcpcc = (char const *const *) ppc;
12692 { /* SCO 3.2v4 cc rejects this sort of thing. */
12695 char const *s = 0 ? (char *) 0 : (char const *) 0;
12700 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12701 int x[] = {25, 17};
12702 const int *foo = &x[0];
12705 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12706 typedef const int *iptr;
12710 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12711 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12712 struct s { int j; const int *ap[3]; } bx;
12713 struct s *b = &bx; b->j = 5;
12715 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12716 const int foo = 10;
12717 if (!foo) return 0;
12719 return !cs[0] && !zero.x;
12726 if ac_fn_c_try_compile
"$LINENO"; then :
12731 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12734 $as_echo "$ac_cv_c_const" >&6; }
12735 if test $ac_cv_c_const = no
; then
12737 $as_echo "#define const /**/" >>confdefs.h
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12742 $as_echo_n "checking for inline... " >&6; }
12743 if ${ac_cv_c_inline+:} false
; then :
12744 $as_echo_n "(cached) " >&6
12747 for ac_kw
in inline __inline__ __inline
; do
12748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12749 /* end confdefs.h. */
12750 #ifndef __cplusplus
12752 static $ac_kw foo_t static_foo () {return 0; }
12753 $ac_kw foo_t foo () {return 0; }
12757 if ac_fn_c_try_compile
"$LINENO"; then :
12758 ac_cv_c_inline
=$ac_kw
12760 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12761 test "$ac_cv_c_inline" != no
&& break
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12766 $as_echo "$ac_cv_c_inline" >&6; }
12768 case $ac_cv_c_inline in
12771 case $ac_cv_c_inline in
12773 *) ac_val
=$ac_cv_c_inline;;
12775 cat >>confdefs.h
<<_ACEOF
12776 #ifndef __cplusplus
12777 #define inline $ac_val
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12784 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12785 if ${ac_cv_c_bigendian+:} false
; then :
12786 $as_echo_n "(cached) " >&6
12788 ac_cv_c_bigendian
=unknown
12789 # See if we're dealing with a universal compiler.
12790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12791 /* end confdefs.h. */
12792 #ifndef __APPLE_CC__
12793 not a universal capable compiler
12798 if ac_fn_c_try_compile
"$LINENO"; then :
12800 # Check for potential -arch flags. It is not universal unless
12801 # there are at least two -arch flags with different values.
12804 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12805 if test -n "$ac_prev"; then
12807 i?
86 | x86_64 | ppc | ppc64
)
12808 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12811 ac_cv_c_bigendian
=universal
12817 elif test "x$ac_word" = "x-arch"; then
12822 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12823 if test $ac_cv_c_bigendian = unknown
; then
12824 # See if sys/param.h defines the BYTE_ORDER macro.
12825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12826 /* end confdefs.h. */
12827 #include <sys/types.h>
12828 #include <sys/param.h>
12833 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12834 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12836 bogus endian macros
12843 if ac_fn_c_try_compile
"$LINENO"; then :
12844 # It does; now see whether it defined to BIG_ENDIAN or not.
12845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12846 /* end confdefs.h. */
12847 #include <sys/types.h>
12848 #include <sys/param.h>
12853 #if BYTE_ORDER != BIG_ENDIAN
12861 if ac_fn_c_try_compile
"$LINENO"; then :
12862 ac_cv_c_bigendian
=yes
12864 ac_cv_c_bigendian
=no
12866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12868 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12870 if test $ac_cv_c_bigendian = unknown
; then
12871 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12873 /* end confdefs.h. */
12874 #include <limits.h>
12879 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12880 bogus endian macros
12887 if ac_fn_c_try_compile
"$LINENO"; then :
12888 # It does; now see whether it defined to _BIG_ENDIAN or not.
12889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12890 /* end confdefs.h. */
12891 #include <limits.h>
12896 #ifndef _BIG_ENDIAN
12904 if ac_fn_c_try_compile
"$LINENO"; then :
12905 ac_cv_c_bigendian
=yes
12907 ac_cv_c_bigendian
=no
12909 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12913 if test $ac_cv_c_bigendian = unknown
; then
12914 # Compile a test program.
12915 if test "$cross_compiling" = yes; then :
12916 # Try to guess by grepping values from an object file.
12917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12918 /* end confdefs.h. */
12919 short int ascii_mm[] =
12920 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12921 short int ascii_ii[] =
12922 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12923 int use_ascii (int i) {
12924 return ascii_mm[i] + ascii_ii[i];
12926 short int ebcdic_ii[] =
12927 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12928 short int ebcdic_mm[] =
12929 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12930 int use_ebcdic (int i) {
12931 return ebcdic_mm[i] + ebcdic_ii[i];
12938 return use_ascii (foo) == use_ebcdic (foo);
12943 if ac_fn_c_try_compile
"$LINENO"; then :
12944 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12945 ac_cv_c_bigendian
=yes
12947 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12948 if test "$ac_cv_c_bigendian" = unknown
; then
12949 ac_cv_c_bigendian
=no
12951 # finding both strings is unlikely to happen, but who knows?
12952 ac_cv_c_bigendian
=unknown
12956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12959 /* end confdefs.h. */
12960 $ac_includes_default
12965 /* Are we little or big endian? From Harbison&Steele. */
12969 char c[sizeof (long int)];
12972 return u.c[sizeof (long int) - 1] == 1;
12978 if ac_fn_c_try_run
"$LINENO"; then :
12979 ac_cv_c_bigendian
=no
12981 ac_cv_c_bigendian
=yes
12983 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12984 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12990 $as_echo "$ac_cv_c_bigendian" >&6; }
12991 case $ac_cv_c_bigendian in #(
12993 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12999 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13003 as_fn_error $?
"unknown endianness
13004 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13008 # ------------------------------ #
13009 # Checks for library functions. #
13010 # ------------------------------ #
13012 for ac_func
in getuid getgid \
13013 pipe pread pread64 pwrite resize_term \
13015 sigaction sigsetmask socketpair \
13016 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
13017 setrlimit getrlimit posix_madvise waitpid \
13020 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13021 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13022 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13023 cat >>confdefs.h
<<_ACEOF
13024 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13032 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13033 if ${am_cv_langinfo_codeset+:} false
; then :
13034 $as_echo_n "(cached) " >&6
13036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13037 /* end confdefs.h. */
13038 #include <langinfo.h>
13042 char* cs = nl_langinfo(CODESET);
13047 if ac_fn_c_try_link
"$LINENO"; then :
13048 am_cv_langinfo_codeset
=yes
13050 am_cv_langinfo_codeset
=no
13052 rm -f core conftest.err conftest.
$ac_objext \
13053 conftest
$ac_exeext conftest.
$ac_ext
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13057 $as_echo "$am_cv_langinfo_codeset" >&6; }
13058 if test $am_cv_langinfo_codeset = yes; then
13060 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13064 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13065 if test "x$ac_cv_type_size_t" = xyes
; then :
13069 cat >>confdefs.h
<<_ACEOF
13070 #define size_t unsigned int
13078 for ac_header
in $ac_header_list
13080 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13081 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13083 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13084 cat >>confdefs.h
<<_ACEOF
13085 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13098 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13099 if test "x$ac_cv_type_pid_t" = xyes
; then :
13103 cat >>confdefs.h
<<_ACEOF
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13110 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13111 if ${ac_cv_path_SED+:} false
; then :
13112 $as_echo_n "(cached) " >&6
13114 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
13115 for ac_i
in 1 2 3 4 5 6 7; do
13116 ac_script
="$ac_script$as_nl$ac_script"
13118 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
13119 { ac_script
=; unset ac_script
;}
13120 if test -z "$SED"; then
13121 ac_path_SED_found
=false
13122 # Loop through the user's path and test for each of PROGNAME-LIST
13123 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13124 for as_dir
in $PATH
13127 test -z "$as_dir" && as_dir
=.
13128 for ac_prog
in sed gsed
; do
13129 for ac_exec_ext
in '' $ac_executable_extensions; do
13130 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
13131 as_fn_executable_p
"$ac_path_SED" ||
continue
13132 # Check for GNU ac_path_SED and select it if it is found.
13133 # Check for GNU $ac_path_SED
13134 case `"$ac_path_SED" --version 2>&1` in
13136 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
13139 $as_echo_n 0123456789 >"conftest.in"
13142 cat "conftest.in" "conftest.in" >"conftest.tmp"
13143 mv "conftest.tmp" "conftest.in"
13144 cp "conftest.in" "conftest.nl"
13145 $as_echo '' >> "conftest.nl"
13146 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13147 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13148 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13149 if test $ac_count -gt ${ac_path_SED_max-0}; then
13150 # Best one so far, save it but keep looking for a better one
13151 ac_cv_path_SED
="$ac_path_SED"
13152 ac_path_SED_max
=$ac_count
13154 # 10*(2^10) chars as input seems more than enough
13155 test $ac_count -gt 10 && break
13157 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13160 $ac_path_SED_found && break 3
13165 if test -z "$ac_cv_path_SED"; then
13166 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
13169 ac_cv_path_SED
=$SED
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13174 $as_echo "$ac_cv_path_SED" >&6; }
13175 SED
="$ac_cv_path_SED"
13179 # Set the 'development' global.
13180 .
$srcdir/..
/bfd
/development.sh
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13183 $as_echo_n "checking for ANSI C header files... " >&6; }
13184 if ${ac_cv_header_stdc+:} false
; then :
13185 $as_echo_n "(cached) " >&6
13187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13188 /* end confdefs.h. */
13189 #include <stdlib.h>
13190 #include <stdarg.h>
13191 #include <string.h>
13202 if ac_fn_c_try_compile
"$LINENO"; then :
13203 ac_cv_header_stdc
=yes
13205 ac_cv_header_stdc
=no
13207 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13209 if test $ac_cv_header_stdc = yes; then
13210 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13212 /* end confdefs.h. */
13213 #include <string.h>
13216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13217 $EGREP "memchr" >/dev
/null
2>&1; then :
13220 ac_cv_header_stdc
=no
13226 if test $ac_cv_header_stdc = yes; then
13227 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13229 /* end confdefs.h. */
13230 #include <stdlib.h>
13233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13234 $EGREP "free" >/dev
/null
2>&1; then :
13237 ac_cv_header_stdc
=no
13243 if test $ac_cv_header_stdc = yes; then
13244 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13245 if test "$cross_compiling" = yes; then :
13248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13249 /* end confdefs.h. */
13251 #include <stdlib.h>
13252 #if ((' ' & 0x0FF) == 0x020)
13253 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13254 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13256 # define ISLOWER(c) \
13257 (('a' <= (c) && (c) <= 'i') \
13258 || ('j' <= (c) && (c) <= 'r') \
13259 || ('s' <= (c) && (c) <= 'z'))
13260 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13263 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13268 for (i = 0; i < 256; i++)
13269 if (XOR (islower (i), ISLOWER (i))
13270 || toupper (i) != TOUPPER (i))
13275 if ac_fn_c_try_run
"$LINENO"; then :
13278 ac_cv_header_stdc
=no
13280 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13281 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13287 $as_echo "$ac_cv_header_stdc" >&6; }
13288 if test $ac_cv_header_stdc = yes; then
13290 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13294 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13295 # for constant arguments. Useless!
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13297 $as_echo_n "checking for working alloca.h... " >&6; }
13298 if ${ac_cv_working_alloca_h+:} false
; then :
13299 $as_echo_n "(cached) " >&6
13301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13302 /* end confdefs.h. */
13303 #include <alloca.h>
13307 char *p = (char *) alloca (2 * sizeof (int));
13313 if ac_fn_c_try_link
"$LINENO"; then :
13314 ac_cv_working_alloca_h
=yes
13316 ac_cv_working_alloca_h
=no
13318 rm -f core conftest.err conftest.
$ac_objext \
13319 conftest
$ac_exeext conftest.
$ac_ext
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13322 $as_echo "$ac_cv_working_alloca_h" >&6; }
13323 if test $ac_cv_working_alloca_h = yes; then
13325 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13330 $as_echo_n "checking for alloca... " >&6; }
13331 if ${ac_cv_func_alloca_works+:} false
; then :
13332 $as_echo_n "(cached) " >&6
13334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13335 /* end confdefs.h. */
13337 # define alloca __builtin_alloca
13340 # include <malloc.h>
13341 # define alloca _alloca
13343 # ifdef HAVE_ALLOCA_H
13344 # include <alloca.h>
13349 # ifndef alloca /* predefined by HP cc +Olibcalls */
13350 void *alloca (size_t);
13360 char *p = (char *) alloca (1);
13366 if ac_fn_c_try_link
"$LINENO"; then :
13367 ac_cv_func_alloca_works
=yes
13369 ac_cv_func_alloca_works
=no
13371 rm -f core conftest.err conftest.
$ac_objext \
13372 conftest
$ac_exeext conftest.
$ac_ext
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13375 $as_echo "$ac_cv_func_alloca_works" >&6; }
13377 if test $ac_cv_func_alloca_works = yes; then
13379 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13382 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13383 # that cause trouble. Some versions do not even contain alloca or
13384 # contain a buggy version. If you still want to use their alloca,
13385 # use ar to extract alloca.o from them instead of compiling alloca.c.
13387 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
13389 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13393 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13394 if ${ac_cv_os_cray+:} false
; then :
13395 $as_echo_n "(cached) " >&6
13397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13398 /* end confdefs.h. */
13399 #if defined CRAY && ! defined CRAY2
13406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13407 $EGREP "webecray" >/dev
/null
2>&1; then :
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13416 $as_echo "$ac_cv_os_cray" >&6; }
13417 if test $ac_cv_os_cray = yes; then
13418 for ac_func
in _getb67 GETB67 getb67
; do
13419 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13420 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13421 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13423 cat >>confdefs.h
<<_ACEOF
13424 #define CRAY_STACKSEG_END $ac_func
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13434 $as_echo_n "checking stack direction for C alloca... " >&6; }
13435 if ${ac_cv_c_stack_direction+:} false
; then :
13436 $as_echo_n "(cached) " >&6
13438 if test "$cross_compiling" = yes; then :
13439 ac_cv_c_stack_direction
=0
13441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13442 /* end confdefs.h. */
13443 $ac_includes_default
13445 find_stack_direction (int *addr, int depth)
13447 int dir, dummy = 0;
13450 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13451 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13452 return dir + dummy;
13456 main (int argc, char **argv)
13458 return find_stack_direction (0, argc + !argv + 20) < 0;
13461 if ac_fn_c_try_run
"$LINENO"; then :
13462 ac_cv_c_stack_direction
=1
13464 ac_cv_c_stack_direction
=-1
13466 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13467 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13472 $as_echo "$ac_cv_c_stack_direction" >&6; }
13473 cat >>confdefs.h
<<_ACEOF
13474 #define STACK_DIRECTION $ac_cv_c_stack_direction
13485 $as_echo "#define USE_WIN32API 1" >>confdefs.h
13487 WIN32APILIBS
="-lws2_32"
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13493 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13494 if ${am_cv_langinfo_codeset+:} false
; then :
13495 $as_echo_n "(cached) " >&6
13497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13498 /* end confdefs.h. */
13499 #include <langinfo.h>
13503 char* cs = nl_langinfo(CODESET);
13508 if ac_fn_c_try_link
"$LINENO"; then :
13509 am_cv_langinfo_codeset
=yes
13511 am_cv_langinfo_codeset
=no
13513 rm -f core conftest.err conftest.
$ac_objext \
13514 conftest
$ac_exeext conftest.
$ac_ext
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13518 $as_echo "$am_cv_langinfo_codeset" >&6; }
13519 if test $am_cv_langinfo_codeset = yes; then
13521 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13526 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
13528 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13529 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13530 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13531 cat >>confdefs.h
<<_ACEOF
13532 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13541 for ac_func
in getpagesize
13543 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13544 if test "x$ac_cv_func_getpagesize" = xyes
; then :
13545 cat >>confdefs.h
<<_ACEOF
13546 #define HAVE_GETPAGESIZE 1
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13553 $as_echo_n "checking for working mmap... " >&6; }
13554 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
13555 $as_echo_n "(cached) " >&6
13557 if test "$cross_compiling" = yes; then :
13558 ac_cv_func_mmap_fixed_mapped
=no
13560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13561 /* end confdefs.h. */
13562 $ac_includes_default
13563 /* malloc might have been renamed as rpl_malloc. */
13566 /* Thanks to Mike Haertel and Jim Avera for this test.
13567 Here is a matrix of mmap possibilities:
13568 mmap private not fixed
13569 mmap private fixed at somewhere currently unmapped
13570 mmap private fixed at somewhere already mapped
13571 mmap shared not fixed
13572 mmap shared fixed at somewhere currently unmapped
13573 mmap shared fixed at somewhere already mapped
13574 For private mappings, we should verify that changes cannot be read()
13575 back from the file, nor mmap's back from the file at a different
13576 address. (There have been systems where private was not correctly
13577 implemented like the infamous i386 svr4.0, and systems where the
13578 VM page cache was not coherent with the file system buffer cache
13579 like early versions of FreeBSD and possibly contemporary NetBSD.)
13580 For shared mappings, we should conversely verify that changes get
13581 propagated back to all the places they're supposed to be.
13583 Grep wants private fixed already mapped.
13584 The main things grep needs to know about mmap are:
13585 * does it exist and is it safe to write into the mmap'd area
13586 * how to use it (BSD variants) */
13589 #include <sys/mman.h>
13591 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13595 /* This mess was copied from the GNU getpagesize.h. */
13596 #ifndef HAVE_GETPAGESIZE
13597 # ifdef _SC_PAGESIZE
13598 # define getpagesize() sysconf(_SC_PAGESIZE)
13599 # else /* no _SC_PAGESIZE */
13600 # ifdef HAVE_SYS_PARAM_H
13601 # include <sys/param.h>
13602 # ifdef EXEC_PAGESIZE
13603 # define getpagesize() EXEC_PAGESIZE
13604 # else /* no EXEC_PAGESIZE */
13606 # define getpagesize() NBPG * CLSIZE
13609 # endif /* no CLSIZE */
13610 # else /* no NBPG */
13612 # define getpagesize() NBPC
13613 # else /* no NBPC */
13615 # define getpagesize() PAGESIZE
13616 # endif /* PAGESIZE */
13617 # endif /* no NBPC */
13618 # endif /* no NBPG */
13619 # endif /* no EXEC_PAGESIZE */
13620 # else /* no HAVE_SYS_PARAM_H */
13621 # define getpagesize() 8192 /* punt totally */
13622 # endif /* no HAVE_SYS_PARAM_H */
13623 # endif /* no _SC_PAGESIZE */
13625 #endif /* no HAVE_GETPAGESIZE */
13630 char *data, *data2, *data3;
13631 const char *cdata2;
13635 pagesize = getpagesize ();
13637 /* First, make a file with some known garbage in it. */
13638 data = (char *) malloc (pagesize);
13641 for (i = 0; i < pagesize; ++i)
13642 *(data + i) = rand ();
13644 fd = creat ("conftest.mmap", 0600);
13647 if (write (fd, data, pagesize) != pagesize)
13651 /* Next, check that the tail of a page is zero-filled. File must have
13652 non-zero length, otherwise we risk SIGBUS for entire page. */
13653 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13657 if (write (fd2, cdata2, 1) != 1)
13659 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13660 if (data2 == MAP_FAILED)
13662 for (i = 0; i < pagesize; ++i)
13666 if (munmap (data2, pagesize))
13669 /* Next, try to mmap the file at a fixed address which already has
13670 something else allocated at it. If we can, also make sure that
13671 we see the same garbage. */
13672 fd = open ("conftest.mmap", O_RDWR);
13675 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13676 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13678 for (i = 0; i < pagesize; ++i)
13679 if (*(data + i) != *(data2 + i))
13682 /* Finally, make sure that changes to the mapped area do not
13683 percolate back to the file as seen by read(). (This is a bug on
13684 some variants of i386 svr4.0.) */
13685 for (i = 0; i < pagesize; ++i)
13686 *(data2 + i) = *(data2 + i) + 1;
13687 data3 = (char *) malloc (pagesize);
13690 if (read (fd, data3, pagesize) != pagesize)
13692 for (i = 0; i < pagesize; ++i)
13693 if (*(data + i) != *(data3 + i))
13699 if ac_fn_c_try_run
"$LINENO"; then :
13700 ac_cv_func_mmap_fixed_mapped
=yes
13702 ac_cv_func_mmap_fixed_mapped
=no
13704 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13705 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13710 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13711 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13713 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13716 rm -f conftest.mmap conftest.txt
13718 for ac_header
in vfork.h
13720 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13721 if test "x$ac_cv_header_vfork_h" = xyes
; then :
13722 cat >>confdefs.h
<<_ACEOF
13723 #define HAVE_VFORK_H 1
13730 for ac_func
in fork vfork
13732 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13733 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13734 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13735 cat >>confdefs.h
<<_ACEOF
13736 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13742 if test "x$ac_cv_func_fork" = xyes
; then
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13744 $as_echo_n "checking for working fork... " >&6; }
13745 if ${ac_cv_func_fork_works+:} false
; then :
13746 $as_echo_n "(cached) " >&6
13748 if test "$cross_compiling" = yes; then :
13749 ac_cv_func_fork_works
=cross
13751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13752 /* end confdefs.h. */
13753 $ac_includes_default
13758 /* By Ruediger Kuhlmann. */
13759 return fork () < 0;
13765 if ac_fn_c_try_run
"$LINENO"; then :
13766 ac_cv_func_fork_works
=yes
13768 ac_cv_func_fork_works
=no
13770 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13771 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13776 $as_echo "$ac_cv_func_fork_works" >&6; }
13779 ac_cv_func_fork_works
=$ac_cv_func_fork
13781 if test "x$ac_cv_func_fork_works" = xcross
; then
13783 *-*-amigaos* |
*-*-msdosdjgpp*)
13784 # Override, as these systems have only a dummy fork() stub
13785 ac_cv_func_fork_works
=no
13788 ac_cv_func_fork_works
=yes
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13792 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13794 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13795 if test "x$ac_cv_func_vfork" = xyes
; then
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13797 $as_echo_n "checking for working vfork... " >&6; }
13798 if ${ac_cv_func_vfork_works+:} false
; then :
13799 $as_echo_n "(cached) " >&6
13801 if test "$cross_compiling" = yes; then :
13802 ac_cv_func_vfork_works
=cross
13804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13805 /* end confdefs.h. */
13806 /* Thanks to Paul Eggert for this test. */
13807 $ac_includes_default
13808 #include <sys/wait.h>
13809 #ifdef HAVE_VFORK_H
13810 # include <vfork.h>
13812 /* On some sparc systems, changes by the child to local and incoming
13813 argument registers are propagated back to the parent. The compiler
13814 is told about this with #include <vfork.h>, but some compilers
13815 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13816 static variable whose address is put into a register that is
13817 clobbered by the vfork. */
13820 sparc_address_test (int arg)
13822 sparc_address_test (arg) int arg;
13825 static pid_t child;
13843 pid_t parent = getpid ();
13846 sparc_address_test (0);
13851 /* Here is another test for sparc vfork register problems. This
13852 test uses lots of local variables, at least as many local
13853 variables as main has allocated so far including compiler
13854 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13855 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13856 reuse the register of parent for one of the local variables,
13857 since it will think that parent can't possibly be used any more
13858 in this routine. Assigning to the local variable will thus
13859 munge parent in the parent process. */
13861 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13862 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13863 /* Convince the compiler that p..p7 are live; otherwise, it might
13864 use the same hardware register for all 8 local variables. */
13865 if (p != p1 || p != p2 || p != p3 || p != p4
13866 || p != p5 || p != p6 || p != p7)
13869 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13870 from child file descriptors. If the child closes a descriptor
13871 before it execs or exits, this munges the parent's descriptor
13872 as well. Test for this by closing stdout in the child. */
13873 _exit(close(fileno(stdout)) != 0);
13878 while (wait(&status) != child)
13881 /* Was there some problem with vforking? */
13884 /* Did the child fail? (This shouldn't happen.) */
13887 /* Did the vfork/compiler bug occur? */
13888 || parent != getpid()
13890 /* Did the file descriptor bug occur? */
13891 || fstat(fileno(stdout), &st) != 0
13896 if ac_fn_c_try_run
"$LINENO"; then :
13897 ac_cv_func_vfork_works
=yes
13899 ac_cv_func_vfork_works
=no
13901 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13902 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13907 $as_echo "$ac_cv_func_vfork_works" >&6; }
13910 if test "x$ac_cv_func_fork_works" = xcross
; then
13911 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13913 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13916 if test "x$ac_cv_func_vfork_works" = xyes
; then
13918 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13922 $as_echo "#define vfork fork" >>confdefs.h
13925 if test "x$ac_cv_func_fork_works" = xyes
; then
13927 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13931 for ac_func
in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
13932 ptrace64 sbrk setns sigaltstack sigprocmask \
13933 setpgid setpgrp getrusage getauxval sigtimedwait
13935 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13936 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13937 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13938 cat >>confdefs.h
<<_ACEOF
13939 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13946 # This is needed for RHEL 5 and uclibc-ng < 1.0.39.
13947 # These did not define ADDR_NO_RANDOMIZE in sys/personality.h,
13948 # only in linux/personality.h.
13949 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
13951 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
13957 cat >>confdefs.h
<<_ACEOF
13958 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
13962 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13963 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
13969 cat >>confdefs.h
<<_ACEOF
13970 #define HAVE_DECL_STRSTR $ac_have_decl
13974 # ----------------------- #
13975 # Checks for structures. #
13976 # ----------------------- #
13978 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13979 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
13981 cat >>confdefs.h
<<_ACEOF
13982 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13987 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
13988 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
13990 cat >>confdefs.h
<<_ACEOF
13991 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13998 # On FreeBSD we need libutil for the kinfo_get* functions. On
13999 # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
14000 # Figure out which one to use.
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
14002 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
14003 if ${ac_cv_search_kinfo_getfile+:} false
; then :
14004 $as_echo_n "(cached) " >&6
14006 ac_func_search_save_LIBS
=$LIBS
14007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14008 /* end confdefs.h. */
14010 /* Override any GCC internal prototype to avoid an error.
14011 Use char because int might match the return type of a GCC
14012 builtin and then its argument prototype would still apply. */
14016 char kinfo_getfile ();
14020 return kinfo_getfile ();
14025 for ac_lib
in '' util util-freebsd
; do
14026 if test -z "$ac_lib"; then
14027 ac_res
="none required"
14030 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14032 if ac_fn_c_try_link
"$LINENO"; then :
14033 ac_cv_search_kinfo_getfile
=$ac_res
14035 rm -f core conftest.err conftest.
$ac_objext \
14037 if ${ac_cv_search_kinfo_getfile+:} false
; then :
14041 if ${ac_cv_search_kinfo_getfile+:} false
; then :
14044 ac_cv_search_kinfo_getfile
=no
14046 rm conftest.
$ac_ext
14047 LIBS
=$ac_func_search_save_LIBS
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
14050 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
14051 ac_res
=$ac_cv_search_kinfo_getfile
14052 if test "$ac_res" != no
; then :
14053 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14058 # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
14059 for ac_func
in kinfo_getfile
14061 ac_fn_c_check_func
"$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
14062 if test "x$ac_cv_func_kinfo_getfile" = xyes
; then :
14063 cat >>confdefs.h
<<_ACEOF
14064 #define HAVE_KINFO_GETFILE 1
14071 # ----------------------- #
14072 # Check for threading. #
14073 # ----------------------- #
14075 # Check whether --enable-threading was given.
14076 if test "${enable_threading+set}" = set; then :
14077 enableval
=$enable_threading; case "$enableval" in
14078 yes) want_threading
=yes ;;
14079 no
) want_threading
=no
;;
14080 *) as_fn_error $?
"bad value $enableval for threading" "$LINENO" 5 ;;
14087 # Check for std::thread. This does not work on some platforms, like
14090 ac_cpp
='$CXXCPP $CPPFLAGS'
14091 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14092 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14093 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
14100 ac_cpp
='$CPP $CPPFLAGS'
14101 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14102 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14103 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14107 # We used to check for pthread.h first, but this fails if pthread.h
14108 # requires special compiler flags (e.g. on Tru64 or Sequent).
14109 # It gets checked for in the link test anyway.
14111 # First of all, check if the user has set any of the PTHREAD_LIBS,
14112 # etcetera environment variables, and if threads linking works using
14114 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
14115 ax_pthread_save_CC
="$CC"
14116 ax_pthread_save_CFLAGS
="$CFLAGS"
14117 ax_pthread_save_LIBS
="$LIBS"
14118 if test "x$PTHREAD_CC" != "x"; then :
14121 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
14122 LIBS
="$PTHREAD_LIBS $LIBS"
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
14124 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
14125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14126 /* end confdefs.h. */
14128 /* Override any GCC internal prototype to avoid an error.
14129 Use char because int might match the return type of a GCC
14130 builtin and then its argument prototype would still apply. */
14134 char pthread_join ();
14138 return pthread_join ();
14143 if ac_fn_c_try_link
"$LINENO"; then :
14146 rm -f core conftest.err conftest.
$ac_objext \
14147 conftest
$ac_exeext conftest.
$ac_ext
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14149 $as_echo "$ax_pthread_ok" >&6; }
14150 if test "x$ax_pthread_ok" = "xno"; then
14154 CC
="$ax_pthread_save_CC"
14155 CFLAGS
="$ax_pthread_save_CFLAGS"
14156 LIBS
="$ax_pthread_save_LIBS"
14159 # We must check for the threads library under a number of different
14160 # names; the ordering is very important because some systems
14161 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14162 # libraries is broken (non-POSIX).
14164 # Create a list of thread flags to try. Items starting with a "-" are
14165 # C compiler flags, and other items are library names, except for "none"
14166 # which indicates that we try without any flags at all, and "pthread-config"
14167 # which is a program returning the flags for the Pth emulation library.
14169 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14171 # The ordering *is* (sometimes) important. Some notes on the
14172 # individual items follow:
14174 # pthreads: AIX (must check this before -lpthread)
14175 # none: in case threads are in libc; should be tried before -Kthread and
14176 # other compiler flags to prevent continual compiler warnings
14177 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14178 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
14179 # (Note: HP C rejects this with "bad form for `-t' option")
14180 # -pthreads: Solaris/gcc (Note: HP C also rejects)
14181 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14182 # doesn't hurt to check since this sometimes defines pthreads and
14183 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
14184 # is present but should not be used directly; and before -mthreads,
14185 # because the compiler interprets this as "-mt" + "-hreads")
14186 # -mthreads: Mingw32/gcc, Lynx/gcc
14187 # pthread: Linux, etcetera
14188 # --thread-safe: KAI C++
14189 # pthread-config: use pthread-config program (for GNU Pth library)
14195 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14196 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14198 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
14203 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
14204 # multi-threading and also sets -lpthread."
14206 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
14211 # IBM z/OS requires a feature-test macro to be defined in order to
14212 # enable POSIX threads at all, so give the user a hint if this is
14213 # not set. (We don't define these ourselves, as they can affect
14214 # other portions of the system API in unpredictable ways.)
14216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14217 /* end confdefs.h. */
14219 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
14220 AX_PTHREAD_ZOS_MISSING
14224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14225 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
14227 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
14235 # On Solaris (at least, for some versions), libc contains stubbed
14236 # (non-functional) versions of the pthreads routines, so link-based
14237 # tests will erroneously succeed. (N.B.: The stubs are missing
14238 # pthread_cleanup_push, or rather a function called by this macro,
14239 # so we could check for that, but who knows whether they'll stub
14240 # that too in a future libc.) So we'll check first for the
14241 # standard Solaris way of linking pthreads (-mt -lpthread).
14243 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
14247 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
14249 if test "x$GCC" = "xyes"; then :
14250 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
14253 # The presence of a feature test macro requesting re-entrant function
14254 # definitions is, on some systems, a strong hint that pthreads support is
14255 # correctly enabled
14258 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
14259 ax_pthread_check_macro
="_REENTRANT"
14263 ax_pthread_check_macro
="_THREAD_SAFE"
14267 ax_pthread_check_macro
="--"
14270 if test "x$ax_pthread_check_macro" = "x--"; then :
14271 ax_pthread_check_cond
=0
14273 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
14276 # Are we compiling with Clang?
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
14279 $as_echo_n "checking whether $CC is Clang... " >&6; }
14280 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
14281 $as_echo_n "(cached) " >&6
14283 ax_cv_PTHREAD_CLANG
=no
14284 # Note that Autoconf sets GCC=yes for Clang as well as GCC
14285 if test "x$GCC" = "xyes"; then
14286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14287 /* end confdefs.h. */
14288 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
14289 # if defined(__clang__) && defined(__llvm__)
14290 AX_PTHREAD_CC_IS_CLANG
14294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14295 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
14296 ax_cv_PTHREAD_CLANG
=yes
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
14304 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
14305 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
14307 ax_pthread_clang_warning
=no
14309 # Clang needs special handling, because older versions handle the -pthread
14310 # option in a rather... idiosyncratic way
14312 if test "x$ax_pthread_clang" = "xyes"; then
14314 # Clang takes -pthread; it has never supported any other flag
14316 # (Note 1: This will need to be revisited if a system that Clang
14317 # supports has POSIX threads in a separate library. This tends not
14318 # to be the way of modern systems, but it's conceivable.)
14320 # (Note 2: On some systems, notably Darwin, -pthread is not needed
14321 # to get POSIX threads support; the API is always present and
14322 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
14323 # -pthread does define _REENTRANT, and while the Darwin headers
14324 # ignore this macro, third-party headers might not.)
14326 PTHREAD_CFLAGS
="-pthread"
14331 # However, older versions of Clang make a point of warning the user
14332 # that, in an invocation where only linking and no compilation is
14333 # taking place, the -pthread option has no effect ("argument unused
14334 # during compilation"). They expect -pthread to be passed in only
14335 # when source code is being compiled.
14337 # Problem is, this is at odds with the way Automake and most other
14338 # C build frameworks function, which is that the same flags used in
14339 # compilation (CFLAGS) are also used in linking. Many systems
14340 # supported by AX_PTHREAD require exactly this for POSIX threads
14341 # support, and in fact it is often not straightforward to specify a
14342 # flag that is used only in the compilation phase and not in
14343 # linking. Such a scenario is extremely rare in practice.
14345 # Even though use of the -pthread flag in linking would only print
14346 # a warning, this can be a nuisance for well-run software projects
14347 # that build with -Werror. So if the active version of Clang has
14348 # this misfeature, we search for an option to squash it.
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
14351 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
14352 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
14353 $as_echo_n "(cached) " >&6
14355 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
14356 # Create an alternate version of $ac_link that compiles and
14357 # links in two steps (.c -> .o, .o -> exe) instead of one
14358 # (.c -> exe), because the warning occurs only in the second
14360 ax_pthread_save_ac_link
="$ac_link"
14361 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
14362 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
14363 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
14364 ax_pthread_save_CFLAGS
="$CFLAGS"
14365 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
14366 if test "x$ax_pthread_try" = "xunknown"; then :
14369 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
14370 ac_link
="$ax_pthread_save_ac_link"
14371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14372 /* end confdefs.h. */
14373 int main(void){return 0;}
14375 if ac_fn_c_try_link
"$LINENO"; then :
14376 ac_link
="$ax_pthread_2step_ac_link"
14377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14378 /* end confdefs.h. */
14379 int main(void){return 0;}
14381 if ac_fn_c_try_link
"$LINENO"; then :
14384 rm -f core conftest.err conftest.
$ac_objext \
14385 conftest
$ac_exeext conftest.
$ac_ext
14388 rm -f core conftest.err conftest.
$ac_objext \
14389 conftest
$ac_exeext conftest.
$ac_ext
14391 ac_link
="$ax_pthread_save_ac_link"
14392 CFLAGS
="$ax_pthread_save_CFLAGS"
14393 if test "x$ax_pthread_try" = "x"; then :
14396 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
14400 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
14402 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
14404 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
14407 fi # $ax_pthread_clang = yes
14409 if test "x$ax_pthread_ok" = "xno"; then
14410 for ax_pthread_try_flag
in $ax_pthread_flags; do
14412 case $ax_pthread_try_flag in
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14415 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
14420 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
14421 PTHREAD_CFLAGS
="-mt"
14422 PTHREAD_LIBS
="-lpthread"
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
14427 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
14428 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
14432 # Extract the first word of "pthread-config", so it can be a program name with args.
14433 set dummy pthread-config
; ac_word
=$2
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14435 $as_echo_n "checking for $ac_word... " >&6; }
14436 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
14437 $as_echo_n "(cached) " >&6
14439 if test -n "$ax_pthread_config"; then
14440 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
14442 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14443 for as_dir
in $PATH
14446 test -z "$as_dir" && as_dir
=.
14447 for ac_exec_ext
in '' $ac_executable_extensions; do
14448 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14449 ac_cv_prog_ax_pthread_config
="yes"
14450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14457 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
14460 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
14461 if test -n "$ax_pthread_config"; then
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
14463 $as_echo "$ax_pthread_config" >&6; }
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14466 $as_echo "no" >&6; }
14470 if test "x$ax_pthread_config" = "xno"; then :
14473 PTHREAD_CFLAGS
="`pthread-config --cflags`"
14474 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
14479 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
14480 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
14484 ax_pthread_save_CFLAGS
="$CFLAGS"
14485 ax_pthread_save_LIBS
="$LIBS"
14486 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
14487 LIBS
="$PTHREAD_LIBS $LIBS"
14489 # Check for various functions. We must include pthread.h,
14490 # since some functions may be macros. (On the Sequent, we
14491 # need a special flag -Kthread to make this header compile.)
14492 # We check for pthread_join because it is in -lpthread on IRIX
14493 # while pthread_create is in libc. We check for pthread_attr_init
14494 # due to DEC craziness with -lpthreads. We check for
14495 # pthread_cleanup_push because it is one of the few pthread
14496 # functions on Solaris that doesn't have a non-functional libc stub.
14497 # We try pthread_create on general principles.
14499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14500 /* end confdefs.h. */
14501 #include <pthread.h>
14502 # if $ax_pthread_check_cond
14503 # error "$ax_pthread_check_macro must be defined"
14505 static void routine(void *a) { a = 0; }
14506 static void *start_routine(void *a) { return a; }
14510 pthread_t th; pthread_attr_t attr;
14511 pthread_create(&th, 0, start_routine, 0);
14512 pthread_join(th, 0);
14513 pthread_attr_init(&attr);
14514 pthread_cleanup_push(routine, 0);
14515 pthread_cleanup_pop(0) /* ; */
14520 if ac_fn_c_try_link
"$LINENO"; then :
14523 rm -f core conftest.err conftest.
$ac_objext \
14524 conftest
$ac_exeext conftest.
$ac_ext
14526 CFLAGS
="$ax_pthread_save_CFLAGS"
14527 LIBS
="$ax_pthread_save_LIBS"
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14530 $as_echo "$ax_pthread_ok" >&6; }
14531 if test "x$ax_pthread_ok" = "xyes"; then :
14540 # Various other checks:
14541 if test "x$ax_pthread_ok" = "xyes"; then
14542 ax_pthread_save_CFLAGS
="$CFLAGS"
14543 ax_pthread_save_LIBS
="$LIBS"
14544 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
14545 LIBS
="$PTHREAD_LIBS $LIBS"
14547 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14549 $as_echo_n "checking for joinable pthread attribute... " >&6; }
14550 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
14551 $as_echo_n "(cached) " >&6
14553 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
14554 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
14555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14556 /* end confdefs.h. */
14557 #include <pthread.h>
14561 int attr = $ax_pthread_attr; return attr /* ; */
14566 if ac_fn_c_try_link
"$LINENO"; then :
14567 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
14569 rm -f core conftest.err conftest.
$ac_objext \
14570 conftest
$ac_exeext conftest.
$ac_ext
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
14575 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
14576 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
14577 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
14578 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
14580 cat >>confdefs.h
<<_ACEOF
14581 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
14584 ax_pthread_joinable_attr_defined
=yes
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
14589 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
14590 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
14591 $as_echo_n "(cached) " >&6
14593 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
14596 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
14602 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
14603 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
14604 test "x$ax_pthread_special_flags_added" != "xyes"; then :
14605 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
14606 ax_pthread_special_flags_added
=yes
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
14610 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
14611 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
14612 $as_echo_n "(cached) " >&6
14614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14615 /* end confdefs.h. */
14616 #include <pthread.h>
14620 int i = PTHREAD_PRIO_INHERIT;
14625 if ac_fn_c_try_link
"$LINENO"; then :
14626 ax_cv_PTHREAD_PRIO_INHERIT
=yes
14628 ax_cv_PTHREAD_PRIO_INHERIT
=no
14630 rm -f core conftest.err conftest.
$ac_objext \
14631 conftest
$ac_exeext conftest.
$ac_ext
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
14635 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
14636 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
14637 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
14639 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
14641 ax_pthread_prio_inherit_defined
=yes
14645 CFLAGS
="$ax_pthread_save_CFLAGS"
14646 LIBS
="$ax_pthread_save_LIBS"
14648 # More AIX lossage: compile with *_r variant
14649 if test "x$GCC" != "xyes"; then
14653 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
14654 #handle absolute path differently from PATH based program lookup
14657 if as_fn_executable_p
${CC}_r
; then :
14658 PTHREAD_CC
="${CC}_r"
14661 for ac_prog
in ${CC}_r
14663 # Extract the first word of "$ac_prog", so it can be a program name with args.
14664 set dummy
$ac_prog; ac_word
=$2
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14666 $as_echo_n "checking for $ac_word... " >&6; }
14667 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
14668 $as_echo_n "(cached) " >&6
14670 if test -n "$PTHREAD_CC"; then
14671 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
14673 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14674 for as_dir
in $PATH
14677 test -z "$as_dir" && as_dir
=.
14678 for ac_exec_ext
in '' $ac_executable_extensions; do
14679 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14680 ac_cv_prog_PTHREAD_CC
="$ac_prog"
14681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14690 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
14691 if test -n "$PTHREAD_CC"; then
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14693 $as_echo "$PTHREAD_CC" >&6; }
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14696 $as_echo "no" >&6; }
14700 test -n "$PTHREAD_CC" && break
14702 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
14713 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
14719 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14720 if test "x$ax_pthread_ok" = "xyes"; then
14728 ac_cpp
='$CXXCPP $CPPFLAGS'
14729 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14730 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14731 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
14734 if test "$threads" = "yes"; then
14736 LIBS
="$PTHREAD_LIBS $LIBS"
14737 save_CXXFLAGS
="$CXXFLAGS"
14738 CXXFLAGS
="$PTHREAD_CFLAGS $save_CXXFLAGS"
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
14740 $as_echo_n "checking for std::thread... " >&6; }
14741 if ${gdb_cv_cxx_std_thread+:} false
; then :
14742 $as_echo_n "(cached) " >&6
14744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14745 /* end confdefs.h. */
14747 void callback() { }
14751 std::thread t(callback);
14756 if ac_fn_cxx_try_compile
"$LINENO"; then :
14757 gdb_cv_cxx_std_thread
=yes
14759 gdb_cv_cxx_std_thread
=no
14761 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
14764 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
14766 # This check must be here, while LIBS includes any necessary
14767 # threading library.
14768 for ac_func
in pthread_sigmask pthread_setname_np
14770 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14771 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14772 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14773 cat >>confdefs.h
<<_ACEOF
14774 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14782 CXXFLAGS
="$save_CXXFLAGS"
14785 if test "$want_threading" = "yes"; then
14786 if test "$gdb_cv_cxx_std_thread" = "yes"; then
14788 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
14793 ac_cpp
='$CPP $CPPFLAGS'
14794 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14795 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14796 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
14800 $as_echo_n "checking for sigsetjmp... " >&6; }
14801 if ${gdb_cv_func_sigsetjmp+:} false
; then :
14802 $as_echo_n "(cached) " >&6
14804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14805 /* end confdefs.h. */
14806 #include <setjmp.h>
14811 while (! sigsetjmp (env, 1))
14812 siglongjmp (env, 1);
14818 if ac_fn_c_try_compile
"$LINENO"; then :
14819 gdb_cv_func_sigsetjmp
=yes
14821 gdb_cv_func_sigsetjmp
=no
14824 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
14828 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
14829 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
14831 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
14836 # Check whether --with-intel_pt was given.
14837 if test "${with_intel_pt+set}" = set; then :
14838 withval
=$with_intel_pt;
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
14844 $as_echo_n "checking whether to use intel pt... " >&6; }
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
14846 $as_echo "$with_intel_pt" >&6; }
14848 if test "${with_intel_pt}" = no
; then
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
14850 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
14853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14854 /* end confdefs.h. */
14856 #include <linux/perf_event.h>
14857 #ifndef PERF_ATTR_SIZE_VER5
14862 if ac_fn_c_try_cpp
"$LINENO"; then :
14867 rm -f conftest.err conftest.i conftest.
$ac_ext
14868 if test "$perf_event" != yes; then
14869 if test "$with_intel_pt" = yes; then
14870 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
14873 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
14887 acl_save_prefix
="$prefix"
14888 prefix
="$acl_final_prefix"
14889 acl_save_exec_prefix
="$exec_prefix"
14890 exec_prefix
="$acl_final_exec_prefix"
14892 eval additional_includedir
=\"$includedir\"
14893 eval additional_libdir
=\"$libdir\"
14895 exec_prefix
="$acl_save_exec_prefix"
14896 prefix
="$acl_save_prefix"
14899 # Check whether --with-libipt-prefix was given.
14900 if test "${with_libipt_prefix+set}" = set; then :
14901 withval
=$with_libipt_prefix;
14902 if test "X$withval" = "Xno"; then
14905 if test "X$withval" = "X"; then
14907 acl_save_prefix
="$prefix"
14908 prefix
="$acl_final_prefix"
14909 acl_save_exec_prefix
="$exec_prefix"
14910 exec_prefix
="$acl_final_exec_prefix"
14912 eval additional_includedir
=\"$includedir\"
14913 eval additional_libdir
=\"$libdir\"
14915 exec_prefix
="$acl_save_exec_prefix"
14916 prefix
="$acl_save_prefix"
14919 additional_includedir
="$withval/include"
14920 additional_libdir
="$withval/lib"
14927 # Check whether --with-libipt-type was given.
14928 if test "${with_libipt_type+set}" = set; then :
14929 withval
=$with_libipt_type; with_libipt_type
=$withval
14931 with_libipt_type
=auto
14934 lib_type
=`eval echo \$with_libipt_type`
14941 names_already_handled
=
14942 names_next_round
='ipt '
14943 while test -n "$names_next_round"; do
14944 names_this_round
="$names_next_round"
14946 for name
in $names_this_round; do
14948 for n
in $names_already_handled; do
14949 if test "$n" = "$name"; then
14950 already_handled
=yes
14954 if test -z "$already_handled"; then
14955 names_already_handled
="$names_already_handled $name"
14956 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14957 eval value
=\"\
$HAVE_LIB$uppername\"
14958 if test -n "$value"; then
14959 if test "$value" = yes; then
14960 eval value
=\"\
$LIB$uppername\"
14961 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
14962 eval value
=\"\
$LTLIB$uppername\"
14963 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
14972 if test $use_additional = yes; then
14973 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
14974 found_dir
="$additional_libdir"
14975 found_so
="$additional_libdir/lib$name.$shlibext"
14976 if test -f "$additional_libdir/lib$name.la"; then
14977 found_la
="$additional_libdir/lib$name.la"
14979 elif test x
$lib_type != xshared
; then
14980 if test -f "$additional_libdir/lib$name.$libext"; then
14981 found_dir
="$additional_libdir"
14982 found_a
="$additional_libdir/lib$name.$libext"
14983 if test -f "$additional_libdir/lib$name.la"; then
14984 found_la
="$additional_libdir/lib$name.la"
14989 if test "X$found_dir" = "X"; then
14990 for x
in $LDFLAGS $LTLIBIPT; do
14992 acl_save_prefix
="$prefix"
14993 prefix
="$acl_final_prefix"
14994 acl_save_exec_prefix
="$exec_prefix"
14995 exec_prefix
="$acl_final_exec_prefix"
14997 exec_prefix
="$acl_save_exec_prefix"
14998 prefix
="$acl_save_prefix"
15002 dir
=`echo "X$x" | sed -e 's/^X-L//'`
15003 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
15005 found_so
="$dir/lib$name.$shlibext"
15006 if test -f "$dir/lib$name.la"; then
15007 found_la
="$dir/lib$name.la"
15009 elif test x
$lib_type != xshared
; then
15010 if test -f "$dir/lib$name.$libext"; then
15012 found_a
="$dir/lib$name.$libext"
15013 if test -f "$dir/lib$name.la"; then
15014 found_la
="$dir/lib$name.la"
15020 if test "X$found_dir" != "X"; then
15025 if test "X$found_dir" != "X"; then
15026 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
15027 if test "X$found_so" != "X"; then
15028 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
15029 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
15032 for x
in $ltrpathdirs; do
15033 if test "X$x" = "X$found_dir"; then
15038 if test -z "$haveit"; then
15039 ltrpathdirs
="$ltrpathdirs $found_dir"
15041 if test "$hardcode_direct" = yes; then
15042 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
15044 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
15045 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
15047 for x
in $rpathdirs; do
15048 if test "X$x" = "X$found_dir"; then
15053 if test -z "$haveit"; then
15054 rpathdirs
="$rpathdirs $found_dir"
15058 for x
in $LDFLAGS $LIBIPT; do
15060 acl_save_prefix
="$prefix"
15061 prefix
="$acl_final_prefix"
15062 acl_save_exec_prefix
="$exec_prefix"
15063 exec_prefix
="$acl_final_exec_prefix"
15065 exec_prefix
="$acl_save_exec_prefix"
15066 prefix
="$acl_save_prefix"
15068 if test "X$x" = "X-L$found_dir"; then
15073 if test -z "$haveit"; then
15074 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
15076 if test "$hardcode_minus_L" != no
; then
15077 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
15079 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
15085 if test "X$found_a" != "X"; then
15086 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
15088 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
15091 additional_includedir
=
15092 case "$found_dir" in
15094 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15095 additional_includedir
="$basedir/include"
15098 if test "X$additional_includedir" != "X"; then
15099 if test "X$additional_includedir" != "X/usr/include"; then
15101 if test "X$additional_includedir" = "X/usr/local/include"; then
15102 if test -n "$GCC"; then
15104 linux
*) haveit
=yes;;
15108 if test -z "$haveit"; then
15109 for x
in $CPPFLAGS $INCIPT; do
15111 acl_save_prefix
="$prefix"
15112 prefix
="$acl_final_prefix"
15113 acl_save_exec_prefix
="$exec_prefix"
15114 exec_prefix
="$acl_final_exec_prefix"
15116 exec_prefix
="$acl_save_exec_prefix"
15117 prefix
="$acl_save_prefix"
15119 if test "X$x" = "X-I$additional_includedir"; then
15124 if test -z "$haveit"; then
15125 if test -d "$additional_includedir"; then
15126 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
15132 if test -n "$found_la"; then
15133 save_libdir
="$libdir"
15134 case "$found_la" in
15135 */* |
*\\*) .
"$found_la" ;;
15136 *) .
"./$found_la" ;;
15138 libdir
="$save_libdir"
15139 for dep
in $dependency_libs; do
15142 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
15143 if test "X$additional_libdir" != "X/usr/lib"; then
15145 if test "X$additional_libdir" = "X/usr/local/lib"; then
15146 if test -n "$GCC"; then
15148 linux
*) haveit
=yes;;
15152 if test -z "$haveit"; then
15154 for x
in $LDFLAGS $LIBIPT; do
15156 acl_save_prefix
="$prefix"
15157 prefix
="$acl_final_prefix"
15158 acl_save_exec_prefix
="$exec_prefix"
15159 exec_prefix
="$acl_final_exec_prefix"
15161 exec_prefix
="$acl_save_exec_prefix"
15162 prefix
="$acl_save_prefix"
15164 if test "X$x" = "X-L$additional_libdir"; then
15169 if test -z "$haveit"; then
15170 if test -d "$additional_libdir"; then
15171 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
15175 for x
in $LDFLAGS $LTLIBIPT; do
15177 acl_save_prefix
="$prefix"
15178 prefix
="$acl_final_prefix"
15179 acl_save_exec_prefix
="$exec_prefix"
15180 exec_prefix
="$acl_final_exec_prefix"
15182 exec_prefix
="$acl_save_exec_prefix"
15183 prefix
="$acl_save_prefix"
15185 if test "X$x" = "X-L$additional_libdir"; then
15190 if test -z "$haveit"; then
15191 if test -d "$additional_libdir"; then
15192 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
15199 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
15200 if test "$enable_rpath" != no
; then
15202 for x
in $rpathdirs; do
15203 if test "X$x" = "X$dir"; then
15208 if test -z "$haveit"; then
15209 rpathdirs
="$rpathdirs $dir"
15212 for x
in $ltrpathdirs; do
15213 if test "X$x" = "X$dir"; then
15218 if test -z "$haveit"; then
15219 ltrpathdirs
="$ltrpathdirs $dir"
15224 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15227 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15230 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
15231 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
15237 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
15238 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
15239 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
15241 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
15242 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
15249 if test "X$rpathdirs" != "X"; then
15250 if test -n "$hardcode_libdir_separator"; then
15252 for found_dir
in $rpathdirs; do
15253 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15255 acl_save_libdir
="$libdir"
15257 eval flag
=\"$hardcode_libdir_flag_spec\"
15258 libdir
="$acl_save_libdir"
15259 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
15261 for found_dir
in $rpathdirs; do
15262 acl_save_libdir
="$libdir"
15263 libdir
="$found_dir"
15264 eval flag
=\"$hardcode_libdir_flag_spec\"
15265 libdir
="$acl_save_libdir"
15266 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
15270 if test "X$ltrpathdirs" != "X"; then
15271 for found_dir
in $ltrpathdirs; do
15272 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
15277 ac_save_CPPFLAGS
="$CPPFLAGS"
15279 for element
in $INCIPT; do
15281 for x
in $CPPFLAGS; do
15283 acl_save_prefix
="$prefix"
15284 prefix
="$acl_final_prefix"
15285 acl_save_exec_prefix
="$exec_prefix"
15286 exec_prefix
="$acl_final_exec_prefix"
15288 exec_prefix
="$acl_save_exec_prefix"
15289 prefix
="$acl_save_prefix"
15291 if test "X$x" = "X$element"; then
15296 if test -z "$haveit"; then
15297 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
15303 $as_echo_n "checking for libipt... " >&6; }
15304 if ${ac_cv_libipt+:} false
; then :
15305 $as_echo_n "(cached) " >&6
15308 ac_save_LIBS
="$LIBS"
15309 LIBS
="$LIBS $LIBIPT"
15310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15311 /* end confdefs.h. */
15312 #include "intel-pt.h"
15316 pt_insn_alloc_decoder (0);
15321 if ac_fn_c_try_link
"$LINENO"; then :
15326 rm -f core conftest.err conftest.
$ac_objext \
15327 conftest
$ac_exeext conftest.
$ac_ext
15328 LIBS
="$ac_save_LIBS"
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
15332 $as_echo "$ac_cv_libipt" >&6; }
15333 if test "$ac_cv_libipt" = yes; then
15336 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
15339 $as_echo_n "checking how to link with libipt... " >&6; }
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
15341 $as_echo "$LIBIPT" >&6; }
15344 CPPFLAGS
="$ac_save_CPPFLAGS"
15354 if test "$HAVE_LIBIPT" != yes; then
15355 if test "$with_intel_pt" = yes; then
15356 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
15359 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
15363 LIBS
="$LIBS $LIBIPT"
15364 for ac_func
in pt_insn_event
15366 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
15367 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
15368 cat >>confdefs.h
<<_ACEOF
15369 #define HAVE_PT_INSN_EVENT 1
15375 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
15377 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
15379 cat >>confdefs.h
<<_ACEOF
15380 #define HAVE_STRUCT_PT_INSN_ENABLED 1
15385 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
15387 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
15389 cat >>confdefs.h
<<_ACEOF
15390 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
15400 # Check if the compiler and runtime support printing long longs.
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
15403 $as_echo_n "checking for long long support in printf... " >&6; }
15404 if ${gdb_cv_printf_has_long_long+:} false
; then :
15405 $as_echo_n "(cached) " >&6
15407 if test "$cross_compiling" = yes; then :
15408 gdb_cv_printf_has_long_long
=no
15410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15411 /* end confdefs.h. */
15412 $ac_includes_default
15418 l = (l << 16) + 0x0123;
15419 l = (l << 16) + 0x4567;
15420 l = (l << 16) + 0x89ab;
15421 l = (l << 16) + 0xcdef;
15422 sprintf (buf, "0x%016llx", l);
15423 return (strcmp ("0x0123456789abcdef", buf));
15428 if ac_fn_c_try_run
"$LINENO"; then :
15429 gdb_cv_printf_has_long_long
=yes
15431 gdb_cv_printf_has_long_long
=no
15433 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15434 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
15439 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
15440 if test "$gdb_cv_printf_has_long_long" = yes; then
15442 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
15447 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
15449 for ac_header
in sys
/procfs.h
15451 ac_fn_c_check_header_mongrel
"$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
15452 if test "x$ac_cv_header_sys_procfs_h" = xyes
; then :
15453 cat >>confdefs.h
<<_ACEOF
15454 #define HAVE_SYS_PROCFS_H 1
15461 if test "$ac_cv_header_sys_procfs_h" = yes; then
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
15464 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
15465 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
15466 $as_echo_n "(cached) " >&6
15468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15469 /* end confdefs.h. */
15472 #include <sys/procfs.h>
15481 if ac_fn_c_try_compile
"$LINENO"; then :
15482 bfd_cv_have_sys_procfs_type_gregset_t
=yes
15484 bfd_cv_have_sys_procfs_type_gregset_t
=no
15487 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15490 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
15492 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
15496 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
15500 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
15501 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
15502 $as_echo_n "(cached) " >&6
15504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15505 /* end confdefs.h. */
15508 #include <sys/procfs.h>
15517 if ac_fn_c_try_compile
"$LINENO"; then :
15518 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
15520 bfd_cv_have_sys_procfs_type_fpregset_t
=no
15523 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15526 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
15528 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
15532 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
15536 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
15537 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
15538 $as_echo_n "(cached) " >&6
15540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15541 /* end confdefs.h. */
15544 #include <sys/procfs.h>
15553 if ac_fn_c_try_compile
"$LINENO"; then :
15554 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
15556 bfd_cv_have_sys_procfs_type_prgregset_t
=no
15559 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15562 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
15564 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
15568 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
15572 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
15573 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
15574 $as_echo_n "(cached) " >&6
15576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15577 /* end confdefs.h. */
15580 #include <sys/procfs.h>
15589 if ac_fn_c_try_compile
"$LINENO"; then :
15590 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
15592 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
15595 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15598 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
15600 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
15603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
15604 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
15608 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
15609 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
15610 $as_echo_n "(cached) " >&6
15612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15613 /* end confdefs.h. */
15616 #include <sys/procfs.h>
15625 if ac_fn_c_try_compile
"$LINENO"; then :
15626 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
15628 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
15631 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15634 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
15636 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
15639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
15640 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
15644 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
15645 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
15646 $as_echo_n "(cached) " >&6
15648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15649 /* end confdefs.h. */
15652 #include <sys/procfs.h>
15661 if ac_fn_c_try_compile
"$LINENO"; then :
15662 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
15664 bfd_cv_have_sys_procfs_type_lwpid_t
=no
15667 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15670 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
15672 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
15676 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
15680 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
15681 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
15682 $as_echo_n "(cached) " >&6
15684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15685 /* end confdefs.h. */
15688 #include <sys/procfs.h>
15697 if ac_fn_c_try_compile
"$LINENO"; then :
15698 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
15700 bfd_cv_have_sys_procfs_type_psaddr_t
=no
15703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15706 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
15708 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
15712 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
15716 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
15717 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
15718 $as_echo_n "(cached) " >&6
15720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15721 /* end confdefs.h. */
15724 #include <sys/procfs.h>
15728 elf_fpregset_t avar
15733 if ac_fn_c_try_compile
"$LINENO"; then :
15734 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
15736 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
15739 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15742 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
15744 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
15748 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
15753 # Check the return and argument types of ptrace.
15756 for ac_header
in sys
/ptrace.h ptrace.h
15758 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15759 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15760 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
15761 cat >>confdefs.h
<<_ACEOF
15762 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15770 gdb_ptrace_headers
='
15771 #include <sys/types.h>
15772 #if HAVE_SYS_PTRACE_H
15773 # include <sys/ptrace.h>
15776 # include <unistd.h>
15780 # Check return type. Varargs (used on GNU/Linux) conflict with the
15781 # empty argument list, so check for that explicitly.
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
15783 $as_echo_n "checking return type of ptrace... " >&6; }
15784 if ${gdb_cv_func_ptrace_ret+:} false
; then :
15785 $as_echo_n "(cached) " >&6
15787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15788 /* end confdefs.h. */
15789 Â $gdb_ptrace_headers
15793 extern long ptrace (enum __ptrace_request, ...);
15799 if ac_fn_c_try_compile
"$LINENO"; then :
15800 gdb_cv_func_ptrace_ret
='long'
15802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15803 /* end confdefs.h. */
15804 $gdb_ptrace_headers
15808 extern int ptrace ();
15814 if ac_fn_c_try_compile
"$LINENO"; then :
15815 gdb_cv_func_ptrace_ret
='int'
15817 gdb_cv_func_ptrace_ret
='long'
15820 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15823 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
15827 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
15830 cat >>confdefs.h
<<_ACEOF
15831 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
15835 # Check argument types.
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
15837 $as_echo_n "checking types of arguments for ptrace... " >&6; }
15838 if ${gdb_cv_func_ptrace_args+:} false
; then :
15839 $as_echo_n "(cached) " >&6
15841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15842 /* end confdefs.h. */
15843 $gdb_ptrace_headers
15847 extern long ptrace (enum __ptrace_request, ...);
15853 if ac_fn_c_try_compile
"$LINENO"; then :
15854 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
15856 for gdb_arg1
in 'int' 'long'; do
15857 for gdb_arg2
in 'pid_t' 'int' 'long'; do
15858 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
15859 for gdb_arg4
in 'int' 'long' 'void *'; do
15860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15861 /* end confdefs.h. */
15862 $gdb_ptrace_headers
15866 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
15872 if ac_fn_c_try_compile
"$LINENO"; then :
15873 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
15877 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15879 for gdb_arg5
in 'int *' 'int' 'long'; do
15880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15881 /* end confdefs.h. */
15882 $gdb_ptrace_headers
15886 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
15892 if ac_fn_c_try_compile
"$LINENO"; then :
15893 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
15897 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15903 # Provide a safe default value.
15904 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
15907 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
15911 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
15913 ac_save_IFS
=$IFS; IFS
=','
15914 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
15918 cat >>confdefs.h
<<_ACEOF
15919 #define PTRACE_TYPE_ARG1 $1
15923 cat >>confdefs.h
<<_ACEOF
15924 #define PTRACE_TYPE_ARG3 $3
15928 cat >>confdefs.h
<<_ACEOF
15929 #define PTRACE_TYPE_ARG4 $4
15932 if test -n "$5"; then
15934 cat >>confdefs.h
<<_ACEOF
15935 #define PTRACE_TYPE_ARG5 $5
15941 if test "$cross_compiling" = no
; then
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
15943 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
15944 if ${ac_cv_func_setpgrp_void+:} false
; then :
15945 $as_echo_n "(cached) " >&6
15947 if test "$cross_compiling" = yes; then :
15948 as_fn_error $?
"cannot check setpgrp when cross compiling" "$LINENO" 5
15950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15951 /* end confdefs.h. */
15952 $ac_includes_default
15956 /* If this system has a BSD-style setpgrp which takes arguments,
15957 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
15958 exit successfully. */
15959 return setpgrp (1,1) != -1;
15964 if ac_fn_c_try_run
"$LINENO"; then :
15965 ac_cv_func_setpgrp_void
=no
15967 ac_cv_func_setpgrp_void
=yes
15969 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15970 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
15975 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
15976 if test $ac_cv_func_setpgrp_void = yes; then
15978 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
15984 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
15985 if ${ac_cv_func_setpgrp_void+:} false
; then :
15986 $as_echo_n "(cached) " >&6
15988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15989 /* end confdefs.h. */
15990 #include <unistd.h>
15994 if (setpgrp(1,1) == -1)
16003 if ac_fn_c_try_compile
"$LINENO"; then :
16004 ac_cv_func_setpgrp_void
=no
16006 ac_cv_func_setpgrp_void
=yes
16009 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
16013 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
16014 if test "$ac_cv_func_setpgrp_void" = yes; then
16015 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
16020 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
16021 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
16022 #include <sys/proc.h>
16025 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes
; then :
16027 cat >>confdefs.h
<<_ACEOF
16028 #define HAVE_STRUCT_THREAD_TD_PCB 1
16035 # See if <sys/lwp.h> defines `struct lwp`.
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
16037 $as_echo_n "checking for struct lwp... " >&6; }
16038 if ${gdb_cv_struct_lwp+:} false
; then :
16039 $as_echo_n "(cached) " >&6
16041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16042 /* end confdefs.h. */
16043 #include <sys/param.h>
16045 #include <sys/lwp.h>
16055 if ac_fn_c_try_compile
"$LINENO"; then :
16056 gdb_cv_struct_lwp
=yes
16058 gdb_cv_struct_lwp
=no
16061 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
16065 $as_echo "$gdb_cv_struct_lwp" >&6; }
16066 if test "$gdb_cv_struct_lwp" = yes; then
16068 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
16072 # See if <machine/reg.h> degines `struct reg'.
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
16074 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
16075 if ${gdb_cv_struct_reg+:} false
; then :
16076 $as_echo_n "(cached) " >&6
16078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16079 /* end confdefs.h. */
16080 #include <sys/types.h>
16081 #include <machine/reg.h>
16091 if ac_fn_c_try_compile
"$LINENO"; then :
16092 gdb_cv_struct_reg
=yes
16094 gdb_cv_struct_reg
=no
16097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
16101 $as_echo "$gdb_cv_struct_reg" >&6; }
16102 if test "$gdb_cv_struct_reg" = yes; then
16104 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
16108 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
16109 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
16110 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
16111 #include <machine/reg.h>
16113 if test "x$ac_cv_member_struct_reg_r_fs" = xyes
; then :
16115 cat >>confdefs.h
<<_ACEOF
16116 #define HAVE_STRUCT_REG_R_FS 1
16121 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
16122 #include <machine/reg.h>
16124 if test "x$ac_cv_member_struct_reg_r_gs" = xyes
; then :
16126 cat >>confdefs.h
<<_ACEOF
16127 #define HAVE_STRUCT_REG_R_GS 1
16134 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
16136 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
16137 if ${gdb_cv_have_ptrace_getregs+:} false
; then :
16138 $as_echo_n "(cached) " >&6
16140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16141 /* end confdefs.h. */
16142 #include <sys/ptrace.h>
16151 if ac_fn_c_try_compile
"$LINENO"; then :
16152 gdb_cv_have_ptrace_getregs
=yes
16154 gdb_cv_have_ptrace_getregs
=no
16157 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
16162 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
16163 if test "$gdb_cv_have_ptrace_getregs" = yes; then
16165 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
16169 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
16171 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
16172 if ${gdb_cv_have_ptrace_getfpxregs+:} false
; then :
16173 $as_echo_n "(cached) " >&6
16175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16176 /* end confdefs.h. */
16177 #include <sys/ptrace.h>
16186 if ac_fn_c_try_compile
"$LINENO"; then :
16187 gdb_cv_have_ptrace_getfpxregs
=yes
16189 gdb_cv_have_ptrace_getfpxregs
=no
16192 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
16197 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
16198 if test "$gdb_cv_have_ptrace_getfpxregs" = yes; then
16200 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
16204 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
16206 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
16207 if ${gdb_cv_have_pt_getdbregs+:} false
; then :
16208 $as_echo_n "(cached) " >&6
16210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16211 /* end confdefs.h. */
16212 #include <sys/types.h>
16213 #include <sys/ptrace.h>
16223 if ac_fn_c_try_compile
"$LINENO"; then :
16224 gdb_cv_have_pt_getdbregs
=yes
16226 gdb_cv_have_pt_getdbregs
=no
16229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
16234 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
16235 if test "$gdb_cv_have_pt_getdbregs" = yes; then
16237 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
16241 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
16242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
16243 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
16244 if ${gdb_cv_have_pt_getxmmregs+:} false
; then :
16245 $as_echo_n "(cached) " >&6
16247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16248 /* end confdefs.h. */
16249 #include <sys/types.h>
16250 #include <sys/ptrace.h>
16260 if ac_fn_c_try_compile
"$LINENO"; then :
16261 gdb_cv_have_pt_getxmmregs
=yes
16263 gdb_cv_have_pt_getxmmregs
=no
16266 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
16271 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
16272 if test "$gdb_cv_have_pt_getxmmregs" = yes; then
16274 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
16278 # See if <sys/ptrace.h> supports LWP names on FreeBSD
16279 # Older FreeBSD versions don't have the pl_tdname member of
16280 # `struct ptrace_lwpinfo'.
16281 ac_fn_c_check_member
"$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
16283 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes
; then :
16285 cat >>confdefs.h
<<_ACEOF
16286 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
16293 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
16294 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
16296 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>
16298 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes
; then :
16300 cat >>confdefs.h
<<_ACEOF
16301 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
16308 # Check if the compiler supports the `long long' type.
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
16311 $as_echo_n "checking for long long support in compiler... " >&6; }
16312 if ${gdb_cv_c_long_long+:} false
; then :
16313 $as_echo_n "(cached) " >&6
16315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16316 /* end confdefs.h. */
16317 extern long long foo;
16321 switch (foo & 2) { case 0: return 1; }
16326 if ac_fn_c_try_compile
"$LINENO"; then :
16327 gdb_cv_c_long_long
=yes
16329 gdb_cv_c_long_long
=no
16331 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
16334 $as_echo "$gdb_cv_c_long_long" >&6; }
16335 if test "$gdb_cv_c_long_long" != yes; then
16336 # libdecnumber requires long long.
16337 as_fn_error $?
"Compiler must support long long for GDB." "$LINENO" 5
16340 # Check if the compiler and runtime support printing decfloats.
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
16343 $as_echo_n "checking for decfloat support in printf... " >&6; }
16344 if ${gdb_cv_printf_has_decfloat+:} false
; then :
16345 $as_echo_n "(cached) " >&6
16347 if test "$cross_compiling" = yes; then :
16348 gdb_cv_printf_has_decfloat
=no
16350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16351 /* end confdefs.h. */
16352 $ac_includes_default
16357 _Decimal32 d32 = 1.2345df;
16358 _Decimal64 d64 = 1.2345dd;
16359 _Decimal128 d128 = 1.2345dl;
16360 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
16361 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
16366 if ac_fn_c_try_run
"$LINENO"; then :
16367 gdb_cv_printf_has_decfloat
=yes
16369 gdb_cv_printf_has_decfloat
=no
16371 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16372 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
16377 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
16378 if test "$gdb_cv_printf_has_decfloat" = yes; then
16380 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
16384 # Check if the compiler supports the `long double' type. We can't use
16385 # AC_C_LONG_DOUBLE because that one does additional checks on the
16386 # constants defined in <float.h> that fail on some systems,
16387 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
16390 $as_echo_n "checking for long double support in compiler... " >&6; }
16391 if ${gdb_cv_c_long_double+:} false
; then :
16392 $as_echo_n "(cached) " >&6
16394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16395 /* end confdefs.h. */
16398 if ac_fn_c_try_compile
"$LINENO"; then :
16399 gdb_cv_c_long_double
=yes
16401 gdb_cv_c_long_double
=no
16403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
16406 $as_echo "$gdb_cv_c_long_double" >&6; }
16407 if test "$gdb_cv_c_long_double" = yes; then
16409 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
16413 # Check if the compiler and runtime support printing long doubles.
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
16416 $as_echo_n "checking for long double support in printf... " >&6; }
16417 if ${gdb_cv_printf_has_long_double+:} false
; then :
16418 $as_echo_n "(cached) " >&6
16420 if test "$cross_compiling" = yes; then :
16421 gdb_cv_printf_has_long_double
=no
16423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16424 /* end confdefs.h. */
16425 $ac_includes_default
16430 long double f = 3.141592653;
16431 sprintf (buf, "%Lg", f);
16432 return (strncmp ("3.14159", buf, 7));
16437 if ac_fn_c_try_run
"$LINENO"; then :
16438 gdb_cv_printf_has_long_double
=yes
16440 gdb_cv_printf_has_long_double
=no
16442 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16443 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
16448 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
16449 if test "$gdb_cv_printf_has_long_double" = yes; then
16451 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
16455 # Check if the compiler and runtime support scanning long doubles.
16457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
16458 $as_echo_n "checking for long double support in scanf... " >&6; }
16459 if ${gdb_cv_scanf_has_long_double+:} false
; then :
16460 $as_echo_n "(cached) " >&6
16462 if test "$cross_compiling" = yes; then :
16463 gdb_cv_scanf_has_long_double
=no
16465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16466 /* end confdefs.h. */
16471 char *buf = "3.141592653";
16473 sscanf (buf, "%Lg", &f);
16474 return !(f > 3.14159 && f < 3.14160);
16479 if ac_fn_c_try_run
"$LINENO"; then :
16480 gdb_cv_scanf_has_long_double
=yes
16482 gdb_cv_scanf_has_long_double
=no
16484 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16485 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
16490 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
16491 if test "$gdb_cv_scanf_has_long_double" = yes; then
16493 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
16499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
16500 $as_echo_n "checking for -bbigtoc option... " >&6; }
16501 if ${gdb_cv_bigtoc+:} false
; then :
16502 $as_echo_n "(cached) " >&6
16504 SAVE_LDFLAGS
=$LDFLAGS
16507 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
16508 *) gdb_cv_bigtoc
=-bbigtoc ;;
16511 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
16512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16513 /* end confdefs.h. */
16523 if ac_fn_c_try_link
"$LINENO"; then :
16529 rm -f core conftest.err conftest.
$ac_objext \
16530 conftest
$ac_exeext conftest.
$ac_ext
16531 LDFLAGS
="${SAVE_LDFLAGS}"
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
16535 $as_echo "$gdb_cv_bigtoc" >&6; }
16536 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
16541 $as_echo_n "checking for the dynamic export flag... " >&6; }
16543 if test "${gdb_native}" = yes; then
16544 # The dynamically loaded libthread_db needs access to symbols in the gdb
16545 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
16546 # may not be supported there.
16547 old_LDFLAGS
="$LDFLAGS"
16548 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
16549 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
16550 LDFLAGS
="$LDFLAGS $RDYNAMIC"
16551 if test "${have_libpython}" = no
; then
16552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16553 /* end confdefs.h. */
16563 if ac_fn_c_try_link
"$LINENO"; then :
16566 rm -f core conftest.err conftest.
$ac_objext \
16567 conftest
$ac_exeext conftest.
$ac_ext
16569 # Workaround http://bugs.python.org/issue4434 where static
16570 # libpythonX.Y.a would get its symbols required for
16571 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
16572 # Problem does not happen for the recommended libpythonX.Y.so linkage.
16574 # Note the workaround for Python
16575 # http://bugs.python.org/issue10112 earlier has removed
16576 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
16577 # here too, as otherwise it'd make this -Wl,--dynamic-list test
16579 old_CFLAGS
="$CFLAGS"
16580 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
16582 LIBS
="$LIBS $PYTHON_LIBS"
16583 old_CPPFLAGS
="$CPPFLAGS"
16584 CPPFLAGS
="$CPPFLAGS $PYTHON_CPPFLAGS"
16585 if test "$cross_compiling" = yes; then :
16588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16589 /* end confdefs.h. */
16590 #include "Python.h"
16596 err = PyRun_SimpleString ("import ctypes\n");
16598 return err == 0 ? 0 : 1;
16603 if ac_fn_c_try_run
"$LINENO"; then :
16606 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16607 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16611 CFLAGS
="$old_CFLAGS"
16612 CPPFLAGS
="$old_CPPFLAGS"
16614 LDFLAGS
="$old_LDFLAGS"
16616 if $dynamic_list; then
16617 found
="-Wl,--dynamic-list"
16618 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
16621 RDYNAMIC
="-rdynamic"
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
16625 $as_echo "$found" >&6; }
16627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether execinfo.h backtrace is available" >&5
16628 $as_echo_n "checking whether execinfo.h backtrace is available... " >&6; }
16629 if ${gdb_cv_execinfo_backtrace+:} false
; then :
16630 $as_echo_n "(cached) " >&6
16632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16633 /* end confdefs.h. */
16635 #include <execinfo.h>
16643 f = backtrace (b, 2);
16644 backtrace_symbols_fd (b, f, 2);
16650 if ac_fn_c_try_link
"$LINENO"; then :
16651 gdb_cv_execinfo_backtrace
=yes
16653 gdb_cv_execinfo_backtrace
=no
16655 rm -f core conftest.err conftest.
$ac_objext \
16656 conftest
$ac_exeext conftest.
$ac_ext
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_execinfo_backtrace" >&5
16659 $as_echo "$gdb_cv_execinfo_backtrace" >&6; }
16660 if test "$gdb_cv_execinfo_backtrace" = yes; then
16662 $as_echo "#define HAVE_EXECINFO_BACKTRACE 1" >>confdefs.h
16667 if test "${build}" = "${host}" -a "${host}" = "${target}" ; then
16670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
16671 $as_echo_n "checking for AiX thread debugging library... " >&6; }
16672 if ${gdb_cv_have_aix_thread_debug+:} false
; then :
16673 $as_echo_n "(cached) " >&6
16675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16676 /* end confdefs.h. */
16677 #include <sys/pthdebug.h>
16681 #ifndef PTHDB_VERSION_3
16689 if ac_fn_c_try_compile
"$LINENO"; then :
16690 gdb_cv_have_aix_thread_debug
=yes
16692 gdb_cv_have_aix_thread_debug
=no
16695 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
16700 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
16701 if test "$gdb_cv_have_aix_thread_debug" = yes; then
16702 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
16703 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
16704 LIBS
="$LIBS -lpthdebug"
16706 # Older versions of AIX do not provide the declaration for
16707 # the getthrds function (it appears that it was introduced
16709 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
16711 if test "x$ac_cv_have_decl_getthrds" = xyes
; then :
16717 cat >>confdefs.h
<<_ACEOF
16718 #define HAVE_DECL_GETTHRDS $ac_have_decl
16727 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
16729 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
16730 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false
; then :
16731 $as_echo_n "(cached) " >&6
16733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16734 /* end confdefs.h. */
16735 #include <thread_db.h>
16739 int i = TD_NOTALLOC;
16745 if ac_fn_c_try_compile
"$LINENO"; then :
16746 gdb_cv_thread_db_h_has_td_notalloc
=yes
16748 gdb_cv_thread_db_h_has_td_notalloc
=no
16751 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
16755 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
16758 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
16759 if ${gdb_cv_thread_db_h_has_td_version+:} false
; then :
16760 $as_echo_n "(cached) " >&6
16762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16763 /* end confdefs.h. */
16764 #include <thread_db.h>
16768 int i = TD_VERSION;
16774 if ac_fn_c_try_compile
"$LINENO"; then :
16775 gdb_cv_thread_db_h_has_td_version
=yes
16777 gdb_cv_thread_db_h_has_td_version
=no
16780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
16784 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
16787 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
16788 if ${gdb_cv_thread_db_h_has_td_notls+:} false
; then :
16789 $as_echo_n "(cached) " >&6
16791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16792 /* end confdefs.h. */
16793 #include <thread_db.h>
16803 if ac_fn_c_try_compile
"$LINENO"; then :
16804 gdb_cv_thread_db_h_has_td_notls
=yes
16806 gdb_cv_thread_db_h_has_td_notls
=no
16809 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
16813 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
16815 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
16817 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
16820 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
16822 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
16825 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
16827 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
16840 cat >>confdefs.h
<<_ACEOF
16841 #define GDBINIT "$gdbinit"
16846 cat >>confdefs.h
<<_ACEOF
16847 #define GDBEARLYINIT ".gdbearlyinit"
16852 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
16853 # except that the argument to --with-sysroot is optional.
16854 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
16855 if test "x$with_sysroot" = xyes
; then
16856 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
16859 # Check whether --with-sysroot was given.
16860 if test "${with_sysroot+set}" = set; then :
16861 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
16863 TARGET_SYSTEM_ROOT
=
16867 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16868 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16869 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
16870 ac_define_dir
=`eval echo $ac_define_dir`
16872 cat >>confdefs.h
<<_ACEOF
16873 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
16879 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16880 if test "x$prefix" = xNONE
; then
16881 test_prefix
=/usr
/local
16883 test_prefix
=$prefix
16886 test_prefix
=$exec_prefix
16889 case ${ac_define_dir} in
16890 "${test_prefix}"|
"${test_prefix}/"*|\
16891 '${exec_prefix}'|
'${exec_prefix}/'*)
16896 cat >>confdefs.h
<<_ACEOF
16897 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
16904 # Check whether --with-system-gdbinit was given.
16905 if test "${with_system_gdbinit+set}" = set; then :
16906 withval
=$with_system_gdbinit;
16907 SYSTEM_GDBINIT
=$withval
16913 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16914 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16915 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
16916 ac_define_dir
=`eval echo $ac_define_dir`
16918 cat >>confdefs.h
<<_ACEOF
16919 #define SYSTEM_GDBINIT "$ac_define_dir"
16925 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16926 if test "x$prefix" = xNONE
; then
16927 test_prefix
=/usr
/local
16929 test_prefix
=$prefix
16932 test_prefix
=$exec_prefix
16935 case ${ac_define_dir} in
16936 "${test_prefix}"|
"${test_prefix}/"*|\
16937 '${exec_prefix}'|
'${exec_prefix}/'*)
16942 cat >>confdefs.h
<<_ACEOF
16943 #define SYSTEM_GDBINIT_RELOCATABLE $value
16950 # Check whether --with-system-gdbinit-dir was given.
16951 if test "${with_system_gdbinit_dir+set}" = set; then :
16952 withval
=$with_system_gdbinit_dir;
16953 SYSTEM_GDBINIT_DIR
=$withval
16955 SYSTEM_GDBINIT_DIR
=
16959 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16960 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16961 ac_define_dir
=`eval echo $SYSTEM_GDBINIT_DIR`
16962 ac_define_dir
=`eval echo $ac_define_dir`
16964 cat >>confdefs.h
<<_ACEOF
16965 #define SYSTEM_GDBINIT_DIR "$ac_define_dir"
16971 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16972 if test "x$prefix" = xNONE
; then
16973 test_prefix
=/usr
/local
16975 test_prefix
=$prefix
16978 test_prefix
=$exec_prefix
16981 case ${ac_define_dir} in
16982 "${test_prefix}"|
"${test_prefix}/"*|\
16983 '${exec_prefix}'|
'${exec_prefix}/'*)
16988 cat >>confdefs.h
<<_ACEOF
16989 #define SYSTEM_GDBINIT_DIR_RELOCATABLE $value
16996 # Check whether --enable-werror was given.
16997 if test "${enable_werror+set}" = set; then :
16998 enableval
=$enable_werror; case "${enableval}" in
16999 yes | y
) ERROR_ON_WARNING
="yes" ;;
17000 no | n
) ERROR_ON_WARNING
="no" ;;
17001 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
17006 # Enable -Werror by default when using gcc. Turn it off for releases.
17007 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
17008 ERROR_ON_WARNING
=yes
17012 if test "${ERROR_ON_WARNING}" = yes ; then
17013 WERROR_CFLAGS
="-Werror"
17016 # The options we'll try to enable.
17017 build_warnings
="-Wall -Wpointer-arith \
17018 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
17019 -Wno-switch -Wno-char-subscripts \
17020 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
17021 -Wno-sign-compare -Wno-error=maybe-uninitialized \
17022 -Wno-mismatched-tags \
17023 -Wno-error=deprecated-register \
17024 -Wsuggest-override \
17025 -Wimplicit-fallthrough=3 \
17026 -Wduplicated-cond \
17028 -Wdeprecated-copy \
17029 -Wdeprecated-copy-dtor \
17031 -Wmissing-declarations \
17032 -Wmissing-prototypes \
17033 -Wstrict-null-sentinel \
17038 # Enable -Wno-format by default when using gcc on mingw since many
17039 # GCC versions complain about %I64.
17040 build_warnings
="$build_warnings -Wno-format" ;;
17042 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
17043 # doesn't understand.
17044 build_warnings
="$build_warnings -Wno-unknown-pragmas"
17045 # Solaris 11 <unistd.h> marks vfork deprecated.
17046 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
17048 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
17049 # but there's a special case for this below.
17050 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
17053 # Check whether --enable-build-warnings was given.
17054 if test "${enable_build_warnings+set}" = set; then :
17055 enableval
=$enable_build_warnings; case "${enableval}" in
17057 no
) build_warnings
="-w";;
17058 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
17059 build_warnings
="${build_warnings} ${t}";;
17060 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
17061 build_warnings
="${t} ${build_warnings}";;
17062 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
17064 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
17065 echo "Setting compiler warning flags = $build_warnings" 6>&1
17068 # Check whether --enable-gdb-build-warnings was given.
17069 if test "${enable_gdb_build_warnings+set}" = set; then :
17070 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
17072 no
) build_warnings
="-w";;
17073 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
17074 build_warnings
="${build_warnings} ${t}";;
17075 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
17076 build_warnings
="${t} ${build_warnings}";;
17077 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
17079 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
17080 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
17084 # The set of warnings supported by a C++ compiler is not the same as
17085 # of the C compiler.
17087 ac_cpp
='$CXXCPP $CPPFLAGS'
17088 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17089 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17090 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
17094 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
17097 $as_echo_n "checking compiler warning flags... " >&6; }
17098 # Separate out the -Werror flag as some files just cannot be
17099 # compiled with it enabled.
17100 for w
in ${build_warnings}; do
17101 # GCC does not complain about -Wno-unknown-warning. Invert
17102 # and test -Wunknown-warning instead.
17105 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
17106 -Wformat-nonliteral)
17107 # gcc requires -Wformat before -Wformat-nonliteral
17108 # will work, so stick them together.
17117 -Werr*) WERROR_CFLAGS
=-Werror ;;
17119 # Check whether GCC accepts it.
17120 saved_CFLAGS
="$CFLAGS"
17121 CFLAGS
="$CFLAGS -Werror $wtest"
17122 saved_CXXFLAGS
="$CXXFLAGS"
17123 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
17124 if test "x$w" = "x-Wunused-variable"; then
17125 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
17126 # fixed in GCC 4.9. This test is derived from the gdb
17127 # source code that triggered this bug in GCC.
17128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17129 /* end confdefs.h. */
17130 struct scoped_restore_base {};
17131 struct scoped_restore_tmpl : public scoped_restore_base {
17132 ~scoped_restore_tmpl() {}
17137 const scoped_restore_base &b = scoped_restore_tmpl();
17143 if ac_fn_cxx_try_compile
"$LINENO"; then :
17144 WARN_CFLAGS
="${WARN_CFLAGS} $w"
17146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17149 /* end confdefs.h. */
17159 if ac_fn_cxx_try_compile
"$LINENO"; then :
17160 WARN_CFLAGS
="${WARN_CFLAGS} $w"
17162 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17164 CFLAGS
="$saved_CFLAGS"
17165 CXXFLAGS
="$saved_CXXFLAGS"
17168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
17169 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
17175 ac_cpp='$CPP $CPPFLAGS'
17176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17182 # Check whether --enable-ubsan was given.
17183 if test "${enable_ubsan+set}" = set; then :
17184 enableval=$enable_ubsan;
17189 if test "x
$enable_ubsan" = xauto; then
17190 if $development; then
17195 ac_cpp='$CXXCPP $CPPFLAGS'
17196 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17197 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17198 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17200 if test "x
$enable_ubsan" = xyes; then
17201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
-fsanitize=undefined is accepted
" >&5
17202 $as_echo_n "checking whether
-fsanitize=undefined is accepted...
" >&6; }
17203 saved_CXXFLAGS="$CXXFLAGS"
17204 CXXFLAGS="$CXXFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
17205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17206 /* end confdefs.h. */
17216 if ac_fn_cxx_try_link "$LINENO"; then :
17222 rm -f core conftest.err conftest.$ac_objext \
17223 conftest$ac_exeext conftest.$ac_ext
17224 CXXFLAGS="$saved_CXXFLAGS"
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $enable_ubsan" >&5
17226 $as_echo "$enable_ubsan" >&6; }
17227 if test "x
$enable_ubsan" = xyes; then
17228 WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
17229 CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined
"
17233 ac_cpp='$CPP $CPPFLAGS'
17234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17240 # In the Cygwin environment, we need some additional flags.
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
17242 $as_echo_n "checking
for cygwin...
" >&6; }
17243 if ${gdb_cv_os_cygwin+:} false; then :
17244 $as_echo_n "(cached
) " >&6
17246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17247 /* end confdefs.h. */
17249 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
17253 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
17254 $EGREP "^lose$
" >/dev/null 2>&1; then :
17255 gdb_cv_os_cygwin=yes
17257 gdb_cv_os_cygwin=no
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
17263 $as_echo "$gdb_cv_os_cygwin" >&6; }
17266 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
17268 *go32* ) SER_HARDWIRE=ser-go32.o ;;
17269 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
17270 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
17271 *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o
" ;;
17275 # libreadline needs libuser32.a in a cygwin environment
17277 if test x"$gdb_cv_os_cygwin" = xyes; then
17278 WIN32LIBS="-luser32"
17279 case "${target}" in
17280 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
17285 # The ser-tcp.c module requires sockets.
17286 # Note that WIN32APILIBS is set by GDB_AC_COMMON.
17287 WIN32LIBS="$WIN32LIBS $WIN32APILIBS"
17289 # Add ELF support to GDB, but only if BFD includes ELF support.
17292 OLD_LDFLAGS=$LDFLAGS
17294 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
17295 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
17296 # always want our bfd.
17297 CFLAGS="-I${srcdir}/..
/include
-I..
/bfd
-I${srcdir}/..
/bfd
$CFLAGS"
17298 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
17299 LDFLAGS="-L..
/bfd
-L..
/libiberty
$ZLIBDIR $LDFLAGS"
17300 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
17301 LIBS="-lbfd -liberty -lz $intl $LIBS"
17302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ELF support
in BFD
" >&5
17303 $as_echo_n "checking
for ELF support
in BFD...
" >&6; }
17304 if ${gdb_cv_var_elf+:} false; then :
17305 $as_echo_n "(cached
) " >&6
17307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17308 /* end confdefs.h. */
17309 #include <stdlib.h>
17310 #include <string.h>
17312 #include "elf-bfd.h
"
17316 return bfd_get_elf_phdr_upper_bound (NULL);
17322 if ac_fn_c_try_link "$LINENO"; then :
17328 rm -f core conftest.err conftest.$ac_objext \
17329 conftest$ac_exeext conftest.$ac_ext
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_var_elf" >&5
17333 $as_echo "$gdb_cv_var_elf" >&6; }
17335 LDFLAGS=$OLD_LDFLAGS
17337 if test "$gdb_cv_var_elf" = yes; then
17338 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o \
17339 gcore-elf.o elf-none-tdep.o
"
17341 $as_echo "#define HAVE_ELF 1" >>confdefs.h
17343 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
17344 if test "$plugins" = "yes"; then
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17346 $as_echo_n "checking for library containing dlopen... " >&6; }
17347 if ${ac_cv_search_dlopen+:} false
; then :
17348 $as_echo_n "(cached) " >&6
17350 ac_func_search_save_LIBS
=$LIBS
17351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17352 /* end confdefs.h. */
17354 /* Override any GCC internal prototype to avoid an error.
17355 Use char because int might match the return type of a GCC
17356 builtin and then its argument prototype would still apply. */
17369 for ac_lib
in '' dl
; do
17370 if test -z "$ac_lib"; then
17371 ac_res
="none required"
17374 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
17376 if ac_fn_c_try_link
"$LINENO"; then :
17377 ac_cv_search_dlopen
=$ac_res
17379 rm -f core conftest.err conftest.
$ac_objext \
17381 if ${ac_cv_search_dlopen+:} false
; then :
17385 if ${ac_cv_search_dlopen+:} false
; then :
17388 ac_cv_search_dlopen
=no
17390 rm conftest.
$ac_ext
17391 LIBS
=$ac_func_search_save_LIBS
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17394 $as_echo "$ac_cv_search_dlopen" >&6; }
17395 ac_res
=$ac_cv_search_dlopen
17396 if test "$ac_res" != no
; then :
17397 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
17404 # Add macho support to GDB, but only if BFD includes it.
17407 OLD_LDFLAGS
=$LDFLAGS
17409 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
17410 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
17411 # always want our bfd.
17412 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
17413 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
17414 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
17415 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
17416 LIBS
="-lbfd -liberty -lz $intl $LIBS"
17417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
17418 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
17419 if ${gdb_cv_var_macho+:} false
; then :
17420 $as_echo_n "(cached) " >&6
17422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17423 /* end confdefs.h. */
17424 #include <stdlib.h>
17425 #include <string.h>
17427 #include "mach-o.h"
17431 return bfd_mach_o_lookup_command (NULL, 0, NULL);
17437 if ac_fn_c_try_link
"$LINENO"; then :
17438 gdb_cv_var_macho
=yes
17440 gdb_cv_var_macho
=no
17443 rm -f core conftest.err conftest.
$ac_objext \
17444 conftest
$ac_exeext conftest.
$ac_ext
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
17448 $as_echo "$gdb_cv_var_macho" >&6; }
17450 LDFLAGS
=$OLD_LDFLAGS
17452 if test "$gdb_cv_var_macho" = yes; then
17453 CONFIG_OBS
="$CONFIG_OBS machoread.o"
17456 # Add any host-specific objects to GDB.
17457 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
17459 # If building on ELF, look for lzma support for embedded compressed debug info.
17460 if test "$gdb_cv_var_elf" = yes; then
17462 # Check whether --with-lzma was given.
17463 if test "${with_lzma+set}" = set; then :
17464 withval
=$with_lzma;
17469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
17470 $as_echo_n "checking whether to use lzma... " >&6; }
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
17472 $as_echo "$with_lzma" >&6; }
17474 if test "${with_lzma}" != no
; then
17485 acl_save_prefix
="$prefix"
17486 prefix
="$acl_final_prefix"
17487 acl_save_exec_prefix
="$exec_prefix"
17488 exec_prefix
="$acl_final_exec_prefix"
17490 eval additional_includedir
=\"$includedir\"
17491 eval additional_libdir
=\"$libdir\"
17493 exec_prefix
="$acl_save_exec_prefix"
17494 prefix
="$acl_save_prefix"
17497 # Check whether --with-liblzma-prefix was given.
17498 if test "${with_liblzma_prefix+set}" = set; then :
17499 withval
=$with_liblzma_prefix;
17500 if test "X$withval" = "Xno"; then
17503 if test "X$withval" = "X"; then
17505 acl_save_prefix
="$prefix"
17506 prefix
="$acl_final_prefix"
17507 acl_save_exec_prefix
="$exec_prefix"
17508 exec_prefix
="$acl_final_exec_prefix"
17510 eval additional_includedir
=\"$includedir\"
17511 eval additional_libdir
=\"$libdir\"
17513 exec_prefix
="$acl_save_exec_prefix"
17514 prefix
="$acl_save_prefix"
17517 additional_includedir
="$withval/include"
17518 additional_libdir
="$withval/lib"
17525 # Check whether --with-liblzma-type was given.
17526 if test "${with_liblzma_type+set}" = set; then :
17527 withval
=$with_liblzma_type; with_liblzma_type
=$withval
17529 with_liblzma_type
=auto
17532 lib_type
=`eval echo \$with_liblzma_type`
17539 names_already_handled
=
17540 names_next_round
='lzma '
17541 while test -n "$names_next_round"; do
17542 names_this_round
="$names_next_round"
17544 for name
in $names_this_round; do
17546 for n
in $names_already_handled; do
17547 if test "$n" = "$name"; then
17548 already_handled
=yes
17552 if test -z "$already_handled"; then
17553 names_already_handled
="$names_already_handled $name"
17554 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17555 eval value
=\"\
$HAVE_LIB$uppername\"
17556 if test -n "$value"; then
17557 if test "$value" = yes; then
17558 eval value
=\"\
$LIB$uppername\"
17559 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
17560 eval value
=\"\
$LTLIB$uppername\"
17561 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
17570 if test $use_additional = yes; then
17571 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
17572 found_dir
="$additional_libdir"
17573 found_so
="$additional_libdir/lib$name.$shlibext"
17574 if test -f "$additional_libdir/lib$name.la"; then
17575 found_la
="$additional_libdir/lib$name.la"
17577 elif test x
$lib_type != xshared
; then
17578 if test -f "$additional_libdir/lib$name.$libext"; then
17579 found_dir
="$additional_libdir"
17580 found_a
="$additional_libdir/lib$name.$libext"
17581 if test -f "$additional_libdir/lib$name.la"; then
17582 found_la
="$additional_libdir/lib$name.la"
17587 if test "X$found_dir" = "X"; then
17588 for x
in $LDFLAGS $LTLIBLZMA; do
17590 acl_save_prefix
="$prefix"
17591 prefix
="$acl_final_prefix"
17592 acl_save_exec_prefix
="$exec_prefix"
17593 exec_prefix
="$acl_final_exec_prefix"
17595 exec_prefix
="$acl_save_exec_prefix"
17596 prefix
="$acl_save_prefix"
17600 dir
=`echo "X$x" | sed -e 's/^X-L//'`
17601 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
17603 found_so
="$dir/lib$name.$shlibext"
17604 if test -f "$dir/lib$name.la"; then
17605 found_la
="$dir/lib$name.la"
17607 elif test x
$lib_type != xshared
; then
17608 if test -f "$dir/lib$name.$libext"; then
17610 found_a
="$dir/lib$name.$libext"
17611 if test -f "$dir/lib$name.la"; then
17612 found_la
="$dir/lib$name.la"
17618 if test "X$found_dir" != "X"; then
17623 if test "X$found_dir" != "X"; then
17624 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
17625 if test "X$found_so" != "X"; then
17626 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
17627 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17630 for x
in $ltrpathdirs; do
17631 if test "X$x" = "X$found_dir"; then
17636 if test -z "$haveit"; then
17637 ltrpathdirs
="$ltrpathdirs $found_dir"
17639 if test "$hardcode_direct" = yes; then
17640 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17642 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
17643 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17645 for x
in $rpathdirs; do
17646 if test "X$x" = "X$found_dir"; then
17651 if test -z "$haveit"; then
17652 rpathdirs
="$rpathdirs $found_dir"
17656 for x
in $LDFLAGS $LIBLZMA; do
17658 acl_save_prefix
="$prefix"
17659 prefix
="$acl_final_prefix"
17660 acl_save_exec_prefix
="$exec_prefix"
17661 exec_prefix
="$acl_final_exec_prefix"
17663 exec_prefix
="$acl_save_exec_prefix"
17664 prefix
="$acl_save_prefix"
17666 if test "X$x" = "X-L$found_dir"; then
17671 if test -z "$haveit"; then
17672 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
17674 if test "$hardcode_minus_L" != no
; then
17675 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17677 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
17683 if test "X$found_a" != "X"; then
17684 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
17686 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
17689 additional_includedir
=
17690 case "$found_dir" in
17692 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17693 additional_includedir
="$basedir/include"
17696 if test "X$additional_includedir" != "X"; then
17697 if test "X$additional_includedir" != "X/usr/include"; then
17699 if test "X$additional_includedir" = "X/usr/local/include"; then
17700 if test -n "$GCC"; then
17702 linux
*) haveit
=yes;;
17706 if test -z "$haveit"; then
17707 for x
in $CPPFLAGS $INCLZMA; do
17709 acl_save_prefix
="$prefix"
17710 prefix
="$acl_final_prefix"
17711 acl_save_exec_prefix
="$exec_prefix"
17712 exec_prefix
="$acl_final_exec_prefix"
17714 exec_prefix
="$acl_save_exec_prefix"
17715 prefix
="$acl_save_prefix"
17717 if test "X$x" = "X-I$additional_includedir"; then
17722 if test -z "$haveit"; then
17723 if test -d "$additional_includedir"; then
17724 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
17730 if test -n "$found_la"; then
17731 save_libdir
="$libdir"
17732 case "$found_la" in
17733 */* |
*\\*) .
"$found_la" ;;
17734 *) .
"./$found_la" ;;
17736 libdir
="$save_libdir"
17737 for dep
in $dependency_libs; do
17740 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
17741 if test "X$additional_libdir" != "X/usr/lib"; then
17743 if test "X$additional_libdir" = "X/usr/local/lib"; then
17744 if test -n "$GCC"; then
17746 linux
*) haveit
=yes;;
17750 if test -z "$haveit"; then
17752 for x
in $LDFLAGS $LIBLZMA; do
17754 acl_save_prefix
="$prefix"
17755 prefix
="$acl_final_prefix"
17756 acl_save_exec_prefix
="$exec_prefix"
17757 exec_prefix
="$acl_final_exec_prefix"
17759 exec_prefix
="$acl_save_exec_prefix"
17760 prefix
="$acl_save_prefix"
17762 if test "X$x" = "X-L$additional_libdir"; then
17767 if test -z "$haveit"; then
17768 if test -d "$additional_libdir"; then
17769 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
17773 for x
in $LDFLAGS $LTLIBLZMA; do
17775 acl_save_prefix
="$prefix"
17776 prefix
="$acl_final_prefix"
17777 acl_save_exec_prefix
="$exec_prefix"
17778 exec_prefix
="$acl_final_exec_prefix"
17780 exec_prefix
="$acl_save_exec_prefix"
17781 prefix
="$acl_save_prefix"
17783 if test "X$x" = "X-L$additional_libdir"; then
17788 if test -z "$haveit"; then
17789 if test -d "$additional_libdir"; then
17790 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
17797 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
17798 if test "$enable_rpath" != no
; then
17800 for x
in $rpathdirs; do
17801 if test "X$x" = "X$dir"; then
17806 if test -z "$haveit"; then
17807 rpathdirs
="$rpathdirs $dir"
17810 for x
in $ltrpathdirs; do
17811 if test "X$x" = "X$dir"; then
17816 if test -z "$haveit"; then
17817 ltrpathdirs
="$ltrpathdirs $dir"
17822 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17825 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17828 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
17829 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
17835 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
17836 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
17837 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
17839 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l:lib$name.$libext"
17840 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l:lib$name.$libext"
17847 if test "X$rpathdirs" != "X"; then
17848 if test -n "$hardcode_libdir_separator"; then
17850 for found_dir
in $rpathdirs; do
17851 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17853 acl_save_libdir
="$libdir"
17855 eval flag
=\"$hardcode_libdir_flag_spec\"
17856 libdir
="$acl_save_libdir"
17857 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
17859 for found_dir
in $rpathdirs; do
17860 acl_save_libdir
="$libdir"
17861 libdir
="$found_dir"
17862 eval flag
=\"$hardcode_libdir_flag_spec\"
17863 libdir
="$acl_save_libdir"
17864 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
17868 if test "X$ltrpathdirs" != "X"; then
17869 for found_dir
in $ltrpathdirs; do
17870 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
17875 ac_save_CPPFLAGS
="$CPPFLAGS"
17877 for element
in $INCLZMA; do
17879 for x
in $CPPFLAGS; do
17881 acl_save_prefix
="$prefix"
17882 prefix
="$acl_final_prefix"
17883 acl_save_exec_prefix
="$exec_prefix"
17884 exec_prefix
="$acl_final_exec_prefix"
17886 exec_prefix
="$acl_save_exec_prefix"
17887 prefix
="$acl_save_prefix"
17889 if test "X$x" = "X$element"; then
17894 if test -z "$haveit"; then
17895 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
17901 $as_echo_n "checking for liblzma... " >&6; }
17902 if ${ac_cv_liblzma+:} false
; then :
17903 $as_echo_n "(cached) " >&6
17906 ac_save_LIBS
="$LIBS"
17907 LIBS
="$LIBS $LIBLZMA"
17908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17909 /* end confdefs.h. */
17914 lzma_index_iter iter;
17915 lzma_index_iter_init (&iter, 0);
17916 lzma_mf_is_supported (LZMA_MF_HC3);
17921 if ac_fn_c_try_link
"$LINENO"; then :
17926 rm -f core conftest.err conftest.
$ac_objext \
17927 conftest
$ac_exeext conftest.
$ac_ext
17928 LIBS
="$ac_save_LIBS"
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
17932 $as_echo "$ac_cv_liblzma" >&6; }
17933 if test "$ac_cv_liblzma" = yes; then
17936 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
17938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
17939 $as_echo_n "checking how to link with liblzma... " >&6; }
17940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
17941 $as_echo "$LIBLZMA" >&6; }
17944 CPPFLAGS
="$ac_save_CPPFLAGS"
17954 if test "$HAVE_LIBLZMA" != yes; then
17955 if test "$with_lzma" = yes; then
17956 as_fn_error $?
"missing liblzma for --with-lzma" "$LINENO" 5
17962 LIBGUI
="../libgui/src/libgui.a"
17963 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
17972 *-*-cygwin* |
*-*-mingw* )
17981 if test "${enable_gdbtk}" = "yes"; then
17983 # Gdbtk must have an absolute path to srcdir in order to run
17984 # properly when not installed.
17987 GDBTK_SRC_DIR
=`pwd`
17992 # Ok, lets find the tcl configuration
17993 # First, look for one uninstalled.
17994 # the alternative search directory is invoked by --with-tcl
17997 if test x
"${no_tcl}" = x
; then
17998 # we reset no_tcl in case something fails here
18001 # Check whether --with-tcl was given.
18002 if test "${with_tcl+set}" = set; then :
18003 withval
=$with_tcl; with_tclconfig
=${withval}
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
18007 $as_echo_n "checking for Tcl configuration... " >&6; }
18008 if ${ac_cv_c_tclconfig+:} false
; then :
18009 $as_echo_n "(cached) " >&6
18013 # First check to see if --with-tcl was specified.
18015 *-*-cygwin*) platDir
="win" ;;
18016 *) platDir
="unix" ;;
18018 if test x
"${with_tclconfig}" != x
; then
18019 if test -f "${with_tclconfig}/tclConfig.sh" ; then
18020 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
18022 as_fn_error $?
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
18026 # then check for a private Tcl installation
18027 if test x
"${ac_cv_c_tclconfig}" = x
; then
18030 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
18031 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
18032 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
18034 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
18035 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
18036 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
18038 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
18039 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
18040 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
18041 if test -f "$i/$platDir/tclConfig.sh" ; then
18042 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
18048 # on Darwin, check in Framework installation locations
18049 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
18050 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
18051 `ls -d /Library/Frameworks 2>/dev/null` \
18052 `ls -d /Network/Library/Frameworks 2>/dev/null` \
18053 `ls -d /System/Library/Frameworks 2>/dev/null` \
18055 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
18056 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
18062 # check in a few common install locations
18063 if test x
"${ac_cv_c_tclconfig}" = x
; then
18064 for i
in `ls -d ${libdir} 2>/dev/null` \
18065 `ls -d ${exec_prefix}/lib 2>/dev/null` \
18066 `ls -d ${prefix}/lib 2>/dev/null` \
18067 `ls -d /usr/local/lib 2>/dev/null` \
18068 `ls -d /usr/contrib/lib 2>/dev/null` \
18069 `ls -d /usr/lib 2>/dev/null` \
18071 if test -f "$i/tclConfig.sh" ; then
18072 ac_cv_c_tclconfig
=`(cd $i; pwd)`
18078 # check in a few other private locations
18079 if test x
"${ac_cv_c_tclconfig}" = x
; then
18082 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
18083 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
18084 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
18085 if test -f "$i/$platDir/tclConfig.sh" ; then
18086 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
18095 if test x
"${ac_cv_c_tclconfig}" = x
; then
18096 TCL_BIN_DIR
="# no Tcl configs found"
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
18098 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
18101 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
18103 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
18108 # If $no_tk is nonempty, then we can't do Tk, and there is no
18109 # point to doing Tcl.
18112 # Ok, lets find the tk configuration
18113 # First, look for one uninstalled.
18114 # the alternative search directory is invoked by --with-tk
18117 if test x
"${no_tk}" = x
; then
18118 # we reset no_tk in case something fails here
18121 # Check whether --with-tk was given.
18122 if test "${with_tk+set}" = set; then :
18123 withval
=$with_tk; with_tkconfig
=${withval}
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
18127 $as_echo_n "checking for Tk configuration... " >&6; }
18128 if ${ac_cv_c_tkconfig+:} false
; then :
18129 $as_echo_n "(cached) " >&6
18133 # First check to see if --with-tkconfig was specified.
18134 if test x
"${with_tkconfig}" != x
; then
18135 if test -f "${with_tkconfig}/tkConfig.sh" ; then
18136 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
18138 as_fn_error $?
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
18142 # then check for a private Tk library
18144 *-*-cygwin*) platDir
="win" ;;
18145 *) platDir
="unix" ;;
18147 if test x
"${ac_cv_c_tkconfig}" = x
; then
18150 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
18151 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
18152 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
18154 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
18155 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
18156 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
18158 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
18159 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
18160 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
18161 if test -f "$i/$platDir/tkConfig.sh" ; then
18162 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
18168 # on Darwin, check in Framework installation locations
18169 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
18170 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
18171 `ls -d /Library/Frameworks 2>/dev/null` \
18172 `ls -d /Network/Library/Frameworks 2>/dev/null` \
18173 `ls -d /System/Library/Frameworks 2>/dev/null` \
18175 if test -f "$i/Tk.framework/tkConfig.sh" ; then
18176 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
18182 # check in a few common install locations
18183 if test x
"${ac_cv_c_tkconfig}" = x
; then
18184 for i
in `ls -d ${libdir} 2>/dev/null` \
18185 `ls -d ${exec_prefix}/lib 2>/dev/null` \
18186 `ls -d ${prefix}/lib 2>/dev/null` \
18187 `ls -d /usr/local/lib 2>/dev/null` \
18188 `ls -d /usr/contrib/lib 2>/dev/null` \
18189 `ls -d /usr/lib 2>/dev/null` \
18191 if test -f "$i/tkConfig.sh" ; then
18192 ac_cv_c_tkconfig
=`(cd $i; pwd)`
18197 # check in a few other private locations
18198 if test x
"${ac_cv_c_tkconfig}" = x
; then
18201 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
18202 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
18203 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
18204 if test -f "$i/$platDir/tkConfig.sh" ; then
18205 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
18214 if test x
"${ac_cv_c_tkconfig}" = x
; then
18215 TK_BIN_DIR
="# no Tk configs found"
18216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
18217 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
18220 TK_BIN_DIR
=${ac_cv_c_tkconfig}
18221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
18222 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
18227 if test -z "${no_tcl}" -a -z "${no_tk}"; then
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
18230 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
18232 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
18234 $as_echo "loading" >&6; }
18235 .
${TCL_BIN_DIR}/tclConfig.sh
18237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
18238 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
18241 # eval is required to do the TCL_DBGX substitution
18242 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
18243 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
18245 # If the TCL_BIN_DIR is the build directory (not the install directory),
18246 # then set the common variable name to the value of the build variables.
18247 # For example, the variable TCL_LIB_SPEC will be set to the value
18248 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
18249 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
18250 # installed and uninstalled version of Tcl.
18251 if test -f "${TCL_BIN_DIR}/Makefile" ; then
18252 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
18253 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
18254 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
18255 elif test "`uname -s`" = "Darwin"; then
18256 # If Tcl was built as a framework, attempt to use the libraries
18257 # from the framework at the given location so that linking works
18258 # against Tcl.framework installed in an arbitrary location.
18259 case ${TCL_DEFS} in
18261 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
18262 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
18263 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
18264 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
18265 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
18270 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
18271 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
18272 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
18278 # eval is required to do the TCL_DBGX substitution
18279 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
18280 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
18281 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
18282 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
18298 # Check for in-tree tcl
18305 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
18309 # Find Tcl private headers
18310 if test x
"${intree}" = xno
; then
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
18313 $as_echo_n "checking for Tcl private headers... " >&6; }
18315 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
18316 if test -f ${dir}/tclInt.h
; then
18320 if test x
"${private_dir}" = x
; then
18321 as_fn_error $?
"could not find private Tcl headers" "$LINENO" 5
18323 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
18325 $as_echo "${private_dir}" >&6; }
18328 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
18329 TCL_LIBRARY
="${TCL_LIB_SPEC}"
18332 # If building tcl in the same src tree, private headers
18333 # are not needed, but we need to be sure to use the right
18335 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
18336 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
18337 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
18344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
18345 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
18347 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
18349 $as_echo "loading" >&6; }
18350 .
${TK_BIN_DIR}/tkConfig.sh
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
18353 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
18356 # eval is required to do the TK_DBGX substitution
18357 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
18358 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
18360 # If the TK_BIN_DIR is the build directory (not the install directory),
18361 # then set the common variable name to the value of the build variables.
18362 # For example, the variable TK_LIB_SPEC will be set to the value
18363 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
18364 # instead of TK_BUILD_LIB_SPEC since it will work with both an
18365 # installed and uninstalled version of Tcl.
18366 if test -f "${TK_BIN_DIR}/Makefile" ; then
18367 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
18368 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
18369 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
18370 elif test "`uname -s`" = "Darwin"; then
18371 # If Tk was built as a framework, attempt to use the libraries
18372 # from the framework at the given location so that linking works
18373 # against Tk.framework installed in an arbitrary location.
18376 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
18377 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
18378 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
18379 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
18380 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
18385 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
18386 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
18387 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
18393 # eval is required to do the TK_DBGX substitution
18394 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
18395 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
18396 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
18397 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
18412 # Check for in-tree Tk
18414 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
18418 # Find Tk private headers
18419 if test x
"${intree}" = xno
; then
18421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
18422 $as_echo_n "checking for Tk private headers... " >&6; }
18424 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
18425 if test -f ${dir}/tkInt.h
; then
18429 if test x
"${private_dir}" = x
; then
18430 as_fn_error $?
"could not find Tk private headers" "$LINENO" 5
18432 TK_PRIVATE_INCLUDE
="-I${private_dir}"
18433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
18434 $as_echo "${private_dir}" >&6; }
18437 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
18438 TK_LIBRARY
=${TK_LIB_SPEC}
18441 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
18442 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
18443 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
18450 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
18452 # Include some libraries that Tcl and Tk want.
18453 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
18454 # Yes, the ordering seems wrong here. But it isn't.
18455 # TK_LIBS is the list of libraries that need to be linked
18456 # after Tcl/Tk. Note that this isn't put into LIBS. If it
18457 # were in LIBS then any link tests after this point would
18458 # try to include things like `$(LIBGUI)', which wouldn't work.
18459 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
18461 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
18462 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
18463 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
18464 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
18465 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
18466 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
18467 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
18469 if test x
"$gdb_cv_os_cygwin" = xyes
; then
18470 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
18471 WIN32LDAPP
="-Wl,--subsystem,console"
18472 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
18475 subdirs
="$subdirs gdbtk"
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
18488 $as_echo_n "checking for X... " >&6; }
18491 # Check whether --with-x was given.
18492 if test "${with_x+set}" = set; then :
18496 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18497 if test "x$with_x" = xno
; then
18498 # The user explicitly disabled X.
18501 case $x_includes,$x_libraries in #(
18502 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
18503 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
18504 $as_echo_n "(cached) " >&6
18506 # One or both of the vars are not set, and there is no cached value.
18507 ac_x_includes
=no ac_x_libraries
=no
18508 rm -f -r conftest.dir
18509 if mkdir conftest.dir
; then
18511 cat >Imakefile
<<'_ACEOF'
18513 @echo incroot='${INCROOT}'
18515 @echo usrlibdir='${USRLIBDIR}'
18517 @echo libdir='${LIBDIR}'
18519 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
18520 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
18521 for ac_var
in incroot usrlibdir libdir
; do
18522 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18524 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18525 for ac_extension
in a so sl dylib la dll
; do
18526 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18527 test -f "$ac_im_libdir/libX11.$ac_extension"; then
18528 ac_im_usrlibdir
=$ac_im_libdir; break
18531 # Screen out bogus values from the imake configuration. They are
18532 # bogus both because they are the default anyway, and because
18533 # using them would break gcc on systems where it needs fixed includes.
18534 case $ac_im_incroot in
18535 /usr
/include
) ac_x_includes
= ;;
18536 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
18538 case $ac_im_usrlibdir in
18539 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
18540 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
18544 rm -f -r conftest.dir
18547 # Standard set of common directories for X headers.
18548 # Check X11 before X11Rn because it is often a symlink to the current release.
18562 /usr/local/X11/include
18563 /usr/local/X11R7/include
18564 /usr/local/X11R6/include
18565 /usr/local/X11R5/include
18566 /usr/local/X11R4/include
18568 /usr/local/include/X11
18569 /usr/local/include/X11R7
18570 /usr/local/include/X11R6
18571 /usr/local/include/X11R5
18572 /usr/local/include/X11R4
18576 /usr/XFree86/include/X11
18580 /usr/unsupported/include
18581 /usr/athena/include
18582 /usr/local/x11r5/include
18583 /usr/lpp/Xamples/include
18585 /usr/openwin/include
18586 /usr/openwin/share/include'
18588 if test "$ac_x_includes" = no
; then
18589 # Guess where to find include files, by looking for Xlib.h.
18590 # First, try using that file with no special directory specified.
18591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18592 /* end confdefs.h. */
18593 #include <X11/Xlib.h>
18595 if ac_fn_c_try_cpp
"$LINENO"; then :
18596 # We can compile using X headers with no special include directory.
18599 for ac_dir
in $ac_x_header_dirs; do
18600 if test -r "$ac_dir/X11/Xlib.h"; then
18601 ac_x_includes
=$ac_dir
18606 rm -f conftest.err conftest.i conftest.
$ac_ext
18607 fi # $ac_x_includes = no
18609 if test "$ac_x_libraries" = no
; then
18610 # Check for the libraries.
18611 # See if we find them without any special options.
18612 # Don't add to $LIBS permanently.
18615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18616 /* end confdefs.h. */
18617 #include <X11/Xlib.h>
18626 if ac_fn_c_try_link
"$LINENO"; then :
18628 # We can link X programs with no special library path.
18632 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18634 # Don't even attempt the hair of trying to link an X program!
18635 for ac_extension
in a so sl dylib la dll
; do
18636 if test -r "$ac_dir/libX11.$ac_extension"; then
18637 ac_x_libraries
=$ac_dir
18643 rm -f core conftest.err conftest.
$ac_objext \
18644 conftest
$ac_exeext conftest.
$ac_ext
18645 fi # $ac_x_libraries = no
18647 case $ac_x_includes,$ac_x_libraries in #(
18648 no
,* |
*,no |
*\'*)
18649 # Didn't find X, or a directory has "'" in its name.
18650 ac_cv_have_x
="have_x=no";; #(
18652 # Record where we found X for the cache.
18653 ac_cv_have_x
="have_x=yes\
18654 ac_x_includes='$ac_x_includes'\
18655 ac_x_libraries='$ac_x_libraries'"
18661 eval "$ac_cv_have_x"
18664 if test "$have_x" != yes; then
18665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
18666 $as_echo "$have_x" >&6; }
18669 # If each of the values was on the command line, it overrides each guess.
18670 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
18671 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
18672 # Update the cache value to reflect the command line values.
18673 ac_cv_have_x
="have_x=yes\
18674 ac_x_includes='$x_includes'\
18675 ac_x_libraries='$x_libraries'"
18676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
18677 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
18681 # Unlike the sim directory, whether a simulator is linked is controlled by
18682 # presence of a gdb_sim definition in the target configure.tgt entry.
18683 # This code just checks for a few cases where we'd like to ignore those
18684 # definitions, even when they're present in the '.mt' file. These cases
18685 # are when --disable-sim is specified, or if the simulator directory is
18686 # not part of the source tree.
18688 # Check whether --enable-sim was given.
18689 if test "${enable_sim+set}" = set; then :
18690 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
18691 echo "enableval = ${enableval}";
18692 case "${enableval}" in
18693 yes) ignore_sim
=false
;;
18694 no
) ignore_sim
=true
;;
18695 *) ignore_sim
=false
;;
18702 if test ! -d "${srcdir}/../sim"; then
18708 if test "${ignore_sim}" = "false"; then
18709 if test x
"${gdb_sim}" != x
; then
18711 SIM_OBS
="remote-sim.o"
18713 $as_echo "#define WITH_SIM 1" >>confdefs.h
18716 # Some tdep code should only be compiled in when the ppc sim is
18717 # built. PR sim/13418.
18721 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
18741 # List of host floatformats.
18743 cat >>confdefs.h
<<_ACEOF
18744 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
18748 cat >>confdefs.h
<<_ACEOF
18749 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
18753 cat >>confdefs.h
<<_ACEOF
18754 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
18758 # target_subdir is used by the testsuite to find the target libraries.
18760 if test "${host}" != "${target}"; then
18761 target_subdir
="${target_alias}/"
18765 # Import nat definitions.
18766 nat_makefile_frag
=/dev
/null
18767 if test "${gdb_native}" = "yes"; then
18768 .
${srcdir}/configure.nat
18769 nativefile
=$NAT_FILE
18782 if test x
"${gdb_osabi}" != x
; then
18784 cat >>confdefs.h
<<_ACEOF
18785 #define GDB_OSABI_DEFAULT $gdb_osabi
18790 # Setup possible use of libbacktrace.
18791 # Check whether --enable-libbacktrace was given.
18792 if test "${enable_libbacktrace+set}" = set; then :
18793 enableval
=$enable_libbacktrace; case "${enableval}" in
18794 yes) enable_libbacktrace
=yes ;;
18795 no
) enable_libbacktrace
=no
;;
18796 *) as_fn_error $?
"bad value ${enableval} for --enable-libbacktrace option" "$LINENO" 5 ;;
18799 enable_libbacktrace
=yes
18803 if test "${enable_libbacktrace}" == "yes"; then
18804 LIBBACKTRACE_INC
="-I$srcdir/../libbacktrace/ -I../libbacktrace/"
18805 LIBBACKTRACE_LIB
=..
/libbacktrace
/.libs
/libbacktrace.a
18807 $as_echo "#define HAVE_LIBBACKTRACE 1" >>confdefs.h
18817 # Check for babeltrace and babeltrace-ctf
18819 # Check whether --with-babeltrace was given.
18820 if test "${with_babeltrace+set}" = set; then :
18821 withval
=$with_babeltrace;
18823 with_babeltrace
=auto
18826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
18827 $as_echo_n "checking whether to use babeltrace... " >&6; }
18828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
18829 $as_echo "$with_babeltrace" >&6; }
18831 if test "x$with_babeltrace" = "xno"; then
18832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
18833 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
18835 # Append -Werror to CFLAGS so that configure can catch the warning
18836 # "assignment from incompatible pointer type", which is related to
18837 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
18838 # in GDB, while babeltrace 1.0.3 is broken.
18839 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
18840 # safe to save and restore CFLAGS here.
18841 saved_CFLAGS
=$CFLAGS
18842 CFLAGS
="$CFLAGS -Werror"
18853 acl_save_prefix
="$prefix"
18854 prefix
="$acl_final_prefix"
18855 acl_save_exec_prefix
="$exec_prefix"
18856 exec_prefix
="$acl_final_exec_prefix"
18858 eval additional_includedir
=\"$includedir\"
18859 eval additional_libdir
=\"$libdir\"
18861 exec_prefix
="$acl_save_exec_prefix"
18862 prefix
="$acl_save_prefix"
18865 # Check whether --with-libbabeltrace-prefix was given.
18866 if test "${with_libbabeltrace_prefix+set}" = set; then :
18867 withval
=$with_libbabeltrace_prefix;
18868 if test "X$withval" = "Xno"; then
18871 if test "X$withval" = "X"; then
18873 acl_save_prefix
="$prefix"
18874 prefix
="$acl_final_prefix"
18875 acl_save_exec_prefix
="$exec_prefix"
18876 exec_prefix
="$acl_final_exec_prefix"
18878 eval additional_includedir
=\"$includedir\"
18879 eval additional_libdir
=\"$libdir\"
18881 exec_prefix
="$acl_save_exec_prefix"
18882 prefix
="$acl_save_prefix"
18885 additional_includedir
="$withval/include"
18886 additional_libdir
="$withval/lib"
18893 # Check whether --with-libbabeltrace-type was given.
18894 if test "${with_libbabeltrace_type+set}" = set; then :
18895 withval
=$with_libbabeltrace_type; with_libbabeltrace_type
=$withval
18897 with_libbabeltrace_type
=auto
18900 lib_type
=`eval echo \$with_libbabeltrace_type`
18907 names_already_handled
=
18908 names_next_round
='babeltrace babeltrace-ctf'
18909 while test -n "$names_next_round"; do
18910 names_this_round
="$names_next_round"
18912 for name
in $names_this_round; do
18914 for n
in $names_already_handled; do
18915 if test "$n" = "$name"; then
18916 already_handled
=yes
18920 if test -z "$already_handled"; then
18921 names_already_handled
="$names_already_handled $name"
18922 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18923 eval value
=\"\
$HAVE_LIB$uppername\"
18924 if test -n "$value"; then
18925 if test "$value" = yes; then
18926 eval value
=\"\
$LIB$uppername\"
18927 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
18928 eval value
=\"\
$LTLIB$uppername\"
18929 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
18938 if test $use_additional = yes; then
18939 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18940 found_dir
="$additional_libdir"
18941 found_so
="$additional_libdir/lib$name.$shlibext"
18942 if test -f "$additional_libdir/lib$name.la"; then
18943 found_la
="$additional_libdir/lib$name.la"
18945 elif test x
$lib_type != xshared
; then
18946 if test -f "$additional_libdir/lib$name.$libext"; then
18947 found_dir
="$additional_libdir"
18948 found_a
="$additional_libdir/lib$name.$libext"
18949 if test -f "$additional_libdir/lib$name.la"; then
18950 found_la
="$additional_libdir/lib$name.la"
18955 if test "X$found_dir" = "X"; then
18956 for x
in $LDFLAGS $LTLIBBABELTRACE; do
18958 acl_save_prefix
="$prefix"
18959 prefix
="$acl_final_prefix"
18960 acl_save_exec_prefix
="$exec_prefix"
18961 exec_prefix
="$acl_final_exec_prefix"
18963 exec_prefix
="$acl_save_exec_prefix"
18964 prefix
="$acl_save_prefix"
18968 dir
=`echo "X$x" | sed -e 's/^X-L//'`
18969 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18971 found_so
="$dir/lib$name.$shlibext"
18972 if test -f "$dir/lib$name.la"; then
18973 found_la
="$dir/lib$name.la"
18975 elif test x
$lib_type != xshared
; then
18976 if test -f "$dir/lib$name.$libext"; then
18978 found_a
="$dir/lib$name.$libext"
18979 if test -f "$dir/lib$name.la"; then
18980 found_la
="$dir/lib$name.la"
18986 if test "X$found_dir" != "X"; then
18991 if test "X$found_dir" != "X"; then
18992 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
18993 if test "X$found_so" != "X"; then
18994 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
18995 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18998 for x
in $ltrpathdirs; do
18999 if test "X$x" = "X$found_dir"; then
19004 if test -z "$haveit"; then
19005 ltrpathdirs
="$ltrpathdirs $found_dir"
19007 if test "$hardcode_direct" = yes; then
19008 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
19010 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
19011 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
19013 for x
in $rpathdirs; do
19014 if test "X$x" = "X$found_dir"; then
19019 if test -z "$haveit"; then
19020 rpathdirs
="$rpathdirs $found_dir"
19024 for x
in $LDFLAGS $LIBBABELTRACE; do
19026 acl_save_prefix
="$prefix"
19027 prefix
="$acl_final_prefix"
19028 acl_save_exec_prefix
="$exec_prefix"
19029 exec_prefix
="$acl_final_exec_prefix"
19031 exec_prefix
="$acl_save_exec_prefix"
19032 prefix
="$acl_save_prefix"
19034 if test "X$x" = "X-L$found_dir"; then
19039 if test -z "$haveit"; then
19040 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
19042 if test "$hardcode_minus_L" != no
; then
19043 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
19045 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
19051 if test "X$found_a" != "X"; then
19052 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
19054 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
19057 additional_includedir
=
19058 case "$found_dir" in
19060 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
19061 additional_includedir
="$basedir/include"
19064 if test "X$additional_includedir" != "X"; then
19065 if test "X$additional_includedir" != "X/usr/include"; then
19067 if test "X$additional_includedir" = "X/usr/local/include"; then
19068 if test -n "$GCC"; then
19070 linux
*) haveit
=yes;;
19074 if test -z "$haveit"; then
19075 for x
in $CPPFLAGS $INCBABELTRACE; do
19077 acl_save_prefix
="$prefix"
19078 prefix
="$acl_final_prefix"
19079 acl_save_exec_prefix
="$exec_prefix"
19080 exec_prefix
="$acl_final_exec_prefix"
19082 exec_prefix
="$acl_save_exec_prefix"
19083 prefix
="$acl_save_prefix"
19085 if test "X$x" = "X-I$additional_includedir"; then
19090 if test -z "$haveit"; then
19091 if test -d "$additional_includedir"; then
19092 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
19098 if test -n "$found_la"; then
19099 save_libdir
="$libdir"
19100 case "$found_la" in
19101 */* |
*\\*) .
"$found_la" ;;
19102 *) .
"./$found_la" ;;
19104 libdir
="$save_libdir"
19105 for dep
in $dependency_libs; do
19108 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
19109 if test "X$additional_libdir" != "X/usr/lib"; then
19111 if test "X$additional_libdir" = "X/usr/local/lib"; then
19112 if test -n "$GCC"; then
19114 linux
*) haveit
=yes;;
19118 if test -z "$haveit"; then
19120 for x
in $LDFLAGS $LIBBABELTRACE; do
19122 acl_save_prefix
="$prefix"
19123 prefix
="$acl_final_prefix"
19124 acl_save_exec_prefix
="$exec_prefix"
19125 exec_prefix
="$acl_final_exec_prefix"
19127 exec_prefix
="$acl_save_exec_prefix"
19128 prefix
="$acl_save_prefix"
19130 if test "X$x" = "X-L$additional_libdir"; then
19135 if test -z "$haveit"; then
19136 if test -d "$additional_libdir"; then
19137 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
19141 for x
in $LDFLAGS $LTLIBBABELTRACE; do
19143 acl_save_prefix
="$prefix"
19144 prefix
="$acl_final_prefix"
19145 acl_save_exec_prefix
="$exec_prefix"
19146 exec_prefix
="$acl_final_exec_prefix"
19148 exec_prefix
="$acl_save_exec_prefix"
19149 prefix
="$acl_save_prefix"
19151 if test "X$x" = "X-L$additional_libdir"; then
19156 if test -z "$haveit"; then
19157 if test -d "$additional_libdir"; then
19158 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
19165 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
19166 if test "$enable_rpath" != no
; then
19168 for x
in $rpathdirs; do
19169 if test "X$x" = "X$dir"; then
19174 if test -z "$haveit"; then
19175 rpathdirs
="$rpathdirs $dir"
19178 for x
in $ltrpathdirs; do
19179 if test "X$x" = "X$dir"; then
19184 if test -z "$haveit"; then
19185 ltrpathdirs
="$ltrpathdirs $dir"
19190 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19193 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19196 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
19197 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
19203 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
19204 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
19205 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
19207 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l:lib$name.$libext"
19208 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l:lib$name.$libext"
19215 if test "X$rpathdirs" != "X"; then
19216 if test -n "$hardcode_libdir_separator"; then
19218 for found_dir
in $rpathdirs; do
19219 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
19221 acl_save_libdir
="$libdir"
19223 eval flag
=\"$hardcode_libdir_flag_spec\"
19224 libdir
="$acl_save_libdir"
19225 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
19227 for found_dir
in $rpathdirs; do
19228 acl_save_libdir
="$libdir"
19229 libdir
="$found_dir"
19230 eval flag
=\"$hardcode_libdir_flag_spec\"
19231 libdir
="$acl_save_libdir"
19232 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
19236 if test "X$ltrpathdirs" != "X"; then
19237 for found_dir
in $ltrpathdirs; do
19238 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
19243 ac_save_CPPFLAGS
="$CPPFLAGS"
19245 for element
in $INCBABELTRACE; do
19247 for x
in $CPPFLAGS; do
19249 acl_save_prefix
="$prefix"
19250 prefix
="$acl_final_prefix"
19251 acl_save_exec_prefix
="$exec_prefix"
19252 exec_prefix
="$acl_final_exec_prefix"
19254 exec_prefix
="$acl_save_exec_prefix"
19255 prefix
="$acl_save_prefix"
19257 if test "X$x" = "X$element"; then
19262 if test -z "$haveit"; then
19263 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
19268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
19269 $as_echo_n "checking for libbabeltrace... " >&6; }
19270 if ${ac_cv_libbabeltrace+:} false
; then :
19271 $as_echo_n "(cached) " >&6
19274 ac_save_LIBS
="$LIBS"
19275 LIBS
="$LIBS $LIBBABELTRACE"
19276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19277 /* end confdefs.h. */
19278 #include <babeltrace/babeltrace.h>
19279 #include <babeltrace/ctf/events.h>
19280 #include <babeltrace/ctf/iterator.h>
19284 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
19285 struct bt_ctf_event *event = NULL;
19286 const struct bt_definition *scope;
19288 pos->type = BT_SEEK_BEGIN;
19289 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
19290 scope = bt_ctf_get_top_level_scope (event,
19291 BT_STREAM_EVENT_HEADER);
19292 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
19298 if ac_fn_c_try_link
"$LINENO"; then :
19299 ac_cv_libbabeltrace
=yes
19301 ac_cv_libbabeltrace
=no
19303 rm -f core conftest.err conftest.
$ac_objext \
19304 conftest
$ac_exeext conftest.
$ac_ext
19305 LIBS
="$ac_save_LIBS"
19308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
19309 $as_echo "$ac_cv_libbabeltrace" >&6; }
19310 if test "$ac_cv_libbabeltrace" = yes; then
19311 HAVE_LIBBABELTRACE
=yes
19313 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
19316 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
19317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
19318 $as_echo "$LIBBABELTRACE" >&6; }
19320 HAVE_LIBBABELTRACE
=no
19321 CPPFLAGS
="$ac_save_CPPFLAGS"
19331 CFLAGS
=$saved_CFLAGS
19333 if test "$HAVE_LIBBABELTRACE" != yes; then
19334 if test "$with_babeltrace" = yes; then
19335 as_fn_error $?
"babeltrace is missing or unusable" "$LINENO" 5
19337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
19338 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
19345 # Check whether --with-xxhash was given.
19346 if test "${with_xxhash+set}" = set; then :
19347 withval
=$with_xxhash;
19353 # Check whether --enable-libctf was given.
19354 if test "${enable_libctf+set}" = set; then :
19355 enableval
=$enable_libctf;
19356 case "$enableval" in
19358 *) as_fn_error $?
"Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
19366 if test x
${enable_static} = xno
; then
19367 LIBCTF
="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so"
19368 CTF_DEPS
="../libctf/.libs/libctf.so"
19370 LIBCTF
="../libctf/.libs/libctf.a"
19373 if test "${enable_libctf}" = yes; then
19375 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
19384 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
19387 if test "x$with_xxhash" != "xno"; then
19398 acl_save_prefix
="$prefix"
19399 prefix
="$acl_final_prefix"
19400 acl_save_exec_prefix
="$exec_prefix"
19401 exec_prefix
="$acl_final_exec_prefix"
19403 eval additional_includedir
=\"$includedir\"
19404 eval additional_libdir
=\"$libdir\"
19406 exec_prefix
="$acl_save_exec_prefix"
19407 prefix
="$acl_save_prefix"
19410 # Check whether --with-libxxhash-prefix was given.
19411 if test "${with_libxxhash_prefix+set}" = set; then :
19412 withval
=$with_libxxhash_prefix;
19413 if test "X$withval" = "Xno"; then
19416 if test "X$withval" = "X"; then
19418 acl_save_prefix
="$prefix"
19419 prefix
="$acl_final_prefix"
19420 acl_save_exec_prefix
="$exec_prefix"
19421 exec_prefix
="$acl_final_exec_prefix"
19423 eval additional_includedir
=\"$includedir\"
19424 eval additional_libdir
=\"$libdir\"
19426 exec_prefix
="$acl_save_exec_prefix"
19427 prefix
="$acl_save_prefix"
19430 additional_includedir
="$withval/include"
19431 additional_libdir
="$withval/lib"
19438 # Check whether --with-libxxhash-type was given.
19439 if test "${with_libxxhash_type+set}" = set; then :
19440 withval
=$with_libxxhash_type; with_libxxhash_type
=$withval
19442 with_libxxhash_type
=auto
19445 lib_type
=`eval echo \$with_libxxhash_type`
19452 names_already_handled
=
19453 names_next_round
='xxhash '
19454 while test -n "$names_next_round"; do
19455 names_this_round
="$names_next_round"
19457 for name
in $names_this_round; do
19459 for n
in $names_already_handled; do
19460 if test "$n" = "$name"; then
19461 already_handled
=yes
19465 if test -z "$already_handled"; then
19466 names_already_handled
="$names_already_handled $name"
19467 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
19468 eval value
=\"\
$HAVE_LIB$uppername\"
19469 if test -n "$value"; then
19470 if test "$value" = yes; then
19471 eval value
=\"\
$LIB$uppername\"
19472 test -z "$value" || LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$value"
19473 eval value
=\"\
$LTLIB$uppername\"
19474 test -z "$value" || LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$value"
19483 if test $use_additional = yes; then
19484 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
19485 found_dir
="$additional_libdir"
19486 found_so
="$additional_libdir/lib$name.$shlibext"
19487 if test -f "$additional_libdir/lib$name.la"; then
19488 found_la
="$additional_libdir/lib$name.la"
19490 elif test x
$lib_type != xshared
; then
19491 if test -f "$additional_libdir/lib$name.$libext"; then
19492 found_dir
="$additional_libdir"
19493 found_a
="$additional_libdir/lib$name.$libext"
19494 if test -f "$additional_libdir/lib$name.la"; then
19495 found_la
="$additional_libdir/lib$name.la"
19500 if test "X$found_dir" = "X"; then
19501 for x
in $LDFLAGS $LTLIBXXHASH; do
19503 acl_save_prefix
="$prefix"
19504 prefix
="$acl_final_prefix"
19505 acl_save_exec_prefix
="$exec_prefix"
19506 exec_prefix
="$acl_final_exec_prefix"
19508 exec_prefix
="$acl_save_exec_prefix"
19509 prefix
="$acl_save_prefix"
19513 dir
=`echo "X$x" | sed -e 's/^X-L//'`
19514 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
19516 found_so
="$dir/lib$name.$shlibext"
19517 if test -f "$dir/lib$name.la"; then
19518 found_la
="$dir/lib$name.la"
19520 elif test x
$lib_type != xshared
; then
19521 if test -f "$dir/lib$name.$libext"; then
19523 found_a
="$dir/lib$name.$libext"
19524 if test -f "$dir/lib$name.la"; then
19525 found_la
="$dir/lib$name.la"
19531 if test "X$found_dir" != "X"; then
19536 if test "X$found_dir" != "X"; then
19537 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$found_dir -l$name"
19538 if test "X$found_so" != "X"; then
19539 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
19540 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19543 for x
in $ltrpathdirs; do
19544 if test "X$x" = "X$found_dir"; then
19549 if test -z "$haveit"; then
19550 ltrpathdirs
="$ltrpathdirs $found_dir"
19552 if test "$hardcode_direct" = yes; then
19553 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19555 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
19556 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19558 for x
in $rpathdirs; do
19559 if test "X$x" = "X$found_dir"; then
19564 if test -z "$haveit"; then
19565 rpathdirs
="$rpathdirs $found_dir"
19569 for x
in $LDFLAGS $LIBXXHASH; do
19571 acl_save_prefix
="$prefix"
19572 prefix
="$acl_final_prefix"
19573 acl_save_exec_prefix
="$exec_prefix"
19574 exec_prefix
="$acl_final_exec_prefix"
19576 exec_prefix
="$acl_save_exec_prefix"
19577 prefix
="$acl_save_prefix"
19579 if test "X$x" = "X-L$found_dir"; then
19584 if test -z "$haveit"; then
19585 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir"
19587 if test "$hardcode_minus_L" != no
; then
19588 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19590 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
19596 if test "X$found_a" != "X"; then
19597 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_a"
19599 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir -l$name"
19602 additional_includedir
=
19603 case "$found_dir" in
19605 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
19606 additional_includedir
="$basedir/include"
19609 if test "X$additional_includedir" != "X"; then
19610 if test "X$additional_includedir" != "X/usr/include"; then
19612 if test "X$additional_includedir" = "X/usr/local/include"; then
19613 if test -n "$GCC"; then
19615 linux
*) haveit
=yes;;
19619 if test -z "$haveit"; then
19620 for x
in $CPPFLAGS $INCXXHASH; do
19622 acl_save_prefix
="$prefix"
19623 prefix
="$acl_final_prefix"
19624 acl_save_exec_prefix
="$exec_prefix"
19625 exec_prefix
="$acl_final_exec_prefix"
19627 exec_prefix
="$acl_save_exec_prefix"
19628 prefix
="$acl_save_prefix"
19630 if test "X$x" = "X-I$additional_includedir"; then
19635 if test -z "$haveit"; then
19636 if test -d "$additional_includedir"; then
19637 INCXXHASH
="${INCXXHASH}${INCXXHASH:+ }-I$additional_includedir"
19643 if test -n "$found_la"; then
19644 save_libdir
="$libdir"
19645 case "$found_la" in
19646 */* |
*\\*) .
"$found_la" ;;
19647 *) .
"./$found_la" ;;
19649 libdir
="$save_libdir"
19650 for dep
in $dependency_libs; do
19653 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
19654 if test "X$additional_libdir" != "X/usr/lib"; then
19656 if test "X$additional_libdir" = "X/usr/local/lib"; then
19657 if test -n "$GCC"; then
19659 linux
*) haveit
=yes;;
19663 if test -z "$haveit"; then
19665 for x
in $LDFLAGS $LIBXXHASH; do
19667 acl_save_prefix
="$prefix"
19668 prefix
="$acl_final_prefix"
19669 acl_save_exec_prefix
="$exec_prefix"
19670 exec_prefix
="$acl_final_exec_prefix"
19672 exec_prefix
="$acl_save_exec_prefix"
19673 prefix
="$acl_save_prefix"
19675 if test "X$x" = "X-L$additional_libdir"; then
19680 if test -z "$haveit"; then
19681 if test -d "$additional_libdir"; then
19682 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$additional_libdir"
19686 for x
in $LDFLAGS $LTLIBXXHASH; do
19688 acl_save_prefix
="$prefix"
19689 prefix
="$acl_final_prefix"
19690 acl_save_exec_prefix
="$exec_prefix"
19691 exec_prefix
="$acl_final_exec_prefix"
19693 exec_prefix
="$acl_save_exec_prefix"
19694 prefix
="$acl_save_prefix"
19696 if test "X$x" = "X-L$additional_libdir"; then
19701 if test -z "$haveit"; then
19702 if test -d "$additional_libdir"; then
19703 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$additional_libdir"
19710 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
19711 if test "$enable_rpath" != no
; then
19713 for x
in $rpathdirs; do
19714 if test "X$x" = "X$dir"; then
19719 if test -z "$haveit"; then
19720 rpathdirs
="$rpathdirs $dir"
19723 for x
in $ltrpathdirs; do
19724 if test "X$x" = "X$dir"; then
19729 if test -z "$haveit"; then
19730 ltrpathdirs
="$ltrpathdirs $dir"
19735 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19738 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19741 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$dep"
19742 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$dep"
19748 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
19749 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
19750 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l$name"
19752 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l:lib$name.$libext"
19753 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l:lib$name.$libext"
19760 if test "X$rpathdirs" != "X"; then
19761 if test -n "$hardcode_libdir_separator"; then
19763 for found_dir
in $rpathdirs; do
19764 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
19766 acl_save_libdir
="$libdir"
19768 eval flag
=\"$hardcode_libdir_flag_spec\"
19769 libdir
="$acl_save_libdir"
19770 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
19772 for found_dir
in $rpathdirs; do
19773 acl_save_libdir
="$libdir"
19774 libdir
="$found_dir"
19775 eval flag
=\"$hardcode_libdir_flag_spec\"
19776 libdir
="$acl_save_libdir"
19777 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
19781 if test "X$ltrpathdirs" != "X"; then
19782 for found_dir
in $ltrpathdirs; do
19783 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-R$found_dir"
19788 ac_save_CPPFLAGS
="$CPPFLAGS"
19790 for element
in $INCXXHASH; do
19792 for x
in $CPPFLAGS; do
19794 acl_save_prefix
="$prefix"
19795 prefix
="$acl_final_prefix"
19796 acl_save_exec_prefix
="$exec_prefix"
19797 exec_prefix
="$acl_final_exec_prefix"
19799 exec_prefix
="$acl_save_exec_prefix"
19800 prefix
="$acl_save_prefix"
19802 if test "X$x" = "X$element"; then
19807 if test -z "$haveit"; then
19808 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
19813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5
19814 $as_echo_n "checking for libxxhash... " >&6; }
19815 if ${ac_cv_libxxhash+:} false
; then :
19816 $as_echo_n "(cached) " >&6
19819 ac_save_LIBS
="$LIBS"
19820 LIBS
="$LIBS $LIBXXHASH"
19821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19822 /* end confdefs.h. */
19823 #include <xxhash.h>
19827 XXH32("foo", 3, 0);
19833 if ac_fn_c_try_link
"$LINENO"; then :
19834 ac_cv_libxxhash
=yes
19838 rm -f core conftest.err conftest.
$ac_objext \
19839 conftest
$ac_exeext conftest.
$ac_ext
19840 LIBS
="$ac_save_LIBS"
19843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxxhash" >&5
19844 $as_echo "$ac_cv_libxxhash" >&6; }
19845 if test "$ac_cv_libxxhash" = yes; then
19848 $as_echo "#define HAVE_LIBXXHASH 1" >>confdefs.h
19850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libxxhash" >&5
19851 $as_echo_n "checking how to link with libxxhash... " >&6; }
19852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXXHASH" >&5
19853 $as_echo "$LIBXXHASH" >&6; }
19856 CPPFLAGS
="$ac_save_CPPFLAGS"
19866 if test "$HAVE_LIBXXHASH" != yes; then
19867 if test "$with_xxhash" = yes; then
19868 as_fn_error $?
"xxhash is missing or unusable" "$LINENO" 5
19871 if test "x$with_xxhash" = "xauto"; then
19872 with_xxhash
="$HAVE_LIBXXHASH"
19876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
19877 $as_echo_n "checking whether to use xxhash... " >&6; }
19878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
19879 $as_echo "$with_xxhash" >&6; }
19883 if test "${nativefile}" != ""; then
19884 case "${nativefile}" in
19885 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
19886 * ) GDB_NM_FILE
="${nativefile}"
19888 ac_config_links
="$ac_config_links nm.h:$GDB_NM_FILE"
19891 cat >>confdefs.h
<<_ACEOF
19892 #define GDB_NM_FILE "${GDB_NM_FILE}"
19900 for ac_prog
in xsltproc
19902 # Extract the first word of "$ac_prog", so it can be a program name with args.
19903 set dummy
$ac_prog; ac_word
=$2
19904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19905 $as_echo_n "checking for $ac_word... " >&6; }
19906 if ${ac_cv_path_XSLTPROC+:} false
; then :
19907 $as_echo_n "(cached) " >&6
19911 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
19914 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19915 for as_dir
in $PATH
19918 test -z "$as_dir" && as_dir
=.
19919 for ac_exec_ext
in '' $ac_executable_extensions; do
19920 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19921 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
19922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19932 XSLTPROC
=$ac_cv_path_XSLTPROC
19933 if test -n "$XSLTPROC"; then
19934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19935 $as_echo "$XSLTPROC" >&6; }
19937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19938 $as_echo "no" >&6; }
19942 test -n "$XSLTPROC" && break
19944 test -n "$XSLTPROC" || XSLTPROC
="missing"
19946 if test "x$USE_MAINTAINER_MODE" = xyes
; then
19947 if test "${XSLTPROC}" = missing
; then
19948 as_fn_error $?
"unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
19956 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
19960 # Check whether we will enable the inclusion of unit tests when
19963 # The default value of this option changes depending whether we're on
19964 # development mode (in which case it's "true") or not (in which case
19965 # it's "false"). The $development variable is set by the GDB_AC_COMMON
19966 # macro, which must therefore be used before GDB_AC_SELFTEST.
19968 if test "x$development" != xtrue
&& test "x$development" != xfalse
; then :
19969 as_fn_error $?
"Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
19972 # Check whether --enable-unit-tests was given.
19973 if test "${enable_unit_tests+set}" = set; then :
19974 enableval
=$enable_unit_tests; case "${enableval}" in
19975 yes) enable_unittests
=true
;;
19976 no
) enable_unittests
=false
;;
19977 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
19980 enable_unittests
=$development
19984 if $enable_unittests; then
19986 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
19989 CONFIG_OBS
="$CONFIG_OBS \$(SELFTESTS_OBS)"
19990 CONFIG_SRCS
="$CONFIG_SRCS \$(SELFTESTS_SRCS)"
19996 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19997 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
19998 if test "x$GDB_TRANSFORM_NAME" = x
; then
19999 GDB_TRANSFORM_NAME
=gdb
20004 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
20005 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
20006 if test "x$GCORE_TRANSFORM_NAME" = x
; then
20007 GCORE_TRANSFORM_NAME
=gcore
20011 ac_config_files
="$ac_config_files gcore"
20013 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
20016 cat >confcache
<<\_ACEOF
20017 # This file is a shell script that caches the results of configure
20018 # tests run on this system so they can be shared between configure
20019 # scripts and configure runs, see configure's option --config-cache.
20020 # It is not useful on other systems. If it contains results you don't
20021 # want to keep, you may remove or edit it.
20023 # config.status only pays attention to the cache file if you give it
20024 # the --recheck option to rerun configure.
20026 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20027 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20028 # following values.
20032 # The following way of writing the cache mishandles newlines in values,
20033 # but we know of no workaround that is simple, portable, and efficient.
20034 # So, we kill variables containing newlines.
20035 # Ultrix sh set writes to stderr and can't be redirected directly,
20036 # and sets the high bit in the cache file unless we assign to the vars.
20038 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20039 eval ac_val
=\$
$ac_var
20043 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20044 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20047 _ | IFS | as_nl
) ;; #(
20048 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
20049 *) { eval $ac_var=; unset $ac_var;} ;;
20055 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20056 *${as_nl}ac_space
=\
*)
20057 # `set' does not quote correctly, so add quotes: double-quote
20058 # substitution turns \\\\ into \\, and sed turns \\ into \.
20061 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20064 # `set' quotes correctly as required by POSIX, so do not add quotes.
20065 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20074 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20076 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20078 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
20079 if test -w "$cache_file"; then
20080 if test "x$cache_file" != "x/dev/null"; then
20081 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20082 $as_echo "$as_me: updating cache $cache_file" >&6;}
20083 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
20084 cat confcache
>"$cache_file"
20086 case $cache_file in #(
20088 mv -f confcache
"$cache_file"$$
&&
20089 mv -f "$cache_file"$$
"$cache_file" ;; #(
20091 mv -f confcache
"$cache_file" ;;
20096 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20097 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20102 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
20103 # Let make expand exec_prefix.
20104 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
20106 DEFS
=-DHAVE_CONFIG_H
20111 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
20112 # 1. Remove the extension, and $U if already installed.
20113 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
20114 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
20115 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20116 # will be set to the directory where LIBOBJS objects are built.
20117 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20118 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
20120 LIBOBJS
=$ac_libobjs
20122 LTLIBOBJS
=$ac_ltlibobjs
20125 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20126 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
20127 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20129 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
20130 as_fn_error $?
"conditional \"HAVE_PYTHON\" was never defined.
20131 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20133 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
20134 as_fn_error $?
"conditional \"HAVE_GUILE\" was never defined.
20135 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20139 : "${CONFIG_STATUS=./config.status}"
20141 ac_clean_files_save
=$ac_clean_files
20142 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
20143 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20144 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20146 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20148 # Generated by $as_me.
20149 # Run this file to recreate the current configuration.
20150 # Compiler output produced by configure, useful for debugging
20151 # configure, is in config.log if it exists.
20154 ac_cs_recheck=false
20157 SHELL=\${CONFIG_SHELL-$SHELL}
20160 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
20161 ## -------------------- ##
20162 ## M4sh Initialization. ##
20163 ## -------------------- ##
20165 # Be more Bourne compatible
20166 DUALCASE
=1; export DUALCASE
# for MKS sh
20167 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20170 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20171 # is contrary to our usage. Disable this feature.
20172 alias -g '${1+"$@"}'='"$@"'
20173 setopt NO_GLOB_SUBST
20175 case `(set -o) 2>/dev/null` in #(
20187 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20188 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20189 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20190 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20191 # Prefer a ksh shell builtin over an external printf program on Solaris,
20192 # but without wasting forks for bash or zsh.
20193 if test -z "$BASH_VERSION$ZSH_VERSION" \
20194 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20195 as_echo='print
-r --'
20196 as_echo_n='print
-rn --'
20197 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20198 as_echo='printf %s
\n'
20199 as_echo_n='printf %s
'
20201 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20202 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
20203 as_echo_n='/usr
/ucb
/echo -n'
20205 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20206 as_echo_n_body='eval
20210 expr "X$arg" : "X\\(.*\\)$as_nl";
20211 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20213 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
20215 export as_echo_n_body
20216 as_echo_n='sh
-c $as_echo_n_body as_echo
'
20218 export as_echo_body
20219 as_echo='sh
-c $as_echo_body as_echo
'
20222 # The user is always right.
20223 if test "${PATH_SEPARATOR+set}" != set; then
20225 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20226 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20233 # We need space, tab and new line, in precisely that order. Quoting is
20234 # there to prevent editors from complaining about space-tab.
20235 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20236 # splitting by setting IFS to empty value.)
20239 # Find who we are. Look in the path if we contain no directory separator.
20242 *[\\/]* ) as_myself=$0 ;;
20243 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20244 for as_dir in $PATH
20247 test -z "$as_dir" && as_dir=.
20248 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20254 # We did not find ourselves, most probably we were run as `sh COMMAND'
20255 # in which case we are not to be found in the path.
20256 if test "x$as_myself" = x
; then
20259 if test ! -f "$as_myself"; then
20260 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20264 # Unset variables that we do not need and which cause bugs (e.g. in
20265 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20266 # suppresses any "Segmentation fault" message there. '((' could
20267 # trigger a bug in pdksh 5.2.14.
20268 for as_var
in BASH_ENV ENV MAIL MAILPATH
20269 do eval test x\
${$as_var+set} = xset \
20270 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
20283 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
20286 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20287 # ----------------------------------------
20288 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20289 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20290 # script with STATUS, using 1 if that was 0.
20293 as_status
=$1; test $as_status -eq 0 && as_status
=1
20295 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
20296 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20298 $as_echo "$as_me: error: $2" >&2
20299 as_fn_exit
$as_status
20303 # as_fn_set_status STATUS
20304 # -----------------------
20305 # Set $? to STATUS, without forking.
20306 as_fn_set_status
()
20309 } # as_fn_set_status
20311 # as_fn_exit STATUS
20312 # -----------------
20313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20317 as_fn_set_status
$1
20323 # Portably unset VAR.
20326 { eval $1=; unset $1;}
20328 as_unset
=as_fn_unset
20329 # as_fn_append VAR VALUE
20330 # ----------------------
20331 # Append the text in VALUE to the end of the definition contained in VAR. Take
20332 # advantage of any shell optimizations that allow amortized linear growth over
20333 # repeated appends, instead of the typical quadratic growth present in naive
20335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
20336 eval 'as_fn_append ()
20347 # as_fn_arith ARG...
20348 # ------------------
20349 # Perform arithmetic evaluation on the ARGs, and store the result in the
20350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20351 # must be portable across $(()) and expr.
20352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
20353 eval 'as_fn_arith ()
20360 as_val
=`expr "$@" || test $? -eq 1`
20365 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20366 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20372 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20373 as_basename
=basename
20378 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
20384 as_me
=`$as_basename -- "$0" ||
20385 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20386 X"$0" : 'X\(//\)$' \| \
20387 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20389 sed '/^.*\/\([^/][^/]*\)\/*$/{
20403 # Avoid depending upon Character Ranges.
20404 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
20405 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20406 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
20407 as_cr_digits
='0123456789'
20408 as_cr_alnum
=$as_cr_Letters$as_cr_digits
20410 ECHO_C
= ECHO_N
= ECHO_T
=
20411 case `echo -n x` in #(((((
20413 case `echo 'xy\c'` in
20414 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
20416 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
20423 rm -f conf$$ conf$$.exe conf$$.
file
20424 if test -d conf$$.dir
; then
20425 rm -f conf$$.dir
/conf$$.
file
20428 mkdir conf$$.dir
2>/dev
/null
20430 if (echo >conf$$.
file) 2>/dev
/null
; then
20431 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20433 # ... but there are two gotchas:
20434 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20435 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20436 # In both cases, we have to default to `cp -pR'.
20437 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
20439 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20447 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
20448 rmdir conf$$.dir
2>/dev
/null
20453 # Create "$as_dir" as a directory, including parents if necessary.
20458 -*) as_dir
=.
/$as_dir;;
20460 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
20464 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20465 *) as_qdir
=$as_dir;;
20467 as_dirs
="'$as_qdir' $as_dirs"
20468 as_dir
=`$as_dirname -- "$as_dir" ||
20469 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20470 X"$as_dir" : 'X\(//\)[^/]' \| \
20471 X"$as_dir" : 'X\(//\)$' \| \
20472 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20473 $as_echo X"$as_dir" |
20474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20478 /^X\(\/\/\)[^/].*/{
20491 test -d "$as_dir" && break
20493 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
20494 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
20498 if mkdir
-p .
2>/dev
/null
; then
20499 as_mkdir_p
='mkdir -p "$as_dir"'
20501 test -d .
/-p && rmdir .
/-p
20506 # as_fn_executable_p FILE
20507 # -----------------------
20508 # Test if FILE is an executable regular file.
20509 as_fn_executable_p
()
20511 test -f "$1" && test -x "$1"
20512 } # as_fn_executable_p
20513 as_test_x
='test -x'
20514 as_executable_p
=as_fn_executable_p
20516 # Sed expression to map a string onto a valid CPP name.
20517 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20519 # Sed expression to map a string onto a valid variable name.
20520 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20524 ## ----------------------------------- ##
20525 ## Main body of $CONFIG_STATUS script. ##
20526 ## ----------------------------------- ##
20528 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
20530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20531 # Save the log message, to keep $0 and so on meaningful, and to
20532 # report actual input values of CONFIG_FILES etc. instead of their
20533 # values after options handling.
20535 This file was extended by $as_me, which was
20536 generated by GNU Autoconf 2.69. Invocation command line was
20538 CONFIG_FILES = $CONFIG_FILES
20539 CONFIG_HEADERS = $CONFIG_HEADERS
20540 CONFIG_LINKS = $CONFIG_LINKS
20541 CONFIG_COMMANDS = $CONFIG_COMMANDS
20544 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20549 case $ac_config_files in *"
20550 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
20553 case $ac_config_headers in *"
20554 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
20558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20559 # Files that config.status was made for.
20560 config_files="$ac_config_files"
20561 config_headers="$ac_config_headers"
20562 config_links="$ac_config_links"
20563 config_commands="$ac_config_commands"
20567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20569 \`$as_me' instantiates files and other configuration actions
20570 from templates according to the current configuration. Unless the files
20571 and actions are specified as TAGs, all are instantiated by default.
20573 Usage: $0 [OPTION]... [TAG]...
20575 -h, --help print this help, then exit
20576 -V, --version print version number and configuration settings, then exit
20577 --config print configuration, then exit
20578 -q, --quiet, --silent
20579 do not print progress messages
20580 -d, --debug don't remove temporary files
20581 --recheck update $as_me by reconfiguring in the same conditions
20582 --file=FILE[:TEMPLATE]
20583 instantiate the configuration file FILE
20584 --header=FILE[:TEMPLATE]
20585 instantiate the configuration header FILE
20587 Configuration files:
20590 Configuration headers:
20593 Configuration links:
20596 Configuration commands:
20599 Report bugs to the package provider."
20602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20603 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20606 configured by $0, generated by GNU Autoconf 2.69,
20607 with options \\"\$ac_cs_config\\"
20609 Copyright (C) 2012 Free Software Foundation, Inc.
20610 This config.status script is free software; the Free Software Foundation
20611 gives unlimited permission to copy, distribute and modify it."
20617 test -n "\$AWK" || AWK=awk
20620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20621 # The default lists apply if the user does not specify any file.
20627 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20628 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20632 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20644 # Handling of the options.
20645 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20647 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20648 $as_echo "$ac_cs_version"; exit ;;
20649 --config |
--confi |
--conf |
--con |
--co |
--c )
20650 $as_echo "$ac_cs_config"; exit ;;
20651 --debug |
--debu |
--deb |
--de |
--d |
-d )
20653 --file |
--fil |
--fi |
--f )
20656 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20657 '') as_fn_error $?
"missing file argument" ;;
20659 as_fn_append CONFIG_FILES
" '$ac_optarg'"
20660 ac_need_defaults
=false
;;
20661 --header |
--heade |
--head |
--hea )
20664 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20666 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
20667 ac_need_defaults
=false
;;
20669 # Conflict between --help and --header
20670 as_fn_error $?
"ambiguous option: \`$1'
20671 Try \`$0 --help' for more information.";;
20672 --help |
--hel |
-h )
20673 $as_echo "$ac_cs_usage"; exit ;;
20674 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20675 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20678 # This is an error.
20679 -*) as_fn_error $?
"unrecognized option: \`$1'
20680 Try \`$0 --help' for more information." ;;
20682 *) as_fn_append ac_config_targets
" $1"
20683 ac_need_defaults
=false
;;
20689 ac_configure_extra_args
=
20691 if $ac_cs_silent; then
20693 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20698 if \$ac_cs_recheck; then
20699 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20701 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20702 CONFIG_SHELL='$SHELL'
20703 export CONFIG_SHELL
20708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20712 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20713 ## Running $as_me. ##
20719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20723 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
20724 GDB_NM_FILE=$GDB_NM_FILE
20728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20730 # Handling of arguments.
20731 for ac_config_target
in $ac_config_targets
20733 case $ac_config_target in
20734 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
20735 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
20736 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
20737 "nm.h") CONFIG_LINKS
="$CONFIG_LINKS nm.h:$GDB_NM_FILE" ;;
20738 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
20739 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20740 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
20741 "gdb-gdb.py") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.py" ;;
20742 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
20743 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
20745 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20750 # If the user did not use the arguments to specify the items to instantiate,
20751 # then the envvar interface is used. Set only those that are not.
20752 # We use the long form for the default assignment because of an extremely
20753 # bizarre bug on SunOS 4.1.3.
20754 if $ac_need_defaults; then
20755 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20756 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20757 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
20758 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20761 # Have a temporary directory for convenience. Make it in the build tree
20762 # simply because there is no reason against having it here, and in addition,
20763 # creating and moving files from /tmp can sometimes cause problems.
20764 # Hook for its removal unless debugging.
20765 # Note that there is a small window in which the directory will not be cleaned:
20766 # after its creation but before its name has been assigned to `$tmp'.
20770 trap 'exit_status=$?
20771 : "${ac_tmp:=$tmp}"
20772 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20774 trap 'as_fn_exit 1' 1 2 13 15
20776 # Create a (secure) tmp directory for tmp files.
20779 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20783 tmp
=.
/conf$$
-$RANDOM
20784 (umask 077 && mkdir
"$tmp")
20785 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
20788 # Set up the scripts for CONFIG_FILES section.
20789 # No need to generate them if there are no CONFIG_FILES.
20790 # This happens for instance with `./config.status config.h'.
20791 if test -n "$CONFIG_FILES"; then
20793 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
20794 ac_cs_awk_getline
=:
20795 ac_cs_awk_pipe_init
=
20796 ac_cs_awk_read_file
='
20797 while ((getline aline < (F[key])) > 0)
20800 ac_cs_awk_pipe_fini
=
20802 ac_cs_awk_getline
=false
20803 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
20804 ac_cs_awk_read_file
='
20806 print "cat " F[key] " &&"
20807 '$ac_cs_awk_pipe_init
20808 # The final `:' finishes the AND list.
20809 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
20811 ac_cr
=`echo X | tr X '\015'`
20812 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20813 # But we know of no other shell where ac_cr would be empty at this
20814 # point, so we can use a bashism as a fallback.
20815 if test "x$ac_cr" = x
; then
20816 eval ac_cr
=\$
\'\\r
\'
20818 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20819 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20822 ac_cs_awk_cr
=$ac_cr
20825 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20828 # Create commands to substitute file output variables.
20830 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20831 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
20832 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
20835 } >conf$
$files.sh
&&
20836 . .
/conf$
$files.sh ||
20837 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
20838 rm -f conf$
$files.sh
20841 echo "cat >conf$$subs.awk <<_ACEOF" &&
20842 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20844 } >conf$$subs.sh ||
20845 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20846 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20848 for ac_last_try in false false false false false :; do
20849 . ./conf$$subs.sh ||
20850 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20852 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20853 if test $ac_delim_n = $ac_delim_num; then
20855 elif $ac_last_try; then
20856 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20858 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20861 rm -f conf$$subs.sh
20863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20864 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
20868 s/^/S["/; s
/!.
*/"]=/
20878 s/\(.\{148\}\)..*/\1/
20880 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
20885 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20892 s/\(.\{148\}\)..*/\1/
20894 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
20898 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20903 ' <conf$$subs.awk | sed '
20908 ' >>$CONFIG_STATUS || ac_write_fail=1
20909 rm -f conf$$subs.awk
20910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20912 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
20913 for (key in S) S_is_set[key] = 1
20915 \$ac_cs_awk_pipe_init
20919 nfields = split(line, field, "@
")
20921 len = length(field[1])
20922 for (i = 2; i < nfields; i++) {
20924 keylen = length(key)
20925 if (S_is_set[key]) {
20927 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20928 len += length(value) + length(field[++i])
20933 if (nfields == 3 && !substed) {
20935 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
20936 \$ac_cs_awk_read_file
20942 \$ac_cs_awk_pipe_fini
20945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20946 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20947 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
20950 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
20951 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
20954 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20955 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
20956 # trailing colons and then remove the whole line if VPATH becomes empty
20957 # (actually we leave an empty line to preserve line numbers).
20958 if test "x
$srcdir" = x.; then
20959 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20978 fi # test -n "$CONFIG_FILES"
20980 # Set up the scripts for CONFIG_HEADERS section.
20981 # No need to generate them if there are no CONFIG_HEADERS.
20982 # This happens for instance with `./config.status Makefile'.
20983 if test -n "$CONFIG_HEADERS"; then
20984 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
20988 # Transform confdefs.h into an awk script `defines.awk', embedded as
20989 # here-document in config.status, that substitutes the proper values into
20990 # config.h.in to produce config.h.
20992 # Create a delimiter string that does not exist in confdefs.h, to ease
20993 # handling of long lines.
20995 for ac_last_try in false false :; do
20996 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
20997 if test -z "$ac_tt"; then
20999 elif $ac_last_try; then
21000 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
21002 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
21006 # For the awk script, D is an array of macro values keyed by name,
21007 # likewise P contains macro parameters if any. Preserve backslash
21008 # newline sequences.
21010 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21012 s/.\{148\}/&'"$ac_delim"'/g
21015 s/^[ ]*#[ ]*define[ ][ ]*/ /
21022 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
21024 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
21028 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
21029 D["\
1"]=" \
3\\\\\\n
"\\/p
21031 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
21036 s/.\{148\}/&'"$ac_delim"'/g
21041 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
21044 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
21046 ' <confdefs.h | sed '
21047 s/'"$ac_delim"'/"\\\
21048 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21051 for (key in D) D_is_set[key] = 1
21054 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21056 split(line, arg, " ")
21057 if (arg[1] == "#") {
21061 defundef
= substr
(arg
[1], 2)
21064 split(mac1
, mac2
, "(") #)
21066 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
21067 if (D_is_set
[macro
]) {
21068 # Preserve the white space surrounding the "#".
21069 print prefix
"define", macro P
[macro
] D
[macro
]
21072 # Replace #undef with comments. This is necessary, for example,
21073 # in the case of _POSIX_SOURCE, which is predefined and required
21074 # on some systems where configure will not decide to define it.
21075 if (defundef
== "undef") {
21076 print
"/*", prefix defundef
, macro
, "*/"
21084 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21085 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
21086 fi # test -n "$CONFIG_HEADERS"
21089 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
21094 :[FHLC
]) ac_mode
=$ac_tag; continue;;
21096 case $ac_mode$ac_tag in
21098 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
21099 :[FH
]-) ac_tag
=-:-;;
21100 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
21117 -) ac_f
="$ac_tmp/stdin";;
21118 *) # Look for the file first in the build tree, then in the source tree
21119 # (if the path is not absolute). The absolute path cannot be DOS-style,
21120 # because $ac_f cannot contain `:'.
21124 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
21126 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21128 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21129 as_fn_append ac_file_inputs
" '$ac_f'"
21132 # Let's still pretend it is `configure' which instantiates (i.e., don't
21133 # use $as_me), people would be surprised to read:
21134 # /* config.h. Generated by config.status. */
21135 configure_input
='Generated from '`
21136 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21138 if test x
"$ac_file" != x-
; then
21139 configure_input
="$ac_file. $configure_input"
21140 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21141 $as_echo "$as_me: creating $ac_file" >&6;}
21143 # Neutralize special characters interpreted by sed in replacement strings.
21144 case $configure_input in #(
21145 *\
&* |
*\|
* |
*\\* )
21146 ac_sed_conf_input
=`$as_echo "$configure_input" |
21147 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21148 *) ac_sed_conf_input
=$configure_input;;
21152 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
21153 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
21158 ac_dir
=`$as_dirname -- "$ac_file" ||
21159 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21160 X"$ac_file" : 'X\(//\)[^/]' \| \
21161 X"$ac_file" : 'X\(//\)$' \| \
21162 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21163 $as_echo X"$ac_file" |
21164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21168 /^X\(\/\/\)[^/].*/{
21181 as_dir
="$ac_dir"; as_fn_mkdir_p
21185 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21187 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21188 # A ".." for each directory in $ac_dir_suffix.
21189 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21190 case $ac_top_builddir_sub in
21191 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21192 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
21195 ac_abs_top_builddir
=$ac_pwd
21196 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
21197 # for backward compatibility:
21198 ac_top_builddir
=$ac_top_build_prefix
21201 .
) # We are building in place.
21203 ac_top_srcdir
=$ac_top_builddir_sub
21204 ac_abs_top_srcdir
=$ac_pwd ;;
21205 [\\/]* | ?
:[\\/]* ) # Absolute name.
21206 ac_srcdir
=$srcdir$ac_dir_suffix;
21207 ac_top_srcdir
=$srcdir
21208 ac_abs_top_srcdir
=$srcdir ;;
21209 *) # Relative name.
21210 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
21211 ac_top_srcdir
=$ac_top_build_prefix$srcdir
21212 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
21214 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
21224 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
21225 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
21229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21230 # If the template does not know about datarootdir, expand it.
21231 # FIXME: This hack should be removed a few years after 2.60.
21232 ac_datarootdir_hack
=; ac_datarootdir_seen
=
21243 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21244 *datarootdir
*) ac_datarootdir_seen
=yes;;
21245 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
21246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21247 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21250 ac_datarootdir_hack='
21251 s&@datadir@&$datadir&g
21252 s&@docdir@&$docdir&g
21253 s&@infodir@&$infodir&g
21254 s&@localedir@&$localedir&g
21255 s&@mandir@&$mandir&g
21256 s&\\\${datarootdir}&$datarootdir&g' ;;
21260 # Neutralize VPATH when `$srcdir' = `.'.
21261 # Shell code in configure.ac might set extrasub.
21262 # FIXME: do we really want to maintain this feature?
21263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21264 ac_sed_extra="$ac_vpsub
21267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21269 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
21270 s|@configure_input@|
$ac_sed_conf_input|
;t t
21271 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
21272 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
21273 s
&@srcdir@
&$ac_srcdir&;t t
21274 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
21275 s
&@top_srcdir@
&$ac_top_srcdir&;t t
21276 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
21277 s
&@builddir@
&$ac_builddir&;t t
21278 s
&@abs_builddir@
&$ac_abs_builddir&;t t
21279 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
21280 s
&@INSTALL@
&$ac_INSTALL&;t t
21281 $ac_datarootdir_hack
21283 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
21284 if $ac_cs_awk_getline; then
21285 $AWK -f "$ac_tmp/subs.
awk"
21287 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
21289 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
21291 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21292 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
21293 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21294 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
21295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
21296 which seems to be undefined. Please make sure it is defined" >&5
21297 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
21298 which seems to be undefined. Please make sure it is defined" >&2;}
21300 rm -f "$ac_tmp/stdin"
21302 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21303 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21305 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21311 if test x"$ac_file" != x-; then
21313 $as_echo "/* $configure_input */" \
21314 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21315 } >"$ac_tmp/config.h" \
21316 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21317 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21318 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21319 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21322 mv "$ac_tmp/config.h" "$ac_file" \
21323 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21326 $as_echo "/* $configure_input */" \
21327 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21328 || as_fn_error $? "could not create -" "$LINENO" 5
21336 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
21339 # Prefer the file from the source tree if names are identical.
21340 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
21341 ac_source=$srcdir/$ac_source
21344 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
21345 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
21347 if test ! -r "$ac_source"; then
21348 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
21352 # Try a relative symlink, then a hard link, then a copy.
21354 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
21355 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
21357 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
21358 ln "$ac_source" "$ac_file" 2>/dev/null ||
21359 cp -p "$ac_source" "$ac_file" ||
21360 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
21363 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21364 $as_echo "$as_me: executing $ac_file commands" >&6;}
21369 case $ac_file$ac_mode in
21370 "config.h":H) echo > stamp-h ;;
21371 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
21372 "nm.h":L) echo > stamp-nmh ;;
21373 "gcore":F) chmod +x gcore ;;
21381 ac_clean_files=$ac_clean_files_save
21383 test $ac_write_fail = 0 ||
21384 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21387 # configure is writing to config.log, and then calls config.status.
21388 # config.status does its own redirection, appending to config.log.
21389 # Unfortunately, on DOS this fails, as config.log is still kept open
21390 # by configure, so config.status won't be able to
write to it
; its
21391 # output is simply discarded. So we exec the FD to /dev/null,
21392 # effectively closing config.log, so it can be properly (re)opened and
21393 # appended to by config.status. When coming back to configure, we
21394 # need to make the FD available again.
21395 if test "$no_create" != yes; then
21397 ac_config_status_args
=
21398 test "$silent" = yes &&
21399 ac_config_status_args
="$ac_config_status_args --quiet"
21401 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21403 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21404 # would make configure fail if this is the last instruction.
21405 $ac_cs_success || as_fn_exit
1
21409 # CONFIG_SUBDIRS section.
21411 if test "$no_recursion" != yes; then
21413 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
21414 # so they do not pile up.
21415 ac_sub_configure_args
=
21417 eval "set x $ac_configure_args"
21421 if test -n "$ac_prev"; then
21426 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
21427 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
21428 ac_prev
=cache_file
;;
21429 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
21430 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
21433 --config-cache |
-C)
21435 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
21437 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
21439 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
21441 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
21443 --disable-option-checking)
21447 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21449 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
21453 # Always prepend --prefix to ensure using the same prefix
21454 # in subdir configurations.
21455 ac_arg
="--prefix=$prefix"
21457 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21459 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
21462 if test "$silent" = yes; then
21463 ac_sub_configure_args
="--silent $ac_sub_configure_args"
21466 # Always prepend --disable-option-checking to silence warnings, since
21467 # different subdirs can have different --enable and --with options.
21468 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
21471 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
21473 # Do not complain, so a configure script can configure whichever
21474 # parts of a large source tree are present.
21475 test -d "$srcdir/$ac_dir" ||
continue
21477 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21478 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
21479 $as_echo "$ac_msg" >&6
21480 as_dir
="$ac_dir"; as_fn_mkdir_p
21484 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21486 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21487 # A ".." for each directory in $ac_dir_suffix.
21488 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21489 case $ac_top_builddir_sub in
21490 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21491 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
21494 ac_abs_top_builddir
=$ac_pwd
21495 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
21496 # for backward compatibility:
21497 ac_top_builddir
=$ac_top_build_prefix
21500 .
) # We are building in place.
21502 ac_top_srcdir
=$ac_top_builddir_sub
21503 ac_abs_top_srcdir
=$ac_pwd ;;
21504 [\\/]* | ?
:[\\/]* ) # Absolute name.
21505 ac_srcdir
=$srcdir$ac_dir_suffix;
21506 ac_top_srcdir
=$srcdir
21507 ac_abs_top_srcdir
=$srcdir ;;
21508 *) # Relative name.
21509 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
21510 ac_top_srcdir
=$ac_top_build_prefix$srcdir
21511 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
21513 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
21518 # Check for guested configure; otherwise get Cygnus style configure.
21519 if test -f "$ac_srcdir/configure.gnu"; then
21520 ac_sub_configure
=$ac_srcdir/configure.gnu
21521 elif test -f "$ac_srcdir/configure"; then
21522 ac_sub_configure
=$ac_srcdir/configure
21523 elif test -f "$ac_srcdir/configure.in"; then
21524 # This should be Cygnus configure.
21525 ac_sub_configure
=$ac_aux_dir/configure
21527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
21528 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21532 # The recursion is here.
21533 if test -n "$ac_sub_configure"; then
21534 # Make the cache file name correct relative to the subdirectory.
21535 case $cache_file in
21536 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
21537 *) # Relative name.
21538 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
21541 { $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
21542 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21543 # The eval makes quoting arguments work.
21544 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21545 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21546 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
21552 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
21553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21554 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}