2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="main.c"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
622 enable_option_checking
=no
624 ac_subst_vars
='LTLIBOBJS
640 HAVE_NATIVE_GCORE_HOST
743 READLINE_TEXI_INCFLAG
772 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
917 with_system_gdbinit_dir
919 enable_build_warnings
920 enable_gdb_build_warnings
930 with_libbabeltrace_prefix
931 with_libbabeltrace_type
934 with_libxxhash_prefix
938 ac_precious_vars
='build_alias
960 ac_subdirs_all
='testsuite
963 # Initialize some variables set by options.
965 ac_init_version
=false
966 ac_unrecognized_opts
=
968 # The variables have the same names as the options, with
969 # dashes changed to underlines.
977 program_transform_name
=s
,x
,x
,
985 # Installation directory options.
986 # These are left unexpanded so users can "make install exec_prefix=/foo"
987 # and all the variables that are supposed to be based on exec_prefix
988 # by default will actually change.
989 # Use braces instead of parens because sh, perl, etc. also accept them.
990 # (The list follows the same order as the GNU Coding Standards.)
991 bindir
='${exec_prefix}/bin'
992 sbindir
='${exec_prefix}/sbin'
993 libexecdir
='${exec_prefix}/libexec'
994 datarootdir
='${prefix}/share'
995 datadir
='${datarootdir}'
996 sysconfdir
='${prefix}/etc'
997 sharedstatedir
='${prefix}/com'
998 localstatedir
='${prefix}/var'
999 includedir
='${prefix}/include'
1000 oldincludedir
='/usr/include'
1001 docdir
='${datarootdir}/doc/${PACKAGE}'
1002 infodir
='${datarootdir}/info'
1007 libdir
='${exec_prefix}/lib'
1008 localedir
='${datarootdir}/locale'
1009 mandir
='${datarootdir}/man'
1015 # If the previous option needs an argument, assign it.
1016 if test -n "$ac_prev"; then
1017 eval $ac_prev=\
$ac_option
1023 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1028 # Accept the important Cygnus configure options, so we can diagnose typos.
1030 case $ac_dashdash$ac_option in
1034 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1036 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1037 bindir
=$ac_optarg ;;
1039 -build |
--build |
--buil |
--bui |
--bu)
1040 ac_prev
=build_alias
;;
1041 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1042 build_alias
=$ac_optarg ;;
1044 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1045 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1046 ac_prev
=cache_file
;;
1047 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1048 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1049 cache_file
=$ac_optarg ;;
1051 --config-cache |
-C)
1052 cache_file
=config.cache
;;
1054 -datadir |
--datadir |
--datadi |
--datad)
1056 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1057 datadir
=$ac_optarg ;;
1059 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1060 |
--dataroo |
--dataro |
--datar)
1061 ac_prev
=datarootdir
;;
1062 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1063 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1064 datarootdir
=$ac_optarg ;;
1066 -disable-* |
--disable-*)
1067 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1070 as_fn_error $?
"invalid feature name: $ac_useropt"
1071 ac_useropt_orig
=$ac_useropt
1072 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1073 case $ac_user_opts in
1075 "enable_
$ac_useropt"
1077 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1078 ac_unrecognized_sep
=', ';;
1080 eval enable_
$ac_useropt=no
;;
1082 -docdir |
--docdir |
--docdi |
--doc |
--do)
1084 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1085 docdir
=$ac_optarg ;;
1087 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1089 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1090 dvidir
=$ac_optarg ;;
1092 -enable-* |
--enable-*)
1093 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1094 # Reject names that are not valid shell variable names.
1095 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1096 as_fn_error $?
"invalid feature name: $ac_useropt"
1097 ac_useropt_orig
=$ac_useropt
1098 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099 case $ac_user_opts in
1101 "enable_
$ac_useropt"
1103 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1104 ac_unrecognized_sep
=', ';;
1106 eval enable_
$ac_useropt=\
$ac_optarg ;;
1108 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1109 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1110 |
--exec |
--exe |
--ex)
1111 ac_prev
=exec_prefix
;;
1112 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1113 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1114 |
--exec=* |
--exe=* |
--ex=*)
1115 exec_prefix
=$ac_optarg ;;
1117 -gas |
--gas |
--ga |
--g)
1118 # Obsolete; use --with-gas.
1121 -help |
--help |
--hel |
--he |
-h)
1122 ac_init_help
=long
;;
1123 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1124 ac_init_help
=recursive
;;
1125 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1126 ac_init_help
=short
;;
1128 -host |
--host |
--hos |
--ho)
1129 ac_prev
=host_alias
;;
1130 -host=* |
--host=* |
--hos=* |
--ho=*)
1131 host_alias
=$ac_optarg ;;
1133 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1135 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1137 htmldir
=$ac_optarg ;;
1139 -includedir |
--includedir |
--includedi |
--included |
--include \
1140 |
--includ |
--inclu |
--incl |
--inc)
1141 ac_prev
=includedir
;;
1142 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1143 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1144 includedir
=$ac_optarg ;;
1146 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1148 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1149 infodir
=$ac_optarg ;;
1151 -libdir |
--libdir |
--libdi |
--libd)
1153 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1154 libdir
=$ac_optarg ;;
1156 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1157 |
--libexe |
--libex |
--libe)
1158 ac_prev
=libexecdir
;;
1159 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1160 |
--libexe=* |
--libex=* |
--libe=*)
1161 libexecdir
=$ac_optarg ;;
1163 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1164 ac_prev
=localedir
;;
1165 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1166 localedir
=$ac_optarg ;;
1168 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1169 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1170 ac_prev
=localstatedir
;;
1171 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1172 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1173 localstatedir
=$ac_optarg ;;
1175 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1177 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1178 mandir
=$ac_optarg ;;
1180 -nfp |
--nfp |
--nf)
1181 # Obsolete; use --without-fp.
1184 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1185 |
--no-cr |
--no-c |
-n)
1188 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1189 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1192 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1193 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1194 |
--oldin |
--oldi |
--old |
--ol |
--o)
1195 ac_prev
=oldincludedir
;;
1196 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1197 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1198 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1199 oldincludedir
=$ac_optarg ;;
1201 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1203 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1204 prefix
=$ac_optarg ;;
1206 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1207 |
--program-pre |
--program-pr |
--program-p)
1208 ac_prev
=program_prefix
;;
1209 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1210 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1211 program_prefix
=$ac_optarg ;;
1213 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1214 |
--program-suf |
--program-su |
--program-s)
1215 ac_prev
=program_suffix
;;
1216 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1217 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1218 program_suffix
=$ac_optarg ;;
1220 -program-transform-name |
--program-transform-name \
1221 |
--program-transform-nam |
--program-transform-na \
1222 |
--program-transform-n |
--program-transform- \
1223 |
--program-transform |
--program-transfor \
1224 |
--program-transfo |
--program-transf \
1225 |
--program-trans |
--program-tran \
1226 |
--progr-tra |
--program-tr |
--program-t)
1227 ac_prev
=program_transform_name
;;
1228 -program-transform-name=* |
--program-transform-name=* \
1229 |
--program-transform-nam=* |
--program-transform-na=* \
1230 |
--program-transform-n=* |
--program-transform-=* \
1231 |
--program-transform=* |
--program-transfor=* \
1232 |
--program-transfo=* |
--program-transf=* \
1233 |
--program-trans=* |
--program-tran=* \
1234 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1235 program_transform_name
=$ac_optarg ;;
1237 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1239 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1240 pdfdir
=$ac_optarg ;;
1242 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1244 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1247 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1248 |
-silent |
--silent |
--silen |
--sile |
--sil)
1251 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1253 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1255 sbindir
=$ac_optarg ;;
1257 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1258 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1259 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1261 ac_prev
=sharedstatedir
;;
1262 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1263 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1264 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1266 sharedstatedir
=$ac_optarg ;;
1268 -site |
--site |
--sit)
1270 -site=* |
--site=* |
--sit=*)
1273 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1275 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1276 srcdir
=$ac_optarg ;;
1278 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1279 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1280 ac_prev
=sysconfdir
;;
1281 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1282 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1283 sysconfdir
=$ac_optarg ;;
1285 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1286 ac_prev
=target_alias
;;
1287 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1288 target_alias
=$ac_optarg ;;
1290 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1293 -version |
--version |
--versio |
--versi |
--vers |
-V)
1294 ac_init_version
=: ;;
1297 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1298 # Reject names that are not valid shell variable names.
1299 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1300 as_fn_error $?
"invalid package name: $ac_useropt"
1301 ac_useropt_orig
=$ac_useropt
1302 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1303 case $ac_user_opts in
1307 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1308 ac_unrecognized_sep
=', ';;
1310 eval with_
$ac_useropt=\
$ac_optarg ;;
1312 -without-* |
--without-*)
1313 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1314 # Reject names that are not valid shell variable names.
1315 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1316 as_fn_error $?
"invalid package name: $ac_useropt"
1317 ac_useropt_orig
=$ac_useropt
1318 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1319 case $ac_user_opts in
1323 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1324 ac_unrecognized_sep
=', ';;
1326 eval with_
$ac_useropt=no
;;
1329 # Obsolete; use --with-x.
1332 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1333 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1334 ac_prev
=x_includes
;;
1335 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1336 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1337 x_includes
=$ac_optarg ;;
1339 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1340 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1341 ac_prev
=x_libraries
;;
1342 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1343 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1344 x_libraries
=$ac_optarg ;;
1346 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1347 Try \`$0 --help' for more information"
1351 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1352 # Reject names that are not valid shell variable names.
1353 case $ac_envvar in #(
1354 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1355 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1357 eval $ac_envvar=\
$ac_optarg
1358 export $ac_envvar ;;
1361 # FIXME: should be removed in autoconf 3.0.
1362 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1363 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1364 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1365 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1371 if test -n "$ac_prev"; then
1372 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1373 as_fn_error $?
"missing argument to $ac_option"
1376 if test -n "$ac_unrecognized_opts"; then
1377 case $enable_option_checking in
1379 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1380 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1384 # Check all directory arguments for consistency.
1385 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1386 datadir sysconfdir sharedstatedir localstatedir includedir \
1387 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1388 libdir localedir mandir
1390 eval ac_val
=\$
$ac_var
1391 # Remove trailing slashes.
1394 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1395 eval $ac_var=\
$ac_val;;
1397 # Be sure to have absolute directory names.
1399 [\\/$
]* | ?
:[\\/]* ) continue;;
1400 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1402 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1405 # There might be people who depend on the old broken behavior: `$host'
1406 # used to hold the argument of --host etc.
1407 # FIXME: To remove some day.
1410 target
=$target_alias
1412 # FIXME: To remove some day.
1413 if test "x$host_alias" != x
; then
1414 if test "x$build_alias" = x
; then
1415 cross_compiling
=maybe
1416 elif test "x$build_alias" != "x$host_alias"; then
1422 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1424 test "$silent" = yes && exec 6>/dev
/null
1427 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1428 ac_ls_di
=`ls -di .` &&
1429 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1430 as_fn_error $?
"working directory cannot be determined"
1431 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1432 as_fn_error $?
"pwd does not report name of working directory"
1435 # Find the source files, if location was not specified.
1436 if test -z "$srcdir"; then
1437 ac_srcdir_defaulted
=yes
1438 # Try the directory containing this script, then the parent directory.
1439 ac_confdir
=`$as_dirname -- "$as_myself" ||
1440 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1441 X"$as_myself" : 'X\(//\)[^/]' \| \
1442 X"$as_myself" : 'X\(//\)$' \| \
1443 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1444 $as_echo X"$as_myself" |
1445 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1463 if test ! -r "$srcdir/$ac_unique_file"; then
1467 ac_srcdir_defaulted
=no
1469 if test ! -r "$srcdir/$ac_unique_file"; then
1470 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1471 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1473 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1475 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1477 # When building in place, set srcdir=.
1478 if test "$ac_abs_confdir" = "$ac_pwd"; then
1481 # Remove unnecessary trailing slashes from srcdir.
1482 # Double slashes in file names in object file debugging info
1483 # mess up M-x gdb in Emacs.
1485 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1487 for ac_var
in $ac_precious_vars; do
1488 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1489 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1490 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1491 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1495 # Report the --help message.
1497 if test "$ac_init_help" = "long"; then
1498 # Omit some internal or obsolete options to make the list less imposing.
1499 # This message is too long to be a string in the A/UX 3.1 sh.
1501 \`configure' configures this package to adapt to many kinds of systems.
1503 Usage: $0 [OPTION]... [VAR=VALUE]...
1505 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1506 VAR=VALUE. See below for descriptions of some of the useful variables.
1508 Defaults for the options are specified in brackets.
1511 -h, --help display this help and exit
1512 --help=short display options specific to this package
1513 --help=recursive display the short help of all the included packages
1514 -V, --version display version information and exit
1515 -q, --quiet, --silent do not print \`checking ...' messages
1516 --cache-file=FILE cache test results in FILE [disabled]
1517 -C, --config-cache alias for \`--cache-file=config.cache'
1518 -n, --no-create do not create output files
1519 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1521 Installation directories:
1522 --prefix=PREFIX install architecture-independent files in PREFIX
1523 [$ac_default_prefix]
1524 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1527 By default, \`make install' will install all the files in
1528 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1529 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1530 for instance \`--prefix=\$HOME'.
1532 For better control, use the options below.
1534 Fine tuning of the installation directories:
1535 --bindir=DIR user executables [EPREFIX/bin]
1536 --sbindir=DIR system admin executables [EPREFIX/sbin]
1537 --libexecdir=DIR program executables [EPREFIX/libexec]
1538 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1539 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1540 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1541 --libdir=DIR object code libraries [EPREFIX/lib]
1542 --includedir=DIR C header files [PREFIX/include]
1543 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1544 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1545 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1546 --infodir=DIR info documentation [DATAROOTDIR/info]
1547 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1548 --mandir=DIR man documentation [DATAROOTDIR/man]
1549 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1550 --htmldir=DIR html documentation [DOCDIR]
1551 --dvidir=DIR dvi documentation [DOCDIR]
1552 --pdfdir=DIR pdf documentation [DOCDIR]
1553 --psdir=DIR ps documentation [DOCDIR]
1559 --program-prefix=PREFIX prepend PREFIX to installed program names
1560 --program-suffix=SUFFIX append SUFFIX to installed program names
1561 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1564 --x-includes=DIR X include files are
in DIR
1565 --x-libraries=DIR X library files are
in DIR
1568 --build=BUILD configure
for building on BUILD
[guessed
]
1569 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1570 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1574 if test -n "$ac_init_help"; then
1579 --disable-option-checking ignore unrecognized
--enable/--with options
1580 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1581 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1582 --enable-maintainer-mode
1583 enable make rules and dependencies not useful
(and
1584 sometimes confusing
) to the casual installer
1585 --enable-plugins Enable support
for plugins
1586 --disable-largefile omit support
for large files
1587 --enable-targets=TARGETS
1588 alternative target configurations
1589 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1590 --disable-gdbmi disable machine-interface
(MI
)
1591 --enable-tui enable full-screen terminal user interface
(TUI
)
1592 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1593 --enable-profiling enable profiling of GDB
1594 --enable-codesign=CERT sign gdb with
'codesign -s CERT'
1595 --disable-rpath do not hardcode runtime library paths
1596 --enable-source-highlight
1597 enable source-highlight
for source listings
1598 --enable-werror treat compile warnings as errors
1599 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1600 --enable-gdb-build-warnings
1601 enable GDB specific build-time compiler warnings
if
1603 --enable-ubsan enable undefined behavior sanitizer
(auto
/yes
/no
)
1604 --enable-sim link gdb with simulator
1605 --enable-libctf Handle .ctf type-info sections
[default
=yes]
1606 --enable-unit-tests Enable the inclusion of unit tests when compiling
1610 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1611 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1612 --with-separate-debug-dir=PATH
1613 look for global separate debug info
in this path
1615 --with-gdb-datadir=PATH
look for global separate data files
in this path
1617 --with-relocated-sources=PATH
1618 automatically relocate this path
for source files
1619 --with-auto-load-dir=PATH
1620 directories from
which to load auto-loaded scripts
1621 [$debugdir:$datadir/auto-load
]
1622 --with-auto-load-safe-path=PATH
1623 directories safe to hold auto-loaded files
1624 [--with-auto-load-dir]
1625 --without-auto-load-safe-path
1626 do not restrict auto-loaded files locations
1627 --with-debuginfod Enable debuginfo lookups with debuginfod
1629 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1630 --with-curses use the curses library instead of the termcap
1632 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1633 --with-bugurl=URL Direct users to URL to report a bug
1634 --with-system-zlib use installed libz
1635 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1636 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1637 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1638 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1639 --with-iconv-bin=PATH specify where to find the iconv program
1640 --with-system-readline use installed readline library
1641 --with-jit-reader-dir=PATH
1642 directory to load the JIT readers from
1643 --with-expat include expat support (auto/yes/no)
1644 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1645 --without-libexpat-prefix don't search
for libexpat
in includedir and libdir
1646 --with-libexpat-type=TYPE
type of library to search
for (auto
/static
/shared
)
1647 --with-libgmp-prefix[=DIR
] search
for libgmp
in DIR
/include and DIR
/lib
1648 --without-libgmp-prefix don
't search for libgmp in includedir and libdir
1649 --with-libgmp-type=TYPE type of library to search for (auto/static/shared)
1650 --with-mpfr include MPFR support (auto/yes/no)
1651 --with-libmpfr-prefix[=DIR] search for libmpfr in DIR/include and DIR/lib
1652 --without-libmpfr-prefix don't search
for libmpfr
in includedir and libdir
1653 --with-libmpfr-type=TYPE
type of library to search
for (auto
/static
/shared
)
1654 --with-python[=PYTHON
] include python support
1655 (auto
/yes
/no
/<python-program
>)
1656 --with-python-libdir[=DIR
]
1657 search
for python
's libraries in DIR
1658 --with-guile[=GUILE] include guile support
1659 (auto/yes/no/<guile-version>/<pkg-config-program>)
1660 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1661 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1662 --without-libipt-prefix don't search
for libipt
in includedir and libdir
1663 --with-libipt-type=TYPE
type of library to search
for (auto
/static
/shared
)
1664 --without-included-regex
1665 don
't use included regex; this is the default on
1666 systems with version 2 of the GNU C library (use
1667 with caution on other system)
1668 --with-sysroot[=DIR] search for usr/lib et al within DIR
1669 --with-system-gdbinit=PATH
1670 automatically load a system-wide gdbinit file
1671 --with-system-gdbinit-dir=PATH
1672 automatically load system-wide gdbinit files from
1674 --with-lzma support lzma compression (auto/yes/no)
1675 --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib
1676 --without-liblzma-prefix don't search
for liblzma
in includedir and libdir
1677 --with-liblzma-type=TYPE
type of library to search
for (auto
/static
/shared
)
1678 --with-tcl directory containing tcl configuration
(tclConfig.sh
)
1679 --with-tk directory containing tk configuration
(tkConfig.sh
)
1680 --with-x use the X Window System
1681 --with-babeltrace include babeltrace support
(auto
/yes
/no
)
1682 --with-libbabeltrace-prefix[=DIR
] search
for libbabeltrace
in DIR
/include and DIR
/lib
1683 --without-libbabeltrace-prefix don
't search for libbabeltrace in includedir and libdir
1684 --with-libbabeltrace-type=TYPE type of library to search for (auto/static/shared)
1685 --with-xxhash use libxxhash for hashing (faster) (auto/yes/no)
1686 --with-libxxhash-prefix[=DIR] search for libxxhash in DIR/include and DIR/lib
1687 --without-libxxhash-prefix don't search
for libxxhash
in includedir and libdir
1688 --with-libxxhash-type=TYPE
type of library to search
for (auto
/static
/shared
)
1690 Some influential environment variables
:
1691 CC C compiler
command
1692 CFLAGS C compiler flags
1693 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1694 nonstandard directory
<lib dir
>
1695 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1696 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1697 you have headers
in a nonstandard directory
<include dir
>
1698 CXX C
++ compiler
command
1699 CXXFLAGS C
++ compiler flags
1701 MAKEINFO Parent configure detects
if it is of sufficient version.
1703 Parameters
for MAKEINFO.
1704 PKG_CONFIG path to pkg-config utility
1706 directories to add to pkg-config
's search path
1708 path overriding pkg-config's built-in search path
1710 C compiler flags
for DEBUGINFOD
, overriding pkg-config
1712 linker flags
for DEBUGINFOD
, overriding pkg-config
1713 YACC The
`Yet Another Compiler Compiler' implementation to use.
1714 Defaults to the first program found out of: `bison
-y', `byacc',
1716 YFLAGS The list of arguments that will be passed by default to $YACC.
1717 This script will default YFLAGS to the empty string to avoid a
1718 default value of `-d' given by some make applications.
1719 XMKMF Path to xmkmf, Makefile generator for X Window System
1721 Use these variables to override the choices made by `configure' or to
help
1722 it to
find libraries and programs with nonstandard names
/locations.
1724 Report bugs to the package provider.
1729 if test "$ac_init_help" = "recursive"; then
1730 # If there are subdirs, report their specific --help.
1731 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1732 test -d "$ac_dir" ||
1733 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1738 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1740 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1741 # A ".." for each directory in $ac_dir_suffix.
1742 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1743 case $ac_top_builddir_sub in
1744 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1745 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1748 ac_abs_top_builddir
=$ac_pwd
1749 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1750 # for backward compatibility:
1751 ac_top_builddir
=$ac_top_build_prefix
1754 .
) # We are building in place.
1756 ac_top_srcdir
=$ac_top_builddir_sub
1757 ac_abs_top_srcdir
=$ac_pwd ;;
1758 [\\/]* | ?
:[\\/]* ) # Absolute name.
1759 ac_srcdir
=$srcdir$ac_dir_suffix;
1760 ac_top_srcdir
=$srcdir
1761 ac_abs_top_srcdir
=$srcdir ;;
1763 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1764 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1765 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1767 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1769 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1770 # Check for guested configure.
1771 if test -f "$ac_srcdir/configure.gnu"; then
1773 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1774 elif test -f "$ac_srcdir/configure"; then
1776 $SHELL "$ac_srcdir/configure" --help=recursive
1778 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1780 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1784 test -n "$ac_init_help" && exit $ac_status
1785 if $ac_init_version; then
1788 generated by GNU Autoconf
2.69
1790 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1791 This configure
script is free software
; the Free Software Foundation
1792 gives unlimited permission to copy
, distribute and modify it.
1797 ## ------------------------ ##
1798 ## Autoconf initialization. ##
1799 ## ------------------------ ##
1801 # ac_fn_c_try_compile LINENO
1802 # --------------------------
1803 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1804 ac_fn_c_try_compile
()
1806 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1807 rm -f conftest.
$ac_objext
1808 if { { ac_try
="$ac_compile"
1810 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1811 *) ac_try_echo=$ac_try;;
1813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814 $as_echo "$ac_try_echo"; } >&5
1815 (eval "$ac_compile") 2>conftest.err
1817 if test -s conftest.err; then
1818 grep -v '^ *+' conftest.err >conftest.er1
1819 cat conftest.er1 >&5
1820 mv -f conftest.er1 conftest.err
1822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1823 test $ac_status = 0; } && {
1824 test -z "$ac_c_werror_flag" ||
1825 test ! -s conftest.err
1826 } && test -s conftest.$ac_objext; then :
1829 $as_echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835 as_fn_set_status $ac_retval
1837 } # ac_fn_c_try_compile
1839 # ac_fn_cxx_try_compile LINENO
1840 # ----------------------------
1841 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1842 ac_fn_cxx_try_compile ()
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 rm -f conftest.$ac_objext
1846 if { { ac_try="$ac_compile"
1848 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1849 *) ac_try_echo
=$ac_try;;
1851 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852 $as_echo "$ac_try_echo"; } >&5
1853 (eval "$ac_compile") 2>conftest.err
1855 if test -s conftest.err
; then
1856 grep -v '^ *+' conftest.err
>conftest.er1
1857 cat conftest.er1
>&5
1858 mv -f conftest.er1 conftest.err
1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; } && {
1862 test -z "$ac_cxx_werror_flag" ||
1863 test ! -s conftest.err
1864 } && test -s conftest.
$ac_objext; then :
1867 $as_echo "$as_me: failed program was:" >&5
1868 sed 's/^/| /' conftest.
$ac_ext >&5
1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873 as_fn_set_status
$ac_retval
1875 } # ac_fn_cxx_try_compile
1877 # ac_fn_c_try_cpp LINENO
1878 # ----------------------
1879 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1882 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1883 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1885 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1886 *) ac_try_echo=$ac_try;;
1888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1889 $as_echo "$ac_try_echo"; } >&5
1890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1892 if test -s conftest.err; then
1893 grep -v '^ *+' conftest.err >conftest.er1
1894 cat conftest.er1 >&5
1895 mv -f conftest.er1 conftest.err
1897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898 test $ac_status = 0; } > conftest.i && {
1899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1900 test ! -s conftest.err
1904 $as_echo "$as_me: failed program was:" >&5
1905 sed 's/^/| /' conftest.$ac_ext >&5
1909 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1910 as_fn_set_status $ac_retval
1914 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1915 # -------------------------------------------------------
1916 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1917 # the include files in INCLUDES and setting the cache variable VAR
1919 ac_fn_c_check_header_mongrel ()
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 if eval \${$3+:} false; then :
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1924 $as_echo_n "checking for $2... " >&6; }
1925 if eval \${$3+:} false; then :
1926 $as_echo_n "(cached) " >&6
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930 $as_echo "$ac_res" >&6; }
1932 # Is the header compilable?
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1934 $as_echo_n "checking $2 usability... " >&6; }
1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h. */
1940 if ac_fn_c_try_compile "$LINENO"; then :
1941 ac_header_compiler=yes
1943 ac_header_compiler=no
1945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1947 $as_echo "$ac_header_compiler" >&6; }
1949 # Is the header present?
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1951 $as_echo_n "checking $2 presence... " >&6; }
1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953 /* end confdefs.h. */
1956 if ac_fn_c_try_cpp "$LINENO"; then :
1957 ac_header_preproc=yes
1959 ac_header_preproc=no
1961 rm -f conftest.err conftest.i conftest.$ac_ext
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1963 $as_echo "$ac_header_preproc" >&6; }
1965 # So? What about this header?
1966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1969 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1971 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1975 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1977 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1979 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1981 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1983 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1987 $as_echo_n "checking for $2... " >&6; }
1988 if eval \${$3+:} false; then :
1989 $as_echo_n "(cached) " >&6
1991 eval "$3=\$ac_header_compiler"
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995 $as_echo "$ac_res" >&6; }
1997 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999 } # ac_fn_c_check_header_mongrel
2001 # ac_fn_c_try_run LINENO
2002 # ----------------------
2003 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2004 # that executables *can* be run.
2007 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008 if { { ac_try="$ac_link"
2010 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2011 *) ac_try_echo
=$ac_try;;
2013 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2014 $as_echo "$ac_try_echo"; } >&5
2015 (eval "$ac_link") 2>&5
2017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2018 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2019 { { case "(($ac_try" in
2020 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2021 *) ac_try_echo=$ac_try;;
2023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2024 $as_echo "$ac_try_echo"; } >&5
2025 (eval "$ac_try") 2>&5
2027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2028 test $ac_status = 0; }; }; then :
2031 $as_echo "$as_me: program exited with status $ac_status" >&5
2032 $as_echo "$as_me: failed program was:" >&5
2033 sed 's/^/| /' conftest.$ac_ext >&5
2035 ac_retval=$ac_status
2037 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2039 as_fn_set_status $ac_retval
2043 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2044 # -------------------------------------------------------
2045 # Tests whether HEADER exists and can be compiled using the include files in
2046 # INCLUDES, setting the cache variable VAR accordingly.
2047 ac_fn_c_check_header_compile ()
2049 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2051 $as_echo_n "checking for $2... " >&6; }
2052 if eval \${$3+:} false; then :
2053 $as_echo_n "(cached) " >&6
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2060 if ac_fn_c_try_compile "$LINENO"; then :
2065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2069 $as_echo "$ac_res" >&6; }
2070 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072 } # ac_fn_c_check_header_compile
2074 # ac_fn_c_try_link LINENO
2075 # -----------------------
2076 # Try to link conftest.$ac_ext, and return whether this succeeded.
2079 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080 rm -f conftest.$ac_objext conftest$ac_exeext
2081 if { { ac_try="$ac_link"
2083 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2084 *) ac_try_echo
=$ac_try;;
2086 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2087 $as_echo "$ac_try_echo"; } >&5
2088 (eval "$ac_link") 2>conftest.err
2090 if test -s conftest.err
; then
2091 grep -v '^ *+' conftest.err
>conftest.er1
2092 cat conftest.er1
>&5
2093 mv -f conftest.er1 conftest.err
2095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2096 test $ac_status = 0; } && {
2097 test -z "$ac_c_werror_flag" ||
2098 test ! -s conftest.err
2099 } && test -s conftest
$ac_exeext && {
2100 test "$cross_compiling" = yes ||
2101 test -x conftest
$ac_exeext
2105 $as_echo "$as_me: failed program was:" >&5
2106 sed 's/^/| /' conftest.
$ac_ext >&5
2110 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2111 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2112 # interfere with the next link command; also delete a directory that is
2113 # left behind by Apple's compiler. We do this before executing the actions.
2114 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2115 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2116 as_fn_set_status
$ac_retval
2118 } # ac_fn_c_try_link
2120 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2121 # --------------------------------------------
2122 # Tries to find the compile-time value of EXPR in a program that includes
2123 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2125 ac_fn_c_compute_int
()
2127 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2128 if test "$cross_compiling" = yes; then
2129 # Depending upon the size, compute the lo and hi bounds.
2130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h. */
2136 static int test_array [1 - 2 * !(($2) >= 0)];
2138 return test_array [0];
2144 if ac_fn_c_try_compile
"$LINENO"; then :
2147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2153 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2155 return test_array [0];
2161 if ac_fn_c_try_compile
"$LINENO"; then :
2162 ac_hi
=$ac_mid; break
2164 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2165 if test $ac_lo -le $ac_mid; then
2169 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h. */
2180 static int test_array [1 - 2 * !(($2) < 0)];
2182 return test_array [0];
2188 if ac_fn_c_try_compile
"$LINENO"; then :
2191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h. */
2197 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2199 return test_array [0];
2205 if ac_fn_c_try_compile
"$LINENO"; then :
2206 ac_lo
=$ac_mid; break
2208 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2209 if test $ac_mid -le $ac_hi; then
2213 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2215 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2220 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2222 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2223 # Binary search between lo and hi bounds.
2224 while test "x$ac_lo" != "x$ac_hi"; do
2225 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h. */
2232 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2234 return test_array [0];
2240 if ac_fn_c_try_compile
"$LINENO"; then :
2243 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2245 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2248 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2255 static long int longval () { return $2; }
2256 static unsigned long int ulongval () { return $2; }
2263 FILE *f = fopen ("conftest.val", "w");
2268 long int i = longval ();
2271 fprintf (f, "%ld", i);
2275 unsigned long int i = ulongval ();
2278 fprintf (f, "%lu", i);
2280 /* Do not output a trailing newline, as this causes \r\n confusion
2281 on some platforms. */
2282 return ferror (f) || fclose (f) != 0;
2288 if ac_fn_c_try_run
"$LINENO"; then :
2289 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2293 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2294 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2298 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2299 as_fn_set_status
$ac_retval
2301 } # ac_fn_c_compute_int
2303 # ac_fn_c_check_func LINENO FUNC VAR
2304 # ----------------------------------
2305 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2306 ac_fn_c_check_func
()
2308 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2310 $as_echo_n "checking for $2... " >&6; }
2311 if eval \
${$3+:} false
; then :
2312 $as_echo_n "(cached) " >&6
2314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2315 /* end confdefs.h. */
2316 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2318 #define $2 innocuous_$2
2320 /* System header to define __stub macros and hopefully few prototypes,
2321 which can conflict with char $2 (); below.
2322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2323 <limits.h> exists even on freestanding compilers. */
2326 # include <limits.h>
2328 # include <assert.h>
2333 /* Override any GCC internal prototype to avoid an error.
2334 Use char because int might match the return type of a GCC
2335 builtin and then its argument prototype would still apply. */
2340 /* The GNU C library defines this for functions which it implements
2341 to always fail with ENOSYS. Some functions are actually named
2342 something starting with __ and the normal name is an alias. */
2343 #if defined __stub_$2 || defined __stub___$2
2355 if ac_fn_c_try_link
"$LINENO"; then :
2360 rm -f core conftest.err conftest.
$ac_objext \
2361 conftest
$ac_exeext conftest.
$ac_ext
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2365 $as_echo "$ac_res" >&6; }
2366 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2368 } # ac_fn_c_check_func
2370 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2371 # -------------------------------------------
2372 # Tests whether TYPE exists after having included INCLUDES, setting cache
2373 # variable VAR accordingly.
2374 ac_fn_c_check_type
()
2376 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2378 $as_echo_n "checking for $2... " >&6; }
2379 if eval \
${$3+:} false
; then :
2380 $as_echo_n "(cached) " >&6
2383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2384 /* end confdefs.h. */
2395 if ac_fn_c_try_compile
"$LINENO"; then :
2396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2397 /* end confdefs.h. */
2408 if ac_fn_c_try_compile
"$LINENO"; then :
2413 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2415 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2419 $as_echo "$ac_res" >&6; }
2420 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2422 } # ac_fn_c_check_type
2424 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2425 # ---------------------------------------------
2426 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2428 ac_fn_c_check_decl
()
2430 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2431 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2432 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2434 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2435 if eval \
${$3+:} false
; then :
2436 $as_echo_n "(cached) " >&6
2438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2439 /* end confdefs.h. */
2444 #ifndef $as_decl_name
2446 (void) $as_decl_use;
2448 (void) $as_decl_name;
2456 if ac_fn_c_try_compile
"$LINENO"; then :
2461 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2465 $as_echo "$ac_res" >&6; }
2466 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2468 } # ac_fn_c_check_decl
2470 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2471 # ----------------------------------------------------
2472 # Tries to find if the field MEMBER exists in type AGGR, after including
2473 # INCLUDES, setting cache variable VAR accordingly.
2474 ac_fn_c_check_member
()
2476 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2478 $as_echo_n "checking for $2.$3... " >&6; }
2479 if eval \
${$4+:} false
; then :
2480 $as_echo_n "(cached) " >&6
2482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2483 /* end confdefs.h. */
2495 if ac_fn_c_try_compile
"$LINENO"; then :
2498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2499 /* end confdefs.h. */
2505 if (sizeof ac_aggr.$3)
2511 if ac_fn_c_try_compile
"$LINENO"; then :
2516 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2518 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2522 $as_echo "$ac_res" >&6; }
2523 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2525 } # ac_fn_c_check_member
2527 # ac_fn_cxx_try_link LINENO
2528 # -------------------------
2529 # Try to link conftest.$ac_ext, and return whether this succeeded.
2530 ac_fn_cxx_try_link
()
2532 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2533 rm -f conftest.
$ac_objext conftest
$ac_exeext
2534 if { { ac_try
="$ac_link"
2536 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2537 *) ac_try_echo=$ac_try;;
2539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2540 $as_echo "$ac_try_echo"; } >&5
2541 (eval "$ac_link") 2>conftest.err
2543 if test -s conftest.err; then
2544 grep -v '^ *+' conftest.err >conftest.er1
2545 cat conftest.er1 >&5
2546 mv -f conftest.er1 conftest.err
2548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2549 test $ac_status = 0; } && {
2550 test -z "$ac_cxx_werror_flag" ||
2551 test ! -s conftest.err
2552 } && test -s conftest$ac_exeext && {
2553 test "$cross_compiling" = yes ||
2554 test -x conftest$ac_exeext
2558 $as_echo "$as_me: failed program was:" >&5
2559 sed 's/^/| /' conftest.$ac_ext >&5
2563 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2564 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2565 # interfere with the next link command; also delete a directory that is
2566 # left behind by Apple's compiler. We do this before executing the actions.
2567 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2568 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2569 as_fn_set_status $ac_retval
2571 } # ac_fn_cxx_try_link
2573 # ac_fn_cxx_check_func LINENO FUNC VAR
2574 # ------------------------------------
2575 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2576 ac_fn_cxx_check_func ()
2578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2580 $as_echo_n "checking for $2... " >&6; }
2581 if eval \${$3+:} false; then :
2582 $as_echo_n "(cached) " >&6
2584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2585 /* end confdefs.h. */
2586 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2588 #define $2 innocuous_$2
2590 /* System header to define __stub macros and hopefully few prototypes,
2591 which can conflict with char $2 (); below.
2592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2593 <limits.h> exists even on freestanding compilers. */
2596 # include <limits.h>
2598 # include <assert.h>
2603 /* Override any GCC internal prototype to avoid an error.
2604 Use char because int might match the return type of a GCC
2605 builtin and then its argument prototype would still apply. */
2610 /* The GNU C library defines this for functions which it implements
2611 to always fail with ENOSYS. Some functions are actually named
2612 something starting with __ and the normal name is an alias. */
2613 #if defined __stub_$2 || defined __stub___$2
2625 if ac_fn_cxx_try_link "$LINENO"; then :
2630 rm -f core conftest.err conftest.$ac_objext \
2631 conftest$ac_exeext conftest.$ac_ext
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2635 $as_echo "$ac_res" >&6; }
2636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2638 } # ac_fn_cxx_check_func
2639 cat >config.log <<_ACEOF
2640 This file contains any messages produced by compilers while
2641 running configure, to aid debugging if configure makes a mistake.
2643 It was created by $as_me, which was
2644 generated by GNU Autoconf 2.69. Invocation command line was
2656 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2657 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2658 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2659 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2660 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2662 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2663 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2665 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2666 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2667 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2668 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2669 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2670 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2671 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679 test -z "$as_dir" && as_dir=.
2680 $as_echo "PATH: $as_dir"
2696 # Keep a trace of the command line.
2697 # Strip out --no-create and --no-recursion so they do not pile up.
2698 # Strip out --silent because we don't want to record it for future runs.
2699 # Also quote any args containing shell meta-characters.
2700 # Make two passes to allow for proper duplicate-argument suppression.
2704 ac_must_keep_next=false
2710 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2711 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2712 | -silent | --silent | --silen | --sile | --sil)
2715 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2718 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2720 as_fn_append ac_configure_args1 " '$ac_arg'"
2721 if test $ac_must_keep_next = true; then
2722 ac_must_keep_next=false # Got value, back to normal.
2725 *=* | --config-cache | -C | -disable-* | --disable-* \
2726 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2727 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2728 | -with-* | --with-* | -without-* | --without-* | --x)
2729 case "$ac_configure_args0 " in
2730 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2733 -* ) ac_must_keep_next=true ;;
2736 as_fn_append ac_configure_args " '$ac_arg'"
2741 { ac_configure_args0=; unset ac_configure_args0;}
2742 { ac_configure_args1=; unset ac_configure_args1;}
2744 # When interrupted or exit'd, cleanup temporary files, and complete
2745 # config.log. We remove comments because anyway the quotes in there
2746 # would cause problems or look ugly.
2747 # WARNING: Use '\'' to represent an apostrophe within the trap.
2748 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2749 trap 'exit_status=$?
2750 # Save into config.log some information that might help in debugging.
2754 $as_echo "## ---------------- ##
2755 ## Cache variables. ##
2756 ## ---------------- ##"
2758 # The following way of writing the cache mishandles newlines in values,
2760 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2761 eval ac_val=\$$ac_var
2765 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2766 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2769 _ | IFS | as_nl) ;; #(
2770 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2771 *) { eval $ac_var=; unset $ac_var;} ;;
2776 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2777 *${as_nl}ac_space=\ *)
2779 "s/'\''/'\''\\\\'\'''\''/g;
2780 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2783 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2790 $as_echo "## ----------------- ##
2791 ## Output variables. ##
2792 ## ----------------- ##"
2794 for ac_var in $ac_subst_vars
2796 eval ac_val=\$$ac_var
2798 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2800 $as_echo "$ac_var='\''$ac_val'\''"
2804 if test -n "$ac_subst_files"; then
2805 $as_echo "## ------------------- ##
2806 ## File substitutions. ##
2807 ## ------------------- ##"
2809 for ac_var in $ac_subst_files
2811 eval ac_val=\$$ac_var
2813 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2815 $as_echo "$ac_var='\''$ac_val'\''"
2820 if test -s confdefs.h; then
2821 $as_echo "## ----------- ##
2828 test "$ac_signal" != 0 &&
2829 $as_echo "$as_me: caught signal $ac_signal"
2830 $as_echo "$as_me: exit $exit_status"
2832 rm -f core *.core core.conftest.* &&
2833 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2836 for ac_signal in 1 2 13 15; do
2837 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2841 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2842 rm -f -r conftest* confdefs.h
2844 $as_echo "/* confdefs.h */" > confdefs.h
2846 # Predefined preprocessor variables.
2848 cat >>confdefs.h <<_ACEOF
2849 #define PACKAGE_NAME "$PACKAGE_NAME"
2852 cat >>confdefs.h <<_ACEOF
2853 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2856 cat >>confdefs.h <<_ACEOF
2857 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2860 cat >>confdefs.h <<_ACEOF
2861 #define PACKAGE_STRING "$PACKAGE_STRING"
2864 cat >>confdefs.h <<_ACEOF
2865 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2868 cat >>confdefs.h <<_ACEOF
2869 #define PACKAGE_URL "$PACKAGE_URL"
2873 # Let the site file select an alternate cache file if it wants to.
2874 # Prefer an explicitly selected file to automatically selected ones.
2877 if test -n "$CONFIG_SITE"; then
2878 # We do not want a PATH search for config.site.
2879 case $CONFIG_SITE in #((
2880 -*) ac_site_file1=./$CONFIG_SITE;;
2881 */*) ac_site_file1=$CONFIG_SITE;;
2882 *) ac_site_file1=./$CONFIG_SITE;;
2884 elif test "x$prefix" != xNONE; then
2885 ac_site_file1=$prefix/share/config.site
2886 ac_site_file2=$prefix/etc/config.site
2888 ac_site_file1=$ac_default_prefix/share/config.site
2889 ac_site_file2=$ac_default_prefix/etc/config.site
2891 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2893 test "x$ac_site_file" = xNONE && continue
2894 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2896 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2897 sed 's/^/| /' "$ac_site_file" >&5
2899 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2901 as_fn_error $? "failed to load site
script $ac_site_file
2902 See \
`config.log' for more details" "$LINENO" 5; }
2906 if test -r "$cache_file"; then
2907 # Some versions of bash will fail to source /dev/null (special files
2908 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2909 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2911 $as_echo "$as_me: loading cache $cache_file" >&6;}
2913 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2914 *) . "./$cache_file";;
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2919 $as_echo "$as_me: creating cache $cache_file" >&6;}
2923 as_fn_append ac_header_list " stdlib.h"
2924 as_fn_append ac_header_list " unistd.h"
2925 as_fn_append ac_header_list " sys/param.h"
2926 # Check that the precious variables saved in the cache have kept the same
2928 ac_cache_corrupted=false
2929 for ac_var in $ac_precious_vars; do
2930 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2931 eval ac_new_set=\$ac_env_${ac_var}_set
2932 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2933 eval ac_new_val=\$ac_env_${ac_var}_value
2934 case $ac_old_set,$ac_new_set in
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2937 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2938 ac_cache_corrupted=: ;;
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2941 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2942 ac_cache_corrupted=: ;;
2945 if test "x$ac_old_val" != "x$ac_new_val"; then
2946 # differences in whitespace do not lead to failure.
2947 ac_old_val_w=`echo x
$ac_old_val`
2948 ac_new_val_w=`echo x
$ac_new_val`
2949 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2951 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2952 ac_cache_corrupted=:
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2955 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2956 eval $ac_var=\$ac_old_val
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2959 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2961 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2964 # Pass precious variables to config.status.
2965 if test "$ac_new_set" = set; then
2967 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2968 *) ac_arg=$ac_var=$ac_new_val ;;
2970 case " $ac_configure_args " in
2971 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2972 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2976 if $ac_cache_corrupted; then
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2980 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2981 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2983 ## -------------------- ##
2984 ## Main body of script. ##
2985 ## -------------------- ##
2988 ac_cpp='$CPP $CPPFLAGS'
2989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2998 ac_config_headers="$ac_config_headers config.h:config.in"
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3002 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3003 # Check whether --enable-maintainer-mode was given.
3004 if test "${enable_maintainer_mode+set}" = set; then :
3005 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3007 USE_MAINTAINER_MODE=no
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3011 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3012 if test $USE_MAINTAINER_MODE = yes; then
3013 MAINTAINER_MODE_TRUE=
3014 MAINTAINER_MODE_FALSE='#'
3016 MAINTAINER_MODE_TRUE='#'
3017 MAINTAINER_MODE_FALSE=
3020 MAINT=$MAINTAINER_MODE_TRUE
3025 ac_cpp='$CPP $CPPFLAGS'
3026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3029 if test -n "$ac_tool_prefix"; then
3030 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3031 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033 $as_echo_n "checking for $ac_word... " >&6; }
3034 if ${ac_cv_prog_CC+:} false; then :
3035 $as_echo_n "(cached) " >&6
3037 if test -n "$CC"; then
3038 ac_cv_prog_CC="$CC" # Let the user override the test.
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 test -z "$as_dir" && as_dir=.
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3047 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3058 if test -n "$CC"; then
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3060 $as_echo "$CC" >&6; }
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063 $as_echo "no" >&6; }
3068 if test -z "$ac_cv_prog_CC"; then
3070 # Extract the first word of "gcc", so it can be a program name with args.
3071 set dummy gcc; ac_word=$2
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3073 $as_echo_n "checking for $ac_word... " >&6; }
3074 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3075 $as_echo_n "(cached) " >&6
3077 if test -n "$ac_ct_CC"; then
3078 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084 test -z "$as_dir" && as_dir=.
3085 for ac_exec_ext in '' $ac_executable_extensions; do
3086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3087 ac_cv_prog_ac_ct_CC="gcc"
3088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3097 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3098 if test -n "$ac_ct_CC"; then
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3100 $as_echo "$ac_ct_CC" >&6; }
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3103 $as_echo "no" >&6; }
3106 if test "x$ac_ct_CC" = x; then
3109 case $cross_compiling:$ac_tool_warned in
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3112 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3113 ac_tool_warned=yes ;;
3121 if test -z "$CC"; then
3122 if test -n "$ac_tool_prefix"; then
3123 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3124 set dummy ${ac_tool_prefix}cc; ac_word=$2
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3126 $as_echo_n "checking for $ac_word... " >&6; }
3127 if ${ac_cv_prog_CC+:} false; then :
3128 $as_echo_n "(cached) " >&6
3130 if test -n "$CC"; then
3131 ac_cv_prog_CC="$CC" # Let the user override the test.
3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137 test -z "$as_dir" && as_dir=.
3138 for ac_exec_ext in '' $ac_executable_extensions; do
3139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3140 ac_cv_prog_CC="${ac_tool_prefix}cc"
3141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3151 if test -n "$CC"; then
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3153 $as_echo "$CC" >&6; }
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3156 $as_echo "no" >&6; }
3162 if test -z "$CC"; then
3163 # Extract the first word of "cc", so it can be a program name with args.
3164 set dummy cc; ac_word=$2
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166 $as_echo_n "checking for $ac_word... " >&6; }
3167 if ${ac_cv_prog_CC+:} false; then :
3168 $as_echo_n "(cached) " >&6
3170 if test -n "$CC"; then
3171 ac_cv_prog_CC="$CC" # Let the user override the test.
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 test -z "$as_dir" && as_dir=.
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3182 ac_prog_rejected=yes
3186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3193 if test $ac_prog_rejected = yes; then
3194 # We found a bogon in the path, so make sure we never use it.
3195 set dummy $ac_cv_prog_CC
3197 if test $# != 0; then
3198 # We chose a different compiler from the bogus one.
3199 # However, it has the same basename, so the bogon will be chosen
3200 # first if we set CC to just the basename; use the full file name.
3202 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3208 if test -n "$CC"; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3210 $as_echo "$CC" >&6; }
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 $as_echo "no" >&6; }
3218 if test -z "$CC"; then
3219 if test -n "$ac_tool_prefix"; then
3220 for ac_prog in cl.exe
3222 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3223 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3225 $as_echo_n "checking for $ac_word... " >&6; }
3226 if ${ac_cv_prog_CC+:} false; then :
3227 $as_echo_n "(cached) " >&6
3229 if test -n "$CC"; then
3230 ac_cv_prog_CC="$CC" # Let the user override the test.
3232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236 test -z "$as_dir" && as_dir=.
3237 for ac_exec_ext in '' $ac_executable_extensions; do
3238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3239 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3250 if test -n "$CC"; then
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3252 $as_echo "$CC" >&6; }
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255 $as_echo "no" >&6; }
3259 test -n "$CC" && break
3262 if test -z "$CC"; then
3264 for ac_prog in cl.exe
3266 # Extract the first word of "$ac_prog", so it can be a program name with args.
3267 set dummy $ac_prog; ac_word=$2
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269 $as_echo_n "checking for $ac_word... " >&6; }
3270 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3271 $as_echo_n "(cached) " >&6
3273 if test -n "$ac_ct_CC"; then
3274 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 test -z "$as_dir" && as_dir=.
3281 for ac_exec_ext in '' $ac_executable_extensions; do
3282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3283 ac_cv_prog_ac_ct_CC="$ac_prog"
3284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3293 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3294 if test -n "$ac_ct_CC"; then
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3296 $as_echo "$ac_ct_CC" >&6; }
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 $as_echo "no" >&6; }
3303 test -n "$ac_ct_CC" && break
3306 if test "x$ac_ct_CC" = x; then
3309 case $cross_compiling:$ac_tool_warned in
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3313 ac_tool_warned=yes ;;
3322 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3324 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3325 See \
`config.log' for more details" "$LINENO" 5; }
3327 # Provide some information about the compiler.
3328 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3331 for ac_option in --version -v -V -qversion; do
3332 { { ac_try="$ac_compiler $ac_option >&5"
3334 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3335 *) ac_try_echo
=$ac_try;;
3337 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3338 $as_echo "$ac_try_echo"; } >&5
3339 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3341 if test -s conftest.err
; then
3343 ... rest of stderr output deleted ...
3344 10q' conftest.err
>conftest.er1
3345 cat conftest.er1
>&5
3347 rm -f conftest.er1 conftest.err
3348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3349 test $ac_status = 0; }
3352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3353 /* end confdefs.h. */
3363 ac_clean_files_save
=$ac_clean_files
3364 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3365 # Try to create an executable without -o first, disregard a.out.
3366 # It will help us diagnose broken compilers, and finding out an intuition
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3369 $as_echo_n "checking whether the C compiler works... " >&6; }
3370 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3372 # The possible output files:
3373 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3376 for ac_file
in $ac_files
3379 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3380 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3385 if { { ac_try
="$ac_link_default"
3387 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3391 $as_echo "$ac_try_echo"; } >&5
3392 (eval "$ac_link_default") 2>&5
3394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3395 test $ac_status = 0; }; then :
3396 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3397 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3398 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3399 # so that the user can short-circuit this test for compilers unknown to
3401 for ac_file in $ac_files ''
3403 test -f "$ac_file" || continue
3405 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3408 # We found the default executable, but exeext='' is most
3412 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3414 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3416 # We set ac_cv_exeext here because the later test for it is not
3417 # safe: cross compilers may not add the suffix if given an `-o'
3418 # argument, so we may need to know it at that point already.
3419 # Even if this section looks crufty: it has the advantage of
3426 test "$ac_cv_exeext" = no && ac_cv_exeext=
3431 if test -z "$ac_file"; then :
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3433 $as_echo "no" >&6; }
3434 $as_echo "$as_me: failed program was:" >&5
3435 sed 's
/^
/|
/' conftest.$ac_ext >&5
3437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3438 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3439 as_fn_error 77 "C compiler cannot create executables
3440 See \`config.log
' for more details" "$LINENO" 5; }
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3443 $as_echo "yes" >&6; }
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3446 $as_echo_n "checking for C compiler default output file name... " >&6; }
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3448 $as_echo "$ac_file" >&6; }
3449 ac_exeext=$ac_cv_exeext
3451 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3452 ac_clean_files=$ac_clean_files_save
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3454 $as_echo_n "checking for suffix of executables... " >&6; }
3455 if { { ac_try="$ac_link"
3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458 *) ac_try_echo=$ac_try;;
3460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3461 $as_echo "$ac_try_echo"; } >&5
3462 (eval "$ac_link") 2>&5
3464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3465 test $ac_status = 0; }; then :
3466 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3467 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3468 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3470 for ac_file
in conftest.exe conftest conftest.
*; do
3471 test -f "$ac_file" ||
continue
3473 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3474 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3482 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3483 See \`config.log' for more details" "$LINENO" 5; }
3485 rm -f conftest conftest
$ac_cv_exeext
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3487 $as_echo "$ac_cv_exeext" >&6; }
3489 rm -f conftest.
$ac_ext
3490 EXEEXT
=$ac_cv_exeext
3492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3493 /* end confdefs.h. */
3498 FILE *f = fopen ("conftest.out", "w");
3499 return ferror (f) || fclose (f) != 0;
3505 ac_clean_files
="$ac_clean_files conftest.out"
3506 # Check that the compiler produces executables we can run. If not, either
3507 # the compiler is broken, or we cross compile.
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3509 $as_echo_n "checking whether we are cross compiling... " >&6; }
3510 if test "$cross_compiling" != yes; then
3511 { { ac_try
="$ac_link"
3513 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3514 *) ac_try_echo=$ac_try;;
3516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3517 $as_echo "$ac_try_echo"; } >&5
3518 (eval "$ac_link") 2>&5
3520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3521 test $ac_status = 0; }
3522 if { ac_try='./conftest$ac_cv_exeext'
3523 { { case "(($ac_try" in
3524 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3525 *) ac_try_echo
=$ac_try;;
3527 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3528 $as_echo "$ac_try_echo"; } >&5
3529 (eval "$ac_try") 2>&5
3531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3532 test $ac_status = 0; }; }; then
3535 if test "$cross_compiling" = maybe
; then
3538 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3540 as_fn_error $?
"cannot run C compiled programs.
3541 If you meant to cross compile, use \`--host'.
3542 See \`config.log' for more details" "$LINENO" 5; }
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3547 $as_echo "$cross_compiling" >&6; }
3549 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3550 ac_clean_files
=$ac_clean_files_save
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3552 $as_echo_n "checking for suffix of object files... " >&6; }
3553 if ${ac_cv_objext+:} false
; then :
3554 $as_echo_n "(cached) " >&6
3556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3557 /* end confdefs.h. */
3567 rm -f conftest.o conftest.obj
3568 if { { ac_try
="$ac_compile"
3570 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3571 *) ac_try_echo=$ac_try;;
3573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3574 $as_echo "$ac_try_echo"; } >&5
3575 (eval "$ac_compile") 2>&5
3577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3578 test $ac_status = 0; }; then :
3579 for ac_file in conftest.o conftest.obj conftest.*; do
3580 test -f "$ac_file" || continue;
3582 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3583 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3588 $as_echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3593 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3594 See \
`config.log' for more details" "$LINENO" 5; }
3596 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3599 $as_echo "$ac_cv_objext" >&6; }
3600 OBJEXT=$ac_cv_objext
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3603 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3604 if ${ac_cv_c_compiler_gnu+:} false; then :
3605 $as_echo_n "(cached) " >&6
3607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608 /* end confdefs.h. */
3621 if ac_fn_c_try_compile "$LINENO"; then :
3626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3627 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3631 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3632 if test $ac_compiler_gnu = yes; then
3637 ac_test_CFLAGS=${CFLAGS+set}
3638 ac_save_CFLAGS=$CFLAGS
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3640 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3641 if ${ac_cv_prog_cc_g+:} false; then :
3642 $as_echo_n "(cached) " >&6
3644 ac_save_c_werror_flag=$ac_c_werror_flag
3645 ac_c_werror_flag=yes
3648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h. */
3659 if ac_fn_c_try_compile "$LINENO"; then :
3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h. */
3674 if ac_fn_c_try_compile "$LINENO"; then :
3677 ac_c_werror_flag=$ac_save_c_werror_flag
3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680 /* end confdefs.h. */
3690 if ac_fn_c_try_compile "$LINENO"; then :
3693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3698 ac_c_werror_flag=$ac_save_c_werror_flag
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3701 $as_echo "$ac_cv_prog_cc_g" >&6; }
3702 if test "$ac_test_CFLAGS" = set; then
3703 CFLAGS=$ac_save_CFLAGS
3704 elif test $ac_cv_prog_cc_g = yes; then
3705 if test "$GCC" = yes; then
3711 if test "$GCC" = yes; then
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3718 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3719 if ${ac_cv_prog_cc_c89+:} false; then :
3720 $as_echo_n "(cached) " >&6
3722 ac_cv_prog_cc_c89=no
3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h. */
3729 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3730 struct buf { int x; };
3731 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3732 static char *e (p, i)
3738 static char *f (char * (*g) (char **, int), char **p, ...)
3743 s = g (p, va_arg (v,int));
3748 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3749 function prototypes and stuff, but not '\xHH' hex character constants.
3750 These don't provoke an error unfortunately, instead are silently treated
3751 as 'x'. The following induces an error, until -std is added to get
3752 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3753 array size at least. It's necessary to write '\x00'==0 to get something
3754 that's true only with -std. */
3755 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3757 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3758 inside strings and character constants. */
3760 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3762 int test (int i, double x);
3763 struct s1 {int (*f) (int a);};
3764 struct s2 {int (*f) (double a);};
3765 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3771 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3776 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3777 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3779 CC="$ac_save_CC $ac_arg"
3780 if ac_fn_c_try_compile "$LINENO"; then :
3781 ac_cv_prog_cc_c89=$ac_arg
3783 rm -f core conftest.err conftest.$ac_objext
3784 test "x$ac_cv_prog_cc_c89" != "xno" && break
3786 rm -f conftest.$ac_ext
3791 case "x$ac_cv_prog_cc_c89" in
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3794 $as_echo "none needed" >&6; } ;;
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3797 $as_echo "unsupported" >&6; } ;;
3799 CC="$CC $ac_cv_prog_cc_c89"
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3801 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3803 if test "x$ac_cv_prog_cc_c89" != xno; then :
3808 ac_cpp='$CPP $CPPFLAGS'
3809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3814 ac_cpp='$CXXCPP $CPPFLAGS'
3815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3818 if test -z "$CXX"; then
3819 if test -n "$CCC"; then
3822 if test -n "$ac_tool_prefix"; then
3823 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3825 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3826 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3828 $as_echo_n "checking for $ac_word... " >&6; }
3829 if ${ac_cv_prog_CXX+:} false; then :
3830 $as_echo_n "(cached) " >&6
3832 if test -n "$CXX"; then
3833 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839 test -z "$as_dir" && as_dir=.
3840 for ac_exec_ext in '' $ac_executable_extensions; do
3841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3842 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3853 if test -n "$CXX"; then
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3855 $as_echo "$CXX" >&6; }
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3858 $as_echo "no" >&6; }
3862 test -n "$CXX" && break
3865 if test -z "$CXX"; then
3867 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3869 # Extract the first word of "$ac_prog", so it can be a program name with args.
3870 set dummy $ac_prog; ac_word=$2
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3872 $as_echo_n "checking for $ac_word... " >&6; }
3873 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3874 $as_echo_n "(cached) " >&6
3876 if test -n "$ac_ct_CXX"; then
3877 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883 test -z "$as_dir" && as_dir=.
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3886 ac_cv_prog_ac_ct_CXX="$ac_prog"
3887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3896 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3897 if test -n "$ac_ct_CXX"; then
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3899 $as_echo "$ac_ct_CXX" >&6; }
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902 $as_echo "no" >&6; }
3906 test -n "$ac_ct_CXX" && break
3909 if test "x$ac_ct_CXX" = x; then
3912 case $cross_compiling:$ac_tool_warned in
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3916 ac_tool_warned=yes ;;
3924 # Provide some information about the compiler.
3925 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3928 for ac_option in --version -v -V -qversion; do
3929 { { ac_try="$ac_compiler $ac_option >&5"
3931 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3932 *) ac_try_echo
=$ac_try;;
3934 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3935 $as_echo "$ac_try_echo"; } >&5
3936 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3938 if test -s conftest.err
; then
3940 ... rest of stderr output deleted ...
3941 10q' conftest.err
>conftest.er1
3942 cat conftest.er1
>&5
3944 rm -f conftest.er1 conftest.err
3945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3946 test $ac_status = 0; }
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3950 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3951 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3952 $as_echo_n "(cached) " >&6
3954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3955 /* end confdefs.h. */
3968 if ac_fn_cxx_try_compile
"$LINENO"; then :
3973 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3974 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3978 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3979 if test $ac_compiler_gnu = yes; then
3984 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3985 ac_save_CXXFLAGS
=$CXXFLAGS
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3987 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3988 if ${ac_cv_prog_cxx_g+:} false
; then :
3989 $as_echo_n "(cached) " >&6
3991 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3992 ac_cxx_werror_flag
=yes
3995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h. */
4006 if ac_fn_cxx_try_compile
"$LINENO"; then :
4007 ac_cv_prog_cxx_g
=yes
4010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4021 if ac_fn_cxx_try_compile
"$LINENO"; then :
4024 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h. */
4037 if ac_fn_cxx_try_compile
"$LINENO"; then :
4038 ac_cv_prog_cxx_g
=yes
4040 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4042 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4044 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4045 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4048 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4049 if test "$ac_test_CXXFLAGS" = set; then
4050 CXXFLAGS
=$ac_save_CXXFLAGS
4051 elif test $ac_cv_prog_cxx_g = yes; then
4052 if test "$GXX" = yes; then
4058 if test "$GXX" = yes; then
4065 ac_cpp
='$CPP $CPPFLAGS'
4066 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4067 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4068 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4073 ac_cpp
='$CPP $CPPFLAGS'
4074 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4075 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4076 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4078 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4079 # On Suns, sometimes $CPP names a directory.
4080 if test -n "$CPP" && test -d "$CPP"; then
4083 if test -z "$CPP"; then
4084 if ${ac_cv_prog_CPP+:} false
; then :
4085 $as_echo_n "(cached) " >&6
4087 # Double quotes because CPP needs to be expanded
4088 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4091 for ac_c_preproc_warn_flag
in '' yes
4093 # Use a header file that comes with gcc, so configuring glibc
4094 # with a fresh cross-compiler works.
4095 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4096 # <limits.h> exists even on freestanding compilers.
4097 # On the NeXT, cc -E runs the code through the compiler's parser,
4098 # not just through cpp. "Syntax error" is here to catch this case.
4099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4102 # include <limits.h>
4104 # include <assert.h>
4108 if ac_fn_c_try_cpp
"$LINENO"; then :
4111 # Broken: fails on valid input.
4114 rm -f conftest.err conftest.i conftest.
$ac_ext
4116 # OK, works on sane cases. Now check whether nonexistent headers
4117 # can be detected and how.
4118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h. */
4120 #include <ac_nonexistent.h>
4122 if ac_fn_c_try_cpp
"$LINENO"; then :
4123 # Broken: success on invalid input.
4126 # Passes both tests.
4130 rm -f conftest.err conftest.i conftest.
$ac_ext
4133 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4134 rm -f conftest.i conftest.err conftest.
$ac_ext
4135 if $ac_preproc_ok; then :
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4148 $as_echo "$CPP" >&6; }
4150 for ac_c_preproc_warn_flag
in '' yes
4152 # Use a header file that comes with gcc, so configuring glibc
4153 # with a fresh cross-compiler works.
4154 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4155 # <limits.h> exists even on freestanding compilers.
4156 # On the NeXT, cc -E runs the code through the compiler's parser,
4157 # not just through cpp. "Syntax error" is here to catch this case.
4158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h. */
4161 # include <limits.h>
4163 # include <assert.h>
4167 if ac_fn_c_try_cpp
"$LINENO"; then :
4170 # Broken: fails on valid input.
4173 rm -f conftest.err conftest.i conftest.
$ac_ext
4175 # OK, works on sane cases. Now check whether nonexistent headers
4176 # can be detected and how.
4177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4178 /* end confdefs.h. */
4179 #include <ac_nonexistent.h>
4181 if ac_fn_c_try_cpp
"$LINENO"; then :
4182 # Broken: success on invalid input.
4185 # Passes both tests.
4189 rm -f conftest.err conftest.i conftest.
$ac_ext
4192 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4193 rm -f conftest.i conftest.err conftest.
$ac_ext
4194 if $ac_preproc_ok; then :
4197 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4199 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4200 See \`config.log' for more details" "$LINENO" 5; }
4204 ac_cpp
='$CPP $CPPFLAGS'
4205 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4206 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4207 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4211 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4212 if ${ac_cv_path_GREP+:} false
; then :
4213 $as_echo_n "(cached) " >&6
4215 if test -z "$GREP"; then
4216 ac_path_GREP_found
=false
4217 # Loop through the user's path and test for each of PROGNAME-LIST
4218 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4219 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4222 test -z "$as_dir" && as_dir
=.
4223 for ac_prog
in grep ggrep
; do
4224 for ac_exec_ext
in '' $ac_executable_extensions; do
4225 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4226 as_fn_executable_p
"$ac_path_GREP" ||
continue
4227 # Check for GNU ac_path_GREP and select it if it is found.
4228 # Check for GNU $ac_path_GREP
4229 case `"$ac_path_GREP" --version 2>&1` in
4231 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4234 $as_echo_n 0123456789 >"conftest.in"
4237 cat "conftest.in" "conftest.in" >"conftest.tmp"
4238 mv "conftest.tmp" "conftest.in"
4239 cp "conftest.in" "conftest.nl"
4240 $as_echo 'GREP' >> "conftest.nl"
4241 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4242 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4243 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4244 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4245 # Best one so far, save it but keep looking for a better one
4246 ac_cv_path_GREP
="$ac_path_GREP"
4247 ac_path_GREP_max
=$ac_count
4249 # 10*(2^10) chars as input seems more than enough
4250 test $ac_count -gt 10 && break
4252 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4255 $ac_path_GREP_found && break 3
4260 if test -z "$ac_cv_path_GREP"; then
4261 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4264 ac_cv_path_GREP
=$GREP
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4269 $as_echo "$ac_cv_path_GREP" >&6; }
4270 GREP
="$ac_cv_path_GREP"
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4274 $as_echo_n "checking for egrep... " >&6; }
4275 if ${ac_cv_path_EGREP+:} false
; then :
4276 $as_echo_n "(cached) " >&6
4278 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4279 then ac_cv_path_EGREP
="$GREP -E"
4281 if test -z "$EGREP"; then
4282 ac_path_EGREP_found
=false
4283 # Loop through the user's path and test for each of PROGNAME-LIST
4284 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4285 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4288 test -z "$as_dir" && as_dir
=.
4289 for ac_prog
in egrep; do
4290 for ac_exec_ext
in '' $ac_executable_extensions; do
4291 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4292 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4293 # Check for GNU ac_path_EGREP and select it if it is found.
4294 # Check for GNU $ac_path_EGREP
4295 case `"$ac_path_EGREP" --version 2>&1` in
4297 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4300 $as_echo_n 0123456789 >"conftest.in"
4303 cat "conftest.in" "conftest.in" >"conftest.tmp"
4304 mv "conftest.tmp" "conftest.in"
4305 cp "conftest.in" "conftest.nl"
4306 $as_echo 'EGREP' >> "conftest.nl"
4307 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4308 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4309 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4310 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4311 # Best one so far, save it but keep looking for a better one
4312 ac_cv_path_EGREP
="$ac_path_EGREP"
4313 ac_path_EGREP_max
=$ac_count
4315 # 10*(2^10) chars as input seems more than enough
4316 test $ac_count -gt 10 && break
4318 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4321 $ac_path_EGREP_found && break 3
4326 if test -z "$ac_cv_path_EGREP"; then
4327 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4330 ac_cv_path_EGREP
=$EGREP
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4336 $as_echo "$ac_cv_path_EGREP" >&6; }
4337 EGREP
="$ac_cv_path_EGREP"
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4341 $as_echo_n "checking for ANSI C header files... " >&6; }
4342 if ${ac_cv_header_stdc+:} false
; then :
4343 $as_echo_n "(cached) " >&6
4345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4346 /* end confdefs.h. */
4360 if ac_fn_c_try_compile
"$LINENO"; then :
4361 ac_cv_header_stdc
=yes
4363 ac_cv_header_stdc
=no
4365 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4367 if test $ac_cv_header_stdc = yes; then
4368 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4370 /* end confdefs.h. */
4374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4375 $EGREP "memchr" >/dev
/null
2>&1; then :
4378 ac_cv_header_stdc
=no
4384 if test $ac_cv_header_stdc = yes; then
4385 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4387 /* end confdefs.h. */
4391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4392 $EGREP "free" >/dev
/null
2>&1; then :
4395 ac_cv_header_stdc
=no
4401 if test $ac_cv_header_stdc = yes; then
4402 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4403 if test "$cross_compiling" = yes; then :
4406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4407 /* end confdefs.h. */
4410 #if ((' ' & 0x0FF) == 0x020)
4411 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4412 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4414 # define ISLOWER(c) \
4415 (('a' <= (c) && (c) <= 'i') \
4416 || ('j' <= (c) && (c) <= 'r') \
4417 || ('s' <= (c) && (c) <= 'z'))
4418 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4421 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4426 for (i = 0; i < 256; i++)
4427 if (XOR (islower (i), ISLOWER (i))
4428 || toupper (i) != TOUPPER (i))
4433 if ac_fn_c_try_run
"$LINENO"; then :
4436 ac_cv_header_stdc
=no
4438 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4439 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4445 $as_echo "$ac_cv_header_stdc" >&6; }
4446 if test $ac_cv_header_stdc = yes; then
4448 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4452 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4453 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4454 inttypes.h stdint.h unistd.h
4456 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4457 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4459 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4460 cat >>confdefs.h
<<_ACEOF
4461 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4470 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4471 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4478 if test "$MINIX" = yes; then
4480 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4483 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4486 $as_echo "#define _MINIX 1" >>confdefs.h
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4492 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4493 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4494 $as_echo_n "(cached) " >&6
4496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4497 /* end confdefs.h. */
4499 # define __EXTENSIONS__ 1
4500 $ac_includes_default
4509 if ac_fn_c_try_compile
"$LINENO"; then :
4510 ac_cv_safe_to_define___extensions__
=yes
4512 ac_cv_safe_to_define___extensions__
=no
4514 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4517 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4518 test $ac_cv_safe_to_define___extensions__ = yes &&
4519 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4521 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4523 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4525 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4527 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4531 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4532 if test -f "$ac_dir/install-sh"; then
4534 ac_install_sh
="$ac_aux_dir/install-sh -c"
4536 elif test -f "$ac_dir/install.sh"; then
4538 ac_install_sh
="$ac_aux_dir/install.sh -c"
4540 elif test -f "$ac_dir/shtool"; then
4542 ac_install_sh
="$ac_aux_dir/shtool install -c"
4546 if test -z "$ac_aux_dir"; then
4547 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4550 # These three variables are undocumented and unsupported,
4551 # and are intended to be withdrawn in a future Autoconf release.
4552 # They can cause serious problems if a builder's source tree is in a directory
4553 # whose full name contains unusual characters.
4554 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4555 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4556 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4559 # Make sure we can run config.sub.
4560 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4561 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4564 $as_echo_n "checking build system type... " >&6; }
4565 if ${ac_cv_build+:} false
; then :
4566 $as_echo_n "(cached) " >&6
4568 ac_build_alias
=$build_alias
4569 test "x$ac_build_alias" = x
&&
4570 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4571 test "x$ac_build_alias" = x
&&
4572 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4573 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4574 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4578 $as_echo "$ac_cv_build" >&6; }
4579 case $ac_cv_build in
4581 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4584 ac_save_IFS
=$IFS; IFS
='-'
4590 # Remember, the first character of IFS is used to create $*,
4591 # except with old shells:
4594 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4598 $as_echo_n "checking host system type... " >&6; }
4599 if ${ac_cv_host+:} false
; then :
4600 $as_echo_n "(cached) " >&6
4602 if test "x$host_alias" = x
; then
4603 ac_cv_host
=$ac_cv_build
4605 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4606 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4611 $as_echo "$ac_cv_host" >&6; }
4614 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4617 ac_save_IFS
=$IFS; IFS
='-'
4623 # Remember, the first character of IFS is used to create $*,
4624 # except with old shells:
4627 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4631 $as_echo_n "checking target system type... " >&6; }
4632 if ${ac_cv_target+:} false
; then :
4633 $as_echo_n "(cached) " >&6
4635 if test "x$target_alias" = x
; then
4636 ac_cv_target
=$ac_cv_host
4638 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4639 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4644 $as_echo "$ac_cv_target" >&6; }
4645 case $ac_cv_target in
4647 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4649 target
=$ac_cv_target
4650 ac_save_IFS
=$IFS; IFS
='-'
4656 # Remember, the first character of IFS is used to create $*,
4657 # except with old shells:
4660 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4663 # The aliases save the names the user supplied, while $host etc.
4664 # will get canonicalized.
4665 test -n "$target_alias" &&
4666 test "$program_prefix$program_suffix$program_transform_name" = \
4668 program_prefix
=${target_alias}-
4670 # The tests for host and target for $enable_largefile require
4675 # As the $enable_largefile decision depends on --enable-plugins we must set it
4676 # even in directories otherwise not depending on the $plugins option.
4680 for ac_header
in dlfcn.h
4682 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4684 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
4685 cat >>confdefs.h
<<_ACEOF
4686 #define HAVE_DLFCN_H 1
4693 for ac_header
in windows.h
4695 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4697 if test "x$ac_cv_header_windows_h" = xyes
; then :
4698 cat >>confdefs.h
<<_ACEOF
4699 #define HAVE_WINDOWS_H 1
4707 # Check whether --enable-plugins was given.
4708 if test "${enable_plugins+set}" = set; then :
4709 enableval
=$enable_plugins; case "${enableval}" in
4712 if test "$maybe_plugins" != "yes" ; then
4713 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4717 plugins
=$maybe_plugins
4721 if test "$plugins" = "yes"; then
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4723 $as_echo_n "checking for library containing dlsym... " >&6; }
4724 if ${ac_cv_search_dlsym+:} false
; then :
4725 $as_echo_n "(cached) " >&6
4727 ac_func_search_save_LIBS
=$LIBS
4728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h. */
4731 /* Override any GCC internal prototype to avoid an error.
4732 Use char because int might match the return type of a GCC
4733 builtin and then its argument prototype would still apply. */
4746 for ac_lib
in '' dl
; do
4747 if test -z "$ac_lib"; then
4748 ac_res
="none required"
4751 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4753 if ac_fn_c_try_link
"$LINENO"; then :
4754 ac_cv_search_dlsym
=$ac_res
4756 rm -f core conftest.err conftest.
$ac_objext \
4758 if ${ac_cv_search_dlsym+:} false
; then :
4762 if ${ac_cv_search_dlsym+:} false
; then :
4765 ac_cv_search_dlsym
=no
4768 LIBS
=$ac_func_search_save_LIBS
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4771 $as_echo "$ac_cv_search_dlsym" >&6; }
4772 ac_res
=$ac_cv_search_dlsym
4773 if test "$ac_res" != no
; then :
4774 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4782 sparc-
*-solaris*|i?
86-*-solaris*)
4783 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
4784 # were mutually exclusive until Solaris 11.3. Without procfs support,
4785 # the bfd/ elf module cannot provide certain routines such as
4786 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
4787 # explicitly requested large-file support through the
4788 # --enable-largefile switch, disable large-file support in favor of
4791 # Check if <sys/procfs.h> is incompatible with large-file support.
4792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4793 /* end confdefs.h. */
4794 #define _FILE_OFFSET_BITS 64
4795 #define _STRUCTURED_PROC 1
4796 #include <sys/procfs.h>
4805 if ac_fn_c_try_compile
"$LINENO"; then :
4806 acx_cv_procfs_lfs
=yes
4808 acx_cv_procfs_lfs
=no
4810 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4812 # Forcefully disable large-file support only if necessary, gdb is in
4814 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
4815 -a -d $srcdir/..
/gdb
-a "$enable_gdb" != no
; then
4816 : ${enable_largefile="no"}
4817 if test "$plugins" = yes; then
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4819 plugin support disabled; require large-file support which is incompatible with GDB." >&5
4820 $as_echo "$as_me: WARNING:
4821 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
4826 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
4827 # benefit of g++ 9+ which predefines it on Solaris.
4828 if test "$enable_largefile" = no
; then
4829 LARGEFILE_CPPFLAGS
="-U_FILE_OFFSET_BITS"
4835 # Check whether --enable-largefile was given.
4836 if test "${enable_largefile+set}" = set; then :
4837 enableval
=$enable_largefile;
4840 if test "$enable_largefile" != no
; then
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4843 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4844 if ${ac_cv_sys_largefile_CC+:} false
; then :
4845 $as_echo_n "(cached) " >&6
4847 ac_cv_sys_largefile_CC
=no
4848 if test "$GCC" != yes; then
4851 # IRIX 6.2 and later do not support large files by default,
4852 # so use the C compiler's -n32 option if that helps.
4853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4854 /* end confdefs.h. */
4855 #include <sys/types.h>
4856 /* Check that off_t can represent 2**63 - 1 correctly.
4857 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4858 since some C++ compilers masquerading as C compilers
4859 incorrectly reject 9223372036854775807. */
4860 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4861 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4862 && LARGE_OFF_T % 2147483647 == 1)
4872 if ac_fn_c_try_compile
"$LINENO"; then :
4875 rm -f core conftest.err conftest.
$ac_objext
4877 if ac_fn_c_try_compile
"$LINENO"; then :
4878 ac_cv_sys_largefile_CC
=' -n32'; break
4880 rm -f core conftest.err conftest.
$ac_objext
4884 rm -f conftest.
$ac_ext
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4888 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4889 if test "$ac_cv_sys_largefile_CC" != no
; then
4890 CC
=$CC$ac_cv_sys_largefile_CC
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4894 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4895 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4896 $as_echo_n "(cached) " >&6
4899 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4900 /* end confdefs.h. */
4901 #include <sys/types.h>
4902 /* Check that off_t can represent 2**63 - 1 correctly.
4903 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4904 since some C++ compilers masquerading as C compilers
4905 incorrectly reject 9223372036854775807. */
4906 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4907 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4908 && LARGE_OFF_T % 2147483647 == 1)
4918 if ac_fn_c_try_compile
"$LINENO"; then :
4919 ac_cv_sys_file_offset_bits
=no
; break
4921 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4923 /* end confdefs.h. */
4924 #define _FILE_OFFSET_BITS 64
4925 #include <sys/types.h>
4926 /* Check that off_t can represent 2**63 - 1 correctly.
4927 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4928 since some C++ compilers masquerading as C compilers
4929 incorrectly reject 9223372036854775807. */
4930 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4931 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4932 && LARGE_OFF_T % 2147483647 == 1)
4942 if ac_fn_c_try_compile
"$LINENO"; then :
4943 ac_cv_sys_file_offset_bits
=64; break
4945 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4946 ac_cv_sys_file_offset_bits
=unknown
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4951 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4952 case $ac_cv_sys_file_offset_bits in #(
4955 cat >>confdefs.h
<<_ACEOF
4956 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4961 if test $ac_cv_sys_file_offset_bits = unknown
; then
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4963 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4964 if ${ac_cv_sys_large_files+:} false
; then :
4965 $as_echo_n "(cached) " >&6
4968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4969 /* end confdefs.h. */
4970 #include <sys/types.h>
4971 /* Check that off_t can represent 2**63 - 1 correctly.
4972 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4973 since some C++ compilers masquerading as C compilers
4974 incorrectly reject 9223372036854775807. */
4975 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4976 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4977 && LARGE_OFF_T % 2147483647 == 1)
4987 if ac_fn_c_try_compile
"$LINENO"; then :
4988 ac_cv_sys_large_files
=no
; break
4990 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4992 /* end confdefs.h. */
4993 #define _LARGE_FILES 1
4994 #include <sys/types.h>
4995 /* Check that off_t can represent 2**63 - 1 correctly.
4996 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4997 since some C++ compilers masquerading as C compilers
4998 incorrectly reject 9223372036854775807. */
4999 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5000 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5001 && LARGE_OFF_T % 2147483647 == 1)
5011 if ac_fn_c_try_compile
"$LINENO"; then :
5012 ac_cv_sys_large_files
=1; break
5014 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5015 ac_cv_sys_large_files
=unknown
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5020 $as_echo "$ac_cv_sys_large_files" >&6; }
5021 case $ac_cv_sys_large_files in #(
5024 cat >>confdefs.h
<<_ACEOF
5025 #define _LARGE_FILES $ac_cv_sys_large_files
5036 # Expand $ac_aux_dir to an absolute path.
5037 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
5039 if test x
"${install_sh+set}" != xset
; then
5042 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
5044 install_sh
="\${SHELL} $am_aux_dir/install-sh"
5048 # Installed binaries are usually stripped using 'strip' when the user
5049 # run "make install-strip". However 'strip' might not be the right
5050 # tool to use in cross-compilation environments, therefore Automake
5051 # will honor the 'STRIP' environment variable to overrule this program.
5052 if test "$cross_compiling" != no
; then
5053 if test -n "$ac_tool_prefix"; then
5054 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5055 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5057 $as_echo_n "checking for $ac_word... " >&6; }
5058 if ${ac_cv_prog_STRIP+:} false
; then :
5059 $as_echo_n "(cached) " >&6
5061 if test -n "$STRIP"; then
5062 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5064 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5068 test -z "$as_dir" && as_dir
=.
5069 for ac_exec_ext
in '' $ac_executable_extensions; do
5070 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5071 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5081 STRIP
=$ac_cv_prog_STRIP
5082 if test -n "$STRIP"; then
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5084 $as_echo "$STRIP" >&6; }
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087 $as_echo "no" >&6; }
5092 if test -z "$ac_cv_prog_STRIP"; then
5094 # Extract the first word of "strip", so it can be a program name with args.
5095 set dummy strip
; ac_word
=$2
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5097 $as_echo_n "checking for $ac_word... " >&6; }
5098 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
5099 $as_echo_n "(cached) " >&6
5101 if test -n "$ac_ct_STRIP"; then
5102 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5104 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5108 test -z "$as_dir" && as_dir
=.
5109 for ac_exec_ext
in '' $ac_executable_extensions; do
5110 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5111 ac_cv_prog_ac_ct_STRIP
="strip"
5112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5121 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5122 if test -n "$ac_ct_STRIP"; then
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5124 $as_echo "$ac_ct_STRIP" >&6; }
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127 $as_echo "no" >&6; }
5130 if test "x$ac_ct_STRIP" = x
; then
5133 case $cross_compiling:$ac_tool_warned in
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5137 ac_tool_warned
=yes ;;
5142 STRIP
="$ac_cv_prog_STRIP"
5146 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
5150 for ac_dir
in ..
"$srcdir"/..
; do
5151 if test -f "$ac_dir/install-sh"; then
5153 ac_install_sh
="$ac_aux_dir/install-sh -c"
5155 elif test -f "$ac_dir/install.sh"; then
5157 ac_install_sh
="$ac_aux_dir/install.sh -c"
5159 elif test -f "$ac_dir/shtool"; then
5161 ac_install_sh
="$ac_aux_dir/shtool install -c"
5165 if test -z "$ac_aux_dir"; then
5166 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
5169 # These three variables are undocumented and unsupported,
5170 # and are intended to be withdrawn in a future Autoconf release.
5171 # They can cause serious problems if a builder's source tree is in a directory
5172 # whose full name contains unusual characters.
5173 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5174 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5175 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5179 # Set build, build_cpu, build_vendor and build_os.
5182 # Set host, host_cpu, host_vendor, and host_os.
5185 # Set target, target_cpu, target_vendor, and target_os.
5188 test "$program_prefix" != NONE
&&
5189 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
5190 # Use a double $ so make ignores it.
5191 test "$program_suffix" != NONE
&&
5192 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
5193 # Double any \ or $.
5194 # By default was `s,x,x', remove it if useless.
5195 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
5196 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
5199 # We require a C++11 compiler. Check if one is available, and if
5200 # necessary, set CXX_DIALECT to some -std=xxx switch.
5202 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5204 ac_cpp
='$CXXCPP $CPPFLAGS'
5205 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5206 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5207 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5211 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5212 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5213 $as_echo_n "(cached) " >&6
5215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5216 /* end confdefs.h. */
5219 // If the compiler admits that it is not ready for C++11, why torture it?
5220 // Hopefully, this will speed up the test.
5224 #error "This is not a C++ compiler"
5226 #elif __cplusplus < 201103L
5228 #error "This is not a C++11 compiler"
5235 namespace test_static_assert
5238 template <typename T>
5241 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5246 namespace test_final_override
5254 struct Derived : public Base
5256 virtual void f() override {}
5261 namespace test_double_right_angle_brackets
5264 template < typename T >
5267 typedef check<void> single_type;
5268 typedef check<check<void>> double_type;
5269 typedef check<check<check<void>>> triple_type;
5270 typedef check<check<check<check<void>>>> quadruple_type;
5274 namespace test_decltype
5287 namespace test_type_deduction
5290 template < typename T1, typename T2 >
5293 static const bool value = false;
5296 template < typename T >
5297 struct is_same<T, T>
5299 static const bool value = true;
5302 template < typename T1, typename T2 >
5304 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5310 test(const int c, volatile int v)
5312 static_assert(is_same<int, decltype(0)>::value == true, "");
5313 static_assert(is_same<int, decltype(c)>::value == false, "");
5314 static_assert(is_same<int, decltype(v)>::value == false, "");
5317 auto sumi = ac + av + 'x';
5318 auto sumf = ac + av + 1.0;
5319 static_assert(is_same<int, decltype(ac)>::value == true, "");
5320 static_assert(is_same<int, decltype(av)>::value == true, "");
5321 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5322 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5323 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5324 return (sumf > 0.0) ? sumi : add(c, v);
5329 namespace test_noexcept
5332 int f() { return 0; }
5333 int g() noexcept { return 0; }
5335 static_assert(noexcept(f()) == false, "");
5336 static_assert(noexcept(g()) == true, "");
5340 namespace test_constexpr
5343 template < typename CharT >
5344 unsigned long constexpr
5345 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5347 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5350 template < typename CharT >
5351 unsigned long constexpr
5352 strlen_c(const CharT *const s) noexcept
5354 return strlen_c_r(s, 0UL);
5357 static_assert(strlen_c("") == 0UL, "");
5358 static_assert(strlen_c("1") == 1UL, "");
5359 static_assert(strlen_c("example") == 7UL, "");
5360 static_assert(strlen_c("another\0example") == 7UL, "");
5364 namespace test_rvalue_references
5370 static constexpr int value = N;
5373 answer<1> f(int&) { return answer<1>(); }
5374 answer<2> f(const int&) { return answer<2>(); }
5375 answer<3> f(int&&) { return answer<3>(); }
5382 static_assert(decltype(f(i))::value == 1, "");
5383 static_assert(decltype(f(c))::value == 2, "");
5384 static_assert(decltype(f(0))::value == 3, "");
5389 namespace test_uniform_initialization
5394 static const int zero {};
5395 static const int one {1};
5398 static_assert(test::zero == 0, "");
5399 static_assert(test::one == 1, "");
5403 namespace test_lambdas
5409 auto lambda1 = [](){};
5410 auto lambda2 = lambda1;
5418 auto a = [](int i, int j){ return i + j; }(1, 2);
5419 auto b = []() -> int { return '0'; }();
5420 auto c = [=](){ return a + b; }();
5421 auto d = [&](){ return c; }();
5422 auto e = [a, &b](int x) mutable {
5423 const auto identity = [](int y){ return y; };
5424 for (auto i = 0; i < a; ++i)
5426 return x + identity(a + b);
5428 return a + b + c + d + e;
5434 const auto nullary = [](){ return 0; };
5435 const auto unary = [](int x){ return x; };
5436 using nullary_t = decltype(nullary);
5437 using unary_t = decltype(unary);
5438 const auto higher1st = [](nullary_t f){ return f(); };
5439 const auto higher2nd = [unary](nullary_t f1){
5440 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5442 return higher1st(nullary) + higher2nd(nullary)(unary);
5447 namespace test_variadic_templates
5453 template <int N0, int... N1toN>
5454 struct sum<N0, N1toN...>
5456 static constexpr auto value = N0 + sum<N1toN...>::value;
5462 static constexpr auto value = 0;
5465 static_assert(sum<>::value == 0, "");
5466 static_assert(sum<1>::value == 1, "");
5467 static_assert(sum<23>::value == 23, "");
5468 static_assert(sum<1, 2>::value == 3, "");
5469 static_assert(sum<5, 5, 11>::value == 21, "");
5470 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5474 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5475 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5477 namespace test_template_alias_sfinae
5482 template<typename T>
5483 using member = typename T::member_type;
5485 template<typename T>
5488 template<typename T>
5489 void func(member<T>*) {}
5493 void test() { func<foo>(0); }
5497 } // namespace cxx11
5499 #endif // __cplusplus >= 201103L
5504 if ac_fn_cxx_try_compile
"$LINENO"; then :
5505 ax_cv_cxx_compile_cxx11
=yes
5507 ax_cv_cxx_compile_cxx11
=no
5509 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5512 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5513 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
5517 if test x
$ac_success = xno
; then
5518 for alternative
in ${ax_cxx_compile_alternatives}; do
5519 switch
="-std=gnu++${alternative}"
5520 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5522 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5523 if eval \
${$cachevar+:} false
; then :
5524 $as_echo_n "(cached) " >&6
5528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5529 /* end confdefs.h. */
5532 // If the compiler admits that it is not ready for C++11, why torture it?
5533 // Hopefully, this will speed up the test.
5537 #error "This is not a C++ compiler"
5539 #elif __cplusplus < 201103L
5541 #error "This is not a C++11 compiler"
5548 namespace test_static_assert
5551 template <typename T>
5554 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5559 namespace test_final_override
5567 struct Derived : public Base
5569 virtual void f() override {}
5574 namespace test_double_right_angle_brackets
5577 template < typename T >
5580 typedef check<void> single_type;
5581 typedef check<check<void>> double_type;
5582 typedef check<check<check<void>>> triple_type;
5583 typedef check<check<check<check<void>>>> quadruple_type;
5587 namespace test_decltype
5600 namespace test_type_deduction
5603 template < typename T1, typename T2 >
5606 static const bool value = false;
5609 template < typename T >
5610 struct is_same<T, T>
5612 static const bool value = true;
5615 template < typename T1, typename T2 >
5617 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5623 test(const int c, volatile int v)
5625 static_assert(is_same<int, decltype(0)>::value == true, "");
5626 static_assert(is_same<int, decltype(c)>::value == false, "");
5627 static_assert(is_same<int, decltype(v)>::value == false, "");
5630 auto sumi = ac + av + 'x';
5631 auto sumf = ac + av + 1.0;
5632 static_assert(is_same<int, decltype(ac)>::value == true, "");
5633 static_assert(is_same<int, decltype(av)>::value == true, "");
5634 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5635 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5636 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5637 return (sumf > 0.0) ? sumi : add(c, v);
5642 namespace test_noexcept
5645 int f() { return 0; }
5646 int g() noexcept { return 0; }
5648 static_assert(noexcept(f()) == false, "");
5649 static_assert(noexcept(g()) == true, "");
5653 namespace test_constexpr
5656 template < typename CharT >
5657 unsigned long constexpr
5658 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5660 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5663 template < typename CharT >
5664 unsigned long constexpr
5665 strlen_c(const CharT *const s) noexcept
5667 return strlen_c_r(s, 0UL);
5670 static_assert(strlen_c("") == 0UL, "");
5671 static_assert(strlen_c("1") == 1UL, "");
5672 static_assert(strlen_c("example") == 7UL, "");
5673 static_assert(strlen_c("another\0example") == 7UL, "");
5677 namespace test_rvalue_references
5683 static constexpr int value = N;
5686 answer<1> f(int&) { return answer<1>(); }
5687 answer<2> f(const int&) { return answer<2>(); }
5688 answer<3> f(int&&) { return answer<3>(); }
5695 static_assert(decltype(f(i))::value == 1, "");
5696 static_assert(decltype(f(c))::value == 2, "");
5697 static_assert(decltype(f(0))::value == 3, "");
5702 namespace test_uniform_initialization
5707 static const int zero {};
5708 static const int one {1};
5711 static_assert(test::zero == 0, "");
5712 static_assert(test::one == 1, "");
5716 namespace test_lambdas
5722 auto lambda1 = [](){};
5723 auto lambda2 = lambda1;
5731 auto a = [](int i, int j){ return i + j; }(1, 2);
5732 auto b = []() -> int { return '0'; }();
5733 auto c = [=](){ return a + b; }();
5734 auto d = [&](){ return c; }();
5735 auto e = [a, &b](int x) mutable {
5736 const auto identity = [](int y){ return y; };
5737 for (auto i = 0; i < a; ++i)
5739 return x + identity(a + b);
5741 return a + b + c + d + e;
5747 const auto nullary = [](){ return 0; };
5748 const auto unary = [](int x){ return x; };
5749 using nullary_t = decltype(nullary);
5750 using unary_t = decltype(unary);
5751 const auto higher1st = [](nullary_t f){ return f(); };
5752 const auto higher2nd = [unary](nullary_t f1){
5753 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5755 return higher1st(nullary) + higher2nd(nullary)(unary);
5760 namespace test_variadic_templates
5766 template <int N0, int... N1toN>
5767 struct sum<N0, N1toN...>
5769 static constexpr auto value = N0 + sum<N1toN...>::value;
5775 static constexpr auto value = 0;
5778 static_assert(sum<>::value == 0, "");
5779 static_assert(sum<1>::value == 1, "");
5780 static_assert(sum<23>::value == 23, "");
5781 static_assert(sum<1, 2>::value == 3, "");
5782 static_assert(sum<5, 5, 11>::value == 21, "");
5783 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5787 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5788 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5790 namespace test_template_alias_sfinae
5795 template<typename T>
5796 using member = typename T::member_type;
5798 template<typename T>
5801 template<typename T>
5802 void func(member<T>*) {}
5806 void test() { func<foo>(0); }
5810 } // namespace cxx11
5812 #endif // __cplusplus >= 201103L
5817 if ac_fn_cxx_try_compile
"$LINENO"; then :
5822 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5825 eval ac_res
=\$
$cachevar
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5827 $as_echo "$ac_res" >&6; }
5828 if eval test x\$
$cachevar = xyes
; then
5829 CXX_DIALECT
="$switch"
5836 if test x
$ac_success = xno
; then
5837 for alternative
in ${ax_cxx_compile_alternatives}; do
5838 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5839 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
5841 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
5842 if eval \${$cachevar+:} false; then :
5843 $as_echo_n "(cached
) " >&6
5847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5848 /* end confdefs.h. */
5851 // If the compiler admits that it is not ready for C++11, why torture it?
5852 // Hopefully, this will speed up the test.
5856 #error "This is not a C
++ compiler
"
5858 #elif __cplusplus < 201103L
5860 #error "This is not a C
++11 compiler
"
5867 namespace test_static_assert
5870 template <typename T>
5873 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
5878 namespace test_final_override
5886 struct Derived : public Base
5888 virtual void f() override {}
5893 namespace test_double_right_angle_brackets
5896 template < typename T >
5899 typedef check<void> single_type;
5900 typedef check<check<void>> double_type;
5901 typedef check<check<check<void>>> triple_type;
5902 typedef check<check<check<check<void>>>> quadruple_type;
5906 namespace test_decltype
5919 namespace test_type_deduction
5922 template < typename T1, typename T2 >
5925 static const bool value = false;
5928 template < typename T >
5929 struct is_same<T, T>
5931 static const bool value = true;
5934 template < typename T1, typename T2 >
5936 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5942 test(const int c, volatile int v)
5944 static_assert(is_same<int, decltype(0)>::value == true, "");
5945 static_assert(is_same<int, decltype(c)>::value == false, "");
5946 static_assert(is_same<int, decltype(v)>::value == false, "");
5949 auto sumi = ac + av + 'x';
5950 auto sumf = ac + av + 1.0;
5951 static_assert(is_same<int, decltype(ac)>::value == true, "");
5952 static_assert(is_same<int, decltype(av)>::value == true, "");
5953 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5954 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5955 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5956 return (sumf > 0.0) ? sumi : add(c, v);
5961 namespace test_noexcept
5964 int f() { return 0; }
5965 int g() noexcept { return 0; }
5967 static_assert(noexcept(f()) == false, "");
5968 static_assert(noexcept(g()) == true, "");
5972 namespace test_constexpr
5975 template < typename CharT >
5976 unsigned long constexpr
5977 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5979 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5982 template < typename CharT >
5983 unsigned long constexpr
5984 strlen_c(const CharT *const s) noexcept
5986 return strlen_c_r(s, 0UL);
5989 static_assert(strlen_c("") == 0UL, "");
5990 static_assert(strlen_c("1") == 1UL, "");
5991 static_assert(strlen_c("example
") == 7UL, "");
5992 static_assert(strlen_c("another\
0example
") == 7UL, "");
5996 namespace test_rvalue_references
6002 static constexpr int value = N;
6005 answer<1> f(int&) { return answer<1>(); }
6006 answer<2> f(const int&) { return answer<2>(); }
6007 answer<3> f(int&&) { return answer<3>(); }
6014 static_assert(decltype(f(i))::value == 1, "");
6015 static_assert(decltype(f(c))::value == 2, "");
6016 static_assert(decltype(f(0))::value == 3, "");
6021 namespace test_uniform_initialization
6026 static const int zero {};
6027 static const int one {1};
6030 static_assert(test::zero == 0, "");
6031 static_assert(test::one == 1, "");
6035 namespace test_lambdas
6041 auto lambda1 = [](){};
6042 auto lambda2 = lambda1;
6050 auto a = [](int i, int j){ return i + j; }(1, 2);
6051 auto b = []() -> int { return '0'; }();
6052 auto c = [=](){ return a + b; }();
6053 auto d = [&](){ return c; }();
6054 auto e = [a, &b](int x) mutable {
6055 const auto identity = [](int y){ return y; };
6056 for (auto i = 0; i < a; ++i)
6058 return x + identity(a + b);
6060 return a + b + c + d + e;
6066 const auto nullary = [](){ return 0; };
6067 const auto unary = [](int x){ return x; };
6068 using nullary_t = decltype(nullary);
6069 using unary_t = decltype(unary);
6070 const auto higher1st = [](nullary_t f){ return f(); };
6071 const auto higher2nd = [unary](nullary_t f1){
6072 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6074 return higher1st(nullary) + higher2nd(nullary)(unary);
6079 namespace test_variadic_templates
6085 template <int N0, int... N1toN>
6086 struct sum<N0, N1toN...>
6088 static constexpr auto value = N0 + sum<N1toN...>::value;
6094 static constexpr auto value = 0;
6097 static_assert(sum<>::value == 0, "");
6098 static_assert(sum<1>::value == 1, "");
6099 static_assert(sum<23>::value == 23, "");
6100 static_assert(sum<1, 2>::value == 3, "");
6101 static_assert(sum<5, 5, 11>::value == 21, "");
6102 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6106 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6107 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6109 namespace test_template_alias_sfinae
6114 template<typename T>
6115 using member = typename T::member_type;
6117 template<typename T>
6120 template<typename T>
6121 void func(member<T>*) {}
6125 void test() { func<foo>(0); }
6129 } // namespace cxx11
6131 #endif // __cplusplus >= 201103L
6136 if ac_fn_cxx_try_compile "$LINENO"; then :
6141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6144 eval ac_res=\$$cachevar
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6146 $as_echo "$ac_res" >&6; }
6147 if eval test x\$$cachevar = xyes; then
6148 CXX_DIALECT="$switch"
6153 if test x$ac_success = xyes; then
6159 ac_cpp='$CPP $CPPFLAGS'
6160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6164 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6165 if test x$ac_success = xno; then
6166 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6169 if test x$ac_success = xno; then
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6172 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6176 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6183 # Dependency checking.
6184 rm -rf .tst
2>/dev
/null
6185 mkdir .tst
2>/dev
/null
6186 if test -d .tst
; then
6191 rmdir .tst
2>/dev
/null
6193 DEPDIR
="${am__leading_dot}deps"
6195 ac_config_commands
="$ac_config_commands depdir"
6198 depcc
="$CC" am_compiler_list
=
6200 am_depcomp
=$ac_aux_dir/depcomp
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6202 $as_echo_n "checking dependency style of $depcc... " >&6; }
6203 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
6204 $as_echo_n "(cached) " >&6
6206 if test -f "$am_depcomp"; then
6207 # We make a subdir and do the tests there. Otherwise we can end up
6208 # making bogus files that we don't know about and never remove. For
6209 # instance it was reported that on HP-UX the gcc test will end up
6210 # making a dummy file named `D' -- because `-MD' means `put the output
6213 # Copy depcomp to subdir because otherwise we won't find it if we're
6214 # using a relative directory.
6215 cp "$am_depcomp" conftest.dir
6217 # We will build objects and dependencies in a subdirectory because
6218 # it helps to detect inapplicable dependency modes. For instance
6219 # both Tru64's cc and ICC support -MD to output dependencies as a
6220 # side effect of compilation, but ICC will put the dependencies in
6221 # the current directory while Tru64 will put them in the object
6225 am_cv_CC_dependencies_compiler_type
=none
6226 if test "$am_compiler_list" = ""; then
6227 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6229 for depmode
in $am_compiler_list; do
6230 if test $depmode = none
; then break; fi
6232 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6233 # Setup a source with many dependencies, because some compilers
6234 # like to wrap large dependency lists on column 80 (with \), and
6235 # we should not choose a depcomp mode which is confused by this.
6237 # We need to recreate these files for each test, as the compiler may
6238 # overwrite some of them when testing with obscure command lines.
6239 # This happens at least with the AIX C compiler.
6241 for i
in 1 2 3 4 5 6; do
6242 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6243 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6244 # Solaris 8's {/usr,}/bin/sh.
6245 touch sub
/conftst
$i.h
6247 echo "include sub/conftest.Po" > confmf
6249 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6250 # mode. It turns out that the SunPro C++ compiler does not properly
6251 # handle `-M -o', and we need to detect this.
6252 depcmd
="depmode=$depmode \
6253 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6254 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6255 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6256 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
6257 if env
$depcmd > conftest.err
2>&1 &&
6258 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
6259 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
6260 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
6261 # icc doesn't choke on unknown options, it will just issue warnings
6262 # or remarks (even with -Werror). So we grep stderr for any message
6263 # that says an option was ignored or not supported.
6264 # When given -MP, icc 7.0 and 7.1 complain thusly:
6265 # icc: Command line warning: ignoring option '-M'; no argument required
6266 # The diagnosis changed in icc 8.0:
6267 # icc: Command line remark: option '-MP' not supported
6268 if (grep 'ignoring option' conftest.err ||
6269 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6270 am_cv_CC_dependencies_compiler_type
=$depmode
6271 $as_echo "$as_me:$LINENO: success" >&5
6275 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6276 sed -e 's/^/| /' < conftest.err
>&5
6282 am_cv_CC_dependencies_compiler_type
=none
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6287 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6288 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
6289 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
6290 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
6306 # If we haven't got the data from the intl directory,
6307 # assume NLS is disabled.
6316 if test -f ..
/intl
/config.intl
; then
6317 . ..
/intl
/config.intl
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6320 $as_echo_n "checking whether NLS is requested... " >&6; }
6321 if test x
"$USE_NLS" != xyes
; then
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6323 $as_echo "no" >&6; }
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6326 $as_echo "yes" >&6; }
6328 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6332 $as_echo_n "checking for catalogs to be installed... " >&6; }
6333 # Look for .po and .gmo files in the source directory.
6336 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
6337 # If there aren't any .gmo files the shell will give us the
6338 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6340 case "$cat" in *\
**)
6343 # The quadruple backslash is collapsed to a double backslash
6344 # by the backticks, then collapsed again by the double quotes,
6345 # leaving us with one backslash in the sed expression (right
6346 # before the dot that mustn't act as a wildcard).
6347 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6348 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
6349 # The user is allowed to set LINGUAS to a list of languages to
6350 # install catalogs for. If it's empty that means "all of them."
6351 if test "x$LINGUAS" = x
; then
6352 CATALOGS
="$CATALOGS $cat"
6353 XLINGUAS
="$XLINGUAS $lang"
6355 case "$LINGUAS" in *$lang*)
6356 CATALOGS
="$CATALOGS $cat"
6357 XLINGUAS
="$XLINGUAS $lang"
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6364 $as_echo "$LINGUAS" >&6; }
6377 localedir
='${datadir}/locale'
6380 if test x
"$USE_NLS" = xyes
; then
6381 CONFIG_ALL
="$CONFIG_ALL all-po"
6382 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
6383 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
6384 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
6389 cat >>confdefs.h
<<_ACEOF
6390 #define PACKAGE "$PACKAGE"
6395 # We never need to detect it in this sub-configure.
6396 # But preserve it for config.status --recheck.
6400 MAKEINFO_EXTRA_FLAGS
=""
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
6402 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
6403 if ${gdb_cv_have_makeinfo_click+:} false
; then :
6404 $as_echo_n "(cached) " >&6
6406 echo '@clicksequence{a @click{} b}' >conftest.texinfo
6407 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
6408 gdb_cv_have_makeinfo_click
=yes
6410 gdb_cv_have_makeinfo_click
=no
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
6414 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
6415 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
6416 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
6422 # Check whether --with-separate-debug-dir was given.
6423 if test "${with_separate_debug_dir+set}" = set; then :
6424 withval
=$with_separate_debug_dir;
6427 DEBUGDIR
=${libdir}/debug
6431 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6432 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6433 ac_define_dir
=`eval echo $DEBUGDIR`
6434 ac_define_dir
=`eval echo $ac_define_dir`
6436 cat >>confdefs.h
<<_ACEOF
6437 #define DEBUGDIR "$ac_define_dir"
6443 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6444 if test "x$prefix" = xNONE
; then
6445 test_prefix
=/usr
/local
6450 test_prefix
=$exec_prefix
6453 case ${ac_define_dir} in
6454 "${test_prefix}"|
"${test_prefix}/"*|\
6455 '${exec_prefix}'|
'${exec_prefix}/'*)
6460 cat >>confdefs.h
<<_ACEOF
6461 #define DEBUGDIR_RELOCATABLE $value
6467 # We can't pass paths as command line arguments.
6468 # Mingw32 tries to be clever and will convert the paths for us.
6469 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
6470 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
6471 # This breaks GDB's relocatable path conversions since paths passed in
6472 # config.h would not get so translated, the path prefixes no longer match.
6474 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6475 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6476 ac_define_dir
=`eval echo $bindir`
6477 ac_define_dir
=`eval echo $ac_define_dir`
6479 cat >>confdefs.h
<<_ACEOF
6480 #define BINDIR "$ac_define_dir"
6485 # GDB's datadir relocation
6489 # Check whether --with-gdb-datadir was given.
6490 if test "${with_gdb_datadir+set}" = set; then :
6491 withval
=$with_gdb_datadir;
6492 GDB_DATADIR
=$withval
6494 GDB_DATADIR
=${datadir}/gdb
6498 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6499 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6500 ac_define_dir
=`eval echo $GDB_DATADIR`
6501 ac_define_dir
=`eval echo $ac_define_dir`
6503 cat >>confdefs.h
<<_ACEOF
6504 #define GDB_DATADIR "$ac_define_dir"
6510 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6511 if test "x$prefix" = xNONE
; then
6512 test_prefix
=/usr
/local
6517 test_prefix
=$exec_prefix
6520 case ${ac_define_dir} in
6521 "${test_prefix}"|
"${test_prefix}/"*|\
6522 '${exec_prefix}'|
'${exec_prefix}/'*)
6527 cat >>confdefs.h
<<_ACEOF
6528 #define GDB_DATADIR_RELOCATABLE $value
6535 # Check whether --with-relocated-sources was given.
6536 if test "${with_relocated_sources+set}" = set; then :
6537 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
6539 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6540 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6541 ac_define_dir
=`eval echo $reloc_srcdir`
6542 ac_define_dir
=`eval echo $ac_define_dir`
6544 cat >>confdefs.h
<<_ACEOF
6545 #define RELOC_SRCDIR "$ac_define_dir"
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
6554 $as_echo_n "checking for default auto-load directory... " >&6; }
6556 # Check whether --with-auto-load-dir was given.
6557 if test "${with_auto_load_dir+set}" = set; then :
6558 withval
=$with_auto_load_dir;
6560 with_auto_load_dir
='$debugdir:$datadir/auto-load'
6563 escape_dir
=`echo $with_auto_load_dir | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6565 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6566 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6567 ac_define_dir
=`eval echo $escape_dir`
6568 ac_define_dir
=`eval echo $ac_define_dir`
6570 cat >>confdefs.h
<<_ACEOF
6571 #define AUTO_LOAD_DIR "$ac_define_dir"
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
6576 $as_echo "$with_auto_load_dir" >&6; }
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
6579 $as_echo_n "checking for default auto-load safe-path... " >&6; }
6581 # Check whether --with-auto-load-safe-path was given.
6582 if test "${with_auto_load_safe_path+set}" = set; then :
6583 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
6584 with_auto_load_safe_path
="/"
6587 with_auto_load_safe_path
="$with_auto_load_dir"
6590 escape_dir
=`echo $with_auto_load_safe_path | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6592 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6593 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6594 ac_define_dir
=`eval echo $escape_dir`
6595 ac_define_dir
=`eval echo $ac_define_dir`
6597 cat >>confdefs.h
<<_ACEOF
6598 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
6603 $as_echo "$with_auto_load_safe_path" >&6; }
6607 subdirs
="$subdirs testsuite"
6610 # Check whether to support alternative target configurations
6611 # Check whether --enable-targets was given.
6612 if test "${enable_targets+set}" = set; then :
6613 enableval
=$enable_targets; case "${enableval}" in
6614 yes |
"") as_fn_error $?
"enable-targets option must specify target names or 'all'" "$LINENO" 5
6616 no
) enable_targets
= ;;
6617 *) enable_targets
=$enableval ;;
6622 # Check whether to enable 64-bit support on 32-bit hosts
6623 # Check whether --enable-64-bit-bfd was given.
6624 if test "${enable_64_bit_bfd+set}" = set; then :
6625 enableval
=$enable_64_bit_bfd; case "${enableval}" in
6628 *) as_fn_error $?
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
6634 # Provide defaults for some variables set by the per-host and per-target
6636 gdb_host_obs
=posix-hdep.o
6638 if test "${target}" = "${host}"; then
6644 .
$srcdir/configure.
host
6646 # Accumulate some settings from configure.tgt over all enabled targets
6650 HAVE_NATIVE_GCORE_TARGET
=
6652 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6654 if test "$targ_alias" = "all"; then
6657 # Canonicalize the secondary target names.
6658 result
=`$ac_config_sub $targ_alias 2>/dev/null`
6659 if test -n "$result"; then
6665 .
${srcdir}/configure.tgt
6667 if test -z "${gdb_target_obs}"; then :
6668 as_fn_error $?
"configuration ${targ} is unsupported." "$LINENO" 5
6671 # Target-specific object files
6672 for i
in ${gdb_target_obs}; do
6673 case " $TARGET_OBS " in
6676 TARGET_OBS
="$TARGET_OBS ${i}"
6681 # Check whether this target needs 64-bit CORE_ADDR
6682 if test x
${want64} = xfalse
; then
6683 .
${srcdir}/..
/bfd
/config.bfd
6686 # Check whether this target is native and supports gcore.
6687 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
6688 && $gdb_have_gcore; then
6689 HAVE_NATIVE_GCORE_TARGET
=1
6694 if test x
${all_targets} = xtrue
; then
6696 # We want all 64-bit targets if we either:
6697 # - run on a 64-bit host or
6698 # - already require 64-bit support for some other target or
6699 # - the --enable-64-bit-bfd option was supplied
6700 # Otherwise we only support all 32-bit targets.
6702 # NOTE: This test must be in sync with the corresponding
6705 if test x
${want64} = xfalse
; then
6706 # The cast to long int works around a bug in the HP C Compiler
6707 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6708 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6709 # This bug is HP SR number 8606223364.
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6711 $as_echo_n "checking size of long... " >&6; }
6712 if ${ac_cv_sizeof_long+:} false
; then :
6713 $as_echo_n "(cached) " >&6
6715 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6718 if test "$ac_cv_type_long" = yes; then
6719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6721 as_fn_error
77 "cannot compute sizeof (long)
6722 See \`config.log' for more details" "$LINENO" 5; }
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6730 $as_echo "$ac_cv_sizeof_long" >&6; }
6734 cat >>confdefs.h
<<_ACEOF
6735 #define SIZEOF_LONG $ac_cv_sizeof_long
6739 if test "x${ac_cv_sizeof_long}" = "x8"; then
6743 if test x
${want64} = xtrue
; then
6744 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
6746 TARGET_OBS
='$(ALL_TARGET_OBS)'
6753 # For other settings, only the main target counts.
6756 targ
=$target; .
${srcdir}/configure.tgt
6758 # Fetch the default architecture and default target vector from BFD.
6759 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
6761 # We only want the first architecture, so strip off the others if
6762 # there is more than one.
6763 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
6765 if test "x$targ_archs" != x
; then
6767 cat >>confdefs.h
<<_ACEOF
6768 #define DEFAULT_BFD_ARCH $targ_archs
6772 if test "x$targ_defvec" != x
; then
6774 cat >>confdefs.h
<<_ACEOF
6775 #define DEFAULT_BFD_VEC $targ_defvec
6781 # Check whether --enable-gdbmi was given.
6782 if test "${enable_gdbmi+set}" = set; then :
6783 enableval
=$enable_gdbmi; case $enableval in
6787 as_fn_error $?
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
6793 if test x
"$enable_gdbmi" = xyes
; then
6794 if test -d "$srcdir/mi"; then
6795 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6796 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6797 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6798 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6803 # Check whether --enable-tui was given.
6804 if test "${enable_tui+set}" = set; then :
6805 enableval
=$enable_tui; case $enableval in
6809 as_fn_error $?
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
6817 # Check whether --enable-gdbtk was given.
6818 if test "${enable_gdbtk+set}" = set; then :
6819 enableval
=$enable_gdbtk; case $enableval in
6823 as_fn_error $?
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
6826 if test -d "$srcdir/gdbtk"; then
6833 # We unconditionally disable gdbtk tests on selected platforms.
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
6837 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6841 # Handle optional debuginfod support
6849 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6850 if test -n "$ac_tool_prefix"; then
6851 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6852 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6854 $as_echo_n "checking for $ac_word... " >&6; }
6855 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
6856 $as_echo_n "(cached) " >&6
6860 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6863 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6867 test -z "$as_dir" && as_dir
=.
6868 for ac_exec_ext
in '' $ac_executable_extensions; do
6869 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6870 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6881 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6882 if test -n "$PKG_CONFIG"; then
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6884 $as_echo "$PKG_CONFIG" >&6; }
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6887 $as_echo "no" >&6; }
6892 if test -z "$ac_cv_path_PKG_CONFIG"; then
6893 ac_pt_PKG_CONFIG
=$PKG_CONFIG
6894 # Extract the first word of "pkg-config", so it can be a program name with args.
6895 set dummy pkg-config
; ac_word
=$2
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6897 $as_echo_n "checking for $ac_word... " >&6; }
6898 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
6899 $as_echo_n "(cached) " >&6
6901 case $ac_pt_PKG_CONFIG in
6903 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6906 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6910 test -z "$as_dir" && as_dir
=.
6911 for ac_exec_ext
in '' $ac_executable_extensions; do
6912 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6913 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6924 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
6925 if test -n "$ac_pt_PKG_CONFIG"; then
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6927 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6930 $as_echo "no" >&6; }
6933 if test "x$ac_pt_PKG_CONFIG" = x
; then
6936 case $cross_compiling:$ac_tool_warned in
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6939 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6940 ac_tool_warned
=yes ;;
6942 PKG_CONFIG
=$ac_pt_PKG_CONFIG
6945 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
6949 if test -n "$PKG_CONFIG"; then
6950 _pkg_min_version
=0.9.0
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6952 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6953 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6955 $as_echo "yes" >&6; }
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6958 $as_echo "no" >&6; }
6963 # Handle optional debuginfod support
6965 # Check whether --with-debuginfod was given.
6966 if test "${with_debuginfod+set}" = set; then :
6967 withval
=$with_debuginfod;
6969 with_debuginfod
=auto
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
6973 $as_echo_n "checking whether to use debuginfod... " >&6; }
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
6975 $as_echo "$with_debuginfod" >&6; }
6977 if test "x$with_debuginfod" != xno
; then
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
6981 $as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
6983 if test -n "$DEBUGINFOD_CFLAGS"; then
6984 pkg_cv_DEBUGINFOD_CFLAGS
="$DEBUGINFOD_CFLAGS"
6985 elif test -n "$PKG_CONFIG"; then
6986 if test -n "$PKG_CONFIG" && \
6987 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
6988 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
6990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6991 test $ac_status = 0; }; then
6992 pkg_cv_DEBUGINFOD_CFLAGS
=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
6993 test "x$?" != "x0" && pkg_failed
=yes
7000 if test -n "$DEBUGINFOD_LIBS"; then
7001 pkg_cv_DEBUGINFOD_LIBS
="$DEBUGINFOD_LIBS"
7002 elif test -n "$PKG_CONFIG"; then
7003 if test -n "$PKG_CONFIG" && \
7004 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
7005 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
7007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7008 test $ac_status = 0; }; then
7009 pkg_cv_DEBUGINFOD_LIBS
=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
7010 test "x$?" != "x0" && pkg_failed
=yes
7018 if test $pkg_failed = no
; then
7019 pkg_save_LDFLAGS
="$LDFLAGS"
7020 LDFLAGS
="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
7021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7022 /* end confdefs.h. */
7032 if ac_fn_c_try_link
"$LINENO"; then :
7037 rm -f core conftest.err conftest.
$ac_objext \
7038 conftest
$ac_exeext conftest.
$ac_ext
7039 LDFLAGS
=$pkg_save_LDFLAGS
7044 if test $pkg_failed = yes; then
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7046 $as_echo "no" >&6; }
7048 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7049 _pkg_short_errors_supported
=yes
7051 _pkg_short_errors_supported
=no
7053 if test $_pkg_short_errors_supported = yes; then
7054 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
7056 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
7058 # Put the nasty error message in config.log where it belongs
7059 echo "$DEBUGINFOD_PKG_ERRORS" >&5
7061 if test "x$with_debuginfod" = xyes
; then
7062 as_fn_error $?
"\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
7065 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
7067 elif test $pkg_failed = untried
; then
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7069 $as_echo "no" >&6; }
7070 if test "x$with_debuginfod" = xyes
; then
7071 as_fn_error $?
"\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
7074 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
7077 DEBUGINFOD_CFLAGS
=$pkg_cv_DEBUGINFOD_CFLAGS
7078 DEBUGINFOD_LIBS
=$pkg_cv_DEBUGINFOD_LIBS
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7080 $as_echo "yes" >&6; }
7082 $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
7087 $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
7091 # Libunwind support for ia64.
7093 # Check whether --with-libunwind-ia64 was given.
7094 if test "${with_libunwind_ia64+set}" = set; then :
7095 withval
=$with_libunwind_ia64;
7097 with_libunwind_ia64
=auto
7101 # Backward compatibility option.
7102 if test "${with_libunwind+set}" = set; then
7103 if test x
"$with_libunwind_ia64" != xauto
; then
7104 as_fn_error $?
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
7107 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
7108 with_libunwind_ia64
="$with_libunwind"
7111 case "$with_libunwind_ia64" in
7115 for ac_header
in libunwind-ia64.h
7117 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
7118 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
7119 cat >>confdefs.h
<<_ACEOF
7120 #define HAVE_LIBUNWIND_IA64_H 1
7127 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
7130 as_fn_error $?
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
7134 if test x
"$with_libunwind_ia64" = xyes
; then
7135 for ac_header
in libunwind-ia64.h
7137 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
7138 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
7139 cat >>confdefs.h
<<_ACEOF
7140 #define HAVE_LIBUNWIND_IA64_H 1
7147 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
7148 as_fn_error $?
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
7150 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
7151 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
7152 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
7157 # Check whether --with-curses was given.
7158 if test "${with_curses+set}" = set; then :
7159 withval
=$with_curses; opt_curses
=$withval
7164 if test "$opt_curses" = "yes"; then
7168 # Profiling support.
7169 # Check whether --enable-profiling was given.
7170 if test "${enable_profiling+set}" = set; then :
7171 enableval
=$enable_profiling; case $enableval in
7175 as_fn_error $?
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
7182 for ac_func
in monstartup _mcleanup
7184 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7185 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7186 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7187 cat >>confdefs.h
<<_ACEOF
7188 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
7195 $as_echo_n "checking for _etext... " >&6; }
7196 if ${ac_cv_var__etext+:} false
; then :
7197 $as_echo_n "(cached) " >&6
7199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7200 /* end confdefs.h. */
7212 if ac_fn_c_try_link
"$LINENO"; then :
7213 ac_cv_var__etext
=yes
7218 rm -f core conftest.err conftest.
$ac_objext \
7219 conftest
$ac_exeext conftest.
$ac_ext
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
7223 $as_echo "$ac_cv_var__etext" >&6; }
7224 if test "$ac_cv_var__etext" = yes; then
7226 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
7230 $as_echo_n "checking for etext... " >&6; }
7231 if ${ac_cv_var_etext+:} false
; then :
7232 $as_echo_n "(cached) " >&6
7234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7235 /* end confdefs.h. */
7247 if ac_fn_c_try_link
"$LINENO"; then :
7253 rm -f core conftest.err conftest.
$ac_objext \
7254 conftest
$ac_exeext conftest.
$ac_ext
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
7258 $as_echo "$ac_cv_var_etext" >&6; }
7259 if test "$ac_cv_var_etext" = yes; then
7261 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
7264 if test "$enable_profiling" = yes ; then
7265 if test "$ac_cv_func_monstartup" = no ||
test "$ac_cv_func__mcleanup" = no
; then
7266 as_fn_error $?
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
7269 OLD_CFLAGS
="$CFLAGS"
7270 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
7273 $as_echo_n "checking whether $CC supports -pg... " >&6; }
7274 if ${ac_cv_cc_supports_pg+:} false
; then :
7275 $as_echo_n "(cached) " >&6
7277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7278 /* end confdefs.h. */
7288 if ac_fn_c_try_compile
"$LINENO"; then :
7289 ac_cv_cc_supports_pg
=yes
7291 ac_cv_cc_supports_pg
=no
7294 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
7298 $as_echo "$ac_cv_cc_supports_pg" >&6; }
7300 if test "$ac_cv_cc_supports_pg" = no
; then
7301 as_fn_error $?
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
7304 CFLAGS
="$OLD_CFLAGS"
7308 # Check whether --enable-codesign was given.
7309 if test "${enable_codesign+set}" = set; then :
7310 enableval
=$enable_codesign; CODESIGN_CERT
=$enableval
7317 # Check whether --with-pkgversion was given.
7318 if test "${with_pkgversion+set}" = set; then :
7319 withval
=$with_pkgversion; case "$withval" in
7320 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
7322 *) PKGVERSION
="($withval) " ;;
7333 # Check whether --with-bugurl was given.
7334 if test "${with_bugurl+set}" = set; then :
7335 withval
=$with_bugurl; case "$withval" in
7336 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
7339 *) BUGURL
="$withval"
7343 BUGURL
="https://www.gnu.org/software/gdb/bugs/"
7353 REPORT_BUGS_TO
="<$BUGURL>"
7354 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7361 cat >>confdefs.h
<<_ACEOF
7362 #define PKGVERSION "$PKGVERSION"
7366 cat >>confdefs.h
<<_ACEOF
7367 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7371 # --------------------- #
7372 # Checks for programs. #
7373 # --------------------- #
7375 for ac_prog
in gawk mawk nawk
awk
7377 # Extract the first word of "$ac_prog", so it can be a program name with args.
7378 set dummy
$ac_prog; ac_word
=$2
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7380 $as_echo_n "checking for $ac_word... " >&6; }
7381 if ${ac_cv_prog_AWK+:} false
; then :
7382 $as_echo_n "(cached) " >&6
7384 if test -n "$AWK"; then
7385 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7387 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7391 test -z "$as_dir" && as_dir
=.
7392 for ac_exec_ext
in '' $ac_executable_extensions; do
7393 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7394 ac_cv_prog_AWK
="$ac_prog"
7395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7405 if test -n "$AWK"; then
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7407 $as_echo "$AWK" >&6; }
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7410 $as_echo "no" >&6; }
7414 test -n "$AWK" && break
7417 # Find a good install program. We prefer a C program (faster),
7418 # so one script is as good as another. But avoid the broken or
7419 # incompatible versions:
7420 # SysV /etc/install, /usr/sbin/install
7421 # SunOS /usr/etc/install
7422 # IRIX /sbin/install
7424 # AmigaOS /C/install, which installs bootblocks on floppy discs
7425 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7426 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7427 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7428 # OS/2's system install, which has a completely different semantic
7429 # ./install, which can be erroneously created by make from ./install.sh.
7430 # Reject install programs that cannot install multiple files.
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7432 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7433 if test -z "$INSTALL"; then
7434 if ${ac_cv_path_install+:} false
; then :
7435 $as_echo_n "(cached) " >&6
7437 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7441 test -z "$as_dir" && as_dir
=.
7442 # Account for people who put trailing slashes in PATH elements.
7443 case $as_dir/ in #((
7444 .
/ | .
// |
/[cC
]/* | \
7445 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7446 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
7449 # OSF1 and SCO ODT 3.0 have their own names for install.
7450 # Don't use installbsd from OSF since it installs stuff as root
7452 for ac_prog
in ginstall scoinst
install; do
7453 for ac_exec_ext
in '' $ac_executable_extensions; do
7454 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
7455 if test $ac_prog = install &&
7456 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7457 # AIX install. It has an incompatible calling convention.
7459 elif test $ac_prog = install &&
7460 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7461 # program-specific install script used by HP pwplus--don't use.
7464 rm -rf conftest.one conftest.two conftest.dir
7465 echo one
> conftest.one
7466 echo two
> conftest.two
7468 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
7469 test -s conftest.one
&& test -s conftest.two
&&
7470 test -s conftest.dir
/conftest.one
&&
7471 test -s conftest.dir
/conftest.two
7473 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7486 rm -rf conftest.one conftest.two conftest.dir
7489 if test "${ac_cv_path_install+set}" = set; then
7490 INSTALL
=$ac_cv_path_install
7492 # As a last resort, use the slow shell script. Don't cache a
7493 # value for INSTALL within a source directory, because that will
7494 # break other packages using the cache if that directory is
7495 # removed, or if the value is a relative name.
7496 INSTALL
=$ac_install_sh
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7500 $as_echo "$INSTALL" >&6; }
7502 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7503 # It thinks the first close brace ends the variable substitution.
7504 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7506 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7508 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7511 $as_echo_n "checking whether ln -s works... " >&6; }
7513 if test "$LN_S" = "ln -s"; then
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7515 $as_echo "yes" >&6; }
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7518 $as_echo "no, using $LN_S" >&6; }
7521 if test -n "$ac_tool_prefix"; then
7522 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7523 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7525 $as_echo_n "checking for $ac_word... " >&6; }
7526 if ${ac_cv_prog_RANLIB+:} false
; then :
7527 $as_echo_n "(cached) " >&6
7529 if test -n "$RANLIB"; then
7530 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7532 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7536 test -z "$as_dir" && as_dir
=.
7537 for ac_exec_ext
in '' $ac_executable_extensions; do
7538 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7539 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7549 RANLIB
=$ac_cv_prog_RANLIB
7550 if test -n "$RANLIB"; then
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7552 $as_echo "$RANLIB" >&6; }
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7555 $as_echo "no" >&6; }
7560 if test -z "$ac_cv_prog_RANLIB"; then
7561 ac_ct_RANLIB
=$RANLIB
7562 # Extract the first word of "ranlib", so it can be a program name with args.
7563 set dummy ranlib
; ac_word
=$2
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7565 $as_echo_n "checking for $ac_word... " >&6; }
7566 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
7567 $as_echo_n "(cached) " >&6
7569 if test -n "$ac_ct_RANLIB"; then
7570 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7572 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7576 test -z "$as_dir" && as_dir
=.
7577 for ac_exec_ext
in '' $ac_executable_extensions; do
7578 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7579 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7589 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7590 if test -n "$ac_ct_RANLIB"; then
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7592 $as_echo "$ac_ct_RANLIB" >&6; }
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7595 $as_echo "no" >&6; }
7598 if test "x$ac_ct_RANLIB" = x
; then
7601 case $cross_compiling:$ac_tool_warned in
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7605 ac_tool_warned
=yes ;;
7607 RANLIB
=$ac_ct_RANLIB
7610 RANLIB
="$ac_cv_prog_RANLIB"
7613 for ac_prog
in 'bison -y' byacc
7615 # Extract the first word of "$ac_prog", so it can be a program name with args.
7616 set dummy
$ac_prog; ac_word
=$2
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7618 $as_echo_n "checking for $ac_word... " >&6; }
7619 if ${ac_cv_prog_YACC+:} false
; then :
7620 $as_echo_n "(cached) " >&6
7622 if test -n "$YACC"; then
7623 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
7625 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7629 test -z "$as_dir" && as_dir
=.
7630 for ac_exec_ext
in '' $ac_executable_extensions; do
7631 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7632 ac_cv_prog_YACC
="$ac_prog"
7633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7642 YACC
=$ac_cv_prog_YACC
7643 if test -n "$YACC"; then
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7645 $as_echo "$YACC" >&6; }
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7648 $as_echo "no" >&6; }
7652 test -n "$YACC" && break
7654 test -n "$YACC" || YACC
="yacc"
7657 if test -n "$ac_tool_prefix"; then
7658 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7659 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7661 $as_echo_n "checking for $ac_word... " >&6; }
7662 if ${ac_cv_prog_AR+:} false
; then :
7663 $as_echo_n "(cached) " >&6
7665 if test -n "$AR"; then
7666 ac_cv_prog_AR
="$AR" # Let the user override the test.
7668 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7672 test -z "$as_dir" && as_dir
=.
7673 for ac_exec_ext
in '' $ac_executable_extensions; do
7674 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7675 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7686 if test -n "$AR"; then
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7688 $as_echo "$AR" >&6; }
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691 $as_echo "no" >&6; }
7696 if test -z "$ac_cv_prog_AR"; then
7698 # Extract the first word of "ar", so it can be a program name with args.
7699 set dummy
ar; ac_word
=$2
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7701 $as_echo_n "checking for $ac_word... " >&6; }
7702 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
7703 $as_echo_n "(cached) " >&6
7705 if test -n "$ac_ct_AR"; then
7706 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7708 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7712 test -z "$as_dir" && as_dir
=.
7713 for ac_exec_ext
in '' $ac_executable_extensions; do
7714 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7715 ac_cv_prog_ac_ct_AR
="ar"
7716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7725 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7726 if test -n "$ac_ct_AR"; then
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7728 $as_echo "$ac_ct_AR" >&6; }
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7731 $as_echo "no" >&6; }
7734 if test "x$ac_ct_AR" = x
; then
7737 case $cross_compiling:$ac_tool_warned in
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7741 ac_tool_warned
=yes ;;
7749 if test -n "$ac_tool_prefix"; then
7750 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7751 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7753 $as_echo_n "checking for $ac_word... " >&6; }
7754 if ${ac_cv_prog_DLLTOOL+:} false
; then :
7755 $as_echo_n "(cached) " >&6
7757 if test -n "$DLLTOOL"; then
7758 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
7760 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7764 test -z "$as_dir" && as_dir
=.
7765 for ac_exec_ext
in '' $ac_executable_extensions; do
7766 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7767 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
7768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7777 DLLTOOL
=$ac_cv_prog_DLLTOOL
7778 if test -n "$DLLTOOL"; then
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7780 $as_echo "$DLLTOOL" >&6; }
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7783 $as_echo "no" >&6; }
7788 if test -z "$ac_cv_prog_DLLTOOL"; then
7789 ac_ct_DLLTOOL
=$DLLTOOL
7790 # Extract the first word of "dlltool", so it can be a program name with args.
7791 set dummy dlltool
; ac_word
=$2
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7793 $as_echo_n "checking for $ac_word... " >&6; }
7794 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
7795 $as_echo_n "(cached) " >&6
7797 if test -n "$ac_ct_DLLTOOL"; then
7798 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
7800 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7804 test -z "$as_dir" && as_dir
=.
7805 for ac_exec_ext
in '' $ac_executable_extensions; do
7806 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7807 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
7808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7817 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
7818 if test -n "$ac_ct_DLLTOOL"; then
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7820 $as_echo "$ac_ct_DLLTOOL" >&6; }
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7823 $as_echo "no" >&6; }
7826 if test "x$ac_ct_DLLTOOL" = x
; then
7829 case $cross_compiling:$ac_tool_warned in
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7833 ac_tool_warned
=yes ;;
7835 DLLTOOL
=$ac_ct_DLLTOOL
7838 DLLTOOL
="$ac_cv_prog_DLLTOOL"
7841 if test -n "$ac_tool_prefix"; then
7842 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7843 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7845 $as_echo_n "checking for $ac_word... " >&6; }
7846 if ${ac_cv_prog_WINDRES+:} false
; then :
7847 $as_echo_n "(cached) " >&6
7849 if test -n "$WINDRES"; then
7850 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
7852 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7856 test -z "$as_dir" && as_dir
=.
7857 for ac_exec_ext
in '' $ac_executable_extensions; do
7858 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7859 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
7860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7869 WINDRES
=$ac_cv_prog_WINDRES
7870 if test -n "$WINDRES"; then
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7872 $as_echo "$WINDRES" >&6; }
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7875 $as_echo "no" >&6; }
7880 if test -z "$ac_cv_prog_WINDRES"; then
7881 ac_ct_WINDRES
=$WINDRES
7882 # Extract the first word of "windres", so it can be a program name with args.
7883 set dummy windres
; ac_word
=$2
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7885 $as_echo_n "checking for $ac_word... " >&6; }
7886 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
7887 $as_echo_n "(cached) " >&6
7889 if test -n "$ac_ct_WINDRES"; then
7890 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
7892 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7896 test -z "$as_dir" && as_dir
=.
7897 for ac_exec_ext
in '' $ac_executable_extensions; do
7898 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7899 ac_cv_prog_ac_ct_WINDRES
="windres"
7900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7909 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
7910 if test -n "$ac_ct_WINDRES"; then
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7912 $as_echo "$ac_ct_WINDRES" >&6; }
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7915 $as_echo "no" >&6; }
7918 if test "x$ac_ct_WINDRES" = x
; then
7921 case $cross_compiling:$ac_tool_warned in
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7925 ac_tool_warned
=yes ;;
7927 WINDRES
=$ac_ct_WINDRES
7930 WINDRES
="$ac_cv_prog_WINDRES"
7936 # Needed for GNU Hurd hosts.
7937 if test -n "$ac_tool_prefix"; then
7938 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7939 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7941 $as_echo_n "checking for $ac_word... " >&6; }
7942 if ${ac_cv_prog_MIG+:} false
; then :
7943 $as_echo_n "(cached) " >&6
7945 if test -n "$MIG"; then
7946 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
7948 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7952 test -z "$as_dir" && as_dir
=.
7953 for ac_exec_ext
in '' $ac_executable_extensions; do
7954 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7955 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
7956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7966 if test -n "$MIG"; then
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
7968 $as_echo "$MIG" >&6; }
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971 $as_echo "no" >&6; }
7976 if test -z "$ac_cv_prog_MIG"; then
7978 # Extract the first word of "mig", so it can be a program name with args.
7979 set dummy mig
; ac_word
=$2
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7981 $as_echo_n "checking for $ac_word... " >&6; }
7982 if ${ac_cv_prog_ac_ct_MIG+:} false
; then :
7983 $as_echo_n "(cached) " >&6
7985 if test -n "$ac_ct_MIG"; then
7986 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
7988 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7992 test -z "$as_dir" && as_dir
=.
7993 for ac_exec_ext
in '' $ac_executable_extensions; do
7994 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7995 ac_cv_prog_ac_ct_MIG
="mig"
7996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8005 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
8006 if test -n "$ac_ct_MIG"; then
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
8008 $as_echo "$ac_ct_MIG" >&6; }
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011 $as_echo "no" >&6; }
8014 if test "x$ac_ct_MIG" = x
; then
8017 case $cross_compiling:$ac_tool_warned in
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8021 ac_tool_warned
=yes ;;
8026 MIG
="$ac_cv_prog_MIG"
8029 if test x
"$MIG" = x
; then
8030 as_fn_error $?
"MIG not found but required for $host hosts" "$LINENO" 5
8035 # ---------------------- #
8036 # Checks for libraries. #
8037 # ---------------------- #
8039 # We might need to link with -lm; most simulators need it.
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
8041 $as_echo_n "checking for main in -lm... " >&6; }
8042 if ${ac_cv_lib_m_main+:} false
; then :
8043 $as_echo_n "(cached) " >&6
8045 ac_check_lib_save_LIBS
=$LIBS
8047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8048 /* end confdefs.h. */
8059 if ac_fn_c_try_link
"$LINENO"; then :
8060 ac_cv_lib_m_main
=yes
8064 rm -f core conftest.err conftest.
$ac_objext \
8065 conftest
$ac_exeext conftest.
$ac_ext
8066 LIBS
=$ac_check_lib_save_LIBS
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
8069 $as_echo "$ac_cv_lib_m_main" >&6; }
8070 if test "x$ac_cv_lib_m_main" = xyes
; then :
8071 cat >>confdefs.h
<<_ACEOF
8080 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
8082 $as_echo_n "checking for library containing gethostbyname... " >&6; }
8083 if ${ac_cv_search_gethostbyname+:} false
; then :
8084 $as_echo_n "(cached) " >&6
8086 ac_func_search_save_LIBS
=$LIBS
8087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8088 /* end confdefs.h. */
8090 /* Override any GCC internal prototype to avoid an error.
8091 Use char because int might match the return type of a GCC
8092 builtin and then its argument prototype would still apply. */
8096 char gethostbyname ();
8100 return gethostbyname ();
8105 for ac_lib
in '' nsl
; do
8106 if test -z "$ac_lib"; then
8107 ac_res
="none required"
8110 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8112 if ac_fn_c_try_link
"$LINENO"; then :
8113 ac_cv_search_gethostbyname
=$ac_res
8115 rm -f core conftest.err conftest.
$ac_objext \
8117 if ${ac_cv_search_gethostbyname+:} false
; then :
8121 if ${ac_cv_search_gethostbyname+:} false
; then :
8124 ac_cv_search_gethostbyname
=no
8127 LIBS
=$ac_func_search_save_LIBS
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
8130 $as_echo "$ac_cv_search_gethostbyname" >&6; }
8131 ac_res
=$ac_cv_search_gethostbyname
8132 if test "$ac_res" != no
; then :
8133 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8138 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
8140 $as_echo_n "checking for library containing socketpair... " >&6; }
8141 if ${ac_cv_search_socketpair+:} false
; then :
8142 $as_echo_n "(cached) " >&6
8144 ac_func_search_save_LIBS
=$LIBS
8145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8146 /* end confdefs.h. */
8148 /* Override any GCC internal prototype to avoid an error.
8149 Use char because int might match the return type of a GCC
8150 builtin and then its argument prototype would still apply. */
8158 return socketpair ();
8163 for ac_lib
in '' socket
; do
8164 if test -z "$ac_lib"; then
8165 ac_res
="none required"
8168 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8170 if ac_fn_c_try_link
"$LINENO"; then :
8171 ac_cv_search_socketpair
=$ac_res
8173 rm -f core conftest.err conftest.
$ac_objext \
8175 if ${ac_cv_search_socketpair+:} false
; then :
8179 if ${ac_cv_search_socketpair+:} false
; then :
8182 ac_cv_search_socketpair
=no
8185 LIBS
=$ac_func_search_save_LIBS
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
8188 $as_echo "$ac_cv_search_socketpair" >&6; }
8189 ac_res
=$ac_cv_search_socketpair
8190 if test "$ac_res" != no
; then :
8191 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8196 # Link in zlib if we can. This allows us to read compressed debug sections.
8198 # Use the system's zlib library.
8199 zlibdir
="-L\$(top_builddir)/../zlib"
8200 zlibinc
="-I\$(top_srcdir)/../zlib"
8202 # Check whether --with-system-zlib was given.
8203 if test "${with_system_zlib+set}" = set; then :
8204 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
8216 if test "X$prefix" = "XNONE"; then
8217 acl_final_prefix
="$ac_default_prefix"
8219 acl_final_prefix
="$prefix"
8221 if test "X$exec_prefix" = "XNONE"; then
8222 acl_final_exec_prefix
='${prefix}'
8224 acl_final_exec_prefix
="$exec_prefix"
8226 acl_save_prefix
="$prefix"
8227 prefix
="$acl_final_prefix"
8228 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8229 prefix
="$acl_save_prefix"
8232 # Check whether --with-gnu-ld was given.
8233 if test "${with_gnu_ld+set}" = set; then :
8234 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8239 # Prepare PATH_SEPARATOR.
8240 # The user is always right.
8241 if test "${PATH_SEPARATOR+set}" != set; then
8242 echo "#! /bin/sh" >conf$$.sh
8243 echo "exit 0" >>conf$$.sh
8245 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8253 if test "$GCC" = yes; then
8254 # Check if gcc -print-prog-name=ld gives a path.
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8256 $as_echo_n "checking for ld used by GCC... " >&6; }
8259 # gcc leaves a trailing carriage return which upsets mingw
8260 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8262 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8265 # Accept absolute paths.
8266 [\\/]* |
[A-Za-z
]:[\\/]*)
8267 re_direlt
='/[^/][^/]*/\.\./'
8268 # Canonicalize the path of ld
8269 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8270 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8271 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8273 test -z "$LD" && LD
="$ac_prog"
8276 # If it fails, then pretend we aren't using GCC.
8280 # If it is relative, then search for the first ld in PATH.
8284 elif test "$with_gnu_ld" = yes; then
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8286 $as_echo_n "checking for GNU ld... " >&6; }
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8289 $as_echo_n "checking for non-GNU ld... " >&6; }
8291 if ${acl_cv_path_LD+:} false
; then :
8292 $as_echo_n "(cached) " >&6
8294 if test -z "$LD"; then
8295 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8296 for ac_dir
in $PATH; do
8297 test -z "$ac_dir" && ac_dir
=.
8298 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8299 acl_cv_path_LD
="$ac_dir/$ac_prog"
8300 # Check to see if the program is GNU ld. I'd rather use --version,
8301 # but apparently some GNU ld's only accept -v.
8302 # Break only if it was the GNU/non-GNU ld that we prefer.
8303 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
8304 test "$with_gnu_ld" != no
&& break
8306 test "$with_gnu_ld" != yes && break
8312 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8316 LD
="$acl_cv_path_LD"
8317 if test -n "$LD"; then
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8319 $as_echo "$LD" >&6; }
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8322 $as_echo "no" >&6; }
8324 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8326 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8327 if ${acl_cv_prog_gnu_ld+:} false
; then :
8328 $as_echo_n "(cached) " >&6
8330 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8331 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8332 acl_cv_prog_gnu_ld
=yes
8334 acl_cv_prog_gnu_ld
=no
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8338 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8339 with_gnu_ld
=$acl_cv_prog_gnu_ld
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8344 $as_echo_n "checking for shared library run path origin... " >&6; }
8345 if ${acl_cv_rpath+:} false
; then :
8346 $as_echo_n "(cached) " >&6
8349 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8350 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8357 $as_echo "$acl_cv_rpath" >&6; }
8359 libext
="$acl_cv_libext"
8360 shlibext
="$acl_cv_shlibext"
8361 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8362 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8363 hardcode_direct
="$acl_cv_hardcode_direct"
8364 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8365 # Check whether --enable-rpath was given.
8366 if test "${enable_rpath+set}" = set; then :
8367 enableval
=$enable_rpath; :
8381 acl_save_prefix
="$prefix"
8382 prefix
="$acl_final_prefix"
8383 acl_save_exec_prefix
="$exec_prefix"
8384 exec_prefix
="$acl_final_exec_prefix"
8386 eval additional_includedir
=\"$includedir\"
8387 eval additional_libdir
=\"$libdir\"
8389 exec_prefix
="$acl_save_exec_prefix"
8390 prefix
="$acl_save_prefix"
8393 # Check whether --with-libiconv-prefix was given.
8394 if test "${with_libiconv_prefix+set}" = set; then :
8395 withval
=$with_libiconv_prefix;
8396 if test "X$withval" = "Xno"; then
8399 if test "X$withval" = "X"; then
8401 acl_save_prefix
="$prefix"
8402 prefix
="$acl_final_prefix"
8403 acl_save_exec_prefix
="$exec_prefix"
8404 exec_prefix
="$acl_final_exec_prefix"
8406 eval additional_includedir
=\"$includedir\"
8407 eval additional_libdir
=\"$libdir\"
8409 exec_prefix
="$acl_save_exec_prefix"
8410 prefix
="$acl_save_prefix"
8413 additional_includedir
="$withval/include"
8414 additional_libdir
="$withval/lib"
8421 # Check whether --with-libiconv-type was given.
8422 if test "${with_libiconv_type+set}" = set; then :
8423 withval
=$with_libiconv_type; with_libiconv_type
=$withval
8425 with_libiconv_type
=auto
8428 lib_type
=`eval echo \$with_libiconv_type`
8435 names_already_handled
=
8436 names_next_round
='iconv '
8437 while test -n "$names_next_round"; do
8438 names_this_round
="$names_next_round"
8440 for name
in $names_this_round; do
8442 for n
in $names_already_handled; do
8443 if test "$n" = "$name"; then
8448 if test -z "$already_handled"; then
8449 names_already_handled
="$names_already_handled $name"
8450 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8451 eval value
=\"\
$HAVE_LIB$uppername\"
8452 if test -n "$value"; then
8453 if test "$value" = yes; then
8454 eval value
=\"\
$LIB$uppername\"
8455 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
8456 eval value
=\"\
$LTLIB$uppername\"
8457 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
8466 if test $use_additional = yes; then
8467 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8468 found_dir
="$additional_libdir"
8469 found_so
="$additional_libdir/lib$name.$shlibext"
8470 if test -f "$additional_libdir/lib$name.la"; then
8471 found_la
="$additional_libdir/lib$name.la"
8473 elif test x
$lib_type != xshared
; then
8474 if test -f "$additional_libdir/lib$name.$libext"; then
8475 found_dir
="$additional_libdir"
8476 found_a
="$additional_libdir/lib$name.$libext"
8477 if test -f "$additional_libdir/lib$name.la"; then
8478 found_la
="$additional_libdir/lib$name.la"
8483 if test "X$found_dir" = "X"; then
8484 for x
in $LDFLAGS $LTLIBICONV; do
8486 acl_save_prefix
="$prefix"
8487 prefix
="$acl_final_prefix"
8488 acl_save_exec_prefix
="$exec_prefix"
8489 exec_prefix
="$acl_final_exec_prefix"
8491 exec_prefix
="$acl_save_exec_prefix"
8492 prefix
="$acl_save_prefix"
8496 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8497 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8499 found_so
="$dir/lib$name.$shlibext"
8500 if test -f "$dir/lib$name.la"; then
8501 found_la
="$dir/lib$name.la"
8503 elif test x
$lib_type != xshared
; then
8504 if test -f "$dir/lib$name.$libext"; then
8506 found_a
="$dir/lib$name.$libext"
8507 if test -f "$dir/lib$name.la"; then
8508 found_la
="$dir/lib$name.la"
8514 if test "X$found_dir" != "X"; then
8519 if test "X$found_dir" != "X"; then
8520 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8521 if test "X$found_so" != "X"; then
8522 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8523 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8526 for x
in $ltrpathdirs; do
8527 if test "X$x" = "X$found_dir"; then
8532 if test -z "$haveit"; then
8533 ltrpathdirs
="$ltrpathdirs $found_dir"
8535 if test "$hardcode_direct" = yes; then
8536 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8538 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8539 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8541 for x
in $rpathdirs; do
8542 if test "X$x" = "X$found_dir"; then
8547 if test -z "$haveit"; then
8548 rpathdirs
="$rpathdirs $found_dir"
8552 for x
in $LDFLAGS $LIBICONV; do
8554 acl_save_prefix
="$prefix"
8555 prefix
="$acl_final_prefix"
8556 acl_save_exec_prefix
="$exec_prefix"
8557 exec_prefix
="$acl_final_exec_prefix"
8559 exec_prefix
="$acl_save_exec_prefix"
8560 prefix
="$acl_save_prefix"
8562 if test "X$x" = "X-L$found_dir"; then
8567 if test -z "$haveit"; then
8568 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8570 if test "$hardcode_minus_L" != no
; then
8571 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8573 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8579 if test "X$found_a" != "X"; then
8580 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
8582 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8585 additional_includedir
=
8586 case "$found_dir" in
8588 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8589 additional_includedir
="$basedir/include"
8592 if test "X$additional_includedir" != "X"; then
8593 if test "X$additional_includedir" != "X/usr/include"; then
8595 if test "X$additional_includedir" = "X/usr/local/include"; then
8596 if test -n "$GCC"; then
8598 linux
*) haveit
=yes;;
8602 if test -z "$haveit"; then
8603 for x
in $CPPFLAGS $INCICONV; do
8605 acl_save_prefix
="$prefix"
8606 prefix
="$acl_final_prefix"
8607 acl_save_exec_prefix
="$exec_prefix"
8608 exec_prefix
="$acl_final_exec_prefix"
8610 exec_prefix
="$acl_save_exec_prefix"
8611 prefix
="$acl_save_prefix"
8613 if test "X$x" = "X-I$additional_includedir"; then
8618 if test -z "$haveit"; then
8619 if test -d "$additional_includedir"; then
8620 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8626 if test -n "$found_la"; then
8627 save_libdir
="$libdir"
8629 */* |
*\\*) .
"$found_la" ;;
8630 *) .
"./$found_la" ;;
8632 libdir
="$save_libdir"
8633 for dep
in $dependency_libs; do
8636 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8637 if test "X$additional_libdir" != "X/usr/lib"; then
8639 if test "X$additional_libdir" = "X/usr/local/lib"; then
8640 if test -n "$GCC"; then
8642 linux
*) haveit
=yes;;
8646 if test -z "$haveit"; then
8648 for x
in $LDFLAGS $LIBICONV; do
8650 acl_save_prefix
="$prefix"
8651 prefix
="$acl_final_prefix"
8652 acl_save_exec_prefix
="$exec_prefix"
8653 exec_prefix
="$acl_final_exec_prefix"
8655 exec_prefix
="$acl_save_exec_prefix"
8656 prefix
="$acl_save_prefix"
8658 if test "X$x" = "X-L$additional_libdir"; then
8663 if test -z "$haveit"; then
8664 if test -d "$additional_libdir"; then
8665 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8669 for x
in $LDFLAGS $LTLIBICONV; do
8671 acl_save_prefix
="$prefix"
8672 prefix
="$acl_final_prefix"
8673 acl_save_exec_prefix
="$exec_prefix"
8674 exec_prefix
="$acl_final_exec_prefix"
8676 exec_prefix
="$acl_save_exec_prefix"
8677 prefix
="$acl_save_prefix"
8679 if test "X$x" = "X-L$additional_libdir"; then
8684 if test -z "$haveit"; then
8685 if test -d "$additional_libdir"; then
8686 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8693 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8694 if test "$enable_rpath" != no
; then
8696 for x
in $rpathdirs; do
8697 if test "X$x" = "X$dir"; then
8702 if test -z "$haveit"; then
8703 rpathdirs
="$rpathdirs $dir"
8706 for x
in $ltrpathdirs; do
8707 if test "X$x" = "X$dir"; then
8712 if test -z "$haveit"; then
8713 ltrpathdirs
="$ltrpathdirs $dir"
8718 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8721 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8724 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
8725 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8731 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
8732 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8733 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8735 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
8736 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
8743 if test "X$rpathdirs" != "X"; then
8744 if test -n "$hardcode_libdir_separator"; then
8746 for found_dir
in $rpathdirs; do
8747 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8749 acl_save_libdir
="$libdir"
8751 eval flag
=\"$hardcode_libdir_flag_spec\"
8752 libdir
="$acl_save_libdir"
8753 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8755 for found_dir
in $rpathdirs; do
8756 acl_save_libdir
="$libdir"
8758 eval flag
=\"$hardcode_libdir_flag_spec\"
8759 libdir
="$acl_save_libdir"
8760 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8764 if test "X$ltrpathdirs" != "X"; then
8765 for found_dir
in $ltrpathdirs; do
8766 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8777 $as_echo_n "checking for iconv... " >&6; }
8778 if ${am_cv_func_iconv+:} false
; then :
8779 $as_echo_n "(cached) " >&6
8782 am_cv_func_iconv
="no, consider installing GNU libiconv"
8784 am_save_CPPFLAGS
="$CPPFLAGS"
8785 CPPFLAGS
="$CPPFLAGS $INCICONV"
8786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8787 /* end confdefs.h. */
8793 iconv_t cd = iconv_open("","");
8794 iconv(cd,NULL,NULL,NULL,NULL);
8800 if ac_fn_c_try_link
"$LINENO"; then :
8801 am_cv_func_iconv
=yes
8803 rm -f core conftest.err conftest.
$ac_objext \
8804 conftest
$ac_exeext conftest.
$ac_ext
8805 CPPFLAGS
="$am_save_CPPFLAGS"
8807 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
8808 for _libs
in .libs _libs
; do
8809 am_save_CPPFLAGS
="$CPPFLAGS"
8810 am_save_LIBS
="$LIBS"
8811 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
8812 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
8813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8814 /* end confdefs.h. */
8820 iconv_t cd = iconv_open("","");
8821 iconv(cd,NULL,NULL,NULL,NULL);
8827 if ac_fn_c_try_link
"$LINENO"; then :
8828 INCICONV
="-I../libiconv/include"
8829 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
8830 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
8832 am_cv_func_iconv
=yes
8834 rm -f core conftest.err conftest.
$ac_objext \
8835 conftest
$ac_exeext conftest.
$ac_ext
8836 CPPFLAGS
="$am_save_CPPFLAGS"
8837 LIBS
="$am_save_LIBS"
8838 if test "$am_cv_func_iconv" = "yes"; then
8844 if test "$am_cv_func_iconv" != yes; then
8845 am_save_CPPFLAGS
="$CPPFLAGS"
8846 am_save_LIBS
="$LIBS"
8847 CPPFLAGS
="$CPPFLAGS $INCICONV"
8848 LIBS
="$LIBS $LIBICONV"
8849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8850 /* end confdefs.h. */
8856 iconv_t cd = iconv_open("","");
8857 iconv(cd,NULL,NULL,NULL,NULL);
8863 if ac_fn_c_try_link
"$LINENO"; then :
8865 am_cv_func_iconv
=yes
8867 rm -f core conftest.err conftest.
$ac_objext \
8868 conftest
$ac_exeext conftest.
$ac_ext
8869 CPPFLAGS
="$am_save_CPPFLAGS"
8870 LIBS
="$am_save_LIBS"
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8875 $as_echo "$am_cv_func_iconv" >&6; }
8876 if test "$am_cv_func_iconv" = yes; then
8878 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8881 if test "$am_cv_lib_iconv" = yes; then
8883 for element
in $INCICONV; do
8885 for x
in $CPPFLAGS; do
8887 acl_save_prefix
="$prefix"
8888 prefix
="$acl_final_prefix"
8889 acl_save_exec_prefix
="$exec_prefix"
8890 exec_prefix
="$acl_final_exec_prefix"
8892 exec_prefix
="$acl_save_exec_prefix"
8893 prefix
="$acl_save_prefix"
8895 if test "X$x" = "X$element"; then
8900 if test -z "$haveit"; then
8901 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8906 $as_echo_n "checking how to link with libiconv... " >&6; }
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8908 $as_echo "$LIBICONV" >&6; }
8916 if test "$am_cv_func_iconv" = yes; then
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8918 $as_echo_n "checking for iconv declaration... " >&6; }
8919 if ${am_cv_proto_iconv+:} false
; then :
8920 $as_echo_n "(cached) " >&6
8923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8924 /* end confdefs.h. */
8932 #if defined(__STDC__) || defined(__cplusplus)
8933 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8946 if ac_fn_c_try_compile
"$LINENO"; then :
8947 am_cv_proto_iconv_arg1
=""
8949 am_cv_proto_iconv_arg1
="const"
8951 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8952 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);"
8955 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8957 }$am_cv_proto_iconv" >&5
8959 }$am_cv_proto_iconv" >&6; }
8961 cat >>confdefs.h
<<_ACEOF
8962 #define ICONV_CONST $am_cv_proto_iconv_arg1
8968 # GDB may fork/exec the iconv program to get the list of supported character
8969 # sets. Allow the user to specify where to find it.
8970 # There are several factors affecting the choice of option name:
8971 # - There is already --with-libiconv-prefix but we can't use it, it specifies
8972 # the build-time location of libiconv files.
8973 # - The program we need to find is iconv, which comes with glibc. The user
8974 # doesn't necessarily have libiconv installed. Therefore naming this
8975 # --with-libiconv-foo feels wrong.
8976 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
8977 # defined to work on directories not files (though it really doesn't know
8979 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
8980 # with --with-libiconv-prefix.
8981 # Putting these together is why the option name is --with-iconv-bin.
8984 # Check whether --with-iconv-bin was given.
8985 if test "${with_iconv_bin+set}" = set; then :
8986 withval
=$with_iconv_bin; iconv_bin
="${withval}"
8988 cat >>confdefs.h
<<_ACEOF
8989 #define ICONV_BIN "${iconv_bin}"
8993 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
8994 if test "x$prefix" = xNONE
; then
8995 test_prefix
=/usr
/local
9000 test_prefix
=$exec_prefix
9003 case ${iconv_bin} in
9004 "${test_prefix}"|
"${test_prefix}/"*|\
9005 '${exec_prefix}'|
'${exec_prefix}/'*)
9010 cat >>confdefs.h
<<_ACEOF
9011 #define ICONV_BIN_RELOCATABLE $value
9019 # For the TUI, we need enhanced curses functionality.
9020 if test x
"$enable_tui" != xno
; then
9025 if test x
"$prefer_curses" = xyes
; then
9026 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9027 # curses library because the latter might not provide all the
9028 # functionality we need. However, this leads to problems on systems
9029 # where the linker searches /usr/local/lib, but the compiler doesn't
9030 # search /usr/local/include, if ncurses is installed in /usr/local. A
9031 # default installation of ncurses on alpha*-dec-osf* will lead to such
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
9034 $as_echo_n "checking for library containing waddstr... " >&6; }
9035 if ${ac_cv_search_waddstr+:} false
; then :
9036 $as_echo_n "(cached) " >&6
9038 ac_func_search_save_LIBS
=$LIBS
9039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9040 /* end confdefs.h. */
9042 /* Override any GCC internal prototype to avoid an error.
9043 Use char because int might match the return type of a GCC
9044 builtin and then its argument prototype would still apply. */
9057 for ac_lib
in '' ncursesw ncurses cursesX curses
; do
9058 if test -z "$ac_lib"; then
9059 ac_res
="none required"
9062 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9064 if ac_fn_c_try_link
"$LINENO"; then :
9065 ac_cv_search_waddstr
=$ac_res
9067 rm -f core conftest.err conftest.
$ac_objext \
9069 if ${ac_cv_search_waddstr+:} false
; then :
9073 if ${ac_cv_search_waddstr+:} false
; then :
9076 ac_cv_search_waddstr
=no
9079 LIBS
=$ac_func_search_save_LIBS
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
9082 $as_echo "$ac_cv_search_waddstr" >&6; }
9083 ac_res
=$ac_cv_search_waddstr
9084 if test "$ac_res" != no
; then :
9085 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9090 if test "$ac_cv_search_waddstr" != no
; then
9095 # Check whether we should enable the TUI, but only do so if we really
9097 if test x
"$enable_tui" != xno
; then
9098 if test -d "$srcdir/tui"; then
9099 if test "$curses_found" != no
; then
9100 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
9101 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
9102 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9103 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
9105 if test x
"$enable_tui" = xyes
; then
9106 as_fn_error $?
"no enhanced curses library found; disable TUI" "$LINENO" 5
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
9109 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9115 # Since GDB uses Readline, we need termcap functionality. In many
9116 # cases this will be provided by the curses library, but some systems
9117 # have a separate termcap library, or no curses library at all.
9121 if test -d "$srcdir/libtermcap"; then
9122 LIBS
="../libtermcap/libtermcap.a $LIBS"
9123 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
9126 ac_cv_search_tgetent
="none required"
9130 # These are the libraries checked by Readline.
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9132 $as_echo_n "checking for library containing tgetent... " >&6; }
9133 if ${ac_cv_search_tgetent+:} false
; then :
9134 $as_echo_n "(cached) " >&6
9136 ac_func_search_save_LIBS
=$LIBS
9137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9138 /* end confdefs.h. */
9140 /* Override any GCC internal prototype to avoid an error.
9141 Use char because int might match the return type of a GCC
9142 builtin and then its argument prototype would still apply. */
9155 for ac_lib
in '' termcap tinfow tinfo curses ncursesw ncurses
; do
9156 if test -z "$ac_lib"; then
9157 ac_res
="none required"
9160 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9162 if ac_fn_c_try_link
"$LINENO"; then :
9163 ac_cv_search_tgetent
=$ac_res
9165 rm -f core conftest.err conftest.
$ac_objext \
9167 if ${ac_cv_search_tgetent+:} false
; then :
9171 if ${ac_cv_search_tgetent+:} false
; then :
9174 ac_cv_search_tgetent
=no
9177 LIBS
=$ac_func_search_save_LIBS
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9180 $as_echo "$ac_cv_search_tgetent" >&6; }
9181 ac_res
=$ac_cv_search_tgetent
9182 if test "$ac_res" != no
; then :
9183 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9188 if test "$ac_cv_search_tgetent" = no
; then
9189 CONFIG_OBS
="$CONFIG_OBS stub-termcap.o"
9193 # Check whether --with-system-readline was given.
9194 if test "${with_system_readline+set}" = set; then :
9195 withval
=$with_system_readline;
9199 if test "$with_system_readline" = yes; then
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system readline is new enough" >&5
9201 $as_echo_n "checking whether system readline is new enough... " >&6; }
9202 if ${gdb_cv_readline_ok+:} false
; then :
9203 $as_echo_n "(cached) " >&6
9205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9206 /* end confdefs.h. */
9208 #include <readline/readline.h>
9212 #if RL_VERSION_MAJOR < 7
9213 # error "readline version 7 required"
9220 if ac_fn_c_try_compile
"$LINENO"; then :
9221 gdb_cv_readline_ok
=yes
9223 gdb_cv_readline_ok
=no
9226 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_readline_ok" >&5
9230 $as_echo "$gdb_cv_readline_ok" >&6; }
9231 if test "$gdb_cv_readline_ok" != yes; then
9232 as_fn_error $?
"system readline is not new enough" "$LINENO" 5
9238 READLINE_TEXI_INCFLAG
=
9240 READLINE
='$(READLINE_DIR)/libreadline.a'
9241 READLINE_DEPS
='$(READLINE)'
9242 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
9243 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
9250 # Generate jit-reader.h
9252 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
9255 # The cast to long int works around a bug in the HP C Compiler
9256 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9257 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9258 # This bug is HP SR number 8606223364.
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
9260 $as_echo_n "checking size of unsigned long long... " >&6; }
9261 if ${ac_cv_sizeof_unsigned_long_long+:} false
; then :
9262 $as_echo_n "(cached) " >&6
9264 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
9267 if test "$ac_cv_type_unsigned_long_long" = yes; then
9268 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9270 as_fn_error
77 "cannot compute sizeof (unsigned long long)
9271 See \`config.log' for more details" "$LINENO" 5; }
9273 ac_cv_sizeof_unsigned_long_long
=0
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
9279 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
9283 cat >>confdefs.h
<<_ACEOF
9284 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
9288 # The cast to long int works around a bug in the HP C Compiler
9289 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9290 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9291 # This bug is HP SR number 8606223364.
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
9293 $as_echo_n "checking size of unsigned long... " >&6; }
9294 if ${ac_cv_sizeof_unsigned_long+:} false
; then :
9295 $as_echo_n "(cached) " >&6
9297 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
9300 if test "$ac_cv_type_unsigned_long" = yes; then
9301 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9303 as_fn_error
77 "cannot compute sizeof (unsigned long)
9304 See \`config.log' for more details" "$LINENO" 5; }
9306 ac_cv_sizeof_unsigned_long
=0
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
9312 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
9316 cat >>confdefs.h
<<_ACEOF
9317 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9321 # The cast to long int works around a bug in the HP C Compiler
9322 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9323 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9324 # This bug is HP SR number 8606223364.
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
9326 $as_echo_n "checking size of unsigned __int128... " >&6; }
9327 if ${ac_cv_sizeof_unsigned___int128+:} false
; then :
9328 $as_echo_n "(cached) " >&6
9330 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
9333 if test "$ac_cv_type_unsigned___int128" = yes; then
9334 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9335 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9336 as_fn_error
77 "cannot compute sizeof (unsigned __int128)
9337 See \`config.log' for more details" "$LINENO" 5; }
9339 ac_cv_sizeof_unsigned___int128
=0
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
9345 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
9349 cat >>confdefs.h
<<_ACEOF
9350 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
9355 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9356 TARGET_PTR
="unsigned long"
9357 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9358 TARGET_PTR
="unsigned long long"
9359 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
9360 TARGET_PTR
="unsigned __int128"
9362 TARGET_PTR
="unsigned long"
9366 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9370 $as_echo_n "checking for library containing dlopen... " >&6; }
9371 if ${ac_cv_search_dlopen+:} false
; then :
9372 $as_echo_n "(cached) " >&6
9374 ac_func_search_save_LIBS
=$LIBS
9375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9376 /* end confdefs.h. */
9378 /* Override any GCC internal prototype to avoid an error.
9379 Use char because int might match the return type of a GCC
9380 builtin and then its argument prototype would still apply. */
9393 for ac_lib
in '' dl
; do
9394 if test -z "$ac_lib"; then
9395 ac_res
="none required"
9398 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9400 if ac_fn_c_try_link
"$LINENO"; then :
9401 ac_cv_search_dlopen
=$ac_res
9403 rm -f core conftest.err conftest.
$ac_objext \
9405 if ${ac_cv_search_dlopen+:} false
; then :
9409 if ${ac_cv_search_dlopen+:} false
; then :
9412 ac_cv_search_dlopen
=no
9415 LIBS
=$ac_func_search_save_LIBS
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9418 $as_echo "$ac_cv_search_dlopen" >&6; }
9419 ac_res
=$ac_cv_search_dlopen
9420 if test "$ac_res" != no
; then :
9421 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9428 # Check whether --with-jit-reader-dir was given.
9429 if test "${with_jit_reader_dir+set}" = set; then :
9430 withval
=$with_jit_reader_dir;
9431 JIT_READER_DIR
=$withval
9433 JIT_READER_DIR
=${libdir}/gdb
9437 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9438 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9439 ac_define_dir
=`eval echo $JIT_READER_DIR`
9440 ac_define_dir
=`eval echo $ac_define_dir`
9442 cat >>confdefs.h
<<_ACEOF
9443 #define JIT_READER_DIR "$ac_define_dir"
9449 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9450 if test "x$prefix" = xNONE
; then
9451 test_prefix
=/usr
/local
9456 test_prefix
=$exec_prefix
9459 case ${ac_define_dir} in
9460 "${test_prefix}"|
"${test_prefix}/"*|\
9461 '${exec_prefix}'|
'${exec_prefix}/'*)
9466 cat >>confdefs.h
<<_ACEOF
9467 #define JIT_READER_DIR_RELOCATABLE $value
9474 # Check whether --with-expat was given.
9475 if test "${with_expat+set}" = set; then :
9476 withval
=$with_expat;
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9482 $as_echo_n "checking whether to use expat... " >&6; }
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9484 $as_echo "$with_expat" >&6; }
9486 if test "${with_expat}" = no
; then
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9488 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9501 acl_save_prefix
="$prefix"
9502 prefix
="$acl_final_prefix"
9503 acl_save_exec_prefix
="$exec_prefix"
9504 exec_prefix
="$acl_final_exec_prefix"
9506 eval additional_includedir
=\"$includedir\"
9507 eval additional_libdir
=\"$libdir\"
9509 exec_prefix
="$acl_save_exec_prefix"
9510 prefix
="$acl_save_prefix"
9513 # Check whether --with-libexpat-prefix was given.
9514 if test "${with_libexpat_prefix+set}" = set; then :
9515 withval
=$with_libexpat_prefix;
9516 if test "X$withval" = "Xno"; then
9519 if test "X$withval" = "X"; then
9521 acl_save_prefix
="$prefix"
9522 prefix
="$acl_final_prefix"
9523 acl_save_exec_prefix
="$exec_prefix"
9524 exec_prefix
="$acl_final_exec_prefix"
9526 eval additional_includedir
=\"$includedir\"
9527 eval additional_libdir
=\"$libdir\"
9529 exec_prefix
="$acl_save_exec_prefix"
9530 prefix
="$acl_save_prefix"
9533 additional_includedir
="$withval/include"
9534 additional_libdir
="$withval/lib"
9541 # Check whether --with-libexpat-type was given.
9542 if test "${with_libexpat_type+set}" = set; then :
9543 withval
=$with_libexpat_type; with_libexpat_type
=$withval
9545 with_libexpat_type
=auto
9548 lib_type
=`eval echo \$with_libexpat_type`
9555 names_already_handled
=
9556 names_next_round
='expat '
9557 while test -n "$names_next_round"; do
9558 names_this_round
="$names_next_round"
9560 for name
in $names_this_round; do
9562 for n
in $names_already_handled; do
9563 if test "$n" = "$name"; then
9568 if test -z "$already_handled"; then
9569 names_already_handled
="$names_already_handled $name"
9570 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9571 eval value
=\"\
$HAVE_LIB$uppername\"
9572 if test -n "$value"; then
9573 if test "$value" = yes; then
9574 eval value
=\"\
$LIB$uppername\"
9575 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
9576 eval value
=\"\
$LTLIB$uppername\"
9577 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
9586 if test $use_additional = yes; then
9587 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9588 found_dir
="$additional_libdir"
9589 found_so
="$additional_libdir/lib$name.$shlibext"
9590 if test -f "$additional_libdir/lib$name.la"; then
9591 found_la
="$additional_libdir/lib$name.la"
9593 elif test x
$lib_type != xshared
; then
9594 if test -f "$additional_libdir/lib$name.$libext"; then
9595 found_dir
="$additional_libdir"
9596 found_a
="$additional_libdir/lib$name.$libext"
9597 if test -f "$additional_libdir/lib$name.la"; then
9598 found_la
="$additional_libdir/lib$name.la"
9603 if test "X$found_dir" = "X"; then
9604 for x
in $LDFLAGS $LTLIBEXPAT; do
9606 acl_save_prefix
="$prefix"
9607 prefix
="$acl_final_prefix"
9608 acl_save_exec_prefix
="$exec_prefix"
9609 exec_prefix
="$acl_final_exec_prefix"
9611 exec_prefix
="$acl_save_exec_prefix"
9612 prefix
="$acl_save_prefix"
9616 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9617 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9619 found_so
="$dir/lib$name.$shlibext"
9620 if test -f "$dir/lib$name.la"; then
9621 found_la
="$dir/lib$name.la"
9623 elif test x
$lib_type != xshared
; then
9624 if test -f "$dir/lib$name.$libext"; then
9626 found_a
="$dir/lib$name.$libext"
9627 if test -f "$dir/lib$name.la"; then
9628 found_la
="$dir/lib$name.la"
9634 if test "X$found_dir" != "X"; then
9639 if test "X$found_dir" != "X"; then
9640 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
9641 if test "X$found_so" != "X"; then
9642 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9643 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9646 for x
in $ltrpathdirs; do
9647 if test "X$x" = "X$found_dir"; then
9652 if test -z "$haveit"; then
9653 ltrpathdirs
="$ltrpathdirs $found_dir"
9655 if test "$hardcode_direct" = yes; then
9656 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9658 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9659 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9661 for x
in $rpathdirs; do
9662 if test "X$x" = "X$found_dir"; then
9667 if test -z "$haveit"; then
9668 rpathdirs
="$rpathdirs $found_dir"
9672 for x
in $LDFLAGS $LIBEXPAT; do
9674 acl_save_prefix
="$prefix"
9675 prefix
="$acl_final_prefix"
9676 acl_save_exec_prefix
="$exec_prefix"
9677 exec_prefix
="$acl_final_exec_prefix"
9679 exec_prefix
="$acl_save_exec_prefix"
9680 prefix
="$acl_save_prefix"
9682 if test "X$x" = "X-L$found_dir"; then
9687 if test -z "$haveit"; then
9688 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
9690 if test "$hardcode_minus_L" != no
; then
9691 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9693 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9699 if test "X$found_a" != "X"; then
9700 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
9702 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
9705 additional_includedir
=
9706 case "$found_dir" in
9708 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9709 additional_includedir
="$basedir/include"
9712 if test "X$additional_includedir" != "X"; then
9713 if test "X$additional_includedir" != "X/usr/include"; then
9715 if test "X$additional_includedir" = "X/usr/local/include"; then
9716 if test -n "$GCC"; then
9718 linux
*) haveit
=yes;;
9722 if test -z "$haveit"; then
9723 for x
in $CPPFLAGS $INCEXPAT; do
9725 acl_save_prefix
="$prefix"
9726 prefix
="$acl_final_prefix"
9727 acl_save_exec_prefix
="$exec_prefix"
9728 exec_prefix
="$acl_final_exec_prefix"
9730 exec_prefix
="$acl_save_exec_prefix"
9731 prefix
="$acl_save_prefix"
9733 if test "X$x" = "X-I$additional_includedir"; then
9738 if test -z "$haveit"; then
9739 if test -d "$additional_includedir"; then
9740 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
9746 if test -n "$found_la"; then
9747 save_libdir
="$libdir"
9749 */* |
*\\*) .
"$found_la" ;;
9750 *) .
"./$found_la" ;;
9752 libdir
="$save_libdir"
9753 for dep
in $dependency_libs; do
9756 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9757 if test "X$additional_libdir" != "X/usr/lib"; then
9759 if test "X$additional_libdir" = "X/usr/local/lib"; then
9760 if test -n "$GCC"; then
9762 linux
*) haveit
=yes;;
9766 if test -z "$haveit"; then
9768 for x
in $LDFLAGS $LIBEXPAT; do
9770 acl_save_prefix
="$prefix"
9771 prefix
="$acl_final_prefix"
9772 acl_save_exec_prefix
="$exec_prefix"
9773 exec_prefix
="$acl_final_exec_prefix"
9775 exec_prefix
="$acl_save_exec_prefix"
9776 prefix
="$acl_save_prefix"
9778 if test "X$x" = "X-L$additional_libdir"; then
9783 if test -z "$haveit"; then
9784 if test -d "$additional_libdir"; then
9785 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
9789 for x
in $LDFLAGS $LTLIBEXPAT; do
9791 acl_save_prefix
="$prefix"
9792 prefix
="$acl_final_prefix"
9793 acl_save_exec_prefix
="$exec_prefix"
9794 exec_prefix
="$acl_final_exec_prefix"
9796 exec_prefix
="$acl_save_exec_prefix"
9797 prefix
="$acl_save_prefix"
9799 if test "X$x" = "X-L$additional_libdir"; then
9804 if test -z "$haveit"; then
9805 if test -d "$additional_libdir"; then
9806 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
9813 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9814 if test "$enable_rpath" != no
; then
9816 for x
in $rpathdirs; do
9817 if test "X$x" = "X$dir"; then
9822 if test -z "$haveit"; then
9823 rpathdirs
="$rpathdirs $dir"
9826 for x
in $ltrpathdirs; do
9827 if test "X$x" = "X$dir"; then
9832 if test -z "$haveit"; then
9833 ltrpathdirs
="$ltrpathdirs $dir"
9838 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9841 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9844 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
9845 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
9851 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
9852 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9853 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
9855 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l:lib$name.$libext"
9856 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l:lib$name.$libext"
9863 if test "X$rpathdirs" != "X"; then
9864 if test -n "$hardcode_libdir_separator"; then
9866 for found_dir
in $rpathdirs; do
9867 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9869 acl_save_libdir
="$libdir"
9871 eval flag
=\"$hardcode_libdir_flag_spec\"
9872 libdir
="$acl_save_libdir"
9873 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9875 for found_dir
in $rpathdirs; do
9876 acl_save_libdir
="$libdir"
9878 eval flag
=\"$hardcode_libdir_flag_spec\"
9879 libdir
="$acl_save_libdir"
9880 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9884 if test "X$ltrpathdirs" != "X"; then
9885 for found_dir
in $ltrpathdirs; do
9886 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9891 ac_save_CPPFLAGS
="$CPPFLAGS"
9893 for element
in $INCEXPAT; do
9895 for x
in $CPPFLAGS; do
9897 acl_save_prefix
="$prefix"
9898 prefix
="$acl_final_prefix"
9899 acl_save_exec_prefix
="$exec_prefix"
9900 exec_prefix
="$acl_final_exec_prefix"
9902 exec_prefix
="$acl_save_exec_prefix"
9903 prefix
="$acl_save_prefix"
9905 if test "X$x" = "X$element"; then
9910 if test -z "$haveit"; then
9911 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9917 $as_echo_n "checking for libexpat... " >&6; }
9918 if ${ac_cv_libexpat+:} false
; then :
9919 $as_echo_n "(cached) " >&6
9922 ac_save_LIBS
="$LIBS"
9923 LIBS
="$LIBS $LIBEXPAT"
9924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9925 /* end confdefs.h. */
9930 XML_Parser p = XML_ParserCreate (0);
9935 if ac_fn_c_try_link
"$LINENO"; then :
9940 rm -f core conftest.err conftest.
$ac_objext \
9941 conftest
$ac_exeext conftest.
$ac_ext
9942 LIBS
="$ac_save_LIBS"
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
9946 $as_echo "$ac_cv_libexpat" >&6; }
9947 if test "$ac_cv_libexpat" = yes; then
9950 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
9953 $as_echo_n "checking how to link with libexpat... " >&6; }
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
9955 $as_echo "$LIBEXPAT" >&6; }
9958 CPPFLAGS
="$ac_save_CPPFLAGS"
9968 if test "$HAVE_LIBEXPAT" != yes; then
9969 if test "$with_expat" = yes; then
9970 as_fn_error $?
"expat is missing or unusable" "$LINENO" 5
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
9973 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
9977 LIBS
="$LIBS $LIBEXPAT"
9978 for ac_func
in XML_StopParser
9980 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
9981 if test "x$ac_cv_func_XML_StopParser" = xyes
; then :
9982 cat >>confdefs.h
<<_ACEOF
9983 #define HAVE_XML_STOPPARSER 1
9993 # Verify that we have a usable GMP library.
10004 acl_save_prefix
="$prefix"
10005 prefix
="$acl_final_prefix"
10006 acl_save_exec_prefix
="$exec_prefix"
10007 exec_prefix
="$acl_final_exec_prefix"
10009 eval additional_includedir
=\"$includedir\"
10010 eval additional_libdir
=\"$libdir\"
10012 exec_prefix
="$acl_save_exec_prefix"
10013 prefix
="$acl_save_prefix"
10016 # Check whether --with-libgmp-prefix was given.
10017 if test "${with_libgmp_prefix+set}" = set; then :
10018 withval
=$with_libgmp_prefix;
10019 if test "X$withval" = "Xno"; then
10022 if test "X$withval" = "X"; then
10024 acl_save_prefix
="$prefix"
10025 prefix
="$acl_final_prefix"
10026 acl_save_exec_prefix
="$exec_prefix"
10027 exec_prefix
="$acl_final_exec_prefix"
10029 eval additional_includedir
=\"$includedir\"
10030 eval additional_libdir
=\"$libdir\"
10032 exec_prefix
="$acl_save_exec_prefix"
10033 prefix
="$acl_save_prefix"
10036 additional_includedir
="$withval/include"
10037 additional_libdir
="$withval/lib"
10044 # Check whether --with-libgmp-type was given.
10045 if test "${with_libgmp_type+set}" = set; then :
10046 withval
=$with_libgmp_type; with_libgmp_type
=$withval
10048 with_libgmp_type
=auto
10051 lib_type
=`eval echo \$with_libgmp_type`
10058 names_already_handled
=
10059 names_next_round
='gmp '
10060 while test -n "$names_next_round"; do
10061 names_this_round
="$names_next_round"
10063 for name
in $names_this_round; do
10065 for n
in $names_already_handled; do
10066 if test "$n" = "$name"; then
10067 already_handled
=yes
10071 if test -z "$already_handled"; then
10072 names_already_handled
="$names_already_handled $name"
10073 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10074 eval value
=\"\
$HAVE_LIB$uppername\"
10075 if test -n "$value"; then
10076 if test "$value" = yes; then
10077 eval value
=\"\
$LIB$uppername\"
10078 test -z "$value" || LIBGMP
="${LIBGMP}${LIBGMP:+ }$value"
10079 eval value
=\"\
$LTLIB$uppername\"
10080 test -z "$value" || LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }$value"
10089 if test $use_additional = yes; then
10090 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10091 found_dir
="$additional_libdir"
10092 found_so
="$additional_libdir/lib$name.$shlibext"
10093 if test -f "$additional_libdir/lib$name.la"; then
10094 found_la
="$additional_libdir/lib$name.la"
10096 elif test x
$lib_type != xshared
; then
10097 if test -f "$additional_libdir/lib$name.$libext"; then
10098 found_dir
="$additional_libdir"
10099 found_a
="$additional_libdir/lib$name.$libext"
10100 if test -f "$additional_libdir/lib$name.la"; then
10101 found_la
="$additional_libdir/lib$name.la"
10106 if test "X$found_dir" = "X"; then
10107 for x
in $LDFLAGS $LTLIBGMP; do
10109 acl_save_prefix
="$prefix"
10110 prefix
="$acl_final_prefix"
10111 acl_save_exec_prefix
="$exec_prefix"
10112 exec_prefix
="$acl_final_exec_prefix"
10114 exec_prefix
="$acl_save_exec_prefix"
10115 prefix
="$acl_save_prefix"
10119 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10120 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10122 found_so
="$dir/lib$name.$shlibext"
10123 if test -f "$dir/lib$name.la"; then
10124 found_la
="$dir/lib$name.la"
10126 elif test x
$lib_type != xshared
; then
10127 if test -f "$dir/lib$name.$libext"; then
10129 found_a
="$dir/lib$name.$libext"
10130 if test -f "$dir/lib$name.la"; then
10131 found_la
="$dir/lib$name.la"
10137 if test "X$found_dir" != "X"; then
10142 if test "X$found_dir" != "X"; then
10143 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }-L$found_dir -l$name"
10144 if test "X$found_so" != "X"; then
10145 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10146 LIBGMP
="${LIBGMP}${LIBGMP:+ }$found_so"
10149 for x
in $ltrpathdirs; do
10150 if test "X$x" = "X$found_dir"; then
10155 if test -z "$haveit"; then
10156 ltrpathdirs
="$ltrpathdirs $found_dir"
10158 if test "$hardcode_direct" = yes; then
10159 LIBGMP
="${LIBGMP}${LIBGMP:+ }$found_so"
10161 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10162 LIBGMP
="${LIBGMP}${LIBGMP:+ }$found_so"
10164 for x
in $rpathdirs; do
10165 if test "X$x" = "X$found_dir"; then
10170 if test -z "$haveit"; then
10171 rpathdirs
="$rpathdirs $found_dir"
10175 for x
in $LDFLAGS $LIBGMP; do
10177 acl_save_prefix
="$prefix"
10178 prefix
="$acl_final_prefix"
10179 acl_save_exec_prefix
="$exec_prefix"
10180 exec_prefix
="$acl_final_exec_prefix"
10182 exec_prefix
="$acl_save_exec_prefix"
10183 prefix
="$acl_save_prefix"
10185 if test "X$x" = "X-L$found_dir"; then
10190 if test -z "$haveit"; then
10191 LIBGMP
="${LIBGMP}${LIBGMP:+ }-L$found_dir"
10193 if test "$hardcode_minus_L" != no
; then
10194 LIBGMP
="${LIBGMP}${LIBGMP:+ }$found_so"
10196 LIBGMP
="${LIBGMP}${LIBGMP:+ }-l$name"
10202 if test "X$found_a" != "X"; then
10203 LIBGMP
="${LIBGMP}${LIBGMP:+ }$found_a"
10205 LIBGMP
="${LIBGMP}${LIBGMP:+ }-L$found_dir -l$name"
10208 additional_includedir
=
10209 case "$found_dir" in
10211 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10212 additional_includedir
="$basedir/include"
10215 if test "X$additional_includedir" != "X"; then
10216 if test "X$additional_includedir" != "X/usr/include"; then
10218 if test "X$additional_includedir" = "X/usr/local/include"; then
10219 if test -n "$GCC"; then
10221 linux
*) haveit
=yes;;
10225 if test -z "$haveit"; then
10226 for x
in $CPPFLAGS $INCGMP; do
10228 acl_save_prefix
="$prefix"
10229 prefix
="$acl_final_prefix"
10230 acl_save_exec_prefix
="$exec_prefix"
10231 exec_prefix
="$acl_final_exec_prefix"
10233 exec_prefix
="$acl_save_exec_prefix"
10234 prefix
="$acl_save_prefix"
10236 if test "X$x" = "X-I$additional_includedir"; then
10241 if test -z "$haveit"; then
10242 if test -d "$additional_includedir"; then
10243 INCGMP
="${INCGMP}${INCGMP:+ }-I$additional_includedir"
10249 if test -n "$found_la"; then
10250 save_libdir
="$libdir"
10251 case "$found_la" in
10252 */* |
*\\*) .
"$found_la" ;;
10253 *) .
"./$found_la" ;;
10255 libdir
="$save_libdir"
10256 for dep
in $dependency_libs; do
10259 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10260 if test "X$additional_libdir" != "X/usr/lib"; then
10262 if test "X$additional_libdir" = "X/usr/local/lib"; then
10263 if test -n "$GCC"; then
10265 linux
*) haveit
=yes;;
10269 if test -z "$haveit"; then
10271 for x
in $LDFLAGS $LIBGMP; do
10273 acl_save_prefix
="$prefix"
10274 prefix
="$acl_final_prefix"
10275 acl_save_exec_prefix
="$exec_prefix"
10276 exec_prefix
="$acl_final_exec_prefix"
10278 exec_prefix
="$acl_save_exec_prefix"
10279 prefix
="$acl_save_prefix"
10281 if test "X$x" = "X-L$additional_libdir"; then
10286 if test -z "$haveit"; then
10287 if test -d "$additional_libdir"; then
10288 LIBGMP
="${LIBGMP}${LIBGMP:+ }-L$additional_libdir"
10292 for x
in $LDFLAGS $LTLIBGMP; do
10294 acl_save_prefix
="$prefix"
10295 prefix
="$acl_final_prefix"
10296 acl_save_exec_prefix
="$exec_prefix"
10297 exec_prefix
="$acl_final_exec_prefix"
10299 exec_prefix
="$acl_save_exec_prefix"
10300 prefix
="$acl_save_prefix"
10302 if test "X$x" = "X-L$additional_libdir"; then
10307 if test -z "$haveit"; then
10308 if test -d "$additional_libdir"; then
10309 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }-L$additional_libdir"
10316 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10317 if test "$enable_rpath" != no
; then
10319 for x
in $rpathdirs; do
10320 if test "X$x" = "X$dir"; then
10325 if test -z "$haveit"; then
10326 rpathdirs
="$rpathdirs $dir"
10329 for x
in $ltrpathdirs; do
10330 if test "X$x" = "X$dir"; then
10335 if test -z "$haveit"; then
10336 ltrpathdirs
="$ltrpathdirs $dir"
10341 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10344 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10347 LIBGMP
="${LIBGMP}${LIBGMP:+ }$dep"
10348 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }$dep"
10354 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
10355 LIBGMP
="${LIBGMP}${LIBGMP:+ }-l$name"
10356 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }-l$name"
10358 LIBGMP
="${LIBGMP}${LIBGMP:+ }-l:lib$name.$libext"
10359 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }-l:lib$name.$libext"
10366 if test "X$rpathdirs" != "X"; then
10367 if test -n "$hardcode_libdir_separator"; then
10369 for found_dir
in $rpathdirs; do
10370 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10372 acl_save_libdir
="$libdir"
10374 eval flag
=\"$hardcode_libdir_flag_spec\"
10375 libdir
="$acl_save_libdir"
10376 LIBGMP
="${LIBGMP}${LIBGMP:+ }$flag"
10378 for found_dir
in $rpathdirs; do
10379 acl_save_libdir
="$libdir"
10380 libdir
="$found_dir"
10381 eval flag
=\"$hardcode_libdir_flag_spec\"
10382 libdir
="$acl_save_libdir"
10383 LIBGMP
="${LIBGMP}${LIBGMP:+ }$flag"
10387 if test "X$ltrpathdirs" != "X"; then
10388 for found_dir
in $ltrpathdirs; do
10389 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }-R$found_dir"
10394 ac_save_CPPFLAGS
="$CPPFLAGS"
10396 for element
in $INCGMP; do
10398 for x
in $CPPFLAGS; do
10400 acl_save_prefix
="$prefix"
10401 prefix
="$acl_final_prefix"
10402 acl_save_exec_prefix
="$exec_prefix"
10403 exec_prefix
="$acl_final_exec_prefix"
10405 exec_prefix
="$acl_save_exec_prefix"
10406 prefix
="$acl_save_prefix"
10408 if test "X$x" = "X$element"; then
10413 if test -z "$haveit"; then
10414 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgmp" >&5
10420 $as_echo_n "checking for libgmp... " >&6; }
10421 if ${ac_cv_libgmp+:} false
; then :
10422 $as_echo_n "(cached) " >&6
10425 ac_save_LIBS
="$LIBS"
10426 LIBS
="$LIBS $LIBGMP"
10427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10428 /* end confdefs.h. */
10439 if ac_fn_c_try_link
"$LINENO"; then :
10444 rm -f core conftest.err conftest.
$ac_objext \
10445 conftest
$ac_exeext conftest.
$ac_ext
10446 LIBS
="$ac_save_LIBS"
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgmp" >&5
10450 $as_echo "$ac_cv_libgmp" >&6; }
10451 if test "$ac_cv_libgmp" = yes; then
10454 $as_echo "#define HAVE_LIBGMP 1" >>confdefs.h
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libgmp" >&5
10457 $as_echo_n "checking how to link with libgmp... " >&6; }
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGMP" >&5
10459 $as_echo "$LIBGMP" >&6; }
10462 CPPFLAGS
="$ac_save_CPPFLAGS"
10472 if test "$HAVE_LIBGMP" != yes; then
10473 as_fn_error $?
"GMP is missing or unusable" "$LINENO" 5
10477 # Check whether --with-mpfr was given.
10478 if test "${with_mpfr+set}" = set; then :
10479 withval
=$with_mpfr;
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5
10485 $as_echo_n "checking whether to use MPFR... " >&6; }
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5
10487 $as_echo "$with_mpfr" >&6; }
10489 if test "${with_mpfr}" = no
; then
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5
10491 $as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;}
10504 acl_save_prefix
="$prefix"
10505 prefix
="$acl_final_prefix"
10506 acl_save_exec_prefix
="$exec_prefix"
10507 exec_prefix
="$acl_final_exec_prefix"
10509 eval additional_includedir
=\"$includedir\"
10510 eval additional_libdir
=\"$libdir\"
10512 exec_prefix
="$acl_save_exec_prefix"
10513 prefix
="$acl_save_prefix"
10516 # Check whether --with-libmpfr-prefix was given.
10517 if test "${with_libmpfr_prefix+set}" = set; then :
10518 withval
=$with_libmpfr_prefix;
10519 if test "X$withval" = "Xno"; then
10522 if test "X$withval" = "X"; then
10524 acl_save_prefix
="$prefix"
10525 prefix
="$acl_final_prefix"
10526 acl_save_exec_prefix
="$exec_prefix"
10527 exec_prefix
="$acl_final_exec_prefix"
10529 eval additional_includedir
=\"$includedir\"
10530 eval additional_libdir
=\"$libdir\"
10532 exec_prefix
="$acl_save_exec_prefix"
10533 prefix
="$acl_save_prefix"
10536 additional_includedir
="$withval/include"
10537 additional_libdir
="$withval/lib"
10544 # Check whether --with-libmpfr-type was given.
10545 if test "${with_libmpfr_type+set}" = set; then :
10546 withval
=$with_libmpfr_type; with_libmpfr_type
=$withval
10548 with_libmpfr_type
=auto
10551 lib_type
=`eval echo \$with_libmpfr_type`
10558 names_already_handled
=
10559 names_next_round
='mpfr gmp'
10560 while test -n "$names_next_round"; do
10561 names_this_round
="$names_next_round"
10563 for name
in $names_this_round; do
10565 for n
in $names_already_handled; do
10566 if test "$n" = "$name"; then
10567 already_handled
=yes
10571 if test -z "$already_handled"; then
10572 names_already_handled
="$names_already_handled $name"
10573 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10574 eval value
=\"\
$HAVE_LIB$uppername\"
10575 if test -n "$value"; then
10576 if test "$value" = yes; then
10577 eval value
=\"\
$LIB$uppername\"
10578 test -z "$value" || LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$value"
10579 eval value
=\"\
$LTLIB$uppername\"
10580 test -z "$value" || LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$value"
10589 if test $use_additional = yes; then
10590 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10591 found_dir
="$additional_libdir"
10592 found_so
="$additional_libdir/lib$name.$shlibext"
10593 if test -f "$additional_libdir/lib$name.la"; then
10594 found_la
="$additional_libdir/lib$name.la"
10596 elif test x
$lib_type != xshared
; then
10597 if test -f "$additional_libdir/lib$name.$libext"; then
10598 found_dir
="$additional_libdir"
10599 found_a
="$additional_libdir/lib$name.$libext"
10600 if test -f "$additional_libdir/lib$name.la"; then
10601 found_la
="$additional_libdir/lib$name.la"
10606 if test "X$found_dir" = "X"; then
10607 for x
in $LDFLAGS $LTLIBMPFR; do
10609 acl_save_prefix
="$prefix"
10610 prefix
="$acl_final_prefix"
10611 acl_save_exec_prefix
="$exec_prefix"
10612 exec_prefix
="$acl_final_exec_prefix"
10614 exec_prefix
="$acl_save_exec_prefix"
10615 prefix
="$acl_save_prefix"
10619 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10620 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10622 found_so
="$dir/lib$name.$shlibext"
10623 if test -f "$dir/lib$name.la"; then
10624 found_la
="$dir/lib$name.la"
10626 elif test x
$lib_type != xshared
; then
10627 if test -f "$dir/lib$name.$libext"; then
10629 found_a
="$dir/lib$name.$libext"
10630 if test -f "$dir/lib$name.la"; then
10631 found_la
="$dir/lib$name.la"
10637 if test "X$found_dir" != "X"; then
10642 if test "X$found_dir" != "X"; then
10643 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$found_dir -l$name"
10644 if test "X$found_so" != "X"; then
10645 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10646 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10649 for x
in $ltrpathdirs; do
10650 if test "X$x" = "X$found_dir"; then
10655 if test -z "$haveit"; then
10656 ltrpathdirs
="$ltrpathdirs $found_dir"
10658 if test "$hardcode_direct" = yes; then
10659 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10661 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10662 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10664 for x
in $rpathdirs; do
10665 if test "X$x" = "X$found_dir"; then
10670 if test -z "$haveit"; then
10671 rpathdirs
="$rpathdirs $found_dir"
10675 for x
in $LDFLAGS $LIBMPFR; do
10677 acl_save_prefix
="$prefix"
10678 prefix
="$acl_final_prefix"
10679 acl_save_exec_prefix
="$exec_prefix"
10680 exec_prefix
="$acl_final_exec_prefix"
10682 exec_prefix
="$acl_save_exec_prefix"
10683 prefix
="$acl_save_prefix"
10685 if test "X$x" = "X-L$found_dir"; then
10690 if test -z "$haveit"; then
10691 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir"
10693 if test "$hardcode_minus_L" != no
; then
10694 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10696 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10702 if test "X$found_a" != "X"; then
10703 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_a"
10705 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir -l$name"
10708 additional_includedir
=
10709 case "$found_dir" in
10711 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10712 additional_includedir
="$basedir/include"
10715 if test "X$additional_includedir" != "X"; then
10716 if test "X$additional_includedir" != "X/usr/include"; then
10718 if test "X$additional_includedir" = "X/usr/local/include"; then
10719 if test -n "$GCC"; then
10721 linux
*) haveit
=yes;;
10725 if test -z "$haveit"; then
10726 for x
in $CPPFLAGS $INCMPFR; do
10728 acl_save_prefix
="$prefix"
10729 prefix
="$acl_final_prefix"
10730 acl_save_exec_prefix
="$exec_prefix"
10731 exec_prefix
="$acl_final_exec_prefix"
10733 exec_prefix
="$acl_save_exec_prefix"
10734 prefix
="$acl_save_prefix"
10736 if test "X$x" = "X-I$additional_includedir"; then
10741 if test -z "$haveit"; then
10742 if test -d "$additional_includedir"; then
10743 INCMPFR
="${INCMPFR}${INCMPFR:+ }-I$additional_includedir"
10749 if test -n "$found_la"; then
10750 save_libdir
="$libdir"
10751 case "$found_la" in
10752 */* |
*\\*) .
"$found_la" ;;
10753 *) .
"./$found_la" ;;
10755 libdir
="$save_libdir"
10756 for dep
in $dependency_libs; do
10759 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10760 if test "X$additional_libdir" != "X/usr/lib"; then
10762 if test "X$additional_libdir" = "X/usr/local/lib"; then
10763 if test -n "$GCC"; then
10765 linux
*) haveit
=yes;;
10769 if test -z "$haveit"; then
10771 for x
in $LDFLAGS $LIBMPFR; do
10773 acl_save_prefix
="$prefix"
10774 prefix
="$acl_final_prefix"
10775 acl_save_exec_prefix
="$exec_prefix"
10776 exec_prefix
="$acl_final_exec_prefix"
10778 exec_prefix
="$acl_save_exec_prefix"
10779 prefix
="$acl_save_prefix"
10781 if test "X$x" = "X-L$additional_libdir"; then
10786 if test -z "$haveit"; then
10787 if test -d "$additional_libdir"; then
10788 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$additional_libdir"
10792 for x
in $LDFLAGS $LTLIBMPFR; do
10794 acl_save_prefix
="$prefix"
10795 prefix
="$acl_final_prefix"
10796 acl_save_exec_prefix
="$exec_prefix"
10797 exec_prefix
="$acl_final_exec_prefix"
10799 exec_prefix
="$acl_save_exec_prefix"
10800 prefix
="$acl_save_prefix"
10802 if test "X$x" = "X-L$additional_libdir"; then
10807 if test -z "$haveit"; then
10808 if test -d "$additional_libdir"; then
10809 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$additional_libdir"
10816 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10817 if test "$enable_rpath" != no
; then
10819 for x
in $rpathdirs; do
10820 if test "X$x" = "X$dir"; then
10825 if test -z "$haveit"; then
10826 rpathdirs
="$rpathdirs $dir"
10829 for x
in $ltrpathdirs; do
10830 if test "X$x" = "X$dir"; then
10835 if test -z "$haveit"; then
10836 ltrpathdirs
="$ltrpathdirs $dir"
10841 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10844 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10847 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$dep"
10848 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$dep"
10854 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
10855 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10856 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l$name"
10858 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l:lib$name.$libext"
10859 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l:lib$name.$libext"
10866 if test "X$rpathdirs" != "X"; then
10867 if test -n "$hardcode_libdir_separator"; then
10869 for found_dir
in $rpathdirs; do
10870 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10872 acl_save_libdir
="$libdir"
10874 eval flag
=\"$hardcode_libdir_flag_spec\"
10875 libdir
="$acl_save_libdir"
10876 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10878 for found_dir
in $rpathdirs; do
10879 acl_save_libdir
="$libdir"
10880 libdir
="$found_dir"
10881 eval flag
=\"$hardcode_libdir_flag_spec\"
10882 libdir
="$acl_save_libdir"
10883 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10887 if test "X$ltrpathdirs" != "X"; then
10888 for found_dir
in $ltrpathdirs; do
10889 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-R$found_dir"
10894 ac_save_CPPFLAGS
="$CPPFLAGS"
10896 for element
in $INCMPFR; do
10898 for x
in $CPPFLAGS; do
10900 acl_save_prefix
="$prefix"
10901 prefix
="$acl_final_prefix"
10902 acl_save_exec_prefix
="$exec_prefix"
10903 exec_prefix
="$acl_final_exec_prefix"
10905 exec_prefix
="$acl_save_exec_prefix"
10906 prefix
="$acl_save_prefix"
10908 if test "X$x" = "X$element"; then
10913 if test -z "$haveit"; then
10914 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpfr" >&5
10920 $as_echo_n "checking for libmpfr... " >&6; }
10921 if ${ac_cv_libmpfr+:} false
; then :
10922 $as_echo_n "(cached) " >&6
10925 ac_save_LIBS
="$LIBS"
10926 LIBS
="$LIBS $LIBMPFR"
10927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10928 /* end confdefs.h. */
10933 mpfr_exp_t exp; mpfr_t x;
10934 mpfr_frexp (&exp, x, x, MPFR_RNDN);
10939 if ac_fn_c_try_link
"$LINENO"; then :
10944 rm -f core conftest.err conftest.
$ac_objext \
10945 conftest
$ac_exeext conftest.
$ac_ext
10946 LIBS
="$ac_save_LIBS"
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmpfr" >&5
10950 $as_echo "$ac_cv_libmpfr" >&6; }
10951 if test "$ac_cv_libmpfr" = yes; then
10954 $as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libmpfr" >&5
10957 $as_echo_n "checking how to link with libmpfr... " >&6; }
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPFR" >&5
10959 $as_echo "$LIBMPFR" >&6; }
10962 CPPFLAGS
="$ac_save_CPPFLAGS"
10972 if test "$HAVE_LIBMPFR" != yes; then
10973 if test "$with_mpfr" = yes; then
10974 as_fn_error $?
"MPFR is missing or unusable" "$LINENO" 5
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR is missing or unusable; some features may be unavailable." >&5
10977 $as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;}
10982 # --------------------- #
10983 # Check for libpython. #
10984 # --------------------- #
10991 # Check whether --with-python was given.
10992 if test "${with_python+set}" = set; then :
10993 withval
=$with_python;
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10999 $as_echo_n "checking whether to use python... " >&6; }
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
11001 $as_echo "$with_python" >&6; }
11003 if test "${with_python}" = no
; then
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
11005 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
11008 case "${with_python}" in
11010 if test -d "${with_python}"; then
11011 # Assume the python binary is ${with_python}/bin/python.
11012 python_prog
="${with_python}/bin/python"
11014 # If python does not exit ${with_python}/bin, then try in
11015 # ${with_python}. On Windows/MinGW, this is where the Python
11017 if test ! -x "${python_prog}"; then
11018 python_prog
="${with_python}/python"
11021 if test ! -x "${python_prog}"; then
11022 # Fall back to gdb 7.0/7.1 behaviour.
11023 python_prog
=missing
11024 python_prefix
=${with_python}
11026 elif test -x "${with_python}"; then
11027 # While we can't run python compiled for $host (unless host == build),
11028 # the user could write a script that provides the needed information,
11029 # so we support that.
11030 python_prog
=${with_python}
11033 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
11037 # Disallow --with-python=foo/bar.
11038 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
11041 # The user has either specified auto, yes, or the name of the python
11042 # program assumed to be in $PATH.
11044 case "${with_python}" in
11046 if test "${build}" = "${host}"; then
11047 # Extract the first word of "python", so it can be a program name with args.
11048 set dummy python
; ac_word
=$2
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11050 $as_echo_n "checking for $ac_word... " >&6; }
11051 if ${ac_cv_path_python_prog_path+:} false
; then :
11052 $as_echo_n "(cached) " >&6
11054 case $python_prog_path in
11056 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
11059 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11060 for as_dir
in $PATH
11063 test -z "$as_dir" && as_dir
=.
11064 for ac_exec_ext
in '' $ac_executable_extensions; do
11065 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11066 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
11067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11074 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
11078 python_prog_path
=$ac_cv_path_python_prog_path
11079 if test -n "$python_prog_path"; then
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
11081 $as_echo "$python_prog_path" >&6; }
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11084 $as_echo "no" >&6; }
11088 if test "${python_prog_path}" = missing
; then
11089 python_prog
=missing
11091 python_prog
=${python_prog_path}
11094 # Not much we can do except assume the cross-compiler will find the
11096 python_prog
=missing
11100 # While we can't run python compiled for $host (unless host == build),
11101 # the user could write a script that provides the needed information,
11102 # so we support that.
11103 python_prog
="${with_python}"
11104 # Extract the first word of "${python_prog}", so it can be a program name with args.
11105 set dummy
${python_prog}; ac_word
=$2
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11107 $as_echo_n "checking for $ac_word... " >&6; }
11108 if ${ac_cv_path_python_prog_path+:} false
; then :
11109 $as_echo_n "(cached) " >&6
11111 case $python_prog_path in
11113 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
11116 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11117 for as_dir
in $PATH
11120 test -z "$as_dir" && as_dir
=.
11121 for ac_exec_ext
in '' $ac_executable_extensions; do
11122 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11123 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
11124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11131 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
11135 python_prog_path
=$ac_cv_path_python_prog_path
11136 if test -n "$python_prog_path"; then
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
11138 $as_echo "$python_prog_path" >&6; }
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11141 $as_echo "no" >&6; }
11145 if test "${python_prog_path}" = missing
; then
11146 as_fn_error $?
"unable to find python program ${python_prog}" "$LINENO" 5
11152 if test "${python_prog}" != missing
; then
11153 # We have a python program to use, but it may be too old.
11154 # Don't flag an error for --with-python=auto (the default).
11155 have_python_config
=yes
11156 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
11157 if test $?
!= 0; then
11158 have_python_config
=failed
11159 if test "${with_python}" != auto
; then
11160 as_fn_error $?
"failure running python-config --includes" "$LINENO" 5
11163 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
11164 if test $?
!= 0; then
11165 have_python_config
=failed
11166 if test "${with_python}" != auto
; then
11167 as_fn_error $?
"failure running python-config --ldflags" "$LINENO" 5
11170 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
11171 if test $?
!= 0; then
11172 have_python_config
=failed
11173 if test "${with_python}" != auto
; then
11174 as_fn_error $?
"failure running python-config --exec-prefix" "$LINENO" 5
11178 # We do not have a python executable we can use to determine where
11179 # to find the Python headers and libs. We cannot guess the include
11180 # path from the python_prefix either, because that include path
11181 # depends on the Python version. So, there is nothing much we can
11182 # do except assume that the compiler will be able to find those files.
11185 have_python_config
=no
11188 # If we have python-config, only try the configuration it provides.
11189 # Otherwise fallback on the old way of trying different versions of
11193 if test "${have_python_config}" = yes; then
11196 new_CPPFLAGS
=${python_includes}
11197 new_LIBS
=${python_libs}
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
11199 $as_echo_n "checking for python... " >&6; }
11200 save_CPPFLAGS
=$CPPFLAGS
11202 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11203 LIBS
="$new_LIBS $LIBS"
11204 found_usable_python
=no
11205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11206 /* end confdefs.h. */
11207 #include "Python.h"
11216 if ac_fn_c_try_link
"$LINENO"; then :
11218 found_usable_python
=yes
11219 PYTHON_CPPFLAGS
=$new_CPPFLAGS
11220 PYTHON_LIBS
=$new_LIBS
11222 rm -f core conftest.err conftest.
$ac_objext \
11223 conftest
$ac_exeext conftest.
$ac_ext
11224 CPPFLAGS
=$save_CPPFLAGS
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11227 $as_echo "${found_usable_python}" >&6; }
11229 elif test "${have_python_config}" != failed
; then
11230 if test "${have_libpython}" = no
; then
11233 new_CPPFLAGS
=${python_includes}
11234 new_LIBS
="-lpython2.7 ${python_libs}"
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
11236 $as_echo_n "checking for python... " >&6; }
11237 save_CPPFLAGS
=$CPPFLAGS
11239 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11240 LIBS
="$new_LIBS $LIBS"
11241 found_usable_python
=no
11242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11243 /* end confdefs.h. */
11244 #include "Python.h"
11253 if ac_fn_c_try_link
"$LINENO"; then :
11255 found_usable_python
=yes
11256 PYTHON_CPPFLAGS
=$new_CPPFLAGS
11257 PYTHON_LIBS
=$new_LIBS
11259 rm -f core conftest.err conftest.
$ac_objext \
11260 conftest
$ac_exeext conftest.
$ac_ext
11261 CPPFLAGS
=$save_CPPFLAGS
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11264 $as_echo "${found_usable_python}" >&6; }
11267 if test "${have_libpython}" = no
; then
11270 new_CPPFLAGS
=${python_includes}
11271 new_LIBS
="-lpython2.6 ${python_libs}"
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
11273 $as_echo_n "checking for python... " >&6; }
11274 save_CPPFLAGS
=$CPPFLAGS
11276 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11277 LIBS
="$new_LIBS $LIBS"
11278 found_usable_python
=no
11279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11280 /* end confdefs.h. */
11281 #include "Python.h"
11290 if ac_fn_c_try_link
"$LINENO"; then :
11292 found_usable_python
=yes
11293 PYTHON_CPPFLAGS
=$new_CPPFLAGS
11294 PYTHON_LIBS
=$new_LIBS
11296 rm -f core conftest.err conftest.
$ac_objext \
11297 conftest
$ac_exeext conftest.
$ac_ext
11298 CPPFLAGS
=$save_CPPFLAGS
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11301 $as_echo "${found_usable_python}" >&6; }
11306 if test "${have_libpython}" = no
; then
11307 case "${with_python}" in
11309 as_fn_error $?
"python is missing or unusable" "$LINENO" 5
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
11313 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
11316 as_fn_error $?
"no usable python found at ${with_python}" "$LINENO" 5
11320 if test -n "${python_prefix}"; then
11322 cat >>confdefs.h
<<_ACEOF
11323 #define WITH_PYTHON_PATH "${python_prefix}"
11327 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
11328 if test "x$prefix" = xNONE
; then
11329 test_prefix
=/usr
/local
11331 test_prefix
=$prefix
11334 test_prefix
=$exec_prefix
11337 case ${python_prefix} in
11338 "${test_prefix}"|
"${test_prefix}/"*|\
11339 '${exec_prefix}'|
'${exec_prefix}/'*)
11344 cat >>confdefs.h
<<_ACEOF
11345 #define PYTHON_PATH_RELOCATABLE $value
11354 # Check whether --with-python-libdir was given.
11355 if test "${with_python_libdir+set}" = set; then :
11356 withval
=$with_python_libdir;
11359 # If no python libdir is specified then select one based on
11360 # python's prefix path.
11361 if test -n "${python_prefix}"; then
11362 with_python_libdir
=${python_prefix}/lib
11368 if test "${have_libpython}" != no
; then
11370 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
11372 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
11373 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
11374 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
11375 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
11376 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
11378 if test -n "${with_python_libdir}"; then
11380 cat >>confdefs.h
<<_ACEOF
11381 #define WITH_PYTHON_LIBDIR "${with_python_libdir}"
11385 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
11386 if test "x$prefix" = xNONE
; then
11387 test_prefix
=/usr
/local
11389 test_prefix
=$prefix
11392 test_prefix
=$exec_prefix
11395 case ${with_python_libdir} in
11396 "${test_prefix}"|
"${test_prefix}/"*|\
11397 '${exec_prefix}'|
'${exec_prefix}/'*)
11402 cat >>confdefs.h
<<_ACEOF
11403 #define PYTHON_LIBDIR_RELOCATABLE $value
11409 # Flags needed to compile Python code (taken from python-config --cflags).
11410 # We cannot call python-config directly because it will output whatever was
11411 # used when compiling the Python interpreter itself, including flags which
11412 # would make the python-related objects be compiled differently from the
11413 # rest of GDB (e.g., -O2 and -fPIC).
11414 if test "${GCC}" = yes; then
11415 tentative_python_cflags
="-fno-strict-aliasing -fwrapv"
11416 # Python headers recommend -DNDEBUG, but it's unclear if that just
11417 # refers to building Python itself. In release mode, though, it
11418 # doesn't hurt for the Python code in gdb to follow.
11419 $development || tentative_python_cflags
="$tentative_python_cflags -DNDEBUG"
11422 if test "x${tentative_python_cflags}" != x
; then
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
11424 $as_echo_n "checking compiler flags for python code... " >&6; }
11425 for flag
in ${tentative_python_cflags}; do
11426 # Check that the compiler accepts it
11427 saved_CFLAGS
="$CFLAGS"
11428 CFLAGS
="$CFLAGS $flag"
11429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11430 /* end confdefs.h. */
11440 if ac_fn_c_try_compile
"$LINENO"; then :
11441 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
11443 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11444 CFLAGS
="$saved_CFLAGS"
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
11447 $as_echo "${PYTHON_CFLAGS}" >&6; }
11450 # On x64 Windows, Python's include headers, and pyconfig.h in
11451 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
11452 # version of Windows. Unfortunately, MS_WIN64 is only defined if
11453 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
11454 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
11455 # The issue was reported to the Python community, but still isn't
11456 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
11458 case "$gdb_host" in
11460 if test "${GCC}" = yes; then
11461 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
11466 # Even if Python support is not compiled in, we need to have this file
11467 # included so that the "python" command, et.al., still exists.
11468 CONFIG_OBS
="$CONFIG_OBS python/python.o"
11469 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
11472 # Work around Python http://bugs.python.org/issue10112. See also
11473 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
11474 # no effect. Note that the only test after this that uses Python is
11475 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
11476 # run without -export-dynamic too.
11477 PYTHON_LIBS
=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
11482 if test "${have_libpython}" != no
; then
11484 HAVE_PYTHON_FALSE
='#'
11486 HAVE_PYTHON_TRUE
='#'
11491 # -------------------- #
11492 # Check for libguile. #
11493 # -------------------- #
11500 # Check whether --with-guile was given.
11501 if test "${with_guile+set}" = set; then :
11502 withval
=$with_guile;
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
11508 $as_echo_n "checking whether to use guile... " >&6; }
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
11510 $as_echo "$with_guile" >&6; }
11512 # Extract the first word of "pkg-config", so it can be a program name with args.
11513 set dummy pkg-config
; ac_word
=$2
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11515 $as_echo_n "checking for $ac_word... " >&6; }
11516 if ${ac_cv_path_pkg_config_prog_path+:} false
; then :
11517 $as_echo_n "(cached) " >&6
11519 case $pkg_config_prog_path in
11521 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
11524 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11525 for as_dir
in $PATH
11528 test -z "$as_dir" && as_dir
=.
11529 for ac_exec_ext
in '' $ac_executable_extensions; do
11530 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11531 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
11532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11539 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
11543 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
11544 if test -n "$pkg_config_prog_path"; then
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
11546 $as_echo "$pkg_config_prog_path" >&6; }
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11549 $as_echo "no" >&6; }
11554 try_guile_versions
="guile-3.0 guile-2.2 guile-2.0"
11556 case "${with_guile}" in
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
11559 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
11562 if test "${pkg_config_prog_path}" = "missing"; then
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
11564 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
11567 pkg_config
=${pkg_config_prog_path}
11568 guile_version_list
=${try_guile_versions}
11571 found_usable_guile
=checking
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11573 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11574 for guile_version
in ${guile_version_list}; do
11575 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11576 if test $?
!= 0; then
11579 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11580 if test $?
!= 0; then
11581 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11583 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11584 if test $?
!= 0; then
11585 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11587 found_usable_guile
=${guile_version}
11590 if test "${found_usable_guile}" = "checking"; then
11591 if test "${flag_errors}" = "yes"; then
11592 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11594 found_usable_guile
=no
11597 if test "${found_usable_guile}" != no
; then
11598 save_CPPFLAGS
=$CPPFLAGS
11600 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11601 LIBS
="$LIBS $new_LIBS"
11602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11603 /* end confdefs.h. */
11604 #include "libguile.h"
11613 if ac_fn_c_try_link
"$LINENO"; then :
11615 GUILE_CPPFLAGS
=$new_CPPFLAGS
11616 GUILE_LIBS
=$new_LIBS
11618 found_usable_guile
=no
11620 rm -f core conftest.err conftest.
$ac_objext \
11621 conftest
$ac_exeext conftest.
$ac_ext
11622 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11623 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11625 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11630 CPPFLAGS
=$save_CPPFLAGS
11632 if test "${found_usable_guile}" = no
; then
11633 if test "${flag_errors}" = yes; then
11634 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11636 as_fn_error $?
"linking guile version ${guile_version} test program failed
11637 See \`config.log' for more details" "$LINENO" 5; }
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11642 $as_echo "${found_usable_guile}" >&6; }
11647 if test "${pkg_config_prog_path}" = "missing"; then
11648 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11651 pkg_config
=${pkg_config_prog_path}
11652 guile_version_list
=${try_guile_versions}
11655 found_usable_guile
=checking
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11657 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11658 for guile_version
in ${guile_version_list}; do
11659 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11660 if test $?
!= 0; then
11663 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11664 if test $?
!= 0; then
11665 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11667 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11668 if test $?
!= 0; then
11669 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11671 found_usable_guile
=${guile_version}
11674 if test "${found_usable_guile}" = "checking"; then
11675 if test "${flag_errors}" = "yes"; then
11676 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11678 found_usable_guile
=no
11681 if test "${found_usable_guile}" != no
; then
11682 save_CPPFLAGS
=$CPPFLAGS
11684 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11685 LIBS
="$LIBS $new_LIBS"
11686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11687 /* end confdefs.h. */
11688 #include "libguile.h"
11697 if ac_fn_c_try_link
"$LINENO"; then :
11699 GUILE_CPPFLAGS
=$new_CPPFLAGS
11700 GUILE_LIBS
=$new_LIBS
11702 found_usable_guile
=no
11704 rm -f core conftest.err conftest.
$ac_objext \
11705 conftest
$ac_exeext conftest.
$ac_ext
11706 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11707 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11709 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11714 CPPFLAGS
=$save_CPPFLAGS
11716 if test "${found_usable_guile}" = no
; then
11717 if test "${flag_errors}" = yes; then
11718 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11720 as_fn_error $?
"linking guile version ${guile_version} test program failed
11721 See \`config.log' for more details" "$LINENO" 5; }
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11726 $as_echo "${found_usable_guile}" >&6; }
11730 if test -x "${with_guile}"; then
11732 pkg_config
=${with_guile}
11733 guile_version_list
=${try_guile_versions}
11736 found_usable_guile
=checking
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11738 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11739 for guile_version
in ${guile_version_list}; do
11740 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11741 if test $?
!= 0; then
11744 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11745 if test $?
!= 0; then
11746 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11748 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11749 if test $?
!= 0; then
11750 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11752 found_usable_guile
=${guile_version}
11755 if test "${found_usable_guile}" = "checking"; then
11756 if test "${flag_errors}" = "yes"; then
11757 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11759 found_usable_guile
=no
11762 if test "${found_usable_guile}" != no
; then
11763 save_CPPFLAGS
=$CPPFLAGS
11765 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11766 LIBS
="$LIBS $new_LIBS"
11767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11768 /* end confdefs.h. */
11769 #include "libguile.h"
11778 if ac_fn_c_try_link
"$LINENO"; then :
11780 GUILE_CPPFLAGS
=$new_CPPFLAGS
11781 GUILE_LIBS
=$new_LIBS
11783 found_usable_guile
=no
11785 rm -f core conftest.err conftest.
$ac_objext \
11786 conftest
$ac_exeext conftest.
$ac_ext
11787 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11788 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11790 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11795 CPPFLAGS
=$save_CPPFLAGS
11797 if test "${found_usable_guile}" = no
; then
11798 if test "${flag_errors}" = yes; then
11799 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11801 as_fn_error $?
"linking guile version ${guile_version} test program failed
11802 See \`config.log' for more details" "$LINENO" 5; }
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11807 $as_echo "${found_usable_guile}" >&6; }
11810 as_fn_error $?
"Guile config program not executable: ${with_guile}" "$LINENO" 5
11814 # Disallow --with=guile="" and --with-guile=foo/bar.
11815 as_fn_error $?
"invalid value for --with-guile" "$LINENO" 5
11818 # A space separate list of guile versions to try, in order.
11819 if test "${pkg_config_prog_path}" = "missing"; then
11820 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11823 pkg_config
=${pkg_config_prog_path}
11824 guile_version_list
=${with_guile}
11827 found_usable_guile
=checking
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11829 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11830 for guile_version
in ${guile_version_list}; do
11831 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11832 if test $?
!= 0; then
11835 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11836 if test $?
!= 0; then
11837 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11839 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11840 if test $?
!= 0; then
11841 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11843 found_usable_guile
=${guile_version}
11846 if test "${found_usable_guile}" = "checking"; then
11847 if test "${flag_errors}" = "yes"; then
11848 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11850 found_usable_guile
=no
11853 if test "${found_usable_guile}" != no
; then
11854 save_CPPFLAGS
=$CPPFLAGS
11856 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11857 LIBS
="$LIBS $new_LIBS"
11858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11859 /* end confdefs.h. */
11860 #include "libguile.h"
11869 if ac_fn_c_try_link
"$LINENO"; then :
11871 GUILE_CPPFLAGS
=$new_CPPFLAGS
11872 GUILE_LIBS
=$new_LIBS
11874 found_usable_guile
=no
11876 rm -f core conftest.err conftest.
$ac_objext \
11877 conftest
$ac_exeext conftest.
$ac_ext
11878 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11879 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11881 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11886 CPPFLAGS
=$save_CPPFLAGS
11888 if test "${found_usable_guile}" = no
; then
11889 if test "${flag_errors}" = yes; then
11890 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11892 as_fn_error $?
"linking guile version ${guile_version} test program failed
11893 See \`config.log' for more details" "$LINENO" 5; }
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11898 $as_echo "${found_usable_guile}" >&6; }
11903 if test "${have_libguile}" != no
; then
11904 case "${with_guile}" in
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11908 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11909 if ${ac_cv_guild_program_name+:} false
; then :
11910 $as_echo_n "(cached) " >&6
11912 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
11914 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11915 # the 'guild' and 'bindir' variables. In that case, try to guess
11916 # what the program name is, at the risk of getting it wrong if
11917 # Guile was configured with '--program-suffix' or similar.
11918 if test "x$ac_cv_guild_program_name" = "x"; then
11919 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
11920 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11925 $as_echo "$ac_cv_guild_program_name" >&6; }
11927 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11928 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11931 GUILD
="$ac_cv_guild_program_name"
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11938 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11939 if ${ac_cv_guild_program_name+:} false
; then :
11940 $as_echo_n "(cached) " >&6
11942 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
11944 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11945 # the 'guild' and 'bindir' variables. In that case, try to guess
11946 # what the program name is, at the risk of getting it wrong if
11947 # Guile was configured with '--program-suffix' or similar.
11948 if test "x$ac_cv_guild_program_name" = "x"; then
11949 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
11950 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11955 $as_echo "$ac_cv_guild_program_name" >&6; }
11957 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11958 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11961 GUILD
="$ac_cv_guild_program_name"
11968 if test "$cross_compiling" = no
; then
11971 GUILD_TARGET_FLAG
="--target=$host"
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
11978 $as_echo_n "checking whether guild supports this host... " >&6; }
11979 if ${ac_cv_guild_ok+:} false
; then :
11980 $as_echo_n "(cached) " >&6
11982 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
11983 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
11990 $as_echo "$ac_cv_guild_ok" >&6; }
11992 if test "$ac_cv_guild_ok" = no
; then
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
11995 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
11999 if test "${have_libguile}" != no
; then
12001 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
12003 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
12004 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
12005 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
12006 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
12007 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
12010 save_CPPFLAGS
="$CPPFLAGS"
12012 CPPFLAGS
="$GUILE_CPPFLAGS"
12013 for ac_func
in scm_new_smob
12015 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
12016 if test "x$ac_cv_func_scm_new_smob" = xyes
; then :
12017 cat >>confdefs.h
<<_ACEOF
12018 #define HAVE_SCM_NEW_SMOB 1
12025 CPPFLAGS
="$save_CPPFLAGS"
12027 # Even if Guile support is not compiled in, we need to have these files
12029 CONFIG_OBS
="$CONFIG_OBS guile/guile.o"
12030 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
12034 if test "${have_libguile}" != no
; then
12036 HAVE_GUILE_FALSE
='#'
12038 HAVE_GUILE_TRUE
='#'
12043 # ---------------------------- #
12044 # Check for source highlight. #
12045 # ---------------------------- #
12050 # Check whether --enable-source-highlight was given.
12051 if test "${enable_source_highlight+set}" = set; then :
12052 enableval
=$enable_source_highlight; case "${enableval}" in
12053 yes) enable_source_highlight
=yes ;;
12054 no
) enable_source_highlight
=no
;;
12055 *) as_fn_error $?
"bad value ${enableval} for source-highlight option" "$LINENO" 5 ;;
12058 enable_source_highlight
=auto
12062 if test "${enable_source_highlight}" != "no"; then
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
12064 $as_echo_n "checking for the source-highlight library... " >&6; }
12065 if test "${pkg_config_prog_path}" = "missing"; then
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
12067 $as_echo "no - pkg-config not found" >&6; }
12068 if test "${enable_source_highlight}" = "yes"; then
12069 as_fn_error $?
"pkg-config was not found in your system" "$LINENO" 5
12072 if ${pkg_config_prog_path} --exists source-highlight
; then
12075 as_fn_error $?
"source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
12079 SRCHIGH_CFLAGS
=`${pkg_config_prog_path} --cflags source-highlight`
12080 SRCHIGH_LIBS
=`${pkg_config_prog_path} --libs source-highlight`
12082 $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12085 $as_echo "yes" >&6; }
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12088 $as_echo "no" >&6; }
12089 if test "${enable_source_highlight}" = "yes"; then
12090 as_fn_error $?
"source-highlight was not found in your system" "$LINENO" 5
12098 # ------------------------- #
12099 # Checks for header files. #
12100 # ------------------------- #
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12103 $as_echo_n "checking for ANSI C header files... " >&6; }
12104 if ${ac_cv_header_stdc+:} false
; then :
12105 $as_echo_n "(cached) " >&6
12107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12108 /* end confdefs.h. */
12109 #include <stdlib.h>
12110 #include <stdarg.h>
12111 #include <string.h>
12122 if ac_fn_c_try_compile
"$LINENO"; then :
12123 ac_cv_header_stdc
=yes
12125 ac_cv_header_stdc
=no
12127 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12129 if test $ac_cv_header_stdc = yes; then
12130 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12132 /* end confdefs.h. */
12133 #include <string.h>
12136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12137 $EGREP "memchr" >/dev
/null
2>&1; then :
12140 ac_cv_header_stdc
=no
12146 if test $ac_cv_header_stdc = yes; then
12147 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12149 /* end confdefs.h. */
12150 #include <stdlib.h>
12153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12154 $EGREP "free" >/dev
/null
2>&1; then :
12157 ac_cv_header_stdc
=no
12163 if test $ac_cv_header_stdc = yes; then
12164 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12165 if test "$cross_compiling" = yes; then :
12168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12169 /* end confdefs.h. */
12171 #include <stdlib.h>
12172 #if ((' ' & 0x0FF) == 0x020)
12173 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12174 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12176 # define ISLOWER(c) \
12177 (('a' <= (c) && (c) <= 'i') \
12178 || ('j' <= (c) && (c) <= 'r') \
12179 || ('s' <= (c) && (c) <= 'z'))
12180 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12183 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12188 for (i = 0; i < 256; i++)
12189 if (XOR (islower (i), ISLOWER (i))
12190 || toupper (i) != TOUPPER (i))
12195 if ac_fn_c_try_run
"$LINENO"; then :
12198 ac_cv_header_stdc
=no
12200 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12201 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12207 $as_echo "$ac_cv_header_stdc" >&6; }
12208 if test $ac_cv_header_stdc = yes; then
12210 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12214 # elf_hp.h is for HP/UX 64-bit shared library support.
12215 for ac_header
in nlist.h machine
/reg.h \
12217 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
12218 sys
/resource.h sys
/ptrace.h ptrace.h \
12219 sys
/reg.h sys
/debugreg.h \
12222 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12223 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12224 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12225 cat >>confdefs.h
<<_ACEOF
12226 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12233 for ac_header
in sys
/user.h
12235 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
12236 # include <sys/param.h>
12240 if test "x$ac_cv_header_sys_user_h" = xyes
; then :
12241 cat >>confdefs.h
<<_ACEOF
12242 #define HAVE_SYS_USER_H 1
12250 for ac_header
in curses.h cursesX.h ncurses.h ncursesw
/ncurses.h ncurses
/ncurses.h ncurses
/term.h
12252 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12253 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12254 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12255 cat >>confdefs.h
<<_ACEOF
12256 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12263 for ac_header
in term.h
12265 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
12266 # include <curses.h>
12270 if test "x$ac_cv_header_term_h" = xyes
; then :
12271 cat >>confdefs.h
<<_ACEOF
12272 #define HAVE_TERM_H 1
12280 for ac_header
in sys
/socket.h
12282 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
12283 if test "x$ac_cv_header_sys_socket_h" = xyes
; then :
12284 cat >>confdefs.h
<<_ACEOF
12285 #define HAVE_SYS_SOCKET_H 1
12292 for ac_header
in ws2tcpip.h
12294 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
12295 if test "x$ac_cv_header_ws2tcpip_h" = xyes
; then :
12296 cat >>confdefs.h
<<_ACEOF
12297 #define HAVE_WS2TCPIP_H 1
12305 # ------------------------- #
12306 # Checks for declarations. #
12307 # ------------------------- #
12310 # Check for presence and size of long long.
12311 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12312 if test "x$ac_cv_type_long_long" = xyes
; then :
12314 cat >>confdefs.h
<<_ACEOF
12315 #define HAVE_LONG_LONG 1
12318 # The cast to long int works around a bug in the HP C Compiler
12319 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12320 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12321 # This bug is HP SR number 8606223364.
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12323 $as_echo_n "checking size of long long... " >&6; }
12324 if ${ac_cv_sizeof_long_long+:} false
; then :
12325 $as_echo_n "(cached) " >&6
12327 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12330 if test "$ac_cv_type_long_long" = yes; then
12331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12333 as_fn_error
77 "cannot compute sizeof (long long)
12334 See \`config.log' for more details" "$LINENO" 5; }
12336 ac_cv_sizeof_long_long
=0
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12342 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12346 cat >>confdefs.h
<<_ACEOF
12347 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12354 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
12355 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
12356 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
12362 cat >>confdefs.h
<<_ACEOF
12363 #define HAVE_DECL_BASENAME $ac_have_decl
12365 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
12366 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
12372 cat >>confdefs.h
<<_ACEOF
12373 #define HAVE_DECL_FFS $ac_have_decl
12375 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12376 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
12382 cat >>confdefs.h
<<_ACEOF
12383 #define HAVE_DECL_ASPRINTF $ac_have_decl
12385 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12386 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
12392 cat >>confdefs.h
<<_ACEOF
12393 #define HAVE_DECL_VASPRINTF $ac_have_decl
12395 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12396 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12402 cat >>confdefs.h
<<_ACEOF
12403 #define HAVE_DECL_SNPRINTF $ac_have_decl
12405 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12406 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
12412 cat >>confdefs.h
<<_ACEOF
12413 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12416 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
12417 if test "x$ac_cv_have_decl_strtol" = xyes
; then :
12423 cat >>confdefs.h
<<_ACEOF
12424 #define HAVE_DECL_STRTOL $ac_have_decl
12426 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
12427 if test "x$ac_cv_have_decl_strtoul" = xyes
; then :
12433 cat >>confdefs.h
<<_ACEOF
12434 #define HAVE_DECL_STRTOUL $ac_have_decl
12436 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
12437 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
12443 cat >>confdefs.h
<<_ACEOF
12444 #define HAVE_DECL_STRTOLL $ac_have_decl
12446 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
12447 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
12453 cat >>confdefs.h
<<_ACEOF
12454 #define HAVE_DECL_STRTOULL $ac_have_decl
12457 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12458 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
12464 cat >>confdefs.h
<<_ACEOF
12465 #define HAVE_DECL_STRVERSCMP $ac_have_decl
12470 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12471 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12477 cat >>confdefs.h
<<_ACEOF
12478 #define HAVE_DECL_SNPRINTF $ac_have_decl
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12483 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12484 if ${am_cv_val_LC_MESSAGES+:} false
; then :
12485 $as_echo_n "(cached) " >&6
12487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12488 /* end confdefs.h. */
12489 #include <locale.h>
12498 if ac_fn_c_try_link
"$LINENO"; then :
12499 am_cv_val_LC_MESSAGES
=yes
12501 am_cv_val_LC_MESSAGES
=no
12503 rm -f core conftest.err conftest.
$ac_objext \
12504 conftest
$ac_exeext conftest.
$ac_ext
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12507 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12508 if test $am_cv_val_LC_MESSAGES = yes; then
12510 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12515 # ------------------ #
12516 # Checks for types. #
12517 # ------------------ #
12519 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12520 #if HAVE_SYS_SOCKET_H
12521 # include <sys/socket.h>
12522 #elif HAVE_WS2TCPIP_H
12523 # include <ws2tcpip.h>
12527 if test "x$ac_cv_type_socklen_t" = xyes
; then :
12529 cat >>confdefs.h
<<_ACEOF
12530 #define HAVE_SOCKLEN_T 1
12537 # ------------------------------------- #
12538 # Checks for compiler characteristics. #
12539 # ------------------------------------- #
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12542 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12543 if ${ac_cv_c_const+:} false
; then :
12544 $as_echo_n "(cached) " >&6
12546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12547 /* end confdefs.h. */
12553 #ifndef __cplusplus
12554 /* Ultrix mips cc rejects this sort of thing. */
12555 typedef int charset[2];
12556 const charset cs = { 0, 0 };
12557 /* SunOS 4.1.1 cc rejects this. */
12558 char const *const *pcpcc;
12560 /* NEC SVR4.0.2 mips cc rejects this. */
12561 struct point {int x, y;};
12562 static struct point const zero = {0,0};
12563 /* AIX XL C 1.02.0.0 rejects this.
12564 It does not let you subtract one const X* pointer from another in
12565 an arm of an if-expression whose if-part is not a constant
12567 const char *g = "string";
12568 pcpcc = &g + (g ? g-g : 0);
12569 /* HPUX 7.0 cc rejects these. */
12571 ppc = (char**) pcpcc;
12572 pcpcc = (char const *const *) ppc;
12573 { /* SCO 3.2v4 cc rejects this sort of thing. */
12576 char const *s = 0 ? (char *) 0 : (char const *) 0;
12581 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12582 int x[] = {25, 17};
12583 const int *foo = &x[0];
12586 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12587 typedef const int *iptr;
12591 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12592 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12593 struct s { int j; const int *ap[3]; } bx;
12594 struct s *b = &bx; b->j = 5;
12596 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12597 const int foo = 10;
12598 if (!foo) return 0;
12600 return !cs[0] && !zero.x;
12607 if ac_fn_c_try_compile
"$LINENO"; then :
12612 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12615 $as_echo "$ac_cv_c_const" >&6; }
12616 if test $ac_cv_c_const = no
; then
12618 $as_echo "#define const /**/" >>confdefs.h
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12623 $as_echo_n "checking for inline... " >&6; }
12624 if ${ac_cv_c_inline+:} false
; then :
12625 $as_echo_n "(cached) " >&6
12628 for ac_kw
in inline __inline__ __inline
; do
12629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12630 /* end confdefs.h. */
12631 #ifndef __cplusplus
12633 static $ac_kw foo_t static_foo () {return 0; }
12634 $ac_kw foo_t foo () {return 0; }
12638 if ac_fn_c_try_compile
"$LINENO"; then :
12639 ac_cv_c_inline
=$ac_kw
12641 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12642 test "$ac_cv_c_inline" != no
&& break
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12647 $as_echo "$ac_cv_c_inline" >&6; }
12649 case $ac_cv_c_inline in
12652 case $ac_cv_c_inline in
12654 *) ac_val
=$ac_cv_c_inline;;
12656 cat >>confdefs.h
<<_ACEOF
12657 #ifndef __cplusplus
12658 #define inline $ac_val
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12665 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12666 if ${ac_cv_c_bigendian+:} false
; then :
12667 $as_echo_n "(cached) " >&6
12669 ac_cv_c_bigendian
=unknown
12670 # See if we're dealing with a universal compiler.
12671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12672 /* end confdefs.h. */
12673 #ifndef __APPLE_CC__
12674 not a universal capable compiler
12679 if ac_fn_c_try_compile
"$LINENO"; then :
12681 # Check for potential -arch flags. It is not universal unless
12682 # there are at least two -arch flags with different values.
12685 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12686 if test -n "$ac_prev"; then
12688 i?
86 | x86_64 | ppc | ppc64
)
12689 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12692 ac_cv_c_bigendian
=universal
12698 elif test "x$ac_word" = "x-arch"; then
12703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12704 if test $ac_cv_c_bigendian = unknown
; then
12705 # See if sys/param.h defines the BYTE_ORDER macro.
12706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12707 /* end confdefs.h. */
12708 #include <sys/types.h>
12709 #include <sys/param.h>
12714 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12715 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12717 bogus endian macros
12724 if ac_fn_c_try_compile
"$LINENO"; then :
12725 # It does; now see whether it defined to BIG_ENDIAN or not.
12726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12727 /* end confdefs.h. */
12728 #include <sys/types.h>
12729 #include <sys/param.h>
12734 #if BYTE_ORDER != BIG_ENDIAN
12742 if ac_fn_c_try_compile
"$LINENO"; then :
12743 ac_cv_c_bigendian
=yes
12745 ac_cv_c_bigendian
=no
12747 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12749 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12751 if test $ac_cv_c_bigendian = unknown
; then
12752 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12754 /* end confdefs.h. */
12755 #include <limits.h>
12760 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12761 bogus endian macros
12768 if ac_fn_c_try_compile
"$LINENO"; then :
12769 # It does; now see whether it defined to _BIG_ENDIAN or not.
12770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12771 /* end confdefs.h. */
12772 #include <limits.h>
12777 #ifndef _BIG_ENDIAN
12785 if ac_fn_c_try_compile
"$LINENO"; then :
12786 ac_cv_c_bigendian
=yes
12788 ac_cv_c_bigendian
=no
12790 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12794 if test $ac_cv_c_bigendian = unknown
; then
12795 # Compile a test program.
12796 if test "$cross_compiling" = yes; then :
12797 # Try to guess by grepping values from an object file.
12798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12799 /* end confdefs.h. */
12800 short int ascii_mm[] =
12801 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12802 short int ascii_ii[] =
12803 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12804 int use_ascii (int i) {
12805 return ascii_mm[i] + ascii_ii[i];
12807 short int ebcdic_ii[] =
12808 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12809 short int ebcdic_mm[] =
12810 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12811 int use_ebcdic (int i) {
12812 return ebcdic_mm[i] + ebcdic_ii[i];
12819 return use_ascii (foo) == use_ebcdic (foo);
12824 if ac_fn_c_try_compile
"$LINENO"; then :
12825 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12826 ac_cv_c_bigendian
=yes
12828 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12829 if test "$ac_cv_c_bigendian" = unknown
; then
12830 ac_cv_c_bigendian
=no
12832 # finding both strings is unlikely to happen, but who knows?
12833 ac_cv_c_bigendian
=unknown
12837 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12840 /* end confdefs.h. */
12841 $ac_includes_default
12846 /* Are we little or big endian? From Harbison&Steele. */
12850 char c[sizeof (long int)];
12853 return u.c[sizeof (long int) - 1] == 1;
12859 if ac_fn_c_try_run
"$LINENO"; then :
12860 ac_cv_c_bigendian
=no
12862 ac_cv_c_bigendian
=yes
12864 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12865 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12871 $as_echo "$ac_cv_c_bigendian" >&6; }
12872 case $ac_cv_c_bigendian in #(
12874 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12880 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12884 as_fn_error $?
"unknown endianness
12885 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12889 # ------------------------------ #
12890 # Checks for library functions. #
12891 # ------------------------------ #
12893 for ac_func
in getuid getgid \
12894 pipe pread pread64 pwrite resize_term \
12896 sigaction sigsetmask socketpair \
12897 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
12898 setrlimit getrlimit posix_madvise waitpid \
12901 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12902 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12903 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12904 cat >>confdefs.h
<<_ACEOF
12905 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12913 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12914 if ${am_cv_langinfo_codeset+:} false
; then :
12915 $as_echo_n "(cached) " >&6
12917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12918 /* end confdefs.h. */
12919 #include <langinfo.h>
12923 char* cs = nl_langinfo(CODESET);
12928 if ac_fn_c_try_link
"$LINENO"; then :
12929 am_cv_langinfo_codeset
=yes
12931 am_cv_langinfo_codeset
=no
12933 rm -f core conftest.err conftest.
$ac_objext \
12934 conftest
$ac_exeext conftest.
$ac_ext
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12938 $as_echo "$am_cv_langinfo_codeset" >&6; }
12939 if test $am_cv_langinfo_codeset = yes; then
12941 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12945 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12946 if test "x$ac_cv_type_size_t" = xyes
; then :
12950 cat >>confdefs.h
<<_ACEOF
12951 #define size_t unsigned int
12959 for ac_header
in $ac_header_list
12961 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12962 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12964 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12965 cat >>confdefs.h
<<_ACEOF
12966 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12979 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12980 if test "x$ac_cv_type_pid_t" = xyes
; then :
12984 cat >>confdefs.h
<<_ACEOF
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12991 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12992 if ${ac_cv_path_SED+:} false
; then :
12993 $as_echo_n "(cached) " >&6
12995 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
12996 for ac_i
in 1 2 3 4 5 6 7; do
12997 ac_script
="$ac_script$as_nl$ac_script"
12999 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
13000 { ac_script
=; unset ac_script
;}
13001 if test -z "$SED"; then
13002 ac_path_SED_found
=false
13003 # Loop through the user's path and test for each of PROGNAME-LIST
13004 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13005 for as_dir
in $PATH
13008 test -z "$as_dir" && as_dir
=.
13009 for ac_prog
in sed gsed
; do
13010 for ac_exec_ext
in '' $ac_executable_extensions; do
13011 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
13012 as_fn_executable_p
"$ac_path_SED" ||
continue
13013 # Check for GNU ac_path_SED and select it if it is found.
13014 # Check for GNU $ac_path_SED
13015 case `"$ac_path_SED" --version 2>&1` in
13017 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
13020 $as_echo_n 0123456789 >"conftest.in"
13023 cat "conftest.in" "conftest.in" >"conftest.tmp"
13024 mv "conftest.tmp" "conftest.in"
13025 cp "conftest.in" "conftest.nl"
13026 $as_echo '' >> "conftest.nl"
13027 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13028 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13029 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13030 if test $ac_count -gt ${ac_path_SED_max-0}; then
13031 # Best one so far, save it but keep looking for a better one
13032 ac_cv_path_SED
="$ac_path_SED"
13033 ac_path_SED_max
=$ac_count
13035 # 10*(2^10) chars as input seems more than enough
13036 test $ac_count -gt 10 && break
13038 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13041 $ac_path_SED_found && break 3
13046 if test -z "$ac_cv_path_SED"; then
13047 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
13050 ac_cv_path_SED
=$SED
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13055 $as_echo "$ac_cv_path_SED" >&6; }
13056 SED
="$ac_cv_path_SED"
13060 # Set the 'development' global.
13061 .
$srcdir/..
/bfd
/development.sh
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13064 $as_echo_n "checking for ANSI C header files... " >&6; }
13065 if ${ac_cv_header_stdc+:} false
; then :
13066 $as_echo_n "(cached) " >&6
13068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13069 /* end confdefs.h. */
13070 #include <stdlib.h>
13071 #include <stdarg.h>
13072 #include <string.h>
13083 if ac_fn_c_try_compile
"$LINENO"; then :
13084 ac_cv_header_stdc
=yes
13086 ac_cv_header_stdc
=no
13088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13090 if test $ac_cv_header_stdc = yes; then
13091 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13093 /* end confdefs.h. */
13094 #include <string.h>
13097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13098 $EGREP "memchr" >/dev
/null
2>&1; then :
13101 ac_cv_header_stdc
=no
13107 if test $ac_cv_header_stdc = yes; then
13108 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13110 /* end confdefs.h. */
13111 #include <stdlib.h>
13114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13115 $EGREP "free" >/dev
/null
2>&1; then :
13118 ac_cv_header_stdc
=no
13124 if test $ac_cv_header_stdc = yes; then
13125 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13126 if test "$cross_compiling" = yes; then :
13129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13130 /* end confdefs.h. */
13132 #include <stdlib.h>
13133 #if ((' ' & 0x0FF) == 0x020)
13134 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13135 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13137 # define ISLOWER(c) \
13138 (('a' <= (c) && (c) <= 'i') \
13139 || ('j' <= (c) && (c) <= 'r') \
13140 || ('s' <= (c) && (c) <= 'z'))
13141 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13144 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13149 for (i = 0; i < 256; i++)
13150 if (XOR (islower (i), ISLOWER (i))
13151 || toupper (i) != TOUPPER (i))
13156 if ac_fn_c_try_run
"$LINENO"; then :
13159 ac_cv_header_stdc
=no
13161 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13162 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13168 $as_echo "$ac_cv_header_stdc" >&6; }
13169 if test $ac_cv_header_stdc = yes; then
13171 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13175 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13176 # for constant arguments. Useless!
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13178 $as_echo_n "checking for working alloca.h... " >&6; }
13179 if ${ac_cv_working_alloca_h+:} false
; then :
13180 $as_echo_n "(cached) " >&6
13182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13183 /* end confdefs.h. */
13184 #include <alloca.h>
13188 char *p = (char *) alloca (2 * sizeof (int));
13194 if ac_fn_c_try_link
"$LINENO"; then :
13195 ac_cv_working_alloca_h
=yes
13197 ac_cv_working_alloca_h
=no
13199 rm -f core conftest.err conftest.
$ac_objext \
13200 conftest
$ac_exeext conftest.
$ac_ext
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13203 $as_echo "$ac_cv_working_alloca_h" >&6; }
13204 if test $ac_cv_working_alloca_h = yes; then
13206 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13211 $as_echo_n "checking for alloca... " >&6; }
13212 if ${ac_cv_func_alloca_works+:} false
; then :
13213 $as_echo_n "(cached) " >&6
13215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13216 /* end confdefs.h. */
13218 # define alloca __builtin_alloca
13221 # include <malloc.h>
13222 # define alloca _alloca
13224 # ifdef HAVE_ALLOCA_H
13225 # include <alloca.h>
13230 # ifndef alloca /* predefined by HP cc +Olibcalls */
13231 void *alloca (size_t);
13241 char *p = (char *) alloca (1);
13247 if ac_fn_c_try_link
"$LINENO"; then :
13248 ac_cv_func_alloca_works
=yes
13250 ac_cv_func_alloca_works
=no
13252 rm -f core conftest.err conftest.
$ac_objext \
13253 conftest
$ac_exeext conftest.
$ac_ext
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13256 $as_echo "$ac_cv_func_alloca_works" >&6; }
13258 if test $ac_cv_func_alloca_works = yes; then
13260 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13263 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13264 # that cause trouble. Some versions do not even contain alloca or
13265 # contain a buggy version. If you still want to use their alloca,
13266 # use ar to extract alloca.o from them instead of compiling alloca.c.
13268 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
13270 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13274 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13275 if ${ac_cv_os_cray+:} false
; then :
13276 $as_echo_n "(cached) " >&6
13278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13279 /* end confdefs.h. */
13280 #if defined CRAY && ! defined CRAY2
13287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13288 $EGREP "webecray" >/dev
/null
2>&1; then :
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13297 $as_echo "$ac_cv_os_cray" >&6; }
13298 if test $ac_cv_os_cray = yes; then
13299 for ac_func
in _getb67 GETB67 getb67
; do
13300 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13301 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13302 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13304 cat >>confdefs.h
<<_ACEOF
13305 #define CRAY_STACKSEG_END $ac_func
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13315 $as_echo_n "checking stack direction for C alloca... " >&6; }
13316 if ${ac_cv_c_stack_direction+:} false
; then :
13317 $as_echo_n "(cached) " >&6
13319 if test "$cross_compiling" = yes; then :
13320 ac_cv_c_stack_direction
=0
13322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13323 /* end confdefs.h. */
13324 $ac_includes_default
13326 find_stack_direction (int *addr, int depth)
13328 int dir, dummy = 0;
13331 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13332 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13333 return dir + dummy;
13337 main (int argc, char **argv)
13339 return find_stack_direction (0, argc + !argv + 20) < 0;
13342 if ac_fn_c_try_run
"$LINENO"; then :
13343 ac_cv_c_stack_direction
=1
13345 ac_cv_c_stack_direction
=-1
13347 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13348 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13353 $as_echo "$ac_cv_c_stack_direction" >&6; }
13354 cat >>confdefs.h
<<_ACEOF
13355 #define STACK_DIRECTION $ac_cv_c_stack_direction
13366 $as_echo "#define USE_WIN32API 1" >>confdefs.h
13368 WIN32APILIBS
="-lws2_32"
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13374 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13375 if ${am_cv_langinfo_codeset+:} false
; then :
13376 $as_echo_n "(cached) " >&6
13378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13379 /* end confdefs.h. */
13380 #include <langinfo.h>
13384 char* cs = nl_langinfo(CODESET);
13389 if ac_fn_c_try_link
"$LINENO"; then :
13390 am_cv_langinfo_codeset
=yes
13392 am_cv_langinfo_codeset
=no
13394 rm -f core conftest.err conftest.
$ac_objext \
13395 conftest
$ac_exeext conftest.
$ac_ext
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13399 $as_echo "$am_cv_langinfo_codeset" >&6; }
13400 if test $am_cv_langinfo_codeset = yes; then
13402 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13407 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
13409 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13410 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13411 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13412 cat >>confdefs.h
<<_ACEOF
13413 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13422 for ac_func
in getpagesize
13424 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13425 if test "x$ac_cv_func_getpagesize" = xyes
; then :
13426 cat >>confdefs.h
<<_ACEOF
13427 #define HAVE_GETPAGESIZE 1
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13434 $as_echo_n "checking for working mmap... " >&6; }
13435 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
13436 $as_echo_n "(cached) " >&6
13438 if test "$cross_compiling" = yes; then :
13439 ac_cv_func_mmap_fixed_mapped
=no
13441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13442 /* end confdefs.h. */
13443 $ac_includes_default
13444 /* malloc might have been renamed as rpl_malloc. */
13447 /* Thanks to Mike Haertel and Jim Avera for this test.
13448 Here is a matrix of mmap possibilities:
13449 mmap private not fixed
13450 mmap private fixed at somewhere currently unmapped
13451 mmap private fixed at somewhere already mapped
13452 mmap shared not fixed
13453 mmap shared fixed at somewhere currently unmapped
13454 mmap shared fixed at somewhere already mapped
13455 For private mappings, we should verify that changes cannot be read()
13456 back from the file, nor mmap's back from the file at a different
13457 address. (There have been systems where private was not correctly
13458 implemented like the infamous i386 svr4.0, and systems where the
13459 VM page cache was not coherent with the file system buffer cache
13460 like early versions of FreeBSD and possibly contemporary NetBSD.)
13461 For shared mappings, we should conversely verify that changes get
13462 propagated back to all the places they're supposed to be.
13464 Grep wants private fixed already mapped.
13465 The main things grep needs to know about mmap are:
13466 * does it exist and is it safe to write into the mmap'd area
13467 * how to use it (BSD variants) */
13470 #include <sys/mman.h>
13472 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13476 /* This mess was copied from the GNU getpagesize.h. */
13477 #ifndef HAVE_GETPAGESIZE
13478 # ifdef _SC_PAGESIZE
13479 # define getpagesize() sysconf(_SC_PAGESIZE)
13480 # else /* no _SC_PAGESIZE */
13481 # ifdef HAVE_SYS_PARAM_H
13482 # include <sys/param.h>
13483 # ifdef EXEC_PAGESIZE
13484 # define getpagesize() EXEC_PAGESIZE
13485 # else /* no EXEC_PAGESIZE */
13487 # define getpagesize() NBPG * CLSIZE
13490 # endif /* no CLSIZE */
13491 # else /* no NBPG */
13493 # define getpagesize() NBPC
13494 # else /* no NBPC */
13496 # define getpagesize() PAGESIZE
13497 # endif /* PAGESIZE */
13498 # endif /* no NBPC */
13499 # endif /* no NBPG */
13500 # endif /* no EXEC_PAGESIZE */
13501 # else /* no HAVE_SYS_PARAM_H */
13502 # define getpagesize() 8192 /* punt totally */
13503 # endif /* no HAVE_SYS_PARAM_H */
13504 # endif /* no _SC_PAGESIZE */
13506 #endif /* no HAVE_GETPAGESIZE */
13511 char *data, *data2, *data3;
13512 const char *cdata2;
13516 pagesize = getpagesize ();
13518 /* First, make a file with some known garbage in it. */
13519 data = (char *) malloc (pagesize);
13522 for (i = 0; i < pagesize; ++i)
13523 *(data + i) = rand ();
13525 fd = creat ("conftest.mmap", 0600);
13528 if (write (fd, data, pagesize) != pagesize)
13532 /* Next, check that the tail of a page is zero-filled. File must have
13533 non-zero length, otherwise we risk SIGBUS for entire page. */
13534 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13538 if (write (fd2, cdata2, 1) != 1)
13540 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13541 if (data2 == MAP_FAILED)
13543 for (i = 0; i < pagesize; ++i)
13547 if (munmap (data2, pagesize))
13550 /* Next, try to mmap the file at a fixed address which already has
13551 something else allocated at it. If we can, also make sure that
13552 we see the same garbage. */
13553 fd = open ("conftest.mmap", O_RDWR);
13556 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13557 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13559 for (i = 0; i < pagesize; ++i)
13560 if (*(data + i) != *(data2 + i))
13563 /* Finally, make sure that changes to the mapped area do not
13564 percolate back to the file as seen by read(). (This is a bug on
13565 some variants of i386 svr4.0.) */
13566 for (i = 0; i < pagesize; ++i)
13567 *(data2 + i) = *(data2 + i) + 1;
13568 data3 = (char *) malloc (pagesize);
13571 if (read (fd, data3, pagesize) != pagesize)
13573 for (i = 0; i < pagesize; ++i)
13574 if (*(data + i) != *(data3 + i))
13580 if ac_fn_c_try_run
"$LINENO"; then :
13581 ac_cv_func_mmap_fixed_mapped
=yes
13583 ac_cv_func_mmap_fixed_mapped
=no
13585 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13586 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13591 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13592 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13594 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13597 rm -f conftest.mmap conftest.txt
13599 for ac_header
in vfork.h
13601 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13602 if test "x$ac_cv_header_vfork_h" = xyes
; then :
13603 cat >>confdefs.h
<<_ACEOF
13604 #define HAVE_VFORK_H 1
13611 for ac_func
in fork vfork
13613 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13614 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13615 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13616 cat >>confdefs.h
<<_ACEOF
13617 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13623 if test "x$ac_cv_func_fork" = xyes
; then
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13625 $as_echo_n "checking for working fork... " >&6; }
13626 if ${ac_cv_func_fork_works+:} false
; then :
13627 $as_echo_n "(cached) " >&6
13629 if test "$cross_compiling" = yes; then :
13630 ac_cv_func_fork_works
=cross
13632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13633 /* end confdefs.h. */
13634 $ac_includes_default
13639 /* By Ruediger Kuhlmann. */
13640 return fork () < 0;
13646 if ac_fn_c_try_run
"$LINENO"; then :
13647 ac_cv_func_fork_works
=yes
13649 ac_cv_func_fork_works
=no
13651 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13652 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13657 $as_echo "$ac_cv_func_fork_works" >&6; }
13660 ac_cv_func_fork_works
=$ac_cv_func_fork
13662 if test "x$ac_cv_func_fork_works" = xcross
; then
13664 *-*-amigaos* |
*-*-msdosdjgpp*)
13665 # Override, as these systems have only a dummy fork() stub
13666 ac_cv_func_fork_works
=no
13669 ac_cv_func_fork_works
=yes
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13673 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13675 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13676 if test "x$ac_cv_func_vfork" = xyes
; then
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13678 $as_echo_n "checking for working vfork... " >&6; }
13679 if ${ac_cv_func_vfork_works+:} false
; then :
13680 $as_echo_n "(cached) " >&6
13682 if test "$cross_compiling" = yes; then :
13683 ac_cv_func_vfork_works
=cross
13685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13686 /* end confdefs.h. */
13687 /* Thanks to Paul Eggert for this test. */
13688 $ac_includes_default
13689 #include <sys/wait.h>
13690 #ifdef HAVE_VFORK_H
13691 # include <vfork.h>
13693 /* On some sparc systems, changes by the child to local and incoming
13694 argument registers are propagated back to the parent. The compiler
13695 is told about this with #include <vfork.h>, but some compilers
13696 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13697 static variable whose address is put into a register that is
13698 clobbered by the vfork. */
13701 sparc_address_test (int arg)
13703 sparc_address_test (arg) int arg;
13706 static pid_t child;
13724 pid_t parent = getpid ();
13727 sparc_address_test (0);
13732 /* Here is another test for sparc vfork register problems. This
13733 test uses lots of local variables, at least as many local
13734 variables as main has allocated so far including compiler
13735 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13736 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13737 reuse the register of parent for one of the local variables,
13738 since it will think that parent can't possibly be used any more
13739 in this routine. Assigning to the local variable will thus
13740 munge parent in the parent process. */
13742 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13743 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13744 /* Convince the compiler that p..p7 are live; otherwise, it might
13745 use the same hardware register for all 8 local variables. */
13746 if (p != p1 || p != p2 || p != p3 || p != p4
13747 || p != p5 || p != p6 || p != p7)
13750 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13751 from child file descriptors. If the child closes a descriptor
13752 before it execs or exits, this munges the parent's descriptor
13753 as well. Test for this by closing stdout in the child. */
13754 _exit(close(fileno(stdout)) != 0);
13759 while (wait(&status) != child)
13762 /* Was there some problem with vforking? */
13765 /* Did the child fail? (This shouldn't happen.) */
13768 /* Did the vfork/compiler bug occur? */
13769 || parent != getpid()
13771 /* Did the file descriptor bug occur? */
13772 || fstat(fileno(stdout), &st) != 0
13777 if ac_fn_c_try_run
"$LINENO"; then :
13778 ac_cv_func_vfork_works
=yes
13780 ac_cv_func_vfork_works
=no
13782 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13783 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13788 $as_echo "$ac_cv_func_vfork_works" >&6; }
13791 if test "x$ac_cv_func_fork_works" = xcross
; then
13792 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13794 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13797 if test "x$ac_cv_func_vfork_works" = xyes
; then
13799 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13803 $as_echo "#define vfork fork" >>confdefs.h
13806 if test "x$ac_cv_func_fork_works" = xyes
; then
13808 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13812 for ac_func
in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
13813 ptrace64 sbrk setns sigaltstack sigprocmask \
13814 setpgid setpgrp getrusage getauxval
13816 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13817 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13818 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13819 cat >>confdefs.h
<<_ACEOF
13820 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13827 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
13829 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
13835 cat >>confdefs.h
<<_ACEOF
13836 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
13840 if test "$cross_compiling" = yes; then :
13841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13842 /* end confdefs.h. */
13843 #include <sys/personality.h>
13848 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
13849 # define ADDR_NO_RANDOMIZE 0x0040000
13851 /* Test the flag could be set and stays set. */
13852 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13853 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13859 if ac_fn_c_try_link
"$LINENO"; then :
13860 have_personality
=true
13862 have_personality
=false
13864 rm -f core conftest.err conftest.
$ac_objext \
13865 conftest
$ac_exeext conftest.
$ac_ext
13867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13868 /* end confdefs.h. */
13869 #include <sys/personality.h>
13874 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
13875 # define ADDR_NO_RANDOMIZE 0x0040000
13877 /* Test the flag could be set and stays set. */
13878 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13879 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13885 if ac_fn_c_try_run
"$LINENO"; then :
13886 have_personality
=true
13888 have_personality
=false
13890 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13891 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13894 if $have_personality
13897 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
13901 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13902 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
13908 cat >>confdefs.h
<<_ACEOF
13909 #define HAVE_DECL_STRSTR $ac_have_decl
13913 # ----------------------- #
13914 # Checks for structures. #
13915 # ----------------------- #
13917 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13918 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
13920 cat >>confdefs.h
<<_ACEOF
13921 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13926 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
13927 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
13929 cat >>confdefs.h
<<_ACEOF
13930 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13937 # On FreeBSD we need libutil for the kinfo_get* functions. On
13938 # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
13939 # Figure out which one to use.
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
13941 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
13942 if ${ac_cv_search_kinfo_getfile+:} false
; then :
13943 $as_echo_n "(cached) " >&6
13945 ac_func_search_save_LIBS
=$LIBS
13946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13947 /* end confdefs.h. */
13949 /* Override any GCC internal prototype to avoid an error.
13950 Use char because int might match the return type of a GCC
13951 builtin and then its argument prototype would still apply. */
13955 char kinfo_getfile ();
13959 return kinfo_getfile ();
13964 for ac_lib
in '' util util-freebsd
; do
13965 if test -z "$ac_lib"; then
13966 ac_res
="none required"
13969 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13971 if ac_fn_c_try_link
"$LINENO"; then :
13972 ac_cv_search_kinfo_getfile
=$ac_res
13974 rm -f core conftest.err conftest.
$ac_objext \
13976 if ${ac_cv_search_kinfo_getfile+:} false
; then :
13980 if ${ac_cv_search_kinfo_getfile+:} false
; then :
13983 ac_cv_search_kinfo_getfile
=no
13985 rm conftest.
$ac_ext
13986 LIBS
=$ac_func_search_save_LIBS
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
13989 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
13990 ac_res
=$ac_cv_search_kinfo_getfile
13991 if test "$ac_res" != no
; then :
13992 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13997 # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
13998 for ac_func
in kinfo_getfile
14000 ac_fn_c_check_func
"$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
14001 if test "x$ac_cv_func_kinfo_getfile" = xyes
; then :
14002 cat >>confdefs.h
<<_ACEOF
14003 #define HAVE_KINFO_GETFILE 1
14010 # Check for std::thread. This does not work on some platforms, like
14013 ac_cpp
='$CXXCPP $CPPFLAGS'
14014 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14015 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14016 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
14023 ac_cpp
='$CPP $CPPFLAGS'
14024 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14025 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14026 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14030 # We used to check for pthread.h first, but this fails if pthread.h
14031 # requires special compiler flags (e.g. on Tru64 or Sequent).
14032 # It gets checked for in the link test anyway.
14034 # First of all, check if the user has set any of the PTHREAD_LIBS,
14035 # etcetera environment variables, and if threads linking works using
14037 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
14038 ax_pthread_save_CC
="$CC"
14039 ax_pthread_save_CFLAGS
="$CFLAGS"
14040 ax_pthread_save_LIBS
="$LIBS"
14041 if test "x$PTHREAD_CC" != "x"; then :
14044 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
14045 LIBS
="$PTHREAD_LIBS $LIBS"
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
14047 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
14048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14049 /* end confdefs.h. */
14051 /* Override any GCC internal prototype to avoid an error.
14052 Use char because int might match the return type of a GCC
14053 builtin and then its argument prototype would still apply. */
14057 char pthread_join ();
14061 return pthread_join ();
14066 if ac_fn_c_try_link
"$LINENO"; then :
14069 rm -f core conftest.err conftest.
$ac_objext \
14070 conftest
$ac_exeext conftest.
$ac_ext
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14072 $as_echo "$ax_pthread_ok" >&6; }
14073 if test "x$ax_pthread_ok" = "xno"; then
14077 CC
="$ax_pthread_save_CC"
14078 CFLAGS
="$ax_pthread_save_CFLAGS"
14079 LIBS
="$ax_pthread_save_LIBS"
14082 # We must check for the threads library under a number of different
14083 # names; the ordering is very important because some systems
14084 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14085 # libraries is broken (non-POSIX).
14087 # Create a list of thread flags to try. Items starting with a "-" are
14088 # C compiler flags, and other items are library names, except for "none"
14089 # which indicates that we try without any flags at all, and "pthread-config"
14090 # which is a program returning the flags for the Pth emulation library.
14092 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14094 # The ordering *is* (sometimes) important. Some notes on the
14095 # individual items follow:
14097 # pthreads: AIX (must check this before -lpthread)
14098 # none: in case threads are in libc; should be tried before -Kthread and
14099 # other compiler flags to prevent continual compiler warnings
14100 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14101 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
14102 # (Note: HP C rejects this with "bad form for `-t' option")
14103 # -pthreads: Solaris/gcc (Note: HP C also rejects)
14104 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14105 # doesn't hurt to check since this sometimes defines pthreads and
14106 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
14107 # is present but should not be used directly; and before -mthreads,
14108 # because the compiler interprets this as "-mt" + "-hreads")
14109 # -mthreads: Mingw32/gcc, Lynx/gcc
14110 # pthread: Linux, etcetera
14111 # --thread-safe: KAI C++
14112 # pthread-config: use pthread-config program (for GNU Pth library)
14118 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14119 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14121 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
14126 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
14127 # multi-threading and also sets -lpthread."
14129 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
14134 # IBM z/OS requires a feature-test macro to be defined in order to
14135 # enable POSIX threads at all, so give the user a hint if this is
14136 # not set. (We don't define these ourselves, as they can affect
14137 # other portions of the system API in unpredictable ways.)
14139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14140 /* end confdefs.h. */
14142 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
14143 AX_PTHREAD_ZOS_MISSING
14147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14148 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
14150 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
14158 # On Solaris (at least, for some versions), libc contains stubbed
14159 # (non-functional) versions of the pthreads routines, so link-based
14160 # tests will erroneously succeed. (N.B.: The stubs are missing
14161 # pthread_cleanup_push, or rather a function called by this macro,
14162 # so we could check for that, but who knows whether they'll stub
14163 # that too in a future libc.) So we'll check first for the
14164 # standard Solaris way of linking pthreads (-mt -lpthread).
14166 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
14170 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
14172 if test "x$GCC" = "xyes"; then :
14173 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
14176 # The presence of a feature test macro requesting re-entrant function
14177 # definitions is, on some systems, a strong hint that pthreads support is
14178 # correctly enabled
14181 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
14182 ax_pthread_check_macro
="_REENTRANT"
14186 ax_pthread_check_macro
="_THREAD_SAFE"
14190 ax_pthread_check_macro
="--"
14193 if test "x$ax_pthread_check_macro" = "x--"; then :
14194 ax_pthread_check_cond
=0
14196 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
14199 # Are we compiling with Clang?
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
14202 $as_echo_n "checking whether $CC is Clang... " >&6; }
14203 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
14204 $as_echo_n "(cached) " >&6
14206 ax_cv_PTHREAD_CLANG
=no
14207 # Note that Autoconf sets GCC=yes for Clang as well as GCC
14208 if test "x$GCC" = "xyes"; then
14209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14210 /* end confdefs.h. */
14211 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
14212 # if defined(__clang__) && defined(__llvm__)
14213 AX_PTHREAD_CC_IS_CLANG
14217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14218 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
14219 ax_cv_PTHREAD_CLANG
=yes
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
14227 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
14228 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
14230 ax_pthread_clang_warning
=no
14232 # Clang needs special handling, because older versions handle the -pthread
14233 # option in a rather... idiosyncratic way
14235 if test "x$ax_pthread_clang" = "xyes"; then
14237 # Clang takes -pthread; it has never supported any other flag
14239 # (Note 1: This will need to be revisited if a system that Clang
14240 # supports has POSIX threads in a separate library. This tends not
14241 # to be the way of modern systems, but it's conceivable.)
14243 # (Note 2: On some systems, notably Darwin, -pthread is not needed
14244 # to get POSIX threads support; the API is always present and
14245 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
14246 # -pthread does define _REENTRANT, and while the Darwin headers
14247 # ignore this macro, third-party headers might not.)
14249 PTHREAD_CFLAGS
="-pthread"
14254 # However, older versions of Clang make a point of warning the user
14255 # that, in an invocation where only linking and no compilation is
14256 # taking place, the -pthread option has no effect ("argument unused
14257 # during compilation"). They expect -pthread to be passed in only
14258 # when source code is being compiled.
14260 # Problem is, this is at odds with the way Automake and most other
14261 # C build frameworks function, which is that the same flags used in
14262 # compilation (CFLAGS) are also used in linking. Many systems
14263 # supported by AX_PTHREAD require exactly this for POSIX threads
14264 # support, and in fact it is often not straightforward to specify a
14265 # flag that is used only in the compilation phase and not in
14266 # linking. Such a scenario is extremely rare in practice.
14268 # Even though use of the -pthread flag in linking would only print
14269 # a warning, this can be a nuisance for well-run software projects
14270 # that build with -Werror. So if the active version of Clang has
14271 # this misfeature, we search for an option to squash it.
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
14274 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
14275 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
14276 $as_echo_n "(cached) " >&6
14278 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
14279 # Create an alternate version of $ac_link that compiles and
14280 # links in two steps (.c -> .o, .o -> exe) instead of one
14281 # (.c -> exe), because the warning occurs only in the second
14283 ax_pthread_save_ac_link
="$ac_link"
14284 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
14285 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
14286 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
14287 ax_pthread_save_CFLAGS
="$CFLAGS"
14288 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
14289 if test "x$ax_pthread_try" = "xunknown"; then :
14292 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
14293 ac_link
="$ax_pthread_save_ac_link"
14294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14295 /* end confdefs.h. */
14296 int main(void){return 0;}
14298 if ac_fn_c_try_link
"$LINENO"; then :
14299 ac_link
="$ax_pthread_2step_ac_link"
14300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14301 /* end confdefs.h. */
14302 int main(void){return 0;}
14304 if ac_fn_c_try_link
"$LINENO"; then :
14307 rm -f core conftest.err conftest.
$ac_objext \
14308 conftest
$ac_exeext conftest.
$ac_ext
14311 rm -f core conftest.err conftest.
$ac_objext \
14312 conftest
$ac_exeext conftest.
$ac_ext
14314 ac_link
="$ax_pthread_save_ac_link"
14315 CFLAGS
="$ax_pthread_save_CFLAGS"
14316 if test "x$ax_pthread_try" = "x"; then :
14319 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
14323 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
14325 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
14327 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
14330 fi # $ax_pthread_clang = yes
14332 if test "x$ax_pthread_ok" = "xno"; then
14333 for ax_pthread_try_flag
in $ax_pthread_flags; do
14335 case $ax_pthread_try_flag in
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14338 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
14343 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
14344 PTHREAD_CFLAGS
="-mt"
14345 PTHREAD_LIBS
="-lpthread"
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
14350 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
14351 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
14355 # Extract the first word of "pthread-config", so it can be a program name with args.
14356 set dummy pthread-config
; ac_word
=$2
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14358 $as_echo_n "checking for $ac_word... " >&6; }
14359 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
14360 $as_echo_n "(cached) " >&6
14362 if test -n "$ax_pthread_config"; then
14363 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
14365 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14366 for as_dir
in $PATH
14369 test -z "$as_dir" && as_dir
=.
14370 for ac_exec_ext
in '' $ac_executable_extensions; do
14371 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14372 ac_cv_prog_ax_pthread_config
="yes"
14373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14380 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
14383 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
14384 if test -n "$ax_pthread_config"; then
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
14386 $as_echo "$ax_pthread_config" >&6; }
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14389 $as_echo "no" >&6; }
14393 if test "x$ax_pthread_config" = "xno"; then :
14396 PTHREAD_CFLAGS
="`pthread-config --cflags`"
14397 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
14402 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
14403 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
14407 ax_pthread_save_CFLAGS
="$CFLAGS"
14408 ax_pthread_save_LIBS
="$LIBS"
14409 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
14410 LIBS
="$PTHREAD_LIBS $LIBS"
14412 # Check for various functions. We must include pthread.h,
14413 # since some functions may be macros. (On the Sequent, we
14414 # need a special flag -Kthread to make this header compile.)
14415 # We check for pthread_join because it is in -lpthread on IRIX
14416 # while pthread_create is in libc. We check for pthread_attr_init
14417 # due to DEC craziness with -lpthreads. We check for
14418 # pthread_cleanup_push because it is one of the few pthread
14419 # functions on Solaris that doesn't have a non-functional libc stub.
14420 # We try pthread_create on general principles.
14422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14423 /* end confdefs.h. */
14424 #include <pthread.h>
14425 # if $ax_pthread_check_cond
14426 # error "$ax_pthread_check_macro must be defined"
14428 static void routine(void *a) { a = 0; }
14429 static void *start_routine(void *a) { return a; }
14433 pthread_t th; pthread_attr_t attr;
14434 pthread_create(&th, 0, start_routine, 0);
14435 pthread_join(th, 0);
14436 pthread_attr_init(&attr);
14437 pthread_cleanup_push(routine, 0);
14438 pthread_cleanup_pop(0) /* ; */
14443 if ac_fn_c_try_link
"$LINENO"; then :
14446 rm -f core conftest.err conftest.
$ac_objext \
14447 conftest
$ac_exeext conftest.
$ac_ext
14449 CFLAGS
="$ax_pthread_save_CFLAGS"
14450 LIBS
="$ax_pthread_save_LIBS"
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14453 $as_echo "$ax_pthread_ok" >&6; }
14454 if test "x$ax_pthread_ok" = "xyes"; then :
14463 # Various other checks:
14464 if test "x$ax_pthread_ok" = "xyes"; then
14465 ax_pthread_save_CFLAGS
="$CFLAGS"
14466 ax_pthread_save_LIBS
="$LIBS"
14467 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
14468 LIBS
="$PTHREAD_LIBS $LIBS"
14470 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14472 $as_echo_n "checking for joinable pthread attribute... " >&6; }
14473 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
14474 $as_echo_n "(cached) " >&6
14476 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
14477 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
14478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14479 /* end confdefs.h. */
14480 #include <pthread.h>
14484 int attr = $ax_pthread_attr; return attr /* ; */
14489 if ac_fn_c_try_link
"$LINENO"; then :
14490 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
14492 rm -f core conftest.err conftest.
$ac_objext \
14493 conftest
$ac_exeext conftest.
$ac_ext
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
14498 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
14499 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
14500 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
14501 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
14503 cat >>confdefs.h
<<_ACEOF
14504 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
14507 ax_pthread_joinable_attr_defined
=yes
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
14512 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
14513 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
14514 $as_echo_n "(cached) " >&6
14516 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
14519 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
14525 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
14526 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
14527 test "x$ax_pthread_special_flags_added" != "xyes"; then :
14528 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
14529 ax_pthread_special_flags_added
=yes
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
14533 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
14534 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
14535 $as_echo_n "(cached) " >&6
14537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14538 /* end confdefs.h. */
14539 #include <pthread.h>
14543 int i = PTHREAD_PRIO_INHERIT;
14548 if ac_fn_c_try_link
"$LINENO"; then :
14549 ax_cv_PTHREAD_PRIO_INHERIT
=yes
14551 ax_cv_PTHREAD_PRIO_INHERIT
=no
14553 rm -f core conftest.err conftest.
$ac_objext \
14554 conftest
$ac_exeext conftest.
$ac_ext
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
14558 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
14559 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
14560 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
14562 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
14564 ax_pthread_prio_inherit_defined
=yes
14568 CFLAGS
="$ax_pthread_save_CFLAGS"
14569 LIBS
="$ax_pthread_save_LIBS"
14571 # More AIX lossage: compile with *_r variant
14572 if test "x$GCC" != "xyes"; then
14576 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
14577 #handle absolute path differently from PATH based program lookup
14580 if as_fn_executable_p
${CC}_r
; then :
14581 PTHREAD_CC
="${CC}_r"
14584 for ac_prog
in ${CC}_r
14586 # Extract the first word of "$ac_prog", so it can be a program name with args.
14587 set dummy
$ac_prog; ac_word
=$2
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14589 $as_echo_n "checking for $ac_word... " >&6; }
14590 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
14591 $as_echo_n "(cached) " >&6
14593 if test -n "$PTHREAD_CC"; then
14594 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
14596 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14597 for as_dir
in $PATH
14600 test -z "$as_dir" && as_dir
=.
14601 for ac_exec_ext
in '' $ac_executable_extensions; do
14602 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14603 ac_cv_prog_PTHREAD_CC
="$ac_prog"
14604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14613 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
14614 if test -n "$PTHREAD_CC"; then
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14616 $as_echo "$PTHREAD_CC" >&6; }
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14619 $as_echo "no" >&6; }
14623 test -n "$PTHREAD_CC" && break
14625 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
14636 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
14642 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14643 if test "x$ax_pthread_ok" = "xyes"; then
14651 ac_cpp
='$CXXCPP $CPPFLAGS'
14652 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14653 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14654 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
14657 if test "$threads" = "yes"; then
14659 LIBS
="$PTHREAD_LIBS $LIBS"
14660 save_CXXFLAGS
="$CXXFLAGS"
14661 CXXFLAGS
="$PTHREAD_CFLAGS $save_CXXFLAGS"
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
14663 $as_echo_n "checking for std::thread... " >&6; }
14664 if ${gdb_cv_cxx_std_thread+:} false
; then :
14665 $as_echo_n "(cached) " >&6
14667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14668 /* end confdefs.h. */
14670 void callback() { }
14674 std::thread t(callback);
14679 if ac_fn_cxx_try_compile
"$LINENO"; then :
14680 gdb_cv_cxx_std_thread
=yes
14682 gdb_cv_cxx_std_thread
=no
14684 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
14687 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
14689 # This check must be here, while LIBS includes any necessary
14690 # threading library.
14691 for ac_func
in pthread_sigmask pthread_setname_np
14693 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14694 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14695 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14696 cat >>confdefs.h
<<_ACEOF
14697 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14705 CXXFLAGS
="$save_CXXFLAGS"
14707 if test "$gdb_cv_cxx_std_thread" = "yes"; then
14709 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
14713 ac_cpp
='$CPP $CPPFLAGS'
14714 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14715 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14716 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
14720 $as_echo_n "checking for sigsetjmp... " >&6; }
14721 if ${gdb_cv_func_sigsetjmp+:} false
; then :
14722 $as_echo_n "(cached) " >&6
14724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14725 /* end confdefs.h. */
14726 #include <setjmp.h>
14731 while (! sigsetjmp (env, 1))
14732 siglongjmp (env, 1);
14738 if ac_fn_c_try_compile
"$LINENO"; then :
14739 gdb_cv_func_sigsetjmp
=yes
14741 gdb_cv_func_sigsetjmp
=no
14744 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
14748 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
14749 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
14751 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
14756 # Check whether --with-intel_pt was given.
14757 if test "${with_intel_pt+set}" = set; then :
14758 withval
=$with_intel_pt;
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
14764 $as_echo_n "checking whether to use intel pt... " >&6; }
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
14766 $as_echo "$with_intel_pt" >&6; }
14768 if test "${with_intel_pt}" = no
; then
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
14770 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
14773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14774 /* end confdefs.h. */
14776 #include <linux/perf_event.h>
14777 #ifndef PERF_ATTR_SIZE_VER5
14782 if ac_fn_c_try_cpp
"$LINENO"; then :
14787 rm -f conftest.err conftest.i conftest.
$ac_ext
14788 if test "$perf_event" != yes; then
14789 if test "$with_intel_pt" = yes; then
14790 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
14793 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
14807 acl_save_prefix
="$prefix"
14808 prefix
="$acl_final_prefix"
14809 acl_save_exec_prefix
="$exec_prefix"
14810 exec_prefix
="$acl_final_exec_prefix"
14812 eval additional_includedir
=\"$includedir\"
14813 eval additional_libdir
=\"$libdir\"
14815 exec_prefix
="$acl_save_exec_prefix"
14816 prefix
="$acl_save_prefix"
14819 # Check whether --with-libipt-prefix was given.
14820 if test "${with_libipt_prefix+set}" = set; then :
14821 withval
=$with_libipt_prefix;
14822 if test "X$withval" = "Xno"; then
14825 if test "X$withval" = "X"; then
14827 acl_save_prefix
="$prefix"
14828 prefix
="$acl_final_prefix"
14829 acl_save_exec_prefix
="$exec_prefix"
14830 exec_prefix
="$acl_final_exec_prefix"
14832 eval additional_includedir
=\"$includedir\"
14833 eval additional_libdir
=\"$libdir\"
14835 exec_prefix
="$acl_save_exec_prefix"
14836 prefix
="$acl_save_prefix"
14839 additional_includedir
="$withval/include"
14840 additional_libdir
="$withval/lib"
14847 # Check whether --with-libipt-type was given.
14848 if test "${with_libipt_type+set}" = set; then :
14849 withval
=$with_libipt_type; with_libipt_type
=$withval
14851 with_libipt_type
=auto
14854 lib_type
=`eval echo \$with_libipt_type`
14861 names_already_handled
=
14862 names_next_round
='ipt '
14863 while test -n "$names_next_round"; do
14864 names_this_round
="$names_next_round"
14866 for name
in $names_this_round; do
14868 for n
in $names_already_handled; do
14869 if test "$n" = "$name"; then
14870 already_handled
=yes
14874 if test -z "$already_handled"; then
14875 names_already_handled
="$names_already_handled $name"
14876 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14877 eval value
=\"\
$HAVE_LIB$uppername\"
14878 if test -n "$value"; then
14879 if test "$value" = yes; then
14880 eval value
=\"\
$LIB$uppername\"
14881 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
14882 eval value
=\"\
$LTLIB$uppername\"
14883 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
14892 if test $use_additional = yes; then
14893 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
14894 found_dir
="$additional_libdir"
14895 found_so
="$additional_libdir/lib$name.$shlibext"
14896 if test -f "$additional_libdir/lib$name.la"; then
14897 found_la
="$additional_libdir/lib$name.la"
14899 elif test x
$lib_type != xshared
; then
14900 if test -f "$additional_libdir/lib$name.$libext"; then
14901 found_dir
="$additional_libdir"
14902 found_a
="$additional_libdir/lib$name.$libext"
14903 if test -f "$additional_libdir/lib$name.la"; then
14904 found_la
="$additional_libdir/lib$name.la"
14909 if test "X$found_dir" = "X"; then
14910 for x
in $LDFLAGS $LTLIBIPT; do
14912 acl_save_prefix
="$prefix"
14913 prefix
="$acl_final_prefix"
14914 acl_save_exec_prefix
="$exec_prefix"
14915 exec_prefix
="$acl_final_exec_prefix"
14917 exec_prefix
="$acl_save_exec_prefix"
14918 prefix
="$acl_save_prefix"
14922 dir
=`echo "X$x" | sed -e 's/^X-L//'`
14923 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
14925 found_so
="$dir/lib$name.$shlibext"
14926 if test -f "$dir/lib$name.la"; then
14927 found_la
="$dir/lib$name.la"
14929 elif test x
$lib_type != xshared
; then
14930 if test -f "$dir/lib$name.$libext"; then
14932 found_a
="$dir/lib$name.$libext"
14933 if test -f "$dir/lib$name.la"; then
14934 found_la
="$dir/lib$name.la"
14940 if test "X$found_dir" != "X"; then
14945 if test "X$found_dir" != "X"; then
14946 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
14947 if test "X$found_so" != "X"; then
14948 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
14949 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14952 for x
in $ltrpathdirs; do
14953 if test "X$x" = "X$found_dir"; then
14958 if test -z "$haveit"; then
14959 ltrpathdirs
="$ltrpathdirs $found_dir"
14961 if test "$hardcode_direct" = yes; then
14962 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14964 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
14965 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14967 for x
in $rpathdirs; do
14968 if test "X$x" = "X$found_dir"; then
14973 if test -z "$haveit"; then
14974 rpathdirs
="$rpathdirs $found_dir"
14978 for x
in $LDFLAGS $LIBIPT; do
14980 acl_save_prefix
="$prefix"
14981 prefix
="$acl_final_prefix"
14982 acl_save_exec_prefix
="$exec_prefix"
14983 exec_prefix
="$acl_final_exec_prefix"
14985 exec_prefix
="$acl_save_exec_prefix"
14986 prefix
="$acl_save_prefix"
14988 if test "X$x" = "X-L$found_dir"; then
14993 if test -z "$haveit"; then
14994 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
14996 if test "$hardcode_minus_L" != no
; then
14997 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14999 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
15005 if test "X$found_a" != "X"; then
15006 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
15008 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
15011 additional_includedir
=
15012 case "$found_dir" in
15014 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15015 additional_includedir
="$basedir/include"
15018 if test "X$additional_includedir" != "X"; then
15019 if test "X$additional_includedir" != "X/usr/include"; then
15021 if test "X$additional_includedir" = "X/usr/local/include"; then
15022 if test -n "$GCC"; then
15024 linux
*) haveit
=yes;;
15028 if test -z "$haveit"; then
15029 for x
in $CPPFLAGS $INCIPT; do
15031 acl_save_prefix
="$prefix"
15032 prefix
="$acl_final_prefix"
15033 acl_save_exec_prefix
="$exec_prefix"
15034 exec_prefix
="$acl_final_exec_prefix"
15036 exec_prefix
="$acl_save_exec_prefix"
15037 prefix
="$acl_save_prefix"
15039 if test "X$x" = "X-I$additional_includedir"; then
15044 if test -z "$haveit"; then
15045 if test -d "$additional_includedir"; then
15046 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
15052 if test -n "$found_la"; then
15053 save_libdir
="$libdir"
15054 case "$found_la" in
15055 */* |
*\\*) .
"$found_la" ;;
15056 *) .
"./$found_la" ;;
15058 libdir
="$save_libdir"
15059 for dep
in $dependency_libs; do
15062 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
15063 if test "X$additional_libdir" != "X/usr/lib"; then
15065 if test "X$additional_libdir" = "X/usr/local/lib"; then
15066 if test -n "$GCC"; then
15068 linux
*) haveit
=yes;;
15072 if test -z "$haveit"; then
15074 for x
in $LDFLAGS $LIBIPT; do
15076 acl_save_prefix
="$prefix"
15077 prefix
="$acl_final_prefix"
15078 acl_save_exec_prefix
="$exec_prefix"
15079 exec_prefix
="$acl_final_exec_prefix"
15081 exec_prefix
="$acl_save_exec_prefix"
15082 prefix
="$acl_save_prefix"
15084 if test "X$x" = "X-L$additional_libdir"; then
15089 if test -z "$haveit"; then
15090 if test -d "$additional_libdir"; then
15091 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
15095 for x
in $LDFLAGS $LTLIBIPT; do
15097 acl_save_prefix
="$prefix"
15098 prefix
="$acl_final_prefix"
15099 acl_save_exec_prefix
="$exec_prefix"
15100 exec_prefix
="$acl_final_exec_prefix"
15102 exec_prefix
="$acl_save_exec_prefix"
15103 prefix
="$acl_save_prefix"
15105 if test "X$x" = "X-L$additional_libdir"; then
15110 if test -z "$haveit"; then
15111 if test -d "$additional_libdir"; then
15112 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
15119 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
15120 if test "$enable_rpath" != no
; then
15122 for x
in $rpathdirs; do
15123 if test "X$x" = "X$dir"; then
15128 if test -z "$haveit"; then
15129 rpathdirs
="$rpathdirs $dir"
15132 for x
in $ltrpathdirs; do
15133 if test "X$x" = "X$dir"; then
15138 if test -z "$haveit"; then
15139 ltrpathdirs
="$ltrpathdirs $dir"
15144 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15147 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15150 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
15151 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
15157 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
15158 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
15159 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
15161 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
15162 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
15169 if test "X$rpathdirs" != "X"; then
15170 if test -n "$hardcode_libdir_separator"; then
15172 for found_dir
in $rpathdirs; do
15173 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15175 acl_save_libdir
="$libdir"
15177 eval flag
=\"$hardcode_libdir_flag_spec\"
15178 libdir
="$acl_save_libdir"
15179 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
15181 for found_dir
in $rpathdirs; do
15182 acl_save_libdir
="$libdir"
15183 libdir
="$found_dir"
15184 eval flag
=\"$hardcode_libdir_flag_spec\"
15185 libdir
="$acl_save_libdir"
15186 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
15190 if test "X$ltrpathdirs" != "X"; then
15191 for found_dir
in $ltrpathdirs; do
15192 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
15197 ac_save_CPPFLAGS
="$CPPFLAGS"
15199 for element
in $INCIPT; do
15201 for x
in $CPPFLAGS; do
15203 acl_save_prefix
="$prefix"
15204 prefix
="$acl_final_prefix"
15205 acl_save_exec_prefix
="$exec_prefix"
15206 exec_prefix
="$acl_final_exec_prefix"
15208 exec_prefix
="$acl_save_exec_prefix"
15209 prefix
="$acl_save_prefix"
15211 if test "X$x" = "X$element"; then
15216 if test -z "$haveit"; then
15217 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
15223 $as_echo_n "checking for libipt... " >&6; }
15224 if ${ac_cv_libipt+:} false
; then :
15225 $as_echo_n "(cached) " >&6
15228 ac_save_LIBS
="$LIBS"
15229 LIBS
="$LIBS $LIBIPT"
15230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15231 /* end confdefs.h. */
15232 #include "intel-pt.h"
15236 pt_insn_alloc_decoder (0);
15241 if ac_fn_c_try_link
"$LINENO"; then :
15246 rm -f core conftest.err conftest.
$ac_objext \
15247 conftest
$ac_exeext conftest.
$ac_ext
15248 LIBS
="$ac_save_LIBS"
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
15252 $as_echo "$ac_cv_libipt" >&6; }
15253 if test "$ac_cv_libipt" = yes; then
15256 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
15259 $as_echo_n "checking how to link with libipt... " >&6; }
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
15261 $as_echo "$LIBIPT" >&6; }
15264 CPPFLAGS
="$ac_save_CPPFLAGS"
15274 if test "$HAVE_LIBIPT" != yes; then
15275 if test "$with_intel_pt" = yes; then
15276 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
15279 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
15283 LIBS
="$LIBS $LIBIPT"
15284 for ac_func
in pt_insn_event
15286 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
15287 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
15288 cat >>confdefs.h
<<_ACEOF
15289 #define HAVE_PT_INSN_EVENT 1
15295 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
15297 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
15299 cat >>confdefs.h
<<_ACEOF
15300 #define HAVE_STRUCT_PT_INSN_ENABLED 1
15305 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
15307 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
15309 cat >>confdefs.h
<<_ACEOF
15310 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
15321 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
15323 for ac_header
in sys
/procfs.h
15325 ac_fn_c_check_header_mongrel
"$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
15326 if test "x$ac_cv_header_sys_procfs_h" = xyes
; then :
15327 cat >>confdefs.h
<<_ACEOF
15328 #define HAVE_SYS_PROCFS_H 1
15335 if test "$ac_cv_header_sys_procfs_h" = yes; then
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
15338 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
15339 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
15340 $as_echo_n "(cached) " >&6
15342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15343 /* end confdefs.h. */
15346 #include <sys/procfs.h>
15355 if ac_fn_c_try_compile
"$LINENO"; then :
15356 bfd_cv_have_sys_procfs_type_gregset_t
=yes
15358 bfd_cv_have_sys_procfs_type_gregset_t
=no
15361 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15364 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
15366 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
15370 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
15374 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
15375 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
15376 $as_echo_n "(cached) " >&6
15378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15379 /* end confdefs.h. */
15382 #include <sys/procfs.h>
15391 if ac_fn_c_try_compile
"$LINENO"; then :
15392 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
15394 bfd_cv_have_sys_procfs_type_fpregset_t
=no
15397 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15400 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
15402 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
15406 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
15410 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
15411 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
15412 $as_echo_n "(cached) " >&6
15414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15415 /* end confdefs.h. */
15418 #include <sys/procfs.h>
15427 if ac_fn_c_try_compile
"$LINENO"; then :
15428 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
15430 bfd_cv_have_sys_procfs_type_prgregset_t
=no
15433 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15436 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
15438 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
15442 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
15446 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
15447 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
15448 $as_echo_n "(cached) " >&6
15450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15451 /* end confdefs.h. */
15454 #include <sys/procfs.h>
15463 if ac_fn_c_try_compile
"$LINENO"; then :
15464 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
15466 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
15469 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15472 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
15474 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
15478 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
15482 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
15483 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
15484 $as_echo_n "(cached) " >&6
15486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15487 /* end confdefs.h. */
15490 #include <sys/procfs.h>
15499 if ac_fn_c_try_compile
"$LINENO"; then :
15500 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
15502 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
15505 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15508 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
15510 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
15513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
15514 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
15518 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
15519 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
15520 $as_echo_n "(cached) " >&6
15522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15523 /* end confdefs.h. */
15526 #include <sys/procfs.h>
15535 if ac_fn_c_try_compile
"$LINENO"; then :
15536 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
15538 bfd_cv_have_sys_procfs_type_lwpid_t
=no
15541 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15544 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
15546 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
15549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
15550 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
15554 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
15555 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
15556 $as_echo_n "(cached) " >&6
15558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15559 /* end confdefs.h. */
15562 #include <sys/procfs.h>
15571 if ac_fn_c_try_compile
"$LINENO"; then :
15572 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
15574 bfd_cv_have_sys_procfs_type_psaddr_t
=no
15577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15580 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
15582 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
15586 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
15590 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
15591 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
15592 $as_echo_n "(cached) " >&6
15594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15595 /* end confdefs.h. */
15598 #include <sys/procfs.h>
15602 elf_fpregset_t avar
15607 if ac_fn_c_try_compile
"$LINENO"; then :
15608 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
15610 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
15613 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15616 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
15618 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
15622 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
15627 # Check the return and argument types of ptrace.
15630 for ac_header
in sys
/ptrace.h ptrace.h
15632 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15633 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15634 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
15635 cat >>confdefs.h
<<_ACEOF
15636 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15644 gdb_ptrace_headers
='
15645 #include <sys/types.h>
15646 #if HAVE_SYS_PTRACE_H
15647 # include <sys/ptrace.h>
15650 # include <unistd.h>
15654 # Check return type. Varargs (used on GNU/Linux) conflict with the
15655 # empty argument list, so check for that explicitly.
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
15657 $as_echo_n "checking return type of ptrace... " >&6; }
15658 if ${gdb_cv_func_ptrace_ret+:} false
; then :
15659 $as_echo_n "(cached) " >&6
15661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15662 /* end confdefs.h. */
15663 Â $gdb_ptrace_headers
15667 extern long ptrace (enum __ptrace_request, ...);
15673 if ac_fn_c_try_compile
"$LINENO"; then :
15674 gdb_cv_func_ptrace_ret
='long'
15676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15677 /* end confdefs.h. */
15678 $gdb_ptrace_headers
15682 extern int ptrace ();
15688 if ac_fn_c_try_compile
"$LINENO"; then :
15689 gdb_cv_func_ptrace_ret
='int'
15691 gdb_cv_func_ptrace_ret
='long'
15694 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15697 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
15701 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
15704 cat >>confdefs.h
<<_ACEOF
15705 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
15709 # Check argument types.
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
15711 $as_echo_n "checking types of arguments for ptrace... " >&6; }
15712 if ${gdb_cv_func_ptrace_args+:} false
; then :
15713 $as_echo_n "(cached) " >&6
15715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15716 /* end confdefs.h. */
15717 $gdb_ptrace_headers
15721 extern long ptrace (enum __ptrace_request, ...);
15727 if ac_fn_c_try_compile
"$LINENO"; then :
15728 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
15730 for gdb_arg1
in 'int' 'long'; do
15731 for gdb_arg2
in 'pid_t' 'int' 'long'; do
15732 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
15733 for gdb_arg4
in 'int' 'long' 'void *'; do
15734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15735 /* end confdefs.h. */
15736 $gdb_ptrace_headers
15740 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
15746 if ac_fn_c_try_compile
"$LINENO"; then :
15747 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
15751 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15753 for gdb_arg5
in 'int *' 'int' 'long'; do
15754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15755 /* end confdefs.h. */
15756 $gdb_ptrace_headers
15760 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
15766 if ac_fn_c_try_compile
"$LINENO"; then :
15767 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
15771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15777 # Provide a safe default value.
15778 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
15781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
15785 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
15787 ac_save_IFS
=$IFS; IFS
=','
15788 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
15792 cat >>confdefs.h
<<_ACEOF
15793 #define PTRACE_TYPE_ARG1 $1
15797 cat >>confdefs.h
<<_ACEOF
15798 #define PTRACE_TYPE_ARG3 $3
15802 cat >>confdefs.h
<<_ACEOF
15803 #define PTRACE_TYPE_ARG4 $4
15806 if test -n "$5"; then
15808 cat >>confdefs.h
<<_ACEOF
15809 #define PTRACE_TYPE_ARG5 $5
15815 if test "$cross_compiling" = no
; then
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
15817 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
15818 if ${ac_cv_func_setpgrp_void+:} false
; then :
15819 $as_echo_n "(cached) " >&6
15821 if test "$cross_compiling" = yes; then :
15822 as_fn_error $?
"cannot check setpgrp when cross compiling" "$LINENO" 5
15824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15825 /* end confdefs.h. */
15826 $ac_includes_default
15830 /* If this system has a BSD-style setpgrp which takes arguments,
15831 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
15832 exit successfully. */
15833 return setpgrp (1,1) != -1;
15838 if ac_fn_c_try_run
"$LINENO"; then :
15839 ac_cv_func_setpgrp_void
=no
15841 ac_cv_func_setpgrp_void
=yes
15843 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15844 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
15849 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
15850 if test $ac_cv_func_setpgrp_void = yes; then
15852 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
15858 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
15859 if ${ac_cv_func_setpgrp_void+:} false
; then :
15860 $as_echo_n "(cached) " >&6
15862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15863 /* end confdefs.h. */
15864 #include <unistd.h>
15868 if (setpgrp(1,1) == -1)
15877 if ac_fn_c_try_compile
"$LINENO"; then :
15878 ac_cv_func_setpgrp_void
=no
15880 ac_cv_func_setpgrp_void
=yes
15883 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
15887 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
15888 if test "$ac_cv_func_setpgrp_void" = yes; then
15889 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
15894 # Assume we'll default to using the included libiberty regex.
15895 gdb_use_included_regex
=yes
15897 # However, if the system regex is GNU regex, then default to *not*
15898 # using the included regex.
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
15900 $as_echo_n "checking for GNU regex... " >&6; }
15901 if ${gdb_cv_have_gnu_regex+:} false
; then :
15902 $as_echo_n "(cached) " >&6
15904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15905 /* end confdefs.h. */
15906 #include <gnu-versions.h>
15910 #define REGEX_INTERFACE_VERSION 1
15911 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
15912 # error "Version mismatch"
15919 if ac_fn_c_try_compile
"$LINENO"; then :
15920 gdb_cv_have_gnu_regex
=yes
15922 gdb_cv_have_gnu_regex
=no
15925 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
15929 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
15930 if test "$gdb_cv_have_gnu_regex" = yes; then
15931 gdb_use_included_regex
=no
15935 # Check whether --with-included-regex was given.
15936 if test "${with_included_regex+set}" = set; then :
15937 withval
=$with_included_regex; gdb_with_regex
=$withval
15939 gdb_with_regex
=$gdb_use_included_regex
15942 if test "$gdb_with_regex" = yes; then
15944 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
15948 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
15949 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
15950 #include <sys/proc.h>
15953 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes
; then :
15955 cat >>confdefs.h
<<_ACEOF
15956 #define HAVE_STRUCT_THREAD_TD_PCB 1
15963 # See if <sys/lwp.h> defines `struct lwp`.
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
15965 $as_echo_n "checking for struct lwp... " >&6; }
15966 if ${gdb_cv_struct_lwp+:} false
; then :
15967 $as_echo_n "(cached) " >&6
15969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15970 /* end confdefs.h. */
15971 #include <sys/param.h>
15973 #include <sys/lwp.h>
15983 if ac_fn_c_try_compile
"$LINENO"; then :
15984 gdb_cv_struct_lwp
=yes
15986 gdb_cv_struct_lwp
=no
15989 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
15993 $as_echo "$gdb_cv_struct_lwp" >&6; }
15994 if test "$gdb_cv_struct_lwp" = yes; then
15996 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
16000 # See if <machine/reg.h> degines `struct reg'.
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
16002 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
16003 if ${gdb_cv_struct_reg+:} false
; then :
16004 $as_echo_n "(cached) " >&6
16006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16007 /* end confdefs.h. */
16008 #include <sys/types.h>
16009 #include <machine/reg.h>
16019 if ac_fn_c_try_compile
"$LINENO"; then :
16020 gdb_cv_struct_reg
=yes
16022 gdb_cv_struct_reg
=no
16025 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
16029 $as_echo "$gdb_cv_struct_reg" >&6; }
16030 if test "$gdb_cv_struct_reg" = yes; then
16032 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
16036 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
16037 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
16038 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
16039 #include <machine/reg.h>
16041 if test "x$ac_cv_member_struct_reg_r_fs" = xyes
; then :
16043 cat >>confdefs.h
<<_ACEOF
16044 #define HAVE_STRUCT_REG_R_FS 1
16049 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
16050 #include <machine/reg.h>
16052 if test "x$ac_cv_member_struct_reg_r_gs" = xyes
; then :
16054 cat >>confdefs.h
<<_ACEOF
16055 #define HAVE_STRUCT_REG_R_GS 1
16062 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
16064 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
16065 if ${gdb_cv_have_ptrace_getregs+:} false
; then :
16066 $as_echo_n "(cached) " >&6
16068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16069 /* end confdefs.h. */
16070 #include <sys/ptrace.h>
16079 if ac_fn_c_try_compile
"$LINENO"; then :
16080 gdb_cv_have_ptrace_getregs
=yes
16082 gdb_cv_have_ptrace_getregs
=no
16085 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
16090 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
16091 if test "$gdb_cv_have_ptrace_getregs" = yes; then
16093 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
16097 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
16099 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
16100 if ${gdb_cv_have_ptrace_getfpxregs+:} false
; then :
16101 $as_echo_n "(cached) " >&6
16103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16104 /* end confdefs.h. */
16105 #include <sys/ptrace.h>
16114 if ac_fn_c_try_compile
"$LINENO"; then :
16115 gdb_cv_have_ptrace_getfpxregs
=yes
16117 gdb_cv_have_ptrace_getfpxregs
=no
16120 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
16125 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
16126 if test "$gdb_cv_have_ptrace_getfpxregs" = yes; then
16128 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
16132 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
16134 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
16135 if ${gdb_cv_have_pt_getdbregs+:} false
; then :
16136 $as_echo_n "(cached) " >&6
16138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16139 /* end confdefs.h. */
16140 #include <sys/types.h>
16141 #include <sys/ptrace.h>
16151 if ac_fn_c_try_compile
"$LINENO"; then :
16152 gdb_cv_have_pt_getdbregs
=yes
16154 gdb_cv_have_pt_getdbregs
=no
16157 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
16162 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
16163 if test "$gdb_cv_have_pt_getdbregs" = yes; then
16165 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
16169 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
16171 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
16172 if ${gdb_cv_have_pt_getxmmregs+:} false
; then :
16173 $as_echo_n "(cached) " >&6
16175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16176 /* end confdefs.h. */
16177 #include <sys/types.h>
16178 #include <sys/ptrace.h>
16188 if ac_fn_c_try_compile
"$LINENO"; then :
16189 gdb_cv_have_pt_getxmmregs
=yes
16191 gdb_cv_have_pt_getxmmregs
=no
16194 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
16199 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
16200 if test "$gdb_cv_have_pt_getxmmregs" = yes; then
16202 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
16206 # See if <sys/ptrace.h> supports LWP names on FreeBSD
16207 # Older FreeBSD versions don't have the pl_tdname member of
16208 # `struct ptrace_lwpinfo'.
16209 ac_fn_c_check_member
"$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
16211 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes
; then :
16213 cat >>confdefs.h
<<_ACEOF
16214 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
16221 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
16222 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
16224 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>
16226 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes
; then :
16228 cat >>confdefs.h
<<_ACEOF
16229 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
16236 # Check if the compiler supports the `long long' type.
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
16239 $as_echo_n "checking for long long support in compiler... " >&6; }
16240 if ${gdb_cv_c_long_long+:} false
; then :
16241 $as_echo_n "(cached) " >&6
16243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16244 /* end confdefs.h. */
16245 extern long long foo;
16249 switch (foo & 2) { case 0: return 1; }
16254 if ac_fn_c_try_compile
"$LINENO"; then :
16255 gdb_cv_c_long_long
=yes
16257 gdb_cv_c_long_long
=no
16259 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
16262 $as_echo "$gdb_cv_c_long_long" >&6; }
16263 if test "$gdb_cv_c_long_long" != yes; then
16264 # libdecnumber requires long long.
16265 as_fn_error $?
"Compiler must support long long for GDB." "$LINENO" 5
16268 # Check if the compiler and runtime support printing long longs.
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
16271 $as_echo_n "checking for long long support in printf... " >&6; }
16272 if ${gdb_cv_printf_has_long_long+:} false
; then :
16273 $as_echo_n "(cached) " >&6
16275 if test "$cross_compiling" = yes; then :
16276 gdb_cv_printf_has_long_long
=no
16278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16279 /* end confdefs.h. */
16280 $ac_includes_default
16286 l = (l << 16) + 0x0123;
16287 l = (l << 16) + 0x4567;
16288 l = (l << 16) + 0x89ab;
16289 l = (l << 16) + 0xcdef;
16290 sprintf (buf, "0x%016llx", l);
16291 return (strcmp ("0x0123456789abcdef", buf));
16296 if ac_fn_c_try_run
"$LINENO"; then :
16297 gdb_cv_printf_has_long_long
=yes
16299 gdb_cv_printf_has_long_long
=no
16301 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16302 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
16307 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
16308 if test "$gdb_cv_printf_has_long_long" = yes; then
16310 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
16314 # Check if the compiler and runtime support printing decfloats.
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
16317 $as_echo_n "checking for decfloat support in printf... " >&6; }
16318 if ${gdb_cv_printf_has_decfloat+:} false
; then :
16319 $as_echo_n "(cached) " >&6
16321 if test "$cross_compiling" = yes; then :
16322 gdb_cv_printf_has_decfloat
=no
16324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16325 /* end confdefs.h. */
16326 $ac_includes_default
16331 _Decimal32 d32 = 1.2345df;
16332 _Decimal64 d64 = 1.2345dd;
16333 _Decimal128 d128 = 1.2345dl;
16334 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
16335 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
16340 if ac_fn_c_try_run
"$LINENO"; then :
16341 gdb_cv_printf_has_decfloat
=yes
16343 gdb_cv_printf_has_decfloat
=no
16345 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16346 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
16351 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
16352 if test "$gdb_cv_printf_has_decfloat" = yes; then
16354 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
16358 # Check if the compiler supports the `long double' type. We can't use
16359 # AC_C_LONG_DOUBLE because that one does additional checks on the
16360 # constants defined in <float.h> that fail on some systems,
16361 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
16363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
16364 $as_echo_n "checking for long double support in compiler... " >&6; }
16365 if ${gdb_cv_c_long_double+:} false
; then :
16366 $as_echo_n "(cached) " >&6
16368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16369 /* end confdefs.h. */
16372 if ac_fn_c_try_compile
"$LINENO"; then :
16373 gdb_cv_c_long_double
=yes
16375 gdb_cv_c_long_double
=no
16377 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
16380 $as_echo "$gdb_cv_c_long_double" >&6; }
16381 if test "$gdb_cv_c_long_double" = yes; then
16383 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
16387 # Check if the compiler and runtime support printing long doubles.
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
16390 $as_echo_n "checking for long double support in printf... " >&6; }
16391 if ${gdb_cv_printf_has_long_double+:} false
; then :
16392 $as_echo_n "(cached) " >&6
16394 if test "$cross_compiling" = yes; then :
16395 gdb_cv_printf_has_long_double
=no
16397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16398 /* end confdefs.h. */
16399 $ac_includes_default
16404 long double f = 3.141592653;
16405 sprintf (buf, "%Lg", f);
16406 return (strncmp ("3.14159", buf, 7));
16411 if ac_fn_c_try_run
"$LINENO"; then :
16412 gdb_cv_printf_has_long_double
=yes
16414 gdb_cv_printf_has_long_double
=no
16416 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16417 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
16422 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
16423 if test "$gdb_cv_printf_has_long_double" = yes; then
16425 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
16429 # Check if the compiler and runtime support scanning long doubles.
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
16432 $as_echo_n "checking for long double support in scanf... " >&6; }
16433 if ${gdb_cv_scanf_has_long_double+:} false
; then :
16434 $as_echo_n "(cached) " >&6
16436 if test "$cross_compiling" = yes; then :
16437 gdb_cv_scanf_has_long_double
=no
16439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16440 /* end confdefs.h. */
16445 char *buf = "3.141592653";
16447 sscanf (buf, "%Lg", &f);
16448 return !(f > 3.14159 && f < 3.14160);
16453 if ac_fn_c_try_run
"$LINENO"; then :
16454 gdb_cv_scanf_has_long_double
=yes
16456 gdb_cv_scanf_has_long_double
=no
16458 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16459 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
16464 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
16465 if test "$gdb_cv_scanf_has_long_double" = yes; then
16467 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
16474 $as_echo_n "checking for -bbigtoc option... " >&6; }
16475 if ${gdb_cv_bigtoc+:} false
; then :
16476 $as_echo_n "(cached) " >&6
16478 SAVE_LDFLAGS
=$LDFLAGS
16481 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
16482 *) gdb_cv_bigtoc
=-bbigtoc ;;
16485 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
16486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16487 /* end confdefs.h. */
16497 if ac_fn_c_try_link
"$LINENO"; then :
16503 rm -f core conftest.err conftest.
$ac_objext \
16504 conftest
$ac_exeext conftest.
$ac_ext
16505 LDFLAGS
="${SAVE_LDFLAGS}"
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
16509 $as_echo "$gdb_cv_bigtoc" >&6; }
16510 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
16515 $as_echo_n "checking for the dynamic export flag... " >&6; }
16517 if test "${gdb_native}" = yes; then
16518 # The dynamically loaded libthread_db needs access to symbols in the gdb
16519 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
16520 # may not be supported there.
16521 old_LDFLAGS
="$LDFLAGS"
16522 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
16523 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
16524 LDFLAGS
="$LDFLAGS $RDYNAMIC"
16525 if test "${have_libpython}" = no
; then
16526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16527 /* end confdefs.h. */
16537 if ac_fn_c_try_link
"$LINENO"; then :
16540 rm -f core conftest.err conftest.
$ac_objext \
16541 conftest
$ac_exeext conftest.
$ac_ext
16543 # Workaround http://bugs.python.org/issue4434 where static
16544 # libpythonX.Y.a would get its symbols required for
16545 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
16546 # Problem does not happen for the recommended libpythonX.Y.so linkage.
16548 # Note the workaround for Python
16549 # http://bugs.python.org/issue10112 earlier has removed
16550 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
16551 # here too, as otherwise it'd make this -Wl,--dynamic-list test
16553 old_CFLAGS
="$CFLAGS"
16554 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
16556 LIBS
="$LIBS $PYTHON_LIBS"
16557 old_CPPFLAGS
="$CPPFLAGS"
16558 CPPFLAGS
="$CPPFLAGS $PYTHON_CPPFLAGS"
16559 if test "$cross_compiling" = yes; then :
16562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16563 /* end confdefs.h. */
16564 #include "Python.h"
16570 err = PyRun_SimpleString ("import ctypes\n");
16572 return err == 0 ? 0 : 1;
16577 if ac_fn_c_try_run
"$LINENO"; then :
16580 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16581 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16585 CFLAGS
="$old_CFLAGS"
16586 CPPFLAGS
="$old_CPPFLAGS"
16588 LDFLAGS
="$old_LDFLAGS"
16590 if $dynamic_list; then
16591 found
="-Wl,--dynamic-list"
16592 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
16595 RDYNAMIC
="-rdynamic"
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
16599 $as_echo "$found" >&6; }
16602 if test "${build}" = "${host}" -a "${host}" = "${target}" ; then
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
16606 $as_echo_n "checking for AiX thread debugging library... " >&6; }
16607 if ${gdb_cv_have_aix_thread_debug+:} false
; then :
16608 $as_echo_n "(cached) " >&6
16610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16611 /* end confdefs.h. */
16612 #include <sys/pthdebug.h>
16616 #ifndef PTHDB_VERSION_3
16624 if ac_fn_c_try_compile
"$LINENO"; then :
16625 gdb_cv_have_aix_thread_debug
=yes
16627 gdb_cv_have_aix_thread_debug
=no
16630 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
16635 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
16636 if test "$gdb_cv_have_aix_thread_debug" = yes; then
16637 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
16638 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
16639 LIBS
="$LIBS -lpthdebug"
16641 # Older versions of AIX do not provide the declaration for
16642 # the getthrds function (it appears that it was introduced
16644 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
16646 if test "x$ac_cv_have_decl_getthrds" = xyes
; then :
16652 cat >>confdefs.h
<<_ACEOF
16653 #define HAVE_DECL_GETTHRDS $ac_have_decl
16662 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
16663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
16664 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
16665 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false
; then :
16666 $as_echo_n "(cached) " >&6
16668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16669 /* end confdefs.h. */
16670 #include <thread_db.h>
16674 int i = TD_NOTALLOC;
16680 if ac_fn_c_try_compile
"$LINENO"; then :
16681 gdb_cv_thread_db_h_has_td_notalloc
=yes
16683 gdb_cv_thread_db_h_has_td_notalloc
=no
16686 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
16690 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
16693 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
16694 if ${gdb_cv_thread_db_h_has_td_version+:} false
; then :
16695 $as_echo_n "(cached) " >&6
16697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16698 /* end confdefs.h. */
16699 #include <thread_db.h>
16703 int i = TD_VERSION;
16709 if ac_fn_c_try_compile
"$LINENO"; then :
16710 gdb_cv_thread_db_h_has_td_version
=yes
16712 gdb_cv_thread_db_h_has_td_version
=no
16715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
16719 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
16722 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
16723 if ${gdb_cv_thread_db_h_has_td_notls+:} false
; then :
16724 $as_echo_n "(cached) " >&6
16726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16727 /* end confdefs.h. */
16728 #include <thread_db.h>
16738 if ac_fn_c_try_compile
"$LINENO"; then :
16739 gdb_cv_thread_db_h_has_td_notls
=yes
16741 gdb_cv_thread_db_h_has_td_notls
=no
16744 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
16748 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
16750 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
16752 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
16755 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
16757 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
16760 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
16762 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
16775 cat >>confdefs.h
<<_ACEOF
16776 #define GDBINIT "$gdbinit"
16781 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
16782 # except that the argument to --with-sysroot is optional.
16783 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
16784 if test "x$with_sysroot" = xyes
; then
16785 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
16788 # Check whether --with-sysroot was given.
16789 if test "${with_sysroot+set}" = set; then :
16790 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
16792 TARGET_SYSTEM_ROOT
=
16796 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16797 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16798 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
16799 ac_define_dir
=`eval echo $ac_define_dir`
16801 cat >>confdefs.h
<<_ACEOF
16802 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
16808 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16809 if test "x$prefix" = xNONE
; then
16810 test_prefix
=/usr
/local
16812 test_prefix
=$prefix
16815 test_prefix
=$exec_prefix
16818 case ${ac_define_dir} in
16819 "${test_prefix}"|
"${test_prefix}/"*|\
16820 '${exec_prefix}'|
'${exec_prefix}/'*)
16825 cat >>confdefs.h
<<_ACEOF
16826 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
16833 # Check whether --with-system-gdbinit was given.
16834 if test "${with_system_gdbinit+set}" = set; then :
16835 withval
=$with_system_gdbinit;
16836 SYSTEM_GDBINIT
=$withval
16842 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16843 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16844 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
16845 ac_define_dir
=`eval echo $ac_define_dir`
16847 cat >>confdefs.h
<<_ACEOF
16848 #define SYSTEM_GDBINIT "$ac_define_dir"
16854 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16855 if test "x$prefix" = xNONE
; then
16856 test_prefix
=/usr
/local
16858 test_prefix
=$prefix
16861 test_prefix
=$exec_prefix
16864 case ${ac_define_dir} in
16865 "${test_prefix}"|
"${test_prefix}/"*|\
16866 '${exec_prefix}'|
'${exec_prefix}/'*)
16871 cat >>confdefs.h
<<_ACEOF
16872 #define SYSTEM_GDBINIT_RELOCATABLE $value
16879 # Check whether --with-system-gdbinit-dir was given.
16880 if test "${with_system_gdbinit_dir+set}" = set; then :
16881 withval
=$with_system_gdbinit_dir;
16882 SYSTEM_GDBINIT_DIR
=$withval
16884 SYSTEM_GDBINIT_DIR
=
16888 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16889 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16890 ac_define_dir
=`eval echo $SYSTEM_GDBINIT_DIR`
16891 ac_define_dir
=`eval echo $ac_define_dir`
16893 cat >>confdefs.h
<<_ACEOF
16894 #define SYSTEM_GDBINIT_DIR "$ac_define_dir"
16900 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16901 if test "x$prefix" = xNONE
; then
16902 test_prefix
=/usr
/local
16904 test_prefix
=$prefix
16907 test_prefix
=$exec_prefix
16910 case ${ac_define_dir} in
16911 "${test_prefix}"|
"${test_prefix}/"*|\
16912 '${exec_prefix}'|
'${exec_prefix}/'*)
16917 cat >>confdefs.h
<<_ACEOF
16918 #define SYSTEM_GDBINIT_DIR_RELOCATABLE $value
16925 # Check whether --enable-werror was given.
16926 if test "${enable_werror+set}" = set; then :
16927 enableval
=$enable_werror; case "${enableval}" in
16928 yes | y
) ERROR_ON_WARNING
="yes" ;;
16929 no | n
) ERROR_ON_WARNING
="no" ;;
16930 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16935 # Enable -Werror by default when using gcc. Turn it off for releases.
16936 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
16937 ERROR_ON_WARNING
=yes
16941 if test "${ERROR_ON_WARNING}" = yes ; then
16942 WERROR_CFLAGS
="-Werror"
16945 # The options we'll try to enable.
16946 build_warnings
="-Wall -Wpointer-arith \
16947 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
16948 -Wno-switch -Wno-char-subscripts \
16949 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
16950 -Wno-sign-compare -Wno-error=maybe-uninitialized \
16951 -Wno-mismatched-tags \
16952 -Wno-error=deprecated-register \
16953 -Wsuggest-override \
16954 -Wimplicit-fallthrough=3 \
16955 -Wduplicated-cond \
16957 -Wdeprecated-copy \
16958 -Wdeprecated-copy-dtor \
16960 -Wmissing-declarations \
16961 -Wmissing-prototypes \
16962 -Wstrict-null-sentinel \
16967 # Enable -Wno-format by default when using gcc on mingw since many
16968 # GCC versions complain about %I64.
16969 build_warnings
="$build_warnings -Wno-format" ;;
16971 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
16972 # doesn't understand.
16973 build_warnings
="$build_warnings -Wno-unknown-pragmas"
16974 # Solaris 11 <unistd.h> marks vfork deprecated.
16975 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
16977 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
16978 # but there's a special case for this below.
16979 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
16982 # Check whether --enable-build-warnings was given.
16983 if test "${enable_build_warnings+set}" = set; then :
16984 enableval
=$enable_build_warnings; case "${enableval}" in
16986 no
) build_warnings
="-w";;
16987 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16988 build_warnings
="${build_warnings} ${t}";;
16989 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16990 build_warnings
="${t} ${build_warnings}";;
16991 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16993 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
16994 echo "Setting compiler warning flags = $build_warnings" 6>&1
16997 # Check whether --enable-gdb-build-warnings was given.
16998 if test "${enable_gdb_build_warnings+set}" = set; then :
16999 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
17001 no
) build_warnings
="-w";;
17002 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
17003 build_warnings
="${build_warnings} ${t}";;
17004 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
17005 build_warnings
="${t} ${build_warnings}";;
17006 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
17008 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
17009 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
17013 # The set of warnings supported by a C++ compiler is not the same as
17014 # of the C compiler.
17016 ac_cpp
='$CXXCPP $CPPFLAGS'
17017 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17018 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17019 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
17023 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
17026 $as_echo_n "checking compiler warning flags... " >&6; }
17027 # Separate out the -Werror flag as some files just cannot be
17028 # compiled with it enabled.
17029 for w
in ${build_warnings}; do
17030 # GCC does not complain about -Wno-unknown-warning. Invert
17031 # and test -Wunknown-warning instead.
17034 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
17035 -Wformat-nonliteral)
17036 # gcc requires -Wformat before -Wformat-nonliteral
17037 # will work, so stick them together.
17046 -Werr*) WERROR_CFLAGS
=-Werror ;;
17048 # Check whether GCC accepts it.
17049 saved_CFLAGS
="$CFLAGS"
17050 CFLAGS
="$CFLAGS -Werror $wtest"
17051 saved_CXXFLAGS
="$CXXFLAGS"
17052 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
17053 if test "x$w" = "x-Wunused-variable"; then
17054 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
17055 # fixed in GCC 4.9. This test is derived from the gdb
17056 # source code that triggered this bug in GCC.
17057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17058 /* end confdefs.h. */
17059 struct scoped_restore_base {};
17060 struct scoped_restore_tmpl : public scoped_restore_base {
17061 ~scoped_restore_tmpl() {}
17066 const scoped_restore_base &b = scoped_restore_tmpl();
17072 if ac_fn_cxx_try_compile
"$LINENO"; then :
17073 WARN_CFLAGS
="${WARN_CFLAGS} $w"
17075 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17078 /* end confdefs.h. */
17088 if ac_fn_cxx_try_compile
"$LINENO"; then :
17089 WARN_CFLAGS
="${WARN_CFLAGS} $w"
17091 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17093 CFLAGS
="$saved_CFLAGS"
17094 CXXFLAGS
="$saved_CXXFLAGS"
17097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
17098 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
17104 ac_cpp='$CPP $CPPFLAGS'
17105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17111 # Check whether --enable-ubsan was given.
17112 if test "${enable_ubsan+set}" = set; then :
17113 enableval=$enable_ubsan;
17118 if test "x
$enable_ubsan" = xauto; then
17119 if $development; then
17124 ac_cpp='$CXXCPP $CPPFLAGS'
17125 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17126 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17127 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17129 if test "x
$enable_ubsan" = xyes; then
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
-fsanitize=undefined is accepted
" >&5
17131 $as_echo_n "checking whether
-fsanitize=undefined is accepted...
" >&6; }
17132 saved_CXXFLAGS="$CXXFLAGS"
17133 CXXFLAGS="$CXXFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
17134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17135 /* end confdefs.h. */
17145 if ac_fn_cxx_try_link "$LINENO"; then :
17151 rm -f core conftest.err conftest.$ac_objext \
17152 conftest$ac_exeext conftest.$ac_ext
17153 CXXFLAGS="$saved_CXXFLAGS"
17154 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $enable_ubsan" >&5
17155 $as_echo "$enable_ubsan" >&6; }
17156 if test "x
$enable_ubsan" = xyes; then
17157 WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
17158 CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined
"
17162 ac_cpp='$CPP $CPPFLAGS'
17163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17169 # In the Cygwin environment, we need some additional flags.
17170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
17171 $as_echo_n "checking
for cygwin...
" >&6; }
17172 if ${gdb_cv_os_cygwin+:} false; then :
17173 $as_echo_n "(cached
) " >&6
17175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17176 /* end confdefs.h. */
17178 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
17182 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
17183 $EGREP "^lose$
" >/dev/null 2>&1; then :
17184 gdb_cv_os_cygwin=yes
17186 gdb_cv_os_cygwin=no
17191 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
17192 $as_echo "$gdb_cv_os_cygwin" >&6; }
17195 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
17197 *go32* ) SER_HARDWIRE=ser-go32.o ;;
17198 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
17199 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
17200 *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o
" ;;
17204 # libreadline needs libuser32.a in a cygwin environment
17206 if test x"$gdb_cv_os_cygwin" = xyes; then
17207 WIN32LIBS="-luser32"
17208 case "${target}" in
17209 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
17214 # The ser-tcp.c module requires sockets.
17215 # Note that WIN32APILIBS is set by GDB_AC_COMMON.
17216 WIN32LIBS="$WIN32LIBS $WIN32APILIBS"
17218 # Add ELF support to GDB, but only if BFD includes ELF support.
17221 OLD_LDFLAGS=$LDFLAGS
17223 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
17224 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
17225 # always want our bfd.
17226 CFLAGS="-I${srcdir}/..
/include
-I..
/bfd
-I${srcdir}/..
/bfd
$CFLAGS"
17227 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
17228 LDFLAGS="-L..
/bfd
-L..
/libiberty
$ZLIBDIR $LDFLAGS"
17229 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
17230 LIBS="-lbfd -liberty -lz $intl $LIBS"
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ELF support
in BFD
" >&5
17232 $as_echo_n "checking
for ELF support
in BFD...
" >&6; }
17233 if ${gdb_cv_var_elf+:} false; then :
17234 $as_echo_n "(cached
) " >&6
17236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17237 /* end confdefs.h. */
17238 #include <stdlib.h>
17239 #include <string.h>
17241 #include "elf-bfd.h
"
17245 return bfd_get_elf_phdr_upper_bound (NULL);
17251 if ac_fn_c_try_link "$LINENO"; then :
17257 rm -f core conftest.err conftest.$ac_objext \
17258 conftest$ac_exeext conftest.$ac_ext
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_var_elf" >&5
17262 $as_echo "$gdb_cv_var_elf" >&6; }
17264 LDFLAGS=$OLD_LDFLAGS
17266 if test "$gdb_cv_var_elf" = yes; then
17267 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o \
17268 gcore-elf.o elf-none-tdep.o
"
17270 $as_echo "#define HAVE_ELF 1" >>confdefs.h
17272 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
17273 if test "$plugins" = "yes"; then
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17275 $as_echo_n "checking for library containing dlopen... " >&6; }
17276 if ${ac_cv_search_dlopen+:} false
; then :
17277 $as_echo_n "(cached) " >&6
17279 ac_func_search_save_LIBS
=$LIBS
17280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17281 /* end confdefs.h. */
17283 /* Override any GCC internal prototype to avoid an error.
17284 Use char because int might match the return type of a GCC
17285 builtin and then its argument prototype would still apply. */
17298 for ac_lib
in '' dl
; do
17299 if test -z "$ac_lib"; then
17300 ac_res
="none required"
17303 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
17305 if ac_fn_c_try_link
"$LINENO"; then :
17306 ac_cv_search_dlopen
=$ac_res
17308 rm -f core conftest.err conftest.
$ac_objext \
17310 if ${ac_cv_search_dlopen+:} false
; then :
17314 if ${ac_cv_search_dlopen+:} false
; then :
17317 ac_cv_search_dlopen
=no
17319 rm conftest.
$ac_ext
17320 LIBS
=$ac_func_search_save_LIBS
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17323 $as_echo "$ac_cv_search_dlopen" >&6; }
17324 ac_res
=$ac_cv_search_dlopen
17325 if test "$ac_res" != no
; then :
17326 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
17333 # Add macho support to GDB, but only if BFD includes it.
17336 OLD_LDFLAGS
=$LDFLAGS
17338 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
17339 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
17340 # always want our bfd.
17341 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
17342 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
17343 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
17344 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
17345 LIBS
="-lbfd -liberty -lz $intl $LIBS"
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
17347 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
17348 if ${gdb_cv_var_macho+:} false
; then :
17349 $as_echo_n "(cached) " >&6
17351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17352 /* end confdefs.h. */
17353 #include <stdlib.h>
17354 #include <string.h>
17356 #include "mach-o.h"
17360 return bfd_mach_o_lookup_command (NULL, 0, NULL);
17366 if ac_fn_c_try_link
"$LINENO"; then :
17367 gdb_cv_var_macho
=yes
17369 gdb_cv_var_macho
=no
17372 rm -f core conftest.err conftest.
$ac_objext \
17373 conftest
$ac_exeext conftest.
$ac_ext
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
17377 $as_echo "$gdb_cv_var_macho" >&6; }
17379 LDFLAGS
=$OLD_LDFLAGS
17381 if test "$gdb_cv_var_macho" = yes; then
17382 CONFIG_OBS
="$CONFIG_OBS machoread.o"
17385 # Add any host-specific objects to GDB.
17386 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
17388 # If building on ELF, look for lzma support for embedded compressed debug info.
17389 if test "$gdb_cv_var_elf" = yes; then
17391 # Check whether --with-lzma was given.
17392 if test "${with_lzma+set}" = set; then :
17393 withval
=$with_lzma;
17398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
17399 $as_echo_n "checking whether to use lzma... " >&6; }
17400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
17401 $as_echo "$with_lzma" >&6; }
17403 if test "${with_lzma}" != no
; then
17414 acl_save_prefix
="$prefix"
17415 prefix
="$acl_final_prefix"
17416 acl_save_exec_prefix
="$exec_prefix"
17417 exec_prefix
="$acl_final_exec_prefix"
17419 eval additional_includedir
=\"$includedir\"
17420 eval additional_libdir
=\"$libdir\"
17422 exec_prefix
="$acl_save_exec_prefix"
17423 prefix
="$acl_save_prefix"
17426 # Check whether --with-liblzma-prefix was given.
17427 if test "${with_liblzma_prefix+set}" = set; then :
17428 withval
=$with_liblzma_prefix;
17429 if test "X$withval" = "Xno"; then
17432 if test "X$withval" = "X"; then
17434 acl_save_prefix
="$prefix"
17435 prefix
="$acl_final_prefix"
17436 acl_save_exec_prefix
="$exec_prefix"
17437 exec_prefix
="$acl_final_exec_prefix"
17439 eval additional_includedir
=\"$includedir\"
17440 eval additional_libdir
=\"$libdir\"
17442 exec_prefix
="$acl_save_exec_prefix"
17443 prefix
="$acl_save_prefix"
17446 additional_includedir
="$withval/include"
17447 additional_libdir
="$withval/lib"
17454 # Check whether --with-liblzma-type was given.
17455 if test "${with_liblzma_type+set}" = set; then :
17456 withval
=$with_liblzma_type; with_liblzma_type
=$withval
17458 with_liblzma_type
=auto
17461 lib_type
=`eval echo \$with_liblzma_type`
17468 names_already_handled
=
17469 names_next_round
='lzma '
17470 while test -n "$names_next_round"; do
17471 names_this_round
="$names_next_round"
17473 for name
in $names_this_round; do
17475 for n
in $names_already_handled; do
17476 if test "$n" = "$name"; then
17477 already_handled
=yes
17481 if test -z "$already_handled"; then
17482 names_already_handled
="$names_already_handled $name"
17483 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17484 eval value
=\"\
$HAVE_LIB$uppername\"
17485 if test -n "$value"; then
17486 if test "$value" = yes; then
17487 eval value
=\"\
$LIB$uppername\"
17488 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
17489 eval value
=\"\
$LTLIB$uppername\"
17490 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
17499 if test $use_additional = yes; then
17500 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
17501 found_dir
="$additional_libdir"
17502 found_so
="$additional_libdir/lib$name.$shlibext"
17503 if test -f "$additional_libdir/lib$name.la"; then
17504 found_la
="$additional_libdir/lib$name.la"
17506 elif test x
$lib_type != xshared
; then
17507 if test -f "$additional_libdir/lib$name.$libext"; then
17508 found_dir
="$additional_libdir"
17509 found_a
="$additional_libdir/lib$name.$libext"
17510 if test -f "$additional_libdir/lib$name.la"; then
17511 found_la
="$additional_libdir/lib$name.la"
17516 if test "X$found_dir" = "X"; then
17517 for x
in $LDFLAGS $LTLIBLZMA; do
17519 acl_save_prefix
="$prefix"
17520 prefix
="$acl_final_prefix"
17521 acl_save_exec_prefix
="$exec_prefix"
17522 exec_prefix
="$acl_final_exec_prefix"
17524 exec_prefix
="$acl_save_exec_prefix"
17525 prefix
="$acl_save_prefix"
17529 dir
=`echo "X$x" | sed -e 's/^X-L//'`
17530 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
17532 found_so
="$dir/lib$name.$shlibext"
17533 if test -f "$dir/lib$name.la"; then
17534 found_la
="$dir/lib$name.la"
17536 elif test x
$lib_type != xshared
; then
17537 if test -f "$dir/lib$name.$libext"; then
17539 found_a
="$dir/lib$name.$libext"
17540 if test -f "$dir/lib$name.la"; then
17541 found_la
="$dir/lib$name.la"
17547 if test "X$found_dir" != "X"; then
17552 if test "X$found_dir" != "X"; then
17553 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
17554 if test "X$found_so" != "X"; then
17555 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
17556 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17559 for x
in $ltrpathdirs; do
17560 if test "X$x" = "X$found_dir"; then
17565 if test -z "$haveit"; then
17566 ltrpathdirs
="$ltrpathdirs $found_dir"
17568 if test "$hardcode_direct" = yes; then
17569 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17571 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
17572 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17574 for x
in $rpathdirs; do
17575 if test "X$x" = "X$found_dir"; then
17580 if test -z "$haveit"; then
17581 rpathdirs
="$rpathdirs $found_dir"
17585 for x
in $LDFLAGS $LIBLZMA; do
17587 acl_save_prefix
="$prefix"
17588 prefix
="$acl_final_prefix"
17589 acl_save_exec_prefix
="$exec_prefix"
17590 exec_prefix
="$acl_final_exec_prefix"
17592 exec_prefix
="$acl_save_exec_prefix"
17593 prefix
="$acl_save_prefix"
17595 if test "X$x" = "X-L$found_dir"; then
17600 if test -z "$haveit"; then
17601 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
17603 if test "$hardcode_minus_L" != no
; then
17604 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17606 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
17612 if test "X$found_a" != "X"; then
17613 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
17615 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
17618 additional_includedir
=
17619 case "$found_dir" in
17621 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17622 additional_includedir
="$basedir/include"
17625 if test "X$additional_includedir" != "X"; then
17626 if test "X$additional_includedir" != "X/usr/include"; then
17628 if test "X$additional_includedir" = "X/usr/local/include"; then
17629 if test -n "$GCC"; then
17631 linux
*) haveit
=yes;;
17635 if test -z "$haveit"; then
17636 for x
in $CPPFLAGS $INCLZMA; do
17638 acl_save_prefix
="$prefix"
17639 prefix
="$acl_final_prefix"
17640 acl_save_exec_prefix
="$exec_prefix"
17641 exec_prefix
="$acl_final_exec_prefix"
17643 exec_prefix
="$acl_save_exec_prefix"
17644 prefix
="$acl_save_prefix"
17646 if test "X$x" = "X-I$additional_includedir"; then
17651 if test -z "$haveit"; then
17652 if test -d "$additional_includedir"; then
17653 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
17659 if test -n "$found_la"; then
17660 save_libdir
="$libdir"
17661 case "$found_la" in
17662 */* |
*\\*) .
"$found_la" ;;
17663 *) .
"./$found_la" ;;
17665 libdir
="$save_libdir"
17666 for dep
in $dependency_libs; do
17669 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
17670 if test "X$additional_libdir" != "X/usr/lib"; then
17672 if test "X$additional_libdir" = "X/usr/local/lib"; then
17673 if test -n "$GCC"; then
17675 linux
*) haveit
=yes;;
17679 if test -z "$haveit"; then
17681 for x
in $LDFLAGS $LIBLZMA; do
17683 acl_save_prefix
="$prefix"
17684 prefix
="$acl_final_prefix"
17685 acl_save_exec_prefix
="$exec_prefix"
17686 exec_prefix
="$acl_final_exec_prefix"
17688 exec_prefix
="$acl_save_exec_prefix"
17689 prefix
="$acl_save_prefix"
17691 if test "X$x" = "X-L$additional_libdir"; then
17696 if test -z "$haveit"; then
17697 if test -d "$additional_libdir"; then
17698 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
17702 for x
in $LDFLAGS $LTLIBLZMA; do
17704 acl_save_prefix
="$prefix"
17705 prefix
="$acl_final_prefix"
17706 acl_save_exec_prefix
="$exec_prefix"
17707 exec_prefix
="$acl_final_exec_prefix"
17709 exec_prefix
="$acl_save_exec_prefix"
17710 prefix
="$acl_save_prefix"
17712 if test "X$x" = "X-L$additional_libdir"; then
17717 if test -z "$haveit"; then
17718 if test -d "$additional_libdir"; then
17719 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
17726 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
17727 if test "$enable_rpath" != no
; then
17729 for x
in $rpathdirs; do
17730 if test "X$x" = "X$dir"; then
17735 if test -z "$haveit"; then
17736 rpathdirs
="$rpathdirs $dir"
17739 for x
in $ltrpathdirs; do
17740 if test "X$x" = "X$dir"; then
17745 if test -z "$haveit"; then
17746 ltrpathdirs
="$ltrpathdirs $dir"
17751 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17754 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17757 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
17758 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
17764 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
17765 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
17766 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
17768 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l:lib$name.$libext"
17769 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l:lib$name.$libext"
17776 if test "X$rpathdirs" != "X"; then
17777 if test -n "$hardcode_libdir_separator"; then
17779 for found_dir
in $rpathdirs; do
17780 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17782 acl_save_libdir
="$libdir"
17784 eval flag
=\"$hardcode_libdir_flag_spec\"
17785 libdir
="$acl_save_libdir"
17786 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
17788 for found_dir
in $rpathdirs; do
17789 acl_save_libdir
="$libdir"
17790 libdir
="$found_dir"
17791 eval flag
=\"$hardcode_libdir_flag_spec\"
17792 libdir
="$acl_save_libdir"
17793 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
17797 if test "X$ltrpathdirs" != "X"; then
17798 for found_dir
in $ltrpathdirs; do
17799 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
17804 ac_save_CPPFLAGS
="$CPPFLAGS"
17806 for element
in $INCLZMA; do
17808 for x
in $CPPFLAGS; do
17810 acl_save_prefix
="$prefix"
17811 prefix
="$acl_final_prefix"
17812 acl_save_exec_prefix
="$exec_prefix"
17813 exec_prefix
="$acl_final_exec_prefix"
17815 exec_prefix
="$acl_save_exec_prefix"
17816 prefix
="$acl_save_prefix"
17818 if test "X$x" = "X$element"; then
17823 if test -z "$haveit"; then
17824 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
17830 $as_echo_n "checking for liblzma... " >&6; }
17831 if ${ac_cv_liblzma+:} false
; then :
17832 $as_echo_n "(cached) " >&6
17835 ac_save_LIBS
="$LIBS"
17836 LIBS
="$LIBS $LIBLZMA"
17837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17838 /* end confdefs.h. */
17843 lzma_index_iter iter;
17844 lzma_index_iter_init (&iter, 0);
17845 lzma_mf_is_supported (LZMA_MF_HC3);
17850 if ac_fn_c_try_link
"$LINENO"; then :
17855 rm -f core conftest.err conftest.
$ac_objext \
17856 conftest
$ac_exeext conftest.
$ac_ext
17857 LIBS
="$ac_save_LIBS"
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
17861 $as_echo "$ac_cv_liblzma" >&6; }
17862 if test "$ac_cv_liblzma" = yes; then
17865 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
17867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
17868 $as_echo_n "checking how to link with liblzma... " >&6; }
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
17870 $as_echo "$LIBLZMA" >&6; }
17873 CPPFLAGS
="$ac_save_CPPFLAGS"
17883 if test "$HAVE_LIBLZMA" != yes; then
17884 if test "$with_lzma" = yes; then
17885 as_fn_error $?
"missing liblzma for --with-lzma" "$LINENO" 5
17891 LIBGUI
="../libgui/src/libgui.a"
17892 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
17901 *-*-cygwin* |
*-*-mingw* )
17910 if test "${enable_gdbtk}" = "yes"; then
17912 # Gdbtk must have an absolute path to srcdir in order to run
17913 # properly when not installed.
17916 GDBTK_SRC_DIR
=`pwd`
17921 # Ok, lets find the tcl configuration
17922 # First, look for one uninstalled.
17923 # the alternative search directory is invoked by --with-tcl
17926 if test x
"${no_tcl}" = x
; then
17927 # we reset no_tcl in case something fails here
17930 # Check whether --with-tcl was given.
17931 if test "${with_tcl+set}" = set; then :
17932 withval
=$with_tcl; with_tclconfig
=${withval}
17935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
17936 $as_echo_n "checking for Tcl configuration... " >&6; }
17937 if ${ac_cv_c_tclconfig+:} false
; then :
17938 $as_echo_n "(cached) " >&6
17942 # First check to see if --with-tcl was specified.
17944 *-*-cygwin*) platDir
="win" ;;
17945 *) platDir
="unix" ;;
17947 if test x
"${with_tclconfig}" != x
; then
17948 if test -f "${with_tclconfig}/tclConfig.sh" ; then
17949 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
17951 as_fn_error $?
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
17955 # then check for a private Tcl installation
17956 if test x
"${ac_cv_c_tclconfig}" = x
; then
17959 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17960 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
17961 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
17963 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17964 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
17965 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
17967 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17968 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
17969 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
17970 if test -f "$i/$platDir/tclConfig.sh" ; then
17971 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
17977 # on Darwin, check in Framework installation locations
17978 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
17979 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
17980 `ls -d /Library/Frameworks 2>/dev/null` \
17981 `ls -d /Network/Library/Frameworks 2>/dev/null` \
17982 `ls -d /System/Library/Frameworks 2>/dev/null` \
17984 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
17985 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
17991 # check in a few common install locations
17992 if test x
"${ac_cv_c_tclconfig}" = x
; then
17993 for i
in `ls -d ${libdir} 2>/dev/null` \
17994 `ls -d ${exec_prefix}/lib 2>/dev/null` \
17995 `ls -d ${prefix}/lib 2>/dev/null` \
17996 `ls -d /usr/local/lib 2>/dev/null` \
17997 `ls -d /usr/contrib/lib 2>/dev/null` \
17998 `ls -d /usr/lib 2>/dev/null` \
18000 if test -f "$i/tclConfig.sh" ; then
18001 ac_cv_c_tclconfig
=`(cd $i; pwd)`
18007 # check in a few other private locations
18008 if test x
"${ac_cv_c_tclconfig}" = x
; then
18011 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
18012 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
18013 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
18014 if test -f "$i/$platDir/tclConfig.sh" ; then
18015 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
18024 if test x
"${ac_cv_c_tclconfig}" = x
; then
18025 TCL_BIN_DIR
="# no Tcl configs found"
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
18027 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
18030 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
18031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
18032 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
18037 # If $no_tk is nonempty, then we can't do Tk, and there is no
18038 # point to doing Tcl.
18041 # Ok, lets find the tk configuration
18042 # First, look for one uninstalled.
18043 # the alternative search directory is invoked by --with-tk
18046 if test x
"${no_tk}" = x
; then
18047 # we reset no_tk in case something fails here
18050 # Check whether --with-tk was given.
18051 if test "${with_tk+set}" = set; then :
18052 withval
=$with_tk; with_tkconfig
=${withval}
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
18056 $as_echo_n "checking for Tk configuration... " >&6; }
18057 if ${ac_cv_c_tkconfig+:} false
; then :
18058 $as_echo_n "(cached) " >&6
18062 # First check to see if --with-tkconfig was specified.
18063 if test x
"${with_tkconfig}" != x
; then
18064 if test -f "${with_tkconfig}/tkConfig.sh" ; then
18065 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
18067 as_fn_error $?
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
18071 # then check for a private Tk library
18073 *-*-cygwin*) platDir
="win" ;;
18074 *) platDir
="unix" ;;
18076 if test x
"${ac_cv_c_tkconfig}" = x
; then
18079 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
18080 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
18081 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
18083 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
18084 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
18085 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
18087 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
18088 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
18089 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
18090 if test -f "$i/$platDir/tkConfig.sh" ; then
18091 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
18097 # on Darwin, check in Framework installation locations
18098 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
18099 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
18100 `ls -d /Library/Frameworks 2>/dev/null` \
18101 `ls -d /Network/Library/Frameworks 2>/dev/null` \
18102 `ls -d /System/Library/Frameworks 2>/dev/null` \
18104 if test -f "$i/Tk.framework/tkConfig.sh" ; then
18105 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
18111 # check in a few common install locations
18112 if test x
"${ac_cv_c_tkconfig}" = x
; then
18113 for i
in `ls -d ${libdir} 2>/dev/null` \
18114 `ls -d ${exec_prefix}/lib 2>/dev/null` \
18115 `ls -d ${prefix}/lib 2>/dev/null` \
18116 `ls -d /usr/local/lib 2>/dev/null` \
18117 `ls -d /usr/contrib/lib 2>/dev/null` \
18118 `ls -d /usr/lib 2>/dev/null` \
18120 if test -f "$i/tkConfig.sh" ; then
18121 ac_cv_c_tkconfig
=`(cd $i; pwd)`
18126 # check in a few other private locations
18127 if test x
"${ac_cv_c_tkconfig}" = x
; then
18130 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
18131 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
18132 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
18133 if test -f "$i/$platDir/tkConfig.sh" ; then
18134 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
18143 if test x
"${ac_cv_c_tkconfig}" = x
; then
18144 TK_BIN_DIR
="# no Tk configs found"
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
18146 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
18149 TK_BIN_DIR
=${ac_cv_c_tkconfig}
18150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
18151 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
18156 if test -z "${no_tcl}" -a -z "${no_tk}"; then
18158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
18159 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
18161 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
18163 $as_echo "loading" >&6; }
18164 .
${TCL_BIN_DIR}/tclConfig.sh
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
18167 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
18170 # eval is required to do the TCL_DBGX substitution
18171 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
18172 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
18174 # If the TCL_BIN_DIR is the build directory (not the install directory),
18175 # then set the common variable name to the value of the build variables.
18176 # For example, the variable TCL_LIB_SPEC will be set to the value
18177 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
18178 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
18179 # installed and uninstalled version of Tcl.
18180 if test -f "${TCL_BIN_DIR}/Makefile" ; then
18181 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
18182 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
18183 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
18184 elif test "`uname -s`" = "Darwin"; then
18185 # If Tcl was built as a framework, attempt to use the libraries
18186 # from the framework at the given location so that linking works
18187 # against Tcl.framework installed in an arbitrary location.
18188 case ${TCL_DEFS} in
18190 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
18191 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
18192 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
18193 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
18194 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
18199 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
18200 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
18201 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
18207 # eval is required to do the TCL_DBGX substitution
18208 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
18209 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
18210 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
18211 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
18227 # Check for in-tree tcl
18234 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
18238 # Find Tcl private headers
18239 if test x
"${intree}" = xno
; then
18241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
18242 $as_echo_n "checking for Tcl private headers... " >&6; }
18244 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
18245 if test -f ${dir}/tclInt.h
; then
18249 if test x
"${private_dir}" = x
; then
18250 as_fn_error $?
"could not find private Tcl headers" "$LINENO" 5
18252 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
18254 $as_echo "${private_dir}" >&6; }
18257 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
18258 TCL_LIBRARY
="${TCL_LIB_SPEC}"
18261 # If building tcl in the same src tree, private headers
18262 # are not needed, but we need to be sure to use the right
18264 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
18265 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
18266 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
18274 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
18276 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
18277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
18278 $as_echo "loading" >&6; }
18279 .
${TK_BIN_DIR}/tkConfig.sh
18281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
18282 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
18285 # eval is required to do the TK_DBGX substitution
18286 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
18287 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
18289 # If the TK_BIN_DIR is the build directory (not the install directory),
18290 # then set the common variable name to the value of the build variables.
18291 # For example, the variable TK_LIB_SPEC will be set to the value
18292 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
18293 # instead of TK_BUILD_LIB_SPEC since it will work with both an
18294 # installed and uninstalled version of Tcl.
18295 if test -f "${TK_BIN_DIR}/Makefile" ; then
18296 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
18297 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
18298 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
18299 elif test "`uname -s`" = "Darwin"; then
18300 # If Tk was built as a framework, attempt to use the libraries
18301 # from the framework at the given location so that linking works
18302 # against Tk.framework installed in an arbitrary location.
18305 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
18306 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
18307 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
18308 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
18309 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
18314 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
18315 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
18316 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
18322 # eval is required to do the TK_DBGX substitution
18323 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
18324 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
18325 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
18326 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
18341 # Check for in-tree Tk
18343 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
18347 # Find Tk private headers
18348 if test x
"${intree}" = xno
; then
18350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
18351 $as_echo_n "checking for Tk private headers... " >&6; }
18353 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
18354 if test -f ${dir}/tkInt.h
; then
18358 if test x
"${private_dir}" = x
; then
18359 as_fn_error $?
"could not find Tk private headers" "$LINENO" 5
18361 TK_PRIVATE_INCLUDE
="-I${private_dir}"
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
18363 $as_echo "${private_dir}" >&6; }
18366 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
18367 TK_LIBRARY
=${TK_LIB_SPEC}
18370 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
18371 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
18372 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
18379 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
18381 # Include some libraries that Tcl and Tk want.
18382 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
18383 # Yes, the ordering seems wrong here. But it isn't.
18384 # TK_LIBS is the list of libraries that need to be linked
18385 # after Tcl/Tk. Note that this isn't put into LIBS. If it
18386 # were in LIBS then any link tests after this point would
18387 # try to include things like `$(LIBGUI)', which wouldn't work.
18388 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
18390 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
18391 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
18392 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
18393 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
18394 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
18395 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
18396 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
18398 if test x
"$gdb_cv_os_cygwin" = xyes
; then
18399 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
18400 WIN32LDAPP
="-Wl,--subsystem,console"
18401 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
18404 subdirs
="$subdirs gdbtk"
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
18417 $as_echo_n "checking for X... " >&6; }
18420 # Check whether --with-x was given.
18421 if test "${with_x+set}" = set; then :
18425 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18426 if test "x$with_x" = xno
; then
18427 # The user explicitly disabled X.
18430 case $x_includes,$x_libraries in #(
18431 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
18432 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
18433 $as_echo_n "(cached) " >&6
18435 # One or both of the vars are not set, and there is no cached value.
18436 ac_x_includes
=no ac_x_libraries
=no
18437 rm -f -r conftest.dir
18438 if mkdir conftest.dir
; then
18440 cat >Imakefile
<<'_ACEOF'
18442 @echo incroot='${INCROOT}'
18444 @echo usrlibdir='${USRLIBDIR}'
18446 @echo libdir='${LIBDIR}'
18448 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
18449 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
18450 for ac_var
in incroot usrlibdir libdir
; do
18451 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18453 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18454 for ac_extension
in a so sl dylib la dll
; do
18455 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18456 test -f "$ac_im_libdir/libX11.$ac_extension"; then
18457 ac_im_usrlibdir
=$ac_im_libdir; break
18460 # Screen out bogus values from the imake configuration. They are
18461 # bogus both because they are the default anyway, and because
18462 # using them would break gcc on systems where it needs fixed includes.
18463 case $ac_im_incroot in
18464 /usr
/include
) ac_x_includes
= ;;
18465 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
18467 case $ac_im_usrlibdir in
18468 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
18469 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
18473 rm -f -r conftest.dir
18476 # Standard set of common directories for X headers.
18477 # Check X11 before X11Rn because it is often a symlink to the current release.
18491 /usr/local/X11/include
18492 /usr/local/X11R7/include
18493 /usr/local/X11R6/include
18494 /usr/local/X11R5/include
18495 /usr/local/X11R4/include
18497 /usr/local/include/X11
18498 /usr/local/include/X11R7
18499 /usr/local/include/X11R6
18500 /usr/local/include/X11R5
18501 /usr/local/include/X11R4
18505 /usr/XFree86/include/X11
18509 /usr/unsupported/include
18510 /usr/athena/include
18511 /usr/local/x11r5/include
18512 /usr/lpp/Xamples/include
18514 /usr/openwin/include
18515 /usr/openwin/share/include'
18517 if test "$ac_x_includes" = no
; then
18518 # Guess where to find include files, by looking for Xlib.h.
18519 # First, try using that file with no special directory specified.
18520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18521 /* end confdefs.h. */
18522 #include <X11/Xlib.h>
18524 if ac_fn_c_try_cpp
"$LINENO"; then :
18525 # We can compile using X headers with no special include directory.
18528 for ac_dir
in $ac_x_header_dirs; do
18529 if test -r "$ac_dir/X11/Xlib.h"; then
18530 ac_x_includes
=$ac_dir
18535 rm -f conftest.err conftest.i conftest.
$ac_ext
18536 fi # $ac_x_includes = no
18538 if test "$ac_x_libraries" = no
; then
18539 # Check for the libraries.
18540 # See if we find them without any special options.
18541 # Don't add to $LIBS permanently.
18544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18545 /* end confdefs.h. */
18546 #include <X11/Xlib.h>
18555 if ac_fn_c_try_link
"$LINENO"; then :
18557 # We can link X programs with no special library path.
18561 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18563 # Don't even attempt the hair of trying to link an X program!
18564 for ac_extension
in a so sl dylib la dll
; do
18565 if test -r "$ac_dir/libX11.$ac_extension"; then
18566 ac_x_libraries
=$ac_dir
18572 rm -f core conftest.err conftest.
$ac_objext \
18573 conftest
$ac_exeext conftest.
$ac_ext
18574 fi # $ac_x_libraries = no
18576 case $ac_x_includes,$ac_x_libraries in #(
18577 no
,* |
*,no |
*\'*)
18578 # Didn't find X, or a directory has "'" in its name.
18579 ac_cv_have_x
="have_x=no";; #(
18581 # Record where we found X for the cache.
18582 ac_cv_have_x
="have_x=yes\
18583 ac_x_includes='$ac_x_includes'\
18584 ac_x_libraries='$ac_x_libraries'"
18590 eval "$ac_cv_have_x"
18593 if test "$have_x" != yes; then
18594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
18595 $as_echo "$have_x" >&6; }
18598 # If each of the values was on the command line, it overrides each guess.
18599 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
18600 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
18601 # Update the cache value to reflect the command line values.
18602 ac_cv_have_x
="have_x=yes\
18603 ac_x_includes='$x_includes'\
18604 ac_x_libraries='$x_libraries'"
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
18606 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
18610 # Unlike the sim directory, whether a simulator is linked is controlled by
18611 # presence of a gdb_sim definition in the target configure.tgt entry.
18612 # This code just checks for a few cases where we'd like to ignore those
18613 # definitions, even when they're present in the '.mt' file. These cases
18614 # are when --disable-sim is specified, or if the simulator directory is
18615 # not part of the source tree.
18617 # Check whether --enable-sim was given.
18618 if test "${enable_sim+set}" = set; then :
18619 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
18620 echo "enableval = ${enableval}";
18621 case "${enableval}" in
18622 yes) ignore_sim
=false
;;
18623 no
) ignore_sim
=true
;;
18624 *) ignore_sim
=false
;;
18631 if test ! -d "${srcdir}/../sim"; then
18637 if test "${ignore_sim}" = "false"; then
18638 if test x
"${gdb_sim}" != x
; then
18640 SIM_OBS
="remote-sim.o"
18642 $as_echo "#define WITH_SIM 1" >>confdefs.h
18645 # Some tdep code should only be compiled in when the ppc sim is
18646 # built. PR sim/13418.
18650 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
18670 # List of host floatformats.
18672 cat >>confdefs.h
<<_ACEOF
18673 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
18677 cat >>confdefs.h
<<_ACEOF
18678 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
18682 cat >>confdefs.h
<<_ACEOF
18683 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
18687 # target_subdir is used by the testsuite to find the target libraries.
18689 if test "${host}" != "${target}"; then
18690 target_subdir
="${target_alias}/"
18694 # Import nat definitions.
18695 nat_makefile_frag
=/dev
/null
18696 if test "${gdb_native}" = "yes"; then
18697 .
${srcdir}/configure.nat
18698 nativefile
=$NAT_FILE
18711 if test x
"${gdb_osabi}" != x
; then
18713 cat >>confdefs.h
<<_ACEOF
18714 #define GDB_OSABI_DEFAULT $gdb_osabi
18719 # Check for babeltrace and babeltrace-ctf
18721 # Check whether --with-babeltrace was given.
18722 if test "${with_babeltrace+set}" = set; then :
18723 withval
=$with_babeltrace;
18725 with_babeltrace
=auto
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
18729 $as_echo_n "checking whether to use babeltrace... " >&6; }
18730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
18731 $as_echo "$with_babeltrace" >&6; }
18733 if test "x$with_babeltrace" = "xno"; then
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
18735 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
18737 # Append -Werror to CFLAGS so that configure can catch the warning
18738 # "assignment from incompatible pointer type", which is related to
18739 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
18740 # in GDB, while babeltrace 1.0.3 is broken.
18741 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
18742 # safe to save and restore CFLAGS here.
18743 saved_CFLAGS
=$CFLAGS
18744 CFLAGS
="$CFLAGS -Werror"
18755 acl_save_prefix
="$prefix"
18756 prefix
="$acl_final_prefix"
18757 acl_save_exec_prefix
="$exec_prefix"
18758 exec_prefix
="$acl_final_exec_prefix"
18760 eval additional_includedir
=\"$includedir\"
18761 eval additional_libdir
=\"$libdir\"
18763 exec_prefix
="$acl_save_exec_prefix"
18764 prefix
="$acl_save_prefix"
18767 # Check whether --with-libbabeltrace-prefix was given.
18768 if test "${with_libbabeltrace_prefix+set}" = set; then :
18769 withval
=$with_libbabeltrace_prefix;
18770 if test "X$withval" = "Xno"; then
18773 if test "X$withval" = "X"; then
18775 acl_save_prefix
="$prefix"
18776 prefix
="$acl_final_prefix"
18777 acl_save_exec_prefix
="$exec_prefix"
18778 exec_prefix
="$acl_final_exec_prefix"
18780 eval additional_includedir
=\"$includedir\"
18781 eval additional_libdir
=\"$libdir\"
18783 exec_prefix
="$acl_save_exec_prefix"
18784 prefix
="$acl_save_prefix"
18787 additional_includedir
="$withval/include"
18788 additional_libdir
="$withval/lib"
18795 # Check whether --with-libbabeltrace-type was given.
18796 if test "${with_libbabeltrace_type+set}" = set; then :
18797 withval
=$with_libbabeltrace_type; with_libbabeltrace_type
=$withval
18799 with_libbabeltrace_type
=auto
18802 lib_type
=`eval echo \$with_libbabeltrace_type`
18809 names_already_handled
=
18810 names_next_round
='babeltrace babeltrace-ctf'
18811 while test -n "$names_next_round"; do
18812 names_this_round
="$names_next_round"
18814 for name
in $names_this_round; do
18816 for n
in $names_already_handled; do
18817 if test "$n" = "$name"; then
18818 already_handled
=yes
18822 if test -z "$already_handled"; then
18823 names_already_handled
="$names_already_handled $name"
18824 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18825 eval value
=\"\
$HAVE_LIB$uppername\"
18826 if test -n "$value"; then
18827 if test "$value" = yes; then
18828 eval value
=\"\
$LIB$uppername\"
18829 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
18830 eval value
=\"\
$LTLIB$uppername\"
18831 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
18840 if test $use_additional = yes; then
18841 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18842 found_dir
="$additional_libdir"
18843 found_so
="$additional_libdir/lib$name.$shlibext"
18844 if test -f "$additional_libdir/lib$name.la"; then
18845 found_la
="$additional_libdir/lib$name.la"
18847 elif test x
$lib_type != xshared
; then
18848 if test -f "$additional_libdir/lib$name.$libext"; then
18849 found_dir
="$additional_libdir"
18850 found_a
="$additional_libdir/lib$name.$libext"
18851 if test -f "$additional_libdir/lib$name.la"; then
18852 found_la
="$additional_libdir/lib$name.la"
18857 if test "X$found_dir" = "X"; then
18858 for x
in $LDFLAGS $LTLIBBABELTRACE; do
18860 acl_save_prefix
="$prefix"
18861 prefix
="$acl_final_prefix"
18862 acl_save_exec_prefix
="$exec_prefix"
18863 exec_prefix
="$acl_final_exec_prefix"
18865 exec_prefix
="$acl_save_exec_prefix"
18866 prefix
="$acl_save_prefix"
18870 dir
=`echo "X$x" | sed -e 's/^X-L//'`
18871 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18873 found_so
="$dir/lib$name.$shlibext"
18874 if test -f "$dir/lib$name.la"; then
18875 found_la
="$dir/lib$name.la"
18877 elif test x
$lib_type != xshared
; then
18878 if test -f "$dir/lib$name.$libext"; then
18880 found_a
="$dir/lib$name.$libext"
18881 if test -f "$dir/lib$name.la"; then
18882 found_la
="$dir/lib$name.la"
18888 if test "X$found_dir" != "X"; then
18893 if test "X$found_dir" != "X"; then
18894 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
18895 if test "X$found_so" != "X"; then
18896 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
18897 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18900 for x
in $ltrpathdirs; do
18901 if test "X$x" = "X$found_dir"; then
18906 if test -z "$haveit"; then
18907 ltrpathdirs
="$ltrpathdirs $found_dir"
18909 if test "$hardcode_direct" = yes; then
18910 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18912 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
18913 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18915 for x
in $rpathdirs; do
18916 if test "X$x" = "X$found_dir"; then
18921 if test -z "$haveit"; then
18922 rpathdirs
="$rpathdirs $found_dir"
18926 for x
in $LDFLAGS $LIBBABELTRACE; do
18928 acl_save_prefix
="$prefix"
18929 prefix
="$acl_final_prefix"
18930 acl_save_exec_prefix
="$exec_prefix"
18931 exec_prefix
="$acl_final_exec_prefix"
18933 exec_prefix
="$acl_save_exec_prefix"
18934 prefix
="$acl_save_prefix"
18936 if test "X$x" = "X-L$found_dir"; then
18941 if test -z "$haveit"; then
18942 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
18944 if test "$hardcode_minus_L" != no
; then
18945 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18947 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
18953 if test "X$found_a" != "X"; then
18954 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
18956 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
18959 additional_includedir
=
18960 case "$found_dir" in
18962 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18963 additional_includedir
="$basedir/include"
18966 if test "X$additional_includedir" != "X"; then
18967 if test "X$additional_includedir" != "X/usr/include"; then
18969 if test "X$additional_includedir" = "X/usr/local/include"; then
18970 if test -n "$GCC"; then
18972 linux
*) haveit
=yes;;
18976 if test -z "$haveit"; then
18977 for x
in $CPPFLAGS $INCBABELTRACE; do
18979 acl_save_prefix
="$prefix"
18980 prefix
="$acl_final_prefix"
18981 acl_save_exec_prefix
="$exec_prefix"
18982 exec_prefix
="$acl_final_exec_prefix"
18984 exec_prefix
="$acl_save_exec_prefix"
18985 prefix
="$acl_save_prefix"
18987 if test "X$x" = "X-I$additional_includedir"; then
18992 if test -z "$haveit"; then
18993 if test -d "$additional_includedir"; then
18994 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
19000 if test -n "$found_la"; then
19001 save_libdir
="$libdir"
19002 case "$found_la" in
19003 */* |
*\\*) .
"$found_la" ;;
19004 *) .
"./$found_la" ;;
19006 libdir
="$save_libdir"
19007 for dep
in $dependency_libs; do
19010 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
19011 if test "X$additional_libdir" != "X/usr/lib"; then
19013 if test "X$additional_libdir" = "X/usr/local/lib"; then
19014 if test -n "$GCC"; then
19016 linux
*) haveit
=yes;;
19020 if test -z "$haveit"; then
19022 for x
in $LDFLAGS $LIBBABELTRACE; do
19024 acl_save_prefix
="$prefix"
19025 prefix
="$acl_final_prefix"
19026 acl_save_exec_prefix
="$exec_prefix"
19027 exec_prefix
="$acl_final_exec_prefix"
19029 exec_prefix
="$acl_save_exec_prefix"
19030 prefix
="$acl_save_prefix"
19032 if test "X$x" = "X-L$additional_libdir"; then
19037 if test -z "$haveit"; then
19038 if test -d "$additional_libdir"; then
19039 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
19043 for x
in $LDFLAGS $LTLIBBABELTRACE; do
19045 acl_save_prefix
="$prefix"
19046 prefix
="$acl_final_prefix"
19047 acl_save_exec_prefix
="$exec_prefix"
19048 exec_prefix
="$acl_final_exec_prefix"
19050 exec_prefix
="$acl_save_exec_prefix"
19051 prefix
="$acl_save_prefix"
19053 if test "X$x" = "X-L$additional_libdir"; then
19058 if test -z "$haveit"; then
19059 if test -d "$additional_libdir"; then
19060 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
19067 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
19068 if test "$enable_rpath" != no
; then
19070 for x
in $rpathdirs; do
19071 if test "X$x" = "X$dir"; then
19076 if test -z "$haveit"; then
19077 rpathdirs
="$rpathdirs $dir"
19080 for x
in $ltrpathdirs; do
19081 if test "X$x" = "X$dir"; then
19086 if test -z "$haveit"; then
19087 ltrpathdirs
="$ltrpathdirs $dir"
19092 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19095 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19098 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
19099 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
19105 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
19106 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
19107 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
19109 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l:lib$name.$libext"
19110 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l:lib$name.$libext"
19117 if test "X$rpathdirs" != "X"; then
19118 if test -n "$hardcode_libdir_separator"; then
19120 for found_dir
in $rpathdirs; do
19121 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
19123 acl_save_libdir
="$libdir"
19125 eval flag
=\"$hardcode_libdir_flag_spec\"
19126 libdir
="$acl_save_libdir"
19127 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
19129 for found_dir
in $rpathdirs; do
19130 acl_save_libdir
="$libdir"
19131 libdir
="$found_dir"
19132 eval flag
=\"$hardcode_libdir_flag_spec\"
19133 libdir
="$acl_save_libdir"
19134 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
19138 if test "X$ltrpathdirs" != "X"; then
19139 for found_dir
in $ltrpathdirs; do
19140 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
19145 ac_save_CPPFLAGS
="$CPPFLAGS"
19147 for element
in $INCBABELTRACE; do
19149 for x
in $CPPFLAGS; do
19151 acl_save_prefix
="$prefix"
19152 prefix
="$acl_final_prefix"
19153 acl_save_exec_prefix
="$exec_prefix"
19154 exec_prefix
="$acl_final_exec_prefix"
19156 exec_prefix
="$acl_save_exec_prefix"
19157 prefix
="$acl_save_prefix"
19159 if test "X$x" = "X$element"; then
19164 if test -z "$haveit"; then
19165 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
19170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
19171 $as_echo_n "checking for libbabeltrace... " >&6; }
19172 if ${ac_cv_libbabeltrace+:} false
; then :
19173 $as_echo_n "(cached) " >&6
19176 ac_save_LIBS
="$LIBS"
19177 LIBS
="$LIBS $LIBBABELTRACE"
19178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19179 /* end confdefs.h. */
19180 #include <babeltrace/babeltrace.h>
19181 #include <babeltrace/ctf/events.h>
19182 #include <babeltrace/ctf/iterator.h>
19186 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
19187 struct bt_ctf_event *event = NULL;
19188 const struct bt_definition *scope;
19190 pos->type = BT_SEEK_BEGIN;
19191 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
19192 scope = bt_ctf_get_top_level_scope (event,
19193 BT_STREAM_EVENT_HEADER);
19194 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
19200 if ac_fn_c_try_link
"$LINENO"; then :
19201 ac_cv_libbabeltrace
=yes
19203 ac_cv_libbabeltrace
=no
19205 rm -f core conftest.err conftest.
$ac_objext \
19206 conftest
$ac_exeext conftest.
$ac_ext
19207 LIBS
="$ac_save_LIBS"
19210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
19211 $as_echo "$ac_cv_libbabeltrace" >&6; }
19212 if test "$ac_cv_libbabeltrace" = yes; then
19213 HAVE_LIBBABELTRACE
=yes
19215 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
19217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
19218 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
19219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
19220 $as_echo "$LIBBABELTRACE" >&6; }
19222 HAVE_LIBBABELTRACE
=no
19223 CPPFLAGS
="$ac_save_CPPFLAGS"
19233 CFLAGS
=$saved_CFLAGS
19235 if test "$HAVE_LIBBABELTRACE" != yes; then
19236 if test "$with_babeltrace" = yes; then
19237 as_fn_error $?
"babeltrace is missing or unusable" "$LINENO" 5
19239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
19240 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
19247 # Check whether --with-xxhash was given.
19248 if test "${with_xxhash+set}" = set; then :
19249 withval
=$with_xxhash;
19255 # Check whether --enable-libctf was given.
19256 if test "${enable_libctf+set}" = set; then :
19257 enableval
=$enable_libctf;
19258 case "$enableval" in
19260 *) as_fn_error $?
"Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
19268 if test x
${enable_static} = xno
; then
19269 LIBCTF
="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so"
19270 CTF_DEPS
="../libctf/.libs/libctf.so"
19272 LIBCTF
="../libctf/.libs/libctf.a"
19275 if test "${enable_libctf}" = yes; then
19277 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
19287 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
19290 if test "x$with_xxhash" != "xno"; then
19301 acl_save_prefix
="$prefix"
19302 prefix
="$acl_final_prefix"
19303 acl_save_exec_prefix
="$exec_prefix"
19304 exec_prefix
="$acl_final_exec_prefix"
19306 eval additional_includedir
=\"$includedir\"
19307 eval additional_libdir
=\"$libdir\"
19309 exec_prefix
="$acl_save_exec_prefix"
19310 prefix
="$acl_save_prefix"
19313 # Check whether --with-libxxhash-prefix was given.
19314 if test "${with_libxxhash_prefix+set}" = set; then :
19315 withval
=$with_libxxhash_prefix;
19316 if test "X$withval" = "Xno"; then
19319 if test "X$withval" = "X"; then
19321 acl_save_prefix
="$prefix"
19322 prefix
="$acl_final_prefix"
19323 acl_save_exec_prefix
="$exec_prefix"
19324 exec_prefix
="$acl_final_exec_prefix"
19326 eval additional_includedir
=\"$includedir\"
19327 eval additional_libdir
=\"$libdir\"
19329 exec_prefix
="$acl_save_exec_prefix"
19330 prefix
="$acl_save_prefix"
19333 additional_includedir
="$withval/include"
19334 additional_libdir
="$withval/lib"
19341 # Check whether --with-libxxhash-type was given.
19342 if test "${with_libxxhash_type+set}" = set; then :
19343 withval
=$with_libxxhash_type; with_libxxhash_type
=$withval
19345 with_libxxhash_type
=auto
19348 lib_type
=`eval echo \$with_libxxhash_type`
19355 names_already_handled
=
19356 names_next_round
='xxhash '
19357 while test -n "$names_next_round"; do
19358 names_this_round
="$names_next_round"
19360 for name
in $names_this_round; do
19362 for n
in $names_already_handled; do
19363 if test "$n" = "$name"; then
19364 already_handled
=yes
19368 if test -z "$already_handled"; then
19369 names_already_handled
="$names_already_handled $name"
19370 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
19371 eval value
=\"\
$HAVE_LIB$uppername\"
19372 if test -n "$value"; then
19373 if test "$value" = yes; then
19374 eval value
=\"\
$LIB$uppername\"
19375 test -z "$value" || LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$value"
19376 eval value
=\"\
$LTLIB$uppername\"
19377 test -z "$value" || LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$value"
19386 if test $use_additional = yes; then
19387 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
19388 found_dir
="$additional_libdir"
19389 found_so
="$additional_libdir/lib$name.$shlibext"
19390 if test -f "$additional_libdir/lib$name.la"; then
19391 found_la
="$additional_libdir/lib$name.la"
19393 elif test x
$lib_type != xshared
; then
19394 if test -f "$additional_libdir/lib$name.$libext"; then
19395 found_dir
="$additional_libdir"
19396 found_a
="$additional_libdir/lib$name.$libext"
19397 if test -f "$additional_libdir/lib$name.la"; then
19398 found_la
="$additional_libdir/lib$name.la"
19403 if test "X$found_dir" = "X"; then
19404 for x
in $LDFLAGS $LTLIBXXHASH; do
19406 acl_save_prefix
="$prefix"
19407 prefix
="$acl_final_prefix"
19408 acl_save_exec_prefix
="$exec_prefix"
19409 exec_prefix
="$acl_final_exec_prefix"
19411 exec_prefix
="$acl_save_exec_prefix"
19412 prefix
="$acl_save_prefix"
19416 dir
=`echo "X$x" | sed -e 's/^X-L//'`
19417 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
19419 found_so
="$dir/lib$name.$shlibext"
19420 if test -f "$dir/lib$name.la"; then
19421 found_la
="$dir/lib$name.la"
19423 elif test x
$lib_type != xshared
; then
19424 if test -f "$dir/lib$name.$libext"; then
19426 found_a
="$dir/lib$name.$libext"
19427 if test -f "$dir/lib$name.la"; then
19428 found_la
="$dir/lib$name.la"
19434 if test "X$found_dir" != "X"; then
19439 if test "X$found_dir" != "X"; then
19440 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$found_dir -l$name"
19441 if test "X$found_so" != "X"; then
19442 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
19443 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19446 for x
in $ltrpathdirs; do
19447 if test "X$x" = "X$found_dir"; then
19452 if test -z "$haveit"; then
19453 ltrpathdirs
="$ltrpathdirs $found_dir"
19455 if test "$hardcode_direct" = yes; then
19456 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19458 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
19459 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19461 for x
in $rpathdirs; do
19462 if test "X$x" = "X$found_dir"; then
19467 if test -z "$haveit"; then
19468 rpathdirs
="$rpathdirs $found_dir"
19472 for x
in $LDFLAGS $LIBXXHASH; do
19474 acl_save_prefix
="$prefix"
19475 prefix
="$acl_final_prefix"
19476 acl_save_exec_prefix
="$exec_prefix"
19477 exec_prefix
="$acl_final_exec_prefix"
19479 exec_prefix
="$acl_save_exec_prefix"
19480 prefix
="$acl_save_prefix"
19482 if test "X$x" = "X-L$found_dir"; then
19487 if test -z "$haveit"; then
19488 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir"
19490 if test "$hardcode_minus_L" != no
; then
19491 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19493 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
19499 if test "X$found_a" != "X"; then
19500 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_a"
19502 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir -l$name"
19505 additional_includedir
=
19506 case "$found_dir" in
19508 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
19509 additional_includedir
="$basedir/include"
19512 if test "X$additional_includedir" != "X"; then
19513 if test "X$additional_includedir" != "X/usr/include"; then
19515 if test "X$additional_includedir" = "X/usr/local/include"; then
19516 if test -n "$GCC"; then
19518 linux
*) haveit
=yes;;
19522 if test -z "$haveit"; then
19523 for x
in $CPPFLAGS $INCXXHASH; do
19525 acl_save_prefix
="$prefix"
19526 prefix
="$acl_final_prefix"
19527 acl_save_exec_prefix
="$exec_prefix"
19528 exec_prefix
="$acl_final_exec_prefix"
19530 exec_prefix
="$acl_save_exec_prefix"
19531 prefix
="$acl_save_prefix"
19533 if test "X$x" = "X-I$additional_includedir"; then
19538 if test -z "$haveit"; then
19539 if test -d "$additional_includedir"; then
19540 INCXXHASH
="${INCXXHASH}${INCXXHASH:+ }-I$additional_includedir"
19546 if test -n "$found_la"; then
19547 save_libdir
="$libdir"
19548 case "$found_la" in
19549 */* |
*\\*) .
"$found_la" ;;
19550 *) .
"./$found_la" ;;
19552 libdir
="$save_libdir"
19553 for dep
in $dependency_libs; do
19556 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
19557 if test "X$additional_libdir" != "X/usr/lib"; then
19559 if test "X$additional_libdir" = "X/usr/local/lib"; then
19560 if test -n "$GCC"; then
19562 linux
*) haveit
=yes;;
19566 if test -z "$haveit"; then
19568 for x
in $LDFLAGS $LIBXXHASH; do
19570 acl_save_prefix
="$prefix"
19571 prefix
="$acl_final_prefix"
19572 acl_save_exec_prefix
="$exec_prefix"
19573 exec_prefix
="$acl_final_exec_prefix"
19575 exec_prefix
="$acl_save_exec_prefix"
19576 prefix
="$acl_save_prefix"
19578 if test "X$x" = "X-L$additional_libdir"; then
19583 if test -z "$haveit"; then
19584 if test -d "$additional_libdir"; then
19585 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$additional_libdir"
19589 for x
in $LDFLAGS $LTLIBXXHASH; do
19591 acl_save_prefix
="$prefix"
19592 prefix
="$acl_final_prefix"
19593 acl_save_exec_prefix
="$exec_prefix"
19594 exec_prefix
="$acl_final_exec_prefix"
19596 exec_prefix
="$acl_save_exec_prefix"
19597 prefix
="$acl_save_prefix"
19599 if test "X$x" = "X-L$additional_libdir"; then
19604 if test -z "$haveit"; then
19605 if test -d "$additional_libdir"; then
19606 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$additional_libdir"
19613 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
19614 if test "$enable_rpath" != no
; then
19616 for x
in $rpathdirs; do
19617 if test "X$x" = "X$dir"; then
19622 if test -z "$haveit"; then
19623 rpathdirs
="$rpathdirs $dir"
19626 for x
in $ltrpathdirs; do
19627 if test "X$x" = "X$dir"; then
19632 if test -z "$haveit"; then
19633 ltrpathdirs
="$ltrpathdirs $dir"
19638 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19641 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19644 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$dep"
19645 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$dep"
19651 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
19652 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
19653 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l$name"
19655 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l:lib$name.$libext"
19656 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l:lib$name.$libext"
19663 if test "X$rpathdirs" != "X"; then
19664 if test -n "$hardcode_libdir_separator"; then
19666 for found_dir
in $rpathdirs; do
19667 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
19669 acl_save_libdir
="$libdir"
19671 eval flag
=\"$hardcode_libdir_flag_spec\"
19672 libdir
="$acl_save_libdir"
19673 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
19675 for found_dir
in $rpathdirs; do
19676 acl_save_libdir
="$libdir"
19677 libdir
="$found_dir"
19678 eval flag
=\"$hardcode_libdir_flag_spec\"
19679 libdir
="$acl_save_libdir"
19680 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
19684 if test "X$ltrpathdirs" != "X"; then
19685 for found_dir
in $ltrpathdirs; do
19686 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-R$found_dir"
19691 ac_save_CPPFLAGS
="$CPPFLAGS"
19693 for element
in $INCXXHASH; do
19695 for x
in $CPPFLAGS; do
19697 acl_save_prefix
="$prefix"
19698 prefix
="$acl_final_prefix"
19699 acl_save_exec_prefix
="$exec_prefix"
19700 exec_prefix
="$acl_final_exec_prefix"
19702 exec_prefix
="$acl_save_exec_prefix"
19703 prefix
="$acl_save_prefix"
19705 if test "X$x" = "X$element"; then
19710 if test -z "$haveit"; then
19711 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5
19717 $as_echo_n "checking for libxxhash... " >&6; }
19718 if ${ac_cv_libxxhash+:} false
; then :
19719 $as_echo_n "(cached) " >&6
19722 ac_save_LIBS
="$LIBS"
19723 LIBS
="$LIBS $LIBXXHASH"
19724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19725 /* end confdefs.h. */
19726 #include <xxhash.h>
19730 XXH32("foo", 3, 0);
19736 if ac_fn_c_try_link
"$LINENO"; then :
19737 ac_cv_libxxhash
=yes
19741 rm -f core conftest.err conftest.
$ac_objext \
19742 conftest
$ac_exeext conftest.
$ac_ext
19743 LIBS
="$ac_save_LIBS"
19746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxxhash" >&5
19747 $as_echo "$ac_cv_libxxhash" >&6; }
19748 if test "$ac_cv_libxxhash" = yes; then
19751 $as_echo "#define HAVE_LIBXXHASH 1" >>confdefs.h
19753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libxxhash" >&5
19754 $as_echo_n "checking how to link with libxxhash... " >&6; }
19755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXXHASH" >&5
19756 $as_echo "$LIBXXHASH" >&6; }
19759 CPPFLAGS
="$ac_save_CPPFLAGS"
19769 if test "$HAVE_LIBXXHASH" != yes; then
19770 if test "$with_xxhash" = yes; then
19771 as_fn_error $?
"xxhash is missing or unusable" "$LINENO" 5
19774 if test "x$with_xxhash" = "xauto"; then
19775 with_xxhash
="$HAVE_LIBXXHASH"
19779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
19780 $as_echo_n "checking whether to use xxhash... " >&6; }
19781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
19782 $as_echo "$with_xxhash" >&6; }
19786 if test "${nativefile}" != ""; then
19787 case "${nativefile}" in
19788 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
19789 * ) GDB_NM_FILE
="${nativefile}"
19791 ac_config_links
="$ac_config_links nm.h:$GDB_NM_FILE"
19794 cat >>confdefs.h
<<_ACEOF
19795 #define GDB_NM_FILE "${GDB_NM_FILE}"
19803 for ac_prog
in xsltproc
19805 # Extract the first word of "$ac_prog", so it can be a program name with args.
19806 set dummy
$ac_prog; ac_word
=$2
19807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19808 $as_echo_n "checking for $ac_word... " >&6; }
19809 if ${ac_cv_path_XSLTPROC+:} false
; then :
19810 $as_echo_n "(cached) " >&6
19814 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
19817 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19818 for as_dir
in $PATH
19821 test -z "$as_dir" && as_dir
=.
19822 for ac_exec_ext
in '' $ac_executable_extensions; do
19823 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19824 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
19825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19835 XSLTPROC
=$ac_cv_path_XSLTPROC
19836 if test -n "$XSLTPROC"; then
19837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19838 $as_echo "$XSLTPROC" >&6; }
19840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19841 $as_echo "no" >&6; }
19845 test -n "$XSLTPROC" && break
19847 test -n "$XSLTPROC" || XSLTPROC
="missing"
19849 if test "x$USE_MAINTAINER_MODE" = xyes
; then
19850 if test "${XSLTPROC}" = missing
; then
19851 as_fn_error $?
"unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
19859 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
19863 # Check whether we will enable the inclusion of unit tests when
19866 # The default value of this option changes depending whether we're on
19867 # development mode (in which case it's "true") or not (in which case
19868 # it's "false"). The $development variable is set by the GDB_AC_COMMON
19869 # macro, which must therefore be used before GDB_AC_SELFTEST.
19871 if test "x$development" != xtrue
&& test "x$development" != xfalse
; then :
19872 as_fn_error $?
"Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
19875 # Check whether --enable-unit-tests was given.
19876 if test "${enable_unit_tests+set}" = set; then :
19877 enableval
=$enable_unit_tests; case "${enableval}" in
19878 yes) enable_unittests
=true
;;
19879 no
) enable_unittests
=false
;;
19880 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
19883 enable_unittests
=$development
19887 if $enable_unittests; then
19889 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
19892 CONFIG_OBS
="$CONFIG_OBS \$(SELFTESTS_OBS)"
19893 CONFIG_SRCS
="$CONFIG_SRCS \$(SELFTESTS_SRCS)"
19899 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19900 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
19901 if test "x$GDB_TRANSFORM_NAME" = x
; then
19902 GDB_TRANSFORM_NAME
=gdb
19907 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19908 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
19909 if test "x$GCORE_TRANSFORM_NAME" = x
; then
19910 GCORE_TRANSFORM_NAME
=gcore
19914 ac_config_files
="$ac_config_files gcore"
19916 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
19919 cat >confcache
<<\_ACEOF
19920 # This file is a shell script that caches the results of configure
19921 # tests run on this system so they can be shared between configure
19922 # scripts and configure runs, see configure's option --config-cache.
19923 # It is not useful on other systems. If it contains results you don't
19924 # want to keep, you may remove or edit it.
19926 # config.status only pays attention to the cache file if you give it
19927 # the --recheck option to rerun configure.
19929 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19930 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19931 # following values.
19935 # The following way of writing the cache mishandles newlines in values,
19936 # but we know of no workaround that is simple, portable, and efficient.
19937 # So, we kill variables containing newlines.
19938 # Ultrix sh set writes to stderr and can't be redirected directly,
19939 # and sets the high bit in the cache file unless we assign to the vars.
19941 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19942 eval ac_val
=\$
$ac_var
19946 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19947 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19950 _ | IFS | as_nl
) ;; #(
19951 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
19952 *) { eval $ac_var=; unset $ac_var;} ;;
19958 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19959 *${as_nl}ac_space
=\
*)
19960 # `set' does not quote correctly, so add quotes: double-quote
19961 # substitution turns \\\\ into \\, and sed turns \\ into \.
19964 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19967 # `set' quotes correctly as required by POSIX, so do not add quotes.
19968 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19977 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19979 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19981 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
19982 if test -w "$cache_file"; then
19983 if test "x$cache_file" != "x/dev/null"; then
19984 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19985 $as_echo "$as_me: updating cache $cache_file" >&6;}
19986 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
19987 cat confcache
>"$cache_file"
19989 case $cache_file in #(
19991 mv -f confcache
"$cache_file"$$
&&
19992 mv -f "$cache_file"$$
"$cache_file" ;; #(
19994 mv -f confcache
"$cache_file" ;;
19999 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20000 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20005 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
20006 # Let make expand exec_prefix.
20007 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
20009 DEFS
=-DHAVE_CONFIG_H
20014 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
20015 # 1. Remove the extension, and $U if already installed.
20016 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
20017 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
20018 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20019 # will be set to the directory where LIBOBJS objects are built.
20020 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20021 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
20023 LIBOBJS
=$ac_libobjs
20025 LTLIBOBJS
=$ac_ltlibobjs
20028 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20029 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
20030 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20032 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
20033 as_fn_error $?
"conditional \"HAVE_PYTHON\" was never defined.
20034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20036 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
20037 as_fn_error $?
"conditional \"HAVE_GUILE\" was never defined.
20038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20042 : "${CONFIG_STATUS=./config.status}"
20044 ac_clean_files_save
=$ac_clean_files
20045 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
20046 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20047 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20049 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20051 # Generated by $as_me.
20052 # Run this file to recreate the current configuration.
20053 # Compiler output produced by configure, useful for debugging
20054 # configure, is in config.log if it exists.
20057 ac_cs_recheck=false
20060 SHELL=\${CONFIG_SHELL-$SHELL}
20063 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
20064 ## -------------------- ##
20065 ## M4sh Initialization. ##
20066 ## -------------------- ##
20068 # Be more Bourne compatible
20069 DUALCASE
=1; export DUALCASE
# for MKS sh
20070 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20073 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20074 # is contrary to our usage. Disable this feature.
20075 alias -g '${1+"$@"}'='"$@"'
20076 setopt NO_GLOB_SUBST
20078 case `(set -o) 2>/dev/null` in #(
20090 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20091 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20092 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20093 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20094 # Prefer a ksh shell builtin over an external printf program on Solaris,
20095 # but without wasting forks for bash or zsh.
20096 if test -z "$BASH_VERSION$ZSH_VERSION" \
20097 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20098 as_echo='print
-r --'
20099 as_echo_n='print
-rn --'
20100 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20101 as_echo='printf %s
\n'
20102 as_echo_n='printf %s
'
20104 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20105 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
20106 as_echo_n='/usr
/ucb
/echo -n'
20108 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20109 as_echo_n_body='eval
20113 expr "X$arg" : "X\\(.*\\)$as_nl";
20114 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20116 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
20118 export as_echo_n_body
20119 as_echo_n='sh
-c $as_echo_n_body as_echo
'
20121 export as_echo_body
20122 as_echo='sh
-c $as_echo_body as_echo
'
20125 # The user is always right.
20126 if test "${PATH_SEPARATOR+set}" != set; then
20128 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20129 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20136 # We need space, tab and new line, in precisely that order. Quoting is
20137 # there to prevent editors from complaining about space-tab.
20138 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20139 # splitting by setting IFS to empty value.)
20142 # Find who we are. Look in the path if we contain no directory separator.
20145 *[\\/]* ) as_myself=$0 ;;
20146 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20147 for as_dir in $PATH
20150 test -z "$as_dir" && as_dir=.
20151 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20157 # We did not find ourselves, most probably we were run as `sh COMMAND'
20158 # in which case we are not to be found in the path.
20159 if test "x$as_myself" = x
; then
20162 if test ! -f "$as_myself"; then
20163 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20167 # Unset variables that we do not need and which cause bugs (e.g. in
20168 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20169 # suppresses any "Segmentation fault" message there. '((' could
20170 # trigger a bug in pdksh 5.2.14.
20171 for as_var
in BASH_ENV ENV MAIL MAILPATH
20172 do eval test x\
${$as_var+set} = xset \
20173 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
20186 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
20189 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20190 # ----------------------------------------
20191 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20192 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20193 # script with STATUS, using 1 if that was 0.
20196 as_status
=$1; test $as_status -eq 0 && as_status
=1
20198 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
20199 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20201 $as_echo "$as_me: error: $2" >&2
20202 as_fn_exit
$as_status
20206 # as_fn_set_status STATUS
20207 # -----------------------
20208 # Set $? to STATUS, without forking.
20209 as_fn_set_status
()
20212 } # as_fn_set_status
20214 # as_fn_exit STATUS
20215 # -----------------
20216 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20220 as_fn_set_status
$1
20226 # Portably unset VAR.
20229 { eval $1=; unset $1;}
20231 as_unset
=as_fn_unset
20232 # as_fn_append VAR VALUE
20233 # ----------------------
20234 # Append the text in VALUE to the end of the definition contained in VAR. Take
20235 # advantage of any shell optimizations that allow amortized linear growth over
20236 # repeated appends, instead of the typical quadratic growth present in naive
20238 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
20239 eval 'as_fn_append ()
20250 # as_fn_arith ARG...
20251 # ------------------
20252 # Perform arithmetic evaluation on the ARGs, and store the result in the
20253 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20254 # must be portable across $(()) and expr.
20255 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
20256 eval 'as_fn_arith ()
20263 as_val
=`expr "$@" || test $? -eq 1`
20268 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20269 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20275 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20276 as_basename
=basename
20281 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
20287 as_me
=`$as_basename -- "$0" ||
20288 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20289 X"$0" : 'X\(//\)$' \| \
20290 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20292 sed '/^.*\/\([^/][^/]*\)\/*$/{
20306 # Avoid depending upon Character Ranges.
20307 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
20308 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20309 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
20310 as_cr_digits
='0123456789'
20311 as_cr_alnum
=$as_cr_Letters$as_cr_digits
20313 ECHO_C
= ECHO_N
= ECHO_T
=
20314 case `echo -n x` in #(((((
20316 case `echo 'xy\c'` in
20317 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
20319 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
20326 rm -f conf$$ conf$$.exe conf$$.
file
20327 if test -d conf$$.dir
; then
20328 rm -f conf$$.dir
/conf$$.
file
20331 mkdir conf$$.dir
2>/dev
/null
20333 if (echo >conf$$.
file) 2>/dev
/null
; then
20334 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20336 # ... but there are two gotchas:
20337 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20338 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20339 # In both cases, we have to default to `cp -pR'.
20340 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
20342 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20350 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
20351 rmdir conf$$.dir
2>/dev
/null
20356 # Create "$as_dir" as a directory, including parents if necessary.
20361 -*) as_dir
=.
/$as_dir;;
20363 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
20367 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20368 *) as_qdir
=$as_dir;;
20370 as_dirs
="'$as_qdir' $as_dirs"
20371 as_dir
=`$as_dirname -- "$as_dir" ||
20372 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20373 X"$as_dir" : 'X\(//\)[^/]' \| \
20374 X"$as_dir" : 'X\(//\)$' \| \
20375 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20376 $as_echo X"$as_dir" |
20377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20381 /^X\(\/\/\)[^/].*/{
20394 test -d "$as_dir" && break
20396 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
20397 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
20401 if mkdir
-p .
2>/dev
/null
; then
20402 as_mkdir_p
='mkdir -p "$as_dir"'
20404 test -d .
/-p && rmdir .
/-p
20409 # as_fn_executable_p FILE
20410 # -----------------------
20411 # Test if FILE is an executable regular file.
20412 as_fn_executable_p
()
20414 test -f "$1" && test -x "$1"
20415 } # as_fn_executable_p
20416 as_test_x
='test -x'
20417 as_executable_p
=as_fn_executable_p
20419 # Sed expression to map a string onto a valid CPP name.
20420 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20422 # Sed expression to map a string onto a valid variable name.
20423 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20427 ## ----------------------------------- ##
20428 ## Main body of $CONFIG_STATUS script. ##
20429 ## ----------------------------------- ##
20431 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
20433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20434 # Save the log message, to keep $0 and so on meaningful, and to
20435 # report actual input values of CONFIG_FILES etc. instead of their
20436 # values after options handling.
20438 This file was extended by $as_me, which was
20439 generated by GNU Autoconf 2.69. Invocation command line was
20441 CONFIG_FILES = $CONFIG_FILES
20442 CONFIG_HEADERS = $CONFIG_HEADERS
20443 CONFIG_LINKS = $CONFIG_LINKS
20444 CONFIG_COMMANDS = $CONFIG_COMMANDS
20447 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20452 case $ac_config_files in *"
20453 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
20456 case $ac_config_headers in *"
20457 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
20461 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20462 # Files that config.status was made for.
20463 config_files="$ac_config_files"
20464 config_headers="$ac_config_headers"
20465 config_links="$ac_config_links"
20466 config_commands="$ac_config_commands"
20470 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20472 \`$as_me' instantiates files and other configuration actions
20473 from templates according to the current configuration. Unless the files
20474 and actions are specified as TAGs, all are instantiated by default.
20476 Usage: $0 [OPTION]... [TAG]...
20478 -h, --help print this help, then exit
20479 -V, --version print version number and configuration settings, then exit
20480 --config print configuration, then exit
20481 -q, --quiet, --silent
20482 do not print progress messages
20483 -d, --debug don't remove temporary files
20484 --recheck update $as_me by reconfiguring in the same conditions
20485 --file=FILE[:TEMPLATE]
20486 instantiate the configuration file FILE
20487 --header=FILE[:TEMPLATE]
20488 instantiate the configuration header FILE
20490 Configuration files:
20493 Configuration headers:
20496 Configuration links:
20499 Configuration commands:
20502 Report bugs to the package provider."
20505 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20506 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20509 configured by $0, generated by GNU Autoconf 2.69,
20510 with options \\"\$ac_cs_config\\"
20512 Copyright (C) 2012 Free Software Foundation, Inc.
20513 This config.status script is free software; the Free Software Foundation
20514 gives unlimited permission to copy, distribute and modify it."
20520 test -n "\$AWK" || AWK=awk
20523 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20524 # The default lists apply if the user does not specify any file.
20530 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20531 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20535 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20547 # Handling of the options.
20548 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20550 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20551 $as_echo "$ac_cs_version"; exit ;;
20552 --config |
--confi |
--conf |
--con |
--co |
--c )
20553 $as_echo "$ac_cs_config"; exit ;;
20554 --debug |
--debu |
--deb |
--de |
--d |
-d )
20556 --file |
--fil |
--fi |
--f )
20559 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20560 '') as_fn_error $?
"missing file argument" ;;
20562 as_fn_append CONFIG_FILES
" '$ac_optarg'"
20563 ac_need_defaults
=false
;;
20564 --header |
--heade |
--head |
--hea )
20567 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20569 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
20570 ac_need_defaults
=false
;;
20572 # Conflict between --help and --header
20573 as_fn_error $?
"ambiguous option: \`$1'
20574 Try \`$0 --help' for more information.";;
20575 --help |
--hel |
-h )
20576 $as_echo "$ac_cs_usage"; exit ;;
20577 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20578 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20581 # This is an error.
20582 -*) as_fn_error $?
"unrecognized option: \`$1'
20583 Try \`$0 --help' for more information." ;;
20585 *) as_fn_append ac_config_targets
" $1"
20586 ac_need_defaults
=false
;;
20592 ac_configure_extra_args
=
20594 if $ac_cs_silent; then
20596 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20601 if \$ac_cs_recheck; then
20602 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20604 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20605 CONFIG_SHELL='$SHELL'
20606 export CONFIG_SHELL
20611 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20615 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20616 ## Running $as_me. ##
20622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20626 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
20627 GDB_NM_FILE=$GDB_NM_FILE
20631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20633 # Handling of arguments.
20634 for ac_config_target
in $ac_config_targets
20636 case $ac_config_target in
20637 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
20638 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
20639 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
20640 "nm.h") CONFIG_LINKS
="$CONFIG_LINKS nm.h:$GDB_NM_FILE" ;;
20641 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
20642 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20643 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
20644 "gdb-gdb.py") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.py" ;;
20645 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
20646 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
20648 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20653 # If the user did not use the arguments to specify the items to instantiate,
20654 # then the envvar interface is used. Set only those that are not.
20655 # We use the long form for the default assignment because of an extremely
20656 # bizarre bug on SunOS 4.1.3.
20657 if $ac_need_defaults; then
20658 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20659 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20660 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
20661 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20664 # Have a temporary directory for convenience. Make it in the build tree
20665 # simply because there is no reason against having it here, and in addition,
20666 # creating and moving files from /tmp can sometimes cause problems.
20667 # Hook for its removal unless debugging.
20668 # Note that there is a small window in which the directory will not be cleaned:
20669 # after its creation but before its name has been assigned to `$tmp'.
20673 trap 'exit_status=$?
20674 : "${ac_tmp:=$tmp}"
20675 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20677 trap 'as_fn_exit 1' 1 2 13 15
20679 # Create a (secure) tmp directory for tmp files.
20682 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20686 tmp
=.
/conf$$
-$RANDOM
20687 (umask 077 && mkdir
"$tmp")
20688 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
20691 # Set up the scripts for CONFIG_FILES section.
20692 # No need to generate them if there are no CONFIG_FILES.
20693 # This happens for instance with `./config.status config.h'.
20694 if test -n "$CONFIG_FILES"; then
20696 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
20697 ac_cs_awk_getline
=:
20698 ac_cs_awk_pipe_init
=
20699 ac_cs_awk_read_file
='
20700 while ((getline aline < (F[key])) > 0)
20703 ac_cs_awk_pipe_fini
=
20705 ac_cs_awk_getline
=false
20706 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
20707 ac_cs_awk_read_file
='
20709 print "cat " F[key] " &&"
20710 '$ac_cs_awk_pipe_init
20711 # The final `:' finishes the AND list.
20712 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
20714 ac_cr
=`echo X | tr X '\015'`
20715 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20716 # But we know of no other shell where ac_cr would be empty at this
20717 # point, so we can use a bashism as a fallback.
20718 if test "x$ac_cr" = x
; then
20719 eval ac_cr
=\$
\'\\r
\'
20721 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20722 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20725 ac_cs_awk_cr
=$ac_cr
20728 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20731 # Create commands to substitute file output variables.
20733 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20734 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
20735 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
20738 } >conf$
$files.sh
&&
20739 . .
/conf$
$files.sh ||
20740 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
20741 rm -f conf$
$files.sh
20744 echo "cat >conf$$subs.awk <<_ACEOF" &&
20745 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20747 } >conf$$subs.sh ||
20748 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20749 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20751 for ac_last_try in false false false false false :; do
20752 . ./conf$$subs.sh ||
20753 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20755 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20756 if test $ac_delim_n = $ac_delim_num; then
20758 elif $ac_last_try; then
20759 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20761 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20764 rm -f conf$$subs.sh
20766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20767 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
20771 s/^/S["/; s
/!.
*/"]=/
20781 s/\(.\{148\}\)..*/\1/
20783 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
20788 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20795 s/\(.\{148\}\)..*/\1/
20797 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
20801 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20806 ' <conf$$subs.awk | sed '
20811 ' >>$CONFIG_STATUS || ac_write_fail=1
20812 rm -f conf$$subs.awk
20813 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20815 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
20816 for (key in S) S_is_set[key] = 1
20818 \$ac_cs_awk_pipe_init
20822 nfields = split(line, field, "@
")
20824 len = length(field[1])
20825 for (i = 2; i < nfields; i++) {
20827 keylen = length(key)
20828 if (S_is_set[key]) {
20830 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20831 len += length(value) + length(field[++i])
20836 if (nfields == 3 && !substed) {
20838 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
20839 \$ac_cs_awk_read_file
20845 \$ac_cs_awk_pipe_fini
20848 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20849 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20850 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
20853 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
20854 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
20857 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20858 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
20859 # trailing colons and then remove the whole line if VPATH becomes empty
20860 # (actually we leave an empty line to preserve line numbers).
20861 if test "x
$srcdir" = x.; then
20862 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20881 fi # test -n "$CONFIG_FILES"
20883 # Set up the scripts for CONFIG_HEADERS section.
20884 # No need to generate them if there are no CONFIG_HEADERS.
20885 # This happens for instance with `./config.status Makefile'.
20886 if test -n "$CONFIG_HEADERS"; then
20887 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
20891 # Transform confdefs.h into an awk script `defines.awk', embedded as
20892 # here-document in config.status, that substitutes the proper values into
20893 # config.h.in to produce config.h.
20895 # Create a delimiter string that does not exist in confdefs.h, to ease
20896 # handling of long lines.
20898 for ac_last_try in false false :; do
20899 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
20900 if test -z "$ac_tt"; then
20902 elif $ac_last_try; then
20903 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
20905 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20909 # For the awk script, D is an array of macro values keyed by name,
20910 # likewise P contains macro parameters if any. Preserve backslash
20911 # newline sequences.
20913 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20915 s/.\{148\}/&'"$ac_delim"'/g
20918 s/^[ ]*#[ ]*define[ ][ ]*/ /
20925 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
20927 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
20931 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
20932 D["\
1"]=" \
3\\\\\\n
"\\/p
20934 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
20939 s/.\{148\}/&'"$ac_delim"'/g
20944 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
20947 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
20949 ' <confdefs.h | sed '
20950 s/'"$ac_delim"'/"\\\
20951 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20954 for (key in D) D_is_set[key] = 1
20957 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20959 split(line, arg, " ")
20960 if (arg[1] == "#") {
20964 defundef
= substr
(arg
[1], 2)
20967 split(mac1
, mac2
, "(") #)
20969 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
20970 if (D_is_set
[macro
]) {
20971 # Preserve the white space surrounding the "#".
20972 print prefix
"define", macro P
[macro
] D
[macro
]
20975 # Replace #undef with comments. This is necessary, for example,
20976 # in the case of _POSIX_SOURCE, which is predefined and required
20977 # on some systems where configure will not decide to define it.
20978 if (defundef
== "undef") {
20979 print
"/*", prefix defundef
, macro
, "*/"
20987 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20988 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
20989 fi # test -n "$CONFIG_HEADERS"
20992 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
20997 :[FHLC
]) ac_mode
=$ac_tag; continue;;
20999 case $ac_mode$ac_tag in
21001 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
21002 :[FH
]-) ac_tag
=-:-;;
21003 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
21020 -) ac_f
="$ac_tmp/stdin";;
21021 *) # Look for the file first in the build tree, then in the source tree
21022 # (if the path is not absolute). The absolute path cannot be DOS-style,
21023 # because $ac_f cannot contain `:'.
21027 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
21029 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21031 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21032 as_fn_append ac_file_inputs
" '$ac_f'"
21035 # Let's still pretend it is `configure' which instantiates (i.e., don't
21036 # use $as_me), people would be surprised to read:
21037 # /* config.h. Generated by config.status. */
21038 configure_input
='Generated from '`
21039 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21041 if test x
"$ac_file" != x-
; then
21042 configure_input
="$ac_file. $configure_input"
21043 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21044 $as_echo "$as_me: creating $ac_file" >&6;}
21046 # Neutralize special characters interpreted by sed in replacement strings.
21047 case $configure_input in #(
21048 *\
&* |
*\|
* |
*\\* )
21049 ac_sed_conf_input
=`$as_echo "$configure_input" |
21050 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21051 *) ac_sed_conf_input
=$configure_input;;
21055 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
21056 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
21061 ac_dir
=`$as_dirname -- "$ac_file" ||
21062 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21063 X"$ac_file" : 'X\(//\)[^/]' \| \
21064 X"$ac_file" : 'X\(//\)$' \| \
21065 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21066 $as_echo X"$ac_file" |
21067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21071 /^X\(\/\/\)[^/].*/{
21084 as_dir
="$ac_dir"; as_fn_mkdir_p
21088 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21090 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21091 # A ".." for each directory in $ac_dir_suffix.
21092 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21093 case $ac_top_builddir_sub in
21094 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21095 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
21098 ac_abs_top_builddir
=$ac_pwd
21099 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
21100 # for backward compatibility:
21101 ac_top_builddir
=$ac_top_build_prefix
21104 .
) # We are building in place.
21106 ac_top_srcdir
=$ac_top_builddir_sub
21107 ac_abs_top_srcdir
=$ac_pwd ;;
21108 [\\/]* | ?
:[\\/]* ) # Absolute name.
21109 ac_srcdir
=$srcdir$ac_dir_suffix;
21110 ac_top_srcdir
=$srcdir
21111 ac_abs_top_srcdir
=$srcdir ;;
21112 *) # Relative name.
21113 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
21114 ac_top_srcdir
=$ac_top_build_prefix$srcdir
21115 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
21117 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
21127 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
21128 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
21132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21133 # If the template does not know about datarootdir, expand it.
21134 # FIXME: This hack should be removed a few years after 2.60.
21135 ac_datarootdir_hack
=; ac_datarootdir_seen
=
21146 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21147 *datarootdir
*) ac_datarootdir_seen
=yes;;
21148 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
21149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21150 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21153 ac_datarootdir_hack='
21154 s&@datadir@&$datadir&g
21155 s&@docdir@&$docdir&g
21156 s&@infodir@&$infodir&g
21157 s&@localedir@&$localedir&g
21158 s&@mandir@&$mandir&g
21159 s&\\\${datarootdir}&$datarootdir&g' ;;
21163 # Neutralize VPATH when `$srcdir' = `.'.
21164 # Shell code in configure.ac might set extrasub.
21165 # FIXME: do we really want to maintain this feature?
21166 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21167 ac_sed_extra="$ac_vpsub
21170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21172 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
21173 s|@configure_input@|
$ac_sed_conf_input|
;t t
21174 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
21175 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
21176 s
&@srcdir@
&$ac_srcdir&;t t
21177 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
21178 s
&@top_srcdir@
&$ac_top_srcdir&;t t
21179 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
21180 s
&@builddir@
&$ac_builddir&;t t
21181 s
&@abs_builddir@
&$ac_abs_builddir&;t t
21182 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
21183 s
&@INSTALL@
&$ac_INSTALL&;t t
21184 $ac_datarootdir_hack
21186 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
21187 if $ac_cs_awk_getline; then
21188 $AWK -f "$ac_tmp/subs.
awk"
21190 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
21192 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
21194 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21195 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
21196 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21197 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
21198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
21199 which seems to be undefined. Please make sure it is defined" >&5
21200 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
21201 which seems to be undefined. Please make sure it is defined" >&2;}
21203 rm -f "$ac_tmp/stdin"
21205 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21206 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21208 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21214 if test x"$ac_file" != x-; then
21216 $as_echo "/* $configure_input */" \
21217 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21218 } >"$ac_tmp/config.h" \
21219 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21220 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21221 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21222 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21225 mv "$ac_tmp/config.h" "$ac_file" \
21226 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21229 $as_echo "/* $configure_input */" \
21230 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21231 || as_fn_error $? "could not create -" "$LINENO" 5
21239 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
21242 # Prefer the file from the source tree if names are identical.
21243 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
21244 ac_source=$srcdir/$ac_source
21247 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
21248 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
21250 if test ! -r "$ac_source"; then
21251 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
21255 # Try a relative symlink, then a hard link, then a copy.
21257 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
21258 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
21260 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
21261 ln "$ac_source" "$ac_file" 2>/dev/null ||
21262 cp -p "$ac_source" "$ac_file" ||
21263 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
21266 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21267 $as_echo "$as_me: executing $ac_file commands" >&6;}
21272 case $ac_file$ac_mode in
21273 "config.h":H) echo > stamp-h ;;
21274 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
21275 "nm.h":L) echo > stamp-nmh ;;
21276 "gcore":F) chmod +x gcore ;;
21284 ac_clean_files=$ac_clean_files_save
21286 test $ac_write_fail = 0 ||
21287 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21290 # configure is writing to config.log, and then calls config.status.
21291 # config.status does its own redirection, appending to config.log.
21292 # Unfortunately, on DOS this fails, as config.log is still kept open
21293 # by configure, so config.status won't be able to
write to it
; its
21294 # output is simply discarded. So we exec the FD to /dev/null,
21295 # effectively closing config.log, so it can be properly (re)opened and
21296 # appended to by config.status. When coming back to configure, we
21297 # need to make the FD available again.
21298 if test "$no_create" != yes; then
21300 ac_config_status_args
=
21301 test "$silent" = yes &&
21302 ac_config_status_args
="$ac_config_status_args --quiet"
21304 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21306 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21307 # would make configure fail if this is the last instruction.
21308 $ac_cs_success || as_fn_exit
1
21312 # CONFIG_SUBDIRS section.
21314 if test "$no_recursion" != yes; then
21316 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
21317 # so they do not pile up.
21318 ac_sub_configure_args
=
21320 eval "set x $ac_configure_args"
21324 if test -n "$ac_prev"; then
21329 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
21330 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
21331 ac_prev
=cache_file
;;
21332 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
21333 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
21336 --config-cache |
-C)
21338 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
21340 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
21342 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
21344 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
21346 --disable-option-checking)
21350 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21352 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
21356 # Always prepend --prefix to ensure using the same prefix
21357 # in subdir configurations.
21358 ac_arg
="--prefix=$prefix"
21360 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21362 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
21365 if test "$silent" = yes; then
21366 ac_sub_configure_args
="--silent $ac_sub_configure_args"
21369 # Always prepend --disable-option-checking to silence warnings, since
21370 # different subdirs can have different --enable and --with options.
21371 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
21374 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
21376 # Do not complain, so a configure script can configure whichever
21377 # parts of a large source tree are present.
21378 test -d "$srcdir/$ac_dir" ||
continue
21380 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21381 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
21382 $as_echo "$ac_msg" >&6
21383 as_dir
="$ac_dir"; as_fn_mkdir_p
21387 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21389 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21390 # A ".." for each directory in $ac_dir_suffix.
21391 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21392 case $ac_top_builddir_sub in
21393 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21394 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
21397 ac_abs_top_builddir
=$ac_pwd
21398 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
21399 # for backward compatibility:
21400 ac_top_builddir
=$ac_top_build_prefix
21403 .
) # We are building in place.
21405 ac_top_srcdir
=$ac_top_builddir_sub
21406 ac_abs_top_srcdir
=$ac_pwd ;;
21407 [\\/]* | ?
:[\\/]* ) # Absolute name.
21408 ac_srcdir
=$srcdir$ac_dir_suffix;
21409 ac_top_srcdir
=$srcdir
21410 ac_abs_top_srcdir
=$srcdir ;;
21411 *) # Relative name.
21412 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
21413 ac_top_srcdir
=$ac_top_build_prefix$srcdir
21414 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
21416 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
21421 # Check for guested configure; otherwise get Cygnus style configure.
21422 if test -f "$ac_srcdir/configure.gnu"; then
21423 ac_sub_configure
=$ac_srcdir/configure.gnu
21424 elif test -f "$ac_srcdir/configure"; then
21425 ac_sub_configure
=$ac_srcdir/configure
21426 elif test -f "$ac_srcdir/configure.in"; then
21427 # This should be Cygnus configure.
21428 ac_sub_configure
=$ac_aux_dir/configure
21430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
21431 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21435 # The recursion is here.
21436 if test -n "$ac_sub_configure"; then
21437 # Make the cache file name correct relative to the subdirectory.
21438 case $cache_file in
21439 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
21440 *) # Relative name.
21441 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
21444 { $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
21445 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21446 # The eval makes quoting arguments work.
21447 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21448 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21449 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
21455 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
21456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21457 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}