2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="main.c"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
622 enable_option_checking
=no
624 ac_subst_vars
='LTLIBOBJS
640 HAVE_NATIVE_GCORE_HOST
740 READLINE_TEXI_INCFLAG
769 HAVE_NATIVE_GCORE_TARGET
795 INSTALL_STRIP_PROGRAM
824 MAINTAINER_MODE_FALSE
853 program_transform_name
864 ac_subst_files
='nat_makefile_frag'
866 enable_option_checking
867 enable_maintainer_mode
870 with_separate_debug_dir
872 with_relocated_sources
874 with_auto_load_safe_path
904 enable_source_highlight
911 with_system_gdbinit_dir
913 enable_build_warnings
914 enable_gdb_build_warnings
924 with_libbabeltrace_prefix
925 with_libbabeltrace_type
928 with_libxxhash_prefix
932 ac_precious_vars
='build_alias
954 ac_subdirs_all
='testsuite
957 # Initialize some variables set by options.
959 ac_init_version
=false
960 ac_unrecognized_opts
=
962 # The variables have the same names as the options, with
963 # dashes changed to underlines.
971 program_transform_name
=s
,x
,x
,
979 # Installation directory options.
980 # These are left unexpanded so users can "make install exec_prefix=/foo"
981 # and all the variables that are supposed to be based on exec_prefix
982 # by default will actually change.
983 # Use braces instead of parens because sh, perl, etc. also accept them.
984 # (The list follows the same order as the GNU Coding Standards.)
985 bindir
='${exec_prefix}/bin'
986 sbindir
='${exec_prefix}/sbin'
987 libexecdir
='${exec_prefix}/libexec'
988 datarootdir
='${prefix}/share'
989 datadir
='${datarootdir}'
990 sysconfdir
='${prefix}/etc'
991 sharedstatedir
='${prefix}/com'
992 localstatedir
='${prefix}/var'
993 includedir
='${prefix}/include'
994 oldincludedir
='/usr/include'
995 docdir
='${datarootdir}/doc/${PACKAGE}'
996 infodir
='${datarootdir}/info'
1001 libdir
='${exec_prefix}/lib'
1002 localedir
='${datarootdir}/locale'
1003 mandir
='${datarootdir}/man'
1009 # If the previous option needs an argument, assign it.
1010 if test -n "$ac_prev"; then
1011 eval $ac_prev=\
$ac_option
1017 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1022 # Accept the important Cygnus configure options, so we can diagnose typos.
1024 case $ac_dashdash$ac_option in
1028 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1030 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1031 bindir
=$ac_optarg ;;
1033 -build |
--build |
--buil |
--bui |
--bu)
1034 ac_prev
=build_alias
;;
1035 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1036 build_alias
=$ac_optarg ;;
1038 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1039 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1040 ac_prev
=cache_file
;;
1041 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1042 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1043 cache_file
=$ac_optarg ;;
1045 --config-cache |
-C)
1046 cache_file
=config.cache
;;
1048 -datadir |
--datadir |
--datadi |
--datad)
1050 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1051 datadir
=$ac_optarg ;;
1053 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1054 |
--dataroo |
--dataro |
--datar)
1055 ac_prev
=datarootdir
;;
1056 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1057 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1058 datarootdir
=$ac_optarg ;;
1060 -disable-* |
--disable-*)
1061 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1062 # Reject names that are not valid shell variable names.
1063 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1064 as_fn_error $?
"invalid feature name: $ac_useropt"
1065 ac_useropt_orig
=$ac_useropt
1066 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1067 case $ac_user_opts in
1069 "enable_
$ac_useropt"
1071 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1072 ac_unrecognized_sep
=', ';;
1074 eval enable_
$ac_useropt=no
;;
1076 -docdir |
--docdir |
--docdi |
--doc |
--do)
1078 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1079 docdir
=$ac_optarg ;;
1081 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1083 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1084 dvidir
=$ac_optarg ;;
1086 -enable-* |
--enable-*)
1087 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1088 # Reject names that are not valid shell variable names.
1089 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1090 as_fn_error $?
"invalid feature name: $ac_useropt"
1091 ac_useropt_orig
=$ac_useropt
1092 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093 case $ac_user_opts in
1095 "enable_
$ac_useropt"
1097 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1098 ac_unrecognized_sep
=', ';;
1100 eval enable_
$ac_useropt=\
$ac_optarg ;;
1102 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1103 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1104 |
--exec |
--exe |
--ex)
1105 ac_prev
=exec_prefix
;;
1106 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1107 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1108 |
--exec=* |
--exe=* |
--ex=*)
1109 exec_prefix
=$ac_optarg ;;
1111 -gas |
--gas |
--ga |
--g)
1112 # Obsolete; use --with-gas.
1115 -help |
--help |
--hel |
--he |
-h)
1116 ac_init_help
=long
;;
1117 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1118 ac_init_help
=recursive
;;
1119 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1120 ac_init_help
=short
;;
1122 -host |
--host |
--hos |
--ho)
1123 ac_prev
=host_alias
;;
1124 -host=* |
--host=* |
--hos=* |
--ho=*)
1125 host_alias
=$ac_optarg ;;
1127 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1129 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1131 htmldir
=$ac_optarg ;;
1133 -includedir |
--includedir |
--includedi |
--included |
--include \
1134 |
--includ |
--inclu |
--incl |
--inc)
1135 ac_prev
=includedir
;;
1136 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1137 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1138 includedir
=$ac_optarg ;;
1140 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1142 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1143 infodir
=$ac_optarg ;;
1145 -libdir |
--libdir |
--libdi |
--libd)
1147 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1148 libdir
=$ac_optarg ;;
1150 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1151 |
--libexe |
--libex |
--libe)
1152 ac_prev
=libexecdir
;;
1153 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1154 |
--libexe=* |
--libex=* |
--libe=*)
1155 libexecdir
=$ac_optarg ;;
1157 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1158 ac_prev
=localedir
;;
1159 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1160 localedir
=$ac_optarg ;;
1162 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1163 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1164 ac_prev
=localstatedir
;;
1165 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1166 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1167 localstatedir
=$ac_optarg ;;
1169 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1171 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1172 mandir
=$ac_optarg ;;
1174 -nfp |
--nfp |
--nf)
1175 # Obsolete; use --without-fp.
1178 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1179 |
--no-cr |
--no-c |
-n)
1182 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1183 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1186 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1187 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1188 |
--oldin |
--oldi |
--old |
--ol |
--o)
1189 ac_prev
=oldincludedir
;;
1190 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1191 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1192 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1193 oldincludedir
=$ac_optarg ;;
1195 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1197 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1198 prefix
=$ac_optarg ;;
1200 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1201 |
--program-pre |
--program-pr |
--program-p)
1202 ac_prev
=program_prefix
;;
1203 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1204 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1205 program_prefix
=$ac_optarg ;;
1207 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1208 |
--program-suf |
--program-su |
--program-s)
1209 ac_prev
=program_suffix
;;
1210 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1211 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1212 program_suffix
=$ac_optarg ;;
1214 -program-transform-name |
--program-transform-name \
1215 |
--program-transform-nam |
--program-transform-na \
1216 |
--program-transform-n |
--program-transform- \
1217 |
--program-transform |
--program-transfor \
1218 |
--program-transfo |
--program-transf \
1219 |
--program-trans |
--program-tran \
1220 |
--progr-tra |
--program-tr |
--program-t)
1221 ac_prev
=program_transform_name
;;
1222 -program-transform-name=* |
--program-transform-name=* \
1223 |
--program-transform-nam=* |
--program-transform-na=* \
1224 |
--program-transform-n=* |
--program-transform-=* \
1225 |
--program-transform=* |
--program-transfor=* \
1226 |
--program-transfo=* |
--program-transf=* \
1227 |
--program-trans=* |
--program-tran=* \
1228 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1229 program_transform_name
=$ac_optarg ;;
1231 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1233 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1234 pdfdir
=$ac_optarg ;;
1236 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1238 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1241 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1242 |
-silent |
--silent |
--silen |
--sile |
--sil)
1245 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1247 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1249 sbindir
=$ac_optarg ;;
1251 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1252 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1253 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1255 ac_prev
=sharedstatedir
;;
1256 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1257 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1258 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1260 sharedstatedir
=$ac_optarg ;;
1262 -site |
--site |
--sit)
1264 -site=* |
--site=* |
--sit=*)
1267 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1269 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1270 srcdir
=$ac_optarg ;;
1272 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1273 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1274 ac_prev
=sysconfdir
;;
1275 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1276 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1277 sysconfdir
=$ac_optarg ;;
1279 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1280 ac_prev
=target_alias
;;
1281 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1282 target_alias
=$ac_optarg ;;
1284 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1287 -version |
--version |
--versio |
--versi |
--vers |
-V)
1288 ac_init_version
=: ;;
1291 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1294 as_fn_error $?
"invalid package name: $ac_useropt"
1295 ac_useropt_orig
=$ac_useropt
1296 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297 case $ac_user_opts in
1301 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1302 ac_unrecognized_sep
=', ';;
1304 eval with_
$ac_useropt=\
$ac_optarg ;;
1306 -without-* |
--without-*)
1307 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1308 # Reject names that are not valid shell variable names.
1309 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1310 as_fn_error $?
"invalid package name: $ac_useropt"
1311 ac_useropt_orig
=$ac_useropt
1312 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1313 case $ac_user_opts in
1317 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1318 ac_unrecognized_sep
=', ';;
1320 eval with_
$ac_useropt=no
;;
1323 # Obsolete; use --with-x.
1326 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1327 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1328 ac_prev
=x_includes
;;
1329 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1330 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1331 x_includes
=$ac_optarg ;;
1333 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1334 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1335 ac_prev
=x_libraries
;;
1336 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1337 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1338 x_libraries
=$ac_optarg ;;
1340 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1341 Try \`$0 --help' for more information"
1345 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1346 # Reject names that are not valid shell variable names.
1347 case $ac_envvar in #(
1348 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1349 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1351 eval $ac_envvar=\
$ac_optarg
1352 export $ac_envvar ;;
1355 # FIXME: should be removed in autoconf 3.0.
1356 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1357 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1358 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1359 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1365 if test -n "$ac_prev"; then
1366 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1367 as_fn_error $?
"missing argument to $ac_option"
1370 if test -n "$ac_unrecognized_opts"; then
1371 case $enable_option_checking in
1373 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1374 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1378 # Check all directory arguments for consistency.
1379 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1380 datadir sysconfdir sharedstatedir localstatedir includedir \
1381 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1382 libdir localedir mandir
1384 eval ac_val
=\$
$ac_var
1385 # Remove trailing slashes.
1388 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1389 eval $ac_var=\
$ac_val;;
1391 # Be sure to have absolute directory names.
1393 [\\/$
]* | ?
:[\\/]* ) continue;;
1394 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1396 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1399 # There might be people who depend on the old broken behavior: `$host'
1400 # used to hold the argument of --host etc.
1401 # FIXME: To remove some day.
1404 target
=$target_alias
1406 # FIXME: To remove some day.
1407 if test "x$host_alias" != x
; then
1408 if test "x$build_alias" = x
; then
1409 cross_compiling
=maybe
1410 elif test "x$build_alias" != "x$host_alias"; then
1416 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1418 test "$silent" = yes && exec 6>/dev
/null
1421 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1422 ac_ls_di
=`ls -di .` &&
1423 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1424 as_fn_error $?
"working directory cannot be determined"
1425 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1426 as_fn_error $?
"pwd does not report name of working directory"
1429 # Find the source files, if location was not specified.
1430 if test -z "$srcdir"; then
1431 ac_srcdir_defaulted
=yes
1432 # Try the directory containing this script, then the parent directory.
1433 ac_confdir
=`$as_dirname -- "$as_myself" ||
1434 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1435 X"$as_myself" : 'X\(//\)[^/]' \| \
1436 X"$as_myself" : 'X\(//\)$' \| \
1437 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1438 $as_echo X"$as_myself" |
1439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1457 if test ! -r "$srcdir/$ac_unique_file"; then
1461 ac_srcdir_defaulted
=no
1463 if test ! -r "$srcdir/$ac_unique_file"; then
1464 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1465 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1467 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1469 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1471 # When building in place, set srcdir=.
1472 if test "$ac_abs_confdir" = "$ac_pwd"; then
1475 # Remove unnecessary trailing slashes from srcdir.
1476 # Double slashes in file names in object file debugging info
1477 # mess up M-x gdb in Emacs.
1479 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1481 for ac_var
in $ac_precious_vars; do
1482 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1483 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1484 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1485 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1489 # Report the --help message.
1491 if test "$ac_init_help" = "long"; then
1492 # Omit some internal or obsolete options to make the list less imposing.
1493 # This message is too long to be a string in the A/UX 3.1 sh.
1495 \`configure' configures this package to adapt to many kinds of systems.
1497 Usage: $0 [OPTION]... [VAR=VALUE]...
1499 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1500 VAR=VALUE. See below for descriptions of some of the useful variables.
1502 Defaults for the options are specified in brackets.
1505 -h, --help display this help and exit
1506 --help=short display options specific to this package
1507 --help=recursive display the short help of all the included packages
1508 -V, --version display version information and exit
1509 -q, --quiet, --silent do not print \`checking ...' messages
1510 --cache-file=FILE cache test results in FILE [disabled]
1511 -C, --config-cache alias for \`--cache-file=config.cache'
1512 -n, --no-create do not create output files
1513 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1515 Installation directories:
1516 --prefix=PREFIX install architecture-independent files in PREFIX
1517 [$ac_default_prefix]
1518 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1521 By default, \`make install' will install all the files in
1522 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1523 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1524 for instance \`--prefix=\$HOME'.
1526 For better control, use the options below.
1528 Fine tuning of the installation directories:
1529 --bindir=DIR user executables [EPREFIX/bin]
1530 --sbindir=DIR system admin executables [EPREFIX/sbin]
1531 --libexecdir=DIR program executables [EPREFIX/libexec]
1532 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1533 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1534 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1535 --libdir=DIR object code libraries [EPREFIX/lib]
1536 --includedir=DIR C header files [PREFIX/include]
1537 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1538 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1539 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1540 --infodir=DIR info documentation [DATAROOTDIR/info]
1541 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1542 --mandir=DIR man documentation [DATAROOTDIR/man]
1543 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1544 --htmldir=DIR html documentation [DOCDIR]
1545 --dvidir=DIR dvi documentation [DOCDIR]
1546 --pdfdir=DIR pdf documentation [DOCDIR]
1547 --psdir=DIR ps documentation [DOCDIR]
1553 --program-prefix=PREFIX prepend PREFIX to installed program names
1554 --program-suffix=SUFFIX append SUFFIX to installed program names
1555 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1558 --x-includes=DIR X include files are
in DIR
1559 --x-libraries=DIR X library files are
in DIR
1562 --build=BUILD configure
for building on BUILD
[guessed
]
1563 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1564 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1568 if test -n "$ac_init_help"; then
1573 --disable-option-checking ignore unrecognized
--enable/--with options
1574 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1575 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1576 --enable-maintainer-mode
1577 enable make rules and dependencies not useful
(and
1578 sometimes confusing
) to the casual installer
1579 --enable-plugins Enable support
for plugins
1580 --disable-largefile omit support
for large files
1581 --enable-targets=TARGETS
1582 alternative target configurations
1583 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1584 --disable-gdbmi disable machine-interface
(MI
)
1585 --enable-tui enable full-screen terminal user interface
(TUI
)
1586 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1587 --enable-profiling enable profiling of GDB
1588 --enable-codesign=CERT sign gdb with
'codesign -s CERT'
1589 --disable-rpath do not hardcode runtime library paths
1590 --enable-source-highlight
1591 enable source-highlight
for source listings
1592 --enable-werror treat compile warnings as errors
1593 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1594 --enable-gdb-build-warnings
1595 enable GDB specific build-time compiler warnings
if
1597 --enable-ubsan enable undefined behavior sanitizer
(auto
/yes
/no
)
1598 --enable-sim link gdb with simulator
1599 --enable-libctf Handle .ctf type-info sections
[default
=yes]
1600 --enable-unit-tests Enable the inclusion of unit tests when compiling
1604 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1605 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1606 --with-separate-debug-dir=PATH
1607 look for global separate debug info
in this path
1609 --with-gdb-datadir=PATH
look for global separate data files
in this path
1611 --with-relocated-sources=PATH
1612 automatically relocate this path
for source files
1613 --with-auto-load-dir=PATH
1614 directories from
which to load auto-loaded scripts
1615 [$debugdir:$datadir/auto-load
]
1616 --with-auto-load-safe-path=PATH
1617 directories safe to hold auto-loaded files
1618 [--with-auto-load-dir]
1619 --without-auto-load-safe-path
1620 do not restrict auto-loaded files locations
1621 --with-debuginfod Enable debuginfo lookups with debuginfod
1623 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1624 --with-curses use the curses library instead of the termcap
1626 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1627 --with-bugurl=URL Direct users to URL to report a bug
1628 --with-system-zlib use installed libz
1629 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1630 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1631 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1632 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1633 --with-iconv-bin=PATH specify where to find the iconv program
1634 --with-system-readline use installed readline library
1635 --with-jit-reader-dir=PATH
1636 directory to load the JIT readers from
1637 --with-expat include expat support (auto/yes/no)
1638 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1639 --without-libexpat-prefix don't search
for libexpat
in includedir and libdir
1640 --with-libexpat-type=TYPE
type of library to search
for (auto
/static
/shared
)
1641 --with-mpfr include MPFR support
(auto
/yes
/no
)
1642 --with-libmpfr-prefix[=DIR
] search
for libmpfr
in DIR
/include and DIR
/lib
1643 --without-libmpfr-prefix don
't search for libmpfr in includedir and libdir
1644 --with-libmpfr-type=TYPE type of library to search for (auto/static/shared)
1645 --with-python[=PYTHON] include python support
1646 (auto/yes/no/<python-program>)
1647 --with-python-libdir[=DIR]
1648 search for python's libraries
in DIR
1649 --with-guile[=GUILE
] include guile support
1650 (auto
/yes
/no
/<guile-version
>/<pkg-config-program
>)
1651 --with-intel-pt include Intel Processor Trace support
(auto
/yes
/no
)
1652 --with-libipt-prefix[=DIR
] search
for libipt
in DIR
/include and DIR
/lib
1653 --without-libipt-prefix don
't search for libipt in includedir and libdir
1654 --with-libipt-type=TYPE type of library to search for (auto/static/shared)
1655 --without-included-regex
1656 don't use included regex
; this is the default on
1657 systems with version
2 of the GNU C library
(use
1658 with caution on other system
)
1659 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1660 --with-system-gdbinit=PATH
1661 automatically load a system-wide gdbinit
file
1662 --with-system-gdbinit-dir=PATH
1663 automatically load system-wide gdbinit files from
1665 --with-lzma support lzma compression
(auto
/yes
/no
)
1666 --with-liblzma-prefix[=DIR
] search
for liblzma
in DIR
/include and DIR
/lib
1667 --without-liblzma-prefix don
't search for liblzma in includedir and libdir
1668 --with-liblzma-type=TYPE type of library to search for (auto/static/shared)
1669 --with-tcl directory containing tcl configuration (tclConfig.sh)
1670 --with-tk directory containing tk configuration (tkConfig.sh)
1671 --with-x use the X Window System
1672 --with-babeltrace include babeltrace support (auto/yes/no)
1673 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1674 --without-libbabeltrace-prefix don't search
for libbabeltrace
in includedir and libdir
1675 --with-libbabeltrace-type=TYPE
type of library to search
for (auto
/static
/shared
)
1676 --with-xxhash use libxxhash
for hashing
(faster
) (auto
/yes
/no
)
1677 --with-libxxhash-prefix[=DIR
] search
for libxxhash
in DIR
/include and DIR
/lib
1678 --without-libxxhash-prefix don
't search for libxxhash in includedir and libdir
1679 --with-libxxhash-type=TYPE type of library to search for (auto/static/shared)
1681 Some influential environment variables:
1682 CC C compiler command
1683 CFLAGS C compiler flags
1684 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1685 nonstandard directory <lib dir>
1686 LIBS libraries to pass to the linker, e.g. -l<library>
1687 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1688 you have headers in a nonstandard directory <include dir>
1689 CXX C++ compiler command
1690 CXXFLAGS C++ compiler flags
1692 MAKEINFO Parent configure detects if it is of sufficient version.
1694 Parameters for MAKEINFO.
1695 PKG_CONFIG path to pkg-config utility
1697 directories to add to pkg-config's search path
1699 path overriding pkg-config
's built-in search path
1701 C compiler flags for DEBUGINFOD, overriding pkg-config
1703 linker flags for DEBUGINFOD, overriding pkg-config
1704 YACC The `Yet Another Compiler Compiler' implementation to use.
1705 Defaults to the first program found out of
: `bison -y', `byacc
',
1707 YFLAGS The list of arguments that will be passed by default to
$YACC.
1708 This
script will default YFLAGS to the empty string to avoid a
1709 default value of
`-d' given by some make applications.
1710 XMKMF Path to xmkmf, Makefile generator for X Window System
1712 Use these variables to override the choices made by `configure
' or to help
1713 it to find libraries and programs with nonstandard names/locations.
1715 Report bugs to the package provider.
1720 if test "$ac_init_help" = "recursive"; then
1721 # If there are subdirs, report their specific --help.
1722 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1723 test -d "$ac_dir" ||
1724 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1729 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1731 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.
[\\/]||
'`
1732 # A ".." for each directory in $ac_dir_suffix.
1733 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|
/[^
\\/]*|
/..|g
;s|
/||
'`
1734 case $ac_top_builddir_sub in
1735 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1736 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1739 ac_abs_top_builddir=$ac_pwd
1740 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1741 # for backward compatibility:
1742 ac_top_builddir=$ac_top_build_prefix
1745 .) # We are building in place.
1747 ac_top_srcdir=$ac_top_builddir_sub
1748 ac_abs_top_srcdir=$ac_pwd ;;
1749 [\\/]* | ?:[\\/]* ) # Absolute name.
1750 ac_srcdir=$srcdir$ac_dir_suffix;
1751 ac_top_srcdir=$srcdir
1752 ac_abs_top_srcdir=$srcdir ;;
1754 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1755 ac_top_srcdir=$ac_top_build_prefix$srcdir
1756 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1758 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1760 cd "$ac_dir" || { ac_status=$?; continue; }
1761 # Check for guested configure.
1762 if test -f "$ac_srcdir/configure.gnu"; then
1764 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1765 elif test -f "$ac_srcdir/configure"; then
1767 $SHELL "$ac_srcdir/configure" --help=recursive
1769 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1771 cd "$ac_pwd" || { ac_status=$?; break; }
1775 test -n "$ac_init_help" && exit $ac_status
1776 if $ac_init_version; then
1779 generated by GNU Autoconf 2.69
1781 Copyright (C) 2012 Free Software Foundation, Inc.
1782 This configure script is free software; the Free Software Foundation
1783 gives unlimited permission to copy, distribute and modify it.
1788 ## ------------------------ ##
1789 ## Autoconf initialization. ##
1790 ## ------------------------ ##
1792 # ac_fn_c_try_compile LINENO
1793 # --------------------------
1794 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1795 ac_fn_c_try_compile ()
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 rm -f conftest.$ac_objext
1799 if { { ac_try="$ac_compile"
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_compile") 2>conftest.err
1808 if test -s conftest.err; then
1809 grep -v '^
*+' conftest.err >conftest.er1
1810 cat conftest.er1 >&5
1811 mv -f conftest.er1 conftest.err
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; } && {
1815 test -z "$ac_c_werror_flag" ||
1816 test ! -s conftest.err
1817 } && test -s conftest.$ac_objext; then :
1820 $as_echo "$as_me: failed program was:" >&5
1821 sed 's
/^
/|
/' conftest.$ac_ext >&5
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826 as_fn_set_status $ac_retval
1828 } # ac_fn_c_try_compile
1830 # ac_fn_cxx_try_compile LINENO
1831 # ----------------------------
1832 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1833 ac_fn_cxx_try_compile ()
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 rm -f conftest.$ac_objext
1837 if { { ac_try="$ac_compile"
1839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840 *) ac_try_echo=$ac_try;;
1842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843 $as_echo "$ac_try_echo"; } >&5
1844 (eval "$ac_compile") 2>conftest.err
1846 if test -s conftest.err; then
1847 grep -v '^
*+' conftest.err >conftest.er1
1848 cat conftest.er1 >&5
1849 mv -f conftest.er1 conftest.err
1851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1852 test $ac_status = 0; } && {
1853 test -z "$ac_cxx_werror_flag" ||
1854 test ! -s conftest.err
1855 } && test -s conftest.$ac_objext; then :
1858 $as_echo "$as_me: failed program was:" >&5
1859 sed 's
/^
/|
/' conftest.$ac_ext >&5
1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864 as_fn_set_status $ac_retval
1866 } # ac_fn_cxx_try_compile
1868 # ac_fn_c_try_cpp LINENO
1869 # ----------------------
1870 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 if { { ac_try="$ac_cpp conftest.$ac_ext"
1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1883 if test -s conftest.err; then
1884 grep -v '^
*+' conftest.err >conftest.er1
1885 cat conftest.er1 >&5
1886 mv -f conftest.er1 conftest.err
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; } > conftest.i && {
1890 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1891 test ! -s conftest.err
1895 $as_echo "$as_me: failed program was:" >&5
1896 sed 's
/^
/|
/' conftest.$ac_ext >&5
1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901 as_fn_set_status $ac_retval
1905 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1906 # -------------------------------------------------------
1907 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1908 # the include files in INCLUDES and setting the cache variable VAR
1910 ac_fn_c_check_header_mongrel ()
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 if eval \${$3+:} false; then :
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915 $as_echo_n "checking for $2... " >&6; }
1916 if eval \${$3+:} false; then :
1917 $as_echo_n "(cached) " >&6
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921 $as_echo "$ac_res" >&6; }
1923 # Is the header compilable?
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1925 $as_echo_n "checking $2 usability... " >&6; }
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1931 if ac_fn_c_try_compile "$LINENO"; then :
1932 ac_header_compiler=yes
1934 ac_header_compiler=no
1936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1938 $as_echo "$ac_header_compiler" >&6; }
1940 # Is the header present?
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1942 $as_echo_n "checking $2 presence... " >&6; }
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1947 if ac_fn_c_try_cpp "$LINENO"; then :
1948 ac_header_preproc=yes
1950 ac_header_preproc=no
1952 rm -f conftest.err conftest.i conftest.$ac_ext
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1954 $as_echo "$ac_header_preproc" >&6; }
1956 # So? What about this header?
1957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1960 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1962 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1966 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1968 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1970 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1972 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1974 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1978 $as_echo_n "checking for $2... " >&6; }
1979 if eval \${$3+:} false; then :
1980 $as_echo_n "(cached) " >&6
1982 eval "$3=\$ac_header_compiler"
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986 $as_echo "$ac_res" >&6; }
1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1990 } # ac_fn_c_check_header_mongrel
1992 # ac_fn_c_try_run LINENO
1993 # ----------------------
1994 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1995 # that executables *can* be run.
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 if { { ac_try="$ac_link"
2001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2002 *) ac_try_echo=$ac_try;;
2004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2005 $as_echo "$ac_try_echo"; } >&5
2006 (eval "$ac_link") 2>&5
2008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009 test $ac_status = 0; } && { ac_try='.
/conftest
$ac_exeext'
2010 { { case "(($ac_try" in
2011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2012 *) ac_try_echo=$ac_try;;
2014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2015 $as_echo "$ac_try_echo"; } >&5
2016 (eval "$ac_try") 2>&5
2018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2019 test $ac_status = 0; }; }; then :
2022 $as_echo "$as_me: program exited with status $ac_status" >&5
2023 $as_echo "$as_me: failed program was:" >&5
2024 sed 's
/^
/|
/' conftest.$ac_ext >&5
2026 ac_retval=$ac_status
2028 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2029 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2030 as_fn_set_status $ac_retval
2034 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2035 # -------------------------------------------------------
2036 # Tests whether HEADER exists and can be compiled using the include files in
2037 # INCLUDES, setting the cache variable VAR accordingly.
2038 ac_fn_c_check_header_compile ()
2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2042 $as_echo_n "checking for $2... " >&6; }
2043 if eval \${$3+:} false; then :
2044 $as_echo_n "(cached) " >&6
2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h. */
2051 if ac_fn_c_try_compile "$LINENO"; then :
2056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2060 $as_echo "$ac_res" >&6; }
2061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2063 } # ac_fn_c_check_header_compile
2065 # ac_fn_c_try_link LINENO
2066 # -----------------------
2067 # Try to link conftest.$ac_ext, and return whether this succeeded.
2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071 rm -f conftest.$ac_objext conftest$ac_exeext
2072 if { { ac_try="$ac_link"
2074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2075 *) ac_try_echo=$ac_try;;
2077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2078 $as_echo "$ac_try_echo"; } >&5
2079 (eval "$ac_link") 2>conftest.err
2081 if test -s conftest.err; then
2082 grep -v '^
*+' conftest.err >conftest.er1
2083 cat conftest.er1 >&5
2084 mv -f conftest.er1 conftest.err
2086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2087 test $ac_status = 0; } && {
2088 test -z "$ac_c_werror_flag" ||
2089 test ! -s conftest.err
2090 } && test -s conftest$ac_exeext && {
2091 test "$cross_compiling" = yes ||
2092 test -x conftest$ac_exeext
2096 $as_echo "$as_me: failed program was:" >&5
2097 sed 's
/^
/|
/' conftest.$ac_ext >&5
2101 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2102 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2103 # interfere with the next link command; also delete a directory that is
2104 # left behind by Apple's compiler. We
do this before executing the actions.
2105 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2106 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2107 as_fn_set_status
$ac_retval
2109 } # ac_fn_c_try_link
2111 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2112 # --------------------------------------------
2113 # Tries to find the compile-time value of EXPR in a program that includes
2114 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2116 ac_fn_c_compute_int
()
2118 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2119 if test "$cross_compiling" = yes; then
2120 # Depending upon the size, compute the lo and hi bounds.
2121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h. */
2127 static int test_array [1 - 2 * !(($2) >= 0)];
2129 return test_array [0];
2135 if ac_fn_c_try_compile
"$LINENO"; then :
2138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2139 /* end confdefs.h. */
2144 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2146 return test_array [0];
2152 if ac_fn_c_try_compile
"$LINENO"; then :
2153 ac_hi
=$ac_mid; break
2155 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2156 if test $ac_lo -le $ac_mid; then
2160 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2162 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2171 static int test_array [1 - 2 * !(($2) < 0)];
2173 return test_array [0];
2179 if ac_fn_c_try_compile
"$LINENO"; then :
2182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2188 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2190 return test_array [0];
2196 if ac_fn_c_try_compile
"$LINENO"; then :
2197 ac_lo
=$ac_mid; break
2199 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2200 if test $ac_mid -le $ac_hi; then
2204 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2206 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2211 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2213 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2214 # Binary search between lo and hi bounds.
2215 while test "x$ac_lo" != "x$ac_hi"; do
2216 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2223 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2225 return test_array [0];
2231 if ac_fn_c_try_compile
"$LINENO"; then :
2234 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2236 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2239 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h. */
2246 static long int longval () { return $2; }
2247 static unsigned long int ulongval () { return $2; }
2254 FILE *f = fopen ("conftest.val", "w");
2259 long int i = longval ();
2262 fprintf (f, "%ld", i);
2266 unsigned long int i = ulongval ();
2269 fprintf (f, "%lu", i);
2271 /* Do not output a trailing newline, as this causes \r\n confusion
2272 on some platforms. */
2273 return ferror (f) || fclose (f) != 0;
2279 if ac_fn_c_try_run
"$LINENO"; then :
2280 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2284 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2285 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2289 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2290 as_fn_set_status
$ac_retval
2292 } # ac_fn_c_compute_int
2294 # ac_fn_c_check_func LINENO FUNC VAR
2295 # ----------------------------------
2296 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2297 ac_fn_c_check_func
()
2299 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2301 $as_echo_n "checking for $2... " >&6; }
2302 if eval \
${$3+:} false
; then :
2303 $as_echo_n "(cached) " >&6
2305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2306 /* end confdefs.h. */
2307 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2309 #define $2 innocuous_$2
2311 /* System header to define __stub macros and hopefully few prototypes,
2312 which can conflict with char $2 (); below.
2313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2314 <limits.h> exists even on freestanding compilers. */
2317 # include <limits.h>
2319 # include <assert.h>
2324 /* Override any GCC internal prototype to avoid an error.
2325 Use char because int might match the return type of a GCC
2326 builtin and then its argument prototype would still apply. */
2331 /* The GNU C library defines this for functions which it implements
2332 to always fail with ENOSYS. Some functions are actually named
2333 something starting with __ and the normal name is an alias. */
2334 #if defined __stub_$2 || defined __stub___$2
2346 if ac_fn_c_try_link
"$LINENO"; then :
2351 rm -f core conftest.err conftest.
$ac_objext \
2352 conftest
$ac_exeext conftest.
$ac_ext
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2356 $as_echo "$ac_res" >&6; }
2357 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2359 } # ac_fn_c_check_func
2361 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2362 # -------------------------------------------
2363 # Tests whether TYPE exists after having included INCLUDES, setting cache
2364 # variable VAR accordingly.
2365 ac_fn_c_check_type
()
2367 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2369 $as_echo_n "checking for $2... " >&6; }
2370 if eval \
${$3+:} false
; then :
2371 $as_echo_n "(cached) " >&6
2374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2375 /* end confdefs.h. */
2386 if ac_fn_c_try_compile
"$LINENO"; then :
2387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2388 /* end confdefs.h. */
2399 if ac_fn_c_try_compile
"$LINENO"; then :
2404 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2406 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2410 $as_echo "$ac_res" >&6; }
2411 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2413 } # ac_fn_c_check_type
2415 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2416 # ---------------------------------------------
2417 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2419 ac_fn_c_check_decl
()
2421 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2422 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2423 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2425 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2426 if eval \
${$3+:} false
; then :
2427 $as_echo_n "(cached) " >&6
2429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2430 /* end confdefs.h. */
2435 #ifndef $as_decl_name
2437 (void) $as_decl_use;
2439 (void) $as_decl_name;
2447 if ac_fn_c_try_compile
"$LINENO"; then :
2452 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2456 $as_echo "$ac_res" >&6; }
2457 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2459 } # ac_fn_c_check_decl
2461 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2462 # ----------------------------------------------------
2463 # Tries to find if the field MEMBER exists in type AGGR, after including
2464 # INCLUDES, setting cache variable VAR accordingly.
2465 ac_fn_c_check_member
()
2467 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2469 $as_echo_n "checking for $2.$3... " >&6; }
2470 if eval \
${$4+:} false
; then :
2471 $as_echo_n "(cached) " >&6
2473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2474 /* end confdefs.h. */
2486 if ac_fn_c_try_compile
"$LINENO"; then :
2489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2490 /* end confdefs.h. */
2496 if (sizeof ac_aggr.$3)
2502 if ac_fn_c_try_compile
"$LINENO"; then :
2507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2509 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2513 $as_echo "$ac_res" >&6; }
2514 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2516 } # ac_fn_c_check_member
2518 # ac_fn_cxx_try_link LINENO
2519 # -------------------------
2520 # Try to link conftest.$ac_ext, and return whether this succeeded.
2521 ac_fn_cxx_try_link
()
2523 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2524 rm -f conftest.
$ac_objext conftest
$ac_exeext
2525 if { { ac_try
="$ac_link"
2527 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2528 *) ac_try_echo=$ac_try;;
2530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2531 $as_echo "$ac_try_echo"; } >&5
2532 (eval "$ac_link") 2>conftest.err
2534 if test -s conftest.err; then
2535 grep -v '^ *+' conftest.err >conftest.er1
2536 cat conftest.er1 >&5
2537 mv -f conftest.er1 conftest.err
2539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2540 test $ac_status = 0; } && {
2541 test -z "$ac_cxx_werror_flag" ||
2542 test ! -s conftest.err
2543 } && test -s conftest$ac_exeext && {
2544 test "$cross_compiling" = yes ||
2545 test -x conftest$ac_exeext
2549 $as_echo "$as_me: failed program was:" >&5
2550 sed 's/^/| /' conftest.$ac_ext >&5
2554 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2555 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2556 # interfere with the next link command; also delete a directory that is
2557 # left behind by Apple's compiler. We do this before executing the actions.
2558 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2559 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2560 as_fn_set_status $ac_retval
2562 } # ac_fn_cxx_try_link
2564 # ac_fn_cxx_check_func LINENO FUNC VAR
2565 # ------------------------------------
2566 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2567 ac_fn_cxx_check_func ()
2569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2571 $as_echo_n "checking for $2... " >&6; }
2572 if eval \${$3+:} false; then :
2573 $as_echo_n "(cached) " >&6
2575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2576 /* end confdefs.h. */
2577 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2579 #define $2 innocuous_$2
2581 /* System header to define __stub macros and hopefully few prototypes,
2582 which can conflict with char $2 (); below.
2583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2584 <limits.h> exists even on freestanding compilers. */
2587 # include <limits.h>
2589 # include <assert.h>
2594 /* Override any GCC internal prototype to avoid an error.
2595 Use char because int might match the return type of a GCC
2596 builtin and then its argument prototype would still apply. */
2601 /* The GNU C library defines this for functions which it implements
2602 to always fail with ENOSYS. Some functions are actually named
2603 something starting with __ and the normal name is an alias. */
2604 #if defined __stub_$2 || defined __stub___$2
2616 if ac_fn_cxx_try_link "$LINENO"; then :
2621 rm -f core conftest.err conftest.$ac_objext \
2622 conftest$ac_exeext conftest.$ac_ext
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2626 $as_echo "$ac_res" >&6; }
2627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2629 } # ac_fn_cxx_check_func
2630 cat >config.log <<_ACEOF
2631 This file contains any messages produced by compilers while
2632 running configure, to aid debugging if configure makes a mistake.
2634 It was created by $as_me, which was
2635 generated by GNU Autoconf 2.69. Invocation command line was
2647 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2648 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2649 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2650 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2651 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2653 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2654 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2656 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2657 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2658 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2659 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2660 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2661 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2662 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 test -z "$as_dir" && as_dir=.
2671 $as_echo "PATH: $as_dir"
2687 # Keep a trace of the command line.
2688 # Strip out --no-create and --no-recursion so they do not pile up.
2689 # Strip out --silent because we don't want to record it for future runs.
2690 # Also quote any args containing shell meta-characters.
2691 # Make two passes to allow for proper duplicate-argument suppression.
2695 ac_must_keep_next=false
2701 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2702 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2703 | -silent | --silent | --silen | --sile | --sil)
2706 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2709 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2711 as_fn_append ac_configure_args1 " '$ac_arg'"
2712 if test $ac_must_keep_next = true; then
2713 ac_must_keep_next=false # Got value, back to normal.
2716 *=* | --config-cache | -C | -disable-* | --disable-* \
2717 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2718 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2719 | -with-* | --with-* | -without-* | --without-* | --x)
2720 case "$ac_configure_args0 " in
2721 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2724 -* ) ac_must_keep_next=true ;;
2727 as_fn_append ac_configure_args " '$ac_arg'"
2732 { ac_configure_args0=; unset ac_configure_args0;}
2733 { ac_configure_args1=; unset ac_configure_args1;}
2735 # When interrupted or exit'd, cleanup temporary files, and complete
2736 # config.log. We remove comments because anyway the quotes in there
2737 # would cause problems or look ugly.
2738 # WARNING: Use '\'' to represent an apostrophe within the trap.
2739 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2740 trap 'exit_status=$?
2741 # Save into config.log some information that might help in debugging.
2745 $as_echo "## ---------------- ##
2746 ## Cache variables. ##
2747 ## ---------------- ##"
2749 # The following way of writing the cache mishandles newlines in values,
2751 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2752 eval ac_val=\$$ac_var
2756 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2757 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2760 _ | IFS | as_nl) ;; #(
2761 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2762 *) { eval $ac_var=; unset $ac_var;} ;;
2767 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2768 *${as_nl}ac_space=\ *)
2770 "s/'\''/'\''\\\\'\'''\''/g;
2771 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2774 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2781 $as_echo "## ----------------- ##
2782 ## Output variables. ##
2783 ## ----------------- ##"
2785 for ac_var in $ac_subst_vars
2787 eval ac_val=\$$ac_var
2789 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2791 $as_echo "$ac_var='\''$ac_val'\''"
2795 if test -n "$ac_subst_files"; then
2796 $as_echo "## ------------------- ##
2797 ## File substitutions. ##
2798 ## ------------------- ##"
2800 for ac_var in $ac_subst_files
2802 eval ac_val=\$$ac_var
2804 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2806 $as_echo "$ac_var='\''$ac_val'\''"
2811 if test -s confdefs.h; then
2812 $as_echo "## ----------- ##
2819 test "$ac_signal" != 0 &&
2820 $as_echo "$as_me: caught signal $ac_signal"
2821 $as_echo "$as_me: exit $exit_status"
2823 rm -f core *.core core.conftest.* &&
2824 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2827 for ac_signal in 1 2 13 15; do
2828 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2832 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2833 rm -f -r conftest* confdefs.h
2835 $as_echo "/* confdefs.h */" > confdefs.h
2837 # Predefined preprocessor variables.
2839 cat >>confdefs.h <<_ACEOF
2840 #define PACKAGE_NAME "$PACKAGE_NAME"
2843 cat >>confdefs.h <<_ACEOF
2844 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2847 cat >>confdefs.h <<_ACEOF
2848 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2851 cat >>confdefs.h <<_ACEOF
2852 #define PACKAGE_STRING "$PACKAGE_STRING"
2855 cat >>confdefs.h <<_ACEOF
2856 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2859 cat >>confdefs.h <<_ACEOF
2860 #define PACKAGE_URL "$PACKAGE_URL"
2864 # Let the site file select an alternate cache file if it wants to.
2865 # Prefer an explicitly selected file to automatically selected ones.
2868 if test -n "$CONFIG_SITE"; then
2869 # We do not want a PATH search for config.site.
2870 case $CONFIG_SITE in #((
2871 -*) ac_site_file1=./$CONFIG_SITE;;
2872 */*) ac_site_file1=$CONFIG_SITE;;
2873 *) ac_site_file1=./$CONFIG_SITE;;
2875 elif test "x$prefix" != xNONE; then
2876 ac_site_file1=$prefix/share/config.site
2877 ac_site_file2=$prefix/etc/config.site
2879 ac_site_file1=$ac_default_prefix/share/config.site
2880 ac_site_file2=$ac_default_prefix/etc/config.site
2882 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2884 test "x$ac_site_file" = xNONE && continue
2885 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2887 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2888 sed 's/^/| /' "$ac_site_file" >&5
2890 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2892 as_fn_error $? "failed to load site
script $ac_site_file
2893 See \
`config.log' for more details" "$LINENO" 5; }
2897 if test -r "$cache_file"; then
2898 # Some versions of bash will fail to source /dev/null (special files
2899 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2900 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2902 $as_echo "$as_me: loading cache $cache_file" >&6;}
2904 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2905 *) . "./$cache_file";;
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2910 $as_echo "$as_me: creating cache $cache_file" >&6;}
2914 as_fn_append ac_header_list " stdlib.h"
2915 as_fn_append ac_header_list " unistd.h"
2916 as_fn_append ac_header_list " sys/param.h"
2917 # Check that the precious variables saved in the cache have kept the same
2919 ac_cache_corrupted=false
2920 for ac_var in $ac_precious_vars; do
2921 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2922 eval ac_new_set=\$ac_env_${ac_var}_set
2923 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2924 eval ac_new_val=\$ac_env_${ac_var}_value
2925 case $ac_old_set,$ac_new_set in
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2928 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2929 ac_cache_corrupted=: ;;
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2932 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2933 ac_cache_corrupted=: ;;
2936 if test "x$ac_old_val" != "x$ac_new_val"; then
2937 # differences in whitespace do not lead to failure.
2938 ac_old_val_w=`echo x
$ac_old_val`
2939 ac_new_val_w=`echo x
$ac_new_val`
2940 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2942 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2943 ac_cache_corrupted=:
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2946 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2947 eval $ac_var=\$ac_old_val
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2950 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2952 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2955 # Pass precious variables to config.status.
2956 if test "$ac_new_set" = set; then
2958 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2959 *) ac_arg=$ac_var=$ac_new_val ;;
2961 case " $ac_configure_args " in
2962 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2963 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2967 if $ac_cache_corrupted; then
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2971 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2972 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2974 ## -------------------- ##
2975 ## Main body of script. ##
2976 ## -------------------- ##
2979 ac_cpp='$CPP $CPPFLAGS'
2980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2988 ac_config_headers="$ac_config_headers config.h:config.in"
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2992 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2993 # Check whether --enable-maintainer-mode was given.
2994 if test "${enable_maintainer_mode+set}" = set; then :
2995 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2997 USE_MAINTAINER_MODE=no
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3001 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3002 if test $USE_MAINTAINER_MODE = yes; then
3003 MAINTAINER_MODE_TRUE=
3004 MAINTAINER_MODE_FALSE='#'
3006 MAINTAINER_MODE_TRUE='#'
3007 MAINTAINER_MODE_FALSE=
3010 MAINT=$MAINTAINER_MODE_TRUE
3015 ac_cpp='$CPP $CPPFLAGS'
3016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3019 if test -n "$ac_tool_prefix"; then
3020 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3021 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3023 $as_echo_n "checking for $ac_word... " >&6; }
3024 if ${ac_cv_prog_CC+:} false; then :
3025 $as_echo_n "(cached) " >&6
3027 if test -n "$CC"; then
3028 ac_cv_prog_CC="$CC" # Let the user override the test.
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 test -z "$as_dir" && as_dir=.
3035 for ac_exec_ext in '' $ac_executable_extensions; do
3036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3037 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3048 if test -n "$CC"; then
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3050 $as_echo "$CC" >&6; }
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053 $as_echo "no" >&6; }
3058 if test -z "$ac_cv_prog_CC"; then
3060 # Extract the first word of "gcc", so it can be a program name with args.
3061 set dummy gcc; ac_word=$2
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3063 $as_echo_n "checking for $ac_word... " >&6; }
3064 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3065 $as_echo_n "(cached) " >&6
3067 if test -n "$ac_ct_CC"; then
3068 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074 test -z "$as_dir" && as_dir=.
3075 for ac_exec_ext in '' $ac_executable_extensions; do
3076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3077 ac_cv_prog_ac_ct_CC="gcc"
3078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3087 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3088 if test -n "$ac_ct_CC"; then
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3090 $as_echo "$ac_ct_CC" >&6; }
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093 $as_echo "no" >&6; }
3096 if test "x$ac_ct_CC" = x; then
3099 case $cross_compiling:$ac_tool_warned in
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3103 ac_tool_warned=yes ;;
3111 if test -z "$CC"; then
3112 if test -n "$ac_tool_prefix"; then
3113 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3114 set dummy ${ac_tool_prefix}cc; ac_word=$2
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3116 $as_echo_n "checking for $ac_word... " >&6; }
3117 if ${ac_cv_prog_CC+:} false; then :
3118 $as_echo_n "(cached) " >&6
3120 if test -n "$CC"; then
3121 ac_cv_prog_CC="$CC" # Let the user override the test.
3123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 test -z "$as_dir" && as_dir=.
3128 for ac_exec_ext in '' $ac_executable_extensions; do
3129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3130 ac_cv_prog_CC="${ac_tool_prefix}cc"
3131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3141 if test -n "$CC"; then
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3143 $as_echo "$CC" >&6; }
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3146 $as_echo "no" >&6; }
3152 if test -z "$CC"; then
3153 # Extract the first word of "cc", so it can be a program name with args.
3154 set dummy cc; ac_word=$2
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3156 $as_echo_n "checking for $ac_word... " >&6; }
3157 if ${ac_cv_prog_CC+:} false; then :
3158 $as_echo_n "(cached) " >&6
3160 if test -n "$CC"; then
3161 ac_cv_prog_CC="$CC" # Let the user override the test.
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 test -z "$as_dir" && as_dir=.
3169 for ac_exec_ext in '' $ac_executable_extensions; do
3170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3171 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3172 ac_prog_rejected=yes
3176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3183 if test $ac_prog_rejected = yes; then
3184 # We found a bogon in the path, so make sure we never use it.
3185 set dummy $ac_cv_prog_CC
3187 if test $# != 0; then
3188 # We chose a different compiler from the bogus one.
3189 # However, it has the same basename, so the bogon will be chosen
3190 # first if we set CC to just the basename; use the full file name.
3192 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3198 if test -n "$CC"; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3200 $as_echo "$CC" >&6; }
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203 $as_echo "no" >&6; }
3208 if test -z "$CC"; then
3209 if test -n "$ac_tool_prefix"; then
3210 for ac_prog in cl.exe
3212 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3213 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3215 $as_echo_n "checking for $ac_word... " >&6; }
3216 if ${ac_cv_prog_CC+:} false; then :
3217 $as_echo_n "(cached) " >&6
3219 if test -n "$CC"; then
3220 ac_cv_prog_CC="$CC" # Let the user override the test.
3222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226 test -z "$as_dir" && as_dir=.
3227 for ac_exec_ext in '' $ac_executable_extensions; do
3228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3229 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3240 if test -n "$CC"; then
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3242 $as_echo "$CC" >&6; }
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245 $as_echo "no" >&6; }
3249 test -n "$CC" && break
3252 if test -z "$CC"; then
3254 for ac_prog in cl.exe
3256 # Extract the first word of "$ac_prog", so it can be a program name with args.
3257 set dummy $ac_prog; ac_word=$2
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3259 $as_echo_n "checking for $ac_word... " >&6; }
3260 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3261 $as_echo_n "(cached) " >&6
3263 if test -n "$ac_ct_CC"; then
3264 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270 test -z "$as_dir" && as_dir=.
3271 for ac_exec_ext in '' $ac_executable_extensions; do
3272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3273 ac_cv_prog_ac_ct_CC="$ac_prog"
3274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3283 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3284 if test -n "$ac_ct_CC"; then
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3286 $as_echo "$ac_ct_CC" >&6; }
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289 $as_echo "no" >&6; }
3293 test -n "$ac_ct_CC" && break
3296 if test "x$ac_ct_CC" = x; then
3299 case $cross_compiling:$ac_tool_warned in
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3302 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3303 ac_tool_warned=yes ;;
3312 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3314 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3315 See \
`config.log' for more details" "$LINENO" 5; }
3317 # Provide some information about the compiler.
3318 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3321 for ac_option in --version -v -V -qversion; do
3322 { { ac_try="$ac_compiler $ac_option >&5"
3324 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3325 *) ac_try_echo
=$ac_try;;
3327 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3328 $as_echo "$ac_try_echo"; } >&5
3329 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3331 if test -s conftest.err
; then
3333 ... rest of stderr output deleted ...
3334 10q' conftest.err
>conftest.er1
3335 cat conftest.er1
>&5
3337 rm -f conftest.er1 conftest.err
3338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3339 test $ac_status = 0; }
3342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3343 /* end confdefs.h. */
3353 ac_clean_files_save
=$ac_clean_files
3354 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3355 # Try to create an executable without -o first, disregard a.out.
3356 # It will help us diagnose broken compilers, and finding out an intuition
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3359 $as_echo_n "checking whether the C compiler works... " >&6; }
3360 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3362 # The possible output files:
3363 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3366 for ac_file
in $ac_files
3369 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3370 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3375 if { { ac_try
="$ac_link_default"
3377 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3378 *) ac_try_echo=$ac_try;;
3380 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3381 $as_echo "$ac_try_echo"; } >&5
3382 (eval "$ac_link_default") 2>&5
3384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3385 test $ac_status = 0; }; then :
3386 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3387 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3388 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3389 # so that the user can short-circuit this test for compilers unknown to
3391 for ac_file in $ac_files ''
3393 test -f "$ac_file" || continue
3395 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3398 # We found the default executable, but exeext='' is most
3402 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3404 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3406 # We set ac_cv_exeext here because the later test for it is not
3407 # safe: cross compilers may not add the suffix if given an `-o'
3408 # argument, so we may need to know it at that point already.
3409 # Even if this section looks crufty: it has the advantage of
3416 test "$ac_cv_exeext" = no && ac_cv_exeext=
3421 if test -z "$ac_file"; then :
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423 $as_echo "no" >&6; }
3424 $as_echo "$as_me: failed program was:" >&5
3425 sed 's
/^
/|
/' conftest.$ac_ext >&5
3427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3428 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3429 as_fn_error 77 "C compiler cannot create executables
3430 See \`config.log
' for more details" "$LINENO" 5; }
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3433 $as_echo "yes" >&6; }
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3436 $as_echo_n "checking for C compiler default output file name... " >&6; }
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3438 $as_echo "$ac_file" >&6; }
3439 ac_exeext=$ac_cv_exeext
3441 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3442 ac_clean_files=$ac_clean_files_save
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3444 $as_echo_n "checking for suffix of executables... " >&6; }
3445 if { { ac_try="$ac_link"
3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
3450 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3451 $as_echo "$ac_try_echo"; } >&5
3452 (eval "$ac_link") 2>&5
3454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3455 test $ac_status = 0; }; then :
3456 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3457 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3458 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3460 for ac_file
in conftest.exe conftest conftest.
*; do
3461 test -f "$ac_file" ||
continue
3463 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3464 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3472 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3473 See \`config.log' for more details" "$LINENO" 5; }
3475 rm -f conftest conftest
$ac_cv_exeext
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3477 $as_echo "$ac_cv_exeext" >&6; }
3479 rm -f conftest.
$ac_ext
3480 EXEEXT
=$ac_cv_exeext
3482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3483 /* end confdefs.h. */
3488 FILE *f = fopen ("conftest.out", "w");
3489 return ferror (f) || fclose (f) != 0;
3495 ac_clean_files
="$ac_clean_files conftest.out"
3496 # Check that the compiler produces executables we can run. If not, either
3497 # the compiler is broken, or we cross compile.
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3499 $as_echo_n "checking whether we are cross compiling... " >&6; }
3500 if test "$cross_compiling" != yes; then
3501 { { ac_try
="$ac_link"
3503 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3507 $as_echo "$ac_try_echo"; } >&5
3508 (eval "$ac_link") 2>&5
3510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3511 test $ac_status = 0; }
3512 if { ac_try='./conftest$ac_cv_exeext'
3513 { { case "(($ac_try" in
3514 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3515 *) ac_try_echo
=$ac_try;;
3517 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3518 $as_echo "$ac_try_echo"; } >&5
3519 (eval "$ac_try") 2>&5
3521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3522 test $ac_status = 0; }; }; then
3525 if test "$cross_compiling" = maybe
; then
3528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3530 as_fn_error $?
"cannot run C compiled programs.
3531 If you meant to cross compile, use \`--host'.
3532 See \`config.log' for more details" "$LINENO" 5; }
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3537 $as_echo "$cross_compiling" >&6; }
3539 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3540 ac_clean_files
=$ac_clean_files_save
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3542 $as_echo_n "checking for suffix of object files... " >&6; }
3543 if ${ac_cv_objext+:} false
; then :
3544 $as_echo_n "(cached) " >&6
3546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3547 /* end confdefs.h. */
3557 rm -f conftest.o conftest.obj
3558 if { { ac_try
="$ac_compile"
3560 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3564 $as_echo "$ac_try_echo"; } >&5
3565 (eval "$ac_compile") 2>&5
3567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3568 test $ac_status = 0; }; then :
3569 for ac_file in conftest.o conftest.obj conftest.*; do
3570 test -f "$ac_file" || continue;
3572 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3573 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3578 $as_echo "$as_me: failed program was:" >&5
3579 sed 's/^/| /' conftest.$ac_ext >&5
3581 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3582 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3583 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3584 See \
`config.log' for more details" "$LINENO" 5; }
3586 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3589 $as_echo "$ac_cv_objext" >&6; }
3590 OBJEXT=$ac_cv_objext
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3593 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3594 if ${ac_cv_c_compiler_gnu+:} false; then :
3595 $as_echo_n "(cached) " >&6
3597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598 /* end confdefs.h. */
3611 if ac_fn_c_try_compile "$LINENO"; then :
3616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3621 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3622 if test $ac_compiler_gnu = yes; then
3627 ac_test_CFLAGS=${CFLAGS+set}
3628 ac_save_CFLAGS=$CFLAGS
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3630 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3631 if ${ac_cv_prog_cc_g+:} false; then :
3632 $as_echo_n "(cached) " >&6
3634 ac_save_c_werror_flag=$ac_c_werror_flag
3635 ac_c_werror_flag=yes
3638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639 /* end confdefs.h. */
3649 if ac_fn_c_try_compile "$LINENO"; then :
3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h. */
3664 if ac_fn_c_try_compile "$LINENO"; then :
3667 ac_c_werror_flag=$ac_save_c_werror_flag
3669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670 /* end confdefs.h. */
3680 if ac_fn_c_try_compile "$LINENO"; then :
3683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3688 ac_c_werror_flag=$ac_save_c_werror_flag
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3691 $as_echo "$ac_cv_prog_cc_g" >&6; }
3692 if test "$ac_test_CFLAGS" = set; then
3693 CFLAGS=$ac_save_CFLAGS
3694 elif test $ac_cv_prog_cc_g = yes; then
3695 if test "$GCC" = yes; then
3701 if test "$GCC" = yes; then
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3708 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3709 if ${ac_cv_prog_cc_c89+:} false; then :
3710 $as_echo_n "(cached) " >&6
3712 ac_cv_prog_cc_c89=no
3714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715 /* end confdefs.h. */
3719 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3720 struct buf { int x; };
3721 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3722 static char *e (p, i)
3728 static char *f (char * (*g) (char **, int), char **p, ...)
3733 s = g (p, va_arg (v,int));
3738 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3739 function prototypes and stuff, but not '\xHH' hex character constants.
3740 These don't provoke an error unfortunately, instead are silently treated
3741 as 'x'. The following induces an error, until -std is added to get
3742 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3743 array size at least. It's necessary to write '\x00'==0 to get something
3744 that's true only with -std. */
3745 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3747 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3748 inside strings and character constants. */
3750 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3752 int test (int i, double x);
3753 struct s1 {int (*f) (int a);};
3754 struct s2 {int (*f) (double a);};
3755 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3761 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3766 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3767 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3769 CC="$ac_save_CC $ac_arg"
3770 if ac_fn_c_try_compile "$LINENO"; then :
3771 ac_cv_prog_cc_c89=$ac_arg
3773 rm -f core conftest.err conftest.$ac_objext
3774 test "x$ac_cv_prog_cc_c89" != "xno" && break
3776 rm -f conftest.$ac_ext
3781 case "x$ac_cv_prog_cc_c89" in
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3784 $as_echo "none needed" >&6; } ;;
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3787 $as_echo "unsupported" >&6; } ;;
3789 CC="$CC $ac_cv_prog_cc_c89"
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3791 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3793 if test "x$ac_cv_prog_cc_c89" != xno; then :
3798 ac_cpp='$CPP $CPPFLAGS'
3799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3804 ac_cpp='$CXXCPP $CPPFLAGS'
3805 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3806 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3807 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3808 if test -z "$CXX"; then
3809 if test -n "$CCC"; then
3812 if test -n "$ac_tool_prefix"; then
3813 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3815 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3816 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3818 $as_echo_n "checking for $ac_word... " >&6; }
3819 if ${ac_cv_prog_CXX+:} false; then :
3820 $as_echo_n "(cached) " >&6
3822 if test -n "$CXX"; then
3823 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829 test -z "$as_dir" && as_dir=.
3830 for ac_exec_ext in '' $ac_executable_extensions; do
3831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3832 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3843 if test -n "$CXX"; then
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3845 $as_echo "$CXX" >&6; }
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3848 $as_echo "no" >&6; }
3852 test -n "$CXX" && break
3855 if test -z "$CXX"; then
3857 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3859 # Extract the first word of "$ac_prog", so it can be a program name with args.
3860 set dummy $ac_prog; ac_word=$2
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3862 $as_echo_n "checking for $ac_word... " >&6; }
3863 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3864 $as_echo_n "(cached) " >&6
3866 if test -n "$ac_ct_CXX"; then
3867 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873 test -z "$as_dir" && as_dir=.
3874 for ac_exec_ext in '' $ac_executable_extensions; do
3875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3876 ac_cv_prog_ac_ct_CXX="$ac_prog"
3877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3886 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3887 if test -n "$ac_ct_CXX"; then
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3889 $as_echo "$ac_ct_CXX" >&6; }
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3892 $as_echo "no" >&6; }
3896 test -n "$ac_ct_CXX" && break
3899 if test "x$ac_ct_CXX" = x; then
3902 case $cross_compiling:$ac_tool_warned in
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3906 ac_tool_warned=yes ;;
3914 # Provide some information about the compiler.
3915 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3918 for ac_option in --version -v -V -qversion; do
3919 { { ac_try="$ac_compiler $ac_option >&5"
3921 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3922 *) ac_try_echo
=$ac_try;;
3924 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3925 $as_echo "$ac_try_echo"; } >&5
3926 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3928 if test -s conftest.err
; then
3930 ... rest of stderr output deleted ...
3931 10q' conftest.err
>conftest.er1
3932 cat conftest.er1
>&5
3934 rm -f conftest.er1 conftest.err
3935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3936 test $ac_status = 0; }
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3940 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3941 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3942 $as_echo_n "(cached) " >&6
3944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3945 /* end confdefs.h. */
3958 if ac_fn_cxx_try_compile
"$LINENO"; then :
3963 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3964 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3968 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3969 if test $ac_compiler_gnu = yes; then
3974 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3975 ac_save_CXXFLAGS
=$CXXFLAGS
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3977 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3978 if ${ac_cv_prog_cxx_g+:} false
; then :
3979 $as_echo_n "(cached) " >&6
3981 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3982 ac_cxx_werror_flag
=yes
3985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
3996 if ac_fn_cxx_try_compile
"$LINENO"; then :
3997 ac_cv_prog_cxx_g
=yes
4000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h. */
4011 if ac_fn_cxx_try_compile
"$LINENO"; then :
4014 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4017 /* end confdefs.h. */
4027 if ac_fn_cxx_try_compile
"$LINENO"; then :
4028 ac_cv_prog_cxx_g
=yes
4030 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4032 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4034 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4035 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4038 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4039 if test "$ac_test_CXXFLAGS" = set; then
4040 CXXFLAGS
=$ac_save_CXXFLAGS
4041 elif test $ac_cv_prog_cxx_g = yes; then
4042 if test "$GXX" = yes; then
4048 if test "$GXX" = yes; then
4055 ac_cpp
='$CPP $CPPFLAGS'
4056 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4057 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4058 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4063 ac_cpp
='$CPP $CPPFLAGS'
4064 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4065 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4066 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4068 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4069 # On Suns, sometimes $CPP names a directory.
4070 if test -n "$CPP" && test -d "$CPP"; then
4073 if test -z "$CPP"; then
4074 if ${ac_cv_prog_CPP+:} false
; then :
4075 $as_echo_n "(cached) " >&6
4077 # Double quotes because CPP needs to be expanded
4078 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4081 for ac_c_preproc_warn_flag
in '' yes
4083 # Use a header file that comes with gcc, so configuring glibc
4084 # with a fresh cross-compiler works.
4085 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4086 # <limits.h> exists even on freestanding compilers.
4087 # On the NeXT, cc -E runs the code through the compiler's parser,
4088 # not just through cpp. "Syntax error" is here to catch this case.
4089 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h. */
4092 # include <limits.h>
4094 # include <assert.h>
4098 if ac_fn_c_try_cpp
"$LINENO"; then :
4101 # Broken: fails on valid input.
4104 rm -f conftest.err conftest.i conftest.
$ac_ext
4106 # OK, works on sane cases. Now check whether nonexistent headers
4107 # can be detected and how.
4108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4110 #include <ac_nonexistent.h>
4112 if ac_fn_c_try_cpp
"$LINENO"; then :
4113 # Broken: success on invalid input.
4116 # Passes both tests.
4120 rm -f conftest.err conftest.i conftest.
$ac_ext
4123 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4124 rm -f conftest.i conftest.err conftest.
$ac_ext
4125 if $ac_preproc_ok; then :
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4138 $as_echo "$CPP" >&6; }
4140 for ac_c_preproc_warn_flag
in '' yes
4142 # Use a header file that comes with gcc, so configuring glibc
4143 # with a fresh cross-compiler works.
4144 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4145 # <limits.h> exists even on freestanding compilers.
4146 # On the NeXT, cc -E runs the code through the compiler's parser,
4147 # not just through cpp. "Syntax error" is here to catch this case.
4148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4149 /* end confdefs.h. */
4151 # include <limits.h>
4153 # include <assert.h>
4157 if ac_fn_c_try_cpp
"$LINENO"; then :
4160 # Broken: fails on valid input.
4163 rm -f conftest.err conftest.i conftest.
$ac_ext
4165 # OK, works on sane cases. Now check whether nonexistent headers
4166 # can be detected and how.
4167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4169 #include <ac_nonexistent.h>
4171 if ac_fn_c_try_cpp
"$LINENO"; then :
4172 # Broken: success on invalid input.
4175 # Passes both tests.
4179 rm -f conftest.err conftest.i conftest.
$ac_ext
4182 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4183 rm -f conftest.i conftest.err conftest.
$ac_ext
4184 if $ac_preproc_ok; then :
4187 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4189 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4190 See \`config.log' for more details" "$LINENO" 5; }
4194 ac_cpp
='$CPP $CPPFLAGS'
4195 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4201 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4202 if ${ac_cv_path_GREP+:} false
; then :
4203 $as_echo_n "(cached) " >&6
4205 if test -z "$GREP"; then
4206 ac_path_GREP_found
=false
4207 # Loop through the user's path and test for each of PROGNAME-LIST
4208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4209 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4212 test -z "$as_dir" && as_dir
=.
4213 for ac_prog
in grep ggrep
; do
4214 for ac_exec_ext
in '' $ac_executable_extensions; do
4215 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4216 as_fn_executable_p
"$ac_path_GREP" ||
continue
4217 # Check for GNU ac_path_GREP and select it if it is found.
4218 # Check for GNU $ac_path_GREP
4219 case `"$ac_path_GREP" --version 2>&1` in
4221 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4224 $as_echo_n 0123456789 >"conftest.in"
4227 cat "conftest.in" "conftest.in" >"conftest.tmp"
4228 mv "conftest.tmp" "conftest.in"
4229 cp "conftest.in" "conftest.nl"
4230 $as_echo 'GREP' >> "conftest.nl"
4231 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4232 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4233 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4234 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4235 # Best one so far, save it but keep looking for a better one
4236 ac_cv_path_GREP
="$ac_path_GREP"
4237 ac_path_GREP_max
=$ac_count
4239 # 10*(2^10) chars as input seems more than enough
4240 test $ac_count -gt 10 && break
4242 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4245 $ac_path_GREP_found && break 3
4250 if test -z "$ac_cv_path_GREP"; then
4251 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4254 ac_cv_path_GREP
=$GREP
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4259 $as_echo "$ac_cv_path_GREP" >&6; }
4260 GREP
="$ac_cv_path_GREP"
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4264 $as_echo_n "checking for egrep... " >&6; }
4265 if ${ac_cv_path_EGREP+:} false
; then :
4266 $as_echo_n "(cached) " >&6
4268 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4269 then ac_cv_path_EGREP
="$GREP -E"
4271 if test -z "$EGREP"; then
4272 ac_path_EGREP_found
=false
4273 # Loop through the user's path and test for each of PROGNAME-LIST
4274 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4275 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4278 test -z "$as_dir" && as_dir
=.
4279 for ac_prog
in egrep; do
4280 for ac_exec_ext
in '' $ac_executable_extensions; do
4281 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4282 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4283 # Check for GNU ac_path_EGREP and select it if it is found.
4284 # Check for GNU $ac_path_EGREP
4285 case `"$ac_path_EGREP" --version 2>&1` in
4287 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4290 $as_echo_n 0123456789 >"conftest.in"
4293 cat "conftest.in" "conftest.in" >"conftest.tmp"
4294 mv "conftest.tmp" "conftest.in"
4295 cp "conftest.in" "conftest.nl"
4296 $as_echo 'EGREP' >> "conftest.nl"
4297 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4298 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4299 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4300 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4301 # Best one so far, save it but keep looking for a better one
4302 ac_cv_path_EGREP
="$ac_path_EGREP"
4303 ac_path_EGREP_max
=$ac_count
4305 # 10*(2^10) chars as input seems more than enough
4306 test $ac_count -gt 10 && break
4308 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4311 $ac_path_EGREP_found && break 3
4316 if test -z "$ac_cv_path_EGREP"; then
4317 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4320 ac_cv_path_EGREP
=$EGREP
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4326 $as_echo "$ac_cv_path_EGREP" >&6; }
4327 EGREP
="$ac_cv_path_EGREP"
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4331 $as_echo_n "checking for ANSI C header files... " >&6; }
4332 if ${ac_cv_header_stdc+:} false
; then :
4333 $as_echo_n "(cached) " >&6
4335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4336 /* end confdefs.h. */
4350 if ac_fn_c_try_compile
"$LINENO"; then :
4351 ac_cv_header_stdc
=yes
4353 ac_cv_header_stdc
=no
4355 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4357 if test $ac_cv_header_stdc = yes; then
4358 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4360 /* end confdefs.h. */
4364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4365 $EGREP "memchr" >/dev
/null
2>&1; then :
4368 ac_cv_header_stdc
=no
4374 if test $ac_cv_header_stdc = yes; then
4375 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4377 /* end confdefs.h. */
4381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4382 $EGREP "free" >/dev
/null
2>&1; then :
4385 ac_cv_header_stdc
=no
4391 if test $ac_cv_header_stdc = yes; then
4392 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4393 if test "$cross_compiling" = yes; then :
4396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h. */
4400 #if ((' ' & 0x0FF) == 0x020)
4401 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4402 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4404 # define ISLOWER(c) \
4405 (('a' <= (c) && (c) <= 'i') \
4406 || ('j' <= (c) && (c) <= 'r') \
4407 || ('s' <= (c) && (c) <= 'z'))
4408 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4411 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4416 for (i = 0; i < 256; i++)
4417 if (XOR (islower (i), ISLOWER (i))
4418 || toupper (i) != TOUPPER (i))
4423 if ac_fn_c_try_run
"$LINENO"; then :
4426 ac_cv_header_stdc
=no
4428 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4429 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4435 $as_echo "$ac_cv_header_stdc" >&6; }
4436 if test $ac_cv_header_stdc = yes; then
4438 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4442 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4443 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4444 inttypes.h stdint.h unistd.h
4446 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4447 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4449 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4450 cat >>confdefs.h
<<_ACEOF
4451 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4460 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4461 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4468 if test "$MINIX" = yes; then
4470 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4473 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4476 $as_echo "#define _MINIX 1" >>confdefs.h
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4482 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4483 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4484 $as_echo_n "(cached) " >&6
4486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4487 /* end confdefs.h. */
4489 # define __EXTENSIONS__ 1
4490 $ac_includes_default
4499 if ac_fn_c_try_compile
"$LINENO"; then :
4500 ac_cv_safe_to_define___extensions__
=yes
4502 ac_cv_safe_to_define___extensions__
=no
4504 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4507 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4508 test $ac_cv_safe_to_define___extensions__ = yes &&
4509 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4511 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4513 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4515 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4517 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4521 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4522 if test -f "$ac_dir/install-sh"; then
4524 ac_install_sh
="$ac_aux_dir/install-sh -c"
4526 elif test -f "$ac_dir/install.sh"; then
4528 ac_install_sh
="$ac_aux_dir/install.sh -c"
4530 elif test -f "$ac_dir/shtool"; then
4532 ac_install_sh
="$ac_aux_dir/shtool install -c"
4536 if test -z "$ac_aux_dir"; then
4537 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4540 # These three variables are undocumented and unsupported,
4541 # and are intended to be withdrawn in a future Autoconf release.
4542 # They can cause serious problems if a builder's source tree is in a directory
4543 # whose full name contains unusual characters.
4544 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4545 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4546 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4549 # Make sure we can run config.sub.
4550 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4551 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4554 $as_echo_n "checking build system type... " >&6; }
4555 if ${ac_cv_build+:} false
; then :
4556 $as_echo_n "(cached) " >&6
4558 ac_build_alias
=$build_alias
4559 test "x$ac_build_alias" = x
&&
4560 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4561 test "x$ac_build_alias" = x
&&
4562 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4563 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4564 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4568 $as_echo "$ac_cv_build" >&6; }
4569 case $ac_cv_build in
4571 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4574 ac_save_IFS
=$IFS; IFS
='-'
4580 # Remember, the first character of IFS is used to create $*,
4581 # except with old shells:
4584 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4588 $as_echo_n "checking host system type... " >&6; }
4589 if ${ac_cv_host+:} false
; then :
4590 $as_echo_n "(cached) " >&6
4592 if test "x$host_alias" = x
; then
4593 ac_cv_host
=$ac_cv_build
4595 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4596 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4601 $as_echo "$ac_cv_host" >&6; }
4604 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4607 ac_save_IFS
=$IFS; IFS
='-'
4613 # Remember, the first character of IFS is used to create $*,
4614 # except with old shells:
4617 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4621 $as_echo_n "checking target system type... " >&6; }
4622 if ${ac_cv_target+:} false
; then :
4623 $as_echo_n "(cached) " >&6
4625 if test "x$target_alias" = x
; then
4626 ac_cv_target
=$ac_cv_host
4628 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4629 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4634 $as_echo "$ac_cv_target" >&6; }
4635 case $ac_cv_target in
4637 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4639 target
=$ac_cv_target
4640 ac_save_IFS
=$IFS; IFS
='-'
4646 # Remember, the first character of IFS is used to create $*,
4647 # except with old shells:
4650 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4653 # The aliases save the names the user supplied, while $host etc.
4654 # will get canonicalized.
4655 test -n "$target_alias" &&
4656 test "$program_prefix$program_suffix$program_transform_name" = \
4658 program_prefix
=${target_alias}-
4660 # The tests for host and target for $enable_largefile require
4665 # As the $enable_largefile decision depends on --enable-plugins we must set it
4666 # even in directories otherwise not depending on the $plugins option.
4670 for ac_header
in dlfcn.h
4672 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4674 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
4675 cat >>confdefs.h
<<_ACEOF
4676 #define HAVE_DLFCN_H 1
4683 for ac_header
in windows.h
4685 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4687 if test "x$ac_cv_header_windows_h" = xyes
; then :
4688 cat >>confdefs.h
<<_ACEOF
4689 #define HAVE_WINDOWS_H 1
4697 # Check whether --enable-plugins was given.
4698 if test "${enable_plugins+set}" = set; then :
4699 enableval
=$enable_plugins; case "${enableval}" in
4702 if test "$maybe_plugins" != "yes" ; then
4703 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4707 plugins
=$maybe_plugins
4711 if test "$plugins" = "yes"; then
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4713 $as_echo_n "checking for library containing dlsym... " >&6; }
4714 if ${ac_cv_search_dlsym+:} false
; then :
4715 $as_echo_n "(cached) " >&6
4717 ac_func_search_save_LIBS
=$LIBS
4718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h. */
4721 /* Override any GCC internal prototype to avoid an error.
4722 Use char because int might match the return type of a GCC
4723 builtin and then its argument prototype would still apply. */
4736 for ac_lib
in '' dl
; do
4737 if test -z "$ac_lib"; then
4738 ac_res
="none required"
4741 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4743 if ac_fn_c_try_link
"$LINENO"; then :
4744 ac_cv_search_dlsym
=$ac_res
4746 rm -f core conftest.err conftest.
$ac_objext \
4748 if ${ac_cv_search_dlsym+:} false
; then :
4752 if ${ac_cv_search_dlsym+:} false
; then :
4755 ac_cv_search_dlsym
=no
4758 LIBS
=$ac_func_search_save_LIBS
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4761 $as_echo "$ac_cv_search_dlsym" >&6; }
4762 ac_res
=$ac_cv_search_dlsym
4763 if test "$ac_res" != no
; then :
4764 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4772 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4773 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4774 # are mutually exclusive; and without procfs support, the bfd/ elf module
4775 # cannot provide certain routines such as elfcore_write_prpsinfo
4776 # or elfcore_write_prstatus. So unless the user explicitly requested
4777 # large-file support through the --enable-largefile switch, disable
4778 # large-file support in favor of procfs support.
4779 test "${target}" = "${host}" -a "x$plugins" = xno \
4780 && : ${enable_largefile="no"}
4784 # Check whether --enable-largefile was given.
4785 if test "${enable_largefile+set}" = set; then :
4786 enableval
=$enable_largefile;
4789 if test "$enable_largefile" != no
; then
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4792 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4793 if ${ac_cv_sys_largefile_CC+:} false
; then :
4794 $as_echo_n "(cached) " >&6
4796 ac_cv_sys_largefile_CC
=no
4797 if test "$GCC" != yes; then
4800 # IRIX 6.2 and later do not support large files by default,
4801 # so use the C compiler's -n32 option if that helps.
4802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4803 /* end confdefs.h. */
4804 #include <sys/types.h>
4805 /* Check that off_t can represent 2**63 - 1 correctly.
4806 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4807 since some C++ compilers masquerading as C compilers
4808 incorrectly reject 9223372036854775807. */
4809 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4810 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4811 && LARGE_OFF_T % 2147483647 == 1)
4821 if ac_fn_c_try_compile
"$LINENO"; then :
4824 rm -f core conftest.err conftest.
$ac_objext
4826 if ac_fn_c_try_compile
"$LINENO"; then :
4827 ac_cv_sys_largefile_CC
=' -n32'; break
4829 rm -f core conftest.err conftest.
$ac_objext
4833 rm -f conftest.
$ac_ext
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4837 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4838 if test "$ac_cv_sys_largefile_CC" != no
; then
4839 CC
=$CC$ac_cv_sys_largefile_CC
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4843 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4844 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4845 $as_echo_n "(cached) " >&6
4848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h. */
4850 #include <sys/types.h>
4851 /* Check that off_t can represent 2**63 - 1 correctly.
4852 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4853 since some C++ compilers masquerading as C compilers
4854 incorrectly reject 9223372036854775807. */
4855 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4856 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4857 && LARGE_OFF_T % 2147483647 == 1)
4867 if ac_fn_c_try_compile
"$LINENO"; then :
4868 ac_cv_sys_file_offset_bits
=no
; break
4870 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4872 /* end confdefs.h. */
4873 #define _FILE_OFFSET_BITS 64
4874 #include <sys/types.h>
4875 /* Check that off_t can represent 2**63 - 1 correctly.
4876 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4877 since some C++ compilers masquerading as C compilers
4878 incorrectly reject 9223372036854775807. */
4879 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4880 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4881 && LARGE_OFF_T % 2147483647 == 1)
4891 if ac_fn_c_try_compile
"$LINENO"; then :
4892 ac_cv_sys_file_offset_bits
=64; break
4894 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4895 ac_cv_sys_file_offset_bits
=unknown
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4900 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4901 case $ac_cv_sys_file_offset_bits in #(
4904 cat >>confdefs.h
<<_ACEOF
4905 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4910 if test $ac_cv_sys_file_offset_bits = unknown
; then
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4912 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4913 if ${ac_cv_sys_large_files+:} false
; then :
4914 $as_echo_n "(cached) " >&6
4917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4918 /* end confdefs.h. */
4919 #include <sys/types.h>
4920 /* Check that off_t can represent 2**63 - 1 correctly.
4921 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4922 since some C++ compilers masquerading as C compilers
4923 incorrectly reject 9223372036854775807. */
4924 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4925 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4926 && LARGE_OFF_T % 2147483647 == 1)
4936 if ac_fn_c_try_compile
"$LINENO"; then :
4937 ac_cv_sys_large_files
=no
; break
4939 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4941 /* end confdefs.h. */
4942 #define _LARGE_FILES 1
4943 #include <sys/types.h>
4944 /* Check that off_t can represent 2**63 - 1 correctly.
4945 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4946 since some C++ compilers masquerading as C compilers
4947 incorrectly reject 9223372036854775807. */
4948 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4949 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4950 && LARGE_OFF_T % 2147483647 == 1)
4960 if ac_fn_c_try_compile
"$LINENO"; then :
4961 ac_cv_sys_large_files
=1; break
4963 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4964 ac_cv_sys_large_files
=unknown
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4969 $as_echo "$ac_cv_sys_large_files" >&6; }
4970 case $ac_cv_sys_large_files in #(
4973 cat >>confdefs.h
<<_ACEOF
4974 #define _LARGE_FILES $ac_cv_sys_large_files
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4989 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4990 if ${am_cv_prog_cc_stdc+:} false
; then :
4991 $as_echo_n "(cached) " >&6
4993 am_cv_prog_cc_stdc
=no
4995 # Don't try gcc -ansi; that turns off useful extensions and
4996 # breaks some systems' header files.
4997 # AIX -qlanglvl=ansi
4998 # Ultrix and OSF/1 -std1
4999 # HP-UX 10.20 and later -Ae
5000 # HP-UX older versions -Aa -D_HPUX_SOURCE
5001 # SVR4 -Xc -D__EXTENSIONS__
5002 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5004 CC
="$ac_save_CC $ac_arg"
5005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5006 /* end confdefs.h. */
5009 #include <sys/types.h>
5010 #include <sys/stat.h>
5011 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5012 struct buf { int x; };
5013 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5014 static char *e (p, i)
5020 static char *f (char * (*g) (char **, int), char **p, ...)
5025 s = g (p, va_arg (v,int));
5029 int test (int i, double x);
5030 struct s1 {int (*f) (int a);};
5031 struct s2 {int (*f) (double a);};
5032 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5040 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5046 if ac_fn_c_try_compile
"$LINENO"; then :
5047 am_cv_prog_cc_stdc
="$ac_arg"; break
5049 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5055 if test -z "$am_cv_prog_cc_stdc"; then
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5057 $as_echo "none needed" >&6; }
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
5060 $as_echo "$am_cv_prog_cc_stdc" >&6; }
5062 case "x$am_cv_prog_cc_stdc" in
5064 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
5067 # Expand $ac_aux_dir to an absolute path.
5068 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
5070 if test x
"${install_sh+set}" != xset
; then
5073 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
5075 install_sh
="\${SHELL} $am_aux_dir/install-sh"
5079 # Installed binaries are usually stripped using 'strip' when the user
5080 # run "make install-strip". However 'strip' might not be the right
5081 # tool to use in cross-compilation environments, therefore Automake
5082 # will honor the 'STRIP' environment variable to overrule this program.
5083 if test "$cross_compiling" != no
; then
5084 if test -n "$ac_tool_prefix"; then
5085 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5086 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5088 $as_echo_n "checking for $ac_word... " >&6; }
5089 if ${ac_cv_prog_STRIP+:} false
; then :
5090 $as_echo_n "(cached) " >&6
5092 if test -n "$STRIP"; then
5093 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5095 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5099 test -z "$as_dir" && as_dir
=.
5100 for ac_exec_ext
in '' $ac_executable_extensions; do
5101 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5102 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5112 STRIP
=$ac_cv_prog_STRIP
5113 if test -n "$STRIP"; then
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5115 $as_echo "$STRIP" >&6; }
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; }
5123 if test -z "$ac_cv_prog_STRIP"; then
5125 # Extract the first word of "strip", so it can be a program name with args.
5126 set dummy strip
; ac_word
=$2
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5128 $as_echo_n "checking for $ac_word... " >&6; }
5129 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
5130 $as_echo_n "(cached) " >&6
5132 if test -n "$ac_ct_STRIP"; then
5133 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5135 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5139 test -z "$as_dir" && as_dir
=.
5140 for ac_exec_ext
in '' $ac_executable_extensions; do
5141 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5142 ac_cv_prog_ac_ct_STRIP
="strip"
5143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5152 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5153 if test -n "$ac_ct_STRIP"; then
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5155 $as_echo "$ac_ct_STRIP" >&6; }
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5158 $as_echo "no" >&6; }
5161 if test "x$ac_ct_STRIP" = x
; then
5164 case $cross_compiling:$ac_tool_warned in
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5168 ac_tool_warned
=yes ;;
5173 STRIP
="$ac_cv_prog_STRIP"
5177 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
5181 for ac_dir
in ..
"$srcdir"/..
; do
5182 if test -f "$ac_dir/install-sh"; then
5184 ac_install_sh
="$ac_aux_dir/install-sh -c"
5186 elif test -f "$ac_dir/install.sh"; then
5188 ac_install_sh
="$ac_aux_dir/install.sh -c"
5190 elif test -f "$ac_dir/shtool"; then
5192 ac_install_sh
="$ac_aux_dir/shtool install -c"
5196 if test -z "$ac_aux_dir"; then
5197 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
5200 # These three variables are undocumented and unsupported,
5201 # and are intended to be withdrawn in a future Autoconf release.
5202 # They can cause serious problems if a builder's source tree is in a directory
5203 # whose full name contains unusual characters.
5204 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5205 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5206 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5210 test "$program_prefix" != NONE
&&
5211 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
5212 # Use a double $ so make ignores it.
5213 test "$program_suffix" != NONE
&&
5214 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
5215 # Double any \ or $.
5216 # By default was `s,x,x', remove it if useless.
5217 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
5218 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
5221 # We require a C++11 compiler. Check if one is available, and if
5222 # necessary, set CXX_DIALECT to some -std=xxx switch.
5224 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5226 ac_cpp
='$CXXCPP $CPPFLAGS'
5227 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5228 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5229 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5233 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5234 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5235 $as_echo_n "(cached) " >&6
5237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5241 // If the compiler admits that it is not ready for C++11, why torture it?
5242 // Hopefully, this will speed up the test.
5246 #error "This is not a C++ compiler"
5248 #elif __cplusplus < 201103L
5250 #error "This is not a C++11 compiler"
5257 namespace test_static_assert
5260 template <typename T>
5263 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5268 namespace test_final_override
5276 struct Derived : public Base
5278 virtual void f() override {}
5283 namespace test_double_right_angle_brackets
5286 template < typename T >
5289 typedef check<void> single_type;
5290 typedef check<check<void>> double_type;
5291 typedef check<check<check<void>>> triple_type;
5292 typedef check<check<check<check<void>>>> quadruple_type;
5296 namespace test_decltype
5309 namespace test_type_deduction
5312 template < typename T1, typename T2 >
5315 static const bool value = false;
5318 template < typename T >
5319 struct is_same<T, T>
5321 static const bool value = true;
5324 template < typename T1, typename T2 >
5326 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5332 test(const int c, volatile int v)
5334 static_assert(is_same<int, decltype(0)>::value == true, "");
5335 static_assert(is_same<int, decltype(c)>::value == false, "");
5336 static_assert(is_same<int, decltype(v)>::value == false, "");
5339 auto sumi = ac + av + 'x';
5340 auto sumf = ac + av + 1.0;
5341 static_assert(is_same<int, decltype(ac)>::value == true, "");
5342 static_assert(is_same<int, decltype(av)>::value == true, "");
5343 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5344 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5345 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5346 return (sumf > 0.0) ? sumi : add(c, v);
5351 namespace test_noexcept
5354 int f() { return 0; }
5355 int g() noexcept { return 0; }
5357 static_assert(noexcept(f()) == false, "");
5358 static_assert(noexcept(g()) == true, "");
5362 namespace test_constexpr
5365 template < typename CharT >
5366 unsigned long constexpr
5367 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5369 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5372 template < typename CharT >
5373 unsigned long constexpr
5374 strlen_c(const CharT *const s) noexcept
5376 return strlen_c_r(s, 0UL);
5379 static_assert(strlen_c("") == 0UL, "");
5380 static_assert(strlen_c("1") == 1UL, "");
5381 static_assert(strlen_c("example") == 7UL, "");
5382 static_assert(strlen_c("another\0example") == 7UL, "");
5386 namespace test_rvalue_references
5392 static constexpr int value = N;
5395 answer<1> f(int&) { return answer<1>(); }
5396 answer<2> f(const int&) { return answer<2>(); }
5397 answer<3> f(int&&) { return answer<3>(); }
5404 static_assert(decltype(f(i))::value == 1, "");
5405 static_assert(decltype(f(c))::value == 2, "");
5406 static_assert(decltype(f(0))::value == 3, "");
5411 namespace test_uniform_initialization
5416 static const int zero {};
5417 static const int one {1};
5420 static_assert(test::zero == 0, "");
5421 static_assert(test::one == 1, "");
5425 namespace test_lambdas
5431 auto lambda1 = [](){};
5432 auto lambda2 = lambda1;
5440 auto a = [](int i, int j){ return i + j; }(1, 2);
5441 auto b = []() -> int { return '0'; }();
5442 auto c = [=](){ return a + b; }();
5443 auto d = [&](){ return c; }();
5444 auto e = [a, &b](int x) mutable {
5445 const auto identity = [](int y){ return y; };
5446 for (auto i = 0; i < a; ++i)
5448 return x + identity(a + b);
5450 return a + b + c + d + e;
5456 const auto nullary = [](){ return 0; };
5457 const auto unary = [](int x){ return x; };
5458 using nullary_t = decltype(nullary);
5459 using unary_t = decltype(unary);
5460 const auto higher1st = [](nullary_t f){ return f(); };
5461 const auto higher2nd = [unary](nullary_t f1){
5462 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5464 return higher1st(nullary) + higher2nd(nullary)(unary);
5469 namespace test_variadic_templates
5475 template <int N0, int... N1toN>
5476 struct sum<N0, N1toN...>
5478 static constexpr auto value = N0 + sum<N1toN...>::value;
5484 static constexpr auto value = 0;
5487 static_assert(sum<>::value == 0, "");
5488 static_assert(sum<1>::value == 1, "");
5489 static_assert(sum<23>::value == 23, "");
5490 static_assert(sum<1, 2>::value == 3, "");
5491 static_assert(sum<5, 5, 11>::value == 21, "");
5492 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5496 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5497 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5499 namespace test_template_alias_sfinae
5504 template<typename T>
5505 using member = typename T::member_type;
5507 template<typename T>
5510 template<typename T>
5511 void func(member<T>*) {}
5515 void test() { func<foo>(0); }
5519 } // namespace cxx11
5521 #endif // __cplusplus >= 201103L
5526 if ac_fn_cxx_try_compile
"$LINENO"; then :
5527 ax_cv_cxx_compile_cxx11
=yes
5529 ax_cv_cxx_compile_cxx11
=no
5531 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5534 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5535 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
5539 if test x
$ac_success = xno
; then
5540 for alternative
in ${ax_cxx_compile_alternatives}; do
5541 switch
="-std=gnu++${alternative}"
5542 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5544 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5545 if eval \
${$cachevar+:} false
; then :
5546 $as_echo_n "(cached) " >&6
5550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5551 /* end confdefs.h. */
5554 // If the compiler admits that it is not ready for C++11, why torture it?
5555 // Hopefully, this will speed up the test.
5559 #error "This is not a C++ compiler"
5561 #elif __cplusplus < 201103L
5563 #error "This is not a C++11 compiler"
5570 namespace test_static_assert
5573 template <typename T>
5576 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5581 namespace test_final_override
5589 struct Derived : public Base
5591 virtual void f() override {}
5596 namespace test_double_right_angle_brackets
5599 template < typename T >
5602 typedef check<void> single_type;
5603 typedef check<check<void>> double_type;
5604 typedef check<check<check<void>>> triple_type;
5605 typedef check<check<check<check<void>>>> quadruple_type;
5609 namespace test_decltype
5622 namespace test_type_deduction
5625 template < typename T1, typename T2 >
5628 static const bool value = false;
5631 template < typename T >
5632 struct is_same<T, T>
5634 static const bool value = true;
5637 template < typename T1, typename T2 >
5639 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5645 test(const int c, volatile int v)
5647 static_assert(is_same<int, decltype(0)>::value == true, "");
5648 static_assert(is_same<int, decltype(c)>::value == false, "");
5649 static_assert(is_same<int, decltype(v)>::value == false, "");
5652 auto sumi = ac + av + 'x';
5653 auto sumf = ac + av + 1.0;
5654 static_assert(is_same<int, decltype(ac)>::value == true, "");
5655 static_assert(is_same<int, decltype(av)>::value == true, "");
5656 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5657 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5658 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5659 return (sumf > 0.0) ? sumi : add(c, v);
5664 namespace test_noexcept
5667 int f() { return 0; }
5668 int g() noexcept { return 0; }
5670 static_assert(noexcept(f()) == false, "");
5671 static_assert(noexcept(g()) == true, "");
5675 namespace test_constexpr
5678 template < typename CharT >
5679 unsigned long constexpr
5680 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5682 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5685 template < typename CharT >
5686 unsigned long constexpr
5687 strlen_c(const CharT *const s) noexcept
5689 return strlen_c_r(s, 0UL);
5692 static_assert(strlen_c("") == 0UL, "");
5693 static_assert(strlen_c("1") == 1UL, "");
5694 static_assert(strlen_c("example") == 7UL, "");
5695 static_assert(strlen_c("another\0example") == 7UL, "");
5699 namespace test_rvalue_references
5705 static constexpr int value = N;
5708 answer<1> f(int&) { return answer<1>(); }
5709 answer<2> f(const int&) { return answer<2>(); }
5710 answer<3> f(int&&) { return answer<3>(); }
5717 static_assert(decltype(f(i))::value == 1, "");
5718 static_assert(decltype(f(c))::value == 2, "");
5719 static_assert(decltype(f(0))::value == 3, "");
5724 namespace test_uniform_initialization
5729 static const int zero {};
5730 static const int one {1};
5733 static_assert(test::zero == 0, "");
5734 static_assert(test::one == 1, "");
5738 namespace test_lambdas
5744 auto lambda1 = [](){};
5745 auto lambda2 = lambda1;
5753 auto a = [](int i, int j){ return i + j; }(1, 2);
5754 auto b = []() -> int { return '0'; }();
5755 auto c = [=](){ return a + b; }();
5756 auto d = [&](){ return c; }();
5757 auto e = [a, &b](int x) mutable {
5758 const auto identity = [](int y){ return y; };
5759 for (auto i = 0; i < a; ++i)
5761 return x + identity(a + b);
5763 return a + b + c + d + e;
5769 const auto nullary = [](){ return 0; };
5770 const auto unary = [](int x){ return x; };
5771 using nullary_t = decltype(nullary);
5772 using unary_t = decltype(unary);
5773 const auto higher1st = [](nullary_t f){ return f(); };
5774 const auto higher2nd = [unary](nullary_t f1){
5775 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5777 return higher1st(nullary) + higher2nd(nullary)(unary);
5782 namespace test_variadic_templates
5788 template <int N0, int... N1toN>
5789 struct sum<N0, N1toN...>
5791 static constexpr auto value = N0 + sum<N1toN...>::value;
5797 static constexpr auto value = 0;
5800 static_assert(sum<>::value == 0, "");
5801 static_assert(sum<1>::value == 1, "");
5802 static_assert(sum<23>::value == 23, "");
5803 static_assert(sum<1, 2>::value == 3, "");
5804 static_assert(sum<5, 5, 11>::value == 21, "");
5805 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5809 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5810 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5812 namespace test_template_alias_sfinae
5817 template<typename T>
5818 using member = typename T::member_type;
5820 template<typename T>
5823 template<typename T>
5824 void func(member<T>*) {}
5828 void test() { func<foo>(0); }
5832 } // namespace cxx11
5834 #endif // __cplusplus >= 201103L
5839 if ac_fn_cxx_try_compile
"$LINENO"; then :
5844 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5847 eval ac_res
=\$
$cachevar
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5849 $as_echo "$ac_res" >&6; }
5850 if eval test x\$
$cachevar = xyes
; then
5851 CXX_DIALECT
="$switch"
5858 if test x
$ac_success = xno
; then
5859 for alternative
in ${ax_cxx_compile_alternatives}; do
5860 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5861 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
5863 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
5864 if eval \${$cachevar+:} false; then :
5865 $as_echo_n "(cached
) " >&6
5869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5870 /* end confdefs.h. */
5873 // If the compiler admits that it is not ready for C++11, why torture it?
5874 // Hopefully, this will speed up the test.
5878 #error "This is not a C
++ compiler
"
5880 #elif __cplusplus < 201103L
5882 #error "This is not a C
++11 compiler
"
5889 namespace test_static_assert
5892 template <typename T>
5895 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
5900 namespace test_final_override
5908 struct Derived : public Base
5910 virtual void f() override {}
5915 namespace test_double_right_angle_brackets
5918 template < typename T >
5921 typedef check<void> single_type;
5922 typedef check<check<void>> double_type;
5923 typedef check<check<check<void>>> triple_type;
5924 typedef check<check<check<check<void>>>> quadruple_type;
5928 namespace test_decltype
5941 namespace test_type_deduction
5944 template < typename T1, typename T2 >
5947 static const bool value = false;
5950 template < typename T >
5951 struct is_same<T, T>
5953 static const bool value = true;
5956 template < typename T1, typename T2 >
5958 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5964 test(const int c, volatile int v)
5966 static_assert(is_same<int, decltype(0)>::value == true, "");
5967 static_assert(is_same<int, decltype(c)>::value == false, "");
5968 static_assert(is_same<int, decltype(v)>::value == false, "");
5971 auto sumi = ac + av + 'x';
5972 auto sumf = ac + av + 1.0;
5973 static_assert(is_same<int, decltype(ac)>::value == true, "");
5974 static_assert(is_same<int, decltype(av)>::value == true, "");
5975 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5976 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5977 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5978 return (sumf > 0.0) ? sumi : add(c, v);
5983 namespace test_noexcept
5986 int f() { return 0; }
5987 int g() noexcept { return 0; }
5989 static_assert(noexcept(f()) == false, "");
5990 static_assert(noexcept(g()) == true, "");
5994 namespace test_constexpr
5997 template < typename CharT >
5998 unsigned long constexpr
5999 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6001 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6004 template < typename CharT >
6005 unsigned long constexpr
6006 strlen_c(const CharT *const s) noexcept
6008 return strlen_c_r(s, 0UL);
6011 static_assert(strlen_c("") == 0UL, "");
6012 static_assert(strlen_c("1") == 1UL, "");
6013 static_assert(strlen_c("example
") == 7UL, "");
6014 static_assert(strlen_c("another\
0example
") == 7UL, "");
6018 namespace test_rvalue_references
6024 static constexpr int value = N;
6027 answer<1> f(int&) { return answer<1>(); }
6028 answer<2> f(const int&) { return answer<2>(); }
6029 answer<3> f(int&&) { return answer<3>(); }
6036 static_assert(decltype(f(i))::value == 1, "");
6037 static_assert(decltype(f(c))::value == 2, "");
6038 static_assert(decltype(f(0))::value == 3, "");
6043 namespace test_uniform_initialization
6048 static const int zero {};
6049 static const int one {1};
6052 static_assert(test::zero == 0, "");
6053 static_assert(test::one == 1, "");
6057 namespace test_lambdas
6063 auto lambda1 = [](){};
6064 auto lambda2 = lambda1;
6072 auto a = [](int i, int j){ return i + j; }(1, 2);
6073 auto b = []() -> int { return '0'; }();
6074 auto c = [=](){ return a + b; }();
6075 auto d = [&](){ return c; }();
6076 auto e = [a, &b](int x) mutable {
6077 const auto identity = [](int y){ return y; };
6078 for (auto i = 0; i < a; ++i)
6080 return x + identity(a + b);
6082 return a + b + c + d + e;
6088 const auto nullary = [](){ return 0; };
6089 const auto unary = [](int x){ return x; };
6090 using nullary_t = decltype(nullary);
6091 using unary_t = decltype(unary);
6092 const auto higher1st = [](nullary_t f){ return f(); };
6093 const auto higher2nd = [unary](nullary_t f1){
6094 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6096 return higher1st(nullary) + higher2nd(nullary)(unary);
6101 namespace test_variadic_templates
6107 template <int N0, int... N1toN>
6108 struct sum<N0, N1toN...>
6110 static constexpr auto value = N0 + sum<N1toN...>::value;
6116 static constexpr auto value = 0;
6119 static_assert(sum<>::value == 0, "");
6120 static_assert(sum<1>::value == 1, "");
6121 static_assert(sum<23>::value == 23, "");
6122 static_assert(sum<1, 2>::value == 3, "");
6123 static_assert(sum<5, 5, 11>::value == 21, "");
6124 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6128 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6129 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6131 namespace test_template_alias_sfinae
6136 template<typename T>
6137 using member = typename T::member_type;
6139 template<typename T>
6142 template<typename T>
6143 void func(member<T>*) {}
6147 void test() { func<foo>(0); }
6151 } // namespace cxx11
6153 #endif // __cplusplus >= 201103L
6158 if ac_fn_cxx_try_compile "$LINENO"; then :
6163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6166 eval ac_res=\$$cachevar
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6168 $as_echo "$ac_res" >&6; }
6169 if eval test x\$$cachevar = xyes; then
6170 CXX_DIALECT="$switch"
6175 if test x$ac_success = xyes; then
6181 ac_cpp='$CPP $CPPFLAGS'
6182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6186 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6187 if test x$ac_success = xno; then
6188 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6191 if test x$ac_success = xno; then
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6194 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6198 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6205 # Dependency checking.
6206 rm -rf .tst
2>/dev
/null
6207 mkdir .tst
2>/dev
/null
6208 if test -d .tst
; then
6213 rmdir .tst
2>/dev
/null
6215 DEPDIR
="${am__leading_dot}deps"
6217 ac_config_commands
="$ac_config_commands depdir"
6220 depcc
="$CC" am_compiler_list
=
6222 am_depcomp
=$ac_aux_dir/depcomp
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6224 $as_echo_n "checking dependency style of $depcc... " >&6; }
6225 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
6226 $as_echo_n "(cached) " >&6
6228 if test -f "$am_depcomp"; then
6229 # We make a subdir and do the tests there. Otherwise we can end up
6230 # making bogus files that we don't know about and never remove. For
6231 # instance it was reported that on HP-UX the gcc test will end up
6232 # making a dummy file named `D' -- because `-MD' means `put the output
6235 # Copy depcomp to subdir because otherwise we won't find it if we're
6236 # using a relative directory.
6237 cp "$am_depcomp" conftest.dir
6239 # We will build objects and dependencies in a subdirectory because
6240 # it helps to detect inapplicable dependency modes. For instance
6241 # both Tru64's cc and ICC support -MD to output dependencies as a
6242 # side effect of compilation, but ICC will put the dependencies in
6243 # the current directory while Tru64 will put them in the object
6247 am_cv_CC_dependencies_compiler_type
=none
6248 if test "$am_compiler_list" = ""; then
6249 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6251 for depmode
in $am_compiler_list; do
6252 if test $depmode = none
; then break; fi
6254 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6255 # Setup a source with many dependencies, because some compilers
6256 # like to wrap large dependency lists on column 80 (with \), and
6257 # we should not choose a depcomp mode which is confused by this.
6259 # We need to recreate these files for each test, as the compiler may
6260 # overwrite some of them when testing with obscure command lines.
6261 # This happens at least with the AIX C compiler.
6263 for i
in 1 2 3 4 5 6; do
6264 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6265 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6266 # Solaris 8's {/usr,}/bin/sh.
6267 touch sub
/conftst
$i.h
6269 echo "include sub/conftest.Po" > confmf
6271 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6272 # mode. It turns out that the SunPro C++ compiler does not properly
6273 # handle `-M -o', and we need to detect this.
6274 depcmd
="depmode=$depmode \
6275 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6276 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6277 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6278 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
6279 if env
$depcmd > conftest.err
2>&1 &&
6280 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
6281 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
6282 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
6283 # icc doesn't choke on unknown options, it will just issue warnings
6284 # or remarks (even with -Werror). So we grep stderr for any message
6285 # that says an option was ignored or not supported.
6286 # When given -MP, icc 7.0 and 7.1 complain thusly:
6287 # icc: Command line warning: ignoring option '-M'; no argument required
6288 # The diagnosis changed in icc 8.0:
6289 # icc: Command line remark: option '-MP' not supported
6290 if (grep 'ignoring option' conftest.err ||
6291 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6292 am_cv_CC_dependencies_compiler_type
=$depmode
6293 $as_echo "$as_me:$LINENO: success" >&5
6297 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6298 sed -e 's/^/| /' < conftest.err
>&5
6304 am_cv_CC_dependencies_compiler_type
=none
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6309 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6310 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
6311 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
6312 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
6328 # If we haven't got the data from the intl directory,
6329 # assume NLS is disabled.
6338 if test -f ..
/intl
/config.intl
; then
6339 . ..
/intl
/config.intl
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6342 $as_echo_n "checking whether NLS is requested... " >&6; }
6343 if test x
"$USE_NLS" != xyes
; then
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6345 $as_echo "no" >&6; }
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6348 $as_echo "yes" >&6; }
6350 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6354 $as_echo_n "checking for catalogs to be installed... " >&6; }
6355 # Look for .po and .gmo files in the source directory.
6358 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
6359 # If there aren't any .gmo files the shell will give us the
6360 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6362 case "$cat" in *\
**)
6365 # The quadruple backslash is collapsed to a double backslash
6366 # by the backticks, then collapsed again by the double quotes,
6367 # leaving us with one backslash in the sed expression (right
6368 # before the dot that mustn't act as a wildcard).
6369 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6370 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
6371 # The user is allowed to set LINGUAS to a list of languages to
6372 # install catalogs for. If it's empty that means "all of them."
6373 if test "x$LINGUAS" = x
; then
6374 CATALOGS
="$CATALOGS $cat"
6375 XLINGUAS
="$XLINGUAS $lang"
6377 case "$LINGUAS" in *$lang*)
6378 CATALOGS
="$CATALOGS $cat"
6379 XLINGUAS
="$XLINGUAS $lang"
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6386 $as_echo "$LINGUAS" >&6; }
6399 localedir
='${datadir}/locale'
6402 if test x
"$USE_NLS" = xyes
; then
6403 CONFIG_ALL
="$CONFIG_ALL all-po"
6404 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
6405 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
6406 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
6411 cat >>confdefs.h
<<_ACEOF
6412 #define PACKAGE "$PACKAGE"
6417 # We never need to detect it in this sub-configure.
6418 # But preserve it for config.status --recheck.
6422 MAKEINFO_EXTRA_FLAGS
=""
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
6424 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
6425 if ${gdb_cv_have_makeinfo_click+:} false
; then :
6426 $as_echo_n "(cached) " >&6
6428 echo '@clicksequence{a @click{} b}' >conftest.texinfo
6429 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
6430 gdb_cv_have_makeinfo_click
=yes
6432 gdb_cv_have_makeinfo_click
=no
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
6436 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
6437 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
6438 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
6444 # Check whether --with-separate-debug-dir was given.
6445 if test "${with_separate_debug_dir+set}" = set; then :
6446 withval
=$with_separate_debug_dir;
6449 DEBUGDIR
=${libdir}/debug
6453 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6454 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6455 ac_define_dir
=`eval echo $DEBUGDIR`
6456 ac_define_dir
=`eval echo $ac_define_dir`
6458 cat >>confdefs.h
<<_ACEOF
6459 #define DEBUGDIR "$ac_define_dir"
6465 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6466 if test "x$prefix" = xNONE
; then
6467 test_prefix
=/usr
/local
6472 test_prefix
=$exec_prefix
6475 case ${ac_define_dir} in
6476 "${test_prefix}"|
"${test_prefix}/"*|\
6477 '${exec_prefix}'|
'${exec_prefix}/'*)
6482 cat >>confdefs.h
<<_ACEOF
6483 #define DEBUGDIR_RELOCATABLE $value
6489 # We can't pass paths as command line arguments.
6490 # Mingw32 tries to be clever and will convert the paths for us.
6491 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
6492 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
6493 # This breaks GDB's relocatable path conversions since paths passed in
6494 # config.h would not get so translated, the path prefixes no longer match.
6496 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6497 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6498 ac_define_dir
=`eval echo $bindir`
6499 ac_define_dir
=`eval echo $ac_define_dir`
6501 cat >>confdefs.h
<<_ACEOF
6502 #define BINDIR "$ac_define_dir"
6507 # GDB's datadir relocation
6511 # Check whether --with-gdb-datadir was given.
6512 if test "${with_gdb_datadir+set}" = set; then :
6513 withval
=$with_gdb_datadir;
6514 GDB_DATADIR
=$withval
6516 GDB_DATADIR
=${datadir}/gdb
6520 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6521 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6522 ac_define_dir
=`eval echo $GDB_DATADIR`
6523 ac_define_dir
=`eval echo $ac_define_dir`
6525 cat >>confdefs.h
<<_ACEOF
6526 #define GDB_DATADIR "$ac_define_dir"
6532 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6533 if test "x$prefix" = xNONE
; then
6534 test_prefix
=/usr
/local
6539 test_prefix
=$exec_prefix
6542 case ${ac_define_dir} in
6543 "${test_prefix}"|
"${test_prefix}/"*|\
6544 '${exec_prefix}'|
'${exec_prefix}/'*)
6549 cat >>confdefs.h
<<_ACEOF
6550 #define GDB_DATADIR_RELOCATABLE $value
6557 # Check whether --with-relocated-sources was given.
6558 if test "${with_relocated_sources+set}" = set; then :
6559 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
6561 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6562 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6563 ac_define_dir
=`eval echo $reloc_srcdir`
6564 ac_define_dir
=`eval echo $ac_define_dir`
6566 cat >>confdefs.h
<<_ACEOF
6567 #define RELOC_SRCDIR "$ac_define_dir"
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
6576 $as_echo_n "checking for default auto-load directory... " >&6; }
6578 # Check whether --with-auto-load-dir was given.
6579 if test "${with_auto_load_dir+set}" = set; then :
6580 withval
=$with_auto_load_dir;
6582 with_auto_load_dir
='$debugdir:$datadir/auto-load'
6585 escape_dir
=`echo $with_auto_load_dir | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6587 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6588 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6589 ac_define_dir
=`eval echo $escape_dir`
6590 ac_define_dir
=`eval echo $ac_define_dir`
6592 cat >>confdefs.h
<<_ACEOF
6593 #define AUTO_LOAD_DIR "$ac_define_dir"
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
6598 $as_echo "$with_auto_load_dir" >&6; }
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
6601 $as_echo_n "checking for default auto-load safe-path... " >&6; }
6603 # Check whether --with-auto-load-safe-path was given.
6604 if test "${with_auto_load_safe_path+set}" = set; then :
6605 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
6606 with_auto_load_safe_path
="/"
6609 with_auto_load_safe_path
="$with_auto_load_dir"
6612 escape_dir
=`echo $with_auto_load_safe_path | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6614 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6615 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6616 ac_define_dir
=`eval echo $escape_dir`
6617 ac_define_dir
=`eval echo $ac_define_dir`
6619 cat >>confdefs.h
<<_ACEOF
6620 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
6625 $as_echo "$with_auto_load_safe_path" >&6; }
6629 subdirs
="$subdirs testsuite"
6632 # Check whether to support alternative target configurations
6633 # Check whether --enable-targets was given.
6634 if test "${enable_targets+set}" = set; then :
6635 enableval
=$enable_targets; case "${enableval}" in
6636 yes |
"") as_fn_error $?
"enable-targets option must specify target names or 'all'" "$LINENO" 5
6638 no
) enable_targets
= ;;
6639 *) enable_targets
=$enableval ;;
6644 # Check whether to enable 64-bit support on 32-bit hosts
6645 # Check whether --enable-64-bit-bfd was given.
6646 if test "${enable_64_bit_bfd+set}" = set; then :
6647 enableval
=$enable_64_bit_bfd; case "${enableval}" in
6650 *) as_fn_error $?
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
6656 # Provide defaults for some variables set by the per-host and per-target
6658 gdb_host_obs
=posix-hdep.o
6660 if test "${target}" = "${host}"; then
6666 .
$srcdir/configure.
host
6668 # Accumulate some settings from configure.tgt over all enabled targets
6672 HAVE_NATIVE_GCORE_TARGET
=
6674 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6676 if test "$targ_alias" = "all"; then
6679 # Canonicalize the secondary target names.
6680 result
=`$ac_config_sub $targ_alias 2>/dev/null`
6681 if test -n "$result"; then
6687 .
${srcdir}/configure.tgt
6689 if test -z "${gdb_target_obs}"; then :
6690 as_fn_error $?
"configuration ${targ} is unsupported." "$LINENO" 5
6693 # Target-specific object files
6694 for i
in ${gdb_target_obs}; do
6695 case " $TARGET_OBS " in
6698 TARGET_OBS
="$TARGET_OBS ${i}"
6703 # Check whether this target needs 64-bit CORE_ADDR
6704 if test x
${want64} = xfalse
; then
6705 .
${srcdir}/..
/bfd
/config.bfd
6708 # Check whether this target is native and supports gcore.
6709 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
6710 && $gdb_have_gcore; then
6711 HAVE_NATIVE_GCORE_TARGET
=1
6716 if test x
${all_targets} = xtrue
; then
6718 # We want all 64-bit targets if we either:
6719 # - run on a 64-bit host or
6720 # - already require 64-bit support for some other target or
6721 # - the --enable-64-bit-bfd option was supplied
6722 # Otherwise we only support all 32-bit targets.
6724 # NOTE: This test must be in sync with the corresponding
6727 if test x
${want64} = xfalse
; then
6728 # The cast to long int works around a bug in the HP C Compiler
6729 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6730 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6731 # This bug is HP SR number 8606223364.
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6733 $as_echo_n "checking size of long... " >&6; }
6734 if ${ac_cv_sizeof_long+:} false
; then :
6735 $as_echo_n "(cached) " >&6
6737 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6740 if test "$ac_cv_type_long" = yes; then
6741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6743 as_fn_error
77 "cannot compute sizeof (long)
6744 See \`config.log' for more details" "$LINENO" 5; }
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6752 $as_echo "$ac_cv_sizeof_long" >&6; }
6756 cat >>confdefs.h
<<_ACEOF
6757 #define SIZEOF_LONG $ac_cv_sizeof_long
6761 if test "x${ac_cv_sizeof_long}" = "x8"; then
6765 if test x
${want64} = xtrue
; then
6766 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
6768 TARGET_OBS
='$(ALL_TARGET_OBS)'
6775 # For other settings, only the main target counts.
6778 targ
=$target; .
${srcdir}/configure.tgt
6780 # Fetch the default architecture and default target vector from BFD.
6781 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
6783 # We only want the first architecture, so strip off the others if
6784 # there is more than one.
6785 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
6787 if test "x$targ_archs" != x
; then
6789 cat >>confdefs.h
<<_ACEOF
6790 #define DEFAULT_BFD_ARCH $targ_archs
6794 if test "x$targ_defvec" != x
; then
6796 cat >>confdefs.h
<<_ACEOF
6797 #define DEFAULT_BFD_VEC $targ_defvec
6803 # Check whether --enable-gdbmi was given.
6804 if test "${enable_gdbmi+set}" = set; then :
6805 enableval
=$enable_gdbmi; case $enableval in
6809 as_fn_error $?
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
6815 if test x
"$enable_gdbmi" = xyes
; then
6816 if test -d "$srcdir/mi"; then
6817 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6818 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6819 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6820 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6825 # Check whether --enable-tui was given.
6826 if test "${enable_tui+set}" = set; then :
6827 enableval
=$enable_tui; case $enableval in
6831 as_fn_error $?
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
6839 # Check whether --enable-gdbtk was given.
6840 if test "${enable_gdbtk+set}" = set; then :
6841 enableval
=$enable_gdbtk; case $enableval in
6845 as_fn_error $?
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
6848 if test -d "$srcdir/gdbtk"; then
6855 # We unconditionally disable gdbtk tests on selected platforms.
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
6859 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6863 # Handle optional debuginfod support
6871 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6872 if test -n "$ac_tool_prefix"; then
6873 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6874 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6876 $as_echo_n "checking for $ac_word... " >&6; }
6877 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
6878 $as_echo_n "(cached) " >&6
6882 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6885 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6889 test -z "$as_dir" && as_dir
=.
6890 for ac_exec_ext
in '' $ac_executable_extensions; do
6891 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6892 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6904 if test -n "$PKG_CONFIG"; then
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6906 $as_echo "$PKG_CONFIG" >&6; }
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909 $as_echo "no" >&6; }
6914 if test -z "$ac_cv_path_PKG_CONFIG"; then
6915 ac_pt_PKG_CONFIG
=$PKG_CONFIG
6916 # Extract the first word of "pkg-config", so it can be a program name with args.
6917 set dummy pkg-config
; ac_word
=$2
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6919 $as_echo_n "checking for $ac_word... " >&6; }
6920 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
6921 $as_echo_n "(cached) " >&6
6923 case $ac_pt_PKG_CONFIG in
6925 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6928 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6932 test -z "$as_dir" && as_dir
=.
6933 for ac_exec_ext
in '' $ac_executable_extensions; do
6934 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6935 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6946 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
6947 if test -n "$ac_pt_PKG_CONFIG"; then
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6949 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6952 $as_echo "no" >&6; }
6955 if test "x$ac_pt_PKG_CONFIG" = x
; then
6958 case $cross_compiling:$ac_tool_warned in
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6962 ac_tool_warned
=yes ;;
6964 PKG_CONFIG
=$ac_pt_PKG_CONFIG
6967 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
6971 if test -n "$PKG_CONFIG"; then
6972 _pkg_min_version
=0.9.0
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6974 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6975 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6977 $as_echo "yes" >&6; }
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6980 $as_echo "no" >&6; }
6985 # Handle optional debuginfod support
6987 # Check whether --with-debuginfod was given.
6988 if test "${with_debuginfod+set}" = set; then :
6989 withval
=$with_debuginfod;
6991 with_debuginfod
=auto
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
6995 $as_echo_n "checking whether to use debuginfod... " >&6; }
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
6997 $as_echo "$with_debuginfod" >&6; }
6999 if test "x$with_debuginfod" != xno
; then
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
7003 $as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
7005 if test -n "$DEBUGINFOD_CFLAGS"; then
7006 pkg_cv_DEBUGINFOD_CFLAGS
="$DEBUGINFOD_CFLAGS"
7007 elif test -n "$PKG_CONFIG"; then
7008 if test -n "$PKG_CONFIG" && \
7009 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
7010 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
7012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7013 test $ac_status = 0; }; then
7014 pkg_cv_DEBUGINFOD_CFLAGS
=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
7015 test "x$?" != "x0" && pkg_failed
=yes
7022 if test -n "$DEBUGINFOD_LIBS"; then
7023 pkg_cv_DEBUGINFOD_LIBS
="$DEBUGINFOD_LIBS"
7024 elif test -n "$PKG_CONFIG"; then
7025 if test -n "$PKG_CONFIG" && \
7026 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
7027 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
7029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7030 test $ac_status = 0; }; then
7031 pkg_cv_DEBUGINFOD_LIBS
=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
7032 test "x$?" != "x0" && pkg_failed
=yes
7042 if test $pkg_failed = yes; then
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7044 $as_echo "no" >&6; }
7046 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7047 _pkg_short_errors_supported
=yes
7049 _pkg_short_errors_supported
=no
7051 if test $_pkg_short_errors_supported = yes; then
7052 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
7054 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
7056 # Put the nasty error message in config.log where it belongs
7057 echo "$DEBUGINFOD_PKG_ERRORS" >&5
7059 if test "x$with_debuginfod" = xyes
; then
7060 as_fn_error $?
"\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
7063 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
7065 elif test $pkg_failed = untried
; then
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7067 $as_echo "no" >&6; }
7068 if test "x$with_debuginfod" = xyes
; then
7069 as_fn_error $?
"\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
7072 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
7075 DEBUGINFOD_CFLAGS
=$pkg_cv_DEBUGINFOD_CFLAGS
7076 DEBUGINFOD_LIBS
=$pkg_cv_DEBUGINFOD_LIBS
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7078 $as_echo "yes" >&6; }
7080 $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
7085 $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
7089 # Libunwind support for ia64.
7091 # Check whether --with-libunwind-ia64 was given.
7092 if test "${with_libunwind_ia64+set}" = set; then :
7093 withval
=$with_libunwind_ia64;
7095 with_libunwind_ia64
=auto
7099 # Backward compatibility option.
7100 if test "${with_libunwind+set}" = set; then
7101 if test x
"$with_libunwind_ia64" != xauto
; then
7102 as_fn_error $?
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
7105 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
7106 with_libunwind_ia64
="$with_libunwind"
7109 case "$with_libunwind_ia64" in
7113 for ac_header
in libunwind-ia64.h
7115 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
7116 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
7117 cat >>confdefs.h
<<_ACEOF
7118 #define HAVE_LIBUNWIND_IA64_H 1
7125 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
7128 as_fn_error $?
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
7132 if test x
"$with_libunwind_ia64" = xyes
; then
7133 for ac_header
in libunwind-ia64.h
7135 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
7136 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
7137 cat >>confdefs.h
<<_ACEOF
7138 #define HAVE_LIBUNWIND_IA64_H 1
7145 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
7146 as_fn_error $?
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
7148 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
7149 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
7150 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
7155 # Check whether --with-curses was given.
7156 if test "${with_curses+set}" = set; then :
7157 withval
=$with_curses; opt_curses
=$withval
7162 if test "$opt_curses" = "yes"; then
7166 # Profiling support.
7167 # Check whether --enable-profiling was given.
7168 if test "${enable_profiling+set}" = set; then :
7169 enableval
=$enable_profiling; case $enableval in
7173 as_fn_error $?
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
7180 for ac_func
in monstartup _mcleanup
7182 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7183 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7184 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7185 cat >>confdefs.h
<<_ACEOF
7186 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
7193 $as_echo_n "checking for _etext... " >&6; }
7194 if ${ac_cv_var__etext+:} false
; then :
7195 $as_echo_n "(cached) " >&6
7197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7198 /* end confdefs.h. */
7210 if ac_fn_c_try_link
"$LINENO"; then :
7211 ac_cv_var__etext
=yes
7215 rm -f core conftest.err conftest.
$ac_objext \
7216 conftest
$ac_exeext conftest.
$ac_ext
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
7219 $as_echo "$ac_cv_var__etext" >&6; }
7220 if test "$ac_cv_var__etext" = yes; then
7222 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
7226 $as_echo_n "checking for etext... " >&6; }
7227 if ${ac_cv_var_etext+:} false
; then :
7228 $as_echo_n "(cached) " >&6
7230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7231 /* end confdefs.h. */
7243 if ac_fn_c_try_link
"$LINENO"; then :
7248 rm -f core conftest.err conftest.
$ac_objext \
7249 conftest
$ac_exeext conftest.
$ac_ext
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
7252 $as_echo "$ac_cv_var_etext" >&6; }
7253 if test "$ac_cv_var_etext" = yes; then
7255 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
7258 if test "$enable_profiling" = yes ; then
7259 if test "$ac_cv_func_monstartup" = no ||
test "$ac_cv_func__mcleanup" = no
; then
7260 as_fn_error $?
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
7263 OLD_CFLAGS
="$CFLAGS"
7264 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
7267 $as_echo_n "checking whether $CC supports -pg... " >&6; }
7268 if ${ac_cv_cc_supports_pg+:} false
; then :
7269 $as_echo_n "(cached) " >&6
7271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7272 /* end confdefs.h. */
7282 if ac_fn_c_try_compile
"$LINENO"; then :
7283 ac_cv_cc_supports_pg
=yes
7285 ac_cv_cc_supports_pg
=no
7287 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
7290 $as_echo "$ac_cv_cc_supports_pg" >&6; }
7292 if test "$ac_cv_cc_supports_pg" = no
; then
7293 as_fn_error $?
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
7296 CFLAGS
="$OLD_CFLAGS"
7300 # Check whether --enable-codesign was given.
7301 if test "${enable_codesign+set}" = set; then :
7302 enableval
=$enable_codesign; CODESIGN_CERT
=$enableval
7309 # Check whether --with-pkgversion was given.
7310 if test "${with_pkgversion+set}" = set; then :
7311 withval
=$with_pkgversion; case "$withval" in
7312 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
7314 *) PKGVERSION
="($withval) " ;;
7325 # Check whether --with-bugurl was given.
7326 if test "${with_bugurl+set}" = set; then :
7327 withval
=$with_bugurl; case "$withval" in
7328 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
7331 *) BUGURL
="$withval"
7335 BUGURL
="https://www.gnu.org/software/gdb/bugs/"
7345 REPORT_BUGS_TO
="<$BUGURL>"
7346 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7353 cat >>confdefs.h
<<_ACEOF
7354 #define PKGVERSION "$PKGVERSION"
7358 cat >>confdefs.h
<<_ACEOF
7359 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7363 # --------------------- #
7364 # Checks for programs. #
7365 # --------------------- #
7367 for ac_prog
in gawk mawk nawk
awk
7369 # Extract the first word of "$ac_prog", so it can be a program name with args.
7370 set dummy
$ac_prog; ac_word
=$2
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7372 $as_echo_n "checking for $ac_word... " >&6; }
7373 if ${ac_cv_prog_AWK+:} false
; then :
7374 $as_echo_n "(cached) " >&6
7376 if test -n "$AWK"; then
7377 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7379 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7383 test -z "$as_dir" && as_dir
=.
7384 for ac_exec_ext
in '' $ac_executable_extensions; do
7385 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7386 ac_cv_prog_AWK
="$ac_prog"
7387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7397 if test -n "$AWK"; then
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7399 $as_echo "$AWK" >&6; }
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7402 $as_echo "no" >&6; }
7406 test -n "$AWK" && break
7409 # Find a good install program. We prefer a C program (faster),
7410 # so one script is as good as another. But avoid the broken or
7411 # incompatible versions:
7412 # SysV /etc/install, /usr/sbin/install
7413 # SunOS /usr/etc/install
7414 # IRIX /sbin/install
7416 # AmigaOS /C/install, which installs bootblocks on floppy discs
7417 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7418 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7419 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7420 # OS/2's system install, which has a completely different semantic
7421 # ./install, which can be erroneously created by make from ./install.sh.
7422 # Reject install programs that cannot install multiple files.
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7424 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7425 if test -z "$INSTALL"; then
7426 if ${ac_cv_path_install+:} false
; then :
7427 $as_echo_n "(cached) " >&6
7429 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7433 test -z "$as_dir" && as_dir
=.
7434 # Account for people who put trailing slashes in PATH elements.
7435 case $as_dir/ in #((
7436 .
/ | .
// |
/[cC
]/* | \
7437 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7438 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
7441 # OSF1 and SCO ODT 3.0 have their own names for install.
7442 # Don't use installbsd from OSF since it installs stuff as root
7444 for ac_prog
in ginstall scoinst
install; do
7445 for ac_exec_ext
in '' $ac_executable_extensions; do
7446 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
7447 if test $ac_prog = install &&
7448 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7449 # AIX install. It has an incompatible calling convention.
7451 elif test $ac_prog = install &&
7452 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7453 # program-specific install script used by HP pwplus--don't use.
7456 rm -rf conftest.one conftest.two conftest.dir
7457 echo one
> conftest.one
7458 echo two
> conftest.two
7460 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
7461 test -s conftest.one
&& test -s conftest.two
&&
7462 test -s conftest.dir
/conftest.one
&&
7463 test -s conftest.dir
/conftest.two
7465 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7478 rm -rf conftest.one conftest.two conftest.dir
7481 if test "${ac_cv_path_install+set}" = set; then
7482 INSTALL
=$ac_cv_path_install
7484 # As a last resort, use the slow shell script. Don't cache a
7485 # value for INSTALL within a source directory, because that will
7486 # break other packages using the cache if that directory is
7487 # removed, or if the value is a relative name.
7488 INSTALL
=$ac_install_sh
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7492 $as_echo "$INSTALL" >&6; }
7494 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7495 # It thinks the first close brace ends the variable substitution.
7496 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7498 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7500 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7503 $as_echo_n "checking whether ln -s works... " >&6; }
7505 if test "$LN_S" = "ln -s"; then
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7507 $as_echo "yes" >&6; }
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7510 $as_echo "no, using $LN_S" >&6; }
7513 if test -n "$ac_tool_prefix"; then
7514 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7515 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7517 $as_echo_n "checking for $ac_word... " >&6; }
7518 if ${ac_cv_prog_RANLIB+:} false
; then :
7519 $as_echo_n "(cached) " >&6
7521 if test -n "$RANLIB"; then
7522 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7524 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7528 test -z "$as_dir" && as_dir
=.
7529 for ac_exec_ext
in '' $ac_executable_extensions; do
7530 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7531 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7541 RANLIB
=$ac_cv_prog_RANLIB
7542 if test -n "$RANLIB"; then
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7544 $as_echo "$RANLIB" >&6; }
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547 $as_echo "no" >&6; }
7552 if test -z "$ac_cv_prog_RANLIB"; then
7553 ac_ct_RANLIB
=$RANLIB
7554 # Extract the first word of "ranlib", so it can be a program name with args.
7555 set dummy ranlib
; ac_word
=$2
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7557 $as_echo_n "checking for $ac_word... " >&6; }
7558 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
7559 $as_echo_n "(cached) " >&6
7561 if test -n "$ac_ct_RANLIB"; then
7562 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7564 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7568 test -z "$as_dir" && as_dir
=.
7569 for ac_exec_ext
in '' $ac_executable_extensions; do
7570 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7571 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7581 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7582 if test -n "$ac_ct_RANLIB"; then
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7584 $as_echo "$ac_ct_RANLIB" >&6; }
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7587 $as_echo "no" >&6; }
7590 if test "x$ac_ct_RANLIB" = x
; then
7593 case $cross_compiling:$ac_tool_warned in
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7597 ac_tool_warned
=yes ;;
7599 RANLIB
=$ac_ct_RANLIB
7602 RANLIB
="$ac_cv_prog_RANLIB"
7605 for ac_prog
in 'bison -y' byacc
7607 # Extract the first word of "$ac_prog", so it can be a program name with args.
7608 set dummy
$ac_prog; ac_word
=$2
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7610 $as_echo_n "checking for $ac_word... " >&6; }
7611 if ${ac_cv_prog_YACC+:} false
; then :
7612 $as_echo_n "(cached) " >&6
7614 if test -n "$YACC"; then
7615 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
7617 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7621 test -z "$as_dir" && as_dir
=.
7622 for ac_exec_ext
in '' $ac_executable_extensions; do
7623 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7624 ac_cv_prog_YACC
="$ac_prog"
7625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7634 YACC
=$ac_cv_prog_YACC
7635 if test -n "$YACC"; then
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7637 $as_echo "$YACC" >&6; }
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7640 $as_echo "no" >&6; }
7644 test -n "$YACC" && break
7646 test -n "$YACC" || YACC
="yacc"
7649 if test -n "$ac_tool_prefix"; then
7650 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7651 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7653 $as_echo_n "checking for $ac_word... " >&6; }
7654 if ${ac_cv_prog_AR+:} false
; then :
7655 $as_echo_n "(cached) " >&6
7657 if test -n "$AR"; then
7658 ac_cv_prog_AR
="$AR" # Let the user override the test.
7660 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7664 test -z "$as_dir" && as_dir
=.
7665 for ac_exec_ext
in '' $ac_executable_extensions; do
7666 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7667 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7678 if test -n "$AR"; then
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7680 $as_echo "$AR" >&6; }
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7683 $as_echo "no" >&6; }
7688 if test -z "$ac_cv_prog_AR"; then
7690 # Extract the first word of "ar", so it can be a program name with args.
7691 set dummy
ar; ac_word
=$2
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7693 $as_echo_n "checking for $ac_word... " >&6; }
7694 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
7695 $as_echo_n "(cached) " >&6
7697 if test -n "$ac_ct_AR"; then
7698 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7700 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7704 test -z "$as_dir" && as_dir
=.
7705 for ac_exec_ext
in '' $ac_executable_extensions; do
7706 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7707 ac_cv_prog_ac_ct_AR
="ar"
7708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7717 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7718 if test -n "$ac_ct_AR"; then
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7720 $as_echo "$ac_ct_AR" >&6; }
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7723 $as_echo "no" >&6; }
7726 if test "x$ac_ct_AR" = x
; then
7729 case $cross_compiling:$ac_tool_warned in
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7733 ac_tool_warned
=yes ;;
7741 if test -n "$ac_tool_prefix"; then
7742 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7743 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7745 $as_echo_n "checking for $ac_word... " >&6; }
7746 if ${ac_cv_prog_DLLTOOL+:} false
; then :
7747 $as_echo_n "(cached) " >&6
7749 if test -n "$DLLTOOL"; then
7750 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
7752 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7756 test -z "$as_dir" && as_dir
=.
7757 for ac_exec_ext
in '' $ac_executable_extensions; do
7758 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7759 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
7760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7769 DLLTOOL
=$ac_cv_prog_DLLTOOL
7770 if test -n "$DLLTOOL"; then
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7772 $as_echo "$DLLTOOL" >&6; }
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7775 $as_echo "no" >&6; }
7780 if test -z "$ac_cv_prog_DLLTOOL"; then
7781 ac_ct_DLLTOOL
=$DLLTOOL
7782 # Extract the first word of "dlltool", so it can be a program name with args.
7783 set dummy dlltool
; ac_word
=$2
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7785 $as_echo_n "checking for $ac_word... " >&6; }
7786 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
7787 $as_echo_n "(cached) " >&6
7789 if test -n "$ac_ct_DLLTOOL"; then
7790 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
7792 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7796 test -z "$as_dir" && as_dir
=.
7797 for ac_exec_ext
in '' $ac_executable_extensions; do
7798 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7799 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
7800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7809 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
7810 if test -n "$ac_ct_DLLTOOL"; then
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7812 $as_echo "$ac_ct_DLLTOOL" >&6; }
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7815 $as_echo "no" >&6; }
7818 if test "x$ac_ct_DLLTOOL" = x
; then
7821 case $cross_compiling:$ac_tool_warned in
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7825 ac_tool_warned
=yes ;;
7827 DLLTOOL
=$ac_ct_DLLTOOL
7830 DLLTOOL
="$ac_cv_prog_DLLTOOL"
7833 if test -n "$ac_tool_prefix"; then
7834 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7835 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7837 $as_echo_n "checking for $ac_word... " >&6; }
7838 if ${ac_cv_prog_WINDRES+:} false
; then :
7839 $as_echo_n "(cached) " >&6
7841 if test -n "$WINDRES"; then
7842 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
7844 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7848 test -z "$as_dir" && as_dir
=.
7849 for ac_exec_ext
in '' $ac_executable_extensions; do
7850 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7851 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
7852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7861 WINDRES
=$ac_cv_prog_WINDRES
7862 if test -n "$WINDRES"; then
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7864 $as_echo "$WINDRES" >&6; }
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7867 $as_echo "no" >&6; }
7872 if test -z "$ac_cv_prog_WINDRES"; then
7873 ac_ct_WINDRES
=$WINDRES
7874 # Extract the first word of "windres", so it can be a program name with args.
7875 set dummy windres
; ac_word
=$2
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7877 $as_echo_n "checking for $ac_word... " >&6; }
7878 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
7879 $as_echo_n "(cached) " >&6
7881 if test -n "$ac_ct_WINDRES"; then
7882 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
7884 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7888 test -z "$as_dir" && as_dir
=.
7889 for ac_exec_ext
in '' $ac_executable_extensions; do
7890 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7891 ac_cv_prog_ac_ct_WINDRES
="windres"
7892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7901 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
7902 if test -n "$ac_ct_WINDRES"; then
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7904 $as_echo "$ac_ct_WINDRES" >&6; }
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907 $as_echo "no" >&6; }
7910 if test "x$ac_ct_WINDRES" = x
; then
7913 case $cross_compiling:$ac_tool_warned in
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7917 ac_tool_warned
=yes ;;
7919 WINDRES
=$ac_ct_WINDRES
7922 WINDRES
="$ac_cv_prog_WINDRES"
7928 # Needed for GNU Hurd hosts.
7929 if test -n "$ac_tool_prefix"; then
7930 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7931 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7933 $as_echo_n "checking for $ac_word... " >&6; }
7934 if ${ac_cv_prog_MIG+:} false
; then :
7935 $as_echo_n "(cached) " >&6
7937 if test -n "$MIG"; then
7938 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
7940 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7944 test -z "$as_dir" && as_dir
=.
7945 for ac_exec_ext
in '' $ac_executable_extensions; do
7946 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7947 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
7948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7958 if test -n "$MIG"; then
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
7960 $as_echo "$MIG" >&6; }
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7963 $as_echo "no" >&6; }
7968 if test -z "$ac_cv_prog_MIG"; then
7970 # Extract the first word of "mig", so it can be a program name with args.
7971 set dummy mig
; ac_word
=$2
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7973 $as_echo_n "checking for $ac_word... " >&6; }
7974 if ${ac_cv_prog_ac_ct_MIG+:} false
; then :
7975 $as_echo_n "(cached) " >&6
7977 if test -n "$ac_ct_MIG"; then
7978 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
7980 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7984 test -z "$as_dir" && as_dir
=.
7985 for ac_exec_ext
in '' $ac_executable_extensions; do
7986 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7987 ac_cv_prog_ac_ct_MIG
="mig"
7988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7997 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
7998 if test -n "$ac_ct_MIG"; then
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
8000 $as_echo "$ac_ct_MIG" >&6; }
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8003 $as_echo "no" >&6; }
8006 if test "x$ac_ct_MIG" = x
; then
8009 case $cross_compiling:$ac_tool_warned in
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8012 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8013 ac_tool_warned
=yes ;;
8018 MIG
="$ac_cv_prog_MIG"
8021 if test x
"$MIG" = x
; then
8022 as_fn_error $?
"MIG not found but required for $host hosts" "$LINENO" 5
8027 # ---------------------- #
8028 # Checks for libraries. #
8029 # ---------------------- #
8031 # We might need to link with -lm; most simulators need it.
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
8033 $as_echo_n "checking for main in -lm... " >&6; }
8034 if ${ac_cv_lib_m_main+:} false
; then :
8035 $as_echo_n "(cached) " >&6
8037 ac_check_lib_save_LIBS
=$LIBS
8039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8040 /* end confdefs.h. */
8051 if ac_fn_c_try_link
"$LINENO"; then :
8052 ac_cv_lib_m_main
=yes
8056 rm -f core conftest.err conftest.
$ac_objext \
8057 conftest
$ac_exeext conftest.
$ac_ext
8058 LIBS
=$ac_check_lib_save_LIBS
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
8061 $as_echo "$ac_cv_lib_m_main" >&6; }
8062 if test "x$ac_cv_lib_m_main" = xyes
; then :
8063 cat >>confdefs.h
<<_ACEOF
8072 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
8074 $as_echo_n "checking for library containing gethostbyname... " >&6; }
8075 if ${ac_cv_search_gethostbyname+:} false
; then :
8076 $as_echo_n "(cached) " >&6
8078 ac_func_search_save_LIBS
=$LIBS
8079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8080 /* end confdefs.h. */
8082 /* Override any GCC internal prototype to avoid an error.
8083 Use char because int might match the return type of a GCC
8084 builtin and then its argument prototype would still apply. */
8088 char gethostbyname ();
8092 return gethostbyname ();
8097 for ac_lib
in '' nsl
; do
8098 if test -z "$ac_lib"; then
8099 ac_res
="none required"
8102 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8104 if ac_fn_c_try_link
"$LINENO"; then :
8105 ac_cv_search_gethostbyname
=$ac_res
8107 rm -f core conftest.err conftest.
$ac_objext \
8109 if ${ac_cv_search_gethostbyname+:} false
; then :
8113 if ${ac_cv_search_gethostbyname+:} false
; then :
8116 ac_cv_search_gethostbyname
=no
8119 LIBS
=$ac_func_search_save_LIBS
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
8122 $as_echo "$ac_cv_search_gethostbyname" >&6; }
8123 ac_res
=$ac_cv_search_gethostbyname
8124 if test "$ac_res" != no
; then :
8125 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8130 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
8132 $as_echo_n "checking for library containing socketpair... " >&6; }
8133 if ${ac_cv_search_socketpair+:} false
; then :
8134 $as_echo_n "(cached) " >&6
8136 ac_func_search_save_LIBS
=$LIBS
8137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8138 /* end confdefs.h. */
8140 /* Override any GCC internal prototype to avoid an error.
8141 Use char because int might match the return type of a GCC
8142 builtin and then its argument prototype would still apply. */
8150 return socketpair ();
8155 for ac_lib
in '' socket
; do
8156 if test -z "$ac_lib"; then
8157 ac_res
="none required"
8160 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8162 if ac_fn_c_try_link
"$LINENO"; then :
8163 ac_cv_search_socketpair
=$ac_res
8165 rm -f core conftest.err conftest.
$ac_objext \
8167 if ${ac_cv_search_socketpair+:} false
; then :
8171 if ${ac_cv_search_socketpair+:} false
; then :
8174 ac_cv_search_socketpair
=no
8177 LIBS
=$ac_func_search_save_LIBS
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
8180 $as_echo "$ac_cv_search_socketpair" >&6; }
8181 ac_res
=$ac_cv_search_socketpair
8182 if test "$ac_res" != no
; then :
8183 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8188 # Link in zlib if we can. This allows us to read compressed debug sections.
8190 # Use the system's zlib library.
8191 zlibdir
="-L\$(top_builddir)/../zlib"
8192 zlibinc
="-I\$(top_srcdir)/../zlib"
8194 # Check whether --with-system-zlib was given.
8195 if test "${with_system_zlib+set}" = set; then :
8196 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
8207 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
8208 # On GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
8210 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
8211 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
8212 $as_echo_n "(cached) " >&6
8214 ac_func_search_save_LIBS
=$LIBS
8215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8216 /* end confdefs.h. */
8218 /* Override any GCC internal prototype to avoid an error.
8219 Use char because int might match the return type of a GCC
8220 builtin and then its argument prototype would still apply. */
8224 char kinfo_getvmmap ();
8228 return kinfo_getvmmap ();
8233 for ac_lib
in '' util util-freebsd
; do
8234 if test -z "$ac_lib"; then
8235 ac_res
="none required"
8238 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8240 if ac_fn_c_try_link
"$LINENO"; then :
8241 ac_cv_search_kinfo_getvmmap
=$ac_res
8243 rm -f core conftest.err conftest.
$ac_objext \
8245 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
8249 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
8252 ac_cv_search_kinfo_getvmmap
=no
8255 LIBS
=$ac_func_search_save_LIBS
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
8258 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
8259 ac_res
=$ac_cv_search_kinfo_getvmmap
8260 if test "$ac_res" != no
; then :
8261 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8263 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
8269 if test "X$prefix" = "XNONE"; then
8270 acl_final_prefix
="$ac_default_prefix"
8272 acl_final_prefix
="$prefix"
8274 if test "X$exec_prefix" = "XNONE"; then
8275 acl_final_exec_prefix
='${prefix}'
8277 acl_final_exec_prefix
="$exec_prefix"
8279 acl_save_prefix
="$prefix"
8280 prefix
="$acl_final_prefix"
8281 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8282 prefix
="$acl_save_prefix"
8285 # Check whether --with-gnu-ld was given.
8286 if test "${with_gnu_ld+set}" = set; then :
8287 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8292 # Prepare PATH_SEPARATOR.
8293 # The user is always right.
8294 if test "${PATH_SEPARATOR+set}" != set; then
8295 echo "#! /bin/sh" >conf$$.sh
8296 echo "exit 0" >>conf$$.sh
8298 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8306 if test "$GCC" = yes; then
8307 # Check if gcc -print-prog-name=ld gives a path.
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8309 $as_echo_n "checking for ld used by GCC... " >&6; }
8312 # gcc leaves a trailing carriage return which upsets mingw
8313 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8315 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8318 # Accept absolute paths.
8319 [\\/]* |
[A-Za-z
]:[\\/]*)
8320 re_direlt
='/[^/][^/]*/\.\./'
8321 # Canonicalize the path of ld
8322 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8323 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8324 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8326 test -z "$LD" && LD
="$ac_prog"
8329 # If it fails, then pretend we aren't using GCC.
8333 # If it is relative, then search for the first ld in PATH.
8337 elif test "$with_gnu_ld" = yes; then
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8339 $as_echo_n "checking for GNU ld... " >&6; }
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8342 $as_echo_n "checking for non-GNU ld... " >&6; }
8344 if ${acl_cv_path_LD+:} false
; then :
8345 $as_echo_n "(cached) " >&6
8347 if test -z "$LD"; then
8348 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8349 for ac_dir
in $PATH; do
8350 test -z "$ac_dir" && ac_dir
=.
8351 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8352 acl_cv_path_LD
="$ac_dir/$ac_prog"
8353 # Check to see if the program is GNU ld. I'd rather use --version,
8354 # but apparently some GNU ld's only accept -v.
8355 # Break only if it was the GNU/non-GNU ld that we prefer.
8356 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
8357 test "$with_gnu_ld" != no
&& break
8359 test "$with_gnu_ld" != yes && break
8365 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8369 LD
="$acl_cv_path_LD"
8370 if test -n "$LD"; then
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8372 $as_echo "$LD" >&6; }
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8375 $as_echo "no" >&6; }
8377 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8379 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8380 if ${acl_cv_prog_gnu_ld+:} false
; then :
8381 $as_echo_n "(cached) " >&6
8383 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8384 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8385 acl_cv_prog_gnu_ld
=yes
8387 acl_cv_prog_gnu_ld
=no
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8391 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8392 with_gnu_ld
=$acl_cv_prog_gnu_ld
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8397 $as_echo_n "checking for shared library run path origin... " >&6; }
8398 if ${acl_cv_rpath+:} false
; then :
8399 $as_echo_n "(cached) " >&6
8402 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8403 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8410 $as_echo "$acl_cv_rpath" >&6; }
8412 libext
="$acl_cv_libext"
8413 shlibext
="$acl_cv_shlibext"
8414 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8415 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8416 hardcode_direct
="$acl_cv_hardcode_direct"
8417 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8418 # Check whether --enable-rpath was given.
8419 if test "${enable_rpath+set}" = set; then :
8420 enableval
=$enable_rpath; :
8434 acl_save_prefix
="$prefix"
8435 prefix
="$acl_final_prefix"
8436 acl_save_exec_prefix
="$exec_prefix"
8437 exec_prefix
="$acl_final_exec_prefix"
8439 eval additional_includedir
=\"$includedir\"
8440 eval additional_libdir
=\"$libdir\"
8442 exec_prefix
="$acl_save_exec_prefix"
8443 prefix
="$acl_save_prefix"
8446 # Check whether --with-libiconv-prefix was given.
8447 if test "${with_libiconv_prefix+set}" = set; then :
8448 withval
=$with_libiconv_prefix;
8449 if test "X$withval" = "Xno"; then
8452 if test "X$withval" = "X"; then
8454 acl_save_prefix
="$prefix"
8455 prefix
="$acl_final_prefix"
8456 acl_save_exec_prefix
="$exec_prefix"
8457 exec_prefix
="$acl_final_exec_prefix"
8459 eval additional_includedir
=\"$includedir\"
8460 eval additional_libdir
=\"$libdir\"
8462 exec_prefix
="$acl_save_exec_prefix"
8463 prefix
="$acl_save_prefix"
8466 additional_includedir
="$withval/include"
8467 additional_libdir
="$withval/lib"
8474 # Check whether --with-libiconv-type was given.
8475 if test "${with_libiconv_type+set}" = set; then :
8476 withval
=$with_libiconv_type; with_libiconv_type
=$withval
8478 with_libiconv_type
=auto
8481 lib_type
=`eval echo \$with_libiconv_type`
8488 names_already_handled
=
8489 names_next_round
='iconv '
8490 while test -n "$names_next_round"; do
8491 names_this_round
="$names_next_round"
8493 for name
in $names_this_round; do
8495 for n
in $names_already_handled; do
8496 if test "$n" = "$name"; then
8501 if test -z "$already_handled"; then
8502 names_already_handled
="$names_already_handled $name"
8503 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8504 eval value
=\"\
$HAVE_LIB$uppername\"
8505 if test -n "$value"; then
8506 if test "$value" = yes; then
8507 eval value
=\"\
$LIB$uppername\"
8508 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
8509 eval value
=\"\
$LTLIB$uppername\"
8510 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
8519 if test $use_additional = yes; then
8520 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8521 found_dir
="$additional_libdir"
8522 found_so
="$additional_libdir/lib$name.$shlibext"
8523 if test -f "$additional_libdir/lib$name.la"; then
8524 found_la
="$additional_libdir/lib$name.la"
8526 elif test x
$lib_type != xshared
; then
8527 if test -f "$additional_libdir/lib$name.$libext"; then
8528 found_dir
="$additional_libdir"
8529 found_a
="$additional_libdir/lib$name.$libext"
8530 if test -f "$additional_libdir/lib$name.la"; then
8531 found_la
="$additional_libdir/lib$name.la"
8536 if test "X$found_dir" = "X"; then
8537 for x
in $LDFLAGS $LTLIBICONV; do
8539 acl_save_prefix
="$prefix"
8540 prefix
="$acl_final_prefix"
8541 acl_save_exec_prefix
="$exec_prefix"
8542 exec_prefix
="$acl_final_exec_prefix"
8544 exec_prefix
="$acl_save_exec_prefix"
8545 prefix
="$acl_save_prefix"
8549 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8550 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8552 found_so
="$dir/lib$name.$shlibext"
8553 if test -f "$dir/lib$name.la"; then
8554 found_la
="$dir/lib$name.la"
8556 elif test x
$lib_type != xshared
; then
8557 if test -f "$dir/lib$name.$libext"; then
8559 found_a
="$dir/lib$name.$libext"
8560 if test -f "$dir/lib$name.la"; then
8561 found_la
="$dir/lib$name.la"
8567 if test "X$found_dir" != "X"; then
8572 if test "X$found_dir" != "X"; then
8573 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8574 if test "X$found_so" != "X"; then
8575 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8576 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8579 for x
in $ltrpathdirs; do
8580 if test "X$x" = "X$found_dir"; then
8585 if test -z "$haveit"; then
8586 ltrpathdirs
="$ltrpathdirs $found_dir"
8588 if test "$hardcode_direct" = yes; then
8589 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8591 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8592 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8594 for x
in $rpathdirs; do
8595 if test "X$x" = "X$found_dir"; then
8600 if test -z "$haveit"; then
8601 rpathdirs
="$rpathdirs $found_dir"
8605 for x
in $LDFLAGS $LIBICONV; do
8607 acl_save_prefix
="$prefix"
8608 prefix
="$acl_final_prefix"
8609 acl_save_exec_prefix
="$exec_prefix"
8610 exec_prefix
="$acl_final_exec_prefix"
8612 exec_prefix
="$acl_save_exec_prefix"
8613 prefix
="$acl_save_prefix"
8615 if test "X$x" = "X-L$found_dir"; then
8620 if test -z "$haveit"; then
8621 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8623 if test "$hardcode_minus_L" != no
; then
8624 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8626 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8632 if test "X$found_a" != "X"; then
8633 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
8635 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8638 additional_includedir
=
8639 case "$found_dir" in
8641 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8642 additional_includedir
="$basedir/include"
8645 if test "X$additional_includedir" != "X"; then
8646 if test "X$additional_includedir" != "X/usr/include"; then
8648 if test "X$additional_includedir" = "X/usr/local/include"; then
8649 if test -n "$GCC"; then
8651 linux
*) haveit
=yes;;
8655 if test -z "$haveit"; then
8656 for x
in $CPPFLAGS $INCICONV; do
8658 acl_save_prefix
="$prefix"
8659 prefix
="$acl_final_prefix"
8660 acl_save_exec_prefix
="$exec_prefix"
8661 exec_prefix
="$acl_final_exec_prefix"
8663 exec_prefix
="$acl_save_exec_prefix"
8664 prefix
="$acl_save_prefix"
8666 if test "X$x" = "X-I$additional_includedir"; then
8671 if test -z "$haveit"; then
8672 if test -d "$additional_includedir"; then
8673 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8679 if test -n "$found_la"; then
8680 save_libdir
="$libdir"
8682 */* |
*\\*) .
"$found_la" ;;
8683 *) .
"./$found_la" ;;
8685 libdir
="$save_libdir"
8686 for dep
in $dependency_libs; do
8689 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8690 if test "X$additional_libdir" != "X/usr/lib"; then
8692 if test "X$additional_libdir" = "X/usr/local/lib"; then
8693 if test -n "$GCC"; then
8695 linux
*) haveit
=yes;;
8699 if test -z "$haveit"; then
8701 for x
in $LDFLAGS $LIBICONV; do
8703 acl_save_prefix
="$prefix"
8704 prefix
="$acl_final_prefix"
8705 acl_save_exec_prefix
="$exec_prefix"
8706 exec_prefix
="$acl_final_exec_prefix"
8708 exec_prefix
="$acl_save_exec_prefix"
8709 prefix
="$acl_save_prefix"
8711 if test "X$x" = "X-L$additional_libdir"; then
8716 if test -z "$haveit"; then
8717 if test -d "$additional_libdir"; then
8718 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8722 for x
in $LDFLAGS $LTLIBICONV; do
8724 acl_save_prefix
="$prefix"
8725 prefix
="$acl_final_prefix"
8726 acl_save_exec_prefix
="$exec_prefix"
8727 exec_prefix
="$acl_final_exec_prefix"
8729 exec_prefix
="$acl_save_exec_prefix"
8730 prefix
="$acl_save_prefix"
8732 if test "X$x" = "X-L$additional_libdir"; then
8737 if test -z "$haveit"; then
8738 if test -d "$additional_libdir"; then
8739 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8746 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8747 if test "$enable_rpath" != no
; then
8749 for x
in $rpathdirs; do
8750 if test "X$x" = "X$dir"; then
8755 if test -z "$haveit"; then
8756 rpathdirs
="$rpathdirs $dir"
8759 for x
in $ltrpathdirs; do
8760 if test "X$x" = "X$dir"; then
8765 if test -z "$haveit"; then
8766 ltrpathdirs
="$ltrpathdirs $dir"
8771 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8774 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8777 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
8778 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8784 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
8785 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8786 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8788 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
8789 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
8796 if test "X$rpathdirs" != "X"; then
8797 if test -n "$hardcode_libdir_separator"; then
8799 for found_dir
in $rpathdirs; do
8800 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8802 acl_save_libdir
="$libdir"
8804 eval flag
=\"$hardcode_libdir_flag_spec\"
8805 libdir
="$acl_save_libdir"
8806 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8808 for found_dir
in $rpathdirs; do
8809 acl_save_libdir
="$libdir"
8811 eval flag
=\"$hardcode_libdir_flag_spec\"
8812 libdir
="$acl_save_libdir"
8813 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8817 if test "X$ltrpathdirs" != "X"; then
8818 for found_dir
in $ltrpathdirs; do
8819 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8830 $as_echo_n "checking for iconv... " >&6; }
8831 if ${am_cv_func_iconv+:} false
; then :
8832 $as_echo_n "(cached) " >&6
8835 am_cv_func_iconv
="no, consider installing GNU libiconv"
8837 am_save_CPPFLAGS
="$CPPFLAGS"
8838 CPPFLAGS
="$CPPFLAGS $INCICONV"
8839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8840 /* end confdefs.h. */
8846 iconv_t cd = iconv_open("","");
8847 iconv(cd,NULL,NULL,NULL,NULL);
8853 if ac_fn_c_try_link
"$LINENO"; then :
8854 am_cv_func_iconv
=yes
8856 rm -f core conftest.err conftest.
$ac_objext \
8857 conftest
$ac_exeext conftest.
$ac_ext
8858 CPPFLAGS
="$am_save_CPPFLAGS"
8860 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
8861 for _libs
in .libs _libs
; do
8862 am_save_CPPFLAGS
="$CPPFLAGS"
8863 am_save_LIBS
="$LIBS"
8864 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
8865 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
8866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8867 /* end confdefs.h. */
8873 iconv_t cd = iconv_open("","");
8874 iconv(cd,NULL,NULL,NULL,NULL);
8880 if ac_fn_c_try_link
"$LINENO"; then :
8881 INCICONV
="-I../libiconv/include"
8882 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
8883 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
8885 am_cv_func_iconv
=yes
8887 rm -f core conftest.err conftest.
$ac_objext \
8888 conftest
$ac_exeext conftest.
$ac_ext
8889 CPPFLAGS
="$am_save_CPPFLAGS"
8890 LIBS
="$am_save_LIBS"
8891 if test "$am_cv_func_iconv" = "yes"; then
8897 if test "$am_cv_func_iconv" != yes; then
8898 am_save_CPPFLAGS
="$CPPFLAGS"
8899 am_save_LIBS
="$LIBS"
8900 CPPFLAGS
="$CPPFLAGS $INCICONV"
8901 LIBS
="$LIBS $LIBICONV"
8902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8903 /* end confdefs.h. */
8909 iconv_t cd = iconv_open("","");
8910 iconv(cd,NULL,NULL,NULL,NULL);
8916 if ac_fn_c_try_link
"$LINENO"; then :
8918 am_cv_func_iconv
=yes
8920 rm -f core conftest.err conftest.
$ac_objext \
8921 conftest
$ac_exeext conftest.
$ac_ext
8922 CPPFLAGS
="$am_save_CPPFLAGS"
8923 LIBS
="$am_save_LIBS"
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8928 $as_echo "$am_cv_func_iconv" >&6; }
8929 if test "$am_cv_func_iconv" = yes; then
8931 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8934 if test "$am_cv_lib_iconv" = yes; then
8936 for element
in $INCICONV; do
8938 for x
in $CPPFLAGS; do
8940 acl_save_prefix
="$prefix"
8941 prefix
="$acl_final_prefix"
8942 acl_save_exec_prefix
="$exec_prefix"
8943 exec_prefix
="$acl_final_exec_prefix"
8945 exec_prefix
="$acl_save_exec_prefix"
8946 prefix
="$acl_save_prefix"
8948 if test "X$x" = "X$element"; then
8953 if test -z "$haveit"; then
8954 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8959 $as_echo_n "checking how to link with libiconv... " >&6; }
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8961 $as_echo "$LIBICONV" >&6; }
8969 if test "$am_cv_func_iconv" = yes; then
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8971 $as_echo_n "checking for iconv declaration... " >&6; }
8972 if ${am_cv_proto_iconv+:} false
; then :
8973 $as_echo_n "(cached) " >&6
8976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8977 /* end confdefs.h. */
8985 #if defined(__STDC__) || defined(__cplusplus)
8986 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8999 if ac_fn_c_try_compile
"$LINENO"; then :
9000 am_cv_proto_iconv_arg1
=""
9002 am_cv_proto_iconv_arg1
="const"
9004 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9005 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);"
9008 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9010 }$am_cv_proto_iconv" >&5
9012 }$am_cv_proto_iconv" >&6; }
9014 cat >>confdefs.h
<<_ACEOF
9015 #define ICONV_CONST $am_cv_proto_iconv_arg1
9021 # GDB may fork/exec the iconv program to get the list of supported character
9022 # sets. Allow the user to specify where to find it.
9023 # There are several factors affecting the choice of option name:
9024 # - There is already --with-libiconv-prefix but we can't use it, it specifies
9025 # the build-time location of libiconv files.
9026 # - The program we need to find is iconv, which comes with glibc. The user
9027 # doesn't necessarily have libiconv installed. Therefore naming this
9028 # --with-libiconv-foo feels wrong.
9029 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
9030 # defined to work on directories not files (though it really doesn't know
9032 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
9033 # with --with-libiconv-prefix.
9034 # Putting these together is why the option name is --with-iconv-bin.
9037 # Check whether --with-iconv-bin was given.
9038 if test "${with_iconv_bin+set}" = set; then :
9039 withval
=$with_iconv_bin; iconv_bin
="${withval}"
9041 cat >>confdefs.h
<<_ACEOF
9042 #define ICONV_BIN "${iconv_bin}"
9046 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9047 if test "x$prefix" = xNONE
; then
9048 test_prefix
=/usr
/local
9053 test_prefix
=$exec_prefix
9056 case ${iconv_bin} in
9057 "${test_prefix}"|
"${test_prefix}/"*|\
9058 '${exec_prefix}'|
'${exec_prefix}/'*)
9063 cat >>confdefs.h
<<_ACEOF
9064 #define ICONV_BIN_RELOCATABLE $value
9072 # For the TUI, we need enhanced curses functionality.
9073 if test x
"$enable_tui" != xno
; then
9078 if test x
"$prefer_curses" = xyes
; then
9079 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9080 # curses library because the latter might not provide all the
9081 # functionality we need. However, this leads to problems on systems
9082 # where the linker searches /usr/local/lib, but the compiler doesn't
9083 # search /usr/local/include, if ncurses is installed in /usr/local. A
9084 # default installation of ncurses on alpha*-dec-osf* will lead to such
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
9087 $as_echo_n "checking for library containing waddstr... " >&6; }
9088 if ${ac_cv_search_waddstr+:} false
; then :
9089 $as_echo_n "(cached) " >&6
9091 ac_func_search_save_LIBS
=$LIBS
9092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9093 /* end confdefs.h. */
9095 /* Override any GCC internal prototype to avoid an error.
9096 Use char because int might match the return type of a GCC
9097 builtin and then its argument prototype would still apply. */
9110 for ac_lib
in '' ncursesw ncurses cursesX curses
; do
9111 if test -z "$ac_lib"; then
9112 ac_res
="none required"
9115 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9117 if ac_fn_c_try_link
"$LINENO"; then :
9118 ac_cv_search_waddstr
=$ac_res
9120 rm -f core conftest.err conftest.
$ac_objext \
9122 if ${ac_cv_search_waddstr+:} false
; then :
9126 if ${ac_cv_search_waddstr+:} false
; then :
9129 ac_cv_search_waddstr
=no
9132 LIBS
=$ac_func_search_save_LIBS
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
9135 $as_echo "$ac_cv_search_waddstr" >&6; }
9136 ac_res
=$ac_cv_search_waddstr
9137 if test "$ac_res" != no
; then :
9138 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9143 if test "$ac_cv_search_waddstr" != no
; then
9148 # Check whether we should enable the TUI, but only do so if we really
9150 if test x
"$enable_tui" != xno
; then
9151 if test -d "$srcdir/tui"; then
9152 if test "$curses_found" != no
; then
9153 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
9154 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
9155 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9156 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
9158 if test x
"$enable_tui" = xyes
; then
9159 as_fn_error $?
"no enhanced curses library found; disable TUI" "$LINENO" 5
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
9162 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9168 # Since GDB uses Readline, we need termcap functionality. In many
9169 # cases this will be provided by the curses library, but some systems
9170 # have a separate termcap library, or no curses library at all.
9174 if test -d "$srcdir/libtermcap"; then
9175 LIBS
="../libtermcap/libtermcap.a $LIBS"
9176 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
9179 ac_cv_search_tgetent
="none required"
9183 # These are the libraries checked by Readline.
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9185 $as_echo_n "checking for library containing tgetent... " >&6; }
9186 if ${ac_cv_search_tgetent+:} false
; then :
9187 $as_echo_n "(cached) " >&6
9189 ac_func_search_save_LIBS
=$LIBS
9190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9191 /* end confdefs.h. */
9193 /* Override any GCC internal prototype to avoid an error.
9194 Use char because int might match the return type of a GCC
9195 builtin and then its argument prototype would still apply. */
9208 for ac_lib
in '' termcap tinfow tinfo curses ncursesw ncurses
; do
9209 if test -z "$ac_lib"; then
9210 ac_res
="none required"
9213 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9215 if ac_fn_c_try_link
"$LINENO"; then :
9216 ac_cv_search_tgetent
=$ac_res
9218 rm -f core conftest.err conftest.
$ac_objext \
9220 if ${ac_cv_search_tgetent+:} false
; then :
9224 if ${ac_cv_search_tgetent+:} false
; then :
9227 ac_cv_search_tgetent
=no
9230 LIBS
=$ac_func_search_save_LIBS
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9233 $as_echo "$ac_cv_search_tgetent" >&6; }
9234 ac_res
=$ac_cv_search_tgetent
9235 if test "$ac_res" != no
; then :
9236 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9241 if test "$ac_cv_search_tgetent" = no
; then
9242 CONFIG_OBS
="$CONFIG_OBS stub-termcap.o"
9246 # Check whether --with-system-readline was given.
9247 if test "${with_system_readline+set}" = set; then :
9248 withval
=$with_system_readline;
9252 if test "$with_system_readline" = yes; then
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system readline is new enough" >&5
9254 $as_echo_n "checking whether system readline is new enough... " >&6; }
9255 if ${gdb_cv_readline_ok+:} false
; then :
9256 $as_echo_n "(cached) " >&6
9258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9259 /* end confdefs.h. */
9261 #include <readline/readline.h>
9265 #if RL_VERSION_MAJOR < 7
9266 # error "readline version 7 required"
9272 if ac_fn_c_try_compile
"$LINENO"; then :
9273 gdb_cv_readline_ok
=yes
9275 gdb_cv_readline_ok
=no
9277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_readline_ok" >&5
9280 $as_echo "$gdb_cv_readline_ok" >&6; }
9281 if test "$gdb_cv_readline_ok" != yes; then
9282 as_fn_error $?
"system readline is not new enough" "$LINENO" 5
9288 READLINE_TEXI_INCFLAG
=
9290 READLINE
='$(READLINE_DIR)/libreadline.a'
9291 READLINE_DEPS
='$(READLINE)'
9292 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
9293 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
9300 # Generate jit-reader.h
9302 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
9305 # The cast to long int works around a bug in the HP C Compiler
9306 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9307 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9308 # This bug is HP SR number 8606223364.
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
9310 $as_echo_n "checking size of unsigned long long... " >&6; }
9311 if ${ac_cv_sizeof_unsigned_long_long+:} false
; then :
9312 $as_echo_n "(cached) " >&6
9314 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
9317 if test "$ac_cv_type_unsigned_long_long" = yes; then
9318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9320 as_fn_error
77 "cannot compute sizeof (unsigned long long)
9321 See \`config.log' for more details" "$LINENO" 5; }
9323 ac_cv_sizeof_unsigned_long_long
=0
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
9329 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
9333 cat >>confdefs.h
<<_ACEOF
9334 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
9338 # The cast to long int works around a bug in the HP C Compiler
9339 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9340 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9341 # This bug is HP SR number 8606223364.
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
9343 $as_echo_n "checking size of unsigned long... " >&6; }
9344 if ${ac_cv_sizeof_unsigned_long+:} false
; then :
9345 $as_echo_n "(cached) " >&6
9347 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
9350 if test "$ac_cv_type_unsigned_long" = yes; then
9351 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9353 as_fn_error
77 "cannot compute sizeof (unsigned long)
9354 See \`config.log' for more details" "$LINENO" 5; }
9356 ac_cv_sizeof_unsigned_long
=0
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
9362 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
9366 cat >>confdefs.h
<<_ACEOF
9367 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9371 # The cast to long int works around a bug in the HP C Compiler
9372 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9373 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9374 # This bug is HP SR number 8606223364.
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
9376 $as_echo_n "checking size of unsigned __int128... " >&6; }
9377 if ${ac_cv_sizeof_unsigned___int128+:} false
; then :
9378 $as_echo_n "(cached) " >&6
9380 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
9383 if test "$ac_cv_type_unsigned___int128" = yes; then
9384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9386 as_fn_error
77 "cannot compute sizeof (unsigned __int128)
9387 See \`config.log' for more details" "$LINENO" 5; }
9389 ac_cv_sizeof_unsigned___int128
=0
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
9395 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
9399 cat >>confdefs.h
<<_ACEOF
9400 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
9405 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9406 TARGET_PTR
="unsigned long"
9407 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9408 TARGET_PTR
="unsigned long long"
9409 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
9410 TARGET_PTR
="unsigned __int128"
9412 TARGET_PTR
="unsigned long"
9416 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9420 $as_echo_n "checking for library containing dlopen... " >&6; }
9421 if ${ac_cv_search_dlopen+:} false
; then :
9422 $as_echo_n "(cached) " >&6
9424 ac_func_search_save_LIBS
=$LIBS
9425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9426 /* end confdefs.h. */
9428 /* Override any GCC internal prototype to avoid an error.
9429 Use char because int might match the return type of a GCC
9430 builtin and then its argument prototype would still apply. */
9443 for ac_lib
in '' dl
; do
9444 if test -z "$ac_lib"; then
9445 ac_res
="none required"
9448 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9450 if ac_fn_c_try_link
"$LINENO"; then :
9451 ac_cv_search_dlopen
=$ac_res
9453 rm -f core conftest.err conftest.
$ac_objext \
9455 if ${ac_cv_search_dlopen+:} false
; then :
9459 if ${ac_cv_search_dlopen+:} false
; then :
9462 ac_cv_search_dlopen
=no
9465 LIBS
=$ac_func_search_save_LIBS
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9468 $as_echo "$ac_cv_search_dlopen" >&6; }
9469 ac_res
=$ac_cv_search_dlopen
9470 if test "$ac_res" != no
; then :
9471 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9478 # Check whether --with-jit-reader-dir was given.
9479 if test "${with_jit_reader_dir+set}" = set; then :
9480 withval
=$with_jit_reader_dir;
9481 JIT_READER_DIR
=$withval
9483 JIT_READER_DIR
=${libdir}/gdb
9487 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9488 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9489 ac_define_dir
=`eval echo $JIT_READER_DIR`
9490 ac_define_dir
=`eval echo $ac_define_dir`
9492 cat >>confdefs.h
<<_ACEOF
9493 #define JIT_READER_DIR "$ac_define_dir"
9499 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9500 if test "x$prefix" = xNONE
; then
9501 test_prefix
=/usr
/local
9506 test_prefix
=$exec_prefix
9509 case ${ac_define_dir} in
9510 "${test_prefix}"|
"${test_prefix}/"*|\
9511 '${exec_prefix}'|
'${exec_prefix}/'*)
9516 cat >>confdefs.h
<<_ACEOF
9517 #define JIT_READER_DIR_RELOCATABLE $value
9524 # Check whether --with-expat was given.
9525 if test "${with_expat+set}" = set; then :
9526 withval
=$with_expat;
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9532 $as_echo_n "checking whether to use expat... " >&6; }
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9534 $as_echo "$with_expat" >&6; }
9536 if test "${with_expat}" = no
; then
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9538 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9551 acl_save_prefix
="$prefix"
9552 prefix
="$acl_final_prefix"
9553 acl_save_exec_prefix
="$exec_prefix"
9554 exec_prefix
="$acl_final_exec_prefix"
9556 eval additional_includedir
=\"$includedir\"
9557 eval additional_libdir
=\"$libdir\"
9559 exec_prefix
="$acl_save_exec_prefix"
9560 prefix
="$acl_save_prefix"
9563 # Check whether --with-libexpat-prefix was given.
9564 if test "${with_libexpat_prefix+set}" = set; then :
9565 withval
=$with_libexpat_prefix;
9566 if test "X$withval" = "Xno"; then
9569 if test "X$withval" = "X"; then
9571 acl_save_prefix
="$prefix"
9572 prefix
="$acl_final_prefix"
9573 acl_save_exec_prefix
="$exec_prefix"
9574 exec_prefix
="$acl_final_exec_prefix"
9576 eval additional_includedir
=\"$includedir\"
9577 eval additional_libdir
=\"$libdir\"
9579 exec_prefix
="$acl_save_exec_prefix"
9580 prefix
="$acl_save_prefix"
9583 additional_includedir
="$withval/include"
9584 additional_libdir
="$withval/lib"
9591 # Check whether --with-libexpat-type was given.
9592 if test "${with_libexpat_type+set}" = set; then :
9593 withval
=$with_libexpat_type; with_libexpat_type
=$withval
9595 with_libexpat_type
=auto
9598 lib_type
=`eval echo \$with_libexpat_type`
9605 names_already_handled
=
9606 names_next_round
='expat '
9607 while test -n "$names_next_round"; do
9608 names_this_round
="$names_next_round"
9610 for name
in $names_this_round; do
9612 for n
in $names_already_handled; do
9613 if test "$n" = "$name"; then
9618 if test -z "$already_handled"; then
9619 names_already_handled
="$names_already_handled $name"
9620 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9621 eval value
=\"\
$HAVE_LIB$uppername\"
9622 if test -n "$value"; then
9623 if test "$value" = yes; then
9624 eval value
=\"\
$LIB$uppername\"
9625 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
9626 eval value
=\"\
$LTLIB$uppername\"
9627 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
9636 if test $use_additional = yes; then
9637 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9638 found_dir
="$additional_libdir"
9639 found_so
="$additional_libdir/lib$name.$shlibext"
9640 if test -f "$additional_libdir/lib$name.la"; then
9641 found_la
="$additional_libdir/lib$name.la"
9643 elif test x
$lib_type != xshared
; then
9644 if test -f "$additional_libdir/lib$name.$libext"; then
9645 found_dir
="$additional_libdir"
9646 found_a
="$additional_libdir/lib$name.$libext"
9647 if test -f "$additional_libdir/lib$name.la"; then
9648 found_la
="$additional_libdir/lib$name.la"
9653 if test "X$found_dir" = "X"; then
9654 for x
in $LDFLAGS $LTLIBEXPAT; do
9656 acl_save_prefix
="$prefix"
9657 prefix
="$acl_final_prefix"
9658 acl_save_exec_prefix
="$exec_prefix"
9659 exec_prefix
="$acl_final_exec_prefix"
9661 exec_prefix
="$acl_save_exec_prefix"
9662 prefix
="$acl_save_prefix"
9666 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9667 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9669 found_so
="$dir/lib$name.$shlibext"
9670 if test -f "$dir/lib$name.la"; then
9671 found_la
="$dir/lib$name.la"
9673 elif test x
$lib_type != xshared
; then
9674 if test -f "$dir/lib$name.$libext"; then
9676 found_a
="$dir/lib$name.$libext"
9677 if test -f "$dir/lib$name.la"; then
9678 found_la
="$dir/lib$name.la"
9684 if test "X$found_dir" != "X"; then
9689 if test "X$found_dir" != "X"; then
9690 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
9691 if test "X$found_so" != "X"; then
9692 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9693 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9696 for x
in $ltrpathdirs; do
9697 if test "X$x" = "X$found_dir"; then
9702 if test -z "$haveit"; then
9703 ltrpathdirs
="$ltrpathdirs $found_dir"
9705 if test "$hardcode_direct" = yes; then
9706 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9708 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9709 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9711 for x
in $rpathdirs; do
9712 if test "X$x" = "X$found_dir"; then
9717 if test -z "$haveit"; then
9718 rpathdirs
="$rpathdirs $found_dir"
9722 for x
in $LDFLAGS $LIBEXPAT; do
9724 acl_save_prefix
="$prefix"
9725 prefix
="$acl_final_prefix"
9726 acl_save_exec_prefix
="$exec_prefix"
9727 exec_prefix
="$acl_final_exec_prefix"
9729 exec_prefix
="$acl_save_exec_prefix"
9730 prefix
="$acl_save_prefix"
9732 if test "X$x" = "X-L$found_dir"; then
9737 if test -z "$haveit"; then
9738 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
9740 if test "$hardcode_minus_L" != no
; then
9741 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9743 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9749 if test "X$found_a" != "X"; then
9750 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
9752 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
9755 additional_includedir
=
9756 case "$found_dir" in
9758 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9759 additional_includedir
="$basedir/include"
9762 if test "X$additional_includedir" != "X"; then
9763 if test "X$additional_includedir" != "X/usr/include"; then
9765 if test "X$additional_includedir" = "X/usr/local/include"; then
9766 if test -n "$GCC"; then
9768 linux
*) haveit
=yes;;
9772 if test -z "$haveit"; then
9773 for x
in $CPPFLAGS $INCEXPAT; do
9775 acl_save_prefix
="$prefix"
9776 prefix
="$acl_final_prefix"
9777 acl_save_exec_prefix
="$exec_prefix"
9778 exec_prefix
="$acl_final_exec_prefix"
9780 exec_prefix
="$acl_save_exec_prefix"
9781 prefix
="$acl_save_prefix"
9783 if test "X$x" = "X-I$additional_includedir"; then
9788 if test -z "$haveit"; then
9789 if test -d "$additional_includedir"; then
9790 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
9796 if test -n "$found_la"; then
9797 save_libdir
="$libdir"
9799 */* |
*\\*) .
"$found_la" ;;
9800 *) .
"./$found_la" ;;
9802 libdir
="$save_libdir"
9803 for dep
in $dependency_libs; do
9806 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9807 if test "X$additional_libdir" != "X/usr/lib"; then
9809 if test "X$additional_libdir" = "X/usr/local/lib"; then
9810 if test -n "$GCC"; then
9812 linux
*) haveit
=yes;;
9816 if test -z "$haveit"; then
9818 for x
in $LDFLAGS $LIBEXPAT; do
9820 acl_save_prefix
="$prefix"
9821 prefix
="$acl_final_prefix"
9822 acl_save_exec_prefix
="$exec_prefix"
9823 exec_prefix
="$acl_final_exec_prefix"
9825 exec_prefix
="$acl_save_exec_prefix"
9826 prefix
="$acl_save_prefix"
9828 if test "X$x" = "X-L$additional_libdir"; then
9833 if test -z "$haveit"; then
9834 if test -d "$additional_libdir"; then
9835 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
9839 for x
in $LDFLAGS $LTLIBEXPAT; do
9841 acl_save_prefix
="$prefix"
9842 prefix
="$acl_final_prefix"
9843 acl_save_exec_prefix
="$exec_prefix"
9844 exec_prefix
="$acl_final_exec_prefix"
9846 exec_prefix
="$acl_save_exec_prefix"
9847 prefix
="$acl_save_prefix"
9849 if test "X$x" = "X-L$additional_libdir"; then
9854 if test -z "$haveit"; then
9855 if test -d "$additional_libdir"; then
9856 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
9863 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9864 if test "$enable_rpath" != no
; then
9866 for x
in $rpathdirs; do
9867 if test "X$x" = "X$dir"; then
9872 if test -z "$haveit"; then
9873 rpathdirs
="$rpathdirs $dir"
9876 for x
in $ltrpathdirs; do
9877 if test "X$x" = "X$dir"; then
9882 if test -z "$haveit"; then
9883 ltrpathdirs
="$ltrpathdirs $dir"
9888 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9891 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9894 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
9895 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
9901 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
9902 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9903 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
9905 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l:lib$name.$libext"
9906 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l:lib$name.$libext"
9913 if test "X$rpathdirs" != "X"; then
9914 if test -n "$hardcode_libdir_separator"; then
9916 for found_dir
in $rpathdirs; do
9917 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9919 acl_save_libdir
="$libdir"
9921 eval flag
=\"$hardcode_libdir_flag_spec\"
9922 libdir
="$acl_save_libdir"
9923 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9925 for found_dir
in $rpathdirs; do
9926 acl_save_libdir
="$libdir"
9928 eval flag
=\"$hardcode_libdir_flag_spec\"
9929 libdir
="$acl_save_libdir"
9930 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9934 if test "X$ltrpathdirs" != "X"; then
9935 for found_dir
in $ltrpathdirs; do
9936 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9941 ac_save_CPPFLAGS
="$CPPFLAGS"
9943 for element
in $INCEXPAT; do
9945 for x
in $CPPFLAGS; do
9947 acl_save_prefix
="$prefix"
9948 prefix
="$acl_final_prefix"
9949 acl_save_exec_prefix
="$exec_prefix"
9950 exec_prefix
="$acl_final_exec_prefix"
9952 exec_prefix
="$acl_save_exec_prefix"
9953 prefix
="$acl_save_prefix"
9955 if test "X$x" = "X$element"; then
9960 if test -z "$haveit"; then
9961 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9967 $as_echo_n "checking for libexpat... " >&6; }
9968 if ${ac_cv_libexpat+:} false
; then :
9969 $as_echo_n "(cached) " >&6
9972 ac_save_LIBS
="$LIBS"
9973 LIBS
="$LIBS $LIBEXPAT"
9974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9975 /* end confdefs.h. */
9980 XML_Parser p = XML_ParserCreate (0);
9985 if ac_fn_c_try_link
"$LINENO"; then :
9990 rm -f core conftest.err conftest.
$ac_objext \
9991 conftest
$ac_exeext conftest.
$ac_ext
9992 LIBS
="$ac_save_LIBS"
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
9996 $as_echo "$ac_cv_libexpat" >&6; }
9997 if test "$ac_cv_libexpat" = yes; then
10000 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
10003 $as_echo_n "checking how to link with libexpat... " >&6; }
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
10005 $as_echo "$LIBEXPAT" >&6; }
10008 CPPFLAGS
="$ac_save_CPPFLAGS"
10018 if test "$HAVE_LIBEXPAT" != yes; then
10019 if test "$with_expat" = yes; then
10020 as_fn_error $?
"expat is missing or unusable" "$LINENO" 5
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
10023 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
10027 LIBS
="$LIBS $LIBEXPAT"
10028 for ac_func
in XML_StopParser
10030 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
10031 if test "x$ac_cv_func_XML_StopParser" = xyes
; then :
10032 cat >>confdefs.h
<<_ACEOF
10033 #define HAVE_XML_STOPPARSER 1
10044 # Check whether --with-mpfr was given.
10045 if test "${with_mpfr+set}" = set; then :
10046 withval
=$with_mpfr;
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5
10052 $as_echo_n "checking whether to use MPFR... " >&6; }
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5
10054 $as_echo "$with_mpfr" >&6; }
10056 if test "${with_mpfr}" = no
; then
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5
10058 $as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;}
10071 acl_save_prefix
="$prefix"
10072 prefix
="$acl_final_prefix"
10073 acl_save_exec_prefix
="$exec_prefix"
10074 exec_prefix
="$acl_final_exec_prefix"
10076 eval additional_includedir
=\"$includedir\"
10077 eval additional_libdir
=\"$libdir\"
10079 exec_prefix
="$acl_save_exec_prefix"
10080 prefix
="$acl_save_prefix"
10083 # Check whether --with-libmpfr-prefix was given.
10084 if test "${with_libmpfr_prefix+set}" = set; then :
10085 withval
=$with_libmpfr_prefix;
10086 if test "X$withval" = "Xno"; then
10089 if test "X$withval" = "X"; then
10091 acl_save_prefix
="$prefix"
10092 prefix
="$acl_final_prefix"
10093 acl_save_exec_prefix
="$exec_prefix"
10094 exec_prefix
="$acl_final_exec_prefix"
10096 eval additional_includedir
=\"$includedir\"
10097 eval additional_libdir
=\"$libdir\"
10099 exec_prefix
="$acl_save_exec_prefix"
10100 prefix
="$acl_save_prefix"
10103 additional_includedir
="$withval/include"
10104 additional_libdir
="$withval/lib"
10111 # Check whether --with-libmpfr-type was given.
10112 if test "${with_libmpfr_type+set}" = set; then :
10113 withval
=$with_libmpfr_type; with_libmpfr_type
=$withval
10115 with_libmpfr_type
=auto
10118 lib_type
=`eval echo \$with_libmpfr_type`
10125 names_already_handled
=
10126 names_next_round
='mpfr gmp'
10127 while test -n "$names_next_round"; do
10128 names_this_round
="$names_next_round"
10130 for name
in $names_this_round; do
10132 for n
in $names_already_handled; do
10133 if test "$n" = "$name"; then
10134 already_handled
=yes
10138 if test -z "$already_handled"; then
10139 names_already_handled
="$names_already_handled $name"
10140 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10141 eval value
=\"\
$HAVE_LIB$uppername\"
10142 if test -n "$value"; then
10143 if test "$value" = yes; then
10144 eval value
=\"\
$LIB$uppername\"
10145 test -z "$value" || LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$value"
10146 eval value
=\"\
$LTLIB$uppername\"
10147 test -z "$value" || LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$value"
10156 if test $use_additional = yes; then
10157 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10158 found_dir
="$additional_libdir"
10159 found_so
="$additional_libdir/lib$name.$shlibext"
10160 if test -f "$additional_libdir/lib$name.la"; then
10161 found_la
="$additional_libdir/lib$name.la"
10163 elif test x
$lib_type != xshared
; then
10164 if test -f "$additional_libdir/lib$name.$libext"; then
10165 found_dir
="$additional_libdir"
10166 found_a
="$additional_libdir/lib$name.$libext"
10167 if test -f "$additional_libdir/lib$name.la"; then
10168 found_la
="$additional_libdir/lib$name.la"
10173 if test "X$found_dir" = "X"; then
10174 for x
in $LDFLAGS $LTLIBMPFR; do
10176 acl_save_prefix
="$prefix"
10177 prefix
="$acl_final_prefix"
10178 acl_save_exec_prefix
="$exec_prefix"
10179 exec_prefix
="$acl_final_exec_prefix"
10181 exec_prefix
="$acl_save_exec_prefix"
10182 prefix
="$acl_save_prefix"
10186 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10187 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10189 found_so
="$dir/lib$name.$shlibext"
10190 if test -f "$dir/lib$name.la"; then
10191 found_la
="$dir/lib$name.la"
10193 elif test x
$lib_type != xshared
; then
10194 if test -f "$dir/lib$name.$libext"; then
10196 found_a
="$dir/lib$name.$libext"
10197 if test -f "$dir/lib$name.la"; then
10198 found_la
="$dir/lib$name.la"
10204 if test "X$found_dir" != "X"; then
10209 if test "X$found_dir" != "X"; then
10210 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$found_dir -l$name"
10211 if test "X$found_so" != "X"; then
10212 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10213 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10216 for x
in $ltrpathdirs; do
10217 if test "X$x" = "X$found_dir"; then
10222 if test -z "$haveit"; then
10223 ltrpathdirs
="$ltrpathdirs $found_dir"
10225 if test "$hardcode_direct" = yes; then
10226 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10228 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10229 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10231 for x
in $rpathdirs; do
10232 if test "X$x" = "X$found_dir"; then
10237 if test -z "$haveit"; then
10238 rpathdirs
="$rpathdirs $found_dir"
10242 for x
in $LDFLAGS $LIBMPFR; do
10244 acl_save_prefix
="$prefix"
10245 prefix
="$acl_final_prefix"
10246 acl_save_exec_prefix
="$exec_prefix"
10247 exec_prefix
="$acl_final_exec_prefix"
10249 exec_prefix
="$acl_save_exec_prefix"
10250 prefix
="$acl_save_prefix"
10252 if test "X$x" = "X-L$found_dir"; then
10257 if test -z "$haveit"; then
10258 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir"
10260 if test "$hardcode_minus_L" != no
; then
10261 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10263 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10269 if test "X$found_a" != "X"; then
10270 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_a"
10272 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir -l$name"
10275 additional_includedir
=
10276 case "$found_dir" in
10278 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10279 additional_includedir
="$basedir/include"
10282 if test "X$additional_includedir" != "X"; then
10283 if test "X$additional_includedir" != "X/usr/include"; then
10285 if test "X$additional_includedir" = "X/usr/local/include"; then
10286 if test -n "$GCC"; then
10288 linux
*) haveit
=yes;;
10292 if test -z "$haveit"; then
10293 for x
in $CPPFLAGS $INCMPFR; do
10295 acl_save_prefix
="$prefix"
10296 prefix
="$acl_final_prefix"
10297 acl_save_exec_prefix
="$exec_prefix"
10298 exec_prefix
="$acl_final_exec_prefix"
10300 exec_prefix
="$acl_save_exec_prefix"
10301 prefix
="$acl_save_prefix"
10303 if test "X$x" = "X-I$additional_includedir"; then
10308 if test -z "$haveit"; then
10309 if test -d "$additional_includedir"; then
10310 INCMPFR
="${INCMPFR}${INCMPFR:+ }-I$additional_includedir"
10316 if test -n "$found_la"; then
10317 save_libdir
="$libdir"
10318 case "$found_la" in
10319 */* |
*\\*) .
"$found_la" ;;
10320 *) .
"./$found_la" ;;
10322 libdir
="$save_libdir"
10323 for dep
in $dependency_libs; do
10326 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10327 if test "X$additional_libdir" != "X/usr/lib"; then
10329 if test "X$additional_libdir" = "X/usr/local/lib"; then
10330 if test -n "$GCC"; then
10332 linux
*) haveit
=yes;;
10336 if test -z "$haveit"; then
10338 for x
in $LDFLAGS $LIBMPFR; do
10340 acl_save_prefix
="$prefix"
10341 prefix
="$acl_final_prefix"
10342 acl_save_exec_prefix
="$exec_prefix"
10343 exec_prefix
="$acl_final_exec_prefix"
10345 exec_prefix
="$acl_save_exec_prefix"
10346 prefix
="$acl_save_prefix"
10348 if test "X$x" = "X-L$additional_libdir"; then
10353 if test -z "$haveit"; then
10354 if test -d "$additional_libdir"; then
10355 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$additional_libdir"
10359 for x
in $LDFLAGS $LTLIBMPFR; do
10361 acl_save_prefix
="$prefix"
10362 prefix
="$acl_final_prefix"
10363 acl_save_exec_prefix
="$exec_prefix"
10364 exec_prefix
="$acl_final_exec_prefix"
10366 exec_prefix
="$acl_save_exec_prefix"
10367 prefix
="$acl_save_prefix"
10369 if test "X$x" = "X-L$additional_libdir"; then
10374 if test -z "$haveit"; then
10375 if test -d "$additional_libdir"; then
10376 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$additional_libdir"
10383 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10384 if test "$enable_rpath" != no
; then
10386 for x
in $rpathdirs; do
10387 if test "X$x" = "X$dir"; then
10392 if test -z "$haveit"; then
10393 rpathdirs
="$rpathdirs $dir"
10396 for x
in $ltrpathdirs; do
10397 if test "X$x" = "X$dir"; then
10402 if test -z "$haveit"; then
10403 ltrpathdirs
="$ltrpathdirs $dir"
10408 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10411 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10414 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$dep"
10415 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$dep"
10421 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
10422 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10423 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l$name"
10425 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l:lib$name.$libext"
10426 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l:lib$name.$libext"
10433 if test "X$rpathdirs" != "X"; then
10434 if test -n "$hardcode_libdir_separator"; then
10436 for found_dir
in $rpathdirs; do
10437 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10439 acl_save_libdir
="$libdir"
10441 eval flag
=\"$hardcode_libdir_flag_spec\"
10442 libdir
="$acl_save_libdir"
10443 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10445 for found_dir
in $rpathdirs; do
10446 acl_save_libdir
="$libdir"
10447 libdir
="$found_dir"
10448 eval flag
=\"$hardcode_libdir_flag_spec\"
10449 libdir
="$acl_save_libdir"
10450 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10454 if test "X$ltrpathdirs" != "X"; then
10455 for found_dir
in $ltrpathdirs; do
10456 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-R$found_dir"
10461 ac_save_CPPFLAGS
="$CPPFLAGS"
10463 for element
in $INCMPFR; do
10465 for x
in $CPPFLAGS; do
10467 acl_save_prefix
="$prefix"
10468 prefix
="$acl_final_prefix"
10469 acl_save_exec_prefix
="$exec_prefix"
10470 exec_prefix
="$acl_final_exec_prefix"
10472 exec_prefix
="$acl_save_exec_prefix"
10473 prefix
="$acl_save_prefix"
10475 if test "X$x" = "X$element"; then
10480 if test -z "$haveit"; then
10481 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpfr" >&5
10487 $as_echo_n "checking for libmpfr... " >&6; }
10488 if ${ac_cv_libmpfr+:} false
; then :
10489 $as_echo_n "(cached) " >&6
10492 ac_save_LIBS
="$LIBS"
10493 LIBS
="$LIBS $LIBMPFR"
10494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10495 /* end confdefs.h. */
10500 mpfr_exp_t exp; mpfr_t x;
10501 mpfr_frexp (&exp, x, x, MPFR_RNDN);
10506 if ac_fn_c_try_link
"$LINENO"; then :
10511 rm -f core conftest.err conftest.
$ac_objext \
10512 conftest
$ac_exeext conftest.
$ac_ext
10513 LIBS
="$ac_save_LIBS"
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmpfr" >&5
10517 $as_echo "$ac_cv_libmpfr" >&6; }
10518 if test "$ac_cv_libmpfr" = yes; then
10521 $as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libmpfr" >&5
10524 $as_echo_n "checking how to link with libmpfr... " >&6; }
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPFR" >&5
10526 $as_echo "$LIBMPFR" >&6; }
10529 CPPFLAGS
="$ac_save_CPPFLAGS"
10539 if test "$HAVE_LIBMPFR" != yes; then
10540 if test "$with_mpfr" = yes; then
10541 as_fn_error $?
"MPFR is missing or unusable" "$LINENO" 5
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR is missing or unusable; some features may be unavailable." >&5
10544 $as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;}
10549 # --------------------- #
10550 # Check for libpython. #
10551 # --------------------- #
10558 # Check whether --with-python was given.
10559 if test "${with_python+set}" = set; then :
10560 withval
=$with_python;
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10566 $as_echo_n "checking whether to use python... " >&6; }
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10568 $as_echo "$with_python" >&6; }
10570 if test "${with_python}" = no
; then
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10572 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10575 case "${with_python}" in
10577 if test -d "${with_python}"; then
10578 # Assume the python binary is ${with_python}/bin/python.
10579 python_prog
="${with_python}/bin/python"
10581 # If python does not exit ${with_python}/bin, then try in
10582 # ${with_python}. On Windows/MinGW, this is where the Python
10584 if test ! -x "${python_prog}"; then
10585 python_prog
="${with_python}/python"
10588 if test ! -x "${python_prog}"; then
10589 # Fall back to gdb 7.0/7.1 behaviour.
10590 python_prog
=missing
10591 python_prefix
=${with_python}
10593 elif test -x "${with_python}"; then
10594 # While we can't run python compiled for $host (unless host == build),
10595 # the user could write a script that provides the needed information,
10596 # so we support that.
10597 python_prog
=${with_python}
10600 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
10604 # Disallow --with-python=foo/bar.
10605 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
10608 # The user has either specified auto, yes, or the name of the python
10609 # program assumed to be in $PATH.
10611 case "${with_python}" in
10613 if test "${build}" = "${host}"; then
10614 # Extract the first word of "python", so it can be a program name with args.
10615 set dummy python
; ac_word
=$2
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10617 $as_echo_n "checking for $ac_word... " >&6; }
10618 if ${ac_cv_path_python_prog_path+:} false
; then :
10619 $as_echo_n "(cached) " >&6
10621 case $python_prog_path in
10623 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10626 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10627 for as_dir
in $PATH
10630 test -z "$as_dir" && as_dir
=.
10631 for ac_exec_ext
in '' $ac_executable_extensions; do
10632 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10633 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10641 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10645 python_prog_path
=$ac_cv_path_python_prog_path
10646 if test -n "$python_prog_path"; then
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10648 $as_echo "$python_prog_path" >&6; }
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10651 $as_echo "no" >&6; }
10655 if test "${python_prog_path}" = missing
; then
10656 python_prog
=missing
10658 python_prog
=${python_prog_path}
10661 # Not much we can do except assume the cross-compiler will find the
10663 python_prog
=missing
10667 # While we can't run python compiled for $host (unless host == build),
10668 # the user could write a script that provides the needed information,
10669 # so we support that.
10670 python_prog
="${with_python}"
10671 # Extract the first word of "${python_prog}", so it can be a program name with args.
10672 set dummy
${python_prog}; ac_word
=$2
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10674 $as_echo_n "checking for $ac_word... " >&6; }
10675 if ${ac_cv_path_python_prog_path+:} false
; then :
10676 $as_echo_n "(cached) " >&6
10678 case $python_prog_path in
10680 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10683 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10684 for as_dir
in $PATH
10687 test -z "$as_dir" && as_dir
=.
10688 for ac_exec_ext
in '' $ac_executable_extensions; do
10689 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10690 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10698 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10702 python_prog_path
=$ac_cv_path_python_prog_path
10703 if test -n "$python_prog_path"; then
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10705 $as_echo "$python_prog_path" >&6; }
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10708 $as_echo "no" >&6; }
10712 if test "${python_prog_path}" = missing
; then
10713 as_fn_error $?
"unable to find python program ${python_prog}" "$LINENO" 5
10719 if test "${python_prog}" != missing
; then
10720 # We have a python program to use, but it may be too old.
10721 # Don't flag an error for --with-python=auto (the default).
10722 have_python_config
=yes
10723 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
10724 if test $?
!= 0; then
10725 have_python_config
=failed
10726 if test "${with_python}" != auto
; then
10727 as_fn_error $?
"failure running python-config --includes" "$LINENO" 5
10730 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10731 if test $?
!= 0; then
10732 have_python_config
=failed
10733 if test "${with_python}" != auto
; then
10734 as_fn_error $?
"failure running python-config --ldflags" "$LINENO" 5
10737 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10738 if test $?
!= 0; then
10739 have_python_config
=failed
10740 if test "${with_python}" != auto
; then
10741 as_fn_error $?
"failure running python-config --exec-prefix" "$LINENO" 5
10745 # We do not have a python executable we can use to determine where
10746 # to find the Python headers and libs. We cannot guess the include
10747 # path from the python_prefix either, because that include path
10748 # depends on the Python version. So, there is nothing much we can
10749 # do except assume that the compiler will be able to find those files.
10752 have_python_config
=no
10755 # If we have python-config, only try the configuration it provides.
10756 # Otherwise fallback on the old way of trying different versions of
10760 if test "${have_python_config}" = yes; then
10763 new_CPPFLAGS
=${python_includes}
10764 new_LIBS
=${python_libs}
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
10766 $as_echo_n "checking for python... " >&6; }
10767 save_CPPFLAGS
=$CPPFLAGS
10769 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10770 LIBS
="$new_LIBS $LIBS"
10771 found_usable_python
=no
10772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10773 /* end confdefs.h. */
10774 #include "Python.h"
10783 if ac_fn_c_try_link
"$LINENO"; then :
10785 found_usable_python
=yes
10786 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10787 PYTHON_LIBS
=$new_LIBS
10789 rm -f core conftest.err conftest.
$ac_objext \
10790 conftest
$ac_exeext conftest.
$ac_ext
10791 CPPFLAGS
=$save_CPPFLAGS
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10794 $as_echo "${found_usable_python}" >&6; }
10796 elif test "${have_python_config}" != failed
; then
10797 if test "${have_libpython}" = no
; then
10800 new_CPPFLAGS
=${python_includes}
10801 new_LIBS
="-lpython2.7 ${python_libs}"
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
10803 $as_echo_n "checking for python... " >&6; }
10804 save_CPPFLAGS
=$CPPFLAGS
10806 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10807 LIBS
="$new_LIBS $LIBS"
10808 found_usable_python
=no
10809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10810 /* end confdefs.h. */
10811 #include "Python.h"
10820 if ac_fn_c_try_link
"$LINENO"; then :
10822 found_usable_python
=yes
10823 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10824 PYTHON_LIBS
=$new_LIBS
10826 rm -f core conftest.err conftest.
$ac_objext \
10827 conftest
$ac_exeext conftest.
$ac_ext
10828 CPPFLAGS
=$save_CPPFLAGS
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10831 $as_echo "${found_usable_python}" >&6; }
10834 if test "${have_libpython}" = no
; then
10837 new_CPPFLAGS
=${python_includes}
10838 new_LIBS
="-lpython2.6 ${python_libs}"
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
10840 $as_echo_n "checking for python... " >&6; }
10841 save_CPPFLAGS
=$CPPFLAGS
10843 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10844 LIBS
="$new_LIBS $LIBS"
10845 found_usable_python
=no
10846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10847 /* end confdefs.h. */
10848 #include "Python.h"
10857 if ac_fn_c_try_link
"$LINENO"; then :
10859 found_usable_python
=yes
10860 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10861 PYTHON_LIBS
=$new_LIBS
10863 rm -f core conftest.err conftest.
$ac_objext \
10864 conftest
$ac_exeext conftest.
$ac_ext
10865 CPPFLAGS
=$save_CPPFLAGS
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10868 $as_echo "${found_usable_python}" >&6; }
10873 if test "${have_libpython}" = no
; then
10874 case "${with_python}" in
10876 as_fn_error $?
"python is missing or unusable" "$LINENO" 5
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10880 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10883 as_fn_error $?
"no usable python found at ${with_python}" "$LINENO" 5
10887 if test -n "${python_prefix}"; then
10889 cat >>confdefs.h
<<_ACEOF
10890 #define WITH_PYTHON_PATH "${python_prefix}"
10894 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
10895 if test "x$prefix" = xNONE
; then
10896 test_prefix
=/usr
/local
10898 test_prefix
=$prefix
10901 test_prefix
=$exec_prefix
10904 case ${python_prefix} in
10905 "${test_prefix}"|
"${test_prefix}/"*|\
10906 '${exec_prefix}'|
'${exec_prefix}/'*)
10911 cat >>confdefs.h
<<_ACEOF
10912 #define PYTHON_PATH_RELOCATABLE $value
10921 # Check whether --with-python-libdir was given.
10922 if test "${with_python_libdir+set}" = set; then :
10923 withval
=$with_python_libdir;
10926 # If no python libdir is specified then select one based on
10927 # python's prefix path.
10928 if test -n "${python_prefix}"; then
10929 with_python_libdir
=${python_prefix}/lib
10935 if test "${have_libpython}" != no
; then
10937 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10939 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10940 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10941 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
10942 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
10943 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
10945 if test -n "${with_python_libdir}"; then
10947 cat >>confdefs.h
<<_ACEOF
10948 #define WITH_PYTHON_LIBDIR "${with_python_libdir}"
10952 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
10953 if test "x$prefix" = xNONE
; then
10954 test_prefix
=/usr
/local
10956 test_prefix
=$prefix
10959 test_prefix
=$exec_prefix
10962 case ${with_python_libdir} in
10963 "${test_prefix}"|
"${test_prefix}/"*|\
10964 '${exec_prefix}'|
'${exec_prefix}/'*)
10969 cat >>confdefs.h
<<_ACEOF
10970 #define PYTHON_LIBDIR_RELOCATABLE $value
10976 # Flags needed to compile Python code (taken from python-config --cflags).
10977 # We cannot call python-config directly because it will output whatever was
10978 # used when compiling the Python interpreter itself, including flags which
10979 # would make the python-related objects be compiled differently from the
10980 # rest of GDB (e.g., -O2 and -fPIC).
10981 if test "${GCC}" = yes; then
10982 tentative_python_cflags
="-fno-strict-aliasing -fwrapv"
10983 # Python headers recommend -DNDEBUG, but it's unclear if that just
10984 # refers to building Python itself. In release mode, though, it
10985 # doesn't hurt for the Python code in gdb to follow.
10986 $development || tentative_python_cflags
="$tentative_python_cflags -DNDEBUG"
10989 if test "x${tentative_python_cflags}" != x
; then
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10991 $as_echo_n "checking compiler flags for python code... " >&6; }
10992 for flag
in ${tentative_python_cflags}; do
10993 # Check that the compiler accepts it
10994 saved_CFLAGS
="$CFLAGS"
10995 CFLAGS
="$CFLAGS $flag"
10996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10997 /* end confdefs.h. */
11007 if ac_fn_c_try_compile
"$LINENO"; then :
11008 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
11010 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11011 CFLAGS
="$saved_CFLAGS"
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
11014 $as_echo "${PYTHON_CFLAGS}" >&6; }
11017 # On x64 Windows, Python's include headers, and pyconfig.h in
11018 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
11019 # version of Windows. Unfortunately, MS_WIN64 is only defined if
11020 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
11021 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
11022 # The issue was reported to the Python community, but still isn't
11023 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
11025 case "$gdb_host" in
11027 if test "${GCC}" = yes; then
11028 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
11033 # Even if Python support is not compiled in, we need to have this file
11034 # included so that the "python" command, et.al., still exists.
11035 CONFIG_OBS
="$CONFIG_OBS python/python.o"
11036 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
11039 # Work around Python http://bugs.python.org/issue10112. See also
11040 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
11041 # no effect. Note that the only test after this that uses Python is
11042 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
11043 # run without -export-dynamic too.
11044 PYTHON_LIBS
=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
11049 if test "${have_libpython}" != no
; then
11051 HAVE_PYTHON_FALSE
='#'
11053 HAVE_PYTHON_TRUE
='#'
11058 # -------------------- #
11059 # Check for libguile. #
11060 # -------------------- #
11067 # Check whether --with-guile was given.
11068 if test "${with_guile+set}" = set; then :
11069 withval
=$with_guile;
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
11075 $as_echo_n "checking whether to use guile... " >&6; }
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
11077 $as_echo "$with_guile" >&6; }
11079 # Extract the first word of "pkg-config", so it can be a program name with args.
11080 set dummy pkg-config
; ac_word
=$2
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11082 $as_echo_n "checking for $ac_word... " >&6; }
11083 if ${ac_cv_path_pkg_config_prog_path+:} false
; then :
11084 $as_echo_n "(cached) " >&6
11086 case $pkg_config_prog_path in
11088 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
11091 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11092 for as_dir
in $PATH
11095 test -z "$as_dir" && as_dir
=.
11096 for ac_exec_ext
in '' $ac_executable_extensions; do
11097 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11098 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
11099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11106 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
11110 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
11111 if test -n "$pkg_config_prog_path"; then
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
11113 $as_echo "$pkg_config_prog_path" >&6; }
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11116 $as_echo "no" >&6; }
11121 try_guile_versions
="guile-3.0 guile-2.2 guile-2.0"
11123 case "${with_guile}" in
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
11126 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
11129 if test "${pkg_config_prog_path}" = "missing"; then
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
11131 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
11134 pkg_config
=${pkg_config_prog_path}
11135 guile_version_list
=${try_guile_versions}
11138 found_usable_guile
=checking
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11140 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11141 for guile_version
in ${guile_version_list}; do
11142 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11143 if test $?
!= 0; then
11146 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11147 if test $?
!= 0; then
11148 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11150 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11151 if test $?
!= 0; then
11152 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11154 found_usable_guile
=${guile_version}
11157 if test "${found_usable_guile}" = "checking"; then
11158 if test "${flag_errors}" = "yes"; then
11159 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11161 found_usable_guile
=no
11164 if test "${found_usable_guile}" != no
; then
11165 save_CPPFLAGS
=$CPPFLAGS
11167 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11168 LIBS
="$LIBS $new_LIBS"
11169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11170 /* end confdefs.h. */
11171 #include "libguile.h"
11180 if ac_fn_c_try_link
"$LINENO"; then :
11182 GUILE_CPPFLAGS
=$new_CPPFLAGS
11183 GUILE_LIBS
=$new_LIBS
11185 found_usable_guile
=no
11187 rm -f core conftest.err conftest.
$ac_objext \
11188 conftest
$ac_exeext conftest.
$ac_ext
11189 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11190 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11192 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11197 CPPFLAGS
=$save_CPPFLAGS
11199 if test "${found_usable_guile}" = no
; then
11200 if test "${flag_errors}" = yes; then
11201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11203 as_fn_error $?
"linking guile version ${guile_version} test program failed
11204 See \`config.log' for more details" "$LINENO" 5; }
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11209 $as_echo "${found_usable_guile}" >&6; }
11214 if test "${pkg_config_prog_path}" = "missing"; then
11215 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11218 pkg_config
=${pkg_config_prog_path}
11219 guile_version_list
=${try_guile_versions}
11222 found_usable_guile
=checking
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11224 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11225 for guile_version
in ${guile_version_list}; do
11226 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11227 if test $?
!= 0; then
11230 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11231 if test $?
!= 0; then
11232 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11234 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11235 if test $?
!= 0; then
11236 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11238 found_usable_guile
=${guile_version}
11241 if test "${found_usable_guile}" = "checking"; then
11242 if test "${flag_errors}" = "yes"; then
11243 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11245 found_usable_guile
=no
11248 if test "${found_usable_guile}" != no
; then
11249 save_CPPFLAGS
=$CPPFLAGS
11251 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11252 LIBS
="$LIBS $new_LIBS"
11253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11254 /* end confdefs.h. */
11255 #include "libguile.h"
11264 if ac_fn_c_try_link
"$LINENO"; then :
11266 GUILE_CPPFLAGS
=$new_CPPFLAGS
11267 GUILE_LIBS
=$new_LIBS
11269 found_usable_guile
=no
11271 rm -f core conftest.err conftest.
$ac_objext \
11272 conftest
$ac_exeext conftest.
$ac_ext
11273 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11274 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11276 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11281 CPPFLAGS
=$save_CPPFLAGS
11283 if test "${found_usable_guile}" = no
; then
11284 if test "${flag_errors}" = yes; then
11285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11287 as_fn_error $?
"linking guile version ${guile_version} test program failed
11288 See \`config.log' for more details" "$LINENO" 5; }
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11293 $as_echo "${found_usable_guile}" >&6; }
11297 if test -x "${with_guile}"; then
11299 pkg_config
=${with_guile}
11300 guile_version_list
=${try_guile_versions}
11303 found_usable_guile
=checking
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11305 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11306 for guile_version
in ${guile_version_list}; do
11307 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11308 if test $?
!= 0; then
11311 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11312 if test $?
!= 0; then
11313 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11315 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11316 if test $?
!= 0; then
11317 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11319 found_usable_guile
=${guile_version}
11322 if test "${found_usable_guile}" = "checking"; then
11323 if test "${flag_errors}" = "yes"; then
11324 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11326 found_usable_guile
=no
11329 if test "${found_usable_guile}" != no
; then
11330 save_CPPFLAGS
=$CPPFLAGS
11332 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11333 LIBS
="$LIBS $new_LIBS"
11334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11335 /* end confdefs.h. */
11336 #include "libguile.h"
11345 if ac_fn_c_try_link
"$LINENO"; then :
11347 GUILE_CPPFLAGS
=$new_CPPFLAGS
11348 GUILE_LIBS
=$new_LIBS
11350 found_usable_guile
=no
11352 rm -f core conftest.err conftest.
$ac_objext \
11353 conftest
$ac_exeext conftest.
$ac_ext
11354 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11355 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11357 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11362 CPPFLAGS
=$save_CPPFLAGS
11364 if test "${found_usable_guile}" = no
; then
11365 if test "${flag_errors}" = yes; then
11366 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11368 as_fn_error $?
"linking guile version ${guile_version} test program failed
11369 See \`config.log' for more details" "$LINENO" 5; }
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11374 $as_echo "${found_usable_guile}" >&6; }
11377 as_fn_error $?
"Guile config program not executable: ${with_guile}" "$LINENO" 5
11381 # Disallow --with=guile="" and --with-guile=foo/bar.
11382 as_fn_error $?
"invalid value for --with-guile" "$LINENO" 5
11385 # A space separate list of guile versions to try, in order.
11386 if test "${pkg_config_prog_path}" = "missing"; then
11387 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11390 pkg_config
=${pkg_config_prog_path}
11391 guile_version_list
=${with_guile}
11394 found_usable_guile
=checking
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11396 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11397 for guile_version
in ${guile_version_list}; do
11398 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11399 if test $?
!= 0; then
11402 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11403 if test $?
!= 0; then
11404 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11406 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11407 if test $?
!= 0; then
11408 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11410 found_usable_guile
=${guile_version}
11413 if test "${found_usable_guile}" = "checking"; then
11414 if test "${flag_errors}" = "yes"; then
11415 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11417 found_usable_guile
=no
11420 if test "${found_usable_guile}" != no
; then
11421 save_CPPFLAGS
=$CPPFLAGS
11423 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11424 LIBS
="$LIBS $new_LIBS"
11425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11426 /* end confdefs.h. */
11427 #include "libguile.h"
11436 if ac_fn_c_try_link
"$LINENO"; then :
11438 GUILE_CPPFLAGS
=$new_CPPFLAGS
11439 GUILE_LIBS
=$new_LIBS
11441 found_usable_guile
=no
11443 rm -f core conftest.err conftest.
$ac_objext \
11444 conftest
$ac_exeext conftest.
$ac_ext
11445 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11446 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11448 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11453 CPPFLAGS
=$save_CPPFLAGS
11455 if test "${found_usable_guile}" = no
; then
11456 if test "${flag_errors}" = yes; then
11457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11459 as_fn_error $?
"linking guile version ${guile_version} test program failed
11460 See \`config.log' for more details" "$LINENO" 5; }
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11465 $as_echo "${found_usable_guile}" >&6; }
11470 if test "${have_libguile}" != no
; then
11471 case "${with_guile}" in
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11475 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11476 if ${ac_cv_guild_program_name+:} false
; then :
11477 $as_echo_n "(cached) " >&6
11479 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
11481 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11482 # the 'guild' and 'bindir' variables. In that case, try to guess
11483 # what the program name is, at the risk of getting it wrong if
11484 # Guile was configured with '--program-suffix' or similar.
11485 if test "x$ac_cv_guild_program_name" = "x"; then
11486 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
11487 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11492 $as_echo "$ac_cv_guild_program_name" >&6; }
11494 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11495 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11498 GUILD
="$ac_cv_guild_program_name"
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11505 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11506 if ${ac_cv_guild_program_name+:} false
; then :
11507 $as_echo_n "(cached) " >&6
11509 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
11511 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11512 # the 'guild' and 'bindir' variables. In that case, try to guess
11513 # what the program name is, at the risk of getting it wrong if
11514 # Guile was configured with '--program-suffix' or similar.
11515 if test "x$ac_cv_guild_program_name" = "x"; then
11516 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
11517 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11522 $as_echo "$ac_cv_guild_program_name" >&6; }
11524 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11525 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11528 GUILD
="$ac_cv_guild_program_name"
11535 if test "$cross_compiling" = no
; then
11538 GUILD_TARGET_FLAG
="--target=$host"
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
11545 $as_echo_n "checking whether guild supports this host... " >&6; }
11546 if ${ac_cv_guild_ok+:} false
; then :
11547 $as_echo_n "(cached) " >&6
11549 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
11550 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
11557 $as_echo "$ac_cv_guild_ok" >&6; }
11559 if test "$ac_cv_guild_ok" = no
; then
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
11562 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
11566 if test "${have_libguile}" != no
; then
11568 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
11570 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
11571 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
11572 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
11573 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
11574 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
11577 save_CPPFLAGS
="$CPPFLAGS"
11579 CPPFLAGS
="$GUILE_CPPFLAGS"
11580 for ac_func
in scm_new_smob
11582 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
11583 if test "x$ac_cv_func_scm_new_smob" = xyes
; then :
11584 cat >>confdefs.h
<<_ACEOF
11585 #define HAVE_SCM_NEW_SMOB 1
11592 CPPFLAGS
="$save_CPPFLAGS"
11594 # Even if Guile support is not compiled in, we need to have these files
11596 CONFIG_OBS
="$CONFIG_OBS guile/guile.o"
11597 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
11601 if test "${have_libguile}" != no
; then
11603 HAVE_GUILE_FALSE
='#'
11605 HAVE_GUILE_TRUE
='#'
11610 # ---------------------------- #
11611 # Check for source highlight. #
11612 # ---------------------------- #
11617 # Check whether --enable-source-highlight was given.
11618 if test "${enable_source_highlight+set}" = set; then :
11619 enableval
=$enable_source_highlight; case "${enableval}" in
11620 yes) enable_source_highlight
=yes ;;
11621 no
) enable_source_highlight
=no
;;
11622 *) as_fn_error $?
"bad value ${enableval} for source-highlight option" "$LINENO" 5 ;;
11625 enable_source_highlight
=auto
11629 if test "${enable_source_highlight}" != "no"; then
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
11631 $as_echo_n "checking for the source-highlight library... " >&6; }
11632 if test "${pkg_config_prog_path}" = "missing"; then
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
11634 $as_echo "no - pkg-config not found" >&6; }
11635 if test "${enable_source_highlight}" = "yes"; then
11636 as_fn_error $?
"pkg-config was not found in your system" "$LINENO" 5
11641 as_fn_error $?
"source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
11645 if ${pkg_config_prog_path} --exists source-highlight
; then
11646 SRCHIGH_CFLAGS
=`${pkg_config_prog_path} --cflags source-highlight`
11647 SRCHIGH_LIBS
=`${pkg_config_prog_path} --libs source-highlight`
11649 $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11652 $as_echo "yes" >&6; }
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11655 $as_echo "no" >&6; }
11656 if test "${enable_source_highlight}" = "yes"; then
11657 as_fn_error $?
"source-highlight was not found in your system" "$LINENO" 5
11665 # ------------------------- #
11666 # Checks for header files. #
11667 # ------------------------- #
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11670 $as_echo_n "checking for ANSI C header files... " >&6; }
11671 if ${ac_cv_header_stdc+:} false
; then :
11672 $as_echo_n "(cached) " >&6
11674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11675 /* end confdefs.h. */
11676 #include <stdlib.h>
11677 #include <stdarg.h>
11678 #include <string.h>
11689 if ac_fn_c_try_compile
"$LINENO"; then :
11690 ac_cv_header_stdc
=yes
11692 ac_cv_header_stdc
=no
11694 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11696 if test $ac_cv_header_stdc = yes; then
11697 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11699 /* end confdefs.h. */
11700 #include <string.h>
11703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11704 $EGREP "memchr" >/dev
/null
2>&1; then :
11707 ac_cv_header_stdc
=no
11713 if test $ac_cv_header_stdc = yes; then
11714 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11716 /* end confdefs.h. */
11717 #include <stdlib.h>
11720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11721 $EGREP "free" >/dev
/null
2>&1; then :
11724 ac_cv_header_stdc
=no
11730 if test $ac_cv_header_stdc = yes; then
11731 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11732 if test "$cross_compiling" = yes; then :
11735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11736 /* end confdefs.h. */
11738 #include <stdlib.h>
11739 #if ((' ' & 0x0FF) == 0x020)
11740 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11741 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11743 # define ISLOWER(c) \
11744 (('a' <= (c) && (c) <= 'i') \
11745 || ('j' <= (c) && (c) <= 'r') \
11746 || ('s' <= (c) && (c) <= 'z'))
11747 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11750 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11755 for (i = 0; i < 256; i++)
11756 if (XOR (islower (i), ISLOWER (i))
11757 || toupper (i) != TOUPPER (i))
11762 if ac_fn_c_try_run
"$LINENO"; then :
11765 ac_cv_header_stdc
=no
11767 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11768 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11774 $as_echo "$ac_cv_header_stdc" >&6; }
11775 if test $ac_cv_header_stdc = yes; then
11777 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11781 # elf_hp.h is for HP/UX 64-bit shared library support.
11782 for ac_header
in nlist.h machine
/reg.h \
11784 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
11785 sys
/resource.h sys
/ptrace.h ptrace.h \
11786 sys
/reg.h sys
/debugreg.h \
11789 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11790 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11791 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
11792 cat >>confdefs.h
<<_ACEOF
11793 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11800 for ac_header
in sys
/user.h
11802 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
11803 # include <sys/param.h>
11807 if test "x$ac_cv_header_sys_user_h" = xyes
; then :
11808 cat >>confdefs.h
<<_ACEOF
11809 #define HAVE_SYS_USER_H 1
11817 for ac_header
in curses.h cursesX.h ncurses.h ncursesw
/ncurses.h ncurses
/ncurses.h ncurses
/term.h
11819 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11820 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11821 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
11822 cat >>confdefs.h
<<_ACEOF
11823 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11830 for ac_header
in term.h
11832 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
11833 # include <curses.h>
11837 if test "x$ac_cv_header_term_h" = xyes
; then :
11838 cat >>confdefs.h
<<_ACEOF
11839 #define HAVE_TERM_H 1
11847 # ------------------------- #
11848 # Checks for declarations. #
11849 # ------------------------- #
11852 # Check for presence and size of long long.
11853 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
11854 if test "x$ac_cv_type_long_long" = xyes
; then :
11856 cat >>confdefs.h
<<_ACEOF
11857 #define HAVE_LONG_LONG 1
11860 # The cast to long int works around a bug in the HP C Compiler
11861 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11862 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11863 # This bug is HP SR number 8606223364.
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
11865 $as_echo_n "checking size of long long... " >&6; }
11866 if ${ac_cv_sizeof_long_long+:} false
; then :
11867 $as_echo_n "(cached) " >&6
11869 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
11872 if test "$ac_cv_type_long_long" = yes; then
11873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11875 as_fn_error
77 "cannot compute sizeof (long long)
11876 See \`config.log' for more details" "$LINENO" 5; }
11878 ac_cv_sizeof_long_long
=0
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
11884 $as_echo "$ac_cv_sizeof_long_long" >&6; }
11888 cat >>confdefs.h
<<_ACEOF
11889 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11896 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
11897 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
11898 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
11904 cat >>confdefs.h
<<_ACEOF
11905 #define HAVE_DECL_BASENAME $ac_have_decl
11907 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
11908 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
11914 cat >>confdefs.h
<<_ACEOF
11915 #define HAVE_DECL_FFS $ac_have_decl
11917 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
11918 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
11924 cat >>confdefs.h
<<_ACEOF
11925 #define HAVE_DECL_ASPRINTF $ac_have_decl
11927 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
11928 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
11934 cat >>confdefs.h
<<_ACEOF
11935 #define HAVE_DECL_VASPRINTF $ac_have_decl
11937 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11938 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
11944 cat >>confdefs.h
<<_ACEOF
11945 #define HAVE_DECL_SNPRINTF $ac_have_decl
11947 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
11948 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
11954 cat >>confdefs.h
<<_ACEOF
11955 #define HAVE_DECL_VSNPRINTF $ac_have_decl
11958 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
11959 if test "x$ac_cv_have_decl_strtol" = xyes
; then :
11965 cat >>confdefs.h
<<_ACEOF
11966 #define HAVE_DECL_STRTOL $ac_have_decl
11968 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
11969 if test "x$ac_cv_have_decl_strtoul" = xyes
; then :
11975 cat >>confdefs.h
<<_ACEOF
11976 #define HAVE_DECL_STRTOUL $ac_have_decl
11978 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
11979 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
11985 cat >>confdefs.h
<<_ACEOF
11986 #define HAVE_DECL_STRTOLL $ac_have_decl
11988 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
11989 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
11995 cat >>confdefs.h
<<_ACEOF
11996 #define HAVE_DECL_STRTOULL $ac_have_decl
11999 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12000 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
12006 cat >>confdefs.h
<<_ACEOF
12007 #define HAVE_DECL_STRVERSCMP $ac_have_decl
12012 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12013 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12019 cat >>confdefs.h
<<_ACEOF
12020 #define HAVE_DECL_SNPRINTF $ac_have_decl
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12025 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12026 if ${am_cv_val_LC_MESSAGES+:} false
; then :
12027 $as_echo_n "(cached) " >&6
12029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12030 /* end confdefs.h. */
12031 #include <locale.h>
12040 if ac_fn_c_try_link
"$LINENO"; then :
12041 am_cv_val_LC_MESSAGES
=yes
12043 am_cv_val_LC_MESSAGES
=no
12045 rm -f core conftest.err conftest.
$ac_objext \
12046 conftest
$ac_exeext conftest.
$ac_ext
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12049 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12050 if test $am_cv_val_LC_MESSAGES = yes; then
12052 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12057 # ------------------ #
12058 # Checks for types. #
12059 # ------------------ #
12061 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12062 #include <sys/socket.h>
12065 if test "x$ac_cv_type_socklen_t" = xyes
; then :
12067 cat >>confdefs.h
<<_ACEOF
12068 #define HAVE_SOCKLEN_T 1
12075 # ------------------------------------- #
12076 # Checks for compiler characteristics. #
12077 # ------------------------------------- #
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12080 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12081 if ${ac_cv_c_const+:} false
; then :
12082 $as_echo_n "(cached) " >&6
12084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12085 /* end confdefs.h. */
12091 #ifndef __cplusplus
12092 /* Ultrix mips cc rejects this sort of thing. */
12093 typedef int charset[2];
12094 const charset cs = { 0, 0 };
12095 /* SunOS 4.1.1 cc rejects this. */
12096 char const *const *pcpcc;
12098 /* NEC SVR4.0.2 mips cc rejects this. */
12099 struct point {int x, y;};
12100 static struct point const zero = {0,0};
12101 /* AIX XL C 1.02.0.0 rejects this.
12102 It does not let you subtract one const X* pointer from another in
12103 an arm of an if-expression whose if-part is not a constant
12105 const char *g = "string";
12106 pcpcc = &g + (g ? g-g : 0);
12107 /* HPUX 7.0 cc rejects these. */
12109 ppc = (char**) pcpcc;
12110 pcpcc = (char const *const *) ppc;
12111 { /* SCO 3.2v4 cc rejects this sort of thing. */
12114 char const *s = 0 ? (char *) 0 : (char const *) 0;
12119 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12120 int x[] = {25, 17};
12121 const int *foo = &x[0];
12124 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12125 typedef const int *iptr;
12129 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12130 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12131 struct s { int j; const int *ap[3]; } bx;
12132 struct s *b = &bx; b->j = 5;
12134 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12135 const int foo = 10;
12136 if (!foo) return 0;
12138 return !cs[0] && !zero.x;
12145 if ac_fn_c_try_compile
"$LINENO"; then :
12150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12153 $as_echo "$ac_cv_c_const" >&6; }
12154 if test $ac_cv_c_const = no
; then
12156 $as_echo "#define const /**/" >>confdefs.h
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12161 $as_echo_n "checking for inline... " >&6; }
12162 if ${ac_cv_c_inline+:} false
; then :
12163 $as_echo_n "(cached) " >&6
12166 for ac_kw
in inline __inline__ __inline
; do
12167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12168 /* end confdefs.h. */
12169 #ifndef __cplusplus
12171 static $ac_kw foo_t static_foo () {return 0; }
12172 $ac_kw foo_t foo () {return 0; }
12176 if ac_fn_c_try_compile
"$LINENO"; then :
12177 ac_cv_c_inline
=$ac_kw
12179 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12180 test "$ac_cv_c_inline" != no
&& break
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12185 $as_echo "$ac_cv_c_inline" >&6; }
12187 case $ac_cv_c_inline in
12190 case $ac_cv_c_inline in
12192 *) ac_val
=$ac_cv_c_inline;;
12194 cat >>confdefs.h
<<_ACEOF
12195 #ifndef __cplusplus
12196 #define inline $ac_val
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12203 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12204 if ${ac_cv_c_bigendian+:} false
; then :
12205 $as_echo_n "(cached) " >&6
12207 ac_cv_c_bigendian
=unknown
12208 # See if we're dealing with a universal compiler.
12209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12210 /* end confdefs.h. */
12211 #ifndef __APPLE_CC__
12212 not a universal capable compiler
12217 if ac_fn_c_try_compile
"$LINENO"; then :
12219 # Check for potential -arch flags. It is not universal unless
12220 # there are at least two -arch flags with different values.
12223 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12224 if test -n "$ac_prev"; then
12226 i?
86 | x86_64 | ppc | ppc64
)
12227 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12230 ac_cv_c_bigendian
=universal
12236 elif test "x$ac_word" = "x-arch"; then
12241 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12242 if test $ac_cv_c_bigendian = unknown
; then
12243 # See if sys/param.h defines the BYTE_ORDER macro.
12244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12245 /* end confdefs.h. */
12246 #include <sys/types.h>
12247 #include <sys/param.h>
12252 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12253 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12255 bogus endian macros
12262 if ac_fn_c_try_compile
"$LINENO"; then :
12263 # It does; now see whether it defined to BIG_ENDIAN or not.
12264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12265 /* end confdefs.h. */
12266 #include <sys/types.h>
12267 #include <sys/param.h>
12272 #if BYTE_ORDER != BIG_ENDIAN
12280 if ac_fn_c_try_compile
"$LINENO"; then :
12281 ac_cv_c_bigendian
=yes
12283 ac_cv_c_bigendian
=no
12285 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12287 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12289 if test $ac_cv_c_bigendian = unknown
; then
12290 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12292 /* end confdefs.h. */
12293 #include <limits.h>
12298 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12299 bogus endian macros
12306 if ac_fn_c_try_compile
"$LINENO"; then :
12307 # It does; now see whether it defined to _BIG_ENDIAN or not.
12308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12309 /* end confdefs.h. */
12310 #include <limits.h>
12315 #ifndef _BIG_ENDIAN
12323 if ac_fn_c_try_compile
"$LINENO"; then :
12324 ac_cv_c_bigendian
=yes
12326 ac_cv_c_bigendian
=no
12328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12330 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12332 if test $ac_cv_c_bigendian = unknown
; then
12333 # Compile a test program.
12334 if test "$cross_compiling" = yes; then :
12335 # Try to guess by grepping values from an object file.
12336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12337 /* end confdefs.h. */
12338 short int ascii_mm[] =
12339 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12340 short int ascii_ii[] =
12341 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12342 int use_ascii (int i) {
12343 return ascii_mm[i] + ascii_ii[i];
12345 short int ebcdic_ii[] =
12346 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12347 short int ebcdic_mm[] =
12348 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12349 int use_ebcdic (int i) {
12350 return ebcdic_mm[i] + ebcdic_ii[i];
12357 return use_ascii (foo) == use_ebcdic (foo);
12362 if ac_fn_c_try_compile
"$LINENO"; then :
12363 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12364 ac_cv_c_bigendian
=yes
12366 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12367 if test "$ac_cv_c_bigendian" = unknown
; then
12368 ac_cv_c_bigendian
=no
12370 # finding both strings is unlikely to happen, but who knows?
12371 ac_cv_c_bigendian
=unknown
12375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12378 /* end confdefs.h. */
12379 $ac_includes_default
12384 /* Are we little or big endian? From Harbison&Steele. */
12388 char c[sizeof (long int)];
12391 return u.c[sizeof (long int) - 1] == 1;
12397 if ac_fn_c_try_run
"$LINENO"; then :
12398 ac_cv_c_bigendian
=no
12400 ac_cv_c_bigendian
=yes
12402 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12403 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12409 $as_echo "$ac_cv_c_bigendian" >&6; }
12410 case $ac_cv_c_bigendian in #(
12412 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12418 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12422 as_fn_error $?
"unknown endianness
12423 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12427 # ------------------------------ #
12428 # Checks for library functions. #
12429 # ------------------------------ #
12431 for ac_func
in getuid getgid \
12432 pipe pread pread64 pwrite resize_term \
12434 sigaction sigsetmask socketpair \
12435 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
12436 setrlimit getrlimit posix_madvise waitpid \
12439 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12440 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12441 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12442 cat >>confdefs.h
<<_ACEOF
12443 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12451 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12452 if ${am_cv_langinfo_codeset+:} false
; then :
12453 $as_echo_n "(cached) " >&6
12455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12456 /* end confdefs.h. */
12457 #include <langinfo.h>
12461 char* cs = nl_langinfo(CODESET);
12466 if ac_fn_c_try_link
"$LINENO"; then :
12467 am_cv_langinfo_codeset
=yes
12469 am_cv_langinfo_codeset
=no
12471 rm -f core conftest.err conftest.
$ac_objext \
12472 conftest
$ac_exeext conftest.
$ac_ext
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12476 $as_echo "$am_cv_langinfo_codeset" >&6; }
12477 if test $am_cv_langinfo_codeset = yes; then
12479 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12483 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12484 if test "x$ac_cv_type_size_t" = xyes
; then :
12488 cat >>confdefs.h
<<_ACEOF
12489 #define size_t unsigned int
12497 for ac_header
in $ac_header_list
12499 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12500 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12502 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12503 cat >>confdefs.h
<<_ACEOF
12504 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12517 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12518 if test "x$ac_cv_type_pid_t" = xyes
; then :
12522 cat >>confdefs.h
<<_ACEOF
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12529 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12530 if ${ac_cv_path_SED+:} false
; then :
12531 $as_echo_n "(cached) " >&6
12533 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
12534 for ac_i
in 1 2 3 4 5 6 7; do
12535 ac_script
="$ac_script$as_nl$ac_script"
12537 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
12538 { ac_script
=; unset ac_script
;}
12539 if test -z "$SED"; then
12540 ac_path_SED_found
=false
12541 # Loop through the user's path and test for each of PROGNAME-LIST
12542 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12543 for as_dir
in $PATH
12546 test -z "$as_dir" && as_dir
=.
12547 for ac_prog
in sed gsed
; do
12548 for ac_exec_ext
in '' $ac_executable_extensions; do
12549 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12550 as_fn_executable_p
"$ac_path_SED" ||
continue
12551 # Check for GNU ac_path_SED and select it if it is found.
12552 # Check for GNU $ac_path_SED
12553 case `"$ac_path_SED" --version 2>&1` in
12555 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12558 $as_echo_n 0123456789 >"conftest.in"
12561 cat "conftest.in" "conftest.in" >"conftest.tmp"
12562 mv "conftest.tmp" "conftest.in"
12563 cp "conftest.in" "conftest.nl"
12564 $as_echo '' >> "conftest.nl"
12565 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12566 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12567 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12568 if test $ac_count -gt ${ac_path_SED_max-0}; then
12569 # Best one so far, save it but keep looking for a better one
12570 ac_cv_path_SED
="$ac_path_SED"
12571 ac_path_SED_max
=$ac_count
12573 # 10*(2^10) chars as input seems more than enough
12574 test $ac_count -gt 10 && break
12576 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12579 $ac_path_SED_found && break 3
12584 if test -z "$ac_cv_path_SED"; then
12585 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12588 ac_cv_path_SED
=$SED
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12593 $as_echo "$ac_cv_path_SED" >&6; }
12594 SED
="$ac_cv_path_SED"
12598 # Set the 'development' global.
12599 .
$srcdir/..
/bfd
/development.sh
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12602 $as_echo_n "checking for ANSI C header files... " >&6; }
12603 if ${ac_cv_header_stdc+:} false
; then :
12604 $as_echo_n "(cached) " >&6
12606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12607 /* end confdefs.h. */
12608 #include <stdlib.h>
12609 #include <stdarg.h>
12610 #include <string.h>
12621 if ac_fn_c_try_compile
"$LINENO"; then :
12622 ac_cv_header_stdc
=yes
12624 ac_cv_header_stdc
=no
12626 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12628 if test $ac_cv_header_stdc = yes; then
12629 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12631 /* end confdefs.h. */
12632 #include <string.h>
12635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12636 $EGREP "memchr" >/dev
/null
2>&1; then :
12639 ac_cv_header_stdc
=no
12645 if test $ac_cv_header_stdc = yes; then
12646 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12648 /* end confdefs.h. */
12649 #include <stdlib.h>
12652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12653 $EGREP "free" >/dev
/null
2>&1; then :
12656 ac_cv_header_stdc
=no
12662 if test $ac_cv_header_stdc = yes; then
12663 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12664 if test "$cross_compiling" = yes; then :
12667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12668 /* end confdefs.h. */
12670 #include <stdlib.h>
12671 #if ((' ' & 0x0FF) == 0x020)
12672 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12673 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12675 # define ISLOWER(c) \
12676 (('a' <= (c) && (c) <= 'i') \
12677 || ('j' <= (c) && (c) <= 'r') \
12678 || ('s' <= (c) && (c) <= 'z'))
12679 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12682 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12687 for (i = 0; i < 256; i++)
12688 if (XOR (islower (i), ISLOWER (i))
12689 || toupper (i) != TOUPPER (i))
12694 if ac_fn_c_try_run
"$LINENO"; then :
12697 ac_cv_header_stdc
=no
12699 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12700 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12706 $as_echo "$ac_cv_header_stdc" >&6; }
12707 if test $ac_cv_header_stdc = yes; then
12709 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12713 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12714 # for constant arguments. Useless!
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12716 $as_echo_n "checking for working alloca.h... " >&6; }
12717 if ${ac_cv_working_alloca_h+:} false
; then :
12718 $as_echo_n "(cached) " >&6
12720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12721 /* end confdefs.h. */
12722 #include <alloca.h>
12726 char *p = (char *) alloca (2 * sizeof (int));
12732 if ac_fn_c_try_link
"$LINENO"; then :
12733 ac_cv_working_alloca_h
=yes
12735 ac_cv_working_alloca_h
=no
12737 rm -f core conftest.err conftest.
$ac_objext \
12738 conftest
$ac_exeext conftest.
$ac_ext
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12741 $as_echo "$ac_cv_working_alloca_h" >&6; }
12742 if test $ac_cv_working_alloca_h = yes; then
12744 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12749 $as_echo_n "checking for alloca... " >&6; }
12750 if ${ac_cv_func_alloca_works+:} false
; then :
12751 $as_echo_n "(cached) " >&6
12753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12754 /* end confdefs.h. */
12756 # define alloca __builtin_alloca
12759 # include <malloc.h>
12760 # define alloca _alloca
12762 # ifdef HAVE_ALLOCA_H
12763 # include <alloca.h>
12768 # ifndef alloca /* predefined by HP cc +Olibcalls */
12769 void *alloca (size_t);
12779 char *p = (char *) alloca (1);
12785 if ac_fn_c_try_link
"$LINENO"; then :
12786 ac_cv_func_alloca_works
=yes
12788 ac_cv_func_alloca_works
=no
12790 rm -f core conftest.err conftest.
$ac_objext \
12791 conftest
$ac_exeext conftest.
$ac_ext
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12794 $as_echo "$ac_cv_func_alloca_works" >&6; }
12796 if test $ac_cv_func_alloca_works = yes; then
12798 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12801 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12802 # that cause trouble. Some versions do not even contain alloca or
12803 # contain a buggy version. If you still want to use their alloca,
12804 # use ar to extract alloca.o from them instead of compiling alloca.c.
12806 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
12808 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12812 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12813 if ${ac_cv_os_cray+:} false
; then :
12814 $as_echo_n "(cached) " >&6
12816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12817 /* end confdefs.h. */
12818 #if defined CRAY && ! defined CRAY2
12825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12826 $EGREP "webecray" >/dev
/null
2>&1; then :
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12835 $as_echo "$ac_cv_os_cray" >&6; }
12836 if test $ac_cv_os_cray = yes; then
12837 for ac_func
in _getb67 GETB67 getb67
; do
12838 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12839 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12840 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12842 cat >>confdefs.h
<<_ACEOF
12843 #define CRAY_STACKSEG_END $ac_func
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12853 $as_echo_n "checking stack direction for C alloca... " >&6; }
12854 if ${ac_cv_c_stack_direction+:} false
; then :
12855 $as_echo_n "(cached) " >&6
12857 if test "$cross_compiling" = yes; then :
12858 ac_cv_c_stack_direction
=0
12860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12861 /* end confdefs.h. */
12862 $ac_includes_default
12864 find_stack_direction (int *addr, int depth)
12866 int dir, dummy = 0;
12869 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
12870 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
12871 return dir + dummy;
12875 main (int argc, char **argv)
12877 return find_stack_direction (0, argc + !argv + 20) < 0;
12880 if ac_fn_c_try_run
"$LINENO"; then :
12881 ac_cv_c_stack_direction
=1
12883 ac_cv_c_stack_direction
=-1
12885 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12886 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12891 $as_echo "$ac_cv_c_stack_direction" >&6; }
12892 cat >>confdefs.h
<<_ACEOF
12893 #define STACK_DIRECTION $ac_cv_c_stack_direction
12904 $as_echo "#define USE_WIN32API 1" >>confdefs.h
12906 WIN32APILIBS
="-lws2_32"
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12912 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12913 if ${am_cv_langinfo_codeset+:} false
; then :
12914 $as_echo_n "(cached) " >&6
12916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12917 /* end confdefs.h. */
12918 #include <langinfo.h>
12922 char* cs = nl_langinfo(CODESET);
12927 if ac_fn_c_try_link
"$LINENO"; then :
12928 am_cv_langinfo_codeset
=yes
12930 am_cv_langinfo_codeset
=no
12932 rm -f core conftest.err conftest.
$ac_objext \
12933 conftest
$ac_exeext conftest.
$ac_ext
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12937 $as_echo "$am_cv_langinfo_codeset" >&6; }
12938 if test $am_cv_langinfo_codeset = yes; then
12940 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12945 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 sys
/procfs.h proc_service.h poll.h sys
/poll.h sys
/select.h
12947 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12948 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12949 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12950 cat >>confdefs.h
<<_ACEOF
12951 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12960 for ac_func
in getpagesize
12962 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12963 if test "x$ac_cv_func_getpagesize" = xyes
; then :
12964 cat >>confdefs.h
<<_ACEOF
12965 #define HAVE_GETPAGESIZE 1
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12972 $as_echo_n "checking for working mmap... " >&6; }
12973 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
12974 $as_echo_n "(cached) " >&6
12976 if test "$cross_compiling" = yes; then :
12977 ac_cv_func_mmap_fixed_mapped
=no
12979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12980 /* end confdefs.h. */
12981 $ac_includes_default
12982 /* malloc might have been renamed as rpl_malloc. */
12985 /* Thanks to Mike Haertel and Jim Avera for this test.
12986 Here is a matrix of mmap possibilities:
12987 mmap private not fixed
12988 mmap private fixed at somewhere currently unmapped
12989 mmap private fixed at somewhere already mapped
12990 mmap shared not fixed
12991 mmap shared fixed at somewhere currently unmapped
12992 mmap shared fixed at somewhere already mapped
12993 For private mappings, we should verify that changes cannot be read()
12994 back from the file, nor mmap's back from the file at a different
12995 address. (There have been systems where private was not correctly
12996 implemented like the infamous i386 svr4.0, and systems where the
12997 VM page cache was not coherent with the file system buffer cache
12998 like early versions of FreeBSD and possibly contemporary NetBSD.)
12999 For shared mappings, we should conversely verify that changes get
13000 propagated back to all the places they're supposed to be.
13002 Grep wants private fixed already mapped.
13003 The main things grep needs to know about mmap are:
13004 * does it exist and is it safe to write into the mmap'd area
13005 * how to use it (BSD variants) */
13008 #include <sys/mman.h>
13010 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13014 /* This mess was copied from the GNU getpagesize.h. */
13015 #ifndef HAVE_GETPAGESIZE
13016 # ifdef _SC_PAGESIZE
13017 # define getpagesize() sysconf(_SC_PAGESIZE)
13018 # else /* no _SC_PAGESIZE */
13019 # ifdef HAVE_SYS_PARAM_H
13020 # include <sys/param.h>
13021 # ifdef EXEC_PAGESIZE
13022 # define getpagesize() EXEC_PAGESIZE
13023 # else /* no EXEC_PAGESIZE */
13025 # define getpagesize() NBPG * CLSIZE
13028 # endif /* no CLSIZE */
13029 # else /* no NBPG */
13031 # define getpagesize() NBPC
13032 # else /* no NBPC */
13034 # define getpagesize() PAGESIZE
13035 # endif /* PAGESIZE */
13036 # endif /* no NBPC */
13037 # endif /* no NBPG */
13038 # endif /* no EXEC_PAGESIZE */
13039 # else /* no HAVE_SYS_PARAM_H */
13040 # define getpagesize() 8192 /* punt totally */
13041 # endif /* no HAVE_SYS_PARAM_H */
13042 # endif /* no _SC_PAGESIZE */
13044 #endif /* no HAVE_GETPAGESIZE */
13049 char *data, *data2, *data3;
13050 const char *cdata2;
13054 pagesize = getpagesize ();
13056 /* First, make a file with some known garbage in it. */
13057 data = (char *) malloc (pagesize);
13060 for (i = 0; i < pagesize; ++i)
13061 *(data + i) = rand ();
13063 fd = creat ("conftest.mmap", 0600);
13066 if (write (fd, data, pagesize) != pagesize)
13070 /* Next, check that the tail of a page is zero-filled. File must have
13071 non-zero length, otherwise we risk SIGBUS for entire page. */
13072 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13076 if (write (fd2, cdata2, 1) != 1)
13078 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13079 if (data2 == MAP_FAILED)
13081 for (i = 0; i < pagesize; ++i)
13085 if (munmap (data2, pagesize))
13088 /* Next, try to mmap the file at a fixed address which already has
13089 something else allocated at it. If we can, also make sure that
13090 we see the same garbage. */
13091 fd = open ("conftest.mmap", O_RDWR);
13094 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13095 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13097 for (i = 0; i < pagesize; ++i)
13098 if (*(data + i) != *(data2 + i))
13101 /* Finally, make sure that changes to the mapped area do not
13102 percolate back to the file as seen by read(). (This is a bug on
13103 some variants of i386 svr4.0.) */
13104 for (i = 0; i < pagesize; ++i)
13105 *(data2 + i) = *(data2 + i) + 1;
13106 data3 = (char *) malloc (pagesize);
13109 if (read (fd, data3, pagesize) != pagesize)
13111 for (i = 0; i < pagesize; ++i)
13112 if (*(data + i) != *(data3 + i))
13118 if ac_fn_c_try_run
"$LINENO"; then :
13119 ac_cv_func_mmap_fixed_mapped
=yes
13121 ac_cv_func_mmap_fixed_mapped
=no
13123 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13124 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13129 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13130 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13132 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13135 rm -f conftest.mmap conftest.txt
13137 for ac_header
in vfork.h
13139 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13140 if test "x$ac_cv_header_vfork_h" = xyes
; then :
13141 cat >>confdefs.h
<<_ACEOF
13142 #define HAVE_VFORK_H 1
13149 for ac_func
in fork vfork
13151 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13152 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13153 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13154 cat >>confdefs.h
<<_ACEOF
13155 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13161 if test "x$ac_cv_func_fork" = xyes
; then
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13163 $as_echo_n "checking for working fork... " >&6; }
13164 if ${ac_cv_func_fork_works+:} false
; then :
13165 $as_echo_n "(cached) " >&6
13167 if test "$cross_compiling" = yes; then :
13168 ac_cv_func_fork_works
=cross
13170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13171 /* end confdefs.h. */
13172 $ac_includes_default
13177 /* By Ruediger Kuhlmann. */
13178 return fork () < 0;
13184 if ac_fn_c_try_run
"$LINENO"; then :
13185 ac_cv_func_fork_works
=yes
13187 ac_cv_func_fork_works
=no
13189 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13190 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13195 $as_echo "$ac_cv_func_fork_works" >&6; }
13198 ac_cv_func_fork_works
=$ac_cv_func_fork
13200 if test "x$ac_cv_func_fork_works" = xcross
; then
13202 *-*-amigaos* |
*-*-msdosdjgpp*)
13203 # Override, as these systems have only a dummy fork() stub
13204 ac_cv_func_fork_works
=no
13207 ac_cv_func_fork_works
=yes
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13211 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13213 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13214 if test "x$ac_cv_func_vfork" = xyes
; then
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13216 $as_echo_n "checking for working vfork... " >&6; }
13217 if ${ac_cv_func_vfork_works+:} false
; then :
13218 $as_echo_n "(cached) " >&6
13220 if test "$cross_compiling" = yes; then :
13221 ac_cv_func_vfork_works
=cross
13223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13224 /* end confdefs.h. */
13225 /* Thanks to Paul Eggert for this test. */
13226 $ac_includes_default
13227 #include <sys/wait.h>
13228 #ifdef HAVE_VFORK_H
13229 # include <vfork.h>
13231 /* On some sparc systems, changes by the child to local and incoming
13232 argument registers are propagated back to the parent. The compiler
13233 is told about this with #include <vfork.h>, but some compilers
13234 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13235 static variable whose address is put into a register that is
13236 clobbered by the vfork. */
13239 sparc_address_test (int arg)
13241 sparc_address_test (arg) int arg;
13244 static pid_t child;
13262 pid_t parent = getpid ();
13265 sparc_address_test (0);
13270 /* Here is another test for sparc vfork register problems. This
13271 test uses lots of local variables, at least as many local
13272 variables as main has allocated so far including compiler
13273 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13274 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13275 reuse the register of parent for one of the local variables,
13276 since it will think that parent can't possibly be used any more
13277 in this routine. Assigning to the local variable will thus
13278 munge parent in the parent process. */
13280 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13281 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13282 /* Convince the compiler that p..p7 are live; otherwise, it might
13283 use the same hardware register for all 8 local variables. */
13284 if (p != p1 || p != p2 || p != p3 || p != p4
13285 || p != p5 || p != p6 || p != p7)
13288 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13289 from child file descriptors. If the child closes a descriptor
13290 before it execs or exits, this munges the parent's descriptor
13291 as well. Test for this by closing stdout in the child. */
13292 _exit(close(fileno(stdout)) != 0);
13297 while (wait(&status) != child)
13300 /* Was there some problem with vforking? */
13303 /* Did the child fail? (This shouldn't happen.) */
13306 /* Did the vfork/compiler bug occur? */
13307 || parent != getpid()
13309 /* Did the file descriptor bug occur? */
13310 || fstat(fileno(stdout), &st) != 0
13315 if ac_fn_c_try_run
"$LINENO"; then :
13316 ac_cv_func_vfork_works
=yes
13318 ac_cv_func_vfork_works
=no
13320 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13321 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13326 $as_echo "$ac_cv_func_vfork_works" >&6; }
13329 if test "x$ac_cv_func_fork_works" = xcross
; then
13330 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13332 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13335 if test "x$ac_cv_func_vfork_works" = xyes
; then
13337 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13341 $as_echo "#define vfork fork" >>confdefs.h
13344 if test "x$ac_cv_func_fork_works" = xyes
; then
13346 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13350 for ac_func
in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
13351 ptrace64 sbrk setns sigaltstack sigprocmask \
13352 setpgid setpgrp getrusage getauxval
13354 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13355 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13356 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13357 cat >>confdefs.h
<<_ACEOF
13358 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13365 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
13367 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
13373 cat >>confdefs.h
<<_ACEOF
13374 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
13378 if test "$cross_compiling" = yes; then :
13379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13380 /* end confdefs.h. */
13381 #include <sys/personality.h>
13386 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
13387 # define ADDR_NO_RANDOMIZE 0x0040000
13389 /* Test the flag could be set and stays set. */
13390 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13391 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13397 if ac_fn_c_try_link
"$LINENO"; then :
13398 have_personality
=true
13400 have_personality
=false
13402 rm -f core conftest.err conftest.
$ac_objext \
13403 conftest
$ac_exeext conftest.
$ac_ext
13405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13406 /* end confdefs.h. */
13407 #include <sys/personality.h>
13412 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
13413 # define ADDR_NO_RANDOMIZE 0x0040000
13415 /* Test the flag could be set and stays set. */
13416 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13417 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13423 if ac_fn_c_try_run
"$LINENO"; then :
13424 have_personality
=true
13426 have_personality
=false
13428 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13429 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13432 if $have_personality
13435 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
13439 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13440 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
13446 cat >>confdefs.h
<<_ACEOF
13447 #define HAVE_DECL_STRSTR $ac_have_decl
13451 # ----------------------- #
13452 # Checks for structures. #
13453 # ----------------------- #
13455 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13456 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
13458 cat >>confdefs.h
<<_ACEOF
13459 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13464 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
13465 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
13467 cat >>confdefs.h
<<_ACEOF
13468 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
13476 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
13477 if ${ac_cv_search_kinfo_getfile+:} false
; then :
13478 $as_echo_n "(cached) " >&6
13480 ac_func_search_save_LIBS
=$LIBS
13481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13482 /* end confdefs.h. */
13484 /* Override any GCC internal prototype to avoid an error.
13485 Use char because int might match the return type of a GCC
13486 builtin and then its argument prototype would still apply. */
13490 char kinfo_getfile ();
13494 return kinfo_getfile ();
13499 for ac_lib
in '' util util-freebsd
; do
13500 if test -z "$ac_lib"; then
13501 ac_res
="none required"
13504 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13506 if ac_fn_c_try_link
"$LINENO"; then :
13507 ac_cv_search_kinfo_getfile
=$ac_res
13509 rm -f core conftest.err conftest.
$ac_objext \
13511 if ${ac_cv_search_kinfo_getfile+:} false
; then :
13515 if ${ac_cv_search_kinfo_getfile+:} false
; then :
13518 ac_cv_search_kinfo_getfile
=no
13520 rm conftest.
$ac_ext
13521 LIBS
=$ac_func_search_save_LIBS
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
13524 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
13525 ac_res
=$ac_cv_search_kinfo_getfile
13526 if test "$ac_res" != no
; then :
13527 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13529 $as_echo "#define HAVE_KINFO_GETFILE 1" >>confdefs.h
13534 # Check for std::thread. This does not work on some platforms, like
13537 ac_cpp
='$CXXCPP $CPPFLAGS'
13538 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13539 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13540 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
13547 ac_cpp
='$CPP $CPPFLAGS'
13548 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13549 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13550 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13554 # We used to check for pthread.h first, but this fails if pthread.h
13555 # requires special compiler flags (e.g. on Tru64 or Sequent).
13556 # It gets checked for in the link test anyway.
13558 # First of all, check if the user has set any of the PTHREAD_LIBS,
13559 # etcetera environment variables, and if threads linking works using
13561 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
13562 ax_pthread_save_CC
="$CC"
13563 ax_pthread_save_CFLAGS
="$CFLAGS"
13564 ax_pthread_save_LIBS
="$LIBS"
13565 if test "x$PTHREAD_CC" != "x"; then :
13568 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
13569 LIBS
="$PTHREAD_LIBS $LIBS"
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
13571 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
13572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13573 /* end confdefs.h. */
13575 /* Override any GCC internal prototype to avoid an error.
13576 Use char because int might match the return type of a GCC
13577 builtin and then its argument prototype would still apply. */
13581 char pthread_join ();
13585 return pthread_join ();
13590 if ac_fn_c_try_link
"$LINENO"; then :
13593 rm -f core conftest.err conftest.
$ac_objext \
13594 conftest
$ac_exeext conftest.
$ac_ext
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
13596 $as_echo "$ax_pthread_ok" >&6; }
13597 if test "x$ax_pthread_ok" = "xno"; then
13601 CC
="$ax_pthread_save_CC"
13602 CFLAGS
="$ax_pthread_save_CFLAGS"
13603 LIBS
="$ax_pthread_save_LIBS"
13606 # We must check for the threads library under a number of different
13607 # names; the ordering is very important because some systems
13608 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
13609 # libraries is broken (non-POSIX).
13611 # Create a list of thread flags to try. Items starting with a "-" are
13612 # C compiler flags, and other items are library names, except for "none"
13613 # which indicates that we try without any flags at all, and "pthread-config"
13614 # which is a program returning the flags for the Pth emulation library.
13616 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
13618 # The ordering *is* (sometimes) important. Some notes on the
13619 # individual items follow:
13621 # pthreads: AIX (must check this before -lpthread)
13622 # none: in case threads are in libc; should be tried before -Kthread and
13623 # other compiler flags to prevent continual compiler warnings
13624 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
13625 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
13626 # (Note: HP C rejects this with "bad form for `-t' option")
13627 # -pthreads: Solaris/gcc (Note: HP C also rejects)
13628 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
13629 # doesn't hurt to check since this sometimes defines pthreads and
13630 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
13631 # is present but should not be used directly; and before -mthreads,
13632 # because the compiler interprets this as "-mt" + "-hreads")
13633 # -mthreads: Mingw32/gcc, Lynx/gcc
13634 # pthread: Linux, etcetera
13635 # --thread-safe: KAI C++
13636 # pthread-config: use pthread-config program (for GNU Pth library)
13642 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
13643 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
13645 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
13650 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
13651 # multi-threading and also sets -lpthread."
13653 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
13658 # IBM z/OS requires a feature-test macro to be defined in order to
13659 # enable POSIX threads at all, so give the user a hint if this is
13660 # not set. (We don't define these ourselves, as they can affect
13661 # other portions of the system API in unpredictable ways.)
13663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13664 /* end confdefs.h. */
13666 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
13667 AX_PTHREAD_ZOS_MISSING
13671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13672 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
13674 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
13682 # On Solaris (at least, for some versions), libc contains stubbed
13683 # (non-functional) versions of the pthreads routines, so link-based
13684 # tests will erroneously succeed. (N.B.: The stubs are missing
13685 # pthread_cleanup_push, or rather a function called by this macro,
13686 # so we could check for that, but who knows whether they'll stub
13687 # that too in a future libc.) So we'll check first for the
13688 # standard Solaris way of linking pthreads (-mt -lpthread).
13690 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
13694 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
13696 if test "x$GCC" = "xyes"; then :
13697 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
13700 # The presence of a feature test macro requesting re-entrant function
13701 # definitions is, on some systems, a strong hint that pthreads support is
13702 # correctly enabled
13705 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
13706 ax_pthread_check_macro
="_REENTRANT"
13710 ax_pthread_check_macro
="_THREAD_SAFE"
13714 ax_pthread_check_macro
="--"
13717 if test "x$ax_pthread_check_macro" = "x--"; then :
13718 ax_pthread_check_cond
=0
13720 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
13723 # Are we compiling with Clang?
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
13726 $as_echo_n "checking whether $CC is Clang... " >&6; }
13727 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
13728 $as_echo_n "(cached) " >&6
13730 ax_cv_PTHREAD_CLANG
=no
13731 # Note that Autoconf sets GCC=yes for Clang as well as GCC
13732 if test "x$GCC" = "xyes"; then
13733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13734 /* end confdefs.h. */
13735 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
13736 # if defined(__clang__) && defined(__llvm__)
13737 AX_PTHREAD_CC_IS_CLANG
13741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13742 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
13743 ax_cv_PTHREAD_CLANG
=yes
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
13751 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
13752 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
13754 ax_pthread_clang_warning
=no
13756 # Clang needs special handling, because older versions handle the -pthread
13757 # option in a rather... idiosyncratic way
13759 if test "x$ax_pthread_clang" = "xyes"; then
13761 # Clang takes -pthread; it has never supported any other flag
13763 # (Note 1: This will need to be revisited if a system that Clang
13764 # supports has POSIX threads in a separate library. This tends not
13765 # to be the way of modern systems, but it's conceivable.)
13767 # (Note 2: On some systems, notably Darwin, -pthread is not needed
13768 # to get POSIX threads support; the API is always present and
13769 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
13770 # -pthread does define _REENTRANT, and while the Darwin headers
13771 # ignore this macro, third-party headers might not.)
13773 PTHREAD_CFLAGS
="-pthread"
13778 # However, older versions of Clang make a point of warning the user
13779 # that, in an invocation where only linking and no compilation is
13780 # taking place, the -pthread option has no effect ("argument unused
13781 # during compilation"). They expect -pthread to be passed in only
13782 # when source code is being compiled.
13784 # Problem is, this is at odds with the way Automake and most other
13785 # C build frameworks function, which is that the same flags used in
13786 # compilation (CFLAGS) are also used in linking. Many systems
13787 # supported by AX_PTHREAD require exactly this for POSIX threads
13788 # support, and in fact it is often not straightforward to specify a
13789 # flag that is used only in the compilation phase and not in
13790 # linking. Such a scenario is extremely rare in practice.
13792 # Even though use of the -pthread flag in linking would only print
13793 # a warning, this can be a nuisance for well-run software projects
13794 # that build with -Werror. So if the active version of Clang has
13795 # this misfeature, we search for an option to squash it.
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
13798 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
13799 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
13800 $as_echo_n "(cached) " >&6
13802 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
13803 # Create an alternate version of $ac_link that compiles and
13804 # links in two steps (.c -> .o, .o -> exe) instead of one
13805 # (.c -> exe), because the warning occurs only in the second
13807 ax_pthread_save_ac_link
="$ac_link"
13808 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
13809 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
13810 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
13811 ax_pthread_save_CFLAGS
="$CFLAGS"
13812 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
13813 if test "x$ax_pthread_try" = "xunknown"; then :
13816 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
13817 ac_link
="$ax_pthread_save_ac_link"
13818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13819 /* end confdefs.h. */
13820 int main(void){return 0;}
13822 if ac_fn_c_try_link
"$LINENO"; then :
13823 ac_link
="$ax_pthread_2step_ac_link"
13824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13825 /* end confdefs.h. */
13826 int main(void){return 0;}
13828 if ac_fn_c_try_link
"$LINENO"; then :
13831 rm -f core conftest.err conftest.
$ac_objext \
13832 conftest
$ac_exeext conftest.
$ac_ext
13835 rm -f core conftest.err conftest.
$ac_objext \
13836 conftest
$ac_exeext conftest.
$ac_ext
13838 ac_link
="$ax_pthread_save_ac_link"
13839 CFLAGS
="$ax_pthread_save_CFLAGS"
13840 if test "x$ax_pthread_try" = "x"; then :
13843 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
13847 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
13849 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
13851 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
13854 fi # $ax_pthread_clang = yes
13856 if test "x$ax_pthread_ok" = "xno"; then
13857 for ax_pthread_try_flag
in $ax_pthread_flags; do
13859 case $ax_pthread_try_flag in
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
13862 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
13867 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
13868 PTHREAD_CFLAGS
="-mt"
13869 PTHREAD_LIBS
="-lpthread"
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
13874 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
13875 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
13879 # Extract the first word of "pthread-config", so it can be a program name with args.
13880 set dummy pthread-config
; ac_word
=$2
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13882 $as_echo_n "checking for $ac_word... " >&6; }
13883 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
13884 $as_echo_n "(cached) " >&6
13886 if test -n "$ax_pthread_config"; then
13887 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
13889 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13890 for as_dir
in $PATH
13893 test -z "$as_dir" && as_dir
=.
13894 for ac_exec_ext
in '' $ac_executable_extensions; do
13895 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13896 ac_cv_prog_ax_pthread_config
="yes"
13897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13904 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
13907 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
13908 if test -n "$ax_pthread_config"; then
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
13910 $as_echo "$ax_pthread_config" >&6; }
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13913 $as_echo "no" >&6; }
13917 if test "x$ax_pthread_config" = "xno"; then :
13920 PTHREAD_CFLAGS
="`pthread-config --cflags`"
13921 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
13926 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
13927 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
13931 ax_pthread_save_CFLAGS
="$CFLAGS"
13932 ax_pthread_save_LIBS
="$LIBS"
13933 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
13934 LIBS
="$PTHREAD_LIBS $LIBS"
13936 # Check for various functions. We must include pthread.h,
13937 # since some functions may be macros. (On the Sequent, we
13938 # need a special flag -Kthread to make this header compile.)
13939 # We check for pthread_join because it is in -lpthread on IRIX
13940 # while pthread_create is in libc. We check for pthread_attr_init
13941 # due to DEC craziness with -lpthreads. We check for
13942 # pthread_cleanup_push because it is one of the few pthread
13943 # functions on Solaris that doesn't have a non-functional libc stub.
13944 # We try pthread_create on general principles.
13946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13947 /* end confdefs.h. */
13948 #include <pthread.h>
13949 # if $ax_pthread_check_cond
13950 # error "$ax_pthread_check_macro must be defined"
13952 static void routine(void *a) { a = 0; }
13953 static void *start_routine(void *a) { return a; }
13957 pthread_t th; pthread_attr_t attr;
13958 pthread_create(&th, 0, start_routine, 0);
13959 pthread_join(th, 0);
13960 pthread_attr_init(&attr);
13961 pthread_cleanup_push(routine, 0);
13962 pthread_cleanup_pop(0) /* ; */
13967 if ac_fn_c_try_link
"$LINENO"; then :
13970 rm -f core conftest.err conftest.
$ac_objext \
13971 conftest
$ac_exeext conftest.
$ac_ext
13973 CFLAGS
="$ax_pthread_save_CFLAGS"
13974 LIBS
="$ax_pthread_save_LIBS"
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
13977 $as_echo "$ax_pthread_ok" >&6; }
13978 if test "x$ax_pthread_ok" = "xyes"; then :
13987 # Various other checks:
13988 if test "x$ax_pthread_ok" = "xyes"; then
13989 ax_pthread_save_CFLAGS
="$CFLAGS"
13990 ax_pthread_save_LIBS
="$LIBS"
13991 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
13992 LIBS
="$PTHREAD_LIBS $LIBS"
13994 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
13996 $as_echo_n "checking for joinable pthread attribute... " >&6; }
13997 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
13998 $as_echo_n "(cached) " >&6
14000 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
14001 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
14002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14003 /* end confdefs.h. */
14004 #include <pthread.h>
14008 int attr = $ax_pthread_attr; return attr /* ; */
14013 if ac_fn_c_try_link
"$LINENO"; then :
14014 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
14016 rm -f core conftest.err conftest.
$ac_objext \
14017 conftest
$ac_exeext conftest.
$ac_ext
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
14022 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
14023 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
14024 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
14025 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
14027 cat >>confdefs.h
<<_ACEOF
14028 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
14031 ax_pthread_joinable_attr_defined
=yes
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
14036 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
14037 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
14038 $as_echo_n "(cached) " >&6
14040 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
14043 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
14049 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
14050 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
14051 test "x$ax_pthread_special_flags_added" != "xyes"; then :
14052 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
14053 ax_pthread_special_flags_added
=yes
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
14057 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
14058 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
14059 $as_echo_n "(cached) " >&6
14061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14062 /* end confdefs.h. */
14063 #include <pthread.h>
14067 int i = PTHREAD_PRIO_INHERIT;
14072 if ac_fn_c_try_link
"$LINENO"; then :
14073 ax_cv_PTHREAD_PRIO_INHERIT
=yes
14075 ax_cv_PTHREAD_PRIO_INHERIT
=no
14077 rm -f core conftest.err conftest.
$ac_objext \
14078 conftest
$ac_exeext conftest.
$ac_ext
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
14082 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
14083 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
14084 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
14086 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
14088 ax_pthread_prio_inherit_defined
=yes
14092 CFLAGS
="$ax_pthread_save_CFLAGS"
14093 LIBS
="$ax_pthread_save_LIBS"
14095 # More AIX lossage: compile with *_r variant
14096 if test "x$GCC" != "xyes"; then
14100 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
14101 #handle absolute path differently from PATH based program lookup
14104 if as_fn_executable_p
${CC}_r
; then :
14105 PTHREAD_CC
="${CC}_r"
14108 for ac_prog
in ${CC}_r
14110 # Extract the first word of "$ac_prog", so it can be a program name with args.
14111 set dummy
$ac_prog; ac_word
=$2
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14113 $as_echo_n "checking for $ac_word... " >&6; }
14114 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
14115 $as_echo_n "(cached) " >&6
14117 if test -n "$PTHREAD_CC"; then
14118 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
14120 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14121 for as_dir
in $PATH
14124 test -z "$as_dir" && as_dir
=.
14125 for ac_exec_ext
in '' $ac_executable_extensions; do
14126 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14127 ac_cv_prog_PTHREAD_CC
="$ac_prog"
14128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14137 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
14138 if test -n "$PTHREAD_CC"; then
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14140 $as_echo "$PTHREAD_CC" >&6; }
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14143 $as_echo "no" >&6; }
14147 test -n "$PTHREAD_CC" && break
14149 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
14160 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
14166 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14167 if test "x$ax_pthread_ok" = "xyes"; then
14175 ac_cpp
='$CXXCPP $CPPFLAGS'
14176 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14177 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14178 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
14181 if test "$threads" = "yes"; then
14183 LIBS
="$PTHREAD_LIBS $LIBS"
14184 save_CXXFLAGS
="$CXXFLAGS"
14185 CXXFLAGS
="$PTHREAD_CFLAGS $save_CXXFLAGS"
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
14187 $as_echo_n "checking for std::thread... " >&6; }
14188 if ${gdb_cv_cxx_std_thread+:} false
; then :
14189 $as_echo_n "(cached) " >&6
14191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14192 /* end confdefs.h. */
14194 void callback() { }
14198 std::thread t(callback);
14203 if ac_fn_cxx_try_compile
"$LINENO"; then :
14204 gdb_cv_cxx_std_thread
=yes
14206 gdb_cv_cxx_std_thread
=no
14208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
14211 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
14213 # This check must be here, while LIBS includes any necessary
14214 # threading library.
14215 for ac_func
in pthread_sigmask pthread_setname_np
14217 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14218 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14219 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14220 cat >>confdefs.h
<<_ACEOF
14221 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14229 CXXFLAGS
="$save_CXXFLAGS"
14231 if test "$gdb_cv_cxx_std_thread" = "yes"; then
14233 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
14237 ac_cpp
='$CPP $CPPFLAGS'
14238 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14239 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14240 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
14244 $as_echo_n "checking for sigsetjmp... " >&6; }
14245 if ${gdb_cv_func_sigsetjmp+:} false
; then :
14246 $as_echo_n "(cached) " >&6
14248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14249 /* end confdefs.h. */
14251 #include <setjmp.h>
14256 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
14261 if ac_fn_c_try_compile
"$LINENO"; then :
14262 gdb_cv_func_sigsetjmp
=yes
14264 gdb_cv_func_sigsetjmp
=no
14266 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
14269 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
14270 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
14272 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
14277 # Check whether --with-intel_pt was given.
14278 if test "${with_intel_pt+set}" = set; then :
14279 withval
=$with_intel_pt;
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
14285 $as_echo_n "checking whether to use intel pt... " >&6; }
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
14287 $as_echo "$with_intel_pt" >&6; }
14289 if test "${with_intel_pt}" = no
; then
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
14291 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
14294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14295 /* end confdefs.h. */
14297 #include <linux/perf_event.h>
14298 #ifndef PERF_ATTR_SIZE_VER5
14303 if ac_fn_c_try_cpp
"$LINENO"; then :
14308 rm -f conftest.err conftest.i conftest.
$ac_ext
14309 if test "$perf_event" != yes; then
14310 if test "$with_intel_pt" = yes; then
14311 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
14314 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
14328 acl_save_prefix
="$prefix"
14329 prefix
="$acl_final_prefix"
14330 acl_save_exec_prefix
="$exec_prefix"
14331 exec_prefix
="$acl_final_exec_prefix"
14333 eval additional_includedir
=\"$includedir\"
14334 eval additional_libdir
=\"$libdir\"
14336 exec_prefix
="$acl_save_exec_prefix"
14337 prefix
="$acl_save_prefix"
14340 # Check whether --with-libipt-prefix was given.
14341 if test "${with_libipt_prefix+set}" = set; then :
14342 withval
=$with_libipt_prefix;
14343 if test "X$withval" = "Xno"; then
14346 if test "X$withval" = "X"; then
14348 acl_save_prefix
="$prefix"
14349 prefix
="$acl_final_prefix"
14350 acl_save_exec_prefix
="$exec_prefix"
14351 exec_prefix
="$acl_final_exec_prefix"
14353 eval additional_includedir
=\"$includedir\"
14354 eval additional_libdir
=\"$libdir\"
14356 exec_prefix
="$acl_save_exec_prefix"
14357 prefix
="$acl_save_prefix"
14360 additional_includedir
="$withval/include"
14361 additional_libdir
="$withval/lib"
14368 # Check whether --with-libipt-type was given.
14369 if test "${with_libipt_type+set}" = set; then :
14370 withval
=$with_libipt_type; with_libipt_type
=$withval
14372 with_libipt_type
=auto
14375 lib_type
=`eval echo \$with_libipt_type`
14382 names_already_handled
=
14383 names_next_round
='ipt '
14384 while test -n "$names_next_round"; do
14385 names_this_round
="$names_next_round"
14387 for name
in $names_this_round; do
14389 for n
in $names_already_handled; do
14390 if test "$n" = "$name"; then
14391 already_handled
=yes
14395 if test -z "$already_handled"; then
14396 names_already_handled
="$names_already_handled $name"
14397 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14398 eval value
=\"\
$HAVE_LIB$uppername\"
14399 if test -n "$value"; then
14400 if test "$value" = yes; then
14401 eval value
=\"\
$LIB$uppername\"
14402 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
14403 eval value
=\"\
$LTLIB$uppername\"
14404 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
14413 if test $use_additional = yes; then
14414 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
14415 found_dir
="$additional_libdir"
14416 found_so
="$additional_libdir/lib$name.$shlibext"
14417 if test -f "$additional_libdir/lib$name.la"; then
14418 found_la
="$additional_libdir/lib$name.la"
14420 elif test x
$lib_type != xshared
; then
14421 if test -f "$additional_libdir/lib$name.$libext"; then
14422 found_dir
="$additional_libdir"
14423 found_a
="$additional_libdir/lib$name.$libext"
14424 if test -f "$additional_libdir/lib$name.la"; then
14425 found_la
="$additional_libdir/lib$name.la"
14430 if test "X$found_dir" = "X"; then
14431 for x
in $LDFLAGS $LTLIBIPT; do
14433 acl_save_prefix
="$prefix"
14434 prefix
="$acl_final_prefix"
14435 acl_save_exec_prefix
="$exec_prefix"
14436 exec_prefix
="$acl_final_exec_prefix"
14438 exec_prefix
="$acl_save_exec_prefix"
14439 prefix
="$acl_save_prefix"
14443 dir
=`echo "X$x" | sed -e 's/^X-L//'`
14444 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
14446 found_so
="$dir/lib$name.$shlibext"
14447 if test -f "$dir/lib$name.la"; then
14448 found_la
="$dir/lib$name.la"
14450 elif test x
$lib_type != xshared
; then
14451 if test -f "$dir/lib$name.$libext"; then
14453 found_a
="$dir/lib$name.$libext"
14454 if test -f "$dir/lib$name.la"; then
14455 found_la
="$dir/lib$name.la"
14461 if test "X$found_dir" != "X"; then
14466 if test "X$found_dir" != "X"; then
14467 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
14468 if test "X$found_so" != "X"; then
14469 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
14470 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14473 for x
in $ltrpathdirs; do
14474 if test "X$x" = "X$found_dir"; then
14479 if test -z "$haveit"; then
14480 ltrpathdirs
="$ltrpathdirs $found_dir"
14482 if test "$hardcode_direct" = yes; then
14483 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14485 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
14486 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14488 for x
in $rpathdirs; do
14489 if test "X$x" = "X$found_dir"; then
14494 if test -z "$haveit"; then
14495 rpathdirs
="$rpathdirs $found_dir"
14499 for x
in $LDFLAGS $LIBIPT; do
14501 acl_save_prefix
="$prefix"
14502 prefix
="$acl_final_prefix"
14503 acl_save_exec_prefix
="$exec_prefix"
14504 exec_prefix
="$acl_final_exec_prefix"
14506 exec_prefix
="$acl_save_exec_prefix"
14507 prefix
="$acl_save_prefix"
14509 if test "X$x" = "X-L$found_dir"; then
14514 if test -z "$haveit"; then
14515 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
14517 if test "$hardcode_minus_L" != no
; then
14518 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14520 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
14526 if test "X$found_a" != "X"; then
14527 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
14529 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
14532 additional_includedir
=
14533 case "$found_dir" in
14535 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14536 additional_includedir
="$basedir/include"
14539 if test "X$additional_includedir" != "X"; then
14540 if test "X$additional_includedir" != "X/usr/include"; then
14542 if test "X$additional_includedir" = "X/usr/local/include"; then
14543 if test -n "$GCC"; then
14545 linux
*) haveit
=yes;;
14549 if test -z "$haveit"; then
14550 for x
in $CPPFLAGS $INCIPT; do
14552 acl_save_prefix
="$prefix"
14553 prefix
="$acl_final_prefix"
14554 acl_save_exec_prefix
="$exec_prefix"
14555 exec_prefix
="$acl_final_exec_prefix"
14557 exec_prefix
="$acl_save_exec_prefix"
14558 prefix
="$acl_save_prefix"
14560 if test "X$x" = "X-I$additional_includedir"; then
14565 if test -z "$haveit"; then
14566 if test -d "$additional_includedir"; then
14567 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
14573 if test -n "$found_la"; then
14574 save_libdir
="$libdir"
14575 case "$found_la" in
14576 */* |
*\\*) .
"$found_la" ;;
14577 *) .
"./$found_la" ;;
14579 libdir
="$save_libdir"
14580 for dep
in $dependency_libs; do
14583 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
14584 if test "X$additional_libdir" != "X/usr/lib"; then
14586 if test "X$additional_libdir" = "X/usr/local/lib"; then
14587 if test -n "$GCC"; then
14589 linux
*) haveit
=yes;;
14593 if test -z "$haveit"; then
14595 for x
in $LDFLAGS $LIBIPT; do
14597 acl_save_prefix
="$prefix"
14598 prefix
="$acl_final_prefix"
14599 acl_save_exec_prefix
="$exec_prefix"
14600 exec_prefix
="$acl_final_exec_prefix"
14602 exec_prefix
="$acl_save_exec_prefix"
14603 prefix
="$acl_save_prefix"
14605 if test "X$x" = "X-L$additional_libdir"; then
14610 if test -z "$haveit"; then
14611 if test -d "$additional_libdir"; then
14612 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
14616 for x
in $LDFLAGS $LTLIBIPT; do
14618 acl_save_prefix
="$prefix"
14619 prefix
="$acl_final_prefix"
14620 acl_save_exec_prefix
="$exec_prefix"
14621 exec_prefix
="$acl_final_exec_prefix"
14623 exec_prefix
="$acl_save_exec_prefix"
14624 prefix
="$acl_save_prefix"
14626 if test "X$x" = "X-L$additional_libdir"; then
14631 if test -z "$haveit"; then
14632 if test -d "$additional_libdir"; then
14633 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
14640 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
14641 if test "$enable_rpath" != no
; then
14643 for x
in $rpathdirs; do
14644 if test "X$x" = "X$dir"; then
14649 if test -z "$haveit"; then
14650 rpathdirs
="$rpathdirs $dir"
14653 for x
in $ltrpathdirs; do
14654 if test "X$x" = "X$dir"; then
14659 if test -z "$haveit"; then
14660 ltrpathdirs
="$ltrpathdirs $dir"
14665 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14668 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14671 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
14672 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
14678 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
14679 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
14680 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
14682 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
14683 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
14690 if test "X$rpathdirs" != "X"; then
14691 if test -n "$hardcode_libdir_separator"; then
14693 for found_dir
in $rpathdirs; do
14694 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14696 acl_save_libdir
="$libdir"
14698 eval flag
=\"$hardcode_libdir_flag_spec\"
14699 libdir
="$acl_save_libdir"
14700 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
14702 for found_dir
in $rpathdirs; do
14703 acl_save_libdir
="$libdir"
14704 libdir
="$found_dir"
14705 eval flag
=\"$hardcode_libdir_flag_spec\"
14706 libdir
="$acl_save_libdir"
14707 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
14711 if test "X$ltrpathdirs" != "X"; then
14712 for found_dir
in $ltrpathdirs; do
14713 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
14718 ac_save_CPPFLAGS
="$CPPFLAGS"
14720 for element
in $INCIPT; do
14722 for x
in $CPPFLAGS; do
14724 acl_save_prefix
="$prefix"
14725 prefix
="$acl_final_prefix"
14726 acl_save_exec_prefix
="$exec_prefix"
14727 exec_prefix
="$acl_final_exec_prefix"
14729 exec_prefix
="$acl_save_exec_prefix"
14730 prefix
="$acl_save_prefix"
14732 if test "X$x" = "X$element"; then
14737 if test -z "$haveit"; then
14738 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
14744 $as_echo_n "checking for libipt... " >&6; }
14745 if ${ac_cv_libipt+:} false
; then :
14746 $as_echo_n "(cached) " >&6
14749 ac_save_LIBS
="$LIBS"
14750 LIBS
="$LIBS $LIBIPT"
14751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14752 /* end confdefs.h. */
14753 #include "intel-pt.h"
14757 pt_insn_alloc_decoder (0);
14762 if ac_fn_c_try_link
"$LINENO"; then :
14767 rm -f core conftest.err conftest.
$ac_objext \
14768 conftest
$ac_exeext conftest.
$ac_ext
14769 LIBS
="$ac_save_LIBS"
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
14773 $as_echo "$ac_cv_libipt" >&6; }
14774 if test "$ac_cv_libipt" = yes; then
14777 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
14780 $as_echo_n "checking how to link with libipt... " >&6; }
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
14782 $as_echo "$LIBIPT" >&6; }
14785 CPPFLAGS
="$ac_save_CPPFLAGS"
14795 if test "$HAVE_LIBIPT" != yes; then
14796 if test "$with_intel_pt" = yes; then
14797 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
14800 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
14804 LIBS
="$LIBS $LIBIPT"
14805 for ac_func
in pt_insn_event
14807 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
14808 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
14809 cat >>confdefs.h
<<_ACEOF
14810 #define HAVE_PT_INSN_EVENT 1
14816 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
14818 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
14820 cat >>confdefs.h
<<_ACEOF
14821 #define HAVE_STRUCT_PT_INSN_ENABLED 1
14826 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
14828 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
14830 cat >>confdefs.h
<<_ACEOF
14831 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
14841 if test "$ac_cv_header_sys_procfs_h" = yes; then
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
14843 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
14844 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
14845 $as_echo_n "(cached) " >&6
14847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14848 /* end confdefs.h. */
14851 /* Needed for new procfs interface on sparc-solaris. */
14852 #define _STRUCTURED_PROC 1
14853 #include <sys/procfs.h>
14862 if ac_fn_c_try_compile
"$LINENO"; then :
14863 bfd_cv_have_sys_procfs_type_gregset_t
=yes
14865 bfd_cv_have_sys_procfs_type_gregset_t
=no
14868 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14871 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
14873 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
14877 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
14880 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
14881 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
14882 $as_echo_n "(cached) " >&6
14884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14885 /* end confdefs.h. */
14888 /* Needed for new procfs interface on sparc-solaris. */
14889 #define _STRUCTURED_PROC 1
14890 #include <sys/procfs.h>
14899 if ac_fn_c_try_compile
"$LINENO"; then :
14900 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
14902 bfd_cv_have_sys_procfs_type_fpregset_t
=no
14905 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14908 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
14910 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
14914 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
14917 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
14918 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
14919 $as_echo_n "(cached) " >&6
14921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14922 /* end confdefs.h. */
14925 /* Needed for new procfs interface on sparc-solaris. */
14926 #define _STRUCTURED_PROC 1
14927 #include <sys/procfs.h>
14936 if ac_fn_c_try_compile
"$LINENO"; then :
14937 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
14939 bfd_cv_have_sys_procfs_type_prgregset_t
=no
14942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14945 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
14947 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
14951 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
14954 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
14955 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
14956 $as_echo_n "(cached) " >&6
14958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14959 /* end confdefs.h. */
14962 /* Needed for new procfs interface on sparc-solaris. */
14963 #define _STRUCTURED_PROC 1
14964 #include <sys/procfs.h>
14973 if ac_fn_c_try_compile
"$LINENO"; then :
14974 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
14976 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
14979 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14982 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
14984 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
14988 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
14991 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
14992 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
14993 $as_echo_n "(cached) " >&6
14995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14996 /* end confdefs.h. */
14999 /* Needed for new procfs interface on sparc-solaris. */
15000 #define _STRUCTURED_PROC 1
15001 #include <sys/procfs.h>
15010 if ac_fn_c_try_compile
"$LINENO"; then :
15011 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
15013 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
15016 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15019 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
15021 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
15025 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
15028 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
15029 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
15030 $as_echo_n "(cached) " >&6
15032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15033 /* end confdefs.h. */
15036 /* Needed for new procfs interface on sparc-solaris. */
15037 #define _STRUCTURED_PROC 1
15038 #include <sys/procfs.h>
15047 if ac_fn_c_try_compile
"$LINENO"; then :
15048 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
15050 bfd_cv_have_sys_procfs_type_lwpid_t
=no
15053 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15056 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
15058 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
15062 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
15065 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
15066 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
15067 $as_echo_n "(cached) " >&6
15069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15070 /* end confdefs.h. */
15073 /* Needed for new procfs interface on sparc-solaris. */
15074 #define _STRUCTURED_PROC 1
15075 #include <sys/procfs.h>
15084 if ac_fn_c_try_compile
"$LINENO"; then :
15085 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
15087 bfd_cv_have_sys_procfs_type_psaddr_t
=no
15090 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15093 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
15095 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
15099 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
15102 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
15103 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
15104 $as_echo_n "(cached) " >&6
15106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15107 /* end confdefs.h. */
15110 /* Needed for new procfs interface on sparc-solaris. */
15111 #define _STRUCTURED_PROC 1
15112 #include <sys/procfs.h>
15116 elf_fpregset_t avar
15121 if ac_fn_c_try_compile
"$LINENO"; then :
15122 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
15124 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
15127 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15130 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
15132 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
15136 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
15141 # Check the return and argument types of ptrace.
15144 for ac_header
in sys
/ptrace.h ptrace.h
15146 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15147 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15148 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
15149 cat >>confdefs.h
<<_ACEOF
15150 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15158 gdb_ptrace_headers
='
15159 #include <sys/types.h>
15160 #if HAVE_SYS_PTRACE_H
15161 # include <sys/ptrace.h>
15164 # include <unistd.h>
15168 # Check return type. Varargs (used on GNU/Linux) conflict with the
15169 # empty argument list, so check for that explicitly.
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
15171 $as_echo_n "checking return type of ptrace... " >&6; }
15172 if ${gdb_cv_func_ptrace_ret+:} false
; then :
15173 $as_echo_n "(cached) " >&6
15175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15176 /* end confdefs.h. */
15177 $gdb_ptrace_headers
15181 extern long ptrace (enum __ptrace_request, ...);
15186 if ac_fn_c_try_compile
"$LINENO"; then :
15187 gdb_cv_func_ptrace_ret
='long'
15189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15190 /* end confdefs.h. */
15191 $gdb_ptrace_headers
15195 extern int ptrace ();
15200 if ac_fn_c_try_compile
"$LINENO"; then :
15201 gdb_cv_func_ptrace_ret
='int'
15203 gdb_cv_func_ptrace_ret
='long'
15205 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15207 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
15210 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
15212 cat >>confdefs.h
<<_ACEOF
15213 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
15216 # Check argument types.
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
15218 $as_echo_n "checking types of arguments for ptrace... " >&6; }
15219 if ${gdb_cv_func_ptrace_args+:} false
; then :
15220 $as_echo_n "(cached) " >&6
15223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15224 /* end confdefs.h. */
15225 $gdb_ptrace_headers
15229 extern long ptrace (enum __ptrace_request, ...);
15234 if ac_fn_c_try_compile
"$LINENO"; then :
15235 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
15238 for gdb_arg1
in 'int' 'long'; do
15239 for gdb_arg2
in 'pid_t' 'int' 'long'; do
15240 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
15241 for gdb_arg4
in 'int' 'long' 'void *'; do
15242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15243 /* end confdefs.h. */
15244 $gdb_ptrace_headers
15249 extern $gdb_cv_func_ptrace_ret
15250 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
15256 if ac_fn_c_try_compile
"$LINENO"; then :
15257 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
15260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15261 for gdb_arg5
in 'int *' 'int' 'long'; do
15262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15263 /* end confdefs.h. */
15264 $gdb_ptrace_headers
15269 extern $gdb_cv_func_ptrace_ret
15270 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
15276 if ac_fn_c_try_compile
"$LINENO"; then :
15278 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
15281 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15287 # Provide a safe default value.
15288 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
15291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
15294 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
15295 ac_save_IFS
=$IFS; IFS
=','
15296 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
15300 cat >>confdefs.h
<<_ACEOF
15301 #define PTRACE_TYPE_ARG1 $1
15305 cat >>confdefs.h
<<_ACEOF
15306 #define PTRACE_TYPE_ARG3 $3
15310 cat >>confdefs.h
<<_ACEOF
15311 #define PTRACE_TYPE_ARG4 $4
15314 if test -n "$5"; then
15316 cat >>confdefs.h
<<_ACEOF
15317 #define PTRACE_TYPE_ARG5 $5
15323 if test "$cross_compiling" = no
; then
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
15325 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
15326 if ${ac_cv_func_setpgrp_void+:} false
; then :
15327 $as_echo_n "(cached) " >&6
15329 if test "$cross_compiling" = yes; then :
15330 as_fn_error $?
"cannot check setpgrp when cross compiling" "$LINENO" 5
15332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15333 /* end confdefs.h. */
15334 $ac_includes_default
15338 /* If this system has a BSD-style setpgrp which takes arguments,
15339 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
15340 exit successfully. */
15341 return setpgrp (1,1) != -1;
15346 if ac_fn_c_try_run
"$LINENO"; then :
15347 ac_cv_func_setpgrp_void
=no
15349 ac_cv_func_setpgrp_void
=yes
15351 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15352 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
15357 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
15358 if test $ac_cv_func_setpgrp_void = yes; then
15360 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
15366 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
15367 if ${ac_cv_func_setpgrp_void+:} false
; then :
15368 $as_echo_n "(cached) " >&6
15370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15371 /* end confdefs.h. */
15373 #include <unistd.h>
15379 if (setpgrp(1,1) == -1)
15388 if ac_fn_c_try_compile
"$LINENO"; then :
15389 ac_cv_func_setpgrp_void
=no
15391 ac_cv_func_setpgrp_void
=yes
15393 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
15396 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
15397 if test "$ac_cv_func_setpgrp_void" = yes; then
15398 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
15403 # Assume we'll default to using the included libiberty regex.
15404 gdb_use_included_regex
=yes
15406 # However, if the system regex is GNU regex, then default to *not*
15407 # using the included regex.
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
15409 $as_echo_n "checking for GNU regex... " >&6; }
15410 if ${gdb_cv_have_gnu_regex+:} false
; then :
15411 $as_echo_n "(cached) " >&6
15413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15414 /* end confdefs.h. */
15415 #include <gnu-versions.h>
15419 #define REGEX_INTERFACE_VERSION 1
15420 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
15421 # error "Version mismatch"
15427 if ac_fn_c_try_compile
"$LINENO"; then :
15428 gdb_cv_have_gnu_regex
=yes
15430 gdb_cv_have_gnu_regex
=no
15432 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
15435 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
15436 if test "$gdb_cv_have_gnu_regex" = yes; then
15437 gdb_use_included_regex
=no
15441 # Check whether --with-included-regex was given.
15442 if test "${with_included_regex+set}" = set; then :
15443 withval
=$with_included_regex; gdb_with_regex
=$withval
15445 gdb_with_regex
=$gdb_use_included_regex
15448 if test "$gdb_with_regex" = yes; then
15450 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
15454 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
15455 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
15456 #include <sys/proc.h>
15459 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes
; then :
15461 cat >>confdefs.h
<<_ACEOF
15462 #define HAVE_STRUCT_THREAD_TD_PCB 1
15469 # See if <sys/lwp.h> defines `struct lwp`.
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
15471 $as_echo_n "checking for struct lwp... " >&6; }
15472 if ${gdb_cv_struct_lwp+:} false
; then :
15473 $as_echo_n "(cached) " >&6
15475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15476 /* end confdefs.h. */
15477 #include <sys/param.h>
15479 #include <sys/lwp.h>
15488 if ac_fn_c_try_compile
"$LINENO"; then :
15489 gdb_cv_struct_lwp
=yes
15491 gdb_cv_struct_lwp
=no
15493 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
15496 $as_echo "$gdb_cv_struct_lwp" >&6; }
15497 if test "$gdb_cv_struct_lwp" = yes; then
15499 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
15503 # See if <machine/reg.h> degines `struct reg'.
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
15505 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
15506 if ${gdb_cv_struct_reg+:} false
; then :
15507 $as_echo_n "(cached) " >&6
15509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15510 /* end confdefs.h. */
15511 #include <sys/types.h>
15512 #include <machine/reg.h>
15521 if ac_fn_c_try_compile
"$LINENO"; then :
15522 gdb_cv_struct_reg
=yes
15524 gdb_cv_struct_reg
=no
15526 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
15529 $as_echo "$gdb_cv_struct_reg" >&6; }
15530 if test "$gdb_cv_struct_reg" = yes; then
15532 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
15536 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
15537 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
15538 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
15539 #include <machine/reg.h>
15541 if test "x$ac_cv_member_struct_reg_r_fs" = xyes
; then :
15543 cat >>confdefs.h
<<_ACEOF
15544 #define HAVE_STRUCT_REG_R_FS 1
15549 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
15550 #include <machine/reg.h>
15552 if test "x$ac_cv_member_struct_reg_r_gs" = xyes
; then :
15554 cat >>confdefs.h
<<_ACEOF
15555 #define HAVE_STRUCT_REG_R_GS 1
15562 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
15563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
15564 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
15565 if ${gdb_cv_have_ptrace_getregs+:} false
; then :
15566 $as_echo_n "(cached) " >&6
15568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15569 /* end confdefs.h. */
15570 #include <sys/ptrace.h>
15579 if ac_fn_c_try_compile
"$LINENO"; then :
15580 gdb_cv_have_ptrace_getregs
=yes
15582 gdb_cv_have_ptrace_getregs
=no
15584 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
15588 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
15589 if test "$gdb_cv_have_ptrace_getregs" = yes; then
15591 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
15595 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
15597 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
15598 if ${gdb_cv_have_ptrace_getfpxregs+:} false
; then :
15599 $as_echo_n "(cached) " >&6
15601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15602 /* end confdefs.h. */
15603 #include <sys/ptrace.h>
15612 if ac_fn_c_try_compile
"$LINENO"; then :
15613 gdb_cv_have_ptrace_getfpxregs
=yes
15615 gdb_cv_have_ptrace_getfpxregs
=no
15617 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
15621 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
15622 if test "$gdb_cv_have_ptrace_getfpxregs" = yes; then
15624 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
15628 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
15630 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
15631 if ${gdb_cv_have_pt_getdbregs+:} false
; then :
15632 $as_echo_n "(cached) " >&6
15634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15635 /* end confdefs.h. */
15636 #include <sys/types.h>
15637 #include <sys/ptrace.h>
15646 if ac_fn_c_try_compile
"$LINENO"; then :
15647 gdb_cv_have_pt_getdbregs
=yes
15649 gdb_cv_have_pt_getdbregs
=no
15651 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
15655 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
15656 if test "$gdb_cv_have_pt_getdbregs" = yes; then
15658 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
15662 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
15664 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
15665 if ${gdb_cv_have_pt_getxmmregs+:} false
; then :
15666 $as_echo_n "(cached) " >&6
15668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15669 /* end confdefs.h. */
15670 #include <sys/types.h>
15671 #include <sys/ptrace.h>
15680 if ac_fn_c_try_compile
"$LINENO"; then :
15681 gdb_cv_have_pt_getxmmregs
=yes
15683 gdb_cv_have_pt_getxmmregs
=no
15685 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
15689 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
15690 if test "$gdb_cv_have_pt_getxmmregs" = yes; then
15692 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
15696 # See if <sys/ptrace.h> supports LWP names on FreeBSD
15697 # Older FreeBSD versions don't have the pl_tdname member of
15698 # `struct ptrace_lwpinfo'.
15699 ac_fn_c_check_member
"$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
15701 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes
; then :
15703 cat >>confdefs.h
<<_ACEOF
15704 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
15711 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
15712 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
15714 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>
15716 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes
; then :
15718 cat >>confdefs.h
<<_ACEOF
15719 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
15726 # Check if the compiler supports the `long long' type.
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
15729 $as_echo_n "checking for long long support in compiler... " >&6; }
15730 if ${gdb_cv_c_long_long+:} false
; then :
15731 $as_echo_n "(cached) " >&6
15733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15734 /* end confdefs.h. */
15735 extern long long foo;
15739 switch (foo & 2) { case 0: return 1; }
15744 if ac_fn_c_try_compile
"$LINENO"; then :
15745 gdb_cv_c_long_long
=yes
15747 gdb_cv_c_long_long
=no
15749 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
15752 $as_echo "$gdb_cv_c_long_long" >&6; }
15753 if test "$gdb_cv_c_long_long" != yes; then
15754 # libdecnumber requires long long.
15755 as_fn_error $?
"Compiler must support long long for GDB." "$LINENO" 5
15758 # Check if the compiler and runtime support printing long longs.
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
15761 $as_echo_n "checking for long long support in printf... " >&6; }
15762 if ${gdb_cv_printf_has_long_long+:} false
; then :
15763 $as_echo_n "(cached) " >&6
15765 if test "$cross_compiling" = yes; then :
15766 gdb_cv_printf_has_long_long
=no
15768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15769 /* end confdefs.h. */
15770 $ac_includes_default
15776 l = (l << 16) + 0x0123;
15777 l = (l << 16) + 0x4567;
15778 l = (l << 16) + 0x89ab;
15779 l = (l << 16) + 0xcdef;
15780 sprintf (buf, "0x%016llx", l);
15781 return (strcmp ("0x0123456789abcdef", buf));
15786 if ac_fn_c_try_run
"$LINENO"; then :
15787 gdb_cv_printf_has_long_long
=yes
15789 gdb_cv_printf_has_long_long
=no
15791 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15792 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
15797 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
15798 if test "$gdb_cv_printf_has_long_long" = yes; then
15800 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
15804 # Check if the compiler and runtime support printing decfloats.
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
15807 $as_echo_n "checking for decfloat support in printf... " >&6; }
15808 if ${gdb_cv_printf_has_decfloat+:} false
; then :
15809 $as_echo_n "(cached) " >&6
15811 if test "$cross_compiling" = yes; then :
15812 gdb_cv_printf_has_decfloat
=no
15814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15815 /* end confdefs.h. */
15816 $ac_includes_default
15821 _Decimal32 d32 = 1.2345df;
15822 _Decimal64 d64 = 1.2345dd;
15823 _Decimal128 d128 = 1.2345dl;
15824 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
15825 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
15830 if ac_fn_c_try_run
"$LINENO"; then :
15831 gdb_cv_printf_has_decfloat
=yes
15833 gdb_cv_printf_has_decfloat
=no
15835 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15836 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
15841 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
15842 if test "$gdb_cv_printf_has_decfloat" = yes; then
15844 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
15848 # Check if the compiler supports the `long double' type. We can't use
15849 # AC_C_LONG_DOUBLE because that one does additional checks on the
15850 # constants defined in <float.h> that fail on some systems,
15851 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
15854 $as_echo_n "checking for long double support in compiler... " >&6; }
15855 if ${gdb_cv_c_long_double+:} false
; then :
15856 $as_echo_n "(cached) " >&6
15858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15859 /* end confdefs.h. */
15862 if ac_fn_c_try_compile
"$LINENO"; then :
15863 gdb_cv_c_long_double
=yes
15865 gdb_cv_c_long_double
=no
15867 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
15870 $as_echo "$gdb_cv_c_long_double" >&6; }
15871 if test "$gdb_cv_c_long_double" = yes; then
15873 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
15877 # Check if the compiler and runtime support printing long doubles.
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
15880 $as_echo_n "checking for long double support in printf... " >&6; }
15881 if ${gdb_cv_printf_has_long_double+:} false
; then :
15882 $as_echo_n "(cached) " >&6
15884 if test "$cross_compiling" = yes; then :
15885 gdb_cv_printf_has_long_double
=no
15887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15888 /* end confdefs.h. */
15889 $ac_includes_default
15894 long double f = 3.141592653;
15895 sprintf (buf, "%Lg", f);
15896 return (strncmp ("3.14159", buf, 7));
15901 if ac_fn_c_try_run
"$LINENO"; then :
15902 gdb_cv_printf_has_long_double
=yes
15904 gdb_cv_printf_has_long_double
=no
15906 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15907 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
15912 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
15913 if test "$gdb_cv_printf_has_long_double" = yes; then
15915 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
15919 # Check if the compiler and runtime support scanning long doubles.
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
15922 $as_echo_n "checking for long double support in scanf... " >&6; }
15923 if ${gdb_cv_scanf_has_long_double+:} false
; then :
15924 $as_echo_n "(cached) " >&6
15926 if test "$cross_compiling" = yes; then :
15927 gdb_cv_scanf_has_long_double
=no
15929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15930 /* end confdefs.h. */
15935 char *buf = "3.141592653";
15937 sscanf (buf, "%Lg", &f);
15938 return !(f > 3.14159 && f < 3.14160);
15943 if ac_fn_c_try_run
"$LINENO"; then :
15944 gdb_cv_scanf_has_long_double
=yes
15946 gdb_cv_scanf_has_long_double
=no
15948 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15949 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
15954 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
15955 if test "$gdb_cv_scanf_has_long_double" = yes; then
15957 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
15964 $as_echo_n "checking for -bbigtoc option... " >&6; }
15965 if ${gdb_cv_bigtoc+:} false
; then :
15966 $as_echo_n "(cached) " >&6
15969 SAVE_LDFLAGS
=$LDFLAGS
15972 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
15973 *) gdb_cv_bigtoc
=-bbigtoc ;;
15976 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
15977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15978 /* end confdefs.h. */
15988 if ac_fn_c_try_link
"$LINENO"; then :
15993 rm -f core conftest.err conftest.
$ac_objext \
15994 conftest
$ac_exeext conftest.
$ac_ext
15995 LDFLAGS
="${SAVE_LDFLAGS}"
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
15999 $as_echo "$gdb_cv_bigtoc" >&6; }
16000 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
16005 $as_echo_n "checking for the dynamic export flag... " >&6; }
16007 if test "${gdb_native}" = yes; then
16008 # The dynamically loaded libthread_db needs access to symbols in the gdb
16009 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
16010 # may not be supported there.
16011 old_LDFLAGS
="$LDFLAGS"
16012 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
16013 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
16014 LDFLAGS
="$LDFLAGS $RDYNAMIC"
16015 if test "${have_libpython}" = no
; then
16016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16017 /* end confdefs.h. */
16027 if ac_fn_c_try_link
"$LINENO"; then :
16030 rm -f core conftest.err conftest.
$ac_objext \
16031 conftest
$ac_exeext conftest.
$ac_ext
16033 # Workaround http://bugs.python.org/issue4434 where static
16034 # libpythonX.Y.a would get its symbols required for
16035 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
16036 # Problem does not happen for the recommended libpythonX.Y.so linkage.
16038 # Note the workaround for Python
16039 # http://bugs.python.org/issue10112 earlier has removed
16040 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
16041 # here too, as otherwise it'd make this -Wl,--dynamic-list test
16043 old_CFLAGS
="$CFLAGS"
16044 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
16046 LIBS
="$LIBS $PYTHON_LIBS"
16047 old_CPPFLAGS
="$CPPFLAGS"
16048 CPPFLAGS
="$CPPFLAGS $PYTHON_CPPFLAGS"
16049 if test "$cross_compiling" = yes; then :
16052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16053 /* end confdefs.h. */
16054 #include "Python.h"
16060 err = PyRun_SimpleString ("import itertools\n");
16062 return err == 0 ? 0 : 1;
16067 if ac_fn_c_try_run
"$LINENO"; then :
16070 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16071 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16075 CFLAGS
="$old_CFLAGS"
16076 CPPFLAGS
="$old_CPPFLAGS"
16078 LDFLAGS
="$old_LDFLAGS"
16080 if $dynamic_list; then
16081 found
="-Wl,--dynamic-list"
16082 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
16085 RDYNAMIC
="-rdynamic"
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
16089 $as_echo "$found" >&6; }
16092 if test "${build}" = "${host}" -a "${host}" = "${target}" ; then
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
16096 $as_echo_n "checking for AiX thread debugging library... " >&6; }
16097 if ${gdb_cv_have_aix_thread_debug+:} false
; then :
16098 $as_echo_n "(cached) " >&6
16100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16101 /* end confdefs.h. */
16102 #include <sys/pthdebug.h>
16106 #ifndef PTHDB_VERSION_3
16113 if ac_fn_c_try_compile
"$LINENO"; then :
16114 gdb_cv_have_aix_thread_debug
=yes
16116 gdb_cv_have_aix_thread_debug
=no
16118 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
16122 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
16123 if test "$gdb_cv_have_aix_thread_debug" = yes; then
16124 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
16125 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
16126 LIBS
="$LIBS -lpthdebug"
16128 # Older versions of AIX do not provide the declaration for
16129 # the getthrds function (it appears that it was introduced
16131 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
16133 if test "x$ac_cv_have_decl_getthrds" = xyes
; then :
16139 cat >>confdefs.h
<<_ACEOF
16140 #define HAVE_DECL_GETTHRDS $ac_have_decl
16149 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
16151 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
16152 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false
; then :
16153 $as_echo_n "(cached) " >&6
16155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16156 /* end confdefs.h. */
16157 #include <thread_db.h>
16161 int i = TD_NOTALLOC;
16166 if ac_fn_c_try_compile
"$LINENO"; then :
16167 gdb_cv_thread_db_h_has_td_notalloc
=yes
16169 gdb_cv_thread_db_h_has_td_notalloc
=no
16172 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
16176 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
16178 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
16179 if ${gdb_cv_thread_db_h_has_td_version+:} false
; then :
16180 $as_echo_n "(cached) " >&6
16182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16183 /* end confdefs.h. */
16184 #include <thread_db.h>
16188 int i = TD_VERSION;
16193 if ac_fn_c_try_compile
"$LINENO"; then :
16194 gdb_cv_thread_db_h_has_td_version
=yes
16196 gdb_cv_thread_db_h_has_td_version
=no
16199 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
16203 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
16205 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
16206 if ${gdb_cv_thread_db_h_has_td_notls+:} false
; then :
16207 $as_echo_n "(cached) " >&6
16209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16210 /* end confdefs.h. */
16211 #include <thread_db.h>
16220 if ac_fn_c_try_compile
"$LINENO"; then :
16221 gdb_cv_thread_db_h_has_td_notls
=yes
16223 gdb_cv_thread_db_h_has_td_notls
=no
16226 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
16230 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
16232 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
16234 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
16237 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
16239 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
16242 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
16244 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
16257 cat >>confdefs.h
<<_ACEOF
16258 #define GDBINIT "$gdbinit"
16263 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
16264 # except that the argument to --with-sysroot is optional.
16265 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
16266 if test "x$with_sysroot" = xyes
; then
16267 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
16270 # Check whether --with-sysroot was given.
16271 if test "${with_sysroot+set}" = set; then :
16272 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
16274 TARGET_SYSTEM_ROOT
=
16278 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16279 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16280 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
16281 ac_define_dir
=`eval echo $ac_define_dir`
16283 cat >>confdefs.h
<<_ACEOF
16284 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
16290 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16291 if test "x$prefix" = xNONE
; then
16292 test_prefix
=/usr
/local
16294 test_prefix
=$prefix
16297 test_prefix
=$exec_prefix
16300 case ${ac_define_dir} in
16301 "${test_prefix}"|
"${test_prefix}/"*|\
16302 '${exec_prefix}'|
'${exec_prefix}/'*)
16307 cat >>confdefs.h
<<_ACEOF
16308 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
16315 # Check whether --with-system-gdbinit was given.
16316 if test "${with_system_gdbinit+set}" = set; then :
16317 withval
=$with_system_gdbinit;
16318 SYSTEM_GDBINIT
=$withval
16324 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16325 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16326 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
16327 ac_define_dir
=`eval echo $ac_define_dir`
16329 cat >>confdefs.h
<<_ACEOF
16330 #define SYSTEM_GDBINIT "$ac_define_dir"
16336 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16337 if test "x$prefix" = xNONE
; then
16338 test_prefix
=/usr
/local
16340 test_prefix
=$prefix
16343 test_prefix
=$exec_prefix
16346 case ${ac_define_dir} in
16347 "${test_prefix}"|
"${test_prefix}/"*|\
16348 '${exec_prefix}'|
'${exec_prefix}/'*)
16353 cat >>confdefs.h
<<_ACEOF
16354 #define SYSTEM_GDBINIT_RELOCATABLE $value
16361 # Check whether --with-system-gdbinit-dir was given.
16362 if test "${with_system_gdbinit_dir+set}" = set; then :
16363 withval
=$with_system_gdbinit_dir;
16364 SYSTEM_GDBINIT_DIR
=$withval
16366 SYSTEM_GDBINIT_DIR
=
16370 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16371 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16372 ac_define_dir
=`eval echo $SYSTEM_GDBINIT_DIR`
16373 ac_define_dir
=`eval echo $ac_define_dir`
16375 cat >>confdefs.h
<<_ACEOF
16376 #define SYSTEM_GDBINIT_DIR "$ac_define_dir"
16382 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16383 if test "x$prefix" = xNONE
; then
16384 test_prefix
=/usr
/local
16386 test_prefix
=$prefix
16389 test_prefix
=$exec_prefix
16392 case ${ac_define_dir} in
16393 "${test_prefix}"|
"${test_prefix}/"*|\
16394 '${exec_prefix}'|
'${exec_prefix}/'*)
16399 cat >>confdefs.h
<<_ACEOF
16400 #define SYSTEM_GDBINIT_DIR_RELOCATABLE $value
16407 # Check whether --enable-werror was given.
16408 if test "${enable_werror+set}" = set; then :
16409 enableval
=$enable_werror; case "${enableval}" in
16410 yes | y
) ERROR_ON_WARNING
="yes" ;;
16411 no | n
) ERROR_ON_WARNING
="no" ;;
16412 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16417 # Enable -Werror by default when using gcc. Turn it off for releases.
16418 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
16419 ERROR_ON_WARNING
=yes
16423 if test "${ERROR_ON_WARNING}" = yes ; then
16424 WERROR_CFLAGS
="-Werror"
16427 # The options we'll try to enable.
16428 build_warnings
="-Wall -Wpointer-arith \
16429 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
16430 -Wno-switch -Wno-char-subscripts \
16431 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
16432 -Wno-sign-compare -Wno-error=maybe-uninitialized \
16433 -Wno-mismatched-tags \
16434 -Wno-error=deprecated-register \
16435 -Wsuggest-override \
16436 -Wimplicit-fallthrough=3 \
16437 -Wduplicated-cond \
16439 -Wdeprecated-copy \
16440 -Wdeprecated-copy-dtor \
16442 -Wmissing-declarations \
16443 -Wmissing-prototypes \
16444 -Wstrict-null-sentinel \
16449 # Enable -Wno-format by default when using gcc on mingw since many
16450 # GCC versions complain about %I64.
16451 build_warnings
="$build_warnings -Wno-format" ;;
16453 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
16454 # doesn't understand.
16455 build_warnings
="$build_warnings -Wno-unknown-pragmas"
16456 # Solaris 11 <unistd.h> marks vfork deprecated.
16457 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
16459 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
16460 # but there's a special case for this below.
16461 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
16464 # Check whether --enable-build-warnings was given.
16465 if test "${enable_build_warnings+set}" = set; then :
16466 enableval
=$enable_build_warnings; case "${enableval}" in
16468 no
) build_warnings
="-w";;
16469 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16470 build_warnings
="${build_warnings} ${t}";;
16471 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16472 build_warnings
="${t} ${build_warnings}";;
16473 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16475 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
16476 echo "Setting compiler warning flags = $build_warnings" 6>&1
16479 # Check whether --enable-gdb-build-warnings was given.
16480 if test "${enable_gdb_build_warnings+set}" = set; then :
16481 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
16483 no
) build_warnings
="-w";;
16484 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16485 build_warnings
="${build_warnings} ${t}";;
16486 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16487 build_warnings
="${t} ${build_warnings}";;
16488 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16490 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
16491 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
16495 # The set of warnings supported by a C++ compiler is not the same as
16496 # of the C compiler.
16498 ac_cpp
='$CXXCPP $CPPFLAGS'
16499 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16500 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16501 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
16505 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
16508 $as_echo_n "checking compiler warning flags... " >&6; }
16509 # Separate out the -Werror flag as some files just cannot be
16510 # compiled with it enabled.
16511 for w
in ${build_warnings}; do
16512 # GCC does not complain about -Wno-unknown-warning. Invert
16513 # and test -Wunknown-warning instead.
16516 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
16517 -Wformat-nonliteral)
16518 # gcc requires -Wformat before -Wformat-nonliteral
16519 # will work, so stick them together.
16528 -Werr*) WERROR_CFLAGS
=-Werror ;;
16530 # Check whether GCC accepts it.
16531 saved_CFLAGS
="$CFLAGS"
16532 CFLAGS
="$CFLAGS -Werror $wtest"
16533 saved_CXXFLAGS
="$CXXFLAGS"
16534 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
16535 if test "x$w" = "x-Wunused-variable"; then
16536 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
16537 # fixed in GCC 4.9. This test is derived from the gdb
16538 # source code that triggered this bug in GCC.
16539 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16540 /* end confdefs.h. */
16541 struct scoped_restore_base {};
16542 struct scoped_restore_tmpl : public scoped_restore_base {
16543 ~scoped_restore_tmpl() {}
16548 const scoped_restore_base &b = scoped_restore_tmpl();
16553 if ac_fn_cxx_try_compile
"$LINENO"; then :
16554 WARN_CFLAGS
="${WARN_CFLAGS} $w"
16556 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16559 /* end confdefs.h. */
16569 if ac_fn_cxx_try_compile
"$LINENO"; then :
16570 WARN_CFLAGS
="${WARN_CFLAGS} $w"
16572 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16574 CFLAGS
="$saved_CFLAGS"
16575 CXXFLAGS
="$saved_CXXFLAGS"
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
16579 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
16585 ac_cpp='$CPP $CPPFLAGS'
16586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16592 # Check whether --enable-ubsan was given.
16593 if test "${enable_ubsan+set}" = set; then :
16594 enableval=$enable_ubsan;
16599 if test "x
$enable_ubsan" = xauto; then
16600 if $development; then
16605 ac_cpp='$CXXCPP $CPPFLAGS'
16606 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16607 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16608 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16610 if test "x
$enable_ubsan" = xyes; then
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
-fsanitize=undefined is accepted
" >&5
16612 $as_echo_n "checking whether
-fsanitize=undefined is accepted...
" >&6; }
16613 saved_CXXFLAGS="$CXXFLAGS"
16614 CXXFLAGS="$CXXFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
16615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16616 /* end confdefs.h. */
16626 if ac_fn_cxx_try_link "$LINENO"; then :
16631 rm -f core conftest.err conftest.$ac_objext \
16632 conftest$ac_exeext conftest.$ac_ext
16633 CXXFLAGS="$saved_CXXFLAGS"
16634 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $enable_ubsan" >&5
16635 $as_echo "$enable_ubsan" >&6; }
16636 if test "x
$enable_ubsan" = xyes; then
16637 WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
16638 CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined
"
16642 ac_cpp='$CPP $CPPFLAGS'
16643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16649 # In the Cygwin environment, we need some additional flags.
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
16651 $as_echo_n "checking
for cygwin...
" >&6; }
16652 if ${gdb_cv_os_cygwin+:} false; then :
16653 $as_echo_n "(cached
) " >&6
16655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16656 /* end confdefs.h. */
16658 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
16662 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
16663 $EGREP "^lose$
" >/dev/null 2>&1; then :
16664 gdb_cv_os_cygwin=yes
16666 gdb_cv_os_cygwin=no
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
16672 $as_echo "$gdb_cv_os_cygwin" >&6; }
16675 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
16677 *go32* ) SER_HARDWIRE=ser-go32.o ;;
16678 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
16679 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
16680 *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o
" ;;
16684 # libreadline needs libuser32.a in a cygwin environment
16686 if test x"$gdb_cv_os_cygwin" = xyes; then
16687 WIN32LIBS="-luser32"
16688 case "${target}" in
16689 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
16694 # The ser-tcp.c module requires sockets.
16695 # Note that WIN32APILIBS is set by GDB_AC_COMMON.
16696 WIN32LIBS="$WIN32LIBS $WIN32APILIBS"
16698 # Add ELF support to GDB, but only if BFD includes ELF support.
16701 OLD_LDFLAGS=$LDFLAGS
16703 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
16704 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
16705 # always want our bfd.
16706 CFLAGS="-I${srcdir}/..
/include
-I..
/bfd
-I${srcdir}/..
/bfd
$CFLAGS"
16707 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
16708 LDFLAGS="-L..
/bfd
-L..
/libiberty
$ZLIBDIR $LDFLAGS"
16709 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
16710 LIBS="-lbfd -liberty -lz $intl $LIBS"
16711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ELF support
in BFD
" >&5
16712 $as_echo_n "checking
for ELF support
in BFD...
" >&6; }
16713 if ${gdb_cv_var_elf+:} false; then :
16714 $as_echo_n "(cached
) " >&6
16716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16717 /* end confdefs.h. */
16718 #include <stdlib.h>
16720 #include "elf-bfd.h
"
16725 return bfd_get_elf_phdr_upper_bound (NULL);
16730 if ac_fn_c_try_link "$LINENO"; then :
16735 rm -f core conftest.err conftest.$ac_objext \
16736 conftest$ac_exeext conftest.$ac_ext
16738 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_var_elf" >&5
16739 $as_echo "$gdb_cv_var_elf" >&6; }
16741 LDFLAGS=$OLD_LDFLAGS
16743 if test "$gdb_cv_var_elf" = yes; then
16744 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o
"
16746 $as_echo "#define HAVE_ELF 1" >>confdefs.h
16748 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
16749 if test "$plugins" = "yes"; then
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16751 $as_echo_n "checking for library containing dlopen... " >&6; }
16752 if ${ac_cv_search_dlopen+:} false
; then :
16753 $as_echo_n "(cached) " >&6
16755 ac_func_search_save_LIBS
=$LIBS
16756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16757 /* end confdefs.h. */
16759 /* Override any GCC internal prototype to avoid an error.
16760 Use char because int might match the return type of a GCC
16761 builtin and then its argument prototype would still apply. */
16774 for ac_lib
in '' dl
; do
16775 if test -z "$ac_lib"; then
16776 ac_res
="none required"
16779 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
16781 if ac_fn_c_try_link
"$LINENO"; then :
16782 ac_cv_search_dlopen
=$ac_res
16784 rm -f core conftest.err conftest.
$ac_objext \
16786 if ${ac_cv_search_dlopen+:} false
; then :
16790 if ${ac_cv_search_dlopen+:} false
; then :
16793 ac_cv_search_dlopen
=no
16795 rm conftest.
$ac_ext
16796 LIBS
=$ac_func_search_save_LIBS
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16799 $as_echo "$ac_cv_search_dlopen" >&6; }
16800 ac_res
=$ac_cv_search_dlopen
16801 if test "$ac_res" != no
; then :
16802 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
16809 # Add macho support to GDB, but only if BFD includes it.
16812 OLD_LDFLAGS
=$LDFLAGS
16814 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
16815 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
16816 # always want our bfd.
16817 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
16818 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
16819 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
16820 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
16821 LIBS
="-lbfd -liberty -lz $intl $LIBS"
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
16823 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
16824 if ${gdb_cv_var_macho+:} false
; then :
16825 $as_echo_n "(cached) " >&6
16827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16828 /* end confdefs.h. */
16829 #include <stdlib.h>
16831 #include "mach-o.h"
16836 return bfd_mach_o_lookup_command (NULL, 0, NULL);
16841 if ac_fn_c_try_link
"$LINENO"; then :
16842 gdb_cv_var_macho
=yes
16844 gdb_cv_var_macho
=no
16846 rm -f core conftest.err conftest.
$ac_objext \
16847 conftest
$ac_exeext conftest.
$ac_ext
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
16850 $as_echo "$gdb_cv_var_macho" >&6; }
16852 LDFLAGS
=$OLD_LDFLAGS
16854 if test "$gdb_cv_var_macho" = yes; then
16855 CONFIG_OBS
="$CONFIG_OBS machoread.o"
16858 # Add any host-specific objects to GDB.
16859 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
16861 # If building on ELF, look for lzma support for embedded compressed debug info.
16862 if test "$gdb_cv_var_elf" = yes; then
16864 # Check whether --with-lzma was given.
16865 if test "${with_lzma+set}" = set; then :
16866 withval
=$with_lzma;
16871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
16872 $as_echo_n "checking whether to use lzma... " >&6; }
16873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
16874 $as_echo "$with_lzma" >&6; }
16876 if test "${with_lzma}" != no
; then
16887 acl_save_prefix
="$prefix"
16888 prefix
="$acl_final_prefix"
16889 acl_save_exec_prefix
="$exec_prefix"
16890 exec_prefix
="$acl_final_exec_prefix"
16892 eval additional_includedir
=\"$includedir\"
16893 eval additional_libdir
=\"$libdir\"
16895 exec_prefix
="$acl_save_exec_prefix"
16896 prefix
="$acl_save_prefix"
16899 # Check whether --with-liblzma-prefix was given.
16900 if test "${with_liblzma_prefix+set}" = set; then :
16901 withval
=$with_liblzma_prefix;
16902 if test "X$withval" = "Xno"; then
16905 if test "X$withval" = "X"; then
16907 acl_save_prefix
="$prefix"
16908 prefix
="$acl_final_prefix"
16909 acl_save_exec_prefix
="$exec_prefix"
16910 exec_prefix
="$acl_final_exec_prefix"
16912 eval additional_includedir
=\"$includedir\"
16913 eval additional_libdir
=\"$libdir\"
16915 exec_prefix
="$acl_save_exec_prefix"
16916 prefix
="$acl_save_prefix"
16919 additional_includedir
="$withval/include"
16920 additional_libdir
="$withval/lib"
16927 # Check whether --with-liblzma-type was given.
16928 if test "${with_liblzma_type+set}" = set; then :
16929 withval
=$with_liblzma_type; with_liblzma_type
=$withval
16931 with_liblzma_type
=auto
16934 lib_type
=`eval echo \$with_liblzma_type`
16941 names_already_handled
=
16942 names_next_round
='lzma '
16943 while test -n "$names_next_round"; do
16944 names_this_round
="$names_next_round"
16946 for name
in $names_this_round; do
16948 for n
in $names_already_handled; do
16949 if test "$n" = "$name"; then
16950 already_handled
=yes
16954 if test -z "$already_handled"; then
16955 names_already_handled
="$names_already_handled $name"
16956 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16957 eval value
=\"\
$HAVE_LIB$uppername\"
16958 if test -n "$value"; then
16959 if test "$value" = yes; then
16960 eval value
=\"\
$LIB$uppername\"
16961 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
16962 eval value
=\"\
$LTLIB$uppername\"
16963 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
16972 if test $use_additional = yes; then
16973 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
16974 found_dir
="$additional_libdir"
16975 found_so
="$additional_libdir/lib$name.$shlibext"
16976 if test -f "$additional_libdir/lib$name.la"; then
16977 found_la
="$additional_libdir/lib$name.la"
16979 elif test x
$lib_type != xshared
; then
16980 if test -f "$additional_libdir/lib$name.$libext"; then
16981 found_dir
="$additional_libdir"
16982 found_a
="$additional_libdir/lib$name.$libext"
16983 if test -f "$additional_libdir/lib$name.la"; then
16984 found_la
="$additional_libdir/lib$name.la"
16989 if test "X$found_dir" = "X"; then
16990 for x
in $LDFLAGS $LTLIBLZMA; do
16992 acl_save_prefix
="$prefix"
16993 prefix
="$acl_final_prefix"
16994 acl_save_exec_prefix
="$exec_prefix"
16995 exec_prefix
="$acl_final_exec_prefix"
16997 exec_prefix
="$acl_save_exec_prefix"
16998 prefix
="$acl_save_prefix"
17002 dir
=`echo "X$x" | sed -e 's/^X-L//'`
17003 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
17005 found_so
="$dir/lib$name.$shlibext"
17006 if test -f "$dir/lib$name.la"; then
17007 found_la
="$dir/lib$name.la"
17009 elif test x
$lib_type != xshared
; then
17010 if test -f "$dir/lib$name.$libext"; then
17012 found_a
="$dir/lib$name.$libext"
17013 if test -f "$dir/lib$name.la"; then
17014 found_la
="$dir/lib$name.la"
17020 if test "X$found_dir" != "X"; then
17025 if test "X$found_dir" != "X"; then
17026 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
17027 if test "X$found_so" != "X"; then
17028 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
17029 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17032 for x
in $ltrpathdirs; do
17033 if test "X$x" = "X$found_dir"; then
17038 if test -z "$haveit"; then
17039 ltrpathdirs
="$ltrpathdirs $found_dir"
17041 if test "$hardcode_direct" = yes; then
17042 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17044 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
17045 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17047 for x
in $rpathdirs; do
17048 if test "X$x" = "X$found_dir"; then
17053 if test -z "$haveit"; then
17054 rpathdirs
="$rpathdirs $found_dir"
17058 for x
in $LDFLAGS $LIBLZMA; do
17060 acl_save_prefix
="$prefix"
17061 prefix
="$acl_final_prefix"
17062 acl_save_exec_prefix
="$exec_prefix"
17063 exec_prefix
="$acl_final_exec_prefix"
17065 exec_prefix
="$acl_save_exec_prefix"
17066 prefix
="$acl_save_prefix"
17068 if test "X$x" = "X-L$found_dir"; then
17073 if test -z "$haveit"; then
17074 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
17076 if test "$hardcode_minus_L" != no
; then
17077 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17079 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
17085 if test "X$found_a" != "X"; then
17086 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
17088 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
17091 additional_includedir
=
17092 case "$found_dir" in
17094 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17095 additional_includedir
="$basedir/include"
17098 if test "X$additional_includedir" != "X"; then
17099 if test "X$additional_includedir" != "X/usr/include"; then
17101 if test "X$additional_includedir" = "X/usr/local/include"; then
17102 if test -n "$GCC"; then
17104 linux
*) haveit
=yes;;
17108 if test -z "$haveit"; then
17109 for x
in $CPPFLAGS $INCLZMA; do
17111 acl_save_prefix
="$prefix"
17112 prefix
="$acl_final_prefix"
17113 acl_save_exec_prefix
="$exec_prefix"
17114 exec_prefix
="$acl_final_exec_prefix"
17116 exec_prefix
="$acl_save_exec_prefix"
17117 prefix
="$acl_save_prefix"
17119 if test "X$x" = "X-I$additional_includedir"; then
17124 if test -z "$haveit"; then
17125 if test -d "$additional_includedir"; then
17126 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
17132 if test -n "$found_la"; then
17133 save_libdir
="$libdir"
17134 case "$found_la" in
17135 */* |
*\\*) .
"$found_la" ;;
17136 *) .
"./$found_la" ;;
17138 libdir
="$save_libdir"
17139 for dep
in $dependency_libs; do
17142 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
17143 if test "X$additional_libdir" != "X/usr/lib"; then
17145 if test "X$additional_libdir" = "X/usr/local/lib"; then
17146 if test -n "$GCC"; then
17148 linux
*) haveit
=yes;;
17152 if test -z "$haveit"; then
17154 for x
in $LDFLAGS $LIBLZMA; do
17156 acl_save_prefix
="$prefix"
17157 prefix
="$acl_final_prefix"
17158 acl_save_exec_prefix
="$exec_prefix"
17159 exec_prefix
="$acl_final_exec_prefix"
17161 exec_prefix
="$acl_save_exec_prefix"
17162 prefix
="$acl_save_prefix"
17164 if test "X$x" = "X-L$additional_libdir"; then
17169 if test -z "$haveit"; then
17170 if test -d "$additional_libdir"; then
17171 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
17175 for x
in $LDFLAGS $LTLIBLZMA; do
17177 acl_save_prefix
="$prefix"
17178 prefix
="$acl_final_prefix"
17179 acl_save_exec_prefix
="$exec_prefix"
17180 exec_prefix
="$acl_final_exec_prefix"
17182 exec_prefix
="$acl_save_exec_prefix"
17183 prefix
="$acl_save_prefix"
17185 if test "X$x" = "X-L$additional_libdir"; then
17190 if test -z "$haveit"; then
17191 if test -d "$additional_libdir"; then
17192 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
17199 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
17200 if test "$enable_rpath" != no
; then
17202 for x
in $rpathdirs; do
17203 if test "X$x" = "X$dir"; then
17208 if test -z "$haveit"; then
17209 rpathdirs
="$rpathdirs $dir"
17212 for x
in $ltrpathdirs; do
17213 if test "X$x" = "X$dir"; then
17218 if test -z "$haveit"; then
17219 ltrpathdirs
="$ltrpathdirs $dir"
17224 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17227 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17230 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
17231 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
17237 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
17238 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
17239 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
17241 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l:lib$name.$libext"
17242 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l:lib$name.$libext"
17249 if test "X$rpathdirs" != "X"; then
17250 if test -n "$hardcode_libdir_separator"; then
17252 for found_dir
in $rpathdirs; do
17253 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17255 acl_save_libdir
="$libdir"
17257 eval flag
=\"$hardcode_libdir_flag_spec\"
17258 libdir
="$acl_save_libdir"
17259 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
17261 for found_dir
in $rpathdirs; do
17262 acl_save_libdir
="$libdir"
17263 libdir
="$found_dir"
17264 eval flag
=\"$hardcode_libdir_flag_spec\"
17265 libdir
="$acl_save_libdir"
17266 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
17270 if test "X$ltrpathdirs" != "X"; then
17271 for found_dir
in $ltrpathdirs; do
17272 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
17277 ac_save_CPPFLAGS
="$CPPFLAGS"
17279 for element
in $INCLZMA; do
17281 for x
in $CPPFLAGS; do
17283 acl_save_prefix
="$prefix"
17284 prefix
="$acl_final_prefix"
17285 acl_save_exec_prefix
="$exec_prefix"
17286 exec_prefix
="$acl_final_exec_prefix"
17288 exec_prefix
="$acl_save_exec_prefix"
17289 prefix
="$acl_save_prefix"
17291 if test "X$x" = "X$element"; then
17296 if test -z "$haveit"; then
17297 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
17302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
17303 $as_echo_n "checking for liblzma... " >&6; }
17304 if ${ac_cv_liblzma+:} false
; then :
17305 $as_echo_n "(cached) " >&6
17308 ac_save_LIBS
="$LIBS"
17309 LIBS
="$LIBS $LIBLZMA"
17310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17311 /* end confdefs.h. */
17316 lzma_index_iter iter;
17317 lzma_index_iter_init (&iter, 0);
17318 lzma_mf_is_supported (LZMA_MF_HC3);
17323 if ac_fn_c_try_link
"$LINENO"; then :
17328 rm -f core conftest.err conftest.
$ac_objext \
17329 conftest
$ac_exeext conftest.
$ac_ext
17330 LIBS
="$ac_save_LIBS"
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
17334 $as_echo "$ac_cv_liblzma" >&6; }
17335 if test "$ac_cv_liblzma" = yes; then
17338 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
17341 $as_echo_n "checking how to link with liblzma... " >&6; }
17342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
17343 $as_echo "$LIBLZMA" >&6; }
17346 CPPFLAGS
="$ac_save_CPPFLAGS"
17356 if test "$HAVE_LIBLZMA" != yes; then
17357 if test "$with_lzma" = yes; then
17358 as_fn_error $?
"missing liblzma for --with-lzma" "$LINENO" 5
17364 LIBGUI
="../libgui/src/libgui.a"
17365 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
17374 *-*-cygwin* |
*-*-mingw* )
17383 if test "${enable_gdbtk}" = "yes"; then
17385 # Gdbtk must have an absolute path to srcdir in order to run
17386 # properly when not installed.
17389 GDBTK_SRC_DIR
=`pwd`
17394 # Ok, lets find the tcl configuration
17395 # First, look for one uninstalled.
17396 # the alternative search directory is invoked by --with-tcl
17399 if test x
"${no_tcl}" = x
; then
17400 # we reset no_tcl in case something fails here
17403 # Check whether --with-tcl was given.
17404 if test "${with_tcl+set}" = set; then :
17405 withval
=$with_tcl; with_tclconfig
=${withval}
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
17409 $as_echo_n "checking for Tcl configuration... " >&6; }
17410 if ${ac_cv_c_tclconfig+:} false
; then :
17411 $as_echo_n "(cached) " >&6
17415 # First check to see if --with-tcl was specified.
17417 *-*-cygwin*) platDir
="win" ;;
17418 *) platDir
="unix" ;;
17420 if test x
"${with_tclconfig}" != x
; then
17421 if test -f "${with_tclconfig}/tclConfig.sh" ; then
17422 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
17424 as_fn_error $?
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
17428 # then check for a private Tcl installation
17429 if test x
"${ac_cv_c_tclconfig}" = x
; then
17432 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17433 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
17434 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
17436 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17437 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
17438 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
17440 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17441 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
17442 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
17443 if test -f "$i/$platDir/tclConfig.sh" ; then
17444 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
17450 # on Darwin, check in Framework installation locations
17451 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
17452 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
17453 `ls -d /Library/Frameworks 2>/dev/null` \
17454 `ls -d /Network/Library/Frameworks 2>/dev/null` \
17455 `ls -d /System/Library/Frameworks 2>/dev/null` \
17457 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
17458 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
17464 # check in a few common install locations
17465 if test x
"${ac_cv_c_tclconfig}" = x
; then
17466 for i
in `ls -d ${libdir} 2>/dev/null` \
17467 `ls -d ${exec_prefix}/lib 2>/dev/null` \
17468 `ls -d ${prefix}/lib 2>/dev/null` \
17469 `ls -d /usr/local/lib 2>/dev/null` \
17470 `ls -d /usr/contrib/lib 2>/dev/null` \
17471 `ls -d /usr/lib 2>/dev/null` \
17473 if test -f "$i/tclConfig.sh" ; then
17474 ac_cv_c_tclconfig
=`(cd $i; pwd)`
17480 # check in a few other private locations
17481 if test x
"${ac_cv_c_tclconfig}" = x
; then
17484 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17485 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
17486 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
17487 if test -f "$i/$platDir/tclConfig.sh" ; then
17488 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
17497 if test x
"${ac_cv_c_tclconfig}" = x
; then
17498 TCL_BIN_DIR
="# no Tcl configs found"
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
17500 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
17503 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
17504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
17505 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
17510 # If $no_tk is nonempty, then we can't do Tk, and there is no
17511 # point to doing Tcl.
17514 # Ok, lets find the tk configuration
17515 # First, look for one uninstalled.
17516 # the alternative search directory is invoked by --with-tk
17519 if test x
"${no_tk}" = x
; then
17520 # we reset no_tk in case something fails here
17523 # Check whether --with-tk was given.
17524 if test "${with_tk+set}" = set; then :
17525 withval
=$with_tk; with_tkconfig
=${withval}
17528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
17529 $as_echo_n "checking for Tk configuration... " >&6; }
17530 if ${ac_cv_c_tkconfig+:} false
; then :
17531 $as_echo_n "(cached) " >&6
17535 # First check to see if --with-tkconfig was specified.
17536 if test x
"${with_tkconfig}" != x
; then
17537 if test -f "${with_tkconfig}/tkConfig.sh" ; then
17538 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
17540 as_fn_error $?
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
17544 # then check for a private Tk library
17546 *-*-cygwin*) platDir
="win" ;;
17547 *) platDir
="unix" ;;
17549 if test x
"${ac_cv_c_tkconfig}" = x
; then
17552 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17553 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
17554 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
17556 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17557 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
17558 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
17560 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17561 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
17562 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
17563 if test -f "$i/$platDir/tkConfig.sh" ; then
17564 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
17570 # on Darwin, check in Framework installation locations
17571 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
17572 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
17573 `ls -d /Library/Frameworks 2>/dev/null` \
17574 `ls -d /Network/Library/Frameworks 2>/dev/null` \
17575 `ls -d /System/Library/Frameworks 2>/dev/null` \
17577 if test -f "$i/Tk.framework/tkConfig.sh" ; then
17578 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
17584 # check in a few common install locations
17585 if test x
"${ac_cv_c_tkconfig}" = x
; then
17586 for i
in `ls -d ${libdir} 2>/dev/null` \
17587 `ls -d ${exec_prefix}/lib 2>/dev/null` \
17588 `ls -d ${prefix}/lib 2>/dev/null` \
17589 `ls -d /usr/local/lib 2>/dev/null` \
17590 `ls -d /usr/contrib/lib 2>/dev/null` \
17591 `ls -d /usr/lib 2>/dev/null` \
17593 if test -f "$i/tkConfig.sh" ; then
17594 ac_cv_c_tkconfig
=`(cd $i; pwd)`
17599 # check in a few other private locations
17600 if test x
"${ac_cv_c_tkconfig}" = x
; then
17603 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17604 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
17605 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
17606 if test -f "$i/$platDir/tkConfig.sh" ; then
17607 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
17616 if test x
"${ac_cv_c_tkconfig}" = x
; then
17617 TK_BIN_DIR
="# no Tk configs found"
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
17619 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
17622 TK_BIN_DIR
=${ac_cv_c_tkconfig}
17623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
17624 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
17629 if test -z "${no_tcl}" -a -z "${no_tk}"; then
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
17632 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
17634 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
17636 $as_echo "loading" >&6; }
17637 .
${TCL_BIN_DIR}/tclConfig.sh
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
17640 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
17643 # eval is required to do the TCL_DBGX substitution
17644 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
17645 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
17647 # If the TCL_BIN_DIR is the build directory (not the install directory),
17648 # then set the common variable name to the value of the build variables.
17649 # For example, the variable TCL_LIB_SPEC will be set to the value
17650 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
17651 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
17652 # installed and uninstalled version of Tcl.
17653 if test -f "${TCL_BIN_DIR}/Makefile" ; then
17654 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
17655 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
17656 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
17657 elif test "`uname -s`" = "Darwin"; then
17658 # If Tcl was built as a framework, attempt to use the libraries
17659 # from the framework at the given location so that linking works
17660 # against Tcl.framework installed in an arbitrary location.
17661 case ${TCL_DEFS} in
17663 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
17664 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
17665 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
17666 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
17667 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
17672 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
17673 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
17674 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
17680 # eval is required to do the TCL_DBGX substitution
17681 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
17682 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
17683 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
17684 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
17700 # Check for in-tree tcl
17707 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
17711 # Find Tcl private headers
17712 if test x
"${intree}" = xno
; then
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
17715 $as_echo_n "checking for Tcl private headers... " >&6; }
17717 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
17718 if test -f ${dir}/tclInt.h
; then
17722 if test x
"${private_dir}" = x
; then
17723 as_fn_error $?
"could not find private Tcl headers" "$LINENO" 5
17725 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
17726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
17727 $as_echo "${private_dir}" >&6; }
17730 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
17731 TCL_LIBRARY
="${TCL_LIB_SPEC}"
17734 # If building tcl in the same src tree, private headers
17735 # are not needed, but we need to be sure to use the right
17737 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
17738 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
17739 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
17747 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
17749 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
17750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
17751 $as_echo "loading" >&6; }
17752 .
${TK_BIN_DIR}/tkConfig.sh
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
17755 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
17758 # eval is required to do the TK_DBGX substitution
17759 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
17760 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
17762 # If the TK_BIN_DIR is the build directory (not the install directory),
17763 # then set the common variable name to the value of the build variables.
17764 # For example, the variable TK_LIB_SPEC will be set to the value
17765 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
17766 # instead of TK_BUILD_LIB_SPEC since it will work with both an
17767 # installed and uninstalled version of Tcl.
17768 if test -f "${TK_BIN_DIR}/Makefile" ; then
17769 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
17770 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
17771 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
17772 elif test "`uname -s`" = "Darwin"; then
17773 # If Tk was built as a framework, attempt to use the libraries
17774 # from the framework at the given location so that linking works
17775 # against Tk.framework installed in an arbitrary location.
17778 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
17779 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
17780 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
17781 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
17782 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
17787 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
17788 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
17789 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
17795 # eval is required to do the TK_DBGX substitution
17796 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
17797 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
17798 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
17799 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
17814 # Check for in-tree Tk
17816 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
17820 # Find Tk private headers
17821 if test x
"${intree}" = xno
; then
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
17824 $as_echo_n "checking for Tk private headers... " >&6; }
17826 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
17827 if test -f ${dir}/tkInt.h
; then
17831 if test x
"${private_dir}" = x
; then
17832 as_fn_error $?
"could not find Tk private headers" "$LINENO" 5
17834 TK_PRIVATE_INCLUDE
="-I${private_dir}"
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
17836 $as_echo "${private_dir}" >&6; }
17839 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
17840 TK_LIBRARY
=${TK_LIB_SPEC}
17843 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
17844 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
17845 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
17852 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
17854 # Include some libraries that Tcl and Tk want.
17855 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
17856 # Yes, the ordering seems wrong here. But it isn't.
17857 # TK_LIBS is the list of libraries that need to be linked
17858 # after Tcl/Tk. Note that this isn't put into LIBS. If it
17859 # were in LIBS then any link tests after this point would
17860 # try to include things like `$(LIBGUI)', which wouldn't work.
17861 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
17863 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
17864 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
17865 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
17866 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
17867 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
17868 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
17869 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
17871 if test x
"$gdb_cv_os_cygwin" = xyes
; then
17872 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
17873 WIN32LDAPP
="-Wl,--subsystem,console"
17874 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
17877 subdirs
="$subdirs gdbtk"
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
17890 $as_echo_n "checking for X... " >&6; }
17893 # Check whether --with-x was given.
17894 if test "${with_x+set}" = set; then :
17898 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17899 if test "x$with_x" = xno
; then
17900 # The user explicitly disabled X.
17903 case $x_includes,$x_libraries in #(
17904 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
17905 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
17906 $as_echo_n "(cached) " >&6
17908 # One or both of the vars are not set, and there is no cached value.
17909 ac_x_includes
=no ac_x_libraries
=no
17910 rm -f -r conftest.dir
17911 if mkdir conftest.dir
; then
17913 cat >Imakefile
<<'_ACEOF'
17915 @echo incroot='${INCROOT}'
17917 @echo usrlibdir='${USRLIBDIR}'
17919 @echo libdir='${LIBDIR}'
17921 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
17922 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17923 for ac_var
in incroot usrlibdir libdir
; do
17924 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
17926 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17927 for ac_extension
in a so sl dylib la dll
; do
17928 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
17929 test -f "$ac_im_libdir/libX11.$ac_extension"; then
17930 ac_im_usrlibdir
=$ac_im_libdir; break
17933 # Screen out bogus values from the imake configuration. They are
17934 # bogus both because they are the default anyway, and because
17935 # using them would break gcc on systems where it needs fixed includes.
17936 case $ac_im_incroot in
17937 /usr
/include
) ac_x_includes
= ;;
17938 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
17940 case $ac_im_usrlibdir in
17941 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
17942 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
17946 rm -f -r conftest.dir
17949 # Standard set of common directories for X headers.
17950 # Check X11 before X11Rn because it is often a symlink to the current release.
17964 /usr/local/X11/include
17965 /usr/local/X11R7/include
17966 /usr/local/X11R6/include
17967 /usr/local/X11R5/include
17968 /usr/local/X11R4/include
17970 /usr/local/include/X11
17971 /usr/local/include/X11R7
17972 /usr/local/include/X11R6
17973 /usr/local/include/X11R5
17974 /usr/local/include/X11R4
17978 /usr/XFree86/include/X11
17982 /usr/unsupported/include
17983 /usr/athena/include
17984 /usr/local/x11r5/include
17985 /usr/lpp/Xamples/include
17987 /usr/openwin/include
17988 /usr/openwin/share/include'
17990 if test "$ac_x_includes" = no
; then
17991 # Guess where to find include files, by looking for Xlib.h.
17992 # First, try using that file with no special directory specified.
17993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17994 /* end confdefs.h. */
17995 #include <X11/Xlib.h>
17997 if ac_fn_c_try_cpp
"$LINENO"; then :
17998 # We can compile using X headers with no special include directory.
18001 for ac_dir
in $ac_x_header_dirs; do
18002 if test -r "$ac_dir/X11/Xlib.h"; then
18003 ac_x_includes
=$ac_dir
18008 rm -f conftest.err conftest.i conftest.
$ac_ext
18009 fi # $ac_x_includes = no
18011 if test "$ac_x_libraries" = no
; then
18012 # Check for the libraries.
18013 # See if we find them without any special options.
18014 # Don't add to $LIBS permanently.
18017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18018 /* end confdefs.h. */
18019 #include <X11/Xlib.h>
18028 if ac_fn_c_try_link
"$LINENO"; then :
18030 # We can link X programs with no special library path.
18034 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18036 # Don't even attempt the hair of trying to link an X program!
18037 for ac_extension
in a so sl dylib la dll
; do
18038 if test -r "$ac_dir/libX11.$ac_extension"; then
18039 ac_x_libraries
=$ac_dir
18045 rm -f core conftest.err conftest.
$ac_objext \
18046 conftest
$ac_exeext conftest.
$ac_ext
18047 fi # $ac_x_libraries = no
18049 case $ac_x_includes,$ac_x_libraries in #(
18050 no
,* |
*,no |
*\'*)
18051 # Didn't find X, or a directory has "'" in its name.
18052 ac_cv_have_x
="have_x=no";; #(
18054 # Record where we found X for the cache.
18055 ac_cv_have_x
="have_x=yes\
18056 ac_x_includes='$ac_x_includes'\
18057 ac_x_libraries='$ac_x_libraries'"
18063 eval "$ac_cv_have_x"
18066 if test "$have_x" != yes; then
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
18068 $as_echo "$have_x" >&6; }
18071 # If each of the values was on the command line, it overrides each guess.
18072 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
18073 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
18074 # Update the cache value to reflect the command line values.
18075 ac_cv_have_x
="have_x=yes\
18076 ac_x_includes='$x_includes'\
18077 ac_x_libraries='$x_libraries'"
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
18079 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
18083 # Unlike the sim directory, whether a simulator is linked is controlled by
18084 # presence of a gdb_sim definition in the target configure.tgt entry.
18085 # This code just checks for a few cases where we'd like to ignore those
18086 # definitions, even when they're present in the '.mt' file. These cases
18087 # are when --disable-sim is specified, or if the simulator directory is
18088 # not part of the source tree.
18090 # Check whether --enable-sim was given.
18091 if test "${enable_sim+set}" = set; then :
18092 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
18093 echo "enableval = ${enableval}";
18094 case "${enableval}" in
18095 yes) ignore_sim
=false
;;
18096 no
) ignore_sim
=true
;;
18097 *) ignore_sim
=false
;;
18104 if test ! -d "${srcdir}/../sim"; then
18110 if test "${ignore_sim}" = "false"; then
18111 if test x
"${gdb_sim}" != x
; then
18113 SIM_OBS
="remote-sim.o"
18115 $as_echo "#define WITH_SIM 1" >>confdefs.h
18118 # Some tdep code should only be compiled in when the ppc sim is
18119 # built. PR sim/13418.
18123 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
18143 # List of host floatformats.
18145 cat >>confdefs.h
<<_ACEOF
18146 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
18150 cat >>confdefs.h
<<_ACEOF
18151 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
18155 cat >>confdefs.h
<<_ACEOF
18156 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
18160 # target_subdir is used by the testsuite to find the target libraries.
18162 if test "${host}" != "${target}"; then
18163 target_subdir
="${target_alias}/"
18167 # Import nat definitions.
18168 nat_makefile_frag
=/dev
/null
18169 if test "${gdb_native}" = "yes"; then
18170 .
${srcdir}/configure.nat
18171 nativefile
=$NAT_FILE
18184 if test x
"${gdb_osabi}" != x
; then
18186 cat >>confdefs.h
<<_ACEOF
18187 #define GDB_OSABI_DEFAULT $gdb_osabi
18192 # Check for babeltrace and babeltrace-ctf
18194 # Check whether --with-babeltrace was given.
18195 if test "${with_babeltrace+set}" = set; then :
18196 withval
=$with_babeltrace;
18198 with_babeltrace
=auto
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
18202 $as_echo_n "checking whether to use babeltrace... " >&6; }
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
18204 $as_echo "$with_babeltrace" >&6; }
18206 if test "x$with_babeltrace" = "xno"; then
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
18208 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
18210 # Append -Werror to CFLAGS so that configure can catch the warning
18211 # "assignment from incompatible pointer type", which is related to
18212 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
18213 # in GDB, while babeltrace 1.0.3 is broken.
18214 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
18215 # safe to save and restore CFLAGS here.
18216 saved_CFLAGS
=$CFLAGS
18217 CFLAGS
="$CFLAGS -Werror"
18228 acl_save_prefix
="$prefix"
18229 prefix
="$acl_final_prefix"
18230 acl_save_exec_prefix
="$exec_prefix"
18231 exec_prefix
="$acl_final_exec_prefix"
18233 eval additional_includedir
=\"$includedir\"
18234 eval additional_libdir
=\"$libdir\"
18236 exec_prefix
="$acl_save_exec_prefix"
18237 prefix
="$acl_save_prefix"
18240 # Check whether --with-libbabeltrace-prefix was given.
18241 if test "${with_libbabeltrace_prefix+set}" = set; then :
18242 withval
=$with_libbabeltrace_prefix;
18243 if test "X$withval" = "Xno"; then
18246 if test "X$withval" = "X"; then
18248 acl_save_prefix
="$prefix"
18249 prefix
="$acl_final_prefix"
18250 acl_save_exec_prefix
="$exec_prefix"
18251 exec_prefix
="$acl_final_exec_prefix"
18253 eval additional_includedir
=\"$includedir\"
18254 eval additional_libdir
=\"$libdir\"
18256 exec_prefix
="$acl_save_exec_prefix"
18257 prefix
="$acl_save_prefix"
18260 additional_includedir
="$withval/include"
18261 additional_libdir
="$withval/lib"
18268 # Check whether --with-libbabeltrace-type was given.
18269 if test "${with_libbabeltrace_type+set}" = set; then :
18270 withval
=$with_libbabeltrace_type; with_libbabeltrace_type
=$withval
18272 with_libbabeltrace_type
=auto
18275 lib_type
=`eval echo \$with_libbabeltrace_type`
18282 names_already_handled
=
18283 names_next_round
='babeltrace babeltrace-ctf'
18284 while test -n "$names_next_round"; do
18285 names_this_round
="$names_next_round"
18287 for name
in $names_this_round; do
18289 for n
in $names_already_handled; do
18290 if test "$n" = "$name"; then
18291 already_handled
=yes
18295 if test -z "$already_handled"; then
18296 names_already_handled
="$names_already_handled $name"
18297 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18298 eval value
=\"\
$HAVE_LIB$uppername\"
18299 if test -n "$value"; then
18300 if test "$value" = yes; then
18301 eval value
=\"\
$LIB$uppername\"
18302 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
18303 eval value
=\"\
$LTLIB$uppername\"
18304 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
18313 if test $use_additional = yes; then
18314 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18315 found_dir
="$additional_libdir"
18316 found_so
="$additional_libdir/lib$name.$shlibext"
18317 if test -f "$additional_libdir/lib$name.la"; then
18318 found_la
="$additional_libdir/lib$name.la"
18320 elif test x
$lib_type != xshared
; then
18321 if test -f "$additional_libdir/lib$name.$libext"; then
18322 found_dir
="$additional_libdir"
18323 found_a
="$additional_libdir/lib$name.$libext"
18324 if test -f "$additional_libdir/lib$name.la"; then
18325 found_la
="$additional_libdir/lib$name.la"
18330 if test "X$found_dir" = "X"; then
18331 for x
in $LDFLAGS $LTLIBBABELTRACE; do
18333 acl_save_prefix
="$prefix"
18334 prefix
="$acl_final_prefix"
18335 acl_save_exec_prefix
="$exec_prefix"
18336 exec_prefix
="$acl_final_exec_prefix"
18338 exec_prefix
="$acl_save_exec_prefix"
18339 prefix
="$acl_save_prefix"
18343 dir
=`echo "X$x" | sed -e 's/^X-L//'`
18344 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18346 found_so
="$dir/lib$name.$shlibext"
18347 if test -f "$dir/lib$name.la"; then
18348 found_la
="$dir/lib$name.la"
18350 elif test x
$lib_type != xshared
; then
18351 if test -f "$dir/lib$name.$libext"; then
18353 found_a
="$dir/lib$name.$libext"
18354 if test -f "$dir/lib$name.la"; then
18355 found_la
="$dir/lib$name.la"
18361 if test "X$found_dir" != "X"; then
18366 if test "X$found_dir" != "X"; then
18367 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
18368 if test "X$found_so" != "X"; then
18369 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
18370 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18373 for x
in $ltrpathdirs; do
18374 if test "X$x" = "X$found_dir"; then
18379 if test -z "$haveit"; then
18380 ltrpathdirs
="$ltrpathdirs $found_dir"
18382 if test "$hardcode_direct" = yes; then
18383 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18385 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
18386 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18388 for x
in $rpathdirs; do
18389 if test "X$x" = "X$found_dir"; then
18394 if test -z "$haveit"; then
18395 rpathdirs
="$rpathdirs $found_dir"
18399 for x
in $LDFLAGS $LIBBABELTRACE; do
18401 acl_save_prefix
="$prefix"
18402 prefix
="$acl_final_prefix"
18403 acl_save_exec_prefix
="$exec_prefix"
18404 exec_prefix
="$acl_final_exec_prefix"
18406 exec_prefix
="$acl_save_exec_prefix"
18407 prefix
="$acl_save_prefix"
18409 if test "X$x" = "X-L$found_dir"; then
18414 if test -z "$haveit"; then
18415 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
18417 if test "$hardcode_minus_L" != no
; then
18418 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18420 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
18426 if test "X$found_a" != "X"; then
18427 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
18429 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
18432 additional_includedir
=
18433 case "$found_dir" in
18435 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18436 additional_includedir
="$basedir/include"
18439 if test "X$additional_includedir" != "X"; then
18440 if test "X$additional_includedir" != "X/usr/include"; then
18442 if test "X$additional_includedir" = "X/usr/local/include"; then
18443 if test -n "$GCC"; then
18445 linux
*) haveit
=yes;;
18449 if test -z "$haveit"; then
18450 for x
in $CPPFLAGS $INCBABELTRACE; do
18452 acl_save_prefix
="$prefix"
18453 prefix
="$acl_final_prefix"
18454 acl_save_exec_prefix
="$exec_prefix"
18455 exec_prefix
="$acl_final_exec_prefix"
18457 exec_prefix
="$acl_save_exec_prefix"
18458 prefix
="$acl_save_prefix"
18460 if test "X$x" = "X-I$additional_includedir"; then
18465 if test -z "$haveit"; then
18466 if test -d "$additional_includedir"; then
18467 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
18473 if test -n "$found_la"; then
18474 save_libdir
="$libdir"
18475 case "$found_la" in
18476 */* |
*\\*) .
"$found_la" ;;
18477 *) .
"./$found_la" ;;
18479 libdir
="$save_libdir"
18480 for dep
in $dependency_libs; do
18483 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
18484 if test "X$additional_libdir" != "X/usr/lib"; then
18486 if test "X$additional_libdir" = "X/usr/local/lib"; then
18487 if test -n "$GCC"; then
18489 linux
*) haveit
=yes;;
18493 if test -z "$haveit"; then
18495 for x
in $LDFLAGS $LIBBABELTRACE; do
18497 acl_save_prefix
="$prefix"
18498 prefix
="$acl_final_prefix"
18499 acl_save_exec_prefix
="$exec_prefix"
18500 exec_prefix
="$acl_final_exec_prefix"
18502 exec_prefix
="$acl_save_exec_prefix"
18503 prefix
="$acl_save_prefix"
18505 if test "X$x" = "X-L$additional_libdir"; then
18510 if test -z "$haveit"; then
18511 if test -d "$additional_libdir"; then
18512 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
18516 for x
in $LDFLAGS $LTLIBBABELTRACE; do
18518 acl_save_prefix
="$prefix"
18519 prefix
="$acl_final_prefix"
18520 acl_save_exec_prefix
="$exec_prefix"
18521 exec_prefix
="$acl_final_exec_prefix"
18523 exec_prefix
="$acl_save_exec_prefix"
18524 prefix
="$acl_save_prefix"
18526 if test "X$x" = "X-L$additional_libdir"; then
18531 if test -z "$haveit"; then
18532 if test -d "$additional_libdir"; then
18533 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
18540 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
18541 if test "$enable_rpath" != no
; then
18543 for x
in $rpathdirs; do
18544 if test "X$x" = "X$dir"; then
18549 if test -z "$haveit"; then
18550 rpathdirs
="$rpathdirs $dir"
18553 for x
in $ltrpathdirs; do
18554 if test "X$x" = "X$dir"; then
18559 if test -z "$haveit"; then
18560 ltrpathdirs
="$ltrpathdirs $dir"
18565 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18568 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18571 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
18572 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
18578 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
18579 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
18580 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
18582 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l:lib$name.$libext"
18583 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l:lib$name.$libext"
18590 if test "X$rpathdirs" != "X"; then
18591 if test -n "$hardcode_libdir_separator"; then
18593 for found_dir
in $rpathdirs; do
18594 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18596 acl_save_libdir
="$libdir"
18598 eval flag
=\"$hardcode_libdir_flag_spec\"
18599 libdir
="$acl_save_libdir"
18600 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
18602 for found_dir
in $rpathdirs; do
18603 acl_save_libdir
="$libdir"
18604 libdir
="$found_dir"
18605 eval flag
=\"$hardcode_libdir_flag_spec\"
18606 libdir
="$acl_save_libdir"
18607 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
18611 if test "X$ltrpathdirs" != "X"; then
18612 for found_dir
in $ltrpathdirs; do
18613 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
18618 ac_save_CPPFLAGS
="$CPPFLAGS"
18620 for element
in $INCBABELTRACE; do
18622 for x
in $CPPFLAGS; do
18624 acl_save_prefix
="$prefix"
18625 prefix
="$acl_final_prefix"
18626 acl_save_exec_prefix
="$exec_prefix"
18627 exec_prefix
="$acl_final_exec_prefix"
18629 exec_prefix
="$acl_save_exec_prefix"
18630 prefix
="$acl_save_prefix"
18632 if test "X$x" = "X$element"; then
18637 if test -z "$haveit"; then
18638 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
18643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
18644 $as_echo_n "checking for libbabeltrace... " >&6; }
18645 if ${ac_cv_libbabeltrace+:} false
; then :
18646 $as_echo_n "(cached) " >&6
18649 ac_save_LIBS
="$LIBS"
18650 LIBS
="$LIBS $LIBBABELTRACE"
18651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18652 /* end confdefs.h. */
18653 #include <babeltrace/babeltrace.h>
18654 #include <babeltrace/ctf/events.h>
18655 #include <babeltrace/ctf/iterator.h>
18659 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
18660 struct bt_ctf_event *event = NULL;
18661 const struct bt_definition *scope;
18663 pos->type = BT_SEEK_BEGIN;
18664 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
18665 scope = bt_ctf_get_top_level_scope (event,
18666 BT_STREAM_EVENT_HEADER);
18667 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
18673 if ac_fn_c_try_link
"$LINENO"; then :
18674 ac_cv_libbabeltrace
=yes
18676 ac_cv_libbabeltrace
=no
18678 rm -f core conftest.err conftest.
$ac_objext \
18679 conftest
$ac_exeext conftest.
$ac_ext
18680 LIBS
="$ac_save_LIBS"
18683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
18684 $as_echo "$ac_cv_libbabeltrace" >&6; }
18685 if test "$ac_cv_libbabeltrace" = yes; then
18686 HAVE_LIBBABELTRACE
=yes
18688 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
18690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
18691 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
18693 $as_echo "$LIBBABELTRACE" >&6; }
18695 HAVE_LIBBABELTRACE
=no
18696 CPPFLAGS
="$ac_save_CPPFLAGS"
18706 CFLAGS
=$saved_CFLAGS
18708 if test "$HAVE_LIBBABELTRACE" != yes; then
18709 if test "$with_babeltrace" = yes; then
18710 as_fn_error $?
"babeltrace is missing or unusable" "$LINENO" 5
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
18713 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
18720 # Check whether --with-xxhash was given.
18721 if test "${with_xxhash+set}" = set; then :
18722 withval
=$with_xxhash;
18728 # Check whether --enable-libctf was given.
18729 if test "${enable_libctf+set}" = set; then :
18730 enableval
=$enable_libctf;
18731 case "$enableval" in
18733 *) as_fn_error $?
"Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
18741 if test x
${enable_static} = xno
; then
18742 LIBCTF
="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so"
18743 CTF_DEPS
="../libctf/.libs/libctf.so"
18745 LIBCTF
="../libctf/.libs/libctf.a"
18748 if test "${enable_libctf}" = yes; then
18750 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
18760 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
18763 if test "x$with_xxhash" != "xno"; then
18774 acl_save_prefix
="$prefix"
18775 prefix
="$acl_final_prefix"
18776 acl_save_exec_prefix
="$exec_prefix"
18777 exec_prefix
="$acl_final_exec_prefix"
18779 eval additional_includedir
=\"$includedir\"
18780 eval additional_libdir
=\"$libdir\"
18782 exec_prefix
="$acl_save_exec_prefix"
18783 prefix
="$acl_save_prefix"
18786 # Check whether --with-libxxhash-prefix was given.
18787 if test "${with_libxxhash_prefix+set}" = set; then :
18788 withval
=$with_libxxhash_prefix;
18789 if test "X$withval" = "Xno"; then
18792 if test "X$withval" = "X"; then
18794 acl_save_prefix
="$prefix"
18795 prefix
="$acl_final_prefix"
18796 acl_save_exec_prefix
="$exec_prefix"
18797 exec_prefix
="$acl_final_exec_prefix"
18799 eval additional_includedir
=\"$includedir\"
18800 eval additional_libdir
=\"$libdir\"
18802 exec_prefix
="$acl_save_exec_prefix"
18803 prefix
="$acl_save_prefix"
18806 additional_includedir
="$withval/include"
18807 additional_libdir
="$withval/lib"
18814 # Check whether --with-libxxhash-type was given.
18815 if test "${with_libxxhash_type+set}" = set; then :
18816 withval
=$with_libxxhash_type; with_libxxhash_type
=$withval
18818 with_libxxhash_type
=auto
18821 lib_type
=`eval echo \$with_libxxhash_type`
18828 names_already_handled
=
18829 names_next_round
='xxhash '
18830 while test -n "$names_next_round"; do
18831 names_this_round
="$names_next_round"
18833 for name
in $names_this_round; do
18835 for n
in $names_already_handled; do
18836 if test "$n" = "$name"; then
18837 already_handled
=yes
18841 if test -z "$already_handled"; then
18842 names_already_handled
="$names_already_handled $name"
18843 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18844 eval value
=\"\
$HAVE_LIB$uppername\"
18845 if test -n "$value"; then
18846 if test "$value" = yes; then
18847 eval value
=\"\
$LIB$uppername\"
18848 test -z "$value" || LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$value"
18849 eval value
=\"\
$LTLIB$uppername\"
18850 test -z "$value" || LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$value"
18859 if test $use_additional = yes; then
18860 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18861 found_dir
="$additional_libdir"
18862 found_so
="$additional_libdir/lib$name.$shlibext"
18863 if test -f "$additional_libdir/lib$name.la"; then
18864 found_la
="$additional_libdir/lib$name.la"
18866 elif test x
$lib_type != xshared
; then
18867 if test -f "$additional_libdir/lib$name.$libext"; then
18868 found_dir
="$additional_libdir"
18869 found_a
="$additional_libdir/lib$name.$libext"
18870 if test -f "$additional_libdir/lib$name.la"; then
18871 found_la
="$additional_libdir/lib$name.la"
18876 if test "X$found_dir" = "X"; then
18877 for x
in $LDFLAGS $LTLIBXXHASH; do
18879 acl_save_prefix
="$prefix"
18880 prefix
="$acl_final_prefix"
18881 acl_save_exec_prefix
="$exec_prefix"
18882 exec_prefix
="$acl_final_exec_prefix"
18884 exec_prefix
="$acl_save_exec_prefix"
18885 prefix
="$acl_save_prefix"
18889 dir
=`echo "X$x" | sed -e 's/^X-L//'`
18890 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18892 found_so
="$dir/lib$name.$shlibext"
18893 if test -f "$dir/lib$name.la"; then
18894 found_la
="$dir/lib$name.la"
18896 elif test x
$lib_type != xshared
; then
18897 if test -f "$dir/lib$name.$libext"; then
18899 found_a
="$dir/lib$name.$libext"
18900 if test -f "$dir/lib$name.la"; then
18901 found_la
="$dir/lib$name.la"
18907 if test "X$found_dir" != "X"; then
18912 if test "X$found_dir" != "X"; then
18913 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$found_dir -l$name"
18914 if test "X$found_so" != "X"; then
18915 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
18916 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
18919 for x
in $ltrpathdirs; do
18920 if test "X$x" = "X$found_dir"; then
18925 if test -z "$haveit"; then
18926 ltrpathdirs
="$ltrpathdirs $found_dir"
18928 if test "$hardcode_direct" = yes; then
18929 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
18931 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
18932 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
18934 for x
in $rpathdirs; do
18935 if test "X$x" = "X$found_dir"; then
18940 if test -z "$haveit"; then
18941 rpathdirs
="$rpathdirs $found_dir"
18945 for x
in $LDFLAGS $LIBXXHASH; do
18947 acl_save_prefix
="$prefix"
18948 prefix
="$acl_final_prefix"
18949 acl_save_exec_prefix
="$exec_prefix"
18950 exec_prefix
="$acl_final_exec_prefix"
18952 exec_prefix
="$acl_save_exec_prefix"
18953 prefix
="$acl_save_prefix"
18955 if test "X$x" = "X-L$found_dir"; then
18960 if test -z "$haveit"; then
18961 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir"
18963 if test "$hardcode_minus_L" != no
; then
18964 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
18966 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
18972 if test "X$found_a" != "X"; then
18973 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_a"
18975 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir -l$name"
18978 additional_includedir
=
18979 case "$found_dir" in
18981 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18982 additional_includedir
="$basedir/include"
18985 if test "X$additional_includedir" != "X"; then
18986 if test "X$additional_includedir" != "X/usr/include"; then
18988 if test "X$additional_includedir" = "X/usr/local/include"; then
18989 if test -n "$GCC"; then
18991 linux
*) haveit
=yes;;
18995 if test -z "$haveit"; then
18996 for x
in $CPPFLAGS $INCXXHASH; do
18998 acl_save_prefix
="$prefix"
18999 prefix
="$acl_final_prefix"
19000 acl_save_exec_prefix
="$exec_prefix"
19001 exec_prefix
="$acl_final_exec_prefix"
19003 exec_prefix
="$acl_save_exec_prefix"
19004 prefix
="$acl_save_prefix"
19006 if test "X$x" = "X-I$additional_includedir"; then
19011 if test -z "$haveit"; then
19012 if test -d "$additional_includedir"; then
19013 INCXXHASH
="${INCXXHASH}${INCXXHASH:+ }-I$additional_includedir"
19019 if test -n "$found_la"; then
19020 save_libdir
="$libdir"
19021 case "$found_la" in
19022 */* |
*\\*) .
"$found_la" ;;
19023 *) .
"./$found_la" ;;
19025 libdir
="$save_libdir"
19026 for dep
in $dependency_libs; do
19029 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
19030 if test "X$additional_libdir" != "X/usr/lib"; then
19032 if test "X$additional_libdir" = "X/usr/local/lib"; then
19033 if test -n "$GCC"; then
19035 linux
*) haveit
=yes;;
19039 if test -z "$haveit"; then
19041 for x
in $LDFLAGS $LIBXXHASH; do
19043 acl_save_prefix
="$prefix"
19044 prefix
="$acl_final_prefix"
19045 acl_save_exec_prefix
="$exec_prefix"
19046 exec_prefix
="$acl_final_exec_prefix"
19048 exec_prefix
="$acl_save_exec_prefix"
19049 prefix
="$acl_save_prefix"
19051 if test "X$x" = "X-L$additional_libdir"; then
19056 if test -z "$haveit"; then
19057 if test -d "$additional_libdir"; then
19058 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$additional_libdir"
19062 for x
in $LDFLAGS $LTLIBXXHASH; do
19064 acl_save_prefix
="$prefix"
19065 prefix
="$acl_final_prefix"
19066 acl_save_exec_prefix
="$exec_prefix"
19067 exec_prefix
="$acl_final_exec_prefix"
19069 exec_prefix
="$acl_save_exec_prefix"
19070 prefix
="$acl_save_prefix"
19072 if test "X$x" = "X-L$additional_libdir"; then
19077 if test -z "$haveit"; then
19078 if test -d "$additional_libdir"; then
19079 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$additional_libdir"
19086 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
19087 if test "$enable_rpath" != no
; then
19089 for x
in $rpathdirs; do
19090 if test "X$x" = "X$dir"; then
19095 if test -z "$haveit"; then
19096 rpathdirs
="$rpathdirs $dir"
19099 for x
in $ltrpathdirs; do
19100 if test "X$x" = "X$dir"; then
19105 if test -z "$haveit"; then
19106 ltrpathdirs
="$ltrpathdirs $dir"
19111 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19114 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19117 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$dep"
19118 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$dep"
19124 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
19125 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
19126 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l$name"
19128 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l:lib$name.$libext"
19129 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l:lib$name.$libext"
19136 if test "X$rpathdirs" != "X"; then
19137 if test -n "$hardcode_libdir_separator"; then
19139 for found_dir
in $rpathdirs; do
19140 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
19142 acl_save_libdir
="$libdir"
19144 eval flag
=\"$hardcode_libdir_flag_spec\"
19145 libdir
="$acl_save_libdir"
19146 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
19148 for found_dir
in $rpathdirs; do
19149 acl_save_libdir
="$libdir"
19150 libdir
="$found_dir"
19151 eval flag
=\"$hardcode_libdir_flag_spec\"
19152 libdir
="$acl_save_libdir"
19153 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
19157 if test "X$ltrpathdirs" != "X"; then
19158 for found_dir
in $ltrpathdirs; do
19159 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-R$found_dir"
19164 ac_save_CPPFLAGS
="$CPPFLAGS"
19166 for element
in $INCXXHASH; do
19168 for x
in $CPPFLAGS; do
19170 acl_save_prefix
="$prefix"
19171 prefix
="$acl_final_prefix"
19172 acl_save_exec_prefix
="$exec_prefix"
19173 exec_prefix
="$acl_final_exec_prefix"
19175 exec_prefix
="$acl_save_exec_prefix"
19176 prefix
="$acl_save_prefix"
19178 if test "X$x" = "X$element"; then
19183 if test -z "$haveit"; then
19184 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
19189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5
19190 $as_echo_n "checking for libxxhash... " >&6; }
19191 if ${ac_cv_libxxhash+:} false
; then :
19192 $as_echo_n "(cached) " >&6
19195 ac_save_LIBS
="$LIBS"
19196 LIBS
="$LIBS $LIBXXHASH"
19197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19198 /* end confdefs.h. */
19199 #include <xxhash.h>
19203 XXH32("foo", 3, 0);
19209 if ac_fn_c_try_link
"$LINENO"; then :
19210 ac_cv_libxxhash
=yes
19214 rm -f core conftest.err conftest.
$ac_objext \
19215 conftest
$ac_exeext conftest.
$ac_ext
19216 LIBS
="$ac_save_LIBS"
19219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxxhash" >&5
19220 $as_echo "$ac_cv_libxxhash" >&6; }
19221 if test "$ac_cv_libxxhash" = yes; then
19224 $as_echo "#define HAVE_LIBXXHASH 1" >>confdefs.h
19226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libxxhash" >&5
19227 $as_echo_n "checking how to link with libxxhash... " >&6; }
19228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXXHASH" >&5
19229 $as_echo "$LIBXXHASH" >&6; }
19232 CPPFLAGS
="$ac_save_CPPFLAGS"
19242 if test "$HAVE_LIBXXHASH" != yes; then
19243 if test "$with_xxhash" = yes; then
19244 as_fn_error $?
"xxhash is missing or unusable" "$LINENO" 5
19247 if test "x$with_xxhash" = "xauto"; then
19248 with_xxhash
="$HAVE_LIBXXHASH"
19252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
19253 $as_echo_n "checking whether to use xxhash... " >&6; }
19254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
19255 $as_echo "$with_xxhash" >&6; }
19259 if test "${nativefile}" != ""; then
19260 case "${nativefile}" in
19261 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
19262 * ) GDB_NM_FILE
="${nativefile}"
19264 ac_config_links
="$ac_config_links nm.h:$GDB_NM_FILE"
19267 cat >>confdefs.h
<<_ACEOF
19268 #define GDB_NM_FILE "${GDB_NM_FILE}"
19276 for ac_prog
in xsltproc
19278 # Extract the first word of "$ac_prog", so it can be a program name with args.
19279 set dummy
$ac_prog; ac_word
=$2
19280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19281 $as_echo_n "checking for $ac_word... " >&6; }
19282 if ${ac_cv_path_XSLTPROC+:} false
; then :
19283 $as_echo_n "(cached) " >&6
19287 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
19290 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19291 for as_dir
in $PATH
19294 test -z "$as_dir" && as_dir
=.
19295 for ac_exec_ext
in '' $ac_executable_extensions; do
19296 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19297 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
19298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19308 XSLTPROC
=$ac_cv_path_XSLTPROC
19309 if test -n "$XSLTPROC"; then
19310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19311 $as_echo "$XSLTPROC" >&6; }
19313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19314 $as_echo "no" >&6; }
19318 test -n "$XSLTPROC" && break
19320 test -n "$XSLTPROC" || XSLTPROC
="missing"
19322 if test "x$USE_MAINTAINER_MODE" = xyes
; then
19323 if test "${XSLTPROC}" = missing
; then
19324 as_fn_error $?
"unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
19332 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
19336 # Check whether we will enable the inclusion of unit tests when
19339 # The default value of this option changes depending whether we're on
19340 # development mode (in which case it's "true") or not (in which case
19341 # it's "false"). The $development variable is set by the GDB_AC_COMMON
19342 # macro, which must therefore be used before GDB_AC_SELFTEST.
19344 if test "x$development" != xtrue
&& test "x$development" != xfalse
; then :
19345 as_fn_error $?
"Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
19348 # Check whether --enable-unit-tests was given.
19349 if test "${enable_unit_tests+set}" = set; then :
19350 enableval
=$enable_unit_tests; case "${enableval}" in
19351 yes) enable_unittests
=true
;;
19352 no
) enable_unittests
=false
;;
19353 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
19356 enable_unittests
=$development
19360 if $enable_unittests; then
19362 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
19365 CONFIG_OBS
="$CONFIG_OBS \$(SELFTESTS_OBS)"
19366 CONFIG_SRCS
="$CONFIG_SRCS \$(SELFTESTS_SRCS)"
19372 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19373 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
19374 if test "x$GDB_TRANSFORM_NAME" = x
; then
19375 GDB_TRANSFORM_NAME
=gdb
19380 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19381 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
19382 if test "x$GCORE_TRANSFORM_NAME" = x
; then
19383 GCORE_TRANSFORM_NAME
=gcore
19387 ac_config_files
="$ac_config_files gcore"
19389 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
19392 cat >confcache
<<\_ACEOF
19393 # This file is a shell script that caches the results of configure
19394 # tests run on this system so they can be shared between configure
19395 # scripts and configure runs, see configure's option --config-cache.
19396 # It is not useful on other systems. If it contains results you don't
19397 # want to keep, you may remove or edit it.
19399 # config.status only pays attention to the cache file if you give it
19400 # the --recheck option to rerun configure.
19402 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19403 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19404 # following values.
19408 # The following way of writing the cache mishandles newlines in values,
19409 # but we know of no workaround that is simple, portable, and efficient.
19410 # So, we kill variables containing newlines.
19411 # Ultrix sh set writes to stderr and can't be redirected directly,
19412 # and sets the high bit in the cache file unless we assign to the vars.
19414 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19415 eval ac_val
=\$
$ac_var
19419 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19420 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19423 _ | IFS | as_nl
) ;; #(
19424 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
19425 *) { eval $ac_var=; unset $ac_var;} ;;
19431 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19432 *${as_nl}ac_space
=\
*)
19433 # `set' does not quote correctly, so add quotes: double-quote
19434 # substitution turns \\\\ into \\, and sed turns \\ into \.
19437 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19440 # `set' quotes correctly as required by POSIX, so do not add quotes.
19441 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19450 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19452 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19454 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
19455 if test -w "$cache_file"; then
19456 if test "x$cache_file" != "x/dev/null"; then
19457 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19458 $as_echo "$as_me: updating cache $cache_file" >&6;}
19459 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
19460 cat confcache
>"$cache_file"
19462 case $cache_file in #(
19464 mv -f confcache
"$cache_file"$$
&&
19465 mv -f "$cache_file"$$
"$cache_file" ;; #(
19467 mv -f confcache
"$cache_file" ;;
19472 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19473 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19478 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19479 # Let make expand exec_prefix.
19480 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19482 DEFS
=-DHAVE_CONFIG_H
19487 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19488 # 1. Remove the extension, and $U if already installed.
19489 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
19490 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
19491 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19492 # will be set to the directory where LIBOBJS objects are built.
19493 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19494 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
19496 LIBOBJS
=$ac_libobjs
19498 LTLIBOBJS
=$ac_ltlibobjs
19501 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19502 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
19503 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19505 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
19506 as_fn_error $?
"conditional \"HAVE_PYTHON\" was never defined.
19507 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19509 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
19510 as_fn_error $?
"conditional \"HAVE_GUILE\" was never defined.
19511 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19515 : "${CONFIG_STATUS=./config.status}"
19517 ac_clean_files_save
=$ac_clean_files
19518 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19519 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19520 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19522 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19524 # Generated by $as_me.
19525 # Run this file to recreate the current configuration.
19526 # Compiler output produced by configure, useful for debugging
19527 # configure, is in config.log if it exists.
19530 ac_cs_recheck=false
19533 SHELL=\${CONFIG_SHELL-$SHELL}
19536 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
19537 ## -------------------- ##
19538 ## M4sh Initialization. ##
19539 ## -------------------- ##
19541 # Be more Bourne compatible
19542 DUALCASE
=1; export DUALCASE
# for MKS sh
19543 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
19546 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19547 # is contrary to our usage. Disable this feature.
19548 alias -g '${1+"$@"}'='"$@"'
19549 setopt NO_GLOB_SUBST
19551 case `(set -o) 2>/dev/null` in #(
19563 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19564 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19565 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19566 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19567 # Prefer a ksh shell builtin over an external printf program on Solaris,
19568 # but without wasting forks for bash or zsh.
19569 if test -z "$BASH_VERSION$ZSH_VERSION" \
19570 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19571 as_echo='print
-r --'
19572 as_echo_n='print
-rn --'
19573 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19574 as_echo='printf %s
\n'
19575 as_echo_n='printf %s
'
19577 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19578 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
19579 as_echo_n='/usr
/ucb
/echo -n'
19581 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19582 as_echo_n_body='eval
19586 expr "X$arg" : "X\\(.*\\)$as_nl";
19587 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19589 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
19591 export as_echo_n_body
19592 as_echo_n='sh
-c $as_echo_n_body as_echo
'
19594 export as_echo_body
19595 as_echo='sh
-c $as_echo_body as_echo
'
19598 # The user is always right.
19599 if test "${PATH_SEPARATOR+set}" != set; then
19601 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19602 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19609 # We need space, tab and new line, in precisely that order. Quoting is
19610 # there to prevent editors from complaining about space-tab.
19611 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19612 # splitting by setting IFS to empty value.)
19615 # Find who we are. Look in the path if we contain no directory separator.
19618 *[\\/]* ) as_myself=$0 ;;
19619 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19620 for as_dir in $PATH
19623 test -z "$as_dir" && as_dir=.
19624 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19630 # We did not find ourselves, most probably we were run as `sh COMMAND'
19631 # in which case we are not to be found in the path.
19632 if test "x$as_myself" = x
; then
19635 if test ! -f "$as_myself"; then
19636 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19640 # Unset variables that we do not need and which cause bugs (e.g. in
19641 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19642 # suppresses any "Segmentation fault" message there. '((' could
19643 # trigger a bug in pdksh 5.2.14.
19644 for as_var
in BASH_ENV ENV MAIL MAILPATH
19645 do eval test x\
${$as_var+set} = xset \
19646 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
19659 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
19662 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19663 # ----------------------------------------
19664 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19665 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19666 # script with STATUS, using 1 if that was 0.
19669 as_status
=$1; test $as_status -eq 0 && as_status
=1
19671 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
19672 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19674 $as_echo "$as_me: error: $2" >&2
19675 as_fn_exit
$as_status
19679 # as_fn_set_status STATUS
19680 # -----------------------
19681 # Set $? to STATUS, without forking.
19682 as_fn_set_status
()
19685 } # as_fn_set_status
19687 # as_fn_exit STATUS
19688 # -----------------
19689 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19693 as_fn_set_status
$1
19699 # Portably unset VAR.
19702 { eval $1=; unset $1;}
19704 as_unset
=as_fn_unset
19705 # as_fn_append VAR VALUE
19706 # ----------------------
19707 # Append the text in VALUE to the end of the definition contained in VAR. Take
19708 # advantage of any shell optimizations that allow amortized linear growth over
19709 # repeated appends, instead of the typical quadratic growth present in naive
19711 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
19712 eval 'as_fn_append ()
19723 # as_fn_arith ARG...
19724 # ------------------
19725 # Perform arithmetic evaluation on the ARGs, and store the result in the
19726 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19727 # must be portable across $(()) and expr.
19728 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
19729 eval 'as_fn_arith ()
19736 as_val
=`expr "$@" || test $? -eq 1`
19741 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
19742 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
19748 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19749 as_basename
=basename
19754 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
19760 as_me
=`$as_basename -- "$0" ||
19761 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19762 X"$0" : 'X\(//\)$' \| \
19763 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19765 sed '/^.*\/\([^/][^/]*\)\/*$/{
19779 # Avoid depending upon Character Ranges.
19780 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19781 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19782 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19783 as_cr_digits
='0123456789'
19784 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19786 ECHO_C
= ECHO_N
= ECHO_T
=
19787 case `echo -n x` in #(((((
19789 case `echo 'xy\c'` in
19790 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
19792 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
19799 rm -f conf$$ conf$$.exe conf$$.
file
19800 if test -d conf$$.dir
; then
19801 rm -f conf$$.dir
/conf$$.
file
19804 mkdir conf$$.dir
2>/dev
/null
19806 if (echo >conf$$.
file) 2>/dev
/null
; then
19807 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19809 # ... but there are two gotchas:
19810 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19811 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19812 # In both cases, we have to default to `cp -pR'.
19813 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
19815 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19823 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
19824 rmdir conf$$.dir
2>/dev
/null
19829 # Create "$as_dir" as a directory, including parents if necessary.
19834 -*) as_dir
=.
/$as_dir;;
19836 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
19840 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19841 *) as_qdir
=$as_dir;;
19843 as_dirs
="'$as_qdir' $as_dirs"
19844 as_dir
=`$as_dirname -- "$as_dir" ||
19845 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19846 X"$as_dir" : 'X\(//\)[^/]' \| \
19847 X"$as_dir" : 'X\(//\)$' \| \
19848 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19849 $as_echo X"$as_dir" |
19850 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19854 /^X\(\/\/\)[^/].*/{
19867 test -d "$as_dir" && break
19869 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19870 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
19874 if mkdir
-p .
2>/dev
/null
; then
19875 as_mkdir_p
='mkdir -p "$as_dir"'
19877 test -d .
/-p && rmdir .
/-p
19882 # as_fn_executable_p FILE
19883 # -----------------------
19884 # Test if FILE is an executable regular file.
19885 as_fn_executable_p
()
19887 test -f "$1" && test -x "$1"
19888 } # as_fn_executable_p
19889 as_test_x
='test -x'
19890 as_executable_p
=as_fn_executable_p
19892 # Sed expression to map a string onto a valid CPP name.
19893 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19895 # Sed expression to map a string onto a valid variable name.
19896 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19900 ## ----------------------------------- ##
19901 ## Main body of $CONFIG_STATUS script. ##
19902 ## ----------------------------------- ##
19904 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
19906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19907 # Save the log message, to keep $0 and so on meaningful, and to
19908 # report actual input values of CONFIG_FILES etc. instead of their
19909 # values after options handling.
19911 This file was extended by $as_me, which was
19912 generated by GNU Autoconf 2.69. Invocation command line was
19914 CONFIG_FILES = $CONFIG_FILES
19915 CONFIG_HEADERS = $CONFIG_HEADERS
19916 CONFIG_LINKS = $CONFIG_LINKS
19917 CONFIG_COMMANDS = $CONFIG_COMMANDS
19920 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19925 case $ac_config_files in *"
19926 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
19929 case $ac_config_headers in *"
19930 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
19934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19935 # Files that config.status was made for.
19936 config_files="$ac_config_files"
19937 config_headers="$ac_config_headers"
19938 config_links="$ac_config_links"
19939 config_commands="$ac_config_commands"
19943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19945 \`$as_me' instantiates files and other configuration actions
19946 from templates according to the current configuration. Unless the files
19947 and actions are specified as TAGs, all are instantiated by default.
19949 Usage: $0 [OPTION]... [TAG]...
19951 -h, --help print this help, then exit
19952 -V, --version print version number and configuration settings, then exit
19953 --config print configuration, then exit
19954 -q, --quiet, --silent
19955 do not print progress messages
19956 -d, --debug don't remove temporary files
19957 --recheck update $as_me by reconfiguring in the same conditions
19958 --file=FILE[:TEMPLATE]
19959 instantiate the configuration file FILE
19960 --header=FILE[:TEMPLATE]
19961 instantiate the configuration header FILE
19963 Configuration files:
19966 Configuration headers:
19969 Configuration links:
19972 Configuration commands:
19975 Report bugs to the package provider."
19978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19979 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19982 configured by $0, generated by GNU Autoconf 2.69,
19983 with options \\"\$ac_cs_config\\"
19985 Copyright (C) 2012 Free Software Foundation, Inc.
19986 This config.status script is free software; the Free Software Foundation
19987 gives unlimited permission to copy, distribute and modify it."
19993 test -n "\$AWK" || AWK=awk
19996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19997 # The default lists apply if the user does not specify any file.
20003 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20004 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20008 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20020 # Handling of the options.
20021 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20023 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20024 $as_echo "$ac_cs_version"; exit ;;
20025 --config |
--confi |
--conf |
--con |
--co |
--c )
20026 $as_echo "$ac_cs_config"; exit ;;
20027 --debug |
--debu |
--deb |
--de |
--d |
-d )
20029 --file |
--fil |
--fi |
--f )
20032 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20033 '') as_fn_error $?
"missing file argument" ;;
20035 as_fn_append CONFIG_FILES
" '$ac_optarg'"
20036 ac_need_defaults
=false
;;
20037 --header |
--heade |
--head |
--hea )
20040 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20042 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
20043 ac_need_defaults
=false
;;
20045 # Conflict between --help and --header
20046 as_fn_error $?
"ambiguous option: \`$1'
20047 Try \`$0 --help' for more information.";;
20048 --help |
--hel |
-h )
20049 $as_echo "$ac_cs_usage"; exit ;;
20050 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20051 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20054 # This is an error.
20055 -*) as_fn_error $?
"unrecognized option: \`$1'
20056 Try \`$0 --help' for more information." ;;
20058 *) as_fn_append ac_config_targets
" $1"
20059 ac_need_defaults
=false
;;
20065 ac_configure_extra_args
=
20067 if $ac_cs_silent; then
20069 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20074 if \$ac_cs_recheck; then
20075 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20077 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20078 CONFIG_SHELL='$SHELL'
20079 export CONFIG_SHELL
20084 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20088 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20089 ## Running $as_me. ##
20095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20099 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
20100 GDB_NM_FILE=$GDB_NM_FILE
20104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20106 # Handling of arguments.
20107 for ac_config_target
in $ac_config_targets
20109 case $ac_config_target in
20110 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
20111 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
20112 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
20113 "nm.h") CONFIG_LINKS
="$CONFIG_LINKS nm.h:$GDB_NM_FILE" ;;
20114 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
20115 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20116 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
20117 "gdb-gdb.py") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.py" ;;
20118 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
20119 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
20121 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20126 # If the user did not use the arguments to specify the items to instantiate,
20127 # then the envvar interface is used. Set only those that are not.
20128 # We use the long form for the default assignment because of an extremely
20129 # bizarre bug on SunOS 4.1.3.
20130 if $ac_need_defaults; then
20131 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20132 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20133 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
20134 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20137 # Have a temporary directory for convenience. Make it in the build tree
20138 # simply because there is no reason against having it here, and in addition,
20139 # creating and moving files from /tmp can sometimes cause problems.
20140 # Hook for its removal unless debugging.
20141 # Note that there is a small window in which the directory will not be cleaned:
20142 # after its creation but before its name has been assigned to `$tmp'.
20146 trap 'exit_status=$?
20147 : "${ac_tmp:=$tmp}"
20148 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20150 trap 'as_fn_exit 1' 1 2 13 15
20152 # Create a (secure) tmp directory for tmp files.
20155 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20159 tmp
=.
/conf$$
-$RANDOM
20160 (umask 077 && mkdir
"$tmp")
20161 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
20164 # Set up the scripts for CONFIG_FILES section.
20165 # No need to generate them if there are no CONFIG_FILES.
20166 # This happens for instance with `./config.status config.h'.
20167 if test -n "$CONFIG_FILES"; then
20169 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
20170 ac_cs_awk_getline
=:
20171 ac_cs_awk_pipe_init
=
20172 ac_cs_awk_read_file
='
20173 while ((getline aline < (F[key])) > 0)
20176 ac_cs_awk_pipe_fini
=
20178 ac_cs_awk_getline
=false
20179 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
20180 ac_cs_awk_read_file
='
20182 print "cat " F[key] " &&"
20183 '$ac_cs_awk_pipe_init
20184 # The final `:' finishes the AND list.
20185 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
20187 ac_cr
=`echo X | tr X '\015'`
20188 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20189 # But we know of no other shell where ac_cr would be empty at this
20190 # point, so we can use a bashism as a fallback.
20191 if test "x$ac_cr" = x
; then
20192 eval ac_cr
=\$
\'\\r
\'
20194 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20195 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20198 ac_cs_awk_cr
=$ac_cr
20201 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20204 # Create commands to substitute file output variables.
20206 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20207 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
20208 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
20211 } >conf$
$files.sh
&&
20212 . .
/conf$
$files.sh ||
20213 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
20214 rm -f conf$
$files.sh
20217 echo "cat >conf$$subs.awk <<_ACEOF" &&
20218 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20220 } >conf$$subs.sh ||
20221 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20222 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20224 for ac_last_try in false false false false false :; do
20225 . ./conf$$subs.sh ||
20226 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20228 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20229 if test $ac_delim_n = $ac_delim_num; then
20231 elif $ac_last_try; then
20232 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20234 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20237 rm -f conf$$subs.sh
20239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20240 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
20244 s/^/S["/; s
/!.
*/"]=/
20254 s/\(.\{148\}\)..*/\1/
20256 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
20261 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20268 s/\(.\{148\}\)..*/\1/
20270 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
20274 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20279 ' <conf$$subs.awk | sed '
20284 ' >>$CONFIG_STATUS || ac_write_fail=1
20285 rm -f conf$$subs.awk
20286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20288 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
20289 for (key in S) S_is_set[key] = 1
20291 \$ac_cs_awk_pipe_init
20295 nfields = split(line, field, "@
")
20297 len = length(field[1])
20298 for (i = 2; i < nfields; i++) {
20300 keylen = length(key)
20301 if (S_is_set[key]) {
20303 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20304 len += length(value) + length(field[++i])
20309 if (nfields == 3 && !substed) {
20311 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
20312 \$ac_cs_awk_read_file
20318 \$ac_cs_awk_pipe_fini
20321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20322 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20323 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
20326 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
20327 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
20330 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20331 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
20332 # trailing colons and then remove the whole line if VPATH becomes empty
20333 # (actually we leave an empty line to preserve line numbers).
20334 if test "x
$srcdir" = x.; then
20335 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20354 fi # test -n "$CONFIG_FILES"
20356 # Set up the scripts for CONFIG_HEADERS section.
20357 # No need to generate them if there are no CONFIG_HEADERS.
20358 # This happens for instance with `./config.status Makefile'.
20359 if test -n "$CONFIG_HEADERS"; then
20360 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
20364 # Transform confdefs.h into an awk script `defines.awk', embedded as
20365 # here-document in config.status, that substitutes the proper values into
20366 # config.h.in to produce config.h.
20368 # Create a delimiter string that does not exist in confdefs.h, to ease
20369 # handling of long lines.
20371 for ac_last_try in false false :; do
20372 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
20373 if test -z "$ac_tt"; then
20375 elif $ac_last_try; then
20376 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
20378 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20382 # For the awk script, D is an array of macro values keyed by name,
20383 # likewise P contains macro parameters if any. Preserve backslash
20384 # newline sequences.
20386 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20388 s/.\{148\}/&'"$ac_delim"'/g
20391 s/^[ ]*#[ ]*define[ ][ ]*/ /
20398 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
20400 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
20404 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
20405 D["\
1"]=" \
3\\\\\\n
"\\/p
20407 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
20412 s/.\{148\}/&'"$ac_delim"'/g
20417 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
20420 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
20422 ' <confdefs.h | sed '
20423 s/'"$ac_delim"'/"\\\
20424 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20427 for (key in D) D_is_set[key] = 1
20430 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20432 split(line, arg, " ")
20433 if (arg[1] == "#") {
20437 defundef
= substr
(arg
[1], 2)
20440 split(mac1
, mac2
, "(") #)
20442 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
20443 if (D_is_set
[macro
]) {
20444 # Preserve the white space surrounding the "#".
20445 print prefix
"define", macro P
[macro
] D
[macro
]
20448 # Replace #undef with comments. This is necessary, for example,
20449 # in the case of _POSIX_SOURCE, which is predefined and required
20450 # on some systems where configure will not decide to define it.
20451 if (defundef
== "undef") {
20452 print
"/*", prefix defundef
, macro
, "*/"
20460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20461 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
20462 fi # test -n "$CONFIG_HEADERS"
20465 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
20470 :[FHLC
]) ac_mode
=$ac_tag; continue;;
20472 case $ac_mode$ac_tag in
20474 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
20475 :[FH
]-) ac_tag
=-:-;;
20476 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
20493 -) ac_f
="$ac_tmp/stdin";;
20494 *) # Look for the file first in the build tree, then in the source tree
20495 # (if the path is not absolute). The absolute path cannot be DOS-style,
20496 # because $ac_f cannot contain `:'.
20500 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
20502 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20504 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20505 as_fn_append ac_file_inputs
" '$ac_f'"
20508 # Let's still pretend it is `configure' which instantiates (i.e., don't
20509 # use $as_me), people would be surprised to read:
20510 # /* config.h. Generated by config.status. */
20511 configure_input
='Generated from '`
20512 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20514 if test x
"$ac_file" != x-
; then
20515 configure_input
="$ac_file. $configure_input"
20516 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20517 $as_echo "$as_me: creating $ac_file" >&6;}
20519 # Neutralize special characters interpreted by sed in replacement strings.
20520 case $configure_input in #(
20521 *\
&* |
*\|
* |
*\\* )
20522 ac_sed_conf_input
=`$as_echo "$configure_input" |
20523 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20524 *) ac_sed_conf_input
=$configure_input;;
20528 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
20529 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
20534 ac_dir
=`$as_dirname -- "$ac_file" ||
20535 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20536 X"$ac_file" : 'X\(//\)[^/]' \| \
20537 X"$ac_file" : 'X\(//\)$' \| \
20538 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20539 $as_echo X"$ac_file" |
20540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20544 /^X\(\/\/\)[^/].*/{
20557 as_dir
="$ac_dir"; as_fn_mkdir_p
20561 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20563 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20564 # A ".." for each directory in $ac_dir_suffix.
20565 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20566 case $ac_top_builddir_sub in
20567 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20568 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20571 ac_abs_top_builddir
=$ac_pwd
20572 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
20573 # for backward compatibility:
20574 ac_top_builddir
=$ac_top_build_prefix
20577 .
) # We are building in place.
20579 ac_top_srcdir
=$ac_top_builddir_sub
20580 ac_abs_top_srcdir
=$ac_pwd ;;
20581 [\\/]* | ?
:[\\/]* ) # Absolute name.
20582 ac_srcdir
=$srcdir$ac_dir_suffix;
20583 ac_top_srcdir
=$srcdir
20584 ac_abs_top_srcdir
=$srcdir ;;
20585 *) # Relative name.
20586 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
20587 ac_top_srcdir
=$ac_top_build_prefix$srcdir
20588 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
20590 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
20600 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20601 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
20605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20606 # If the template does not know about datarootdir, expand it.
20607 # FIXME: This hack should be removed a few years after 2.60.
20608 ac_datarootdir_hack
=; ac_datarootdir_seen
=
20619 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20620 *datarootdir
*) ac_datarootdir_seen
=yes;;
20621 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
20622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20623 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20626 ac_datarootdir_hack='
20627 s&@datadir@&$datadir&g
20628 s&@docdir@&$docdir&g
20629 s&@infodir@&$infodir&g
20630 s&@localedir@&$localedir&g
20631 s&@mandir@&$mandir&g
20632 s&\\\${datarootdir}&$datarootdir&g' ;;
20636 # Neutralize VPATH when `$srcdir' = `.'.
20637 # Shell code in configure.ac might set extrasub.
20638 # FIXME: do we really want to maintain this feature?
20639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20640 ac_sed_extra="$ac_vpsub
20643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20645 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20646 s|@configure_input@|
$ac_sed_conf_input|
;t t
20647 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
20648 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
20649 s
&@srcdir@
&$ac_srcdir&;t t
20650 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
20651 s
&@top_srcdir@
&$ac_top_srcdir&;t t
20652 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
20653 s
&@builddir@
&$ac_builddir&;t t
20654 s
&@abs_builddir@
&$ac_abs_builddir&;t t
20655 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
20656 s
&@INSTALL@
&$ac_INSTALL&;t t
20657 $ac_datarootdir_hack
20659 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
20660 if $ac_cs_awk_getline; then
20661 $AWK -f "$ac_tmp/subs.
awk"
20663 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
20665 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
20667 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20668 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
20669 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20670 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
20671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
20672 which seems to be undefined. Please make sure it is defined" >&5
20673 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
20674 which seems to be undefined. Please make sure it is defined" >&2;}
20676 rm -f "$ac_tmp/stdin"
20678 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20679 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20681 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20687 if test x"$ac_file" != x-; then
20689 $as_echo "/* $configure_input */" \
20690 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20691 } >"$ac_tmp/config.h" \
20692 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20693 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20694 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20695 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20698 mv "$ac_tmp/config.h" "$ac_file" \
20699 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20702 $as_echo "/* $configure_input */" \
20703 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20704 || as_fn_error $? "could not create -" "$LINENO" 5
20712 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
20715 # Prefer the file from the source tree if names are identical.
20716 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
20717 ac_source=$srcdir/$ac_source
20720 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
20721 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
20723 if test ! -r "$ac_source"; then
20724 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
20728 # Try a relative symlink, then a hard link, then a copy.
20730 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
20731 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
20733 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
20734 ln "$ac_source" "$ac_file" 2>/dev/null ||
20735 cp -p "$ac_source" "$ac_file" ||
20736 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
20739 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20740 $as_echo "$as_me: executing $ac_file commands" >&6;}
20745 case $ac_file$ac_mode in
20746 "config.h":H) echo > stamp-h ;;
20747 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
20748 "nm.h":L) echo > stamp-nmh ;;
20749 "gcore":F) chmod +x gcore ;;
20757 ac_clean_files=$ac_clean_files_save
20759 test $ac_write_fail = 0 ||
20760 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20763 # configure is writing to config.log, and then calls config.status.
20764 # config.status does its own redirection, appending to config.log.
20765 # Unfortunately, on DOS this fails, as config.log is still kept open
20766 # by configure, so config.status won't be able to
write to it
; its
20767 # output is simply discarded. So we exec the FD to /dev/null,
20768 # effectively closing config.log, so it can be properly (re)opened and
20769 # appended to by config.status. When coming back to configure, we
20770 # need to make the FD available again.
20771 if test "$no_create" != yes; then
20773 ac_config_status_args
=
20774 test "$silent" = yes &&
20775 ac_config_status_args
="$ac_config_status_args --quiet"
20777 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20779 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20780 # would make configure fail if this is the last instruction.
20781 $ac_cs_success || as_fn_exit
1
20785 # CONFIG_SUBDIRS section.
20787 if test "$no_recursion" != yes; then
20789 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
20790 # so they do not pile up.
20791 ac_sub_configure_args
=
20793 eval "set x $ac_configure_args"
20797 if test -n "$ac_prev"; then
20802 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
20803 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
20804 ac_prev
=cache_file
;;
20805 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
20806 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
20809 --config-cache |
-C)
20811 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
20813 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
20815 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
20817 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
20819 --disable-option-checking)
20823 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20825 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
20829 # Always prepend --prefix to ensure using the same prefix
20830 # in subdir configurations.
20831 ac_arg
="--prefix=$prefix"
20833 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20835 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
20838 if test "$silent" = yes; then
20839 ac_sub_configure_args
="--silent $ac_sub_configure_args"
20842 # Always prepend --disable-option-checking to silence warnings, since
20843 # different subdirs can have different --enable and --with options.
20844 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
20847 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
20849 # Do not complain, so a configure script can configure whichever
20850 # parts of a large source tree are present.
20851 test -d "$srcdir/$ac_dir" ||
continue
20853 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20854 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
20855 $as_echo "$ac_msg" >&6
20856 as_dir
="$ac_dir"; as_fn_mkdir_p
20860 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20862 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20863 # A ".." for each directory in $ac_dir_suffix.
20864 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20865 case $ac_top_builddir_sub in
20866 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20867 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20870 ac_abs_top_builddir
=$ac_pwd
20871 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
20872 # for backward compatibility:
20873 ac_top_builddir
=$ac_top_build_prefix
20876 .
) # We are building in place.
20878 ac_top_srcdir
=$ac_top_builddir_sub
20879 ac_abs_top_srcdir
=$ac_pwd ;;
20880 [\\/]* | ?
:[\\/]* ) # Absolute name.
20881 ac_srcdir
=$srcdir$ac_dir_suffix;
20882 ac_top_srcdir
=$srcdir
20883 ac_abs_top_srcdir
=$srcdir ;;
20884 *) # Relative name.
20885 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
20886 ac_top_srcdir
=$ac_top_build_prefix$srcdir
20887 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
20889 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
20894 # Check for guested configure; otherwise get Cygnus style configure.
20895 if test -f "$ac_srcdir/configure.gnu"; then
20896 ac_sub_configure
=$ac_srcdir/configure.gnu
20897 elif test -f "$ac_srcdir/configure"; then
20898 ac_sub_configure
=$ac_srcdir/configure
20899 elif test -f "$ac_srcdir/configure.in"; then
20900 # This should be Cygnus configure.
20901 ac_sub_configure
=$ac_aux_dir/configure
20903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
20904 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20908 # The recursion is here.
20909 if test -n "$ac_sub_configure"; then
20910 # Make the cache file name correct relative to the subdirectory.
20911 case $cache_file in
20912 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
20913 *) # Relative name.
20914 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
20917 { $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
20918 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20919 # The eval makes quoting arguments work.
20920 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20921 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20922 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
20928 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
20929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20930 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}