2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="main.c"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
622 enable_option_checking
=no
624 ac_subst_vars
='LTLIBOBJS
640 HAVE_NATIVE_GCORE_HOST
740 READLINE_TEXI_INCFLAG
769 HAVE_NATIVE_GCORE_TARGET
795 INSTALL_STRIP_PROGRAM
825 MAINTAINER_MODE_FALSE
854 program_transform_name
865 ac_subst_files
='nat_makefile_frag'
867 enable_option_checking
868 enable_maintainer_mode
871 with_separate_debug_dir
873 with_relocated_sources
875 with_auto_load_safe_path
905 enable_source_highlight
912 with_system_gdbinit_dir
914 enable_build_warnings
915 enable_gdb_build_warnings
925 with_libbabeltrace_prefix
926 with_libbabeltrace_type
929 with_libxxhash_prefix
933 ac_precious_vars
='build_alias
955 ac_subdirs_all
='testsuite
958 # Initialize some variables set by options.
960 ac_init_version
=false
961 ac_unrecognized_opts
=
963 # The variables have the same names as the options, with
964 # dashes changed to underlines.
972 program_transform_name
=s
,x
,x
,
980 # Installation directory options.
981 # These are left unexpanded so users can "make install exec_prefix=/foo"
982 # and all the variables that are supposed to be based on exec_prefix
983 # by default will actually change.
984 # Use braces instead of parens because sh, perl, etc. also accept them.
985 # (The list follows the same order as the GNU Coding Standards.)
986 bindir
='${exec_prefix}/bin'
987 sbindir
='${exec_prefix}/sbin'
988 libexecdir
='${exec_prefix}/libexec'
989 datarootdir
='${prefix}/share'
990 datadir
='${datarootdir}'
991 sysconfdir
='${prefix}/etc'
992 sharedstatedir
='${prefix}/com'
993 localstatedir
='${prefix}/var'
994 includedir
='${prefix}/include'
995 oldincludedir
='/usr/include'
996 docdir
='${datarootdir}/doc/${PACKAGE}'
997 infodir
='${datarootdir}/info'
1002 libdir
='${exec_prefix}/lib'
1003 localedir
='${datarootdir}/locale'
1004 mandir
='${datarootdir}/man'
1010 # If the previous option needs an argument, assign it.
1011 if test -n "$ac_prev"; then
1012 eval $ac_prev=\
$ac_option
1018 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1023 # Accept the important Cygnus configure options, so we can diagnose typos.
1025 case $ac_dashdash$ac_option in
1029 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1031 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1032 bindir
=$ac_optarg ;;
1034 -build |
--build |
--buil |
--bui |
--bu)
1035 ac_prev
=build_alias
;;
1036 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1037 build_alias
=$ac_optarg ;;
1039 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1040 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1041 ac_prev
=cache_file
;;
1042 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1043 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1044 cache_file
=$ac_optarg ;;
1046 --config-cache |
-C)
1047 cache_file
=config.cache
;;
1049 -datadir |
--datadir |
--datadi |
--datad)
1051 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1052 datadir
=$ac_optarg ;;
1054 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1055 |
--dataroo |
--dataro |
--datar)
1056 ac_prev
=datarootdir
;;
1057 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1058 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1059 datarootdir
=$ac_optarg ;;
1061 -disable-* |
--disable-*)
1062 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1065 as_fn_error $?
"invalid feature name: $ac_useropt"
1066 ac_useropt_orig
=$ac_useropt
1067 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1068 case $ac_user_opts in
1070 "enable_
$ac_useropt"
1072 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1073 ac_unrecognized_sep
=', ';;
1075 eval enable_
$ac_useropt=no
;;
1077 -docdir |
--docdir |
--docdi |
--doc |
--do)
1079 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1080 docdir
=$ac_optarg ;;
1082 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1084 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1085 dvidir
=$ac_optarg ;;
1087 -enable-* |
--enable-*)
1088 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1089 # Reject names that are not valid shell variable names.
1090 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1091 as_fn_error $?
"invalid feature name: $ac_useropt"
1092 ac_useropt_orig
=$ac_useropt
1093 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094 case $ac_user_opts in
1096 "enable_
$ac_useropt"
1098 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1099 ac_unrecognized_sep
=', ';;
1101 eval enable_
$ac_useropt=\
$ac_optarg ;;
1103 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1104 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1105 |
--exec |
--exe |
--ex)
1106 ac_prev
=exec_prefix
;;
1107 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1108 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1109 |
--exec=* |
--exe=* |
--ex=*)
1110 exec_prefix
=$ac_optarg ;;
1112 -gas |
--gas |
--ga |
--g)
1113 # Obsolete; use --with-gas.
1116 -help |
--help |
--hel |
--he |
-h)
1117 ac_init_help
=long
;;
1118 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1119 ac_init_help
=recursive
;;
1120 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1121 ac_init_help
=short
;;
1123 -host |
--host |
--hos |
--ho)
1124 ac_prev
=host_alias
;;
1125 -host=* |
--host=* |
--hos=* |
--ho=*)
1126 host_alias
=$ac_optarg ;;
1128 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1130 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1132 htmldir
=$ac_optarg ;;
1134 -includedir |
--includedir |
--includedi |
--included |
--include \
1135 |
--includ |
--inclu |
--incl |
--inc)
1136 ac_prev
=includedir
;;
1137 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1138 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1139 includedir
=$ac_optarg ;;
1141 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1143 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1144 infodir
=$ac_optarg ;;
1146 -libdir |
--libdir |
--libdi |
--libd)
1148 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1149 libdir
=$ac_optarg ;;
1151 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1152 |
--libexe |
--libex |
--libe)
1153 ac_prev
=libexecdir
;;
1154 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1155 |
--libexe=* |
--libex=* |
--libe=*)
1156 libexecdir
=$ac_optarg ;;
1158 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1159 ac_prev
=localedir
;;
1160 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1161 localedir
=$ac_optarg ;;
1163 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1164 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1165 ac_prev
=localstatedir
;;
1166 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1167 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1168 localstatedir
=$ac_optarg ;;
1170 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1172 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1173 mandir
=$ac_optarg ;;
1175 -nfp |
--nfp |
--nf)
1176 # Obsolete; use --without-fp.
1179 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1180 |
--no-cr |
--no-c |
-n)
1183 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1184 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1187 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1188 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1189 |
--oldin |
--oldi |
--old |
--ol |
--o)
1190 ac_prev
=oldincludedir
;;
1191 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1192 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1193 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1194 oldincludedir
=$ac_optarg ;;
1196 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1198 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1199 prefix
=$ac_optarg ;;
1201 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1202 |
--program-pre |
--program-pr |
--program-p)
1203 ac_prev
=program_prefix
;;
1204 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1205 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1206 program_prefix
=$ac_optarg ;;
1208 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1209 |
--program-suf |
--program-su |
--program-s)
1210 ac_prev
=program_suffix
;;
1211 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1212 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1213 program_suffix
=$ac_optarg ;;
1215 -program-transform-name |
--program-transform-name \
1216 |
--program-transform-nam |
--program-transform-na \
1217 |
--program-transform-n |
--program-transform- \
1218 |
--program-transform |
--program-transfor \
1219 |
--program-transfo |
--program-transf \
1220 |
--program-trans |
--program-tran \
1221 |
--progr-tra |
--program-tr |
--program-t)
1222 ac_prev
=program_transform_name
;;
1223 -program-transform-name=* |
--program-transform-name=* \
1224 |
--program-transform-nam=* |
--program-transform-na=* \
1225 |
--program-transform-n=* |
--program-transform-=* \
1226 |
--program-transform=* |
--program-transfor=* \
1227 |
--program-transfo=* |
--program-transf=* \
1228 |
--program-trans=* |
--program-tran=* \
1229 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1230 program_transform_name
=$ac_optarg ;;
1232 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1234 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1235 pdfdir
=$ac_optarg ;;
1237 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1239 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1242 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1243 |
-silent |
--silent |
--silen |
--sile |
--sil)
1246 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1248 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1250 sbindir
=$ac_optarg ;;
1252 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1253 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1254 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1256 ac_prev
=sharedstatedir
;;
1257 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1258 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1259 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1261 sharedstatedir
=$ac_optarg ;;
1263 -site |
--site |
--sit)
1265 -site=* |
--site=* |
--sit=*)
1268 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1270 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1271 srcdir
=$ac_optarg ;;
1273 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1274 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1275 ac_prev
=sysconfdir
;;
1276 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1277 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1278 sysconfdir
=$ac_optarg ;;
1280 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1281 ac_prev
=target_alias
;;
1282 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1283 target_alias
=$ac_optarg ;;
1285 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1288 -version |
--version |
--versio |
--versi |
--vers |
-V)
1289 ac_init_version
=: ;;
1292 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1295 as_fn_error $?
"invalid package name: $ac_useropt"
1296 ac_useropt_orig
=$ac_useropt
1297 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298 case $ac_user_opts in
1302 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1303 ac_unrecognized_sep
=', ';;
1305 eval with_
$ac_useropt=\
$ac_optarg ;;
1307 -without-* |
--without-*)
1308 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1311 as_fn_error $?
"invalid package name: $ac_useropt"
1312 ac_useropt_orig
=$ac_useropt
1313 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1314 case $ac_user_opts in
1318 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1319 ac_unrecognized_sep
=', ';;
1321 eval with_
$ac_useropt=no
;;
1324 # Obsolete; use --with-x.
1327 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1328 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1329 ac_prev
=x_includes
;;
1330 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1331 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1332 x_includes
=$ac_optarg ;;
1334 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1335 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1336 ac_prev
=x_libraries
;;
1337 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1338 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1339 x_libraries
=$ac_optarg ;;
1341 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1342 Try \`$0 --help' for more information"
1346 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1347 # Reject names that are not valid shell variable names.
1348 case $ac_envvar in #(
1349 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1350 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1352 eval $ac_envvar=\
$ac_optarg
1353 export $ac_envvar ;;
1356 # FIXME: should be removed in autoconf 3.0.
1357 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1358 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1359 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1360 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1366 if test -n "$ac_prev"; then
1367 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1368 as_fn_error $?
"missing argument to $ac_option"
1371 if test -n "$ac_unrecognized_opts"; then
1372 case $enable_option_checking in
1374 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1375 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1379 # Check all directory arguments for consistency.
1380 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1381 datadir sysconfdir sharedstatedir localstatedir includedir \
1382 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1383 libdir localedir mandir
1385 eval ac_val
=\$
$ac_var
1386 # Remove trailing slashes.
1389 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1390 eval $ac_var=\
$ac_val;;
1392 # Be sure to have absolute directory names.
1394 [\\/$
]* | ?
:[\\/]* ) continue;;
1395 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1397 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1400 # There might be people who depend on the old broken behavior: `$host'
1401 # used to hold the argument of --host etc.
1402 # FIXME: To remove some day.
1405 target
=$target_alias
1407 # FIXME: To remove some day.
1408 if test "x$host_alias" != x
; then
1409 if test "x$build_alias" = x
; then
1410 cross_compiling
=maybe
1411 elif test "x$build_alias" != "x$host_alias"; then
1417 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1419 test "$silent" = yes && exec 6>/dev
/null
1422 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1423 ac_ls_di
=`ls -di .` &&
1424 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1425 as_fn_error $?
"working directory cannot be determined"
1426 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1427 as_fn_error $?
"pwd does not report name of working directory"
1430 # Find the source files, if location was not specified.
1431 if test -z "$srcdir"; then
1432 ac_srcdir_defaulted
=yes
1433 # Try the directory containing this script, then the parent directory.
1434 ac_confdir
=`$as_dirname -- "$as_myself" ||
1435 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1436 X"$as_myself" : 'X\(//\)[^/]' \| \
1437 X"$as_myself" : 'X\(//\)$' \| \
1438 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1439 $as_echo X"$as_myself" |
1440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1458 if test ! -r "$srcdir/$ac_unique_file"; then
1462 ac_srcdir_defaulted
=no
1464 if test ! -r "$srcdir/$ac_unique_file"; then
1465 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1466 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1468 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1470 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1472 # When building in place, set srcdir=.
1473 if test "$ac_abs_confdir" = "$ac_pwd"; then
1476 # Remove unnecessary trailing slashes from srcdir.
1477 # Double slashes in file names in object file debugging info
1478 # mess up M-x gdb in Emacs.
1480 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1482 for ac_var
in $ac_precious_vars; do
1483 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1484 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1485 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1486 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1490 # Report the --help message.
1492 if test "$ac_init_help" = "long"; then
1493 # Omit some internal or obsolete options to make the list less imposing.
1494 # This message is too long to be a string in the A/UX 3.1 sh.
1496 \`configure' configures this package to adapt to many kinds of systems.
1498 Usage: $0 [OPTION]... [VAR=VALUE]...
1500 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1501 VAR=VALUE. See below for descriptions of some of the useful variables.
1503 Defaults for the options are specified in brackets.
1506 -h, --help display this help and exit
1507 --help=short display options specific to this package
1508 --help=recursive display the short help of all the included packages
1509 -V, --version display version information and exit
1510 -q, --quiet, --silent do not print \`checking ...' messages
1511 --cache-file=FILE cache test results in FILE [disabled]
1512 -C, --config-cache alias for \`--cache-file=config.cache'
1513 -n, --no-create do not create output files
1514 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1516 Installation directories:
1517 --prefix=PREFIX install architecture-independent files in PREFIX
1518 [$ac_default_prefix]
1519 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1522 By default, \`make install' will install all the files in
1523 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1524 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1525 for instance \`--prefix=\$HOME'.
1527 For better control, use the options below.
1529 Fine tuning of the installation directories:
1530 --bindir=DIR user executables [EPREFIX/bin]
1531 --sbindir=DIR system admin executables [EPREFIX/sbin]
1532 --libexecdir=DIR program executables [EPREFIX/libexec]
1533 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1534 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1535 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1536 --libdir=DIR object code libraries [EPREFIX/lib]
1537 --includedir=DIR C header files [PREFIX/include]
1538 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1539 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1540 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1541 --infodir=DIR info documentation [DATAROOTDIR/info]
1542 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1543 --mandir=DIR man documentation [DATAROOTDIR/man]
1544 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1545 --htmldir=DIR html documentation [DOCDIR]
1546 --dvidir=DIR dvi documentation [DOCDIR]
1547 --pdfdir=DIR pdf documentation [DOCDIR]
1548 --psdir=DIR ps documentation [DOCDIR]
1554 --program-prefix=PREFIX prepend PREFIX to installed program names
1555 --program-suffix=SUFFIX append SUFFIX to installed program names
1556 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1559 --x-includes=DIR X include files are
in DIR
1560 --x-libraries=DIR X library files are
in DIR
1563 --build=BUILD configure
for building on BUILD
[guessed
]
1564 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1565 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1569 if test -n "$ac_init_help"; then
1574 --disable-option-checking ignore unrecognized
--enable/--with options
1575 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1576 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1577 --enable-maintainer-mode
1578 enable make rules and dependencies not useful
(and
1579 sometimes confusing
) to the casual installer
1580 --enable-plugins Enable support
for plugins
1581 --disable-largefile omit support
for large files
1582 --enable-targets=TARGETS
1583 alternative target configurations
1584 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1585 --disable-gdbmi disable machine-interface
(MI
)
1586 --enable-tui enable full-screen terminal user interface
(TUI
)
1587 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1588 --enable-profiling enable profiling of GDB
1589 --enable-codesign=CERT sign gdb with
'codesign -s CERT'
1590 --disable-rpath do not hardcode runtime library paths
1591 --enable-source-highlight
1592 enable source-highlight
for source listings
1593 --enable-werror treat compile warnings as errors
1594 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1595 --enable-gdb-build-warnings
1596 enable GDB specific build-time compiler warnings
if
1598 --enable-ubsan enable undefined behavior sanitizer
(auto
/yes
/no
)
1599 --enable-sim link gdb with simulator
1600 --enable-libctf Handle .ctf type-info sections
[default
=yes]
1601 --enable-unit-tests Enable the inclusion of unit tests when compiling
1605 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1606 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1607 --with-separate-debug-dir=PATH
1608 look for global separate debug info
in this path
1610 --with-gdb-datadir=PATH
look for global separate data files
in this path
1612 --with-relocated-sources=PATH
1613 automatically relocate this path
for source files
1614 --with-auto-load-dir=PATH
1615 directories from
which to load auto-loaded scripts
1616 [$debugdir:$datadir/auto-load
]
1617 --with-auto-load-safe-path=PATH
1618 directories safe to hold auto-loaded files
1619 [--with-auto-load-dir]
1620 --without-auto-load-safe-path
1621 do not restrict auto-loaded files locations
1622 --with-debuginfod Enable debuginfo lookups with debuginfod
1624 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1625 --with-curses use the curses library instead of the termcap
1627 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1628 --with-bugurl=URL Direct users to URL to report a bug
1629 --with-system-zlib use installed libz
1630 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1631 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1632 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1633 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1634 --with-iconv-bin=PATH specify where to find the iconv program
1635 --with-system-readline use installed readline library
1636 --with-jit-reader-dir=PATH
1637 directory to load the JIT readers from
1638 --with-expat include expat support (auto/yes/no)
1639 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1640 --without-libexpat-prefix don't search
for libexpat
in includedir and libdir
1641 --with-libexpat-type=TYPE
type of library to search
for (auto
/static
/shared
)
1642 --with-mpfr include MPFR support
(auto
/yes
/no
)
1643 --with-libmpfr-prefix[=DIR
] search
for libmpfr
in DIR
/include and DIR
/lib
1644 --without-libmpfr-prefix don
't search for libmpfr in includedir and libdir
1645 --with-libmpfr-type=TYPE type of library to search for (auto/static/shared)
1646 --with-python[=PYTHON] include python support
1647 (auto/yes/no/<python-program>)
1648 --with-python-libdir[=DIR]
1649 search for python's libraries
in DIR
1650 --with-guile[=GUILE
] include guile support
1651 (auto
/yes
/no
/<guile-version
>/<pkg-config-program
>)
1652 --with-intel-pt include Intel Processor Trace support
(auto
/yes
/no
)
1653 --with-libipt-prefix[=DIR
] search
for libipt
in DIR
/include and DIR
/lib
1654 --without-libipt-prefix don
't search for libipt in includedir and libdir
1655 --with-libipt-type=TYPE type of library to search for (auto/static/shared)
1656 --without-included-regex
1657 don't use included regex
; this is the default on
1658 systems with version
2 of the GNU C library
(use
1659 with caution on other system
)
1660 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1661 --with-system-gdbinit=PATH
1662 automatically load a system-wide gdbinit
file
1663 --with-system-gdbinit-dir=PATH
1664 automatically load system-wide gdbinit files from
1666 --with-lzma support lzma compression
(auto
/yes
/no
)
1667 --with-liblzma-prefix[=DIR
] search
for liblzma
in DIR
/include and DIR
/lib
1668 --without-liblzma-prefix don
't search for liblzma in includedir and libdir
1669 --with-liblzma-type=TYPE type of library to search for (auto/static/shared)
1670 --with-tcl directory containing tcl configuration (tclConfig.sh)
1671 --with-tk directory containing tk configuration (tkConfig.sh)
1672 --with-x use the X Window System
1673 --with-babeltrace include babeltrace support (auto/yes/no)
1674 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1675 --without-libbabeltrace-prefix don't search
for libbabeltrace
in includedir and libdir
1676 --with-libbabeltrace-type=TYPE
type of library to search
for (auto
/static
/shared
)
1677 --with-xxhash use libxxhash
for hashing
(faster
) (auto
/yes
/no
)
1678 --with-libxxhash-prefix[=DIR
] search
for libxxhash
in DIR
/include and DIR
/lib
1679 --without-libxxhash-prefix don
't search for libxxhash in includedir and libdir
1680 --with-libxxhash-type=TYPE type of library to search for (auto/static/shared)
1682 Some influential environment variables:
1683 CC C compiler command
1684 CFLAGS C compiler flags
1685 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1686 nonstandard directory <lib dir>
1687 LIBS libraries to pass to the linker, e.g. -l<library>
1688 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1689 you have headers in a nonstandard directory <include dir>
1690 CXX C++ compiler command
1691 CXXFLAGS C++ compiler flags
1693 MAKEINFO Parent configure detects if it is of sufficient version.
1695 Parameters for MAKEINFO.
1696 PKG_CONFIG path to pkg-config utility
1698 directories to add to pkg-config's search path
1700 path overriding pkg-config
's built-in search path
1702 C compiler flags for DEBUGINFOD, overriding pkg-config
1704 linker flags for DEBUGINFOD, overriding pkg-config
1705 YACC The `Yet Another Compiler Compiler' implementation to use.
1706 Defaults to the first program found out of
: `bison -y', `byacc
',
1708 YFLAGS The list of arguments that will be passed by default to
$YACC.
1709 This
script will default YFLAGS to the empty string to avoid a
1710 default value of
`-d' given by some make applications.
1711 XMKMF Path to xmkmf, Makefile generator for X Window System
1713 Use these variables to override the choices made by `configure
' or to help
1714 it to find libraries and programs with nonstandard names/locations.
1716 Report bugs to the package provider.
1721 if test "$ac_init_help" = "recursive"; then
1722 # If there are subdirs, report their specific --help.
1723 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1724 test -d "$ac_dir" ||
1725 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1730 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1732 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.
[\\/]||
'`
1733 # A ".." for each directory in $ac_dir_suffix.
1734 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|
/[^
\\/]*|
/..|g
;s|
/||
'`
1735 case $ac_top_builddir_sub in
1736 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1737 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1740 ac_abs_top_builddir=$ac_pwd
1741 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1742 # for backward compatibility:
1743 ac_top_builddir=$ac_top_build_prefix
1746 .) # We are building in place.
1748 ac_top_srcdir=$ac_top_builddir_sub
1749 ac_abs_top_srcdir=$ac_pwd ;;
1750 [\\/]* | ?:[\\/]* ) # Absolute name.
1751 ac_srcdir=$srcdir$ac_dir_suffix;
1752 ac_top_srcdir=$srcdir
1753 ac_abs_top_srcdir=$srcdir ;;
1755 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1756 ac_top_srcdir=$ac_top_build_prefix$srcdir
1757 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1759 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1761 cd "$ac_dir" || { ac_status=$?; continue; }
1762 # Check for guested configure.
1763 if test -f "$ac_srcdir/configure.gnu"; then
1765 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1766 elif test -f "$ac_srcdir/configure"; then
1768 $SHELL "$ac_srcdir/configure" --help=recursive
1770 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1772 cd "$ac_pwd" || { ac_status=$?; break; }
1776 test -n "$ac_init_help" && exit $ac_status
1777 if $ac_init_version; then
1780 generated by GNU Autoconf 2.69
1782 Copyright (C) 2012 Free Software Foundation, Inc.
1783 This configure script is free software; the Free Software Foundation
1784 gives unlimited permission to copy, distribute and modify it.
1789 ## ------------------------ ##
1790 ## Autoconf initialization. ##
1791 ## ------------------------ ##
1793 # ac_fn_c_try_compile LINENO
1794 # --------------------------
1795 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1796 ac_fn_c_try_compile ()
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 rm -f conftest.$ac_objext
1800 if { { ac_try="$ac_compile"
1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803 *) ac_try_echo=$ac_try;;
1805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806 $as_echo "$ac_try_echo"; } >&5
1807 (eval "$ac_compile") 2>conftest.err
1809 if test -s conftest.err; then
1810 grep -v '^
*+' conftest.err >conftest.er1
1811 cat conftest.er1 >&5
1812 mv -f conftest.er1 conftest.err
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && {
1816 test -z "$ac_c_werror_flag" ||
1817 test ! -s conftest.err
1818 } && test -s conftest.$ac_objext; then :
1821 $as_echo "$as_me: failed program was:" >&5
1822 sed 's
/^
/|
/' conftest.$ac_ext >&5
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827 as_fn_set_status $ac_retval
1829 } # ac_fn_c_try_compile
1831 # ac_fn_cxx_try_compile LINENO
1832 # ----------------------------
1833 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1834 ac_fn_cxx_try_compile ()
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 rm -f conftest.$ac_objext
1838 if { { ac_try="$ac_compile"
1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_compile") 2>conftest.err
1847 if test -s conftest.err; then
1848 grep -v '^
*+' conftest.err >conftest.er1
1849 cat conftest.er1 >&5
1850 mv -f conftest.er1 conftest.err
1852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853 test $ac_status = 0; } && {
1854 test -z "$ac_cxx_werror_flag" ||
1855 test ! -s conftest.err
1856 } && test -s conftest.$ac_objext; then :
1859 $as_echo "$as_me: failed program was:" >&5
1860 sed 's
/^
/|
/' conftest.$ac_ext >&5
1864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1865 as_fn_set_status $ac_retval
1867 } # ac_fn_cxx_try_compile
1869 # ac_fn_c_try_cpp LINENO
1870 # ----------------------
1871 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 if { { ac_try="$ac_cpp conftest.$ac_ext"
1877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878 *) ac_try_echo=$ac_try;;
1880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881 $as_echo "$ac_try_echo"; } >&5
1882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1884 if test -s conftest.err; then
1885 grep -v '^
*+' conftest.err >conftest.er1
1886 cat conftest.er1 >&5
1887 mv -f conftest.er1 conftest.err
1889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890 test $ac_status = 0; } > conftest.i && {
1891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1892 test ! -s conftest.err
1896 $as_echo "$as_me: failed program was:" >&5
1897 sed 's
/^
/|
/' conftest.$ac_ext >&5
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 as_fn_set_status $ac_retval
1906 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1907 # -------------------------------------------------------
1908 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1909 # the include files in INCLUDES and setting the cache variable VAR
1911 ac_fn_c_check_header_mongrel ()
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 if eval \${$3+:} false; then :
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916 $as_echo_n "checking for $2... " >&6; }
1917 if eval \${$3+:} false; then :
1918 $as_echo_n "(cached) " >&6
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1922 $as_echo "$ac_res" >&6; }
1924 # Is the header compilable?
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1926 $as_echo_n "checking $2 usability... " >&6; }
1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h. */
1932 if ac_fn_c_try_compile "$LINENO"; then :
1933 ac_header_compiler=yes
1935 ac_header_compiler=no
1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1939 $as_echo "$ac_header_compiler" >&6; }
1941 # Is the header present?
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1943 $as_echo_n "checking $2 presence... " >&6; }
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1948 if ac_fn_c_try_cpp "$LINENO"; then :
1949 ac_header_preproc=yes
1951 ac_header_preproc=no
1953 rm -f conftest.err conftest.i conftest.$ac_ext
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1955 $as_echo "$ac_header_preproc" >&6; }
1957 # So? What about this header?
1958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1961 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1963 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1967 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1969 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1971 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1973 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1975 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1979 $as_echo_n "checking for $2... " >&6; }
1980 if eval \${$3+:} false; then :
1981 $as_echo_n "(cached) " >&6
1983 eval "$3=\$ac_header_compiler"
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987 $as_echo "$ac_res" >&6; }
1989 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1991 } # ac_fn_c_check_header_mongrel
1993 # ac_fn_c_try_run LINENO
1994 # ----------------------
1995 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1996 # that executables *can* be run.
1999 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2000 if { { ac_try="$ac_link"
2002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2003 *) ac_try_echo=$ac_try;;
2005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2006 $as_echo "$ac_try_echo"; } >&5
2007 (eval "$ac_link") 2>&5
2009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2010 test $ac_status = 0; } && { ac_try='.
/conftest
$ac_exeext'
2011 { { case "(($ac_try" in
2012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2013 *) ac_try_echo=$ac_try;;
2015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2016 $as_echo "$ac_try_echo"; } >&5
2017 (eval "$ac_try") 2>&5
2019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2020 test $ac_status = 0; }; }; then :
2023 $as_echo "$as_me: program exited with status $ac_status" >&5
2024 $as_echo "$as_me: failed program was:" >&5
2025 sed 's
/^
/|
/' conftest.$ac_ext >&5
2027 ac_retval=$ac_status
2029 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2031 as_fn_set_status $ac_retval
2035 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2036 # -------------------------------------------------------
2037 # Tests whether HEADER exists and can be compiled using the include files in
2038 # INCLUDES, setting the cache variable VAR accordingly.
2039 ac_fn_c_check_header_compile ()
2041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2043 $as_echo_n "checking for $2... " >&6; }
2044 if eval \${$3+:} false; then :
2045 $as_echo_n "(cached) " >&6
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2052 if ac_fn_c_try_compile "$LINENO"; then :
2057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061 $as_echo "$ac_res" >&6; }
2062 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2064 } # ac_fn_c_check_header_compile
2066 # ac_fn_c_try_link LINENO
2067 # -----------------------
2068 # Try to link conftest.$ac_ext, and return whether this succeeded.
2071 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2072 rm -f conftest.$ac_objext conftest$ac_exeext
2073 if { { ac_try="$ac_link"
2075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2076 *) ac_try_echo=$ac_try;;
2078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2079 $as_echo "$ac_try_echo"; } >&5
2080 (eval "$ac_link") 2>conftest.err
2082 if test -s conftest.err; then
2083 grep -v '^
*+' conftest.err >conftest.er1
2084 cat conftest.er1 >&5
2085 mv -f conftest.er1 conftest.err
2087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2088 test $ac_status = 0; } && {
2089 test -z "$ac_c_werror_flag" ||
2090 test ! -s conftest.err
2091 } && test -s conftest$ac_exeext && {
2092 test "$cross_compiling" = yes ||
2093 test -x conftest$ac_exeext
2097 $as_echo "$as_me: failed program was:" >&5
2098 sed 's
/^
/|
/' conftest.$ac_ext >&5
2102 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2103 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2104 # interfere with the next link command; also delete a directory that is
2105 # left behind by Apple's compiler. We
do this before executing the actions.
2106 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2107 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2108 as_fn_set_status
$ac_retval
2110 } # ac_fn_c_try_link
2112 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2113 # --------------------------------------------
2114 # Tries to find the compile-time value of EXPR in a program that includes
2115 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2117 ac_fn_c_compute_int
()
2119 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2120 if test "$cross_compiling" = yes; then
2121 # Depending upon the size, compute the lo and hi bounds.
2122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2123 /* end confdefs.h. */
2128 static int test_array [1 - 2 * !(($2) >= 0)];
2130 return test_array [0];
2136 if ac_fn_c_try_compile
"$LINENO"; then :
2139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h. */
2145 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2147 return test_array [0];
2153 if ac_fn_c_try_compile
"$LINENO"; then :
2154 ac_hi
=$ac_mid; break
2156 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2157 if test $ac_lo -le $ac_mid; then
2161 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2163 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2167 /* end confdefs.h. */
2172 static int test_array [1 - 2 * !(($2) < 0)];
2174 return test_array [0];
2180 if ac_fn_c_try_compile
"$LINENO"; then :
2183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2184 /* end confdefs.h. */
2189 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2191 return test_array [0];
2197 if ac_fn_c_try_compile
"$LINENO"; then :
2198 ac_lo
=$ac_mid; break
2200 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2201 if test $ac_mid -le $ac_hi; then
2205 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2207 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2212 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2214 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2215 # Binary search between lo and hi bounds.
2216 while test "x$ac_lo" != "x$ac_hi"; do
2217 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h. */
2224 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2226 return test_array [0];
2232 if ac_fn_c_try_compile
"$LINENO"; then :
2235 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2237 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2240 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h. */
2247 static long int longval () { return $2; }
2248 static unsigned long int ulongval () { return $2; }
2255 FILE *f = fopen ("conftest.val", "w");
2260 long int i = longval ();
2263 fprintf (f, "%ld", i);
2267 unsigned long int i = ulongval ();
2270 fprintf (f, "%lu", i);
2272 /* Do not output a trailing newline, as this causes \r\n confusion
2273 on some platforms. */
2274 return ferror (f) || fclose (f) != 0;
2280 if ac_fn_c_try_run
"$LINENO"; then :
2281 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2285 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2286 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2290 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2291 as_fn_set_status
$ac_retval
2293 } # ac_fn_c_compute_int
2295 # ac_fn_c_check_func LINENO FUNC VAR
2296 # ----------------------------------
2297 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2298 ac_fn_c_check_func
()
2300 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2302 $as_echo_n "checking for $2... " >&6; }
2303 if eval \
${$3+:} false
; then :
2304 $as_echo_n "(cached) " >&6
2306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2307 /* end confdefs.h. */
2308 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2310 #define $2 innocuous_$2
2312 /* System header to define __stub macros and hopefully few prototypes,
2313 which can conflict with char $2 (); below.
2314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2315 <limits.h> exists even on freestanding compilers. */
2318 # include <limits.h>
2320 # include <assert.h>
2325 /* Override any GCC internal prototype to avoid an error.
2326 Use char because int might match the return type of a GCC
2327 builtin and then its argument prototype would still apply. */
2332 /* The GNU C library defines this for functions which it implements
2333 to always fail with ENOSYS. Some functions are actually named
2334 something starting with __ and the normal name is an alias. */
2335 #if defined __stub_$2 || defined __stub___$2
2347 if ac_fn_c_try_link
"$LINENO"; then :
2352 rm -f core conftest.err conftest.
$ac_objext \
2353 conftest
$ac_exeext conftest.
$ac_ext
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2357 $as_echo "$ac_res" >&6; }
2358 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2360 } # ac_fn_c_check_func
2362 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2363 # -------------------------------------------
2364 # Tests whether TYPE exists after having included INCLUDES, setting cache
2365 # variable VAR accordingly.
2366 ac_fn_c_check_type
()
2368 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2370 $as_echo_n "checking for $2... " >&6; }
2371 if eval \
${$3+:} false
; then :
2372 $as_echo_n "(cached) " >&6
2375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2376 /* end confdefs.h. */
2387 if ac_fn_c_try_compile
"$LINENO"; then :
2388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2389 /* end confdefs.h. */
2400 if ac_fn_c_try_compile
"$LINENO"; then :
2405 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2407 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2411 $as_echo "$ac_res" >&6; }
2412 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2414 } # ac_fn_c_check_type
2416 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2417 # ---------------------------------------------
2418 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2420 ac_fn_c_check_decl
()
2422 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2423 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2424 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2426 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2427 if eval \
${$3+:} false
; then :
2428 $as_echo_n "(cached) " >&6
2430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2431 /* end confdefs.h. */
2436 #ifndef $as_decl_name
2438 (void) $as_decl_use;
2440 (void) $as_decl_name;
2448 if ac_fn_c_try_compile
"$LINENO"; then :
2453 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2457 $as_echo "$ac_res" >&6; }
2458 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2460 } # ac_fn_c_check_decl
2462 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2463 # ----------------------------------------------------
2464 # Tries to find if the field MEMBER exists in type AGGR, after including
2465 # INCLUDES, setting cache variable VAR accordingly.
2466 ac_fn_c_check_member
()
2468 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2470 $as_echo_n "checking for $2.$3... " >&6; }
2471 if eval \
${$4+:} false
; then :
2472 $as_echo_n "(cached) " >&6
2474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2475 /* end confdefs.h. */
2487 if ac_fn_c_try_compile
"$LINENO"; then :
2490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2491 /* end confdefs.h. */
2497 if (sizeof ac_aggr.$3)
2503 if ac_fn_c_try_compile
"$LINENO"; then :
2508 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2510 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2514 $as_echo "$ac_res" >&6; }
2515 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2517 } # ac_fn_c_check_member
2519 # ac_fn_cxx_try_link LINENO
2520 # -------------------------
2521 # Try to link conftest.$ac_ext, and return whether this succeeded.
2522 ac_fn_cxx_try_link
()
2524 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2525 rm -f conftest.
$ac_objext conftest
$ac_exeext
2526 if { { ac_try
="$ac_link"
2528 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2529 *) ac_try_echo=$ac_try;;
2531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2532 $as_echo "$ac_try_echo"; } >&5
2533 (eval "$ac_link") 2>conftest.err
2535 if test -s conftest.err; then
2536 grep -v '^ *+' conftest.err >conftest.er1
2537 cat conftest.er1 >&5
2538 mv -f conftest.er1 conftest.err
2540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2541 test $ac_status = 0; } && {
2542 test -z "$ac_cxx_werror_flag" ||
2543 test ! -s conftest.err
2544 } && test -s conftest$ac_exeext && {
2545 test "$cross_compiling" = yes ||
2546 test -x conftest$ac_exeext
2550 $as_echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2555 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2556 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2557 # interfere with the next link command; also delete a directory that is
2558 # left behind by Apple's compiler. We do this before executing the actions.
2559 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2560 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2561 as_fn_set_status $ac_retval
2563 } # ac_fn_cxx_try_link
2565 # ac_fn_cxx_check_func LINENO FUNC VAR
2566 # ------------------------------------
2567 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2568 ac_fn_cxx_check_func ()
2570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2572 $as_echo_n "checking for $2... " >&6; }
2573 if eval \${$3+:} false; then :
2574 $as_echo_n "(cached) " >&6
2576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2577 /* end confdefs.h. */
2578 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2580 #define $2 innocuous_$2
2582 /* System header to define __stub macros and hopefully few prototypes,
2583 which can conflict with char $2 (); below.
2584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2585 <limits.h> exists even on freestanding compilers. */
2588 # include <limits.h>
2590 # include <assert.h>
2595 /* Override any GCC internal prototype to avoid an error.
2596 Use char because int might match the return type of a GCC
2597 builtin and then its argument prototype would still apply. */
2602 /* The GNU C library defines this for functions which it implements
2603 to always fail with ENOSYS. Some functions are actually named
2604 something starting with __ and the normal name is an alias. */
2605 #if defined __stub_$2 || defined __stub___$2
2617 if ac_fn_cxx_try_link "$LINENO"; then :
2622 rm -f core conftest.err conftest.$ac_objext \
2623 conftest$ac_exeext conftest.$ac_ext
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2627 $as_echo "$ac_res" >&6; }
2628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2630 } # ac_fn_cxx_check_func
2631 cat >config.log <<_ACEOF
2632 This file contains any messages produced by compilers while
2633 running configure, to aid debugging if configure makes a mistake.
2635 It was created by $as_me, which was
2636 generated by GNU Autoconf 2.69. Invocation command line was
2648 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2649 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2650 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2651 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2652 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2654 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2655 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2657 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2658 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2659 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2660 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2661 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2662 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2663 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 test -z "$as_dir" && as_dir=.
2672 $as_echo "PATH: $as_dir"
2688 # Keep a trace of the command line.
2689 # Strip out --no-create and --no-recursion so they do not pile up.
2690 # Strip out --silent because we don't want to record it for future runs.
2691 # Also quote any args containing shell meta-characters.
2692 # Make two passes to allow for proper duplicate-argument suppression.
2696 ac_must_keep_next=false
2702 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2703 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2704 | -silent | --silent | --silen | --sile | --sil)
2707 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2710 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2712 as_fn_append ac_configure_args1 " '$ac_arg'"
2713 if test $ac_must_keep_next = true; then
2714 ac_must_keep_next=false # Got value, back to normal.
2717 *=* | --config-cache | -C | -disable-* | --disable-* \
2718 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2719 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2720 | -with-* | --with-* | -without-* | --without-* | --x)
2721 case "$ac_configure_args0 " in
2722 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2725 -* ) ac_must_keep_next=true ;;
2728 as_fn_append ac_configure_args " '$ac_arg'"
2733 { ac_configure_args0=; unset ac_configure_args0;}
2734 { ac_configure_args1=; unset ac_configure_args1;}
2736 # When interrupted or exit'd, cleanup temporary files, and complete
2737 # config.log. We remove comments because anyway the quotes in there
2738 # would cause problems or look ugly.
2739 # WARNING: Use '\'' to represent an apostrophe within the trap.
2740 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2741 trap 'exit_status=$?
2742 # Save into config.log some information that might help in debugging.
2746 $as_echo "## ---------------- ##
2747 ## Cache variables. ##
2748 ## ---------------- ##"
2750 # The following way of writing the cache mishandles newlines in values,
2752 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2753 eval ac_val=\$$ac_var
2757 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2758 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2761 _ | IFS | as_nl) ;; #(
2762 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2763 *) { eval $ac_var=; unset $ac_var;} ;;
2768 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2769 *${as_nl}ac_space=\ *)
2771 "s/'\''/'\''\\\\'\'''\''/g;
2772 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2775 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2782 $as_echo "## ----------------- ##
2783 ## Output variables. ##
2784 ## ----------------- ##"
2786 for ac_var in $ac_subst_vars
2788 eval ac_val=\$$ac_var
2790 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2792 $as_echo "$ac_var='\''$ac_val'\''"
2796 if test -n "$ac_subst_files"; then
2797 $as_echo "## ------------------- ##
2798 ## File substitutions. ##
2799 ## ------------------- ##"
2801 for ac_var in $ac_subst_files
2803 eval ac_val=\$$ac_var
2805 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2807 $as_echo "$ac_var='\''$ac_val'\''"
2812 if test -s confdefs.h; then
2813 $as_echo "## ----------- ##
2820 test "$ac_signal" != 0 &&
2821 $as_echo "$as_me: caught signal $ac_signal"
2822 $as_echo "$as_me: exit $exit_status"
2824 rm -f core *.core core.conftest.* &&
2825 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2828 for ac_signal in 1 2 13 15; do
2829 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2833 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2834 rm -f -r conftest* confdefs.h
2836 $as_echo "/* confdefs.h */" > confdefs.h
2838 # Predefined preprocessor variables.
2840 cat >>confdefs.h <<_ACEOF
2841 #define PACKAGE_NAME "$PACKAGE_NAME"
2844 cat >>confdefs.h <<_ACEOF
2845 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2848 cat >>confdefs.h <<_ACEOF
2849 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2852 cat >>confdefs.h <<_ACEOF
2853 #define PACKAGE_STRING "$PACKAGE_STRING"
2856 cat >>confdefs.h <<_ACEOF
2857 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2860 cat >>confdefs.h <<_ACEOF
2861 #define PACKAGE_URL "$PACKAGE_URL"
2865 # Let the site file select an alternate cache file if it wants to.
2866 # Prefer an explicitly selected file to automatically selected ones.
2869 if test -n "$CONFIG_SITE"; then
2870 # We do not want a PATH search for config.site.
2871 case $CONFIG_SITE in #((
2872 -*) ac_site_file1=./$CONFIG_SITE;;
2873 */*) ac_site_file1=$CONFIG_SITE;;
2874 *) ac_site_file1=./$CONFIG_SITE;;
2876 elif test "x$prefix" != xNONE; then
2877 ac_site_file1=$prefix/share/config.site
2878 ac_site_file2=$prefix/etc/config.site
2880 ac_site_file1=$ac_default_prefix/share/config.site
2881 ac_site_file2=$ac_default_prefix/etc/config.site
2883 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2885 test "x$ac_site_file" = xNONE && continue
2886 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2888 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2889 sed 's/^/| /' "$ac_site_file" >&5
2891 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2893 as_fn_error $? "failed to load site
script $ac_site_file
2894 See \
`config.log' for more details" "$LINENO" 5; }
2898 if test -r "$cache_file"; then
2899 # Some versions of bash will fail to source /dev/null (special files
2900 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2901 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2903 $as_echo "$as_me: loading cache $cache_file" >&6;}
2905 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2906 *) . "./$cache_file";;
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2911 $as_echo "$as_me: creating cache $cache_file" >&6;}
2915 as_fn_append ac_header_list " stdlib.h"
2916 as_fn_append ac_header_list " unistd.h"
2917 as_fn_append ac_header_list " sys/param.h"
2918 # Check that the precious variables saved in the cache have kept the same
2920 ac_cache_corrupted=false
2921 for ac_var in $ac_precious_vars; do
2922 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2923 eval ac_new_set=\$ac_env_${ac_var}_set
2924 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2925 eval ac_new_val=\$ac_env_${ac_var}_value
2926 case $ac_old_set,$ac_new_set in
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2929 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2930 ac_cache_corrupted=: ;;
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2933 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2934 ac_cache_corrupted=: ;;
2937 if test "x$ac_old_val" != "x$ac_new_val"; then
2938 # differences in whitespace do not lead to failure.
2939 ac_old_val_w=`echo x
$ac_old_val`
2940 ac_new_val_w=`echo x
$ac_new_val`
2941 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2943 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2944 ac_cache_corrupted=:
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2947 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2948 eval $ac_var=\$ac_old_val
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2951 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2953 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2956 # Pass precious variables to config.status.
2957 if test "$ac_new_set" = set; then
2959 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2960 *) ac_arg=$ac_var=$ac_new_val ;;
2962 case " $ac_configure_args " in
2963 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2964 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2968 if $ac_cache_corrupted; then
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2972 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2973 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2975 ## -------------------- ##
2976 ## Main body of script. ##
2977 ## -------------------- ##
2980 ac_cpp='$CPP $CPPFLAGS'
2981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2990 ac_config_headers="$ac_config_headers config.h:config.in"
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2994 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2995 # Check whether --enable-maintainer-mode was given.
2996 if test "${enable_maintainer_mode+set}" = set; then :
2997 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2999 USE_MAINTAINER_MODE=no
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3003 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3004 if test $USE_MAINTAINER_MODE = yes; then
3005 MAINTAINER_MODE_TRUE=
3006 MAINTAINER_MODE_FALSE='#'
3008 MAINTAINER_MODE_TRUE='#'
3009 MAINTAINER_MODE_FALSE=
3012 MAINT=$MAINTAINER_MODE_TRUE
3017 ac_cpp='$CPP $CPPFLAGS'
3018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3021 if test -n "$ac_tool_prefix"; then
3022 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3023 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3025 $as_echo_n "checking for $ac_word... " >&6; }
3026 if ${ac_cv_prog_CC+:} false; then :
3027 $as_echo_n "(cached) " >&6
3029 if test -n "$CC"; then
3030 ac_cv_prog_CC="$CC" # Let the user override the test.
3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 test -z "$as_dir" && as_dir=.
3037 for ac_exec_ext in '' $ac_executable_extensions; do
3038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3039 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3050 if test -n "$CC"; then
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3052 $as_echo "$CC" >&6; }
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055 $as_echo "no" >&6; }
3060 if test -z "$ac_cv_prog_CC"; then
3062 # Extract the first word of "gcc", so it can be a program name with args.
3063 set dummy gcc; ac_word=$2
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3065 $as_echo_n "checking for $ac_word... " >&6; }
3066 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3067 $as_echo_n "(cached) " >&6
3069 if test -n "$ac_ct_CC"; then
3070 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 test -z "$as_dir" && as_dir=.
3077 for ac_exec_ext in '' $ac_executable_extensions; do
3078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3079 ac_cv_prog_ac_ct_CC="gcc"
3080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3089 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3090 if test -n "$ac_ct_CC"; then
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3092 $as_echo "$ac_ct_CC" >&6; }
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3095 $as_echo "no" >&6; }
3098 if test "x$ac_ct_CC" = x; then
3101 case $cross_compiling:$ac_tool_warned in
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3105 ac_tool_warned=yes ;;
3113 if test -z "$CC"; then
3114 if test -n "$ac_tool_prefix"; then
3115 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3116 set dummy ${ac_tool_prefix}cc; ac_word=$2
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3118 $as_echo_n "checking for $ac_word... " >&6; }
3119 if ${ac_cv_prog_CC+:} false; then :
3120 $as_echo_n "(cached) " >&6
3122 if test -n "$CC"; then
3123 ac_cv_prog_CC="$CC" # Let the user override the test.
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129 test -z "$as_dir" && as_dir=.
3130 for ac_exec_ext in '' $ac_executable_extensions; do
3131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3132 ac_cv_prog_CC="${ac_tool_prefix}cc"
3133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3143 if test -n "$CC"; then
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3145 $as_echo "$CC" >&6; }
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148 $as_echo "no" >&6; }
3154 if test -z "$CC"; then
3155 # Extract the first word of "cc", so it can be a program name with args.
3156 set dummy cc; ac_word=$2
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3158 $as_echo_n "checking for $ac_word... " >&6; }
3159 if ${ac_cv_prog_CC+:} false; then :
3160 $as_echo_n "(cached) " >&6
3162 if test -n "$CC"; then
3163 ac_cv_prog_CC="$CC" # Let the user override the test.
3166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 test -z "$as_dir" && as_dir=.
3171 for ac_exec_ext in '' $ac_executable_extensions; do
3172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3173 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3174 ac_prog_rejected=yes
3178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3185 if test $ac_prog_rejected = yes; then
3186 # We found a bogon in the path, so make sure we never use it.
3187 set dummy $ac_cv_prog_CC
3189 if test $# != 0; then
3190 # We chose a different compiler from the bogus one.
3191 # However, it has the same basename, so the bogon will be chosen
3192 # first if we set CC to just the basename; use the full file name.
3194 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3200 if test -n "$CC"; then
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3202 $as_echo "$CC" >&6; }
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205 $as_echo "no" >&6; }
3210 if test -z "$CC"; then
3211 if test -n "$ac_tool_prefix"; then
3212 for ac_prog in cl.exe
3214 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3215 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3217 $as_echo_n "checking for $ac_word... " >&6; }
3218 if ${ac_cv_prog_CC+:} false; then :
3219 $as_echo_n "(cached) " >&6
3221 if test -n "$CC"; then
3222 ac_cv_prog_CC="$CC" # Let the user override the test.
3224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228 test -z "$as_dir" && as_dir=.
3229 for ac_exec_ext in '' $ac_executable_extensions; do
3230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3231 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3242 if test -n "$CC"; then
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3244 $as_echo "$CC" >&6; }
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3247 $as_echo "no" >&6; }
3251 test -n "$CC" && break
3254 if test -z "$CC"; then
3256 for ac_prog in cl.exe
3258 # Extract the first word of "$ac_prog", so it can be a program name with args.
3259 set dummy $ac_prog; ac_word=$2
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3261 $as_echo_n "checking for $ac_word... " >&6; }
3262 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3263 $as_echo_n "(cached) " >&6
3265 if test -n "$ac_ct_CC"; then
3266 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272 test -z "$as_dir" && as_dir=.
3273 for ac_exec_ext in '' $ac_executable_extensions; do
3274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3275 ac_cv_prog_ac_ct_CC="$ac_prog"
3276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3285 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3286 if test -n "$ac_ct_CC"; then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3288 $as_echo "$ac_ct_CC" >&6; }
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291 $as_echo "no" >&6; }
3295 test -n "$ac_ct_CC" && break
3298 if test "x$ac_ct_CC" = x; then
3301 case $cross_compiling:$ac_tool_warned in
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3305 ac_tool_warned=yes ;;
3314 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3316 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3317 See \
`config.log' for more details" "$LINENO" 5; }
3319 # Provide some information about the compiler.
3320 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3323 for ac_option in --version -v -V -qversion; do
3324 { { ac_try="$ac_compiler $ac_option >&5"
3326 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3327 *) ac_try_echo
=$ac_try;;
3329 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3330 $as_echo "$ac_try_echo"; } >&5
3331 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3333 if test -s conftest.err
; then
3335 ... rest of stderr output deleted ...
3336 10q' conftest.err
>conftest.er1
3337 cat conftest.er1
>&5
3339 rm -f conftest.er1 conftest.err
3340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3341 test $ac_status = 0; }
3344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3345 /* end confdefs.h. */
3355 ac_clean_files_save
=$ac_clean_files
3356 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3357 # Try to create an executable without -o first, disregard a.out.
3358 # It will help us diagnose broken compilers, and finding out an intuition
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3361 $as_echo_n "checking whether the C compiler works... " >&6; }
3362 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3364 # The possible output files:
3365 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3368 for ac_file
in $ac_files
3371 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3372 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3377 if { { ac_try
="$ac_link_default"
3379 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3383 $as_echo "$ac_try_echo"; } >&5
3384 (eval "$ac_link_default") 2>&5
3386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3387 test $ac_status = 0; }; then :
3388 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3389 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3390 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3391 # so that the user can short-circuit this test for compilers unknown to
3393 for ac_file in $ac_files ''
3395 test -f "$ac_file" || continue
3397 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3400 # We found the default executable, but exeext='' is most
3404 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3406 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3408 # We set ac_cv_exeext here because the later test for it is not
3409 # safe: cross compilers may not add the suffix if given an `-o'
3410 # argument, so we may need to know it at that point already.
3411 # Even if this section looks crufty: it has the advantage of
3418 test "$ac_cv_exeext" = no && ac_cv_exeext=
3423 if test -z "$ac_file"; then :
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425 $as_echo "no" >&6; }
3426 $as_echo "$as_me: failed program was:" >&5
3427 sed 's
/^
/|
/' conftest.$ac_ext >&5
3429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3430 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3431 as_fn_error 77 "C compiler cannot create executables
3432 See \`config.log
' for more details" "$LINENO" 5; }
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3435 $as_echo "yes" >&6; }
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3438 $as_echo_n "checking for C compiler default output file name... " >&6; }
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3440 $as_echo "$ac_file" >&6; }
3441 ac_exeext=$ac_cv_exeext
3443 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3444 ac_clean_files=$ac_clean_files_save
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3446 $as_echo_n "checking for suffix of executables... " >&6; }
3447 if { { ac_try="$ac_link"
3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450 *) ac_try_echo=$ac_try;;
3452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3453 $as_echo "$ac_try_echo"; } >&5
3454 (eval "$ac_link") 2>&5
3456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3457 test $ac_status = 0; }; then :
3458 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3459 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3460 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3462 for ac_file
in conftest.exe conftest conftest.
*; do
3463 test -f "$ac_file" ||
continue
3465 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3466 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3474 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3475 See \`config.log' for more details" "$LINENO" 5; }
3477 rm -f conftest conftest
$ac_cv_exeext
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3479 $as_echo "$ac_cv_exeext" >&6; }
3481 rm -f conftest.
$ac_ext
3482 EXEEXT
=$ac_cv_exeext
3484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3485 /* end confdefs.h. */
3490 FILE *f = fopen ("conftest.out", "w");
3491 return ferror (f) || fclose (f) != 0;
3497 ac_clean_files
="$ac_clean_files conftest.out"
3498 # Check that the compiler produces executables we can run. If not, either
3499 # the compiler is broken, or we cross compile.
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3501 $as_echo_n "checking whether we are cross compiling... " >&6; }
3502 if test "$cross_compiling" != yes; then
3503 { { ac_try
="$ac_link"
3505 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3506 *) ac_try_echo=$ac_try;;
3508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3509 $as_echo "$ac_try_echo"; } >&5
3510 (eval "$ac_link") 2>&5
3512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3513 test $ac_status = 0; }
3514 if { ac_try='./conftest$ac_cv_exeext'
3515 { { case "(($ac_try" in
3516 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3517 *) ac_try_echo
=$ac_try;;
3519 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3520 $as_echo "$ac_try_echo"; } >&5
3521 (eval "$ac_try") 2>&5
3523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3524 test $ac_status = 0; }; }; then
3527 if test "$cross_compiling" = maybe
; then
3530 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3532 as_fn_error $?
"cannot run C compiled programs.
3533 If you meant to cross compile, use \`--host'.
3534 See \`config.log' for more details" "$LINENO" 5; }
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3539 $as_echo "$cross_compiling" >&6; }
3541 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3542 ac_clean_files
=$ac_clean_files_save
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3544 $as_echo_n "checking for suffix of object files... " >&6; }
3545 if ${ac_cv_objext+:} false
; then :
3546 $as_echo_n "(cached) " >&6
3548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3559 rm -f conftest.o conftest.obj
3560 if { { ac_try
="$ac_compile"
3562 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3563 *) ac_try_echo=$ac_try;;
3565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3566 $as_echo "$ac_try_echo"; } >&5
3567 (eval "$ac_compile") 2>&5
3569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3570 test $ac_status = 0; }; then :
3571 for ac_file in conftest.o conftest.obj conftest.*; do
3572 test -f "$ac_file" || continue;
3574 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3575 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3580 $as_echo "$as_me: failed program was:" >&5
3581 sed 's/^/| /' conftest.$ac_ext >&5
3583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3585 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3586 See \
`config.log' for more details" "$LINENO" 5; }
3588 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3591 $as_echo "$ac_cv_objext" >&6; }
3592 OBJEXT=$ac_cv_objext
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3595 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3596 if ${ac_cv_c_compiler_gnu+:} false; then :
3597 $as_echo_n "(cached) " >&6
3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600 /* end confdefs.h. */
3613 if ac_fn_c_try_compile "$LINENO"; then :
3618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3619 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3623 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3624 if test $ac_compiler_gnu = yes; then
3629 ac_test_CFLAGS=${CFLAGS+set}
3630 ac_save_CFLAGS=$CFLAGS
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3632 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3633 if ${ac_cv_prog_cc_g+:} false; then :
3634 $as_echo_n "(cached) " >&6
3636 ac_save_c_werror_flag=$ac_c_werror_flag
3637 ac_c_werror_flag=yes
3640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641 /* end confdefs.h. */
3651 if ac_fn_c_try_compile "$LINENO"; then :
3655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656 /* end confdefs.h. */
3666 if ac_fn_c_try_compile "$LINENO"; then :
3669 ac_c_werror_flag=$ac_save_c_werror_flag
3671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3672 /* end confdefs.h. */
3682 if ac_fn_c_try_compile "$LINENO"; then :
3685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3690 ac_c_werror_flag=$ac_save_c_werror_flag
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3693 $as_echo "$ac_cv_prog_cc_g" >&6; }
3694 if test "$ac_test_CFLAGS" = set; then
3695 CFLAGS=$ac_save_CFLAGS
3696 elif test $ac_cv_prog_cc_g = yes; then
3697 if test "$GCC" = yes; then
3703 if test "$GCC" = yes; then
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3710 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3711 if ${ac_cv_prog_cc_c89+:} false; then :
3712 $as_echo_n "(cached) " >&6
3714 ac_cv_prog_cc_c89=no
3716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3717 /* end confdefs.h. */
3721 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3722 struct buf { int x; };
3723 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3724 static char *e (p, i)
3730 static char *f (char * (*g) (char **, int), char **p, ...)
3735 s = g (p, va_arg (v,int));
3740 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3741 function prototypes and stuff, but not '\xHH' hex character constants.
3742 These don't provoke an error unfortunately, instead are silently treated
3743 as 'x'. The following induces an error, until -std is added to get
3744 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3745 array size at least. It's necessary to write '\x00'==0 to get something
3746 that's true only with -std. */
3747 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3749 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3750 inside strings and character constants. */
3752 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3754 int test (int i, double x);
3755 struct s1 {int (*f) (int a);};
3756 struct s2 {int (*f) (double a);};
3757 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3763 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3768 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3769 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3771 CC="$ac_save_CC $ac_arg"
3772 if ac_fn_c_try_compile "$LINENO"; then :
3773 ac_cv_prog_cc_c89=$ac_arg
3775 rm -f core conftest.err conftest.$ac_objext
3776 test "x$ac_cv_prog_cc_c89" != "xno" && break
3778 rm -f conftest.$ac_ext
3783 case "x$ac_cv_prog_cc_c89" in
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3786 $as_echo "none needed" >&6; } ;;
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3789 $as_echo "unsupported" >&6; } ;;
3791 CC="$CC $ac_cv_prog_cc_c89"
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3793 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3795 if test "x$ac_cv_prog_cc_c89" != xno; then :
3800 ac_cpp='$CPP $CPPFLAGS'
3801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3806 ac_cpp='$CXXCPP $CPPFLAGS'
3807 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3808 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3809 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3810 if test -z "$CXX"; then
3811 if test -n "$CCC"; then
3814 if test -n "$ac_tool_prefix"; then
3815 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3817 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3818 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3820 $as_echo_n "checking for $ac_word... " >&6; }
3821 if ${ac_cv_prog_CXX+:} false; then :
3822 $as_echo_n "(cached) " >&6
3824 if test -n "$CXX"; then
3825 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3831 test -z "$as_dir" && as_dir=.
3832 for ac_exec_ext in '' $ac_executable_extensions; do
3833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3834 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3845 if test -n "$CXX"; then
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3847 $as_echo "$CXX" >&6; }
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3850 $as_echo "no" >&6; }
3854 test -n "$CXX" && break
3857 if test -z "$CXX"; then
3859 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3861 # Extract the first word of "$ac_prog", so it can be a program name with args.
3862 set dummy $ac_prog; ac_word=$2
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3864 $as_echo_n "checking for $ac_word... " >&6; }
3865 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3866 $as_echo_n "(cached) " >&6
3868 if test -n "$ac_ct_CXX"; then
3869 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875 test -z "$as_dir" && as_dir=.
3876 for ac_exec_ext in '' $ac_executable_extensions; do
3877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3878 ac_cv_prog_ac_ct_CXX="$ac_prog"
3879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3888 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3889 if test -n "$ac_ct_CXX"; then
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3891 $as_echo "$ac_ct_CXX" >&6; }
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3894 $as_echo "no" >&6; }
3898 test -n "$ac_ct_CXX" && break
3901 if test "x$ac_ct_CXX" = x; then
3904 case $cross_compiling:$ac_tool_warned in
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3908 ac_tool_warned=yes ;;
3916 # Provide some information about the compiler.
3917 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3920 for ac_option in --version -v -V -qversion; do
3921 { { ac_try="$ac_compiler $ac_option >&5"
3923 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3924 *) ac_try_echo
=$ac_try;;
3926 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3927 $as_echo "$ac_try_echo"; } >&5
3928 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3930 if test -s conftest.err
; then
3932 ... rest of stderr output deleted ...
3933 10q' conftest.err
>conftest.er1
3934 cat conftest.er1
>&5
3936 rm -f conftest.er1 conftest.err
3937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3938 test $ac_status = 0; }
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3942 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3943 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3944 $as_echo_n "(cached) " >&6
3946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3947 /* end confdefs.h. */
3960 if ac_fn_cxx_try_compile
"$LINENO"; then :
3965 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3966 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3970 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3971 if test $ac_compiler_gnu = yes; then
3976 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3977 ac_save_CXXFLAGS
=$CXXFLAGS
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3979 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3980 if ${ac_cv_prog_cxx_g+:} false
; then :
3981 $as_echo_n "(cached) " >&6
3983 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3984 ac_cxx_werror_flag
=yes
3987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3988 /* end confdefs.h. */
3998 if ac_fn_cxx_try_compile
"$LINENO"; then :
3999 ac_cv_prog_cxx_g
=yes
4002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h. */
4013 if ac_fn_cxx_try_compile
"$LINENO"; then :
4016 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4019 /* end confdefs.h. */
4029 if ac_fn_cxx_try_compile
"$LINENO"; then :
4030 ac_cv_prog_cxx_g
=yes
4032 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4034 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4036 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4037 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4040 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4041 if test "$ac_test_CXXFLAGS" = set; then
4042 CXXFLAGS
=$ac_save_CXXFLAGS
4043 elif test $ac_cv_prog_cxx_g = yes; then
4044 if test "$GXX" = yes; then
4050 if test "$GXX" = yes; then
4057 ac_cpp
='$CPP $CPPFLAGS'
4058 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4059 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4060 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4065 ac_cpp
='$CPP $CPPFLAGS'
4066 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4067 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4068 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4070 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4071 # On Suns, sometimes $CPP names a directory.
4072 if test -n "$CPP" && test -d "$CPP"; then
4075 if test -z "$CPP"; then
4076 if ${ac_cv_prog_CPP+:} false
; then :
4077 $as_echo_n "(cached) " >&6
4079 # Double quotes because CPP needs to be expanded
4080 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4083 for ac_c_preproc_warn_flag
in '' yes
4085 # Use a header file that comes with gcc, so configuring glibc
4086 # with a fresh cross-compiler works.
4087 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4088 # <limits.h> exists even on freestanding compilers.
4089 # On the NeXT, cc -E runs the code through the compiler's parser,
4090 # not just through cpp. "Syntax error" is here to catch this case.
4091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h. */
4094 # include <limits.h>
4096 # include <assert.h>
4100 if ac_fn_c_try_cpp
"$LINENO"; then :
4103 # Broken: fails on valid input.
4106 rm -f conftest.err conftest.i conftest.
$ac_ext
4108 # OK, works on sane cases. Now check whether nonexistent headers
4109 # can be detected and how.
4110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4112 #include <ac_nonexistent.h>
4114 if ac_fn_c_try_cpp
"$LINENO"; then :
4115 # Broken: success on invalid input.
4118 # Passes both tests.
4122 rm -f conftest.err conftest.i conftest.
$ac_ext
4125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4126 rm -f conftest.i conftest.err conftest.
$ac_ext
4127 if $ac_preproc_ok; then :
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4140 $as_echo "$CPP" >&6; }
4142 for ac_c_preproc_warn_flag
in '' yes
4144 # Use a header file that comes with gcc, so configuring glibc
4145 # with a fresh cross-compiler works.
4146 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4147 # <limits.h> exists even on freestanding compilers.
4148 # On the NeXT, cc -E runs the code through the compiler's parser,
4149 # not just through cpp. "Syntax error" is here to catch this case.
4150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4151 /* end confdefs.h. */
4153 # include <limits.h>
4155 # include <assert.h>
4159 if ac_fn_c_try_cpp
"$LINENO"; then :
4162 # Broken: fails on valid input.
4165 rm -f conftest.err conftest.i conftest.
$ac_ext
4167 # OK, works on sane cases. Now check whether nonexistent headers
4168 # can be detected and how.
4169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h. */
4171 #include <ac_nonexistent.h>
4173 if ac_fn_c_try_cpp
"$LINENO"; then :
4174 # Broken: success on invalid input.
4177 # Passes both tests.
4181 rm -f conftest.err conftest.i conftest.
$ac_ext
4184 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4185 rm -f conftest.i conftest.err conftest.
$ac_ext
4186 if $ac_preproc_ok; then :
4189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4191 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4192 See \`config.log' for more details" "$LINENO" 5; }
4196 ac_cpp
='$CPP $CPPFLAGS'
4197 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4198 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4199 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4203 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4204 if ${ac_cv_path_GREP+:} false
; then :
4205 $as_echo_n "(cached) " >&6
4207 if test -z "$GREP"; then
4208 ac_path_GREP_found
=false
4209 # Loop through the user's path and test for each of PROGNAME-LIST
4210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4211 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4214 test -z "$as_dir" && as_dir
=.
4215 for ac_prog
in grep ggrep
; do
4216 for ac_exec_ext
in '' $ac_executable_extensions; do
4217 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4218 as_fn_executable_p
"$ac_path_GREP" ||
continue
4219 # Check for GNU ac_path_GREP and select it if it is found.
4220 # Check for GNU $ac_path_GREP
4221 case `"$ac_path_GREP" --version 2>&1` in
4223 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4226 $as_echo_n 0123456789 >"conftest.in"
4229 cat "conftest.in" "conftest.in" >"conftest.tmp"
4230 mv "conftest.tmp" "conftest.in"
4231 cp "conftest.in" "conftest.nl"
4232 $as_echo 'GREP' >> "conftest.nl"
4233 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4234 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4235 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4236 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4237 # Best one so far, save it but keep looking for a better one
4238 ac_cv_path_GREP
="$ac_path_GREP"
4239 ac_path_GREP_max
=$ac_count
4241 # 10*(2^10) chars as input seems more than enough
4242 test $ac_count -gt 10 && break
4244 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4247 $ac_path_GREP_found && break 3
4252 if test -z "$ac_cv_path_GREP"; then
4253 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4256 ac_cv_path_GREP
=$GREP
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4261 $as_echo "$ac_cv_path_GREP" >&6; }
4262 GREP
="$ac_cv_path_GREP"
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4266 $as_echo_n "checking for egrep... " >&6; }
4267 if ${ac_cv_path_EGREP+:} false
; then :
4268 $as_echo_n "(cached) " >&6
4270 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4271 then ac_cv_path_EGREP
="$GREP -E"
4273 if test -z "$EGREP"; then
4274 ac_path_EGREP_found
=false
4275 # Loop through the user's path and test for each of PROGNAME-LIST
4276 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4277 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4280 test -z "$as_dir" && as_dir
=.
4281 for ac_prog
in egrep; do
4282 for ac_exec_ext
in '' $ac_executable_extensions; do
4283 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4284 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4285 # Check for GNU ac_path_EGREP and select it if it is found.
4286 # Check for GNU $ac_path_EGREP
4287 case `"$ac_path_EGREP" --version 2>&1` in
4289 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4292 $as_echo_n 0123456789 >"conftest.in"
4295 cat "conftest.in" "conftest.in" >"conftest.tmp"
4296 mv "conftest.tmp" "conftest.in"
4297 cp "conftest.in" "conftest.nl"
4298 $as_echo 'EGREP' >> "conftest.nl"
4299 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4300 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4301 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4302 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4303 # Best one so far, save it but keep looking for a better one
4304 ac_cv_path_EGREP
="$ac_path_EGREP"
4305 ac_path_EGREP_max
=$ac_count
4307 # 10*(2^10) chars as input seems more than enough
4308 test $ac_count -gt 10 && break
4310 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4313 $ac_path_EGREP_found && break 3
4318 if test -z "$ac_cv_path_EGREP"; then
4319 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4322 ac_cv_path_EGREP
=$EGREP
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4328 $as_echo "$ac_cv_path_EGREP" >&6; }
4329 EGREP
="$ac_cv_path_EGREP"
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4333 $as_echo_n "checking for ANSI C header files... " >&6; }
4334 if ${ac_cv_header_stdc+:} false
; then :
4335 $as_echo_n "(cached) " >&6
4337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4338 /* end confdefs.h. */
4352 if ac_fn_c_try_compile
"$LINENO"; then :
4353 ac_cv_header_stdc
=yes
4355 ac_cv_header_stdc
=no
4357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4359 if test $ac_cv_header_stdc = yes; then
4360 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4362 /* end confdefs.h. */
4366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4367 $EGREP "memchr" >/dev
/null
2>&1; then :
4370 ac_cv_header_stdc
=no
4376 if test $ac_cv_header_stdc = yes; then
4377 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4384 $EGREP "free" >/dev
/null
2>&1; then :
4387 ac_cv_header_stdc
=no
4393 if test $ac_cv_header_stdc = yes; then
4394 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4395 if test "$cross_compiling" = yes; then :
4398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4399 /* end confdefs.h. */
4402 #if ((' ' & 0x0FF) == 0x020)
4403 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4404 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4406 # define ISLOWER(c) \
4407 (('a' <= (c) && (c) <= 'i') \
4408 || ('j' <= (c) && (c) <= 'r') \
4409 || ('s' <= (c) && (c) <= 'z'))
4410 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4413 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4418 for (i = 0; i < 256; i++)
4419 if (XOR (islower (i), ISLOWER (i))
4420 || toupper (i) != TOUPPER (i))
4425 if ac_fn_c_try_run
"$LINENO"; then :
4428 ac_cv_header_stdc
=no
4430 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4431 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4437 $as_echo "$ac_cv_header_stdc" >&6; }
4438 if test $ac_cv_header_stdc = yes; then
4440 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4444 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4445 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4446 inttypes.h stdint.h unistd.h
4448 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4449 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4451 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4452 cat >>confdefs.h
<<_ACEOF
4453 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4462 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4463 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4470 if test "$MINIX" = yes; then
4472 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4475 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4478 $as_echo "#define _MINIX 1" >>confdefs.h
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4484 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4485 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4486 $as_echo_n "(cached) " >&6
4488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h. */
4491 # define __EXTENSIONS__ 1
4492 $ac_includes_default
4501 if ac_fn_c_try_compile
"$LINENO"; then :
4502 ac_cv_safe_to_define___extensions__
=yes
4504 ac_cv_safe_to_define___extensions__
=no
4506 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4509 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4510 test $ac_cv_safe_to_define___extensions__ = yes &&
4511 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4513 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4515 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4517 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4519 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4523 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4524 if test -f "$ac_dir/install-sh"; then
4526 ac_install_sh
="$ac_aux_dir/install-sh -c"
4528 elif test -f "$ac_dir/install.sh"; then
4530 ac_install_sh
="$ac_aux_dir/install.sh -c"
4532 elif test -f "$ac_dir/shtool"; then
4534 ac_install_sh
="$ac_aux_dir/shtool install -c"
4538 if test -z "$ac_aux_dir"; then
4539 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4542 # These three variables are undocumented and unsupported,
4543 # and are intended to be withdrawn in a future Autoconf release.
4544 # They can cause serious problems if a builder's source tree is in a directory
4545 # whose full name contains unusual characters.
4546 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4547 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4548 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4551 # Make sure we can run config.sub.
4552 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4553 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4556 $as_echo_n "checking build system type... " >&6; }
4557 if ${ac_cv_build+:} false
; then :
4558 $as_echo_n "(cached) " >&6
4560 ac_build_alias
=$build_alias
4561 test "x$ac_build_alias" = x
&&
4562 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4563 test "x$ac_build_alias" = x
&&
4564 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4565 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4566 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4570 $as_echo "$ac_cv_build" >&6; }
4571 case $ac_cv_build in
4573 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4576 ac_save_IFS
=$IFS; IFS
='-'
4582 # Remember, the first character of IFS is used to create $*,
4583 # except with old shells:
4586 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4590 $as_echo_n "checking host system type... " >&6; }
4591 if ${ac_cv_host+:} false
; then :
4592 $as_echo_n "(cached) " >&6
4594 if test "x$host_alias" = x
; then
4595 ac_cv_host
=$ac_cv_build
4597 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4598 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4603 $as_echo "$ac_cv_host" >&6; }
4606 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4609 ac_save_IFS
=$IFS; IFS
='-'
4615 # Remember, the first character of IFS is used to create $*,
4616 # except with old shells:
4619 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4623 $as_echo_n "checking target system type... " >&6; }
4624 if ${ac_cv_target+:} false
; then :
4625 $as_echo_n "(cached) " >&6
4627 if test "x$target_alias" = x
; then
4628 ac_cv_target
=$ac_cv_host
4630 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4631 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4636 $as_echo "$ac_cv_target" >&6; }
4637 case $ac_cv_target in
4639 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4641 target
=$ac_cv_target
4642 ac_save_IFS
=$IFS; IFS
='-'
4648 # Remember, the first character of IFS is used to create $*,
4649 # except with old shells:
4652 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4655 # The aliases save the names the user supplied, while $host etc.
4656 # will get canonicalized.
4657 test -n "$target_alias" &&
4658 test "$program_prefix$program_suffix$program_transform_name" = \
4660 program_prefix
=${target_alias}-
4662 # The tests for host and target for $enable_largefile require
4667 # As the $enable_largefile decision depends on --enable-plugins we must set it
4668 # even in directories otherwise not depending on the $plugins option.
4672 for ac_header
in dlfcn.h
4674 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4676 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
4677 cat >>confdefs.h
<<_ACEOF
4678 #define HAVE_DLFCN_H 1
4685 for ac_header
in windows.h
4687 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4689 if test "x$ac_cv_header_windows_h" = xyes
; then :
4690 cat >>confdefs.h
<<_ACEOF
4691 #define HAVE_WINDOWS_H 1
4699 # Check whether --enable-plugins was given.
4700 if test "${enable_plugins+set}" = set; then :
4701 enableval
=$enable_plugins; case "${enableval}" in
4704 if test "$maybe_plugins" != "yes" ; then
4705 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4709 plugins
=$maybe_plugins
4713 if test "$plugins" = "yes"; then
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4715 $as_echo_n "checking for library containing dlsym... " >&6; }
4716 if ${ac_cv_search_dlsym+:} false
; then :
4717 $as_echo_n "(cached) " >&6
4719 ac_func_search_save_LIBS
=$LIBS
4720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h. */
4723 /* Override any GCC internal prototype to avoid an error.
4724 Use char because int might match the return type of a GCC
4725 builtin and then its argument prototype would still apply. */
4738 for ac_lib
in '' dl
; do
4739 if test -z "$ac_lib"; then
4740 ac_res
="none required"
4743 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4745 if ac_fn_c_try_link
"$LINENO"; then :
4746 ac_cv_search_dlsym
=$ac_res
4748 rm -f core conftest.err conftest.
$ac_objext \
4750 if ${ac_cv_search_dlsym+:} false
; then :
4754 if ${ac_cv_search_dlsym+:} false
; then :
4757 ac_cv_search_dlsym
=no
4760 LIBS
=$ac_func_search_save_LIBS
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4763 $as_echo "$ac_cv_search_dlsym" >&6; }
4764 ac_res
=$ac_cv_search_dlsym
4765 if test "$ac_res" != no
; then :
4766 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4774 sparc-
*-solaris*|i?
86-*-solaris*)
4775 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
4776 # were mutually exclusive until Solaris 11.3. Without procfs support,
4777 # the bfd/ elf module cannot provide certain routines such as
4778 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
4779 # explicitly requested large-file support through the
4780 # --enable-largefile switch, disable large-file support in favor of
4783 # Check if <sys/procfs.h> is incompatible with large-file support.
4784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4785 /* end confdefs.h. */
4786 #define _FILE_OFFSET_BITS 64
4787 #define _STRUCTURED_PROC 1
4788 #include <sys/procfs.h>
4797 if ac_fn_c_try_compile
"$LINENO"; then :
4798 acx_cv_procfs_lfs
=yes
4800 acx_cv_procfs_lfs
=no
4802 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4804 # Forcefully disable large-file support only if necessary, gdb is in
4806 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
4807 -a -d $srcdir/..
/gdb
-a "$enable_gdb" != no
; then
4808 : ${enable_largefile="no"}
4809 if test "$plugins" = yes; then
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4811 plugin support disabled; require large-file support which is incompatible with GDB." >&5
4812 $as_echo "$as_me: WARNING:
4813 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
4818 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
4819 # benefit of g++ 9+ which predefines it on Solaris.
4820 if test "$enable_largefile" = no
; then
4821 LARGEFILE_CPPFLAGS
="-U_FILE_OFFSET_BITS"
4827 # Check whether --enable-largefile was given.
4828 if test "${enable_largefile+set}" = set; then :
4829 enableval
=$enable_largefile;
4832 if test "$enable_largefile" != no
; then
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4835 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4836 if ${ac_cv_sys_largefile_CC+:} false
; then :
4837 $as_echo_n "(cached) " >&6
4839 ac_cv_sys_largefile_CC
=no
4840 if test "$GCC" != yes; then
4843 # IRIX 6.2 and later do not support large files by default,
4844 # so use the C compiler's -n32 option if that helps.
4845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4846 /* end confdefs.h. */
4847 #include <sys/types.h>
4848 /* Check that off_t can represent 2**63 - 1 correctly.
4849 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4850 since some C++ compilers masquerading as C compilers
4851 incorrectly reject 9223372036854775807. */
4852 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4853 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4854 && LARGE_OFF_T % 2147483647 == 1)
4864 if ac_fn_c_try_compile
"$LINENO"; then :
4867 rm -f core conftest.err conftest.
$ac_objext
4869 if ac_fn_c_try_compile
"$LINENO"; then :
4870 ac_cv_sys_largefile_CC
=' -n32'; break
4872 rm -f core conftest.err conftest.
$ac_objext
4876 rm -f conftest.
$ac_ext
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4880 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4881 if test "$ac_cv_sys_largefile_CC" != no
; then
4882 CC
=$CC$ac_cv_sys_largefile_CC
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4886 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4887 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4888 $as_echo_n "(cached) " >&6
4891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4893 #include <sys/types.h>
4894 /* Check that off_t can represent 2**63 - 1 correctly.
4895 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4896 since some C++ compilers masquerading as C compilers
4897 incorrectly reject 9223372036854775807. */
4898 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4899 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4900 && LARGE_OFF_T % 2147483647 == 1)
4910 if ac_fn_c_try_compile
"$LINENO"; then :
4911 ac_cv_sys_file_offset_bits
=no
; break
4913 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4915 /* end confdefs.h. */
4916 #define _FILE_OFFSET_BITS 64
4917 #include <sys/types.h>
4918 /* Check that off_t can represent 2**63 - 1 correctly.
4919 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4920 since some C++ compilers masquerading as C compilers
4921 incorrectly reject 9223372036854775807. */
4922 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4923 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4924 && LARGE_OFF_T % 2147483647 == 1)
4934 if ac_fn_c_try_compile
"$LINENO"; then :
4935 ac_cv_sys_file_offset_bits
=64; break
4937 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4938 ac_cv_sys_file_offset_bits
=unknown
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4943 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4944 case $ac_cv_sys_file_offset_bits in #(
4947 cat >>confdefs.h
<<_ACEOF
4948 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4953 if test $ac_cv_sys_file_offset_bits = unknown
; then
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4955 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4956 if ${ac_cv_sys_large_files+:} false
; then :
4957 $as_echo_n "(cached) " >&6
4960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4961 /* end confdefs.h. */
4962 #include <sys/types.h>
4963 /* Check that off_t can represent 2**63 - 1 correctly.
4964 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4965 since some C++ compilers masquerading as C compilers
4966 incorrectly reject 9223372036854775807. */
4967 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4968 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4969 && LARGE_OFF_T % 2147483647 == 1)
4979 if ac_fn_c_try_compile
"$LINENO"; then :
4980 ac_cv_sys_large_files
=no
; break
4982 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4984 /* end confdefs.h. */
4985 #define _LARGE_FILES 1
4986 #include <sys/types.h>
4987 /* Check that off_t can represent 2**63 - 1 correctly.
4988 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4989 since some C++ compilers masquerading as C compilers
4990 incorrectly reject 9223372036854775807. */
4991 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4992 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4993 && LARGE_OFF_T % 2147483647 == 1)
5003 if ac_fn_c_try_compile
"$LINENO"; then :
5004 ac_cv_sys_large_files
=1; break
5006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5007 ac_cv_sys_large_files
=unknown
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5012 $as_echo "$ac_cv_sys_large_files" >&6; }
5013 case $ac_cv_sys_large_files in #(
5016 cat >>confdefs.h
<<_ACEOF
5017 #define _LARGE_FILES $ac_cv_sys_large_files
5028 # Expand $ac_aux_dir to an absolute path.
5029 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
5031 if test x
"${install_sh+set}" != xset
; then
5034 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
5036 install_sh
="\${SHELL} $am_aux_dir/install-sh"
5040 # Installed binaries are usually stripped using 'strip' when the user
5041 # run "make install-strip". However 'strip' might not be the right
5042 # tool to use in cross-compilation environments, therefore Automake
5043 # will honor the 'STRIP' environment variable to overrule this program.
5044 if test "$cross_compiling" != no
; then
5045 if test -n "$ac_tool_prefix"; then
5046 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5047 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049 $as_echo_n "checking for $ac_word... " >&6; }
5050 if ${ac_cv_prog_STRIP+:} false
; then :
5051 $as_echo_n "(cached) " >&6
5053 if test -n "$STRIP"; then
5054 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5056 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5060 test -z "$as_dir" && as_dir
=.
5061 for ac_exec_ext
in '' $ac_executable_extensions; do
5062 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5063 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5073 STRIP
=$ac_cv_prog_STRIP
5074 if test -n "$STRIP"; then
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5076 $as_echo "$STRIP" >&6; }
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079 $as_echo "no" >&6; }
5084 if test -z "$ac_cv_prog_STRIP"; then
5086 # Extract the first word of "strip", so it can be a program name with args.
5087 set dummy strip
; ac_word
=$2
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5089 $as_echo_n "checking for $ac_word... " >&6; }
5090 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
5091 $as_echo_n "(cached) " >&6
5093 if test -n "$ac_ct_STRIP"; then
5094 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5096 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5100 test -z "$as_dir" && as_dir
=.
5101 for ac_exec_ext
in '' $ac_executable_extensions; do
5102 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5103 ac_cv_prog_ac_ct_STRIP
="strip"
5104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5113 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5114 if test -n "$ac_ct_STRIP"; then
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5116 $as_echo "$ac_ct_STRIP" >&6; }
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119 $as_echo "no" >&6; }
5122 if test "x$ac_ct_STRIP" = x
; then
5125 case $cross_compiling:$ac_tool_warned in
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5129 ac_tool_warned
=yes ;;
5134 STRIP
="$ac_cv_prog_STRIP"
5138 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
5142 for ac_dir
in ..
"$srcdir"/..
; do
5143 if test -f "$ac_dir/install-sh"; then
5145 ac_install_sh
="$ac_aux_dir/install-sh -c"
5147 elif test -f "$ac_dir/install.sh"; then
5149 ac_install_sh
="$ac_aux_dir/install.sh -c"
5151 elif test -f "$ac_dir/shtool"; then
5153 ac_install_sh
="$ac_aux_dir/shtool install -c"
5157 if test -z "$ac_aux_dir"; then
5158 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
5161 # These three variables are undocumented and unsupported,
5162 # and are intended to be withdrawn in a future Autoconf release.
5163 # They can cause serious problems if a builder's source tree is in a directory
5164 # whose full name contains unusual characters.
5165 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5166 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5167 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5171 # Set build, build_cpu, build_vendor and build_os.
5174 # Set host, host_cpu, host_vendor, and host_os.
5177 # Set target, target_cpu, target_vendor, and target_os.
5180 test "$program_prefix" != NONE
&&
5181 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
5182 # Use a double $ so make ignores it.
5183 test "$program_suffix" != NONE
&&
5184 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
5185 # Double any \ or $.
5186 # By default was `s,x,x', remove it if useless.
5187 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
5188 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
5191 # We require a C++11 compiler. Check if one is available, and if
5192 # necessary, set CXX_DIALECT to some -std=xxx switch.
5194 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5196 ac_cpp
='$CXXCPP $CPPFLAGS'
5197 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5198 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5199 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5203 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5204 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5205 $as_echo_n "(cached) " >&6
5207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5208 /* end confdefs.h. */
5211 // If the compiler admits that it is not ready for C++11, why torture it?
5212 // Hopefully, this will speed up the test.
5216 #error "This is not a C++ compiler"
5218 #elif __cplusplus < 201103L
5220 #error "This is not a C++11 compiler"
5227 namespace test_static_assert
5230 template <typename T>
5233 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5238 namespace test_final_override
5246 struct Derived : public Base
5248 virtual void f() override {}
5253 namespace test_double_right_angle_brackets
5256 template < typename T >
5259 typedef check<void> single_type;
5260 typedef check<check<void>> double_type;
5261 typedef check<check<check<void>>> triple_type;
5262 typedef check<check<check<check<void>>>> quadruple_type;
5266 namespace test_decltype
5279 namespace test_type_deduction
5282 template < typename T1, typename T2 >
5285 static const bool value = false;
5288 template < typename T >
5289 struct is_same<T, T>
5291 static const bool value = true;
5294 template < typename T1, typename T2 >
5296 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5302 test(const int c, volatile int v)
5304 static_assert(is_same<int, decltype(0)>::value == true, "");
5305 static_assert(is_same<int, decltype(c)>::value == false, "");
5306 static_assert(is_same<int, decltype(v)>::value == false, "");
5309 auto sumi = ac + av + 'x';
5310 auto sumf = ac + av + 1.0;
5311 static_assert(is_same<int, decltype(ac)>::value == true, "");
5312 static_assert(is_same<int, decltype(av)>::value == true, "");
5313 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5314 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5315 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5316 return (sumf > 0.0) ? sumi : add(c, v);
5321 namespace test_noexcept
5324 int f() { return 0; }
5325 int g() noexcept { return 0; }
5327 static_assert(noexcept(f()) == false, "");
5328 static_assert(noexcept(g()) == true, "");
5332 namespace test_constexpr
5335 template < typename CharT >
5336 unsigned long constexpr
5337 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5339 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5342 template < typename CharT >
5343 unsigned long constexpr
5344 strlen_c(const CharT *const s) noexcept
5346 return strlen_c_r(s, 0UL);
5349 static_assert(strlen_c("") == 0UL, "");
5350 static_assert(strlen_c("1") == 1UL, "");
5351 static_assert(strlen_c("example") == 7UL, "");
5352 static_assert(strlen_c("another\0example") == 7UL, "");
5356 namespace test_rvalue_references
5362 static constexpr int value = N;
5365 answer<1> f(int&) { return answer<1>(); }
5366 answer<2> f(const int&) { return answer<2>(); }
5367 answer<3> f(int&&) { return answer<3>(); }
5374 static_assert(decltype(f(i))::value == 1, "");
5375 static_assert(decltype(f(c))::value == 2, "");
5376 static_assert(decltype(f(0))::value == 3, "");
5381 namespace test_uniform_initialization
5386 static const int zero {};
5387 static const int one {1};
5390 static_assert(test::zero == 0, "");
5391 static_assert(test::one == 1, "");
5395 namespace test_lambdas
5401 auto lambda1 = [](){};
5402 auto lambda2 = lambda1;
5410 auto a = [](int i, int j){ return i + j; }(1, 2);
5411 auto b = []() -> int { return '0'; }();
5412 auto c = [=](){ return a + b; }();
5413 auto d = [&](){ return c; }();
5414 auto e = [a, &b](int x) mutable {
5415 const auto identity = [](int y){ return y; };
5416 for (auto i = 0; i < a; ++i)
5418 return x + identity(a + b);
5420 return a + b + c + d + e;
5426 const auto nullary = [](){ return 0; };
5427 const auto unary = [](int x){ return x; };
5428 using nullary_t = decltype(nullary);
5429 using unary_t = decltype(unary);
5430 const auto higher1st = [](nullary_t f){ return f(); };
5431 const auto higher2nd = [unary](nullary_t f1){
5432 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5434 return higher1st(nullary) + higher2nd(nullary)(unary);
5439 namespace test_variadic_templates
5445 template <int N0, int... N1toN>
5446 struct sum<N0, N1toN...>
5448 static constexpr auto value = N0 + sum<N1toN...>::value;
5454 static constexpr auto value = 0;
5457 static_assert(sum<>::value == 0, "");
5458 static_assert(sum<1>::value == 1, "");
5459 static_assert(sum<23>::value == 23, "");
5460 static_assert(sum<1, 2>::value == 3, "");
5461 static_assert(sum<5, 5, 11>::value == 21, "");
5462 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5466 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5467 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5469 namespace test_template_alias_sfinae
5474 template<typename T>
5475 using member = typename T::member_type;
5477 template<typename T>
5480 template<typename T>
5481 void func(member<T>*) {}
5485 void test() { func<foo>(0); }
5489 } // namespace cxx11
5491 #endif // __cplusplus >= 201103L
5496 if ac_fn_cxx_try_compile
"$LINENO"; then :
5497 ax_cv_cxx_compile_cxx11
=yes
5499 ax_cv_cxx_compile_cxx11
=no
5501 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5504 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5505 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
5509 if test x
$ac_success = xno
; then
5510 for alternative
in ${ax_cxx_compile_alternatives}; do
5511 switch
="-std=gnu++${alternative}"
5512 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5514 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5515 if eval \
${$cachevar+:} false
; then :
5516 $as_echo_n "(cached) " >&6
5520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5521 /* end confdefs.h. */
5524 // If the compiler admits that it is not ready for C++11, why torture it?
5525 // Hopefully, this will speed up the test.
5529 #error "This is not a C++ compiler"
5531 #elif __cplusplus < 201103L
5533 #error "This is not a C++11 compiler"
5540 namespace test_static_assert
5543 template <typename T>
5546 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5551 namespace test_final_override
5559 struct Derived : public Base
5561 virtual void f() override {}
5566 namespace test_double_right_angle_brackets
5569 template < typename T >
5572 typedef check<void> single_type;
5573 typedef check<check<void>> double_type;
5574 typedef check<check<check<void>>> triple_type;
5575 typedef check<check<check<check<void>>>> quadruple_type;
5579 namespace test_decltype
5592 namespace test_type_deduction
5595 template < typename T1, typename T2 >
5598 static const bool value = false;
5601 template < typename T >
5602 struct is_same<T, T>
5604 static const bool value = true;
5607 template < typename T1, typename T2 >
5609 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5615 test(const int c, volatile int v)
5617 static_assert(is_same<int, decltype(0)>::value == true, "");
5618 static_assert(is_same<int, decltype(c)>::value == false, "");
5619 static_assert(is_same<int, decltype(v)>::value == false, "");
5622 auto sumi = ac + av + 'x';
5623 auto sumf = ac + av + 1.0;
5624 static_assert(is_same<int, decltype(ac)>::value == true, "");
5625 static_assert(is_same<int, decltype(av)>::value == true, "");
5626 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5627 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5628 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5629 return (sumf > 0.0) ? sumi : add(c, v);
5634 namespace test_noexcept
5637 int f() { return 0; }
5638 int g() noexcept { return 0; }
5640 static_assert(noexcept(f()) == false, "");
5641 static_assert(noexcept(g()) == true, "");
5645 namespace test_constexpr
5648 template < typename CharT >
5649 unsigned long constexpr
5650 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5652 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5655 template < typename CharT >
5656 unsigned long constexpr
5657 strlen_c(const CharT *const s) noexcept
5659 return strlen_c_r(s, 0UL);
5662 static_assert(strlen_c("") == 0UL, "");
5663 static_assert(strlen_c("1") == 1UL, "");
5664 static_assert(strlen_c("example") == 7UL, "");
5665 static_assert(strlen_c("another\0example") == 7UL, "");
5669 namespace test_rvalue_references
5675 static constexpr int value = N;
5678 answer<1> f(int&) { return answer<1>(); }
5679 answer<2> f(const int&) { return answer<2>(); }
5680 answer<3> f(int&&) { return answer<3>(); }
5687 static_assert(decltype(f(i))::value == 1, "");
5688 static_assert(decltype(f(c))::value == 2, "");
5689 static_assert(decltype(f(0))::value == 3, "");
5694 namespace test_uniform_initialization
5699 static const int zero {};
5700 static const int one {1};
5703 static_assert(test::zero == 0, "");
5704 static_assert(test::one == 1, "");
5708 namespace test_lambdas
5714 auto lambda1 = [](){};
5715 auto lambda2 = lambda1;
5723 auto a = [](int i, int j){ return i + j; }(1, 2);
5724 auto b = []() -> int { return '0'; }();
5725 auto c = [=](){ return a + b; }();
5726 auto d = [&](){ return c; }();
5727 auto e = [a, &b](int x) mutable {
5728 const auto identity = [](int y){ return y; };
5729 for (auto i = 0; i < a; ++i)
5731 return x + identity(a + b);
5733 return a + b + c + d + e;
5739 const auto nullary = [](){ return 0; };
5740 const auto unary = [](int x){ return x; };
5741 using nullary_t = decltype(nullary);
5742 using unary_t = decltype(unary);
5743 const auto higher1st = [](nullary_t f){ return f(); };
5744 const auto higher2nd = [unary](nullary_t f1){
5745 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5747 return higher1st(nullary) + higher2nd(nullary)(unary);
5752 namespace test_variadic_templates
5758 template <int N0, int... N1toN>
5759 struct sum<N0, N1toN...>
5761 static constexpr auto value = N0 + sum<N1toN...>::value;
5767 static constexpr auto value = 0;
5770 static_assert(sum<>::value == 0, "");
5771 static_assert(sum<1>::value == 1, "");
5772 static_assert(sum<23>::value == 23, "");
5773 static_assert(sum<1, 2>::value == 3, "");
5774 static_assert(sum<5, 5, 11>::value == 21, "");
5775 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5779 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5780 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5782 namespace test_template_alias_sfinae
5787 template<typename T>
5788 using member = typename T::member_type;
5790 template<typename T>
5793 template<typename T>
5794 void func(member<T>*) {}
5798 void test() { func<foo>(0); }
5802 } // namespace cxx11
5804 #endif // __cplusplus >= 201103L
5809 if ac_fn_cxx_try_compile
"$LINENO"; then :
5814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5817 eval ac_res
=\$
$cachevar
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5819 $as_echo "$ac_res" >&6; }
5820 if eval test x\$
$cachevar = xyes
; then
5821 CXX_DIALECT
="$switch"
5828 if test x
$ac_success = xno
; then
5829 for alternative
in ${ax_cxx_compile_alternatives}; do
5830 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5831 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
5833 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
5834 if eval \${$cachevar+:} false; then :
5835 $as_echo_n "(cached
) " >&6
5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840 /* end confdefs.h. */
5843 // If the compiler admits that it is not ready for C++11, why torture it?
5844 // Hopefully, this will speed up the test.
5848 #error "This is not a C
++ compiler
"
5850 #elif __cplusplus < 201103L
5852 #error "This is not a C
++11 compiler
"
5859 namespace test_static_assert
5862 template <typename T>
5865 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
5870 namespace test_final_override
5878 struct Derived : public Base
5880 virtual void f() override {}
5885 namespace test_double_right_angle_brackets
5888 template < typename T >
5891 typedef check<void> single_type;
5892 typedef check<check<void>> double_type;
5893 typedef check<check<check<void>>> triple_type;
5894 typedef check<check<check<check<void>>>> quadruple_type;
5898 namespace test_decltype
5911 namespace test_type_deduction
5914 template < typename T1, typename T2 >
5917 static const bool value = false;
5920 template < typename T >
5921 struct is_same<T, T>
5923 static const bool value = true;
5926 template < typename T1, typename T2 >
5928 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5934 test(const int c, volatile int v)
5936 static_assert(is_same<int, decltype(0)>::value == true, "");
5937 static_assert(is_same<int, decltype(c)>::value == false, "");
5938 static_assert(is_same<int, decltype(v)>::value == false, "");
5941 auto sumi = ac + av + 'x';
5942 auto sumf = ac + av + 1.0;
5943 static_assert(is_same<int, decltype(ac)>::value == true, "");
5944 static_assert(is_same<int, decltype(av)>::value == true, "");
5945 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5946 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5947 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5948 return (sumf > 0.0) ? sumi : add(c, v);
5953 namespace test_noexcept
5956 int f() { return 0; }
5957 int g() noexcept { return 0; }
5959 static_assert(noexcept(f()) == false, "");
5960 static_assert(noexcept(g()) == true, "");
5964 namespace test_constexpr
5967 template < typename CharT >
5968 unsigned long constexpr
5969 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5971 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5974 template < typename CharT >
5975 unsigned long constexpr
5976 strlen_c(const CharT *const s) noexcept
5978 return strlen_c_r(s, 0UL);
5981 static_assert(strlen_c("") == 0UL, "");
5982 static_assert(strlen_c("1") == 1UL, "");
5983 static_assert(strlen_c("example
") == 7UL, "");
5984 static_assert(strlen_c("another\
0example
") == 7UL, "");
5988 namespace test_rvalue_references
5994 static constexpr int value = N;
5997 answer<1> f(int&) { return answer<1>(); }
5998 answer<2> f(const int&) { return answer<2>(); }
5999 answer<3> f(int&&) { return answer<3>(); }
6006 static_assert(decltype(f(i))::value == 1, "");
6007 static_assert(decltype(f(c))::value == 2, "");
6008 static_assert(decltype(f(0))::value == 3, "");
6013 namespace test_uniform_initialization
6018 static const int zero {};
6019 static const int one {1};
6022 static_assert(test::zero == 0, "");
6023 static_assert(test::one == 1, "");
6027 namespace test_lambdas
6033 auto lambda1 = [](){};
6034 auto lambda2 = lambda1;
6042 auto a = [](int i, int j){ return i + j; }(1, 2);
6043 auto b = []() -> int { return '0'; }();
6044 auto c = [=](){ return a + b; }();
6045 auto d = [&](){ return c; }();
6046 auto e = [a, &b](int x) mutable {
6047 const auto identity = [](int y){ return y; };
6048 for (auto i = 0; i < a; ++i)
6050 return x + identity(a + b);
6052 return a + b + c + d + e;
6058 const auto nullary = [](){ return 0; };
6059 const auto unary = [](int x){ return x; };
6060 using nullary_t = decltype(nullary);
6061 using unary_t = decltype(unary);
6062 const auto higher1st = [](nullary_t f){ return f(); };
6063 const auto higher2nd = [unary](nullary_t f1){
6064 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6066 return higher1st(nullary) + higher2nd(nullary)(unary);
6071 namespace test_variadic_templates
6077 template <int N0, int... N1toN>
6078 struct sum<N0, N1toN...>
6080 static constexpr auto value = N0 + sum<N1toN...>::value;
6086 static constexpr auto value = 0;
6089 static_assert(sum<>::value == 0, "");
6090 static_assert(sum<1>::value == 1, "");
6091 static_assert(sum<23>::value == 23, "");
6092 static_assert(sum<1, 2>::value == 3, "");
6093 static_assert(sum<5, 5, 11>::value == 21, "");
6094 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6098 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6099 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6101 namespace test_template_alias_sfinae
6106 template<typename T>
6107 using member = typename T::member_type;
6109 template<typename T>
6112 template<typename T>
6113 void func(member<T>*) {}
6117 void test() { func<foo>(0); }
6121 } // namespace cxx11
6123 #endif // __cplusplus >= 201103L
6128 if ac_fn_cxx_try_compile "$LINENO"; then :
6133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6136 eval ac_res=\$$cachevar
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6138 $as_echo "$ac_res" >&6; }
6139 if eval test x\$$cachevar = xyes; then
6140 CXX_DIALECT="$switch"
6145 if test x$ac_success = xyes; then
6151 ac_cpp='$CPP $CPPFLAGS'
6152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6156 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6157 if test x$ac_success = xno; then
6158 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6161 if test x$ac_success = xno; then
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6164 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6168 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6175 # Dependency checking.
6176 rm -rf .tst
2>/dev
/null
6177 mkdir .tst
2>/dev
/null
6178 if test -d .tst
; then
6183 rmdir .tst
2>/dev
/null
6185 DEPDIR
="${am__leading_dot}deps"
6187 ac_config_commands
="$ac_config_commands depdir"
6190 depcc
="$CC" am_compiler_list
=
6192 am_depcomp
=$ac_aux_dir/depcomp
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6194 $as_echo_n "checking dependency style of $depcc... " >&6; }
6195 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
6196 $as_echo_n "(cached) " >&6
6198 if test -f "$am_depcomp"; then
6199 # We make a subdir and do the tests there. Otherwise we can end up
6200 # making bogus files that we don't know about and never remove. For
6201 # instance it was reported that on HP-UX the gcc test will end up
6202 # making a dummy file named `D' -- because `-MD' means `put the output
6205 # Copy depcomp to subdir because otherwise we won't find it if we're
6206 # using a relative directory.
6207 cp "$am_depcomp" conftest.dir
6209 # We will build objects and dependencies in a subdirectory because
6210 # it helps to detect inapplicable dependency modes. For instance
6211 # both Tru64's cc and ICC support -MD to output dependencies as a
6212 # side effect of compilation, but ICC will put the dependencies in
6213 # the current directory while Tru64 will put them in the object
6217 am_cv_CC_dependencies_compiler_type
=none
6218 if test "$am_compiler_list" = ""; then
6219 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6221 for depmode
in $am_compiler_list; do
6222 if test $depmode = none
; then break; fi
6224 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6225 # Setup a source with many dependencies, because some compilers
6226 # like to wrap large dependency lists on column 80 (with \), and
6227 # we should not choose a depcomp mode which is confused by this.
6229 # We need to recreate these files for each test, as the compiler may
6230 # overwrite some of them when testing with obscure command lines.
6231 # This happens at least with the AIX C compiler.
6233 for i
in 1 2 3 4 5 6; do
6234 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6235 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6236 # Solaris 8's {/usr,}/bin/sh.
6237 touch sub
/conftst
$i.h
6239 echo "include sub/conftest.Po" > confmf
6241 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6242 # mode. It turns out that the SunPro C++ compiler does not properly
6243 # handle `-M -o', and we need to detect this.
6244 depcmd
="depmode=$depmode \
6245 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6246 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6247 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6248 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
6249 if env
$depcmd > conftest.err
2>&1 &&
6250 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
6251 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
6252 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
6253 # icc doesn't choke on unknown options, it will just issue warnings
6254 # or remarks (even with -Werror). So we grep stderr for any message
6255 # that says an option was ignored or not supported.
6256 # When given -MP, icc 7.0 and 7.1 complain thusly:
6257 # icc: Command line warning: ignoring option '-M'; no argument required
6258 # The diagnosis changed in icc 8.0:
6259 # icc: Command line remark: option '-MP' not supported
6260 if (grep 'ignoring option' conftest.err ||
6261 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6262 am_cv_CC_dependencies_compiler_type
=$depmode
6263 $as_echo "$as_me:$LINENO: success" >&5
6267 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6268 sed -e 's/^/| /' < conftest.err
>&5
6274 am_cv_CC_dependencies_compiler_type
=none
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6279 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6280 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
6281 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
6282 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
6298 # If we haven't got the data from the intl directory,
6299 # assume NLS is disabled.
6308 if test -f ..
/intl
/config.intl
; then
6309 . ..
/intl
/config.intl
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6312 $as_echo_n "checking whether NLS is requested... " >&6; }
6313 if test x
"$USE_NLS" != xyes
; then
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6315 $as_echo "no" >&6; }
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6318 $as_echo "yes" >&6; }
6320 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6324 $as_echo_n "checking for catalogs to be installed... " >&6; }
6325 # Look for .po and .gmo files in the source directory.
6328 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
6329 # If there aren't any .gmo files the shell will give us the
6330 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6332 case "$cat" in *\
**)
6335 # The quadruple backslash is collapsed to a double backslash
6336 # by the backticks, then collapsed again by the double quotes,
6337 # leaving us with one backslash in the sed expression (right
6338 # before the dot that mustn't act as a wildcard).
6339 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6340 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
6341 # The user is allowed to set LINGUAS to a list of languages to
6342 # install catalogs for. If it's empty that means "all of them."
6343 if test "x$LINGUAS" = x
; then
6344 CATALOGS
="$CATALOGS $cat"
6345 XLINGUAS
="$XLINGUAS $lang"
6347 case "$LINGUAS" in *$lang*)
6348 CATALOGS
="$CATALOGS $cat"
6349 XLINGUAS
="$XLINGUAS $lang"
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6356 $as_echo "$LINGUAS" >&6; }
6369 localedir
='${datadir}/locale'
6372 if test x
"$USE_NLS" = xyes
; then
6373 CONFIG_ALL
="$CONFIG_ALL all-po"
6374 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
6375 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
6376 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
6381 cat >>confdefs.h
<<_ACEOF
6382 #define PACKAGE "$PACKAGE"
6387 # We never need to detect it in this sub-configure.
6388 # But preserve it for config.status --recheck.
6392 MAKEINFO_EXTRA_FLAGS
=""
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
6394 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
6395 if ${gdb_cv_have_makeinfo_click+:} false
; then :
6396 $as_echo_n "(cached) " >&6
6398 echo '@clicksequence{a @click{} b}' >conftest.texinfo
6399 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
6400 gdb_cv_have_makeinfo_click
=yes
6402 gdb_cv_have_makeinfo_click
=no
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
6406 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
6407 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
6408 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
6414 # Check whether --with-separate-debug-dir was given.
6415 if test "${with_separate_debug_dir+set}" = set; then :
6416 withval
=$with_separate_debug_dir;
6419 DEBUGDIR
=${libdir}/debug
6423 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6424 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6425 ac_define_dir
=`eval echo $DEBUGDIR`
6426 ac_define_dir
=`eval echo $ac_define_dir`
6428 cat >>confdefs.h
<<_ACEOF
6429 #define DEBUGDIR "$ac_define_dir"
6435 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6436 if test "x$prefix" = xNONE
; then
6437 test_prefix
=/usr
/local
6442 test_prefix
=$exec_prefix
6445 case ${ac_define_dir} in
6446 "${test_prefix}"|
"${test_prefix}/"*|\
6447 '${exec_prefix}'|
'${exec_prefix}/'*)
6452 cat >>confdefs.h
<<_ACEOF
6453 #define DEBUGDIR_RELOCATABLE $value
6459 # We can't pass paths as command line arguments.
6460 # Mingw32 tries to be clever and will convert the paths for us.
6461 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
6462 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
6463 # This breaks GDB's relocatable path conversions since paths passed in
6464 # config.h would not get so translated, the path prefixes no longer match.
6466 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6467 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6468 ac_define_dir
=`eval echo $bindir`
6469 ac_define_dir
=`eval echo $ac_define_dir`
6471 cat >>confdefs.h
<<_ACEOF
6472 #define BINDIR "$ac_define_dir"
6477 # GDB's datadir relocation
6481 # Check whether --with-gdb-datadir was given.
6482 if test "${with_gdb_datadir+set}" = set; then :
6483 withval
=$with_gdb_datadir;
6484 GDB_DATADIR
=$withval
6486 GDB_DATADIR
=${datadir}/gdb
6490 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6491 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6492 ac_define_dir
=`eval echo $GDB_DATADIR`
6493 ac_define_dir
=`eval echo $ac_define_dir`
6495 cat >>confdefs.h
<<_ACEOF
6496 #define GDB_DATADIR "$ac_define_dir"
6502 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6503 if test "x$prefix" = xNONE
; then
6504 test_prefix
=/usr
/local
6509 test_prefix
=$exec_prefix
6512 case ${ac_define_dir} in
6513 "${test_prefix}"|
"${test_prefix}/"*|\
6514 '${exec_prefix}'|
'${exec_prefix}/'*)
6519 cat >>confdefs.h
<<_ACEOF
6520 #define GDB_DATADIR_RELOCATABLE $value
6527 # Check whether --with-relocated-sources was given.
6528 if test "${with_relocated_sources+set}" = set; then :
6529 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
6531 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6532 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6533 ac_define_dir
=`eval echo $reloc_srcdir`
6534 ac_define_dir
=`eval echo $ac_define_dir`
6536 cat >>confdefs.h
<<_ACEOF
6537 #define RELOC_SRCDIR "$ac_define_dir"
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
6546 $as_echo_n "checking for default auto-load directory... " >&6; }
6548 # Check whether --with-auto-load-dir was given.
6549 if test "${with_auto_load_dir+set}" = set; then :
6550 withval
=$with_auto_load_dir;
6552 with_auto_load_dir
='$debugdir:$datadir/auto-load'
6555 escape_dir
=`echo $with_auto_load_dir | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6557 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6558 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6559 ac_define_dir
=`eval echo $escape_dir`
6560 ac_define_dir
=`eval echo $ac_define_dir`
6562 cat >>confdefs.h
<<_ACEOF
6563 #define AUTO_LOAD_DIR "$ac_define_dir"
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
6568 $as_echo "$with_auto_load_dir" >&6; }
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
6571 $as_echo_n "checking for default auto-load safe-path... " >&6; }
6573 # Check whether --with-auto-load-safe-path was given.
6574 if test "${with_auto_load_safe_path+set}" = set; then :
6575 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
6576 with_auto_load_safe_path
="/"
6579 with_auto_load_safe_path
="$with_auto_load_dir"
6582 escape_dir
=`echo $with_auto_load_safe_path | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6584 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6585 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6586 ac_define_dir
=`eval echo $escape_dir`
6587 ac_define_dir
=`eval echo $ac_define_dir`
6589 cat >>confdefs.h
<<_ACEOF
6590 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
6595 $as_echo "$with_auto_load_safe_path" >&6; }
6599 subdirs
="$subdirs testsuite"
6602 # Check whether to support alternative target configurations
6603 # Check whether --enable-targets was given.
6604 if test "${enable_targets+set}" = set; then :
6605 enableval
=$enable_targets; case "${enableval}" in
6606 yes |
"") as_fn_error $?
"enable-targets option must specify target names or 'all'" "$LINENO" 5
6608 no
) enable_targets
= ;;
6609 *) enable_targets
=$enableval ;;
6614 # Check whether to enable 64-bit support on 32-bit hosts
6615 # Check whether --enable-64-bit-bfd was given.
6616 if test "${enable_64_bit_bfd+set}" = set; then :
6617 enableval
=$enable_64_bit_bfd; case "${enableval}" in
6620 *) as_fn_error $?
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
6626 # Provide defaults for some variables set by the per-host and per-target
6628 gdb_host_obs
=posix-hdep.o
6630 if test "${target}" = "${host}"; then
6636 .
$srcdir/configure.
host
6638 # Accumulate some settings from configure.tgt over all enabled targets
6642 HAVE_NATIVE_GCORE_TARGET
=
6644 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6646 if test "$targ_alias" = "all"; then
6649 # Canonicalize the secondary target names.
6650 result
=`$ac_config_sub $targ_alias 2>/dev/null`
6651 if test -n "$result"; then
6657 .
${srcdir}/configure.tgt
6659 if test -z "${gdb_target_obs}"; then :
6660 as_fn_error $?
"configuration ${targ} is unsupported." "$LINENO" 5
6663 # Target-specific object files
6664 for i
in ${gdb_target_obs}; do
6665 case " $TARGET_OBS " in
6668 TARGET_OBS
="$TARGET_OBS ${i}"
6673 # Check whether this target needs 64-bit CORE_ADDR
6674 if test x
${want64} = xfalse
; then
6675 .
${srcdir}/..
/bfd
/config.bfd
6678 # Check whether this target is native and supports gcore.
6679 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
6680 && $gdb_have_gcore; then
6681 HAVE_NATIVE_GCORE_TARGET
=1
6686 if test x
${all_targets} = xtrue
; then
6688 # We want all 64-bit targets if we either:
6689 # - run on a 64-bit host or
6690 # - already require 64-bit support for some other target or
6691 # - the --enable-64-bit-bfd option was supplied
6692 # Otherwise we only support all 32-bit targets.
6694 # NOTE: This test must be in sync with the corresponding
6697 if test x
${want64} = xfalse
; then
6698 # The cast to long int works around a bug in the HP C Compiler
6699 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6700 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6701 # This bug is HP SR number 8606223364.
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6703 $as_echo_n "checking size of long... " >&6; }
6704 if ${ac_cv_sizeof_long+:} false
; then :
6705 $as_echo_n "(cached) " >&6
6707 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6710 if test "$ac_cv_type_long" = yes; then
6711 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6712 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6713 as_fn_error
77 "cannot compute sizeof (long)
6714 See \`config.log' for more details" "$LINENO" 5; }
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6722 $as_echo "$ac_cv_sizeof_long" >&6; }
6726 cat >>confdefs.h
<<_ACEOF
6727 #define SIZEOF_LONG $ac_cv_sizeof_long
6731 if test "x${ac_cv_sizeof_long}" = "x8"; then
6735 if test x
${want64} = xtrue
; then
6736 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
6738 TARGET_OBS
='$(ALL_TARGET_OBS)'
6745 # For other settings, only the main target counts.
6748 targ
=$target; .
${srcdir}/configure.tgt
6750 # Fetch the default architecture and default target vector from BFD.
6751 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
6753 # We only want the first architecture, so strip off the others if
6754 # there is more than one.
6755 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
6757 if test "x$targ_archs" != x
; then
6759 cat >>confdefs.h
<<_ACEOF
6760 #define DEFAULT_BFD_ARCH $targ_archs
6764 if test "x$targ_defvec" != x
; then
6766 cat >>confdefs.h
<<_ACEOF
6767 #define DEFAULT_BFD_VEC $targ_defvec
6773 # Check whether --enable-gdbmi was given.
6774 if test "${enable_gdbmi+set}" = set; then :
6775 enableval
=$enable_gdbmi; case $enableval in
6779 as_fn_error $?
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
6785 if test x
"$enable_gdbmi" = xyes
; then
6786 if test -d "$srcdir/mi"; then
6787 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6788 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6789 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6790 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6795 # Check whether --enable-tui was given.
6796 if test "${enable_tui+set}" = set; then :
6797 enableval
=$enable_tui; case $enableval in
6801 as_fn_error $?
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
6809 # Check whether --enable-gdbtk was given.
6810 if test "${enable_gdbtk+set}" = set; then :
6811 enableval
=$enable_gdbtk; case $enableval in
6815 as_fn_error $?
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
6818 if test -d "$srcdir/gdbtk"; then
6825 # We unconditionally disable gdbtk tests on selected platforms.
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
6829 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6833 # Handle optional debuginfod support
6841 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6842 if test -n "$ac_tool_prefix"; then
6843 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6844 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6846 $as_echo_n "checking for $ac_word... " >&6; }
6847 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
6848 $as_echo_n "(cached) " >&6
6852 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6855 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6859 test -z "$as_dir" && as_dir
=.
6860 for ac_exec_ext
in '' $ac_executable_extensions; do
6861 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6862 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6873 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6874 if test -n "$PKG_CONFIG"; then
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6876 $as_echo "$PKG_CONFIG" >&6; }
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6879 $as_echo "no" >&6; }
6884 if test -z "$ac_cv_path_PKG_CONFIG"; then
6885 ac_pt_PKG_CONFIG
=$PKG_CONFIG
6886 # Extract the first word of "pkg-config", so it can be a program name with args.
6887 set dummy pkg-config
; ac_word
=$2
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6889 $as_echo_n "checking for $ac_word... " >&6; }
6890 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
6891 $as_echo_n "(cached) " >&6
6893 case $ac_pt_PKG_CONFIG in
6895 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6898 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6902 test -z "$as_dir" && as_dir
=.
6903 for ac_exec_ext
in '' $ac_executable_extensions; do
6904 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6905 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6916 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
6917 if test -n "$ac_pt_PKG_CONFIG"; then
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6919 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6922 $as_echo "no" >&6; }
6925 if test "x$ac_pt_PKG_CONFIG" = x
; then
6928 case $cross_compiling:$ac_tool_warned in
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6932 ac_tool_warned
=yes ;;
6934 PKG_CONFIG
=$ac_pt_PKG_CONFIG
6937 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
6941 if test -n "$PKG_CONFIG"; then
6942 _pkg_min_version
=0.9.0
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6944 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6945 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6947 $as_echo "yes" >&6; }
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6950 $as_echo "no" >&6; }
6955 # Handle optional debuginfod support
6957 # Check whether --with-debuginfod was given.
6958 if test "${with_debuginfod+set}" = set; then :
6959 withval
=$with_debuginfod;
6961 with_debuginfod
=auto
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
6965 $as_echo_n "checking whether to use debuginfod... " >&6; }
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
6967 $as_echo "$with_debuginfod" >&6; }
6969 if test "x$with_debuginfod" != xno
; then
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
6973 $as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
6975 if test -n "$DEBUGINFOD_CFLAGS"; then
6976 pkg_cv_DEBUGINFOD_CFLAGS
="$DEBUGINFOD_CFLAGS"
6977 elif test -n "$PKG_CONFIG"; then
6978 if test -n "$PKG_CONFIG" && \
6979 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
6980 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
6982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6983 test $ac_status = 0; }; then
6984 pkg_cv_DEBUGINFOD_CFLAGS
=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
6985 test "x$?" != "x0" && pkg_failed
=yes
6992 if test -n "$DEBUGINFOD_LIBS"; then
6993 pkg_cv_DEBUGINFOD_LIBS
="$DEBUGINFOD_LIBS"
6994 elif test -n "$PKG_CONFIG"; then
6995 if test -n "$PKG_CONFIG" && \
6996 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
6997 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
6999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7000 test $ac_status = 0; }; then
7001 pkg_cv_DEBUGINFOD_LIBS
=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
7002 test "x$?" != "x0" && pkg_failed
=yes
7010 if test $pkg_failed = no
; then
7011 pkg_save_LDFLAGS
="$LDFLAGS"
7012 LDFLAGS
="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
7013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7014 /* end confdefs.h. */
7024 if ac_fn_c_try_link
"$LINENO"; then :
7029 rm -f core conftest.err conftest.
$ac_objext \
7030 conftest
$ac_exeext conftest.
$ac_ext
7031 LDFLAGS
=$pkg_save_LDFLAGS
7036 if test $pkg_failed = yes; then
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7038 $as_echo "no" >&6; }
7040 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7041 _pkg_short_errors_supported
=yes
7043 _pkg_short_errors_supported
=no
7045 if test $_pkg_short_errors_supported = yes; then
7046 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
7048 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
7050 # Put the nasty error message in config.log where it belongs
7051 echo "$DEBUGINFOD_PKG_ERRORS" >&5
7053 if test "x$with_debuginfod" = xyes
; then
7054 as_fn_error $?
"\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
7057 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
7059 elif test $pkg_failed = untried
; then
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061 $as_echo "no" >&6; }
7062 if test "x$with_debuginfod" = xyes
; then
7063 as_fn_error $?
"\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
7066 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
7069 DEBUGINFOD_CFLAGS
=$pkg_cv_DEBUGINFOD_CFLAGS
7070 DEBUGINFOD_LIBS
=$pkg_cv_DEBUGINFOD_LIBS
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7072 $as_echo "yes" >&6; }
7074 $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
7079 $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
7083 # Libunwind support for ia64.
7085 # Check whether --with-libunwind-ia64 was given.
7086 if test "${with_libunwind_ia64+set}" = set; then :
7087 withval
=$with_libunwind_ia64;
7089 with_libunwind_ia64
=auto
7093 # Backward compatibility option.
7094 if test "${with_libunwind+set}" = set; then
7095 if test x
"$with_libunwind_ia64" != xauto
; then
7096 as_fn_error $?
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
7099 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
7100 with_libunwind_ia64
="$with_libunwind"
7103 case "$with_libunwind_ia64" in
7107 for ac_header
in libunwind-ia64.h
7109 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
7110 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
7111 cat >>confdefs.h
<<_ACEOF
7112 #define HAVE_LIBUNWIND_IA64_H 1
7119 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
7122 as_fn_error $?
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
7126 if test x
"$with_libunwind_ia64" = xyes
; then
7127 for ac_header
in libunwind-ia64.h
7129 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
7130 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
7131 cat >>confdefs.h
<<_ACEOF
7132 #define HAVE_LIBUNWIND_IA64_H 1
7139 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
7140 as_fn_error $?
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
7142 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
7143 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
7144 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
7149 # Check whether --with-curses was given.
7150 if test "${with_curses+set}" = set; then :
7151 withval
=$with_curses; opt_curses
=$withval
7156 if test "$opt_curses" = "yes"; then
7160 # Profiling support.
7161 # Check whether --enable-profiling was given.
7162 if test "${enable_profiling+set}" = set; then :
7163 enableval
=$enable_profiling; case $enableval in
7167 as_fn_error $?
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
7174 for ac_func
in monstartup _mcleanup
7176 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7177 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7178 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7179 cat >>confdefs.h
<<_ACEOF
7180 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
7187 $as_echo_n "checking for _etext... " >&6; }
7188 if ${ac_cv_var__etext+:} false
; then :
7189 $as_echo_n "(cached) " >&6
7191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7192 /* end confdefs.h. */
7204 if ac_fn_c_try_link
"$LINENO"; then :
7205 ac_cv_var__etext
=yes
7210 rm -f core conftest.err conftest.
$ac_objext \
7211 conftest
$ac_exeext conftest.
$ac_ext
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
7215 $as_echo "$ac_cv_var__etext" >&6; }
7216 if test "$ac_cv_var__etext" = yes; then
7218 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
7222 $as_echo_n "checking for etext... " >&6; }
7223 if ${ac_cv_var_etext+:} false
; then :
7224 $as_echo_n "(cached) " >&6
7226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7227 /* end confdefs.h. */
7239 if ac_fn_c_try_link
"$LINENO"; then :
7245 rm -f core conftest.err conftest.
$ac_objext \
7246 conftest
$ac_exeext conftest.
$ac_ext
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
7250 $as_echo "$ac_cv_var_etext" >&6; }
7251 if test "$ac_cv_var_etext" = yes; then
7253 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
7256 if test "$enable_profiling" = yes ; then
7257 if test "$ac_cv_func_monstartup" = no ||
test "$ac_cv_func__mcleanup" = no
; then
7258 as_fn_error $?
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
7261 OLD_CFLAGS
="$CFLAGS"
7262 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
7265 $as_echo_n "checking whether $CC supports -pg... " >&6; }
7266 if ${ac_cv_cc_supports_pg+:} false
; then :
7267 $as_echo_n "(cached) " >&6
7269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7270 /* end confdefs.h. */
7280 if ac_fn_c_try_compile
"$LINENO"; then :
7281 ac_cv_cc_supports_pg
=yes
7283 ac_cv_cc_supports_pg
=no
7286 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
8208 if test "X$prefix" = "XNONE"; then
8209 acl_final_prefix
="$ac_default_prefix"
8211 acl_final_prefix
="$prefix"
8213 if test "X$exec_prefix" = "XNONE"; then
8214 acl_final_exec_prefix
='${prefix}'
8216 acl_final_exec_prefix
="$exec_prefix"
8218 acl_save_prefix
="$prefix"
8219 prefix
="$acl_final_prefix"
8220 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8221 prefix
="$acl_save_prefix"
8224 # Check whether --with-gnu-ld was given.
8225 if test "${with_gnu_ld+set}" = set; then :
8226 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8231 # Prepare PATH_SEPARATOR.
8232 # The user is always right.
8233 if test "${PATH_SEPARATOR+set}" != set; then
8234 echo "#! /bin/sh" >conf$$.sh
8235 echo "exit 0" >>conf$$.sh
8237 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8245 if test "$GCC" = yes; then
8246 # Check if gcc -print-prog-name=ld gives a path.
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8248 $as_echo_n "checking for ld used by GCC... " >&6; }
8251 # gcc leaves a trailing carriage return which upsets mingw
8252 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8254 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8257 # Accept absolute paths.
8258 [\\/]* |
[A-Za-z
]:[\\/]*)
8259 re_direlt
='/[^/][^/]*/\.\./'
8260 # Canonicalize the path of ld
8261 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8262 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8263 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8265 test -z "$LD" && LD
="$ac_prog"
8268 # If it fails, then pretend we aren't using GCC.
8272 # If it is relative, then search for the first ld in PATH.
8276 elif test "$with_gnu_ld" = yes; then
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8278 $as_echo_n "checking for GNU ld... " >&6; }
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8281 $as_echo_n "checking for non-GNU ld... " >&6; }
8283 if ${acl_cv_path_LD+:} false
; then :
8284 $as_echo_n "(cached) " >&6
8286 if test -z "$LD"; then
8287 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8288 for ac_dir
in $PATH; do
8289 test -z "$ac_dir" && ac_dir
=.
8290 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8291 acl_cv_path_LD
="$ac_dir/$ac_prog"
8292 # Check to see if the program is GNU ld. I'd rather use --version,
8293 # but apparently some GNU ld's only accept -v.
8294 # Break only if it was the GNU/non-GNU ld that we prefer.
8295 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
8296 test "$with_gnu_ld" != no
&& break
8298 test "$with_gnu_ld" != yes && break
8304 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8308 LD
="$acl_cv_path_LD"
8309 if test -n "$LD"; then
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8311 $as_echo "$LD" >&6; }
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8314 $as_echo "no" >&6; }
8316 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8318 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8319 if ${acl_cv_prog_gnu_ld+:} false
; then :
8320 $as_echo_n "(cached) " >&6
8322 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8323 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8324 acl_cv_prog_gnu_ld
=yes
8326 acl_cv_prog_gnu_ld
=no
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8330 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8331 with_gnu_ld
=$acl_cv_prog_gnu_ld
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8336 $as_echo_n "checking for shared library run path origin... " >&6; }
8337 if ${acl_cv_rpath+:} false
; then :
8338 $as_echo_n "(cached) " >&6
8341 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8342 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8349 $as_echo "$acl_cv_rpath" >&6; }
8351 libext
="$acl_cv_libext"
8352 shlibext
="$acl_cv_shlibext"
8353 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8354 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8355 hardcode_direct
="$acl_cv_hardcode_direct"
8356 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8357 # Check whether --enable-rpath was given.
8358 if test "${enable_rpath+set}" = set; then :
8359 enableval
=$enable_rpath; :
8373 acl_save_prefix
="$prefix"
8374 prefix
="$acl_final_prefix"
8375 acl_save_exec_prefix
="$exec_prefix"
8376 exec_prefix
="$acl_final_exec_prefix"
8378 eval additional_includedir
=\"$includedir\"
8379 eval additional_libdir
=\"$libdir\"
8381 exec_prefix
="$acl_save_exec_prefix"
8382 prefix
="$acl_save_prefix"
8385 # Check whether --with-libiconv-prefix was given.
8386 if test "${with_libiconv_prefix+set}" = set; then :
8387 withval
=$with_libiconv_prefix;
8388 if test "X$withval" = "Xno"; then
8391 if test "X$withval" = "X"; then
8393 acl_save_prefix
="$prefix"
8394 prefix
="$acl_final_prefix"
8395 acl_save_exec_prefix
="$exec_prefix"
8396 exec_prefix
="$acl_final_exec_prefix"
8398 eval additional_includedir
=\"$includedir\"
8399 eval additional_libdir
=\"$libdir\"
8401 exec_prefix
="$acl_save_exec_prefix"
8402 prefix
="$acl_save_prefix"
8405 additional_includedir
="$withval/include"
8406 additional_libdir
="$withval/lib"
8413 # Check whether --with-libiconv-type was given.
8414 if test "${with_libiconv_type+set}" = set; then :
8415 withval
=$with_libiconv_type; with_libiconv_type
=$withval
8417 with_libiconv_type
=auto
8420 lib_type
=`eval echo \$with_libiconv_type`
8427 names_already_handled
=
8428 names_next_round
='iconv '
8429 while test -n "$names_next_round"; do
8430 names_this_round
="$names_next_round"
8432 for name
in $names_this_round; do
8434 for n
in $names_already_handled; do
8435 if test "$n" = "$name"; then
8440 if test -z "$already_handled"; then
8441 names_already_handled
="$names_already_handled $name"
8442 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8443 eval value
=\"\
$HAVE_LIB$uppername\"
8444 if test -n "$value"; then
8445 if test "$value" = yes; then
8446 eval value
=\"\
$LIB$uppername\"
8447 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
8448 eval value
=\"\
$LTLIB$uppername\"
8449 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
8458 if test $use_additional = yes; then
8459 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8460 found_dir
="$additional_libdir"
8461 found_so
="$additional_libdir/lib$name.$shlibext"
8462 if test -f "$additional_libdir/lib$name.la"; then
8463 found_la
="$additional_libdir/lib$name.la"
8465 elif test x
$lib_type != xshared
; then
8466 if test -f "$additional_libdir/lib$name.$libext"; then
8467 found_dir
="$additional_libdir"
8468 found_a
="$additional_libdir/lib$name.$libext"
8469 if test -f "$additional_libdir/lib$name.la"; then
8470 found_la
="$additional_libdir/lib$name.la"
8475 if test "X$found_dir" = "X"; then
8476 for x
in $LDFLAGS $LTLIBICONV; do
8478 acl_save_prefix
="$prefix"
8479 prefix
="$acl_final_prefix"
8480 acl_save_exec_prefix
="$exec_prefix"
8481 exec_prefix
="$acl_final_exec_prefix"
8483 exec_prefix
="$acl_save_exec_prefix"
8484 prefix
="$acl_save_prefix"
8488 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8489 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8491 found_so
="$dir/lib$name.$shlibext"
8492 if test -f "$dir/lib$name.la"; then
8493 found_la
="$dir/lib$name.la"
8495 elif test x
$lib_type != xshared
; then
8496 if test -f "$dir/lib$name.$libext"; then
8498 found_a
="$dir/lib$name.$libext"
8499 if test -f "$dir/lib$name.la"; then
8500 found_la
="$dir/lib$name.la"
8506 if test "X$found_dir" != "X"; then
8511 if test "X$found_dir" != "X"; then
8512 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8513 if test "X$found_so" != "X"; then
8514 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8515 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8518 for x
in $ltrpathdirs; do
8519 if test "X$x" = "X$found_dir"; then
8524 if test -z "$haveit"; then
8525 ltrpathdirs
="$ltrpathdirs $found_dir"
8527 if test "$hardcode_direct" = yes; then
8528 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8530 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8531 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8533 for x
in $rpathdirs; do
8534 if test "X$x" = "X$found_dir"; then
8539 if test -z "$haveit"; then
8540 rpathdirs
="$rpathdirs $found_dir"
8544 for x
in $LDFLAGS $LIBICONV; do
8546 acl_save_prefix
="$prefix"
8547 prefix
="$acl_final_prefix"
8548 acl_save_exec_prefix
="$exec_prefix"
8549 exec_prefix
="$acl_final_exec_prefix"
8551 exec_prefix
="$acl_save_exec_prefix"
8552 prefix
="$acl_save_prefix"
8554 if test "X$x" = "X-L$found_dir"; then
8559 if test -z "$haveit"; then
8560 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8562 if test "$hardcode_minus_L" != no
; then
8563 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8565 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8571 if test "X$found_a" != "X"; then
8572 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
8574 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8577 additional_includedir
=
8578 case "$found_dir" in
8580 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8581 additional_includedir
="$basedir/include"
8584 if test "X$additional_includedir" != "X"; then
8585 if test "X$additional_includedir" != "X/usr/include"; then
8587 if test "X$additional_includedir" = "X/usr/local/include"; then
8588 if test -n "$GCC"; then
8590 linux
*) haveit
=yes;;
8594 if test -z "$haveit"; then
8595 for x
in $CPPFLAGS $INCICONV; do
8597 acl_save_prefix
="$prefix"
8598 prefix
="$acl_final_prefix"
8599 acl_save_exec_prefix
="$exec_prefix"
8600 exec_prefix
="$acl_final_exec_prefix"
8602 exec_prefix
="$acl_save_exec_prefix"
8603 prefix
="$acl_save_prefix"
8605 if test "X$x" = "X-I$additional_includedir"; then
8610 if test -z "$haveit"; then
8611 if test -d "$additional_includedir"; then
8612 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8618 if test -n "$found_la"; then
8619 save_libdir
="$libdir"
8621 */* |
*\\*) .
"$found_la" ;;
8622 *) .
"./$found_la" ;;
8624 libdir
="$save_libdir"
8625 for dep
in $dependency_libs; do
8628 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8629 if test "X$additional_libdir" != "X/usr/lib"; then
8631 if test "X$additional_libdir" = "X/usr/local/lib"; then
8632 if test -n "$GCC"; then
8634 linux
*) haveit
=yes;;
8638 if test -z "$haveit"; then
8640 for x
in $LDFLAGS $LIBICONV; do
8642 acl_save_prefix
="$prefix"
8643 prefix
="$acl_final_prefix"
8644 acl_save_exec_prefix
="$exec_prefix"
8645 exec_prefix
="$acl_final_exec_prefix"
8647 exec_prefix
="$acl_save_exec_prefix"
8648 prefix
="$acl_save_prefix"
8650 if test "X$x" = "X-L$additional_libdir"; then
8655 if test -z "$haveit"; then
8656 if test -d "$additional_libdir"; then
8657 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8661 for x
in $LDFLAGS $LTLIBICONV; do
8663 acl_save_prefix
="$prefix"
8664 prefix
="$acl_final_prefix"
8665 acl_save_exec_prefix
="$exec_prefix"
8666 exec_prefix
="$acl_final_exec_prefix"
8668 exec_prefix
="$acl_save_exec_prefix"
8669 prefix
="$acl_save_prefix"
8671 if test "X$x" = "X-L$additional_libdir"; then
8676 if test -z "$haveit"; then
8677 if test -d "$additional_libdir"; then
8678 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8685 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8686 if test "$enable_rpath" != no
; then
8688 for x
in $rpathdirs; do
8689 if test "X$x" = "X$dir"; then
8694 if test -z "$haveit"; then
8695 rpathdirs
="$rpathdirs $dir"
8698 for x
in $ltrpathdirs; do
8699 if test "X$x" = "X$dir"; then
8704 if test -z "$haveit"; then
8705 ltrpathdirs
="$ltrpathdirs $dir"
8710 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8713 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8716 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
8717 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8723 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
8724 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8725 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8727 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
8728 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
8735 if test "X$rpathdirs" != "X"; then
8736 if test -n "$hardcode_libdir_separator"; then
8738 for found_dir
in $rpathdirs; do
8739 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8741 acl_save_libdir
="$libdir"
8743 eval flag
=\"$hardcode_libdir_flag_spec\"
8744 libdir
="$acl_save_libdir"
8745 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8747 for found_dir
in $rpathdirs; do
8748 acl_save_libdir
="$libdir"
8750 eval flag
=\"$hardcode_libdir_flag_spec\"
8751 libdir
="$acl_save_libdir"
8752 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8756 if test "X$ltrpathdirs" != "X"; then
8757 for found_dir
in $ltrpathdirs; do
8758 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8769 $as_echo_n "checking for iconv... " >&6; }
8770 if ${am_cv_func_iconv+:} false
; then :
8771 $as_echo_n "(cached) " >&6
8774 am_cv_func_iconv
="no, consider installing GNU libiconv"
8776 am_save_CPPFLAGS
="$CPPFLAGS"
8777 CPPFLAGS
="$CPPFLAGS $INCICONV"
8778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8779 /* end confdefs.h. */
8785 iconv_t cd = iconv_open("","");
8786 iconv(cd,NULL,NULL,NULL,NULL);
8792 if ac_fn_c_try_link
"$LINENO"; then :
8793 am_cv_func_iconv
=yes
8795 rm -f core conftest.err conftest.
$ac_objext \
8796 conftest
$ac_exeext conftest.
$ac_ext
8797 CPPFLAGS
="$am_save_CPPFLAGS"
8799 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
8800 for _libs
in .libs _libs
; do
8801 am_save_CPPFLAGS
="$CPPFLAGS"
8802 am_save_LIBS
="$LIBS"
8803 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
8804 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
8805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8806 /* end confdefs.h. */
8812 iconv_t cd = iconv_open("","");
8813 iconv(cd,NULL,NULL,NULL,NULL);
8819 if ac_fn_c_try_link
"$LINENO"; then :
8820 INCICONV
="-I../libiconv/include"
8821 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
8822 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
8824 am_cv_func_iconv
=yes
8826 rm -f core conftest.err conftest.
$ac_objext \
8827 conftest
$ac_exeext conftest.
$ac_ext
8828 CPPFLAGS
="$am_save_CPPFLAGS"
8829 LIBS
="$am_save_LIBS"
8830 if test "$am_cv_func_iconv" = "yes"; then
8836 if test "$am_cv_func_iconv" != yes; then
8837 am_save_CPPFLAGS
="$CPPFLAGS"
8838 am_save_LIBS
="$LIBS"
8839 CPPFLAGS
="$CPPFLAGS $INCICONV"
8840 LIBS
="$LIBS $LIBICONV"
8841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8842 /* end confdefs.h. */
8848 iconv_t cd = iconv_open("","");
8849 iconv(cd,NULL,NULL,NULL,NULL);
8855 if ac_fn_c_try_link
"$LINENO"; then :
8857 am_cv_func_iconv
=yes
8859 rm -f core conftest.err conftest.
$ac_objext \
8860 conftest
$ac_exeext conftest.
$ac_ext
8861 CPPFLAGS
="$am_save_CPPFLAGS"
8862 LIBS
="$am_save_LIBS"
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8867 $as_echo "$am_cv_func_iconv" >&6; }
8868 if test "$am_cv_func_iconv" = yes; then
8870 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8873 if test "$am_cv_lib_iconv" = yes; then
8875 for element
in $INCICONV; do
8877 for x
in $CPPFLAGS; do
8879 acl_save_prefix
="$prefix"
8880 prefix
="$acl_final_prefix"
8881 acl_save_exec_prefix
="$exec_prefix"
8882 exec_prefix
="$acl_final_exec_prefix"
8884 exec_prefix
="$acl_save_exec_prefix"
8885 prefix
="$acl_save_prefix"
8887 if test "X$x" = "X$element"; then
8892 if test -z "$haveit"; then
8893 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8898 $as_echo_n "checking how to link with libiconv... " >&6; }
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8900 $as_echo "$LIBICONV" >&6; }
8908 if test "$am_cv_func_iconv" = yes; then
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8910 $as_echo_n "checking for iconv declaration... " >&6; }
8911 if ${am_cv_proto_iconv+:} false
; then :
8912 $as_echo_n "(cached) " >&6
8915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8916 /* end confdefs.h. */
8924 #if defined(__STDC__) || defined(__cplusplus)
8925 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8938 if ac_fn_c_try_compile
"$LINENO"; then :
8939 am_cv_proto_iconv_arg1
=""
8941 am_cv_proto_iconv_arg1
="const"
8943 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8944 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);"
8947 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8949 }$am_cv_proto_iconv" >&5
8951 }$am_cv_proto_iconv" >&6; }
8953 cat >>confdefs.h
<<_ACEOF
8954 #define ICONV_CONST $am_cv_proto_iconv_arg1
8960 # GDB may fork/exec the iconv program to get the list of supported character
8961 # sets. Allow the user to specify where to find it.
8962 # There are several factors affecting the choice of option name:
8963 # - There is already --with-libiconv-prefix but we can't use it, it specifies
8964 # the build-time location of libiconv files.
8965 # - The program we need to find is iconv, which comes with glibc. The user
8966 # doesn't necessarily have libiconv installed. Therefore naming this
8967 # --with-libiconv-foo feels wrong.
8968 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
8969 # defined to work on directories not files (though it really doesn't know
8971 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
8972 # with --with-libiconv-prefix.
8973 # Putting these together is why the option name is --with-iconv-bin.
8976 # Check whether --with-iconv-bin was given.
8977 if test "${with_iconv_bin+set}" = set; then :
8978 withval
=$with_iconv_bin; iconv_bin
="${withval}"
8980 cat >>confdefs.h
<<_ACEOF
8981 #define ICONV_BIN "${iconv_bin}"
8985 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
8986 if test "x$prefix" = xNONE
; then
8987 test_prefix
=/usr
/local
8992 test_prefix
=$exec_prefix
8995 case ${iconv_bin} in
8996 "${test_prefix}"|
"${test_prefix}/"*|\
8997 '${exec_prefix}'|
'${exec_prefix}/'*)
9002 cat >>confdefs.h
<<_ACEOF
9003 #define ICONV_BIN_RELOCATABLE $value
9011 # For the TUI, we need enhanced curses functionality.
9012 if test x
"$enable_tui" != xno
; then
9017 if test x
"$prefer_curses" = xyes
; then
9018 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9019 # curses library because the latter might not provide all the
9020 # functionality we need. However, this leads to problems on systems
9021 # where the linker searches /usr/local/lib, but the compiler doesn't
9022 # search /usr/local/include, if ncurses is installed in /usr/local. A
9023 # default installation of ncurses on alpha*-dec-osf* will lead to such
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
9026 $as_echo_n "checking for library containing waddstr... " >&6; }
9027 if ${ac_cv_search_waddstr+:} false
; then :
9028 $as_echo_n "(cached) " >&6
9030 ac_func_search_save_LIBS
=$LIBS
9031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9032 /* end confdefs.h. */
9034 /* Override any GCC internal prototype to avoid an error.
9035 Use char because int might match the return type of a GCC
9036 builtin and then its argument prototype would still apply. */
9049 for ac_lib
in '' ncursesw ncurses cursesX curses
; do
9050 if test -z "$ac_lib"; then
9051 ac_res
="none required"
9054 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9056 if ac_fn_c_try_link
"$LINENO"; then :
9057 ac_cv_search_waddstr
=$ac_res
9059 rm -f core conftest.err conftest.
$ac_objext \
9061 if ${ac_cv_search_waddstr+:} false
; then :
9065 if ${ac_cv_search_waddstr+:} false
; then :
9068 ac_cv_search_waddstr
=no
9071 LIBS
=$ac_func_search_save_LIBS
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
9074 $as_echo "$ac_cv_search_waddstr" >&6; }
9075 ac_res
=$ac_cv_search_waddstr
9076 if test "$ac_res" != no
; then :
9077 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9082 if test "$ac_cv_search_waddstr" != no
; then
9087 # Check whether we should enable the TUI, but only do so if we really
9089 if test x
"$enable_tui" != xno
; then
9090 if test -d "$srcdir/tui"; then
9091 if test "$curses_found" != no
; then
9092 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
9093 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
9094 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9095 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
9097 if test x
"$enable_tui" = xyes
; then
9098 as_fn_error $?
"no enhanced curses library found; disable TUI" "$LINENO" 5
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
9101 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9107 # Since GDB uses Readline, we need termcap functionality. In many
9108 # cases this will be provided by the curses library, but some systems
9109 # have a separate termcap library, or no curses library at all.
9113 if test -d "$srcdir/libtermcap"; then
9114 LIBS
="../libtermcap/libtermcap.a $LIBS"
9115 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
9118 ac_cv_search_tgetent
="none required"
9122 # These are the libraries checked by Readline.
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9124 $as_echo_n "checking for library containing tgetent... " >&6; }
9125 if ${ac_cv_search_tgetent+:} false
; then :
9126 $as_echo_n "(cached) " >&6
9128 ac_func_search_save_LIBS
=$LIBS
9129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9130 /* end confdefs.h. */
9132 /* Override any GCC internal prototype to avoid an error.
9133 Use char because int might match the return type of a GCC
9134 builtin and then its argument prototype would still apply. */
9147 for ac_lib
in '' termcap tinfow tinfo curses ncursesw ncurses
; do
9148 if test -z "$ac_lib"; then
9149 ac_res
="none required"
9152 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9154 if ac_fn_c_try_link
"$LINENO"; then :
9155 ac_cv_search_tgetent
=$ac_res
9157 rm -f core conftest.err conftest.
$ac_objext \
9159 if ${ac_cv_search_tgetent+:} false
; then :
9163 if ${ac_cv_search_tgetent+:} false
; then :
9166 ac_cv_search_tgetent
=no
9169 LIBS
=$ac_func_search_save_LIBS
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9172 $as_echo "$ac_cv_search_tgetent" >&6; }
9173 ac_res
=$ac_cv_search_tgetent
9174 if test "$ac_res" != no
; then :
9175 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9180 if test "$ac_cv_search_tgetent" = no
; then
9181 CONFIG_OBS
="$CONFIG_OBS stub-termcap.o"
9185 # Check whether --with-system-readline was given.
9186 if test "${with_system_readline+set}" = set; then :
9187 withval
=$with_system_readline;
9191 if test "$with_system_readline" = yes; then
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system readline is new enough" >&5
9193 $as_echo_n "checking whether system readline is new enough... " >&6; }
9194 if ${gdb_cv_readline_ok+:} false
; then :
9195 $as_echo_n "(cached) " >&6
9197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9198 /* end confdefs.h. */
9200 #include <readline/readline.h>
9204 #if RL_VERSION_MAJOR < 7
9205 # error "readline version 7 required"
9212 if ac_fn_c_try_compile
"$LINENO"; then :
9213 gdb_cv_readline_ok
=yes
9215 gdb_cv_readline_ok
=no
9218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_readline_ok" >&5
9222 $as_echo "$gdb_cv_readline_ok" >&6; }
9223 if test "$gdb_cv_readline_ok" != yes; then
9224 as_fn_error $?
"system readline is not new enough" "$LINENO" 5
9230 READLINE_TEXI_INCFLAG
=
9232 READLINE
='$(READLINE_DIR)/libreadline.a'
9233 READLINE_DEPS
='$(READLINE)'
9234 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
9235 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
9242 # Generate jit-reader.h
9244 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
9247 # The cast to long int works around a bug in the HP C Compiler
9248 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9249 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9250 # This bug is HP SR number 8606223364.
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
9252 $as_echo_n "checking size of unsigned long long... " >&6; }
9253 if ${ac_cv_sizeof_unsigned_long_long+:} false
; then :
9254 $as_echo_n "(cached) " >&6
9256 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
9259 if test "$ac_cv_type_unsigned_long_long" = yes; then
9260 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9262 as_fn_error
77 "cannot compute sizeof (unsigned long long)
9263 See \`config.log' for more details" "$LINENO" 5; }
9265 ac_cv_sizeof_unsigned_long_long
=0
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
9271 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
9275 cat >>confdefs.h
<<_ACEOF
9276 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
9280 # The cast to long int works around a bug in the HP C Compiler
9281 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9282 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9283 # This bug is HP SR number 8606223364.
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
9285 $as_echo_n "checking size of unsigned long... " >&6; }
9286 if ${ac_cv_sizeof_unsigned_long+:} false
; then :
9287 $as_echo_n "(cached) " >&6
9289 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
9292 if test "$ac_cv_type_unsigned_long" = yes; then
9293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9295 as_fn_error
77 "cannot compute sizeof (unsigned long)
9296 See \`config.log' for more details" "$LINENO" 5; }
9298 ac_cv_sizeof_unsigned_long
=0
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
9304 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
9308 cat >>confdefs.h
<<_ACEOF
9309 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9313 # The cast to long int works around a bug in the HP C Compiler
9314 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9315 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9316 # This bug is HP SR number 8606223364.
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
9318 $as_echo_n "checking size of unsigned __int128... " >&6; }
9319 if ${ac_cv_sizeof_unsigned___int128+:} false
; then :
9320 $as_echo_n "(cached) " >&6
9322 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
9325 if test "$ac_cv_type_unsigned___int128" = yes; then
9326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9328 as_fn_error
77 "cannot compute sizeof (unsigned __int128)
9329 See \`config.log' for more details" "$LINENO" 5; }
9331 ac_cv_sizeof_unsigned___int128
=0
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
9337 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
9341 cat >>confdefs.h
<<_ACEOF
9342 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
9347 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9348 TARGET_PTR
="unsigned long"
9349 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9350 TARGET_PTR
="unsigned long long"
9351 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
9352 TARGET_PTR
="unsigned __int128"
9354 TARGET_PTR
="unsigned long"
9358 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9362 $as_echo_n "checking for library containing dlopen... " >&6; }
9363 if ${ac_cv_search_dlopen+:} false
; then :
9364 $as_echo_n "(cached) " >&6
9366 ac_func_search_save_LIBS
=$LIBS
9367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9368 /* end confdefs.h. */
9370 /* Override any GCC internal prototype to avoid an error.
9371 Use char because int might match the return type of a GCC
9372 builtin and then its argument prototype would still apply. */
9385 for ac_lib
in '' dl
; do
9386 if test -z "$ac_lib"; then
9387 ac_res
="none required"
9390 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9392 if ac_fn_c_try_link
"$LINENO"; then :
9393 ac_cv_search_dlopen
=$ac_res
9395 rm -f core conftest.err conftest.
$ac_objext \
9397 if ${ac_cv_search_dlopen+:} false
; then :
9401 if ${ac_cv_search_dlopen+:} false
; then :
9404 ac_cv_search_dlopen
=no
9407 LIBS
=$ac_func_search_save_LIBS
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9410 $as_echo "$ac_cv_search_dlopen" >&6; }
9411 ac_res
=$ac_cv_search_dlopen
9412 if test "$ac_res" != no
; then :
9413 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9420 # Check whether --with-jit-reader-dir was given.
9421 if test "${with_jit_reader_dir+set}" = set; then :
9422 withval
=$with_jit_reader_dir;
9423 JIT_READER_DIR
=$withval
9425 JIT_READER_DIR
=${libdir}/gdb
9429 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9430 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9431 ac_define_dir
=`eval echo $JIT_READER_DIR`
9432 ac_define_dir
=`eval echo $ac_define_dir`
9434 cat >>confdefs.h
<<_ACEOF
9435 #define JIT_READER_DIR "$ac_define_dir"
9441 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9442 if test "x$prefix" = xNONE
; then
9443 test_prefix
=/usr
/local
9448 test_prefix
=$exec_prefix
9451 case ${ac_define_dir} in
9452 "${test_prefix}"|
"${test_prefix}/"*|\
9453 '${exec_prefix}'|
'${exec_prefix}/'*)
9458 cat >>confdefs.h
<<_ACEOF
9459 #define JIT_READER_DIR_RELOCATABLE $value
9466 # Check whether --with-expat was given.
9467 if test "${with_expat+set}" = set; then :
9468 withval
=$with_expat;
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9474 $as_echo_n "checking whether to use expat... " >&6; }
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9476 $as_echo "$with_expat" >&6; }
9478 if test "${with_expat}" = no
; then
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9480 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9493 acl_save_prefix
="$prefix"
9494 prefix
="$acl_final_prefix"
9495 acl_save_exec_prefix
="$exec_prefix"
9496 exec_prefix
="$acl_final_exec_prefix"
9498 eval additional_includedir
=\"$includedir\"
9499 eval additional_libdir
=\"$libdir\"
9501 exec_prefix
="$acl_save_exec_prefix"
9502 prefix
="$acl_save_prefix"
9505 # Check whether --with-libexpat-prefix was given.
9506 if test "${with_libexpat_prefix+set}" = set; then :
9507 withval
=$with_libexpat_prefix;
9508 if test "X$withval" = "Xno"; then
9511 if test "X$withval" = "X"; then
9513 acl_save_prefix
="$prefix"
9514 prefix
="$acl_final_prefix"
9515 acl_save_exec_prefix
="$exec_prefix"
9516 exec_prefix
="$acl_final_exec_prefix"
9518 eval additional_includedir
=\"$includedir\"
9519 eval additional_libdir
=\"$libdir\"
9521 exec_prefix
="$acl_save_exec_prefix"
9522 prefix
="$acl_save_prefix"
9525 additional_includedir
="$withval/include"
9526 additional_libdir
="$withval/lib"
9533 # Check whether --with-libexpat-type was given.
9534 if test "${with_libexpat_type+set}" = set; then :
9535 withval
=$with_libexpat_type; with_libexpat_type
=$withval
9537 with_libexpat_type
=auto
9540 lib_type
=`eval echo \$with_libexpat_type`
9547 names_already_handled
=
9548 names_next_round
='expat '
9549 while test -n "$names_next_round"; do
9550 names_this_round
="$names_next_round"
9552 for name
in $names_this_round; do
9554 for n
in $names_already_handled; do
9555 if test "$n" = "$name"; then
9560 if test -z "$already_handled"; then
9561 names_already_handled
="$names_already_handled $name"
9562 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9563 eval value
=\"\
$HAVE_LIB$uppername\"
9564 if test -n "$value"; then
9565 if test "$value" = yes; then
9566 eval value
=\"\
$LIB$uppername\"
9567 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
9568 eval value
=\"\
$LTLIB$uppername\"
9569 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
9578 if test $use_additional = yes; then
9579 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9580 found_dir
="$additional_libdir"
9581 found_so
="$additional_libdir/lib$name.$shlibext"
9582 if test -f "$additional_libdir/lib$name.la"; then
9583 found_la
="$additional_libdir/lib$name.la"
9585 elif test x
$lib_type != xshared
; then
9586 if test -f "$additional_libdir/lib$name.$libext"; then
9587 found_dir
="$additional_libdir"
9588 found_a
="$additional_libdir/lib$name.$libext"
9589 if test -f "$additional_libdir/lib$name.la"; then
9590 found_la
="$additional_libdir/lib$name.la"
9595 if test "X$found_dir" = "X"; then
9596 for x
in $LDFLAGS $LTLIBEXPAT; do
9598 acl_save_prefix
="$prefix"
9599 prefix
="$acl_final_prefix"
9600 acl_save_exec_prefix
="$exec_prefix"
9601 exec_prefix
="$acl_final_exec_prefix"
9603 exec_prefix
="$acl_save_exec_prefix"
9604 prefix
="$acl_save_prefix"
9608 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9609 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9611 found_so
="$dir/lib$name.$shlibext"
9612 if test -f "$dir/lib$name.la"; then
9613 found_la
="$dir/lib$name.la"
9615 elif test x
$lib_type != xshared
; then
9616 if test -f "$dir/lib$name.$libext"; then
9618 found_a
="$dir/lib$name.$libext"
9619 if test -f "$dir/lib$name.la"; then
9620 found_la
="$dir/lib$name.la"
9626 if test "X$found_dir" != "X"; then
9631 if test "X$found_dir" != "X"; then
9632 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
9633 if test "X$found_so" != "X"; then
9634 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9635 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9638 for x
in $ltrpathdirs; do
9639 if test "X$x" = "X$found_dir"; then
9644 if test -z "$haveit"; then
9645 ltrpathdirs
="$ltrpathdirs $found_dir"
9647 if test "$hardcode_direct" = yes; then
9648 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9650 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9651 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9653 for x
in $rpathdirs; do
9654 if test "X$x" = "X$found_dir"; then
9659 if test -z "$haveit"; then
9660 rpathdirs
="$rpathdirs $found_dir"
9664 for x
in $LDFLAGS $LIBEXPAT; do
9666 acl_save_prefix
="$prefix"
9667 prefix
="$acl_final_prefix"
9668 acl_save_exec_prefix
="$exec_prefix"
9669 exec_prefix
="$acl_final_exec_prefix"
9671 exec_prefix
="$acl_save_exec_prefix"
9672 prefix
="$acl_save_prefix"
9674 if test "X$x" = "X-L$found_dir"; then
9679 if test -z "$haveit"; then
9680 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
9682 if test "$hardcode_minus_L" != no
; then
9683 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9685 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9691 if test "X$found_a" != "X"; then
9692 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
9694 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
9697 additional_includedir
=
9698 case "$found_dir" in
9700 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9701 additional_includedir
="$basedir/include"
9704 if test "X$additional_includedir" != "X"; then
9705 if test "X$additional_includedir" != "X/usr/include"; then
9707 if test "X$additional_includedir" = "X/usr/local/include"; then
9708 if test -n "$GCC"; then
9710 linux
*) haveit
=yes;;
9714 if test -z "$haveit"; then
9715 for x
in $CPPFLAGS $INCEXPAT; do
9717 acl_save_prefix
="$prefix"
9718 prefix
="$acl_final_prefix"
9719 acl_save_exec_prefix
="$exec_prefix"
9720 exec_prefix
="$acl_final_exec_prefix"
9722 exec_prefix
="$acl_save_exec_prefix"
9723 prefix
="$acl_save_prefix"
9725 if test "X$x" = "X-I$additional_includedir"; then
9730 if test -z "$haveit"; then
9731 if test -d "$additional_includedir"; then
9732 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
9738 if test -n "$found_la"; then
9739 save_libdir
="$libdir"
9741 */* |
*\\*) .
"$found_la" ;;
9742 *) .
"./$found_la" ;;
9744 libdir
="$save_libdir"
9745 for dep
in $dependency_libs; do
9748 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9749 if test "X$additional_libdir" != "X/usr/lib"; then
9751 if test "X$additional_libdir" = "X/usr/local/lib"; then
9752 if test -n "$GCC"; then
9754 linux
*) haveit
=yes;;
9758 if test -z "$haveit"; then
9760 for x
in $LDFLAGS $LIBEXPAT; do
9762 acl_save_prefix
="$prefix"
9763 prefix
="$acl_final_prefix"
9764 acl_save_exec_prefix
="$exec_prefix"
9765 exec_prefix
="$acl_final_exec_prefix"
9767 exec_prefix
="$acl_save_exec_prefix"
9768 prefix
="$acl_save_prefix"
9770 if test "X$x" = "X-L$additional_libdir"; then
9775 if test -z "$haveit"; then
9776 if test -d "$additional_libdir"; then
9777 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
9781 for x
in $LDFLAGS $LTLIBEXPAT; do
9783 acl_save_prefix
="$prefix"
9784 prefix
="$acl_final_prefix"
9785 acl_save_exec_prefix
="$exec_prefix"
9786 exec_prefix
="$acl_final_exec_prefix"
9788 exec_prefix
="$acl_save_exec_prefix"
9789 prefix
="$acl_save_prefix"
9791 if test "X$x" = "X-L$additional_libdir"; then
9796 if test -z "$haveit"; then
9797 if test -d "$additional_libdir"; then
9798 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
9805 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9806 if test "$enable_rpath" != no
; then
9808 for x
in $rpathdirs; do
9809 if test "X$x" = "X$dir"; then
9814 if test -z "$haveit"; then
9815 rpathdirs
="$rpathdirs $dir"
9818 for x
in $ltrpathdirs; do
9819 if test "X$x" = "X$dir"; then
9824 if test -z "$haveit"; then
9825 ltrpathdirs
="$ltrpathdirs $dir"
9830 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9833 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9836 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
9837 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
9843 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
9844 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9845 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
9847 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l:lib$name.$libext"
9848 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l:lib$name.$libext"
9855 if test "X$rpathdirs" != "X"; then
9856 if test -n "$hardcode_libdir_separator"; then
9858 for found_dir
in $rpathdirs; do
9859 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9861 acl_save_libdir
="$libdir"
9863 eval flag
=\"$hardcode_libdir_flag_spec\"
9864 libdir
="$acl_save_libdir"
9865 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9867 for found_dir
in $rpathdirs; do
9868 acl_save_libdir
="$libdir"
9870 eval flag
=\"$hardcode_libdir_flag_spec\"
9871 libdir
="$acl_save_libdir"
9872 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9876 if test "X$ltrpathdirs" != "X"; then
9877 for found_dir
in $ltrpathdirs; do
9878 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9883 ac_save_CPPFLAGS
="$CPPFLAGS"
9885 for element
in $INCEXPAT; do
9887 for x
in $CPPFLAGS; do
9889 acl_save_prefix
="$prefix"
9890 prefix
="$acl_final_prefix"
9891 acl_save_exec_prefix
="$exec_prefix"
9892 exec_prefix
="$acl_final_exec_prefix"
9894 exec_prefix
="$acl_save_exec_prefix"
9895 prefix
="$acl_save_prefix"
9897 if test "X$x" = "X$element"; then
9902 if test -z "$haveit"; then
9903 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9909 $as_echo_n "checking for libexpat... " >&6; }
9910 if ${ac_cv_libexpat+:} false
; then :
9911 $as_echo_n "(cached) " >&6
9914 ac_save_LIBS
="$LIBS"
9915 LIBS
="$LIBS $LIBEXPAT"
9916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9917 /* end confdefs.h. */
9922 XML_Parser p = XML_ParserCreate (0);
9927 if ac_fn_c_try_link
"$LINENO"; then :
9932 rm -f core conftest.err conftest.
$ac_objext \
9933 conftest
$ac_exeext conftest.
$ac_ext
9934 LIBS
="$ac_save_LIBS"
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
9938 $as_echo "$ac_cv_libexpat" >&6; }
9939 if test "$ac_cv_libexpat" = yes; then
9942 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
9945 $as_echo_n "checking how to link with libexpat... " >&6; }
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
9947 $as_echo "$LIBEXPAT" >&6; }
9950 CPPFLAGS
="$ac_save_CPPFLAGS"
9960 if test "$HAVE_LIBEXPAT" != yes; then
9961 if test "$with_expat" = yes; then
9962 as_fn_error $?
"expat is missing or unusable" "$LINENO" 5
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
9965 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
9969 LIBS
="$LIBS $LIBEXPAT"
9970 for ac_func
in XML_StopParser
9972 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
9973 if test "x$ac_cv_func_XML_StopParser" = xyes
; then :
9974 cat >>confdefs.h
<<_ACEOF
9975 #define HAVE_XML_STOPPARSER 1
9986 # Check whether --with-mpfr was given.
9987 if test "${with_mpfr+set}" = set; then :
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5
9994 $as_echo_n "checking whether to use MPFR... " >&6; }
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5
9996 $as_echo "$with_mpfr" >&6; }
9998 if test "${with_mpfr}" = no
; then
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5
10000 $as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;}
10013 acl_save_prefix
="$prefix"
10014 prefix
="$acl_final_prefix"
10015 acl_save_exec_prefix
="$exec_prefix"
10016 exec_prefix
="$acl_final_exec_prefix"
10018 eval additional_includedir
=\"$includedir\"
10019 eval additional_libdir
=\"$libdir\"
10021 exec_prefix
="$acl_save_exec_prefix"
10022 prefix
="$acl_save_prefix"
10025 # Check whether --with-libmpfr-prefix was given.
10026 if test "${with_libmpfr_prefix+set}" = set; then :
10027 withval
=$with_libmpfr_prefix;
10028 if test "X$withval" = "Xno"; then
10031 if test "X$withval" = "X"; then
10033 acl_save_prefix
="$prefix"
10034 prefix
="$acl_final_prefix"
10035 acl_save_exec_prefix
="$exec_prefix"
10036 exec_prefix
="$acl_final_exec_prefix"
10038 eval additional_includedir
=\"$includedir\"
10039 eval additional_libdir
=\"$libdir\"
10041 exec_prefix
="$acl_save_exec_prefix"
10042 prefix
="$acl_save_prefix"
10045 additional_includedir
="$withval/include"
10046 additional_libdir
="$withval/lib"
10053 # Check whether --with-libmpfr-type was given.
10054 if test "${with_libmpfr_type+set}" = set; then :
10055 withval
=$with_libmpfr_type; with_libmpfr_type
=$withval
10057 with_libmpfr_type
=auto
10060 lib_type
=`eval echo \$with_libmpfr_type`
10067 names_already_handled
=
10068 names_next_round
='mpfr gmp'
10069 while test -n "$names_next_round"; do
10070 names_this_round
="$names_next_round"
10072 for name
in $names_this_round; do
10074 for n
in $names_already_handled; do
10075 if test "$n" = "$name"; then
10076 already_handled
=yes
10080 if test -z "$already_handled"; then
10081 names_already_handled
="$names_already_handled $name"
10082 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10083 eval value
=\"\
$HAVE_LIB$uppername\"
10084 if test -n "$value"; then
10085 if test "$value" = yes; then
10086 eval value
=\"\
$LIB$uppername\"
10087 test -z "$value" || LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$value"
10088 eval value
=\"\
$LTLIB$uppername\"
10089 test -z "$value" || LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$value"
10098 if test $use_additional = yes; then
10099 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10100 found_dir
="$additional_libdir"
10101 found_so
="$additional_libdir/lib$name.$shlibext"
10102 if test -f "$additional_libdir/lib$name.la"; then
10103 found_la
="$additional_libdir/lib$name.la"
10105 elif test x
$lib_type != xshared
; then
10106 if test -f "$additional_libdir/lib$name.$libext"; then
10107 found_dir
="$additional_libdir"
10108 found_a
="$additional_libdir/lib$name.$libext"
10109 if test -f "$additional_libdir/lib$name.la"; then
10110 found_la
="$additional_libdir/lib$name.la"
10115 if test "X$found_dir" = "X"; then
10116 for x
in $LDFLAGS $LTLIBMPFR; do
10118 acl_save_prefix
="$prefix"
10119 prefix
="$acl_final_prefix"
10120 acl_save_exec_prefix
="$exec_prefix"
10121 exec_prefix
="$acl_final_exec_prefix"
10123 exec_prefix
="$acl_save_exec_prefix"
10124 prefix
="$acl_save_prefix"
10128 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10129 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10131 found_so
="$dir/lib$name.$shlibext"
10132 if test -f "$dir/lib$name.la"; then
10133 found_la
="$dir/lib$name.la"
10135 elif test x
$lib_type != xshared
; then
10136 if test -f "$dir/lib$name.$libext"; then
10138 found_a
="$dir/lib$name.$libext"
10139 if test -f "$dir/lib$name.la"; then
10140 found_la
="$dir/lib$name.la"
10146 if test "X$found_dir" != "X"; then
10151 if test "X$found_dir" != "X"; then
10152 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$found_dir -l$name"
10153 if test "X$found_so" != "X"; then
10154 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10155 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10158 for x
in $ltrpathdirs; do
10159 if test "X$x" = "X$found_dir"; then
10164 if test -z "$haveit"; then
10165 ltrpathdirs
="$ltrpathdirs $found_dir"
10167 if test "$hardcode_direct" = yes; then
10168 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10170 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10171 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10173 for x
in $rpathdirs; do
10174 if test "X$x" = "X$found_dir"; then
10179 if test -z "$haveit"; then
10180 rpathdirs
="$rpathdirs $found_dir"
10184 for x
in $LDFLAGS $LIBMPFR; do
10186 acl_save_prefix
="$prefix"
10187 prefix
="$acl_final_prefix"
10188 acl_save_exec_prefix
="$exec_prefix"
10189 exec_prefix
="$acl_final_exec_prefix"
10191 exec_prefix
="$acl_save_exec_prefix"
10192 prefix
="$acl_save_prefix"
10194 if test "X$x" = "X-L$found_dir"; then
10199 if test -z "$haveit"; then
10200 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir"
10202 if test "$hardcode_minus_L" != no
; then
10203 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10205 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10211 if test "X$found_a" != "X"; then
10212 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_a"
10214 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir -l$name"
10217 additional_includedir
=
10218 case "$found_dir" in
10220 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10221 additional_includedir
="$basedir/include"
10224 if test "X$additional_includedir" != "X"; then
10225 if test "X$additional_includedir" != "X/usr/include"; then
10227 if test "X$additional_includedir" = "X/usr/local/include"; then
10228 if test -n "$GCC"; then
10230 linux
*) haveit
=yes;;
10234 if test -z "$haveit"; then
10235 for x
in $CPPFLAGS $INCMPFR; do
10237 acl_save_prefix
="$prefix"
10238 prefix
="$acl_final_prefix"
10239 acl_save_exec_prefix
="$exec_prefix"
10240 exec_prefix
="$acl_final_exec_prefix"
10242 exec_prefix
="$acl_save_exec_prefix"
10243 prefix
="$acl_save_prefix"
10245 if test "X$x" = "X-I$additional_includedir"; then
10250 if test -z "$haveit"; then
10251 if test -d "$additional_includedir"; then
10252 INCMPFR
="${INCMPFR}${INCMPFR:+ }-I$additional_includedir"
10258 if test -n "$found_la"; then
10259 save_libdir
="$libdir"
10260 case "$found_la" in
10261 */* |
*\\*) .
"$found_la" ;;
10262 *) .
"./$found_la" ;;
10264 libdir
="$save_libdir"
10265 for dep
in $dependency_libs; do
10268 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10269 if test "X$additional_libdir" != "X/usr/lib"; then
10271 if test "X$additional_libdir" = "X/usr/local/lib"; then
10272 if test -n "$GCC"; then
10274 linux
*) haveit
=yes;;
10278 if test -z "$haveit"; then
10280 for x
in $LDFLAGS $LIBMPFR; do
10282 acl_save_prefix
="$prefix"
10283 prefix
="$acl_final_prefix"
10284 acl_save_exec_prefix
="$exec_prefix"
10285 exec_prefix
="$acl_final_exec_prefix"
10287 exec_prefix
="$acl_save_exec_prefix"
10288 prefix
="$acl_save_prefix"
10290 if test "X$x" = "X-L$additional_libdir"; then
10295 if test -z "$haveit"; then
10296 if test -d "$additional_libdir"; then
10297 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$additional_libdir"
10301 for x
in $LDFLAGS $LTLIBMPFR; do
10303 acl_save_prefix
="$prefix"
10304 prefix
="$acl_final_prefix"
10305 acl_save_exec_prefix
="$exec_prefix"
10306 exec_prefix
="$acl_final_exec_prefix"
10308 exec_prefix
="$acl_save_exec_prefix"
10309 prefix
="$acl_save_prefix"
10311 if test "X$x" = "X-L$additional_libdir"; then
10316 if test -z "$haveit"; then
10317 if test -d "$additional_libdir"; then
10318 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$additional_libdir"
10325 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10326 if test "$enable_rpath" != no
; then
10328 for x
in $rpathdirs; do
10329 if test "X$x" = "X$dir"; then
10334 if test -z "$haveit"; then
10335 rpathdirs
="$rpathdirs $dir"
10338 for x
in $ltrpathdirs; do
10339 if test "X$x" = "X$dir"; then
10344 if test -z "$haveit"; then
10345 ltrpathdirs
="$ltrpathdirs $dir"
10350 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10353 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10356 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$dep"
10357 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$dep"
10363 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
10364 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10365 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l$name"
10367 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l:lib$name.$libext"
10368 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l:lib$name.$libext"
10375 if test "X$rpathdirs" != "X"; then
10376 if test -n "$hardcode_libdir_separator"; then
10378 for found_dir
in $rpathdirs; do
10379 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10381 acl_save_libdir
="$libdir"
10383 eval flag
=\"$hardcode_libdir_flag_spec\"
10384 libdir
="$acl_save_libdir"
10385 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10387 for found_dir
in $rpathdirs; do
10388 acl_save_libdir
="$libdir"
10389 libdir
="$found_dir"
10390 eval flag
=\"$hardcode_libdir_flag_spec\"
10391 libdir
="$acl_save_libdir"
10392 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10396 if test "X$ltrpathdirs" != "X"; then
10397 for found_dir
in $ltrpathdirs; do
10398 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-R$found_dir"
10403 ac_save_CPPFLAGS
="$CPPFLAGS"
10405 for element
in $INCMPFR; do
10407 for x
in $CPPFLAGS; do
10409 acl_save_prefix
="$prefix"
10410 prefix
="$acl_final_prefix"
10411 acl_save_exec_prefix
="$exec_prefix"
10412 exec_prefix
="$acl_final_exec_prefix"
10414 exec_prefix
="$acl_save_exec_prefix"
10415 prefix
="$acl_save_prefix"
10417 if test "X$x" = "X$element"; then
10422 if test -z "$haveit"; then
10423 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpfr" >&5
10429 $as_echo_n "checking for libmpfr... " >&6; }
10430 if ${ac_cv_libmpfr+:} false
; then :
10431 $as_echo_n "(cached) " >&6
10434 ac_save_LIBS
="$LIBS"
10435 LIBS
="$LIBS $LIBMPFR"
10436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10437 /* end confdefs.h. */
10442 mpfr_exp_t exp; mpfr_t x;
10443 mpfr_frexp (&exp, x, x, MPFR_RNDN);
10448 if ac_fn_c_try_link
"$LINENO"; then :
10453 rm -f core conftest.err conftest.
$ac_objext \
10454 conftest
$ac_exeext conftest.
$ac_ext
10455 LIBS
="$ac_save_LIBS"
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmpfr" >&5
10459 $as_echo "$ac_cv_libmpfr" >&6; }
10460 if test "$ac_cv_libmpfr" = yes; then
10463 $as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libmpfr" >&5
10466 $as_echo_n "checking how to link with libmpfr... " >&6; }
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPFR" >&5
10468 $as_echo "$LIBMPFR" >&6; }
10471 CPPFLAGS
="$ac_save_CPPFLAGS"
10481 if test "$HAVE_LIBMPFR" != yes; then
10482 if test "$with_mpfr" = yes; then
10483 as_fn_error $?
"MPFR is missing or unusable" "$LINENO" 5
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR is missing or unusable; some features may be unavailable." >&5
10486 $as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;}
10491 # --------------------- #
10492 # Check for libpython. #
10493 # --------------------- #
10500 # Check whether --with-python was given.
10501 if test "${with_python+set}" = set; then :
10502 withval
=$with_python;
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10508 $as_echo_n "checking whether to use python... " >&6; }
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10510 $as_echo "$with_python" >&6; }
10512 if test "${with_python}" = no
; then
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10514 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10517 case "${with_python}" in
10519 if test -d "${with_python}"; then
10520 # Assume the python binary is ${with_python}/bin/python.
10521 python_prog
="${with_python}/bin/python"
10523 # If python does not exit ${with_python}/bin, then try in
10524 # ${with_python}. On Windows/MinGW, this is where the Python
10526 if test ! -x "${python_prog}"; then
10527 python_prog
="${with_python}/python"
10530 if test ! -x "${python_prog}"; then
10531 # Fall back to gdb 7.0/7.1 behaviour.
10532 python_prog
=missing
10533 python_prefix
=${with_python}
10535 elif test -x "${with_python}"; then
10536 # While we can't run python compiled for $host (unless host == build),
10537 # the user could write a script that provides the needed information,
10538 # so we support that.
10539 python_prog
=${with_python}
10542 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
10546 # Disallow --with-python=foo/bar.
10547 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
10550 # The user has either specified auto, yes, or the name of the python
10551 # program assumed to be in $PATH.
10553 case "${with_python}" in
10555 if test "${build}" = "${host}"; then
10556 # Extract the first word of "python", so it can be a program name with args.
10557 set dummy python
; ac_word
=$2
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10559 $as_echo_n "checking for $ac_word... " >&6; }
10560 if ${ac_cv_path_python_prog_path+:} false
; then :
10561 $as_echo_n "(cached) " >&6
10563 case $python_prog_path in
10565 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10568 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10569 for as_dir
in $PATH
10572 test -z "$as_dir" && as_dir
=.
10573 for ac_exec_ext
in '' $ac_executable_extensions; do
10574 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10575 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10583 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10587 python_prog_path
=$ac_cv_path_python_prog_path
10588 if test -n "$python_prog_path"; then
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10590 $as_echo "$python_prog_path" >&6; }
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10593 $as_echo "no" >&6; }
10597 if test "${python_prog_path}" = missing
; then
10598 python_prog
=missing
10600 python_prog
=${python_prog_path}
10603 # Not much we can do except assume the cross-compiler will find the
10605 python_prog
=missing
10609 # While we can't run python compiled for $host (unless host == build),
10610 # the user could write a script that provides the needed information,
10611 # so we support that.
10612 python_prog
="${with_python}"
10613 # Extract the first word of "${python_prog}", so it can be a program name with args.
10614 set dummy
${python_prog}; ac_word
=$2
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10616 $as_echo_n "checking for $ac_word... " >&6; }
10617 if ${ac_cv_path_python_prog_path+:} false
; then :
10618 $as_echo_n "(cached) " >&6
10620 case $python_prog_path in
10622 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10625 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10626 for as_dir
in $PATH
10629 test -z "$as_dir" && as_dir
=.
10630 for ac_exec_ext
in '' $ac_executable_extensions; do
10631 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10632 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10640 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10644 python_prog_path
=$ac_cv_path_python_prog_path
10645 if test -n "$python_prog_path"; then
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10647 $as_echo "$python_prog_path" >&6; }
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10650 $as_echo "no" >&6; }
10654 if test "${python_prog_path}" = missing
; then
10655 as_fn_error $?
"unable to find python program ${python_prog}" "$LINENO" 5
10661 if test "${python_prog}" != missing
; then
10662 # We have a python program to use, but it may be too old.
10663 # Don't flag an error for --with-python=auto (the default).
10664 have_python_config
=yes
10665 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
10666 if test $?
!= 0; then
10667 have_python_config
=failed
10668 if test "${with_python}" != auto
; then
10669 as_fn_error $?
"failure running python-config --includes" "$LINENO" 5
10672 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10673 if test $?
!= 0; then
10674 have_python_config
=failed
10675 if test "${with_python}" != auto
; then
10676 as_fn_error $?
"failure running python-config --ldflags" "$LINENO" 5
10679 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10680 if test $?
!= 0; then
10681 have_python_config
=failed
10682 if test "${with_python}" != auto
; then
10683 as_fn_error $?
"failure running python-config --exec-prefix" "$LINENO" 5
10687 # We do not have a python executable we can use to determine where
10688 # to find the Python headers and libs. We cannot guess the include
10689 # path from the python_prefix either, because that include path
10690 # depends on the Python version. So, there is nothing much we can
10691 # do except assume that the compiler will be able to find those files.
10694 have_python_config
=no
10697 # If we have python-config, only try the configuration it provides.
10698 # Otherwise fallback on the old way of trying different versions of
10702 if test "${have_python_config}" = yes; then
10705 new_CPPFLAGS
=${python_includes}
10706 new_LIBS
=${python_libs}
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
10708 $as_echo_n "checking for python... " >&6; }
10709 save_CPPFLAGS
=$CPPFLAGS
10711 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10712 LIBS
="$new_LIBS $LIBS"
10713 found_usable_python
=no
10714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10715 /* end confdefs.h. */
10716 #include "Python.h"
10725 if ac_fn_c_try_link
"$LINENO"; then :
10727 found_usable_python
=yes
10728 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10729 PYTHON_LIBS
=$new_LIBS
10731 rm -f core conftest.err conftest.
$ac_objext \
10732 conftest
$ac_exeext conftest.
$ac_ext
10733 CPPFLAGS
=$save_CPPFLAGS
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10736 $as_echo "${found_usable_python}" >&6; }
10738 elif test "${have_python_config}" != failed
; then
10739 if test "${have_libpython}" = no
; then
10742 new_CPPFLAGS
=${python_includes}
10743 new_LIBS
="-lpython2.7 ${python_libs}"
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
10745 $as_echo_n "checking for python... " >&6; }
10746 save_CPPFLAGS
=$CPPFLAGS
10748 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10749 LIBS
="$new_LIBS $LIBS"
10750 found_usable_python
=no
10751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10752 /* end confdefs.h. */
10753 #include "Python.h"
10762 if ac_fn_c_try_link
"$LINENO"; then :
10764 found_usable_python
=yes
10765 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10766 PYTHON_LIBS
=$new_LIBS
10768 rm -f core conftest.err conftest.
$ac_objext \
10769 conftest
$ac_exeext conftest.
$ac_ext
10770 CPPFLAGS
=$save_CPPFLAGS
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10773 $as_echo "${found_usable_python}" >&6; }
10776 if test "${have_libpython}" = no
; then
10779 new_CPPFLAGS
=${python_includes}
10780 new_LIBS
="-lpython2.6 ${python_libs}"
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
10782 $as_echo_n "checking for python... " >&6; }
10783 save_CPPFLAGS
=$CPPFLAGS
10785 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10786 LIBS
="$new_LIBS $LIBS"
10787 found_usable_python
=no
10788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10789 /* end confdefs.h. */
10790 #include "Python.h"
10799 if ac_fn_c_try_link
"$LINENO"; then :
10801 found_usable_python
=yes
10802 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10803 PYTHON_LIBS
=$new_LIBS
10805 rm -f core conftest.err conftest.
$ac_objext \
10806 conftest
$ac_exeext conftest.
$ac_ext
10807 CPPFLAGS
=$save_CPPFLAGS
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10810 $as_echo "${found_usable_python}" >&6; }
10815 if test "${have_libpython}" = no
; then
10816 case "${with_python}" in
10818 as_fn_error $?
"python is missing or unusable" "$LINENO" 5
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10822 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10825 as_fn_error $?
"no usable python found at ${with_python}" "$LINENO" 5
10829 if test -n "${python_prefix}"; then
10831 cat >>confdefs.h
<<_ACEOF
10832 #define WITH_PYTHON_PATH "${python_prefix}"
10836 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
10837 if test "x$prefix" = xNONE
; then
10838 test_prefix
=/usr
/local
10840 test_prefix
=$prefix
10843 test_prefix
=$exec_prefix
10846 case ${python_prefix} in
10847 "${test_prefix}"|
"${test_prefix}/"*|\
10848 '${exec_prefix}'|
'${exec_prefix}/'*)
10853 cat >>confdefs.h
<<_ACEOF
10854 #define PYTHON_PATH_RELOCATABLE $value
10863 # Check whether --with-python-libdir was given.
10864 if test "${with_python_libdir+set}" = set; then :
10865 withval
=$with_python_libdir;
10868 # If no python libdir is specified then select one based on
10869 # python's prefix path.
10870 if test -n "${python_prefix}"; then
10871 with_python_libdir
=${python_prefix}/lib
10877 if test "${have_libpython}" != no
; then
10879 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10881 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10882 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10883 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
10884 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
10885 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
10887 if test -n "${with_python_libdir}"; then
10889 cat >>confdefs.h
<<_ACEOF
10890 #define WITH_PYTHON_LIBDIR "${with_python_libdir}"
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 ${with_python_libdir} in
10905 "${test_prefix}"|
"${test_prefix}/"*|\
10906 '${exec_prefix}'|
'${exec_prefix}/'*)
10911 cat >>confdefs.h
<<_ACEOF
10912 #define PYTHON_LIBDIR_RELOCATABLE $value
10918 # Flags needed to compile Python code (taken from python-config --cflags).
10919 # We cannot call python-config directly because it will output whatever was
10920 # used when compiling the Python interpreter itself, including flags which
10921 # would make the python-related objects be compiled differently from the
10922 # rest of GDB (e.g., -O2 and -fPIC).
10923 if test "${GCC}" = yes; then
10924 tentative_python_cflags
="-fno-strict-aliasing -fwrapv"
10925 # Python headers recommend -DNDEBUG, but it's unclear if that just
10926 # refers to building Python itself. In release mode, though, it
10927 # doesn't hurt for the Python code in gdb to follow.
10928 $development || tentative_python_cflags
="$tentative_python_cflags -DNDEBUG"
10931 if test "x${tentative_python_cflags}" != x
; then
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10933 $as_echo_n "checking compiler flags for python code... " >&6; }
10934 for flag
in ${tentative_python_cflags}; do
10935 # Check that the compiler accepts it
10936 saved_CFLAGS
="$CFLAGS"
10937 CFLAGS
="$CFLAGS $flag"
10938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10939 /* end confdefs.h. */
10949 if ac_fn_c_try_compile
"$LINENO"; then :
10950 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
10952 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10953 CFLAGS
="$saved_CFLAGS"
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
10956 $as_echo "${PYTHON_CFLAGS}" >&6; }
10959 # On x64 Windows, Python's include headers, and pyconfig.h in
10960 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
10961 # version of Windows. Unfortunately, MS_WIN64 is only defined if
10962 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
10963 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
10964 # The issue was reported to the Python community, but still isn't
10965 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
10967 case "$gdb_host" in
10969 if test "${GCC}" = yes; then
10970 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
10975 # Even if Python support is not compiled in, we need to have this file
10976 # included so that the "python" command, et.al., still exists.
10977 CONFIG_OBS
="$CONFIG_OBS python/python.o"
10978 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
10981 # Work around Python http://bugs.python.org/issue10112. See also
10982 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
10983 # no effect. Note that the only test after this that uses Python is
10984 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
10985 # run without -export-dynamic too.
10986 PYTHON_LIBS
=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
10991 if test "${have_libpython}" != no
; then
10993 HAVE_PYTHON_FALSE
='#'
10995 HAVE_PYTHON_TRUE
='#'
11000 # -------------------- #
11001 # Check for libguile. #
11002 # -------------------- #
11009 # Check whether --with-guile was given.
11010 if test "${with_guile+set}" = set; then :
11011 withval
=$with_guile;
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
11017 $as_echo_n "checking whether to use guile... " >&6; }
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
11019 $as_echo "$with_guile" >&6; }
11021 # Extract the first word of "pkg-config", so it can be a program name with args.
11022 set dummy pkg-config
; ac_word
=$2
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11024 $as_echo_n "checking for $ac_word... " >&6; }
11025 if ${ac_cv_path_pkg_config_prog_path+:} false
; then :
11026 $as_echo_n "(cached) " >&6
11028 case $pkg_config_prog_path in
11030 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
11033 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11034 for as_dir
in $PATH
11037 test -z "$as_dir" && as_dir
=.
11038 for ac_exec_ext
in '' $ac_executable_extensions; do
11039 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11040 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
11041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11048 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
11052 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
11053 if test -n "$pkg_config_prog_path"; then
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
11055 $as_echo "$pkg_config_prog_path" >&6; }
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11058 $as_echo "no" >&6; }
11063 try_guile_versions
="guile-3.0 guile-2.2 guile-2.0"
11065 case "${with_guile}" in
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
11068 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
11071 if test "${pkg_config_prog_path}" = "missing"; then
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
11073 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
11076 pkg_config
=${pkg_config_prog_path}
11077 guile_version_list
=${try_guile_versions}
11080 found_usable_guile
=checking
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11082 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11083 for guile_version
in ${guile_version_list}; do
11084 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11085 if test $?
!= 0; then
11088 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11089 if test $?
!= 0; then
11090 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11092 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11093 if test $?
!= 0; then
11094 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11096 found_usable_guile
=${guile_version}
11099 if test "${found_usable_guile}" = "checking"; then
11100 if test "${flag_errors}" = "yes"; then
11101 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11103 found_usable_guile
=no
11106 if test "${found_usable_guile}" != no
; then
11107 save_CPPFLAGS
=$CPPFLAGS
11109 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11110 LIBS
="$LIBS $new_LIBS"
11111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11112 /* end confdefs.h. */
11113 #include "libguile.h"
11122 if ac_fn_c_try_link
"$LINENO"; then :
11124 GUILE_CPPFLAGS
=$new_CPPFLAGS
11125 GUILE_LIBS
=$new_LIBS
11127 found_usable_guile
=no
11129 rm -f core conftest.err conftest.
$ac_objext \
11130 conftest
$ac_exeext conftest.
$ac_ext
11131 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11132 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11134 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11139 CPPFLAGS
=$save_CPPFLAGS
11141 if test "${found_usable_guile}" = no
; then
11142 if test "${flag_errors}" = yes; then
11143 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11145 as_fn_error $?
"linking guile version ${guile_version} test program failed
11146 See \`config.log' for more details" "$LINENO" 5; }
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11151 $as_echo "${found_usable_guile}" >&6; }
11156 if test "${pkg_config_prog_path}" = "missing"; then
11157 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11160 pkg_config
=${pkg_config_prog_path}
11161 guile_version_list
=${try_guile_versions}
11164 found_usable_guile
=checking
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11166 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11167 for guile_version
in ${guile_version_list}; do
11168 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11169 if test $?
!= 0; then
11172 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11173 if test $?
!= 0; then
11174 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11176 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11177 if test $?
!= 0; then
11178 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11180 found_usable_guile
=${guile_version}
11183 if test "${found_usable_guile}" = "checking"; then
11184 if test "${flag_errors}" = "yes"; then
11185 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11187 found_usable_guile
=no
11190 if test "${found_usable_guile}" != no
; then
11191 save_CPPFLAGS
=$CPPFLAGS
11193 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11194 LIBS
="$LIBS $new_LIBS"
11195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11196 /* end confdefs.h. */
11197 #include "libguile.h"
11206 if ac_fn_c_try_link
"$LINENO"; then :
11208 GUILE_CPPFLAGS
=$new_CPPFLAGS
11209 GUILE_LIBS
=$new_LIBS
11211 found_usable_guile
=no
11213 rm -f core conftest.err conftest.
$ac_objext \
11214 conftest
$ac_exeext conftest.
$ac_ext
11215 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11216 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11218 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11223 CPPFLAGS
=$save_CPPFLAGS
11225 if test "${found_usable_guile}" = no
; then
11226 if test "${flag_errors}" = yes; then
11227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11229 as_fn_error $?
"linking guile version ${guile_version} test program failed
11230 See \`config.log' for more details" "$LINENO" 5; }
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11235 $as_echo "${found_usable_guile}" >&6; }
11239 if test -x "${with_guile}"; then
11241 pkg_config
=${with_guile}
11242 guile_version_list
=${try_guile_versions}
11245 found_usable_guile
=checking
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11247 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11248 for guile_version
in ${guile_version_list}; do
11249 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11250 if test $?
!= 0; then
11253 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11254 if test $?
!= 0; then
11255 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11257 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11258 if test $?
!= 0; then
11259 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11261 found_usable_guile
=${guile_version}
11264 if test "${found_usable_guile}" = "checking"; then
11265 if test "${flag_errors}" = "yes"; then
11266 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11268 found_usable_guile
=no
11271 if test "${found_usable_guile}" != no
; then
11272 save_CPPFLAGS
=$CPPFLAGS
11274 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11275 LIBS
="$LIBS $new_LIBS"
11276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11277 /* end confdefs.h. */
11278 #include "libguile.h"
11287 if ac_fn_c_try_link
"$LINENO"; then :
11289 GUILE_CPPFLAGS
=$new_CPPFLAGS
11290 GUILE_LIBS
=$new_LIBS
11292 found_usable_guile
=no
11294 rm -f core conftest.err conftest.
$ac_objext \
11295 conftest
$ac_exeext conftest.
$ac_ext
11296 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11297 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11299 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11304 CPPFLAGS
=$save_CPPFLAGS
11306 if test "${found_usable_guile}" = no
; then
11307 if test "${flag_errors}" = yes; then
11308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11310 as_fn_error $?
"linking guile version ${guile_version} test program failed
11311 See \`config.log' for more details" "$LINENO" 5; }
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11316 $as_echo "${found_usable_guile}" >&6; }
11319 as_fn_error $?
"Guile config program not executable: ${with_guile}" "$LINENO" 5
11323 # Disallow --with=guile="" and --with-guile=foo/bar.
11324 as_fn_error $?
"invalid value for --with-guile" "$LINENO" 5
11327 # A space separate list of guile versions to try, in order.
11328 if test "${pkg_config_prog_path}" = "missing"; then
11329 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11332 pkg_config
=${pkg_config_prog_path}
11333 guile_version_list
=${with_guile}
11336 found_usable_guile
=checking
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11338 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11339 for guile_version
in ${guile_version_list}; do
11340 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11341 if test $?
!= 0; then
11344 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11345 if test $?
!= 0; then
11346 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11348 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11349 if test $?
!= 0; then
11350 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11352 found_usable_guile
=${guile_version}
11355 if test "${found_usable_guile}" = "checking"; then
11356 if test "${flag_errors}" = "yes"; then
11357 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11359 found_usable_guile
=no
11362 if test "${found_usable_guile}" != no
; then
11363 save_CPPFLAGS
=$CPPFLAGS
11365 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11366 LIBS
="$LIBS $new_LIBS"
11367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11368 /* end confdefs.h. */
11369 #include "libguile.h"
11378 if ac_fn_c_try_link
"$LINENO"; then :
11380 GUILE_CPPFLAGS
=$new_CPPFLAGS
11381 GUILE_LIBS
=$new_LIBS
11383 found_usable_guile
=no
11385 rm -f core conftest.err conftest.
$ac_objext \
11386 conftest
$ac_exeext conftest.
$ac_ext
11387 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11388 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11390 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11395 CPPFLAGS
=$save_CPPFLAGS
11397 if test "${found_usable_guile}" = no
; then
11398 if test "${flag_errors}" = yes; then
11399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11401 as_fn_error $?
"linking guile version ${guile_version} test program failed
11402 See \`config.log' for more details" "$LINENO" 5; }
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11407 $as_echo "${found_usable_guile}" >&6; }
11412 if test "${have_libguile}" != no
; then
11413 case "${with_guile}" in
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11417 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11418 if ${ac_cv_guild_program_name+:} false
; then :
11419 $as_echo_n "(cached) " >&6
11421 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
11423 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11424 # the 'guild' and 'bindir' variables. In that case, try to guess
11425 # what the program name is, at the risk of getting it wrong if
11426 # Guile was configured with '--program-suffix' or similar.
11427 if test "x$ac_cv_guild_program_name" = "x"; then
11428 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
11429 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11434 $as_echo "$ac_cv_guild_program_name" >&6; }
11436 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11437 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11440 GUILD
="$ac_cv_guild_program_name"
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11447 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11448 if ${ac_cv_guild_program_name+:} false
; then :
11449 $as_echo_n "(cached) " >&6
11451 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
11453 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11454 # the 'guild' and 'bindir' variables. In that case, try to guess
11455 # what the program name is, at the risk of getting it wrong if
11456 # Guile was configured with '--program-suffix' or similar.
11457 if test "x$ac_cv_guild_program_name" = "x"; then
11458 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
11459 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11464 $as_echo "$ac_cv_guild_program_name" >&6; }
11466 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11467 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11470 GUILD
="$ac_cv_guild_program_name"
11477 if test "$cross_compiling" = no
; then
11480 GUILD_TARGET_FLAG
="--target=$host"
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
11487 $as_echo_n "checking whether guild supports this host... " >&6; }
11488 if ${ac_cv_guild_ok+:} false
; then :
11489 $as_echo_n "(cached) " >&6
11491 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
11492 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
11499 $as_echo "$ac_cv_guild_ok" >&6; }
11501 if test "$ac_cv_guild_ok" = no
; then
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
11504 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
11508 if test "${have_libguile}" != no
; then
11510 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
11512 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
11513 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
11514 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
11515 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
11516 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
11519 save_CPPFLAGS
="$CPPFLAGS"
11521 CPPFLAGS
="$GUILE_CPPFLAGS"
11522 for ac_func
in scm_new_smob
11524 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
11525 if test "x$ac_cv_func_scm_new_smob" = xyes
; then :
11526 cat >>confdefs.h
<<_ACEOF
11527 #define HAVE_SCM_NEW_SMOB 1
11534 CPPFLAGS
="$save_CPPFLAGS"
11536 # Even if Guile support is not compiled in, we need to have these files
11538 CONFIG_OBS
="$CONFIG_OBS guile/guile.o"
11539 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
11543 if test "${have_libguile}" != no
; then
11545 HAVE_GUILE_FALSE
='#'
11547 HAVE_GUILE_TRUE
='#'
11552 # ---------------------------- #
11553 # Check for source highlight. #
11554 # ---------------------------- #
11559 # Check whether --enable-source-highlight was given.
11560 if test "${enable_source_highlight+set}" = set; then :
11561 enableval
=$enable_source_highlight; case "${enableval}" in
11562 yes) enable_source_highlight
=yes ;;
11563 no
) enable_source_highlight
=no
;;
11564 *) as_fn_error $?
"bad value ${enableval} for source-highlight option" "$LINENO" 5 ;;
11567 enable_source_highlight
=auto
11571 if test "${enable_source_highlight}" != "no"; then
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
11573 $as_echo_n "checking for the source-highlight library... " >&6; }
11574 if test "${pkg_config_prog_path}" = "missing"; then
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
11576 $as_echo "no - pkg-config not found" >&6; }
11577 if test "${enable_source_highlight}" = "yes"; then
11578 as_fn_error $?
"pkg-config was not found in your system" "$LINENO" 5
11583 as_fn_error $?
"source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
11587 if ${pkg_config_prog_path} --exists source-highlight
; then
11588 SRCHIGH_CFLAGS
=`${pkg_config_prog_path} --cflags source-highlight`
11589 SRCHIGH_LIBS
=`${pkg_config_prog_path} --libs source-highlight`
11591 $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11594 $as_echo "yes" >&6; }
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11597 $as_echo "no" >&6; }
11598 if test "${enable_source_highlight}" = "yes"; then
11599 as_fn_error $?
"source-highlight was not found in your system" "$LINENO" 5
11607 # ------------------------- #
11608 # Checks for header files. #
11609 # ------------------------- #
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11612 $as_echo_n "checking for ANSI C header files... " >&6; }
11613 if ${ac_cv_header_stdc+:} false
; then :
11614 $as_echo_n "(cached) " >&6
11616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11617 /* end confdefs.h. */
11618 #include <stdlib.h>
11619 #include <stdarg.h>
11620 #include <string.h>
11631 if ac_fn_c_try_compile
"$LINENO"; then :
11632 ac_cv_header_stdc
=yes
11634 ac_cv_header_stdc
=no
11636 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11638 if test $ac_cv_header_stdc = yes; then
11639 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11641 /* end confdefs.h. */
11642 #include <string.h>
11645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11646 $EGREP "memchr" >/dev
/null
2>&1; then :
11649 ac_cv_header_stdc
=no
11655 if test $ac_cv_header_stdc = yes; then
11656 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11658 /* end confdefs.h. */
11659 #include <stdlib.h>
11662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11663 $EGREP "free" >/dev
/null
2>&1; then :
11666 ac_cv_header_stdc
=no
11672 if test $ac_cv_header_stdc = yes; then
11673 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11674 if test "$cross_compiling" = yes; then :
11677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11678 /* end confdefs.h. */
11680 #include <stdlib.h>
11681 #if ((' ' & 0x0FF) == 0x020)
11682 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11683 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11685 # define ISLOWER(c) \
11686 (('a' <= (c) && (c) <= 'i') \
11687 || ('j' <= (c) && (c) <= 'r') \
11688 || ('s' <= (c) && (c) <= 'z'))
11689 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11692 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11697 for (i = 0; i < 256; i++)
11698 if (XOR (islower (i), ISLOWER (i))
11699 || toupper (i) != TOUPPER (i))
11704 if ac_fn_c_try_run
"$LINENO"; then :
11707 ac_cv_header_stdc
=no
11709 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11710 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11716 $as_echo "$ac_cv_header_stdc" >&6; }
11717 if test $ac_cv_header_stdc = yes; then
11719 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11723 # elf_hp.h is for HP/UX 64-bit shared library support.
11724 for ac_header
in nlist.h machine
/reg.h \
11726 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
11727 sys
/resource.h sys
/ptrace.h ptrace.h \
11728 sys
/reg.h sys
/debugreg.h \
11731 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11732 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11733 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
11734 cat >>confdefs.h
<<_ACEOF
11735 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11742 for ac_header
in sys
/user.h
11744 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
11745 # include <sys/param.h>
11749 if test "x$ac_cv_header_sys_user_h" = xyes
; then :
11750 cat >>confdefs.h
<<_ACEOF
11751 #define HAVE_SYS_USER_H 1
11759 for ac_header
in curses.h cursesX.h ncurses.h ncursesw
/ncurses.h ncurses
/ncurses.h ncurses
/term.h
11761 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11762 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11763 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
11764 cat >>confdefs.h
<<_ACEOF
11765 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11772 for ac_header
in term.h
11774 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
11775 # include <curses.h>
11779 if test "x$ac_cv_header_term_h" = xyes
; then :
11780 cat >>confdefs.h
<<_ACEOF
11781 #define HAVE_TERM_H 1
11789 for ac_header
in sys
/socket.h
11791 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
11792 if test "x$ac_cv_header_sys_socket_h" = xyes
; then :
11793 cat >>confdefs.h
<<_ACEOF
11794 #define HAVE_SYS_SOCKET_H 1
11801 for ac_header
in ws2tcpip.h
11803 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
11804 if test "x$ac_cv_header_ws2tcpip_h" = xyes
; then :
11805 cat >>confdefs.h
<<_ACEOF
11806 #define HAVE_WS2TCPIP_H 1
11814 # ------------------------- #
11815 # Checks for declarations. #
11816 # ------------------------- #
11819 # Check for presence and size of long long.
11820 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
11821 if test "x$ac_cv_type_long_long" = xyes
; then :
11823 cat >>confdefs.h
<<_ACEOF
11824 #define HAVE_LONG_LONG 1
11827 # The cast to long int works around a bug in the HP C Compiler
11828 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11829 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11830 # This bug is HP SR number 8606223364.
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
11832 $as_echo_n "checking size of long long... " >&6; }
11833 if ${ac_cv_sizeof_long_long+:} false
; then :
11834 $as_echo_n "(cached) " >&6
11836 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
11839 if test "$ac_cv_type_long_long" = yes; then
11840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11842 as_fn_error
77 "cannot compute sizeof (long long)
11843 See \`config.log' for more details" "$LINENO" 5; }
11845 ac_cv_sizeof_long_long
=0
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
11851 $as_echo "$ac_cv_sizeof_long_long" >&6; }
11855 cat >>confdefs.h
<<_ACEOF
11856 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11863 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
11864 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
11865 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
11871 cat >>confdefs.h
<<_ACEOF
11872 #define HAVE_DECL_BASENAME $ac_have_decl
11874 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
11875 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
11881 cat >>confdefs.h
<<_ACEOF
11882 #define HAVE_DECL_FFS $ac_have_decl
11884 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
11885 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
11891 cat >>confdefs.h
<<_ACEOF
11892 #define HAVE_DECL_ASPRINTF $ac_have_decl
11894 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
11895 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
11901 cat >>confdefs.h
<<_ACEOF
11902 #define HAVE_DECL_VASPRINTF $ac_have_decl
11904 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11905 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
11911 cat >>confdefs.h
<<_ACEOF
11912 #define HAVE_DECL_SNPRINTF $ac_have_decl
11914 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
11915 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
11921 cat >>confdefs.h
<<_ACEOF
11922 #define HAVE_DECL_VSNPRINTF $ac_have_decl
11925 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
11926 if test "x$ac_cv_have_decl_strtol" = xyes
; then :
11932 cat >>confdefs.h
<<_ACEOF
11933 #define HAVE_DECL_STRTOL $ac_have_decl
11935 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
11936 if test "x$ac_cv_have_decl_strtoul" = xyes
; then :
11942 cat >>confdefs.h
<<_ACEOF
11943 #define HAVE_DECL_STRTOUL $ac_have_decl
11945 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
11946 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
11952 cat >>confdefs.h
<<_ACEOF
11953 #define HAVE_DECL_STRTOLL $ac_have_decl
11955 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
11956 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
11962 cat >>confdefs.h
<<_ACEOF
11963 #define HAVE_DECL_STRTOULL $ac_have_decl
11966 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
11967 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
11973 cat >>confdefs.h
<<_ACEOF
11974 #define HAVE_DECL_STRVERSCMP $ac_have_decl
11979 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11980 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
11986 cat >>confdefs.h
<<_ACEOF
11987 #define HAVE_DECL_SNPRINTF $ac_have_decl
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11992 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11993 if ${am_cv_val_LC_MESSAGES+:} false
; then :
11994 $as_echo_n "(cached) " >&6
11996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11997 /* end confdefs.h. */
11998 #include <locale.h>
12007 if ac_fn_c_try_link
"$LINENO"; then :
12008 am_cv_val_LC_MESSAGES
=yes
12010 am_cv_val_LC_MESSAGES
=no
12012 rm -f core conftest.err conftest.
$ac_objext \
12013 conftest
$ac_exeext conftest.
$ac_ext
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12016 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12017 if test $am_cv_val_LC_MESSAGES = yes; then
12019 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12024 # ------------------ #
12025 # Checks for types. #
12026 # ------------------ #
12028 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12029 #if HAVE_SYS_SOCKET_H
12030 # include <sys/socket.h>
12031 #elif HAVE_WS2TCPIP_H
12032 # include <ws2tcpip.h>
12036 if test "x$ac_cv_type_socklen_t" = xyes
; then :
12038 cat >>confdefs.h
<<_ACEOF
12039 #define HAVE_SOCKLEN_T 1
12046 # ------------------------------------- #
12047 # Checks for compiler characteristics. #
12048 # ------------------------------------- #
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12051 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12052 if ${ac_cv_c_const+:} false
; then :
12053 $as_echo_n "(cached) " >&6
12055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12056 /* end confdefs.h. */
12062 #ifndef __cplusplus
12063 /* Ultrix mips cc rejects this sort of thing. */
12064 typedef int charset[2];
12065 const charset cs = { 0, 0 };
12066 /* SunOS 4.1.1 cc rejects this. */
12067 char const *const *pcpcc;
12069 /* NEC SVR4.0.2 mips cc rejects this. */
12070 struct point {int x, y;};
12071 static struct point const zero = {0,0};
12072 /* AIX XL C 1.02.0.0 rejects this.
12073 It does not let you subtract one const X* pointer from another in
12074 an arm of an if-expression whose if-part is not a constant
12076 const char *g = "string";
12077 pcpcc = &g + (g ? g-g : 0);
12078 /* HPUX 7.0 cc rejects these. */
12080 ppc = (char**) pcpcc;
12081 pcpcc = (char const *const *) ppc;
12082 { /* SCO 3.2v4 cc rejects this sort of thing. */
12085 char const *s = 0 ? (char *) 0 : (char const *) 0;
12090 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12091 int x[] = {25, 17};
12092 const int *foo = &x[0];
12095 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12096 typedef const int *iptr;
12100 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12101 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12102 struct s { int j; const int *ap[3]; } bx;
12103 struct s *b = &bx; b->j = 5;
12105 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12106 const int foo = 10;
12107 if (!foo) return 0;
12109 return !cs[0] && !zero.x;
12116 if ac_fn_c_try_compile
"$LINENO"; then :
12121 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12124 $as_echo "$ac_cv_c_const" >&6; }
12125 if test $ac_cv_c_const = no
; then
12127 $as_echo "#define const /**/" >>confdefs.h
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12132 $as_echo_n "checking for inline... " >&6; }
12133 if ${ac_cv_c_inline+:} false
; then :
12134 $as_echo_n "(cached) " >&6
12137 for ac_kw
in inline __inline__ __inline
; do
12138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12139 /* end confdefs.h. */
12140 #ifndef __cplusplus
12142 static $ac_kw foo_t static_foo () {return 0; }
12143 $ac_kw foo_t foo () {return 0; }
12147 if ac_fn_c_try_compile
"$LINENO"; then :
12148 ac_cv_c_inline
=$ac_kw
12150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12151 test "$ac_cv_c_inline" != no
&& break
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12156 $as_echo "$ac_cv_c_inline" >&6; }
12158 case $ac_cv_c_inline in
12161 case $ac_cv_c_inline in
12163 *) ac_val
=$ac_cv_c_inline;;
12165 cat >>confdefs.h
<<_ACEOF
12166 #ifndef __cplusplus
12167 #define inline $ac_val
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12174 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12175 if ${ac_cv_c_bigendian+:} false
; then :
12176 $as_echo_n "(cached) " >&6
12178 ac_cv_c_bigendian
=unknown
12179 # See if we're dealing with a universal compiler.
12180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12181 /* end confdefs.h. */
12182 #ifndef __APPLE_CC__
12183 not a universal capable compiler
12188 if ac_fn_c_try_compile
"$LINENO"; then :
12190 # Check for potential -arch flags. It is not universal unless
12191 # there are at least two -arch flags with different values.
12194 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12195 if test -n "$ac_prev"; then
12197 i?
86 | x86_64 | ppc | ppc64
)
12198 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12201 ac_cv_c_bigendian
=universal
12207 elif test "x$ac_word" = "x-arch"; then
12212 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12213 if test $ac_cv_c_bigendian = unknown
; then
12214 # See if sys/param.h defines the BYTE_ORDER macro.
12215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12216 /* end confdefs.h. */
12217 #include <sys/types.h>
12218 #include <sys/param.h>
12223 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12224 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12226 bogus endian macros
12233 if ac_fn_c_try_compile
"$LINENO"; then :
12234 # It does; now see whether it defined to BIG_ENDIAN or not.
12235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12236 /* end confdefs.h. */
12237 #include <sys/types.h>
12238 #include <sys/param.h>
12243 #if BYTE_ORDER != BIG_ENDIAN
12251 if ac_fn_c_try_compile
"$LINENO"; then :
12252 ac_cv_c_bigendian
=yes
12254 ac_cv_c_bigendian
=no
12256 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12258 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12260 if test $ac_cv_c_bigendian = unknown
; then
12261 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12263 /* end confdefs.h. */
12264 #include <limits.h>
12269 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12270 bogus endian macros
12277 if ac_fn_c_try_compile
"$LINENO"; then :
12278 # It does; now see whether it defined to _BIG_ENDIAN or not.
12279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12280 /* end confdefs.h. */
12281 #include <limits.h>
12286 #ifndef _BIG_ENDIAN
12294 if ac_fn_c_try_compile
"$LINENO"; then :
12295 ac_cv_c_bigendian
=yes
12297 ac_cv_c_bigendian
=no
12299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12301 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12303 if test $ac_cv_c_bigendian = unknown
; then
12304 # Compile a test program.
12305 if test "$cross_compiling" = yes; then :
12306 # Try to guess by grepping values from an object file.
12307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12308 /* end confdefs.h. */
12309 short int ascii_mm[] =
12310 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12311 short int ascii_ii[] =
12312 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12313 int use_ascii (int i) {
12314 return ascii_mm[i] + ascii_ii[i];
12316 short int ebcdic_ii[] =
12317 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12318 short int ebcdic_mm[] =
12319 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12320 int use_ebcdic (int i) {
12321 return ebcdic_mm[i] + ebcdic_ii[i];
12328 return use_ascii (foo) == use_ebcdic (foo);
12333 if ac_fn_c_try_compile
"$LINENO"; then :
12334 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12335 ac_cv_c_bigendian
=yes
12337 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12338 if test "$ac_cv_c_bigendian" = unknown
; then
12339 ac_cv_c_bigendian
=no
12341 # finding both strings is unlikely to happen, but who knows?
12342 ac_cv_c_bigendian
=unknown
12346 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12349 /* end confdefs.h. */
12350 $ac_includes_default
12355 /* Are we little or big endian? From Harbison&Steele. */
12359 char c[sizeof (long int)];
12362 return u.c[sizeof (long int) - 1] == 1;
12368 if ac_fn_c_try_run
"$LINENO"; then :
12369 ac_cv_c_bigendian
=no
12371 ac_cv_c_bigendian
=yes
12373 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12374 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12380 $as_echo "$ac_cv_c_bigendian" >&6; }
12381 case $ac_cv_c_bigendian in #(
12383 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12389 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12393 as_fn_error $?
"unknown endianness
12394 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12398 # ------------------------------ #
12399 # Checks for library functions. #
12400 # ------------------------------ #
12402 for ac_func
in getuid getgid \
12403 pipe pread pread64 pwrite resize_term \
12405 sigaction sigsetmask socketpair \
12406 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
12407 setrlimit getrlimit posix_madvise waitpid \
12410 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12411 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12412 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12413 cat >>confdefs.h
<<_ACEOF
12414 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12422 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12423 if ${am_cv_langinfo_codeset+:} false
; then :
12424 $as_echo_n "(cached) " >&6
12426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12427 /* end confdefs.h. */
12428 #include <langinfo.h>
12432 char* cs = nl_langinfo(CODESET);
12437 if ac_fn_c_try_link
"$LINENO"; then :
12438 am_cv_langinfo_codeset
=yes
12440 am_cv_langinfo_codeset
=no
12442 rm -f core conftest.err conftest.
$ac_objext \
12443 conftest
$ac_exeext conftest.
$ac_ext
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12447 $as_echo "$am_cv_langinfo_codeset" >&6; }
12448 if test $am_cv_langinfo_codeset = yes; then
12450 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12454 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12455 if test "x$ac_cv_type_size_t" = xyes
; then :
12459 cat >>confdefs.h
<<_ACEOF
12460 #define size_t unsigned int
12468 for ac_header
in $ac_header_list
12470 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12471 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12473 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12474 cat >>confdefs.h
<<_ACEOF
12475 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12488 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12489 if test "x$ac_cv_type_pid_t" = xyes
; then :
12493 cat >>confdefs.h
<<_ACEOF
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12500 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12501 if ${ac_cv_path_SED+:} false
; then :
12502 $as_echo_n "(cached) " >&6
12504 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
12505 for ac_i
in 1 2 3 4 5 6 7; do
12506 ac_script
="$ac_script$as_nl$ac_script"
12508 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
12509 { ac_script
=; unset ac_script
;}
12510 if test -z "$SED"; then
12511 ac_path_SED_found
=false
12512 # Loop through the user's path and test for each of PROGNAME-LIST
12513 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12514 for as_dir
in $PATH
12517 test -z "$as_dir" && as_dir
=.
12518 for ac_prog
in sed gsed
; do
12519 for ac_exec_ext
in '' $ac_executable_extensions; do
12520 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12521 as_fn_executable_p
"$ac_path_SED" ||
continue
12522 # Check for GNU ac_path_SED and select it if it is found.
12523 # Check for GNU $ac_path_SED
12524 case `"$ac_path_SED" --version 2>&1` in
12526 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12529 $as_echo_n 0123456789 >"conftest.in"
12532 cat "conftest.in" "conftest.in" >"conftest.tmp"
12533 mv "conftest.tmp" "conftest.in"
12534 cp "conftest.in" "conftest.nl"
12535 $as_echo '' >> "conftest.nl"
12536 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12537 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12538 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12539 if test $ac_count -gt ${ac_path_SED_max-0}; then
12540 # Best one so far, save it but keep looking for a better one
12541 ac_cv_path_SED
="$ac_path_SED"
12542 ac_path_SED_max
=$ac_count
12544 # 10*(2^10) chars as input seems more than enough
12545 test $ac_count -gt 10 && break
12547 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12550 $ac_path_SED_found && break 3
12555 if test -z "$ac_cv_path_SED"; then
12556 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12559 ac_cv_path_SED
=$SED
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12564 $as_echo "$ac_cv_path_SED" >&6; }
12565 SED
="$ac_cv_path_SED"
12569 # Set the 'development' global.
12570 .
$srcdir/..
/bfd
/development.sh
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12573 $as_echo_n "checking for ANSI C header files... " >&6; }
12574 if ${ac_cv_header_stdc+:} false
; then :
12575 $as_echo_n "(cached) " >&6
12577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12578 /* end confdefs.h. */
12579 #include <stdlib.h>
12580 #include <stdarg.h>
12581 #include <string.h>
12592 if ac_fn_c_try_compile
"$LINENO"; then :
12593 ac_cv_header_stdc
=yes
12595 ac_cv_header_stdc
=no
12597 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12599 if test $ac_cv_header_stdc = yes; then
12600 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12602 /* end confdefs.h. */
12603 #include <string.h>
12606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12607 $EGREP "memchr" >/dev
/null
2>&1; then :
12610 ac_cv_header_stdc
=no
12616 if test $ac_cv_header_stdc = yes; then
12617 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12619 /* end confdefs.h. */
12620 #include <stdlib.h>
12623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12624 $EGREP "free" >/dev
/null
2>&1; then :
12627 ac_cv_header_stdc
=no
12633 if test $ac_cv_header_stdc = yes; then
12634 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12635 if test "$cross_compiling" = yes; then :
12638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12639 /* end confdefs.h. */
12641 #include <stdlib.h>
12642 #if ((' ' & 0x0FF) == 0x020)
12643 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12644 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12646 # define ISLOWER(c) \
12647 (('a' <= (c) && (c) <= 'i') \
12648 || ('j' <= (c) && (c) <= 'r') \
12649 || ('s' <= (c) && (c) <= 'z'))
12650 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12653 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12658 for (i = 0; i < 256; i++)
12659 if (XOR (islower (i), ISLOWER (i))
12660 || toupper (i) != TOUPPER (i))
12665 if ac_fn_c_try_run
"$LINENO"; then :
12668 ac_cv_header_stdc
=no
12670 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12671 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12677 $as_echo "$ac_cv_header_stdc" >&6; }
12678 if test $ac_cv_header_stdc = yes; then
12680 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12684 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12685 # for constant arguments. Useless!
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12687 $as_echo_n "checking for working alloca.h... " >&6; }
12688 if ${ac_cv_working_alloca_h+:} false
; then :
12689 $as_echo_n "(cached) " >&6
12691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12692 /* end confdefs.h. */
12693 #include <alloca.h>
12697 char *p = (char *) alloca (2 * sizeof (int));
12703 if ac_fn_c_try_link
"$LINENO"; then :
12704 ac_cv_working_alloca_h
=yes
12706 ac_cv_working_alloca_h
=no
12708 rm -f core conftest.err conftest.
$ac_objext \
12709 conftest
$ac_exeext conftest.
$ac_ext
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12712 $as_echo "$ac_cv_working_alloca_h" >&6; }
12713 if test $ac_cv_working_alloca_h = yes; then
12715 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12720 $as_echo_n "checking for alloca... " >&6; }
12721 if ${ac_cv_func_alloca_works+:} false
; then :
12722 $as_echo_n "(cached) " >&6
12724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12725 /* end confdefs.h. */
12727 # define alloca __builtin_alloca
12730 # include <malloc.h>
12731 # define alloca _alloca
12733 # ifdef HAVE_ALLOCA_H
12734 # include <alloca.h>
12739 # ifndef alloca /* predefined by HP cc +Olibcalls */
12740 void *alloca (size_t);
12750 char *p = (char *) alloca (1);
12756 if ac_fn_c_try_link
"$LINENO"; then :
12757 ac_cv_func_alloca_works
=yes
12759 ac_cv_func_alloca_works
=no
12761 rm -f core conftest.err conftest.
$ac_objext \
12762 conftest
$ac_exeext conftest.
$ac_ext
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12765 $as_echo "$ac_cv_func_alloca_works" >&6; }
12767 if test $ac_cv_func_alloca_works = yes; then
12769 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12772 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12773 # that cause trouble. Some versions do not even contain alloca or
12774 # contain a buggy version. If you still want to use their alloca,
12775 # use ar to extract alloca.o from them instead of compiling alloca.c.
12777 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
12779 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12783 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12784 if ${ac_cv_os_cray+:} false
; then :
12785 $as_echo_n "(cached) " >&6
12787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12788 /* end confdefs.h. */
12789 #if defined CRAY && ! defined CRAY2
12796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12797 $EGREP "webecray" >/dev
/null
2>&1; then :
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12806 $as_echo "$ac_cv_os_cray" >&6; }
12807 if test $ac_cv_os_cray = yes; then
12808 for ac_func
in _getb67 GETB67 getb67
; do
12809 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12810 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12811 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12813 cat >>confdefs.h
<<_ACEOF
12814 #define CRAY_STACKSEG_END $ac_func
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12824 $as_echo_n "checking stack direction for C alloca... " >&6; }
12825 if ${ac_cv_c_stack_direction+:} false
; then :
12826 $as_echo_n "(cached) " >&6
12828 if test "$cross_compiling" = yes; then :
12829 ac_cv_c_stack_direction
=0
12831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12832 /* end confdefs.h. */
12833 $ac_includes_default
12835 find_stack_direction (int *addr, int depth)
12837 int dir, dummy = 0;
12840 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
12841 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
12842 return dir + dummy;
12846 main (int argc, char **argv)
12848 return find_stack_direction (0, argc + !argv + 20) < 0;
12851 if ac_fn_c_try_run
"$LINENO"; then :
12852 ac_cv_c_stack_direction
=1
12854 ac_cv_c_stack_direction
=-1
12856 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12857 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12862 $as_echo "$ac_cv_c_stack_direction" >&6; }
12863 cat >>confdefs.h
<<_ACEOF
12864 #define STACK_DIRECTION $ac_cv_c_stack_direction
12875 $as_echo "#define USE_WIN32API 1" >>confdefs.h
12877 WIN32APILIBS
="-lws2_32"
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12883 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12884 if ${am_cv_langinfo_codeset+:} false
; then :
12885 $as_echo_n "(cached) " >&6
12887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12888 /* end confdefs.h. */
12889 #include <langinfo.h>
12893 char* cs = nl_langinfo(CODESET);
12898 if ac_fn_c_try_link
"$LINENO"; then :
12899 am_cv_langinfo_codeset
=yes
12901 am_cv_langinfo_codeset
=no
12903 rm -f core conftest.err conftest.
$ac_objext \
12904 conftest
$ac_exeext conftest.
$ac_ext
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12908 $as_echo "$am_cv_langinfo_codeset" >&6; }
12909 if test $am_cv_langinfo_codeset = yes; then
12911 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12916 for ac_header
in linux
/perf_event.h locale.h memory.h signal.h sys
/resource.h sys
/socket.h sys
/un.h sys
/wait.h thread_db.h
wait.h termios.h dlfcn.h linux
/elf.h proc_service.h poll.h sys
/poll.h sys
/select.h
12918 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12919 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12920 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12921 cat >>confdefs.h
<<_ACEOF
12922 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12931 for ac_func
in getpagesize
12933 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12934 if test "x$ac_cv_func_getpagesize" = xyes
; then :
12935 cat >>confdefs.h
<<_ACEOF
12936 #define HAVE_GETPAGESIZE 1
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12943 $as_echo_n "checking for working mmap... " >&6; }
12944 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
12945 $as_echo_n "(cached) " >&6
12947 if test "$cross_compiling" = yes; then :
12948 ac_cv_func_mmap_fixed_mapped
=no
12950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12951 /* end confdefs.h. */
12952 $ac_includes_default
12953 /* malloc might have been renamed as rpl_malloc. */
12956 /* Thanks to Mike Haertel and Jim Avera for this test.
12957 Here is a matrix of mmap possibilities:
12958 mmap private not fixed
12959 mmap private fixed at somewhere currently unmapped
12960 mmap private fixed at somewhere already mapped
12961 mmap shared not fixed
12962 mmap shared fixed at somewhere currently unmapped
12963 mmap shared fixed at somewhere already mapped
12964 For private mappings, we should verify that changes cannot be read()
12965 back from the file, nor mmap's back from the file at a different
12966 address. (There have been systems where private was not correctly
12967 implemented like the infamous i386 svr4.0, and systems where the
12968 VM page cache was not coherent with the file system buffer cache
12969 like early versions of FreeBSD and possibly contemporary NetBSD.)
12970 For shared mappings, we should conversely verify that changes get
12971 propagated back to all the places they're supposed to be.
12973 Grep wants private fixed already mapped.
12974 The main things grep needs to know about mmap are:
12975 * does it exist and is it safe to write into the mmap'd area
12976 * how to use it (BSD variants) */
12979 #include <sys/mman.h>
12981 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12985 /* This mess was copied from the GNU getpagesize.h. */
12986 #ifndef HAVE_GETPAGESIZE
12987 # ifdef _SC_PAGESIZE
12988 # define getpagesize() sysconf(_SC_PAGESIZE)
12989 # else /* no _SC_PAGESIZE */
12990 # ifdef HAVE_SYS_PARAM_H
12991 # include <sys/param.h>
12992 # ifdef EXEC_PAGESIZE
12993 # define getpagesize() EXEC_PAGESIZE
12994 # else /* no EXEC_PAGESIZE */
12996 # define getpagesize() NBPG * CLSIZE
12999 # endif /* no CLSIZE */
13000 # else /* no NBPG */
13002 # define getpagesize() NBPC
13003 # else /* no NBPC */
13005 # define getpagesize() PAGESIZE
13006 # endif /* PAGESIZE */
13007 # endif /* no NBPC */
13008 # endif /* no NBPG */
13009 # endif /* no EXEC_PAGESIZE */
13010 # else /* no HAVE_SYS_PARAM_H */
13011 # define getpagesize() 8192 /* punt totally */
13012 # endif /* no HAVE_SYS_PARAM_H */
13013 # endif /* no _SC_PAGESIZE */
13015 #endif /* no HAVE_GETPAGESIZE */
13020 char *data, *data2, *data3;
13021 const char *cdata2;
13025 pagesize = getpagesize ();
13027 /* First, make a file with some known garbage in it. */
13028 data = (char *) malloc (pagesize);
13031 for (i = 0; i < pagesize; ++i)
13032 *(data + i) = rand ();
13034 fd = creat ("conftest.mmap", 0600);
13037 if (write (fd, data, pagesize) != pagesize)
13041 /* Next, check that the tail of a page is zero-filled. File must have
13042 non-zero length, otherwise we risk SIGBUS for entire page. */
13043 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13047 if (write (fd2, cdata2, 1) != 1)
13049 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13050 if (data2 == MAP_FAILED)
13052 for (i = 0; i < pagesize; ++i)
13056 if (munmap (data2, pagesize))
13059 /* Next, try to mmap the file at a fixed address which already has
13060 something else allocated at it. If we can, also make sure that
13061 we see the same garbage. */
13062 fd = open ("conftest.mmap", O_RDWR);
13065 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13066 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13068 for (i = 0; i < pagesize; ++i)
13069 if (*(data + i) != *(data2 + i))
13072 /* Finally, make sure that changes to the mapped area do not
13073 percolate back to the file as seen by read(). (This is a bug on
13074 some variants of i386 svr4.0.) */
13075 for (i = 0; i < pagesize; ++i)
13076 *(data2 + i) = *(data2 + i) + 1;
13077 data3 = (char *) malloc (pagesize);
13080 if (read (fd, data3, pagesize) != pagesize)
13082 for (i = 0; i < pagesize; ++i)
13083 if (*(data + i) != *(data3 + i))
13089 if ac_fn_c_try_run
"$LINENO"; then :
13090 ac_cv_func_mmap_fixed_mapped
=yes
13092 ac_cv_func_mmap_fixed_mapped
=no
13094 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13095 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13100 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13101 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13103 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13106 rm -f conftest.mmap conftest.txt
13108 for ac_header
in vfork.h
13110 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13111 if test "x$ac_cv_header_vfork_h" = xyes
; then :
13112 cat >>confdefs.h
<<_ACEOF
13113 #define HAVE_VFORK_H 1
13120 for ac_func
in fork vfork
13122 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13123 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13124 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13125 cat >>confdefs.h
<<_ACEOF
13126 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13132 if test "x$ac_cv_func_fork" = xyes
; then
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13134 $as_echo_n "checking for working fork... " >&6; }
13135 if ${ac_cv_func_fork_works+:} false
; then :
13136 $as_echo_n "(cached) " >&6
13138 if test "$cross_compiling" = yes; then :
13139 ac_cv_func_fork_works
=cross
13141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13142 /* end confdefs.h. */
13143 $ac_includes_default
13148 /* By Ruediger Kuhlmann. */
13149 return fork () < 0;
13155 if ac_fn_c_try_run
"$LINENO"; then :
13156 ac_cv_func_fork_works
=yes
13158 ac_cv_func_fork_works
=no
13160 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13161 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13166 $as_echo "$ac_cv_func_fork_works" >&6; }
13169 ac_cv_func_fork_works
=$ac_cv_func_fork
13171 if test "x$ac_cv_func_fork_works" = xcross
; then
13173 *-*-amigaos* |
*-*-msdosdjgpp*)
13174 # Override, as these systems have only a dummy fork() stub
13175 ac_cv_func_fork_works
=no
13178 ac_cv_func_fork_works
=yes
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13182 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13184 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13185 if test "x$ac_cv_func_vfork" = xyes
; then
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13187 $as_echo_n "checking for working vfork... " >&6; }
13188 if ${ac_cv_func_vfork_works+:} false
; then :
13189 $as_echo_n "(cached) " >&6
13191 if test "$cross_compiling" = yes; then :
13192 ac_cv_func_vfork_works
=cross
13194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13195 /* end confdefs.h. */
13196 /* Thanks to Paul Eggert for this test. */
13197 $ac_includes_default
13198 #include <sys/wait.h>
13199 #ifdef HAVE_VFORK_H
13200 # include <vfork.h>
13202 /* On some sparc systems, changes by the child to local and incoming
13203 argument registers are propagated back to the parent. The compiler
13204 is told about this with #include <vfork.h>, but some compilers
13205 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13206 static variable whose address is put into a register that is
13207 clobbered by the vfork. */
13210 sparc_address_test (int arg)
13212 sparc_address_test (arg) int arg;
13215 static pid_t child;
13233 pid_t parent = getpid ();
13236 sparc_address_test (0);
13241 /* Here is another test for sparc vfork register problems. This
13242 test uses lots of local variables, at least as many local
13243 variables as main has allocated so far including compiler
13244 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13245 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13246 reuse the register of parent for one of the local variables,
13247 since it will think that parent can't possibly be used any more
13248 in this routine. Assigning to the local variable will thus
13249 munge parent in the parent process. */
13251 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13252 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13253 /* Convince the compiler that p..p7 are live; otherwise, it might
13254 use the same hardware register for all 8 local variables. */
13255 if (p != p1 || p != p2 || p != p3 || p != p4
13256 || p != p5 || p != p6 || p != p7)
13259 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13260 from child file descriptors. If the child closes a descriptor
13261 before it execs or exits, this munges the parent's descriptor
13262 as well. Test for this by closing stdout in the child. */
13263 _exit(close(fileno(stdout)) != 0);
13268 while (wait(&status) != child)
13271 /* Was there some problem with vforking? */
13274 /* Did the child fail? (This shouldn't happen.) */
13277 /* Did the vfork/compiler bug occur? */
13278 || parent != getpid()
13280 /* Did the file descriptor bug occur? */
13281 || fstat(fileno(stdout), &st) != 0
13286 if ac_fn_c_try_run
"$LINENO"; then :
13287 ac_cv_func_vfork_works
=yes
13289 ac_cv_func_vfork_works
=no
13291 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13292 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13297 $as_echo "$ac_cv_func_vfork_works" >&6; }
13300 if test "x$ac_cv_func_fork_works" = xcross
; then
13301 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13303 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13306 if test "x$ac_cv_func_vfork_works" = xyes
; then
13308 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13312 $as_echo "#define vfork fork" >>confdefs.h
13315 if test "x$ac_cv_func_fork_works" = xyes
; then
13317 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13321 for ac_func
in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
13322 ptrace64 sbrk setns sigaltstack sigprocmask \
13323 setpgid setpgrp getrusage getauxval
13325 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13326 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13327 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13328 cat >>confdefs.h
<<_ACEOF
13329 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13336 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
13338 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
13344 cat >>confdefs.h
<<_ACEOF
13345 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
13349 if test "$cross_compiling" = yes; then :
13350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13351 /* end confdefs.h. */
13352 #include <sys/personality.h>
13357 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
13358 # define ADDR_NO_RANDOMIZE 0x0040000
13360 /* Test the flag could be set and stays set. */
13361 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13362 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13368 if ac_fn_c_try_link
"$LINENO"; then :
13369 have_personality
=true
13371 have_personality
=false
13373 rm -f core conftest.err conftest.
$ac_objext \
13374 conftest
$ac_exeext conftest.
$ac_ext
13376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13377 /* end confdefs.h. */
13378 #include <sys/personality.h>
13383 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
13384 # define ADDR_NO_RANDOMIZE 0x0040000
13386 /* Test the flag could be set and stays set. */
13387 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13388 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13394 if ac_fn_c_try_run
"$LINENO"; then :
13395 have_personality
=true
13397 have_personality
=false
13399 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13400 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13403 if $have_personality
13406 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
13410 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13411 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
13417 cat >>confdefs.h
<<_ACEOF
13418 #define HAVE_DECL_STRSTR $ac_have_decl
13422 # ----------------------- #
13423 # Checks for structures. #
13424 # ----------------------- #
13426 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13427 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
13429 cat >>confdefs.h
<<_ACEOF
13430 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13435 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
13436 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
13438 cat >>confdefs.h
<<_ACEOF
13439 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13446 # On FreeBSD we need libutil for the kinfo_get* functions. On
13447 # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
13448 # Figure out which one to use.
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
13450 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
13451 if ${ac_cv_search_kinfo_getfile+:} false
; then :
13452 $as_echo_n "(cached) " >&6
13454 ac_func_search_save_LIBS
=$LIBS
13455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13456 /* end confdefs.h. */
13458 /* Override any GCC internal prototype to avoid an error.
13459 Use char because int might match the return type of a GCC
13460 builtin and then its argument prototype would still apply. */
13464 char kinfo_getfile ();
13468 return kinfo_getfile ();
13473 for ac_lib
in '' util util-freebsd
; do
13474 if test -z "$ac_lib"; then
13475 ac_res
="none required"
13478 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13480 if ac_fn_c_try_link
"$LINENO"; then :
13481 ac_cv_search_kinfo_getfile
=$ac_res
13483 rm -f core conftest.err conftest.
$ac_objext \
13485 if ${ac_cv_search_kinfo_getfile+:} false
; then :
13489 if ${ac_cv_search_kinfo_getfile+:} false
; then :
13492 ac_cv_search_kinfo_getfile
=no
13494 rm conftest.
$ac_ext
13495 LIBS
=$ac_func_search_save_LIBS
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
13498 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
13499 ac_res
=$ac_cv_search_kinfo_getfile
13500 if test "$ac_res" != no
; then :
13501 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13506 # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
13507 for ac_func
in kinfo_getfile
13509 ac_fn_c_check_func
"$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
13510 if test "x$ac_cv_func_kinfo_getfile" = xyes
; then :
13511 cat >>confdefs.h
<<_ACEOF
13512 #define HAVE_KINFO_GETFILE 1
13519 # Check for std::thread. This does not work on some platforms, like
13522 ac_cpp
='$CXXCPP $CPPFLAGS'
13523 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13524 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13525 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
13532 ac_cpp
='$CPP $CPPFLAGS'
13533 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13534 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13535 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13539 # We used to check for pthread.h first, but this fails if pthread.h
13540 # requires special compiler flags (e.g. on Tru64 or Sequent).
13541 # It gets checked for in the link test anyway.
13543 # First of all, check if the user has set any of the PTHREAD_LIBS,
13544 # etcetera environment variables, and if threads linking works using
13546 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
13547 ax_pthread_save_CC
="$CC"
13548 ax_pthread_save_CFLAGS
="$CFLAGS"
13549 ax_pthread_save_LIBS
="$LIBS"
13550 if test "x$PTHREAD_CC" != "x"; then :
13553 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
13554 LIBS
="$PTHREAD_LIBS $LIBS"
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
13556 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
13557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13558 /* end confdefs.h. */
13560 /* Override any GCC internal prototype to avoid an error.
13561 Use char because int might match the return type of a GCC
13562 builtin and then its argument prototype would still apply. */
13566 char pthread_join ();
13570 return pthread_join ();
13575 if ac_fn_c_try_link
"$LINENO"; then :
13578 rm -f core conftest.err conftest.
$ac_objext \
13579 conftest
$ac_exeext conftest.
$ac_ext
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
13581 $as_echo "$ax_pthread_ok" >&6; }
13582 if test "x$ax_pthread_ok" = "xno"; then
13586 CC
="$ax_pthread_save_CC"
13587 CFLAGS
="$ax_pthread_save_CFLAGS"
13588 LIBS
="$ax_pthread_save_LIBS"
13591 # We must check for the threads library under a number of different
13592 # names; the ordering is very important because some systems
13593 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
13594 # libraries is broken (non-POSIX).
13596 # Create a list of thread flags to try. Items starting with a "-" are
13597 # C compiler flags, and other items are library names, except for "none"
13598 # which indicates that we try without any flags at all, and "pthread-config"
13599 # which is a program returning the flags for the Pth emulation library.
13601 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
13603 # The ordering *is* (sometimes) important. Some notes on the
13604 # individual items follow:
13606 # pthreads: AIX (must check this before -lpthread)
13607 # none: in case threads are in libc; should be tried before -Kthread and
13608 # other compiler flags to prevent continual compiler warnings
13609 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
13610 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
13611 # (Note: HP C rejects this with "bad form for `-t' option")
13612 # -pthreads: Solaris/gcc (Note: HP C also rejects)
13613 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
13614 # doesn't hurt to check since this sometimes defines pthreads and
13615 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
13616 # is present but should not be used directly; and before -mthreads,
13617 # because the compiler interprets this as "-mt" + "-hreads")
13618 # -mthreads: Mingw32/gcc, Lynx/gcc
13619 # pthread: Linux, etcetera
13620 # --thread-safe: KAI C++
13621 # pthread-config: use pthread-config program (for GNU Pth library)
13627 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
13628 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
13630 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
13635 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
13636 # multi-threading and also sets -lpthread."
13638 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
13643 # IBM z/OS requires a feature-test macro to be defined in order to
13644 # enable POSIX threads at all, so give the user a hint if this is
13645 # not set. (We don't define these ourselves, as they can affect
13646 # other portions of the system API in unpredictable ways.)
13648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13649 /* end confdefs.h. */
13651 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
13652 AX_PTHREAD_ZOS_MISSING
13656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13657 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
13659 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
13667 # On Solaris (at least, for some versions), libc contains stubbed
13668 # (non-functional) versions of the pthreads routines, so link-based
13669 # tests will erroneously succeed. (N.B.: The stubs are missing
13670 # pthread_cleanup_push, or rather a function called by this macro,
13671 # so we could check for that, but who knows whether they'll stub
13672 # that too in a future libc.) So we'll check first for the
13673 # standard Solaris way of linking pthreads (-mt -lpthread).
13675 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
13679 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
13681 if test "x$GCC" = "xyes"; then :
13682 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
13685 # The presence of a feature test macro requesting re-entrant function
13686 # definitions is, on some systems, a strong hint that pthreads support is
13687 # correctly enabled
13690 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
13691 ax_pthread_check_macro
="_REENTRANT"
13695 ax_pthread_check_macro
="_THREAD_SAFE"
13699 ax_pthread_check_macro
="--"
13702 if test "x$ax_pthread_check_macro" = "x--"; then :
13703 ax_pthread_check_cond
=0
13705 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
13708 # Are we compiling with Clang?
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
13711 $as_echo_n "checking whether $CC is Clang... " >&6; }
13712 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
13713 $as_echo_n "(cached) " >&6
13715 ax_cv_PTHREAD_CLANG
=no
13716 # Note that Autoconf sets GCC=yes for Clang as well as GCC
13717 if test "x$GCC" = "xyes"; then
13718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13719 /* end confdefs.h. */
13720 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
13721 # if defined(__clang__) && defined(__llvm__)
13722 AX_PTHREAD_CC_IS_CLANG
13726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13727 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
13728 ax_cv_PTHREAD_CLANG
=yes
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
13736 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
13737 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
13739 ax_pthread_clang_warning
=no
13741 # Clang needs special handling, because older versions handle the -pthread
13742 # option in a rather... idiosyncratic way
13744 if test "x$ax_pthread_clang" = "xyes"; then
13746 # Clang takes -pthread; it has never supported any other flag
13748 # (Note 1: This will need to be revisited if a system that Clang
13749 # supports has POSIX threads in a separate library. This tends not
13750 # to be the way of modern systems, but it's conceivable.)
13752 # (Note 2: On some systems, notably Darwin, -pthread is not needed
13753 # to get POSIX threads support; the API is always present and
13754 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
13755 # -pthread does define _REENTRANT, and while the Darwin headers
13756 # ignore this macro, third-party headers might not.)
13758 PTHREAD_CFLAGS
="-pthread"
13763 # However, older versions of Clang make a point of warning the user
13764 # that, in an invocation where only linking and no compilation is
13765 # taking place, the -pthread option has no effect ("argument unused
13766 # during compilation"). They expect -pthread to be passed in only
13767 # when source code is being compiled.
13769 # Problem is, this is at odds with the way Automake and most other
13770 # C build frameworks function, which is that the same flags used in
13771 # compilation (CFLAGS) are also used in linking. Many systems
13772 # supported by AX_PTHREAD require exactly this for POSIX threads
13773 # support, and in fact it is often not straightforward to specify a
13774 # flag that is used only in the compilation phase and not in
13775 # linking. Such a scenario is extremely rare in practice.
13777 # Even though use of the -pthread flag in linking would only print
13778 # a warning, this can be a nuisance for well-run software projects
13779 # that build with -Werror. So if the active version of Clang has
13780 # this misfeature, we search for an option to squash it.
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
13783 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
13784 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
13785 $as_echo_n "(cached) " >&6
13787 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
13788 # Create an alternate version of $ac_link that compiles and
13789 # links in two steps (.c -> .o, .o -> exe) instead of one
13790 # (.c -> exe), because the warning occurs only in the second
13792 ax_pthread_save_ac_link
="$ac_link"
13793 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
13794 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
13795 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
13796 ax_pthread_save_CFLAGS
="$CFLAGS"
13797 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
13798 if test "x$ax_pthread_try" = "xunknown"; then :
13801 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
13802 ac_link
="$ax_pthread_save_ac_link"
13803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13804 /* end confdefs.h. */
13805 int main(void){return 0;}
13807 if ac_fn_c_try_link
"$LINENO"; then :
13808 ac_link
="$ax_pthread_2step_ac_link"
13809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13810 /* end confdefs.h. */
13811 int main(void){return 0;}
13813 if ac_fn_c_try_link
"$LINENO"; then :
13816 rm -f core conftest.err conftest.
$ac_objext \
13817 conftest
$ac_exeext conftest.
$ac_ext
13820 rm -f core conftest.err conftest.
$ac_objext \
13821 conftest
$ac_exeext conftest.
$ac_ext
13823 ac_link
="$ax_pthread_save_ac_link"
13824 CFLAGS
="$ax_pthread_save_CFLAGS"
13825 if test "x$ax_pthread_try" = "x"; then :
13828 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
13832 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
13834 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
13836 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
13839 fi # $ax_pthread_clang = yes
13841 if test "x$ax_pthread_ok" = "xno"; then
13842 for ax_pthread_try_flag
in $ax_pthread_flags; do
13844 case $ax_pthread_try_flag in
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
13847 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
13852 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
13853 PTHREAD_CFLAGS
="-mt"
13854 PTHREAD_LIBS
="-lpthread"
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
13859 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
13860 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
13864 # Extract the first word of "pthread-config", so it can be a program name with args.
13865 set dummy pthread-config
; ac_word
=$2
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13867 $as_echo_n "checking for $ac_word... " >&6; }
13868 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
13869 $as_echo_n "(cached) " >&6
13871 if test -n "$ax_pthread_config"; then
13872 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
13874 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13875 for as_dir
in $PATH
13878 test -z "$as_dir" && as_dir
=.
13879 for ac_exec_ext
in '' $ac_executable_extensions; do
13880 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13881 ac_cv_prog_ax_pthread_config
="yes"
13882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13889 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
13892 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
13893 if test -n "$ax_pthread_config"; then
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
13895 $as_echo "$ax_pthread_config" >&6; }
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13898 $as_echo "no" >&6; }
13902 if test "x$ax_pthread_config" = "xno"; then :
13905 PTHREAD_CFLAGS
="`pthread-config --cflags`"
13906 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
13911 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
13912 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
13916 ax_pthread_save_CFLAGS
="$CFLAGS"
13917 ax_pthread_save_LIBS
="$LIBS"
13918 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
13919 LIBS
="$PTHREAD_LIBS $LIBS"
13921 # Check for various functions. We must include pthread.h,
13922 # since some functions may be macros. (On the Sequent, we
13923 # need a special flag -Kthread to make this header compile.)
13924 # We check for pthread_join because it is in -lpthread on IRIX
13925 # while pthread_create is in libc. We check for pthread_attr_init
13926 # due to DEC craziness with -lpthreads. We check for
13927 # pthread_cleanup_push because it is one of the few pthread
13928 # functions on Solaris that doesn't have a non-functional libc stub.
13929 # We try pthread_create on general principles.
13931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13932 /* end confdefs.h. */
13933 #include <pthread.h>
13934 # if $ax_pthread_check_cond
13935 # error "$ax_pthread_check_macro must be defined"
13937 static void routine(void *a) { a = 0; }
13938 static void *start_routine(void *a) { return a; }
13942 pthread_t th; pthread_attr_t attr;
13943 pthread_create(&th, 0, start_routine, 0);
13944 pthread_join(th, 0);
13945 pthread_attr_init(&attr);
13946 pthread_cleanup_push(routine, 0);
13947 pthread_cleanup_pop(0) /* ; */
13952 if ac_fn_c_try_link
"$LINENO"; then :
13955 rm -f core conftest.err conftest.
$ac_objext \
13956 conftest
$ac_exeext conftest.
$ac_ext
13958 CFLAGS
="$ax_pthread_save_CFLAGS"
13959 LIBS
="$ax_pthread_save_LIBS"
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
13962 $as_echo "$ax_pthread_ok" >&6; }
13963 if test "x$ax_pthread_ok" = "xyes"; then :
13972 # Various other checks:
13973 if test "x$ax_pthread_ok" = "xyes"; then
13974 ax_pthread_save_CFLAGS
="$CFLAGS"
13975 ax_pthread_save_LIBS
="$LIBS"
13976 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
13977 LIBS
="$PTHREAD_LIBS $LIBS"
13979 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
13981 $as_echo_n "checking for joinable pthread attribute... " >&6; }
13982 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
13983 $as_echo_n "(cached) " >&6
13985 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
13986 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
13987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13988 /* end confdefs.h. */
13989 #include <pthread.h>
13993 int attr = $ax_pthread_attr; return attr /* ; */
13998 if ac_fn_c_try_link
"$LINENO"; then :
13999 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
14001 rm -f core conftest.err conftest.
$ac_objext \
14002 conftest
$ac_exeext conftest.
$ac_ext
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
14007 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
14008 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
14009 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
14010 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
14012 cat >>confdefs.h
<<_ACEOF
14013 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
14016 ax_pthread_joinable_attr_defined
=yes
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
14021 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
14022 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
14023 $as_echo_n "(cached) " >&6
14025 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
14028 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
14034 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
14035 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
14036 test "x$ax_pthread_special_flags_added" != "xyes"; then :
14037 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
14038 ax_pthread_special_flags_added
=yes
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
14042 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
14043 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
14044 $as_echo_n "(cached) " >&6
14046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14047 /* end confdefs.h. */
14048 #include <pthread.h>
14052 int i = PTHREAD_PRIO_INHERIT;
14057 if ac_fn_c_try_link
"$LINENO"; then :
14058 ax_cv_PTHREAD_PRIO_INHERIT
=yes
14060 ax_cv_PTHREAD_PRIO_INHERIT
=no
14062 rm -f core conftest.err conftest.
$ac_objext \
14063 conftest
$ac_exeext conftest.
$ac_ext
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
14067 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
14068 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
14069 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
14071 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
14073 ax_pthread_prio_inherit_defined
=yes
14077 CFLAGS
="$ax_pthread_save_CFLAGS"
14078 LIBS
="$ax_pthread_save_LIBS"
14080 # More AIX lossage: compile with *_r variant
14081 if test "x$GCC" != "xyes"; then
14085 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
14086 #handle absolute path differently from PATH based program lookup
14089 if as_fn_executable_p
${CC}_r
; then :
14090 PTHREAD_CC
="${CC}_r"
14093 for ac_prog
in ${CC}_r
14095 # Extract the first word of "$ac_prog", so it can be a program name with args.
14096 set dummy
$ac_prog; ac_word
=$2
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14098 $as_echo_n "checking for $ac_word... " >&6; }
14099 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
14100 $as_echo_n "(cached) " >&6
14102 if test -n "$PTHREAD_CC"; then
14103 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
14105 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14106 for as_dir
in $PATH
14109 test -z "$as_dir" && as_dir
=.
14110 for ac_exec_ext
in '' $ac_executable_extensions; do
14111 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14112 ac_cv_prog_PTHREAD_CC
="$ac_prog"
14113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14122 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
14123 if test -n "$PTHREAD_CC"; then
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14125 $as_echo "$PTHREAD_CC" >&6; }
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14128 $as_echo "no" >&6; }
14132 test -n "$PTHREAD_CC" && break
14134 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
14145 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
14151 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14152 if test "x$ax_pthread_ok" = "xyes"; then
14160 ac_cpp
='$CXXCPP $CPPFLAGS'
14161 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14162 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14163 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
14166 if test "$threads" = "yes"; then
14168 LIBS
="$PTHREAD_LIBS $LIBS"
14169 save_CXXFLAGS
="$CXXFLAGS"
14170 CXXFLAGS
="$PTHREAD_CFLAGS $save_CXXFLAGS"
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
14172 $as_echo_n "checking for std::thread... " >&6; }
14173 if ${gdb_cv_cxx_std_thread+:} false
; then :
14174 $as_echo_n "(cached) " >&6
14176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14177 /* end confdefs.h. */
14179 void callback() { }
14183 std::thread t(callback);
14188 if ac_fn_cxx_try_compile
"$LINENO"; then :
14189 gdb_cv_cxx_std_thread
=yes
14191 gdb_cv_cxx_std_thread
=no
14193 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
14196 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
14198 # This check must be here, while LIBS includes any necessary
14199 # threading library.
14200 for ac_func
in pthread_sigmask pthread_setname_np
14202 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14203 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14204 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14205 cat >>confdefs.h
<<_ACEOF
14206 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14214 CXXFLAGS
="$save_CXXFLAGS"
14216 if test "$gdb_cv_cxx_std_thread" = "yes"; then
14218 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
14222 ac_cpp
='$CPP $CPPFLAGS'
14223 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14224 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14225 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
14229 $as_echo_n "checking for sigsetjmp... " >&6; }
14230 if ${gdb_cv_func_sigsetjmp+:} false
; then :
14231 $as_echo_n "(cached) " >&6
14233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14234 /* end confdefs.h. */
14236 #include <setjmp.h>
14241 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
14246 if ac_fn_c_try_compile
"$LINENO"; then :
14247 gdb_cv_func_sigsetjmp
=yes
14249 gdb_cv_func_sigsetjmp
=no
14251 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
14254 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
14255 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
14257 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
14262 # Check whether --with-intel_pt was given.
14263 if test "${with_intel_pt+set}" = set; then :
14264 withval
=$with_intel_pt;
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
14270 $as_echo_n "checking whether to use intel pt... " >&6; }
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
14272 $as_echo "$with_intel_pt" >&6; }
14274 if test "${with_intel_pt}" = no
; then
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
14276 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
14279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14280 /* end confdefs.h. */
14282 #include <linux/perf_event.h>
14283 #ifndef PERF_ATTR_SIZE_VER5
14288 if ac_fn_c_try_cpp
"$LINENO"; then :
14293 rm -f conftest.err conftest.i conftest.
$ac_ext
14294 if test "$perf_event" != yes; then
14295 if test "$with_intel_pt" = yes; then
14296 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
14299 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
14313 acl_save_prefix
="$prefix"
14314 prefix
="$acl_final_prefix"
14315 acl_save_exec_prefix
="$exec_prefix"
14316 exec_prefix
="$acl_final_exec_prefix"
14318 eval additional_includedir
=\"$includedir\"
14319 eval additional_libdir
=\"$libdir\"
14321 exec_prefix
="$acl_save_exec_prefix"
14322 prefix
="$acl_save_prefix"
14325 # Check whether --with-libipt-prefix was given.
14326 if test "${with_libipt_prefix+set}" = set; then :
14327 withval
=$with_libipt_prefix;
14328 if test "X$withval" = "Xno"; then
14331 if test "X$withval" = "X"; then
14333 acl_save_prefix
="$prefix"
14334 prefix
="$acl_final_prefix"
14335 acl_save_exec_prefix
="$exec_prefix"
14336 exec_prefix
="$acl_final_exec_prefix"
14338 eval additional_includedir
=\"$includedir\"
14339 eval additional_libdir
=\"$libdir\"
14341 exec_prefix
="$acl_save_exec_prefix"
14342 prefix
="$acl_save_prefix"
14345 additional_includedir
="$withval/include"
14346 additional_libdir
="$withval/lib"
14353 # Check whether --with-libipt-type was given.
14354 if test "${with_libipt_type+set}" = set; then :
14355 withval
=$with_libipt_type; with_libipt_type
=$withval
14357 with_libipt_type
=auto
14360 lib_type
=`eval echo \$with_libipt_type`
14367 names_already_handled
=
14368 names_next_round
='ipt '
14369 while test -n "$names_next_round"; do
14370 names_this_round
="$names_next_round"
14372 for name
in $names_this_round; do
14374 for n
in $names_already_handled; do
14375 if test "$n" = "$name"; then
14376 already_handled
=yes
14380 if test -z "$already_handled"; then
14381 names_already_handled
="$names_already_handled $name"
14382 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14383 eval value
=\"\
$HAVE_LIB$uppername\"
14384 if test -n "$value"; then
14385 if test "$value" = yes; then
14386 eval value
=\"\
$LIB$uppername\"
14387 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
14388 eval value
=\"\
$LTLIB$uppername\"
14389 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
14398 if test $use_additional = yes; then
14399 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
14400 found_dir
="$additional_libdir"
14401 found_so
="$additional_libdir/lib$name.$shlibext"
14402 if test -f "$additional_libdir/lib$name.la"; then
14403 found_la
="$additional_libdir/lib$name.la"
14405 elif test x
$lib_type != xshared
; then
14406 if test -f "$additional_libdir/lib$name.$libext"; then
14407 found_dir
="$additional_libdir"
14408 found_a
="$additional_libdir/lib$name.$libext"
14409 if test -f "$additional_libdir/lib$name.la"; then
14410 found_la
="$additional_libdir/lib$name.la"
14415 if test "X$found_dir" = "X"; then
14416 for x
in $LDFLAGS $LTLIBIPT; do
14418 acl_save_prefix
="$prefix"
14419 prefix
="$acl_final_prefix"
14420 acl_save_exec_prefix
="$exec_prefix"
14421 exec_prefix
="$acl_final_exec_prefix"
14423 exec_prefix
="$acl_save_exec_prefix"
14424 prefix
="$acl_save_prefix"
14428 dir
=`echo "X$x" | sed -e 's/^X-L//'`
14429 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
14431 found_so
="$dir/lib$name.$shlibext"
14432 if test -f "$dir/lib$name.la"; then
14433 found_la
="$dir/lib$name.la"
14435 elif test x
$lib_type != xshared
; then
14436 if test -f "$dir/lib$name.$libext"; then
14438 found_a
="$dir/lib$name.$libext"
14439 if test -f "$dir/lib$name.la"; then
14440 found_la
="$dir/lib$name.la"
14446 if test "X$found_dir" != "X"; then
14451 if test "X$found_dir" != "X"; then
14452 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
14453 if test "X$found_so" != "X"; then
14454 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
14455 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14458 for x
in $ltrpathdirs; do
14459 if test "X$x" = "X$found_dir"; then
14464 if test -z "$haveit"; then
14465 ltrpathdirs
="$ltrpathdirs $found_dir"
14467 if test "$hardcode_direct" = yes; then
14468 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14470 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
14471 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14473 for x
in $rpathdirs; do
14474 if test "X$x" = "X$found_dir"; then
14479 if test -z "$haveit"; then
14480 rpathdirs
="$rpathdirs $found_dir"
14484 for x
in $LDFLAGS $LIBIPT; do
14486 acl_save_prefix
="$prefix"
14487 prefix
="$acl_final_prefix"
14488 acl_save_exec_prefix
="$exec_prefix"
14489 exec_prefix
="$acl_final_exec_prefix"
14491 exec_prefix
="$acl_save_exec_prefix"
14492 prefix
="$acl_save_prefix"
14494 if test "X$x" = "X-L$found_dir"; then
14499 if test -z "$haveit"; then
14500 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
14502 if test "$hardcode_minus_L" != no
; then
14503 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14505 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
14511 if test "X$found_a" != "X"; then
14512 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
14514 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
14517 additional_includedir
=
14518 case "$found_dir" in
14520 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14521 additional_includedir
="$basedir/include"
14524 if test "X$additional_includedir" != "X"; then
14525 if test "X$additional_includedir" != "X/usr/include"; then
14527 if test "X$additional_includedir" = "X/usr/local/include"; then
14528 if test -n "$GCC"; then
14530 linux
*) haveit
=yes;;
14534 if test -z "$haveit"; then
14535 for x
in $CPPFLAGS $INCIPT; do
14537 acl_save_prefix
="$prefix"
14538 prefix
="$acl_final_prefix"
14539 acl_save_exec_prefix
="$exec_prefix"
14540 exec_prefix
="$acl_final_exec_prefix"
14542 exec_prefix
="$acl_save_exec_prefix"
14543 prefix
="$acl_save_prefix"
14545 if test "X$x" = "X-I$additional_includedir"; then
14550 if test -z "$haveit"; then
14551 if test -d "$additional_includedir"; then
14552 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
14558 if test -n "$found_la"; then
14559 save_libdir
="$libdir"
14560 case "$found_la" in
14561 */* |
*\\*) .
"$found_la" ;;
14562 *) .
"./$found_la" ;;
14564 libdir
="$save_libdir"
14565 for dep
in $dependency_libs; do
14568 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
14569 if test "X$additional_libdir" != "X/usr/lib"; then
14571 if test "X$additional_libdir" = "X/usr/local/lib"; then
14572 if test -n "$GCC"; then
14574 linux
*) haveit
=yes;;
14578 if test -z "$haveit"; then
14580 for x
in $LDFLAGS $LIBIPT; do
14582 acl_save_prefix
="$prefix"
14583 prefix
="$acl_final_prefix"
14584 acl_save_exec_prefix
="$exec_prefix"
14585 exec_prefix
="$acl_final_exec_prefix"
14587 exec_prefix
="$acl_save_exec_prefix"
14588 prefix
="$acl_save_prefix"
14590 if test "X$x" = "X-L$additional_libdir"; then
14595 if test -z "$haveit"; then
14596 if test -d "$additional_libdir"; then
14597 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
14601 for x
in $LDFLAGS $LTLIBIPT; do
14603 acl_save_prefix
="$prefix"
14604 prefix
="$acl_final_prefix"
14605 acl_save_exec_prefix
="$exec_prefix"
14606 exec_prefix
="$acl_final_exec_prefix"
14608 exec_prefix
="$acl_save_exec_prefix"
14609 prefix
="$acl_save_prefix"
14611 if test "X$x" = "X-L$additional_libdir"; then
14616 if test -z "$haveit"; then
14617 if test -d "$additional_libdir"; then
14618 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
14625 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
14626 if test "$enable_rpath" != no
; then
14628 for x
in $rpathdirs; do
14629 if test "X$x" = "X$dir"; then
14634 if test -z "$haveit"; then
14635 rpathdirs
="$rpathdirs $dir"
14638 for x
in $ltrpathdirs; do
14639 if test "X$x" = "X$dir"; then
14644 if test -z "$haveit"; then
14645 ltrpathdirs
="$ltrpathdirs $dir"
14650 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14653 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14656 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
14657 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
14663 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
14664 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
14665 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
14667 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
14668 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
14675 if test "X$rpathdirs" != "X"; then
14676 if test -n "$hardcode_libdir_separator"; then
14678 for found_dir
in $rpathdirs; do
14679 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14681 acl_save_libdir
="$libdir"
14683 eval flag
=\"$hardcode_libdir_flag_spec\"
14684 libdir
="$acl_save_libdir"
14685 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
14687 for found_dir
in $rpathdirs; do
14688 acl_save_libdir
="$libdir"
14689 libdir
="$found_dir"
14690 eval flag
=\"$hardcode_libdir_flag_spec\"
14691 libdir
="$acl_save_libdir"
14692 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
14696 if test "X$ltrpathdirs" != "X"; then
14697 for found_dir
in $ltrpathdirs; do
14698 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
14703 ac_save_CPPFLAGS
="$CPPFLAGS"
14705 for element
in $INCIPT; do
14707 for x
in $CPPFLAGS; do
14709 acl_save_prefix
="$prefix"
14710 prefix
="$acl_final_prefix"
14711 acl_save_exec_prefix
="$exec_prefix"
14712 exec_prefix
="$acl_final_exec_prefix"
14714 exec_prefix
="$acl_save_exec_prefix"
14715 prefix
="$acl_save_prefix"
14717 if test "X$x" = "X$element"; then
14722 if test -z "$haveit"; then
14723 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
14729 $as_echo_n "checking for libipt... " >&6; }
14730 if ${ac_cv_libipt+:} false
; then :
14731 $as_echo_n "(cached) " >&6
14734 ac_save_LIBS
="$LIBS"
14735 LIBS
="$LIBS $LIBIPT"
14736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14737 /* end confdefs.h. */
14738 #include "intel-pt.h"
14742 pt_insn_alloc_decoder (0);
14747 if ac_fn_c_try_link
"$LINENO"; then :
14752 rm -f core conftest.err conftest.
$ac_objext \
14753 conftest
$ac_exeext conftest.
$ac_ext
14754 LIBS
="$ac_save_LIBS"
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
14758 $as_echo "$ac_cv_libipt" >&6; }
14759 if test "$ac_cv_libipt" = yes; then
14762 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
14765 $as_echo_n "checking how to link with libipt... " >&6; }
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
14767 $as_echo "$LIBIPT" >&6; }
14770 CPPFLAGS
="$ac_save_CPPFLAGS"
14780 if test "$HAVE_LIBIPT" != yes; then
14781 if test "$with_intel_pt" = yes; then
14782 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
14785 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
14789 LIBS
="$LIBS $LIBIPT"
14790 for ac_func
in pt_insn_event
14792 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
14793 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
14794 cat >>confdefs.h
<<_ACEOF
14795 #define HAVE_PT_INSN_EVENT 1
14801 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
14803 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
14805 cat >>confdefs.h
<<_ACEOF
14806 #define HAVE_STRUCT_PT_INSN_ENABLED 1
14811 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
14813 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
14815 cat >>confdefs.h
<<_ACEOF
14816 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
14827 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
14829 for ac_header
in sys
/procfs.h
14831 ac_fn_c_check_header_mongrel
"$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
14832 if test "x$ac_cv_header_sys_procfs_h" = xyes
; then :
14833 cat >>confdefs.h
<<_ACEOF
14834 #define HAVE_SYS_PROCFS_H 1
14841 if test "$ac_cv_header_sys_procfs_h" = yes; then
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
14844 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
14845 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
14846 $as_echo_n "(cached) " >&6
14848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14849 /* end confdefs.h. */
14852 #include <sys/procfs.h>
14861 if ac_fn_c_try_compile
"$LINENO"; then :
14862 bfd_cv_have_sys_procfs_type_gregset_t
=yes
14864 bfd_cv_have_sys_procfs_type_gregset_t
=no
14867 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14870 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
14872 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
14876 $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 #include <sys/procfs.h>
14897 if ac_fn_c_try_compile
"$LINENO"; then :
14898 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
14900 bfd_cv_have_sys_procfs_type_fpregset_t
=no
14903 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14906 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
14908 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
14912 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
14916 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
14917 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
14918 $as_echo_n "(cached) " >&6
14920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14921 /* end confdefs.h. */
14924 #include <sys/procfs.h>
14933 if ac_fn_c_try_compile
"$LINENO"; then :
14934 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
14936 bfd_cv_have_sys_procfs_type_prgregset_t
=no
14939 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14942 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
14944 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
14948 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
14952 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
14953 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
14954 $as_echo_n "(cached) " >&6
14956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14957 /* end confdefs.h. */
14960 #include <sys/procfs.h>
14969 if ac_fn_c_try_compile
"$LINENO"; then :
14970 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
14972 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
14975 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14978 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
14980 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
14984 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
14988 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
14989 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
14990 $as_echo_n "(cached) " >&6
14992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14993 /* end confdefs.h. */
14996 #include <sys/procfs.h>
15005 if ac_fn_c_try_compile
"$LINENO"; then :
15006 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
15008 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
15011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15014 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
15016 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
15020 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
15024 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
15025 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
15026 $as_echo_n "(cached) " >&6
15028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15029 /* end confdefs.h. */
15032 #include <sys/procfs.h>
15041 if ac_fn_c_try_compile
"$LINENO"; then :
15042 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
15044 bfd_cv_have_sys_procfs_type_lwpid_t
=no
15047 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15050 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
15052 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
15056 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
15060 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
15061 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
15062 $as_echo_n "(cached) " >&6
15064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15065 /* end confdefs.h. */
15068 #include <sys/procfs.h>
15077 if ac_fn_c_try_compile
"$LINENO"; then :
15078 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
15080 bfd_cv_have_sys_procfs_type_psaddr_t
=no
15083 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15086 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
15088 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
15092 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
15096 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
15097 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
15098 $as_echo_n "(cached) " >&6
15100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15101 /* end confdefs.h. */
15104 #include <sys/procfs.h>
15108 elf_fpregset_t avar
15113 if ac_fn_c_try_compile
"$LINENO"; then :
15114 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
15116 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
15119 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15122 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
15124 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
15128 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
15133 # Check the return and argument types of ptrace.
15136 for ac_header
in sys
/ptrace.h ptrace.h
15138 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15139 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15140 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
15141 cat >>confdefs.h
<<_ACEOF
15142 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15150 gdb_ptrace_headers
='
15151 #include <sys/types.h>
15152 #if HAVE_SYS_PTRACE_H
15153 # include <sys/ptrace.h>
15156 # include <unistd.h>
15160 # Check return type. Varargs (used on GNU/Linux) conflict with the
15161 # empty argument list, so check for that explicitly.
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
15163 $as_echo_n "checking return type of ptrace... " >&6; }
15164 if ${gdb_cv_func_ptrace_ret+:} false
; then :
15165 $as_echo_n "(cached) " >&6
15167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15168 /* end confdefs.h. */
15169 $gdb_ptrace_headers
15173 extern long ptrace (enum __ptrace_request, ...);
15178 if ac_fn_c_try_compile
"$LINENO"; then :
15179 gdb_cv_func_ptrace_ret
='long'
15181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15182 /* end confdefs.h. */
15183 $gdb_ptrace_headers
15187 extern int ptrace ();
15192 if ac_fn_c_try_compile
"$LINENO"; then :
15193 gdb_cv_func_ptrace_ret
='int'
15195 gdb_cv_func_ptrace_ret
='long'
15198 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15201 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
15205 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
15208 cat >>confdefs.h
<<_ACEOF
15209 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
15213 # Check argument types.
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
15215 $as_echo_n "checking types of arguments for ptrace... " >&6; }
15216 if ${gdb_cv_func_ptrace_args+:} false
; then :
15217 $as_echo_n "(cached) " >&6
15219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15220 /* end confdefs.h. */
15221 $gdb_ptrace_headers
15225 extern long ptrace (enum __ptrace_request, ...);
15230 if ac_fn_c_try_compile
"$LINENO"; then :
15231 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
15233 for gdb_arg1
in 'int' 'long'; do
15234 for gdb_arg2
in 'pid_t' 'int' 'long'; do
15235 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
15236 for gdb_arg4
in 'int' 'long' 'void *'; do
15237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15238 /* end confdefs.h. */
15239 $gdb_ptrace_headers
15243 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
15248 if ac_fn_c_try_compile
"$LINENO"; then :
15249 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
15253 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15255 for gdb_arg5
in 'int *' 'int' 'long'; do
15256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15257 /* end confdefs.h. */
15258 $gdb_ptrace_headers
15262 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
15267 if ac_fn_c_try_compile
"$LINENO"; then :
15268 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
15272 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15278 # Provide a safe default value.
15279 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
15282 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
15286 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
15288 ac_save_IFS
=$IFS; IFS
=','
15289 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
15293 cat >>confdefs.h
<<_ACEOF
15294 #define PTRACE_TYPE_ARG1 $1
15298 cat >>confdefs.h
<<_ACEOF
15299 #define PTRACE_TYPE_ARG3 $3
15303 cat >>confdefs.h
<<_ACEOF
15304 #define PTRACE_TYPE_ARG4 $4
15307 if test -n "$5"; then
15309 cat >>confdefs.h
<<_ACEOF
15310 #define PTRACE_TYPE_ARG5 $5
15316 if test "$cross_compiling" = no
; then
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
15318 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
15319 if ${ac_cv_func_setpgrp_void+:} false
; then :
15320 $as_echo_n "(cached) " >&6
15322 if test "$cross_compiling" = yes; then :
15323 as_fn_error $?
"cannot check setpgrp when cross compiling" "$LINENO" 5
15325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15326 /* end confdefs.h. */
15327 $ac_includes_default
15331 /* If this system has a BSD-style setpgrp which takes arguments,
15332 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
15333 exit successfully. */
15334 return setpgrp (1,1) != -1;
15339 if ac_fn_c_try_run
"$LINENO"; then :
15340 ac_cv_func_setpgrp_void
=no
15342 ac_cv_func_setpgrp_void
=yes
15344 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15345 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
15350 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
15351 if test $ac_cv_func_setpgrp_void = yes; then
15353 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
15359 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
15360 if ${ac_cv_func_setpgrp_void+:} false
; then :
15361 $as_echo_n "(cached) " >&6
15363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15364 /* end confdefs.h. */
15365 #include <unistd.h>
15369 if (setpgrp(1,1) == -1)
15378 if ac_fn_c_try_compile
"$LINENO"; then :
15379 ac_cv_func_setpgrp_void
=no
15381 ac_cv_func_setpgrp_void
=yes
15384 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
15388 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
15389 if test "$ac_cv_func_setpgrp_void" = yes; then
15390 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
15395 # Assume we'll default to using the included libiberty regex.
15396 gdb_use_included_regex
=yes
15398 # However, if the system regex is GNU regex, then default to *not*
15399 # using the included regex.
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
15401 $as_echo_n "checking for GNU regex... " >&6; }
15402 if ${gdb_cv_have_gnu_regex+:} false
; then :
15403 $as_echo_n "(cached) " >&6
15405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15406 /* end confdefs.h. */
15407 #include <gnu-versions.h>
15411 #define REGEX_INTERFACE_VERSION 1
15412 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
15413 # error "Version mismatch"
15420 if ac_fn_c_try_compile
"$LINENO"; then :
15421 gdb_cv_have_gnu_regex
=yes
15423 gdb_cv_have_gnu_regex
=no
15426 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
15430 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
15431 if test "$gdb_cv_have_gnu_regex" = yes; then
15432 gdb_use_included_regex
=no
15436 # Check whether --with-included-regex was given.
15437 if test "${with_included_regex+set}" = set; then :
15438 withval
=$with_included_regex; gdb_with_regex
=$withval
15440 gdb_with_regex
=$gdb_use_included_regex
15443 if test "$gdb_with_regex" = yes; then
15445 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
15449 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
15450 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
15451 #include <sys/proc.h>
15454 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes
; then :
15456 cat >>confdefs.h
<<_ACEOF
15457 #define HAVE_STRUCT_THREAD_TD_PCB 1
15464 # See if <sys/lwp.h> defines `struct lwp`.
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
15466 $as_echo_n "checking for struct lwp... " >&6; }
15467 if ${gdb_cv_struct_lwp+:} false
; then :
15468 $as_echo_n "(cached) " >&6
15470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15471 /* end confdefs.h. */
15472 #include <sys/param.h>
15474 #include <sys/lwp.h>
15484 if ac_fn_c_try_compile
"$LINENO"; then :
15485 gdb_cv_struct_lwp
=yes
15487 gdb_cv_struct_lwp
=no
15490 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
15494 $as_echo "$gdb_cv_struct_lwp" >&6; }
15495 if test "$gdb_cv_struct_lwp" = yes; then
15497 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
15501 # See if <machine/reg.h> degines `struct reg'.
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
15503 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
15504 if ${gdb_cv_struct_reg+:} false
; then :
15505 $as_echo_n "(cached) " >&6
15507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15508 /* end confdefs.h. */
15509 #include <sys/types.h>
15510 #include <machine/reg.h>
15520 if ac_fn_c_try_compile
"$LINENO"; then :
15521 gdb_cv_struct_reg
=yes
15523 gdb_cv_struct_reg
=no
15526 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
15530 $as_echo "$gdb_cv_struct_reg" >&6; }
15531 if test "$gdb_cv_struct_reg" = yes; then
15533 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
15537 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
15538 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
15539 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
15540 #include <machine/reg.h>
15542 if test "x$ac_cv_member_struct_reg_r_fs" = xyes
; then :
15544 cat >>confdefs.h
<<_ACEOF
15545 #define HAVE_STRUCT_REG_R_FS 1
15550 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
15551 #include <machine/reg.h>
15553 if test "x$ac_cv_member_struct_reg_r_gs" = xyes
; then :
15555 cat >>confdefs.h
<<_ACEOF
15556 #define HAVE_STRUCT_REG_R_GS 1
15563 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
15564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
15565 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
15566 if ${gdb_cv_have_ptrace_getregs+:} false
; then :
15567 $as_echo_n "(cached) " >&6
15569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15570 /* end confdefs.h. */
15571 #include <sys/ptrace.h>
15580 if ac_fn_c_try_compile
"$LINENO"; then :
15581 gdb_cv_have_ptrace_getregs
=yes
15583 gdb_cv_have_ptrace_getregs
=no
15586 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
15591 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
15592 if test "$gdb_cv_have_ptrace_getregs" = yes; then
15594 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
15598 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
15600 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
15601 if ${gdb_cv_have_ptrace_getfpxregs+:} false
; then :
15602 $as_echo_n "(cached) " >&6
15604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15605 /* end confdefs.h. */
15606 #include <sys/ptrace.h>
15615 if ac_fn_c_try_compile
"$LINENO"; then :
15616 gdb_cv_have_ptrace_getfpxregs
=yes
15618 gdb_cv_have_ptrace_getfpxregs
=no
15621 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
15626 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
15627 if test "$gdb_cv_have_ptrace_getfpxregs" = yes; then
15629 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
15633 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
15635 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
15636 if ${gdb_cv_have_pt_getdbregs+:} false
; then :
15637 $as_echo_n "(cached) " >&6
15639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15640 /* end confdefs.h. */
15641 #include <sys/types.h>
15642 #include <sys/ptrace.h>
15652 if ac_fn_c_try_compile
"$LINENO"; then :
15653 gdb_cv_have_pt_getdbregs
=yes
15655 gdb_cv_have_pt_getdbregs
=no
15658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
15663 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
15664 if test "$gdb_cv_have_pt_getdbregs" = yes; then
15666 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
15670 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
15672 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
15673 if ${gdb_cv_have_pt_getxmmregs+:} false
; then :
15674 $as_echo_n "(cached) " >&6
15676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15677 /* end confdefs.h. */
15678 #include <sys/types.h>
15679 #include <sys/ptrace.h>
15689 if ac_fn_c_try_compile
"$LINENO"; then :
15690 gdb_cv_have_pt_getxmmregs
=yes
15692 gdb_cv_have_pt_getxmmregs
=no
15695 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
15700 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
15701 if test "$gdb_cv_have_pt_getxmmregs" = yes; then
15703 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
15707 # See if <sys/ptrace.h> supports LWP names on FreeBSD
15708 # Older FreeBSD versions don't have the pl_tdname member of
15709 # `struct ptrace_lwpinfo'.
15710 ac_fn_c_check_member
"$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
15712 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes
; then :
15714 cat >>confdefs.h
<<_ACEOF
15715 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
15722 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
15723 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
15725 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>
15727 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes
; then :
15729 cat >>confdefs.h
<<_ACEOF
15730 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
15737 # Check if the compiler supports the `long long' type.
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
15740 $as_echo_n "checking for long long support in compiler... " >&6; }
15741 if ${gdb_cv_c_long_long+:} false
; then :
15742 $as_echo_n "(cached) " >&6
15744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15745 /* end confdefs.h. */
15746 extern long long foo;
15750 switch (foo & 2) { case 0: return 1; }
15755 if ac_fn_c_try_compile
"$LINENO"; then :
15756 gdb_cv_c_long_long
=yes
15758 gdb_cv_c_long_long
=no
15760 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
15763 $as_echo "$gdb_cv_c_long_long" >&6; }
15764 if test "$gdb_cv_c_long_long" != yes; then
15765 # libdecnumber requires long long.
15766 as_fn_error $?
"Compiler must support long long for GDB." "$LINENO" 5
15769 # Check if the compiler and runtime support printing long longs.
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
15772 $as_echo_n "checking for long long support in printf... " >&6; }
15773 if ${gdb_cv_printf_has_long_long+:} false
; then :
15774 $as_echo_n "(cached) " >&6
15776 if test "$cross_compiling" = yes; then :
15777 gdb_cv_printf_has_long_long
=no
15779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15780 /* end confdefs.h. */
15781 $ac_includes_default
15787 l = (l << 16) + 0x0123;
15788 l = (l << 16) + 0x4567;
15789 l = (l << 16) + 0x89ab;
15790 l = (l << 16) + 0xcdef;
15791 sprintf (buf, "0x%016llx", l);
15792 return (strcmp ("0x0123456789abcdef", buf));
15797 if ac_fn_c_try_run
"$LINENO"; then :
15798 gdb_cv_printf_has_long_long
=yes
15800 gdb_cv_printf_has_long_long
=no
15802 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15803 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
15808 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
15809 if test "$gdb_cv_printf_has_long_long" = yes; then
15811 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
15815 # Check if the compiler and runtime support printing decfloats.
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
15818 $as_echo_n "checking for decfloat support in printf... " >&6; }
15819 if ${gdb_cv_printf_has_decfloat+:} false
; then :
15820 $as_echo_n "(cached) " >&6
15822 if test "$cross_compiling" = yes; then :
15823 gdb_cv_printf_has_decfloat
=no
15825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15826 /* end confdefs.h. */
15827 $ac_includes_default
15832 _Decimal32 d32 = 1.2345df;
15833 _Decimal64 d64 = 1.2345dd;
15834 _Decimal128 d128 = 1.2345dl;
15835 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
15836 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
15841 if ac_fn_c_try_run
"$LINENO"; then :
15842 gdb_cv_printf_has_decfloat
=yes
15844 gdb_cv_printf_has_decfloat
=no
15846 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15847 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
15852 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
15853 if test "$gdb_cv_printf_has_decfloat" = yes; then
15855 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
15859 # Check if the compiler supports the `long double' type. We can't use
15860 # AC_C_LONG_DOUBLE because that one does additional checks on the
15861 # constants defined in <float.h> that fail on some systems,
15862 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
15865 $as_echo_n "checking for long double support in compiler... " >&6; }
15866 if ${gdb_cv_c_long_double+:} false
; then :
15867 $as_echo_n "(cached) " >&6
15869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15870 /* end confdefs.h. */
15873 if ac_fn_c_try_compile
"$LINENO"; then :
15874 gdb_cv_c_long_double
=yes
15876 gdb_cv_c_long_double
=no
15878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
15881 $as_echo "$gdb_cv_c_long_double" >&6; }
15882 if test "$gdb_cv_c_long_double" = yes; then
15884 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
15888 # Check if the compiler and runtime support printing long doubles.
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
15891 $as_echo_n "checking for long double support in printf... " >&6; }
15892 if ${gdb_cv_printf_has_long_double+:} false
; then :
15893 $as_echo_n "(cached) " >&6
15895 if test "$cross_compiling" = yes; then :
15896 gdb_cv_printf_has_long_double
=no
15898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15899 /* end confdefs.h. */
15900 $ac_includes_default
15905 long double f = 3.141592653;
15906 sprintf (buf, "%Lg", f);
15907 return (strncmp ("3.14159", buf, 7));
15912 if ac_fn_c_try_run
"$LINENO"; then :
15913 gdb_cv_printf_has_long_double
=yes
15915 gdb_cv_printf_has_long_double
=no
15917 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15918 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
15923 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
15924 if test "$gdb_cv_printf_has_long_double" = yes; then
15926 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
15930 # Check if the compiler and runtime support scanning long doubles.
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
15933 $as_echo_n "checking for long double support in scanf... " >&6; }
15934 if ${gdb_cv_scanf_has_long_double+:} false
; then :
15935 $as_echo_n "(cached) " >&6
15937 if test "$cross_compiling" = yes; then :
15938 gdb_cv_scanf_has_long_double
=no
15940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15941 /* end confdefs.h. */
15946 char *buf = "3.141592653";
15948 sscanf (buf, "%Lg", &f);
15949 return !(f > 3.14159 && f < 3.14160);
15954 if ac_fn_c_try_run
"$LINENO"; then :
15955 gdb_cv_scanf_has_long_double
=yes
15957 gdb_cv_scanf_has_long_double
=no
15959 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15960 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
15965 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
15966 if test "$gdb_cv_scanf_has_long_double" = yes; then
15968 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
15975 $as_echo_n "checking for -bbigtoc option... " >&6; }
15976 if ${gdb_cv_bigtoc+:} false
; then :
15977 $as_echo_n "(cached) " >&6
15979 SAVE_LDFLAGS
=$LDFLAGS
15982 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
15983 *) gdb_cv_bigtoc
=-bbigtoc ;;
15986 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
15987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15988 /* end confdefs.h. */
15998 if ac_fn_c_try_link
"$LINENO"; then :
16004 rm -f core conftest.err conftest.
$ac_objext \
16005 conftest
$ac_exeext conftest.
$ac_ext
16006 LDFLAGS
="${SAVE_LDFLAGS}"
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
16010 $as_echo "$gdb_cv_bigtoc" >&6; }
16011 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
16016 $as_echo_n "checking for the dynamic export flag... " >&6; }
16018 if test "${gdb_native}" = yes; then
16019 # The dynamically loaded libthread_db needs access to symbols in the gdb
16020 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
16021 # may not be supported there.
16022 old_LDFLAGS
="$LDFLAGS"
16023 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
16024 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
16025 LDFLAGS
="$LDFLAGS $RDYNAMIC"
16026 if test "${have_libpython}" = no
; then
16027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16028 /* end confdefs.h. */
16038 if ac_fn_c_try_link
"$LINENO"; then :
16041 rm -f core conftest.err conftest.
$ac_objext \
16042 conftest
$ac_exeext conftest.
$ac_ext
16044 # Workaround http://bugs.python.org/issue4434 where static
16045 # libpythonX.Y.a would get its symbols required for
16046 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
16047 # Problem does not happen for the recommended libpythonX.Y.so linkage.
16049 # Note the workaround for Python
16050 # http://bugs.python.org/issue10112 earlier has removed
16051 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
16052 # here too, as otherwise it'd make this -Wl,--dynamic-list test
16054 old_CFLAGS
="$CFLAGS"
16055 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
16057 LIBS
="$LIBS $PYTHON_LIBS"
16058 old_CPPFLAGS
="$CPPFLAGS"
16059 CPPFLAGS
="$CPPFLAGS $PYTHON_CPPFLAGS"
16060 if test "$cross_compiling" = yes; then :
16063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16064 /* end confdefs.h. */
16065 #include "Python.h"
16071 err = PyRun_SimpleString ("import itertools\n");
16073 return err == 0 ? 0 : 1;
16078 if ac_fn_c_try_run
"$LINENO"; then :
16081 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16082 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16086 CFLAGS
="$old_CFLAGS"
16087 CPPFLAGS
="$old_CPPFLAGS"
16089 LDFLAGS
="$old_LDFLAGS"
16091 if $dynamic_list; then
16092 found
="-Wl,--dynamic-list"
16093 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
16096 RDYNAMIC
="-rdynamic"
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
16100 $as_echo "$found" >&6; }
16103 if test "${build}" = "${host}" -a "${host}" = "${target}" ; then
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
16107 $as_echo_n "checking for AiX thread debugging library... " >&6; }
16108 if ${gdb_cv_have_aix_thread_debug+:} false
; then :
16109 $as_echo_n "(cached) " >&6
16111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16112 /* end confdefs.h. */
16113 #include <sys/pthdebug.h>
16117 #ifndef PTHDB_VERSION_3
16125 if ac_fn_c_try_compile
"$LINENO"; then :
16126 gdb_cv_have_aix_thread_debug
=yes
16128 gdb_cv_have_aix_thread_debug
=no
16131 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
16136 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
16137 if test "$gdb_cv_have_aix_thread_debug" = yes; then
16138 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
16139 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
16140 LIBS
="$LIBS -lpthdebug"
16142 # Older versions of AIX do not provide the declaration for
16143 # the getthrds function (it appears that it was introduced
16145 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
16147 if test "x$ac_cv_have_decl_getthrds" = xyes
; then :
16153 cat >>confdefs.h
<<_ACEOF
16154 #define HAVE_DECL_GETTHRDS $ac_have_decl
16163 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
16165 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
16166 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false
; then :
16167 $as_echo_n "(cached) " >&6
16169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16170 /* end confdefs.h. */
16171 #include <thread_db.h>
16175 int i = TD_NOTALLOC;
16181 if ac_fn_c_try_compile
"$LINENO"; then :
16182 gdb_cv_thread_db_h_has_td_notalloc
=yes
16184 gdb_cv_thread_db_h_has_td_notalloc
=no
16187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
16191 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
16193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
16194 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
16195 if ${gdb_cv_thread_db_h_has_td_version+:} false
; then :
16196 $as_echo_n "(cached) " >&6
16198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16199 /* end confdefs.h. */
16200 #include <thread_db.h>
16204 int i = TD_VERSION;
16210 if ac_fn_c_try_compile
"$LINENO"; then :
16211 gdb_cv_thread_db_h_has_td_version
=yes
16213 gdb_cv_thread_db_h_has_td_version
=no
16216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
16220 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
16223 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
16224 if ${gdb_cv_thread_db_h_has_td_notls+:} false
; then :
16225 $as_echo_n "(cached) " >&6
16227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16228 /* end confdefs.h. */
16229 #include <thread_db.h>
16239 if ac_fn_c_try_compile
"$LINENO"; then :
16240 gdb_cv_thread_db_h_has_td_notls
=yes
16242 gdb_cv_thread_db_h_has_td_notls
=no
16245 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
16249 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
16251 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
16253 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
16256 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
16258 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
16261 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
16263 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
16276 cat >>confdefs.h
<<_ACEOF
16277 #define GDBINIT "$gdbinit"
16282 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
16283 # except that the argument to --with-sysroot is optional.
16284 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
16285 if test "x$with_sysroot" = xyes
; then
16286 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
16289 # Check whether --with-sysroot was given.
16290 if test "${with_sysroot+set}" = set; then :
16291 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
16293 TARGET_SYSTEM_ROOT
=
16297 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16298 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16299 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
16300 ac_define_dir
=`eval echo $ac_define_dir`
16302 cat >>confdefs.h
<<_ACEOF
16303 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
16309 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16310 if test "x$prefix" = xNONE
; then
16311 test_prefix
=/usr
/local
16313 test_prefix
=$prefix
16316 test_prefix
=$exec_prefix
16319 case ${ac_define_dir} in
16320 "${test_prefix}"|
"${test_prefix}/"*|\
16321 '${exec_prefix}'|
'${exec_prefix}/'*)
16326 cat >>confdefs.h
<<_ACEOF
16327 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
16334 # Check whether --with-system-gdbinit was given.
16335 if test "${with_system_gdbinit+set}" = set; then :
16336 withval
=$with_system_gdbinit;
16337 SYSTEM_GDBINIT
=$withval
16343 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16344 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16345 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
16346 ac_define_dir
=`eval echo $ac_define_dir`
16348 cat >>confdefs.h
<<_ACEOF
16349 #define SYSTEM_GDBINIT "$ac_define_dir"
16355 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16356 if test "x$prefix" = xNONE
; then
16357 test_prefix
=/usr
/local
16359 test_prefix
=$prefix
16362 test_prefix
=$exec_prefix
16365 case ${ac_define_dir} in
16366 "${test_prefix}"|
"${test_prefix}/"*|\
16367 '${exec_prefix}'|
'${exec_prefix}/'*)
16372 cat >>confdefs.h
<<_ACEOF
16373 #define SYSTEM_GDBINIT_RELOCATABLE $value
16380 # Check whether --with-system-gdbinit-dir was given.
16381 if test "${with_system_gdbinit_dir+set}" = set; then :
16382 withval
=$with_system_gdbinit_dir;
16383 SYSTEM_GDBINIT_DIR
=$withval
16385 SYSTEM_GDBINIT_DIR
=
16389 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16390 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16391 ac_define_dir
=`eval echo $SYSTEM_GDBINIT_DIR`
16392 ac_define_dir
=`eval echo $ac_define_dir`
16394 cat >>confdefs.h
<<_ACEOF
16395 #define SYSTEM_GDBINIT_DIR "$ac_define_dir"
16401 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16402 if test "x$prefix" = xNONE
; then
16403 test_prefix
=/usr
/local
16405 test_prefix
=$prefix
16408 test_prefix
=$exec_prefix
16411 case ${ac_define_dir} in
16412 "${test_prefix}"|
"${test_prefix}/"*|\
16413 '${exec_prefix}'|
'${exec_prefix}/'*)
16418 cat >>confdefs.h
<<_ACEOF
16419 #define SYSTEM_GDBINIT_DIR_RELOCATABLE $value
16426 # Check whether --enable-werror was given.
16427 if test "${enable_werror+set}" = set; then :
16428 enableval
=$enable_werror; case "${enableval}" in
16429 yes | y
) ERROR_ON_WARNING
="yes" ;;
16430 no | n
) ERROR_ON_WARNING
="no" ;;
16431 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16436 # Enable -Werror by default when using gcc. Turn it off for releases.
16437 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
16438 ERROR_ON_WARNING
=yes
16442 if test "${ERROR_ON_WARNING}" = yes ; then
16443 WERROR_CFLAGS
="-Werror"
16446 # The options we'll try to enable.
16447 build_warnings
="-Wall -Wpointer-arith \
16448 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
16449 -Wno-switch -Wno-char-subscripts \
16450 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
16451 -Wno-sign-compare -Wno-error=maybe-uninitialized \
16452 -Wno-mismatched-tags \
16453 -Wno-error=deprecated-register \
16454 -Wsuggest-override \
16455 -Wimplicit-fallthrough=3 \
16456 -Wduplicated-cond \
16458 -Wdeprecated-copy \
16459 -Wdeprecated-copy-dtor \
16461 -Wmissing-declarations \
16462 -Wmissing-prototypes \
16463 -Wstrict-null-sentinel \
16468 # Enable -Wno-format by default when using gcc on mingw since many
16469 # GCC versions complain about %I64.
16470 build_warnings
="$build_warnings -Wno-format" ;;
16472 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
16473 # doesn't understand.
16474 build_warnings
="$build_warnings -Wno-unknown-pragmas"
16475 # Solaris 11 <unistd.h> marks vfork deprecated.
16476 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
16478 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
16479 # but there's a special case for this below.
16480 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
16483 # Check whether --enable-build-warnings was given.
16484 if test "${enable_build_warnings+set}" = set; then :
16485 enableval
=$enable_build_warnings; case "${enableval}" in
16487 no
) build_warnings
="-w";;
16488 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16489 build_warnings
="${build_warnings} ${t}";;
16490 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16491 build_warnings
="${t} ${build_warnings}";;
16492 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16494 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
16495 echo "Setting compiler warning flags = $build_warnings" 6>&1
16498 # Check whether --enable-gdb-build-warnings was given.
16499 if test "${enable_gdb_build_warnings+set}" = set; then :
16500 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
16502 no
) build_warnings
="-w";;
16503 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16504 build_warnings
="${build_warnings} ${t}";;
16505 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16506 build_warnings
="${t} ${build_warnings}";;
16507 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16509 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
16510 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
16514 # The set of warnings supported by a C++ compiler is not the same as
16515 # of the C compiler.
16517 ac_cpp
='$CXXCPP $CPPFLAGS'
16518 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16519 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16520 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
16524 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
16527 $as_echo_n "checking compiler warning flags... " >&6; }
16528 # Separate out the -Werror flag as some files just cannot be
16529 # compiled with it enabled.
16530 for w
in ${build_warnings}; do
16531 # GCC does not complain about -Wno-unknown-warning. Invert
16532 # and test -Wunknown-warning instead.
16535 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
16536 -Wformat-nonliteral)
16537 # gcc requires -Wformat before -Wformat-nonliteral
16538 # will work, so stick them together.
16547 -Werr*) WERROR_CFLAGS
=-Werror ;;
16549 # Check whether GCC accepts it.
16550 saved_CFLAGS
="$CFLAGS"
16551 CFLAGS
="$CFLAGS -Werror $wtest"
16552 saved_CXXFLAGS
="$CXXFLAGS"
16553 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
16554 if test "x$w" = "x-Wunused-variable"; then
16555 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
16556 # fixed in GCC 4.9. This test is derived from the gdb
16557 # source code that triggered this bug in GCC.
16558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16559 /* end confdefs.h. */
16560 struct scoped_restore_base {};
16561 struct scoped_restore_tmpl : public scoped_restore_base {
16562 ~scoped_restore_tmpl() {}
16567 const scoped_restore_base &b = scoped_restore_tmpl();
16572 if ac_fn_cxx_try_compile
"$LINENO"; then :
16573 WARN_CFLAGS
="${WARN_CFLAGS} $w"
16575 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16578 /* end confdefs.h. */
16588 if ac_fn_cxx_try_compile
"$LINENO"; then :
16589 WARN_CFLAGS
="${WARN_CFLAGS} $w"
16591 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16593 CFLAGS
="$saved_CFLAGS"
16594 CXXFLAGS
="$saved_CXXFLAGS"
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
16598 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
16604 ac_cpp='$CPP $CPPFLAGS'
16605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16611 # Check whether --enable-ubsan was given.
16612 if test "${enable_ubsan+set}" = set; then :
16613 enableval=$enable_ubsan;
16618 if test "x
$enable_ubsan" = xauto; then
16619 if $development; then
16624 ac_cpp='$CXXCPP $CPPFLAGS'
16625 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16626 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16627 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16629 if test "x
$enable_ubsan" = xyes; then
16630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
-fsanitize=undefined is accepted
" >&5
16631 $as_echo_n "checking whether
-fsanitize=undefined is accepted...
" >&6; }
16632 saved_CXXFLAGS="$CXXFLAGS"
16633 CXXFLAGS="$CXXFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
16634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16635 /* end confdefs.h. */
16645 if ac_fn_cxx_try_link "$LINENO"; then :
16650 rm -f core conftest.err conftest.$ac_objext \
16651 conftest$ac_exeext conftest.$ac_ext
16652 CXXFLAGS="$saved_CXXFLAGS"
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $enable_ubsan" >&5
16654 $as_echo "$enable_ubsan" >&6; }
16655 if test "x
$enable_ubsan" = xyes; then
16656 WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
16657 CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined
"
16661 ac_cpp='$CPP $CPPFLAGS'
16662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16668 # In the Cygwin environment, we need some additional flags.
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
16670 $as_echo_n "checking
for cygwin...
" >&6; }
16671 if ${gdb_cv_os_cygwin+:} false; then :
16672 $as_echo_n "(cached
) " >&6
16674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16675 /* end confdefs.h. */
16677 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
16681 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
16682 $EGREP "^lose$
" >/dev/null 2>&1; then :
16683 gdb_cv_os_cygwin=yes
16685 gdb_cv_os_cygwin=no
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
16691 $as_echo "$gdb_cv_os_cygwin" >&6; }
16694 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
16696 *go32* ) SER_HARDWIRE=ser-go32.o ;;
16697 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
16698 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
16699 *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o
" ;;
16703 # libreadline needs libuser32.a in a cygwin environment
16705 if test x"$gdb_cv_os_cygwin" = xyes; then
16706 WIN32LIBS="-luser32"
16707 case "${target}" in
16708 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
16713 # The ser-tcp.c module requires sockets.
16714 # Note that WIN32APILIBS is set by GDB_AC_COMMON.
16715 WIN32LIBS="$WIN32LIBS $WIN32APILIBS"
16717 # Add ELF support to GDB, but only if BFD includes ELF support.
16720 OLD_LDFLAGS=$LDFLAGS
16722 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
16723 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
16724 # always want our bfd.
16725 CFLAGS="-I${srcdir}/..
/include
-I..
/bfd
-I${srcdir}/..
/bfd
$CFLAGS"
16726 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
16727 LDFLAGS="-L..
/bfd
-L..
/libiberty
$ZLIBDIR $LDFLAGS"
16728 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
16729 LIBS="-lbfd -liberty -lz $intl $LIBS"
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ELF support
in BFD
" >&5
16731 $as_echo_n "checking
for ELF support
in BFD...
" >&6; }
16732 if ${gdb_cv_var_elf+:} false; then :
16733 $as_echo_n "(cached
) " >&6
16735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16736 /* end confdefs.h. */
16737 #include <stdlib.h>
16739 #include "elf-bfd.h
"
16743 return bfd_get_elf_phdr_upper_bound (NULL);
16749 if ac_fn_c_try_link "$LINENO"; then :
16755 rm -f core conftest.err conftest.$ac_objext \
16756 conftest$ac_exeext conftest.$ac_ext
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_var_elf" >&5
16760 $as_echo "$gdb_cv_var_elf" >&6; }
16762 LDFLAGS=$OLD_LDFLAGS
16764 if test "$gdb_cv_var_elf" = yes; then
16765 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o
"
16767 $as_echo "#define HAVE_ELF 1" >>confdefs.h
16769 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
16770 if test "$plugins" = "yes"; then
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16772 $as_echo_n "checking for library containing dlopen... " >&6; }
16773 if ${ac_cv_search_dlopen+:} false
; then :
16774 $as_echo_n "(cached) " >&6
16776 ac_func_search_save_LIBS
=$LIBS
16777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16778 /* end confdefs.h. */
16780 /* Override any GCC internal prototype to avoid an error.
16781 Use char because int might match the return type of a GCC
16782 builtin and then its argument prototype would still apply. */
16795 for ac_lib
in '' dl
; do
16796 if test -z "$ac_lib"; then
16797 ac_res
="none required"
16800 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
16802 if ac_fn_c_try_link
"$LINENO"; then :
16803 ac_cv_search_dlopen
=$ac_res
16805 rm -f core conftest.err conftest.
$ac_objext \
16807 if ${ac_cv_search_dlopen+:} false
; then :
16811 if ${ac_cv_search_dlopen+:} false
; then :
16814 ac_cv_search_dlopen
=no
16816 rm conftest.
$ac_ext
16817 LIBS
=$ac_func_search_save_LIBS
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16820 $as_echo "$ac_cv_search_dlopen" >&6; }
16821 ac_res
=$ac_cv_search_dlopen
16822 if test "$ac_res" != no
; then :
16823 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
16830 # Add macho support to GDB, but only if BFD includes it.
16833 OLD_LDFLAGS
=$LDFLAGS
16835 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
16836 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
16837 # always want our bfd.
16838 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
16839 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
16840 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
16841 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
16842 LIBS
="-lbfd -liberty -lz $intl $LIBS"
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
16844 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
16845 if ${gdb_cv_var_macho+:} false
; then :
16846 $as_echo_n "(cached) " >&6
16848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16849 /* end confdefs.h. */
16850 #include <stdlib.h>
16852 #include "mach-o.h"
16856 return bfd_mach_o_lookup_command (NULL, 0, NULL);
16862 if ac_fn_c_try_link
"$LINENO"; then :
16863 gdb_cv_var_macho
=yes
16865 gdb_cv_var_macho
=no
16868 rm -f core conftest.err conftest.
$ac_objext \
16869 conftest
$ac_exeext conftest.
$ac_ext
16872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
16873 $as_echo "$gdb_cv_var_macho" >&6; }
16875 LDFLAGS
=$OLD_LDFLAGS
16877 if test "$gdb_cv_var_macho" = yes; then
16878 CONFIG_OBS
="$CONFIG_OBS machoread.o"
16881 # Add any host-specific objects to GDB.
16882 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
16884 # If building on ELF, look for lzma support for embedded compressed debug info.
16885 if test "$gdb_cv_var_elf" = yes; then
16887 # Check whether --with-lzma was given.
16888 if test "${with_lzma+set}" = set; then :
16889 withval
=$with_lzma;
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
16895 $as_echo_n "checking whether to use lzma... " >&6; }
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
16897 $as_echo "$with_lzma" >&6; }
16899 if test "${with_lzma}" != no
; then
16910 acl_save_prefix
="$prefix"
16911 prefix
="$acl_final_prefix"
16912 acl_save_exec_prefix
="$exec_prefix"
16913 exec_prefix
="$acl_final_exec_prefix"
16915 eval additional_includedir
=\"$includedir\"
16916 eval additional_libdir
=\"$libdir\"
16918 exec_prefix
="$acl_save_exec_prefix"
16919 prefix
="$acl_save_prefix"
16922 # Check whether --with-liblzma-prefix was given.
16923 if test "${with_liblzma_prefix+set}" = set; then :
16924 withval
=$with_liblzma_prefix;
16925 if test "X$withval" = "Xno"; then
16928 if test "X$withval" = "X"; then
16930 acl_save_prefix
="$prefix"
16931 prefix
="$acl_final_prefix"
16932 acl_save_exec_prefix
="$exec_prefix"
16933 exec_prefix
="$acl_final_exec_prefix"
16935 eval additional_includedir
=\"$includedir\"
16936 eval additional_libdir
=\"$libdir\"
16938 exec_prefix
="$acl_save_exec_prefix"
16939 prefix
="$acl_save_prefix"
16942 additional_includedir
="$withval/include"
16943 additional_libdir
="$withval/lib"
16950 # Check whether --with-liblzma-type was given.
16951 if test "${with_liblzma_type+set}" = set; then :
16952 withval
=$with_liblzma_type; with_liblzma_type
=$withval
16954 with_liblzma_type
=auto
16957 lib_type
=`eval echo \$with_liblzma_type`
16964 names_already_handled
=
16965 names_next_round
='lzma '
16966 while test -n "$names_next_round"; do
16967 names_this_round
="$names_next_round"
16969 for name
in $names_this_round; do
16971 for n
in $names_already_handled; do
16972 if test "$n" = "$name"; then
16973 already_handled
=yes
16977 if test -z "$already_handled"; then
16978 names_already_handled
="$names_already_handled $name"
16979 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16980 eval value
=\"\
$HAVE_LIB$uppername\"
16981 if test -n "$value"; then
16982 if test "$value" = yes; then
16983 eval value
=\"\
$LIB$uppername\"
16984 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
16985 eval value
=\"\
$LTLIB$uppername\"
16986 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
16995 if test $use_additional = yes; then
16996 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
16997 found_dir
="$additional_libdir"
16998 found_so
="$additional_libdir/lib$name.$shlibext"
16999 if test -f "$additional_libdir/lib$name.la"; then
17000 found_la
="$additional_libdir/lib$name.la"
17002 elif test x
$lib_type != xshared
; then
17003 if test -f "$additional_libdir/lib$name.$libext"; then
17004 found_dir
="$additional_libdir"
17005 found_a
="$additional_libdir/lib$name.$libext"
17006 if test -f "$additional_libdir/lib$name.la"; then
17007 found_la
="$additional_libdir/lib$name.la"
17012 if test "X$found_dir" = "X"; then
17013 for x
in $LDFLAGS $LTLIBLZMA; do
17015 acl_save_prefix
="$prefix"
17016 prefix
="$acl_final_prefix"
17017 acl_save_exec_prefix
="$exec_prefix"
17018 exec_prefix
="$acl_final_exec_prefix"
17020 exec_prefix
="$acl_save_exec_prefix"
17021 prefix
="$acl_save_prefix"
17025 dir
=`echo "X$x" | sed -e 's/^X-L//'`
17026 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
17028 found_so
="$dir/lib$name.$shlibext"
17029 if test -f "$dir/lib$name.la"; then
17030 found_la
="$dir/lib$name.la"
17032 elif test x
$lib_type != xshared
; then
17033 if test -f "$dir/lib$name.$libext"; then
17035 found_a
="$dir/lib$name.$libext"
17036 if test -f "$dir/lib$name.la"; then
17037 found_la
="$dir/lib$name.la"
17043 if test "X$found_dir" != "X"; then
17048 if test "X$found_dir" != "X"; then
17049 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
17050 if test "X$found_so" != "X"; then
17051 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
17052 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17055 for x
in $ltrpathdirs; do
17056 if test "X$x" = "X$found_dir"; then
17061 if test -z "$haveit"; then
17062 ltrpathdirs
="$ltrpathdirs $found_dir"
17064 if test "$hardcode_direct" = yes; then
17065 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17067 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
17068 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17070 for x
in $rpathdirs; do
17071 if test "X$x" = "X$found_dir"; then
17076 if test -z "$haveit"; then
17077 rpathdirs
="$rpathdirs $found_dir"
17081 for x
in $LDFLAGS $LIBLZMA; do
17083 acl_save_prefix
="$prefix"
17084 prefix
="$acl_final_prefix"
17085 acl_save_exec_prefix
="$exec_prefix"
17086 exec_prefix
="$acl_final_exec_prefix"
17088 exec_prefix
="$acl_save_exec_prefix"
17089 prefix
="$acl_save_prefix"
17091 if test "X$x" = "X-L$found_dir"; then
17096 if test -z "$haveit"; then
17097 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
17099 if test "$hardcode_minus_L" != no
; then
17100 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17102 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
17108 if test "X$found_a" != "X"; then
17109 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
17111 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
17114 additional_includedir
=
17115 case "$found_dir" in
17117 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17118 additional_includedir
="$basedir/include"
17121 if test "X$additional_includedir" != "X"; then
17122 if test "X$additional_includedir" != "X/usr/include"; then
17124 if test "X$additional_includedir" = "X/usr/local/include"; then
17125 if test -n "$GCC"; then
17127 linux
*) haveit
=yes;;
17131 if test -z "$haveit"; then
17132 for x
in $CPPFLAGS $INCLZMA; do
17134 acl_save_prefix
="$prefix"
17135 prefix
="$acl_final_prefix"
17136 acl_save_exec_prefix
="$exec_prefix"
17137 exec_prefix
="$acl_final_exec_prefix"
17139 exec_prefix
="$acl_save_exec_prefix"
17140 prefix
="$acl_save_prefix"
17142 if test "X$x" = "X-I$additional_includedir"; then
17147 if test -z "$haveit"; then
17148 if test -d "$additional_includedir"; then
17149 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
17155 if test -n "$found_la"; then
17156 save_libdir
="$libdir"
17157 case "$found_la" in
17158 */* |
*\\*) .
"$found_la" ;;
17159 *) .
"./$found_la" ;;
17161 libdir
="$save_libdir"
17162 for dep
in $dependency_libs; do
17165 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
17166 if test "X$additional_libdir" != "X/usr/lib"; then
17168 if test "X$additional_libdir" = "X/usr/local/lib"; then
17169 if test -n "$GCC"; then
17171 linux
*) haveit
=yes;;
17175 if test -z "$haveit"; then
17177 for x
in $LDFLAGS $LIBLZMA; do
17179 acl_save_prefix
="$prefix"
17180 prefix
="$acl_final_prefix"
17181 acl_save_exec_prefix
="$exec_prefix"
17182 exec_prefix
="$acl_final_exec_prefix"
17184 exec_prefix
="$acl_save_exec_prefix"
17185 prefix
="$acl_save_prefix"
17187 if test "X$x" = "X-L$additional_libdir"; then
17192 if test -z "$haveit"; then
17193 if test -d "$additional_libdir"; then
17194 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
17198 for x
in $LDFLAGS $LTLIBLZMA; do
17200 acl_save_prefix
="$prefix"
17201 prefix
="$acl_final_prefix"
17202 acl_save_exec_prefix
="$exec_prefix"
17203 exec_prefix
="$acl_final_exec_prefix"
17205 exec_prefix
="$acl_save_exec_prefix"
17206 prefix
="$acl_save_prefix"
17208 if test "X$x" = "X-L$additional_libdir"; then
17213 if test -z "$haveit"; then
17214 if test -d "$additional_libdir"; then
17215 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
17222 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
17223 if test "$enable_rpath" != no
; then
17225 for x
in $rpathdirs; do
17226 if test "X$x" = "X$dir"; then
17231 if test -z "$haveit"; then
17232 rpathdirs
="$rpathdirs $dir"
17235 for x
in $ltrpathdirs; do
17236 if test "X$x" = "X$dir"; then
17241 if test -z "$haveit"; then
17242 ltrpathdirs
="$ltrpathdirs $dir"
17247 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17250 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17253 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
17254 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
17260 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
17261 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
17262 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
17264 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l:lib$name.$libext"
17265 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l:lib$name.$libext"
17272 if test "X$rpathdirs" != "X"; then
17273 if test -n "$hardcode_libdir_separator"; then
17275 for found_dir
in $rpathdirs; do
17276 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17278 acl_save_libdir
="$libdir"
17280 eval flag
=\"$hardcode_libdir_flag_spec\"
17281 libdir
="$acl_save_libdir"
17282 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
17284 for found_dir
in $rpathdirs; do
17285 acl_save_libdir
="$libdir"
17286 libdir
="$found_dir"
17287 eval flag
=\"$hardcode_libdir_flag_spec\"
17288 libdir
="$acl_save_libdir"
17289 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
17293 if test "X$ltrpathdirs" != "X"; then
17294 for found_dir
in $ltrpathdirs; do
17295 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
17300 ac_save_CPPFLAGS
="$CPPFLAGS"
17302 for element
in $INCLZMA; do
17304 for x
in $CPPFLAGS; do
17306 acl_save_prefix
="$prefix"
17307 prefix
="$acl_final_prefix"
17308 acl_save_exec_prefix
="$exec_prefix"
17309 exec_prefix
="$acl_final_exec_prefix"
17311 exec_prefix
="$acl_save_exec_prefix"
17312 prefix
="$acl_save_prefix"
17314 if test "X$x" = "X$element"; then
17319 if test -z "$haveit"; then
17320 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
17326 $as_echo_n "checking for liblzma... " >&6; }
17327 if ${ac_cv_liblzma+:} false
; then :
17328 $as_echo_n "(cached) " >&6
17331 ac_save_LIBS
="$LIBS"
17332 LIBS
="$LIBS $LIBLZMA"
17333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17334 /* end confdefs.h. */
17339 lzma_index_iter iter;
17340 lzma_index_iter_init (&iter, 0);
17341 lzma_mf_is_supported (LZMA_MF_HC3);
17346 if ac_fn_c_try_link
"$LINENO"; then :
17351 rm -f core conftest.err conftest.
$ac_objext \
17352 conftest
$ac_exeext conftest.
$ac_ext
17353 LIBS
="$ac_save_LIBS"
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
17357 $as_echo "$ac_cv_liblzma" >&6; }
17358 if test "$ac_cv_liblzma" = yes; then
17361 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
17363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
17364 $as_echo_n "checking how to link with liblzma... " >&6; }
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
17366 $as_echo "$LIBLZMA" >&6; }
17369 CPPFLAGS
="$ac_save_CPPFLAGS"
17379 if test "$HAVE_LIBLZMA" != yes; then
17380 if test "$with_lzma" = yes; then
17381 as_fn_error $?
"missing liblzma for --with-lzma" "$LINENO" 5
17387 LIBGUI
="../libgui/src/libgui.a"
17388 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
17397 *-*-cygwin* |
*-*-mingw* )
17406 if test "${enable_gdbtk}" = "yes"; then
17408 # Gdbtk must have an absolute path to srcdir in order to run
17409 # properly when not installed.
17412 GDBTK_SRC_DIR
=`pwd`
17417 # Ok, lets find the tcl configuration
17418 # First, look for one uninstalled.
17419 # the alternative search directory is invoked by --with-tcl
17422 if test x
"${no_tcl}" = x
; then
17423 # we reset no_tcl in case something fails here
17426 # Check whether --with-tcl was given.
17427 if test "${with_tcl+set}" = set; then :
17428 withval
=$with_tcl; with_tclconfig
=${withval}
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
17432 $as_echo_n "checking for Tcl configuration... " >&6; }
17433 if ${ac_cv_c_tclconfig+:} false
; then :
17434 $as_echo_n "(cached) " >&6
17438 # First check to see if --with-tcl was specified.
17440 *-*-cygwin*) platDir
="win" ;;
17441 *) platDir
="unix" ;;
17443 if test x
"${with_tclconfig}" != x
; then
17444 if test -f "${with_tclconfig}/tclConfig.sh" ; then
17445 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
17447 as_fn_error $?
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
17451 # then check for a private Tcl installation
17452 if test x
"${ac_cv_c_tclconfig}" = x
; then
17455 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17456 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
17457 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
17459 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17460 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
17461 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
17463 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17464 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
17465 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
17466 if test -f "$i/$platDir/tclConfig.sh" ; then
17467 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
17473 # on Darwin, check in Framework installation locations
17474 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
17475 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
17476 `ls -d /Library/Frameworks 2>/dev/null` \
17477 `ls -d /Network/Library/Frameworks 2>/dev/null` \
17478 `ls -d /System/Library/Frameworks 2>/dev/null` \
17480 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
17481 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
17487 # check in a few common install locations
17488 if test x
"${ac_cv_c_tclconfig}" = x
; then
17489 for i
in `ls -d ${libdir} 2>/dev/null` \
17490 `ls -d ${exec_prefix}/lib 2>/dev/null` \
17491 `ls -d ${prefix}/lib 2>/dev/null` \
17492 `ls -d /usr/local/lib 2>/dev/null` \
17493 `ls -d /usr/contrib/lib 2>/dev/null` \
17494 `ls -d /usr/lib 2>/dev/null` \
17496 if test -f "$i/tclConfig.sh" ; then
17497 ac_cv_c_tclconfig
=`(cd $i; pwd)`
17503 # check in a few other private locations
17504 if test x
"${ac_cv_c_tclconfig}" = x
; then
17507 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17508 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
17509 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
17510 if test -f "$i/$platDir/tclConfig.sh" ; then
17511 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
17520 if test x
"${ac_cv_c_tclconfig}" = x
; then
17521 TCL_BIN_DIR
="# no Tcl configs found"
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
17523 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
17526 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
17527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
17528 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
17533 # If $no_tk is nonempty, then we can't do Tk, and there is no
17534 # point to doing Tcl.
17537 # Ok, lets find the tk configuration
17538 # First, look for one uninstalled.
17539 # the alternative search directory is invoked by --with-tk
17542 if test x
"${no_tk}" = x
; then
17543 # we reset no_tk in case something fails here
17546 # Check whether --with-tk was given.
17547 if test "${with_tk+set}" = set; then :
17548 withval
=$with_tk; with_tkconfig
=${withval}
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
17552 $as_echo_n "checking for Tk configuration... " >&6; }
17553 if ${ac_cv_c_tkconfig+:} false
; then :
17554 $as_echo_n "(cached) " >&6
17558 # First check to see if --with-tkconfig was specified.
17559 if test x
"${with_tkconfig}" != x
; then
17560 if test -f "${with_tkconfig}/tkConfig.sh" ; then
17561 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
17563 as_fn_error $?
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
17567 # then check for a private Tk library
17569 *-*-cygwin*) platDir
="win" ;;
17570 *) platDir
="unix" ;;
17572 if test x
"${ac_cv_c_tkconfig}" = x
; then
17575 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17576 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
17577 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
17579 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17580 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
17581 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
17583 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17584 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
17585 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
17586 if test -f "$i/$platDir/tkConfig.sh" ; then
17587 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
17593 # on Darwin, check in Framework installation locations
17594 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
17595 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
17596 `ls -d /Library/Frameworks 2>/dev/null` \
17597 `ls -d /Network/Library/Frameworks 2>/dev/null` \
17598 `ls -d /System/Library/Frameworks 2>/dev/null` \
17600 if test -f "$i/Tk.framework/tkConfig.sh" ; then
17601 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
17607 # check in a few common install locations
17608 if test x
"${ac_cv_c_tkconfig}" = x
; then
17609 for i
in `ls -d ${libdir} 2>/dev/null` \
17610 `ls -d ${exec_prefix}/lib 2>/dev/null` \
17611 `ls -d ${prefix}/lib 2>/dev/null` \
17612 `ls -d /usr/local/lib 2>/dev/null` \
17613 `ls -d /usr/contrib/lib 2>/dev/null` \
17614 `ls -d /usr/lib 2>/dev/null` \
17616 if test -f "$i/tkConfig.sh" ; then
17617 ac_cv_c_tkconfig
=`(cd $i; pwd)`
17622 # check in a few other private locations
17623 if test x
"${ac_cv_c_tkconfig}" = x
; then
17626 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17627 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
17628 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
17629 if test -f "$i/$platDir/tkConfig.sh" ; then
17630 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
17639 if test x
"${ac_cv_c_tkconfig}" = x
; then
17640 TK_BIN_DIR
="# no Tk configs found"
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
17642 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
17645 TK_BIN_DIR
=${ac_cv_c_tkconfig}
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
17647 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
17652 if test -z "${no_tcl}" -a -z "${no_tk}"; then
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
17655 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
17657 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
17659 $as_echo "loading" >&6; }
17660 .
${TCL_BIN_DIR}/tclConfig.sh
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
17663 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
17666 # eval is required to do the TCL_DBGX substitution
17667 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
17668 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
17670 # If the TCL_BIN_DIR is the build directory (not the install directory),
17671 # then set the common variable name to the value of the build variables.
17672 # For example, the variable TCL_LIB_SPEC will be set to the value
17673 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
17674 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
17675 # installed and uninstalled version of Tcl.
17676 if test -f "${TCL_BIN_DIR}/Makefile" ; then
17677 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
17678 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
17679 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
17680 elif test "`uname -s`" = "Darwin"; then
17681 # If Tcl was built as a framework, attempt to use the libraries
17682 # from the framework at the given location so that linking works
17683 # against Tcl.framework installed in an arbitrary location.
17684 case ${TCL_DEFS} in
17686 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
17687 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
17688 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
17689 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
17690 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
17695 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
17696 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
17697 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
17703 # eval is required to do the TCL_DBGX substitution
17704 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
17705 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
17706 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
17707 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
17723 # Check for in-tree tcl
17730 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
17734 # Find Tcl private headers
17735 if test x
"${intree}" = xno
; then
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
17738 $as_echo_n "checking for Tcl private headers... " >&6; }
17740 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
17741 if test -f ${dir}/tclInt.h
; then
17745 if test x
"${private_dir}" = x
; then
17746 as_fn_error $?
"could not find private Tcl headers" "$LINENO" 5
17748 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
17750 $as_echo "${private_dir}" >&6; }
17753 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
17754 TCL_LIBRARY
="${TCL_LIB_SPEC}"
17757 # If building tcl in the same src tree, private headers
17758 # are not needed, but we need to be sure to use the right
17760 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
17761 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
17762 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
17770 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
17772 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
17773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
17774 $as_echo "loading" >&6; }
17775 .
${TK_BIN_DIR}/tkConfig.sh
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
17778 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
17781 # eval is required to do the TK_DBGX substitution
17782 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
17783 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
17785 # If the TK_BIN_DIR is the build directory (not the install directory),
17786 # then set the common variable name to the value of the build variables.
17787 # For example, the variable TK_LIB_SPEC will be set to the value
17788 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
17789 # instead of TK_BUILD_LIB_SPEC since it will work with both an
17790 # installed and uninstalled version of Tcl.
17791 if test -f "${TK_BIN_DIR}/Makefile" ; then
17792 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
17793 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
17794 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
17795 elif test "`uname -s`" = "Darwin"; then
17796 # If Tk was built as a framework, attempt to use the libraries
17797 # from the framework at the given location so that linking works
17798 # against Tk.framework installed in an arbitrary location.
17801 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
17802 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
17803 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
17804 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
17805 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
17810 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
17811 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
17812 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
17818 # eval is required to do the TK_DBGX substitution
17819 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
17820 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
17821 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
17822 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
17837 # Check for in-tree Tk
17839 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
17843 # Find Tk private headers
17844 if test x
"${intree}" = xno
; then
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
17847 $as_echo_n "checking for Tk private headers... " >&6; }
17849 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
17850 if test -f ${dir}/tkInt.h
; then
17854 if test x
"${private_dir}" = x
; then
17855 as_fn_error $?
"could not find Tk private headers" "$LINENO" 5
17857 TK_PRIVATE_INCLUDE
="-I${private_dir}"
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
17859 $as_echo "${private_dir}" >&6; }
17862 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
17863 TK_LIBRARY
=${TK_LIB_SPEC}
17866 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
17867 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
17868 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
17875 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
17877 # Include some libraries that Tcl and Tk want.
17878 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
17879 # Yes, the ordering seems wrong here. But it isn't.
17880 # TK_LIBS is the list of libraries that need to be linked
17881 # after Tcl/Tk. Note that this isn't put into LIBS. If it
17882 # were in LIBS then any link tests after this point would
17883 # try to include things like `$(LIBGUI)', which wouldn't work.
17884 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
17886 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
17887 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
17888 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
17889 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
17890 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
17891 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
17892 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
17894 if test x
"$gdb_cv_os_cygwin" = xyes
; then
17895 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
17896 WIN32LDAPP
="-Wl,--subsystem,console"
17897 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
17900 subdirs
="$subdirs gdbtk"
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
17913 $as_echo_n "checking for X... " >&6; }
17916 # Check whether --with-x was given.
17917 if test "${with_x+set}" = set; then :
17921 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17922 if test "x$with_x" = xno
; then
17923 # The user explicitly disabled X.
17926 case $x_includes,$x_libraries in #(
17927 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
17928 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
17929 $as_echo_n "(cached) " >&6
17931 # One or both of the vars are not set, and there is no cached value.
17932 ac_x_includes
=no ac_x_libraries
=no
17933 rm -f -r conftest.dir
17934 if mkdir conftest.dir
; then
17936 cat >Imakefile
<<'_ACEOF'
17938 @echo incroot='${INCROOT}'
17940 @echo usrlibdir='${USRLIBDIR}'
17942 @echo libdir='${LIBDIR}'
17944 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
17945 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17946 for ac_var
in incroot usrlibdir libdir
; do
17947 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
17949 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17950 for ac_extension
in a so sl dylib la dll
; do
17951 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
17952 test -f "$ac_im_libdir/libX11.$ac_extension"; then
17953 ac_im_usrlibdir
=$ac_im_libdir; break
17956 # Screen out bogus values from the imake configuration. They are
17957 # bogus both because they are the default anyway, and because
17958 # using them would break gcc on systems where it needs fixed includes.
17959 case $ac_im_incroot in
17960 /usr
/include
) ac_x_includes
= ;;
17961 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
17963 case $ac_im_usrlibdir in
17964 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
17965 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
17969 rm -f -r conftest.dir
17972 # Standard set of common directories for X headers.
17973 # Check X11 before X11Rn because it is often a symlink to the current release.
17987 /usr/local/X11/include
17988 /usr/local/X11R7/include
17989 /usr/local/X11R6/include
17990 /usr/local/X11R5/include
17991 /usr/local/X11R4/include
17993 /usr/local/include/X11
17994 /usr/local/include/X11R7
17995 /usr/local/include/X11R6
17996 /usr/local/include/X11R5
17997 /usr/local/include/X11R4
18001 /usr/XFree86/include/X11
18005 /usr/unsupported/include
18006 /usr/athena/include
18007 /usr/local/x11r5/include
18008 /usr/lpp/Xamples/include
18010 /usr/openwin/include
18011 /usr/openwin/share/include'
18013 if test "$ac_x_includes" = no
; then
18014 # Guess where to find include files, by looking for Xlib.h.
18015 # First, try using that file with no special directory specified.
18016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18017 /* end confdefs.h. */
18018 #include <X11/Xlib.h>
18020 if ac_fn_c_try_cpp
"$LINENO"; then :
18021 # We can compile using X headers with no special include directory.
18024 for ac_dir
in $ac_x_header_dirs; do
18025 if test -r "$ac_dir/X11/Xlib.h"; then
18026 ac_x_includes
=$ac_dir
18031 rm -f conftest.err conftest.i conftest.
$ac_ext
18032 fi # $ac_x_includes = no
18034 if test "$ac_x_libraries" = no
; then
18035 # Check for the libraries.
18036 # See if we find them without any special options.
18037 # Don't add to $LIBS permanently.
18040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18041 /* end confdefs.h. */
18042 #include <X11/Xlib.h>
18051 if ac_fn_c_try_link
"$LINENO"; then :
18053 # We can link X programs with no special library path.
18057 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18059 # Don't even attempt the hair of trying to link an X program!
18060 for ac_extension
in a so sl dylib la dll
; do
18061 if test -r "$ac_dir/libX11.$ac_extension"; then
18062 ac_x_libraries
=$ac_dir
18068 rm -f core conftest.err conftest.
$ac_objext \
18069 conftest
$ac_exeext conftest.
$ac_ext
18070 fi # $ac_x_libraries = no
18072 case $ac_x_includes,$ac_x_libraries in #(
18073 no
,* |
*,no |
*\'*)
18074 # Didn't find X, or a directory has "'" in its name.
18075 ac_cv_have_x
="have_x=no";; #(
18077 # Record where we found X for the cache.
18078 ac_cv_have_x
="have_x=yes\
18079 ac_x_includes='$ac_x_includes'\
18080 ac_x_libraries='$ac_x_libraries'"
18086 eval "$ac_cv_have_x"
18089 if test "$have_x" != yes; then
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
18091 $as_echo "$have_x" >&6; }
18094 # If each of the values was on the command line, it overrides each guess.
18095 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
18096 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
18097 # Update the cache value to reflect the command line values.
18098 ac_cv_have_x
="have_x=yes\
18099 ac_x_includes='$x_includes'\
18100 ac_x_libraries='$x_libraries'"
18101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
18102 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
18106 # Unlike the sim directory, whether a simulator is linked is controlled by
18107 # presence of a gdb_sim definition in the target configure.tgt entry.
18108 # This code just checks for a few cases where we'd like to ignore those
18109 # definitions, even when they're present in the '.mt' file. These cases
18110 # are when --disable-sim is specified, or if the simulator directory is
18111 # not part of the source tree.
18113 # Check whether --enable-sim was given.
18114 if test "${enable_sim+set}" = set; then :
18115 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
18116 echo "enableval = ${enableval}";
18117 case "${enableval}" in
18118 yes) ignore_sim
=false
;;
18119 no
) ignore_sim
=true
;;
18120 *) ignore_sim
=false
;;
18127 if test ! -d "${srcdir}/../sim"; then
18133 if test "${ignore_sim}" = "false"; then
18134 if test x
"${gdb_sim}" != x
; then
18136 SIM_OBS
="remote-sim.o"
18138 $as_echo "#define WITH_SIM 1" >>confdefs.h
18141 # Some tdep code should only be compiled in when the ppc sim is
18142 # built. PR sim/13418.
18146 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
18166 # List of host floatformats.
18168 cat >>confdefs.h
<<_ACEOF
18169 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
18173 cat >>confdefs.h
<<_ACEOF
18174 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
18178 cat >>confdefs.h
<<_ACEOF
18179 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
18183 # target_subdir is used by the testsuite to find the target libraries.
18185 if test "${host}" != "${target}"; then
18186 target_subdir
="${target_alias}/"
18190 # Import nat definitions.
18191 nat_makefile_frag
=/dev
/null
18192 if test "${gdb_native}" = "yes"; then
18193 .
${srcdir}/configure.nat
18194 nativefile
=$NAT_FILE
18207 if test x
"${gdb_osabi}" != x
; then
18209 cat >>confdefs.h
<<_ACEOF
18210 #define GDB_OSABI_DEFAULT $gdb_osabi
18215 # Check for babeltrace and babeltrace-ctf
18217 # Check whether --with-babeltrace was given.
18218 if test "${with_babeltrace+set}" = set; then :
18219 withval
=$with_babeltrace;
18221 with_babeltrace
=auto
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
18225 $as_echo_n "checking whether to use babeltrace... " >&6; }
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
18227 $as_echo "$with_babeltrace" >&6; }
18229 if test "x$with_babeltrace" = "xno"; then
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
18231 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
18233 # Append -Werror to CFLAGS so that configure can catch the warning
18234 # "assignment from incompatible pointer type", which is related to
18235 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
18236 # in GDB, while babeltrace 1.0.3 is broken.
18237 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
18238 # safe to save and restore CFLAGS here.
18239 saved_CFLAGS
=$CFLAGS
18240 CFLAGS
="$CFLAGS -Werror"
18251 acl_save_prefix
="$prefix"
18252 prefix
="$acl_final_prefix"
18253 acl_save_exec_prefix
="$exec_prefix"
18254 exec_prefix
="$acl_final_exec_prefix"
18256 eval additional_includedir
=\"$includedir\"
18257 eval additional_libdir
=\"$libdir\"
18259 exec_prefix
="$acl_save_exec_prefix"
18260 prefix
="$acl_save_prefix"
18263 # Check whether --with-libbabeltrace-prefix was given.
18264 if test "${with_libbabeltrace_prefix+set}" = set; then :
18265 withval
=$with_libbabeltrace_prefix;
18266 if test "X$withval" = "Xno"; then
18269 if test "X$withval" = "X"; then
18271 acl_save_prefix
="$prefix"
18272 prefix
="$acl_final_prefix"
18273 acl_save_exec_prefix
="$exec_prefix"
18274 exec_prefix
="$acl_final_exec_prefix"
18276 eval additional_includedir
=\"$includedir\"
18277 eval additional_libdir
=\"$libdir\"
18279 exec_prefix
="$acl_save_exec_prefix"
18280 prefix
="$acl_save_prefix"
18283 additional_includedir
="$withval/include"
18284 additional_libdir
="$withval/lib"
18291 # Check whether --with-libbabeltrace-type was given.
18292 if test "${with_libbabeltrace_type+set}" = set; then :
18293 withval
=$with_libbabeltrace_type; with_libbabeltrace_type
=$withval
18295 with_libbabeltrace_type
=auto
18298 lib_type
=`eval echo \$with_libbabeltrace_type`
18305 names_already_handled
=
18306 names_next_round
='babeltrace babeltrace-ctf'
18307 while test -n "$names_next_round"; do
18308 names_this_round
="$names_next_round"
18310 for name
in $names_this_round; do
18312 for n
in $names_already_handled; do
18313 if test "$n" = "$name"; then
18314 already_handled
=yes
18318 if test -z "$already_handled"; then
18319 names_already_handled
="$names_already_handled $name"
18320 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18321 eval value
=\"\
$HAVE_LIB$uppername\"
18322 if test -n "$value"; then
18323 if test "$value" = yes; then
18324 eval value
=\"\
$LIB$uppername\"
18325 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
18326 eval value
=\"\
$LTLIB$uppername\"
18327 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
18336 if test $use_additional = yes; then
18337 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18338 found_dir
="$additional_libdir"
18339 found_so
="$additional_libdir/lib$name.$shlibext"
18340 if test -f "$additional_libdir/lib$name.la"; then
18341 found_la
="$additional_libdir/lib$name.la"
18343 elif test x
$lib_type != xshared
; then
18344 if test -f "$additional_libdir/lib$name.$libext"; then
18345 found_dir
="$additional_libdir"
18346 found_a
="$additional_libdir/lib$name.$libext"
18347 if test -f "$additional_libdir/lib$name.la"; then
18348 found_la
="$additional_libdir/lib$name.la"
18353 if test "X$found_dir" = "X"; then
18354 for x
in $LDFLAGS $LTLIBBABELTRACE; do
18356 acl_save_prefix
="$prefix"
18357 prefix
="$acl_final_prefix"
18358 acl_save_exec_prefix
="$exec_prefix"
18359 exec_prefix
="$acl_final_exec_prefix"
18361 exec_prefix
="$acl_save_exec_prefix"
18362 prefix
="$acl_save_prefix"
18366 dir
=`echo "X$x" | sed -e 's/^X-L//'`
18367 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18369 found_so
="$dir/lib$name.$shlibext"
18370 if test -f "$dir/lib$name.la"; then
18371 found_la
="$dir/lib$name.la"
18373 elif test x
$lib_type != xshared
; then
18374 if test -f "$dir/lib$name.$libext"; then
18376 found_a
="$dir/lib$name.$libext"
18377 if test -f "$dir/lib$name.la"; then
18378 found_la
="$dir/lib$name.la"
18384 if test "X$found_dir" != "X"; then
18389 if test "X$found_dir" != "X"; then
18390 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
18391 if test "X$found_so" != "X"; then
18392 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
18393 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18396 for x
in $ltrpathdirs; do
18397 if test "X$x" = "X$found_dir"; then
18402 if test -z "$haveit"; then
18403 ltrpathdirs
="$ltrpathdirs $found_dir"
18405 if test "$hardcode_direct" = yes; then
18406 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18408 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
18409 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18411 for x
in $rpathdirs; do
18412 if test "X$x" = "X$found_dir"; then
18417 if test -z "$haveit"; then
18418 rpathdirs
="$rpathdirs $found_dir"
18422 for x
in $LDFLAGS $LIBBABELTRACE; do
18424 acl_save_prefix
="$prefix"
18425 prefix
="$acl_final_prefix"
18426 acl_save_exec_prefix
="$exec_prefix"
18427 exec_prefix
="$acl_final_exec_prefix"
18429 exec_prefix
="$acl_save_exec_prefix"
18430 prefix
="$acl_save_prefix"
18432 if test "X$x" = "X-L$found_dir"; then
18437 if test -z "$haveit"; then
18438 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
18440 if test "$hardcode_minus_L" != no
; then
18441 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18443 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
18449 if test "X$found_a" != "X"; then
18450 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
18452 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
18455 additional_includedir
=
18456 case "$found_dir" in
18458 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18459 additional_includedir
="$basedir/include"
18462 if test "X$additional_includedir" != "X"; then
18463 if test "X$additional_includedir" != "X/usr/include"; then
18465 if test "X$additional_includedir" = "X/usr/local/include"; then
18466 if test -n "$GCC"; then
18468 linux
*) haveit
=yes;;
18472 if test -z "$haveit"; then
18473 for x
in $CPPFLAGS $INCBABELTRACE; do
18475 acl_save_prefix
="$prefix"
18476 prefix
="$acl_final_prefix"
18477 acl_save_exec_prefix
="$exec_prefix"
18478 exec_prefix
="$acl_final_exec_prefix"
18480 exec_prefix
="$acl_save_exec_prefix"
18481 prefix
="$acl_save_prefix"
18483 if test "X$x" = "X-I$additional_includedir"; then
18488 if test -z "$haveit"; then
18489 if test -d "$additional_includedir"; then
18490 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
18496 if test -n "$found_la"; then
18497 save_libdir
="$libdir"
18498 case "$found_la" in
18499 */* |
*\\*) .
"$found_la" ;;
18500 *) .
"./$found_la" ;;
18502 libdir
="$save_libdir"
18503 for dep
in $dependency_libs; do
18506 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
18507 if test "X$additional_libdir" != "X/usr/lib"; then
18509 if test "X$additional_libdir" = "X/usr/local/lib"; then
18510 if test -n "$GCC"; then
18512 linux
*) haveit
=yes;;
18516 if test -z "$haveit"; then
18518 for x
in $LDFLAGS $LIBBABELTRACE; do
18520 acl_save_prefix
="$prefix"
18521 prefix
="$acl_final_prefix"
18522 acl_save_exec_prefix
="$exec_prefix"
18523 exec_prefix
="$acl_final_exec_prefix"
18525 exec_prefix
="$acl_save_exec_prefix"
18526 prefix
="$acl_save_prefix"
18528 if test "X$x" = "X-L$additional_libdir"; then
18533 if test -z "$haveit"; then
18534 if test -d "$additional_libdir"; then
18535 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
18539 for x
in $LDFLAGS $LTLIBBABELTRACE; do
18541 acl_save_prefix
="$prefix"
18542 prefix
="$acl_final_prefix"
18543 acl_save_exec_prefix
="$exec_prefix"
18544 exec_prefix
="$acl_final_exec_prefix"
18546 exec_prefix
="$acl_save_exec_prefix"
18547 prefix
="$acl_save_prefix"
18549 if test "X$x" = "X-L$additional_libdir"; then
18554 if test -z "$haveit"; then
18555 if test -d "$additional_libdir"; then
18556 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
18563 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
18564 if test "$enable_rpath" != no
; then
18566 for x
in $rpathdirs; do
18567 if test "X$x" = "X$dir"; then
18572 if test -z "$haveit"; then
18573 rpathdirs
="$rpathdirs $dir"
18576 for x
in $ltrpathdirs; do
18577 if test "X$x" = "X$dir"; then
18582 if test -z "$haveit"; then
18583 ltrpathdirs
="$ltrpathdirs $dir"
18588 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18591 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18594 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
18595 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
18601 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
18602 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
18603 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
18605 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l:lib$name.$libext"
18606 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l:lib$name.$libext"
18613 if test "X$rpathdirs" != "X"; then
18614 if test -n "$hardcode_libdir_separator"; then
18616 for found_dir
in $rpathdirs; do
18617 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18619 acl_save_libdir
="$libdir"
18621 eval flag
=\"$hardcode_libdir_flag_spec\"
18622 libdir
="$acl_save_libdir"
18623 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
18625 for found_dir
in $rpathdirs; do
18626 acl_save_libdir
="$libdir"
18627 libdir
="$found_dir"
18628 eval flag
=\"$hardcode_libdir_flag_spec\"
18629 libdir
="$acl_save_libdir"
18630 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
18634 if test "X$ltrpathdirs" != "X"; then
18635 for found_dir
in $ltrpathdirs; do
18636 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
18641 ac_save_CPPFLAGS
="$CPPFLAGS"
18643 for element
in $INCBABELTRACE; do
18645 for x
in $CPPFLAGS; do
18647 acl_save_prefix
="$prefix"
18648 prefix
="$acl_final_prefix"
18649 acl_save_exec_prefix
="$exec_prefix"
18650 exec_prefix
="$acl_final_exec_prefix"
18652 exec_prefix
="$acl_save_exec_prefix"
18653 prefix
="$acl_save_prefix"
18655 if test "X$x" = "X$element"; then
18660 if test -z "$haveit"; then
18661 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
18666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
18667 $as_echo_n "checking for libbabeltrace... " >&6; }
18668 if ${ac_cv_libbabeltrace+:} false
; then :
18669 $as_echo_n "(cached) " >&6
18672 ac_save_LIBS
="$LIBS"
18673 LIBS
="$LIBS $LIBBABELTRACE"
18674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18675 /* end confdefs.h. */
18676 #include <babeltrace/babeltrace.h>
18677 #include <babeltrace/ctf/events.h>
18678 #include <babeltrace/ctf/iterator.h>
18682 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
18683 struct bt_ctf_event *event = NULL;
18684 const struct bt_definition *scope;
18686 pos->type = BT_SEEK_BEGIN;
18687 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
18688 scope = bt_ctf_get_top_level_scope (event,
18689 BT_STREAM_EVENT_HEADER);
18690 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
18696 if ac_fn_c_try_link
"$LINENO"; then :
18697 ac_cv_libbabeltrace
=yes
18699 ac_cv_libbabeltrace
=no
18701 rm -f core conftest.err conftest.
$ac_objext \
18702 conftest
$ac_exeext conftest.
$ac_ext
18703 LIBS
="$ac_save_LIBS"
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
18707 $as_echo "$ac_cv_libbabeltrace" >&6; }
18708 if test "$ac_cv_libbabeltrace" = yes; then
18709 HAVE_LIBBABELTRACE
=yes
18711 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
18714 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
18715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
18716 $as_echo "$LIBBABELTRACE" >&6; }
18718 HAVE_LIBBABELTRACE
=no
18719 CPPFLAGS
="$ac_save_CPPFLAGS"
18729 CFLAGS
=$saved_CFLAGS
18731 if test "$HAVE_LIBBABELTRACE" != yes; then
18732 if test "$with_babeltrace" = yes; then
18733 as_fn_error $?
"babeltrace is missing or unusable" "$LINENO" 5
18735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
18736 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
18743 # Check whether --with-xxhash was given.
18744 if test "${with_xxhash+set}" = set; then :
18745 withval
=$with_xxhash;
18751 # Check whether --enable-libctf was given.
18752 if test "${enable_libctf+set}" = set; then :
18753 enableval
=$enable_libctf;
18754 case "$enableval" in
18756 *) as_fn_error $?
"Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
18764 if test x
${enable_static} = xno
; then
18765 LIBCTF
="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so"
18766 CTF_DEPS
="../libctf/.libs/libctf.so"
18768 LIBCTF
="../libctf/.libs/libctf.a"
18771 if test "${enable_libctf}" = yes; then
18773 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
18783 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
18786 if test "x$with_xxhash" != "xno"; then
18797 acl_save_prefix
="$prefix"
18798 prefix
="$acl_final_prefix"
18799 acl_save_exec_prefix
="$exec_prefix"
18800 exec_prefix
="$acl_final_exec_prefix"
18802 eval additional_includedir
=\"$includedir\"
18803 eval additional_libdir
=\"$libdir\"
18805 exec_prefix
="$acl_save_exec_prefix"
18806 prefix
="$acl_save_prefix"
18809 # Check whether --with-libxxhash-prefix was given.
18810 if test "${with_libxxhash_prefix+set}" = set; then :
18811 withval
=$with_libxxhash_prefix;
18812 if test "X$withval" = "Xno"; then
18815 if test "X$withval" = "X"; then
18817 acl_save_prefix
="$prefix"
18818 prefix
="$acl_final_prefix"
18819 acl_save_exec_prefix
="$exec_prefix"
18820 exec_prefix
="$acl_final_exec_prefix"
18822 eval additional_includedir
=\"$includedir\"
18823 eval additional_libdir
=\"$libdir\"
18825 exec_prefix
="$acl_save_exec_prefix"
18826 prefix
="$acl_save_prefix"
18829 additional_includedir
="$withval/include"
18830 additional_libdir
="$withval/lib"
18837 # Check whether --with-libxxhash-type was given.
18838 if test "${with_libxxhash_type+set}" = set; then :
18839 withval
=$with_libxxhash_type; with_libxxhash_type
=$withval
18841 with_libxxhash_type
=auto
18844 lib_type
=`eval echo \$with_libxxhash_type`
18851 names_already_handled
=
18852 names_next_round
='xxhash '
18853 while test -n "$names_next_round"; do
18854 names_this_round
="$names_next_round"
18856 for name
in $names_this_round; do
18858 for n
in $names_already_handled; do
18859 if test "$n" = "$name"; then
18860 already_handled
=yes
18864 if test -z "$already_handled"; then
18865 names_already_handled
="$names_already_handled $name"
18866 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18867 eval value
=\"\
$HAVE_LIB$uppername\"
18868 if test -n "$value"; then
18869 if test "$value" = yes; then
18870 eval value
=\"\
$LIB$uppername\"
18871 test -z "$value" || LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$value"
18872 eval value
=\"\
$LTLIB$uppername\"
18873 test -z "$value" || LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$value"
18882 if test $use_additional = yes; then
18883 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18884 found_dir
="$additional_libdir"
18885 found_so
="$additional_libdir/lib$name.$shlibext"
18886 if test -f "$additional_libdir/lib$name.la"; then
18887 found_la
="$additional_libdir/lib$name.la"
18889 elif test x
$lib_type != xshared
; then
18890 if test -f "$additional_libdir/lib$name.$libext"; then
18891 found_dir
="$additional_libdir"
18892 found_a
="$additional_libdir/lib$name.$libext"
18893 if test -f "$additional_libdir/lib$name.la"; then
18894 found_la
="$additional_libdir/lib$name.la"
18899 if test "X$found_dir" = "X"; then
18900 for x
in $LDFLAGS $LTLIBXXHASH; do
18902 acl_save_prefix
="$prefix"
18903 prefix
="$acl_final_prefix"
18904 acl_save_exec_prefix
="$exec_prefix"
18905 exec_prefix
="$acl_final_exec_prefix"
18907 exec_prefix
="$acl_save_exec_prefix"
18908 prefix
="$acl_save_prefix"
18912 dir
=`echo "X$x" | sed -e 's/^X-L//'`
18913 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18915 found_so
="$dir/lib$name.$shlibext"
18916 if test -f "$dir/lib$name.la"; then
18917 found_la
="$dir/lib$name.la"
18919 elif test x
$lib_type != xshared
; then
18920 if test -f "$dir/lib$name.$libext"; then
18922 found_a
="$dir/lib$name.$libext"
18923 if test -f "$dir/lib$name.la"; then
18924 found_la
="$dir/lib$name.la"
18930 if test "X$found_dir" != "X"; then
18935 if test "X$found_dir" != "X"; then
18936 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$found_dir -l$name"
18937 if test "X$found_so" != "X"; then
18938 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
18939 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
18942 for x
in $ltrpathdirs; do
18943 if test "X$x" = "X$found_dir"; then
18948 if test -z "$haveit"; then
18949 ltrpathdirs
="$ltrpathdirs $found_dir"
18951 if test "$hardcode_direct" = yes; then
18952 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
18954 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
18955 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
18957 for x
in $rpathdirs; do
18958 if test "X$x" = "X$found_dir"; then
18963 if test -z "$haveit"; then
18964 rpathdirs
="$rpathdirs $found_dir"
18968 for x
in $LDFLAGS $LIBXXHASH; do
18970 acl_save_prefix
="$prefix"
18971 prefix
="$acl_final_prefix"
18972 acl_save_exec_prefix
="$exec_prefix"
18973 exec_prefix
="$acl_final_exec_prefix"
18975 exec_prefix
="$acl_save_exec_prefix"
18976 prefix
="$acl_save_prefix"
18978 if test "X$x" = "X-L$found_dir"; then
18983 if test -z "$haveit"; then
18984 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir"
18986 if test "$hardcode_minus_L" != no
; then
18987 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
18989 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
18995 if test "X$found_a" != "X"; then
18996 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_a"
18998 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir -l$name"
19001 additional_includedir
=
19002 case "$found_dir" in
19004 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
19005 additional_includedir
="$basedir/include"
19008 if test "X$additional_includedir" != "X"; then
19009 if test "X$additional_includedir" != "X/usr/include"; then
19011 if test "X$additional_includedir" = "X/usr/local/include"; then
19012 if test -n "$GCC"; then
19014 linux
*) haveit
=yes;;
19018 if test -z "$haveit"; then
19019 for x
in $CPPFLAGS $INCXXHASH; do
19021 acl_save_prefix
="$prefix"
19022 prefix
="$acl_final_prefix"
19023 acl_save_exec_prefix
="$exec_prefix"
19024 exec_prefix
="$acl_final_exec_prefix"
19026 exec_prefix
="$acl_save_exec_prefix"
19027 prefix
="$acl_save_prefix"
19029 if test "X$x" = "X-I$additional_includedir"; then
19034 if test -z "$haveit"; then
19035 if test -d "$additional_includedir"; then
19036 INCXXHASH
="${INCXXHASH}${INCXXHASH:+ }-I$additional_includedir"
19042 if test -n "$found_la"; then
19043 save_libdir
="$libdir"
19044 case "$found_la" in
19045 */* |
*\\*) .
"$found_la" ;;
19046 *) .
"./$found_la" ;;
19048 libdir
="$save_libdir"
19049 for dep
in $dependency_libs; do
19052 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
19053 if test "X$additional_libdir" != "X/usr/lib"; then
19055 if test "X$additional_libdir" = "X/usr/local/lib"; then
19056 if test -n "$GCC"; then
19058 linux
*) haveit
=yes;;
19062 if test -z "$haveit"; then
19064 for x
in $LDFLAGS $LIBXXHASH; do
19066 acl_save_prefix
="$prefix"
19067 prefix
="$acl_final_prefix"
19068 acl_save_exec_prefix
="$exec_prefix"
19069 exec_prefix
="$acl_final_exec_prefix"
19071 exec_prefix
="$acl_save_exec_prefix"
19072 prefix
="$acl_save_prefix"
19074 if test "X$x" = "X-L$additional_libdir"; then
19079 if test -z "$haveit"; then
19080 if test -d "$additional_libdir"; then
19081 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$additional_libdir"
19085 for x
in $LDFLAGS $LTLIBXXHASH; do
19087 acl_save_prefix
="$prefix"
19088 prefix
="$acl_final_prefix"
19089 acl_save_exec_prefix
="$exec_prefix"
19090 exec_prefix
="$acl_final_exec_prefix"
19092 exec_prefix
="$acl_save_exec_prefix"
19093 prefix
="$acl_save_prefix"
19095 if test "X$x" = "X-L$additional_libdir"; then
19100 if test -z "$haveit"; then
19101 if test -d "$additional_libdir"; then
19102 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$additional_libdir"
19109 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
19110 if test "$enable_rpath" != no
; then
19112 for x
in $rpathdirs; do
19113 if test "X$x" = "X$dir"; then
19118 if test -z "$haveit"; then
19119 rpathdirs
="$rpathdirs $dir"
19122 for x
in $ltrpathdirs; do
19123 if test "X$x" = "X$dir"; then
19128 if test -z "$haveit"; then
19129 ltrpathdirs
="$ltrpathdirs $dir"
19134 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19137 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19140 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$dep"
19141 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$dep"
19147 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
19148 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
19149 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l$name"
19151 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l:lib$name.$libext"
19152 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l:lib$name.$libext"
19159 if test "X$rpathdirs" != "X"; then
19160 if test -n "$hardcode_libdir_separator"; then
19162 for found_dir
in $rpathdirs; do
19163 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
19165 acl_save_libdir
="$libdir"
19167 eval flag
=\"$hardcode_libdir_flag_spec\"
19168 libdir
="$acl_save_libdir"
19169 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
19171 for found_dir
in $rpathdirs; do
19172 acl_save_libdir
="$libdir"
19173 libdir
="$found_dir"
19174 eval flag
=\"$hardcode_libdir_flag_spec\"
19175 libdir
="$acl_save_libdir"
19176 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
19180 if test "X$ltrpathdirs" != "X"; then
19181 for found_dir
in $ltrpathdirs; do
19182 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-R$found_dir"
19187 ac_save_CPPFLAGS
="$CPPFLAGS"
19189 for element
in $INCXXHASH; do
19191 for x
in $CPPFLAGS; do
19193 acl_save_prefix
="$prefix"
19194 prefix
="$acl_final_prefix"
19195 acl_save_exec_prefix
="$exec_prefix"
19196 exec_prefix
="$acl_final_exec_prefix"
19198 exec_prefix
="$acl_save_exec_prefix"
19199 prefix
="$acl_save_prefix"
19201 if test "X$x" = "X$element"; then
19206 if test -z "$haveit"; then
19207 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
19212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5
19213 $as_echo_n "checking for libxxhash... " >&6; }
19214 if ${ac_cv_libxxhash+:} false
; then :
19215 $as_echo_n "(cached) " >&6
19218 ac_save_LIBS
="$LIBS"
19219 LIBS
="$LIBS $LIBXXHASH"
19220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19221 /* end confdefs.h. */
19222 #include <xxhash.h>
19226 XXH32("foo", 3, 0);
19232 if ac_fn_c_try_link
"$LINENO"; then :
19233 ac_cv_libxxhash
=yes
19237 rm -f core conftest.err conftest.
$ac_objext \
19238 conftest
$ac_exeext conftest.
$ac_ext
19239 LIBS
="$ac_save_LIBS"
19242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxxhash" >&5
19243 $as_echo "$ac_cv_libxxhash" >&6; }
19244 if test "$ac_cv_libxxhash" = yes; then
19247 $as_echo "#define HAVE_LIBXXHASH 1" >>confdefs.h
19249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libxxhash" >&5
19250 $as_echo_n "checking how to link with libxxhash... " >&6; }
19251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXXHASH" >&5
19252 $as_echo "$LIBXXHASH" >&6; }
19255 CPPFLAGS
="$ac_save_CPPFLAGS"
19265 if test "$HAVE_LIBXXHASH" != yes; then
19266 if test "$with_xxhash" = yes; then
19267 as_fn_error $?
"xxhash is missing or unusable" "$LINENO" 5
19270 if test "x$with_xxhash" = "xauto"; then
19271 with_xxhash
="$HAVE_LIBXXHASH"
19275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
19276 $as_echo_n "checking whether to use xxhash... " >&6; }
19277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
19278 $as_echo "$with_xxhash" >&6; }
19282 if test "${nativefile}" != ""; then
19283 case "${nativefile}" in
19284 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
19285 * ) GDB_NM_FILE
="${nativefile}"
19287 ac_config_links
="$ac_config_links nm.h:$GDB_NM_FILE"
19290 cat >>confdefs.h
<<_ACEOF
19291 #define GDB_NM_FILE "${GDB_NM_FILE}"
19299 for ac_prog
in xsltproc
19301 # Extract the first word of "$ac_prog", so it can be a program name with args.
19302 set dummy
$ac_prog; ac_word
=$2
19303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19304 $as_echo_n "checking for $ac_word... " >&6; }
19305 if ${ac_cv_path_XSLTPROC+:} false
; then :
19306 $as_echo_n "(cached) " >&6
19310 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
19313 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19314 for as_dir
in $PATH
19317 test -z "$as_dir" && as_dir
=.
19318 for ac_exec_ext
in '' $ac_executable_extensions; do
19319 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19320 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
19321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19331 XSLTPROC
=$ac_cv_path_XSLTPROC
19332 if test -n "$XSLTPROC"; then
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19334 $as_echo "$XSLTPROC" >&6; }
19336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19337 $as_echo "no" >&6; }
19341 test -n "$XSLTPROC" && break
19343 test -n "$XSLTPROC" || XSLTPROC
="missing"
19345 if test "x$USE_MAINTAINER_MODE" = xyes
; then
19346 if test "${XSLTPROC}" = missing
; then
19347 as_fn_error $?
"unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
19355 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
19359 # Check whether we will enable the inclusion of unit tests when
19362 # The default value of this option changes depending whether we're on
19363 # development mode (in which case it's "true") or not (in which case
19364 # it's "false"). The $development variable is set by the GDB_AC_COMMON
19365 # macro, which must therefore be used before GDB_AC_SELFTEST.
19367 if test "x$development" != xtrue
&& test "x$development" != xfalse
; then :
19368 as_fn_error $?
"Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
19371 # Check whether --enable-unit-tests was given.
19372 if test "${enable_unit_tests+set}" = set; then :
19373 enableval
=$enable_unit_tests; case "${enableval}" in
19374 yes) enable_unittests
=true
;;
19375 no
) enable_unittests
=false
;;
19376 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
19379 enable_unittests
=$development
19383 if $enable_unittests; then
19385 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
19388 CONFIG_OBS
="$CONFIG_OBS \$(SELFTESTS_OBS)"
19389 CONFIG_SRCS
="$CONFIG_SRCS \$(SELFTESTS_SRCS)"
19395 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19396 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
19397 if test "x$GDB_TRANSFORM_NAME" = x
; then
19398 GDB_TRANSFORM_NAME
=gdb
19403 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19404 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
19405 if test "x$GCORE_TRANSFORM_NAME" = x
; then
19406 GCORE_TRANSFORM_NAME
=gcore
19410 ac_config_files
="$ac_config_files gcore"
19412 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
19415 cat >confcache
<<\_ACEOF
19416 # This file is a shell script that caches the results of configure
19417 # tests run on this system so they can be shared between configure
19418 # scripts and configure runs, see configure's option --config-cache.
19419 # It is not useful on other systems. If it contains results you don't
19420 # want to keep, you may remove or edit it.
19422 # config.status only pays attention to the cache file if you give it
19423 # the --recheck option to rerun configure.
19425 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19426 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19427 # following values.
19431 # The following way of writing the cache mishandles newlines in values,
19432 # but we know of no workaround that is simple, portable, and efficient.
19433 # So, we kill variables containing newlines.
19434 # Ultrix sh set writes to stderr and can't be redirected directly,
19435 # and sets the high bit in the cache file unless we assign to the vars.
19437 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19438 eval ac_val
=\$
$ac_var
19442 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19443 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19446 _ | IFS | as_nl
) ;; #(
19447 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
19448 *) { eval $ac_var=; unset $ac_var;} ;;
19454 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19455 *${as_nl}ac_space
=\
*)
19456 # `set' does not quote correctly, so add quotes: double-quote
19457 # substitution turns \\\\ into \\, and sed turns \\ into \.
19460 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19463 # `set' quotes correctly as required by POSIX, so do not add quotes.
19464 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19473 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19475 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19477 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
19478 if test -w "$cache_file"; then
19479 if test "x$cache_file" != "x/dev/null"; then
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19481 $as_echo "$as_me: updating cache $cache_file" >&6;}
19482 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
19483 cat confcache
>"$cache_file"
19485 case $cache_file in #(
19487 mv -f confcache
"$cache_file"$$
&&
19488 mv -f "$cache_file"$$
"$cache_file" ;; #(
19490 mv -f confcache
"$cache_file" ;;
19495 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19496 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19501 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19502 # Let make expand exec_prefix.
19503 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19505 DEFS
=-DHAVE_CONFIG_H
19510 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19511 # 1. Remove the extension, and $U if already installed.
19512 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
19513 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
19514 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19515 # will be set to the directory where LIBOBJS objects are built.
19516 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19517 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
19519 LIBOBJS
=$ac_libobjs
19521 LTLIBOBJS
=$ac_ltlibobjs
19524 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19525 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
19526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19528 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
19529 as_fn_error $?
"conditional \"HAVE_PYTHON\" was never defined.
19530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19532 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
19533 as_fn_error $?
"conditional \"HAVE_GUILE\" was never defined.
19534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19538 : "${CONFIG_STATUS=./config.status}"
19540 ac_clean_files_save
=$ac_clean_files
19541 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19542 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19543 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19545 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19547 # Generated by $as_me.
19548 # Run this file to recreate the current configuration.
19549 # Compiler output produced by configure, useful for debugging
19550 # configure, is in config.log if it exists.
19553 ac_cs_recheck=false
19556 SHELL=\${CONFIG_SHELL-$SHELL}
19559 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
19560 ## -------------------- ##
19561 ## M4sh Initialization. ##
19562 ## -------------------- ##
19564 # Be more Bourne compatible
19565 DUALCASE
=1; export DUALCASE
# for MKS sh
19566 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
19569 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19570 # is contrary to our usage. Disable this feature.
19571 alias -g '${1+"$@"}'='"$@"'
19572 setopt NO_GLOB_SUBST
19574 case `(set -o) 2>/dev/null` in #(
19586 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19587 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19588 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19589 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19590 # Prefer a ksh shell builtin over an external printf program on Solaris,
19591 # but without wasting forks for bash or zsh.
19592 if test -z "$BASH_VERSION$ZSH_VERSION" \
19593 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19594 as_echo='print
-r --'
19595 as_echo_n='print
-rn --'
19596 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19597 as_echo='printf %s
\n'
19598 as_echo_n='printf %s
'
19600 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19601 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
19602 as_echo_n='/usr
/ucb
/echo -n'
19604 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19605 as_echo_n_body='eval
19609 expr "X$arg" : "X\\(.*\\)$as_nl";
19610 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19612 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
19614 export as_echo_n_body
19615 as_echo_n='sh
-c $as_echo_n_body as_echo
'
19617 export as_echo_body
19618 as_echo='sh
-c $as_echo_body as_echo
'
19621 # The user is always right.
19622 if test "${PATH_SEPARATOR+set}" != set; then
19624 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19625 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19632 # We need space, tab and new line, in precisely that order. Quoting is
19633 # there to prevent editors from complaining about space-tab.
19634 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19635 # splitting by setting IFS to empty value.)
19638 # Find who we are. Look in the path if we contain no directory separator.
19641 *[\\/]* ) as_myself=$0 ;;
19642 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19643 for as_dir in $PATH
19646 test -z "$as_dir" && as_dir=.
19647 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19653 # We did not find ourselves, most probably we were run as `sh COMMAND'
19654 # in which case we are not to be found in the path.
19655 if test "x$as_myself" = x
; then
19658 if test ! -f "$as_myself"; then
19659 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19663 # Unset variables that we do not need and which cause bugs (e.g. in
19664 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19665 # suppresses any "Segmentation fault" message there. '((' could
19666 # trigger a bug in pdksh 5.2.14.
19667 for as_var
in BASH_ENV ENV MAIL MAILPATH
19668 do eval test x\
${$as_var+set} = xset \
19669 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
19682 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
19685 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19686 # ----------------------------------------
19687 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19688 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19689 # script with STATUS, using 1 if that was 0.
19692 as_status
=$1; test $as_status -eq 0 && as_status
=1
19694 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
19695 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19697 $as_echo "$as_me: error: $2" >&2
19698 as_fn_exit
$as_status
19702 # as_fn_set_status STATUS
19703 # -----------------------
19704 # Set $? to STATUS, without forking.
19705 as_fn_set_status
()
19708 } # as_fn_set_status
19710 # as_fn_exit STATUS
19711 # -----------------
19712 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19716 as_fn_set_status
$1
19722 # Portably unset VAR.
19725 { eval $1=; unset $1;}
19727 as_unset
=as_fn_unset
19728 # as_fn_append VAR VALUE
19729 # ----------------------
19730 # Append the text in VALUE to the end of the definition contained in VAR. Take
19731 # advantage of any shell optimizations that allow amortized linear growth over
19732 # repeated appends, instead of the typical quadratic growth present in naive
19734 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
19735 eval 'as_fn_append ()
19746 # as_fn_arith ARG...
19747 # ------------------
19748 # Perform arithmetic evaluation on the ARGs, and store the result in the
19749 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19750 # must be portable across $(()) and expr.
19751 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
19752 eval 'as_fn_arith ()
19759 as_val
=`expr "$@" || test $? -eq 1`
19764 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
19765 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
19771 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19772 as_basename
=basename
19777 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
19783 as_me
=`$as_basename -- "$0" ||
19784 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19785 X"$0" : 'X\(//\)$' \| \
19786 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19788 sed '/^.*\/\([^/][^/]*\)\/*$/{
19802 # Avoid depending upon Character Ranges.
19803 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19804 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19805 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19806 as_cr_digits
='0123456789'
19807 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19809 ECHO_C
= ECHO_N
= ECHO_T
=
19810 case `echo -n x` in #(((((
19812 case `echo 'xy\c'` in
19813 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
19815 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
19822 rm -f conf$$ conf$$.exe conf$$.
file
19823 if test -d conf$$.dir
; then
19824 rm -f conf$$.dir
/conf$$.
file
19827 mkdir conf$$.dir
2>/dev
/null
19829 if (echo >conf$$.
file) 2>/dev
/null
; then
19830 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19832 # ... but there are two gotchas:
19833 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19834 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19835 # In both cases, we have to default to `cp -pR'.
19836 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
19838 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19846 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
19847 rmdir conf$$.dir
2>/dev
/null
19852 # Create "$as_dir" as a directory, including parents if necessary.
19857 -*) as_dir
=.
/$as_dir;;
19859 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
19863 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19864 *) as_qdir
=$as_dir;;
19866 as_dirs
="'$as_qdir' $as_dirs"
19867 as_dir
=`$as_dirname -- "$as_dir" ||
19868 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19869 X"$as_dir" : 'X\(//\)[^/]' \| \
19870 X"$as_dir" : 'X\(//\)$' \| \
19871 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19872 $as_echo X"$as_dir" |
19873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19877 /^X\(\/\/\)[^/].*/{
19890 test -d "$as_dir" && break
19892 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19893 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
19897 if mkdir
-p .
2>/dev
/null
; then
19898 as_mkdir_p
='mkdir -p "$as_dir"'
19900 test -d .
/-p && rmdir .
/-p
19905 # as_fn_executable_p FILE
19906 # -----------------------
19907 # Test if FILE is an executable regular file.
19908 as_fn_executable_p
()
19910 test -f "$1" && test -x "$1"
19911 } # as_fn_executable_p
19912 as_test_x
='test -x'
19913 as_executable_p
=as_fn_executable_p
19915 # Sed expression to map a string onto a valid CPP name.
19916 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19918 # Sed expression to map a string onto a valid variable name.
19919 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19923 ## ----------------------------------- ##
19924 ## Main body of $CONFIG_STATUS script. ##
19925 ## ----------------------------------- ##
19927 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
19929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19930 # Save the log message, to keep $0 and so on meaningful, and to
19931 # report actual input values of CONFIG_FILES etc. instead of their
19932 # values after options handling.
19934 This file was extended by $as_me, which was
19935 generated by GNU Autoconf 2.69. Invocation command line was
19937 CONFIG_FILES = $CONFIG_FILES
19938 CONFIG_HEADERS = $CONFIG_HEADERS
19939 CONFIG_LINKS = $CONFIG_LINKS
19940 CONFIG_COMMANDS = $CONFIG_COMMANDS
19943 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19948 case $ac_config_files in *"
19949 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
19952 case $ac_config_headers in *"
19953 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
19957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19958 # Files that config.status was made for.
19959 config_files="$ac_config_files"
19960 config_headers="$ac_config_headers"
19961 config_links="$ac_config_links"
19962 config_commands="$ac_config_commands"
19966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19968 \`$as_me' instantiates files and other configuration actions
19969 from templates according to the current configuration. Unless the files
19970 and actions are specified as TAGs, all are instantiated by default.
19972 Usage: $0 [OPTION]... [TAG]...
19974 -h, --help print this help, then exit
19975 -V, --version print version number and configuration settings, then exit
19976 --config print configuration, then exit
19977 -q, --quiet, --silent
19978 do not print progress messages
19979 -d, --debug don't remove temporary files
19980 --recheck update $as_me by reconfiguring in the same conditions
19981 --file=FILE[:TEMPLATE]
19982 instantiate the configuration file FILE
19983 --header=FILE[:TEMPLATE]
19984 instantiate the configuration header FILE
19986 Configuration files:
19989 Configuration headers:
19992 Configuration links:
19995 Configuration commands:
19998 Report bugs to the package provider."
20001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20002 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20005 configured by $0, generated by GNU Autoconf 2.69,
20006 with options \\"\$ac_cs_config\\"
20008 Copyright (C) 2012 Free Software Foundation, Inc.
20009 This config.status script is free software; the Free Software Foundation
20010 gives unlimited permission to copy, distribute and modify it."
20016 test -n "\$AWK" || AWK=awk
20019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20020 # The default lists apply if the user does not specify any file.
20026 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20027 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20031 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20043 # Handling of the options.
20044 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20046 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20047 $as_echo "$ac_cs_version"; exit ;;
20048 --config |
--confi |
--conf |
--con |
--co |
--c )
20049 $as_echo "$ac_cs_config"; exit ;;
20050 --debug |
--debu |
--deb |
--de |
--d |
-d )
20052 --file |
--fil |
--fi |
--f )
20055 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20056 '') as_fn_error $?
"missing file argument" ;;
20058 as_fn_append CONFIG_FILES
" '$ac_optarg'"
20059 ac_need_defaults
=false
;;
20060 --header |
--heade |
--head |
--hea )
20063 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20065 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
20066 ac_need_defaults
=false
;;
20068 # Conflict between --help and --header
20069 as_fn_error $?
"ambiguous option: \`$1'
20070 Try \`$0 --help' for more information.";;
20071 --help |
--hel |
-h )
20072 $as_echo "$ac_cs_usage"; exit ;;
20073 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20074 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20077 # This is an error.
20078 -*) as_fn_error $?
"unrecognized option: \`$1'
20079 Try \`$0 --help' for more information." ;;
20081 *) as_fn_append ac_config_targets
" $1"
20082 ac_need_defaults
=false
;;
20088 ac_configure_extra_args
=
20090 if $ac_cs_silent; then
20092 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20097 if \$ac_cs_recheck; then
20098 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20100 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20101 CONFIG_SHELL='$SHELL'
20102 export CONFIG_SHELL
20107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20111 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20112 ## Running $as_me. ##
20118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20122 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
20123 GDB_NM_FILE=$GDB_NM_FILE
20127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20129 # Handling of arguments.
20130 for ac_config_target
in $ac_config_targets
20132 case $ac_config_target in
20133 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
20134 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
20135 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
20136 "nm.h") CONFIG_LINKS
="$CONFIG_LINKS nm.h:$GDB_NM_FILE" ;;
20137 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
20138 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20139 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
20140 "gdb-gdb.py") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.py" ;;
20141 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
20142 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
20144 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20149 # If the user did not use the arguments to specify the items to instantiate,
20150 # then the envvar interface is used. Set only those that are not.
20151 # We use the long form for the default assignment because of an extremely
20152 # bizarre bug on SunOS 4.1.3.
20153 if $ac_need_defaults; then
20154 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20155 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20156 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
20157 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20160 # Have a temporary directory for convenience. Make it in the build tree
20161 # simply because there is no reason against having it here, and in addition,
20162 # creating and moving files from /tmp can sometimes cause problems.
20163 # Hook for its removal unless debugging.
20164 # Note that there is a small window in which the directory will not be cleaned:
20165 # after its creation but before its name has been assigned to `$tmp'.
20169 trap 'exit_status=$?
20170 : "${ac_tmp:=$tmp}"
20171 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20173 trap 'as_fn_exit 1' 1 2 13 15
20175 # Create a (secure) tmp directory for tmp files.
20178 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20182 tmp
=.
/conf$$
-$RANDOM
20183 (umask 077 && mkdir
"$tmp")
20184 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
20187 # Set up the scripts for CONFIG_FILES section.
20188 # No need to generate them if there are no CONFIG_FILES.
20189 # This happens for instance with `./config.status config.h'.
20190 if test -n "$CONFIG_FILES"; then
20192 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
20193 ac_cs_awk_getline
=:
20194 ac_cs_awk_pipe_init
=
20195 ac_cs_awk_read_file
='
20196 while ((getline aline < (F[key])) > 0)
20199 ac_cs_awk_pipe_fini
=
20201 ac_cs_awk_getline
=false
20202 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
20203 ac_cs_awk_read_file
='
20205 print "cat " F[key] " &&"
20206 '$ac_cs_awk_pipe_init
20207 # The final `:' finishes the AND list.
20208 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
20210 ac_cr
=`echo X | tr X '\015'`
20211 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20212 # But we know of no other shell where ac_cr would be empty at this
20213 # point, so we can use a bashism as a fallback.
20214 if test "x$ac_cr" = x
; then
20215 eval ac_cr
=\$
\'\\r
\'
20217 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20218 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20221 ac_cs_awk_cr
=$ac_cr
20224 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20227 # Create commands to substitute file output variables.
20229 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20230 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
20231 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
20234 } >conf$
$files.sh
&&
20235 . .
/conf$
$files.sh ||
20236 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
20237 rm -f conf$
$files.sh
20240 echo "cat >conf$$subs.awk <<_ACEOF" &&
20241 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20243 } >conf$$subs.sh ||
20244 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20245 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20247 for ac_last_try in false false false false false :; do
20248 . ./conf$$subs.sh ||
20249 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20251 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20252 if test $ac_delim_n = $ac_delim_num; then
20254 elif $ac_last_try; then
20255 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20257 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20260 rm -f conf$$subs.sh
20262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20263 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
20267 s/^/S["/; s
/!.
*/"]=/
20277 s/\(.\{148\}\)..*/\1/
20279 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
20284 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20291 s/\(.\{148\}\)..*/\1/
20293 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
20297 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20302 ' <conf$$subs.awk | sed '
20307 ' >>$CONFIG_STATUS || ac_write_fail=1
20308 rm -f conf$$subs.awk
20309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20311 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
20312 for (key in S) S_is_set[key] = 1
20314 \$ac_cs_awk_pipe_init
20318 nfields = split(line, field, "@
")
20320 len = length(field[1])
20321 for (i = 2; i < nfields; i++) {
20323 keylen = length(key)
20324 if (S_is_set[key]) {
20326 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20327 len += length(value) + length(field[++i])
20332 if (nfields == 3 && !substed) {
20334 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
20335 \$ac_cs_awk_read_file
20341 \$ac_cs_awk_pipe_fini
20344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20345 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20346 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
20349 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
20350 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
20353 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20354 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
20355 # trailing colons and then remove the whole line if VPATH becomes empty
20356 # (actually we leave an empty line to preserve line numbers).
20357 if test "x
$srcdir" = x.; then
20358 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20377 fi # test -n "$CONFIG_FILES"
20379 # Set up the scripts for CONFIG_HEADERS section.
20380 # No need to generate them if there are no CONFIG_HEADERS.
20381 # This happens for instance with `./config.status Makefile'.
20382 if test -n "$CONFIG_HEADERS"; then
20383 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
20387 # Transform confdefs.h into an awk script `defines.awk', embedded as
20388 # here-document in config.status, that substitutes the proper values into
20389 # config.h.in to produce config.h.
20391 # Create a delimiter string that does not exist in confdefs.h, to ease
20392 # handling of long lines.
20394 for ac_last_try in false false :; do
20395 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
20396 if test -z "$ac_tt"; then
20398 elif $ac_last_try; then
20399 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
20401 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20405 # For the awk script, D is an array of macro values keyed by name,
20406 # likewise P contains macro parameters if any. Preserve backslash
20407 # newline sequences.
20409 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20411 s/.\{148\}/&'"$ac_delim"'/g
20414 s/^[ ]*#[ ]*define[ ][ ]*/ /
20421 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
20423 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
20427 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
20428 D["\
1"]=" \
3\\\\\\n
"\\/p
20430 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
20435 s/.\{148\}/&'"$ac_delim"'/g
20440 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
20443 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
20445 ' <confdefs.h | sed '
20446 s/'"$ac_delim"'/"\\\
20447 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20450 for (key in D) D_is_set[key] = 1
20453 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20455 split(line, arg, " ")
20456 if (arg[1] == "#") {
20460 defundef
= substr
(arg
[1], 2)
20463 split(mac1
, mac2
, "(") #)
20465 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
20466 if (D_is_set
[macro
]) {
20467 # Preserve the white space surrounding the "#".
20468 print prefix
"define", macro P
[macro
] D
[macro
]
20471 # Replace #undef with comments. This is necessary, for example,
20472 # in the case of _POSIX_SOURCE, which is predefined and required
20473 # on some systems where configure will not decide to define it.
20474 if (defundef
== "undef") {
20475 print
"/*", prefix defundef
, macro
, "*/"
20483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20484 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
20485 fi # test -n "$CONFIG_HEADERS"
20488 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
20493 :[FHLC
]) ac_mode
=$ac_tag; continue;;
20495 case $ac_mode$ac_tag in
20497 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
20498 :[FH
]-) ac_tag
=-:-;;
20499 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
20516 -) ac_f
="$ac_tmp/stdin";;
20517 *) # Look for the file first in the build tree, then in the source tree
20518 # (if the path is not absolute). The absolute path cannot be DOS-style,
20519 # because $ac_f cannot contain `:'.
20523 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
20525 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20527 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20528 as_fn_append ac_file_inputs
" '$ac_f'"
20531 # Let's still pretend it is `configure' which instantiates (i.e., don't
20532 # use $as_me), people would be surprised to read:
20533 # /* config.h. Generated by config.status. */
20534 configure_input
='Generated from '`
20535 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20537 if test x
"$ac_file" != x-
; then
20538 configure_input
="$ac_file. $configure_input"
20539 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20540 $as_echo "$as_me: creating $ac_file" >&6;}
20542 # Neutralize special characters interpreted by sed in replacement strings.
20543 case $configure_input in #(
20544 *\
&* |
*\|
* |
*\\* )
20545 ac_sed_conf_input
=`$as_echo "$configure_input" |
20546 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20547 *) ac_sed_conf_input
=$configure_input;;
20551 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
20552 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
20557 ac_dir
=`$as_dirname -- "$ac_file" ||
20558 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20559 X"$ac_file" : 'X\(//\)[^/]' \| \
20560 X"$ac_file" : 'X\(//\)$' \| \
20561 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20562 $as_echo X"$ac_file" |
20563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20567 /^X\(\/\/\)[^/].*/{
20580 as_dir
="$ac_dir"; as_fn_mkdir_p
20584 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20586 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20587 # A ".." for each directory in $ac_dir_suffix.
20588 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20589 case $ac_top_builddir_sub in
20590 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20591 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20594 ac_abs_top_builddir
=$ac_pwd
20595 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
20596 # for backward compatibility:
20597 ac_top_builddir
=$ac_top_build_prefix
20600 .
) # We are building in place.
20602 ac_top_srcdir
=$ac_top_builddir_sub
20603 ac_abs_top_srcdir
=$ac_pwd ;;
20604 [\\/]* | ?
:[\\/]* ) # Absolute name.
20605 ac_srcdir
=$srcdir$ac_dir_suffix;
20606 ac_top_srcdir
=$srcdir
20607 ac_abs_top_srcdir
=$srcdir ;;
20608 *) # Relative name.
20609 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
20610 ac_top_srcdir
=$ac_top_build_prefix$srcdir
20611 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
20613 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
20623 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20624 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
20628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20629 # If the template does not know about datarootdir, expand it.
20630 # FIXME: This hack should be removed a few years after 2.60.
20631 ac_datarootdir_hack
=; ac_datarootdir_seen
=
20642 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20643 *datarootdir
*) ac_datarootdir_seen
=yes;;
20644 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
20645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20646 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20648 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20649 ac_datarootdir_hack='
20650 s&@datadir@&$datadir&g
20651 s&@docdir@&$docdir&g
20652 s&@infodir@&$infodir&g
20653 s&@localedir@&$localedir&g
20654 s&@mandir@&$mandir&g
20655 s&\\\${datarootdir}&$datarootdir&g' ;;
20659 # Neutralize VPATH when `$srcdir' = `.'.
20660 # Shell code in configure.ac might set extrasub.
20661 # FIXME: do we really want to maintain this feature?
20662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20663 ac_sed_extra="$ac_vpsub
20666 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20668 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20669 s|@configure_input@|
$ac_sed_conf_input|
;t t
20670 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
20671 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
20672 s
&@srcdir@
&$ac_srcdir&;t t
20673 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
20674 s
&@top_srcdir@
&$ac_top_srcdir&;t t
20675 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
20676 s
&@builddir@
&$ac_builddir&;t t
20677 s
&@abs_builddir@
&$ac_abs_builddir&;t t
20678 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
20679 s
&@INSTALL@
&$ac_INSTALL&;t t
20680 $ac_datarootdir_hack
20682 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
20683 if $ac_cs_awk_getline; then
20684 $AWK -f "$ac_tmp/subs.
awk"
20686 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
20688 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
20690 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20691 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
20692 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20693 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
20694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
20695 which seems to be undefined. Please make sure it is defined" >&5
20696 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
20697 which seems to be undefined. Please make sure it is defined" >&2;}
20699 rm -f "$ac_tmp/stdin"
20701 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20702 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20704 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20710 if test x"$ac_file" != x-; then
20712 $as_echo "/* $configure_input */" \
20713 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20714 } >"$ac_tmp/config.h" \
20715 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20716 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20717 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20718 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20721 mv "$ac_tmp/config.h" "$ac_file" \
20722 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20725 $as_echo "/* $configure_input */" \
20726 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20727 || as_fn_error $? "could not create -" "$LINENO" 5
20735 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
20738 # Prefer the file from the source tree if names are identical.
20739 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
20740 ac_source=$srcdir/$ac_source
20743 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
20744 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
20746 if test ! -r "$ac_source"; then
20747 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
20751 # Try a relative symlink, then a hard link, then a copy.
20753 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
20754 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
20756 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
20757 ln "$ac_source" "$ac_file" 2>/dev/null ||
20758 cp -p "$ac_source" "$ac_file" ||
20759 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
20762 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20763 $as_echo "$as_me: executing $ac_file commands" >&6;}
20768 case $ac_file$ac_mode in
20769 "config.h":H) echo > stamp-h ;;
20770 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
20771 "nm.h":L) echo > stamp-nmh ;;
20772 "gcore":F) chmod +x gcore ;;
20780 ac_clean_files=$ac_clean_files_save
20782 test $ac_write_fail = 0 ||
20783 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20786 # configure is writing to config.log, and then calls config.status.
20787 # config.status does its own redirection, appending to config.log.
20788 # Unfortunately, on DOS this fails, as config.log is still kept open
20789 # by configure, so config.status won't be able to
write to it
; its
20790 # output is simply discarded. So we exec the FD to /dev/null,
20791 # effectively closing config.log, so it can be properly (re)opened and
20792 # appended to by config.status. When coming back to configure, we
20793 # need to make the FD available again.
20794 if test "$no_create" != yes; then
20796 ac_config_status_args
=
20797 test "$silent" = yes &&
20798 ac_config_status_args
="$ac_config_status_args --quiet"
20800 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20802 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20803 # would make configure fail if this is the last instruction.
20804 $ac_cs_success || as_fn_exit
1
20808 # CONFIG_SUBDIRS section.
20810 if test "$no_recursion" != yes; then
20812 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
20813 # so they do not pile up.
20814 ac_sub_configure_args
=
20816 eval "set x $ac_configure_args"
20820 if test -n "$ac_prev"; then
20825 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
20826 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
20827 ac_prev
=cache_file
;;
20828 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
20829 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
20832 --config-cache |
-C)
20834 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
20836 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
20838 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
20840 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
20842 --disable-option-checking)
20846 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20848 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
20852 # Always prepend --prefix to ensure using the same prefix
20853 # in subdir configurations.
20854 ac_arg
="--prefix=$prefix"
20856 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20858 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
20861 if test "$silent" = yes; then
20862 ac_sub_configure_args
="--silent $ac_sub_configure_args"
20865 # Always prepend --disable-option-checking to silence warnings, since
20866 # different subdirs can have different --enable and --with options.
20867 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
20870 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
20872 # Do not complain, so a configure script can configure whichever
20873 # parts of a large source tree are present.
20874 test -d "$srcdir/$ac_dir" ||
continue
20876 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20877 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
20878 $as_echo "$ac_msg" >&6
20879 as_dir
="$ac_dir"; as_fn_mkdir_p
20883 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20885 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20886 # A ".." for each directory in $ac_dir_suffix.
20887 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20888 case $ac_top_builddir_sub in
20889 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20890 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20893 ac_abs_top_builddir
=$ac_pwd
20894 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
20895 # for backward compatibility:
20896 ac_top_builddir
=$ac_top_build_prefix
20899 .
) # We are building in place.
20901 ac_top_srcdir
=$ac_top_builddir_sub
20902 ac_abs_top_srcdir
=$ac_pwd ;;
20903 [\\/]* | ?
:[\\/]* ) # Absolute name.
20904 ac_srcdir
=$srcdir$ac_dir_suffix;
20905 ac_top_srcdir
=$srcdir
20906 ac_abs_top_srcdir
=$srcdir ;;
20907 *) # Relative name.
20908 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
20909 ac_top_srcdir
=$ac_top_build_prefix$srcdir
20910 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
20912 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
20917 # Check for guested configure; otherwise get Cygnus style configure.
20918 if test -f "$ac_srcdir/configure.gnu"; then
20919 ac_sub_configure
=$ac_srcdir/configure.gnu
20920 elif test -f "$ac_srcdir/configure"; then
20921 ac_sub_configure
=$ac_srcdir/configure
20922 elif test -f "$ac_srcdir/configure.in"; then
20923 # This should be Cygnus configure.
20924 ac_sub_configure
=$ac_aux_dir/configure
20926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
20927 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20931 # The recursion is here.
20932 if test -n "$ac_sub_configure"; then
20933 # Make the cache file name correct relative to the subdirectory.
20934 case $cache_file in
20935 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
20936 *) # Relative name.
20937 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
20940 { $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
20941 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20942 # The eval makes quoting arguments work.
20943 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20944 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20945 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
20951 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
20952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20953 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}