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
639 HAVE_NATIVE_GCORE_HOST
742 READLINE_TEXI_INCFLAG
771 HAVE_NATIVE_GCORE_TARGET
798 INSTALL_STRIP_PROGRAM
828 MAINTAINER_MODE_FALSE
857 program_transform_name
868 ac_subst_files
='nat_makefile_frag'
870 enable_option_checking
871 enable_maintainer_mode
874 with_separate_debug_dir
876 with_relocated_sources
878 with_auto_load_safe_path
910 enable_source_highlight
916 with_system_gdbinit_dir
918 enable_build_warnings
919 enable_gdb_build_warnings
929 with_libbabeltrace_prefix
930 with_libbabeltrace_type
933 with_libxxhash_prefix
937 ac_precious_vars
='build_alias
959 ac_subdirs_all
='testsuite
962 # Initialize some variables set by options.
964 ac_init_version
=false
965 ac_unrecognized_opts
=
967 # The variables have the same names as the options, with
968 # dashes changed to underlines.
976 program_transform_name
=s
,x
,x
,
984 # Installation directory options.
985 # These are left unexpanded so users can "make install exec_prefix=/foo"
986 # and all the variables that are supposed to be based on exec_prefix
987 # by default will actually change.
988 # Use braces instead of parens because sh, perl, etc. also accept them.
989 # (The list follows the same order as the GNU Coding Standards.)
990 bindir
='${exec_prefix}/bin'
991 sbindir
='${exec_prefix}/sbin'
992 libexecdir
='${exec_prefix}/libexec'
993 datarootdir
='${prefix}/share'
994 datadir
='${datarootdir}'
995 sysconfdir
='${prefix}/etc'
996 sharedstatedir
='${prefix}/com'
997 localstatedir
='${prefix}/var'
998 includedir
='${prefix}/include'
999 oldincludedir
='/usr/include'
1000 docdir
='${datarootdir}/doc/${PACKAGE}'
1001 infodir
='${datarootdir}/info'
1006 libdir
='${exec_prefix}/lib'
1007 localedir
='${datarootdir}/locale'
1008 mandir
='${datarootdir}/man'
1014 # If the previous option needs an argument, assign it.
1015 if test -n "$ac_prev"; then
1016 eval $ac_prev=\
$ac_option
1022 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1027 # Accept the important Cygnus configure options, so we can diagnose typos.
1029 case $ac_dashdash$ac_option in
1033 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1035 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1036 bindir
=$ac_optarg ;;
1038 -build |
--build |
--buil |
--bui |
--bu)
1039 ac_prev
=build_alias
;;
1040 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1041 build_alias
=$ac_optarg ;;
1043 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1044 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1045 ac_prev
=cache_file
;;
1046 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1047 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1048 cache_file
=$ac_optarg ;;
1050 --config-cache |
-C)
1051 cache_file
=config.cache
;;
1053 -datadir |
--datadir |
--datadi |
--datad)
1055 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1056 datadir
=$ac_optarg ;;
1058 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1059 |
--dataroo |
--dataro |
--datar)
1060 ac_prev
=datarootdir
;;
1061 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1062 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1063 datarootdir
=$ac_optarg ;;
1065 -disable-* |
--disable-*)
1066 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1069 as_fn_error $?
"invalid feature name: $ac_useropt"
1070 ac_useropt_orig
=$ac_useropt
1071 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072 case $ac_user_opts in
1074 "enable_
$ac_useropt"
1076 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1077 ac_unrecognized_sep
=', ';;
1079 eval enable_
$ac_useropt=no
;;
1081 -docdir |
--docdir |
--docdi |
--doc |
--do)
1083 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1084 docdir
=$ac_optarg ;;
1086 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1088 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1089 dvidir
=$ac_optarg ;;
1091 -enable-* |
--enable-*)
1092 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1095 as_fn_error $?
"invalid feature name: $ac_useropt"
1096 ac_useropt_orig
=$ac_useropt
1097 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098 case $ac_user_opts in
1100 "enable_
$ac_useropt"
1102 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1103 ac_unrecognized_sep
=', ';;
1105 eval enable_
$ac_useropt=\
$ac_optarg ;;
1107 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1108 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1109 |
--exec |
--exe |
--ex)
1110 ac_prev
=exec_prefix
;;
1111 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1112 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1113 |
--exec=* |
--exe=* |
--ex=*)
1114 exec_prefix
=$ac_optarg ;;
1116 -gas |
--gas |
--ga |
--g)
1117 # Obsolete; use --with-gas.
1120 -help |
--help |
--hel |
--he |
-h)
1121 ac_init_help
=long
;;
1122 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1123 ac_init_help
=recursive
;;
1124 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1125 ac_init_help
=short
;;
1127 -host |
--host |
--hos |
--ho)
1128 ac_prev
=host_alias
;;
1129 -host=* |
--host=* |
--hos=* |
--ho=*)
1130 host_alias
=$ac_optarg ;;
1132 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1134 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1136 htmldir
=$ac_optarg ;;
1138 -includedir |
--includedir |
--includedi |
--included |
--include \
1139 |
--includ |
--inclu |
--incl |
--inc)
1140 ac_prev
=includedir
;;
1141 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1142 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1143 includedir
=$ac_optarg ;;
1145 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1147 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1148 infodir
=$ac_optarg ;;
1150 -libdir |
--libdir |
--libdi |
--libd)
1152 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1153 libdir
=$ac_optarg ;;
1155 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1156 |
--libexe |
--libex |
--libe)
1157 ac_prev
=libexecdir
;;
1158 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1159 |
--libexe=* |
--libex=* |
--libe=*)
1160 libexecdir
=$ac_optarg ;;
1162 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1163 ac_prev
=localedir
;;
1164 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1165 localedir
=$ac_optarg ;;
1167 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1168 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1169 ac_prev
=localstatedir
;;
1170 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1171 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1172 localstatedir
=$ac_optarg ;;
1174 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1176 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1177 mandir
=$ac_optarg ;;
1179 -nfp |
--nfp |
--nf)
1180 # Obsolete; use --without-fp.
1183 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1184 |
--no-cr |
--no-c |
-n)
1187 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1188 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1191 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1192 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1193 |
--oldin |
--oldi |
--old |
--ol |
--o)
1194 ac_prev
=oldincludedir
;;
1195 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1196 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1197 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1198 oldincludedir
=$ac_optarg ;;
1200 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1202 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1203 prefix
=$ac_optarg ;;
1205 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1206 |
--program-pre |
--program-pr |
--program-p)
1207 ac_prev
=program_prefix
;;
1208 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1209 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1210 program_prefix
=$ac_optarg ;;
1212 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1213 |
--program-suf |
--program-su |
--program-s)
1214 ac_prev
=program_suffix
;;
1215 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1216 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1217 program_suffix
=$ac_optarg ;;
1219 -program-transform-name |
--program-transform-name \
1220 |
--program-transform-nam |
--program-transform-na \
1221 |
--program-transform-n |
--program-transform- \
1222 |
--program-transform |
--program-transfor \
1223 |
--program-transfo |
--program-transf \
1224 |
--program-trans |
--program-tran \
1225 |
--progr-tra |
--program-tr |
--program-t)
1226 ac_prev
=program_transform_name
;;
1227 -program-transform-name=* |
--program-transform-name=* \
1228 |
--program-transform-nam=* |
--program-transform-na=* \
1229 |
--program-transform-n=* |
--program-transform-=* \
1230 |
--program-transform=* |
--program-transfor=* \
1231 |
--program-transfo=* |
--program-transf=* \
1232 |
--program-trans=* |
--program-tran=* \
1233 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1234 program_transform_name
=$ac_optarg ;;
1236 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1238 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1239 pdfdir
=$ac_optarg ;;
1241 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1243 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1246 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1247 |
-silent |
--silent |
--silen |
--sile |
--sil)
1250 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1252 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1254 sbindir
=$ac_optarg ;;
1256 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1257 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1258 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1260 ac_prev
=sharedstatedir
;;
1261 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1262 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1263 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1265 sharedstatedir
=$ac_optarg ;;
1267 -site |
--site |
--sit)
1269 -site=* |
--site=* |
--sit=*)
1272 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1274 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1275 srcdir
=$ac_optarg ;;
1277 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1278 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1279 ac_prev
=sysconfdir
;;
1280 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1281 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1282 sysconfdir
=$ac_optarg ;;
1284 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1285 ac_prev
=target_alias
;;
1286 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1287 target_alias
=$ac_optarg ;;
1289 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1292 -version |
--version |
--versio |
--versi |
--vers |
-V)
1293 ac_init_version
=: ;;
1296 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1297 # Reject names that are not valid shell variable names.
1298 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1299 as_fn_error $?
"invalid package name: $ac_useropt"
1300 ac_useropt_orig
=$ac_useropt
1301 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1302 case $ac_user_opts in
1306 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1307 ac_unrecognized_sep
=', ';;
1309 eval with_
$ac_useropt=\
$ac_optarg ;;
1311 -without-* |
--without-*)
1312 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1313 # Reject names that are not valid shell variable names.
1314 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1315 as_fn_error $?
"invalid package name: $ac_useropt"
1316 ac_useropt_orig
=$ac_useropt
1317 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1318 case $ac_user_opts in
1322 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1323 ac_unrecognized_sep
=', ';;
1325 eval with_
$ac_useropt=no
;;
1328 # Obsolete; use --with-x.
1331 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1332 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1333 ac_prev
=x_includes
;;
1334 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1335 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1336 x_includes
=$ac_optarg ;;
1338 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1339 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1340 ac_prev
=x_libraries
;;
1341 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1342 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1343 x_libraries
=$ac_optarg ;;
1345 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1346 Try \`$0 --help' for more information"
1350 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1351 # Reject names that are not valid shell variable names.
1352 case $ac_envvar in #(
1353 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1354 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1356 eval $ac_envvar=\
$ac_optarg
1357 export $ac_envvar ;;
1360 # FIXME: should be removed in autoconf 3.0.
1361 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1362 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1363 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1364 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1370 if test -n "$ac_prev"; then
1371 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1372 as_fn_error $?
"missing argument to $ac_option"
1375 if test -n "$ac_unrecognized_opts"; then
1376 case $enable_option_checking in
1378 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1379 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1383 # Check all directory arguments for consistency.
1384 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1385 datadir sysconfdir sharedstatedir localstatedir includedir \
1386 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1387 libdir localedir mandir
1389 eval ac_val
=\$
$ac_var
1390 # Remove trailing slashes.
1393 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1394 eval $ac_var=\
$ac_val;;
1396 # Be sure to have absolute directory names.
1398 [\\/$
]* | ?
:[\\/]* ) continue;;
1399 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1401 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1404 # There might be people who depend on the old broken behavior: `$host'
1405 # used to hold the argument of --host etc.
1406 # FIXME: To remove some day.
1409 target
=$target_alias
1411 # FIXME: To remove some day.
1412 if test "x$host_alias" != x
; then
1413 if test "x$build_alias" = x
; then
1414 cross_compiling
=maybe
1415 elif test "x$build_alias" != "x$host_alias"; then
1421 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1423 test "$silent" = yes && exec 6>/dev
/null
1426 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1427 ac_ls_di
=`ls -di .` &&
1428 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1429 as_fn_error $?
"working directory cannot be determined"
1430 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1431 as_fn_error $?
"pwd does not report name of working directory"
1434 # Find the source files, if location was not specified.
1435 if test -z "$srcdir"; then
1436 ac_srcdir_defaulted
=yes
1437 # Try the directory containing this script, then the parent directory.
1438 ac_confdir
=`$as_dirname -- "$as_myself" ||
1439 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1440 X"$as_myself" : 'X\(//\)[^/]' \| \
1441 X"$as_myself" : 'X\(//\)$' \| \
1442 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1443 $as_echo X"$as_myself" |
1444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1462 if test ! -r "$srcdir/$ac_unique_file"; then
1466 ac_srcdir_defaulted
=no
1468 if test ! -r "$srcdir/$ac_unique_file"; then
1469 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1470 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1472 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1474 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1476 # When building in place, set srcdir=.
1477 if test "$ac_abs_confdir" = "$ac_pwd"; then
1480 # Remove unnecessary trailing slashes from srcdir.
1481 # Double slashes in file names in object file debugging info
1482 # mess up M-x gdb in Emacs.
1484 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1486 for ac_var
in $ac_precious_vars; do
1487 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1488 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1489 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1490 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1494 # Report the --help message.
1496 if test "$ac_init_help" = "long"; then
1497 # Omit some internal or obsolete options to make the list less imposing.
1498 # This message is too long to be a string in the A/UX 3.1 sh.
1500 \`configure' configures this package to adapt to many kinds of systems.
1502 Usage: $0 [OPTION]... [VAR=VALUE]...
1504 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1505 VAR=VALUE. See below for descriptions of some of the useful variables.
1507 Defaults for the options are specified in brackets.
1510 -h, --help display this help and exit
1511 --help=short display options specific to this package
1512 --help=recursive display the short help of all the included packages
1513 -V, --version display version information and exit
1514 -q, --quiet, --silent do not print \`checking ...' messages
1515 --cache-file=FILE cache test results in FILE [disabled]
1516 -C, --config-cache alias for \`--cache-file=config.cache'
1517 -n, --no-create do not create output files
1518 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1520 Installation directories:
1521 --prefix=PREFIX install architecture-independent files in PREFIX
1522 [$ac_default_prefix]
1523 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1526 By default, \`make install' will install all the files in
1527 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1528 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1529 for instance \`--prefix=\$HOME'.
1531 For better control, use the options below.
1533 Fine tuning of the installation directories:
1534 --bindir=DIR user executables [EPREFIX/bin]
1535 --sbindir=DIR system admin executables [EPREFIX/sbin]
1536 --libexecdir=DIR program executables [EPREFIX/libexec]
1537 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1538 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1539 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1540 --libdir=DIR object code libraries [EPREFIX/lib]
1541 --includedir=DIR C header files [PREFIX/include]
1542 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1543 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1544 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1545 --infodir=DIR info documentation [DATAROOTDIR/info]
1546 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1547 --mandir=DIR man documentation [DATAROOTDIR/man]
1548 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1549 --htmldir=DIR html documentation [DOCDIR]
1550 --dvidir=DIR dvi documentation [DOCDIR]
1551 --pdfdir=DIR pdf documentation [DOCDIR]
1552 --psdir=DIR ps documentation [DOCDIR]
1558 --program-prefix=PREFIX prepend PREFIX to installed program names
1559 --program-suffix=SUFFIX append SUFFIX to installed program names
1560 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1563 --x-includes=DIR X include files are
in DIR
1564 --x-libraries=DIR X library files are
in DIR
1567 --build=BUILD configure
for building on BUILD
[guessed
]
1568 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1569 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1573 if test -n "$ac_init_help"; then
1578 --disable-option-checking ignore unrecognized
--enable/--with options
1579 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1580 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1581 --enable-maintainer-mode
1582 enable make rules and dependencies not useful
(and
1583 sometimes confusing
) to the casual installer
1584 --enable-plugins Enable support
for plugins
1585 --disable-largefile omit support
for large files
1586 --enable-targets=TARGETS
1587 alternative target configurations
1588 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1589 --disable-gdbmi disable machine-interface
(MI
)
1590 --enable-tui enable full-screen terminal user interface
(TUI
)
1591 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1592 --enable-profiling enable profiling of GDB
1593 --enable-codesign=CERT sign gdb with
'codesign -s CERT'
1594 --disable-rpath do not hardcode runtime library paths
1595 --enable-source-highlight
1596 enable source-highlight
for source listings
1597 --enable-werror treat compile warnings as errors
1598 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1599 --enable-gdb-build-warnings
1600 enable GDB specific build-time compiler warnings
if
1602 --enable-ubsan enable undefined behavior sanitizer
(auto
/yes
/no
)
1603 --enable-sim link gdb with simulator
1604 --enable-libctf Handle .ctf type-info sections
[default
=yes]
1605 --enable-unit-tests Enable the inclusion of unit tests when compiling
1609 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1610 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1611 --with-separate-debug-dir=PATH
1612 look for global separate debug info
in this path
1614 --with-gdb-datadir=PATH
look for global separate data files
in this path
1616 --with-relocated-sources=PATH
1617 automatically relocate this path
for source files
1618 --with-auto-load-dir=PATH
1619 directories from
which to load auto-loaded scripts
1620 [$debugdir:$datadir/auto-load
]
1621 --with-auto-load-safe-path=PATH
1622 directories safe to hold auto-loaded files
1623 [--with-auto-load-dir]
1624 --without-auto-load-safe-path
1625 do not restrict auto-loaded files locations
1626 --with-debuginfod Enable debuginfo lookups with debuginfod
1628 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1629 --with-curses use the curses library instead of the termcap
1631 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1632 --with-bugurl=URL Direct users to URL to report a bug
1633 --with-system-zlib use installed libz
1634 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1635 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1636 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1637 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1638 --with-iconv-bin=PATH specify where to find the iconv program
1639 --with-system-readline use installed readline library
1640 --with-jit-reader-dir=PATH
1641 directory to load the JIT readers from
1642 --with-expat include expat support (auto/yes/no)
1643 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1644 --without-libexpat-prefix don't search
for libexpat
in includedir and libdir
1645 --with-libexpat-type=TYPE
type of library to search
for (auto
/static
/shared
)
1646 --with-libgmp-prefix[=DIR
] search
for libgmp
in DIR
/include and DIR
/lib
1647 --without-libgmp-prefix don
't search for libgmp in includedir and libdir
1648 --with-libgmp-type=TYPE type of library to search for (auto/static/shared)
1649 --with-mpfr include MPFR support (auto/yes/no)
1650 --with-libmpfr-prefix[=DIR] search for libmpfr in DIR/include and DIR/lib
1651 --without-libmpfr-prefix don't search
for libmpfr
in includedir and libdir
1652 --with-libmpfr-type=TYPE
type of library to search
for (auto
/static
/shared
)
1653 --with-python[=PYTHON
] include python support
1654 (auto
/yes
/no
/<python-program
>)
1655 --with-python-libdir[=DIR
]
1656 search
for python
's libraries in DIR
1657 --with-guile[=GUILE] include guile support
1658 (auto/yes/no/<guile-version>/<pkg-config-program>)
1659 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1660 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1661 --without-libipt-prefix don't search
for libipt
in includedir and libdir
1662 --with-libipt-type=TYPE
type of library to search
for (auto
/static
/shared
)
1663 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1664 --with-system-gdbinit=PATH
1665 automatically load a system-wide gdbinit
file
1666 --with-system-gdbinit-dir=PATH
1667 automatically load system-wide gdbinit files from
1669 --with-lzma support lzma compression
(auto
/yes
/no
)
1670 --with-liblzma-prefix[=DIR
] search
for liblzma
in DIR
/include and DIR
/lib
1671 --without-liblzma-prefix don
't search for liblzma in includedir and libdir
1672 --with-liblzma-type=TYPE type of library to search for (auto/static/shared)
1673 --with-tcl directory containing tcl configuration (tclConfig.sh)
1674 --with-tk directory containing tk configuration (tkConfig.sh)
1675 --with-x use the X Window System
1676 --with-babeltrace include babeltrace support (auto/yes/no)
1677 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1678 --without-libbabeltrace-prefix don't search
for libbabeltrace
in includedir and libdir
1679 --with-libbabeltrace-type=TYPE
type of library to search
for (auto
/static
/shared
)
1680 --with-xxhash use libxxhash
for hashing
(faster
) (auto
/yes
/no
)
1681 --with-libxxhash-prefix[=DIR
] search
for libxxhash
in DIR
/include and DIR
/lib
1682 --without-libxxhash-prefix don
't search for libxxhash in includedir and libdir
1683 --with-libxxhash-type=TYPE type of library to search for (auto/static/shared)
1685 Some influential environment variables:
1686 CC C compiler command
1687 CFLAGS C compiler flags
1688 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1689 nonstandard directory <lib dir>
1690 LIBS libraries to pass to the linker, e.g. -l<library>
1691 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1692 you have headers in a nonstandard directory <include dir>
1693 CXX C++ compiler command
1694 CXXFLAGS C++ compiler flags
1696 MAKEINFO Parent configure detects if it is of sufficient version.
1698 Parameters for MAKEINFO.
1699 PKG_CONFIG path to pkg-config utility
1701 directories to add to pkg-config's search path
1703 path overriding pkg-config
's built-in search path
1705 C compiler flags for DEBUGINFOD, overriding pkg-config
1707 linker flags for DEBUGINFOD, overriding pkg-config
1708 YACC The `Yet Another Compiler Compiler' implementation to use.
1709 Defaults to the first program found out of
: `bison -y', `byacc
',
1711 YFLAGS The list of arguments that will be passed by default to
$YACC.
1712 This
script will default YFLAGS to the empty string to avoid a
1713 default value of
`-d' given by some make applications.
1714 XMKMF Path to xmkmf, Makefile generator for X Window System
1716 Use these variables to override the choices made by `configure
' or to help
1717 it to find libraries and programs with nonstandard names/locations.
1719 Report bugs to the package provider.
1724 if test "$ac_init_help" = "recursive"; then
1725 # If there are subdirs, report their specific --help.
1726 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1727 test -d "$ac_dir" ||
1728 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1733 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1735 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.
[\\/]||
'`
1736 # A ".." for each directory in $ac_dir_suffix.
1737 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|
/[^
\\/]*|
/..|g
;s|
/||
'`
1738 case $ac_top_builddir_sub in
1739 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1740 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1743 ac_abs_top_builddir=$ac_pwd
1744 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1745 # for backward compatibility:
1746 ac_top_builddir=$ac_top_build_prefix
1749 .) # We are building in place.
1751 ac_top_srcdir=$ac_top_builddir_sub
1752 ac_abs_top_srcdir=$ac_pwd ;;
1753 [\\/]* | ?:[\\/]* ) # Absolute name.
1754 ac_srcdir=$srcdir$ac_dir_suffix;
1755 ac_top_srcdir=$srcdir
1756 ac_abs_top_srcdir=$srcdir ;;
1758 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1759 ac_top_srcdir=$ac_top_build_prefix$srcdir
1760 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1762 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1764 cd "$ac_dir" || { ac_status=$?; continue; }
1765 # Check for guested configure.
1766 if test -f "$ac_srcdir/configure.gnu"; then
1768 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1769 elif test -f "$ac_srcdir/configure"; then
1771 $SHELL "$ac_srcdir/configure" --help=recursive
1773 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1775 cd "$ac_pwd" || { ac_status=$?; break; }
1779 test -n "$ac_init_help" && exit $ac_status
1780 if $ac_init_version; then
1783 generated by GNU Autoconf 2.69
1785 Copyright (C) 2012 Free Software Foundation, Inc.
1786 This configure script is free software; the Free Software Foundation
1787 gives unlimited permission to copy, distribute and modify it.
1792 ## ------------------------ ##
1793 ## Autoconf initialization. ##
1794 ## ------------------------ ##
1796 # ac_fn_c_try_compile LINENO
1797 # --------------------------
1798 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1799 ac_fn_c_try_compile ()
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 rm -f conftest.$ac_objext
1803 if { { ac_try="$ac_compile"
1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_compile") 2>conftest.err
1812 if test -s conftest.err; then
1813 grep -v '^
*+' conftest.err >conftest.er1
1814 cat conftest.er1 >&5
1815 mv -f conftest.er1 conftest.err
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } && {
1819 test -z "$ac_c_werror_flag" ||
1820 test ! -s conftest.err
1821 } && test -s conftest.$ac_objext; then :
1824 $as_echo "$as_me: failed program was:" >&5
1825 sed 's
/^
/|
/' conftest.$ac_ext >&5
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 as_fn_set_status $ac_retval
1832 } # ac_fn_c_try_compile
1834 # ac_fn_cxx_try_compile LINENO
1835 # ----------------------------
1836 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1837 ac_fn_cxx_try_compile ()
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 rm -f conftest.$ac_objext
1841 if { { ac_try="$ac_compile"
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 $as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_compile") 2>conftest.err
1850 if test -s conftest.err; then
1851 grep -v '^
*+' conftest.err >conftest.er1
1852 cat conftest.er1 >&5
1853 mv -f conftest.er1 conftest.err
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } && {
1857 test -z "$ac_cxx_werror_flag" ||
1858 test ! -s conftest.err
1859 } && test -s conftest.$ac_objext; then :
1862 $as_echo "$as_me: failed program was:" >&5
1863 sed 's
/^
/|
/' conftest.$ac_ext >&5
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868 as_fn_set_status $ac_retval
1870 } # ac_fn_cxx_try_compile
1872 # ac_fn_c_try_cpp LINENO
1873 # ----------------------
1874 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 if { { ac_try="$ac_cpp conftest.$ac_ext"
1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1887 if test -s conftest.err; then
1888 grep -v '^
*+' conftest.err >conftest.er1
1889 cat conftest.er1 >&5
1890 mv -f conftest.er1 conftest.err
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; } > conftest.i && {
1894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1895 test ! -s conftest.err
1899 $as_echo "$as_me: failed program was:" >&5
1900 sed 's
/^
/|
/' conftest.$ac_ext >&5
1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905 as_fn_set_status $ac_retval
1909 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1910 # -------------------------------------------------------
1911 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1912 # the include files in INCLUDES and setting the cache variable VAR
1914 ac_fn_c_check_header_mongrel ()
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 if eval \${$3+:} false; then :
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919 $as_echo_n "checking for $2... " >&6; }
1920 if eval \${$3+:} false; then :
1921 $as_echo_n "(cached) " >&6
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925 $as_echo "$ac_res" >&6; }
1927 # Is the header compilable?
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1929 $as_echo_n "checking $2 usability... " >&6; }
1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h. */
1935 if ac_fn_c_try_compile "$LINENO"; then :
1936 ac_header_compiler=yes
1938 ac_header_compiler=no
1940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1942 $as_echo "$ac_header_compiler" >&6; }
1944 # Is the header present?
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1946 $as_echo_n "checking $2 presence... " >&6; }
1947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948 /* end confdefs.h. */
1951 if ac_fn_c_try_cpp "$LINENO"; then :
1952 ac_header_preproc=yes
1954 ac_header_preproc=no
1956 rm -f conftest.err conftest.i conftest.$ac_ext
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1958 $as_echo "$ac_header_preproc" >&6; }
1960 # So? What about this header?
1961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1964 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1966 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1970 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1972 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1974 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1976 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1978 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1982 $as_echo_n "checking for $2... " >&6; }
1983 if eval \${$3+:} false; then :
1984 $as_echo_n "(cached) " >&6
1986 eval "$3=\$ac_header_compiler"
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990 $as_echo "$ac_res" >&6; }
1992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1994 } # ac_fn_c_check_header_mongrel
1996 # ac_fn_c_try_run LINENO
1997 # ----------------------
1998 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1999 # that executables *can* be run.
2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003 if { { ac_try="$ac_link"
2005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2006 *) ac_try_echo=$ac_try;;
2008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2009 $as_echo "$ac_try_echo"; } >&5
2010 (eval "$ac_link") 2>&5
2012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2013 test $ac_status = 0; } && { ac_try='.
/conftest
$ac_exeext'
2014 { { case "(($ac_try" in
2015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2016 *) ac_try_echo=$ac_try;;
2018 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2019 $as_echo "$ac_try_echo"; } >&5
2020 (eval "$ac_try") 2>&5
2022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2023 test $ac_status = 0; }; }; then :
2026 $as_echo "$as_me: program exited with status $ac_status" >&5
2027 $as_echo "$as_me: failed program was:" >&5
2028 sed 's
/^
/|
/' conftest.$ac_ext >&5
2030 ac_retval=$ac_status
2032 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2033 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2034 as_fn_set_status $ac_retval
2038 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2039 # -------------------------------------------------------
2040 # Tests whether HEADER exists and can be compiled using the include files in
2041 # INCLUDES, setting the cache variable VAR accordingly.
2042 ac_fn_c_check_header_compile ()
2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2046 $as_echo_n "checking for $2... " >&6; }
2047 if eval \${$3+:} false; then :
2048 $as_echo_n "(cached) " >&6
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h. */
2055 if ac_fn_c_try_compile "$LINENO"; then :
2060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2064 $as_echo "$ac_res" >&6; }
2065 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2067 } # ac_fn_c_check_header_compile
2069 # ac_fn_c_try_link LINENO
2070 # -----------------------
2071 # Try to link conftest.$ac_ext, and return whether this succeeded.
2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075 rm -f conftest.$ac_objext conftest$ac_exeext
2076 if { { ac_try="$ac_link"
2078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2079 *) ac_try_echo=$ac_try;;
2081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2082 $as_echo "$ac_try_echo"; } >&5
2083 (eval "$ac_link") 2>conftest.err
2085 if test -s conftest.err; then
2086 grep -v '^
*+' conftest.err >conftest.er1
2087 cat conftest.er1 >&5
2088 mv -f conftest.er1 conftest.err
2090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2091 test $ac_status = 0; } && {
2092 test -z "$ac_c_werror_flag" ||
2093 test ! -s conftest.err
2094 } && test -s conftest$ac_exeext && {
2095 test "$cross_compiling" = yes ||
2096 test -x conftest$ac_exeext
2100 $as_echo "$as_me: failed program was:" >&5
2101 sed 's
/^
/|
/' conftest.$ac_ext >&5
2105 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2106 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2107 # interfere with the next link command; also delete a directory that is
2108 # left behind by Apple's compiler. We
do this before executing the actions.
2109 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2110 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2111 as_fn_set_status
$ac_retval
2113 } # ac_fn_c_try_link
2115 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2116 # --------------------------------------------
2117 # Tries to find the compile-time value of EXPR in a program that includes
2118 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2120 ac_fn_c_compute_int
()
2122 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2123 if test "$cross_compiling" = yes; then
2124 # Depending upon the size, compute the lo and hi bounds.
2125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2131 static int test_array [1 - 2 * !(($2) >= 0)];
2133 return test_array [0];
2139 if ac_fn_c_try_compile
"$LINENO"; then :
2142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2148 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2150 return test_array [0];
2156 if ac_fn_c_try_compile
"$LINENO"; then :
2157 ac_hi
=$ac_mid; break
2159 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2160 if test $ac_lo -le $ac_mid; then
2164 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2166 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2170 /* end confdefs.h. */
2175 static int test_array [1 - 2 * !(($2) < 0)];
2177 return test_array [0];
2183 if ac_fn_c_try_compile
"$LINENO"; then :
2186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2187 /* end confdefs.h. */
2192 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2194 return test_array [0];
2200 if ac_fn_c_try_compile
"$LINENO"; then :
2201 ac_lo
=$ac_mid; break
2203 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2204 if test $ac_mid -le $ac_hi; then
2208 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2210 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2215 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2218 # Binary search between lo and hi bounds.
2219 while test "x$ac_lo" != "x$ac_hi"; do
2220 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2222 /* end confdefs.h. */
2227 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2229 return test_array [0];
2235 if ac_fn_c_try_compile
"$LINENO"; then :
2238 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2240 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2243 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h. */
2250 static long int longval () { return $2; }
2251 static unsigned long int ulongval () { return $2; }
2258 FILE *f = fopen ("conftest.val", "w");
2263 long int i = longval ();
2266 fprintf (f, "%ld", i);
2270 unsigned long int i = ulongval ();
2273 fprintf (f, "%lu", i);
2275 /* Do not output a trailing newline, as this causes \r\n confusion
2276 on some platforms. */
2277 return ferror (f) || fclose (f) != 0;
2283 if ac_fn_c_try_run
"$LINENO"; then :
2284 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2288 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2289 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2293 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2294 as_fn_set_status
$ac_retval
2296 } # ac_fn_c_compute_int
2298 # ac_fn_c_check_func LINENO FUNC VAR
2299 # ----------------------------------
2300 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2301 ac_fn_c_check_func
()
2303 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2305 $as_echo_n "checking for $2... " >&6; }
2306 if eval \
${$3+:} false
; then :
2307 $as_echo_n "(cached) " >&6
2309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2310 /* end confdefs.h. */
2311 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2313 #define $2 innocuous_$2
2315 /* System header to define __stub macros and hopefully few prototypes,
2316 which can conflict with char $2 (); below.
2317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2318 <limits.h> exists even on freestanding compilers. */
2321 # include <limits.h>
2323 # include <assert.h>
2328 /* Override any GCC internal prototype to avoid an error.
2329 Use char because int might match the return type of a GCC
2330 builtin and then its argument prototype would still apply. */
2335 /* The GNU C library defines this for functions which it implements
2336 to always fail with ENOSYS. Some functions are actually named
2337 something starting with __ and the normal name is an alias. */
2338 #if defined __stub_$2 || defined __stub___$2
2350 if ac_fn_c_try_link
"$LINENO"; then :
2355 rm -f core conftest.err conftest.
$ac_objext \
2356 conftest
$ac_exeext conftest.
$ac_ext
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2360 $as_echo "$ac_res" >&6; }
2361 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2363 } # ac_fn_c_check_func
2365 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2366 # -------------------------------------------
2367 # Tests whether TYPE exists after having included INCLUDES, setting cache
2368 # variable VAR accordingly.
2369 ac_fn_c_check_type
()
2371 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2373 $as_echo_n "checking for $2... " >&6; }
2374 if eval \
${$3+:} false
; then :
2375 $as_echo_n "(cached) " >&6
2378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2379 /* end confdefs.h. */
2390 if ac_fn_c_try_compile
"$LINENO"; then :
2391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2392 /* end confdefs.h. */
2403 if ac_fn_c_try_compile
"$LINENO"; then :
2408 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2410 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2414 $as_echo "$ac_res" >&6; }
2415 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2417 } # ac_fn_c_check_type
2419 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2420 # ---------------------------------------------
2421 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2423 ac_fn_c_check_decl
()
2425 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2426 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2427 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2429 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2430 if eval \
${$3+:} false
; then :
2431 $as_echo_n "(cached) " >&6
2433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2434 /* end confdefs.h. */
2439 #ifndef $as_decl_name
2441 (void) $as_decl_use;
2443 (void) $as_decl_name;
2451 if ac_fn_c_try_compile
"$LINENO"; then :
2456 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2460 $as_echo "$ac_res" >&6; }
2461 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2463 } # ac_fn_c_check_decl
2465 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2466 # ----------------------------------------------------
2467 # Tries to find if the field MEMBER exists in type AGGR, after including
2468 # INCLUDES, setting cache variable VAR accordingly.
2469 ac_fn_c_check_member
()
2471 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2473 $as_echo_n "checking for $2.$3... " >&6; }
2474 if eval \
${$4+:} false
; then :
2475 $as_echo_n "(cached) " >&6
2477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2478 /* end confdefs.h. */
2490 if ac_fn_c_try_compile
"$LINENO"; then :
2493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2494 /* end confdefs.h. */
2500 if (sizeof ac_aggr.$3)
2506 if ac_fn_c_try_compile
"$LINENO"; then :
2511 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2513 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2517 $as_echo "$ac_res" >&6; }
2518 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2520 } # ac_fn_c_check_member
2522 # ac_fn_cxx_try_link LINENO
2523 # -------------------------
2524 # Try to link conftest.$ac_ext, and return whether this succeeded.
2525 ac_fn_cxx_try_link
()
2527 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2528 rm -f conftest.
$ac_objext conftest
$ac_exeext
2529 if { { ac_try
="$ac_link"
2531 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2532 *) ac_try_echo=$ac_try;;
2534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2535 $as_echo "$ac_try_echo"; } >&5
2536 (eval "$ac_link") 2>conftest.err
2538 if test -s conftest.err; then
2539 grep -v '^ *+' conftest.err >conftest.er1
2540 cat conftest.er1 >&5
2541 mv -f conftest.er1 conftest.err
2543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2544 test $ac_status = 0; } && {
2545 test -z "$ac_cxx_werror_flag" ||
2546 test ! -s conftest.err
2547 } && test -s conftest$ac_exeext && {
2548 test "$cross_compiling" = yes ||
2549 test -x conftest$ac_exeext
2553 $as_echo "$as_me: failed program was:" >&5
2554 sed 's/^/| /' conftest.$ac_ext >&5
2558 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2559 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2560 # interfere with the next link command; also delete a directory that is
2561 # left behind by Apple's compiler. We do this before executing the actions.
2562 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2563 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2564 as_fn_set_status $ac_retval
2566 } # ac_fn_cxx_try_link
2568 # ac_fn_cxx_check_func LINENO FUNC VAR
2569 # ------------------------------------
2570 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2571 ac_fn_cxx_check_func ()
2573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2575 $as_echo_n "checking for $2... " >&6; }
2576 if eval \${$3+:} false; then :
2577 $as_echo_n "(cached) " >&6
2579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2580 /* end confdefs.h. */
2581 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2583 #define $2 innocuous_$2
2585 /* System header to define __stub macros and hopefully few prototypes,
2586 which can conflict with char $2 (); below.
2587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2588 <limits.h> exists even on freestanding compilers. */
2591 # include <limits.h>
2593 # include <assert.h>
2598 /* Override any GCC internal prototype to avoid an error.
2599 Use char because int might match the return type of a GCC
2600 builtin and then its argument prototype would still apply. */
2605 /* The GNU C library defines this for functions which it implements
2606 to always fail with ENOSYS. Some functions are actually named
2607 something starting with __ and the normal name is an alias. */
2608 #if defined __stub_$2 || defined __stub___$2
2620 if ac_fn_cxx_try_link "$LINENO"; then :
2625 rm -f core conftest.err conftest.$ac_objext \
2626 conftest$ac_exeext conftest.$ac_ext
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2630 $as_echo "$ac_res" >&6; }
2631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2633 } # ac_fn_cxx_check_func
2634 cat >config.log <<_ACEOF
2635 This file contains any messages produced by compilers while
2636 running configure, to aid debugging if configure makes a mistake.
2638 It was created by $as_me, which was
2639 generated by GNU Autoconf 2.69. Invocation command line was
2651 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2652 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2653 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2654 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2655 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2657 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2658 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2660 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2661 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2662 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2663 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2664 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2665 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2666 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 test -z "$as_dir" && as_dir=.
2675 $as_echo "PATH: $as_dir"
2691 # Keep a trace of the command line.
2692 # Strip out --no-create and --no-recursion so they do not pile up.
2693 # Strip out --silent because we don't want to record it for future runs.
2694 # Also quote any args containing shell meta-characters.
2695 # Make two passes to allow for proper duplicate-argument suppression.
2699 ac_must_keep_next=false
2705 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2706 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2707 | -silent | --silent | --silen | --sile | --sil)
2710 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2713 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2715 as_fn_append ac_configure_args1 " '$ac_arg'"
2716 if test $ac_must_keep_next = true; then
2717 ac_must_keep_next=false # Got value, back to normal.
2720 *=* | --config-cache | -C | -disable-* | --disable-* \
2721 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2722 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2723 | -with-* | --with-* | -without-* | --without-* | --x)
2724 case "$ac_configure_args0 " in
2725 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2728 -* ) ac_must_keep_next=true ;;
2731 as_fn_append ac_configure_args " '$ac_arg'"
2736 { ac_configure_args0=; unset ac_configure_args0;}
2737 { ac_configure_args1=; unset ac_configure_args1;}
2739 # When interrupted or exit'd, cleanup temporary files, and complete
2740 # config.log. We remove comments because anyway the quotes in there
2741 # would cause problems or look ugly.
2742 # WARNING: Use '\'' to represent an apostrophe within the trap.
2743 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2744 trap 'exit_status=$?
2745 # Save into config.log some information that might help in debugging.
2749 $as_echo "## ---------------- ##
2750 ## Cache variables. ##
2751 ## ---------------- ##"
2753 # The following way of writing the cache mishandles newlines in values,
2755 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2756 eval ac_val=\$$ac_var
2760 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2761 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2764 _ | IFS | as_nl) ;; #(
2765 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2766 *) { eval $ac_var=; unset $ac_var;} ;;
2771 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2772 *${as_nl}ac_space=\ *)
2774 "s/'\''/'\''\\\\'\'''\''/g;
2775 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2778 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2785 $as_echo "## ----------------- ##
2786 ## Output variables. ##
2787 ## ----------------- ##"
2789 for ac_var in $ac_subst_vars
2791 eval ac_val=\$$ac_var
2793 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2795 $as_echo "$ac_var='\''$ac_val'\''"
2799 if test -n "$ac_subst_files"; then
2800 $as_echo "## ------------------- ##
2801 ## File substitutions. ##
2802 ## ------------------- ##"
2804 for ac_var in $ac_subst_files
2806 eval ac_val=\$$ac_var
2808 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2810 $as_echo "$ac_var='\''$ac_val'\''"
2815 if test -s confdefs.h; then
2816 $as_echo "## ----------- ##
2823 test "$ac_signal" != 0 &&
2824 $as_echo "$as_me: caught signal $ac_signal"
2825 $as_echo "$as_me: exit $exit_status"
2827 rm -f core *.core core.conftest.* &&
2828 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2831 for ac_signal in 1 2 13 15; do
2832 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2836 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2837 rm -f -r conftest* confdefs.h
2839 $as_echo "/* confdefs.h */" > confdefs.h
2841 # Predefined preprocessor variables.
2843 cat >>confdefs.h <<_ACEOF
2844 #define PACKAGE_NAME "$PACKAGE_NAME"
2847 cat >>confdefs.h <<_ACEOF
2848 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2851 cat >>confdefs.h <<_ACEOF
2852 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2855 cat >>confdefs.h <<_ACEOF
2856 #define PACKAGE_STRING "$PACKAGE_STRING"
2859 cat >>confdefs.h <<_ACEOF
2860 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2863 cat >>confdefs.h <<_ACEOF
2864 #define PACKAGE_URL "$PACKAGE_URL"
2868 # Let the site file select an alternate cache file if it wants to.
2869 # Prefer an explicitly selected file to automatically selected ones.
2872 if test -n "$CONFIG_SITE"; then
2873 # We do not want a PATH search for config.site.
2874 case $CONFIG_SITE in #((
2875 -*) ac_site_file1=./$CONFIG_SITE;;
2876 */*) ac_site_file1=$CONFIG_SITE;;
2877 *) ac_site_file1=./$CONFIG_SITE;;
2879 elif test "x$prefix" != xNONE; then
2880 ac_site_file1=$prefix/share/config.site
2881 ac_site_file2=$prefix/etc/config.site
2883 ac_site_file1=$ac_default_prefix/share/config.site
2884 ac_site_file2=$ac_default_prefix/etc/config.site
2886 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2888 test "x$ac_site_file" = xNONE && continue
2889 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2891 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2892 sed 's/^/| /' "$ac_site_file" >&5
2894 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2896 as_fn_error $? "failed to load site
script $ac_site_file
2897 See \
`config.log' for more details" "$LINENO" 5; }
2901 if test -r "$cache_file"; then
2902 # Some versions of bash will fail to source /dev/null (special files
2903 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2904 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2906 $as_echo "$as_me: loading cache $cache_file" >&6;}
2908 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2909 *) . "./$cache_file";;
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2914 $as_echo "$as_me: creating cache $cache_file" >&6;}
2918 as_fn_append ac_header_list " stdlib.h"
2919 as_fn_append ac_header_list " unistd.h"
2920 as_fn_append ac_header_list " sys/param.h"
2921 # Check that the precious variables saved in the cache have kept the same
2923 ac_cache_corrupted=false
2924 for ac_var in $ac_precious_vars; do
2925 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2926 eval ac_new_set=\$ac_env_${ac_var}_set
2927 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2928 eval ac_new_val=\$ac_env_${ac_var}_value
2929 case $ac_old_set,$ac_new_set in
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2932 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2933 ac_cache_corrupted=: ;;
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2936 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2937 ac_cache_corrupted=: ;;
2940 if test "x$ac_old_val" != "x$ac_new_val"; then
2941 # differences in whitespace do not lead to failure.
2942 ac_old_val_w=`echo x
$ac_old_val`
2943 ac_new_val_w=`echo x
$ac_new_val`
2944 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2946 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2947 ac_cache_corrupted=:
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2950 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2951 eval $ac_var=\$ac_old_val
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2954 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2956 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2959 # Pass precious variables to config.status.
2960 if test "$ac_new_set" = set; then
2962 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2963 *) ac_arg=$ac_var=$ac_new_val ;;
2965 case " $ac_configure_args " in
2966 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2967 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2971 if $ac_cache_corrupted; then
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2975 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2976 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2978 ## -------------------- ##
2979 ## Main body of script. ##
2980 ## -------------------- ##
2983 ac_cpp='$CPP $CPPFLAGS'
2984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2994 ac_config_headers="$ac_config_headers config.h:config.in"
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2998 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2999 # Check whether --enable-maintainer-mode was given.
3000 if test "${enable_maintainer_mode+set}" = set; then :
3001 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3003 USE_MAINTAINER_MODE=no
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3007 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3008 if test $USE_MAINTAINER_MODE = yes; then
3009 MAINTAINER_MODE_TRUE=
3010 MAINTAINER_MODE_FALSE='#'
3012 MAINTAINER_MODE_TRUE='#'
3013 MAINTAINER_MODE_FALSE=
3016 MAINT=$MAINTAINER_MODE_TRUE
3021 ac_cpp='$CPP $CPPFLAGS'
3022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3025 if test -n "$ac_tool_prefix"; then
3026 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3027 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3029 $as_echo_n "checking for $ac_word... " >&6; }
3030 if ${ac_cv_prog_CC+:} false; then :
3031 $as_echo_n "(cached) " >&6
3033 if test -n "$CC"; then
3034 ac_cv_prog_CC="$CC" # Let the user override the test.
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 test -z "$as_dir" && as_dir=.
3041 for ac_exec_ext in '' $ac_executable_extensions; do
3042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3043 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3054 if test -n "$CC"; then
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3056 $as_echo "$CC" >&6; }
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3059 $as_echo "no" >&6; }
3064 if test -z "$ac_cv_prog_CC"; then
3066 # Extract the first word of "gcc", so it can be a program name with args.
3067 set dummy gcc; ac_word=$2
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3069 $as_echo_n "checking for $ac_word... " >&6; }
3070 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3071 $as_echo_n "(cached) " >&6
3073 if test -n "$ac_ct_CC"; then
3074 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 test -z "$as_dir" && as_dir=.
3081 for ac_exec_ext in '' $ac_executable_extensions; do
3082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3083 ac_cv_prog_ac_ct_CC="gcc"
3084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3093 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3094 if test -n "$ac_ct_CC"; then
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3096 $as_echo "$ac_ct_CC" >&6; }
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099 $as_echo "no" >&6; }
3102 if test "x$ac_ct_CC" = x; then
3105 case $cross_compiling:$ac_tool_warned in
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3109 ac_tool_warned=yes ;;
3117 if test -z "$CC"; then
3118 if test -n "$ac_tool_prefix"; then
3119 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3120 set dummy ${ac_tool_prefix}cc; ac_word=$2
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3122 $as_echo_n "checking for $ac_word... " >&6; }
3123 if ${ac_cv_prog_CC+:} false; then :
3124 $as_echo_n "(cached) " >&6
3126 if test -n "$CC"; then
3127 ac_cv_prog_CC="$CC" # Let the user override the test.
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133 test -z "$as_dir" && as_dir=.
3134 for ac_exec_ext in '' $ac_executable_extensions; do
3135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3136 ac_cv_prog_CC="${ac_tool_prefix}cc"
3137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3147 if test -n "$CC"; then
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3149 $as_echo "$CC" >&6; }
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152 $as_echo "no" >&6; }
3158 if test -z "$CC"; then
3159 # Extract the first word of "cc", so it can be a program name with args.
3160 set dummy cc; ac_word=$2
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3162 $as_echo_n "checking for $ac_word... " >&6; }
3163 if ${ac_cv_prog_CC+:} false; then :
3164 $as_echo_n "(cached) " >&6
3166 if test -n "$CC"; then
3167 ac_cv_prog_CC="$CC" # Let the user override the test.
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 test -z "$as_dir" && as_dir=.
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3177 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3178 ac_prog_rejected=yes
3182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3189 if test $ac_prog_rejected = yes; then
3190 # We found a bogon in the path, so make sure we never use it.
3191 set dummy $ac_cv_prog_CC
3193 if test $# != 0; then
3194 # We chose a different compiler from the bogus one.
3195 # However, it has the same basename, so the bogon will be chosen
3196 # first if we set CC to just the basename; use the full file name.
3198 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3204 if test -n "$CC"; then
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3206 $as_echo "$CC" >&6; }
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209 $as_echo "no" >&6; }
3214 if test -z "$CC"; then
3215 if test -n "$ac_tool_prefix"; then
3216 for ac_prog in cl.exe
3218 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3219 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3221 $as_echo_n "checking for $ac_word... " >&6; }
3222 if ${ac_cv_prog_CC+:} false; then :
3223 $as_echo_n "(cached) " >&6
3225 if test -n "$CC"; then
3226 ac_cv_prog_CC="$CC" # Let the user override the test.
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 test -z "$as_dir" && as_dir=.
3233 for ac_exec_ext in '' $ac_executable_extensions; do
3234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3235 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3246 if test -n "$CC"; then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3248 $as_echo "$CC" >&6; }
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3251 $as_echo "no" >&6; }
3255 test -n "$CC" && break
3258 if test -z "$CC"; then
3260 for ac_prog in cl.exe
3262 # Extract the first word of "$ac_prog", so it can be a program name with args.
3263 set dummy $ac_prog; ac_word=$2
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3265 $as_echo_n "checking for $ac_word... " >&6; }
3266 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3267 $as_echo_n "(cached) " >&6
3269 if test -n "$ac_ct_CC"; then
3270 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276 test -z "$as_dir" && as_dir=.
3277 for ac_exec_ext in '' $ac_executable_extensions; do
3278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3279 ac_cv_prog_ac_ct_CC="$ac_prog"
3280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3289 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3290 if test -n "$ac_ct_CC"; then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3292 $as_echo "$ac_ct_CC" >&6; }
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295 $as_echo "no" >&6; }
3299 test -n "$ac_ct_CC" && break
3302 if test "x$ac_ct_CC" = x; then
3305 case $cross_compiling:$ac_tool_warned in
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3309 ac_tool_warned=yes ;;
3318 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3320 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3321 See \
`config.log' for more details" "$LINENO" 5; }
3323 # Provide some information about the compiler.
3324 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3327 for ac_option in --version -v -V -qversion; do
3328 { { ac_try="$ac_compiler $ac_option >&5"
3330 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3331 *) ac_try_echo
=$ac_try;;
3333 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3334 $as_echo "$ac_try_echo"; } >&5
3335 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3337 if test -s conftest.err
; then
3339 ... rest of stderr output deleted ...
3340 10q' conftest.err
>conftest.er1
3341 cat conftest.er1
>&5
3343 rm -f conftest.er1 conftest.err
3344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3345 test $ac_status = 0; }
3348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3349 /* end confdefs.h. */
3359 ac_clean_files_save
=$ac_clean_files
3360 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3361 # Try to create an executable without -o first, disregard a.out.
3362 # It will help us diagnose broken compilers, and finding out an intuition
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3365 $as_echo_n "checking whether the C compiler works... " >&6; }
3366 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3368 # The possible output files:
3369 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3372 for ac_file
in $ac_files
3375 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3376 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3381 if { { ac_try
="$ac_link_default"
3383 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3387 $as_echo "$ac_try_echo"; } >&5
3388 (eval "$ac_link_default") 2>&5
3390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3391 test $ac_status = 0; }; then :
3392 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3393 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3394 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3395 # so that the user can short-circuit this test for compilers unknown to
3397 for ac_file in $ac_files ''
3399 test -f "$ac_file" || continue
3401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3404 # We found the default executable, but exeext='' is most
3408 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3410 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3412 # We set ac_cv_exeext here because the later test for it is not
3413 # safe: cross compilers may not add the suffix if given an `-o'
3414 # argument, so we may need to know it at that point already.
3415 # Even if this section looks crufty: it has the advantage of
3422 test "$ac_cv_exeext" = no && ac_cv_exeext=
3427 if test -z "$ac_file"; then :
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3429 $as_echo "no" >&6; }
3430 $as_echo "$as_me: failed program was:" >&5
3431 sed 's
/^
/|
/' conftest.$ac_ext >&5
3433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3434 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3435 as_fn_error 77 "C compiler cannot create executables
3436 See \`config.log
' for more details" "$LINENO" 5; }
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3439 $as_echo "yes" >&6; }
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3442 $as_echo_n "checking for C compiler default output file name... " >&6; }
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3444 $as_echo "$ac_file" >&6; }
3445 ac_exeext=$ac_cv_exeext
3447 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3448 ac_clean_files=$ac_clean_files_save
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3450 $as_echo_n "checking for suffix of executables... " >&6; }
3451 if { { ac_try="$ac_link"
3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454 *) ac_try_echo=$ac_try;;
3456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3457 $as_echo "$ac_try_echo"; } >&5
3458 (eval "$ac_link") 2>&5
3460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3461 test $ac_status = 0; }; then :
3462 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3463 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3464 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3466 for ac_file
in conftest.exe conftest conftest.
*; do
3467 test -f "$ac_file" ||
continue
3469 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3470 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3478 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3479 See \`config.log' for more details" "$LINENO" 5; }
3481 rm -f conftest conftest
$ac_cv_exeext
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3483 $as_echo "$ac_cv_exeext" >&6; }
3485 rm -f conftest.
$ac_ext
3486 EXEEXT
=$ac_cv_exeext
3488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h. */
3494 FILE *f = fopen ("conftest.out", "w");
3495 return ferror (f) || fclose (f) != 0;
3501 ac_clean_files
="$ac_clean_files conftest.out"
3502 # Check that the compiler produces executables we can run. If not, either
3503 # the compiler is broken, or we cross compile.
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3505 $as_echo_n "checking whether we are cross compiling... " >&6; }
3506 if test "$cross_compiling" != yes; then
3507 { { ac_try
="$ac_link"
3509 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3510 *) ac_try_echo=$ac_try;;
3512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3513 $as_echo "$ac_try_echo"; } >&5
3514 (eval "$ac_link") 2>&5
3516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3517 test $ac_status = 0; }
3518 if { ac_try='./conftest$ac_cv_exeext'
3519 { { case "(($ac_try" in
3520 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3521 *) ac_try_echo
=$ac_try;;
3523 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524 $as_echo "$ac_try_echo"; } >&5
3525 (eval "$ac_try") 2>&5
3527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3528 test $ac_status = 0; }; }; then
3531 if test "$cross_compiling" = maybe
; then
3534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3536 as_fn_error $?
"cannot run C compiled programs.
3537 If you meant to cross compile, use \`--host'.
3538 See \`config.log' for more details" "$LINENO" 5; }
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3543 $as_echo "$cross_compiling" >&6; }
3545 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3546 ac_clean_files
=$ac_clean_files_save
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3548 $as_echo_n "checking for suffix of object files... " >&6; }
3549 if ${ac_cv_objext+:} false
; then :
3550 $as_echo_n "(cached) " >&6
3552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3553 /* end confdefs.h. */
3563 rm -f conftest.o conftest.obj
3564 if { { ac_try
="$ac_compile"
3566 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;;
3569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3570 $as_echo "$ac_try_echo"; } >&5
3571 (eval "$ac_compile") 2>&5
3573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3574 test $ac_status = 0; }; then :
3575 for ac_file in conftest.o conftest.obj conftest.*; do
3576 test -f "$ac_file" || continue;
3578 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3579 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3584 $as_echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3589 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3590 See \
`config.log' for more details" "$LINENO" 5; }
3592 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3595 $as_echo "$ac_cv_objext" >&6; }
3596 OBJEXT=$ac_cv_objext
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3599 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3600 if ${ac_cv_c_compiler_gnu+:} false; then :
3601 $as_echo_n "(cached) " >&6
3603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604 /* end confdefs.h. */
3617 if ac_fn_c_try_compile "$LINENO"; then :
3622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3623 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3627 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3628 if test $ac_compiler_gnu = yes; then
3633 ac_test_CFLAGS=${CFLAGS+set}
3634 ac_save_CFLAGS=$CFLAGS
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3636 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3637 if ${ac_cv_prog_cc_g+:} false; then :
3638 $as_echo_n "(cached) " >&6
3640 ac_save_c_werror_flag=$ac_c_werror_flag
3641 ac_c_werror_flag=yes
3644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645 /* end confdefs.h. */
3655 if ac_fn_c_try_compile "$LINENO"; then :
3659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660 /* end confdefs.h. */
3670 if ac_fn_c_try_compile "$LINENO"; then :
3673 ac_c_werror_flag=$ac_save_c_werror_flag
3675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676 /* end confdefs.h. */
3686 if ac_fn_c_try_compile "$LINENO"; then :
3689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3694 ac_c_werror_flag=$ac_save_c_werror_flag
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3697 $as_echo "$ac_cv_prog_cc_g" >&6; }
3698 if test "$ac_test_CFLAGS" = set; then
3699 CFLAGS=$ac_save_CFLAGS
3700 elif test $ac_cv_prog_cc_g = yes; then
3701 if test "$GCC" = yes; then
3707 if test "$GCC" = yes; then
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3714 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3715 if ${ac_cv_prog_cc_c89+:} false; then :
3716 $as_echo_n "(cached) " >&6
3718 ac_cv_prog_cc_c89=no
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h. */
3725 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3726 struct buf { int x; };
3727 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3728 static char *e (p, i)
3734 static char *f (char * (*g) (char **, int), char **p, ...)
3739 s = g (p, va_arg (v,int));
3744 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3745 function prototypes and stuff, but not '\xHH' hex character constants.
3746 These don't provoke an error unfortunately, instead are silently treated
3747 as 'x'. The following induces an error, until -std is added to get
3748 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3749 array size at least. It's necessary to write '\x00'==0 to get something
3750 that's true only with -std. */
3751 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3753 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3754 inside strings and character constants. */
3756 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3758 int test (int i, double x);
3759 struct s1 {int (*f) (int a);};
3760 struct s2 {int (*f) (double a);};
3761 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3767 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3772 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3773 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3775 CC="$ac_save_CC $ac_arg"
3776 if ac_fn_c_try_compile "$LINENO"; then :
3777 ac_cv_prog_cc_c89=$ac_arg
3779 rm -f core conftest.err conftest.$ac_objext
3780 test "x$ac_cv_prog_cc_c89" != "xno" && break
3782 rm -f conftest.$ac_ext
3787 case "x$ac_cv_prog_cc_c89" in
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3790 $as_echo "none needed" >&6; } ;;
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3793 $as_echo "unsupported" >&6; } ;;
3795 CC="$CC $ac_cv_prog_cc_c89"
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3797 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3799 if test "x$ac_cv_prog_cc_c89" != xno; then :
3804 ac_cpp='$CPP $CPPFLAGS'
3805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3810 ac_cpp='$CXXCPP $CPPFLAGS'
3811 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3812 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3813 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3814 if test -z "$CXX"; then
3815 if test -n "$CCC"; then
3818 if test -n "$ac_tool_prefix"; then
3819 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3821 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3822 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3824 $as_echo_n "checking for $ac_word... " >&6; }
3825 if ${ac_cv_prog_CXX+:} false; then :
3826 $as_echo_n "(cached) " >&6
3828 if test -n "$CXX"; then
3829 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835 test -z "$as_dir" && as_dir=.
3836 for ac_exec_ext in '' $ac_executable_extensions; do
3837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3838 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3849 if test -n "$CXX"; then
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3851 $as_echo "$CXX" >&6; }
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3854 $as_echo "no" >&6; }
3858 test -n "$CXX" && break
3861 if test -z "$CXX"; then
3863 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3865 # Extract the first word of "$ac_prog", so it can be a program name with args.
3866 set dummy $ac_prog; ac_word=$2
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3868 $as_echo_n "checking for $ac_word... " >&6; }
3869 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3870 $as_echo_n "(cached) " >&6
3872 if test -n "$ac_ct_CXX"; then
3873 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879 test -z "$as_dir" && as_dir=.
3880 for ac_exec_ext in '' $ac_executable_extensions; do
3881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3882 ac_cv_prog_ac_ct_CXX="$ac_prog"
3883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3892 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3893 if test -n "$ac_ct_CXX"; then
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3895 $as_echo "$ac_ct_CXX" >&6; }
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3898 $as_echo "no" >&6; }
3902 test -n "$ac_ct_CXX" && break
3905 if test "x$ac_ct_CXX" = x; then
3908 case $cross_compiling:$ac_tool_warned in
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3912 ac_tool_warned=yes ;;
3920 # Provide some information about the compiler.
3921 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3924 for ac_option in --version -v -V -qversion; do
3925 { { ac_try="$ac_compiler $ac_option >&5"
3927 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3928 *) ac_try_echo
=$ac_try;;
3930 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3931 $as_echo "$ac_try_echo"; } >&5
3932 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3934 if test -s conftest.err
; then
3936 ... rest of stderr output deleted ...
3937 10q' conftest.err
>conftest.er1
3938 cat conftest.er1
>&5
3940 rm -f conftest.er1 conftest.err
3941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3942 test $ac_status = 0; }
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3946 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3947 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3948 $as_echo_n "(cached) " >&6
3950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3951 /* end confdefs.h. */
3964 if ac_fn_cxx_try_compile
"$LINENO"; then :
3969 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3970 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3974 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3975 if test $ac_compiler_gnu = yes; then
3980 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3981 ac_save_CXXFLAGS
=$CXXFLAGS
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3983 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3984 if ${ac_cv_prog_cxx_g+:} false
; then :
3985 $as_echo_n "(cached) " >&6
3987 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3988 ac_cxx_werror_flag
=yes
3991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3992 /* end confdefs.h. */
4002 if ac_fn_cxx_try_compile
"$LINENO"; then :
4003 ac_cv_prog_cxx_g
=yes
4006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4007 /* end confdefs.h. */
4017 if ac_fn_cxx_try_compile
"$LINENO"; then :
4020 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4023 /* end confdefs.h. */
4033 if ac_fn_cxx_try_compile
"$LINENO"; then :
4034 ac_cv_prog_cxx_g
=yes
4036 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4038 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4040 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4041 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4044 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4045 if test "$ac_test_CXXFLAGS" = set; then
4046 CXXFLAGS
=$ac_save_CXXFLAGS
4047 elif test $ac_cv_prog_cxx_g = yes; then
4048 if test "$GXX" = yes; then
4054 if test "$GXX" = yes; then
4061 ac_cpp
='$CPP $CPPFLAGS'
4062 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4063 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4064 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
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
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4074 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4075 # On Suns, sometimes $CPP names a directory.
4076 if test -n "$CPP" && test -d "$CPP"; then
4079 if test -z "$CPP"; then
4080 if ${ac_cv_prog_CPP+:} false
; then :
4081 $as_echo_n "(cached) " >&6
4083 # Double quotes because CPP needs to be expanded
4084 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4087 for ac_c_preproc_warn_flag
in '' yes
4089 # Use a header file that comes with gcc, so configuring glibc
4090 # with a fresh cross-compiler works.
4091 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4092 # <limits.h> exists even on freestanding compilers.
4093 # On the NeXT, cc -E runs the code through the compiler's parser,
4094 # not just through cpp. "Syntax error" is here to catch this case.
4095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4096 /* end confdefs.h. */
4098 # include <limits.h>
4100 # include <assert.h>
4104 if ac_fn_c_try_cpp
"$LINENO"; then :
4107 # Broken: fails on valid input.
4110 rm -f conftest.err conftest.i conftest.
$ac_ext
4112 # OK, works on sane cases. Now check whether nonexistent headers
4113 # can be detected and how.
4114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4116 #include <ac_nonexistent.h>
4118 if ac_fn_c_try_cpp
"$LINENO"; then :
4119 # Broken: success on invalid input.
4122 # Passes both tests.
4126 rm -f conftest.err conftest.i conftest.
$ac_ext
4129 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4130 rm -f conftest.i conftest.err conftest.
$ac_ext
4131 if $ac_preproc_ok; then :
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4144 $as_echo "$CPP" >&6; }
4146 for ac_c_preproc_warn_flag
in '' yes
4148 # Use a header file that comes with gcc, so configuring glibc
4149 # with a fresh cross-compiler works.
4150 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4151 # <limits.h> exists even on freestanding compilers.
4152 # On the NeXT, cc -E runs the code through the compiler's parser,
4153 # not just through cpp. "Syntax error" is here to catch this case.
4154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4155 /* end confdefs.h. */
4157 # include <limits.h>
4159 # include <assert.h>
4163 if ac_fn_c_try_cpp
"$LINENO"; then :
4166 # Broken: fails on valid input.
4169 rm -f conftest.err conftest.i conftest.
$ac_ext
4171 # OK, works on sane cases. Now check whether nonexistent headers
4172 # can be detected and how.
4173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4174 /* end confdefs.h. */
4175 #include <ac_nonexistent.h>
4177 if ac_fn_c_try_cpp
"$LINENO"; then :
4178 # Broken: success on invalid input.
4181 # Passes both tests.
4185 rm -f conftest.err conftest.i conftest.
$ac_ext
4188 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4189 rm -f conftest.i conftest.err conftest.
$ac_ext
4190 if $ac_preproc_ok; then :
4193 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4195 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4196 See \`config.log' for more details" "$LINENO" 5; }
4200 ac_cpp
='$CPP $CPPFLAGS'
4201 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4202 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4203 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4207 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4208 if ${ac_cv_path_GREP+:} false
; then :
4209 $as_echo_n "(cached) " >&6
4211 if test -z "$GREP"; then
4212 ac_path_GREP_found
=false
4213 # Loop through the user's path and test for each of PROGNAME-LIST
4214 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4215 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4218 test -z "$as_dir" && as_dir
=.
4219 for ac_prog
in grep ggrep
; do
4220 for ac_exec_ext
in '' $ac_executable_extensions; do
4221 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4222 as_fn_executable_p
"$ac_path_GREP" ||
continue
4223 # Check for GNU ac_path_GREP and select it if it is found.
4224 # Check for GNU $ac_path_GREP
4225 case `"$ac_path_GREP" --version 2>&1` in
4227 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4230 $as_echo_n 0123456789 >"conftest.in"
4233 cat "conftest.in" "conftest.in" >"conftest.tmp"
4234 mv "conftest.tmp" "conftest.in"
4235 cp "conftest.in" "conftest.nl"
4236 $as_echo 'GREP' >> "conftest.nl"
4237 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4238 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4239 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4240 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4241 # Best one so far, save it but keep looking for a better one
4242 ac_cv_path_GREP
="$ac_path_GREP"
4243 ac_path_GREP_max
=$ac_count
4245 # 10*(2^10) chars as input seems more than enough
4246 test $ac_count -gt 10 && break
4248 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4251 $ac_path_GREP_found && break 3
4256 if test -z "$ac_cv_path_GREP"; then
4257 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4260 ac_cv_path_GREP
=$GREP
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4265 $as_echo "$ac_cv_path_GREP" >&6; }
4266 GREP
="$ac_cv_path_GREP"
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4270 $as_echo_n "checking for egrep... " >&6; }
4271 if ${ac_cv_path_EGREP+:} false
; then :
4272 $as_echo_n "(cached) " >&6
4274 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4275 then ac_cv_path_EGREP
="$GREP -E"
4277 if test -z "$EGREP"; then
4278 ac_path_EGREP_found
=false
4279 # Loop through the user's path and test for each of PROGNAME-LIST
4280 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4281 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4284 test -z "$as_dir" && as_dir
=.
4285 for ac_prog
in egrep; do
4286 for ac_exec_ext
in '' $ac_executable_extensions; do
4287 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4288 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4289 # Check for GNU ac_path_EGREP and select it if it is found.
4290 # Check for GNU $ac_path_EGREP
4291 case `"$ac_path_EGREP" --version 2>&1` in
4293 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4296 $as_echo_n 0123456789 >"conftest.in"
4299 cat "conftest.in" "conftest.in" >"conftest.tmp"
4300 mv "conftest.tmp" "conftest.in"
4301 cp "conftest.in" "conftest.nl"
4302 $as_echo 'EGREP' >> "conftest.nl"
4303 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4304 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4305 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4306 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4307 # Best one so far, save it but keep looking for a better one
4308 ac_cv_path_EGREP
="$ac_path_EGREP"
4309 ac_path_EGREP_max
=$ac_count
4311 # 10*(2^10) chars as input seems more than enough
4312 test $ac_count -gt 10 && break
4314 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4317 $ac_path_EGREP_found && break 3
4322 if test -z "$ac_cv_path_EGREP"; then
4323 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4326 ac_cv_path_EGREP
=$EGREP
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4332 $as_echo "$ac_cv_path_EGREP" >&6; }
4333 EGREP
="$ac_cv_path_EGREP"
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4337 $as_echo_n "checking for ANSI C header files... " >&6; }
4338 if ${ac_cv_header_stdc+:} false
; then :
4339 $as_echo_n "(cached) " >&6
4341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4342 /* end confdefs.h. */
4356 if ac_fn_c_try_compile
"$LINENO"; then :
4357 ac_cv_header_stdc
=yes
4359 ac_cv_header_stdc
=no
4361 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4363 if test $ac_cv_header_stdc = yes; then
4364 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4366 /* end confdefs.h. */
4370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4371 $EGREP "memchr" >/dev
/null
2>&1; then :
4374 ac_cv_header_stdc
=no
4380 if test $ac_cv_header_stdc = yes; then
4381 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4383 /* end confdefs.h. */
4387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4388 $EGREP "free" >/dev
/null
2>&1; then :
4391 ac_cv_header_stdc
=no
4397 if test $ac_cv_header_stdc = yes; then
4398 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4399 if test "$cross_compiling" = yes; then :
4402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4403 /* end confdefs.h. */
4406 #if ((' ' & 0x0FF) == 0x020)
4407 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4408 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4410 # define ISLOWER(c) \
4411 (('a' <= (c) && (c) <= 'i') \
4412 || ('j' <= (c) && (c) <= 'r') \
4413 || ('s' <= (c) && (c) <= 'z'))
4414 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4417 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4422 for (i = 0; i < 256; i++)
4423 if (XOR (islower (i), ISLOWER (i))
4424 || toupper (i) != TOUPPER (i))
4429 if ac_fn_c_try_run
"$LINENO"; then :
4432 ac_cv_header_stdc
=no
4434 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4435 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4441 $as_echo "$ac_cv_header_stdc" >&6; }
4442 if test $ac_cv_header_stdc = yes; then
4444 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4448 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4449 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4450 inttypes.h stdint.h unistd.h
4452 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4453 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4455 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4456 cat >>confdefs.h
<<_ACEOF
4457 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4466 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4467 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4474 if test "$MINIX" = yes; then
4476 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4479 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4482 $as_echo "#define _MINIX 1" >>confdefs.h
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4488 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4489 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4490 $as_echo_n "(cached) " >&6
4492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h. */
4495 # define __EXTENSIONS__ 1
4496 $ac_includes_default
4505 if ac_fn_c_try_compile
"$LINENO"; then :
4506 ac_cv_safe_to_define___extensions__
=yes
4508 ac_cv_safe_to_define___extensions__
=no
4510 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4513 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4514 test $ac_cv_safe_to_define___extensions__ = yes &&
4515 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4517 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4519 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4521 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4523 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4527 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4528 if test -f "$ac_dir/install-sh"; then
4530 ac_install_sh
="$ac_aux_dir/install-sh -c"
4532 elif test -f "$ac_dir/install.sh"; then
4534 ac_install_sh
="$ac_aux_dir/install.sh -c"
4536 elif test -f "$ac_dir/shtool"; then
4538 ac_install_sh
="$ac_aux_dir/shtool install -c"
4542 if test -z "$ac_aux_dir"; then
4543 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4546 # These three variables are undocumented and unsupported,
4547 # and are intended to be withdrawn in a future Autoconf release.
4548 # They can cause serious problems if a builder's source tree is in a directory
4549 # whose full name contains unusual characters.
4550 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4551 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4552 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4555 # Make sure we can run config.sub.
4556 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4557 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4560 $as_echo_n "checking build system type... " >&6; }
4561 if ${ac_cv_build+:} false
; then :
4562 $as_echo_n "(cached) " >&6
4564 ac_build_alias
=$build_alias
4565 test "x$ac_build_alias" = x
&&
4566 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4567 test "x$ac_build_alias" = x
&&
4568 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4569 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4570 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4574 $as_echo "$ac_cv_build" >&6; }
4575 case $ac_cv_build in
4577 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4580 ac_save_IFS
=$IFS; IFS
='-'
4586 # Remember, the first character of IFS is used to create $*,
4587 # except with old shells:
4590 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4594 $as_echo_n "checking host system type... " >&6; }
4595 if ${ac_cv_host+:} false
; then :
4596 $as_echo_n "(cached) " >&6
4598 if test "x$host_alias" = x
; then
4599 ac_cv_host
=$ac_cv_build
4601 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4602 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4607 $as_echo "$ac_cv_host" >&6; }
4610 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4613 ac_save_IFS
=$IFS; IFS
='-'
4619 # Remember, the first character of IFS is used to create $*,
4620 # except with old shells:
4623 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4627 $as_echo_n "checking target system type... " >&6; }
4628 if ${ac_cv_target+:} false
; then :
4629 $as_echo_n "(cached) " >&6
4631 if test "x$target_alias" = x
; then
4632 ac_cv_target
=$ac_cv_host
4634 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4635 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4640 $as_echo "$ac_cv_target" >&6; }
4641 case $ac_cv_target in
4643 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4645 target
=$ac_cv_target
4646 ac_save_IFS
=$IFS; IFS
='-'
4652 # Remember, the first character of IFS is used to create $*,
4653 # except with old shells:
4656 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4659 # The aliases save the names the user supplied, while $host etc.
4660 # will get canonicalized.
4661 test -n "$target_alias" &&
4662 test "$program_prefix$program_suffix$program_transform_name" = \
4664 program_prefix
=${target_alias}-
4666 # The tests for host and target for $enable_largefile require
4671 # As the $enable_largefile decision depends on --enable-plugins we must set it
4672 # even in directories otherwise not depending on the $plugins option.
4676 for ac_header
in dlfcn.h
4678 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4680 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
4681 cat >>confdefs.h
<<_ACEOF
4682 #define HAVE_DLFCN_H 1
4689 for ac_header
in windows.h
4691 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4693 if test "x$ac_cv_header_windows_h" = xyes
; then :
4694 cat >>confdefs.h
<<_ACEOF
4695 #define HAVE_WINDOWS_H 1
4703 # Check whether --enable-plugins was given.
4704 if test "${enable_plugins+set}" = set; then :
4705 enableval
=$enable_plugins; case "${enableval}" in
4708 if test "$maybe_plugins" != "yes" ; then
4709 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4713 plugins
=$maybe_plugins
4717 if test "$plugins" = "yes"; then
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4719 $as_echo_n "checking for library containing dlsym... " >&6; }
4720 if ${ac_cv_search_dlsym+:} false
; then :
4721 $as_echo_n "(cached) " >&6
4723 ac_func_search_save_LIBS
=$LIBS
4724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4725 /* end confdefs.h. */
4727 /* Override any GCC internal prototype to avoid an error.
4728 Use char because int might match the return type of a GCC
4729 builtin and then its argument prototype would still apply. */
4742 for ac_lib
in '' dl
; do
4743 if test -z "$ac_lib"; then
4744 ac_res
="none required"
4747 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4749 if ac_fn_c_try_link
"$LINENO"; then :
4750 ac_cv_search_dlsym
=$ac_res
4752 rm -f core conftest.err conftest.
$ac_objext \
4754 if ${ac_cv_search_dlsym+:} false
; then :
4758 if ${ac_cv_search_dlsym+:} false
; then :
4761 ac_cv_search_dlsym
=no
4764 LIBS
=$ac_func_search_save_LIBS
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4767 $as_echo "$ac_cv_search_dlsym" >&6; }
4768 ac_res
=$ac_cv_search_dlsym
4769 if test "$ac_res" != no
; then :
4770 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4778 sparc-
*-solaris*|i?
86-*-solaris*)
4779 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
4780 # were mutually exclusive until Solaris 11.3. Without procfs support,
4781 # the bfd/ elf module cannot provide certain routines such as
4782 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
4783 # explicitly requested large-file support through the
4784 # --enable-largefile switch, disable large-file support in favor of
4787 # Check if <sys/procfs.h> is incompatible with large-file support.
4788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4790 #define _FILE_OFFSET_BITS 64
4791 #define _STRUCTURED_PROC 1
4792 #include <sys/procfs.h>
4801 if ac_fn_c_try_compile
"$LINENO"; then :
4802 acx_cv_procfs_lfs
=yes
4804 acx_cv_procfs_lfs
=no
4806 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4808 # Forcefully disable large-file support only if necessary, gdb is in
4810 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
4811 -a -d $srcdir/..
/gdb
-a "$enable_gdb" != no
; then
4812 : ${enable_largefile="no"}
4813 if test "$plugins" = yes; then
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4815 plugin support disabled; require large-file support which is incompatible with GDB." >&5
4816 $as_echo "$as_me: WARNING:
4817 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
4822 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
4823 # benefit of g++ 9+ which predefines it on Solaris.
4824 if test "$enable_largefile" = no
; then
4825 LARGEFILE_CPPFLAGS
="-U_FILE_OFFSET_BITS"
4831 # Check whether --enable-largefile was given.
4832 if test "${enable_largefile+set}" = set; then :
4833 enableval
=$enable_largefile;
4836 if test "$enable_largefile" != no
; then
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4839 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4840 if ${ac_cv_sys_largefile_CC+:} false
; then :
4841 $as_echo_n "(cached) " >&6
4843 ac_cv_sys_largefile_CC
=no
4844 if test "$GCC" != yes; then
4847 # IRIX 6.2 and later do not support large files by default,
4848 # so use the C compiler's -n32 option if that helps.
4849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4850 /* end confdefs.h. */
4851 #include <sys/types.h>
4852 /* Check that off_t can represent 2**63 - 1 correctly.
4853 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4854 since some C++ compilers masquerading as C compilers
4855 incorrectly reject 9223372036854775807. */
4856 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4857 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4858 && LARGE_OFF_T % 2147483647 == 1)
4868 if ac_fn_c_try_compile
"$LINENO"; then :
4871 rm -f core conftest.err conftest.
$ac_objext
4873 if ac_fn_c_try_compile
"$LINENO"; then :
4874 ac_cv_sys_largefile_CC
=' -n32'; break
4876 rm -f core conftest.err conftest.
$ac_objext
4880 rm -f conftest.
$ac_ext
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4884 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4885 if test "$ac_cv_sys_largefile_CC" != no
; then
4886 CC
=$CC$ac_cv_sys_largefile_CC
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4890 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4891 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4892 $as_echo_n "(cached) " >&6
4895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4896 /* end confdefs.h. */
4897 #include <sys/types.h>
4898 /* Check that off_t can represent 2**63 - 1 correctly.
4899 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4900 since some C++ compilers masquerading as C compilers
4901 incorrectly reject 9223372036854775807. */
4902 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4903 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4904 && LARGE_OFF_T % 2147483647 == 1)
4914 if ac_fn_c_try_compile
"$LINENO"; then :
4915 ac_cv_sys_file_offset_bits
=no
; break
4917 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4919 /* end confdefs.h. */
4920 #define _FILE_OFFSET_BITS 64
4921 #include <sys/types.h>
4922 /* Check that off_t can represent 2**63 - 1 correctly.
4923 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4924 since some C++ compilers masquerading as C compilers
4925 incorrectly reject 9223372036854775807. */
4926 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4927 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4928 && LARGE_OFF_T % 2147483647 == 1)
4938 if ac_fn_c_try_compile
"$LINENO"; then :
4939 ac_cv_sys_file_offset_bits
=64; break
4941 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4942 ac_cv_sys_file_offset_bits
=unknown
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4947 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4948 case $ac_cv_sys_file_offset_bits in #(
4951 cat >>confdefs.h
<<_ACEOF
4952 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4957 if test $ac_cv_sys_file_offset_bits = unknown
; then
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4959 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4960 if ${ac_cv_sys_large_files+:} false
; then :
4961 $as_echo_n "(cached) " >&6
4964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4965 /* end confdefs.h. */
4966 #include <sys/types.h>
4967 /* Check that off_t can represent 2**63 - 1 correctly.
4968 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4969 since some C++ compilers masquerading as C compilers
4970 incorrectly reject 9223372036854775807. */
4971 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4972 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4973 && LARGE_OFF_T % 2147483647 == 1)
4983 if ac_fn_c_try_compile
"$LINENO"; then :
4984 ac_cv_sys_large_files
=no
; break
4986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4988 /* end confdefs.h. */
4989 #define _LARGE_FILES 1
4990 #include <sys/types.h>
4991 /* Check that off_t can represent 2**63 - 1 correctly.
4992 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4993 since some C++ compilers masquerading as C compilers
4994 incorrectly reject 9223372036854775807. */
4995 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4996 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4997 && LARGE_OFF_T % 2147483647 == 1)
5007 if ac_fn_c_try_compile
"$LINENO"; then :
5008 ac_cv_sys_large_files
=1; break
5010 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5011 ac_cv_sys_large_files
=unknown
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5016 $as_echo "$ac_cv_sys_large_files" >&6; }
5017 case $ac_cv_sys_large_files in #(
5020 cat >>confdefs.h
<<_ACEOF
5021 #define _LARGE_FILES $ac_cv_sys_large_files
5032 # Expand $ac_aux_dir to an absolute path.
5033 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
5035 if test x
"${install_sh+set}" != xset
; then
5038 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
5040 install_sh
="\${SHELL} $am_aux_dir/install-sh"
5044 # Installed binaries are usually stripped using 'strip' when the user
5045 # run "make install-strip". However 'strip' might not be the right
5046 # tool to use in cross-compilation environments, therefore Automake
5047 # will honor the 'STRIP' environment variable to overrule this program.
5048 if test "$cross_compiling" != no
; then
5049 if test -n "$ac_tool_prefix"; then
5050 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5051 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5053 $as_echo_n "checking for $ac_word... " >&6; }
5054 if ${ac_cv_prog_STRIP+:} false
; then :
5055 $as_echo_n "(cached) " >&6
5057 if test -n "$STRIP"; then
5058 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5060 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5064 test -z "$as_dir" && as_dir
=.
5065 for ac_exec_ext
in '' $ac_executable_extensions; do
5066 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5067 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5077 STRIP
=$ac_cv_prog_STRIP
5078 if test -n "$STRIP"; then
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5080 $as_echo "$STRIP" >&6; }
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5083 $as_echo "no" >&6; }
5088 if test -z "$ac_cv_prog_STRIP"; then
5090 # Extract the first word of "strip", so it can be a program name with args.
5091 set dummy strip
; ac_word
=$2
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5093 $as_echo_n "checking for $ac_word... " >&6; }
5094 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
5095 $as_echo_n "(cached) " >&6
5097 if test -n "$ac_ct_STRIP"; then
5098 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5100 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5104 test -z "$as_dir" && as_dir
=.
5105 for ac_exec_ext
in '' $ac_executable_extensions; do
5106 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5107 ac_cv_prog_ac_ct_STRIP
="strip"
5108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5118 if test -n "$ac_ct_STRIP"; then
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5120 $as_echo "$ac_ct_STRIP" >&6; }
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5123 $as_echo "no" >&6; }
5126 if test "x$ac_ct_STRIP" = x
; then
5129 case $cross_compiling:$ac_tool_warned in
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5132 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5133 ac_tool_warned
=yes ;;
5138 STRIP
="$ac_cv_prog_STRIP"
5142 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
5146 for ac_dir
in ..
"$srcdir"/..
; do
5147 if test -f "$ac_dir/install-sh"; then
5149 ac_install_sh
="$ac_aux_dir/install-sh -c"
5151 elif test -f "$ac_dir/install.sh"; then
5153 ac_install_sh
="$ac_aux_dir/install.sh -c"
5155 elif test -f "$ac_dir/shtool"; then
5157 ac_install_sh
="$ac_aux_dir/shtool install -c"
5161 if test -z "$ac_aux_dir"; then
5162 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
5165 # These three variables are undocumented and unsupported,
5166 # and are intended to be withdrawn in a future Autoconf release.
5167 # They can cause serious problems if a builder's source tree is in a directory
5168 # whose full name contains unusual characters.
5169 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5170 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5171 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5175 # Set build, build_cpu, build_vendor and build_os.
5178 # Set host, host_cpu, host_vendor, and host_os.
5181 # Set target, target_cpu, target_vendor, and target_os.
5184 case ${build_alias} in
5185 "") build_noncanonical
=${build} ;;
5186 *) build_noncanonical
=${build_alias} ;;
5189 case ${host_alias} in
5190 "") host_noncanonical
=${build_noncanonical} ;;
5191 *) host_noncanonical
=${host_alias} ;;
5194 case ${target_alias} in
5195 "") target_noncanonical
=${host_noncanonical} ;;
5196 *) target_noncanonical
=${target_alias} ;;
5202 test "$program_prefix" != NONE
&&
5203 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
5204 # Use a double $ so make ignores it.
5205 test "$program_suffix" != NONE
&&
5206 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
5207 # Double any \ or $.
5208 # By default was `s,x,x', remove it if useless.
5209 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
5210 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
5213 # We require a C++11 compiler. Check if one is available, and if
5214 # necessary, set CXX_DIALECT to some -std=xxx switch.
5216 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5218 ac_cpp
='$CXXCPP $CPPFLAGS'
5219 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5220 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5221 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5225 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5226 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5227 $as_echo_n "(cached) " >&6
5229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5230 /* end confdefs.h. */
5233 // If the compiler admits that it is not ready for C++11, why torture it?
5234 // Hopefully, this will speed up the test.
5238 #error "This is not a C++ compiler"
5240 #elif __cplusplus < 201103L
5242 #error "This is not a C++11 compiler"
5249 namespace test_static_assert
5252 template <typename T>
5255 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5260 namespace test_final_override
5268 struct Derived : public Base
5270 virtual void f() override {}
5275 namespace test_double_right_angle_brackets
5278 template < typename T >
5281 typedef check<void> single_type;
5282 typedef check<check<void>> double_type;
5283 typedef check<check<check<void>>> triple_type;
5284 typedef check<check<check<check<void>>>> quadruple_type;
5288 namespace test_decltype
5301 namespace test_type_deduction
5304 template < typename T1, typename T2 >
5307 static const bool value = false;
5310 template < typename T >
5311 struct is_same<T, T>
5313 static const bool value = true;
5316 template < typename T1, typename T2 >
5318 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5324 test(const int c, volatile int v)
5326 static_assert(is_same<int, decltype(0)>::value == true, "");
5327 static_assert(is_same<int, decltype(c)>::value == false, "");
5328 static_assert(is_same<int, decltype(v)>::value == false, "");
5331 auto sumi = ac + av + 'x';
5332 auto sumf = ac + av + 1.0;
5333 static_assert(is_same<int, decltype(ac)>::value == true, "");
5334 static_assert(is_same<int, decltype(av)>::value == true, "");
5335 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5336 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5337 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5338 return (sumf > 0.0) ? sumi : add(c, v);
5343 namespace test_noexcept
5346 int f() { return 0; }
5347 int g() noexcept { return 0; }
5349 static_assert(noexcept(f()) == false, "");
5350 static_assert(noexcept(g()) == true, "");
5354 namespace test_constexpr
5357 template < typename CharT >
5358 unsigned long constexpr
5359 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5361 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5364 template < typename CharT >
5365 unsigned long constexpr
5366 strlen_c(const CharT *const s) noexcept
5368 return strlen_c_r(s, 0UL);
5371 static_assert(strlen_c("") == 0UL, "");
5372 static_assert(strlen_c("1") == 1UL, "");
5373 static_assert(strlen_c("example") == 7UL, "");
5374 static_assert(strlen_c("another\0example") == 7UL, "");
5378 namespace test_rvalue_references
5384 static constexpr int value = N;
5387 answer<1> f(int&) { return answer<1>(); }
5388 answer<2> f(const int&) { return answer<2>(); }
5389 answer<3> f(int&&) { return answer<3>(); }
5396 static_assert(decltype(f(i))::value == 1, "");
5397 static_assert(decltype(f(c))::value == 2, "");
5398 static_assert(decltype(f(0))::value == 3, "");
5403 namespace test_uniform_initialization
5408 static const int zero {};
5409 static const int one {1};
5412 static_assert(test::zero == 0, "");
5413 static_assert(test::one == 1, "");
5417 namespace test_lambdas
5423 auto lambda1 = [](){};
5424 auto lambda2 = lambda1;
5432 auto a = [](int i, int j){ return i + j; }(1, 2);
5433 auto b = []() -> int { return '0'; }();
5434 auto c = [=](){ return a + b; }();
5435 auto d = [&](){ return c; }();
5436 auto e = [a, &b](int x) mutable {
5437 const auto identity = [](int y){ return y; };
5438 for (auto i = 0; i < a; ++i)
5440 return x + identity(a + b);
5442 return a + b + c + d + e;
5448 const auto nullary = [](){ return 0; };
5449 const auto unary = [](int x){ return x; };
5450 using nullary_t = decltype(nullary);
5451 using unary_t = decltype(unary);
5452 const auto higher1st = [](nullary_t f){ return f(); };
5453 const auto higher2nd = [unary](nullary_t f1){
5454 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5456 return higher1st(nullary) + higher2nd(nullary)(unary);
5461 namespace test_variadic_templates
5467 template <int N0, int... N1toN>
5468 struct sum<N0, N1toN...>
5470 static constexpr auto value = N0 + sum<N1toN...>::value;
5476 static constexpr auto value = 0;
5479 static_assert(sum<>::value == 0, "");
5480 static_assert(sum<1>::value == 1, "");
5481 static_assert(sum<23>::value == 23, "");
5482 static_assert(sum<1, 2>::value == 3, "");
5483 static_assert(sum<5, 5, 11>::value == 21, "");
5484 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5488 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5489 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5491 namespace test_template_alias_sfinae
5496 template<typename T>
5497 using member = typename T::member_type;
5499 template<typename T>
5502 template<typename T>
5503 void func(member<T>*) {}
5507 void test() { func<foo>(0); }
5511 } // namespace cxx11
5513 #endif // __cplusplus >= 201103L
5518 if ac_fn_cxx_try_compile
"$LINENO"; then :
5519 ax_cv_cxx_compile_cxx11
=yes
5521 ax_cv_cxx_compile_cxx11
=no
5523 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5526 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5527 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
5531 if test x
$ac_success = xno
; then
5532 for alternative
in ${ax_cxx_compile_alternatives}; do
5533 switch
="-std=gnu++${alternative}"
5534 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5536 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5537 if eval \
${$cachevar+:} false
; then :
5538 $as_echo_n "(cached) " >&6
5542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5543 /* end confdefs.h. */
5546 // If the compiler admits that it is not ready for C++11, why torture it?
5547 // Hopefully, this will speed up the test.
5551 #error "This is not a C++ compiler"
5553 #elif __cplusplus < 201103L
5555 #error "This is not a C++11 compiler"
5562 namespace test_static_assert
5565 template <typename T>
5568 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5573 namespace test_final_override
5581 struct Derived : public Base
5583 virtual void f() override {}
5588 namespace test_double_right_angle_brackets
5591 template < typename T >
5594 typedef check<void> single_type;
5595 typedef check<check<void>> double_type;
5596 typedef check<check<check<void>>> triple_type;
5597 typedef check<check<check<check<void>>>> quadruple_type;
5601 namespace test_decltype
5614 namespace test_type_deduction
5617 template < typename T1, typename T2 >
5620 static const bool value = false;
5623 template < typename T >
5624 struct is_same<T, T>
5626 static const bool value = true;
5629 template < typename T1, typename T2 >
5631 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5637 test(const int c, volatile int v)
5639 static_assert(is_same<int, decltype(0)>::value == true, "");
5640 static_assert(is_same<int, decltype(c)>::value == false, "");
5641 static_assert(is_same<int, decltype(v)>::value == false, "");
5644 auto sumi = ac + av + 'x';
5645 auto sumf = ac + av + 1.0;
5646 static_assert(is_same<int, decltype(ac)>::value == true, "");
5647 static_assert(is_same<int, decltype(av)>::value == true, "");
5648 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5649 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5650 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5651 return (sumf > 0.0) ? sumi : add(c, v);
5656 namespace test_noexcept
5659 int f() { return 0; }
5660 int g() noexcept { return 0; }
5662 static_assert(noexcept(f()) == false, "");
5663 static_assert(noexcept(g()) == true, "");
5667 namespace test_constexpr
5670 template < typename CharT >
5671 unsigned long constexpr
5672 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5674 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5677 template < typename CharT >
5678 unsigned long constexpr
5679 strlen_c(const CharT *const s) noexcept
5681 return strlen_c_r(s, 0UL);
5684 static_assert(strlen_c("") == 0UL, "");
5685 static_assert(strlen_c("1") == 1UL, "");
5686 static_assert(strlen_c("example") == 7UL, "");
5687 static_assert(strlen_c("another\0example") == 7UL, "");
5691 namespace test_rvalue_references
5697 static constexpr int value = N;
5700 answer<1> f(int&) { return answer<1>(); }
5701 answer<2> f(const int&) { return answer<2>(); }
5702 answer<3> f(int&&) { return answer<3>(); }
5709 static_assert(decltype(f(i))::value == 1, "");
5710 static_assert(decltype(f(c))::value == 2, "");
5711 static_assert(decltype(f(0))::value == 3, "");
5716 namespace test_uniform_initialization
5721 static const int zero {};
5722 static const int one {1};
5725 static_assert(test::zero == 0, "");
5726 static_assert(test::one == 1, "");
5730 namespace test_lambdas
5736 auto lambda1 = [](){};
5737 auto lambda2 = lambda1;
5745 auto a = [](int i, int j){ return i + j; }(1, 2);
5746 auto b = []() -> int { return '0'; }();
5747 auto c = [=](){ return a + b; }();
5748 auto d = [&](){ return c; }();
5749 auto e = [a, &b](int x) mutable {
5750 const auto identity = [](int y){ return y; };
5751 for (auto i = 0; i < a; ++i)
5753 return x + identity(a + b);
5755 return a + b + c + d + e;
5761 const auto nullary = [](){ return 0; };
5762 const auto unary = [](int x){ return x; };
5763 using nullary_t = decltype(nullary);
5764 using unary_t = decltype(unary);
5765 const auto higher1st = [](nullary_t f){ return f(); };
5766 const auto higher2nd = [unary](nullary_t f1){
5767 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5769 return higher1st(nullary) + higher2nd(nullary)(unary);
5774 namespace test_variadic_templates
5780 template <int N0, int... N1toN>
5781 struct sum<N0, N1toN...>
5783 static constexpr auto value = N0 + sum<N1toN...>::value;
5789 static constexpr auto value = 0;
5792 static_assert(sum<>::value == 0, "");
5793 static_assert(sum<1>::value == 1, "");
5794 static_assert(sum<23>::value == 23, "");
5795 static_assert(sum<1, 2>::value == 3, "");
5796 static_assert(sum<5, 5, 11>::value == 21, "");
5797 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5801 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5802 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5804 namespace test_template_alias_sfinae
5809 template<typename T>
5810 using member = typename T::member_type;
5812 template<typename T>
5815 template<typename T>
5816 void func(member<T>*) {}
5820 void test() { func<foo>(0); }
5824 } // namespace cxx11
5826 #endif // __cplusplus >= 201103L
5831 if ac_fn_cxx_try_compile
"$LINENO"; then :
5836 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5839 eval ac_res
=\$
$cachevar
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5841 $as_echo "$ac_res" >&6; }
5842 if eval test x\$
$cachevar = xyes
; then
5843 CXX_DIALECT
="$switch"
5845 if test -n "$CXXCPP" ; then
5846 CXXCPP
="$CXXCPP $switch"
5854 if test x
$ac_success = xno
; then
5855 for alternative
in ${ax_cxx_compile_alternatives}; do
5856 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5857 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
5859 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
5860 if eval \${$cachevar+:} false; then :
5861 $as_echo_n "(cached
) " >&6
5865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866 /* end confdefs.h. */
5869 // If the compiler admits that it is not ready for C++11, why torture it?
5870 // Hopefully, this will speed up the test.
5874 #error "This is not a C
++ compiler
"
5876 #elif __cplusplus < 201103L
5878 #error "This is not a C
++11 compiler
"
5885 namespace test_static_assert
5888 template <typename T>
5891 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
5896 namespace test_final_override
5904 struct Derived : public Base
5906 virtual void f() override {}
5911 namespace test_double_right_angle_brackets
5914 template < typename T >
5917 typedef check<void> single_type;
5918 typedef check<check<void>> double_type;
5919 typedef check<check<check<void>>> triple_type;
5920 typedef check<check<check<check<void>>>> quadruple_type;
5924 namespace test_decltype
5937 namespace test_type_deduction
5940 template < typename T1, typename T2 >
5943 static const bool value = false;
5946 template < typename T >
5947 struct is_same<T, T>
5949 static const bool value = true;
5952 template < typename T1, typename T2 >
5954 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5960 test(const int c, volatile int v)
5962 static_assert(is_same<int, decltype(0)>::value == true, "");
5963 static_assert(is_same<int, decltype(c)>::value == false, "");
5964 static_assert(is_same<int, decltype(v)>::value == false, "");
5967 auto sumi = ac + av + 'x';
5968 auto sumf = ac + av + 1.0;
5969 static_assert(is_same<int, decltype(ac)>::value == true, "");
5970 static_assert(is_same<int, decltype(av)>::value == true, "");
5971 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5972 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5973 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5974 return (sumf > 0.0) ? sumi : add(c, v);
5979 namespace test_noexcept
5982 int f() { return 0; }
5983 int g() noexcept { return 0; }
5985 static_assert(noexcept(f()) == false, "");
5986 static_assert(noexcept(g()) == true, "");
5990 namespace test_constexpr
5993 template < typename CharT >
5994 unsigned long constexpr
5995 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5997 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6000 template < typename CharT >
6001 unsigned long constexpr
6002 strlen_c(const CharT *const s) noexcept
6004 return strlen_c_r(s, 0UL);
6007 static_assert(strlen_c("") == 0UL, "");
6008 static_assert(strlen_c("1") == 1UL, "");
6009 static_assert(strlen_c("example
") == 7UL, "");
6010 static_assert(strlen_c("another\
0example
") == 7UL, "");
6014 namespace test_rvalue_references
6020 static constexpr int value = N;
6023 answer<1> f(int&) { return answer<1>(); }
6024 answer<2> f(const int&) { return answer<2>(); }
6025 answer<3> f(int&&) { return answer<3>(); }
6032 static_assert(decltype(f(i))::value == 1, "");
6033 static_assert(decltype(f(c))::value == 2, "");
6034 static_assert(decltype(f(0))::value == 3, "");
6039 namespace test_uniform_initialization
6044 static const int zero {};
6045 static const int one {1};
6048 static_assert(test::zero == 0, "");
6049 static_assert(test::one == 1, "");
6053 namespace test_lambdas
6059 auto lambda1 = [](){};
6060 auto lambda2 = lambda1;
6068 auto a = [](int i, int j){ return i + j; }(1, 2);
6069 auto b = []() -> int { return '0'; }();
6070 auto c = [=](){ return a + b; }();
6071 auto d = [&](){ return c; }();
6072 auto e = [a, &b](int x) mutable {
6073 const auto identity = [](int y){ return y; };
6074 for (auto i = 0; i < a; ++i)
6076 return x + identity(a + b);
6078 return a + b + c + d + e;
6084 const auto nullary = [](){ return 0; };
6085 const auto unary = [](int x){ return x; };
6086 using nullary_t = decltype(nullary);
6087 using unary_t = decltype(unary);
6088 const auto higher1st = [](nullary_t f){ return f(); };
6089 const auto higher2nd = [unary](nullary_t f1){
6090 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6092 return higher1st(nullary) + higher2nd(nullary)(unary);
6097 namespace test_variadic_templates
6103 template <int N0, int... N1toN>
6104 struct sum<N0, N1toN...>
6106 static constexpr auto value = N0 + sum<N1toN...>::value;
6112 static constexpr auto value = 0;
6115 static_assert(sum<>::value == 0, "");
6116 static_assert(sum<1>::value == 1, "");
6117 static_assert(sum<23>::value == 23, "");
6118 static_assert(sum<1, 2>::value == 3, "");
6119 static_assert(sum<5, 5, 11>::value == 21, "");
6120 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6124 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6125 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6127 namespace test_template_alias_sfinae
6132 template<typename T>
6133 using member = typename T::member_type;
6135 template<typename T>
6138 template<typename T>
6139 void func(member<T>*) {}
6143 void test() { func<foo>(0); }
6147 } // namespace cxx11
6149 #endif // __cplusplus >= 201103L
6154 if ac_fn_cxx_try_compile "$LINENO"; then :
6159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6162 eval ac_res=\$$cachevar
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6164 $as_echo "$ac_res" >&6; }
6165 if eval test x\$$cachevar = xyes; then
6166 CXX_DIALECT="$switch"
6168 if test -n "$CXXCPP" ; then
6169 CXXCPP="$CXXCPP $switch"
6175 if test x$ac_success = xyes; then
6181 ac_cpp='$CPP $CPPFLAGS'
6182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6186 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6187 if test x$ac_success = xno; then
6188 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6191 if test x$ac_success = xno; then
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6194 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6198 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6205 # Dependency checking.
6206 rm -rf .tst
2>/dev
/null
6207 mkdir .tst
2>/dev
/null
6208 if test -d .tst
; then
6213 rmdir .tst
2>/dev
/null
6215 DEPDIR
="${am__leading_dot}deps"
6217 ac_config_commands
="$ac_config_commands depdir"
6220 depcc
="$CC" am_compiler_list
=
6222 am_depcomp
=$ac_aux_dir/depcomp
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6224 $as_echo_n "checking dependency style of $depcc... " >&6; }
6225 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
6226 $as_echo_n "(cached) " >&6
6228 if test -f "$am_depcomp"; then
6229 # We make a subdir and do the tests there. Otherwise we can end up
6230 # making bogus files that we don't know about and never remove. For
6231 # instance it was reported that on HP-UX the gcc test will end up
6232 # making a dummy file named `D' -- because `-MD' means `put the output
6235 # Copy depcomp to subdir because otherwise we won't find it if we're
6236 # using a relative directory.
6237 cp "$am_depcomp" conftest.dir
6239 # We will build objects and dependencies in a subdirectory because
6240 # it helps to detect inapplicable dependency modes. For instance
6241 # both Tru64's cc and ICC support -MD to output dependencies as a
6242 # side effect of compilation, but ICC will put the dependencies in
6243 # the current directory while Tru64 will put them in the object
6247 am_cv_CC_dependencies_compiler_type
=none
6248 if test "$am_compiler_list" = ""; then
6249 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6251 for depmode
in $am_compiler_list; do
6252 if test $depmode = none
; then break; fi
6254 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6255 # Setup a source with many dependencies, because some compilers
6256 # like to wrap large dependency lists on column 80 (with \), and
6257 # we should not choose a depcomp mode which is confused by this.
6259 # We need to recreate these files for each test, as the compiler may
6260 # overwrite some of them when testing with obscure command lines.
6261 # This happens at least with the AIX C compiler.
6263 for i
in 1 2 3 4 5 6; do
6264 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6265 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6266 # Solaris 8's {/usr,}/bin/sh.
6267 touch sub
/conftst
$i.h
6269 echo "include sub/conftest.Po" > confmf
6271 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6272 # mode. It turns out that the SunPro C++ compiler does not properly
6273 # handle `-M -o', and we need to detect this.
6274 depcmd
="depmode=$depmode \
6275 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6276 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6277 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6278 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
6279 if env
$depcmd > conftest.err
2>&1 &&
6280 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
6281 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
6282 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
6283 # icc doesn't choke on unknown options, it will just issue warnings
6284 # or remarks (even with -Werror). So we grep stderr for any message
6285 # that says an option was ignored or not supported.
6286 # When given -MP, icc 7.0 and 7.1 complain thusly:
6287 # icc: Command line warning: ignoring option '-M'; no argument required
6288 # The diagnosis changed in icc 8.0:
6289 # icc: Command line remark: option '-MP' not supported
6290 if (grep 'ignoring option' conftest.err ||
6291 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6292 am_cv_CC_dependencies_compiler_type
=$depmode
6293 $as_echo "$as_me:$LINENO: success" >&5
6297 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6298 sed -e 's/^/| /' < conftest.err
>&5
6304 am_cv_CC_dependencies_compiler_type
=none
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6309 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6310 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
6311 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
6312 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
6328 # If we haven't got the data from the intl directory,
6329 # assume NLS is disabled.
6338 if test -f ..
/intl
/config.intl
; then
6339 . ..
/intl
/config.intl
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6342 $as_echo_n "checking whether NLS is requested... " >&6; }
6343 if test x
"$USE_NLS" != xyes
; then
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6345 $as_echo "no" >&6; }
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6348 $as_echo "yes" >&6; }
6350 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6354 $as_echo_n "checking for catalogs to be installed... " >&6; }
6355 # Look for .po and .gmo files in the source directory.
6358 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
6359 # If there aren't any .gmo files the shell will give us the
6360 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6362 case "$cat" in *\
**)
6365 # The quadruple backslash is collapsed to a double backslash
6366 # by the backticks, then collapsed again by the double quotes,
6367 # leaving us with one backslash in the sed expression (right
6368 # before the dot that mustn't act as a wildcard).
6369 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6370 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
6371 # The user is allowed to set LINGUAS to a list of languages to
6372 # install catalogs for. If it's empty that means "all of them."
6373 if test "x$LINGUAS" = x
; then
6374 CATALOGS
="$CATALOGS $cat"
6375 XLINGUAS
="$XLINGUAS $lang"
6377 case "$LINGUAS" in *$lang*)
6378 CATALOGS
="$CATALOGS $cat"
6379 XLINGUAS
="$XLINGUAS $lang"
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6386 $as_echo "$LINGUAS" >&6; }
6399 localedir
='${datadir}/locale'
6402 if test x
"$USE_NLS" = xyes
; then
6403 CONFIG_ALL
="$CONFIG_ALL all-po"
6404 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
6405 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
6406 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
6411 cat >>confdefs.h
<<_ACEOF
6412 #define PACKAGE "$PACKAGE"
6417 # We never need to detect it in this sub-configure.
6418 # But preserve it for config.status --recheck.
6422 MAKEINFO_EXTRA_FLAGS
=""
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
6424 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
6425 if ${gdb_cv_have_makeinfo_click+:} false
; then :
6426 $as_echo_n "(cached) " >&6
6428 echo '@clicksequence{a @click{} b}' >conftest.texinfo
6429 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
6430 gdb_cv_have_makeinfo_click
=yes
6432 gdb_cv_have_makeinfo_click
=no
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
6436 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
6437 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
6438 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
6444 # Check whether --with-separate-debug-dir was given.
6445 if test "${with_separate_debug_dir+set}" = set; then :
6446 withval
=$with_separate_debug_dir;
6449 DEBUGDIR
=${libdir}/debug
6453 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6454 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6455 ac_define_dir
=`eval echo $DEBUGDIR`
6456 ac_define_dir
=`eval echo $ac_define_dir`
6458 cat >>confdefs.h
<<_ACEOF
6459 #define DEBUGDIR "$ac_define_dir"
6465 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6466 if test "x$prefix" = xNONE
; then
6467 test_prefix
=/usr
/local
6472 test_prefix
=$exec_prefix
6475 case ${ac_define_dir} in
6476 "${test_prefix}"|
"${test_prefix}/"*|\
6477 '${exec_prefix}'|
'${exec_prefix}/'*)
6482 cat >>confdefs.h
<<_ACEOF
6483 #define DEBUGDIR_RELOCATABLE $value
6489 # We can't pass paths as command line arguments.
6490 # Mingw32 tries to be clever and will convert the paths for us.
6491 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
6492 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
6493 # This breaks GDB's relocatable path conversions since paths passed in
6494 # config.h would not get so translated, the path prefixes no longer match.
6496 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6497 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6498 ac_define_dir
=`eval echo $bindir`
6499 ac_define_dir
=`eval echo $ac_define_dir`
6501 cat >>confdefs.h
<<_ACEOF
6502 #define BINDIR "$ac_define_dir"
6507 # GDB's datadir relocation
6511 # Check whether --with-gdb-datadir was given.
6512 if test "${with_gdb_datadir+set}" = set; then :
6513 withval
=$with_gdb_datadir;
6514 GDB_DATADIR
=$withval
6516 GDB_DATADIR
=${datadir}/gdb
6520 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6521 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6522 ac_define_dir
=`eval echo $GDB_DATADIR`
6523 ac_define_dir
=`eval echo $ac_define_dir`
6525 cat >>confdefs.h
<<_ACEOF
6526 #define GDB_DATADIR "$ac_define_dir"
6532 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6533 if test "x$prefix" = xNONE
; then
6534 test_prefix
=/usr
/local
6539 test_prefix
=$exec_prefix
6542 case ${ac_define_dir} in
6543 "${test_prefix}"|
"${test_prefix}/"*|\
6544 '${exec_prefix}'|
'${exec_prefix}/'*)
6549 cat >>confdefs.h
<<_ACEOF
6550 #define GDB_DATADIR_RELOCATABLE $value
6557 # Check whether --with-relocated-sources was given.
6558 if test "${with_relocated_sources+set}" = set; then :
6559 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
6561 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6562 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6563 ac_define_dir
=`eval echo $reloc_srcdir`
6564 ac_define_dir
=`eval echo $ac_define_dir`
6566 cat >>confdefs.h
<<_ACEOF
6567 #define RELOC_SRCDIR "$ac_define_dir"
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
6576 $as_echo_n "checking for default auto-load directory... " >&6; }
6578 # Check whether --with-auto-load-dir was given.
6579 if test "${with_auto_load_dir+set}" = set; then :
6580 withval
=$with_auto_load_dir;
6582 with_auto_load_dir
='$debugdir:$datadir/auto-load'
6585 escape_dir
=`echo $with_auto_load_dir | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6587 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6588 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6589 ac_define_dir
=`eval echo $escape_dir`
6590 ac_define_dir
=`eval echo $ac_define_dir`
6592 cat >>confdefs.h
<<_ACEOF
6593 #define AUTO_LOAD_DIR "$ac_define_dir"
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
6598 $as_echo "$with_auto_load_dir" >&6; }
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
6601 $as_echo_n "checking for default auto-load safe-path... " >&6; }
6603 # Check whether --with-auto-load-safe-path was given.
6604 if test "${with_auto_load_safe_path+set}" = set; then :
6605 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
6606 with_auto_load_safe_path
="/"
6609 with_auto_load_safe_path
="$with_auto_load_dir"
6612 escape_dir
=`echo $with_auto_load_safe_path | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6614 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6615 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6616 ac_define_dir
=`eval echo $escape_dir`
6617 ac_define_dir
=`eval echo $ac_define_dir`
6619 cat >>confdefs.h
<<_ACEOF
6620 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
6625 $as_echo "$with_auto_load_safe_path" >&6; }
6629 subdirs
="$subdirs testsuite"
6632 # Check whether to support alternative target configurations
6633 # Check whether --enable-targets was given.
6634 if test "${enable_targets+set}" = set; then :
6635 enableval
=$enable_targets; case "${enableval}" in
6636 yes |
"") as_fn_error $?
"enable-targets option must specify target names or 'all'" "$LINENO" 5
6638 no
) enable_targets
= ;;
6639 *) enable_targets
=$enableval ;;
6644 # Check whether to enable 64-bit support on 32-bit hosts
6645 # Check whether --enable-64-bit-bfd was given.
6646 if test "${enable_64_bit_bfd+set}" = set; then :
6647 enableval
=$enable_64_bit_bfd; case "${enableval}" in
6650 *) as_fn_error $?
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
6656 # Provide defaults for some variables set by the per-host and per-target
6658 gdb_host_obs
=posix-hdep.o
6660 if test "${target}" = "${host}"; then
6666 .
$srcdir/configure.
host
6668 # Accumulate some settings from configure.tgt over all enabled targets
6672 HAVE_NATIVE_GCORE_TARGET
=
6674 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6676 if test "$targ_alias" = "all"; then
6679 # Canonicalize the secondary target names.
6680 result
=`$ac_config_sub $targ_alias 2>/dev/null`
6681 if test -n "$result"; then
6687 .
${srcdir}/configure.tgt
6689 if test -z "${gdb_target_obs}"; then :
6690 as_fn_error $?
"configuration ${targ} is unsupported." "$LINENO" 5
6693 # Target-specific object files
6694 for i
in ${gdb_target_obs}; do
6695 case " $TARGET_OBS " in
6698 TARGET_OBS
="$TARGET_OBS ${i}"
6703 # Check whether this target needs 64-bit CORE_ADDR
6704 if test x
${want64} = xfalse
; then
6705 .
${srcdir}/..
/bfd
/config.bfd
6708 # Check whether this target is native and supports gcore.
6709 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
6710 && $gdb_have_gcore; then
6711 HAVE_NATIVE_GCORE_TARGET
=1
6716 if test x
${all_targets} = xtrue
; then
6718 # We want all 64-bit targets if we either:
6719 # - run on a 64-bit host or
6720 # - already require 64-bit support for some other target or
6721 # - the --enable-64-bit-bfd option was supplied
6722 # Otherwise we only support all 32-bit targets.
6724 # NOTE: This test must be in sync with the corresponding
6727 if test x
${want64} = xfalse
; then
6728 # The cast to long int works around a bug in the HP C Compiler
6729 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6730 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6731 # This bug is HP SR number 8606223364.
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6733 $as_echo_n "checking size of long... " >&6; }
6734 if ${ac_cv_sizeof_long+:} false
; then :
6735 $as_echo_n "(cached) " >&6
6737 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6740 if test "$ac_cv_type_long" = yes; then
6741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6743 as_fn_error
77 "cannot compute sizeof (long)
6744 See \`config.log' for more details" "$LINENO" 5; }
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6752 $as_echo "$ac_cv_sizeof_long" >&6; }
6756 cat >>confdefs.h
<<_ACEOF
6757 #define SIZEOF_LONG $ac_cv_sizeof_long
6761 if test "x${ac_cv_sizeof_long}" = "x8"; then
6765 if test x
${want64} = xtrue
; then
6766 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
6768 TARGET_OBS
='$(ALL_TARGET_OBS)'
6775 # For other settings, only the main target counts.
6778 targ
=$target; .
${srcdir}/configure.tgt
6780 # Fetch the default architecture and default target vector from BFD.
6781 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
6783 # We only want the first architecture, so strip off the others if
6784 # there is more than one.
6785 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
6787 if test "x$targ_archs" != x
; then
6789 cat >>confdefs.h
<<_ACEOF
6790 #define DEFAULT_BFD_ARCH $targ_archs
6794 if test "x$targ_defvec" != x
; then
6796 cat >>confdefs.h
<<_ACEOF
6797 #define DEFAULT_BFD_VEC $targ_defvec
6803 # Check whether --enable-gdbmi was given.
6804 if test "${enable_gdbmi+set}" = set; then :
6805 enableval
=$enable_gdbmi; case $enableval in
6809 as_fn_error $?
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
6815 if test x
"$enable_gdbmi" = xyes
; then
6816 if test -d "$srcdir/mi"; then
6817 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6818 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6819 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6820 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6825 # Check whether --enable-tui was given.
6826 if test "${enable_tui+set}" = set; then :
6827 enableval
=$enable_tui; case $enableval in
6831 as_fn_error $?
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
6839 # Check whether --enable-gdbtk was given.
6840 if test "${enable_gdbtk+set}" = set; then :
6841 enableval
=$enable_gdbtk; case $enableval in
6845 as_fn_error $?
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
6848 if test -d "$srcdir/gdbtk"; then
6855 # We unconditionally disable gdbtk tests on selected platforms.
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
6859 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6863 # Handle optional debuginfod support
6871 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6872 if test -n "$ac_tool_prefix"; then
6873 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6874 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6876 $as_echo_n "checking for $ac_word... " >&6; }
6877 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
6878 $as_echo_n "(cached) " >&6
6882 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6885 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6889 test -z "$as_dir" && as_dir
=.
6890 for ac_exec_ext
in '' $ac_executable_extensions; do
6891 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6892 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6904 if test -n "$PKG_CONFIG"; then
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6906 $as_echo "$PKG_CONFIG" >&6; }
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909 $as_echo "no" >&6; }
6914 if test -z "$ac_cv_path_PKG_CONFIG"; then
6915 ac_pt_PKG_CONFIG
=$PKG_CONFIG
6916 # Extract the first word of "pkg-config", so it can be a program name with args.
6917 set dummy pkg-config
; ac_word
=$2
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6919 $as_echo_n "checking for $ac_word... " >&6; }
6920 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
6921 $as_echo_n "(cached) " >&6
6923 case $ac_pt_PKG_CONFIG in
6925 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6928 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6932 test -z "$as_dir" && as_dir
=.
6933 for ac_exec_ext
in '' $ac_executable_extensions; do
6934 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6935 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6946 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
6947 if test -n "$ac_pt_PKG_CONFIG"; then
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6949 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6952 $as_echo "no" >&6; }
6955 if test "x$ac_pt_PKG_CONFIG" = x
; then
6958 case $cross_compiling:$ac_tool_warned in
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6962 ac_tool_warned
=yes ;;
6964 PKG_CONFIG
=$ac_pt_PKG_CONFIG
6967 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
6971 if test -n "$PKG_CONFIG"; then
6972 _pkg_min_version
=0.9.0
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6974 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6975 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6977 $as_echo "yes" >&6; }
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6980 $as_echo "no" >&6; }
6985 # Handle optional debuginfod support
6987 # Check whether --with-debuginfod was given.
6988 if test "${with_debuginfod+set}" = set; then :
6989 withval
=$with_debuginfod;
6991 with_debuginfod
=auto
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
6995 $as_echo_n "checking whether to use debuginfod... " >&6; }
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
6997 $as_echo "$with_debuginfod" >&6; }
6999 if test "x$with_debuginfod" != xno
; then
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
7003 $as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
7005 if test -n "$DEBUGINFOD_CFLAGS"; then
7006 pkg_cv_DEBUGINFOD_CFLAGS
="$DEBUGINFOD_CFLAGS"
7007 elif test -n "$PKG_CONFIG"; then
7008 if test -n "$PKG_CONFIG" && \
7009 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
7010 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
7012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7013 test $ac_status = 0; }; then
7014 pkg_cv_DEBUGINFOD_CFLAGS
=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
7015 test "x$?" != "x0" && pkg_failed
=yes
7022 if test -n "$DEBUGINFOD_LIBS"; then
7023 pkg_cv_DEBUGINFOD_LIBS
="$DEBUGINFOD_LIBS"
7024 elif test -n "$PKG_CONFIG"; then
7025 if test -n "$PKG_CONFIG" && \
7026 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
7027 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
7029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7030 test $ac_status = 0; }; then
7031 pkg_cv_DEBUGINFOD_LIBS
=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
7032 test "x$?" != "x0" && pkg_failed
=yes
7040 if test $pkg_failed = no
; then
7041 pkg_save_LDFLAGS
="$LDFLAGS"
7042 LDFLAGS
="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
7043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7044 /* end confdefs.h. */
7054 if ac_fn_c_try_link
"$LINENO"; then :
7059 rm -f core conftest.err conftest.
$ac_objext \
7060 conftest
$ac_exeext conftest.
$ac_ext
7061 LDFLAGS
=$pkg_save_LDFLAGS
7066 if test $pkg_failed = yes; then
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7068 $as_echo "no" >&6; }
7070 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7071 _pkg_short_errors_supported
=yes
7073 _pkg_short_errors_supported
=no
7075 if test $_pkg_short_errors_supported = yes; then
7076 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
7078 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
7080 # Put the nasty error message in config.log where it belongs
7081 echo "$DEBUGINFOD_PKG_ERRORS" >&5
7083 if test "x$with_debuginfod" = xyes
; then
7084 as_fn_error $?
"\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
7087 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
7089 elif test $pkg_failed = untried
; then
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7091 $as_echo "no" >&6; }
7092 if test "x$with_debuginfod" = xyes
; then
7093 as_fn_error $?
"\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
7096 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
7099 DEBUGINFOD_CFLAGS
=$pkg_cv_DEBUGINFOD_CFLAGS
7100 DEBUGINFOD_LIBS
=$pkg_cv_DEBUGINFOD_LIBS
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7102 $as_echo "yes" >&6; }
7104 $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
7109 $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
7113 # Libunwind support for ia64.
7115 # Check whether --with-libunwind-ia64 was given.
7116 if test "${with_libunwind_ia64+set}" = set; then :
7117 withval
=$with_libunwind_ia64;
7119 with_libunwind_ia64
=auto
7123 # Backward compatibility option.
7124 if test "${with_libunwind+set}" = set; then
7125 if test x
"$with_libunwind_ia64" != xauto
; then
7126 as_fn_error $?
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
7129 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
7130 with_libunwind_ia64
="$with_libunwind"
7133 case "$with_libunwind_ia64" in
7137 for ac_header
in libunwind-ia64.h
7139 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
7140 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
7141 cat >>confdefs.h
<<_ACEOF
7142 #define HAVE_LIBUNWIND_IA64_H 1
7149 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
7152 as_fn_error $?
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
7156 if test x
"$with_libunwind_ia64" = xyes
; then
7157 for ac_header
in libunwind-ia64.h
7159 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
7160 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
7161 cat >>confdefs.h
<<_ACEOF
7162 #define HAVE_LIBUNWIND_IA64_H 1
7169 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
7170 as_fn_error $?
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
7172 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
7173 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
7174 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
7179 # Check whether --with-curses was given.
7180 if test "${with_curses+set}" = set; then :
7181 withval
=$with_curses; opt_curses
=$withval
7186 if test "$opt_curses" = "yes"; then
7190 # Profiling support.
7191 # Check whether --enable-profiling was given.
7192 if test "${enable_profiling+set}" = set; then :
7193 enableval
=$enable_profiling; case $enableval in
7197 as_fn_error $?
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
7204 for ac_func
in monstartup _mcleanup
7206 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7207 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7208 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7209 cat >>confdefs.h
<<_ACEOF
7210 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
7217 $as_echo_n "checking for _etext... " >&6; }
7218 if ${ac_cv_var__etext+:} false
; then :
7219 $as_echo_n "(cached) " >&6
7221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7222 /* end confdefs.h. */
7234 if ac_fn_c_try_link
"$LINENO"; then :
7235 ac_cv_var__etext
=yes
7240 rm -f core conftest.err conftest.
$ac_objext \
7241 conftest
$ac_exeext conftest.
$ac_ext
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
7245 $as_echo "$ac_cv_var__etext" >&6; }
7246 if test "$ac_cv_var__etext" = yes; then
7248 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
7252 $as_echo_n "checking for etext... " >&6; }
7253 if ${ac_cv_var_etext+:} false
; then :
7254 $as_echo_n "(cached) " >&6
7256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7257 /* end confdefs.h. */
7269 if ac_fn_c_try_link
"$LINENO"; then :
7275 rm -f core conftest.err conftest.
$ac_objext \
7276 conftest
$ac_exeext conftest.
$ac_ext
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
7280 $as_echo "$ac_cv_var_etext" >&6; }
7281 if test "$ac_cv_var_etext" = yes; then
7283 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
7286 if test "$enable_profiling" = yes ; then
7287 if test "$ac_cv_func_monstartup" = no ||
test "$ac_cv_func__mcleanup" = no
; then
7288 as_fn_error $?
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
7291 OLD_CFLAGS
="$CFLAGS"
7292 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
7295 $as_echo_n "checking whether $CC supports -pg... " >&6; }
7296 if ${ac_cv_cc_supports_pg+:} false
; then :
7297 $as_echo_n "(cached) " >&6
7299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7300 /* end confdefs.h. */
7310 if ac_fn_c_try_compile
"$LINENO"; then :
7311 ac_cv_cc_supports_pg
=yes
7313 ac_cv_cc_supports_pg
=no
7316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
7320 $as_echo "$ac_cv_cc_supports_pg" >&6; }
7322 if test "$ac_cv_cc_supports_pg" = no
; then
7323 as_fn_error $?
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
7326 CFLAGS
="$OLD_CFLAGS"
7330 # Check whether --enable-codesign was given.
7331 if test "${enable_codesign+set}" = set; then :
7332 enableval
=$enable_codesign; CODESIGN_CERT
=$enableval
7339 # Check whether --with-pkgversion was given.
7340 if test "${with_pkgversion+set}" = set; then :
7341 withval
=$with_pkgversion; case "$withval" in
7342 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
7344 *) PKGVERSION
="($withval) " ;;
7355 # Check whether --with-bugurl was given.
7356 if test "${with_bugurl+set}" = set; then :
7357 withval
=$with_bugurl; case "$withval" in
7358 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
7361 *) BUGURL
="$withval"
7365 BUGURL
="https://www.gnu.org/software/gdb/bugs/"
7375 REPORT_BUGS_TO
="<$BUGURL>"
7376 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7383 cat >>confdefs.h
<<_ACEOF
7384 #define PKGVERSION "$PKGVERSION"
7388 cat >>confdefs.h
<<_ACEOF
7389 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7393 # --------------------- #
7394 # Checks for programs. #
7395 # --------------------- #
7397 for ac_prog
in gawk mawk nawk
awk
7399 # Extract the first word of "$ac_prog", so it can be a program name with args.
7400 set dummy
$ac_prog; ac_word
=$2
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7402 $as_echo_n "checking for $ac_word... " >&6; }
7403 if ${ac_cv_prog_AWK+:} false
; then :
7404 $as_echo_n "(cached) " >&6
7406 if test -n "$AWK"; then
7407 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7409 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7413 test -z "$as_dir" && as_dir
=.
7414 for ac_exec_ext
in '' $ac_executable_extensions; do
7415 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7416 ac_cv_prog_AWK
="$ac_prog"
7417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7427 if test -n "$AWK"; then
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7429 $as_echo "$AWK" >&6; }
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7432 $as_echo "no" >&6; }
7436 test -n "$AWK" && break
7439 # Find a good install program. We prefer a C program (faster),
7440 # so one script is as good as another. But avoid the broken or
7441 # incompatible versions:
7442 # SysV /etc/install, /usr/sbin/install
7443 # SunOS /usr/etc/install
7444 # IRIX /sbin/install
7446 # AmigaOS /C/install, which installs bootblocks on floppy discs
7447 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7448 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7449 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7450 # OS/2's system install, which has a completely different semantic
7451 # ./install, which can be erroneously created by make from ./install.sh.
7452 # Reject install programs that cannot install multiple files.
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7454 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7455 if test -z "$INSTALL"; then
7456 if ${ac_cv_path_install+:} false
; then :
7457 $as_echo_n "(cached) " >&6
7459 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7463 test -z "$as_dir" && as_dir
=.
7464 # Account for people who put trailing slashes in PATH elements.
7465 case $as_dir/ in #((
7466 .
/ | .
// |
/[cC
]/* | \
7467 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7468 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
7471 # OSF1 and SCO ODT 3.0 have their own names for install.
7472 # Don't use installbsd from OSF since it installs stuff as root
7474 for ac_prog
in ginstall scoinst
install; do
7475 for ac_exec_ext
in '' $ac_executable_extensions; do
7476 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
7477 if test $ac_prog = install &&
7478 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7479 # AIX install. It has an incompatible calling convention.
7481 elif test $ac_prog = install &&
7482 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7483 # program-specific install script used by HP pwplus--don't use.
7486 rm -rf conftest.one conftest.two conftest.dir
7487 echo one
> conftest.one
7488 echo two
> conftest.two
7490 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
7491 test -s conftest.one
&& test -s conftest.two
&&
7492 test -s conftest.dir
/conftest.one
&&
7493 test -s conftest.dir
/conftest.two
7495 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7508 rm -rf conftest.one conftest.two conftest.dir
7511 if test "${ac_cv_path_install+set}" = set; then
7512 INSTALL
=$ac_cv_path_install
7514 # As a last resort, use the slow shell script. Don't cache a
7515 # value for INSTALL within a source directory, because that will
7516 # break other packages using the cache if that directory is
7517 # removed, or if the value is a relative name.
7518 INSTALL
=$ac_install_sh
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7522 $as_echo "$INSTALL" >&6; }
7524 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7525 # It thinks the first close brace ends the variable substitution.
7526 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7528 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7530 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7533 $as_echo_n "checking whether ln -s works... " >&6; }
7535 if test "$LN_S" = "ln -s"; then
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7537 $as_echo "yes" >&6; }
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7540 $as_echo "no, using $LN_S" >&6; }
7543 if test -n "$ac_tool_prefix"; then
7544 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7545 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7547 $as_echo_n "checking for $ac_word... " >&6; }
7548 if ${ac_cv_prog_RANLIB+:} false
; then :
7549 $as_echo_n "(cached) " >&6
7551 if test -n "$RANLIB"; then
7552 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7554 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7558 test -z "$as_dir" && as_dir
=.
7559 for ac_exec_ext
in '' $ac_executable_extensions; do
7560 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7561 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7571 RANLIB
=$ac_cv_prog_RANLIB
7572 if test -n "$RANLIB"; then
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7574 $as_echo "$RANLIB" >&6; }
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7577 $as_echo "no" >&6; }
7582 if test -z "$ac_cv_prog_RANLIB"; then
7583 ac_ct_RANLIB
=$RANLIB
7584 # Extract the first word of "ranlib", so it can be a program name with args.
7585 set dummy ranlib
; ac_word
=$2
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7587 $as_echo_n "checking for $ac_word... " >&6; }
7588 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
7589 $as_echo_n "(cached) " >&6
7591 if test -n "$ac_ct_RANLIB"; then
7592 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7594 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7598 test -z "$as_dir" && as_dir
=.
7599 for ac_exec_ext
in '' $ac_executable_extensions; do
7600 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7601 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7611 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7612 if test -n "$ac_ct_RANLIB"; then
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7614 $as_echo "$ac_ct_RANLIB" >&6; }
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7617 $as_echo "no" >&6; }
7620 if test "x$ac_ct_RANLIB" = x
; then
7623 case $cross_compiling:$ac_tool_warned in
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7627 ac_tool_warned
=yes ;;
7629 RANLIB
=$ac_ct_RANLIB
7632 RANLIB
="$ac_cv_prog_RANLIB"
7635 for ac_prog
in 'bison -y' byacc
7637 # Extract the first word of "$ac_prog", so it can be a program name with args.
7638 set dummy
$ac_prog; ac_word
=$2
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7640 $as_echo_n "checking for $ac_word... " >&6; }
7641 if ${ac_cv_prog_YACC+:} false
; then :
7642 $as_echo_n "(cached) " >&6
7644 if test -n "$YACC"; then
7645 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
7647 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7651 test -z "$as_dir" && as_dir
=.
7652 for ac_exec_ext
in '' $ac_executable_extensions; do
7653 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7654 ac_cv_prog_YACC
="$ac_prog"
7655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7664 YACC
=$ac_cv_prog_YACC
7665 if test -n "$YACC"; then
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7667 $as_echo "$YACC" >&6; }
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7670 $as_echo "no" >&6; }
7674 test -n "$YACC" && break
7676 test -n "$YACC" || YACC
="yacc"
7679 if test -n "$ac_tool_prefix"; then
7680 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7681 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7683 $as_echo_n "checking for $ac_word... " >&6; }
7684 if ${ac_cv_prog_AR+:} false
; then :
7685 $as_echo_n "(cached) " >&6
7687 if test -n "$AR"; then
7688 ac_cv_prog_AR
="$AR" # Let the user override the test.
7690 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7694 test -z "$as_dir" && as_dir
=.
7695 for ac_exec_ext
in '' $ac_executable_extensions; do
7696 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7697 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7708 if test -n "$AR"; then
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7710 $as_echo "$AR" >&6; }
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7713 $as_echo "no" >&6; }
7718 if test -z "$ac_cv_prog_AR"; then
7720 # Extract the first word of "ar", so it can be a program name with args.
7721 set dummy
ar; ac_word
=$2
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7723 $as_echo_n "checking for $ac_word... " >&6; }
7724 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
7725 $as_echo_n "(cached) " >&6
7727 if test -n "$ac_ct_AR"; then
7728 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7730 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7734 test -z "$as_dir" && as_dir
=.
7735 for ac_exec_ext
in '' $ac_executable_extensions; do
7736 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7737 ac_cv_prog_ac_ct_AR
="ar"
7738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7747 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7748 if test -n "$ac_ct_AR"; then
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7750 $as_echo "$ac_ct_AR" >&6; }
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753 $as_echo "no" >&6; }
7756 if test "x$ac_ct_AR" = x
; then
7759 case $cross_compiling:$ac_tool_warned in
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7763 ac_tool_warned
=yes ;;
7771 if test -n "$ac_tool_prefix"; then
7772 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7773 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7775 $as_echo_n "checking for $ac_word... " >&6; }
7776 if ${ac_cv_prog_DLLTOOL+:} false
; then :
7777 $as_echo_n "(cached) " >&6
7779 if test -n "$DLLTOOL"; then
7780 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
7782 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7786 test -z "$as_dir" && as_dir
=.
7787 for ac_exec_ext
in '' $ac_executable_extensions; do
7788 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7789 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
7790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7799 DLLTOOL
=$ac_cv_prog_DLLTOOL
7800 if test -n "$DLLTOOL"; then
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7802 $as_echo "$DLLTOOL" >&6; }
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805 $as_echo "no" >&6; }
7810 if test -z "$ac_cv_prog_DLLTOOL"; then
7811 ac_ct_DLLTOOL
=$DLLTOOL
7812 # Extract the first word of "dlltool", so it can be a program name with args.
7813 set dummy dlltool
; ac_word
=$2
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7815 $as_echo_n "checking for $ac_word... " >&6; }
7816 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
7817 $as_echo_n "(cached) " >&6
7819 if test -n "$ac_ct_DLLTOOL"; then
7820 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
7822 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7826 test -z "$as_dir" && as_dir
=.
7827 for ac_exec_ext
in '' $ac_executable_extensions; do
7828 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7829 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
7830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7839 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
7840 if test -n "$ac_ct_DLLTOOL"; then
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7842 $as_echo "$ac_ct_DLLTOOL" >&6; }
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845 $as_echo "no" >&6; }
7848 if test "x$ac_ct_DLLTOOL" = x
; then
7851 case $cross_compiling:$ac_tool_warned in
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7855 ac_tool_warned
=yes ;;
7857 DLLTOOL
=$ac_ct_DLLTOOL
7860 DLLTOOL
="$ac_cv_prog_DLLTOOL"
7863 if test -n "$ac_tool_prefix"; then
7864 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7865 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7867 $as_echo_n "checking for $ac_word... " >&6; }
7868 if ${ac_cv_prog_WINDRES+:} false
; then :
7869 $as_echo_n "(cached) " >&6
7871 if test -n "$WINDRES"; then
7872 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
7874 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7878 test -z "$as_dir" && as_dir
=.
7879 for ac_exec_ext
in '' $ac_executable_extensions; do
7880 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7881 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
7882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7891 WINDRES
=$ac_cv_prog_WINDRES
7892 if test -n "$WINDRES"; then
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7894 $as_echo "$WINDRES" >&6; }
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7897 $as_echo "no" >&6; }
7902 if test -z "$ac_cv_prog_WINDRES"; then
7903 ac_ct_WINDRES
=$WINDRES
7904 # Extract the first word of "windres", so it can be a program name with args.
7905 set dummy windres
; ac_word
=$2
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7907 $as_echo_n "checking for $ac_word... " >&6; }
7908 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
7909 $as_echo_n "(cached) " >&6
7911 if test -n "$ac_ct_WINDRES"; then
7912 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
7914 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7918 test -z "$as_dir" && as_dir
=.
7919 for ac_exec_ext
in '' $ac_executable_extensions; do
7920 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7921 ac_cv_prog_ac_ct_WINDRES
="windres"
7922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7931 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
7932 if test -n "$ac_ct_WINDRES"; then
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7934 $as_echo "$ac_ct_WINDRES" >&6; }
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7937 $as_echo "no" >&6; }
7940 if test "x$ac_ct_WINDRES" = x
; then
7943 case $cross_compiling:$ac_tool_warned in
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7947 ac_tool_warned
=yes ;;
7949 WINDRES
=$ac_ct_WINDRES
7952 WINDRES
="$ac_cv_prog_WINDRES"
7958 # Needed for GNU Hurd hosts.
7959 if test -n "$ac_tool_prefix"; then
7960 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7961 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7963 $as_echo_n "checking for $ac_word... " >&6; }
7964 if ${ac_cv_prog_MIG+:} false
; then :
7965 $as_echo_n "(cached) " >&6
7967 if test -n "$MIG"; then
7968 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
7970 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7974 test -z "$as_dir" && as_dir
=.
7975 for ac_exec_ext
in '' $ac_executable_extensions; do
7976 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7977 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
7978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7988 if test -n "$MIG"; then
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
7990 $as_echo "$MIG" >&6; }
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7993 $as_echo "no" >&6; }
7998 if test -z "$ac_cv_prog_MIG"; then
8000 # Extract the first word of "mig", so it can be a program name with args.
8001 set dummy mig
; ac_word
=$2
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8003 $as_echo_n "checking for $ac_word... " >&6; }
8004 if ${ac_cv_prog_ac_ct_MIG+:} false
; then :
8005 $as_echo_n "(cached) " >&6
8007 if test -n "$ac_ct_MIG"; then
8008 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
8010 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8014 test -z "$as_dir" && as_dir
=.
8015 for ac_exec_ext
in '' $ac_executable_extensions; do
8016 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8017 ac_cv_prog_ac_ct_MIG
="mig"
8018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8027 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
8028 if test -n "$ac_ct_MIG"; then
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
8030 $as_echo "$ac_ct_MIG" >&6; }
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8033 $as_echo "no" >&6; }
8036 if test "x$ac_ct_MIG" = x
; then
8039 case $cross_compiling:$ac_tool_warned in
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8043 ac_tool_warned
=yes ;;
8048 MIG
="$ac_cv_prog_MIG"
8051 if test x
"$MIG" = x
; then
8052 as_fn_error $?
"MIG not found but required for $host hosts" "$LINENO" 5
8057 # ---------------------- #
8058 # Checks for libraries. #
8059 # ---------------------- #
8061 # We might need to link with -lm; most simulators need it.
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
8063 $as_echo_n "checking for main in -lm... " >&6; }
8064 if ${ac_cv_lib_m_main+:} false
; then :
8065 $as_echo_n "(cached) " >&6
8067 ac_check_lib_save_LIBS
=$LIBS
8069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8070 /* end confdefs.h. */
8081 if ac_fn_c_try_link
"$LINENO"; then :
8082 ac_cv_lib_m_main
=yes
8086 rm -f core conftest.err conftest.
$ac_objext \
8087 conftest
$ac_exeext conftest.
$ac_ext
8088 LIBS
=$ac_check_lib_save_LIBS
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
8091 $as_echo "$ac_cv_lib_m_main" >&6; }
8092 if test "x$ac_cv_lib_m_main" = xyes
; then :
8093 cat >>confdefs.h
<<_ACEOF
8102 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
8104 $as_echo_n "checking for library containing gethostbyname... " >&6; }
8105 if ${ac_cv_search_gethostbyname+:} false
; then :
8106 $as_echo_n "(cached) " >&6
8108 ac_func_search_save_LIBS
=$LIBS
8109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8110 /* end confdefs.h. */
8112 /* Override any GCC internal prototype to avoid an error.
8113 Use char because int might match the return type of a GCC
8114 builtin and then its argument prototype would still apply. */
8118 char gethostbyname ();
8122 return gethostbyname ();
8127 for ac_lib
in '' nsl
; do
8128 if test -z "$ac_lib"; then
8129 ac_res
="none required"
8132 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8134 if ac_fn_c_try_link
"$LINENO"; then :
8135 ac_cv_search_gethostbyname
=$ac_res
8137 rm -f core conftest.err conftest.
$ac_objext \
8139 if ${ac_cv_search_gethostbyname+:} false
; then :
8143 if ${ac_cv_search_gethostbyname+:} false
; then :
8146 ac_cv_search_gethostbyname
=no
8149 LIBS
=$ac_func_search_save_LIBS
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
8152 $as_echo "$ac_cv_search_gethostbyname" >&6; }
8153 ac_res
=$ac_cv_search_gethostbyname
8154 if test "$ac_res" != no
; then :
8155 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8160 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
8162 $as_echo_n "checking for library containing socketpair... " >&6; }
8163 if ${ac_cv_search_socketpair+:} false
; then :
8164 $as_echo_n "(cached) " >&6
8166 ac_func_search_save_LIBS
=$LIBS
8167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8168 /* end confdefs.h. */
8170 /* Override any GCC internal prototype to avoid an error.
8171 Use char because int might match the return type of a GCC
8172 builtin and then its argument prototype would still apply. */
8180 return socketpair ();
8185 for ac_lib
in '' socket
; do
8186 if test -z "$ac_lib"; then
8187 ac_res
="none required"
8190 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8192 if ac_fn_c_try_link
"$LINENO"; then :
8193 ac_cv_search_socketpair
=$ac_res
8195 rm -f core conftest.err conftest.
$ac_objext \
8197 if ${ac_cv_search_socketpair+:} false
; then :
8201 if ${ac_cv_search_socketpair+:} false
; then :
8204 ac_cv_search_socketpair
=no
8207 LIBS
=$ac_func_search_save_LIBS
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
8210 $as_echo "$ac_cv_search_socketpair" >&6; }
8211 ac_res
=$ac_cv_search_socketpair
8212 if test "$ac_res" != no
; then :
8213 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8218 # Link in zlib if we can. This allows us to read compressed debug sections.
8220 # Use the system's zlib library.
8221 zlibdir
="-L\$(top_builddir)/../zlib"
8222 zlibinc
="-I\$(top_srcdir)/../zlib"
8224 # Check whether --with-system-zlib was given.
8225 if test "${with_system_zlib+set}" = set; then :
8226 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
8238 if test "X$prefix" = "XNONE"; then
8239 acl_final_prefix
="$ac_default_prefix"
8241 acl_final_prefix
="$prefix"
8243 if test "X$exec_prefix" = "XNONE"; then
8244 acl_final_exec_prefix
='${prefix}'
8246 acl_final_exec_prefix
="$exec_prefix"
8248 acl_save_prefix
="$prefix"
8249 prefix
="$acl_final_prefix"
8250 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8251 prefix
="$acl_save_prefix"
8254 # Check whether --with-gnu-ld was given.
8255 if test "${with_gnu_ld+set}" = set; then :
8256 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8261 # Prepare PATH_SEPARATOR.
8262 # The user is always right.
8263 if test "${PATH_SEPARATOR+set}" != set; then
8264 echo "#! /bin/sh" >conf$$.sh
8265 echo "exit 0" >>conf$$.sh
8267 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8275 if test "$GCC" = yes; then
8276 # Check if gcc -print-prog-name=ld gives a path.
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8278 $as_echo_n "checking for ld used by GCC... " >&6; }
8281 # gcc leaves a trailing carriage return which upsets mingw
8282 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8284 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8287 # Accept absolute paths.
8288 [\\/]* |
[A-Za-z
]:[\\/]*)
8289 re_direlt
='/[^/][^/]*/\.\./'
8290 # Canonicalize the path of ld
8291 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8292 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8293 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8295 test -z "$LD" && LD
="$ac_prog"
8298 # If it fails, then pretend we aren't using GCC.
8302 # If it is relative, then search for the first ld in PATH.
8306 elif test "$with_gnu_ld" = yes; then
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8308 $as_echo_n "checking for GNU ld... " >&6; }
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8311 $as_echo_n "checking for non-GNU ld... " >&6; }
8313 if ${acl_cv_path_LD+:} false
; then :
8314 $as_echo_n "(cached) " >&6
8316 if test -z "$LD"; then
8317 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8318 for ac_dir
in $PATH; do
8319 test -z "$ac_dir" && ac_dir
=.
8320 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8321 acl_cv_path_LD
="$ac_dir/$ac_prog"
8322 # Check to see if the program is GNU ld. I'd rather use --version,
8323 # but apparently some GNU ld's only accept -v.
8324 # Break only if it was the GNU/non-GNU ld that we prefer.
8325 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
8326 test "$with_gnu_ld" != no
&& break
8328 test "$with_gnu_ld" != yes && break
8334 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8338 LD
="$acl_cv_path_LD"
8339 if test -n "$LD"; then
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8341 $as_echo "$LD" >&6; }
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8344 $as_echo "no" >&6; }
8346 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8348 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8349 if ${acl_cv_prog_gnu_ld+:} false
; then :
8350 $as_echo_n "(cached) " >&6
8352 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8353 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8354 acl_cv_prog_gnu_ld
=yes
8356 acl_cv_prog_gnu_ld
=no
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8360 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8361 with_gnu_ld
=$acl_cv_prog_gnu_ld
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8366 $as_echo_n "checking for shared library run path origin... " >&6; }
8367 if ${acl_cv_rpath+:} false
; then :
8368 $as_echo_n "(cached) " >&6
8371 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8372 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8379 $as_echo "$acl_cv_rpath" >&6; }
8381 libext
="$acl_cv_libext"
8382 shlibext
="$acl_cv_shlibext"
8383 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8384 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8385 hardcode_direct
="$acl_cv_hardcode_direct"
8386 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8387 # Check whether --enable-rpath was given.
8388 if test "${enable_rpath+set}" = set; then :
8389 enableval
=$enable_rpath; :
8403 acl_save_prefix
="$prefix"
8404 prefix
="$acl_final_prefix"
8405 acl_save_exec_prefix
="$exec_prefix"
8406 exec_prefix
="$acl_final_exec_prefix"
8408 eval additional_includedir
=\"$includedir\"
8409 eval additional_libdir
=\"$libdir\"
8411 exec_prefix
="$acl_save_exec_prefix"
8412 prefix
="$acl_save_prefix"
8415 # Check whether --with-libiconv-prefix was given.
8416 if test "${with_libiconv_prefix+set}" = set; then :
8417 withval
=$with_libiconv_prefix;
8418 if test "X$withval" = "Xno"; then
8421 if test "X$withval" = "X"; then
8423 acl_save_prefix
="$prefix"
8424 prefix
="$acl_final_prefix"
8425 acl_save_exec_prefix
="$exec_prefix"
8426 exec_prefix
="$acl_final_exec_prefix"
8428 eval additional_includedir
=\"$includedir\"
8429 eval additional_libdir
=\"$libdir\"
8431 exec_prefix
="$acl_save_exec_prefix"
8432 prefix
="$acl_save_prefix"
8435 additional_includedir
="$withval/include"
8436 additional_libdir
="$withval/lib"
8443 # Check whether --with-libiconv-type was given.
8444 if test "${with_libiconv_type+set}" = set; then :
8445 withval
=$with_libiconv_type; with_libiconv_type
=$withval
8447 with_libiconv_type
=auto
8450 lib_type
=`eval echo \$with_libiconv_type`
8457 names_already_handled
=
8458 names_next_round
='iconv '
8459 while test -n "$names_next_round"; do
8460 names_this_round
="$names_next_round"
8462 for name
in $names_this_round; do
8464 for n
in $names_already_handled; do
8465 if test "$n" = "$name"; then
8470 if test -z "$already_handled"; then
8471 names_already_handled
="$names_already_handled $name"
8472 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8473 eval value
=\"\
$HAVE_LIB$uppername\"
8474 if test -n "$value"; then
8475 if test "$value" = yes; then
8476 eval value
=\"\
$LIB$uppername\"
8477 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
8478 eval value
=\"\
$LTLIB$uppername\"
8479 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
8488 if test $use_additional = yes; then
8489 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8490 found_dir
="$additional_libdir"
8491 found_so
="$additional_libdir/lib$name.$shlibext"
8492 if test -f "$additional_libdir/lib$name.la"; then
8493 found_la
="$additional_libdir/lib$name.la"
8495 elif test x
$lib_type != xshared
; then
8496 if test -f "$additional_libdir/lib$name.$libext"; then
8497 found_dir
="$additional_libdir"
8498 found_a
="$additional_libdir/lib$name.$libext"
8499 if test -f "$additional_libdir/lib$name.la"; then
8500 found_la
="$additional_libdir/lib$name.la"
8505 if test "X$found_dir" = "X"; then
8506 for x
in $LDFLAGS $LTLIBICONV; do
8508 acl_save_prefix
="$prefix"
8509 prefix
="$acl_final_prefix"
8510 acl_save_exec_prefix
="$exec_prefix"
8511 exec_prefix
="$acl_final_exec_prefix"
8513 exec_prefix
="$acl_save_exec_prefix"
8514 prefix
="$acl_save_prefix"
8518 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8519 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8521 found_so
="$dir/lib$name.$shlibext"
8522 if test -f "$dir/lib$name.la"; then
8523 found_la
="$dir/lib$name.la"
8525 elif test x
$lib_type != xshared
; then
8526 if test -f "$dir/lib$name.$libext"; then
8528 found_a
="$dir/lib$name.$libext"
8529 if test -f "$dir/lib$name.la"; then
8530 found_la
="$dir/lib$name.la"
8536 if test "X$found_dir" != "X"; then
8541 if test "X$found_dir" != "X"; then
8542 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8543 if test "X$found_so" != "X"; then
8544 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8545 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8548 for x
in $ltrpathdirs; do
8549 if test "X$x" = "X$found_dir"; then
8554 if test -z "$haveit"; then
8555 ltrpathdirs
="$ltrpathdirs $found_dir"
8557 if test "$hardcode_direct" = yes; then
8558 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8560 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8561 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8563 for x
in $rpathdirs; do
8564 if test "X$x" = "X$found_dir"; then
8569 if test -z "$haveit"; then
8570 rpathdirs
="$rpathdirs $found_dir"
8574 for x
in $LDFLAGS $LIBICONV; do
8576 acl_save_prefix
="$prefix"
8577 prefix
="$acl_final_prefix"
8578 acl_save_exec_prefix
="$exec_prefix"
8579 exec_prefix
="$acl_final_exec_prefix"
8581 exec_prefix
="$acl_save_exec_prefix"
8582 prefix
="$acl_save_prefix"
8584 if test "X$x" = "X-L$found_dir"; then
8589 if test -z "$haveit"; then
8590 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8592 if test "$hardcode_minus_L" != no
; then
8593 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8595 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8601 if test "X$found_a" != "X"; then
8602 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
8604 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8607 additional_includedir
=
8608 case "$found_dir" in
8610 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8611 additional_includedir
="$basedir/include"
8614 if test "X$additional_includedir" != "X"; then
8615 if test "X$additional_includedir" != "X/usr/include"; then
8617 if test "X$additional_includedir" = "X/usr/local/include"; then
8618 if test -n "$GCC"; then
8620 linux
*) haveit
=yes;;
8624 if test -z "$haveit"; then
8625 for x
in $CPPFLAGS $INCICONV; do
8627 acl_save_prefix
="$prefix"
8628 prefix
="$acl_final_prefix"
8629 acl_save_exec_prefix
="$exec_prefix"
8630 exec_prefix
="$acl_final_exec_prefix"
8632 exec_prefix
="$acl_save_exec_prefix"
8633 prefix
="$acl_save_prefix"
8635 if test "X$x" = "X-I$additional_includedir"; then
8640 if test -z "$haveit"; then
8641 if test -d "$additional_includedir"; then
8642 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8648 if test -n "$found_la"; then
8649 save_libdir
="$libdir"
8651 */* |
*\\*) .
"$found_la" ;;
8652 *) .
"./$found_la" ;;
8654 libdir
="$save_libdir"
8655 for dep
in $dependency_libs; do
8658 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8659 if test "X$additional_libdir" != "X/usr/lib"; then
8661 if test "X$additional_libdir" = "X/usr/local/lib"; then
8662 if test -n "$GCC"; then
8664 linux
*) haveit
=yes;;
8668 if test -z "$haveit"; then
8670 for x
in $LDFLAGS $LIBICONV; do
8672 acl_save_prefix
="$prefix"
8673 prefix
="$acl_final_prefix"
8674 acl_save_exec_prefix
="$exec_prefix"
8675 exec_prefix
="$acl_final_exec_prefix"
8677 exec_prefix
="$acl_save_exec_prefix"
8678 prefix
="$acl_save_prefix"
8680 if test "X$x" = "X-L$additional_libdir"; then
8685 if test -z "$haveit"; then
8686 if test -d "$additional_libdir"; then
8687 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8691 for x
in $LDFLAGS $LTLIBICONV; do
8693 acl_save_prefix
="$prefix"
8694 prefix
="$acl_final_prefix"
8695 acl_save_exec_prefix
="$exec_prefix"
8696 exec_prefix
="$acl_final_exec_prefix"
8698 exec_prefix
="$acl_save_exec_prefix"
8699 prefix
="$acl_save_prefix"
8701 if test "X$x" = "X-L$additional_libdir"; then
8706 if test -z "$haveit"; then
8707 if test -d "$additional_libdir"; then
8708 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8715 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8716 if test "$enable_rpath" != no
; then
8718 for x
in $rpathdirs; do
8719 if test "X$x" = "X$dir"; then
8724 if test -z "$haveit"; then
8725 rpathdirs
="$rpathdirs $dir"
8728 for x
in $ltrpathdirs; do
8729 if test "X$x" = "X$dir"; then
8734 if test -z "$haveit"; then
8735 ltrpathdirs
="$ltrpathdirs $dir"
8740 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8743 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8746 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
8747 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8753 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
8754 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8755 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8757 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
8758 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
8765 if test "X$rpathdirs" != "X"; then
8766 if test -n "$hardcode_libdir_separator"; then
8768 for found_dir
in $rpathdirs; do
8769 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8771 acl_save_libdir
="$libdir"
8773 eval flag
=\"$hardcode_libdir_flag_spec\"
8774 libdir
="$acl_save_libdir"
8775 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8777 for found_dir
in $rpathdirs; do
8778 acl_save_libdir
="$libdir"
8780 eval flag
=\"$hardcode_libdir_flag_spec\"
8781 libdir
="$acl_save_libdir"
8782 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8786 if test "X$ltrpathdirs" != "X"; then
8787 for found_dir
in $ltrpathdirs; do
8788 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8799 $as_echo_n "checking for iconv... " >&6; }
8800 if ${am_cv_func_iconv+:} false
; then :
8801 $as_echo_n "(cached) " >&6
8804 am_cv_func_iconv
="no, consider installing GNU libiconv"
8806 am_save_CPPFLAGS
="$CPPFLAGS"
8807 CPPFLAGS
="$CPPFLAGS $INCICONV"
8808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8809 /* end confdefs.h. */
8815 iconv_t cd = iconv_open("","");
8816 iconv(cd,NULL,NULL,NULL,NULL);
8822 if ac_fn_c_try_link
"$LINENO"; then :
8823 am_cv_func_iconv
=yes
8825 rm -f core conftest.err conftest.
$ac_objext \
8826 conftest
$ac_exeext conftest.
$ac_ext
8827 CPPFLAGS
="$am_save_CPPFLAGS"
8829 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
8830 for _libs
in .libs _libs
; do
8831 am_save_CPPFLAGS
="$CPPFLAGS"
8832 am_save_LIBS
="$LIBS"
8833 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
8834 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
8835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8836 /* end confdefs.h. */
8842 iconv_t cd = iconv_open("","");
8843 iconv(cd,NULL,NULL,NULL,NULL);
8849 if ac_fn_c_try_link
"$LINENO"; then :
8850 INCICONV
="-I../libiconv/include"
8851 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
8852 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
8854 am_cv_func_iconv
=yes
8856 rm -f core conftest.err conftest.
$ac_objext \
8857 conftest
$ac_exeext conftest.
$ac_ext
8858 CPPFLAGS
="$am_save_CPPFLAGS"
8859 LIBS
="$am_save_LIBS"
8860 if test "$am_cv_func_iconv" = "yes"; then
8866 if test "$am_cv_func_iconv" != yes; then
8867 am_save_CPPFLAGS
="$CPPFLAGS"
8868 am_save_LIBS
="$LIBS"
8869 CPPFLAGS
="$CPPFLAGS $INCICONV"
8870 LIBS
="$LIBS $LIBICONV"
8871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8872 /* end confdefs.h. */
8878 iconv_t cd = iconv_open("","");
8879 iconv(cd,NULL,NULL,NULL,NULL);
8885 if ac_fn_c_try_link
"$LINENO"; then :
8887 am_cv_func_iconv
=yes
8889 rm -f core conftest.err conftest.
$ac_objext \
8890 conftest
$ac_exeext conftest.
$ac_ext
8891 CPPFLAGS
="$am_save_CPPFLAGS"
8892 LIBS
="$am_save_LIBS"
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8897 $as_echo "$am_cv_func_iconv" >&6; }
8898 if test "$am_cv_func_iconv" = yes; then
8900 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8903 if test "$am_cv_lib_iconv" = yes; then
8905 for element
in $INCICONV; do
8907 for x
in $CPPFLAGS; do
8909 acl_save_prefix
="$prefix"
8910 prefix
="$acl_final_prefix"
8911 acl_save_exec_prefix
="$exec_prefix"
8912 exec_prefix
="$acl_final_exec_prefix"
8914 exec_prefix
="$acl_save_exec_prefix"
8915 prefix
="$acl_save_prefix"
8917 if test "X$x" = "X$element"; then
8922 if test -z "$haveit"; then
8923 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8928 $as_echo_n "checking how to link with libiconv... " >&6; }
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8930 $as_echo "$LIBICONV" >&6; }
8938 if test "$am_cv_func_iconv" = yes; then
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8940 $as_echo_n "checking for iconv declaration... " >&6; }
8941 if ${am_cv_proto_iconv+:} false
; then :
8942 $as_echo_n "(cached) " >&6
8945 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8946 /* end confdefs.h. */
8954 #if defined(__STDC__) || defined(__cplusplus)
8955 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8968 if ac_fn_c_try_compile
"$LINENO"; then :
8969 am_cv_proto_iconv_arg1
=""
8971 am_cv_proto_iconv_arg1
="const"
8973 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8974 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);"
8977 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8979 }$am_cv_proto_iconv" >&5
8981 }$am_cv_proto_iconv" >&6; }
8983 cat >>confdefs.h
<<_ACEOF
8984 #define ICONV_CONST $am_cv_proto_iconv_arg1
8990 # GDB may fork/exec the iconv program to get the list of supported character
8991 # sets. Allow the user to specify where to find it.
8992 # There are several factors affecting the choice of option name:
8993 # - There is already --with-libiconv-prefix but we can't use it, it specifies
8994 # the build-time location of libiconv files.
8995 # - The program we need to find is iconv, which comes with glibc. The user
8996 # doesn't necessarily have libiconv installed. Therefore naming this
8997 # --with-libiconv-foo feels wrong.
8998 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
8999 # defined to work on directories not files (though it really doesn't know
9001 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
9002 # with --with-libiconv-prefix.
9003 # Putting these together is why the option name is --with-iconv-bin.
9006 # Check whether --with-iconv-bin was given.
9007 if test "${with_iconv_bin+set}" = set; then :
9008 withval
=$with_iconv_bin; iconv_bin
="${withval}"
9010 cat >>confdefs.h
<<_ACEOF
9011 #define ICONV_BIN "${iconv_bin}"
9015 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9016 if test "x$prefix" = xNONE
; then
9017 test_prefix
=/usr
/local
9022 test_prefix
=$exec_prefix
9025 case ${iconv_bin} in
9026 "${test_prefix}"|
"${test_prefix}/"*|\
9027 '${exec_prefix}'|
'${exec_prefix}/'*)
9032 cat >>confdefs.h
<<_ACEOF
9033 #define ICONV_BIN_RELOCATABLE $value
9041 # For the TUI, we need enhanced curses functionality.
9042 if test x
"$enable_tui" != xno
; then
9047 if test x
"$prefer_curses" = xyes
; then
9048 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9049 # curses library because the latter might not provide all the
9050 # functionality we need. However, this leads to problems on systems
9051 # where the linker searches /usr/local/lib, but the compiler doesn't
9052 # search /usr/local/include, if ncurses is installed in /usr/local. A
9053 # default installation of ncurses on alpha*-dec-osf* will lead to such
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
9056 $as_echo_n "checking for library containing waddstr... " >&6; }
9057 if ${ac_cv_search_waddstr+:} false
; then :
9058 $as_echo_n "(cached) " >&6
9060 ac_func_search_save_LIBS
=$LIBS
9061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9062 /* end confdefs.h. */
9064 /* Override any GCC internal prototype to avoid an error.
9065 Use char because int might match the return type of a GCC
9066 builtin and then its argument prototype would still apply. */
9079 for ac_lib
in '' ncursesw ncurses cursesX curses
; do
9080 if test -z "$ac_lib"; then
9081 ac_res
="none required"
9084 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9086 if ac_fn_c_try_link
"$LINENO"; then :
9087 ac_cv_search_waddstr
=$ac_res
9089 rm -f core conftest.err conftest.
$ac_objext \
9091 if ${ac_cv_search_waddstr+:} false
; then :
9095 if ${ac_cv_search_waddstr+:} false
; then :
9098 ac_cv_search_waddstr
=no
9101 LIBS
=$ac_func_search_save_LIBS
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
9104 $as_echo "$ac_cv_search_waddstr" >&6; }
9105 ac_res
=$ac_cv_search_waddstr
9106 if test "$ac_res" != no
; then :
9107 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9112 if test "$ac_cv_search_waddstr" != no
; then
9117 # Check whether we should enable the TUI, but only do so if we really
9119 if test x
"$enable_tui" != xno
; then
9120 if test -d "$srcdir/tui"; then
9121 if test "$curses_found" != no
; then
9122 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
9123 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
9124 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9125 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
9127 if test x
"$enable_tui" = xyes
; then
9128 as_fn_error $?
"no enhanced curses library found; disable TUI" "$LINENO" 5
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
9131 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9137 # Since GDB uses Readline, we need termcap functionality. In many
9138 # cases this will be provided by the curses library, but some systems
9139 # have a separate termcap library, or no curses library at all.
9143 if test -d "$srcdir/libtermcap"; then
9144 LIBS
="../libtermcap/libtermcap.a $LIBS"
9145 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
9148 ac_cv_search_tgetent
="none required"
9152 # These are the libraries checked by Readline.
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9154 $as_echo_n "checking for library containing tgetent... " >&6; }
9155 if ${ac_cv_search_tgetent+:} false
; then :
9156 $as_echo_n "(cached) " >&6
9158 ac_func_search_save_LIBS
=$LIBS
9159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9160 /* end confdefs.h. */
9162 /* Override any GCC internal prototype to avoid an error.
9163 Use char because int might match the return type of a GCC
9164 builtin and then its argument prototype would still apply. */
9177 for ac_lib
in '' termcap tinfow tinfo curses ncursesw ncurses
; do
9178 if test -z "$ac_lib"; then
9179 ac_res
="none required"
9182 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9184 if ac_fn_c_try_link
"$LINENO"; then :
9185 ac_cv_search_tgetent
=$ac_res
9187 rm -f core conftest.err conftest.
$ac_objext \
9189 if ${ac_cv_search_tgetent+:} false
; then :
9193 if ${ac_cv_search_tgetent+:} false
; then :
9196 ac_cv_search_tgetent
=no
9199 LIBS
=$ac_func_search_save_LIBS
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9202 $as_echo "$ac_cv_search_tgetent" >&6; }
9203 ac_res
=$ac_cv_search_tgetent
9204 if test "$ac_res" != no
; then :
9205 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9210 if test "$ac_cv_search_tgetent" = no
; then
9211 CONFIG_OBS
="$CONFIG_OBS stub-termcap.o"
9215 # Check whether --with-system-readline was given.
9216 if test "${with_system_readline+set}" = set; then :
9217 withval
=$with_system_readline;
9221 if test "$with_system_readline" = yes; then
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system readline is new enough" >&5
9223 $as_echo_n "checking whether system readline is new enough... " >&6; }
9224 if ${gdb_cv_readline_ok+:} false
; then :
9225 $as_echo_n "(cached) " >&6
9227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9228 /* end confdefs.h. */
9230 #include <readline/readline.h>
9234 #if RL_VERSION_MAJOR < 7
9235 # error "readline version 7 required"
9242 if ac_fn_c_try_compile
"$LINENO"; then :
9243 gdb_cv_readline_ok
=yes
9245 gdb_cv_readline_ok
=no
9248 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_readline_ok" >&5
9252 $as_echo "$gdb_cv_readline_ok" >&6; }
9253 if test "$gdb_cv_readline_ok" != yes; then
9254 as_fn_error $?
"system readline is not new enough" "$LINENO" 5
9260 READLINE_TEXI_INCFLAG
=
9262 READLINE
='$(READLINE_DIR)/libreadline.a'
9263 READLINE_DEPS
='$(READLINE)'
9264 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
9265 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
9272 # Generate jit-reader.h
9274 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
9277 # The cast to long int works around a bug in the HP C Compiler
9278 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9279 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9280 # This bug is HP SR number 8606223364.
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
9282 $as_echo_n "checking size of unsigned long long... " >&6; }
9283 if ${ac_cv_sizeof_unsigned_long_long+:} false
; then :
9284 $as_echo_n "(cached) " >&6
9286 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
9289 if test "$ac_cv_type_unsigned_long_long" = yes; then
9290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9292 as_fn_error
77 "cannot compute sizeof (unsigned long long)
9293 See \`config.log' for more details" "$LINENO" 5; }
9295 ac_cv_sizeof_unsigned_long_long
=0
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
9301 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
9305 cat >>confdefs.h
<<_ACEOF
9306 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
9310 # The cast to long int works around a bug in the HP C Compiler
9311 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9312 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9313 # This bug is HP SR number 8606223364.
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
9315 $as_echo_n "checking size of unsigned long... " >&6; }
9316 if ${ac_cv_sizeof_unsigned_long+:} false
; then :
9317 $as_echo_n "(cached) " >&6
9319 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
9322 if test "$ac_cv_type_unsigned_long" = yes; then
9323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9325 as_fn_error
77 "cannot compute sizeof (unsigned long)
9326 See \`config.log' for more details" "$LINENO" 5; }
9328 ac_cv_sizeof_unsigned_long
=0
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
9334 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
9338 cat >>confdefs.h
<<_ACEOF
9339 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9343 # The cast to long int works around a bug in the HP C Compiler
9344 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9345 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9346 # This bug is HP SR number 8606223364.
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
9348 $as_echo_n "checking size of unsigned __int128... " >&6; }
9349 if ${ac_cv_sizeof_unsigned___int128+:} false
; then :
9350 $as_echo_n "(cached) " >&6
9352 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
9355 if test "$ac_cv_type_unsigned___int128" = yes; then
9356 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9358 as_fn_error
77 "cannot compute sizeof (unsigned __int128)
9359 See \`config.log' for more details" "$LINENO" 5; }
9361 ac_cv_sizeof_unsigned___int128
=0
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
9367 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
9371 cat >>confdefs.h
<<_ACEOF
9372 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
9377 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9378 TARGET_PTR
="unsigned long"
9379 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9380 TARGET_PTR
="unsigned long long"
9381 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
9382 TARGET_PTR
="unsigned __int128"
9384 TARGET_PTR
="unsigned long"
9388 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9392 $as_echo_n "checking for library containing dlopen... " >&6; }
9393 if ${ac_cv_search_dlopen+:} false
; then :
9394 $as_echo_n "(cached) " >&6
9396 ac_func_search_save_LIBS
=$LIBS
9397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9398 /* end confdefs.h. */
9400 /* Override any GCC internal prototype to avoid an error.
9401 Use char because int might match the return type of a GCC
9402 builtin and then its argument prototype would still apply. */
9415 for ac_lib
in '' dl
; do
9416 if test -z "$ac_lib"; then
9417 ac_res
="none required"
9420 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9422 if ac_fn_c_try_link
"$LINENO"; then :
9423 ac_cv_search_dlopen
=$ac_res
9425 rm -f core conftest.err conftest.
$ac_objext \
9427 if ${ac_cv_search_dlopen+:} false
; then :
9431 if ${ac_cv_search_dlopen+:} false
; then :
9434 ac_cv_search_dlopen
=no
9437 LIBS
=$ac_func_search_save_LIBS
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9440 $as_echo "$ac_cv_search_dlopen" >&6; }
9441 ac_res
=$ac_cv_search_dlopen
9442 if test "$ac_res" != no
; then :
9443 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9450 # Check whether --with-jit-reader-dir was given.
9451 if test "${with_jit_reader_dir+set}" = set; then :
9452 withval
=$with_jit_reader_dir;
9453 JIT_READER_DIR
=$withval
9455 JIT_READER_DIR
=${libdir}/gdb
9459 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9460 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9461 ac_define_dir
=`eval echo $JIT_READER_DIR`
9462 ac_define_dir
=`eval echo $ac_define_dir`
9464 cat >>confdefs.h
<<_ACEOF
9465 #define JIT_READER_DIR "$ac_define_dir"
9471 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9472 if test "x$prefix" = xNONE
; then
9473 test_prefix
=/usr
/local
9478 test_prefix
=$exec_prefix
9481 case ${ac_define_dir} in
9482 "${test_prefix}"|
"${test_prefix}/"*|\
9483 '${exec_prefix}'|
'${exec_prefix}/'*)
9488 cat >>confdefs.h
<<_ACEOF
9489 #define JIT_READER_DIR_RELOCATABLE $value
9496 # Check whether --with-expat was given.
9497 if test "${with_expat+set}" = set; then :
9498 withval
=$with_expat;
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9504 $as_echo_n "checking whether to use expat... " >&6; }
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9506 $as_echo "$with_expat" >&6; }
9508 if test "${with_expat}" = no
; then
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9510 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9523 acl_save_prefix
="$prefix"
9524 prefix
="$acl_final_prefix"
9525 acl_save_exec_prefix
="$exec_prefix"
9526 exec_prefix
="$acl_final_exec_prefix"
9528 eval additional_includedir
=\"$includedir\"
9529 eval additional_libdir
=\"$libdir\"
9531 exec_prefix
="$acl_save_exec_prefix"
9532 prefix
="$acl_save_prefix"
9535 # Check whether --with-libexpat-prefix was given.
9536 if test "${with_libexpat_prefix+set}" = set; then :
9537 withval
=$with_libexpat_prefix;
9538 if test "X$withval" = "Xno"; then
9541 if test "X$withval" = "X"; then
9543 acl_save_prefix
="$prefix"
9544 prefix
="$acl_final_prefix"
9545 acl_save_exec_prefix
="$exec_prefix"
9546 exec_prefix
="$acl_final_exec_prefix"
9548 eval additional_includedir
=\"$includedir\"
9549 eval additional_libdir
=\"$libdir\"
9551 exec_prefix
="$acl_save_exec_prefix"
9552 prefix
="$acl_save_prefix"
9555 additional_includedir
="$withval/include"
9556 additional_libdir
="$withval/lib"
9563 # Check whether --with-libexpat-type was given.
9564 if test "${with_libexpat_type+set}" = set; then :
9565 withval
=$with_libexpat_type; with_libexpat_type
=$withval
9567 with_libexpat_type
=auto
9570 lib_type
=`eval echo \$with_libexpat_type`
9577 names_already_handled
=
9578 names_next_round
='expat '
9579 while test -n "$names_next_round"; do
9580 names_this_round
="$names_next_round"
9582 for name
in $names_this_round; do
9584 for n
in $names_already_handled; do
9585 if test "$n" = "$name"; then
9590 if test -z "$already_handled"; then
9591 names_already_handled
="$names_already_handled $name"
9592 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9593 eval value
=\"\
$HAVE_LIB$uppername\"
9594 if test -n "$value"; then
9595 if test "$value" = yes; then
9596 eval value
=\"\
$LIB$uppername\"
9597 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
9598 eval value
=\"\
$LTLIB$uppername\"
9599 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
9608 if test $use_additional = yes; then
9609 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9610 found_dir
="$additional_libdir"
9611 found_so
="$additional_libdir/lib$name.$shlibext"
9612 if test -f "$additional_libdir/lib$name.la"; then
9613 found_la
="$additional_libdir/lib$name.la"
9615 elif test x
$lib_type != xshared
; then
9616 if test -f "$additional_libdir/lib$name.$libext"; then
9617 found_dir
="$additional_libdir"
9618 found_a
="$additional_libdir/lib$name.$libext"
9619 if test -f "$additional_libdir/lib$name.la"; then
9620 found_la
="$additional_libdir/lib$name.la"
9625 if test "X$found_dir" = "X"; then
9626 for x
in $LDFLAGS $LTLIBEXPAT; do
9628 acl_save_prefix
="$prefix"
9629 prefix
="$acl_final_prefix"
9630 acl_save_exec_prefix
="$exec_prefix"
9631 exec_prefix
="$acl_final_exec_prefix"
9633 exec_prefix
="$acl_save_exec_prefix"
9634 prefix
="$acl_save_prefix"
9638 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9639 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9641 found_so
="$dir/lib$name.$shlibext"
9642 if test -f "$dir/lib$name.la"; then
9643 found_la
="$dir/lib$name.la"
9645 elif test x
$lib_type != xshared
; then
9646 if test -f "$dir/lib$name.$libext"; then
9648 found_a
="$dir/lib$name.$libext"
9649 if test -f "$dir/lib$name.la"; then
9650 found_la
="$dir/lib$name.la"
9656 if test "X$found_dir" != "X"; then
9661 if test "X$found_dir" != "X"; then
9662 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
9663 if test "X$found_so" != "X"; then
9664 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9665 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9668 for x
in $ltrpathdirs; do
9669 if test "X$x" = "X$found_dir"; then
9674 if test -z "$haveit"; then
9675 ltrpathdirs
="$ltrpathdirs $found_dir"
9677 if test "$hardcode_direct" = yes; then
9678 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9680 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9681 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9683 for x
in $rpathdirs; do
9684 if test "X$x" = "X$found_dir"; then
9689 if test -z "$haveit"; then
9690 rpathdirs
="$rpathdirs $found_dir"
9694 for x
in $LDFLAGS $LIBEXPAT; do
9696 acl_save_prefix
="$prefix"
9697 prefix
="$acl_final_prefix"
9698 acl_save_exec_prefix
="$exec_prefix"
9699 exec_prefix
="$acl_final_exec_prefix"
9701 exec_prefix
="$acl_save_exec_prefix"
9702 prefix
="$acl_save_prefix"
9704 if test "X$x" = "X-L$found_dir"; then
9709 if test -z "$haveit"; then
9710 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
9712 if test "$hardcode_minus_L" != no
; then
9713 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9715 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9721 if test "X$found_a" != "X"; then
9722 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
9724 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
9727 additional_includedir
=
9728 case "$found_dir" in
9730 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9731 additional_includedir
="$basedir/include"
9734 if test "X$additional_includedir" != "X"; then
9735 if test "X$additional_includedir" != "X/usr/include"; then
9737 if test "X$additional_includedir" = "X/usr/local/include"; then
9738 if test -n "$GCC"; then
9740 linux
*) haveit
=yes;;
9744 if test -z "$haveit"; then
9745 for x
in $CPPFLAGS $INCEXPAT; do
9747 acl_save_prefix
="$prefix"
9748 prefix
="$acl_final_prefix"
9749 acl_save_exec_prefix
="$exec_prefix"
9750 exec_prefix
="$acl_final_exec_prefix"
9752 exec_prefix
="$acl_save_exec_prefix"
9753 prefix
="$acl_save_prefix"
9755 if test "X$x" = "X-I$additional_includedir"; then
9760 if test -z "$haveit"; then
9761 if test -d "$additional_includedir"; then
9762 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
9768 if test -n "$found_la"; then
9769 save_libdir
="$libdir"
9771 */* |
*\\*) .
"$found_la" ;;
9772 *) .
"./$found_la" ;;
9774 libdir
="$save_libdir"
9775 for dep
in $dependency_libs; do
9778 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9779 if test "X$additional_libdir" != "X/usr/lib"; then
9781 if test "X$additional_libdir" = "X/usr/local/lib"; then
9782 if test -n "$GCC"; then
9784 linux
*) haveit
=yes;;
9788 if test -z "$haveit"; then
9790 for x
in $LDFLAGS $LIBEXPAT; do
9792 acl_save_prefix
="$prefix"
9793 prefix
="$acl_final_prefix"
9794 acl_save_exec_prefix
="$exec_prefix"
9795 exec_prefix
="$acl_final_exec_prefix"
9797 exec_prefix
="$acl_save_exec_prefix"
9798 prefix
="$acl_save_prefix"
9800 if test "X$x" = "X-L$additional_libdir"; then
9805 if test -z "$haveit"; then
9806 if test -d "$additional_libdir"; then
9807 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
9811 for x
in $LDFLAGS $LTLIBEXPAT; do
9813 acl_save_prefix
="$prefix"
9814 prefix
="$acl_final_prefix"
9815 acl_save_exec_prefix
="$exec_prefix"
9816 exec_prefix
="$acl_final_exec_prefix"
9818 exec_prefix
="$acl_save_exec_prefix"
9819 prefix
="$acl_save_prefix"
9821 if test "X$x" = "X-L$additional_libdir"; then
9826 if test -z "$haveit"; then
9827 if test -d "$additional_libdir"; then
9828 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
9835 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9836 if test "$enable_rpath" != no
; then
9838 for x
in $rpathdirs; do
9839 if test "X$x" = "X$dir"; then
9844 if test -z "$haveit"; then
9845 rpathdirs
="$rpathdirs $dir"
9848 for x
in $ltrpathdirs; do
9849 if test "X$x" = "X$dir"; then
9854 if test -z "$haveit"; then
9855 ltrpathdirs
="$ltrpathdirs $dir"
9860 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9863 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9866 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
9867 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
9873 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
9874 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9875 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
9877 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l:lib$name.$libext"
9878 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l:lib$name.$libext"
9885 if test "X$rpathdirs" != "X"; then
9886 if test -n "$hardcode_libdir_separator"; then
9888 for found_dir
in $rpathdirs; do
9889 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9891 acl_save_libdir
="$libdir"
9893 eval flag
=\"$hardcode_libdir_flag_spec\"
9894 libdir
="$acl_save_libdir"
9895 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9897 for found_dir
in $rpathdirs; do
9898 acl_save_libdir
="$libdir"
9900 eval flag
=\"$hardcode_libdir_flag_spec\"
9901 libdir
="$acl_save_libdir"
9902 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9906 if test "X$ltrpathdirs" != "X"; then
9907 for found_dir
in $ltrpathdirs; do
9908 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9913 ac_save_CPPFLAGS
="$CPPFLAGS"
9915 for element
in $INCEXPAT; do
9917 for x
in $CPPFLAGS; do
9919 acl_save_prefix
="$prefix"
9920 prefix
="$acl_final_prefix"
9921 acl_save_exec_prefix
="$exec_prefix"
9922 exec_prefix
="$acl_final_exec_prefix"
9924 exec_prefix
="$acl_save_exec_prefix"
9925 prefix
="$acl_save_prefix"
9927 if test "X$x" = "X$element"; then
9932 if test -z "$haveit"; then
9933 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9939 $as_echo_n "checking for libexpat... " >&6; }
9940 if ${ac_cv_libexpat+:} false
; then :
9941 $as_echo_n "(cached) " >&6
9944 ac_save_LIBS
="$LIBS"
9945 LIBS
="$LIBS $LIBEXPAT"
9946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9947 /* end confdefs.h. */
9952 XML_Parser p = XML_ParserCreate (0);
9957 if ac_fn_c_try_link
"$LINENO"; then :
9962 rm -f core conftest.err conftest.
$ac_objext \
9963 conftest
$ac_exeext conftest.
$ac_ext
9964 LIBS
="$ac_save_LIBS"
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
9968 $as_echo "$ac_cv_libexpat" >&6; }
9969 if test "$ac_cv_libexpat" = yes; then
9972 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
9975 $as_echo_n "checking how to link with libexpat... " >&6; }
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
9977 $as_echo "$LIBEXPAT" >&6; }
9980 CPPFLAGS
="$ac_save_CPPFLAGS"
9990 if test "$HAVE_LIBEXPAT" != yes; then
9991 if test "$with_expat" = yes; then
9992 as_fn_error $?
"expat is missing or unusable" "$LINENO" 5
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
9995 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
9999 LIBS
="$LIBS $LIBEXPAT"
10000 for ac_func
in XML_StopParser
10002 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
10003 if test "x$ac_cv_func_XML_StopParser" = xyes
; then :
10004 cat >>confdefs.h
<<_ACEOF
10005 #define HAVE_XML_STOPPARSER 1
10015 # Verify that we have a usable GMP library.
10026 acl_save_prefix
="$prefix"
10027 prefix
="$acl_final_prefix"
10028 acl_save_exec_prefix
="$exec_prefix"
10029 exec_prefix
="$acl_final_exec_prefix"
10031 eval additional_includedir
=\"$includedir\"
10032 eval additional_libdir
=\"$libdir\"
10034 exec_prefix
="$acl_save_exec_prefix"
10035 prefix
="$acl_save_prefix"
10038 # Check whether --with-libgmp-prefix was given.
10039 if test "${with_libgmp_prefix+set}" = set; then :
10040 withval
=$with_libgmp_prefix;
10041 if test "X$withval" = "Xno"; then
10044 if test "X$withval" = "X"; then
10046 acl_save_prefix
="$prefix"
10047 prefix
="$acl_final_prefix"
10048 acl_save_exec_prefix
="$exec_prefix"
10049 exec_prefix
="$acl_final_exec_prefix"
10051 eval additional_includedir
=\"$includedir\"
10052 eval additional_libdir
=\"$libdir\"
10054 exec_prefix
="$acl_save_exec_prefix"
10055 prefix
="$acl_save_prefix"
10058 additional_includedir
="$withval/include"
10059 additional_libdir
="$withval/lib"
10066 # Check whether --with-libgmp-type was given.
10067 if test "${with_libgmp_type+set}" = set; then :
10068 withval
=$with_libgmp_type; with_libgmp_type
=$withval
10070 with_libgmp_type
=auto
10073 lib_type
=`eval echo \$with_libgmp_type`
10080 names_already_handled
=
10081 names_next_round
='gmp '
10082 while test -n "$names_next_round"; do
10083 names_this_round
="$names_next_round"
10085 for name
in $names_this_round; do
10087 for n
in $names_already_handled; do
10088 if test "$n" = "$name"; then
10089 already_handled
=yes
10093 if test -z "$already_handled"; then
10094 names_already_handled
="$names_already_handled $name"
10095 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10096 eval value
=\"\
$HAVE_LIB$uppername\"
10097 if test -n "$value"; then
10098 if test "$value" = yes; then
10099 eval value
=\"\
$LIB$uppername\"
10100 test -z "$value" || LIBGMP
="${LIBGMP}${LIBGMP:+ }$value"
10101 eval value
=\"\
$LTLIB$uppername\"
10102 test -z "$value" || LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }$value"
10111 if test $use_additional = yes; then
10112 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10113 found_dir
="$additional_libdir"
10114 found_so
="$additional_libdir/lib$name.$shlibext"
10115 if test -f "$additional_libdir/lib$name.la"; then
10116 found_la
="$additional_libdir/lib$name.la"
10118 elif test x
$lib_type != xshared
; then
10119 if test -f "$additional_libdir/lib$name.$libext"; then
10120 found_dir
="$additional_libdir"
10121 found_a
="$additional_libdir/lib$name.$libext"
10122 if test -f "$additional_libdir/lib$name.la"; then
10123 found_la
="$additional_libdir/lib$name.la"
10128 if test "X$found_dir" = "X"; then
10129 for x
in $LDFLAGS $LTLIBGMP; do
10131 acl_save_prefix
="$prefix"
10132 prefix
="$acl_final_prefix"
10133 acl_save_exec_prefix
="$exec_prefix"
10134 exec_prefix
="$acl_final_exec_prefix"
10136 exec_prefix
="$acl_save_exec_prefix"
10137 prefix
="$acl_save_prefix"
10141 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10142 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10144 found_so
="$dir/lib$name.$shlibext"
10145 if test -f "$dir/lib$name.la"; then
10146 found_la
="$dir/lib$name.la"
10148 elif test x
$lib_type != xshared
; then
10149 if test -f "$dir/lib$name.$libext"; then
10151 found_a
="$dir/lib$name.$libext"
10152 if test -f "$dir/lib$name.la"; then
10153 found_la
="$dir/lib$name.la"
10159 if test "X$found_dir" != "X"; then
10164 if test "X$found_dir" != "X"; then
10165 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }-L$found_dir -l$name"
10166 if test "X$found_so" != "X"; then
10167 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10168 LIBGMP
="${LIBGMP}${LIBGMP:+ }$found_so"
10171 for x
in $ltrpathdirs; do
10172 if test "X$x" = "X$found_dir"; then
10177 if test -z "$haveit"; then
10178 ltrpathdirs
="$ltrpathdirs $found_dir"
10180 if test "$hardcode_direct" = yes; then
10181 LIBGMP
="${LIBGMP}${LIBGMP:+ }$found_so"
10183 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10184 LIBGMP
="${LIBGMP}${LIBGMP:+ }$found_so"
10186 for x
in $rpathdirs; do
10187 if test "X$x" = "X$found_dir"; then
10192 if test -z "$haveit"; then
10193 rpathdirs
="$rpathdirs $found_dir"
10197 for x
in $LDFLAGS $LIBGMP; do
10199 acl_save_prefix
="$prefix"
10200 prefix
="$acl_final_prefix"
10201 acl_save_exec_prefix
="$exec_prefix"
10202 exec_prefix
="$acl_final_exec_prefix"
10204 exec_prefix
="$acl_save_exec_prefix"
10205 prefix
="$acl_save_prefix"
10207 if test "X$x" = "X-L$found_dir"; then
10212 if test -z "$haveit"; then
10213 LIBGMP
="${LIBGMP}${LIBGMP:+ }-L$found_dir"
10215 if test "$hardcode_minus_L" != no
; then
10216 LIBGMP
="${LIBGMP}${LIBGMP:+ }$found_so"
10218 LIBGMP
="${LIBGMP}${LIBGMP:+ }-l$name"
10224 if test "X$found_a" != "X"; then
10225 LIBGMP
="${LIBGMP}${LIBGMP:+ }$found_a"
10227 LIBGMP
="${LIBGMP}${LIBGMP:+ }-L$found_dir -l$name"
10230 additional_includedir
=
10231 case "$found_dir" in
10233 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10234 additional_includedir
="$basedir/include"
10237 if test "X$additional_includedir" != "X"; then
10238 if test "X$additional_includedir" != "X/usr/include"; then
10240 if test "X$additional_includedir" = "X/usr/local/include"; then
10241 if test -n "$GCC"; then
10243 linux
*) haveit
=yes;;
10247 if test -z "$haveit"; then
10248 for x
in $CPPFLAGS $INCGMP; do
10250 acl_save_prefix
="$prefix"
10251 prefix
="$acl_final_prefix"
10252 acl_save_exec_prefix
="$exec_prefix"
10253 exec_prefix
="$acl_final_exec_prefix"
10255 exec_prefix
="$acl_save_exec_prefix"
10256 prefix
="$acl_save_prefix"
10258 if test "X$x" = "X-I$additional_includedir"; then
10263 if test -z "$haveit"; then
10264 if test -d "$additional_includedir"; then
10265 INCGMP
="${INCGMP}${INCGMP:+ }-I$additional_includedir"
10271 if test -n "$found_la"; then
10272 save_libdir
="$libdir"
10273 case "$found_la" in
10274 */* |
*\\*) .
"$found_la" ;;
10275 *) .
"./$found_la" ;;
10277 libdir
="$save_libdir"
10278 for dep
in $dependency_libs; do
10281 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10282 if test "X$additional_libdir" != "X/usr/lib"; then
10284 if test "X$additional_libdir" = "X/usr/local/lib"; then
10285 if test -n "$GCC"; then
10287 linux
*) haveit
=yes;;
10291 if test -z "$haveit"; then
10293 for x
in $LDFLAGS $LIBGMP; do
10295 acl_save_prefix
="$prefix"
10296 prefix
="$acl_final_prefix"
10297 acl_save_exec_prefix
="$exec_prefix"
10298 exec_prefix
="$acl_final_exec_prefix"
10300 exec_prefix
="$acl_save_exec_prefix"
10301 prefix
="$acl_save_prefix"
10303 if test "X$x" = "X-L$additional_libdir"; then
10308 if test -z "$haveit"; then
10309 if test -d "$additional_libdir"; then
10310 LIBGMP
="${LIBGMP}${LIBGMP:+ }-L$additional_libdir"
10314 for x
in $LDFLAGS $LTLIBGMP; do
10316 acl_save_prefix
="$prefix"
10317 prefix
="$acl_final_prefix"
10318 acl_save_exec_prefix
="$exec_prefix"
10319 exec_prefix
="$acl_final_exec_prefix"
10321 exec_prefix
="$acl_save_exec_prefix"
10322 prefix
="$acl_save_prefix"
10324 if test "X$x" = "X-L$additional_libdir"; then
10329 if test -z "$haveit"; then
10330 if test -d "$additional_libdir"; then
10331 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }-L$additional_libdir"
10338 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10339 if test "$enable_rpath" != no
; then
10341 for x
in $rpathdirs; do
10342 if test "X$x" = "X$dir"; then
10347 if test -z "$haveit"; then
10348 rpathdirs
="$rpathdirs $dir"
10351 for x
in $ltrpathdirs; do
10352 if test "X$x" = "X$dir"; then
10357 if test -z "$haveit"; then
10358 ltrpathdirs
="$ltrpathdirs $dir"
10363 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10366 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10369 LIBGMP
="${LIBGMP}${LIBGMP:+ }$dep"
10370 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }$dep"
10376 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
10377 LIBGMP
="${LIBGMP}${LIBGMP:+ }-l$name"
10378 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }-l$name"
10380 LIBGMP
="${LIBGMP}${LIBGMP:+ }-l:lib$name.$libext"
10381 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }-l:lib$name.$libext"
10388 if test "X$rpathdirs" != "X"; then
10389 if test -n "$hardcode_libdir_separator"; then
10391 for found_dir
in $rpathdirs; do
10392 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10394 acl_save_libdir
="$libdir"
10396 eval flag
=\"$hardcode_libdir_flag_spec\"
10397 libdir
="$acl_save_libdir"
10398 LIBGMP
="${LIBGMP}${LIBGMP:+ }$flag"
10400 for found_dir
in $rpathdirs; do
10401 acl_save_libdir
="$libdir"
10402 libdir
="$found_dir"
10403 eval flag
=\"$hardcode_libdir_flag_spec\"
10404 libdir
="$acl_save_libdir"
10405 LIBGMP
="${LIBGMP}${LIBGMP:+ }$flag"
10409 if test "X$ltrpathdirs" != "X"; then
10410 for found_dir
in $ltrpathdirs; do
10411 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }-R$found_dir"
10416 ac_save_CPPFLAGS
="$CPPFLAGS"
10418 for element
in $INCGMP; do
10420 for x
in $CPPFLAGS; do
10422 acl_save_prefix
="$prefix"
10423 prefix
="$acl_final_prefix"
10424 acl_save_exec_prefix
="$exec_prefix"
10425 exec_prefix
="$acl_final_exec_prefix"
10427 exec_prefix
="$acl_save_exec_prefix"
10428 prefix
="$acl_save_prefix"
10430 if test "X$x" = "X$element"; then
10435 if test -z "$haveit"; then
10436 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgmp" >&5
10442 $as_echo_n "checking for libgmp... " >&6; }
10443 if ${ac_cv_libgmp+:} false
; then :
10444 $as_echo_n "(cached) " >&6
10447 ac_save_LIBS
="$LIBS"
10448 LIBS
="$LIBS $LIBGMP"
10449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10450 /* end confdefs.h. */
10461 if ac_fn_c_try_link
"$LINENO"; then :
10466 rm -f core conftest.err conftest.
$ac_objext \
10467 conftest
$ac_exeext conftest.
$ac_ext
10468 LIBS
="$ac_save_LIBS"
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgmp" >&5
10472 $as_echo "$ac_cv_libgmp" >&6; }
10473 if test "$ac_cv_libgmp" = yes; then
10476 $as_echo "#define HAVE_LIBGMP 1" >>confdefs.h
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libgmp" >&5
10479 $as_echo_n "checking how to link with libgmp... " >&6; }
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGMP" >&5
10481 $as_echo "$LIBGMP" >&6; }
10484 CPPFLAGS
="$ac_save_CPPFLAGS"
10494 if test "$HAVE_LIBGMP" != yes; then
10495 as_fn_error $?
"GMP is missing or unusable" "$LINENO" 5
10499 # Check whether --with-mpfr was given.
10500 if test "${with_mpfr+set}" = set; then :
10501 withval
=$with_mpfr;
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5
10507 $as_echo_n "checking whether to use MPFR... " >&6; }
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5
10509 $as_echo "$with_mpfr" >&6; }
10511 if test "${with_mpfr}" = no
; then
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5
10513 $as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;}
10526 acl_save_prefix
="$prefix"
10527 prefix
="$acl_final_prefix"
10528 acl_save_exec_prefix
="$exec_prefix"
10529 exec_prefix
="$acl_final_exec_prefix"
10531 eval additional_includedir
=\"$includedir\"
10532 eval additional_libdir
=\"$libdir\"
10534 exec_prefix
="$acl_save_exec_prefix"
10535 prefix
="$acl_save_prefix"
10538 # Check whether --with-libmpfr-prefix was given.
10539 if test "${with_libmpfr_prefix+set}" = set; then :
10540 withval
=$with_libmpfr_prefix;
10541 if test "X$withval" = "Xno"; then
10544 if test "X$withval" = "X"; then
10546 acl_save_prefix
="$prefix"
10547 prefix
="$acl_final_prefix"
10548 acl_save_exec_prefix
="$exec_prefix"
10549 exec_prefix
="$acl_final_exec_prefix"
10551 eval additional_includedir
=\"$includedir\"
10552 eval additional_libdir
=\"$libdir\"
10554 exec_prefix
="$acl_save_exec_prefix"
10555 prefix
="$acl_save_prefix"
10558 additional_includedir
="$withval/include"
10559 additional_libdir
="$withval/lib"
10566 # Check whether --with-libmpfr-type was given.
10567 if test "${with_libmpfr_type+set}" = set; then :
10568 withval
=$with_libmpfr_type; with_libmpfr_type
=$withval
10570 with_libmpfr_type
=auto
10573 lib_type
=`eval echo \$with_libmpfr_type`
10580 names_already_handled
=
10581 names_next_round
='mpfr gmp'
10582 while test -n "$names_next_round"; do
10583 names_this_round
="$names_next_round"
10585 for name
in $names_this_round; do
10587 for n
in $names_already_handled; do
10588 if test "$n" = "$name"; then
10589 already_handled
=yes
10593 if test -z "$already_handled"; then
10594 names_already_handled
="$names_already_handled $name"
10595 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10596 eval value
=\"\
$HAVE_LIB$uppername\"
10597 if test -n "$value"; then
10598 if test "$value" = yes; then
10599 eval value
=\"\
$LIB$uppername\"
10600 test -z "$value" || LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$value"
10601 eval value
=\"\
$LTLIB$uppername\"
10602 test -z "$value" || LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$value"
10611 if test $use_additional = yes; then
10612 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10613 found_dir
="$additional_libdir"
10614 found_so
="$additional_libdir/lib$name.$shlibext"
10615 if test -f "$additional_libdir/lib$name.la"; then
10616 found_la
="$additional_libdir/lib$name.la"
10618 elif test x
$lib_type != xshared
; then
10619 if test -f "$additional_libdir/lib$name.$libext"; then
10620 found_dir
="$additional_libdir"
10621 found_a
="$additional_libdir/lib$name.$libext"
10622 if test -f "$additional_libdir/lib$name.la"; then
10623 found_la
="$additional_libdir/lib$name.la"
10628 if test "X$found_dir" = "X"; then
10629 for x
in $LDFLAGS $LTLIBMPFR; do
10631 acl_save_prefix
="$prefix"
10632 prefix
="$acl_final_prefix"
10633 acl_save_exec_prefix
="$exec_prefix"
10634 exec_prefix
="$acl_final_exec_prefix"
10636 exec_prefix
="$acl_save_exec_prefix"
10637 prefix
="$acl_save_prefix"
10641 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10642 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10644 found_so
="$dir/lib$name.$shlibext"
10645 if test -f "$dir/lib$name.la"; then
10646 found_la
="$dir/lib$name.la"
10648 elif test x
$lib_type != xshared
; then
10649 if test -f "$dir/lib$name.$libext"; then
10651 found_a
="$dir/lib$name.$libext"
10652 if test -f "$dir/lib$name.la"; then
10653 found_la
="$dir/lib$name.la"
10659 if test "X$found_dir" != "X"; then
10664 if test "X$found_dir" != "X"; then
10665 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$found_dir -l$name"
10666 if test "X$found_so" != "X"; then
10667 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10668 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10671 for x
in $ltrpathdirs; do
10672 if test "X$x" = "X$found_dir"; then
10677 if test -z "$haveit"; then
10678 ltrpathdirs
="$ltrpathdirs $found_dir"
10680 if test "$hardcode_direct" = yes; then
10681 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10683 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10684 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10686 for x
in $rpathdirs; do
10687 if test "X$x" = "X$found_dir"; then
10692 if test -z "$haveit"; then
10693 rpathdirs
="$rpathdirs $found_dir"
10697 for x
in $LDFLAGS $LIBMPFR; do
10699 acl_save_prefix
="$prefix"
10700 prefix
="$acl_final_prefix"
10701 acl_save_exec_prefix
="$exec_prefix"
10702 exec_prefix
="$acl_final_exec_prefix"
10704 exec_prefix
="$acl_save_exec_prefix"
10705 prefix
="$acl_save_prefix"
10707 if test "X$x" = "X-L$found_dir"; then
10712 if test -z "$haveit"; then
10713 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir"
10715 if test "$hardcode_minus_L" != no
; then
10716 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10718 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10724 if test "X$found_a" != "X"; then
10725 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_a"
10727 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir -l$name"
10730 additional_includedir
=
10731 case "$found_dir" in
10733 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10734 additional_includedir
="$basedir/include"
10737 if test "X$additional_includedir" != "X"; then
10738 if test "X$additional_includedir" != "X/usr/include"; then
10740 if test "X$additional_includedir" = "X/usr/local/include"; then
10741 if test -n "$GCC"; then
10743 linux
*) haveit
=yes;;
10747 if test -z "$haveit"; then
10748 for x
in $CPPFLAGS $INCMPFR; do
10750 acl_save_prefix
="$prefix"
10751 prefix
="$acl_final_prefix"
10752 acl_save_exec_prefix
="$exec_prefix"
10753 exec_prefix
="$acl_final_exec_prefix"
10755 exec_prefix
="$acl_save_exec_prefix"
10756 prefix
="$acl_save_prefix"
10758 if test "X$x" = "X-I$additional_includedir"; then
10763 if test -z "$haveit"; then
10764 if test -d "$additional_includedir"; then
10765 INCMPFR
="${INCMPFR}${INCMPFR:+ }-I$additional_includedir"
10771 if test -n "$found_la"; then
10772 save_libdir
="$libdir"
10773 case "$found_la" in
10774 */* |
*\\*) .
"$found_la" ;;
10775 *) .
"./$found_la" ;;
10777 libdir
="$save_libdir"
10778 for dep
in $dependency_libs; do
10781 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10782 if test "X$additional_libdir" != "X/usr/lib"; then
10784 if test "X$additional_libdir" = "X/usr/local/lib"; then
10785 if test -n "$GCC"; then
10787 linux
*) haveit
=yes;;
10791 if test -z "$haveit"; then
10793 for x
in $LDFLAGS $LIBMPFR; do
10795 acl_save_prefix
="$prefix"
10796 prefix
="$acl_final_prefix"
10797 acl_save_exec_prefix
="$exec_prefix"
10798 exec_prefix
="$acl_final_exec_prefix"
10800 exec_prefix
="$acl_save_exec_prefix"
10801 prefix
="$acl_save_prefix"
10803 if test "X$x" = "X-L$additional_libdir"; then
10808 if test -z "$haveit"; then
10809 if test -d "$additional_libdir"; then
10810 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$additional_libdir"
10814 for x
in $LDFLAGS $LTLIBMPFR; do
10816 acl_save_prefix
="$prefix"
10817 prefix
="$acl_final_prefix"
10818 acl_save_exec_prefix
="$exec_prefix"
10819 exec_prefix
="$acl_final_exec_prefix"
10821 exec_prefix
="$acl_save_exec_prefix"
10822 prefix
="$acl_save_prefix"
10824 if test "X$x" = "X-L$additional_libdir"; then
10829 if test -z "$haveit"; then
10830 if test -d "$additional_libdir"; then
10831 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$additional_libdir"
10838 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10839 if test "$enable_rpath" != no
; then
10841 for x
in $rpathdirs; do
10842 if test "X$x" = "X$dir"; then
10847 if test -z "$haveit"; then
10848 rpathdirs
="$rpathdirs $dir"
10851 for x
in $ltrpathdirs; do
10852 if test "X$x" = "X$dir"; then
10857 if test -z "$haveit"; then
10858 ltrpathdirs
="$ltrpathdirs $dir"
10863 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10866 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10869 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$dep"
10870 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$dep"
10876 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
10877 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10878 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l$name"
10880 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l:lib$name.$libext"
10881 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l:lib$name.$libext"
10888 if test "X$rpathdirs" != "X"; then
10889 if test -n "$hardcode_libdir_separator"; then
10891 for found_dir
in $rpathdirs; do
10892 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10894 acl_save_libdir
="$libdir"
10896 eval flag
=\"$hardcode_libdir_flag_spec\"
10897 libdir
="$acl_save_libdir"
10898 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10900 for found_dir
in $rpathdirs; do
10901 acl_save_libdir
="$libdir"
10902 libdir
="$found_dir"
10903 eval flag
=\"$hardcode_libdir_flag_spec\"
10904 libdir
="$acl_save_libdir"
10905 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10909 if test "X$ltrpathdirs" != "X"; then
10910 for found_dir
in $ltrpathdirs; do
10911 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-R$found_dir"
10916 ac_save_CPPFLAGS
="$CPPFLAGS"
10918 for element
in $INCMPFR; do
10920 for x
in $CPPFLAGS; do
10922 acl_save_prefix
="$prefix"
10923 prefix
="$acl_final_prefix"
10924 acl_save_exec_prefix
="$exec_prefix"
10925 exec_prefix
="$acl_final_exec_prefix"
10927 exec_prefix
="$acl_save_exec_prefix"
10928 prefix
="$acl_save_prefix"
10930 if test "X$x" = "X$element"; then
10935 if test -z "$haveit"; then
10936 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpfr" >&5
10942 $as_echo_n "checking for libmpfr... " >&6; }
10943 if ${ac_cv_libmpfr+:} false
; then :
10944 $as_echo_n "(cached) " >&6
10947 ac_save_LIBS
="$LIBS"
10948 LIBS
="$LIBS $LIBMPFR"
10949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10950 /* end confdefs.h. */
10955 mpfr_exp_t exp; mpfr_t x;
10956 mpfr_frexp (&exp, x, x, MPFR_RNDN);
10961 if ac_fn_c_try_link
"$LINENO"; then :
10966 rm -f core conftest.err conftest.
$ac_objext \
10967 conftest
$ac_exeext conftest.
$ac_ext
10968 LIBS
="$ac_save_LIBS"
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmpfr" >&5
10972 $as_echo "$ac_cv_libmpfr" >&6; }
10973 if test "$ac_cv_libmpfr" = yes; then
10976 $as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libmpfr" >&5
10979 $as_echo_n "checking how to link with libmpfr... " >&6; }
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPFR" >&5
10981 $as_echo "$LIBMPFR" >&6; }
10984 CPPFLAGS
="$ac_save_CPPFLAGS"
10994 if test "$HAVE_LIBMPFR" != yes; then
10995 if test "$with_mpfr" = yes; then
10996 as_fn_error $?
"MPFR is missing or unusable" "$LINENO" 5
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR is missing or unusable; some features may be unavailable." >&5
10999 $as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;}
11004 # --------------------- #
11005 # Check for libpython. #
11006 # --------------------- #
11013 # Check whether --with-python was given.
11014 if test "${with_python+set}" = set; then :
11015 withval
=$with_python;
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
11021 $as_echo_n "checking whether to use python... " >&6; }
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
11023 $as_echo "$with_python" >&6; }
11025 if test "${with_python}" = no
; then
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
11027 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
11030 case "${with_python}" in
11032 if test -d "${with_python}"; then
11033 # Assume the python binary is ${with_python}/bin/python.
11034 python_prog
="${with_python}/bin/python"
11036 # If python does not exit ${with_python}/bin, then try in
11037 # ${with_python}. On Windows/MinGW, this is where the Python
11039 if test ! -x "${python_prog}"; then
11040 python_prog
="${with_python}/python"
11043 if test ! -x "${python_prog}"; then
11044 # Fall back to gdb 7.0/7.1 behaviour.
11045 python_prog
=missing
11046 python_prefix
=${with_python}
11048 elif test -x "${with_python}"; then
11049 # While we can't run python compiled for $host (unless host == build),
11050 # the user could write a script that provides the needed information,
11051 # so we support that.
11052 python_prog
=${with_python}
11055 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
11059 # Disallow --with-python=foo/bar.
11060 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
11063 # The user has either specified auto, yes, or the name of the python
11064 # program assumed to be in $PATH.
11066 case "${with_python}" in
11068 if test "${build}" = "${host}"; then
11069 # Extract the first word of "python", so it can be a program name with args.
11070 set dummy python
; ac_word
=$2
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11072 $as_echo_n "checking for $ac_word... " >&6; }
11073 if ${ac_cv_path_python_prog_path+:} false
; then :
11074 $as_echo_n "(cached) " >&6
11076 case $python_prog_path in
11078 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
11081 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11082 for as_dir
in $PATH
11085 test -z "$as_dir" && as_dir
=.
11086 for ac_exec_ext
in '' $ac_executable_extensions; do
11087 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11088 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
11089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11096 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
11100 python_prog_path
=$ac_cv_path_python_prog_path
11101 if test -n "$python_prog_path"; then
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
11103 $as_echo "$python_prog_path" >&6; }
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11106 $as_echo "no" >&6; }
11110 if test "${python_prog_path}" = missing
; then
11111 python_prog
=missing
11113 python_prog
=${python_prog_path}
11116 # Not much we can do except assume the cross-compiler will find the
11118 python_prog
=missing
11122 # While we can't run python compiled for $host (unless host == build),
11123 # the user could write a script that provides the needed information,
11124 # so we support that.
11125 python_prog
="${with_python}"
11126 # Extract the first word of "${python_prog}", so it can be a program name with args.
11127 set dummy
${python_prog}; ac_word
=$2
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11129 $as_echo_n "checking for $ac_word... " >&6; }
11130 if ${ac_cv_path_python_prog_path+:} false
; then :
11131 $as_echo_n "(cached) " >&6
11133 case $python_prog_path in
11135 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
11138 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11139 for as_dir
in $PATH
11142 test -z "$as_dir" && as_dir
=.
11143 for ac_exec_ext
in '' $ac_executable_extensions; do
11144 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11145 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
11146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11153 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
11157 python_prog_path
=$ac_cv_path_python_prog_path
11158 if test -n "$python_prog_path"; then
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
11160 $as_echo "$python_prog_path" >&6; }
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11163 $as_echo "no" >&6; }
11167 if test "${python_prog_path}" = missing
; then
11168 as_fn_error $?
"unable to find python program ${python_prog}" "$LINENO" 5
11174 if test "${python_prog}" != missing
; then
11175 # We have a python program to use, but it may be too old.
11176 # Don't flag an error for --with-python=auto (the default).
11177 have_python_config
=yes
11178 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
11179 if test $?
!= 0; then
11180 have_python_config
=failed
11181 if test "${with_python}" != auto
; then
11182 as_fn_error $?
"failure running python-config --includes" "$LINENO" 5
11185 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
11186 if test $?
!= 0; then
11187 have_python_config
=failed
11188 if test "${with_python}" != auto
; then
11189 as_fn_error $?
"failure running python-config --ldflags" "$LINENO" 5
11192 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
11193 if test $?
!= 0; then
11194 have_python_config
=failed
11195 if test "${with_python}" != auto
; then
11196 as_fn_error $?
"failure running python-config --exec-prefix" "$LINENO" 5
11200 # We do not have a python executable we can use to determine where
11201 # to find the Python headers and libs. We cannot guess the include
11202 # path from the python_prefix either, because that include path
11203 # depends on the Python version. So, there is nothing much we can
11204 # do except assume that the compiler will be able to find those files.
11207 have_python_config
=no
11210 # If we have python-config, only try the configuration it provides.
11211 # Otherwise fallback on the old way of trying different versions of
11215 if test "${have_python_config}" = yes; then
11218 new_CPPFLAGS
=${python_includes}
11219 new_LIBS
=${python_libs}
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
11221 $as_echo_n "checking for python... " >&6; }
11222 save_CPPFLAGS
=$CPPFLAGS
11224 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11225 LIBS
="$new_LIBS $LIBS"
11226 found_usable_python
=no
11227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11228 /* end confdefs.h. */
11229 #include "Python.h"
11238 if ac_fn_c_try_link
"$LINENO"; then :
11240 found_usable_python
=yes
11241 PYTHON_CPPFLAGS
=$new_CPPFLAGS
11242 PYTHON_LIBS
=$new_LIBS
11244 rm -f core conftest.err conftest.
$ac_objext \
11245 conftest
$ac_exeext conftest.
$ac_ext
11246 CPPFLAGS
=$save_CPPFLAGS
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11249 $as_echo "${found_usable_python}" >&6; }
11251 elif test "${have_python_config}" != failed
; then
11252 if test "${have_libpython}" = no
; then
11255 new_CPPFLAGS
=${python_includes}
11256 new_LIBS
="-lpython2.7 ${python_libs}"
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
11258 $as_echo_n "checking for python... " >&6; }
11259 save_CPPFLAGS
=$CPPFLAGS
11261 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11262 LIBS
="$new_LIBS $LIBS"
11263 found_usable_python
=no
11264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11265 /* end confdefs.h. */
11266 #include "Python.h"
11275 if ac_fn_c_try_link
"$LINENO"; then :
11277 found_usable_python
=yes
11278 PYTHON_CPPFLAGS
=$new_CPPFLAGS
11279 PYTHON_LIBS
=$new_LIBS
11281 rm -f core conftest.err conftest.
$ac_objext \
11282 conftest
$ac_exeext conftest.
$ac_ext
11283 CPPFLAGS
=$save_CPPFLAGS
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11286 $as_echo "${found_usable_python}" >&6; }
11289 if test "${have_libpython}" = no
; then
11292 new_CPPFLAGS
=${python_includes}
11293 new_LIBS
="-lpython2.6 ${python_libs}"
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
11295 $as_echo_n "checking for python... " >&6; }
11296 save_CPPFLAGS
=$CPPFLAGS
11298 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11299 LIBS
="$new_LIBS $LIBS"
11300 found_usable_python
=no
11301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11302 /* end confdefs.h. */
11303 #include "Python.h"
11312 if ac_fn_c_try_link
"$LINENO"; then :
11314 found_usable_python
=yes
11315 PYTHON_CPPFLAGS
=$new_CPPFLAGS
11316 PYTHON_LIBS
=$new_LIBS
11318 rm -f core conftest.err conftest.
$ac_objext \
11319 conftest
$ac_exeext conftest.
$ac_ext
11320 CPPFLAGS
=$save_CPPFLAGS
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11323 $as_echo "${found_usable_python}" >&6; }
11328 if test "${have_libpython}" = no
; then
11329 case "${with_python}" in
11331 as_fn_error $?
"python is missing or unusable" "$LINENO" 5
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
11335 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
11338 as_fn_error $?
"no usable python found at ${with_python}" "$LINENO" 5
11342 if test -n "${python_prefix}"; then
11344 cat >>confdefs.h
<<_ACEOF
11345 #define WITH_PYTHON_PATH "${python_prefix}"
11349 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
11350 if test "x$prefix" = xNONE
; then
11351 test_prefix
=/usr
/local
11353 test_prefix
=$prefix
11356 test_prefix
=$exec_prefix
11359 case ${python_prefix} in
11360 "${test_prefix}"|
"${test_prefix}/"*|\
11361 '${exec_prefix}'|
'${exec_prefix}/'*)
11366 cat >>confdefs.h
<<_ACEOF
11367 #define PYTHON_PATH_RELOCATABLE $value
11376 # Check whether --with-python-libdir was given.
11377 if test "${with_python_libdir+set}" = set; then :
11378 withval
=$with_python_libdir;
11381 # If no python libdir is specified then select one based on
11382 # python's prefix path.
11383 if test -n "${python_prefix}"; then
11384 with_python_libdir
=${python_prefix}/lib
11390 if test "${have_libpython}" != no
; then
11392 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
11394 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
11395 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
11396 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
11397 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
11398 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
11400 if test -n "${with_python_libdir}"; then
11402 cat >>confdefs.h
<<_ACEOF
11403 #define WITH_PYTHON_LIBDIR "${with_python_libdir}"
11407 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
11408 if test "x$prefix" = xNONE
; then
11409 test_prefix
=/usr
/local
11411 test_prefix
=$prefix
11414 test_prefix
=$exec_prefix
11417 case ${with_python_libdir} in
11418 "${test_prefix}"|
"${test_prefix}/"*|\
11419 '${exec_prefix}'|
'${exec_prefix}/'*)
11424 cat >>confdefs.h
<<_ACEOF
11425 #define PYTHON_LIBDIR_RELOCATABLE $value
11431 # Flags needed to compile Python code (taken from python-config --cflags).
11432 # We cannot call python-config directly because it will output whatever was
11433 # used when compiling the Python interpreter itself, including flags which
11434 # would make the python-related objects be compiled differently from the
11435 # rest of GDB (e.g., -O2 and -fPIC).
11436 if test "${GCC}" = yes; then
11437 tentative_python_cflags
="-fno-strict-aliasing -fwrapv"
11438 # Python headers recommend -DNDEBUG, but it's unclear if that just
11439 # refers to building Python itself. In release mode, though, it
11440 # doesn't hurt for the Python code in gdb to follow.
11441 $development || tentative_python_cflags
="$tentative_python_cflags -DNDEBUG"
11444 if test "x${tentative_python_cflags}" != x
; then
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
11446 $as_echo_n "checking compiler flags for python code... " >&6; }
11447 for flag
in ${tentative_python_cflags}; do
11448 # Check that the compiler accepts it
11449 saved_CFLAGS
="$CFLAGS"
11450 CFLAGS
="$CFLAGS $flag"
11451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11452 /* end confdefs.h. */
11462 if ac_fn_c_try_compile
"$LINENO"; then :
11463 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
11465 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11466 CFLAGS
="$saved_CFLAGS"
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
11469 $as_echo "${PYTHON_CFLAGS}" >&6; }
11472 # On x64 Windows, Python's include headers, and pyconfig.h in
11473 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
11474 # version of Windows. Unfortunately, MS_WIN64 is only defined if
11475 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
11476 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
11477 # The issue was reported to the Python community, but still isn't
11478 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
11480 case "$gdb_host" in
11482 if test "${GCC}" = yes; then
11483 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
11488 # Even if Python support is not compiled in, we need to have this file
11489 # included so that the "python" command, et.al., still exists.
11490 CONFIG_OBS
="$CONFIG_OBS python/python.o"
11491 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
11494 # Work around Python http://bugs.python.org/issue10112. See also
11495 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
11496 # no effect. Note that the only test after this that uses Python is
11497 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
11498 # run without -export-dynamic too.
11499 PYTHON_LIBS
=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
11504 if test "${have_libpython}" != no
; then
11506 HAVE_PYTHON_FALSE
='#'
11508 HAVE_PYTHON_TRUE
='#'
11513 # -------------------- #
11514 # Check for libguile. #
11515 # -------------------- #
11522 # Check whether --with-guile was given.
11523 if test "${with_guile+set}" = set; then :
11524 withval
=$with_guile;
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
11530 $as_echo_n "checking whether to use guile... " >&6; }
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
11532 $as_echo "$with_guile" >&6; }
11534 # Extract the first word of "pkg-config", so it can be a program name with args.
11535 set dummy pkg-config
; ac_word
=$2
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11537 $as_echo_n "checking for $ac_word... " >&6; }
11538 if ${ac_cv_path_pkg_config_prog_path+:} false
; then :
11539 $as_echo_n "(cached) " >&6
11541 case $pkg_config_prog_path in
11543 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
11546 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11547 for as_dir
in $PATH
11550 test -z "$as_dir" && as_dir
=.
11551 for ac_exec_ext
in '' $ac_executable_extensions; do
11552 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11553 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
11554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11561 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
11565 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
11566 if test -n "$pkg_config_prog_path"; then
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
11568 $as_echo "$pkg_config_prog_path" >&6; }
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11571 $as_echo "no" >&6; }
11576 try_guile_versions
="guile-3.0 guile-2.2 guile-2.0"
11578 case "${with_guile}" in
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
11581 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
11584 if test "${pkg_config_prog_path}" = "missing"; then
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
11586 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
11589 pkg_config
=${pkg_config_prog_path}
11590 guile_version_list
=${try_guile_versions}
11593 found_usable_guile
=checking
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11595 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11596 for guile_version
in ${guile_version_list}; do
11597 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11598 if test $?
!= 0; then
11601 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11602 if test $?
!= 0; then
11603 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11605 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11606 if test $?
!= 0; then
11607 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11609 found_usable_guile
=${guile_version}
11612 if test "${found_usable_guile}" = "checking"; then
11613 if test "${flag_errors}" = "yes"; then
11614 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11616 found_usable_guile
=no
11619 if test "${found_usable_guile}" != no
; then
11620 save_CPPFLAGS
=$CPPFLAGS
11622 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11623 LIBS
="$LIBS $new_LIBS"
11624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11625 /* end confdefs.h. */
11626 #include "libguile.h"
11635 if ac_fn_c_try_link
"$LINENO"; then :
11637 GUILE_CPPFLAGS
=$new_CPPFLAGS
11638 GUILE_LIBS
=$new_LIBS
11640 found_usable_guile
=no
11642 rm -f core conftest.err conftest.
$ac_objext \
11643 conftest
$ac_exeext conftest.
$ac_ext
11644 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11645 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11647 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11652 CPPFLAGS
=$save_CPPFLAGS
11654 if test "${found_usable_guile}" = no
; then
11655 if test "${flag_errors}" = yes; then
11656 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11658 as_fn_error $?
"linking guile version ${guile_version} test program failed
11659 See \`config.log' for more details" "$LINENO" 5; }
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11664 $as_echo "${found_usable_guile}" >&6; }
11669 if test "${pkg_config_prog_path}" = "missing"; then
11670 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11673 pkg_config
=${pkg_config_prog_path}
11674 guile_version_list
=${try_guile_versions}
11677 found_usable_guile
=checking
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11679 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11680 for guile_version
in ${guile_version_list}; do
11681 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11682 if test $?
!= 0; then
11685 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11686 if test $?
!= 0; then
11687 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11689 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11690 if test $?
!= 0; then
11691 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11693 found_usable_guile
=${guile_version}
11696 if test "${found_usable_guile}" = "checking"; then
11697 if test "${flag_errors}" = "yes"; then
11698 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11700 found_usable_guile
=no
11703 if test "${found_usable_guile}" != no
; then
11704 save_CPPFLAGS
=$CPPFLAGS
11706 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11707 LIBS
="$LIBS $new_LIBS"
11708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11709 /* end confdefs.h. */
11710 #include "libguile.h"
11719 if ac_fn_c_try_link
"$LINENO"; then :
11721 GUILE_CPPFLAGS
=$new_CPPFLAGS
11722 GUILE_LIBS
=$new_LIBS
11724 found_usable_guile
=no
11726 rm -f core conftest.err conftest.
$ac_objext \
11727 conftest
$ac_exeext conftest.
$ac_ext
11728 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11729 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11731 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11736 CPPFLAGS
=$save_CPPFLAGS
11738 if test "${found_usable_guile}" = no
; then
11739 if test "${flag_errors}" = yes; then
11740 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11742 as_fn_error $?
"linking guile version ${guile_version} test program failed
11743 See \`config.log' for more details" "$LINENO" 5; }
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11748 $as_echo "${found_usable_guile}" >&6; }
11752 if test -x "${with_guile}"; then
11754 pkg_config
=${with_guile}
11755 guile_version_list
=${try_guile_versions}
11758 found_usable_guile
=checking
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11760 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11761 for guile_version
in ${guile_version_list}; do
11762 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11763 if test $?
!= 0; then
11766 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11767 if test $?
!= 0; then
11768 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11770 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11771 if test $?
!= 0; then
11772 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11774 found_usable_guile
=${guile_version}
11777 if test "${found_usable_guile}" = "checking"; then
11778 if test "${flag_errors}" = "yes"; then
11779 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11781 found_usable_guile
=no
11784 if test "${found_usable_guile}" != no
; then
11785 save_CPPFLAGS
=$CPPFLAGS
11787 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11788 LIBS
="$LIBS $new_LIBS"
11789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11790 /* end confdefs.h. */
11791 #include "libguile.h"
11800 if ac_fn_c_try_link
"$LINENO"; then :
11802 GUILE_CPPFLAGS
=$new_CPPFLAGS
11803 GUILE_LIBS
=$new_LIBS
11805 found_usable_guile
=no
11807 rm -f core conftest.err conftest.
$ac_objext \
11808 conftest
$ac_exeext conftest.
$ac_ext
11809 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11810 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11812 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11817 CPPFLAGS
=$save_CPPFLAGS
11819 if test "${found_usable_guile}" = no
; then
11820 if test "${flag_errors}" = yes; then
11821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11822 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11823 as_fn_error $?
"linking guile version ${guile_version} test program failed
11824 See \`config.log' for more details" "$LINENO" 5; }
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11829 $as_echo "${found_usable_guile}" >&6; }
11832 as_fn_error $?
"Guile config program not executable: ${with_guile}" "$LINENO" 5
11836 # Disallow --with=guile="" and --with-guile=foo/bar.
11837 as_fn_error $?
"invalid value for --with-guile" "$LINENO" 5
11840 # A space separate list of guile versions to try, in order.
11841 if test "${pkg_config_prog_path}" = "missing"; then
11842 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11845 pkg_config
=${pkg_config_prog_path}
11846 guile_version_list
=${with_guile}
11849 found_usable_guile
=checking
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11851 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11852 for guile_version
in ${guile_version_list}; do
11853 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11854 if test $?
!= 0; then
11857 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11858 if test $?
!= 0; then
11859 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11861 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11862 if test $?
!= 0; then
11863 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11865 found_usable_guile
=${guile_version}
11868 if test "${found_usable_guile}" = "checking"; then
11869 if test "${flag_errors}" = "yes"; then
11870 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11872 found_usable_guile
=no
11875 if test "${found_usable_guile}" != no
; then
11876 save_CPPFLAGS
=$CPPFLAGS
11878 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11879 LIBS
="$LIBS $new_LIBS"
11880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11881 /* end confdefs.h. */
11882 #include "libguile.h"
11891 if ac_fn_c_try_link
"$LINENO"; then :
11893 GUILE_CPPFLAGS
=$new_CPPFLAGS
11894 GUILE_LIBS
=$new_LIBS
11896 found_usable_guile
=no
11898 rm -f core conftest.err conftest.
$ac_objext \
11899 conftest
$ac_exeext conftest.
$ac_ext
11900 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11901 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11903 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11908 CPPFLAGS
=$save_CPPFLAGS
11910 if test "${found_usable_guile}" = no
; then
11911 if test "${flag_errors}" = yes; then
11912 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11913 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11914 as_fn_error $?
"linking guile version ${guile_version} test program failed
11915 See \`config.log' for more details" "$LINENO" 5; }
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11920 $as_echo "${found_usable_guile}" >&6; }
11925 if test "${have_libguile}" != no
; then
11926 case "${with_guile}" in
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11930 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11931 if ${ac_cv_guild_program_name+:} false
; then :
11932 $as_echo_n "(cached) " >&6
11934 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
11936 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11937 # the 'guild' and 'bindir' variables. In that case, try to guess
11938 # what the program name is, at the risk of getting it wrong if
11939 # Guile was configured with '--program-suffix' or similar.
11940 if test "x$ac_cv_guild_program_name" = "x"; then
11941 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
11942 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11947 $as_echo "$ac_cv_guild_program_name" >&6; }
11949 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11950 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11953 GUILD
="$ac_cv_guild_program_name"
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11960 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11961 if ${ac_cv_guild_program_name+:} false
; then :
11962 $as_echo_n "(cached) " >&6
11964 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
11966 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11967 # the 'guild' and 'bindir' variables. In that case, try to guess
11968 # what the program name is, at the risk of getting it wrong if
11969 # Guile was configured with '--program-suffix' or similar.
11970 if test "x$ac_cv_guild_program_name" = "x"; then
11971 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
11972 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11977 $as_echo "$ac_cv_guild_program_name" >&6; }
11979 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11980 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11983 GUILD
="$ac_cv_guild_program_name"
11990 if test "$cross_compiling" = no
; then
11993 GUILD_TARGET_FLAG
="--target=$host"
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
12000 $as_echo_n "checking whether guild supports this host... " >&6; }
12001 if ${ac_cv_guild_ok+:} false
; then :
12002 $as_echo_n "(cached) " >&6
12004 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
12005 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
12012 $as_echo "$ac_cv_guild_ok" >&6; }
12014 if test "$ac_cv_guild_ok" = no
; then
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
12017 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
12021 if test "${have_libguile}" != no
; then
12023 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
12025 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
12026 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
12027 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
12028 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
12029 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
12032 save_CPPFLAGS
="$CPPFLAGS"
12034 CPPFLAGS
="$GUILE_CPPFLAGS"
12035 for ac_func
in scm_new_smob
12037 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
12038 if test "x$ac_cv_func_scm_new_smob" = xyes
; then :
12039 cat >>confdefs.h
<<_ACEOF
12040 #define HAVE_SCM_NEW_SMOB 1
12047 CPPFLAGS
="$save_CPPFLAGS"
12049 # Even if Guile support is not compiled in, we need to have these files
12051 CONFIG_OBS
="$CONFIG_OBS guile/guile.o"
12052 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
12056 if test "${have_libguile}" != no
; then
12058 HAVE_GUILE_FALSE
='#'
12060 HAVE_GUILE_TRUE
='#'
12065 # ---------------------------- #
12066 # Check for source highlight. #
12067 # ---------------------------- #
12072 # Check whether --enable-source-highlight was given.
12073 if test "${enable_source_highlight+set}" = set; then :
12074 enableval
=$enable_source_highlight; case "${enableval}" in
12075 yes) enable_source_highlight
=yes ;;
12076 no
) enable_source_highlight
=no
;;
12077 *) as_fn_error $?
"bad value ${enableval} for source-highlight option" "$LINENO" 5 ;;
12080 enable_source_highlight
=auto
12084 if test "${enable_source_highlight}" != "no"; then
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
12086 $as_echo_n "checking for the source-highlight library... " >&6; }
12087 if test "${pkg_config_prog_path}" = "missing"; then
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
12089 $as_echo "no - pkg-config not found" >&6; }
12090 if test "${enable_source_highlight}" = "yes"; then
12091 as_fn_error $?
"pkg-config was not found in your system" "$LINENO" 5
12094 if ${pkg_config_prog_path} --exists source-highlight
; then
12097 as_fn_error $?
"source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
12101 SRCHIGH_CFLAGS
=`${pkg_config_prog_path} --cflags source-highlight`
12102 SRCHIGH_LIBS
=`${pkg_config_prog_path} --libs source-highlight`
12104 $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12107 $as_echo "yes" >&6; }
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12110 $as_echo "no" >&6; }
12111 if test "${enable_source_highlight}" = "yes"; then
12112 as_fn_error $?
"source-highlight was not found in your system" "$LINENO" 5
12120 # ------------------------- #
12121 # Checks for header files. #
12122 # ------------------------- #
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12125 $as_echo_n "checking for ANSI C header files... " >&6; }
12126 if ${ac_cv_header_stdc+:} false
; then :
12127 $as_echo_n "(cached) " >&6
12129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12130 /* end confdefs.h. */
12131 #include <stdlib.h>
12132 #include <stdarg.h>
12133 #include <string.h>
12144 if ac_fn_c_try_compile
"$LINENO"; then :
12145 ac_cv_header_stdc
=yes
12147 ac_cv_header_stdc
=no
12149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12151 if test $ac_cv_header_stdc = yes; then
12152 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12154 /* end confdefs.h. */
12155 #include <string.h>
12158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12159 $EGREP "memchr" >/dev
/null
2>&1; then :
12162 ac_cv_header_stdc
=no
12168 if test $ac_cv_header_stdc = yes; then
12169 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12171 /* end confdefs.h. */
12172 #include <stdlib.h>
12175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12176 $EGREP "free" >/dev
/null
2>&1; then :
12179 ac_cv_header_stdc
=no
12185 if test $ac_cv_header_stdc = yes; then
12186 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12187 if test "$cross_compiling" = yes; then :
12190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12191 /* end confdefs.h. */
12193 #include <stdlib.h>
12194 #if ((' ' & 0x0FF) == 0x020)
12195 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12196 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12198 # define ISLOWER(c) \
12199 (('a' <= (c) && (c) <= 'i') \
12200 || ('j' <= (c) && (c) <= 'r') \
12201 || ('s' <= (c) && (c) <= 'z'))
12202 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12205 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12210 for (i = 0; i < 256; i++)
12211 if (XOR (islower (i), ISLOWER (i))
12212 || toupper (i) != TOUPPER (i))
12217 if ac_fn_c_try_run
"$LINENO"; then :
12220 ac_cv_header_stdc
=no
12222 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12223 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12229 $as_echo "$ac_cv_header_stdc" >&6; }
12230 if test $ac_cv_header_stdc = yes; then
12232 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12236 # elf_hp.h is for HP/UX 64-bit shared library support.
12237 for ac_header
in nlist.h machine
/reg.h \
12239 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
12240 sys
/procctl.h sys
/resource.h sys
/ptrace.h ptrace.h \
12241 sys
/reg.h sys
/debugreg.h \
12244 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12245 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12246 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12247 cat >>confdefs.h
<<_ACEOF
12248 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12255 for ac_header
in sys
/user.h
12257 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
12258 # include <sys/param.h>
12262 if test "x$ac_cv_header_sys_user_h" = xyes
; then :
12263 cat >>confdefs.h
<<_ACEOF
12264 #define HAVE_SYS_USER_H 1
12272 for ac_header
in curses.h cursesX.h ncurses.h ncursesw
/ncurses.h ncurses
/ncurses.h ncurses
/term.h
12274 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12275 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12276 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12277 cat >>confdefs.h
<<_ACEOF
12278 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12285 for ac_header
in term.h
12287 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
12288 # include <curses.h>
12292 if test "x$ac_cv_header_term_h" = xyes
; then :
12293 cat >>confdefs.h
<<_ACEOF
12294 #define HAVE_TERM_H 1
12302 for ac_header
in sys
/socket.h
12304 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
12305 if test "x$ac_cv_header_sys_socket_h" = xyes
; then :
12306 cat >>confdefs.h
<<_ACEOF
12307 #define HAVE_SYS_SOCKET_H 1
12314 for ac_header
in ws2tcpip.h
12316 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
12317 if test "x$ac_cv_header_ws2tcpip_h" = xyes
; then :
12318 cat >>confdefs.h
<<_ACEOF
12319 #define HAVE_WS2TCPIP_H 1
12327 # ------------------------- #
12328 # Checks for declarations. #
12329 # ------------------------- #
12332 # Check for presence and size of long long.
12333 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12334 if test "x$ac_cv_type_long_long" = xyes
; then :
12336 cat >>confdefs.h
<<_ACEOF
12337 #define HAVE_LONG_LONG 1
12340 # The cast to long int works around a bug in the HP C Compiler
12341 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12342 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12343 # This bug is HP SR number 8606223364.
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12345 $as_echo_n "checking size of long long... " >&6; }
12346 if ${ac_cv_sizeof_long_long+:} false
; then :
12347 $as_echo_n "(cached) " >&6
12349 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12352 if test "$ac_cv_type_long_long" = yes; then
12353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12355 as_fn_error
77 "cannot compute sizeof (long long)
12356 See \`config.log' for more details" "$LINENO" 5; }
12358 ac_cv_sizeof_long_long
=0
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12364 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12368 cat >>confdefs.h
<<_ACEOF
12369 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12376 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
12377 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
12378 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
12384 cat >>confdefs.h
<<_ACEOF
12385 #define HAVE_DECL_BASENAME $ac_have_decl
12387 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
12388 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
12394 cat >>confdefs.h
<<_ACEOF
12395 #define HAVE_DECL_FFS $ac_have_decl
12397 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12398 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
12404 cat >>confdefs.h
<<_ACEOF
12405 #define HAVE_DECL_ASPRINTF $ac_have_decl
12407 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12408 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
12414 cat >>confdefs.h
<<_ACEOF
12415 #define HAVE_DECL_VASPRINTF $ac_have_decl
12417 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12418 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12424 cat >>confdefs.h
<<_ACEOF
12425 #define HAVE_DECL_SNPRINTF $ac_have_decl
12427 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12428 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
12434 cat >>confdefs.h
<<_ACEOF
12435 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12438 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
12439 if test "x$ac_cv_have_decl_strtol" = xyes
; then :
12445 cat >>confdefs.h
<<_ACEOF
12446 #define HAVE_DECL_STRTOL $ac_have_decl
12448 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
12449 if test "x$ac_cv_have_decl_strtoul" = xyes
; then :
12455 cat >>confdefs.h
<<_ACEOF
12456 #define HAVE_DECL_STRTOUL $ac_have_decl
12458 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
12459 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
12465 cat >>confdefs.h
<<_ACEOF
12466 #define HAVE_DECL_STRTOLL $ac_have_decl
12468 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
12469 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
12475 cat >>confdefs.h
<<_ACEOF
12476 #define HAVE_DECL_STRTOULL $ac_have_decl
12479 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12480 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
12486 cat >>confdefs.h
<<_ACEOF
12487 #define HAVE_DECL_STRVERSCMP $ac_have_decl
12492 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12493 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12499 cat >>confdefs.h
<<_ACEOF
12500 #define HAVE_DECL_SNPRINTF $ac_have_decl
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12505 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12506 if ${am_cv_val_LC_MESSAGES+:} false
; then :
12507 $as_echo_n "(cached) " >&6
12509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12510 /* end confdefs.h. */
12511 #include <locale.h>
12520 if ac_fn_c_try_link
"$LINENO"; then :
12521 am_cv_val_LC_MESSAGES
=yes
12523 am_cv_val_LC_MESSAGES
=no
12525 rm -f core conftest.err conftest.
$ac_objext \
12526 conftest
$ac_exeext conftest.
$ac_ext
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12529 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12530 if test $am_cv_val_LC_MESSAGES = yes; then
12532 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12537 # ------------------ #
12538 # Checks for types. #
12539 # ------------------ #
12541 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12542 #if HAVE_SYS_SOCKET_H
12543 # include <sys/socket.h>
12544 #elif HAVE_WS2TCPIP_H
12545 # include <ws2tcpip.h>
12549 if test "x$ac_cv_type_socklen_t" = xyes
; then :
12551 cat >>confdefs.h
<<_ACEOF
12552 #define HAVE_SOCKLEN_T 1
12559 # ------------------------------------- #
12560 # Checks for compiler characteristics. #
12561 # ------------------------------------- #
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12564 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12565 if ${ac_cv_c_const+:} false
; then :
12566 $as_echo_n "(cached) " >&6
12568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12569 /* end confdefs.h. */
12575 #ifndef __cplusplus
12576 /* Ultrix mips cc rejects this sort of thing. */
12577 typedef int charset[2];
12578 const charset cs = { 0, 0 };
12579 /* SunOS 4.1.1 cc rejects this. */
12580 char const *const *pcpcc;
12582 /* NEC SVR4.0.2 mips cc rejects this. */
12583 struct point {int x, y;};
12584 static struct point const zero = {0,0};
12585 /* AIX XL C 1.02.0.0 rejects this.
12586 It does not let you subtract one const X* pointer from another in
12587 an arm of an if-expression whose if-part is not a constant
12589 const char *g = "string";
12590 pcpcc = &g + (g ? g-g : 0);
12591 /* HPUX 7.0 cc rejects these. */
12593 ppc = (char**) pcpcc;
12594 pcpcc = (char const *const *) ppc;
12595 { /* SCO 3.2v4 cc rejects this sort of thing. */
12598 char const *s = 0 ? (char *) 0 : (char const *) 0;
12603 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12604 int x[] = {25, 17};
12605 const int *foo = &x[0];
12608 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12609 typedef const int *iptr;
12613 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12614 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12615 struct s { int j; const int *ap[3]; } bx;
12616 struct s *b = &bx; b->j = 5;
12618 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12619 const int foo = 10;
12620 if (!foo) return 0;
12622 return !cs[0] && !zero.x;
12629 if ac_fn_c_try_compile
"$LINENO"; then :
12634 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12637 $as_echo "$ac_cv_c_const" >&6; }
12638 if test $ac_cv_c_const = no
; then
12640 $as_echo "#define const /**/" >>confdefs.h
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12645 $as_echo_n "checking for inline... " >&6; }
12646 if ${ac_cv_c_inline+:} false
; then :
12647 $as_echo_n "(cached) " >&6
12650 for ac_kw
in inline __inline__ __inline
; do
12651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12652 /* end confdefs.h. */
12653 #ifndef __cplusplus
12655 static $ac_kw foo_t static_foo () {return 0; }
12656 $ac_kw foo_t foo () {return 0; }
12660 if ac_fn_c_try_compile
"$LINENO"; then :
12661 ac_cv_c_inline
=$ac_kw
12663 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12664 test "$ac_cv_c_inline" != no
&& break
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12669 $as_echo "$ac_cv_c_inline" >&6; }
12671 case $ac_cv_c_inline in
12674 case $ac_cv_c_inline in
12676 *) ac_val
=$ac_cv_c_inline;;
12678 cat >>confdefs.h
<<_ACEOF
12679 #ifndef __cplusplus
12680 #define inline $ac_val
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12687 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12688 if ${ac_cv_c_bigendian+:} false
; then :
12689 $as_echo_n "(cached) " >&6
12691 ac_cv_c_bigendian
=unknown
12692 # See if we're dealing with a universal compiler.
12693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12694 /* end confdefs.h. */
12695 #ifndef __APPLE_CC__
12696 not a universal capable compiler
12701 if ac_fn_c_try_compile
"$LINENO"; then :
12703 # Check for potential -arch flags. It is not universal unless
12704 # there are at least two -arch flags with different values.
12707 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12708 if test -n "$ac_prev"; then
12710 i?
86 | x86_64 | ppc | ppc64
)
12711 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12714 ac_cv_c_bigendian
=universal
12720 elif test "x$ac_word" = "x-arch"; then
12725 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12726 if test $ac_cv_c_bigendian = unknown
; then
12727 # See if sys/param.h defines the BYTE_ORDER macro.
12728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12729 /* end confdefs.h. */
12730 #include <sys/types.h>
12731 #include <sys/param.h>
12736 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12737 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12739 bogus endian macros
12746 if ac_fn_c_try_compile
"$LINENO"; then :
12747 # It does; now see whether it defined to BIG_ENDIAN or not.
12748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12749 /* end confdefs.h. */
12750 #include <sys/types.h>
12751 #include <sys/param.h>
12756 #if BYTE_ORDER != BIG_ENDIAN
12764 if ac_fn_c_try_compile
"$LINENO"; then :
12765 ac_cv_c_bigendian
=yes
12767 ac_cv_c_bigendian
=no
12769 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12773 if test $ac_cv_c_bigendian = unknown
; then
12774 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12776 /* end confdefs.h. */
12777 #include <limits.h>
12782 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12783 bogus endian macros
12790 if ac_fn_c_try_compile
"$LINENO"; then :
12791 # It does; now see whether it defined to _BIG_ENDIAN or not.
12792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12793 /* end confdefs.h. */
12794 #include <limits.h>
12799 #ifndef _BIG_ENDIAN
12807 if ac_fn_c_try_compile
"$LINENO"; then :
12808 ac_cv_c_bigendian
=yes
12810 ac_cv_c_bigendian
=no
12812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12816 if test $ac_cv_c_bigendian = unknown
; then
12817 # Compile a test program.
12818 if test "$cross_compiling" = yes; then :
12819 # Try to guess by grepping values from an object file.
12820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12821 /* end confdefs.h. */
12822 short int ascii_mm[] =
12823 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12824 short int ascii_ii[] =
12825 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12826 int use_ascii (int i) {
12827 return ascii_mm[i] + ascii_ii[i];
12829 short int ebcdic_ii[] =
12830 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12831 short int ebcdic_mm[] =
12832 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12833 int use_ebcdic (int i) {
12834 return ebcdic_mm[i] + ebcdic_ii[i];
12841 return use_ascii (foo) == use_ebcdic (foo);
12846 if ac_fn_c_try_compile
"$LINENO"; then :
12847 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12848 ac_cv_c_bigendian
=yes
12850 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12851 if test "$ac_cv_c_bigendian" = unknown
; then
12852 ac_cv_c_bigendian
=no
12854 # finding both strings is unlikely to happen, but who knows?
12855 ac_cv_c_bigendian
=unknown
12859 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12862 /* end confdefs.h. */
12863 $ac_includes_default
12868 /* Are we little or big endian? From Harbison&Steele. */
12872 char c[sizeof (long int)];
12875 return u.c[sizeof (long int) - 1] == 1;
12881 if ac_fn_c_try_run
"$LINENO"; then :
12882 ac_cv_c_bigendian
=no
12884 ac_cv_c_bigendian
=yes
12886 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12887 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12893 $as_echo "$ac_cv_c_bigendian" >&6; }
12894 case $ac_cv_c_bigendian in #(
12896 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12902 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12906 as_fn_error $?
"unknown endianness
12907 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12911 # ------------------------------ #
12912 # Checks for library functions. #
12913 # ------------------------------ #
12915 for ac_func
in getuid getgid \
12916 pipe pread pread64 pwrite resize_term \
12918 sigaction sigsetmask socketpair \
12919 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
12920 setrlimit getrlimit posix_madvise waitpid \
12923 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12924 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12925 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12926 cat >>confdefs.h
<<_ACEOF
12927 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12935 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12936 if ${am_cv_langinfo_codeset+:} false
; then :
12937 $as_echo_n "(cached) " >&6
12939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12940 /* end confdefs.h. */
12941 #include <langinfo.h>
12945 char* cs = nl_langinfo(CODESET);
12950 if ac_fn_c_try_link
"$LINENO"; then :
12951 am_cv_langinfo_codeset
=yes
12953 am_cv_langinfo_codeset
=no
12955 rm -f core conftest.err conftest.
$ac_objext \
12956 conftest
$ac_exeext conftest.
$ac_ext
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12960 $as_echo "$am_cv_langinfo_codeset" >&6; }
12961 if test $am_cv_langinfo_codeset = yes; then
12963 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12967 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12968 if test "x$ac_cv_type_size_t" = xyes
; then :
12972 cat >>confdefs.h
<<_ACEOF
12973 #define size_t unsigned int
12981 for ac_header
in $ac_header_list
12983 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12984 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12986 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12987 cat >>confdefs.h
<<_ACEOF
12988 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13001 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13002 if test "x$ac_cv_type_pid_t" = xyes
; then :
13006 cat >>confdefs.h
<<_ACEOF
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13013 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13014 if ${ac_cv_path_SED+:} false
; then :
13015 $as_echo_n "(cached) " >&6
13017 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
13018 for ac_i
in 1 2 3 4 5 6 7; do
13019 ac_script
="$ac_script$as_nl$ac_script"
13021 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
13022 { ac_script
=; unset ac_script
;}
13023 if test -z "$SED"; then
13024 ac_path_SED_found
=false
13025 # Loop through the user's path and test for each of PROGNAME-LIST
13026 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13027 for as_dir
in $PATH
13030 test -z "$as_dir" && as_dir
=.
13031 for ac_prog
in sed gsed
; do
13032 for ac_exec_ext
in '' $ac_executable_extensions; do
13033 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
13034 as_fn_executable_p
"$ac_path_SED" ||
continue
13035 # Check for GNU ac_path_SED and select it if it is found.
13036 # Check for GNU $ac_path_SED
13037 case `"$ac_path_SED" --version 2>&1` in
13039 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
13042 $as_echo_n 0123456789 >"conftest.in"
13045 cat "conftest.in" "conftest.in" >"conftest.tmp"
13046 mv "conftest.tmp" "conftest.in"
13047 cp "conftest.in" "conftest.nl"
13048 $as_echo '' >> "conftest.nl"
13049 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13050 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13051 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13052 if test $ac_count -gt ${ac_path_SED_max-0}; then
13053 # Best one so far, save it but keep looking for a better one
13054 ac_cv_path_SED
="$ac_path_SED"
13055 ac_path_SED_max
=$ac_count
13057 # 10*(2^10) chars as input seems more than enough
13058 test $ac_count -gt 10 && break
13060 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13063 $ac_path_SED_found && break 3
13068 if test -z "$ac_cv_path_SED"; then
13069 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
13072 ac_cv_path_SED
=$SED
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13077 $as_echo "$ac_cv_path_SED" >&6; }
13078 SED
="$ac_cv_path_SED"
13082 # Set the 'development' global.
13083 .
$srcdir/..
/bfd
/development.sh
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13086 $as_echo_n "checking for ANSI C header files... " >&6; }
13087 if ${ac_cv_header_stdc+:} false
; then :
13088 $as_echo_n "(cached) " >&6
13090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13091 /* end confdefs.h. */
13092 #include <stdlib.h>
13093 #include <stdarg.h>
13094 #include <string.h>
13105 if ac_fn_c_try_compile
"$LINENO"; then :
13106 ac_cv_header_stdc
=yes
13108 ac_cv_header_stdc
=no
13110 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13112 if test $ac_cv_header_stdc = yes; then
13113 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13115 /* end confdefs.h. */
13116 #include <string.h>
13119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13120 $EGREP "memchr" >/dev
/null
2>&1; then :
13123 ac_cv_header_stdc
=no
13129 if test $ac_cv_header_stdc = yes; then
13130 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13132 /* end confdefs.h. */
13133 #include <stdlib.h>
13136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13137 $EGREP "free" >/dev
/null
2>&1; then :
13140 ac_cv_header_stdc
=no
13146 if test $ac_cv_header_stdc = yes; then
13147 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13148 if test "$cross_compiling" = yes; then :
13151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13152 /* end confdefs.h. */
13154 #include <stdlib.h>
13155 #if ((' ' & 0x0FF) == 0x020)
13156 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13157 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13159 # define ISLOWER(c) \
13160 (('a' <= (c) && (c) <= 'i') \
13161 || ('j' <= (c) && (c) <= 'r') \
13162 || ('s' <= (c) && (c) <= 'z'))
13163 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13166 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13171 for (i = 0; i < 256; i++)
13172 if (XOR (islower (i), ISLOWER (i))
13173 || toupper (i) != TOUPPER (i))
13178 if ac_fn_c_try_run
"$LINENO"; then :
13181 ac_cv_header_stdc
=no
13183 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13184 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13190 $as_echo "$ac_cv_header_stdc" >&6; }
13191 if test $ac_cv_header_stdc = yes; then
13193 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13197 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13198 # for constant arguments. Useless!
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13200 $as_echo_n "checking for working alloca.h... " >&6; }
13201 if ${ac_cv_working_alloca_h+:} false
; then :
13202 $as_echo_n "(cached) " >&6
13204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13205 /* end confdefs.h. */
13206 #include <alloca.h>
13210 char *p = (char *) alloca (2 * sizeof (int));
13216 if ac_fn_c_try_link
"$LINENO"; then :
13217 ac_cv_working_alloca_h
=yes
13219 ac_cv_working_alloca_h
=no
13221 rm -f core conftest.err conftest.
$ac_objext \
13222 conftest
$ac_exeext conftest.
$ac_ext
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13225 $as_echo "$ac_cv_working_alloca_h" >&6; }
13226 if test $ac_cv_working_alloca_h = yes; then
13228 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13233 $as_echo_n "checking for alloca... " >&6; }
13234 if ${ac_cv_func_alloca_works+:} false
; then :
13235 $as_echo_n "(cached) " >&6
13237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13238 /* end confdefs.h. */
13240 # define alloca __builtin_alloca
13243 # include <malloc.h>
13244 # define alloca _alloca
13246 # ifdef HAVE_ALLOCA_H
13247 # include <alloca.h>
13252 # ifndef alloca /* predefined by HP cc +Olibcalls */
13253 void *alloca (size_t);
13263 char *p = (char *) alloca (1);
13269 if ac_fn_c_try_link
"$LINENO"; then :
13270 ac_cv_func_alloca_works
=yes
13272 ac_cv_func_alloca_works
=no
13274 rm -f core conftest.err conftest.
$ac_objext \
13275 conftest
$ac_exeext conftest.
$ac_ext
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13278 $as_echo "$ac_cv_func_alloca_works" >&6; }
13280 if test $ac_cv_func_alloca_works = yes; then
13282 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13285 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13286 # that cause trouble. Some versions do not even contain alloca or
13287 # contain a buggy version. If you still want to use their alloca,
13288 # use ar to extract alloca.o from them instead of compiling alloca.c.
13290 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
13292 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13296 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13297 if ${ac_cv_os_cray+:} false
; then :
13298 $as_echo_n "(cached) " >&6
13300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13301 /* end confdefs.h. */
13302 #if defined CRAY && ! defined CRAY2
13309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13310 $EGREP "webecray" >/dev
/null
2>&1; then :
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13319 $as_echo "$ac_cv_os_cray" >&6; }
13320 if test $ac_cv_os_cray = yes; then
13321 for ac_func
in _getb67 GETB67 getb67
; do
13322 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13323 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13324 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13326 cat >>confdefs.h
<<_ACEOF
13327 #define CRAY_STACKSEG_END $ac_func
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13337 $as_echo_n "checking stack direction for C alloca... " >&6; }
13338 if ${ac_cv_c_stack_direction+:} false
; then :
13339 $as_echo_n "(cached) " >&6
13341 if test "$cross_compiling" = yes; then :
13342 ac_cv_c_stack_direction
=0
13344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13345 /* end confdefs.h. */
13346 $ac_includes_default
13348 find_stack_direction (int *addr, int depth)
13350 int dir, dummy = 0;
13353 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13354 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13355 return dir + dummy;
13359 main (int argc, char **argv)
13361 return find_stack_direction (0, argc + !argv + 20) < 0;
13364 if ac_fn_c_try_run
"$LINENO"; then :
13365 ac_cv_c_stack_direction
=1
13367 ac_cv_c_stack_direction
=-1
13369 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13370 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13375 $as_echo "$ac_cv_c_stack_direction" >&6; }
13376 cat >>confdefs.h
<<_ACEOF
13377 #define STACK_DIRECTION $ac_cv_c_stack_direction
13388 $as_echo "#define USE_WIN32API 1" >>confdefs.h
13390 WIN32APILIBS
="-lws2_32"
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13396 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13397 if ${am_cv_langinfo_codeset+:} false
; then :
13398 $as_echo_n "(cached) " >&6
13400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13401 /* end confdefs.h. */
13402 #include <langinfo.h>
13406 char* cs = nl_langinfo(CODESET);
13411 if ac_fn_c_try_link
"$LINENO"; then :
13412 am_cv_langinfo_codeset
=yes
13414 am_cv_langinfo_codeset
=no
13416 rm -f core conftest.err conftest.
$ac_objext \
13417 conftest
$ac_exeext conftest.
$ac_ext
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13421 $as_echo "$am_cv_langinfo_codeset" >&6; }
13422 if test $am_cv_langinfo_codeset = yes; then
13424 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13429 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
13431 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13432 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13433 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13434 cat >>confdefs.h
<<_ACEOF
13435 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13444 for ac_func
in getpagesize
13446 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13447 if test "x$ac_cv_func_getpagesize" = xyes
; then :
13448 cat >>confdefs.h
<<_ACEOF
13449 #define HAVE_GETPAGESIZE 1
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13456 $as_echo_n "checking for working mmap... " >&6; }
13457 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
13458 $as_echo_n "(cached) " >&6
13460 if test "$cross_compiling" = yes; then :
13461 ac_cv_func_mmap_fixed_mapped
=no
13463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13464 /* end confdefs.h. */
13465 $ac_includes_default
13466 /* malloc might have been renamed as rpl_malloc. */
13469 /* Thanks to Mike Haertel and Jim Avera for this test.
13470 Here is a matrix of mmap possibilities:
13471 mmap private not fixed
13472 mmap private fixed at somewhere currently unmapped
13473 mmap private fixed at somewhere already mapped
13474 mmap shared not fixed
13475 mmap shared fixed at somewhere currently unmapped
13476 mmap shared fixed at somewhere already mapped
13477 For private mappings, we should verify that changes cannot be read()
13478 back from the file, nor mmap's back from the file at a different
13479 address. (There have been systems where private was not correctly
13480 implemented like the infamous i386 svr4.0, and systems where the
13481 VM page cache was not coherent with the file system buffer cache
13482 like early versions of FreeBSD and possibly contemporary NetBSD.)
13483 For shared mappings, we should conversely verify that changes get
13484 propagated back to all the places they're supposed to be.
13486 Grep wants private fixed already mapped.
13487 The main things grep needs to know about mmap are:
13488 * does it exist and is it safe to write into the mmap'd area
13489 * how to use it (BSD variants) */
13492 #include <sys/mman.h>
13494 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13498 /* This mess was copied from the GNU getpagesize.h. */
13499 #ifndef HAVE_GETPAGESIZE
13500 # ifdef _SC_PAGESIZE
13501 # define getpagesize() sysconf(_SC_PAGESIZE)
13502 # else /* no _SC_PAGESIZE */
13503 # ifdef HAVE_SYS_PARAM_H
13504 # include <sys/param.h>
13505 # ifdef EXEC_PAGESIZE
13506 # define getpagesize() EXEC_PAGESIZE
13507 # else /* no EXEC_PAGESIZE */
13509 # define getpagesize() NBPG * CLSIZE
13512 # endif /* no CLSIZE */
13513 # else /* no NBPG */
13515 # define getpagesize() NBPC
13516 # else /* no NBPC */
13518 # define getpagesize() PAGESIZE
13519 # endif /* PAGESIZE */
13520 # endif /* no NBPC */
13521 # endif /* no NBPG */
13522 # endif /* no EXEC_PAGESIZE */
13523 # else /* no HAVE_SYS_PARAM_H */
13524 # define getpagesize() 8192 /* punt totally */
13525 # endif /* no HAVE_SYS_PARAM_H */
13526 # endif /* no _SC_PAGESIZE */
13528 #endif /* no HAVE_GETPAGESIZE */
13533 char *data, *data2, *data3;
13534 const char *cdata2;
13538 pagesize = getpagesize ();
13540 /* First, make a file with some known garbage in it. */
13541 data = (char *) malloc (pagesize);
13544 for (i = 0; i < pagesize; ++i)
13545 *(data + i) = rand ();
13547 fd = creat ("conftest.mmap", 0600);
13550 if (write (fd, data, pagesize) != pagesize)
13554 /* Next, check that the tail of a page is zero-filled. File must have
13555 non-zero length, otherwise we risk SIGBUS for entire page. */
13556 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13560 if (write (fd2, cdata2, 1) != 1)
13562 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13563 if (data2 == MAP_FAILED)
13565 for (i = 0; i < pagesize; ++i)
13569 if (munmap (data2, pagesize))
13572 /* Next, try to mmap the file at a fixed address which already has
13573 something else allocated at it. If we can, also make sure that
13574 we see the same garbage. */
13575 fd = open ("conftest.mmap", O_RDWR);
13578 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13579 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13581 for (i = 0; i < pagesize; ++i)
13582 if (*(data + i) != *(data2 + i))
13585 /* Finally, make sure that changes to the mapped area do not
13586 percolate back to the file as seen by read(). (This is a bug on
13587 some variants of i386 svr4.0.) */
13588 for (i = 0; i < pagesize; ++i)
13589 *(data2 + i) = *(data2 + i) + 1;
13590 data3 = (char *) malloc (pagesize);
13593 if (read (fd, data3, pagesize) != pagesize)
13595 for (i = 0; i < pagesize; ++i)
13596 if (*(data + i) != *(data3 + i))
13602 if ac_fn_c_try_run
"$LINENO"; then :
13603 ac_cv_func_mmap_fixed_mapped
=yes
13605 ac_cv_func_mmap_fixed_mapped
=no
13607 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13608 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13613 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13614 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13616 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13619 rm -f conftest.mmap conftest.txt
13621 for ac_header
in vfork.h
13623 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13624 if test "x$ac_cv_header_vfork_h" = xyes
; then :
13625 cat >>confdefs.h
<<_ACEOF
13626 #define HAVE_VFORK_H 1
13633 for ac_func
in fork vfork
13635 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13636 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13637 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13638 cat >>confdefs.h
<<_ACEOF
13639 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13645 if test "x$ac_cv_func_fork" = xyes
; then
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13647 $as_echo_n "checking for working fork... " >&6; }
13648 if ${ac_cv_func_fork_works+:} false
; then :
13649 $as_echo_n "(cached) " >&6
13651 if test "$cross_compiling" = yes; then :
13652 ac_cv_func_fork_works
=cross
13654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13655 /* end confdefs.h. */
13656 $ac_includes_default
13661 /* By Ruediger Kuhlmann. */
13662 return fork () < 0;
13668 if ac_fn_c_try_run
"$LINENO"; then :
13669 ac_cv_func_fork_works
=yes
13671 ac_cv_func_fork_works
=no
13673 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13674 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13679 $as_echo "$ac_cv_func_fork_works" >&6; }
13682 ac_cv_func_fork_works
=$ac_cv_func_fork
13684 if test "x$ac_cv_func_fork_works" = xcross
; then
13686 *-*-amigaos* |
*-*-msdosdjgpp*)
13687 # Override, as these systems have only a dummy fork() stub
13688 ac_cv_func_fork_works
=no
13691 ac_cv_func_fork_works
=yes
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13695 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13697 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13698 if test "x$ac_cv_func_vfork" = xyes
; then
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13700 $as_echo_n "checking for working vfork... " >&6; }
13701 if ${ac_cv_func_vfork_works+:} false
; then :
13702 $as_echo_n "(cached) " >&6
13704 if test "$cross_compiling" = yes; then :
13705 ac_cv_func_vfork_works
=cross
13707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13708 /* end confdefs.h. */
13709 /* Thanks to Paul Eggert for this test. */
13710 $ac_includes_default
13711 #include <sys/wait.h>
13712 #ifdef HAVE_VFORK_H
13713 # include <vfork.h>
13715 /* On some sparc systems, changes by the child to local and incoming
13716 argument registers are propagated back to the parent. The compiler
13717 is told about this with #include <vfork.h>, but some compilers
13718 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13719 static variable whose address is put into a register that is
13720 clobbered by the vfork. */
13723 sparc_address_test (int arg)
13725 sparc_address_test (arg) int arg;
13728 static pid_t child;
13746 pid_t parent = getpid ();
13749 sparc_address_test (0);
13754 /* Here is another test for sparc vfork register problems. This
13755 test uses lots of local variables, at least as many local
13756 variables as main has allocated so far including compiler
13757 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13758 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13759 reuse the register of parent for one of the local variables,
13760 since it will think that parent can't possibly be used any more
13761 in this routine. Assigning to the local variable will thus
13762 munge parent in the parent process. */
13764 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13765 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13766 /* Convince the compiler that p..p7 are live; otherwise, it might
13767 use the same hardware register for all 8 local variables. */
13768 if (p != p1 || p != p2 || p != p3 || p != p4
13769 || p != p5 || p != p6 || p != p7)
13772 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13773 from child file descriptors. If the child closes a descriptor
13774 before it execs or exits, this munges the parent's descriptor
13775 as well. Test for this by closing stdout in the child. */
13776 _exit(close(fileno(stdout)) != 0);
13781 while (wait(&status) != child)
13784 /* Was there some problem with vforking? */
13787 /* Did the child fail? (This shouldn't happen.) */
13790 /* Did the vfork/compiler bug occur? */
13791 || parent != getpid()
13793 /* Did the file descriptor bug occur? */
13794 || fstat(fileno(stdout), &st) != 0
13799 if ac_fn_c_try_run
"$LINENO"; then :
13800 ac_cv_func_vfork_works
=yes
13802 ac_cv_func_vfork_works
=no
13804 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13805 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13810 $as_echo "$ac_cv_func_vfork_works" >&6; }
13813 if test "x$ac_cv_func_fork_works" = xcross
; then
13814 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13816 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13819 if test "x$ac_cv_func_vfork_works" = xyes
; then
13821 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13825 $as_echo "#define vfork fork" >>confdefs.h
13828 if test "x$ac_cv_func_fork_works" = xyes
; then
13830 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13834 for ac_func
in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
13835 ptrace64 sbrk setns sigaltstack sigprocmask \
13836 setpgid setpgrp getrusage getauxval sigtimedwait
13838 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13839 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13840 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13841 cat >>confdefs.h
<<_ACEOF
13842 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13849 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13850 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
13856 cat >>confdefs.h
<<_ACEOF
13857 #define HAVE_DECL_STRSTR $ac_have_decl
13861 # ----------------------- #
13862 # Checks for structures. #
13863 # ----------------------- #
13865 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13866 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
13868 cat >>confdefs.h
<<_ACEOF
13869 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13874 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
13875 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
13877 cat >>confdefs.h
<<_ACEOF
13878 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13885 # On FreeBSD we need libutil for the kinfo_get* functions. On
13886 # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
13887 # Figure out which one to use.
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
13889 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
13890 if ${ac_cv_search_kinfo_getfile+:} false
; then :
13891 $as_echo_n "(cached) " >&6
13893 ac_func_search_save_LIBS
=$LIBS
13894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13895 /* end confdefs.h. */
13897 /* Override any GCC internal prototype to avoid an error.
13898 Use char because int might match the return type of a GCC
13899 builtin and then its argument prototype would still apply. */
13903 char kinfo_getfile ();
13907 return kinfo_getfile ();
13912 for ac_lib
in '' util util-freebsd
; do
13913 if test -z "$ac_lib"; then
13914 ac_res
="none required"
13917 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13919 if ac_fn_c_try_link
"$LINENO"; then :
13920 ac_cv_search_kinfo_getfile
=$ac_res
13922 rm -f core conftest.err conftest.
$ac_objext \
13924 if ${ac_cv_search_kinfo_getfile+:} false
; then :
13928 if ${ac_cv_search_kinfo_getfile+:} false
; then :
13931 ac_cv_search_kinfo_getfile
=no
13933 rm conftest.
$ac_ext
13934 LIBS
=$ac_func_search_save_LIBS
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
13937 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
13938 ac_res
=$ac_cv_search_kinfo_getfile
13939 if test "$ac_res" != no
; then :
13940 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13945 # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
13946 for ac_func
in kinfo_getfile
13948 ac_fn_c_check_func
"$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
13949 if test "x$ac_cv_func_kinfo_getfile" = xyes
; then :
13950 cat >>confdefs.h
<<_ACEOF
13951 #define HAVE_KINFO_GETFILE 1
13958 # Check for std::thread. This does not work on some platforms, like
13961 ac_cpp
='$CXXCPP $CPPFLAGS'
13962 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13963 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13964 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
13971 ac_cpp
='$CPP $CPPFLAGS'
13972 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13973 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13974 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13978 # We used to check for pthread.h first, but this fails if pthread.h
13979 # requires special compiler flags (e.g. on Tru64 or Sequent).
13980 # It gets checked for in the link test anyway.
13982 # First of all, check if the user has set any of the PTHREAD_LIBS,
13983 # etcetera environment variables, and if threads linking works using
13985 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
13986 ax_pthread_save_CC
="$CC"
13987 ax_pthread_save_CFLAGS
="$CFLAGS"
13988 ax_pthread_save_LIBS
="$LIBS"
13989 if test "x$PTHREAD_CC" != "x"; then :
13992 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
13993 LIBS
="$PTHREAD_LIBS $LIBS"
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
13995 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
13996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13997 /* end confdefs.h. */
13999 /* Override any GCC internal prototype to avoid an error.
14000 Use char because int might match the return type of a GCC
14001 builtin and then its argument prototype would still apply. */
14005 char pthread_join ();
14009 return pthread_join ();
14014 if ac_fn_c_try_link
"$LINENO"; then :
14017 rm -f core conftest.err conftest.
$ac_objext \
14018 conftest
$ac_exeext conftest.
$ac_ext
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14020 $as_echo "$ax_pthread_ok" >&6; }
14021 if test "x$ax_pthread_ok" = "xno"; then
14025 CC
="$ax_pthread_save_CC"
14026 CFLAGS
="$ax_pthread_save_CFLAGS"
14027 LIBS
="$ax_pthread_save_LIBS"
14030 # We must check for the threads library under a number of different
14031 # names; the ordering is very important because some systems
14032 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14033 # libraries is broken (non-POSIX).
14035 # Create a list of thread flags to try. Items starting with a "-" are
14036 # C compiler flags, and other items are library names, except for "none"
14037 # which indicates that we try without any flags at all, and "pthread-config"
14038 # which is a program returning the flags for the Pth emulation library.
14040 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14042 # The ordering *is* (sometimes) important. Some notes on the
14043 # individual items follow:
14045 # pthreads: AIX (must check this before -lpthread)
14046 # none: in case threads are in libc; should be tried before -Kthread and
14047 # other compiler flags to prevent continual compiler warnings
14048 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14049 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
14050 # (Note: HP C rejects this with "bad form for `-t' option")
14051 # -pthreads: Solaris/gcc (Note: HP C also rejects)
14052 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14053 # doesn't hurt to check since this sometimes defines pthreads and
14054 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
14055 # is present but should not be used directly; and before -mthreads,
14056 # because the compiler interprets this as "-mt" + "-hreads")
14057 # -mthreads: Mingw32/gcc, Lynx/gcc
14058 # pthread: Linux, etcetera
14059 # --thread-safe: KAI C++
14060 # pthread-config: use pthread-config program (for GNU Pth library)
14066 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14067 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14069 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
14074 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
14075 # multi-threading and also sets -lpthread."
14077 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
14082 # IBM z/OS requires a feature-test macro to be defined in order to
14083 # enable POSIX threads at all, so give the user a hint if this is
14084 # not set. (We don't define these ourselves, as they can affect
14085 # other portions of the system API in unpredictable ways.)
14087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14088 /* end confdefs.h. */
14090 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
14091 AX_PTHREAD_ZOS_MISSING
14095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14096 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
14098 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
14106 # On Solaris (at least, for some versions), libc contains stubbed
14107 # (non-functional) versions of the pthreads routines, so link-based
14108 # tests will erroneously succeed. (N.B.: The stubs are missing
14109 # pthread_cleanup_push, or rather a function called by this macro,
14110 # so we could check for that, but who knows whether they'll stub
14111 # that too in a future libc.) So we'll check first for the
14112 # standard Solaris way of linking pthreads (-mt -lpthread).
14114 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
14118 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
14120 if test "x$GCC" = "xyes"; then :
14121 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
14124 # The presence of a feature test macro requesting re-entrant function
14125 # definitions is, on some systems, a strong hint that pthreads support is
14126 # correctly enabled
14129 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
14130 ax_pthread_check_macro
="_REENTRANT"
14134 ax_pthread_check_macro
="_THREAD_SAFE"
14138 ax_pthread_check_macro
="--"
14141 if test "x$ax_pthread_check_macro" = "x--"; then :
14142 ax_pthread_check_cond
=0
14144 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
14147 # Are we compiling with Clang?
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
14150 $as_echo_n "checking whether $CC is Clang... " >&6; }
14151 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
14152 $as_echo_n "(cached) " >&6
14154 ax_cv_PTHREAD_CLANG
=no
14155 # Note that Autoconf sets GCC=yes for Clang as well as GCC
14156 if test "x$GCC" = "xyes"; then
14157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14158 /* end confdefs.h. */
14159 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
14160 # if defined(__clang__) && defined(__llvm__)
14161 AX_PTHREAD_CC_IS_CLANG
14165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14166 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
14167 ax_cv_PTHREAD_CLANG
=yes
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
14175 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
14176 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
14178 ax_pthread_clang_warning
=no
14180 # Clang needs special handling, because older versions handle the -pthread
14181 # option in a rather... idiosyncratic way
14183 if test "x$ax_pthread_clang" = "xyes"; then
14185 # Clang takes -pthread; it has never supported any other flag
14187 # (Note 1: This will need to be revisited if a system that Clang
14188 # supports has POSIX threads in a separate library. This tends not
14189 # to be the way of modern systems, but it's conceivable.)
14191 # (Note 2: On some systems, notably Darwin, -pthread is not needed
14192 # to get POSIX threads support; the API is always present and
14193 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
14194 # -pthread does define _REENTRANT, and while the Darwin headers
14195 # ignore this macro, third-party headers might not.)
14197 PTHREAD_CFLAGS
="-pthread"
14202 # However, older versions of Clang make a point of warning the user
14203 # that, in an invocation where only linking and no compilation is
14204 # taking place, the -pthread option has no effect ("argument unused
14205 # during compilation"). They expect -pthread to be passed in only
14206 # when source code is being compiled.
14208 # Problem is, this is at odds with the way Automake and most other
14209 # C build frameworks function, which is that the same flags used in
14210 # compilation (CFLAGS) are also used in linking. Many systems
14211 # supported by AX_PTHREAD require exactly this for POSIX threads
14212 # support, and in fact it is often not straightforward to specify a
14213 # flag that is used only in the compilation phase and not in
14214 # linking. Such a scenario is extremely rare in practice.
14216 # Even though use of the -pthread flag in linking would only print
14217 # a warning, this can be a nuisance for well-run software projects
14218 # that build with -Werror. So if the active version of Clang has
14219 # this misfeature, we search for an option to squash it.
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
14222 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
14223 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
14224 $as_echo_n "(cached) " >&6
14226 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
14227 # Create an alternate version of $ac_link that compiles and
14228 # links in two steps (.c -> .o, .o -> exe) instead of one
14229 # (.c -> exe), because the warning occurs only in the second
14231 ax_pthread_save_ac_link
="$ac_link"
14232 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
14233 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
14234 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
14235 ax_pthread_save_CFLAGS
="$CFLAGS"
14236 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
14237 if test "x$ax_pthread_try" = "xunknown"; then :
14240 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
14241 ac_link
="$ax_pthread_save_ac_link"
14242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14243 /* end confdefs.h. */
14244 int main(void){return 0;}
14246 if ac_fn_c_try_link
"$LINENO"; then :
14247 ac_link
="$ax_pthread_2step_ac_link"
14248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14249 /* end confdefs.h. */
14250 int main(void){return 0;}
14252 if ac_fn_c_try_link
"$LINENO"; then :
14255 rm -f core conftest.err conftest.
$ac_objext \
14256 conftest
$ac_exeext conftest.
$ac_ext
14259 rm -f core conftest.err conftest.
$ac_objext \
14260 conftest
$ac_exeext conftest.
$ac_ext
14262 ac_link
="$ax_pthread_save_ac_link"
14263 CFLAGS
="$ax_pthread_save_CFLAGS"
14264 if test "x$ax_pthread_try" = "x"; then :
14267 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
14271 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
14273 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
14275 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
14278 fi # $ax_pthread_clang = yes
14280 if test "x$ax_pthread_ok" = "xno"; then
14281 for ax_pthread_try_flag
in $ax_pthread_flags; do
14283 case $ax_pthread_try_flag in
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14286 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
14291 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
14292 PTHREAD_CFLAGS
="-mt"
14293 PTHREAD_LIBS
="-lpthread"
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
14298 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
14299 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
14303 # Extract the first word of "pthread-config", so it can be a program name with args.
14304 set dummy pthread-config
; ac_word
=$2
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14306 $as_echo_n "checking for $ac_word... " >&6; }
14307 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
14308 $as_echo_n "(cached) " >&6
14310 if test -n "$ax_pthread_config"; then
14311 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
14313 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14314 for as_dir
in $PATH
14317 test -z "$as_dir" && as_dir
=.
14318 for ac_exec_ext
in '' $ac_executable_extensions; do
14319 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14320 ac_cv_prog_ax_pthread_config
="yes"
14321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14328 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
14331 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
14332 if test -n "$ax_pthread_config"; then
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
14334 $as_echo "$ax_pthread_config" >&6; }
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14337 $as_echo "no" >&6; }
14341 if test "x$ax_pthread_config" = "xno"; then :
14344 PTHREAD_CFLAGS
="`pthread-config --cflags`"
14345 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
14350 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
14351 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
14355 ax_pthread_save_CFLAGS
="$CFLAGS"
14356 ax_pthread_save_LIBS
="$LIBS"
14357 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
14358 LIBS
="$PTHREAD_LIBS $LIBS"
14360 # Check for various functions. We must include pthread.h,
14361 # since some functions may be macros. (On the Sequent, we
14362 # need a special flag -Kthread to make this header compile.)
14363 # We check for pthread_join because it is in -lpthread on IRIX
14364 # while pthread_create is in libc. We check for pthread_attr_init
14365 # due to DEC craziness with -lpthreads. We check for
14366 # pthread_cleanup_push because it is one of the few pthread
14367 # functions on Solaris that doesn't have a non-functional libc stub.
14368 # We try pthread_create on general principles.
14370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14371 /* end confdefs.h. */
14372 #include <pthread.h>
14373 # if $ax_pthread_check_cond
14374 # error "$ax_pthread_check_macro must be defined"
14376 static void routine(void *a) { a = 0; }
14377 static void *start_routine(void *a) { return a; }
14381 pthread_t th; pthread_attr_t attr;
14382 pthread_create(&th, 0, start_routine, 0);
14383 pthread_join(th, 0);
14384 pthread_attr_init(&attr);
14385 pthread_cleanup_push(routine, 0);
14386 pthread_cleanup_pop(0) /* ; */
14391 if ac_fn_c_try_link
"$LINENO"; then :
14394 rm -f core conftest.err conftest.
$ac_objext \
14395 conftest
$ac_exeext conftest.
$ac_ext
14397 CFLAGS
="$ax_pthread_save_CFLAGS"
14398 LIBS
="$ax_pthread_save_LIBS"
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14401 $as_echo "$ax_pthread_ok" >&6; }
14402 if test "x$ax_pthread_ok" = "xyes"; then :
14411 # Various other checks:
14412 if test "x$ax_pthread_ok" = "xyes"; then
14413 ax_pthread_save_CFLAGS
="$CFLAGS"
14414 ax_pthread_save_LIBS
="$LIBS"
14415 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
14416 LIBS
="$PTHREAD_LIBS $LIBS"
14418 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14420 $as_echo_n "checking for joinable pthread attribute... " >&6; }
14421 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
14422 $as_echo_n "(cached) " >&6
14424 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
14425 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
14426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14427 /* end confdefs.h. */
14428 #include <pthread.h>
14432 int attr = $ax_pthread_attr; return attr /* ; */
14437 if ac_fn_c_try_link
"$LINENO"; then :
14438 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
14440 rm -f core conftest.err conftest.
$ac_objext \
14441 conftest
$ac_exeext conftest.
$ac_ext
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
14446 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
14447 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
14448 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
14449 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
14451 cat >>confdefs.h
<<_ACEOF
14452 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
14455 ax_pthread_joinable_attr_defined
=yes
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
14460 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
14461 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
14462 $as_echo_n "(cached) " >&6
14464 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
14467 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
14473 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
14474 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
14475 test "x$ax_pthread_special_flags_added" != "xyes"; then :
14476 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
14477 ax_pthread_special_flags_added
=yes
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
14481 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
14482 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
14483 $as_echo_n "(cached) " >&6
14485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14486 /* end confdefs.h. */
14487 #include <pthread.h>
14491 int i = PTHREAD_PRIO_INHERIT;
14496 if ac_fn_c_try_link
"$LINENO"; then :
14497 ax_cv_PTHREAD_PRIO_INHERIT
=yes
14499 ax_cv_PTHREAD_PRIO_INHERIT
=no
14501 rm -f core conftest.err conftest.
$ac_objext \
14502 conftest
$ac_exeext conftest.
$ac_ext
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
14506 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
14507 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
14508 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
14510 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
14512 ax_pthread_prio_inherit_defined
=yes
14516 CFLAGS
="$ax_pthread_save_CFLAGS"
14517 LIBS
="$ax_pthread_save_LIBS"
14519 # More AIX lossage: compile with *_r variant
14520 if test "x$GCC" != "xyes"; then
14524 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
14525 #handle absolute path differently from PATH based program lookup
14528 if as_fn_executable_p
${CC}_r
; then :
14529 PTHREAD_CC
="${CC}_r"
14532 for ac_prog
in ${CC}_r
14534 # Extract the first word of "$ac_prog", so it can be a program name with args.
14535 set dummy
$ac_prog; ac_word
=$2
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14537 $as_echo_n "checking for $ac_word... " >&6; }
14538 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
14539 $as_echo_n "(cached) " >&6
14541 if test -n "$PTHREAD_CC"; then
14542 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
14544 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14545 for as_dir
in $PATH
14548 test -z "$as_dir" && as_dir
=.
14549 for ac_exec_ext
in '' $ac_executable_extensions; do
14550 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14551 ac_cv_prog_PTHREAD_CC
="$ac_prog"
14552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14561 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
14562 if test -n "$PTHREAD_CC"; then
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14564 $as_echo "$PTHREAD_CC" >&6; }
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14567 $as_echo "no" >&6; }
14571 test -n "$PTHREAD_CC" && break
14573 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
14584 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
14590 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14591 if test "x$ax_pthread_ok" = "xyes"; then
14599 ac_cpp
='$CXXCPP $CPPFLAGS'
14600 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14601 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14602 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
14605 if test "$threads" = "yes"; then
14607 LIBS
="$PTHREAD_LIBS $LIBS"
14608 save_CXXFLAGS
="$CXXFLAGS"
14609 CXXFLAGS
="$PTHREAD_CFLAGS $save_CXXFLAGS"
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
14611 $as_echo_n "checking for std::thread... " >&6; }
14612 if ${gdb_cv_cxx_std_thread+:} false
; then :
14613 $as_echo_n "(cached) " >&6
14615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14616 /* end confdefs.h. */
14618 void callback() { }
14622 std::thread t(callback);
14627 if ac_fn_cxx_try_compile
"$LINENO"; then :
14628 gdb_cv_cxx_std_thread
=yes
14630 gdb_cv_cxx_std_thread
=no
14632 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
14635 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
14637 # This check must be here, while LIBS includes any necessary
14638 # threading library.
14639 for ac_func
in pthread_sigmask pthread_setname_np
14641 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14642 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14643 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14644 cat >>confdefs.h
<<_ACEOF
14645 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14653 CXXFLAGS
="$save_CXXFLAGS"
14655 if test "$gdb_cv_cxx_std_thread" = "yes"; then
14657 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
14661 ac_cpp
='$CPP $CPPFLAGS'
14662 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14663 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14664 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
14668 $as_echo_n "checking for sigsetjmp... " >&6; }
14669 if ${gdb_cv_func_sigsetjmp+:} false
; then :
14670 $as_echo_n "(cached) " >&6
14672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14673 /* end confdefs.h. */
14674 #include <setjmp.h>
14679 while (! sigsetjmp (env, 1))
14680 siglongjmp (env, 1);
14686 if ac_fn_c_try_compile
"$LINENO"; then :
14687 gdb_cv_func_sigsetjmp
=yes
14689 gdb_cv_func_sigsetjmp
=no
14692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
14696 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
14697 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
14699 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
14704 # Check whether --with-intel_pt was given.
14705 if test "${with_intel_pt+set}" = set; then :
14706 withval
=$with_intel_pt;
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
14712 $as_echo_n "checking whether to use intel pt... " >&6; }
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
14714 $as_echo "$with_intel_pt" >&6; }
14716 if test "${with_intel_pt}" = no
; then
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
14718 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
14721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14722 /* end confdefs.h. */
14724 #include <linux/perf_event.h>
14725 #ifndef PERF_ATTR_SIZE_VER5
14730 if ac_fn_c_try_cpp
"$LINENO"; then :
14735 rm -f conftest.err conftest.i conftest.
$ac_ext
14736 if test "$perf_event" != yes; then
14737 if test "$with_intel_pt" = yes; then
14738 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
14741 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
14755 acl_save_prefix
="$prefix"
14756 prefix
="$acl_final_prefix"
14757 acl_save_exec_prefix
="$exec_prefix"
14758 exec_prefix
="$acl_final_exec_prefix"
14760 eval additional_includedir
=\"$includedir\"
14761 eval additional_libdir
=\"$libdir\"
14763 exec_prefix
="$acl_save_exec_prefix"
14764 prefix
="$acl_save_prefix"
14767 # Check whether --with-libipt-prefix was given.
14768 if test "${with_libipt_prefix+set}" = set; then :
14769 withval
=$with_libipt_prefix;
14770 if test "X$withval" = "Xno"; then
14773 if test "X$withval" = "X"; then
14775 acl_save_prefix
="$prefix"
14776 prefix
="$acl_final_prefix"
14777 acl_save_exec_prefix
="$exec_prefix"
14778 exec_prefix
="$acl_final_exec_prefix"
14780 eval additional_includedir
=\"$includedir\"
14781 eval additional_libdir
=\"$libdir\"
14783 exec_prefix
="$acl_save_exec_prefix"
14784 prefix
="$acl_save_prefix"
14787 additional_includedir
="$withval/include"
14788 additional_libdir
="$withval/lib"
14795 # Check whether --with-libipt-type was given.
14796 if test "${with_libipt_type+set}" = set; then :
14797 withval
=$with_libipt_type; with_libipt_type
=$withval
14799 with_libipt_type
=auto
14802 lib_type
=`eval echo \$with_libipt_type`
14809 names_already_handled
=
14810 names_next_round
='ipt '
14811 while test -n "$names_next_round"; do
14812 names_this_round
="$names_next_round"
14814 for name
in $names_this_round; do
14816 for n
in $names_already_handled; do
14817 if test "$n" = "$name"; then
14818 already_handled
=yes
14822 if test -z "$already_handled"; then
14823 names_already_handled
="$names_already_handled $name"
14824 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14825 eval value
=\"\
$HAVE_LIB$uppername\"
14826 if test -n "$value"; then
14827 if test "$value" = yes; then
14828 eval value
=\"\
$LIB$uppername\"
14829 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
14830 eval value
=\"\
$LTLIB$uppername\"
14831 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
14840 if test $use_additional = yes; then
14841 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
14842 found_dir
="$additional_libdir"
14843 found_so
="$additional_libdir/lib$name.$shlibext"
14844 if test -f "$additional_libdir/lib$name.la"; then
14845 found_la
="$additional_libdir/lib$name.la"
14847 elif test x
$lib_type != xshared
; then
14848 if test -f "$additional_libdir/lib$name.$libext"; then
14849 found_dir
="$additional_libdir"
14850 found_a
="$additional_libdir/lib$name.$libext"
14851 if test -f "$additional_libdir/lib$name.la"; then
14852 found_la
="$additional_libdir/lib$name.la"
14857 if test "X$found_dir" = "X"; then
14858 for x
in $LDFLAGS $LTLIBIPT; do
14860 acl_save_prefix
="$prefix"
14861 prefix
="$acl_final_prefix"
14862 acl_save_exec_prefix
="$exec_prefix"
14863 exec_prefix
="$acl_final_exec_prefix"
14865 exec_prefix
="$acl_save_exec_prefix"
14866 prefix
="$acl_save_prefix"
14870 dir
=`echo "X$x" | sed -e 's/^X-L//'`
14871 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
14873 found_so
="$dir/lib$name.$shlibext"
14874 if test -f "$dir/lib$name.la"; then
14875 found_la
="$dir/lib$name.la"
14877 elif test x
$lib_type != xshared
; then
14878 if test -f "$dir/lib$name.$libext"; then
14880 found_a
="$dir/lib$name.$libext"
14881 if test -f "$dir/lib$name.la"; then
14882 found_la
="$dir/lib$name.la"
14888 if test "X$found_dir" != "X"; then
14893 if test "X$found_dir" != "X"; then
14894 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
14895 if test "X$found_so" != "X"; then
14896 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
14897 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14900 for x
in $ltrpathdirs; do
14901 if test "X$x" = "X$found_dir"; then
14906 if test -z "$haveit"; then
14907 ltrpathdirs
="$ltrpathdirs $found_dir"
14909 if test "$hardcode_direct" = yes; then
14910 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14912 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
14913 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14915 for x
in $rpathdirs; do
14916 if test "X$x" = "X$found_dir"; then
14921 if test -z "$haveit"; then
14922 rpathdirs
="$rpathdirs $found_dir"
14926 for x
in $LDFLAGS $LIBIPT; do
14928 acl_save_prefix
="$prefix"
14929 prefix
="$acl_final_prefix"
14930 acl_save_exec_prefix
="$exec_prefix"
14931 exec_prefix
="$acl_final_exec_prefix"
14933 exec_prefix
="$acl_save_exec_prefix"
14934 prefix
="$acl_save_prefix"
14936 if test "X$x" = "X-L$found_dir"; then
14941 if test -z "$haveit"; then
14942 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
14944 if test "$hardcode_minus_L" != no
; then
14945 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14947 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
14953 if test "X$found_a" != "X"; then
14954 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
14956 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
14959 additional_includedir
=
14960 case "$found_dir" in
14962 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14963 additional_includedir
="$basedir/include"
14966 if test "X$additional_includedir" != "X"; then
14967 if test "X$additional_includedir" != "X/usr/include"; then
14969 if test "X$additional_includedir" = "X/usr/local/include"; then
14970 if test -n "$GCC"; then
14972 linux
*) haveit
=yes;;
14976 if test -z "$haveit"; then
14977 for x
in $CPPFLAGS $INCIPT; do
14979 acl_save_prefix
="$prefix"
14980 prefix
="$acl_final_prefix"
14981 acl_save_exec_prefix
="$exec_prefix"
14982 exec_prefix
="$acl_final_exec_prefix"
14984 exec_prefix
="$acl_save_exec_prefix"
14985 prefix
="$acl_save_prefix"
14987 if test "X$x" = "X-I$additional_includedir"; then
14992 if test -z "$haveit"; then
14993 if test -d "$additional_includedir"; then
14994 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
15000 if test -n "$found_la"; then
15001 save_libdir
="$libdir"
15002 case "$found_la" in
15003 */* |
*\\*) .
"$found_la" ;;
15004 *) .
"./$found_la" ;;
15006 libdir
="$save_libdir"
15007 for dep
in $dependency_libs; do
15010 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
15011 if test "X$additional_libdir" != "X/usr/lib"; then
15013 if test "X$additional_libdir" = "X/usr/local/lib"; then
15014 if test -n "$GCC"; then
15016 linux
*) haveit
=yes;;
15020 if test -z "$haveit"; then
15022 for x
in $LDFLAGS $LIBIPT; do
15024 acl_save_prefix
="$prefix"
15025 prefix
="$acl_final_prefix"
15026 acl_save_exec_prefix
="$exec_prefix"
15027 exec_prefix
="$acl_final_exec_prefix"
15029 exec_prefix
="$acl_save_exec_prefix"
15030 prefix
="$acl_save_prefix"
15032 if test "X$x" = "X-L$additional_libdir"; then
15037 if test -z "$haveit"; then
15038 if test -d "$additional_libdir"; then
15039 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
15043 for x
in $LDFLAGS $LTLIBIPT; do
15045 acl_save_prefix
="$prefix"
15046 prefix
="$acl_final_prefix"
15047 acl_save_exec_prefix
="$exec_prefix"
15048 exec_prefix
="$acl_final_exec_prefix"
15050 exec_prefix
="$acl_save_exec_prefix"
15051 prefix
="$acl_save_prefix"
15053 if test "X$x" = "X-L$additional_libdir"; then
15058 if test -z "$haveit"; then
15059 if test -d "$additional_libdir"; then
15060 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
15067 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
15068 if test "$enable_rpath" != no
; then
15070 for x
in $rpathdirs; do
15071 if test "X$x" = "X$dir"; then
15076 if test -z "$haveit"; then
15077 rpathdirs
="$rpathdirs $dir"
15080 for x
in $ltrpathdirs; do
15081 if test "X$x" = "X$dir"; then
15086 if test -z "$haveit"; then
15087 ltrpathdirs
="$ltrpathdirs $dir"
15092 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15095 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15098 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
15099 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
15105 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
15106 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
15107 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
15109 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
15110 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
15117 if test "X$rpathdirs" != "X"; then
15118 if test -n "$hardcode_libdir_separator"; then
15120 for found_dir
in $rpathdirs; do
15121 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15123 acl_save_libdir
="$libdir"
15125 eval flag
=\"$hardcode_libdir_flag_spec\"
15126 libdir
="$acl_save_libdir"
15127 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
15129 for found_dir
in $rpathdirs; do
15130 acl_save_libdir
="$libdir"
15131 libdir
="$found_dir"
15132 eval flag
=\"$hardcode_libdir_flag_spec\"
15133 libdir
="$acl_save_libdir"
15134 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
15138 if test "X$ltrpathdirs" != "X"; then
15139 for found_dir
in $ltrpathdirs; do
15140 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
15145 ac_save_CPPFLAGS
="$CPPFLAGS"
15147 for element
in $INCIPT; do
15149 for x
in $CPPFLAGS; do
15151 acl_save_prefix
="$prefix"
15152 prefix
="$acl_final_prefix"
15153 acl_save_exec_prefix
="$exec_prefix"
15154 exec_prefix
="$acl_final_exec_prefix"
15156 exec_prefix
="$acl_save_exec_prefix"
15157 prefix
="$acl_save_prefix"
15159 if test "X$x" = "X$element"; then
15164 if test -z "$haveit"; then
15165 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
15171 $as_echo_n "checking for libipt... " >&6; }
15172 if ${ac_cv_libipt+:} false
; then :
15173 $as_echo_n "(cached) " >&6
15176 ac_save_LIBS
="$LIBS"
15177 LIBS
="$LIBS $LIBIPT"
15178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15179 /* end confdefs.h. */
15180 #include "intel-pt.h"
15184 pt_insn_alloc_decoder (0);
15189 if ac_fn_c_try_link
"$LINENO"; then :
15194 rm -f core conftest.err conftest.
$ac_objext \
15195 conftest
$ac_exeext conftest.
$ac_ext
15196 LIBS
="$ac_save_LIBS"
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
15200 $as_echo "$ac_cv_libipt" >&6; }
15201 if test "$ac_cv_libipt" = yes; then
15204 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
15207 $as_echo_n "checking how to link with libipt... " >&6; }
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
15209 $as_echo "$LIBIPT" >&6; }
15212 CPPFLAGS
="$ac_save_CPPFLAGS"
15222 if test "$HAVE_LIBIPT" != yes; then
15223 if test "$with_intel_pt" = yes; then
15224 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
15227 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
15231 LIBS
="$LIBS $LIBIPT"
15232 for ac_func
in pt_insn_event
15234 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
15235 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
15236 cat >>confdefs.h
<<_ACEOF
15237 #define HAVE_PT_INSN_EVENT 1
15243 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
15245 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
15247 cat >>confdefs.h
<<_ACEOF
15248 #define HAVE_STRUCT_PT_INSN_ENABLED 1
15253 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
15255 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
15257 cat >>confdefs.h
<<_ACEOF
15258 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
15269 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
15271 for ac_header
in sys
/procfs.h
15273 ac_fn_c_check_header_mongrel
"$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
15274 if test "x$ac_cv_header_sys_procfs_h" = xyes
; then :
15275 cat >>confdefs.h
<<_ACEOF
15276 #define HAVE_SYS_PROCFS_H 1
15283 if test "$ac_cv_header_sys_procfs_h" = yes; then
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
15286 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
15287 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
15288 $as_echo_n "(cached) " >&6
15290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15291 /* end confdefs.h. */
15294 #include <sys/procfs.h>
15303 if ac_fn_c_try_compile
"$LINENO"; then :
15304 bfd_cv_have_sys_procfs_type_gregset_t
=yes
15306 bfd_cv_have_sys_procfs_type_gregset_t
=no
15309 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15312 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
15314 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
15318 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
15322 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
15323 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
15324 $as_echo_n "(cached) " >&6
15326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15327 /* end confdefs.h. */
15330 #include <sys/procfs.h>
15339 if ac_fn_c_try_compile
"$LINENO"; then :
15340 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
15342 bfd_cv_have_sys_procfs_type_fpregset_t
=no
15345 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15348 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
15350 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
15354 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
15358 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
15359 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
15360 $as_echo_n "(cached) " >&6
15362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15363 /* end confdefs.h. */
15366 #include <sys/procfs.h>
15375 if ac_fn_c_try_compile
"$LINENO"; then :
15376 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
15378 bfd_cv_have_sys_procfs_type_prgregset_t
=no
15381 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15384 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
15386 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
15390 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
15394 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
15395 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
15396 $as_echo_n "(cached) " >&6
15398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15399 /* end confdefs.h. */
15402 #include <sys/procfs.h>
15411 if ac_fn_c_try_compile
"$LINENO"; then :
15412 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
15414 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
15417 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15420 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
15422 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
15426 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
15430 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
15431 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
15432 $as_echo_n "(cached) " >&6
15434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15435 /* end confdefs.h. */
15438 #include <sys/procfs.h>
15447 if ac_fn_c_try_compile
"$LINENO"; then :
15448 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
15450 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
15453 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15456 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
15458 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
15462 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
15466 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
15467 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
15468 $as_echo_n "(cached) " >&6
15470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15471 /* end confdefs.h. */
15474 #include <sys/procfs.h>
15483 if ac_fn_c_try_compile
"$LINENO"; then :
15484 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
15486 bfd_cv_have_sys_procfs_type_lwpid_t
=no
15489 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15492 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
15494 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
15498 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
15502 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
15503 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
15504 $as_echo_n "(cached) " >&6
15506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15507 /* end confdefs.h. */
15510 #include <sys/procfs.h>
15519 if ac_fn_c_try_compile
"$LINENO"; then :
15520 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
15522 bfd_cv_have_sys_procfs_type_psaddr_t
=no
15525 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15528 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
15530 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
15534 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
15538 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
15539 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
15540 $as_echo_n "(cached) " >&6
15542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15543 /* end confdefs.h. */
15546 #include <sys/procfs.h>
15550 elf_fpregset_t avar
15555 if ac_fn_c_try_compile
"$LINENO"; then :
15556 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
15558 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
15561 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15564 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
15566 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
15570 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
15575 # Check the return and argument types of ptrace.
15578 for ac_header
in sys
/ptrace.h ptrace.h
15580 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15581 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15582 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
15583 cat >>confdefs.h
<<_ACEOF
15584 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15592 gdb_ptrace_headers
='
15593 #include <sys/types.h>
15594 #if HAVE_SYS_PTRACE_H
15595 # include <sys/ptrace.h>
15598 # include <unistd.h>
15602 # Check return type. Varargs (used on GNU/Linux) conflict with the
15603 # empty argument list, so check for that explicitly.
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
15605 $as_echo_n "checking return type of ptrace... " >&6; }
15606 if ${gdb_cv_func_ptrace_ret+:} false
; then :
15607 $as_echo_n "(cached) " >&6
15609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15610 /* end confdefs.h. */
15611 Â $gdb_ptrace_headers
15615 extern long ptrace (enum __ptrace_request, ...);
15621 if ac_fn_c_try_compile
"$LINENO"; then :
15622 gdb_cv_func_ptrace_ret
='long'
15624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15625 /* end confdefs.h. */
15626 $gdb_ptrace_headers
15630 extern int ptrace ();
15636 if ac_fn_c_try_compile
"$LINENO"; then :
15637 gdb_cv_func_ptrace_ret
='int'
15639 gdb_cv_func_ptrace_ret
='long'
15642 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15645 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
15649 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
15652 cat >>confdefs.h
<<_ACEOF
15653 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
15657 # Check argument types.
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
15659 $as_echo_n "checking types of arguments for ptrace... " >&6; }
15660 if ${gdb_cv_func_ptrace_args+:} false
; then :
15661 $as_echo_n "(cached) " >&6
15663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15664 /* end confdefs.h. */
15665 $gdb_ptrace_headers
15669 extern long ptrace (enum __ptrace_request, ...);
15675 if ac_fn_c_try_compile
"$LINENO"; then :
15676 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
15678 for gdb_arg1
in 'int' 'long'; do
15679 for gdb_arg2
in 'pid_t' 'int' 'long'; do
15680 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
15681 for gdb_arg4
in 'int' 'long' 'void *'; do
15682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15683 /* end confdefs.h. */
15684 $gdb_ptrace_headers
15688 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
15694 if ac_fn_c_try_compile
"$LINENO"; then :
15695 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
15699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15701 for gdb_arg5
in 'int *' 'int' 'long'; do
15702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15703 /* end confdefs.h. */
15704 $gdb_ptrace_headers
15708 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
15714 if ac_fn_c_try_compile
"$LINENO"; then :
15715 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
15719 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15725 # Provide a safe default value.
15726 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
15729 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
15733 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
15735 ac_save_IFS
=$IFS; IFS
=','
15736 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
15740 cat >>confdefs.h
<<_ACEOF
15741 #define PTRACE_TYPE_ARG1 $1
15745 cat >>confdefs.h
<<_ACEOF
15746 #define PTRACE_TYPE_ARG3 $3
15750 cat >>confdefs.h
<<_ACEOF
15751 #define PTRACE_TYPE_ARG4 $4
15754 if test -n "$5"; then
15756 cat >>confdefs.h
<<_ACEOF
15757 #define PTRACE_TYPE_ARG5 $5
15763 if test "$cross_compiling" = no
; then
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
15765 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
15766 if ${ac_cv_func_setpgrp_void+:} false
; then :
15767 $as_echo_n "(cached) " >&6
15769 if test "$cross_compiling" = yes; then :
15770 as_fn_error $?
"cannot check setpgrp when cross compiling" "$LINENO" 5
15772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15773 /* end confdefs.h. */
15774 $ac_includes_default
15778 /* If this system has a BSD-style setpgrp which takes arguments,
15779 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
15780 exit successfully. */
15781 return setpgrp (1,1) != -1;
15786 if ac_fn_c_try_run
"$LINENO"; then :
15787 ac_cv_func_setpgrp_void
=no
15789 ac_cv_func_setpgrp_void
=yes
15791 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15792 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
15797 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
15798 if test $ac_cv_func_setpgrp_void = yes; then
15800 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
15806 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
15807 if ${ac_cv_func_setpgrp_void+:} false
; then :
15808 $as_echo_n "(cached) " >&6
15810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15811 /* end confdefs.h. */
15812 #include <unistd.h>
15816 if (setpgrp(1,1) == -1)
15825 if ac_fn_c_try_compile
"$LINENO"; then :
15826 ac_cv_func_setpgrp_void
=no
15828 ac_cv_func_setpgrp_void
=yes
15831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
15835 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
15836 if test "$ac_cv_func_setpgrp_void" = yes; then
15837 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
15842 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
15843 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
15844 #include <sys/proc.h>
15847 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes
; then :
15849 cat >>confdefs.h
<<_ACEOF
15850 #define HAVE_STRUCT_THREAD_TD_PCB 1
15857 # See if <sys/lwp.h> defines `struct lwp`.
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
15859 $as_echo_n "checking for struct lwp... " >&6; }
15860 if ${gdb_cv_struct_lwp+:} false
; then :
15861 $as_echo_n "(cached) " >&6
15863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15864 /* end confdefs.h. */
15865 #include <sys/param.h>
15867 #include <sys/lwp.h>
15877 if ac_fn_c_try_compile
"$LINENO"; then :
15878 gdb_cv_struct_lwp
=yes
15880 gdb_cv_struct_lwp
=no
15883 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
15887 $as_echo "$gdb_cv_struct_lwp" >&6; }
15888 if test "$gdb_cv_struct_lwp" = yes; then
15890 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
15894 # See if <machine/reg.h> degines `struct reg'.
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
15896 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
15897 if ${gdb_cv_struct_reg+:} false
; then :
15898 $as_echo_n "(cached) " >&6
15900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15901 /* end confdefs.h. */
15902 #include <sys/types.h>
15903 #include <machine/reg.h>
15913 if ac_fn_c_try_compile
"$LINENO"; then :
15914 gdb_cv_struct_reg
=yes
15916 gdb_cv_struct_reg
=no
15919 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
15923 $as_echo "$gdb_cv_struct_reg" >&6; }
15924 if test "$gdb_cv_struct_reg" = yes; then
15926 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
15930 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
15931 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
15932 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
15933 #include <machine/reg.h>
15935 if test "x$ac_cv_member_struct_reg_r_fs" = xyes
; then :
15937 cat >>confdefs.h
<<_ACEOF
15938 #define HAVE_STRUCT_REG_R_FS 1
15943 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
15944 #include <machine/reg.h>
15946 if test "x$ac_cv_member_struct_reg_r_gs" = xyes
; then :
15948 cat >>confdefs.h
<<_ACEOF
15949 #define HAVE_STRUCT_REG_R_GS 1
15956 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
15958 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
15959 if ${gdb_cv_have_ptrace_getregs+:} false
; then :
15960 $as_echo_n "(cached) " >&6
15962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15963 /* end confdefs.h. */
15964 #include <sys/ptrace.h>
15973 if ac_fn_c_try_compile
"$LINENO"; then :
15974 gdb_cv_have_ptrace_getregs
=yes
15976 gdb_cv_have_ptrace_getregs
=no
15979 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
15984 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
15985 if test "$gdb_cv_have_ptrace_getregs" = yes; then
15987 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
15991 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
15993 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
15994 if ${gdb_cv_have_ptrace_getfpxregs+:} false
; then :
15995 $as_echo_n "(cached) " >&6
15997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15998 /* end confdefs.h. */
15999 #include <sys/ptrace.h>
16008 if ac_fn_c_try_compile
"$LINENO"; then :
16009 gdb_cv_have_ptrace_getfpxregs
=yes
16011 gdb_cv_have_ptrace_getfpxregs
=no
16014 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
16019 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
16020 if test "$gdb_cv_have_ptrace_getfpxregs" = yes; then
16022 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
16026 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
16028 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
16029 if ${gdb_cv_have_pt_getdbregs+:} false
; then :
16030 $as_echo_n "(cached) " >&6
16032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16033 /* end confdefs.h. */
16034 #include <sys/types.h>
16035 #include <sys/ptrace.h>
16045 if ac_fn_c_try_compile
"$LINENO"; then :
16046 gdb_cv_have_pt_getdbregs
=yes
16048 gdb_cv_have_pt_getdbregs
=no
16051 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
16056 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
16057 if test "$gdb_cv_have_pt_getdbregs" = yes; then
16059 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
16063 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
16065 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
16066 if ${gdb_cv_have_pt_getxmmregs+:} false
; then :
16067 $as_echo_n "(cached) " >&6
16069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16070 /* end confdefs.h. */
16071 #include <sys/types.h>
16072 #include <sys/ptrace.h>
16082 if ac_fn_c_try_compile
"$LINENO"; then :
16083 gdb_cv_have_pt_getxmmregs
=yes
16085 gdb_cv_have_pt_getxmmregs
=no
16088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
16093 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
16094 if test "$gdb_cv_have_pt_getxmmregs" = yes; then
16096 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
16100 # See if <sys/ptrace.h> supports LWP names on FreeBSD
16101 # Older FreeBSD versions don't have the pl_tdname member of
16102 # `struct ptrace_lwpinfo'.
16103 ac_fn_c_check_member
"$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
16105 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes
; then :
16107 cat >>confdefs.h
<<_ACEOF
16108 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
16115 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
16116 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
16118 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>
16120 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes
; then :
16122 cat >>confdefs.h
<<_ACEOF
16123 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
16130 # Check if the compiler supports the `long long' type.
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
16133 $as_echo_n "checking for long long support in compiler... " >&6; }
16134 if ${gdb_cv_c_long_long+:} false
; then :
16135 $as_echo_n "(cached) " >&6
16137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16138 /* end confdefs.h. */
16139 extern long long foo;
16143 switch (foo & 2) { case 0: return 1; }
16148 if ac_fn_c_try_compile
"$LINENO"; then :
16149 gdb_cv_c_long_long
=yes
16151 gdb_cv_c_long_long
=no
16153 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
16156 $as_echo "$gdb_cv_c_long_long" >&6; }
16157 if test "$gdb_cv_c_long_long" != yes; then
16158 # libdecnumber requires long long.
16159 as_fn_error $?
"Compiler must support long long for GDB." "$LINENO" 5
16162 # Check if the compiler and runtime support printing long longs.
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
16165 $as_echo_n "checking for long long support in printf... " >&6; }
16166 if ${gdb_cv_printf_has_long_long+:} false
; then :
16167 $as_echo_n "(cached) " >&6
16169 if test "$cross_compiling" = yes; then :
16170 gdb_cv_printf_has_long_long
=no
16172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16173 /* end confdefs.h. */
16174 $ac_includes_default
16180 l = (l << 16) + 0x0123;
16181 l = (l << 16) + 0x4567;
16182 l = (l << 16) + 0x89ab;
16183 l = (l << 16) + 0xcdef;
16184 sprintf (buf, "0x%016llx", l);
16185 return (strcmp ("0x0123456789abcdef", buf));
16190 if ac_fn_c_try_run
"$LINENO"; then :
16191 gdb_cv_printf_has_long_long
=yes
16193 gdb_cv_printf_has_long_long
=no
16195 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16196 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
16201 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
16202 if test "$gdb_cv_printf_has_long_long" = yes; then
16204 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
16208 # Check if the compiler and runtime support printing decfloats.
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
16211 $as_echo_n "checking for decfloat support in printf... " >&6; }
16212 if ${gdb_cv_printf_has_decfloat+:} false
; then :
16213 $as_echo_n "(cached) " >&6
16215 if test "$cross_compiling" = yes; then :
16216 gdb_cv_printf_has_decfloat
=no
16218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16219 /* end confdefs.h. */
16220 $ac_includes_default
16225 _Decimal32 d32 = 1.2345df;
16226 _Decimal64 d64 = 1.2345dd;
16227 _Decimal128 d128 = 1.2345dl;
16228 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
16229 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
16234 if ac_fn_c_try_run
"$LINENO"; then :
16235 gdb_cv_printf_has_decfloat
=yes
16237 gdb_cv_printf_has_decfloat
=no
16239 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16240 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
16245 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
16246 if test "$gdb_cv_printf_has_decfloat" = yes; then
16248 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
16252 # Check if the compiler supports the `long double' type. We can't use
16253 # AC_C_LONG_DOUBLE because that one does additional checks on the
16254 # constants defined in <float.h> that fail on some systems,
16255 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
16258 $as_echo_n "checking for long double support in compiler... " >&6; }
16259 if ${gdb_cv_c_long_double+:} false
; then :
16260 $as_echo_n "(cached) " >&6
16262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16263 /* end confdefs.h. */
16266 if ac_fn_c_try_compile
"$LINENO"; then :
16267 gdb_cv_c_long_double
=yes
16269 gdb_cv_c_long_double
=no
16271 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
16274 $as_echo "$gdb_cv_c_long_double" >&6; }
16275 if test "$gdb_cv_c_long_double" = yes; then
16277 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
16281 # Check if the compiler and runtime support printing long doubles.
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
16284 $as_echo_n "checking for long double support in printf... " >&6; }
16285 if ${gdb_cv_printf_has_long_double+:} false
; then :
16286 $as_echo_n "(cached) " >&6
16288 if test "$cross_compiling" = yes; then :
16289 gdb_cv_printf_has_long_double
=no
16291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16292 /* end confdefs.h. */
16293 $ac_includes_default
16298 long double f = 3.141592653;
16299 sprintf (buf, "%Lg", f);
16300 return (strncmp ("3.14159", buf, 7));
16305 if ac_fn_c_try_run
"$LINENO"; then :
16306 gdb_cv_printf_has_long_double
=yes
16308 gdb_cv_printf_has_long_double
=no
16310 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16311 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
16316 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
16317 if test "$gdb_cv_printf_has_long_double" = yes; then
16319 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
16323 # Check if the compiler and runtime support scanning long doubles.
16325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
16326 $as_echo_n "checking for long double support in scanf... " >&6; }
16327 if ${gdb_cv_scanf_has_long_double+:} false
; then :
16328 $as_echo_n "(cached) " >&6
16330 if test "$cross_compiling" = yes; then :
16331 gdb_cv_scanf_has_long_double
=no
16333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16334 /* end confdefs.h. */
16339 char *buf = "3.141592653";
16341 sscanf (buf, "%Lg", &f);
16342 return !(f > 3.14159 && f < 3.14160);
16347 if ac_fn_c_try_run
"$LINENO"; then :
16348 gdb_cv_scanf_has_long_double
=yes
16350 gdb_cv_scanf_has_long_double
=no
16352 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16353 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
16358 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
16359 if test "$gdb_cv_scanf_has_long_double" = yes; then
16361 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
16368 $as_echo_n "checking for -bbigtoc option... " >&6; }
16369 if ${gdb_cv_bigtoc+:} false
; then :
16370 $as_echo_n "(cached) " >&6
16372 SAVE_LDFLAGS
=$LDFLAGS
16375 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
16376 *) gdb_cv_bigtoc
=-bbigtoc ;;
16379 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
16380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16381 /* end confdefs.h. */
16391 if ac_fn_c_try_link
"$LINENO"; then :
16397 rm -f core conftest.err conftest.
$ac_objext \
16398 conftest
$ac_exeext conftest.
$ac_ext
16399 LDFLAGS
="${SAVE_LDFLAGS}"
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
16403 $as_echo "$gdb_cv_bigtoc" >&6; }
16404 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
16408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
16409 $as_echo_n "checking for the dynamic export flag... " >&6; }
16411 if test "${gdb_native}" = yes; then
16412 # The dynamically loaded libthread_db needs access to symbols in the gdb
16413 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
16414 # may not be supported there.
16415 old_LDFLAGS
="$LDFLAGS"
16416 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
16417 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
16418 LDFLAGS
="$LDFLAGS $RDYNAMIC"
16419 if test "${have_libpython}" = no
; then
16420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16421 /* end confdefs.h. */
16431 if ac_fn_c_try_link
"$LINENO"; then :
16434 rm -f core conftest.err conftest.
$ac_objext \
16435 conftest
$ac_exeext conftest.
$ac_ext
16437 # Workaround http://bugs.python.org/issue4434 where static
16438 # libpythonX.Y.a would get its symbols required for
16439 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
16440 # Problem does not happen for the recommended libpythonX.Y.so linkage.
16442 # Note the workaround for Python
16443 # http://bugs.python.org/issue10112 earlier has removed
16444 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
16445 # here too, as otherwise it'd make this -Wl,--dynamic-list test
16447 old_CFLAGS
="$CFLAGS"
16448 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
16450 LIBS
="$LIBS $PYTHON_LIBS"
16451 old_CPPFLAGS
="$CPPFLAGS"
16452 CPPFLAGS
="$CPPFLAGS $PYTHON_CPPFLAGS"
16453 if test "$cross_compiling" = yes; then :
16456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16457 /* end confdefs.h. */
16458 #include "Python.h"
16464 err = PyRun_SimpleString ("import ctypes\n");
16466 return err == 0 ? 0 : 1;
16471 if ac_fn_c_try_run
"$LINENO"; then :
16474 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16475 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16479 CFLAGS
="$old_CFLAGS"
16480 CPPFLAGS
="$old_CPPFLAGS"
16482 LDFLAGS
="$old_LDFLAGS"
16484 if $dynamic_list; then
16485 found
="-Wl,--dynamic-list"
16486 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
16489 RDYNAMIC
="-rdynamic"
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
16493 $as_echo "$found" >&6; }
16496 if test "${build}" = "${host}" -a "${host}" = "${target}" ; then
16499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
16500 $as_echo_n "checking for AiX thread debugging library... " >&6; }
16501 if ${gdb_cv_have_aix_thread_debug+:} false
; then :
16502 $as_echo_n "(cached) " >&6
16504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16505 /* end confdefs.h. */
16506 #include <sys/pthdebug.h>
16510 #ifndef PTHDB_VERSION_3
16518 if ac_fn_c_try_compile
"$LINENO"; then :
16519 gdb_cv_have_aix_thread_debug
=yes
16521 gdb_cv_have_aix_thread_debug
=no
16524 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
16529 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
16530 if test "$gdb_cv_have_aix_thread_debug" = yes; then
16531 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
16532 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
16533 LIBS
="$LIBS -lpthdebug"
16535 # Older versions of AIX do not provide the declaration for
16536 # the getthrds function (it appears that it was introduced
16538 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
16540 if test "x$ac_cv_have_decl_getthrds" = xyes
; then :
16546 cat >>confdefs.h
<<_ACEOF
16547 #define HAVE_DECL_GETTHRDS $ac_have_decl
16556 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
16557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
16558 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
16559 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false
; then :
16560 $as_echo_n "(cached) " >&6
16562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16563 /* end confdefs.h. */
16564 #include <thread_db.h>
16568 int i = TD_NOTALLOC;
16574 if ac_fn_c_try_compile
"$LINENO"; then :
16575 gdb_cv_thread_db_h_has_td_notalloc
=yes
16577 gdb_cv_thread_db_h_has_td_notalloc
=no
16580 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
16584 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
16587 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
16588 if ${gdb_cv_thread_db_h_has_td_version+:} false
; then :
16589 $as_echo_n "(cached) " >&6
16591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16592 /* end confdefs.h. */
16593 #include <thread_db.h>
16597 int i = TD_VERSION;
16603 if ac_fn_c_try_compile
"$LINENO"; then :
16604 gdb_cv_thread_db_h_has_td_version
=yes
16606 gdb_cv_thread_db_h_has_td_version
=no
16609 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
16613 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
16616 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
16617 if ${gdb_cv_thread_db_h_has_td_notls+:} false
; then :
16618 $as_echo_n "(cached) " >&6
16620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16621 /* end confdefs.h. */
16622 #include <thread_db.h>
16632 if ac_fn_c_try_compile
"$LINENO"; then :
16633 gdb_cv_thread_db_h_has_td_notls
=yes
16635 gdb_cv_thread_db_h_has_td_notls
=no
16638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
16642 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
16644 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
16646 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
16649 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
16651 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
16654 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
16656 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
16669 cat >>confdefs.h
<<_ACEOF
16670 #define GDBINIT "$gdbinit"
16675 cat >>confdefs.h
<<_ACEOF
16676 #define GDBEARLYINIT ".gdbearlyinit"
16681 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
16682 # except that the argument to --with-sysroot is optional.
16683 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
16684 if test "x$with_sysroot" = xyes
; then
16685 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
16688 # Check whether --with-sysroot was given.
16689 if test "${with_sysroot+set}" = set; then :
16690 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
16692 TARGET_SYSTEM_ROOT
=
16696 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16697 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16698 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
16699 ac_define_dir
=`eval echo $ac_define_dir`
16701 cat >>confdefs.h
<<_ACEOF
16702 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
16708 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16709 if test "x$prefix" = xNONE
; then
16710 test_prefix
=/usr
/local
16712 test_prefix
=$prefix
16715 test_prefix
=$exec_prefix
16718 case ${ac_define_dir} in
16719 "${test_prefix}"|
"${test_prefix}/"*|\
16720 '${exec_prefix}'|
'${exec_prefix}/'*)
16725 cat >>confdefs.h
<<_ACEOF
16726 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
16733 # Check whether --with-system-gdbinit was given.
16734 if test "${with_system_gdbinit+set}" = set; then :
16735 withval
=$with_system_gdbinit;
16736 SYSTEM_GDBINIT
=$withval
16742 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16743 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16744 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
16745 ac_define_dir
=`eval echo $ac_define_dir`
16747 cat >>confdefs.h
<<_ACEOF
16748 #define SYSTEM_GDBINIT "$ac_define_dir"
16754 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16755 if test "x$prefix" = xNONE
; then
16756 test_prefix
=/usr
/local
16758 test_prefix
=$prefix
16761 test_prefix
=$exec_prefix
16764 case ${ac_define_dir} in
16765 "${test_prefix}"|
"${test_prefix}/"*|\
16766 '${exec_prefix}'|
'${exec_prefix}/'*)
16771 cat >>confdefs.h
<<_ACEOF
16772 #define SYSTEM_GDBINIT_RELOCATABLE $value
16779 # Check whether --with-system-gdbinit-dir was given.
16780 if test "${with_system_gdbinit_dir+set}" = set; then :
16781 withval
=$with_system_gdbinit_dir;
16782 SYSTEM_GDBINIT_DIR
=$withval
16784 SYSTEM_GDBINIT_DIR
=
16788 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16789 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16790 ac_define_dir
=`eval echo $SYSTEM_GDBINIT_DIR`
16791 ac_define_dir
=`eval echo $ac_define_dir`
16793 cat >>confdefs.h
<<_ACEOF
16794 #define SYSTEM_GDBINIT_DIR "$ac_define_dir"
16800 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16801 if test "x$prefix" = xNONE
; then
16802 test_prefix
=/usr
/local
16804 test_prefix
=$prefix
16807 test_prefix
=$exec_prefix
16810 case ${ac_define_dir} in
16811 "${test_prefix}"|
"${test_prefix}/"*|\
16812 '${exec_prefix}'|
'${exec_prefix}/'*)
16817 cat >>confdefs.h
<<_ACEOF
16818 #define SYSTEM_GDBINIT_DIR_RELOCATABLE $value
16825 # Check whether --enable-werror was given.
16826 if test "${enable_werror+set}" = set; then :
16827 enableval
=$enable_werror; case "${enableval}" in
16828 yes | y
) ERROR_ON_WARNING
="yes" ;;
16829 no | n
) ERROR_ON_WARNING
="no" ;;
16830 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16835 # Enable -Werror by default when using gcc. Turn it off for releases.
16836 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
16837 ERROR_ON_WARNING
=yes
16841 if test "${ERROR_ON_WARNING}" = yes ; then
16842 WERROR_CFLAGS
="-Werror"
16845 # The options we'll try to enable.
16846 build_warnings
="-Wall -Wpointer-arith \
16847 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
16848 -Wno-switch -Wno-char-subscripts \
16849 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
16850 -Wno-sign-compare -Wno-error=maybe-uninitialized \
16851 -Wno-mismatched-tags \
16852 -Wno-error=deprecated-register \
16853 -Wsuggest-override \
16854 -Wimplicit-fallthrough=3 \
16855 -Wduplicated-cond \
16857 -Wdeprecated-copy \
16858 -Wdeprecated-copy-dtor \
16860 -Wmissing-declarations \
16861 -Wmissing-prototypes \
16862 -Wstrict-null-sentinel \
16867 # Enable -Wno-format by default when using gcc on mingw since many
16868 # GCC versions complain about %I64.
16869 build_warnings
="$build_warnings -Wno-format" ;;
16871 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
16872 # doesn't understand.
16873 build_warnings
="$build_warnings -Wno-unknown-pragmas"
16874 # Solaris 11 <unistd.h> marks vfork deprecated.
16875 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
16877 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
16878 # but there's a special case for this below.
16879 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
16882 # Check whether --enable-build-warnings was given.
16883 if test "${enable_build_warnings+set}" = set; then :
16884 enableval
=$enable_build_warnings; case "${enableval}" in
16886 no
) build_warnings
="-w";;
16887 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16888 build_warnings
="${build_warnings} ${t}";;
16889 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16890 build_warnings
="${t} ${build_warnings}";;
16891 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16893 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
16894 echo "Setting compiler warning flags = $build_warnings" 6>&1
16897 # Check whether --enable-gdb-build-warnings was given.
16898 if test "${enable_gdb_build_warnings+set}" = set; then :
16899 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
16901 no
) build_warnings
="-w";;
16902 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16903 build_warnings
="${build_warnings} ${t}";;
16904 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16905 build_warnings
="${t} ${build_warnings}";;
16906 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16908 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
16909 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
16913 # The set of warnings supported by a C++ compiler is not the same as
16914 # of the C compiler.
16916 ac_cpp
='$CXXCPP $CPPFLAGS'
16917 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16918 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16919 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
16923 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
16926 $as_echo_n "checking compiler warning flags... " >&6; }
16927 # Separate out the -Werror flag as some files just cannot be
16928 # compiled with it enabled.
16929 for w
in ${build_warnings}; do
16930 # GCC does not complain about -Wno-unknown-warning. Invert
16931 # and test -Wunknown-warning instead.
16934 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
16935 -Wformat-nonliteral)
16936 # gcc requires -Wformat before -Wformat-nonliteral
16937 # will work, so stick them together.
16946 -Werr*) WERROR_CFLAGS
=-Werror ;;
16948 # Check whether GCC accepts it.
16949 saved_CFLAGS
="$CFLAGS"
16950 CFLAGS
="$CFLAGS -Werror $wtest"
16951 saved_CXXFLAGS
="$CXXFLAGS"
16952 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
16953 if test "x$w" = "x-Wunused-variable"; then
16954 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
16955 # fixed in GCC 4.9. This test is derived from the gdb
16956 # source code that triggered this bug in GCC.
16957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16958 /* end confdefs.h. */
16959 struct scoped_restore_base {};
16960 struct scoped_restore_tmpl : public scoped_restore_base {
16961 ~scoped_restore_tmpl() {}
16966 const scoped_restore_base &b = scoped_restore_tmpl();
16972 if ac_fn_cxx_try_compile
"$LINENO"; then :
16973 WARN_CFLAGS
="${WARN_CFLAGS} $w"
16975 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16978 /* end confdefs.h. */
16988 if ac_fn_cxx_try_compile
"$LINENO"; then :
16989 WARN_CFLAGS
="${WARN_CFLAGS} $w"
16991 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16993 CFLAGS
="$saved_CFLAGS"
16994 CXXFLAGS
="$saved_CXXFLAGS"
16997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
16998 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
17004 ac_cpp='$CPP $CPPFLAGS'
17005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17011 # Check whether --enable-ubsan was given.
17012 if test "${enable_ubsan+set}" = set; then :
17013 enableval=$enable_ubsan;
17018 if test "x
$enable_ubsan" = xauto; then
17019 if $development; then
17024 ac_cpp='$CXXCPP $CPPFLAGS'
17025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17029 if test "x
$enable_ubsan" = xyes; then
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
-fsanitize=undefined is accepted
" >&5
17031 $as_echo_n "checking whether
-fsanitize=undefined is accepted...
" >&6; }
17032 saved_CXXFLAGS="$CXXFLAGS"
17033 CXXFLAGS="$CXXFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
17034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17035 /* end confdefs.h. */
17045 if ac_fn_cxx_try_link "$LINENO"; then :
17051 rm -f core conftest.err conftest.$ac_objext \
17052 conftest$ac_exeext conftest.$ac_ext
17053 CXXFLAGS="$saved_CXXFLAGS"
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $enable_ubsan" >&5
17055 $as_echo "$enable_ubsan" >&6; }
17056 if test "x
$enable_ubsan" = xyes; then
17057 WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
17058 CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined
"
17062 ac_cpp='$CPP $CPPFLAGS'
17063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17069 # In the Cygwin environment, we need some additional flags.
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
17071 $as_echo_n "checking
for cygwin...
" >&6; }
17072 if ${gdb_cv_os_cygwin+:} false; then :
17073 $as_echo_n "(cached
) " >&6
17075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17076 /* end confdefs.h. */
17078 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
17082 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
17083 $EGREP "^lose$
" >/dev/null 2>&1; then :
17084 gdb_cv_os_cygwin=yes
17086 gdb_cv_os_cygwin=no
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
17092 $as_echo "$gdb_cv_os_cygwin" >&6; }
17095 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
17097 *go32* ) SER_HARDWIRE=ser-go32.o ;;
17098 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
17099 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
17100 *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o
" ;;
17104 # libreadline needs libuser32.a in a cygwin environment
17106 if test x"$gdb_cv_os_cygwin" = xyes; then
17107 WIN32LIBS="-luser32"
17108 case "${target}" in
17109 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
17114 # The ser-tcp.c module requires sockets.
17115 # Note that WIN32APILIBS is set by GDB_AC_COMMON.
17116 WIN32LIBS="$WIN32LIBS $WIN32APILIBS"
17118 # Add ELF support to GDB, but only if BFD includes ELF support.
17121 OLD_LDFLAGS=$LDFLAGS
17123 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
17124 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
17125 # always want our bfd.
17126 CFLAGS="-I${srcdir}/..
/include
-I..
/bfd
-I${srcdir}/..
/bfd
$CFLAGS"
17127 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
17128 LDFLAGS="-L..
/bfd
-L..
/libiberty
$ZLIBDIR $LDFLAGS"
17129 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
17130 LIBS="-lbfd -liberty -lz $intl $LIBS"
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ELF support
in BFD
" >&5
17132 $as_echo_n "checking
for ELF support
in BFD...
" >&6; }
17133 if ${gdb_cv_var_elf+:} false; then :
17134 $as_echo_n "(cached
) " >&6
17136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17137 /* end confdefs.h. */
17138 #include <stdlib.h>
17139 #include <string.h>
17141 #include "elf-bfd.h
"
17145 return bfd_get_elf_phdr_upper_bound (NULL);
17151 if ac_fn_c_try_link "$LINENO"; then :
17157 rm -f core conftest.err conftest.$ac_objext \
17158 conftest$ac_exeext conftest.$ac_ext
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_var_elf" >&5
17162 $as_echo "$gdb_cv_var_elf" >&6; }
17164 LDFLAGS=$OLD_LDFLAGS
17166 if test "$gdb_cv_var_elf" = yes; then
17167 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o \
17168 gcore-elf.o elf-none-tdep.o
"
17170 $as_echo "#define HAVE_ELF 1" >>confdefs.h
17172 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
17173 if test "$plugins" = "yes"; then
17174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17175 $as_echo_n "checking for library containing dlopen... " >&6; }
17176 if ${ac_cv_search_dlopen+:} false
; then :
17177 $as_echo_n "(cached) " >&6
17179 ac_func_search_save_LIBS
=$LIBS
17180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17181 /* end confdefs.h. */
17183 /* Override any GCC internal prototype to avoid an error.
17184 Use char because int might match the return type of a GCC
17185 builtin and then its argument prototype would still apply. */
17198 for ac_lib
in '' dl
; do
17199 if test -z "$ac_lib"; then
17200 ac_res
="none required"
17203 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
17205 if ac_fn_c_try_link
"$LINENO"; then :
17206 ac_cv_search_dlopen
=$ac_res
17208 rm -f core conftest.err conftest.
$ac_objext \
17210 if ${ac_cv_search_dlopen+:} false
; then :
17214 if ${ac_cv_search_dlopen+:} false
; then :
17217 ac_cv_search_dlopen
=no
17219 rm conftest.
$ac_ext
17220 LIBS
=$ac_func_search_save_LIBS
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17223 $as_echo "$ac_cv_search_dlopen" >&6; }
17224 ac_res
=$ac_cv_search_dlopen
17225 if test "$ac_res" != no
; then :
17226 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
17233 # Add macho support to GDB, but only if BFD includes it.
17236 OLD_LDFLAGS
=$LDFLAGS
17238 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
17239 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
17240 # always want our bfd.
17241 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
17242 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
17243 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
17244 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
17245 LIBS
="-lbfd -liberty -lz $intl $LIBS"
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
17247 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
17248 if ${gdb_cv_var_macho+:} false
; then :
17249 $as_echo_n "(cached) " >&6
17251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17252 /* end confdefs.h. */
17253 #include <stdlib.h>
17254 #include <string.h>
17256 #include "mach-o.h"
17260 return bfd_mach_o_lookup_command (NULL, 0, NULL);
17266 if ac_fn_c_try_link
"$LINENO"; then :
17267 gdb_cv_var_macho
=yes
17269 gdb_cv_var_macho
=no
17272 rm -f core conftest.err conftest.
$ac_objext \
17273 conftest
$ac_exeext conftest.
$ac_ext
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
17277 $as_echo "$gdb_cv_var_macho" >&6; }
17279 LDFLAGS
=$OLD_LDFLAGS
17281 if test "$gdb_cv_var_macho" = yes; then
17282 CONFIG_OBS
="$CONFIG_OBS machoread.o"
17285 # Add any host-specific objects to GDB.
17286 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
17288 # If building on ELF, look for lzma support for embedded compressed debug info.
17289 if test "$gdb_cv_var_elf" = yes; then
17291 # Check whether --with-lzma was given.
17292 if test "${with_lzma+set}" = set; then :
17293 withval
=$with_lzma;
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
17299 $as_echo_n "checking whether to use lzma... " >&6; }
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
17301 $as_echo "$with_lzma" >&6; }
17303 if test "${with_lzma}" != no
; then
17314 acl_save_prefix
="$prefix"
17315 prefix
="$acl_final_prefix"
17316 acl_save_exec_prefix
="$exec_prefix"
17317 exec_prefix
="$acl_final_exec_prefix"
17319 eval additional_includedir
=\"$includedir\"
17320 eval additional_libdir
=\"$libdir\"
17322 exec_prefix
="$acl_save_exec_prefix"
17323 prefix
="$acl_save_prefix"
17326 # Check whether --with-liblzma-prefix was given.
17327 if test "${with_liblzma_prefix+set}" = set; then :
17328 withval
=$with_liblzma_prefix;
17329 if test "X$withval" = "Xno"; then
17332 if test "X$withval" = "X"; then
17334 acl_save_prefix
="$prefix"
17335 prefix
="$acl_final_prefix"
17336 acl_save_exec_prefix
="$exec_prefix"
17337 exec_prefix
="$acl_final_exec_prefix"
17339 eval additional_includedir
=\"$includedir\"
17340 eval additional_libdir
=\"$libdir\"
17342 exec_prefix
="$acl_save_exec_prefix"
17343 prefix
="$acl_save_prefix"
17346 additional_includedir
="$withval/include"
17347 additional_libdir
="$withval/lib"
17354 # Check whether --with-liblzma-type was given.
17355 if test "${with_liblzma_type+set}" = set; then :
17356 withval
=$with_liblzma_type; with_liblzma_type
=$withval
17358 with_liblzma_type
=auto
17361 lib_type
=`eval echo \$with_liblzma_type`
17368 names_already_handled
=
17369 names_next_round
='lzma '
17370 while test -n "$names_next_round"; do
17371 names_this_round
="$names_next_round"
17373 for name
in $names_this_round; do
17375 for n
in $names_already_handled; do
17376 if test "$n" = "$name"; then
17377 already_handled
=yes
17381 if test -z "$already_handled"; then
17382 names_already_handled
="$names_already_handled $name"
17383 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17384 eval value
=\"\
$HAVE_LIB$uppername\"
17385 if test -n "$value"; then
17386 if test "$value" = yes; then
17387 eval value
=\"\
$LIB$uppername\"
17388 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
17389 eval value
=\"\
$LTLIB$uppername\"
17390 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
17399 if test $use_additional = yes; then
17400 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
17401 found_dir
="$additional_libdir"
17402 found_so
="$additional_libdir/lib$name.$shlibext"
17403 if test -f "$additional_libdir/lib$name.la"; then
17404 found_la
="$additional_libdir/lib$name.la"
17406 elif test x
$lib_type != xshared
; then
17407 if test -f "$additional_libdir/lib$name.$libext"; then
17408 found_dir
="$additional_libdir"
17409 found_a
="$additional_libdir/lib$name.$libext"
17410 if test -f "$additional_libdir/lib$name.la"; then
17411 found_la
="$additional_libdir/lib$name.la"
17416 if test "X$found_dir" = "X"; then
17417 for x
in $LDFLAGS $LTLIBLZMA; do
17419 acl_save_prefix
="$prefix"
17420 prefix
="$acl_final_prefix"
17421 acl_save_exec_prefix
="$exec_prefix"
17422 exec_prefix
="$acl_final_exec_prefix"
17424 exec_prefix
="$acl_save_exec_prefix"
17425 prefix
="$acl_save_prefix"
17429 dir
=`echo "X$x" | sed -e 's/^X-L//'`
17430 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
17432 found_so
="$dir/lib$name.$shlibext"
17433 if test -f "$dir/lib$name.la"; then
17434 found_la
="$dir/lib$name.la"
17436 elif test x
$lib_type != xshared
; then
17437 if test -f "$dir/lib$name.$libext"; then
17439 found_a
="$dir/lib$name.$libext"
17440 if test -f "$dir/lib$name.la"; then
17441 found_la
="$dir/lib$name.la"
17447 if test "X$found_dir" != "X"; then
17452 if test "X$found_dir" != "X"; then
17453 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
17454 if test "X$found_so" != "X"; then
17455 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
17456 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17459 for x
in $ltrpathdirs; do
17460 if test "X$x" = "X$found_dir"; then
17465 if test -z "$haveit"; then
17466 ltrpathdirs
="$ltrpathdirs $found_dir"
17468 if test "$hardcode_direct" = yes; then
17469 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17471 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
17472 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17474 for x
in $rpathdirs; do
17475 if test "X$x" = "X$found_dir"; then
17480 if test -z "$haveit"; then
17481 rpathdirs
="$rpathdirs $found_dir"
17485 for x
in $LDFLAGS $LIBLZMA; do
17487 acl_save_prefix
="$prefix"
17488 prefix
="$acl_final_prefix"
17489 acl_save_exec_prefix
="$exec_prefix"
17490 exec_prefix
="$acl_final_exec_prefix"
17492 exec_prefix
="$acl_save_exec_prefix"
17493 prefix
="$acl_save_prefix"
17495 if test "X$x" = "X-L$found_dir"; then
17500 if test -z "$haveit"; then
17501 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
17503 if test "$hardcode_minus_L" != no
; then
17504 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17506 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
17512 if test "X$found_a" != "X"; then
17513 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
17515 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
17518 additional_includedir
=
17519 case "$found_dir" in
17521 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17522 additional_includedir
="$basedir/include"
17525 if test "X$additional_includedir" != "X"; then
17526 if test "X$additional_includedir" != "X/usr/include"; then
17528 if test "X$additional_includedir" = "X/usr/local/include"; then
17529 if test -n "$GCC"; then
17531 linux
*) haveit
=yes;;
17535 if test -z "$haveit"; then
17536 for x
in $CPPFLAGS $INCLZMA; do
17538 acl_save_prefix
="$prefix"
17539 prefix
="$acl_final_prefix"
17540 acl_save_exec_prefix
="$exec_prefix"
17541 exec_prefix
="$acl_final_exec_prefix"
17543 exec_prefix
="$acl_save_exec_prefix"
17544 prefix
="$acl_save_prefix"
17546 if test "X$x" = "X-I$additional_includedir"; then
17551 if test -z "$haveit"; then
17552 if test -d "$additional_includedir"; then
17553 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
17559 if test -n "$found_la"; then
17560 save_libdir
="$libdir"
17561 case "$found_la" in
17562 */* |
*\\*) .
"$found_la" ;;
17563 *) .
"./$found_la" ;;
17565 libdir
="$save_libdir"
17566 for dep
in $dependency_libs; do
17569 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
17570 if test "X$additional_libdir" != "X/usr/lib"; then
17572 if test "X$additional_libdir" = "X/usr/local/lib"; then
17573 if test -n "$GCC"; then
17575 linux
*) haveit
=yes;;
17579 if test -z "$haveit"; then
17581 for x
in $LDFLAGS $LIBLZMA; do
17583 acl_save_prefix
="$prefix"
17584 prefix
="$acl_final_prefix"
17585 acl_save_exec_prefix
="$exec_prefix"
17586 exec_prefix
="$acl_final_exec_prefix"
17588 exec_prefix
="$acl_save_exec_prefix"
17589 prefix
="$acl_save_prefix"
17591 if test "X$x" = "X-L$additional_libdir"; then
17596 if test -z "$haveit"; then
17597 if test -d "$additional_libdir"; then
17598 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
17602 for x
in $LDFLAGS $LTLIBLZMA; do
17604 acl_save_prefix
="$prefix"
17605 prefix
="$acl_final_prefix"
17606 acl_save_exec_prefix
="$exec_prefix"
17607 exec_prefix
="$acl_final_exec_prefix"
17609 exec_prefix
="$acl_save_exec_prefix"
17610 prefix
="$acl_save_prefix"
17612 if test "X$x" = "X-L$additional_libdir"; then
17617 if test -z "$haveit"; then
17618 if test -d "$additional_libdir"; then
17619 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
17626 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
17627 if test "$enable_rpath" != no
; then
17629 for x
in $rpathdirs; do
17630 if test "X$x" = "X$dir"; then
17635 if test -z "$haveit"; then
17636 rpathdirs
="$rpathdirs $dir"
17639 for x
in $ltrpathdirs; do
17640 if test "X$x" = "X$dir"; then
17645 if test -z "$haveit"; then
17646 ltrpathdirs
="$ltrpathdirs $dir"
17651 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17654 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17657 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
17658 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
17664 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
17665 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
17666 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
17668 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l:lib$name.$libext"
17669 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l:lib$name.$libext"
17676 if test "X$rpathdirs" != "X"; then
17677 if test -n "$hardcode_libdir_separator"; then
17679 for found_dir
in $rpathdirs; do
17680 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17682 acl_save_libdir
="$libdir"
17684 eval flag
=\"$hardcode_libdir_flag_spec\"
17685 libdir
="$acl_save_libdir"
17686 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
17688 for found_dir
in $rpathdirs; do
17689 acl_save_libdir
="$libdir"
17690 libdir
="$found_dir"
17691 eval flag
=\"$hardcode_libdir_flag_spec\"
17692 libdir
="$acl_save_libdir"
17693 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
17697 if test "X$ltrpathdirs" != "X"; then
17698 for found_dir
in $ltrpathdirs; do
17699 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
17704 ac_save_CPPFLAGS
="$CPPFLAGS"
17706 for element
in $INCLZMA; do
17708 for x
in $CPPFLAGS; do
17710 acl_save_prefix
="$prefix"
17711 prefix
="$acl_final_prefix"
17712 acl_save_exec_prefix
="$exec_prefix"
17713 exec_prefix
="$acl_final_exec_prefix"
17715 exec_prefix
="$acl_save_exec_prefix"
17716 prefix
="$acl_save_prefix"
17718 if test "X$x" = "X$element"; then
17723 if test -z "$haveit"; then
17724 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
17729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
17730 $as_echo_n "checking for liblzma... " >&6; }
17731 if ${ac_cv_liblzma+:} false
; then :
17732 $as_echo_n "(cached) " >&6
17735 ac_save_LIBS
="$LIBS"
17736 LIBS
="$LIBS $LIBLZMA"
17737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17738 /* end confdefs.h. */
17743 lzma_index_iter iter;
17744 lzma_index_iter_init (&iter, 0);
17745 lzma_mf_is_supported (LZMA_MF_HC3);
17750 if ac_fn_c_try_link
"$LINENO"; then :
17755 rm -f core conftest.err conftest.
$ac_objext \
17756 conftest
$ac_exeext conftest.
$ac_ext
17757 LIBS
="$ac_save_LIBS"
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
17761 $as_echo "$ac_cv_liblzma" >&6; }
17762 if test "$ac_cv_liblzma" = yes; then
17765 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
17767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
17768 $as_echo_n "checking how to link with liblzma... " >&6; }
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
17770 $as_echo "$LIBLZMA" >&6; }
17773 CPPFLAGS
="$ac_save_CPPFLAGS"
17783 if test "$HAVE_LIBLZMA" != yes; then
17784 if test "$with_lzma" = yes; then
17785 as_fn_error $?
"missing liblzma for --with-lzma" "$LINENO" 5
17791 LIBGUI
="../libgui/src/libgui.a"
17792 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
17801 *-*-cygwin* |
*-*-mingw* )
17810 if test "${enable_gdbtk}" = "yes"; then
17812 # Gdbtk must have an absolute path to srcdir in order to run
17813 # properly when not installed.
17816 GDBTK_SRC_DIR
=`pwd`
17821 # Ok, lets find the tcl configuration
17822 # First, look for one uninstalled.
17823 # the alternative search directory is invoked by --with-tcl
17826 if test x
"${no_tcl}" = x
; then
17827 # we reset no_tcl in case something fails here
17830 # Check whether --with-tcl was given.
17831 if test "${with_tcl+set}" = set; then :
17832 withval
=$with_tcl; with_tclconfig
=${withval}
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
17836 $as_echo_n "checking for Tcl configuration... " >&6; }
17837 if ${ac_cv_c_tclconfig+:} false
; then :
17838 $as_echo_n "(cached) " >&6
17842 # First check to see if --with-tcl was specified.
17844 *-*-cygwin*) platDir
="win" ;;
17845 *) platDir
="unix" ;;
17847 if test x
"${with_tclconfig}" != x
; then
17848 if test -f "${with_tclconfig}/tclConfig.sh" ; then
17849 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
17851 as_fn_error $?
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
17855 # then check for a private Tcl installation
17856 if test x
"${ac_cv_c_tclconfig}" = x
; then
17859 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17860 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
17861 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
17863 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17864 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
17865 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
17867 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17868 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
17869 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
17870 if test -f "$i/$platDir/tclConfig.sh" ; then
17871 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
17877 # on Darwin, check in Framework installation locations
17878 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
17879 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
17880 `ls -d /Library/Frameworks 2>/dev/null` \
17881 `ls -d /Network/Library/Frameworks 2>/dev/null` \
17882 `ls -d /System/Library/Frameworks 2>/dev/null` \
17884 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
17885 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
17891 # check in a few common install locations
17892 if test x
"${ac_cv_c_tclconfig}" = x
; then
17893 for i
in `ls -d ${libdir} 2>/dev/null` \
17894 `ls -d ${exec_prefix}/lib 2>/dev/null` \
17895 `ls -d ${prefix}/lib 2>/dev/null` \
17896 `ls -d /usr/local/lib 2>/dev/null` \
17897 `ls -d /usr/contrib/lib 2>/dev/null` \
17898 `ls -d /usr/lib 2>/dev/null` \
17900 if test -f "$i/tclConfig.sh" ; then
17901 ac_cv_c_tclconfig
=`(cd $i; pwd)`
17907 # check in a few other private locations
17908 if test x
"${ac_cv_c_tclconfig}" = x
; then
17911 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17912 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
17913 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
17914 if test -f "$i/$platDir/tclConfig.sh" ; then
17915 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
17924 if test x
"${ac_cv_c_tclconfig}" = x
; then
17925 TCL_BIN_DIR
="# no Tcl configs found"
17926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
17927 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
17930 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
17932 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
17937 # If $no_tk is nonempty, then we can't do Tk, and there is no
17938 # point to doing Tcl.
17941 # Ok, lets find the tk configuration
17942 # First, look for one uninstalled.
17943 # the alternative search directory is invoked by --with-tk
17946 if test x
"${no_tk}" = x
; then
17947 # we reset no_tk in case something fails here
17950 # Check whether --with-tk was given.
17951 if test "${with_tk+set}" = set; then :
17952 withval
=$with_tk; with_tkconfig
=${withval}
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
17956 $as_echo_n "checking for Tk configuration... " >&6; }
17957 if ${ac_cv_c_tkconfig+:} false
; then :
17958 $as_echo_n "(cached) " >&6
17962 # First check to see if --with-tkconfig was specified.
17963 if test x
"${with_tkconfig}" != x
; then
17964 if test -f "${with_tkconfig}/tkConfig.sh" ; then
17965 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
17967 as_fn_error $?
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
17971 # then check for a private Tk library
17973 *-*-cygwin*) platDir
="win" ;;
17974 *) platDir
="unix" ;;
17976 if test x
"${ac_cv_c_tkconfig}" = x
; then
17979 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17980 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
17981 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
17983 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17984 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
17985 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
17987 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17988 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
17989 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
17990 if test -f "$i/$platDir/tkConfig.sh" ; then
17991 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
17997 # on Darwin, check in Framework installation locations
17998 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
17999 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
18000 `ls -d /Library/Frameworks 2>/dev/null` \
18001 `ls -d /Network/Library/Frameworks 2>/dev/null` \
18002 `ls -d /System/Library/Frameworks 2>/dev/null` \
18004 if test -f "$i/Tk.framework/tkConfig.sh" ; then
18005 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
18011 # check in a few common install locations
18012 if test x
"${ac_cv_c_tkconfig}" = x
; then
18013 for i
in `ls -d ${libdir} 2>/dev/null` \
18014 `ls -d ${exec_prefix}/lib 2>/dev/null` \
18015 `ls -d ${prefix}/lib 2>/dev/null` \
18016 `ls -d /usr/local/lib 2>/dev/null` \
18017 `ls -d /usr/contrib/lib 2>/dev/null` \
18018 `ls -d /usr/lib 2>/dev/null` \
18020 if test -f "$i/tkConfig.sh" ; then
18021 ac_cv_c_tkconfig
=`(cd $i; pwd)`
18026 # check in a few other private locations
18027 if test x
"${ac_cv_c_tkconfig}" = x
; then
18030 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
18031 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
18032 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
18033 if test -f "$i/$platDir/tkConfig.sh" ; then
18034 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
18043 if test x
"${ac_cv_c_tkconfig}" = x
; then
18044 TK_BIN_DIR
="# no Tk configs found"
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
18046 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
18049 TK_BIN_DIR
=${ac_cv_c_tkconfig}
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
18051 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
18056 if test -z "${no_tcl}" -a -z "${no_tk}"; then
18058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
18059 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
18061 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
18062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
18063 $as_echo "loading" >&6; }
18064 .
${TCL_BIN_DIR}/tclConfig.sh
18066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
18067 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
18070 # eval is required to do the TCL_DBGX substitution
18071 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
18072 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
18074 # If the TCL_BIN_DIR is the build directory (not the install directory),
18075 # then set the common variable name to the value of the build variables.
18076 # For example, the variable TCL_LIB_SPEC will be set to the value
18077 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
18078 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
18079 # installed and uninstalled version of Tcl.
18080 if test -f "${TCL_BIN_DIR}/Makefile" ; then
18081 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
18082 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
18083 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
18084 elif test "`uname -s`" = "Darwin"; then
18085 # If Tcl was built as a framework, attempt to use the libraries
18086 # from the framework at the given location so that linking works
18087 # against Tcl.framework installed in an arbitrary location.
18088 case ${TCL_DEFS} in
18090 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
18091 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
18092 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
18093 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
18094 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
18099 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
18100 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
18101 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
18107 # eval is required to do the TCL_DBGX substitution
18108 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
18109 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
18110 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
18111 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
18127 # Check for in-tree tcl
18134 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
18138 # Find Tcl private headers
18139 if test x
"${intree}" = xno
; then
18141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
18142 $as_echo_n "checking for Tcl private headers... " >&6; }
18144 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
18145 if test -f ${dir}/tclInt.h
; then
18149 if test x
"${private_dir}" = x
; then
18150 as_fn_error $?
"could not find private Tcl headers" "$LINENO" 5
18152 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
18154 $as_echo "${private_dir}" >&6; }
18157 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
18158 TCL_LIBRARY
="${TCL_LIB_SPEC}"
18161 # If building tcl in the same src tree, private headers
18162 # are not needed, but we need to be sure to use the right
18164 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
18165 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
18166 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
18174 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
18176 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
18178 $as_echo "loading" >&6; }
18179 .
${TK_BIN_DIR}/tkConfig.sh
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
18182 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
18185 # eval is required to do the TK_DBGX substitution
18186 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
18187 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
18189 # If the TK_BIN_DIR is the build directory (not the install directory),
18190 # then set the common variable name to the value of the build variables.
18191 # For example, the variable TK_LIB_SPEC will be set to the value
18192 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
18193 # instead of TK_BUILD_LIB_SPEC since it will work with both an
18194 # installed and uninstalled version of Tcl.
18195 if test -f "${TK_BIN_DIR}/Makefile" ; then
18196 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
18197 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
18198 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
18199 elif test "`uname -s`" = "Darwin"; then
18200 # If Tk was built as a framework, attempt to use the libraries
18201 # from the framework at the given location so that linking works
18202 # against Tk.framework installed in an arbitrary location.
18205 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
18206 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
18207 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
18208 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
18209 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
18214 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
18215 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
18216 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
18222 # eval is required to do the TK_DBGX substitution
18223 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
18224 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
18225 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
18226 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
18241 # Check for in-tree Tk
18243 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
18247 # Find Tk private headers
18248 if test x
"${intree}" = xno
; then
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
18251 $as_echo_n "checking for Tk private headers... " >&6; }
18253 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
18254 if test -f ${dir}/tkInt.h
; then
18258 if test x
"${private_dir}" = x
; then
18259 as_fn_error $?
"could not find Tk private headers" "$LINENO" 5
18261 TK_PRIVATE_INCLUDE
="-I${private_dir}"
18262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
18263 $as_echo "${private_dir}" >&6; }
18266 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
18267 TK_LIBRARY
=${TK_LIB_SPEC}
18270 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
18271 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
18272 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
18279 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
18281 # Include some libraries that Tcl and Tk want.
18282 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
18283 # Yes, the ordering seems wrong here. But it isn't.
18284 # TK_LIBS is the list of libraries that need to be linked
18285 # after Tcl/Tk. Note that this isn't put into LIBS. If it
18286 # were in LIBS then any link tests after this point would
18287 # try to include things like `$(LIBGUI)', which wouldn't work.
18288 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
18290 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
18291 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
18292 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
18293 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
18294 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
18295 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
18296 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
18298 if test x
"$gdb_cv_os_cygwin" = xyes
; then
18299 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
18300 WIN32LDAPP
="-Wl,--subsystem,console"
18301 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
18304 subdirs
="$subdirs gdbtk"
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
18317 $as_echo_n "checking for X... " >&6; }
18320 # Check whether --with-x was given.
18321 if test "${with_x+set}" = set; then :
18325 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18326 if test "x$with_x" = xno
; then
18327 # The user explicitly disabled X.
18330 case $x_includes,$x_libraries in #(
18331 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
18332 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
18333 $as_echo_n "(cached) " >&6
18335 # One or both of the vars are not set, and there is no cached value.
18336 ac_x_includes
=no ac_x_libraries
=no
18337 rm -f -r conftest.dir
18338 if mkdir conftest.dir
; then
18340 cat >Imakefile
<<'_ACEOF'
18342 @echo incroot='${INCROOT}'
18344 @echo usrlibdir='${USRLIBDIR}'
18346 @echo libdir='${LIBDIR}'
18348 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
18349 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
18350 for ac_var
in incroot usrlibdir libdir
; do
18351 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18353 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18354 for ac_extension
in a so sl dylib la dll
; do
18355 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18356 test -f "$ac_im_libdir/libX11.$ac_extension"; then
18357 ac_im_usrlibdir
=$ac_im_libdir; break
18360 # Screen out bogus values from the imake configuration. They are
18361 # bogus both because they are the default anyway, and because
18362 # using them would break gcc on systems where it needs fixed includes.
18363 case $ac_im_incroot in
18364 /usr
/include
) ac_x_includes
= ;;
18365 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
18367 case $ac_im_usrlibdir in
18368 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
18369 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
18373 rm -f -r conftest.dir
18376 # Standard set of common directories for X headers.
18377 # Check X11 before X11Rn because it is often a symlink to the current release.
18391 /usr/local/X11/include
18392 /usr/local/X11R7/include
18393 /usr/local/X11R6/include
18394 /usr/local/X11R5/include
18395 /usr/local/X11R4/include
18397 /usr/local/include/X11
18398 /usr/local/include/X11R7
18399 /usr/local/include/X11R6
18400 /usr/local/include/X11R5
18401 /usr/local/include/X11R4
18405 /usr/XFree86/include/X11
18409 /usr/unsupported/include
18410 /usr/athena/include
18411 /usr/local/x11r5/include
18412 /usr/lpp/Xamples/include
18414 /usr/openwin/include
18415 /usr/openwin/share/include'
18417 if test "$ac_x_includes" = no
; then
18418 # Guess where to find include files, by looking for Xlib.h.
18419 # First, try using that file with no special directory specified.
18420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18421 /* end confdefs.h. */
18422 #include <X11/Xlib.h>
18424 if ac_fn_c_try_cpp
"$LINENO"; then :
18425 # We can compile using X headers with no special include directory.
18428 for ac_dir
in $ac_x_header_dirs; do
18429 if test -r "$ac_dir/X11/Xlib.h"; then
18430 ac_x_includes
=$ac_dir
18435 rm -f conftest.err conftest.i conftest.
$ac_ext
18436 fi # $ac_x_includes = no
18438 if test "$ac_x_libraries" = no
; then
18439 # Check for the libraries.
18440 # See if we find them without any special options.
18441 # Don't add to $LIBS permanently.
18444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18445 /* end confdefs.h. */
18446 #include <X11/Xlib.h>
18455 if ac_fn_c_try_link
"$LINENO"; then :
18457 # We can link X programs with no special library path.
18461 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18463 # Don't even attempt the hair of trying to link an X program!
18464 for ac_extension
in a so sl dylib la dll
; do
18465 if test -r "$ac_dir/libX11.$ac_extension"; then
18466 ac_x_libraries
=$ac_dir
18472 rm -f core conftest.err conftest.
$ac_objext \
18473 conftest
$ac_exeext conftest.
$ac_ext
18474 fi # $ac_x_libraries = no
18476 case $ac_x_includes,$ac_x_libraries in #(
18477 no
,* |
*,no |
*\'*)
18478 # Didn't find X, or a directory has "'" in its name.
18479 ac_cv_have_x
="have_x=no";; #(
18481 # Record where we found X for the cache.
18482 ac_cv_have_x
="have_x=yes\
18483 ac_x_includes='$ac_x_includes'\
18484 ac_x_libraries='$ac_x_libraries'"
18490 eval "$ac_cv_have_x"
18493 if test "$have_x" != yes; then
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
18495 $as_echo "$have_x" >&6; }
18498 # If each of the values was on the command line, it overrides each guess.
18499 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
18500 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
18501 # Update the cache value to reflect the command line values.
18502 ac_cv_have_x
="have_x=yes\
18503 ac_x_includes='$x_includes'\
18504 ac_x_libraries='$x_libraries'"
18505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
18506 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
18510 # Unlike the sim directory, whether a simulator is linked is controlled by
18511 # presence of a gdb_sim definition in the target configure.tgt entry.
18512 # This code just checks for a few cases where we'd like to ignore those
18513 # definitions, even when they're present in the '.mt' file. These cases
18514 # are when --disable-sim is specified, or if the simulator directory is
18515 # not part of the source tree.
18517 # Check whether --enable-sim was given.
18518 if test "${enable_sim+set}" = set; then :
18519 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
18520 echo "enableval = ${enableval}";
18521 case "${enableval}" in
18522 yes) ignore_sim
=false
;;
18523 no
) ignore_sim
=true
;;
18524 *) ignore_sim
=false
;;
18531 if test ! -d "${srcdir}/../sim"; then
18537 if test "${ignore_sim}" = "false"; then
18538 if test x
"${gdb_sim}" != x
; then
18540 SIM_OBS
="remote-sim.o"
18542 $as_echo "#define WITH_SIM 1" >>confdefs.h
18545 # Some tdep code should only be compiled in when the ppc sim is
18546 # built. PR sim/13418.
18550 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
18570 # List of host floatformats.
18572 cat >>confdefs.h
<<_ACEOF
18573 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
18577 cat >>confdefs.h
<<_ACEOF
18578 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
18582 cat >>confdefs.h
<<_ACEOF
18583 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
18587 # target_subdir is used by the testsuite to find the target libraries.
18589 if test "${host}" != "${target}"; then
18590 target_subdir
="${target_alias}/"
18594 # Import nat definitions.
18595 nat_makefile_frag
=/dev
/null
18596 if test "${gdb_native}" = "yes"; then
18597 .
${srcdir}/configure.nat
18598 nativefile
=$NAT_FILE
18611 if test x
"${gdb_osabi}" != x
; then
18613 cat >>confdefs.h
<<_ACEOF
18614 #define GDB_OSABI_DEFAULT $gdb_osabi
18619 # Check for babeltrace and babeltrace-ctf
18621 # Check whether --with-babeltrace was given.
18622 if test "${with_babeltrace+set}" = set; then :
18623 withval
=$with_babeltrace;
18625 with_babeltrace
=auto
18628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
18629 $as_echo_n "checking whether to use babeltrace... " >&6; }
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
18631 $as_echo "$with_babeltrace" >&6; }
18633 if test "x$with_babeltrace" = "xno"; then
18634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
18635 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
18637 # Append -Werror to CFLAGS so that configure can catch the warning
18638 # "assignment from incompatible pointer type", which is related to
18639 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
18640 # in GDB, while babeltrace 1.0.3 is broken.
18641 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
18642 # safe to save and restore CFLAGS here.
18643 saved_CFLAGS
=$CFLAGS
18644 CFLAGS
="$CFLAGS -Werror"
18655 acl_save_prefix
="$prefix"
18656 prefix
="$acl_final_prefix"
18657 acl_save_exec_prefix
="$exec_prefix"
18658 exec_prefix
="$acl_final_exec_prefix"
18660 eval additional_includedir
=\"$includedir\"
18661 eval additional_libdir
=\"$libdir\"
18663 exec_prefix
="$acl_save_exec_prefix"
18664 prefix
="$acl_save_prefix"
18667 # Check whether --with-libbabeltrace-prefix was given.
18668 if test "${with_libbabeltrace_prefix+set}" = set; then :
18669 withval
=$with_libbabeltrace_prefix;
18670 if test "X$withval" = "Xno"; then
18673 if test "X$withval" = "X"; then
18675 acl_save_prefix
="$prefix"
18676 prefix
="$acl_final_prefix"
18677 acl_save_exec_prefix
="$exec_prefix"
18678 exec_prefix
="$acl_final_exec_prefix"
18680 eval additional_includedir
=\"$includedir\"
18681 eval additional_libdir
=\"$libdir\"
18683 exec_prefix
="$acl_save_exec_prefix"
18684 prefix
="$acl_save_prefix"
18687 additional_includedir
="$withval/include"
18688 additional_libdir
="$withval/lib"
18695 # Check whether --with-libbabeltrace-type was given.
18696 if test "${with_libbabeltrace_type+set}" = set; then :
18697 withval
=$with_libbabeltrace_type; with_libbabeltrace_type
=$withval
18699 with_libbabeltrace_type
=auto
18702 lib_type
=`eval echo \$with_libbabeltrace_type`
18709 names_already_handled
=
18710 names_next_round
='babeltrace babeltrace-ctf'
18711 while test -n "$names_next_round"; do
18712 names_this_round
="$names_next_round"
18714 for name
in $names_this_round; do
18716 for n
in $names_already_handled; do
18717 if test "$n" = "$name"; then
18718 already_handled
=yes
18722 if test -z "$already_handled"; then
18723 names_already_handled
="$names_already_handled $name"
18724 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18725 eval value
=\"\
$HAVE_LIB$uppername\"
18726 if test -n "$value"; then
18727 if test "$value" = yes; then
18728 eval value
=\"\
$LIB$uppername\"
18729 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
18730 eval value
=\"\
$LTLIB$uppername\"
18731 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
18740 if test $use_additional = yes; then
18741 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18742 found_dir
="$additional_libdir"
18743 found_so
="$additional_libdir/lib$name.$shlibext"
18744 if test -f "$additional_libdir/lib$name.la"; then
18745 found_la
="$additional_libdir/lib$name.la"
18747 elif test x
$lib_type != xshared
; then
18748 if test -f "$additional_libdir/lib$name.$libext"; then
18749 found_dir
="$additional_libdir"
18750 found_a
="$additional_libdir/lib$name.$libext"
18751 if test -f "$additional_libdir/lib$name.la"; then
18752 found_la
="$additional_libdir/lib$name.la"
18757 if test "X$found_dir" = "X"; then
18758 for x
in $LDFLAGS $LTLIBBABELTRACE; do
18760 acl_save_prefix
="$prefix"
18761 prefix
="$acl_final_prefix"
18762 acl_save_exec_prefix
="$exec_prefix"
18763 exec_prefix
="$acl_final_exec_prefix"
18765 exec_prefix
="$acl_save_exec_prefix"
18766 prefix
="$acl_save_prefix"
18770 dir
=`echo "X$x" | sed -e 's/^X-L//'`
18771 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18773 found_so
="$dir/lib$name.$shlibext"
18774 if test -f "$dir/lib$name.la"; then
18775 found_la
="$dir/lib$name.la"
18777 elif test x
$lib_type != xshared
; then
18778 if test -f "$dir/lib$name.$libext"; then
18780 found_a
="$dir/lib$name.$libext"
18781 if test -f "$dir/lib$name.la"; then
18782 found_la
="$dir/lib$name.la"
18788 if test "X$found_dir" != "X"; then
18793 if test "X$found_dir" != "X"; then
18794 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
18795 if test "X$found_so" != "X"; then
18796 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
18797 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18800 for x
in $ltrpathdirs; do
18801 if test "X$x" = "X$found_dir"; then
18806 if test -z "$haveit"; then
18807 ltrpathdirs
="$ltrpathdirs $found_dir"
18809 if test "$hardcode_direct" = yes; then
18810 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18812 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
18813 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18815 for x
in $rpathdirs; do
18816 if test "X$x" = "X$found_dir"; then
18821 if test -z "$haveit"; then
18822 rpathdirs
="$rpathdirs $found_dir"
18826 for x
in $LDFLAGS $LIBBABELTRACE; do
18828 acl_save_prefix
="$prefix"
18829 prefix
="$acl_final_prefix"
18830 acl_save_exec_prefix
="$exec_prefix"
18831 exec_prefix
="$acl_final_exec_prefix"
18833 exec_prefix
="$acl_save_exec_prefix"
18834 prefix
="$acl_save_prefix"
18836 if test "X$x" = "X-L$found_dir"; then
18841 if test -z "$haveit"; then
18842 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
18844 if test "$hardcode_minus_L" != no
; then
18845 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18847 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
18853 if test "X$found_a" != "X"; then
18854 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
18856 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
18859 additional_includedir
=
18860 case "$found_dir" in
18862 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18863 additional_includedir
="$basedir/include"
18866 if test "X$additional_includedir" != "X"; then
18867 if test "X$additional_includedir" != "X/usr/include"; then
18869 if test "X$additional_includedir" = "X/usr/local/include"; then
18870 if test -n "$GCC"; then
18872 linux
*) haveit
=yes;;
18876 if test -z "$haveit"; then
18877 for x
in $CPPFLAGS $INCBABELTRACE; do
18879 acl_save_prefix
="$prefix"
18880 prefix
="$acl_final_prefix"
18881 acl_save_exec_prefix
="$exec_prefix"
18882 exec_prefix
="$acl_final_exec_prefix"
18884 exec_prefix
="$acl_save_exec_prefix"
18885 prefix
="$acl_save_prefix"
18887 if test "X$x" = "X-I$additional_includedir"; then
18892 if test -z "$haveit"; then
18893 if test -d "$additional_includedir"; then
18894 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
18900 if test -n "$found_la"; then
18901 save_libdir
="$libdir"
18902 case "$found_la" in
18903 */* |
*\\*) .
"$found_la" ;;
18904 *) .
"./$found_la" ;;
18906 libdir
="$save_libdir"
18907 for dep
in $dependency_libs; do
18910 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
18911 if test "X$additional_libdir" != "X/usr/lib"; then
18913 if test "X$additional_libdir" = "X/usr/local/lib"; then
18914 if test -n "$GCC"; then
18916 linux
*) haveit
=yes;;
18920 if test -z "$haveit"; then
18922 for x
in $LDFLAGS $LIBBABELTRACE; do
18924 acl_save_prefix
="$prefix"
18925 prefix
="$acl_final_prefix"
18926 acl_save_exec_prefix
="$exec_prefix"
18927 exec_prefix
="$acl_final_exec_prefix"
18929 exec_prefix
="$acl_save_exec_prefix"
18930 prefix
="$acl_save_prefix"
18932 if test "X$x" = "X-L$additional_libdir"; then
18937 if test -z "$haveit"; then
18938 if test -d "$additional_libdir"; then
18939 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
18943 for x
in $LDFLAGS $LTLIBBABELTRACE; do
18945 acl_save_prefix
="$prefix"
18946 prefix
="$acl_final_prefix"
18947 acl_save_exec_prefix
="$exec_prefix"
18948 exec_prefix
="$acl_final_exec_prefix"
18950 exec_prefix
="$acl_save_exec_prefix"
18951 prefix
="$acl_save_prefix"
18953 if test "X$x" = "X-L$additional_libdir"; then
18958 if test -z "$haveit"; then
18959 if test -d "$additional_libdir"; then
18960 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
18967 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
18968 if test "$enable_rpath" != no
; then
18970 for x
in $rpathdirs; do
18971 if test "X$x" = "X$dir"; then
18976 if test -z "$haveit"; then
18977 rpathdirs
="$rpathdirs $dir"
18980 for x
in $ltrpathdirs; do
18981 if test "X$x" = "X$dir"; then
18986 if test -z "$haveit"; then
18987 ltrpathdirs
="$ltrpathdirs $dir"
18992 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18995 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18998 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
18999 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
19005 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
19006 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
19007 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
19009 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l:lib$name.$libext"
19010 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l:lib$name.$libext"
19017 if test "X$rpathdirs" != "X"; then
19018 if test -n "$hardcode_libdir_separator"; then
19020 for found_dir
in $rpathdirs; do
19021 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
19023 acl_save_libdir
="$libdir"
19025 eval flag
=\"$hardcode_libdir_flag_spec\"
19026 libdir
="$acl_save_libdir"
19027 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
19029 for found_dir
in $rpathdirs; do
19030 acl_save_libdir
="$libdir"
19031 libdir
="$found_dir"
19032 eval flag
=\"$hardcode_libdir_flag_spec\"
19033 libdir
="$acl_save_libdir"
19034 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
19038 if test "X$ltrpathdirs" != "X"; then
19039 for found_dir
in $ltrpathdirs; do
19040 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
19045 ac_save_CPPFLAGS
="$CPPFLAGS"
19047 for element
in $INCBABELTRACE; do
19049 for x
in $CPPFLAGS; do
19051 acl_save_prefix
="$prefix"
19052 prefix
="$acl_final_prefix"
19053 acl_save_exec_prefix
="$exec_prefix"
19054 exec_prefix
="$acl_final_exec_prefix"
19056 exec_prefix
="$acl_save_exec_prefix"
19057 prefix
="$acl_save_prefix"
19059 if test "X$x" = "X$element"; then
19064 if test -z "$haveit"; then
19065 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
19070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
19071 $as_echo_n "checking for libbabeltrace... " >&6; }
19072 if ${ac_cv_libbabeltrace+:} false
; then :
19073 $as_echo_n "(cached) " >&6
19076 ac_save_LIBS
="$LIBS"
19077 LIBS
="$LIBS $LIBBABELTRACE"
19078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19079 /* end confdefs.h. */
19080 #include <babeltrace/babeltrace.h>
19081 #include <babeltrace/ctf/events.h>
19082 #include <babeltrace/ctf/iterator.h>
19086 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
19087 struct bt_ctf_event *event = NULL;
19088 const struct bt_definition *scope;
19090 pos->type = BT_SEEK_BEGIN;
19091 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
19092 scope = bt_ctf_get_top_level_scope (event,
19093 BT_STREAM_EVENT_HEADER);
19094 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
19100 if ac_fn_c_try_link
"$LINENO"; then :
19101 ac_cv_libbabeltrace
=yes
19103 ac_cv_libbabeltrace
=no
19105 rm -f core conftest.err conftest.
$ac_objext \
19106 conftest
$ac_exeext conftest.
$ac_ext
19107 LIBS
="$ac_save_LIBS"
19110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
19111 $as_echo "$ac_cv_libbabeltrace" >&6; }
19112 if test "$ac_cv_libbabeltrace" = yes; then
19113 HAVE_LIBBABELTRACE
=yes
19115 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
19117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
19118 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
19119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
19120 $as_echo "$LIBBABELTRACE" >&6; }
19122 HAVE_LIBBABELTRACE
=no
19123 CPPFLAGS
="$ac_save_CPPFLAGS"
19133 CFLAGS
=$saved_CFLAGS
19135 if test "$HAVE_LIBBABELTRACE" != yes; then
19136 if test "$with_babeltrace" = yes; then
19137 as_fn_error $?
"babeltrace is missing or unusable" "$LINENO" 5
19139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
19140 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
19147 # Check whether --with-xxhash was given.
19148 if test "${with_xxhash+set}" = set; then :
19149 withval
=$with_xxhash;
19155 # Check whether --enable-libctf was given.
19156 if test "${enable_libctf+set}" = set; then :
19157 enableval
=$enable_libctf;
19158 case "$enableval" in
19160 *) as_fn_error $?
"Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
19168 if test x
${enable_static} = xno
; then
19169 LIBCTF
="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so"
19170 CTF_DEPS
="../libctf/.libs/libctf.so"
19172 LIBCTF
="../libctf/.libs/libctf.a"
19175 if test "${enable_libctf}" = yes; then
19177 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
19186 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
19189 if test "x$with_xxhash" != "xno"; then
19200 acl_save_prefix
="$prefix"
19201 prefix
="$acl_final_prefix"
19202 acl_save_exec_prefix
="$exec_prefix"
19203 exec_prefix
="$acl_final_exec_prefix"
19205 eval additional_includedir
=\"$includedir\"
19206 eval additional_libdir
=\"$libdir\"
19208 exec_prefix
="$acl_save_exec_prefix"
19209 prefix
="$acl_save_prefix"
19212 # Check whether --with-libxxhash-prefix was given.
19213 if test "${with_libxxhash_prefix+set}" = set; then :
19214 withval
=$with_libxxhash_prefix;
19215 if test "X$withval" = "Xno"; then
19218 if test "X$withval" = "X"; then
19220 acl_save_prefix
="$prefix"
19221 prefix
="$acl_final_prefix"
19222 acl_save_exec_prefix
="$exec_prefix"
19223 exec_prefix
="$acl_final_exec_prefix"
19225 eval additional_includedir
=\"$includedir\"
19226 eval additional_libdir
=\"$libdir\"
19228 exec_prefix
="$acl_save_exec_prefix"
19229 prefix
="$acl_save_prefix"
19232 additional_includedir
="$withval/include"
19233 additional_libdir
="$withval/lib"
19240 # Check whether --with-libxxhash-type was given.
19241 if test "${with_libxxhash_type+set}" = set; then :
19242 withval
=$with_libxxhash_type; with_libxxhash_type
=$withval
19244 with_libxxhash_type
=auto
19247 lib_type
=`eval echo \$with_libxxhash_type`
19254 names_already_handled
=
19255 names_next_round
='xxhash '
19256 while test -n "$names_next_round"; do
19257 names_this_round
="$names_next_round"
19259 for name
in $names_this_round; do
19261 for n
in $names_already_handled; do
19262 if test "$n" = "$name"; then
19263 already_handled
=yes
19267 if test -z "$already_handled"; then
19268 names_already_handled
="$names_already_handled $name"
19269 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
19270 eval value
=\"\
$HAVE_LIB$uppername\"
19271 if test -n "$value"; then
19272 if test "$value" = yes; then
19273 eval value
=\"\
$LIB$uppername\"
19274 test -z "$value" || LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$value"
19275 eval value
=\"\
$LTLIB$uppername\"
19276 test -z "$value" || LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$value"
19285 if test $use_additional = yes; then
19286 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
19287 found_dir
="$additional_libdir"
19288 found_so
="$additional_libdir/lib$name.$shlibext"
19289 if test -f "$additional_libdir/lib$name.la"; then
19290 found_la
="$additional_libdir/lib$name.la"
19292 elif test x
$lib_type != xshared
; then
19293 if test -f "$additional_libdir/lib$name.$libext"; then
19294 found_dir
="$additional_libdir"
19295 found_a
="$additional_libdir/lib$name.$libext"
19296 if test -f "$additional_libdir/lib$name.la"; then
19297 found_la
="$additional_libdir/lib$name.la"
19302 if test "X$found_dir" = "X"; then
19303 for x
in $LDFLAGS $LTLIBXXHASH; do
19305 acl_save_prefix
="$prefix"
19306 prefix
="$acl_final_prefix"
19307 acl_save_exec_prefix
="$exec_prefix"
19308 exec_prefix
="$acl_final_exec_prefix"
19310 exec_prefix
="$acl_save_exec_prefix"
19311 prefix
="$acl_save_prefix"
19315 dir
=`echo "X$x" | sed -e 's/^X-L//'`
19316 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
19318 found_so
="$dir/lib$name.$shlibext"
19319 if test -f "$dir/lib$name.la"; then
19320 found_la
="$dir/lib$name.la"
19322 elif test x
$lib_type != xshared
; then
19323 if test -f "$dir/lib$name.$libext"; then
19325 found_a
="$dir/lib$name.$libext"
19326 if test -f "$dir/lib$name.la"; then
19327 found_la
="$dir/lib$name.la"
19333 if test "X$found_dir" != "X"; then
19338 if test "X$found_dir" != "X"; then
19339 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$found_dir -l$name"
19340 if test "X$found_so" != "X"; then
19341 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
19342 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19345 for x
in $ltrpathdirs; do
19346 if test "X$x" = "X$found_dir"; then
19351 if test -z "$haveit"; then
19352 ltrpathdirs
="$ltrpathdirs $found_dir"
19354 if test "$hardcode_direct" = yes; then
19355 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19357 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
19358 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19360 for x
in $rpathdirs; do
19361 if test "X$x" = "X$found_dir"; then
19366 if test -z "$haveit"; then
19367 rpathdirs
="$rpathdirs $found_dir"
19371 for x
in $LDFLAGS $LIBXXHASH; do
19373 acl_save_prefix
="$prefix"
19374 prefix
="$acl_final_prefix"
19375 acl_save_exec_prefix
="$exec_prefix"
19376 exec_prefix
="$acl_final_exec_prefix"
19378 exec_prefix
="$acl_save_exec_prefix"
19379 prefix
="$acl_save_prefix"
19381 if test "X$x" = "X-L$found_dir"; then
19386 if test -z "$haveit"; then
19387 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir"
19389 if test "$hardcode_minus_L" != no
; then
19390 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19392 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
19398 if test "X$found_a" != "X"; then
19399 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_a"
19401 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir -l$name"
19404 additional_includedir
=
19405 case "$found_dir" in
19407 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
19408 additional_includedir
="$basedir/include"
19411 if test "X$additional_includedir" != "X"; then
19412 if test "X$additional_includedir" != "X/usr/include"; then
19414 if test "X$additional_includedir" = "X/usr/local/include"; then
19415 if test -n "$GCC"; then
19417 linux
*) haveit
=yes;;
19421 if test -z "$haveit"; then
19422 for x
in $CPPFLAGS $INCXXHASH; do
19424 acl_save_prefix
="$prefix"
19425 prefix
="$acl_final_prefix"
19426 acl_save_exec_prefix
="$exec_prefix"
19427 exec_prefix
="$acl_final_exec_prefix"
19429 exec_prefix
="$acl_save_exec_prefix"
19430 prefix
="$acl_save_prefix"
19432 if test "X$x" = "X-I$additional_includedir"; then
19437 if test -z "$haveit"; then
19438 if test -d "$additional_includedir"; then
19439 INCXXHASH
="${INCXXHASH}${INCXXHASH:+ }-I$additional_includedir"
19445 if test -n "$found_la"; then
19446 save_libdir
="$libdir"
19447 case "$found_la" in
19448 */* |
*\\*) .
"$found_la" ;;
19449 *) .
"./$found_la" ;;
19451 libdir
="$save_libdir"
19452 for dep
in $dependency_libs; do
19455 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
19456 if test "X$additional_libdir" != "X/usr/lib"; then
19458 if test "X$additional_libdir" = "X/usr/local/lib"; then
19459 if test -n "$GCC"; then
19461 linux
*) haveit
=yes;;
19465 if test -z "$haveit"; then
19467 for x
in $LDFLAGS $LIBXXHASH; do
19469 acl_save_prefix
="$prefix"
19470 prefix
="$acl_final_prefix"
19471 acl_save_exec_prefix
="$exec_prefix"
19472 exec_prefix
="$acl_final_exec_prefix"
19474 exec_prefix
="$acl_save_exec_prefix"
19475 prefix
="$acl_save_prefix"
19477 if test "X$x" = "X-L$additional_libdir"; then
19482 if test -z "$haveit"; then
19483 if test -d "$additional_libdir"; then
19484 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$additional_libdir"
19488 for x
in $LDFLAGS $LTLIBXXHASH; do
19490 acl_save_prefix
="$prefix"
19491 prefix
="$acl_final_prefix"
19492 acl_save_exec_prefix
="$exec_prefix"
19493 exec_prefix
="$acl_final_exec_prefix"
19495 exec_prefix
="$acl_save_exec_prefix"
19496 prefix
="$acl_save_prefix"
19498 if test "X$x" = "X-L$additional_libdir"; then
19503 if test -z "$haveit"; then
19504 if test -d "$additional_libdir"; then
19505 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$additional_libdir"
19512 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
19513 if test "$enable_rpath" != no
; then
19515 for x
in $rpathdirs; do
19516 if test "X$x" = "X$dir"; then
19521 if test -z "$haveit"; then
19522 rpathdirs
="$rpathdirs $dir"
19525 for x
in $ltrpathdirs; do
19526 if test "X$x" = "X$dir"; then
19531 if test -z "$haveit"; then
19532 ltrpathdirs
="$ltrpathdirs $dir"
19537 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19540 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19543 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$dep"
19544 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$dep"
19550 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
19551 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
19552 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l$name"
19554 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l:lib$name.$libext"
19555 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l:lib$name.$libext"
19562 if test "X$rpathdirs" != "X"; then
19563 if test -n "$hardcode_libdir_separator"; then
19565 for found_dir
in $rpathdirs; do
19566 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
19568 acl_save_libdir
="$libdir"
19570 eval flag
=\"$hardcode_libdir_flag_spec\"
19571 libdir
="$acl_save_libdir"
19572 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
19574 for found_dir
in $rpathdirs; do
19575 acl_save_libdir
="$libdir"
19576 libdir
="$found_dir"
19577 eval flag
=\"$hardcode_libdir_flag_spec\"
19578 libdir
="$acl_save_libdir"
19579 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
19583 if test "X$ltrpathdirs" != "X"; then
19584 for found_dir
in $ltrpathdirs; do
19585 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-R$found_dir"
19590 ac_save_CPPFLAGS
="$CPPFLAGS"
19592 for element
in $INCXXHASH; do
19594 for x
in $CPPFLAGS; do
19596 acl_save_prefix
="$prefix"
19597 prefix
="$acl_final_prefix"
19598 acl_save_exec_prefix
="$exec_prefix"
19599 exec_prefix
="$acl_final_exec_prefix"
19601 exec_prefix
="$acl_save_exec_prefix"
19602 prefix
="$acl_save_prefix"
19604 if test "X$x" = "X$element"; then
19609 if test -z "$haveit"; then
19610 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5
19616 $as_echo_n "checking for libxxhash... " >&6; }
19617 if ${ac_cv_libxxhash+:} false
; then :
19618 $as_echo_n "(cached) " >&6
19621 ac_save_LIBS
="$LIBS"
19622 LIBS
="$LIBS $LIBXXHASH"
19623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19624 /* end confdefs.h. */
19625 #include <xxhash.h>
19629 XXH32("foo", 3, 0);
19635 if ac_fn_c_try_link
"$LINENO"; then :
19636 ac_cv_libxxhash
=yes
19640 rm -f core conftest.err conftest.
$ac_objext \
19641 conftest
$ac_exeext conftest.
$ac_ext
19642 LIBS
="$ac_save_LIBS"
19645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxxhash" >&5
19646 $as_echo "$ac_cv_libxxhash" >&6; }
19647 if test "$ac_cv_libxxhash" = yes; then
19650 $as_echo "#define HAVE_LIBXXHASH 1" >>confdefs.h
19652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libxxhash" >&5
19653 $as_echo_n "checking how to link with libxxhash... " >&6; }
19654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXXHASH" >&5
19655 $as_echo "$LIBXXHASH" >&6; }
19658 CPPFLAGS
="$ac_save_CPPFLAGS"
19668 if test "$HAVE_LIBXXHASH" != yes; then
19669 if test "$with_xxhash" = yes; then
19670 as_fn_error $?
"xxhash is missing or unusable" "$LINENO" 5
19673 if test "x$with_xxhash" = "xauto"; then
19674 with_xxhash
="$HAVE_LIBXXHASH"
19678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
19679 $as_echo_n "checking whether to use xxhash... " >&6; }
19680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
19681 $as_echo "$with_xxhash" >&6; }
19685 if test "${nativefile}" != ""; then
19686 case "${nativefile}" in
19687 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
19688 * ) GDB_NM_FILE
="${nativefile}"
19690 ac_config_links
="$ac_config_links nm.h:$GDB_NM_FILE"
19693 cat >>confdefs.h
<<_ACEOF
19694 #define GDB_NM_FILE "${GDB_NM_FILE}"
19702 for ac_prog
in xsltproc
19704 # Extract the first word of "$ac_prog", so it can be a program name with args.
19705 set dummy
$ac_prog; ac_word
=$2
19706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19707 $as_echo_n "checking for $ac_word... " >&6; }
19708 if ${ac_cv_path_XSLTPROC+:} false
; then :
19709 $as_echo_n "(cached) " >&6
19713 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
19716 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19717 for as_dir
in $PATH
19720 test -z "$as_dir" && as_dir
=.
19721 for ac_exec_ext
in '' $ac_executable_extensions; do
19722 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19723 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
19724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19734 XSLTPROC
=$ac_cv_path_XSLTPROC
19735 if test -n "$XSLTPROC"; then
19736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19737 $as_echo "$XSLTPROC" >&6; }
19739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19740 $as_echo "no" >&6; }
19744 test -n "$XSLTPROC" && break
19746 test -n "$XSLTPROC" || XSLTPROC
="missing"
19748 if test "x$USE_MAINTAINER_MODE" = xyes
; then
19749 if test "${XSLTPROC}" = missing
; then
19750 as_fn_error $?
"unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
19758 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
19762 # Check whether we will enable the inclusion of unit tests when
19765 # The default value of this option changes depending whether we're on
19766 # development mode (in which case it's "true") or not (in which case
19767 # it's "false"). The $development variable is set by the GDB_AC_COMMON
19768 # macro, which must therefore be used before GDB_AC_SELFTEST.
19770 if test "x$development" != xtrue
&& test "x$development" != xfalse
; then :
19771 as_fn_error $?
"Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
19774 # Check whether --enable-unit-tests was given.
19775 if test "${enable_unit_tests+set}" = set; then :
19776 enableval
=$enable_unit_tests; case "${enableval}" in
19777 yes) enable_unittests
=true
;;
19778 no
) enable_unittests
=false
;;
19779 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
19782 enable_unittests
=$development
19786 if $enable_unittests; then
19788 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
19791 CONFIG_OBS
="$CONFIG_OBS \$(SELFTESTS_OBS)"
19792 CONFIG_SRCS
="$CONFIG_SRCS \$(SELFTESTS_SRCS)"
19798 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19799 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
19800 if test "x$GDB_TRANSFORM_NAME" = x
; then
19801 GDB_TRANSFORM_NAME
=gdb
19806 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19807 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
19808 if test "x$GCORE_TRANSFORM_NAME" = x
; then
19809 GCORE_TRANSFORM_NAME
=gcore
19813 ac_config_files
="$ac_config_files gcore"
19815 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
19818 cat >confcache
<<\_ACEOF
19819 # This file is a shell script that caches the results of configure
19820 # tests run on this system so they can be shared between configure
19821 # scripts and configure runs, see configure's option --config-cache.
19822 # It is not useful on other systems. If it contains results you don't
19823 # want to keep, you may remove or edit it.
19825 # config.status only pays attention to the cache file if you give it
19826 # the --recheck option to rerun configure.
19828 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19829 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19830 # following values.
19834 # The following way of writing the cache mishandles newlines in values,
19835 # but we know of no workaround that is simple, portable, and efficient.
19836 # So, we kill variables containing newlines.
19837 # Ultrix sh set writes to stderr and can't be redirected directly,
19838 # and sets the high bit in the cache file unless we assign to the vars.
19840 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19841 eval ac_val
=\$
$ac_var
19845 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19846 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19849 _ | IFS | as_nl
) ;; #(
19850 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
19851 *) { eval $ac_var=; unset $ac_var;} ;;
19857 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19858 *${as_nl}ac_space
=\
*)
19859 # `set' does not quote correctly, so add quotes: double-quote
19860 # substitution turns \\\\ into \\, and sed turns \\ into \.
19863 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19866 # `set' quotes correctly as required by POSIX, so do not add quotes.
19867 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19876 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19878 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19880 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
19881 if test -w "$cache_file"; then
19882 if test "x$cache_file" != "x/dev/null"; then
19883 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19884 $as_echo "$as_me: updating cache $cache_file" >&6;}
19885 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
19886 cat confcache
>"$cache_file"
19888 case $cache_file in #(
19890 mv -f confcache
"$cache_file"$$
&&
19891 mv -f "$cache_file"$$
"$cache_file" ;; #(
19893 mv -f confcache
"$cache_file" ;;
19898 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19899 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19904 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19905 # Let make expand exec_prefix.
19906 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19908 DEFS
=-DHAVE_CONFIG_H
19913 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19914 # 1. Remove the extension, and $U if already installed.
19915 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
19916 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
19917 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19918 # will be set to the directory where LIBOBJS objects are built.
19919 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19920 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
19922 LIBOBJS
=$ac_libobjs
19924 LTLIBOBJS
=$ac_ltlibobjs
19927 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19928 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
19929 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19931 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
19932 as_fn_error $?
"conditional \"HAVE_PYTHON\" was never defined.
19933 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19935 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
19936 as_fn_error $?
"conditional \"HAVE_GUILE\" was never defined.
19937 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19941 : "${CONFIG_STATUS=./config.status}"
19943 ac_clean_files_save
=$ac_clean_files
19944 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19945 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19946 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19948 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19950 # Generated by $as_me.
19951 # Run this file to recreate the current configuration.
19952 # Compiler output produced by configure, useful for debugging
19953 # configure, is in config.log if it exists.
19956 ac_cs_recheck=false
19959 SHELL=\${CONFIG_SHELL-$SHELL}
19962 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
19963 ## -------------------- ##
19964 ## M4sh Initialization. ##
19965 ## -------------------- ##
19967 # Be more Bourne compatible
19968 DUALCASE
=1; export DUALCASE
# for MKS sh
19969 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
19972 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19973 # is contrary to our usage. Disable this feature.
19974 alias -g '${1+"$@"}'='"$@"'
19975 setopt NO_GLOB_SUBST
19977 case `(set -o) 2>/dev/null` in #(
19989 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19990 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19991 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19992 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19993 # Prefer a ksh shell builtin over an external printf program on Solaris,
19994 # but without wasting forks for bash or zsh.
19995 if test -z "$BASH_VERSION$ZSH_VERSION" \
19996 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19997 as_echo='print
-r --'
19998 as_echo_n='print
-rn --'
19999 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20000 as_echo='printf %s
\n'
20001 as_echo_n='printf %s
'
20003 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20004 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
20005 as_echo_n='/usr
/ucb
/echo -n'
20007 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20008 as_echo_n_body='eval
20012 expr "X$arg" : "X\\(.*\\)$as_nl";
20013 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20015 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
20017 export as_echo_n_body
20018 as_echo_n='sh
-c $as_echo_n_body as_echo
'
20020 export as_echo_body
20021 as_echo='sh
-c $as_echo_body as_echo
'
20024 # The user is always right.
20025 if test "${PATH_SEPARATOR+set}" != set; then
20027 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20028 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20035 # We need space, tab and new line, in precisely that order. Quoting is
20036 # there to prevent editors from complaining about space-tab.
20037 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20038 # splitting by setting IFS to empty value.)
20041 # Find who we are. Look in the path if we contain no directory separator.
20044 *[\\/]* ) as_myself=$0 ;;
20045 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20046 for as_dir in $PATH
20049 test -z "$as_dir" && as_dir=.
20050 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20056 # We did not find ourselves, most probably we were run as `sh COMMAND'
20057 # in which case we are not to be found in the path.
20058 if test "x$as_myself" = x
; then
20061 if test ! -f "$as_myself"; then
20062 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20066 # Unset variables that we do not need and which cause bugs (e.g. in
20067 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20068 # suppresses any "Segmentation fault" message there. '((' could
20069 # trigger a bug in pdksh 5.2.14.
20070 for as_var
in BASH_ENV ENV MAIL MAILPATH
20071 do eval test x\
${$as_var+set} = xset \
20072 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
20085 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
20088 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20089 # ----------------------------------------
20090 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20091 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20092 # script with STATUS, using 1 if that was 0.
20095 as_status
=$1; test $as_status -eq 0 && as_status
=1
20097 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
20098 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20100 $as_echo "$as_me: error: $2" >&2
20101 as_fn_exit
$as_status
20105 # as_fn_set_status STATUS
20106 # -----------------------
20107 # Set $? to STATUS, without forking.
20108 as_fn_set_status
()
20111 } # as_fn_set_status
20113 # as_fn_exit STATUS
20114 # -----------------
20115 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20119 as_fn_set_status
$1
20125 # Portably unset VAR.
20128 { eval $1=; unset $1;}
20130 as_unset
=as_fn_unset
20131 # as_fn_append VAR VALUE
20132 # ----------------------
20133 # Append the text in VALUE to the end of the definition contained in VAR. Take
20134 # advantage of any shell optimizations that allow amortized linear growth over
20135 # repeated appends, instead of the typical quadratic growth present in naive
20137 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
20138 eval 'as_fn_append ()
20149 # as_fn_arith ARG...
20150 # ------------------
20151 # Perform arithmetic evaluation on the ARGs, and store the result in the
20152 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20153 # must be portable across $(()) and expr.
20154 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
20155 eval 'as_fn_arith ()
20162 as_val
=`expr "$@" || test $? -eq 1`
20167 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20168 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20174 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20175 as_basename
=basename
20180 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
20186 as_me
=`$as_basename -- "$0" ||
20187 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20188 X"$0" : 'X\(//\)$' \| \
20189 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20191 sed '/^.*\/\([^/][^/]*\)\/*$/{
20205 # Avoid depending upon Character Ranges.
20206 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
20207 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20208 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
20209 as_cr_digits
='0123456789'
20210 as_cr_alnum
=$as_cr_Letters$as_cr_digits
20212 ECHO_C
= ECHO_N
= ECHO_T
=
20213 case `echo -n x` in #(((((
20215 case `echo 'xy\c'` in
20216 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
20218 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
20225 rm -f conf$$ conf$$.exe conf$$.
file
20226 if test -d conf$$.dir
; then
20227 rm -f conf$$.dir
/conf$$.
file
20230 mkdir conf$$.dir
2>/dev
/null
20232 if (echo >conf$$.
file) 2>/dev
/null
; then
20233 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20235 # ... but there are two gotchas:
20236 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20237 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20238 # In both cases, we have to default to `cp -pR'.
20239 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
20241 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20249 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
20250 rmdir conf$$.dir
2>/dev
/null
20255 # Create "$as_dir" as a directory, including parents if necessary.
20260 -*) as_dir
=.
/$as_dir;;
20262 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
20266 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20267 *) as_qdir
=$as_dir;;
20269 as_dirs
="'$as_qdir' $as_dirs"
20270 as_dir
=`$as_dirname -- "$as_dir" ||
20271 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20272 X"$as_dir" : 'X\(//\)[^/]' \| \
20273 X"$as_dir" : 'X\(//\)$' \| \
20274 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20275 $as_echo X"$as_dir" |
20276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20280 /^X\(\/\/\)[^/].*/{
20293 test -d "$as_dir" && break
20295 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
20296 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
20300 if mkdir
-p .
2>/dev
/null
; then
20301 as_mkdir_p
='mkdir -p "$as_dir"'
20303 test -d .
/-p && rmdir .
/-p
20308 # as_fn_executable_p FILE
20309 # -----------------------
20310 # Test if FILE is an executable regular file.
20311 as_fn_executable_p
()
20313 test -f "$1" && test -x "$1"
20314 } # as_fn_executable_p
20315 as_test_x
='test -x'
20316 as_executable_p
=as_fn_executable_p
20318 # Sed expression to map a string onto a valid CPP name.
20319 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20321 # Sed expression to map a string onto a valid variable name.
20322 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20326 ## ----------------------------------- ##
20327 ## Main body of $CONFIG_STATUS script. ##
20328 ## ----------------------------------- ##
20330 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
20332 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20333 # Save the log message, to keep $0 and so on meaningful, and to
20334 # report actual input values of CONFIG_FILES etc. instead of their
20335 # values after options handling.
20337 This file was extended by $as_me, which was
20338 generated by GNU Autoconf 2.69. Invocation command line was
20340 CONFIG_FILES = $CONFIG_FILES
20341 CONFIG_HEADERS = $CONFIG_HEADERS
20342 CONFIG_LINKS = $CONFIG_LINKS
20343 CONFIG_COMMANDS = $CONFIG_COMMANDS
20346 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20351 case $ac_config_files in *"
20352 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
20355 case $ac_config_headers in *"
20356 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
20360 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20361 # Files that config.status was made for.
20362 config_files="$ac_config_files"
20363 config_headers="$ac_config_headers"
20364 config_links="$ac_config_links"
20365 config_commands="$ac_config_commands"
20369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20371 \`$as_me' instantiates files and other configuration actions
20372 from templates according to the current configuration. Unless the files
20373 and actions are specified as TAGs, all are instantiated by default.
20375 Usage: $0 [OPTION]... [TAG]...
20377 -h, --help print this help, then exit
20378 -V, --version print version number and configuration settings, then exit
20379 --config print configuration, then exit
20380 -q, --quiet, --silent
20381 do not print progress messages
20382 -d, --debug don't remove temporary files
20383 --recheck update $as_me by reconfiguring in the same conditions
20384 --file=FILE[:TEMPLATE]
20385 instantiate the configuration file FILE
20386 --header=FILE[:TEMPLATE]
20387 instantiate the configuration header FILE
20389 Configuration files:
20392 Configuration headers:
20395 Configuration links:
20398 Configuration commands:
20401 Report bugs to the package provider."
20404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20405 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20408 configured by $0, generated by GNU Autoconf 2.69,
20409 with options \\"\$ac_cs_config\\"
20411 Copyright (C) 2012 Free Software Foundation, Inc.
20412 This config.status script is free software; the Free Software Foundation
20413 gives unlimited permission to copy, distribute and modify it."
20419 test -n "\$AWK" || AWK=awk
20422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20423 # The default lists apply if the user does not specify any file.
20429 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20430 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20434 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20446 # Handling of the options.
20447 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20449 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20450 $as_echo "$ac_cs_version"; exit ;;
20451 --config |
--confi |
--conf |
--con |
--co |
--c )
20452 $as_echo "$ac_cs_config"; exit ;;
20453 --debug |
--debu |
--deb |
--de |
--d |
-d )
20455 --file |
--fil |
--fi |
--f )
20458 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20459 '') as_fn_error $?
"missing file argument" ;;
20461 as_fn_append CONFIG_FILES
" '$ac_optarg'"
20462 ac_need_defaults
=false
;;
20463 --header |
--heade |
--head |
--hea )
20466 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20468 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
20469 ac_need_defaults
=false
;;
20471 # Conflict between --help and --header
20472 as_fn_error $?
"ambiguous option: \`$1'
20473 Try \`$0 --help' for more information.";;
20474 --help |
--hel |
-h )
20475 $as_echo "$ac_cs_usage"; exit ;;
20476 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20477 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20480 # This is an error.
20481 -*) as_fn_error $?
"unrecognized option: \`$1'
20482 Try \`$0 --help' for more information." ;;
20484 *) as_fn_append ac_config_targets
" $1"
20485 ac_need_defaults
=false
;;
20491 ac_configure_extra_args
=
20493 if $ac_cs_silent; then
20495 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20500 if \$ac_cs_recheck; then
20501 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20503 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20504 CONFIG_SHELL='$SHELL'
20505 export CONFIG_SHELL
20510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20514 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20515 ## Running $as_me. ##
20521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20525 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
20526 GDB_NM_FILE=$GDB_NM_FILE
20530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20532 # Handling of arguments.
20533 for ac_config_target
in $ac_config_targets
20535 case $ac_config_target in
20536 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
20537 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
20538 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
20539 "nm.h") CONFIG_LINKS
="$CONFIG_LINKS nm.h:$GDB_NM_FILE" ;;
20540 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
20541 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20542 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
20543 "gdb-gdb.py") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.py" ;;
20544 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
20545 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
20547 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20552 # If the user did not use the arguments to specify the items to instantiate,
20553 # then the envvar interface is used. Set only those that are not.
20554 # We use the long form for the default assignment because of an extremely
20555 # bizarre bug on SunOS 4.1.3.
20556 if $ac_need_defaults; then
20557 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20558 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20559 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
20560 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20563 # Have a temporary directory for convenience. Make it in the build tree
20564 # simply because there is no reason against having it here, and in addition,
20565 # creating and moving files from /tmp can sometimes cause problems.
20566 # Hook for its removal unless debugging.
20567 # Note that there is a small window in which the directory will not be cleaned:
20568 # after its creation but before its name has been assigned to `$tmp'.
20572 trap 'exit_status=$?
20573 : "${ac_tmp:=$tmp}"
20574 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20576 trap 'as_fn_exit 1' 1 2 13 15
20578 # Create a (secure) tmp directory for tmp files.
20581 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20585 tmp
=.
/conf$$
-$RANDOM
20586 (umask 077 && mkdir
"$tmp")
20587 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
20590 # Set up the scripts for CONFIG_FILES section.
20591 # No need to generate them if there are no CONFIG_FILES.
20592 # This happens for instance with `./config.status config.h'.
20593 if test -n "$CONFIG_FILES"; then
20595 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
20596 ac_cs_awk_getline
=:
20597 ac_cs_awk_pipe_init
=
20598 ac_cs_awk_read_file
='
20599 while ((getline aline < (F[key])) > 0)
20602 ac_cs_awk_pipe_fini
=
20604 ac_cs_awk_getline
=false
20605 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
20606 ac_cs_awk_read_file
='
20608 print "cat " F[key] " &&"
20609 '$ac_cs_awk_pipe_init
20610 # The final `:' finishes the AND list.
20611 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
20613 ac_cr
=`echo X | tr X '\015'`
20614 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20615 # But we know of no other shell where ac_cr would be empty at this
20616 # point, so we can use a bashism as a fallback.
20617 if test "x$ac_cr" = x
; then
20618 eval ac_cr
=\$
\'\\r
\'
20620 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20621 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20624 ac_cs_awk_cr
=$ac_cr
20627 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20630 # Create commands to substitute file output variables.
20632 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20633 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
20634 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
20637 } >conf$
$files.sh
&&
20638 . .
/conf$
$files.sh ||
20639 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
20640 rm -f conf$
$files.sh
20643 echo "cat >conf$$subs.awk <<_ACEOF" &&
20644 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20646 } >conf$$subs.sh ||
20647 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20648 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20650 for ac_last_try in false false false false false :; do
20651 . ./conf$$subs.sh ||
20652 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20654 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20655 if test $ac_delim_n = $ac_delim_num; then
20657 elif $ac_last_try; then
20658 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20660 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20663 rm -f conf$$subs.sh
20665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20666 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
20670 s/^/S["/; s
/!.
*/"]=/
20680 s/\(.\{148\}\)..*/\1/
20682 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
20687 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20694 s/\(.\{148\}\)..*/\1/
20696 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
20700 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20705 ' <conf$$subs.awk | sed '
20710 ' >>$CONFIG_STATUS || ac_write_fail=1
20711 rm -f conf$$subs.awk
20712 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20714 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
20715 for (key in S) S_is_set[key] = 1
20717 \$ac_cs_awk_pipe_init
20721 nfields = split(line, field, "@
")
20723 len = length(field[1])
20724 for (i = 2; i < nfields; i++) {
20726 keylen = length(key)
20727 if (S_is_set[key]) {
20729 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20730 len += length(value) + length(field[++i])
20735 if (nfields == 3 && !substed) {
20737 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
20738 \$ac_cs_awk_read_file
20744 \$ac_cs_awk_pipe_fini
20747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20748 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20749 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
20752 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
20753 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
20756 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20757 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
20758 # trailing colons and then remove the whole line if VPATH becomes empty
20759 # (actually we leave an empty line to preserve line numbers).
20760 if test "x
$srcdir" = x.; then
20761 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20780 fi # test -n "$CONFIG_FILES"
20782 # Set up the scripts for CONFIG_HEADERS section.
20783 # No need to generate them if there are no CONFIG_HEADERS.
20784 # This happens for instance with `./config.status Makefile'.
20785 if test -n "$CONFIG_HEADERS"; then
20786 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
20790 # Transform confdefs.h into an awk script `defines.awk', embedded as
20791 # here-document in config.status, that substitutes the proper values into
20792 # config.h.in to produce config.h.
20794 # Create a delimiter string that does not exist in confdefs.h, to ease
20795 # handling of long lines.
20797 for ac_last_try in false false :; do
20798 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
20799 if test -z "$ac_tt"; then
20801 elif $ac_last_try; then
20802 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
20804 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20808 # For the awk script, D is an array of macro values keyed by name,
20809 # likewise P contains macro parameters if any. Preserve backslash
20810 # newline sequences.
20812 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20814 s/.\{148\}/&'"$ac_delim"'/g
20817 s/^[ ]*#[ ]*define[ ][ ]*/ /
20824 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
20826 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
20830 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
20831 D["\
1"]=" \
3\\\\\\n
"\\/p
20833 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
20838 s/.\{148\}/&'"$ac_delim"'/g
20843 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
20846 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
20848 ' <confdefs.h | sed '
20849 s/'"$ac_delim"'/"\\\
20850 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20853 for (key in D) D_is_set[key] = 1
20856 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20858 split(line, arg, " ")
20859 if (arg[1] == "#") {
20863 defundef
= substr
(arg
[1], 2)
20866 split(mac1
, mac2
, "(") #)
20868 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
20869 if (D_is_set
[macro
]) {
20870 # Preserve the white space surrounding the "#".
20871 print prefix
"define", macro P
[macro
] D
[macro
]
20874 # Replace #undef with comments. This is necessary, for example,
20875 # in the case of _POSIX_SOURCE, which is predefined and required
20876 # on some systems where configure will not decide to define it.
20877 if (defundef
== "undef") {
20878 print
"/*", prefix defundef
, macro
, "*/"
20886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20887 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
20888 fi # test -n "$CONFIG_HEADERS"
20891 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
20896 :[FHLC
]) ac_mode
=$ac_tag; continue;;
20898 case $ac_mode$ac_tag in
20900 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
20901 :[FH
]-) ac_tag
=-:-;;
20902 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
20919 -) ac_f
="$ac_tmp/stdin";;
20920 *) # Look for the file first in the build tree, then in the source tree
20921 # (if the path is not absolute). The absolute path cannot be DOS-style,
20922 # because $ac_f cannot contain `:'.
20926 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
20928 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20930 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20931 as_fn_append ac_file_inputs
" '$ac_f'"
20934 # Let's still pretend it is `configure' which instantiates (i.e., don't
20935 # use $as_me), people would be surprised to read:
20936 # /* config.h. Generated by config.status. */
20937 configure_input
='Generated from '`
20938 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20940 if test x
"$ac_file" != x-
; then
20941 configure_input
="$ac_file. $configure_input"
20942 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20943 $as_echo "$as_me: creating $ac_file" >&6;}
20945 # Neutralize special characters interpreted by sed in replacement strings.
20946 case $configure_input in #(
20947 *\
&* |
*\|
* |
*\\* )
20948 ac_sed_conf_input
=`$as_echo "$configure_input" |
20949 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20950 *) ac_sed_conf_input
=$configure_input;;
20954 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
20955 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
20960 ac_dir
=`$as_dirname -- "$ac_file" ||
20961 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20962 X"$ac_file" : 'X\(//\)[^/]' \| \
20963 X"$ac_file" : 'X\(//\)$' \| \
20964 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20965 $as_echo X"$ac_file" |
20966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20970 /^X\(\/\/\)[^/].*/{
20983 as_dir
="$ac_dir"; as_fn_mkdir_p
20987 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20989 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20990 # A ".." for each directory in $ac_dir_suffix.
20991 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20992 case $ac_top_builddir_sub in
20993 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20994 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20997 ac_abs_top_builddir
=$ac_pwd
20998 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
20999 # for backward compatibility:
21000 ac_top_builddir
=$ac_top_build_prefix
21003 .
) # We are building in place.
21005 ac_top_srcdir
=$ac_top_builddir_sub
21006 ac_abs_top_srcdir
=$ac_pwd ;;
21007 [\\/]* | ?
:[\\/]* ) # Absolute name.
21008 ac_srcdir
=$srcdir$ac_dir_suffix;
21009 ac_top_srcdir
=$srcdir
21010 ac_abs_top_srcdir
=$srcdir ;;
21011 *) # Relative name.
21012 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
21013 ac_top_srcdir
=$ac_top_build_prefix$srcdir
21014 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
21016 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
21026 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
21027 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
21031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21032 # If the template does not know about datarootdir, expand it.
21033 # FIXME: This hack should be removed a few years after 2.60.
21034 ac_datarootdir_hack
=; ac_datarootdir_seen
=
21045 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21046 *datarootdir
*) ac_datarootdir_seen
=yes;;
21047 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
21048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21049 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21052 ac_datarootdir_hack='
21053 s&@datadir@&$datadir&g
21054 s&@docdir@&$docdir&g
21055 s&@infodir@&$infodir&g
21056 s&@localedir@&$localedir&g
21057 s&@mandir@&$mandir&g
21058 s&\\\${datarootdir}&$datarootdir&g' ;;
21062 # Neutralize VPATH when `$srcdir' = `.'.
21063 # Shell code in configure.ac might set extrasub.
21064 # FIXME: do we really want to maintain this feature?
21065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21066 ac_sed_extra="$ac_vpsub
21069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21071 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
21072 s|@configure_input@|
$ac_sed_conf_input|
;t t
21073 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
21074 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
21075 s
&@srcdir@
&$ac_srcdir&;t t
21076 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
21077 s
&@top_srcdir@
&$ac_top_srcdir&;t t
21078 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
21079 s
&@builddir@
&$ac_builddir&;t t
21080 s
&@abs_builddir@
&$ac_abs_builddir&;t t
21081 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
21082 s
&@INSTALL@
&$ac_INSTALL&;t t
21083 $ac_datarootdir_hack
21085 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
21086 if $ac_cs_awk_getline; then
21087 $AWK -f "$ac_tmp/subs.
awk"
21089 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
21091 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
21093 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21094 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
21095 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21096 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
21097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
21098 which seems to be undefined. Please make sure it is defined" >&5
21099 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
21100 which seems to be undefined. Please make sure it is defined" >&2;}
21102 rm -f "$ac_tmp/stdin"
21104 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21105 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21107 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21113 if test x"$ac_file" != x-; then
21115 $as_echo "/* $configure_input */" \
21116 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21117 } >"$ac_tmp/config.h" \
21118 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21119 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21120 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21121 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21124 mv "$ac_tmp/config.h" "$ac_file" \
21125 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21128 $as_echo "/* $configure_input */" \
21129 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21130 || as_fn_error $? "could not create -" "$LINENO" 5
21138 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
21141 # Prefer the file from the source tree if names are identical.
21142 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
21143 ac_source=$srcdir/$ac_source
21146 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
21147 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
21149 if test ! -r "$ac_source"; then
21150 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
21154 # Try a relative symlink, then a hard link, then a copy.
21156 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
21157 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
21159 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
21160 ln "$ac_source" "$ac_file" 2>/dev/null ||
21161 cp -p "$ac_source" "$ac_file" ||
21162 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
21165 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21166 $as_echo "$as_me: executing $ac_file commands" >&6;}
21171 case $ac_file$ac_mode in
21172 "config.h":H) echo > stamp-h ;;
21173 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
21174 "nm.h":L) echo > stamp-nmh ;;
21175 "gcore":F) chmod +x gcore ;;
21183 ac_clean_files=$ac_clean_files_save
21185 test $ac_write_fail = 0 ||
21186 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21189 # configure is writing to config.log, and then calls config.status.
21190 # config.status does its own redirection, appending to config.log.
21191 # Unfortunately, on DOS this fails, as config.log is still kept open
21192 # by configure, so config.status won't be able to
write to it
; its
21193 # output is simply discarded. So we exec the FD to /dev/null,
21194 # effectively closing config.log, so it can be properly (re)opened and
21195 # appended to by config.status. When coming back to configure, we
21196 # need to make the FD available again.
21197 if test "$no_create" != yes; then
21199 ac_config_status_args
=
21200 test "$silent" = yes &&
21201 ac_config_status_args
="$ac_config_status_args --quiet"
21203 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21205 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21206 # would make configure fail if this is the last instruction.
21207 $ac_cs_success || as_fn_exit
1
21211 # CONFIG_SUBDIRS section.
21213 if test "$no_recursion" != yes; then
21215 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
21216 # so they do not pile up.
21217 ac_sub_configure_args
=
21219 eval "set x $ac_configure_args"
21223 if test -n "$ac_prev"; then
21228 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
21229 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
21230 ac_prev
=cache_file
;;
21231 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
21232 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
21235 --config-cache |
-C)
21237 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
21239 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
21241 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
21243 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
21245 --disable-option-checking)
21249 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21251 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
21255 # Always prepend --prefix to ensure using the same prefix
21256 # in subdir configurations.
21257 ac_arg
="--prefix=$prefix"
21259 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21261 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
21264 if test "$silent" = yes; then
21265 ac_sub_configure_args
="--silent $ac_sub_configure_args"
21268 # Always prepend --disable-option-checking to silence warnings, since
21269 # different subdirs can have different --enable and --with options.
21270 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
21273 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
21275 # Do not complain, so a configure script can configure whichever
21276 # parts of a large source tree are present.
21277 test -d "$srcdir/$ac_dir" ||
continue
21279 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21280 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
21281 $as_echo "$ac_msg" >&6
21282 as_dir
="$ac_dir"; as_fn_mkdir_p
21286 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21288 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21289 # A ".." for each directory in $ac_dir_suffix.
21290 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21291 case $ac_top_builddir_sub in
21292 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21293 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
21296 ac_abs_top_builddir
=$ac_pwd
21297 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
21298 # for backward compatibility:
21299 ac_top_builddir
=$ac_top_build_prefix
21302 .
) # We are building in place.
21304 ac_top_srcdir
=$ac_top_builddir_sub
21305 ac_abs_top_srcdir
=$ac_pwd ;;
21306 [\\/]* | ?
:[\\/]* ) # Absolute name.
21307 ac_srcdir
=$srcdir$ac_dir_suffix;
21308 ac_top_srcdir
=$srcdir
21309 ac_abs_top_srcdir
=$srcdir ;;
21310 *) # Relative name.
21311 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
21312 ac_top_srcdir
=$ac_top_build_prefix$srcdir
21313 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
21315 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
21320 # Check for guested configure; otherwise get Cygnus style configure.
21321 if test -f "$ac_srcdir/configure.gnu"; then
21322 ac_sub_configure
=$ac_srcdir/configure.gnu
21323 elif test -f "$ac_srcdir/configure"; then
21324 ac_sub_configure
=$ac_srcdir/configure
21325 elif test -f "$ac_srcdir/configure.in"; then
21326 # This should be Cygnus configure.
21327 ac_sub_configure
=$ac_aux_dir/configure
21329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
21330 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21334 # The recursion is here.
21335 if test -n "$ac_sub_configure"; then
21336 # Make the cache file name correct relative to the subdirectory.
21337 case $cache_file in
21338 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
21339 *) # Relative name.
21340 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
21343 { $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
21344 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21345 # The eval makes quoting arguments work.
21346 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21347 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21348 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
21354 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
21355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21356 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}