2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="main.c"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
622 enable_option_checking
=no
624 ac_subst_vars
='LTLIBOBJS
641 HAVE_NATIVE_GCORE_HOST
744 READLINE_TEXI_INCFLAG
773 HAVE_NATIVE_GCORE_TARGET
775 ENABLE_BFD_64_BIT_FALSE
776 ENABLE_BFD_64_BIT_TRUE
802 INSTALL_STRIP_PROGRAM
832 MAINTAINER_MODE_FALSE
861 program_transform_name
872 ac_subst_files
='nat_makefile_frag'
874 enable_option_checking
875 enable_maintainer_mode
878 with_separate_debug_dir
880 with_relocated_sources
882 with_auto_load_safe_path
914 enable_source_highlight
921 with_system_gdbinit_dir
923 enable_build_warnings
924 enable_gdb_build_warnings
935 with_libbabeltrace_prefix
936 with_libbabeltrace_type
939 with_libxxhash_prefix
943 ac_precious_vars
='build_alias
965 ac_subdirs_all
='testsuite
968 # Initialize some variables set by options.
970 ac_init_version
=false
971 ac_unrecognized_opts
=
973 # The variables have the same names as the options, with
974 # dashes changed to underlines.
982 program_transform_name
=s
,x
,x
,
990 # Installation directory options.
991 # These are left unexpanded so users can "make install exec_prefix=/foo"
992 # and all the variables that are supposed to be based on exec_prefix
993 # by default will actually change.
994 # Use braces instead of parens because sh, perl, etc. also accept them.
995 # (The list follows the same order as the GNU Coding Standards.)
996 bindir
='${exec_prefix}/bin'
997 sbindir
='${exec_prefix}/sbin'
998 libexecdir
='${exec_prefix}/libexec'
999 datarootdir
='${prefix}/share'
1000 datadir
='${datarootdir}'
1001 sysconfdir
='${prefix}/etc'
1002 sharedstatedir
='${prefix}/com'
1003 localstatedir
='${prefix}/var'
1004 includedir
='${prefix}/include'
1005 oldincludedir
='/usr/include'
1006 docdir
='${datarootdir}/doc/${PACKAGE}'
1007 infodir
='${datarootdir}/info'
1012 libdir
='${exec_prefix}/lib'
1013 localedir
='${datarootdir}/locale'
1014 mandir
='${datarootdir}/man'
1020 # If the previous option needs an argument, assign it.
1021 if test -n "$ac_prev"; then
1022 eval $ac_prev=\
$ac_option
1028 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1033 # Accept the important Cygnus configure options, so we can diagnose typos.
1035 case $ac_dashdash$ac_option in
1039 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1041 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1042 bindir
=$ac_optarg ;;
1044 -build |
--build |
--buil |
--bui |
--bu)
1045 ac_prev
=build_alias
;;
1046 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1047 build_alias
=$ac_optarg ;;
1049 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1050 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1051 ac_prev
=cache_file
;;
1052 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1053 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1054 cache_file
=$ac_optarg ;;
1056 --config-cache |
-C)
1057 cache_file
=config.cache
;;
1059 -datadir |
--datadir |
--datadi |
--datad)
1061 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1062 datadir
=$ac_optarg ;;
1064 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1065 |
--dataroo |
--dataro |
--datar)
1066 ac_prev
=datarootdir
;;
1067 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1068 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1069 datarootdir
=$ac_optarg ;;
1071 -disable-* |
--disable-*)
1072 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1075 as_fn_error $?
"invalid feature name: $ac_useropt"
1076 ac_useropt_orig
=$ac_useropt
1077 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1080 "enable_
$ac_useropt"
1082 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1083 ac_unrecognized_sep
=', ';;
1085 eval enable_
$ac_useropt=no
;;
1087 -docdir |
--docdir |
--docdi |
--doc |
--do)
1089 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1090 docdir
=$ac_optarg ;;
1092 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1094 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1095 dvidir
=$ac_optarg ;;
1097 -enable-* |
--enable-*)
1098 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1101 as_fn_error $?
"invalid feature name: $ac_useropt"
1102 ac_useropt_orig
=$ac_useropt
1103 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104 case $ac_user_opts in
1106 "enable_
$ac_useropt"
1108 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1109 ac_unrecognized_sep
=', ';;
1111 eval enable_
$ac_useropt=\
$ac_optarg ;;
1113 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1114 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1115 |
--exec |
--exe |
--ex)
1116 ac_prev
=exec_prefix
;;
1117 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1118 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1119 |
--exec=* |
--exe=* |
--ex=*)
1120 exec_prefix
=$ac_optarg ;;
1122 -gas |
--gas |
--ga |
--g)
1123 # Obsolete; use --with-gas.
1126 -help |
--help |
--hel |
--he |
-h)
1127 ac_init_help
=long
;;
1128 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1129 ac_init_help
=recursive
;;
1130 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1131 ac_init_help
=short
;;
1133 -host |
--host |
--hos |
--ho)
1134 ac_prev
=host_alias
;;
1135 -host=* |
--host=* |
--hos=* |
--ho=*)
1136 host_alias
=$ac_optarg ;;
1138 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1140 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1142 htmldir
=$ac_optarg ;;
1144 -includedir |
--includedir |
--includedi |
--included |
--include \
1145 |
--includ |
--inclu |
--incl |
--inc)
1146 ac_prev
=includedir
;;
1147 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1148 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1149 includedir
=$ac_optarg ;;
1151 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1153 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1154 infodir
=$ac_optarg ;;
1156 -libdir |
--libdir |
--libdi |
--libd)
1158 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1159 libdir
=$ac_optarg ;;
1161 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1162 |
--libexe |
--libex |
--libe)
1163 ac_prev
=libexecdir
;;
1164 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1165 |
--libexe=* |
--libex=* |
--libe=*)
1166 libexecdir
=$ac_optarg ;;
1168 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1169 ac_prev
=localedir
;;
1170 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1171 localedir
=$ac_optarg ;;
1173 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1174 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1175 ac_prev
=localstatedir
;;
1176 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1177 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1178 localstatedir
=$ac_optarg ;;
1180 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1182 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1183 mandir
=$ac_optarg ;;
1185 -nfp |
--nfp |
--nf)
1186 # Obsolete; use --without-fp.
1189 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1190 |
--no-cr |
--no-c |
-n)
1193 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1194 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1197 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1198 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1199 |
--oldin |
--oldi |
--old |
--ol |
--o)
1200 ac_prev
=oldincludedir
;;
1201 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1202 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1203 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1204 oldincludedir
=$ac_optarg ;;
1206 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1208 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1209 prefix
=$ac_optarg ;;
1211 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1212 |
--program-pre |
--program-pr |
--program-p)
1213 ac_prev
=program_prefix
;;
1214 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1215 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1216 program_prefix
=$ac_optarg ;;
1218 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1219 |
--program-suf |
--program-su |
--program-s)
1220 ac_prev
=program_suffix
;;
1221 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1222 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1223 program_suffix
=$ac_optarg ;;
1225 -program-transform-name |
--program-transform-name \
1226 |
--program-transform-nam |
--program-transform-na \
1227 |
--program-transform-n |
--program-transform- \
1228 |
--program-transform |
--program-transfor \
1229 |
--program-transfo |
--program-transf \
1230 |
--program-trans |
--program-tran \
1231 |
--progr-tra |
--program-tr |
--program-t)
1232 ac_prev
=program_transform_name
;;
1233 -program-transform-name=* |
--program-transform-name=* \
1234 |
--program-transform-nam=* |
--program-transform-na=* \
1235 |
--program-transform-n=* |
--program-transform-=* \
1236 |
--program-transform=* |
--program-transfor=* \
1237 |
--program-transfo=* |
--program-transf=* \
1238 |
--program-trans=* |
--program-tran=* \
1239 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1240 program_transform_name
=$ac_optarg ;;
1242 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1244 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1245 pdfdir
=$ac_optarg ;;
1247 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1249 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1252 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1253 |
-silent |
--silent |
--silen |
--sile |
--sil)
1256 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1258 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1260 sbindir
=$ac_optarg ;;
1262 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1263 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1264 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1266 ac_prev
=sharedstatedir
;;
1267 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1268 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1269 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1271 sharedstatedir
=$ac_optarg ;;
1273 -site |
--site |
--sit)
1275 -site=* |
--site=* |
--sit=*)
1278 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1280 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1281 srcdir
=$ac_optarg ;;
1283 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1284 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1285 ac_prev
=sysconfdir
;;
1286 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1287 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1288 sysconfdir
=$ac_optarg ;;
1290 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1291 ac_prev
=target_alias
;;
1292 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1293 target_alias
=$ac_optarg ;;
1295 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1298 -version |
--version |
--versio |
--versi |
--vers |
-V)
1299 ac_init_version
=: ;;
1302 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1303 # Reject names that are not valid shell variable names.
1304 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1305 as_fn_error $?
"invalid package name: $ac_useropt"
1306 ac_useropt_orig
=$ac_useropt
1307 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308 case $ac_user_opts in
1312 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1313 ac_unrecognized_sep
=', ';;
1315 eval with_
$ac_useropt=\
$ac_optarg ;;
1317 -without-* |
--without-*)
1318 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1319 # Reject names that are not valid shell variable names.
1320 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1321 as_fn_error $?
"invalid package name: $ac_useropt"
1322 ac_useropt_orig
=$ac_useropt
1323 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1324 case $ac_user_opts in
1328 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1329 ac_unrecognized_sep
=', ';;
1331 eval with_
$ac_useropt=no
;;
1334 # Obsolete; use --with-x.
1337 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1338 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1339 ac_prev
=x_includes
;;
1340 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1341 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1342 x_includes
=$ac_optarg ;;
1344 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1345 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1346 ac_prev
=x_libraries
;;
1347 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1348 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1349 x_libraries
=$ac_optarg ;;
1351 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1352 Try \`$0 --help' for more information"
1356 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1357 # Reject names that are not valid shell variable names.
1358 case $ac_envvar in #(
1359 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1360 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1362 eval $ac_envvar=\
$ac_optarg
1363 export $ac_envvar ;;
1366 # FIXME: should be removed in autoconf 3.0.
1367 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1368 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1369 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1370 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1376 if test -n "$ac_prev"; then
1377 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1378 as_fn_error $?
"missing argument to $ac_option"
1381 if test -n "$ac_unrecognized_opts"; then
1382 case $enable_option_checking in
1384 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1385 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1389 # Check all directory arguments for consistency.
1390 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1391 datadir sysconfdir sharedstatedir localstatedir includedir \
1392 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1393 libdir localedir mandir
1395 eval ac_val
=\$
$ac_var
1396 # Remove trailing slashes.
1399 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1400 eval $ac_var=\
$ac_val;;
1402 # Be sure to have absolute directory names.
1404 [\\/$
]* | ?
:[\\/]* ) continue;;
1405 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1407 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1410 # There might be people who depend on the old broken behavior: `$host'
1411 # used to hold the argument of --host etc.
1412 # FIXME: To remove some day.
1415 target
=$target_alias
1417 # FIXME: To remove some day.
1418 if test "x$host_alias" != x
; then
1419 if test "x$build_alias" = x
; then
1420 cross_compiling
=maybe
1421 elif test "x$build_alias" != "x$host_alias"; then
1427 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1429 test "$silent" = yes && exec 6>/dev
/null
1432 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1433 ac_ls_di
=`ls -di .` &&
1434 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1435 as_fn_error $?
"working directory cannot be determined"
1436 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1437 as_fn_error $?
"pwd does not report name of working directory"
1440 # Find the source files, if location was not specified.
1441 if test -z "$srcdir"; then
1442 ac_srcdir_defaulted
=yes
1443 # Try the directory containing this script, then the parent directory.
1444 ac_confdir
=`$as_dirname -- "$as_myself" ||
1445 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1446 X"$as_myself" : 'X\(//\)[^/]' \| \
1447 X"$as_myself" : 'X\(//\)$' \| \
1448 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1449 $as_echo X"$as_myself" |
1450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1468 if test ! -r "$srcdir/$ac_unique_file"; then
1472 ac_srcdir_defaulted
=no
1474 if test ! -r "$srcdir/$ac_unique_file"; then
1475 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1476 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1478 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1480 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1482 # When building in place, set srcdir=.
1483 if test "$ac_abs_confdir" = "$ac_pwd"; then
1486 # Remove unnecessary trailing slashes from srcdir.
1487 # Double slashes in file names in object file debugging info
1488 # mess up M-x gdb in Emacs.
1490 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1492 for ac_var
in $ac_precious_vars; do
1493 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1494 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1495 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1496 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1500 # Report the --help message.
1502 if test "$ac_init_help" = "long"; then
1503 # Omit some internal or obsolete options to make the list less imposing.
1504 # This message is too long to be a string in the A/UX 3.1 sh.
1506 \`configure' configures this package to adapt to many kinds of systems.
1508 Usage: $0 [OPTION]... [VAR=VALUE]...
1510 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1511 VAR=VALUE. See below for descriptions of some of the useful variables.
1513 Defaults for the options are specified in brackets.
1516 -h, --help display this help and exit
1517 --help=short display options specific to this package
1518 --help=recursive display the short help of all the included packages
1519 -V, --version display version information and exit
1520 -q, --quiet, --silent do not print \`checking ...' messages
1521 --cache-file=FILE cache test results in FILE [disabled]
1522 -C, --config-cache alias for \`--cache-file=config.cache'
1523 -n, --no-create do not create output files
1524 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1526 Installation directories:
1527 --prefix=PREFIX install architecture-independent files in PREFIX
1528 [$ac_default_prefix]
1529 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1532 By default, \`make install' will install all the files in
1533 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1534 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1535 for instance \`--prefix=\$HOME'.
1537 For better control, use the options below.
1539 Fine tuning of the installation directories:
1540 --bindir=DIR user executables [EPREFIX/bin]
1541 --sbindir=DIR system admin executables [EPREFIX/sbin]
1542 --libexecdir=DIR program executables [EPREFIX/libexec]
1543 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1544 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1545 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1546 --libdir=DIR object code libraries [EPREFIX/lib]
1547 --includedir=DIR C header files [PREFIX/include]
1548 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1549 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1550 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1551 --infodir=DIR info documentation [DATAROOTDIR/info]
1552 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1553 --mandir=DIR man documentation [DATAROOTDIR/man]
1554 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1555 --htmldir=DIR html documentation [DOCDIR]
1556 --dvidir=DIR dvi documentation [DOCDIR]
1557 --pdfdir=DIR pdf documentation [DOCDIR]
1558 --psdir=DIR ps documentation [DOCDIR]
1564 --program-prefix=PREFIX prepend PREFIX to installed program names
1565 --program-suffix=SUFFIX append SUFFIX to installed program names
1566 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1569 --x-includes=DIR X include files are
in DIR
1570 --x-libraries=DIR X library files are
in DIR
1573 --build=BUILD configure
for building on BUILD
[guessed
]
1574 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1575 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1579 if test -n "$ac_init_help"; then
1584 --disable-option-checking ignore unrecognized
--enable/--with options
1585 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1586 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1587 --enable-maintainer-mode
1588 enable make rules and dependencies not useful
(and
1589 sometimes confusing
) to the casual installer
1590 --enable-plugins Enable support
for plugins
1591 --disable-largefile omit support
for large files
1592 --enable-targets=TARGETS
1593 alternative target configurations
1594 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1595 --disable-gdbmi disable machine-interface
(MI
)
1596 --enable-tui enable full-screen terminal user interface
(TUI
)
1597 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1598 --enable-profiling enable profiling of GDB
1599 --enable-codesign=CERT sign gdb with
'codesign -s CERT'
1600 --disable-rpath do not hardcode runtime library paths
1601 --enable-source-highlight
1602 enable source-highlight
for source listings
1603 --enable-threading include support
for parallel processing of data
1605 --enable-werror treat compile warnings as errors
1606 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1607 --enable-gdb-build-warnings
1608 enable GDB specific build-time compiler warnings
if
1610 --enable-ubsan enable undefined behavior sanitizer
(auto
/yes
/no
)
1611 --enable-sim link gdb with simulator
1612 --enable-libbacktrace use libbacktrace to
write a backtrace after a fatal
1614 --enable-libctf Handle .ctf type-info sections
[default
=yes]
1615 --enable-unit-tests Enable the inclusion of unit tests when compiling
1619 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1620 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1621 --with-separate-debug-dir=PATH
1622 look for global separate debug info
in this path
1624 --with-gdb-datadir=PATH
look for global separate data files
in this path
1626 --with-relocated-sources=PATH
1627 automatically relocate this path
for source files
1628 --with-auto-load-dir=PATH
1629 directories from
which to load auto-loaded scripts
1630 [$debugdir:$datadir/auto-load
]
1631 --with-auto-load-safe-path=PATH
1632 directories safe to hold auto-loaded files
1633 [--with-auto-load-dir]
1634 --without-auto-load-safe-path
1635 do not restrict auto-loaded files locations
1636 --with-debuginfod Enable debuginfo lookups with debuginfod
1638 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1639 --with-curses use the curses library instead of the termcap
1641 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1642 --with-bugurl=URL Direct users to URL to report a bug
1643 --with-system-zlib use installed libz
1644 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1645 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1646 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1647 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1648 --with-iconv-bin=PATH specify where to find the iconv program
1649 --with-system-readline use installed readline library
1650 --with-jit-reader-dir=PATH
1651 directory to load the JIT readers from
1652 --with-expat include expat support (auto/yes/no)
1653 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1654 --without-libexpat-prefix don't search
for libexpat
in includedir and libdir
1655 --with-libexpat-type=TYPE
type of library to search
for (auto
/static
/shared
)
1656 --with-libgmp-prefix[=DIR
] search
for libgmp
in DIR
/include and DIR
/lib
1657 --without-libgmp-prefix don
't search for libgmp in includedir and libdir
1658 --with-libgmp-type=TYPE type of library to search for (auto/static/shared)
1659 --with-mpfr include MPFR support (auto/yes/no)
1660 --with-libmpfr-prefix[=DIR] search for libmpfr in DIR/include and DIR/lib
1661 --without-libmpfr-prefix don't search
for libmpfr
in includedir and libdir
1662 --with-libmpfr-type=TYPE
type of library to search
for (auto
/static
/shared
)
1663 --with-python[=PYTHON
] include python support
1664 (auto
/yes
/no
/<python-program
>)
1665 --with-python-libdir[=DIR
]
1666 search
for python
's libraries in DIR
1667 --with-guile[=GUILE] include guile support
1668 (auto/yes/no/<guile-version>/<pkg-config-program>)
1669 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1670 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1671 --without-libipt-prefix don't search
for libipt
in includedir and libdir
1672 --with-libipt-type=TYPE
type of library to search
for (auto
/static
/shared
)
1673 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1674 --with-system-gdbinit=PATH
1675 automatically load a system-wide gdbinit
file
1676 --with-system-gdbinit-dir=PATH
1677 automatically load system-wide gdbinit files from
1679 --with-lzma support lzma compression
(auto
/yes
/no
)
1680 --with-liblzma-prefix[=DIR
] search
for liblzma
in DIR
/include and DIR
/lib
1681 --without-liblzma-prefix don
't search for liblzma in includedir and libdir
1682 --with-liblzma-type=TYPE type of library to search for (auto/static/shared)
1683 --with-tcl directory containing tcl configuration (tclConfig.sh)
1684 --with-tk directory containing tk configuration (tkConfig.sh)
1685 --with-x use the X Window System
1686 --with-babeltrace include babeltrace support (auto/yes/no)
1687 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1688 --without-libbabeltrace-prefix don't search
for libbabeltrace
in includedir and libdir
1689 --with-libbabeltrace-type=TYPE
type of library to search
for (auto
/static
/shared
)
1690 --with-xxhash use libxxhash
for hashing
(faster
) (auto
/yes
/no
)
1691 --with-libxxhash-prefix[=DIR
] search
for libxxhash
in DIR
/include and DIR
/lib
1692 --without-libxxhash-prefix don
't search for libxxhash in includedir and libdir
1693 --with-libxxhash-type=TYPE type of library to search for (auto/static/shared)
1695 Some influential environment variables:
1696 CC C compiler command
1697 CFLAGS C compiler flags
1698 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1699 nonstandard directory <lib dir>
1700 LIBS libraries to pass to the linker, e.g. -l<library>
1701 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1702 you have headers in a nonstandard directory <include dir>
1703 CXX C++ compiler command
1704 CXXFLAGS C++ compiler flags
1706 MAKEINFO Parent configure detects if it is of sufficient version.
1708 Parameters for MAKEINFO.
1709 PKG_CONFIG path to pkg-config utility
1711 directories to add to pkg-config's search path
1713 path overriding pkg-config
's built-in search path
1715 C compiler flags for DEBUGINFOD, overriding pkg-config
1717 linker flags for DEBUGINFOD, overriding pkg-config
1718 YACC The `Yet Another Compiler Compiler' implementation to use.
1719 Defaults to the first program found out of
: `bison -y', `byacc
',
1721 YFLAGS The list of arguments that will be passed by default to
$YACC.
1722 This
script will default YFLAGS to the empty string to avoid a
1723 default value of
`-d' given by some make applications.
1724 XMKMF Path to xmkmf, Makefile generator for X Window System
1726 Use these variables to override the choices made by `configure
' or to help
1727 it to find libraries and programs with nonstandard names/locations.
1729 Report bugs to the package provider.
1734 if test "$ac_init_help" = "recursive"; then
1735 # If there are subdirs, report their specific --help.
1736 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1737 test -d "$ac_dir" ||
1738 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1743 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1745 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.
[\\/]||
'`
1746 # A ".." for each directory in $ac_dir_suffix.
1747 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|
/[^
\\/]*|
/..|g
;s|
/||
'`
1748 case $ac_top_builddir_sub in
1749 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1750 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1753 ac_abs_top_builddir=$ac_pwd
1754 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1755 # for backward compatibility:
1756 ac_top_builddir=$ac_top_build_prefix
1759 .) # We are building in place.
1761 ac_top_srcdir=$ac_top_builddir_sub
1762 ac_abs_top_srcdir=$ac_pwd ;;
1763 [\\/]* | ?:[\\/]* ) # Absolute name.
1764 ac_srcdir=$srcdir$ac_dir_suffix;
1765 ac_top_srcdir=$srcdir
1766 ac_abs_top_srcdir=$srcdir ;;
1768 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1769 ac_top_srcdir=$ac_top_build_prefix$srcdir
1770 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1772 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1774 cd "$ac_dir" || { ac_status=$?; continue; }
1775 # Check for guested configure.
1776 if test -f "$ac_srcdir/configure.gnu"; then
1778 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1779 elif test -f "$ac_srcdir/configure"; then
1781 $SHELL "$ac_srcdir/configure" --help=recursive
1783 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1785 cd "$ac_pwd" || { ac_status=$?; break; }
1789 test -n "$ac_init_help" && exit $ac_status
1790 if $ac_init_version; then
1793 generated by GNU Autoconf 2.69
1795 Copyright (C) 2012 Free Software Foundation, Inc.
1796 This configure script is free software; the Free Software Foundation
1797 gives unlimited permission to copy, distribute and modify it.
1802 ## ------------------------ ##
1803 ## Autoconf initialization. ##
1804 ## ------------------------ ##
1806 # ac_fn_c_try_compile LINENO
1807 # --------------------------
1808 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1809 ac_fn_c_try_compile ()
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 rm -f conftest.$ac_objext
1813 if { { ac_try="$ac_compile"
1815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816 *) ac_try_echo=$ac_try;;
1818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 $as_echo "$ac_try_echo"; } >&5
1820 (eval "$ac_compile") 2>conftest.err
1822 if test -s conftest.err; then
1823 grep -v '^
*+' conftest.err >conftest.er1
1824 cat conftest.er1 >&5
1825 mv -f conftest.er1 conftest.err
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } && {
1829 test -z "$ac_c_werror_flag" ||
1830 test ! -s conftest.err
1831 } && test -s conftest.$ac_objext; then :
1834 $as_echo "$as_me: failed program was:" >&5
1835 sed 's
/^
/|
/' conftest.$ac_ext >&5
1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840 as_fn_set_status $ac_retval
1842 } # ac_fn_c_try_compile
1844 # ac_fn_cxx_try_compile LINENO
1845 # ----------------------------
1846 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1847 ac_fn_cxx_try_compile ()
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 rm -f conftest.$ac_objext
1851 if { { ac_try="$ac_compile"
1853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854 *) ac_try_echo=$ac_try;;
1856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857 $as_echo "$ac_try_echo"; } >&5
1858 (eval "$ac_compile") 2>conftest.err
1860 if test -s conftest.err; then
1861 grep -v '^
*+' conftest.err >conftest.er1
1862 cat conftest.er1 >&5
1863 mv -f conftest.er1 conftest.err
1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866 test $ac_status = 0; } && {
1867 test -z "$ac_cxx_werror_flag" ||
1868 test ! -s conftest.err
1869 } && test -s conftest.$ac_objext; then :
1872 $as_echo "$as_me: failed program was:" >&5
1873 sed 's
/^
/|
/' conftest.$ac_ext >&5
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878 as_fn_set_status $ac_retval
1880 } # ac_fn_cxx_try_compile
1882 # ac_fn_c_try_cpp LINENO
1883 # ----------------------
1884 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 if { { ac_try="$ac_cpp conftest.$ac_ext"
1890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891 *) ac_try_echo=$ac_try;;
1893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894 $as_echo "$ac_try_echo"; } >&5
1895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1897 if test -s conftest.err; then
1898 grep -v '^
*+' conftest.err >conftest.er1
1899 cat conftest.er1 >&5
1900 mv -f conftest.er1 conftest.err
1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903 test $ac_status = 0; } > conftest.i && {
1904 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1905 test ! -s conftest.err
1909 $as_echo "$as_me: failed program was:" >&5
1910 sed 's
/^
/|
/' conftest.$ac_ext >&5
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915 as_fn_set_status $ac_retval
1919 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1920 # -------------------------------------------------------
1921 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1922 # the include files in INCLUDES and setting the cache variable VAR
1924 ac_fn_c_check_header_mongrel ()
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 if eval \${$3+:} false; then :
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929 $as_echo_n "checking for $2... " >&6; }
1930 if eval \${$3+:} false; then :
1931 $as_echo_n "(cached) " >&6
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 $as_echo "$ac_res" >&6; }
1937 # Is the header compilable?
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1939 $as_echo_n "checking $2 usability... " >&6; }
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1945 if ac_fn_c_try_compile "$LINENO"; then :
1946 ac_header_compiler=yes
1948 ac_header_compiler=no
1950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1952 $as_echo "$ac_header_compiler" >&6; }
1954 # Is the header present?
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1956 $as_echo_n "checking $2 presence... " >&6; }
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1961 if ac_fn_c_try_cpp "$LINENO"; then :
1962 ac_header_preproc=yes
1964 ac_header_preproc=no
1966 rm -f conftest.err conftest.i conftest.$ac_ext
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1968 $as_echo "$ac_header_preproc" >&6; }
1970 # So? What about this header?
1971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1974 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1976 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1980 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1982 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1984 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1986 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1988 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992 $as_echo_n "checking for $2... " >&6; }
1993 if eval \${$3+:} false; then :
1994 $as_echo_n "(cached) " >&6
1996 eval "$3=\$ac_header_compiler"
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004 } # ac_fn_c_check_header_mongrel
2006 # ac_fn_c_try_run LINENO
2007 # ----------------------
2008 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2009 # that executables *can* be run.
2012 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013 if { { ac_try="$ac_link"
2015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2016 *) ac_try_echo=$ac_try;;
2018 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2019 $as_echo "$ac_try_echo"; } >&5
2020 (eval "$ac_link") 2>&5
2022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2023 test $ac_status = 0; } && { ac_try='.
/conftest
$ac_exeext'
2024 { { case "(($ac_try" in
2025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2026 *) ac_try_echo=$ac_try;;
2028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2029 $as_echo "$ac_try_echo"; } >&5
2030 (eval "$ac_try") 2>&5
2032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2033 test $ac_status = 0; }; }; then :
2036 $as_echo "$as_me: program exited with status $ac_status" >&5
2037 $as_echo "$as_me: failed program was:" >&5
2038 sed 's
/^
/|
/' conftest.$ac_ext >&5
2040 ac_retval=$ac_status
2042 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2043 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044 as_fn_set_status $ac_retval
2048 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2049 # -------------------------------------------------------
2050 # Tests whether HEADER exists and can be compiled using the include files in
2051 # INCLUDES, setting the cache variable VAR accordingly.
2052 ac_fn_c_check_header_compile ()
2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2056 $as_echo_n "checking for $2... " >&6; }
2057 if eval \${$3+:} false; then :
2058 $as_echo_n "(cached) " >&6
2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2065 if ac_fn_c_try_compile "$LINENO"; then :
2070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2074 $as_echo "$ac_res" >&6; }
2075 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2077 } # ac_fn_c_check_header_compile
2079 # ac_fn_c_try_link LINENO
2080 # -----------------------
2081 # Try to link conftest.$ac_ext, and return whether this succeeded.
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 rm -f conftest.$ac_objext conftest$ac_exeext
2086 if { { ac_try="$ac_link"
2088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2089 *) ac_try_echo=$ac_try;;
2091 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2092 $as_echo "$ac_try_echo"; } >&5
2093 (eval "$ac_link") 2>conftest.err
2095 if test -s conftest.err; then
2096 grep -v '^
*+' conftest.err >conftest.er1
2097 cat conftest.er1 >&5
2098 mv -f conftest.er1 conftest.err
2100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2101 test $ac_status = 0; } && {
2102 test -z "$ac_c_werror_flag" ||
2103 test ! -s conftest.err
2104 } && test -s conftest$ac_exeext && {
2105 test "$cross_compiling" = yes ||
2106 test -x conftest$ac_exeext
2110 $as_echo "$as_me: failed program was:" >&5
2111 sed 's
/^
/|
/' conftest.$ac_ext >&5
2115 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2116 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2117 # interfere with the next link command; also delete a directory that is
2118 # left behind by Apple's compiler. We
do this before executing the actions.
2119 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2120 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2121 as_fn_set_status
$ac_retval
2123 } # ac_fn_c_try_link
2125 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2126 # --------------------------------------------
2127 # Tries to find the compile-time value of EXPR in a program that includes
2128 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2130 ac_fn_c_compute_int
()
2132 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2133 if test "$cross_compiling" = yes; then
2134 # Depending upon the size, compute the lo and hi bounds.
2135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2141 static int test_array [1 - 2 * !(($2) >= 0)];
2143 return test_array [0];
2149 if ac_fn_c_try_compile
"$LINENO"; then :
2152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h. */
2158 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2160 return test_array [0];
2166 if ac_fn_c_try_compile
"$LINENO"; then :
2167 ac_hi
=$ac_mid; break
2169 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2170 if test $ac_lo -le $ac_mid; then
2174 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2176 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h. */
2185 static int test_array [1 - 2 * !(($2) < 0)];
2187 return test_array [0];
2193 if ac_fn_c_try_compile
"$LINENO"; then :
2196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h. */
2202 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2204 return test_array [0];
2210 if ac_fn_c_try_compile
"$LINENO"; then :
2211 ac_lo
=$ac_mid; break
2213 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2214 if test $ac_mid -le $ac_hi; then
2218 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2220 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2225 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2227 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2228 # Binary search between lo and hi bounds.
2229 while test "x$ac_lo" != "x$ac_hi"; do
2230 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2232 /* end confdefs.h. */
2237 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2239 return test_array [0];
2245 if ac_fn_c_try_compile
"$LINENO"; then :
2248 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2250 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2253 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h. */
2260 static long int longval () { return $2; }
2261 static unsigned long int ulongval () { return $2; }
2268 FILE *f = fopen ("conftest.val", "w");
2273 long int i = longval ();
2276 fprintf (f, "%ld", i);
2280 unsigned long int i = ulongval ();
2283 fprintf (f, "%lu", i);
2285 /* Do not output a trailing newline, as this causes \r\n confusion
2286 on some platforms. */
2287 return ferror (f) || fclose (f) != 0;
2293 if ac_fn_c_try_run
"$LINENO"; then :
2294 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2298 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2299 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2303 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2304 as_fn_set_status
$ac_retval
2306 } # ac_fn_c_compute_int
2308 # ac_fn_c_check_func LINENO FUNC VAR
2309 # ----------------------------------
2310 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2311 ac_fn_c_check_func
()
2313 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2315 $as_echo_n "checking for $2... " >&6; }
2316 if eval \
${$3+:} false
; then :
2317 $as_echo_n "(cached) " >&6
2319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2320 /* end confdefs.h. */
2321 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2323 #define $2 innocuous_$2
2325 /* System header to define __stub macros and hopefully few prototypes,
2326 which can conflict with char $2 (); below.
2327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2328 <limits.h> exists even on freestanding compilers. */
2331 # include <limits.h>
2333 # include <assert.h>
2338 /* Override any GCC internal prototype to avoid an error.
2339 Use char because int might match the return type of a GCC
2340 builtin and then its argument prototype would still apply. */
2345 /* The GNU C library defines this for functions which it implements
2346 to always fail with ENOSYS. Some functions are actually named
2347 something starting with __ and the normal name is an alias. */
2348 #if defined __stub_$2 || defined __stub___$2
2360 if ac_fn_c_try_link
"$LINENO"; then :
2365 rm -f core conftest.err conftest.
$ac_objext \
2366 conftest
$ac_exeext conftest.
$ac_ext
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2370 $as_echo "$ac_res" >&6; }
2371 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2373 } # ac_fn_c_check_func
2375 # ac_fn_cxx_try_link LINENO
2376 # -------------------------
2377 # Try to link conftest.$ac_ext, and return whether this succeeded.
2378 ac_fn_cxx_try_link
()
2380 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2381 rm -f conftest.
$ac_objext conftest
$ac_exeext
2382 if { { ac_try
="$ac_link"
2384 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2385 *) ac_try_echo=$ac_try;;
2387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2388 $as_echo "$ac_try_echo"; } >&5
2389 (eval "$ac_link") 2>conftest.err
2391 if test -s conftest.err; then
2392 grep -v '^ *+' conftest.err >conftest.er1
2393 cat conftest.er1 >&5
2394 mv -f conftest.er1 conftest.err
2396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2397 test $ac_status = 0; } && {
2398 test -z "$ac_cxx_werror_flag" ||
2399 test ! -s conftest.err
2400 } && test -s conftest$ac_exeext && {
2401 test "$cross_compiling" = yes ||
2402 test -x conftest$ac_exeext
2406 $as_echo "$as_me: failed program was:" >&5
2407 sed 's/^/| /' conftest.$ac_ext >&5
2411 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2412 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2413 # interfere with the next link command; also delete a directory that is
2414 # left behind by Apple's compiler. We do this before executing the actions.
2415 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2416 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2417 as_fn_set_status $ac_retval
2419 } # ac_fn_cxx_try_link
2421 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2422 # -------------------------------------------
2423 # Tests whether TYPE exists after having included INCLUDES, setting cache
2424 # variable VAR accordingly.
2425 ac_fn_c_check_type ()
2427 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2429 $as_echo_n "checking for $2... " >&6; }
2430 if eval \${$3+:} false; then :
2431 $as_echo_n "(cached) " >&6
2434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2435 /* end confdefs.h. */
2446 if ac_fn_c_try_compile "$LINENO"; then :
2447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2448 /* end confdefs.h. */
2459 if ac_fn_c_try_compile "$LINENO"; then :
2464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2470 $as_echo "$ac_res" >&6; }
2471 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2473 } # ac_fn_c_check_type
2475 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2476 # ---------------------------------------------
2477 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2479 ac_fn_c_check_decl ()
2481 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2482 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2483 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2485 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2486 if eval \${$3+:} false; then :
2487 $as_echo_n "(cached) " >&6
2489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2490 /* end confdefs.h. */
2495 #ifndef $as_decl_name
2497 (void) $as_decl_use;
2499 (void) $as_decl_name;
2507 if ac_fn_c_try_compile "$LINENO"; then :
2512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2516 $as_echo "$ac_res" >&6; }
2517 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2519 } # ac_fn_c_check_decl
2521 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2522 # ----------------------------------------------------
2523 # Tries to find if the field MEMBER exists in type AGGR, after including
2524 # INCLUDES, setting cache variable VAR accordingly.
2525 ac_fn_c_check_member ()
2527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2529 $as_echo_n "checking for $2.$3... " >&6; }
2530 if eval \${$4+:} false; then :
2531 $as_echo_n "(cached) " >&6
2533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2534 /* end confdefs.h. */
2546 if ac_fn_c_try_compile "$LINENO"; then :
2549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2550 /* end confdefs.h. */
2556 if (sizeof ac_aggr.$3)
2562 if ac_fn_c_try_compile "$LINENO"; then :
2567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2573 $as_echo "$ac_res" >&6; }
2574 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2576 } # ac_fn_c_check_member
2578 # ac_fn_cxx_check_func LINENO FUNC VAR
2579 # ------------------------------------
2580 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2581 ac_fn_cxx_check_func ()
2583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2585 $as_echo_n "checking for $2... " >&6; }
2586 if eval \${$3+:} false; then :
2587 $as_echo_n "(cached) " >&6
2589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2590 /* end confdefs.h. */
2591 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2593 #define $2 innocuous_$2
2595 /* System header to define __stub macros and hopefully few prototypes,
2596 which can conflict with char $2 (); below.
2597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2598 <limits.h> exists even on freestanding compilers. */
2601 # include <limits.h>
2603 # include <assert.h>
2608 /* Override any GCC internal prototype to avoid an error.
2609 Use char because int might match the return type of a GCC
2610 builtin and then its argument prototype would still apply. */
2615 /* The GNU C library defines this for functions which it implements
2616 to always fail with ENOSYS. Some functions are actually named
2617 something starting with __ and the normal name is an alias. */
2618 #if defined __stub_$2 || defined __stub___$2
2630 if ac_fn_cxx_try_link "$LINENO"; then :
2635 rm -f core conftest.err conftest.$ac_objext \
2636 conftest$ac_exeext conftest.$ac_ext
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2640 $as_echo "$ac_res" >&6; }
2641 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2643 } # ac_fn_cxx_check_func
2644 cat >config.log <<_ACEOF
2645 This file contains any messages produced by compilers while
2646 running configure, to aid debugging if configure makes a mistake.
2648 It was created by $as_me, which was
2649 generated by GNU Autoconf 2.69. Invocation command line was
2661 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2662 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2663 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2664 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2665 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2667 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2668 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2670 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2671 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2672 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2673 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2674 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2675 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2676 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 test -z "$as_dir" && as_dir=.
2685 $as_echo "PATH: $as_dir"
2701 # Keep a trace of the command line.
2702 # Strip out --no-create and --no-recursion so they do not pile up.
2703 # Strip out --silent because we don't want to record it for future runs.
2704 # Also quote any args containing shell meta-characters.
2705 # Make two passes to allow for proper duplicate-argument suppression.
2709 ac_must_keep_next=false
2715 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2716 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2717 | -silent | --silent | --silen | --sile | --sil)
2720 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2723 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2725 as_fn_append ac_configure_args1 " '$ac_arg'"
2726 if test $ac_must_keep_next = true; then
2727 ac_must_keep_next=false # Got value, back to normal.
2730 *=* | --config-cache | -C | -disable-* | --disable-* \
2731 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2732 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2733 | -with-* | --with-* | -without-* | --without-* | --x)
2734 case "$ac_configure_args0 " in
2735 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2738 -* ) ac_must_keep_next=true ;;
2741 as_fn_append ac_configure_args " '$ac_arg'"
2746 { ac_configure_args0=; unset ac_configure_args0;}
2747 { ac_configure_args1=; unset ac_configure_args1;}
2749 # When interrupted or exit'd, cleanup temporary files, and complete
2750 # config.log. We remove comments because anyway the quotes in there
2751 # would cause problems or look ugly.
2752 # WARNING: Use '\'' to represent an apostrophe within the trap.
2753 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2754 trap 'exit_status=$?
2755 # Save into config.log some information that might help in debugging.
2759 $as_echo "## ---------------- ##
2760 ## Cache variables. ##
2761 ## ---------------- ##"
2763 # The following way of writing the cache mishandles newlines in values,
2765 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2766 eval ac_val=\$$ac_var
2770 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2771 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2774 _ | IFS | as_nl) ;; #(
2775 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2776 *) { eval $ac_var=; unset $ac_var;} ;;
2781 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2782 *${as_nl}ac_space=\ *)
2784 "s/'\''/'\''\\\\'\'''\''/g;
2785 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2788 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2795 $as_echo "## ----------------- ##
2796 ## Output variables. ##
2797 ## ----------------- ##"
2799 for ac_var in $ac_subst_vars
2801 eval ac_val=\$$ac_var
2803 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2805 $as_echo "$ac_var='\''$ac_val'\''"
2809 if test -n "$ac_subst_files"; then
2810 $as_echo "## ------------------- ##
2811 ## File substitutions. ##
2812 ## ------------------- ##"
2814 for ac_var in $ac_subst_files
2816 eval ac_val=\$$ac_var
2818 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2820 $as_echo "$ac_var='\''$ac_val'\''"
2825 if test -s confdefs.h; then
2826 $as_echo "## ----------- ##
2833 test "$ac_signal" != 0 &&
2834 $as_echo "$as_me: caught signal $ac_signal"
2835 $as_echo "$as_me: exit $exit_status"
2837 rm -f core *.core core.conftest.* &&
2838 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2841 for ac_signal in 1 2 13 15; do
2842 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2846 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2847 rm -f -r conftest* confdefs.h
2849 $as_echo "/* confdefs.h */" > confdefs.h
2851 # Predefined preprocessor variables.
2853 cat >>confdefs.h <<_ACEOF
2854 #define PACKAGE_NAME "$PACKAGE_NAME"
2857 cat >>confdefs.h <<_ACEOF
2858 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2861 cat >>confdefs.h <<_ACEOF
2862 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2865 cat >>confdefs.h <<_ACEOF
2866 #define PACKAGE_STRING "$PACKAGE_STRING"
2869 cat >>confdefs.h <<_ACEOF
2870 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2873 cat >>confdefs.h <<_ACEOF
2874 #define PACKAGE_URL "$PACKAGE_URL"
2878 # Let the site file select an alternate cache file if it wants to.
2879 # Prefer an explicitly selected file to automatically selected ones.
2882 if test -n "$CONFIG_SITE"; then
2883 # We do not want a PATH search for config.site.
2884 case $CONFIG_SITE in #((
2885 -*) ac_site_file1=./$CONFIG_SITE;;
2886 */*) ac_site_file1=$CONFIG_SITE;;
2887 *) ac_site_file1=./$CONFIG_SITE;;
2889 elif test "x$prefix" != xNONE; then
2890 ac_site_file1=$prefix/share/config.site
2891 ac_site_file2=$prefix/etc/config.site
2893 ac_site_file1=$ac_default_prefix/share/config.site
2894 ac_site_file2=$ac_default_prefix/etc/config.site
2896 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2898 test "x$ac_site_file" = xNONE && continue
2899 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2901 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2902 sed 's/^/| /' "$ac_site_file" >&5
2904 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2906 as_fn_error $? "failed to load site
script $ac_site_file
2907 See \
`config.log' for more details" "$LINENO" 5; }
2911 if test -r "$cache_file"; then
2912 # Some versions of bash will fail to source /dev/null (special files
2913 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2914 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2916 $as_echo "$as_me: loading cache $cache_file" >&6;}
2918 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2919 *) . "./$cache_file";;
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2924 $as_echo "$as_me: creating cache $cache_file" >&6;}
2928 as_fn_append ac_header_list " stdlib.h"
2929 as_fn_append ac_header_list " unistd.h"
2930 as_fn_append ac_header_list " sys/param.h"
2931 # Check that the precious variables saved in the cache have kept the same
2933 ac_cache_corrupted=false
2934 for ac_var in $ac_precious_vars; do
2935 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2936 eval ac_new_set=\$ac_env_${ac_var}_set
2937 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2938 eval ac_new_val=\$ac_env_${ac_var}_value
2939 case $ac_old_set,$ac_new_set in
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2942 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2943 ac_cache_corrupted=: ;;
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2946 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2947 ac_cache_corrupted=: ;;
2950 if test "x$ac_old_val" != "x$ac_new_val"; then
2951 # differences in whitespace do not lead to failure.
2952 ac_old_val_w=`echo x
$ac_old_val`
2953 ac_new_val_w=`echo x
$ac_new_val`
2954 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2956 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2957 ac_cache_corrupted=:
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2960 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2961 eval $ac_var=\$ac_old_val
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2964 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2966 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2969 # Pass precious variables to config.status.
2970 if test "$ac_new_set" = set; then
2972 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2973 *) ac_arg=$ac_var=$ac_new_val ;;
2975 case " $ac_configure_args " in
2976 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2977 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2981 if $ac_cache_corrupted; then
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2985 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2986 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2988 ## -------------------- ##
2989 ## Main body of script. ##
2990 ## -------------------- ##
2993 ac_cpp='$CPP $CPPFLAGS'
2994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3004 ac_config_headers="$ac_config_headers config.h:config.in"
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3008 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3009 # Check whether --enable-maintainer-mode was given.
3010 if test "${enable_maintainer_mode+set}" = set; then :
3011 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3013 USE_MAINTAINER_MODE=no
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3017 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3018 if test $USE_MAINTAINER_MODE = yes; then
3019 MAINTAINER_MODE_TRUE=
3020 MAINTAINER_MODE_FALSE='#'
3022 MAINTAINER_MODE_TRUE='#'
3023 MAINTAINER_MODE_FALSE=
3026 MAINT=$MAINTAINER_MODE_TRUE
3031 ac_cpp='$CPP $CPPFLAGS'
3032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3035 if test -n "$ac_tool_prefix"; then
3036 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3037 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039 $as_echo_n "checking for $ac_word... " >&6; }
3040 if ${ac_cv_prog_CC+:} false; then :
3041 $as_echo_n "(cached) " >&6
3043 if test -n "$CC"; then
3044 ac_cv_prog_CC="$CC" # Let the user override the test.
3046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050 test -z "$as_dir" && as_dir=.
3051 for ac_exec_ext in '' $ac_executable_extensions; do
3052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3053 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3064 if test -n "$CC"; then
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3066 $as_echo "$CC" >&6; }
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069 $as_echo "no" >&6; }
3074 if test -z "$ac_cv_prog_CC"; then
3076 # Extract the first word of "gcc", so it can be a program name with args.
3077 set dummy gcc; ac_word=$2
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3079 $as_echo_n "checking for $ac_word... " >&6; }
3080 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3081 $as_echo_n "(cached) " >&6
3083 if test -n "$ac_ct_CC"; then
3084 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 test -z "$as_dir" && as_dir=.
3091 for ac_exec_ext in '' $ac_executable_extensions; do
3092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3093 ac_cv_prog_ac_ct_CC="gcc"
3094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3104 if test -n "$ac_ct_CC"; then
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3106 $as_echo "$ac_ct_CC" >&6; }
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109 $as_echo "no" >&6; }
3112 if test "x$ac_ct_CC" = x; then
3115 case $cross_compiling:$ac_tool_warned in
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3119 ac_tool_warned=yes ;;
3127 if test -z "$CC"; then
3128 if test -n "$ac_tool_prefix"; then
3129 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3130 set dummy ${ac_tool_prefix}cc; ac_word=$2
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3132 $as_echo_n "checking for $ac_word... " >&6; }
3133 if ${ac_cv_prog_CC+:} false; then :
3134 $as_echo_n "(cached) " >&6
3136 if test -n "$CC"; then
3137 ac_cv_prog_CC="$CC" # Let the user override the test.
3139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143 test -z "$as_dir" && as_dir=.
3144 for ac_exec_ext in '' $ac_executable_extensions; do
3145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3146 ac_cv_prog_CC="${ac_tool_prefix}cc"
3147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 if test -n "$CC"; then
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3159 $as_echo "$CC" >&6; }
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3162 $as_echo "no" >&6; }
3168 if test -z "$CC"; then
3169 # Extract the first word of "cc", so it can be a program name with args.
3170 set dummy cc; ac_word=$2
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3172 $as_echo_n "checking for $ac_word... " >&6; }
3173 if ${ac_cv_prog_CC+:} false; then :
3174 $as_echo_n "(cached) " >&6
3176 if test -n "$CC"; then
3177 ac_cv_prog_CC="$CC" # Let the user override the test.
3180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 test -z "$as_dir" && as_dir=.
3185 for ac_exec_ext in '' $ac_executable_extensions; do
3186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3187 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3188 ac_prog_rejected=yes
3192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 if test $ac_prog_rejected = yes; then
3200 # We found a bogon in the path, so make sure we never use it.
3201 set dummy $ac_cv_prog_CC
3203 if test $# != 0; then
3204 # We chose a different compiler from the bogus one.
3205 # However, it has the same basename, so the bogon will be chosen
3206 # first if we set CC to just the basename; use the full file name.
3208 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3214 if test -n "$CC"; then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3216 $as_echo "$CC" >&6; }
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219 $as_echo "no" >&6; }
3224 if test -z "$CC"; then
3225 if test -n "$ac_tool_prefix"; then
3226 for ac_prog in cl.exe
3228 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3229 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3231 $as_echo_n "checking for $ac_word... " >&6; }
3232 if ${ac_cv_prog_CC+:} false; then :
3233 $as_echo_n "(cached) " >&6
3235 if test -n "$CC"; then
3236 ac_cv_prog_CC="$CC" # Let the user override the test.
3238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242 test -z "$as_dir" && as_dir=.
3243 for ac_exec_ext in '' $ac_executable_extensions; do
3244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3245 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3256 if test -n "$CC"; then
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3258 $as_echo "$CC" >&6; }
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261 $as_echo "no" >&6; }
3265 test -n "$CC" && break
3268 if test -z "$CC"; then
3270 for ac_prog in cl.exe
3272 # Extract the first word of "$ac_prog", so it can be a program name with args.
3273 set dummy $ac_prog; ac_word=$2
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3275 $as_echo_n "checking for $ac_word... " >&6; }
3276 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3277 $as_echo_n "(cached) " >&6
3279 if test -n "$ac_ct_CC"; then
3280 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286 test -z "$as_dir" && as_dir=.
3287 for ac_exec_ext in '' $ac_executable_extensions; do
3288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3289 ac_cv_prog_ac_ct_CC="$ac_prog"
3290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3299 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3300 if test -n "$ac_ct_CC"; then
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3302 $as_echo "$ac_ct_CC" >&6; }
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305 $as_echo "no" >&6; }
3309 test -n "$ac_ct_CC" && break
3312 if test "x$ac_ct_CC" = x; then
3315 case $cross_compiling:$ac_tool_warned in
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3319 ac_tool_warned=yes ;;
3328 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3330 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3331 See \
`config.log' for more details" "$LINENO" 5; }
3333 # Provide some information about the compiler.
3334 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3337 for ac_option in --version -v -V -qversion; do
3338 { { ac_try="$ac_compiler $ac_option >&5"
3340 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3341 *) ac_try_echo
=$ac_try;;
3343 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3344 $as_echo "$ac_try_echo"; } >&5
3345 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3347 if test -s conftest.err
; then
3349 ... rest of stderr output deleted ...
3350 10q' conftest.err
>conftest.er1
3351 cat conftest.er1
>&5
3353 rm -f conftest.er1 conftest.err
3354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3355 test $ac_status = 0; }
3358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3359 /* end confdefs.h. */
3369 ac_clean_files_save
=$ac_clean_files
3370 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3371 # Try to create an executable without -o first, disregard a.out.
3372 # It will help us diagnose broken compilers, and finding out an intuition
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3375 $as_echo_n "checking whether the C compiler works... " >&6; }
3376 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3378 # The possible output files:
3379 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3382 for ac_file
in $ac_files
3385 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3386 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3391 if { { ac_try
="$ac_link_default"
3393 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3394 *) ac_try_echo=$ac_try;;
3396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3397 $as_echo "$ac_try_echo"; } >&5
3398 (eval "$ac_link_default") 2>&5
3400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3401 test $ac_status = 0; }; then :
3402 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3403 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3404 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3405 # so that the user can short-circuit this test for compilers unknown to
3407 for ac_file in $ac_files ''
3409 test -f "$ac_file" || continue
3411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3414 # We found the default executable, but exeext='' is most
3418 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3420 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3422 # We set ac_cv_exeext here because the later test for it is not
3423 # safe: cross compilers may not add the suffix if given an `-o'
3424 # argument, so we may need to know it at that point already.
3425 # Even if this section looks crufty: it has the advantage of
3432 test "$ac_cv_exeext" = no && ac_cv_exeext=
3437 if test -z "$ac_file"; then :
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439 $as_echo "no" >&6; }
3440 $as_echo "$as_me: failed program was:" >&5
3441 sed 's
/^
/|
/' conftest.$ac_ext >&5
3443 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3444 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3445 as_fn_error 77 "C compiler cannot create executables
3446 See \`config.log
' for more details" "$LINENO" 5; }
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3449 $as_echo "yes" >&6; }
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3452 $as_echo_n "checking for C compiler default output file name... " >&6; }
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3454 $as_echo "$ac_file" >&6; }
3455 ac_exeext=$ac_cv_exeext
3457 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3458 ac_clean_files=$ac_clean_files_save
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3460 $as_echo_n "checking for suffix of executables... " >&6; }
3461 if { { ac_try="$ac_link"
3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464 *) ac_try_echo=$ac_try;;
3466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3467 $as_echo "$ac_try_echo"; } >&5
3468 (eval "$ac_link") 2>&5
3470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3471 test $ac_status = 0; }; then :
3472 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3473 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3474 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3476 for ac_file
in conftest.exe conftest conftest.
*; do
3477 test -f "$ac_file" ||
continue
3479 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3480 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3486 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3488 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3489 See \`config.log' for more details" "$LINENO" 5; }
3491 rm -f conftest conftest
$ac_cv_exeext
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3493 $as_echo "$ac_cv_exeext" >&6; }
3495 rm -f conftest.
$ac_ext
3496 EXEEXT
=$ac_cv_exeext
3498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3499 /* end confdefs.h. */
3504 FILE *f = fopen ("conftest.out", "w");
3505 return ferror (f) || fclose (f) != 0;
3511 ac_clean_files
="$ac_clean_files conftest.out"
3512 # Check that the compiler produces executables we can run. If not, either
3513 # the compiler is broken, or we cross compile.
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3515 $as_echo_n "checking whether we are cross compiling... " >&6; }
3516 if test "$cross_compiling" != yes; then
3517 { { ac_try
="$ac_link"
3519 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3520 *) ac_try_echo=$ac_try;;
3522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3523 $as_echo "$ac_try_echo"; } >&5
3524 (eval "$ac_link") 2>&5
3526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3527 test $ac_status = 0; }
3528 if { ac_try='./conftest$ac_cv_exeext'
3529 { { case "(($ac_try" in
3530 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3531 *) ac_try_echo
=$ac_try;;
3533 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3534 $as_echo "$ac_try_echo"; } >&5
3535 (eval "$ac_try") 2>&5
3537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3538 test $ac_status = 0; }; }; then
3541 if test "$cross_compiling" = maybe
; then
3544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3546 as_fn_error $?
"cannot run C compiled programs.
3547 If you meant to cross compile, use \`--host'.
3548 See \`config.log' for more details" "$LINENO" 5; }
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3553 $as_echo "$cross_compiling" >&6; }
3555 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3556 ac_clean_files
=$ac_clean_files_save
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3558 $as_echo_n "checking for suffix of object files... " >&6; }
3559 if ${ac_cv_objext+:} false
; then :
3560 $as_echo_n "(cached) " >&6
3562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3563 /* end confdefs.h. */
3573 rm -f conftest.o conftest.obj
3574 if { { ac_try
="$ac_compile"
3576 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3580 $as_echo "$ac_try_echo"; } >&5
3581 (eval "$ac_compile") 2>&5
3583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3584 test $ac_status = 0; }; then :
3585 for ac_file in conftest.o conftest.obj conftest.*; do
3586 test -f "$ac_file" || continue;
3588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3589 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3594 $as_echo "$as_me: failed program was:" >&5
3595 sed 's/^/| /' conftest.$ac_ext >&5
3597 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3599 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3600 See \
`config.log' for more details" "$LINENO" 5; }
3602 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3605 $as_echo "$ac_cv_objext" >&6; }
3606 OBJEXT=$ac_cv_objext
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3609 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3610 if ${ac_cv_c_compiler_gnu+:} false; then :
3611 $as_echo_n "(cached) " >&6
3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 /* end confdefs.h. */
3627 if ac_fn_c_try_compile "$LINENO"; then :
3632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3633 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3637 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3638 if test $ac_compiler_gnu = yes; then
3643 ac_test_CFLAGS=${CFLAGS+set}
3644 ac_save_CFLAGS=$CFLAGS
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3646 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3647 if ${ac_cv_prog_cc_g+:} false; then :
3648 $as_echo_n "(cached) " >&6
3650 ac_save_c_werror_flag=$ac_c_werror_flag
3651 ac_c_werror_flag=yes
3654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655 /* end confdefs.h. */
3665 if ac_fn_c_try_compile "$LINENO"; then :
3669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670 /* end confdefs.h. */
3680 if ac_fn_c_try_compile "$LINENO"; then :
3683 ac_c_werror_flag=$ac_save_c_werror_flag
3685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686 /* end confdefs.h. */
3696 if ac_fn_c_try_compile "$LINENO"; then :
3699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3704 ac_c_werror_flag=$ac_save_c_werror_flag
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3707 $as_echo "$ac_cv_prog_cc_g" >&6; }
3708 if test "$ac_test_CFLAGS" = set; then
3709 CFLAGS=$ac_save_CFLAGS
3710 elif test $ac_cv_prog_cc_g = yes; then
3711 if test "$GCC" = yes; then
3717 if test "$GCC" = yes; then
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3724 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3725 if ${ac_cv_prog_cc_c89+:} false; then :
3726 $as_echo_n "(cached) " >&6
3728 ac_cv_prog_cc_c89=no
3730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731 /* end confdefs.h. */
3735 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3736 struct buf { int x; };
3737 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3738 static char *e (p, i)
3744 static char *f (char * (*g) (char **, int), char **p, ...)
3749 s = g (p, va_arg (v,int));
3754 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3755 function prototypes and stuff, but not '\xHH' hex character constants.
3756 These don't provoke an error unfortunately, instead are silently treated
3757 as 'x'. The following induces an error, until -std is added to get
3758 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3759 array size at least. It's necessary to write '\x00'==0 to get something
3760 that's true only with -std. */
3761 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3763 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3764 inside strings and character constants. */
3766 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3768 int test (int i, double x);
3769 struct s1 {int (*f) (int a);};
3770 struct s2 {int (*f) (double a);};
3771 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3777 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3782 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3783 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3785 CC="$ac_save_CC $ac_arg"
3786 if ac_fn_c_try_compile "$LINENO"; then :
3787 ac_cv_prog_cc_c89=$ac_arg
3789 rm -f core conftest.err conftest.$ac_objext
3790 test "x$ac_cv_prog_cc_c89" != "xno" && break
3792 rm -f conftest.$ac_ext
3797 case "x$ac_cv_prog_cc_c89" in
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3800 $as_echo "none needed" >&6; } ;;
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3803 $as_echo "unsupported" >&6; } ;;
3805 CC="$CC $ac_cv_prog_cc_c89"
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3807 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3809 if test "x$ac_cv_prog_cc_c89" != xno; then :
3814 ac_cpp='$CPP $CPPFLAGS'
3815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3820 ac_cpp='$CXXCPP $CPPFLAGS'
3821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3824 if test -z "$CXX"; then
3825 if test -n "$CCC"; then
3828 if test -n "$ac_tool_prefix"; then
3829 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3832 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3834 $as_echo_n "checking for $ac_word... " >&6; }
3835 if ${ac_cv_prog_CXX+:} false; then :
3836 $as_echo_n "(cached) " >&6
3838 if test -n "$CXX"; then
3839 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845 test -z "$as_dir" && as_dir=.
3846 for ac_exec_ext in '' $ac_executable_extensions; do
3847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3848 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3859 if test -n "$CXX"; then
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3861 $as_echo "$CXX" >&6; }
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3864 $as_echo "no" >&6; }
3868 test -n "$CXX" && break
3871 if test -z "$CXX"; then
3873 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3875 # Extract the first word of "$ac_prog", so it can be a program name with args.
3876 set dummy $ac_prog; ac_word=$2
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3878 $as_echo_n "checking for $ac_word... " >&6; }
3879 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3880 $as_echo_n "(cached) " >&6
3882 if test -n "$ac_ct_CXX"; then
3883 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889 test -z "$as_dir" && as_dir=.
3890 for ac_exec_ext in '' $ac_executable_extensions; do
3891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3892 ac_cv_prog_ac_ct_CXX="$ac_prog"
3893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3902 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3903 if test -n "$ac_ct_CXX"; then
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3905 $as_echo "$ac_ct_CXX" >&6; }
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3908 $as_echo "no" >&6; }
3912 test -n "$ac_ct_CXX" && break
3915 if test "x$ac_ct_CXX" = x; then
3918 case $cross_compiling:$ac_tool_warned in
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3922 ac_tool_warned=yes ;;
3930 # Provide some information about the compiler.
3931 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3934 for ac_option in --version -v -V -qversion; do
3935 { { ac_try="$ac_compiler $ac_option >&5"
3937 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3938 *) ac_try_echo
=$ac_try;;
3940 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3941 $as_echo "$ac_try_echo"; } >&5
3942 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3944 if test -s conftest.err
; then
3946 ... rest of stderr output deleted ...
3947 10q' conftest.err
>conftest.er1
3948 cat conftest.er1
>&5
3950 rm -f conftest.er1 conftest.err
3951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3952 test $ac_status = 0; }
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3956 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3957 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3958 $as_echo_n "(cached) " >&6
3960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3961 /* end confdefs.h. */
3974 if ac_fn_cxx_try_compile
"$LINENO"; then :
3979 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3980 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3984 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3985 if test $ac_compiler_gnu = yes; then
3990 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3991 ac_save_CXXFLAGS
=$CXXFLAGS
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3993 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3994 if ${ac_cv_prog_cxx_g+:} false
; then :
3995 $as_echo_n "(cached) " >&6
3997 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3998 ac_cxx_werror_flag
=yes
4001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h. */
4012 if ac_fn_cxx_try_compile
"$LINENO"; then :
4013 ac_cv_prog_cxx_g
=yes
4016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4017 /* end confdefs.h. */
4027 if ac_fn_cxx_try_compile
"$LINENO"; then :
4030 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4033 /* end confdefs.h. */
4043 if ac_fn_cxx_try_compile
"$LINENO"; then :
4044 ac_cv_prog_cxx_g
=yes
4046 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4048 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4050 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4051 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4054 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4055 if test "$ac_test_CXXFLAGS" = set; then
4056 CXXFLAGS
=$ac_save_CXXFLAGS
4057 elif test $ac_cv_prog_cxx_g = yes; then
4058 if test "$GXX" = yes; then
4064 if test "$GXX" = yes; then
4071 ac_cpp
='$CPP $CPPFLAGS'
4072 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4073 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4074 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4079 ac_cpp
='$CPP $CPPFLAGS'
4080 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4081 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4082 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4084 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4085 # On Suns, sometimes $CPP names a directory.
4086 if test -n "$CPP" && test -d "$CPP"; then
4089 if test -z "$CPP"; then
4090 if ${ac_cv_prog_CPP+:} false
; then :
4091 $as_echo_n "(cached) " >&6
4093 # Double quotes because CPP needs to be expanded
4094 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4097 for ac_c_preproc_warn_flag
in '' yes
4099 # Use a header file that comes with gcc, so configuring glibc
4100 # with a fresh cross-compiler works.
4101 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4102 # <limits.h> exists even on freestanding compilers.
4103 # On the NeXT, cc -E runs the code through the compiler's parser,
4104 # not just through cpp. "Syntax error" is here to catch this case.
4105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h. */
4108 # include <limits.h>
4110 # include <assert.h>
4114 if ac_fn_c_try_cpp
"$LINENO"; then :
4117 # Broken: fails on valid input.
4120 rm -f conftest.err conftest.i conftest.
$ac_ext
4122 # OK, works on sane cases. Now check whether nonexistent headers
4123 # can be detected and how.
4124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4125 /* end confdefs.h. */
4126 #include <ac_nonexistent.h>
4128 if ac_fn_c_try_cpp
"$LINENO"; then :
4129 # Broken: success on invalid input.
4132 # Passes both tests.
4136 rm -f conftest.err conftest.i conftest.
$ac_ext
4139 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4140 rm -f conftest.i conftest.err conftest.
$ac_ext
4141 if $ac_preproc_ok; then :
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4154 $as_echo "$CPP" >&6; }
4156 for ac_c_preproc_warn_flag
in '' yes
4158 # Use a header file that comes with gcc, so configuring glibc
4159 # with a fresh cross-compiler works.
4160 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4161 # <limits.h> exists even on freestanding compilers.
4162 # On the NeXT, cc -E runs the code through the compiler's parser,
4163 # not just through cpp. "Syntax error" is here to catch this case.
4164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4167 # include <limits.h>
4169 # include <assert.h>
4173 if ac_fn_c_try_cpp
"$LINENO"; then :
4176 # Broken: fails on valid input.
4179 rm -f conftest.err conftest.i conftest.
$ac_ext
4181 # OK, works on sane cases. Now check whether nonexistent headers
4182 # can be detected and how.
4183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4184 /* end confdefs.h. */
4185 #include <ac_nonexistent.h>
4187 if ac_fn_c_try_cpp
"$LINENO"; then :
4188 # Broken: success on invalid input.
4191 # Passes both tests.
4195 rm -f conftest.err conftest.i conftest.
$ac_ext
4198 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4199 rm -f conftest.i conftest.err conftest.
$ac_ext
4200 if $ac_preproc_ok; then :
4203 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4205 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4206 See \`config.log' for more details" "$LINENO" 5; }
4210 ac_cpp
='$CPP $CPPFLAGS'
4211 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4212 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4213 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4217 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4218 if ${ac_cv_path_GREP+:} false
; then :
4219 $as_echo_n "(cached) " >&6
4221 if test -z "$GREP"; then
4222 ac_path_GREP_found
=false
4223 # Loop through the user's path and test for each of PROGNAME-LIST
4224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4225 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4228 test -z "$as_dir" && as_dir
=.
4229 for ac_prog
in grep ggrep
; do
4230 for ac_exec_ext
in '' $ac_executable_extensions; do
4231 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4232 as_fn_executable_p
"$ac_path_GREP" ||
continue
4233 # Check for GNU ac_path_GREP and select it if it is found.
4234 # Check for GNU $ac_path_GREP
4235 case `"$ac_path_GREP" --version 2>&1` in
4237 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4240 $as_echo_n 0123456789 >"conftest.in"
4243 cat "conftest.in" "conftest.in" >"conftest.tmp"
4244 mv "conftest.tmp" "conftest.in"
4245 cp "conftest.in" "conftest.nl"
4246 $as_echo 'GREP' >> "conftest.nl"
4247 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4248 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4249 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4250 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4251 # Best one so far, save it but keep looking for a better one
4252 ac_cv_path_GREP
="$ac_path_GREP"
4253 ac_path_GREP_max
=$ac_count
4255 # 10*(2^10) chars as input seems more than enough
4256 test $ac_count -gt 10 && break
4258 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4261 $ac_path_GREP_found && break 3
4266 if test -z "$ac_cv_path_GREP"; then
4267 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4270 ac_cv_path_GREP
=$GREP
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4275 $as_echo "$ac_cv_path_GREP" >&6; }
4276 GREP
="$ac_cv_path_GREP"
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4280 $as_echo_n "checking for egrep... " >&6; }
4281 if ${ac_cv_path_EGREP+:} false
; then :
4282 $as_echo_n "(cached) " >&6
4284 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4285 then ac_cv_path_EGREP
="$GREP -E"
4287 if test -z "$EGREP"; then
4288 ac_path_EGREP_found
=false
4289 # Loop through the user's path and test for each of PROGNAME-LIST
4290 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4291 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4294 test -z "$as_dir" && as_dir
=.
4295 for ac_prog
in egrep; do
4296 for ac_exec_ext
in '' $ac_executable_extensions; do
4297 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4298 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4299 # Check for GNU ac_path_EGREP and select it if it is found.
4300 # Check for GNU $ac_path_EGREP
4301 case `"$ac_path_EGREP" --version 2>&1` in
4303 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4306 $as_echo_n 0123456789 >"conftest.in"
4309 cat "conftest.in" "conftest.in" >"conftest.tmp"
4310 mv "conftest.tmp" "conftest.in"
4311 cp "conftest.in" "conftest.nl"
4312 $as_echo 'EGREP' >> "conftest.nl"
4313 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4314 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4315 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4316 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4317 # Best one so far, save it but keep looking for a better one
4318 ac_cv_path_EGREP
="$ac_path_EGREP"
4319 ac_path_EGREP_max
=$ac_count
4321 # 10*(2^10) chars as input seems more than enough
4322 test $ac_count -gt 10 && break
4324 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4327 $ac_path_EGREP_found && break 3
4332 if test -z "$ac_cv_path_EGREP"; then
4333 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4336 ac_cv_path_EGREP
=$EGREP
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4342 $as_echo "$ac_cv_path_EGREP" >&6; }
4343 EGREP
="$ac_cv_path_EGREP"
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4347 $as_echo_n "checking for ANSI C header files... " >&6; }
4348 if ${ac_cv_header_stdc+:} false
; then :
4349 $as_echo_n "(cached) " >&6
4351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h. */
4366 if ac_fn_c_try_compile
"$LINENO"; then :
4367 ac_cv_header_stdc
=yes
4369 ac_cv_header_stdc
=no
4371 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4373 if test $ac_cv_header_stdc = yes; then
4374 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h. */
4380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4381 $EGREP "memchr" >/dev
/null
2>&1; then :
4384 ac_cv_header_stdc
=no
4390 if test $ac_cv_header_stdc = yes; then
4391 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h. */
4397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4398 $EGREP "free" >/dev
/null
2>&1; then :
4401 ac_cv_header_stdc
=no
4407 if test $ac_cv_header_stdc = yes; then
4408 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4409 if test "$cross_compiling" = yes; then :
4412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4413 /* end confdefs.h. */
4416 #if ((' ' & 0x0FF) == 0x020)
4417 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4418 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4420 # define ISLOWER(c) \
4421 (('a' <= (c) && (c) <= 'i') \
4422 || ('j' <= (c) && (c) <= 'r') \
4423 || ('s' <= (c) && (c) <= 'z'))
4424 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4427 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4432 for (i = 0; i < 256; i++)
4433 if (XOR (islower (i), ISLOWER (i))
4434 || toupper (i) != TOUPPER (i))
4439 if ac_fn_c_try_run
"$LINENO"; then :
4442 ac_cv_header_stdc
=no
4444 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4445 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4451 $as_echo "$ac_cv_header_stdc" >&6; }
4452 if test $ac_cv_header_stdc = yes; then
4454 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4458 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4459 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4460 inttypes.h stdint.h unistd.h
4462 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4463 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4465 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4466 cat >>confdefs.h
<<_ACEOF
4467 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4476 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4477 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4484 if test "$MINIX" = yes; then
4486 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4489 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4492 $as_echo "#define _MINIX 1" >>confdefs.h
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4498 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4499 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4500 $as_echo_n "(cached) " >&6
4502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4503 /* end confdefs.h. */
4505 # define __EXTENSIONS__ 1
4506 $ac_includes_default
4515 if ac_fn_c_try_compile
"$LINENO"; then :
4516 ac_cv_safe_to_define___extensions__
=yes
4518 ac_cv_safe_to_define___extensions__
=no
4520 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4523 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4524 test $ac_cv_safe_to_define___extensions__ = yes &&
4525 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4527 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4529 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4531 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4533 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4537 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4538 if test -f "$ac_dir/install-sh"; then
4540 ac_install_sh
="$ac_aux_dir/install-sh -c"
4542 elif test -f "$ac_dir/install.sh"; then
4544 ac_install_sh
="$ac_aux_dir/install.sh -c"
4546 elif test -f "$ac_dir/shtool"; then
4548 ac_install_sh
="$ac_aux_dir/shtool install -c"
4552 if test -z "$ac_aux_dir"; then
4553 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4556 # These three variables are undocumented and unsupported,
4557 # and are intended to be withdrawn in a future Autoconf release.
4558 # They can cause serious problems if a builder's source tree is in a directory
4559 # whose full name contains unusual characters.
4560 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4561 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4562 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4565 # Make sure we can run config.sub.
4566 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4567 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4570 $as_echo_n "checking build system type... " >&6; }
4571 if ${ac_cv_build+:} false
; then :
4572 $as_echo_n "(cached) " >&6
4574 ac_build_alias
=$build_alias
4575 test "x$ac_build_alias" = x
&&
4576 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4577 test "x$ac_build_alias" = x
&&
4578 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4579 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4580 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4584 $as_echo "$ac_cv_build" >&6; }
4585 case $ac_cv_build in
4587 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4590 ac_save_IFS
=$IFS; IFS
='-'
4596 # Remember, the first character of IFS is used to create $*,
4597 # except with old shells:
4600 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4604 $as_echo_n "checking host system type... " >&6; }
4605 if ${ac_cv_host+:} false
; then :
4606 $as_echo_n "(cached) " >&6
4608 if test "x$host_alias" = x
; then
4609 ac_cv_host
=$ac_cv_build
4611 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4612 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4617 $as_echo "$ac_cv_host" >&6; }
4620 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4623 ac_save_IFS
=$IFS; IFS
='-'
4629 # Remember, the first character of IFS is used to create $*,
4630 # except with old shells:
4633 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4637 $as_echo_n "checking target system type... " >&6; }
4638 if ${ac_cv_target+:} false
; then :
4639 $as_echo_n "(cached) " >&6
4641 if test "x$target_alias" = x
; then
4642 ac_cv_target
=$ac_cv_host
4644 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4645 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4650 $as_echo "$ac_cv_target" >&6; }
4651 case $ac_cv_target in
4653 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4655 target
=$ac_cv_target
4656 ac_save_IFS
=$IFS; IFS
='-'
4662 # Remember, the first character of IFS is used to create $*,
4663 # except with old shells:
4666 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4669 # The aliases save the names the user supplied, while $host etc.
4670 # will get canonicalized.
4671 test -n "$target_alias" &&
4672 test "$program_prefix$program_suffix$program_transform_name" = \
4674 program_prefix
=${target_alias}-
4676 # The tests for host and target for $enable_largefile require
4681 # As the $enable_largefile decision depends on --enable-plugins we must set it
4682 # even in directories otherwise not depending on the $plugins option.
4686 for ac_header
in dlfcn.h
4688 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4690 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
4691 cat >>confdefs.h
<<_ACEOF
4692 #define HAVE_DLFCN_H 1
4699 for ac_header
in windows.h
4701 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4703 if test "x$ac_cv_header_windows_h" = xyes
; then :
4704 cat >>confdefs.h
<<_ACEOF
4705 #define HAVE_WINDOWS_H 1
4713 # Check whether --enable-plugins was given.
4714 if test "${enable_plugins+set}" = set; then :
4715 enableval
=$enable_plugins; case "${enableval}" in
4718 if test "$maybe_plugins" != "yes" ; then
4719 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4723 plugins
=$maybe_plugins
4727 if test "$plugins" = "yes"; then
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4729 $as_echo_n "checking for library containing dlsym... " >&6; }
4730 if ${ac_cv_search_dlsym+:} false
; then :
4731 $as_echo_n "(cached) " >&6
4733 ac_func_search_save_LIBS
=$LIBS
4734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h. */
4737 /* Override any GCC internal prototype to avoid an error.
4738 Use char because int might match the return type of a GCC
4739 builtin and then its argument prototype would still apply. */
4752 for ac_lib
in '' dl
; do
4753 if test -z "$ac_lib"; then
4754 ac_res
="none required"
4757 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4759 if ac_fn_c_try_link
"$LINENO"; then :
4760 ac_cv_search_dlsym
=$ac_res
4762 rm -f core conftest.err conftest.
$ac_objext \
4764 if ${ac_cv_search_dlsym+:} false
; then :
4768 if ${ac_cv_search_dlsym+:} false
; then :
4771 ac_cv_search_dlsym
=no
4774 LIBS
=$ac_func_search_save_LIBS
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4777 $as_echo "$ac_cv_search_dlsym" >&6; }
4778 ac_res
=$ac_cv_search_dlsym
4779 if test "$ac_res" != no
; then :
4780 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4788 sparc-
*-solaris*|i?
86-*-solaris*)
4789 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
4790 # were mutually exclusive until Solaris 11.3. Without procfs support,
4791 # the bfd/ elf module cannot provide certain routines such as
4792 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
4793 # explicitly requested large-file support through the
4794 # --enable-largefile switch, disable large-file support in favor of
4797 # Check if <sys/procfs.h> is incompatible with large-file support.
4798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4799 /* end confdefs.h. */
4800 #define _FILE_OFFSET_BITS 64
4801 #define _STRUCTURED_PROC 1
4802 #include <sys/procfs.h>
4811 if ac_fn_c_try_compile
"$LINENO"; then :
4812 acx_cv_procfs_lfs
=yes
4814 acx_cv_procfs_lfs
=no
4816 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4818 # Forcefully disable large-file support only if necessary, gdb is in
4820 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
4821 -a -d $srcdir/..
/gdb
-a "$enable_gdb" != no
; then
4822 : ${enable_largefile="no"}
4823 if test "$plugins" = yes; then
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4825 plugin support disabled; require large-file support which is incompatible with GDB." >&5
4826 $as_echo "$as_me: WARNING:
4827 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
4832 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
4833 # benefit of g++ 9+ which predefines it on Solaris.
4834 if test "$enable_largefile" = no
; then
4835 LARGEFILE_CPPFLAGS
="-U_FILE_OFFSET_BITS"
4841 # Check whether --enable-largefile was given.
4842 if test "${enable_largefile+set}" = set; then :
4843 enableval
=$enable_largefile;
4846 if test "$enable_largefile" != no
; then
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4849 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4850 if ${ac_cv_sys_largefile_CC+:} false
; then :
4851 $as_echo_n "(cached) " >&6
4853 ac_cv_sys_largefile_CC
=no
4854 if test "$GCC" != yes; then
4857 # IRIX 6.2 and later do not support large files by default,
4858 # so use the C compiler's -n32 option if that helps.
4859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h. */
4861 #include <sys/types.h>
4862 /* Check that off_t can represent 2**63 - 1 correctly.
4863 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4864 since some C++ compilers masquerading as C compilers
4865 incorrectly reject 9223372036854775807. */
4866 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4867 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4868 && LARGE_OFF_T % 2147483647 == 1)
4878 if ac_fn_c_try_compile
"$LINENO"; then :
4881 rm -f core conftest.err conftest.
$ac_objext
4883 if ac_fn_c_try_compile
"$LINENO"; then :
4884 ac_cv_sys_largefile_CC
=' -n32'; break
4886 rm -f core conftest.err conftest.
$ac_objext
4890 rm -f conftest.
$ac_ext
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4894 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4895 if test "$ac_cv_sys_largefile_CC" != no
; then
4896 CC
=$CC$ac_cv_sys_largefile_CC
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4900 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4901 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4902 $as_echo_n "(cached) " >&6
4905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4906 /* end confdefs.h. */
4907 #include <sys/types.h>
4908 /* Check that off_t can represent 2**63 - 1 correctly.
4909 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4910 since some C++ compilers masquerading as C compilers
4911 incorrectly reject 9223372036854775807. */
4912 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4913 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4914 && LARGE_OFF_T % 2147483647 == 1)
4924 if ac_fn_c_try_compile
"$LINENO"; then :
4925 ac_cv_sys_file_offset_bits
=no
; break
4927 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4929 /* end confdefs.h. */
4930 #define _FILE_OFFSET_BITS 64
4931 #include <sys/types.h>
4932 /* Check that off_t can represent 2**63 - 1 correctly.
4933 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4934 since some C++ compilers masquerading as C compilers
4935 incorrectly reject 9223372036854775807. */
4936 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4937 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4938 && LARGE_OFF_T % 2147483647 == 1)
4948 if ac_fn_c_try_compile
"$LINENO"; then :
4949 ac_cv_sys_file_offset_bits
=64; break
4951 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4952 ac_cv_sys_file_offset_bits
=unknown
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4957 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4958 case $ac_cv_sys_file_offset_bits in #(
4961 cat >>confdefs.h
<<_ACEOF
4962 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4967 if test $ac_cv_sys_file_offset_bits = unknown
; then
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4969 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4970 if ${ac_cv_sys_large_files+:} false
; then :
4971 $as_echo_n "(cached) " >&6
4974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4975 /* end confdefs.h. */
4976 #include <sys/types.h>
4977 /* Check that off_t can represent 2**63 - 1 correctly.
4978 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4979 since some C++ compilers masquerading as C compilers
4980 incorrectly reject 9223372036854775807. */
4981 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4982 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4983 && LARGE_OFF_T % 2147483647 == 1)
4993 if ac_fn_c_try_compile
"$LINENO"; then :
4994 ac_cv_sys_large_files
=no
; break
4996 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4998 /* end confdefs.h. */
4999 #define _LARGE_FILES 1
5000 #include <sys/types.h>
5001 /* Check that off_t can represent 2**63 - 1 correctly.
5002 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5003 since some C++ compilers masquerading as C compilers
5004 incorrectly reject 9223372036854775807. */
5005 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5006 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5007 && LARGE_OFF_T % 2147483647 == 1)
5017 if ac_fn_c_try_compile
"$LINENO"; then :
5018 ac_cv_sys_large_files
=1; break
5020 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5021 ac_cv_sys_large_files
=unknown
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5026 $as_echo "$ac_cv_sys_large_files" >&6; }
5027 case $ac_cv_sys_large_files in #(
5030 cat >>confdefs.h
<<_ACEOF
5031 #define _LARGE_FILES $ac_cv_sys_large_files
5042 # Expand $ac_aux_dir to an absolute path.
5043 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
5045 if test x
"${install_sh+set}" != xset
; then
5048 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
5050 install_sh
="\${SHELL} $am_aux_dir/install-sh"
5054 # Installed binaries are usually stripped using 'strip' when the user
5055 # run "make install-strip". However 'strip' might not be the right
5056 # tool to use in cross-compilation environments, therefore Automake
5057 # will honor the 'STRIP' environment variable to overrule this program.
5058 if test "$cross_compiling" != no
; then
5059 if test -n "$ac_tool_prefix"; then
5060 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5061 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5063 $as_echo_n "checking for $ac_word... " >&6; }
5064 if ${ac_cv_prog_STRIP+:} false
; then :
5065 $as_echo_n "(cached) " >&6
5067 if test -n "$STRIP"; then
5068 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5070 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5074 test -z "$as_dir" && as_dir
=.
5075 for ac_exec_ext
in '' $ac_executable_extensions; do
5076 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5077 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5087 STRIP
=$ac_cv_prog_STRIP
5088 if test -n "$STRIP"; then
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5090 $as_echo "$STRIP" >&6; }
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5093 $as_echo "no" >&6; }
5098 if test -z "$ac_cv_prog_STRIP"; then
5100 # Extract the first word of "strip", so it can be a program name with args.
5101 set dummy strip
; ac_word
=$2
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5103 $as_echo_n "checking for $ac_word... " >&6; }
5104 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
5105 $as_echo_n "(cached) " >&6
5107 if test -n "$ac_ct_STRIP"; then
5108 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5110 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5114 test -z "$as_dir" && as_dir
=.
5115 for ac_exec_ext
in '' $ac_executable_extensions; do
5116 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5117 ac_cv_prog_ac_ct_STRIP
="strip"
5118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5127 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5128 if test -n "$ac_ct_STRIP"; then
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5130 $as_echo "$ac_ct_STRIP" >&6; }
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5133 $as_echo "no" >&6; }
5136 if test "x$ac_ct_STRIP" = x
; then
5139 case $cross_compiling:$ac_tool_warned in
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5143 ac_tool_warned
=yes ;;
5148 STRIP
="$ac_cv_prog_STRIP"
5152 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
5156 for ac_dir
in ..
"$srcdir"/..
; do
5157 if test -f "$ac_dir/install-sh"; then
5159 ac_install_sh
="$ac_aux_dir/install-sh -c"
5161 elif test -f "$ac_dir/install.sh"; then
5163 ac_install_sh
="$ac_aux_dir/install.sh -c"
5165 elif test -f "$ac_dir/shtool"; then
5167 ac_install_sh
="$ac_aux_dir/shtool install -c"
5171 if test -z "$ac_aux_dir"; then
5172 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
5175 # These three variables are undocumented and unsupported,
5176 # and are intended to be withdrawn in a future Autoconf release.
5177 # They can cause serious problems if a builder's source tree is in a directory
5178 # whose full name contains unusual characters.
5179 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5180 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5181 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5185 # Set build, build_cpu, build_vendor and build_os.
5188 # Set host, host_cpu, host_vendor, and host_os.
5191 # Set target, target_cpu, target_vendor, and target_os.
5194 case ${build_alias} in
5195 "") build_noncanonical
=${build} ;;
5196 *) build_noncanonical
=${build_alias} ;;
5199 case ${host_alias} in
5200 "") host_noncanonical
=${build_noncanonical} ;;
5201 *) host_noncanonical
=${host_alias} ;;
5204 case ${target_alias} in
5205 "") target_noncanonical
=${host_noncanonical} ;;
5206 *) target_noncanonical
=${target_alias} ;;
5212 test "$program_prefix" != NONE
&&
5213 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
5214 # Use a double $ so make ignores it.
5215 test "$program_suffix" != NONE
&&
5216 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
5217 # Double any \ or $.
5218 # By default was `s,x,x', remove it if useless.
5219 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
5220 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
5223 # We require a C++11 compiler. Check if one is available, and if
5224 # necessary, set CXX_DIALECT to some -std=xxx switch.
5226 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5228 ac_cpp
='$CXXCPP $CPPFLAGS'
5229 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5230 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5231 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5235 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5236 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5237 $as_echo_n "(cached) " >&6
5239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5240 /* end confdefs.h. */
5243 // If the compiler admits that it is not ready for C++11, why torture it?
5244 // Hopefully, this will speed up the test.
5248 #error "This is not a C++ compiler"
5250 #elif __cplusplus < 201103L
5252 #error "This is not a C++11 compiler"
5259 namespace test_static_assert
5262 template <typename T>
5265 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5270 namespace test_final_override
5278 struct Derived : public Base
5280 virtual void f() override {}
5285 namespace test_double_right_angle_brackets
5288 template < typename T >
5291 typedef check<void> single_type;
5292 typedef check<check<void>> double_type;
5293 typedef check<check<check<void>>> triple_type;
5294 typedef check<check<check<check<void>>>> quadruple_type;
5298 namespace test_decltype
5311 namespace test_type_deduction
5314 template < typename T1, typename T2 >
5317 static const bool value = false;
5320 template < typename T >
5321 struct is_same<T, T>
5323 static const bool value = true;
5326 template < typename T1, typename T2 >
5328 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5334 test(const int c, volatile int v)
5336 static_assert(is_same<int, decltype(0)>::value == true, "");
5337 static_assert(is_same<int, decltype(c)>::value == false, "");
5338 static_assert(is_same<int, decltype(v)>::value == false, "");
5341 auto sumi = ac + av + 'x';
5342 auto sumf = ac + av + 1.0;
5343 static_assert(is_same<int, decltype(ac)>::value == true, "");
5344 static_assert(is_same<int, decltype(av)>::value == true, "");
5345 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5346 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5347 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5348 return (sumf > 0.0) ? sumi : add(c, v);
5353 namespace test_noexcept
5356 int f() { return 0; }
5357 int g() noexcept { return 0; }
5359 static_assert(noexcept(f()) == false, "");
5360 static_assert(noexcept(g()) == true, "");
5364 namespace test_constexpr
5367 template < typename CharT >
5368 unsigned long constexpr
5369 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5371 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5374 template < typename CharT >
5375 unsigned long constexpr
5376 strlen_c(const CharT *const s) noexcept
5378 return strlen_c_r(s, 0UL);
5381 static_assert(strlen_c("") == 0UL, "");
5382 static_assert(strlen_c("1") == 1UL, "");
5383 static_assert(strlen_c("example") == 7UL, "");
5384 static_assert(strlen_c("another\0example") == 7UL, "");
5388 namespace test_rvalue_references
5394 static constexpr int value = N;
5397 answer<1> f(int&) { return answer<1>(); }
5398 answer<2> f(const int&) { return answer<2>(); }
5399 answer<3> f(int&&) { return answer<3>(); }
5406 static_assert(decltype(f(i))::value == 1, "");
5407 static_assert(decltype(f(c))::value == 2, "");
5408 static_assert(decltype(f(0))::value == 3, "");
5413 namespace test_uniform_initialization
5418 static const int zero {};
5419 static const int one {1};
5422 static_assert(test::zero == 0, "");
5423 static_assert(test::one == 1, "");
5427 namespace test_lambdas
5433 auto lambda1 = [](){};
5434 auto lambda2 = lambda1;
5442 auto a = [](int i, int j){ return i + j; }(1, 2);
5443 auto b = []() -> int { return '0'; }();
5444 auto c = [=](){ return a + b; }();
5445 auto d = [&](){ return c; }();
5446 auto e = [a, &b](int x) mutable {
5447 const auto identity = [](int y){ return y; };
5448 for (auto i = 0; i < a; ++i)
5450 return x + identity(a + b);
5452 return a + b + c + d + e;
5458 const auto nullary = [](){ return 0; };
5459 const auto unary = [](int x){ return x; };
5460 using nullary_t = decltype(nullary);
5461 using unary_t = decltype(unary);
5462 const auto higher1st = [](nullary_t f){ return f(); };
5463 const auto higher2nd = [unary](nullary_t f1){
5464 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5466 return higher1st(nullary) + higher2nd(nullary)(unary);
5471 namespace test_variadic_templates
5477 template <int N0, int... N1toN>
5478 struct sum<N0, N1toN...>
5480 static constexpr auto value = N0 + sum<N1toN...>::value;
5486 static constexpr auto value = 0;
5489 static_assert(sum<>::value == 0, "");
5490 static_assert(sum<1>::value == 1, "");
5491 static_assert(sum<23>::value == 23, "");
5492 static_assert(sum<1, 2>::value == 3, "");
5493 static_assert(sum<5, 5, 11>::value == 21, "");
5494 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5498 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5499 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5501 namespace test_template_alias_sfinae
5506 template<typename T>
5507 using member = typename T::member_type;
5509 template<typename T>
5512 template<typename T>
5513 void func(member<T>*) {}
5517 void test() { func<foo>(0); }
5521 } // namespace cxx11
5523 #endif // __cplusplus >= 201103L
5528 if ac_fn_cxx_try_compile
"$LINENO"; then :
5529 ax_cv_cxx_compile_cxx11
=yes
5531 ax_cv_cxx_compile_cxx11
=no
5533 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5536 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5537 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
5541 if test x
$ac_success = xno
; then
5542 for alternative
in ${ax_cxx_compile_alternatives}; do
5543 switch
="-std=gnu++${alternative}"
5544 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5546 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5547 if eval \
${$cachevar+:} false
; then :
5548 $as_echo_n "(cached) " >&6
5552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5553 /* end confdefs.h. */
5556 // If the compiler admits that it is not ready for C++11, why torture it?
5557 // Hopefully, this will speed up the test.
5561 #error "This is not a C++ compiler"
5563 #elif __cplusplus < 201103L
5565 #error "This is not a C++11 compiler"
5572 namespace test_static_assert
5575 template <typename T>
5578 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5583 namespace test_final_override
5591 struct Derived : public Base
5593 virtual void f() override {}
5598 namespace test_double_right_angle_brackets
5601 template < typename T >
5604 typedef check<void> single_type;
5605 typedef check<check<void>> double_type;
5606 typedef check<check<check<void>>> triple_type;
5607 typedef check<check<check<check<void>>>> quadruple_type;
5611 namespace test_decltype
5624 namespace test_type_deduction
5627 template < typename T1, typename T2 >
5630 static const bool value = false;
5633 template < typename T >
5634 struct is_same<T, T>
5636 static const bool value = true;
5639 template < typename T1, typename T2 >
5641 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5647 test(const int c, volatile int v)
5649 static_assert(is_same<int, decltype(0)>::value == true, "");
5650 static_assert(is_same<int, decltype(c)>::value == false, "");
5651 static_assert(is_same<int, decltype(v)>::value == false, "");
5654 auto sumi = ac + av + 'x';
5655 auto sumf = ac + av + 1.0;
5656 static_assert(is_same<int, decltype(ac)>::value == true, "");
5657 static_assert(is_same<int, decltype(av)>::value == true, "");
5658 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5659 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5660 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5661 return (sumf > 0.0) ? sumi : add(c, v);
5666 namespace test_noexcept
5669 int f() { return 0; }
5670 int g() noexcept { return 0; }
5672 static_assert(noexcept(f()) == false, "");
5673 static_assert(noexcept(g()) == true, "");
5677 namespace test_constexpr
5680 template < typename CharT >
5681 unsigned long constexpr
5682 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5684 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5687 template < typename CharT >
5688 unsigned long constexpr
5689 strlen_c(const CharT *const s) noexcept
5691 return strlen_c_r(s, 0UL);
5694 static_assert(strlen_c("") == 0UL, "");
5695 static_assert(strlen_c("1") == 1UL, "");
5696 static_assert(strlen_c("example") == 7UL, "");
5697 static_assert(strlen_c("another\0example") == 7UL, "");
5701 namespace test_rvalue_references
5707 static constexpr int value = N;
5710 answer<1> f(int&) { return answer<1>(); }
5711 answer<2> f(const int&) { return answer<2>(); }
5712 answer<3> f(int&&) { return answer<3>(); }
5719 static_assert(decltype(f(i))::value == 1, "");
5720 static_assert(decltype(f(c))::value == 2, "");
5721 static_assert(decltype(f(0))::value == 3, "");
5726 namespace test_uniform_initialization
5731 static const int zero {};
5732 static const int one {1};
5735 static_assert(test::zero == 0, "");
5736 static_assert(test::one == 1, "");
5740 namespace test_lambdas
5746 auto lambda1 = [](){};
5747 auto lambda2 = lambda1;
5755 auto a = [](int i, int j){ return i + j; }(1, 2);
5756 auto b = []() -> int { return '0'; }();
5757 auto c = [=](){ return a + b; }();
5758 auto d = [&](){ return c; }();
5759 auto e = [a, &b](int x) mutable {
5760 const auto identity = [](int y){ return y; };
5761 for (auto i = 0; i < a; ++i)
5763 return x + identity(a + b);
5765 return a + b + c + d + e;
5771 const auto nullary = [](){ return 0; };
5772 const auto unary = [](int x){ return x; };
5773 using nullary_t = decltype(nullary);
5774 using unary_t = decltype(unary);
5775 const auto higher1st = [](nullary_t f){ return f(); };
5776 const auto higher2nd = [unary](nullary_t f1){
5777 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5779 return higher1st(nullary) + higher2nd(nullary)(unary);
5784 namespace test_variadic_templates
5790 template <int N0, int... N1toN>
5791 struct sum<N0, N1toN...>
5793 static constexpr auto value = N0 + sum<N1toN...>::value;
5799 static constexpr auto value = 0;
5802 static_assert(sum<>::value == 0, "");
5803 static_assert(sum<1>::value == 1, "");
5804 static_assert(sum<23>::value == 23, "");
5805 static_assert(sum<1, 2>::value == 3, "");
5806 static_assert(sum<5, 5, 11>::value == 21, "");
5807 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5811 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5812 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5814 namespace test_template_alias_sfinae
5819 template<typename T>
5820 using member = typename T::member_type;
5822 template<typename T>
5825 template<typename T>
5826 void func(member<T>*) {}
5830 void test() { func<foo>(0); }
5834 } // namespace cxx11
5836 #endif // __cplusplus >= 201103L
5841 if ac_fn_cxx_try_compile
"$LINENO"; then :
5846 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5849 eval ac_res
=\$
$cachevar
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5851 $as_echo "$ac_res" >&6; }
5852 if eval test x\$
$cachevar = xyes
; then
5853 CXX_DIALECT
="$switch"
5855 if test -n "$CXXCPP" ; then
5856 CXXCPP
="$CXXCPP $switch"
5864 if test x
$ac_success = xno
; then
5865 for alternative
in ${ax_cxx_compile_alternatives}; do
5866 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5867 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
5869 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
5870 if eval \${$cachevar+:} false; then :
5871 $as_echo_n "(cached
) " >&6
5875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5876 /* end confdefs.h. */
5879 // If the compiler admits that it is not ready for C++11, why torture it?
5880 // Hopefully, this will speed up the test.
5884 #error "This is not a C
++ compiler
"
5886 #elif __cplusplus < 201103L
5888 #error "This is not a C
++11 compiler
"
5895 namespace test_static_assert
5898 template <typename T>
5901 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
5906 namespace test_final_override
5914 struct Derived : public Base
5916 virtual void f() override {}
5921 namespace test_double_right_angle_brackets
5924 template < typename T >
5927 typedef check<void> single_type;
5928 typedef check<check<void>> double_type;
5929 typedef check<check<check<void>>> triple_type;
5930 typedef check<check<check<check<void>>>> quadruple_type;
5934 namespace test_decltype
5947 namespace test_type_deduction
5950 template < typename T1, typename T2 >
5953 static const bool value = false;
5956 template < typename T >
5957 struct is_same<T, T>
5959 static const bool value = true;
5962 template < typename T1, typename T2 >
5964 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5970 test(const int c, volatile int v)
5972 static_assert(is_same<int, decltype(0)>::value == true, "");
5973 static_assert(is_same<int, decltype(c)>::value == false, "");
5974 static_assert(is_same<int, decltype(v)>::value == false, "");
5977 auto sumi = ac + av + 'x';
5978 auto sumf = ac + av + 1.0;
5979 static_assert(is_same<int, decltype(ac)>::value == true, "");
5980 static_assert(is_same<int, decltype(av)>::value == true, "");
5981 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5982 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5983 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5984 return (sumf > 0.0) ? sumi : add(c, v);
5989 namespace test_noexcept
5992 int f() { return 0; }
5993 int g() noexcept { return 0; }
5995 static_assert(noexcept(f()) == false, "");
5996 static_assert(noexcept(g()) == true, "");
6000 namespace test_constexpr
6003 template < typename CharT >
6004 unsigned long constexpr
6005 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6007 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6010 template < typename CharT >
6011 unsigned long constexpr
6012 strlen_c(const CharT *const s) noexcept
6014 return strlen_c_r(s, 0UL);
6017 static_assert(strlen_c("") == 0UL, "");
6018 static_assert(strlen_c("1") == 1UL, "");
6019 static_assert(strlen_c("example
") == 7UL, "");
6020 static_assert(strlen_c("another\
0example
") == 7UL, "");
6024 namespace test_rvalue_references
6030 static constexpr int value = N;
6033 answer<1> f(int&) { return answer<1>(); }
6034 answer<2> f(const int&) { return answer<2>(); }
6035 answer<3> f(int&&) { return answer<3>(); }
6042 static_assert(decltype(f(i))::value == 1, "");
6043 static_assert(decltype(f(c))::value == 2, "");
6044 static_assert(decltype(f(0))::value == 3, "");
6049 namespace test_uniform_initialization
6054 static const int zero {};
6055 static const int one {1};
6058 static_assert(test::zero == 0, "");
6059 static_assert(test::one == 1, "");
6063 namespace test_lambdas
6069 auto lambda1 = [](){};
6070 auto lambda2 = lambda1;
6078 auto a = [](int i, int j){ return i + j; }(1, 2);
6079 auto b = []() -> int { return '0'; }();
6080 auto c = [=](){ return a + b; }();
6081 auto d = [&](){ return c; }();
6082 auto e = [a, &b](int x) mutable {
6083 const auto identity = [](int y){ return y; };
6084 for (auto i = 0; i < a; ++i)
6086 return x + identity(a + b);
6088 return a + b + c + d + e;
6094 const auto nullary = [](){ return 0; };
6095 const auto unary = [](int x){ return x; };
6096 using nullary_t = decltype(nullary);
6097 using unary_t = decltype(unary);
6098 const auto higher1st = [](nullary_t f){ return f(); };
6099 const auto higher2nd = [unary](nullary_t f1){
6100 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6102 return higher1st(nullary) + higher2nd(nullary)(unary);
6107 namespace test_variadic_templates
6113 template <int N0, int... N1toN>
6114 struct sum<N0, N1toN...>
6116 static constexpr auto value = N0 + sum<N1toN...>::value;
6122 static constexpr auto value = 0;
6125 static_assert(sum<>::value == 0, "");
6126 static_assert(sum<1>::value == 1, "");
6127 static_assert(sum<23>::value == 23, "");
6128 static_assert(sum<1, 2>::value == 3, "");
6129 static_assert(sum<5, 5, 11>::value == 21, "");
6130 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6134 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6135 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6137 namespace test_template_alias_sfinae
6142 template<typename T>
6143 using member = typename T::member_type;
6145 template<typename T>
6148 template<typename T>
6149 void func(member<T>*) {}
6153 void test() { func<foo>(0); }
6157 } // namespace cxx11
6159 #endif // __cplusplus >= 201103L
6164 if ac_fn_cxx_try_compile "$LINENO"; then :
6169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6172 eval ac_res=\$$cachevar
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6174 $as_echo "$ac_res" >&6; }
6175 if eval test x\$$cachevar = xyes; then
6176 CXX_DIALECT="$switch"
6178 if test -n "$CXXCPP" ; then
6179 CXXCPP="$CXXCPP $switch"
6185 if test x$ac_success = xyes; then
6191 ac_cpp='$CPP $CPPFLAGS'
6192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6196 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6197 if test x$ac_success = xno; then
6198 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6201 if test x$ac_success = xno; then
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6204 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6208 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6215 # Dependency checking.
6216 rm -rf .tst
2>/dev
/null
6217 mkdir .tst
2>/dev
/null
6218 if test -d .tst
; then
6223 rmdir .tst
2>/dev
/null
6225 DEPDIR
="${am__leading_dot}deps"
6227 ac_config_commands
="$ac_config_commands depdir"
6230 depcc
="$CC" am_compiler_list
=
6232 am_depcomp
=$ac_aux_dir/depcomp
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6234 $as_echo_n "checking dependency style of $depcc... " >&6; }
6235 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
6236 $as_echo_n "(cached) " >&6
6238 if test -f "$am_depcomp"; then
6239 # We make a subdir and do the tests there. Otherwise we can end up
6240 # making bogus files that we don't know about and never remove. For
6241 # instance it was reported that on HP-UX the gcc test will end up
6242 # making a dummy file named `D' -- because `-MD' means `put the output
6245 # Copy depcomp to subdir because otherwise we won't find it if we're
6246 # using a relative directory.
6247 cp "$am_depcomp" conftest.dir
6249 # We will build objects and dependencies in a subdirectory because
6250 # it helps to detect inapplicable dependency modes. For instance
6251 # both Tru64's cc and ICC support -MD to output dependencies as a
6252 # side effect of compilation, but ICC will put the dependencies in
6253 # the current directory while Tru64 will put them in the object
6257 am_cv_CC_dependencies_compiler_type
=none
6258 if test "$am_compiler_list" = ""; then
6259 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6261 for depmode
in $am_compiler_list; do
6262 if test $depmode = none
; then break; fi
6264 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6265 # Setup a source with many dependencies, because some compilers
6266 # like to wrap large dependency lists on column 80 (with \), and
6267 # we should not choose a depcomp mode which is confused by this.
6269 # We need to recreate these files for each test, as the compiler may
6270 # overwrite some of them when testing with obscure command lines.
6271 # This happens at least with the AIX C compiler.
6273 for i
in 1 2 3 4 5 6; do
6274 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6275 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6276 # Solaris 8's {/usr,}/bin/sh.
6277 touch sub
/conftst
$i.h
6279 echo "include sub/conftest.Po" > confmf
6281 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6282 # mode. It turns out that the SunPro C++ compiler does not properly
6283 # handle `-M -o', and we need to detect this.
6284 depcmd
="depmode=$depmode \
6285 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6286 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6287 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6288 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
6289 if env
$depcmd > conftest.err
2>&1 &&
6290 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
6291 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
6292 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
6293 # icc doesn't choke on unknown options, it will just issue warnings
6294 # or remarks (even with -Werror). So we grep stderr for any message
6295 # that says an option was ignored or not supported.
6296 # When given -MP, icc 7.0 and 7.1 complain thusly:
6297 # icc: Command line warning: ignoring option '-M'; no argument required
6298 # The diagnosis changed in icc 8.0:
6299 # icc: Command line remark: option '-MP' not supported
6300 if (grep 'ignoring option' conftest.err ||
6301 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6302 am_cv_CC_dependencies_compiler_type
=$depmode
6303 $as_echo "$as_me:$LINENO: success" >&5
6307 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6308 sed -e 's/^/| /' < conftest.err
>&5
6314 am_cv_CC_dependencies_compiler_type
=none
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6319 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6320 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
6321 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
6322 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
6338 # If we haven't got the data from the intl directory,
6339 # assume NLS is disabled.
6348 if test -f ..
/intl
/config.intl
; then
6349 . ..
/intl
/config.intl
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6352 $as_echo_n "checking whether NLS is requested... " >&6; }
6353 if test x
"$USE_NLS" != xyes
; then
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6355 $as_echo "no" >&6; }
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6358 $as_echo "yes" >&6; }
6360 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6364 $as_echo_n "checking for catalogs to be installed... " >&6; }
6365 # Look for .po and .gmo files in the source directory.
6368 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
6369 # If there aren't any .gmo files the shell will give us the
6370 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6372 case "$cat" in *\
**)
6375 # The quadruple backslash is collapsed to a double backslash
6376 # by the backticks, then collapsed again by the double quotes,
6377 # leaving us with one backslash in the sed expression (right
6378 # before the dot that mustn't act as a wildcard).
6379 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6380 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
6381 # The user is allowed to set LINGUAS to a list of languages to
6382 # install catalogs for. If it's empty that means "all of them."
6383 if test "x$LINGUAS" = x
; then
6384 CATALOGS
="$CATALOGS $cat"
6385 XLINGUAS
="$XLINGUAS $lang"
6387 case "$LINGUAS" in *$lang*)
6388 CATALOGS
="$CATALOGS $cat"
6389 XLINGUAS
="$XLINGUAS $lang"
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6396 $as_echo "$LINGUAS" >&6; }
6409 localedir
='${datadir}/locale'
6412 if test x
"$USE_NLS" = xyes
; then
6413 CONFIG_ALL
="$CONFIG_ALL all-po"
6414 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
6415 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
6416 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
6421 cat >>confdefs.h
<<_ACEOF
6422 #define PACKAGE "$PACKAGE"
6427 # We never need to detect it in this sub-configure.
6428 # But preserve it for config.status --recheck.
6432 MAKEINFO_EXTRA_FLAGS
=""
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
6434 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
6435 if ${gdb_cv_have_makeinfo_click+:} false
; then :
6436 $as_echo_n "(cached) " >&6
6438 echo '@clicksequence{a @click{} b}' >conftest.texinfo
6439 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
6440 gdb_cv_have_makeinfo_click
=yes
6442 gdb_cv_have_makeinfo_click
=no
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
6446 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
6447 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
6448 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
6454 # Check whether --with-separate-debug-dir was given.
6455 if test "${with_separate_debug_dir+set}" = set; then :
6456 withval
=$with_separate_debug_dir;
6459 DEBUGDIR
=${libdir}/debug
6463 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6464 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6465 ac_define_dir
=`eval echo $DEBUGDIR`
6466 ac_define_dir
=`eval echo $ac_define_dir`
6468 cat >>confdefs.h
<<_ACEOF
6469 #define DEBUGDIR "$ac_define_dir"
6475 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6476 if test "x$prefix" = xNONE
; then
6477 test_prefix
=/usr
/local
6482 test_prefix
=$exec_prefix
6485 case ${ac_define_dir} in
6486 "${test_prefix}"|
"${test_prefix}/"*|\
6487 '${exec_prefix}'|
'${exec_prefix}/'*)
6492 cat >>confdefs.h
<<_ACEOF
6493 #define DEBUGDIR_RELOCATABLE $value
6499 # We can't pass paths as command line arguments.
6500 # Mingw32 tries to be clever and will convert the paths for us.
6501 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
6502 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
6503 # This breaks GDB's relocatable path conversions since paths passed in
6504 # config.h would not get so translated, the path prefixes no longer match.
6506 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6507 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6508 ac_define_dir
=`eval echo $bindir`
6509 ac_define_dir
=`eval echo $ac_define_dir`
6511 cat >>confdefs.h
<<_ACEOF
6512 #define BINDIR "$ac_define_dir"
6517 # GDB's datadir relocation
6521 # Check whether --with-gdb-datadir was given.
6522 if test "${with_gdb_datadir+set}" = set; then :
6523 withval
=$with_gdb_datadir;
6524 GDB_DATADIR
=$withval
6526 GDB_DATADIR
=${datadir}/gdb
6530 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6531 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6532 ac_define_dir
=`eval echo $GDB_DATADIR`
6533 ac_define_dir
=`eval echo $ac_define_dir`
6535 cat >>confdefs.h
<<_ACEOF
6536 #define GDB_DATADIR "$ac_define_dir"
6542 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6543 if test "x$prefix" = xNONE
; then
6544 test_prefix
=/usr
/local
6549 test_prefix
=$exec_prefix
6552 case ${ac_define_dir} in
6553 "${test_prefix}"|
"${test_prefix}/"*|\
6554 '${exec_prefix}'|
'${exec_prefix}/'*)
6559 cat >>confdefs.h
<<_ACEOF
6560 #define GDB_DATADIR_RELOCATABLE $value
6567 # Check whether --with-relocated-sources was given.
6568 if test "${with_relocated_sources+set}" = set; then :
6569 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
6571 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6572 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6573 ac_define_dir
=`eval echo $reloc_srcdir`
6574 ac_define_dir
=`eval echo $ac_define_dir`
6576 cat >>confdefs.h
<<_ACEOF
6577 #define RELOC_SRCDIR "$ac_define_dir"
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
6586 $as_echo_n "checking for default auto-load directory... " >&6; }
6588 # Check whether --with-auto-load-dir was given.
6589 if test "${with_auto_load_dir+set}" = set; then :
6590 withval
=$with_auto_load_dir;
6592 with_auto_load_dir
='$debugdir:$datadir/auto-load'
6595 escape_dir
=`echo $with_auto_load_dir | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6597 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6598 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6599 ac_define_dir
=`eval echo $escape_dir`
6600 ac_define_dir
=`eval echo $ac_define_dir`
6602 cat >>confdefs.h
<<_ACEOF
6603 #define AUTO_LOAD_DIR "$ac_define_dir"
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
6608 $as_echo "$with_auto_load_dir" >&6; }
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
6611 $as_echo_n "checking for default auto-load safe-path... " >&6; }
6613 # Check whether --with-auto-load-safe-path was given.
6614 if test "${with_auto_load_safe_path+set}" = set; then :
6615 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
6616 with_auto_load_safe_path
="/"
6619 with_auto_load_safe_path
="$with_auto_load_dir"
6622 escape_dir
=`echo $with_auto_load_safe_path | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6624 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6625 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6626 ac_define_dir
=`eval echo $escape_dir`
6627 ac_define_dir
=`eval echo $ac_define_dir`
6629 cat >>confdefs.h
<<_ACEOF
6630 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
6635 $as_echo "$with_auto_load_safe_path" >&6; }
6639 subdirs
="$subdirs testsuite"
6642 # Check whether to support alternative target configurations
6643 # Check whether --enable-targets was given.
6644 if test "${enable_targets+set}" = set; then :
6645 enableval
=$enable_targets; case "${enableval}" in
6646 yes |
"") as_fn_error $?
"enable-targets option must specify target names or 'all'" "$LINENO" 5
6648 no
) enable_targets
= ;;
6649 *) enable_targets
=$enableval ;;
6654 # Check whether --enable-64-bit-bfd was given.
6655 if test "${enable_64_bit_bfd+set}" = set; then :
6656 enableval
=$enable_64_bit_bfd; case $enableval in #(
6660 as_fn_error $?
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; #(
6665 enable_64_bit_bfd
=no
6669 if test "x$enable_64_bit_bfd" = "xno"; then :
6670 # The cast to long int works around a bug in the HP C Compiler
6671 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6672 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6673 # This bug is HP SR number 8606223364.
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6675 $as_echo_n "checking size of void *... " >&6; }
6676 if ${ac_cv_sizeof_void_p+:} false
; then :
6677 $as_echo_n "(cached) " >&6
6679 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6682 if test "$ac_cv_type_void_p" = yes; then
6683 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6685 as_fn_error
77 "cannot compute sizeof (void *)
6686 See \`config.log' for more details" "$LINENO" 5; }
6688 ac_cv_sizeof_void_p
=0
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6694 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6698 cat >>confdefs.h
<<_ACEOF
6699 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6703 if test "x$ac_cv_sizeof_void_p" = "x8"; then :
6704 enable_64_bit_bfd
=yes
6709 if test "x$enable_64_bit_bfd" = "xyes"; then
6710 ENABLE_BFD_64_BIT_TRUE
=
6711 ENABLE_BFD_64_BIT_FALSE
='#'
6713 ENABLE_BFD_64_BIT_TRUE
='#'
6714 ENABLE_BFD_64_BIT_FALSE
=
6719 # Provide defaults for some variables set by the per-host and per-target
6721 gdb_host_obs
=posix-hdep.o
6723 if test "${target}" = "${host}"; then
6729 .
$srcdir/configure.
host
6731 # Accumulate some settings from configure.tgt over all enabled targets
6735 HAVE_NATIVE_GCORE_TARGET
=
6737 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6739 if test "$targ_alias" = "all"; then
6742 # Canonicalize the secondary target names.
6743 result
=`$ac_config_sub $targ_alias 2>/dev/null`
6744 if test -n "$result"; then
6750 .
${srcdir}/configure.tgt
6752 if test -z "${gdb_target_obs}"; then :
6753 as_fn_error $?
"configuration ${targ} is unsupported." "$LINENO" 5
6756 # Target-specific object files
6757 for i
in ${gdb_target_obs}; do
6758 case " $TARGET_OBS " in
6761 TARGET_OBS
="$TARGET_OBS ${i}"
6766 # Check whether this target needs 64-bit CORE_ADDR
6767 if test x
${enable_64_bit_bfd} = xno
; then
6768 .
${srcdir}/..
/bfd
/config.bfd
6771 # Check whether this target is native and supports gcore.
6772 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
6773 && $gdb_have_gcore; then
6774 HAVE_NATIVE_GCORE_TARGET
=1
6779 if test x
${all_targets} = xtrue
; then
6780 if test x
${enable_64_bit_bfd} = xyes
; then
6781 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
6783 TARGET_OBS
='$(ALL_TARGET_OBS)'
6790 # For other settings, only the main target counts.
6793 targ
=$target; .
${srcdir}/configure.tgt
6795 # Fetch the default architecture and default target vector from BFD.
6796 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
6798 # We only want the first architecture, so strip off the others if
6799 # there is more than one.
6800 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
6802 if test "x$targ_archs" != x
; then
6804 cat >>confdefs.h
<<_ACEOF
6805 #define DEFAULT_BFD_ARCH $targ_archs
6809 if test "x$targ_defvec" != x
; then
6811 cat >>confdefs.h
<<_ACEOF
6812 #define DEFAULT_BFD_VEC $targ_defvec
6818 # Check whether --enable-gdbmi was given.
6819 if test "${enable_gdbmi+set}" = set; then :
6820 enableval
=$enable_gdbmi; case $enableval in
6824 as_fn_error $?
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
6830 if test x
"$enable_gdbmi" = xyes
; then
6831 if test -d "$srcdir/mi"; then
6832 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6833 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6834 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6835 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6840 # Check whether --enable-tui was given.
6841 if test "${enable_tui+set}" = set; then :
6842 enableval
=$enable_tui; case $enableval in
6846 as_fn_error $?
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
6854 # Check whether --enable-gdbtk was given.
6855 if test "${enable_gdbtk+set}" = set; then :
6856 enableval
=$enable_gdbtk; case $enableval in
6860 as_fn_error $?
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
6863 if test -d "$srcdir/gdbtk"; then
6870 # We unconditionally disable gdbtk tests on selected platforms.
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
6874 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6878 # Handle optional debuginfod support
6886 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6887 if test -n "$ac_tool_prefix"; then
6888 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6889 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6891 $as_echo_n "checking for $ac_word... " >&6; }
6892 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
6893 $as_echo_n "(cached) " >&6
6897 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6900 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6904 test -z "$as_dir" && as_dir
=.
6905 for ac_exec_ext
in '' $ac_executable_extensions; do
6906 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6907 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6918 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6919 if test -n "$PKG_CONFIG"; then
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6921 $as_echo "$PKG_CONFIG" >&6; }
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6924 $as_echo "no" >&6; }
6929 if test -z "$ac_cv_path_PKG_CONFIG"; then
6930 ac_pt_PKG_CONFIG
=$PKG_CONFIG
6931 # Extract the first word of "pkg-config", so it can be a program name with args.
6932 set dummy pkg-config
; ac_word
=$2
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6934 $as_echo_n "checking for $ac_word... " >&6; }
6935 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
6936 $as_echo_n "(cached) " >&6
6938 case $ac_pt_PKG_CONFIG in
6940 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6943 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6947 test -z "$as_dir" && as_dir
=.
6948 for ac_exec_ext
in '' $ac_executable_extensions; do
6949 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6950 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6961 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
6962 if test -n "$ac_pt_PKG_CONFIG"; then
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6964 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6967 $as_echo "no" >&6; }
6970 if test "x$ac_pt_PKG_CONFIG" = x
; then
6973 case $cross_compiling:$ac_tool_warned in
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6976 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6977 ac_tool_warned
=yes ;;
6979 PKG_CONFIG
=$ac_pt_PKG_CONFIG
6982 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
6986 if test -n "$PKG_CONFIG"; then
6987 _pkg_min_version
=0.9.0
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6989 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6990 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6992 $as_echo "yes" >&6; }
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6995 $as_echo "no" >&6; }
7000 # Handle optional debuginfod support
7002 # Check whether --with-debuginfod was given.
7003 if test "${with_debuginfod+set}" = set; then :
7004 withval
=$with_debuginfod;
7006 with_debuginfod
=auto
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
7010 $as_echo_n "checking whether to use debuginfod... " >&6; }
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
7012 $as_echo "$with_debuginfod" >&6; }
7014 if test "x$with_debuginfod" != xno
; then
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
7018 $as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
7020 if test -n "$DEBUGINFOD_CFLAGS"; then
7021 pkg_cv_DEBUGINFOD_CFLAGS
="$DEBUGINFOD_CFLAGS"
7022 elif test -n "$PKG_CONFIG"; then
7023 if test -n "$PKG_CONFIG" && \
7024 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
7025 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
7027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7028 test $ac_status = 0; }; then
7029 pkg_cv_DEBUGINFOD_CFLAGS
=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
7030 test "x$?" != "x0" && pkg_failed
=yes
7037 if test -n "$DEBUGINFOD_LIBS"; then
7038 pkg_cv_DEBUGINFOD_LIBS
="$DEBUGINFOD_LIBS"
7039 elif test -n "$PKG_CONFIG"; then
7040 if test -n "$PKG_CONFIG" && \
7041 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
7042 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
7044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7045 test $ac_status = 0; }; then
7046 pkg_cv_DEBUGINFOD_LIBS
=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
7047 test "x$?" != "x0" && pkg_failed
=yes
7055 if test $pkg_failed = no
; then
7056 pkg_save_LDFLAGS
="$LDFLAGS"
7057 LDFLAGS
="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
7058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7059 /* end confdefs.h. */
7069 if ac_fn_c_try_link
"$LINENO"; then :
7074 rm -f core conftest.err conftest.
$ac_objext \
7075 conftest
$ac_exeext conftest.
$ac_ext
7076 LDFLAGS
=$pkg_save_LDFLAGS
7081 if test $pkg_failed = yes; then
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7083 $as_echo "no" >&6; }
7085 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7086 _pkg_short_errors_supported
=yes
7088 _pkg_short_errors_supported
=no
7090 if test $_pkg_short_errors_supported = yes; then
7091 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
7093 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
7095 # Put the nasty error message in config.log where it belongs
7096 echo "$DEBUGINFOD_PKG_ERRORS" >&5
7098 if test "x$with_debuginfod" = xyes
; then
7099 as_fn_error $?
"\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
7102 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
7104 elif test $pkg_failed = untried
; then
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7106 $as_echo "no" >&6; }
7107 if test "x$with_debuginfod" = xyes
; then
7108 as_fn_error $?
"\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
7111 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
7114 DEBUGINFOD_CFLAGS
=$pkg_cv_DEBUGINFOD_CFLAGS
7115 DEBUGINFOD_LIBS
=$pkg_cv_DEBUGINFOD_LIBS
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7117 $as_echo "yes" >&6; }
7119 $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
7124 $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
7128 # Libunwind support for ia64.
7130 # Check whether --with-libunwind-ia64 was given.
7131 if test "${with_libunwind_ia64+set}" = set; then :
7132 withval
=$with_libunwind_ia64;
7134 with_libunwind_ia64
=auto
7138 # Backward compatibility option.
7139 if test "${with_libunwind+set}" = set; then
7140 if test x
"$with_libunwind_ia64" != xauto
; then
7141 as_fn_error $?
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
7144 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
7145 with_libunwind_ia64
="$with_libunwind"
7148 case "$with_libunwind_ia64" in
7152 for ac_header
in libunwind-ia64.h
7154 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
7155 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
7156 cat >>confdefs.h
<<_ACEOF
7157 #define HAVE_LIBUNWIND_IA64_H 1
7164 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
7167 as_fn_error $?
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
7171 if test x
"$with_libunwind_ia64" = xyes
; then
7172 for ac_header
in libunwind-ia64.h
7174 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
7175 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
7176 cat >>confdefs.h
<<_ACEOF
7177 #define HAVE_LIBUNWIND_IA64_H 1
7184 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
7185 as_fn_error $?
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
7187 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
7188 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
7189 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
7194 # Check whether --with-curses was given.
7195 if test "${with_curses+set}" = set; then :
7196 withval
=$with_curses; opt_curses
=$withval
7201 if test "$opt_curses" = "yes"; then
7205 # Profiling support.
7206 # Check whether --enable-profiling was given.
7207 if test "${enable_profiling+set}" = set; then :
7208 enableval
=$enable_profiling; case $enableval in
7212 as_fn_error $?
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
7219 for ac_func
in monstartup _mcleanup
7221 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7222 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7223 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7224 cat >>confdefs.h
<<_ACEOF
7225 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
7232 $as_echo_n "checking for _etext... " >&6; }
7233 if ${ac_cv_var__etext+:} false
; then :
7234 $as_echo_n "(cached) " >&6
7236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7237 /* end confdefs.h. */
7249 if ac_fn_c_try_link
"$LINENO"; then :
7250 ac_cv_var__etext
=yes
7255 rm -f core conftest.err conftest.
$ac_objext \
7256 conftest
$ac_exeext conftest.
$ac_ext
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
7260 $as_echo "$ac_cv_var__etext" >&6; }
7261 if test "$ac_cv_var__etext" = yes; then
7263 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
7267 $as_echo_n "checking for etext... " >&6; }
7268 if ${ac_cv_var_etext+:} false
; then :
7269 $as_echo_n "(cached) " >&6
7271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7272 /* end confdefs.h. */
7284 if ac_fn_c_try_link
"$LINENO"; then :
7290 rm -f core conftest.err conftest.
$ac_objext \
7291 conftest
$ac_exeext conftest.
$ac_ext
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
7295 $as_echo "$ac_cv_var_etext" >&6; }
7296 if test "$ac_cv_var_etext" = yes; then
7298 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
7301 if test "$enable_profiling" = yes ; then
7302 if test "$ac_cv_func_monstartup" = no ||
test "$ac_cv_func__mcleanup" = no
; then
7303 as_fn_error $?
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
7306 OLD_CFLAGS
="$CFLAGS"
7307 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
7310 $as_echo_n "checking whether $CC supports -pg... " >&6; }
7311 if ${ac_cv_cc_supports_pg+:} false
; then :
7312 $as_echo_n "(cached) " >&6
7314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7315 /* end confdefs.h. */
7325 if ac_fn_c_try_compile
"$LINENO"; then :
7326 ac_cv_cc_supports_pg
=yes
7328 ac_cv_cc_supports_pg
=no
7331 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
7335 $as_echo "$ac_cv_cc_supports_pg" >&6; }
7337 if test "$ac_cv_cc_supports_pg" = no
; then
7338 as_fn_error $?
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
7341 CFLAGS
="$OLD_CFLAGS"
7345 # Check whether --enable-codesign was given.
7346 if test "${enable_codesign+set}" = set; then :
7347 enableval
=$enable_codesign; CODESIGN_CERT
=$enableval
7354 # Check whether --with-pkgversion was given.
7355 if test "${with_pkgversion+set}" = set; then :
7356 withval
=$with_pkgversion; case "$withval" in
7357 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
7359 *) PKGVERSION
="($withval) " ;;
7370 # Check whether --with-bugurl was given.
7371 if test "${with_bugurl+set}" = set; then :
7372 withval
=$with_bugurl; case "$withval" in
7373 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
7376 *) BUGURL
="$withval"
7380 BUGURL
="https://www.gnu.org/software/gdb/bugs/"
7390 REPORT_BUGS_TO
="<$BUGURL>"
7391 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7398 cat >>confdefs.h
<<_ACEOF
7399 #define PKGVERSION "$PKGVERSION"
7403 cat >>confdefs.h
<<_ACEOF
7404 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7408 # --------------------- #
7409 # Checks for programs. #
7410 # --------------------- #
7412 for ac_prog
in gawk mawk nawk
awk
7414 # Extract the first word of "$ac_prog", so it can be a program name with args.
7415 set dummy
$ac_prog; ac_word
=$2
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7417 $as_echo_n "checking for $ac_word... " >&6; }
7418 if ${ac_cv_prog_AWK+:} false
; then :
7419 $as_echo_n "(cached) " >&6
7421 if test -n "$AWK"; then
7422 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7424 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7428 test -z "$as_dir" && as_dir
=.
7429 for ac_exec_ext
in '' $ac_executable_extensions; do
7430 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7431 ac_cv_prog_AWK
="$ac_prog"
7432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7442 if test -n "$AWK"; then
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7444 $as_echo "$AWK" >&6; }
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7447 $as_echo "no" >&6; }
7451 test -n "$AWK" && break
7454 # Find a good install program. We prefer a C program (faster),
7455 # so one script is as good as another. But avoid the broken or
7456 # incompatible versions:
7457 # SysV /etc/install, /usr/sbin/install
7458 # SunOS /usr/etc/install
7459 # IRIX /sbin/install
7461 # AmigaOS /C/install, which installs bootblocks on floppy discs
7462 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7463 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7464 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7465 # OS/2's system install, which has a completely different semantic
7466 # ./install, which can be erroneously created by make from ./install.sh.
7467 # Reject install programs that cannot install multiple files.
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7469 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7470 if test -z "$INSTALL"; then
7471 if ${ac_cv_path_install+:} false
; then :
7472 $as_echo_n "(cached) " >&6
7474 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7478 test -z "$as_dir" && as_dir
=.
7479 # Account for people who put trailing slashes in PATH elements.
7480 case $as_dir/ in #((
7481 .
/ | .
// |
/[cC
]/* | \
7482 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7483 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
7486 # OSF1 and SCO ODT 3.0 have their own names for install.
7487 # Don't use installbsd from OSF since it installs stuff as root
7489 for ac_prog
in ginstall scoinst
install; do
7490 for ac_exec_ext
in '' $ac_executable_extensions; do
7491 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
7492 if test $ac_prog = install &&
7493 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7494 # AIX install. It has an incompatible calling convention.
7496 elif test $ac_prog = install &&
7497 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7498 # program-specific install script used by HP pwplus--don't use.
7501 rm -rf conftest.one conftest.two conftest.dir
7502 echo one
> conftest.one
7503 echo two
> conftest.two
7505 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
7506 test -s conftest.one
&& test -s conftest.two
&&
7507 test -s conftest.dir
/conftest.one
&&
7508 test -s conftest.dir
/conftest.two
7510 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7523 rm -rf conftest.one conftest.two conftest.dir
7526 if test "${ac_cv_path_install+set}" = set; then
7527 INSTALL
=$ac_cv_path_install
7529 # As a last resort, use the slow shell script. Don't cache a
7530 # value for INSTALL within a source directory, because that will
7531 # break other packages using the cache if that directory is
7532 # removed, or if the value is a relative name.
7533 INSTALL
=$ac_install_sh
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7537 $as_echo "$INSTALL" >&6; }
7539 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7540 # It thinks the first close brace ends the variable substitution.
7541 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7543 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7545 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7548 $as_echo_n "checking whether ln -s works... " >&6; }
7550 if test "$LN_S" = "ln -s"; then
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7552 $as_echo "yes" >&6; }
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7555 $as_echo "no, using $LN_S" >&6; }
7558 if test -n "$ac_tool_prefix"; then
7559 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7560 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7562 $as_echo_n "checking for $ac_word... " >&6; }
7563 if ${ac_cv_prog_RANLIB+:} false
; then :
7564 $as_echo_n "(cached) " >&6
7566 if test -n "$RANLIB"; then
7567 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7569 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7573 test -z "$as_dir" && as_dir
=.
7574 for ac_exec_ext
in '' $ac_executable_extensions; do
7575 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7576 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7586 RANLIB
=$ac_cv_prog_RANLIB
7587 if test -n "$RANLIB"; then
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7589 $as_echo "$RANLIB" >&6; }
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7592 $as_echo "no" >&6; }
7597 if test -z "$ac_cv_prog_RANLIB"; then
7598 ac_ct_RANLIB
=$RANLIB
7599 # Extract the first word of "ranlib", so it can be a program name with args.
7600 set dummy ranlib
; ac_word
=$2
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7602 $as_echo_n "checking for $ac_word... " >&6; }
7603 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
7604 $as_echo_n "(cached) " >&6
7606 if test -n "$ac_ct_RANLIB"; then
7607 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7609 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7613 test -z "$as_dir" && as_dir
=.
7614 for ac_exec_ext
in '' $ac_executable_extensions; do
7615 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7616 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7626 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7627 if test -n "$ac_ct_RANLIB"; then
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7629 $as_echo "$ac_ct_RANLIB" >&6; }
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7632 $as_echo "no" >&6; }
7635 if test "x$ac_ct_RANLIB" = x
; then
7638 case $cross_compiling:$ac_tool_warned in
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7642 ac_tool_warned
=yes ;;
7644 RANLIB
=$ac_ct_RANLIB
7647 RANLIB
="$ac_cv_prog_RANLIB"
7650 for ac_prog
in 'bison -y' byacc
7652 # Extract the first word of "$ac_prog", so it can be a program name with args.
7653 set dummy
$ac_prog; ac_word
=$2
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7655 $as_echo_n "checking for $ac_word... " >&6; }
7656 if ${ac_cv_prog_YACC+:} false
; then :
7657 $as_echo_n "(cached) " >&6
7659 if test -n "$YACC"; then
7660 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
7662 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7666 test -z "$as_dir" && as_dir
=.
7667 for ac_exec_ext
in '' $ac_executable_extensions; do
7668 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7669 ac_cv_prog_YACC
="$ac_prog"
7670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7679 YACC
=$ac_cv_prog_YACC
7680 if test -n "$YACC"; then
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7682 $as_echo "$YACC" >&6; }
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7685 $as_echo "no" >&6; }
7689 test -n "$YACC" && break
7691 test -n "$YACC" || YACC
="yacc"
7694 if test -n "$ac_tool_prefix"; then
7695 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7696 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7698 $as_echo_n "checking for $ac_word... " >&6; }
7699 if ${ac_cv_prog_AR+:} false
; then :
7700 $as_echo_n "(cached) " >&6
7702 if test -n "$AR"; then
7703 ac_cv_prog_AR
="$AR" # Let the user override the test.
7705 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7709 test -z "$as_dir" && as_dir
=.
7710 for ac_exec_ext
in '' $ac_executable_extensions; do
7711 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7712 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7723 if test -n "$AR"; then
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7725 $as_echo "$AR" >&6; }
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728 $as_echo "no" >&6; }
7733 if test -z "$ac_cv_prog_AR"; then
7735 # Extract the first word of "ar", so it can be a program name with args.
7736 set dummy
ar; ac_word
=$2
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7738 $as_echo_n "checking for $ac_word... " >&6; }
7739 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
7740 $as_echo_n "(cached) " >&6
7742 if test -n "$ac_ct_AR"; then
7743 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7745 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7749 test -z "$as_dir" && as_dir
=.
7750 for ac_exec_ext
in '' $ac_executable_extensions; do
7751 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7752 ac_cv_prog_ac_ct_AR
="ar"
7753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7762 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7763 if test -n "$ac_ct_AR"; then
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7765 $as_echo "$ac_ct_AR" >&6; }
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7768 $as_echo "no" >&6; }
7771 if test "x$ac_ct_AR" = x
; then
7774 case $cross_compiling:$ac_tool_warned in
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7778 ac_tool_warned
=yes ;;
7786 if test -n "$ac_tool_prefix"; then
7787 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7788 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7790 $as_echo_n "checking for $ac_word... " >&6; }
7791 if ${ac_cv_prog_DLLTOOL+:} false
; then :
7792 $as_echo_n "(cached) " >&6
7794 if test -n "$DLLTOOL"; then
7795 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
7797 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7801 test -z "$as_dir" && as_dir
=.
7802 for ac_exec_ext
in '' $ac_executable_extensions; do
7803 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7804 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
7805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7814 DLLTOOL
=$ac_cv_prog_DLLTOOL
7815 if test -n "$DLLTOOL"; then
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7817 $as_echo "$DLLTOOL" >&6; }
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7820 $as_echo "no" >&6; }
7825 if test -z "$ac_cv_prog_DLLTOOL"; then
7826 ac_ct_DLLTOOL
=$DLLTOOL
7827 # Extract the first word of "dlltool", so it can be a program name with args.
7828 set dummy dlltool
; ac_word
=$2
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7830 $as_echo_n "checking for $ac_word... " >&6; }
7831 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
7832 $as_echo_n "(cached) " >&6
7834 if test -n "$ac_ct_DLLTOOL"; then
7835 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
7837 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7841 test -z "$as_dir" && as_dir
=.
7842 for ac_exec_ext
in '' $ac_executable_extensions; do
7843 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7844 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
7845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7854 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
7855 if test -n "$ac_ct_DLLTOOL"; then
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7857 $as_echo "$ac_ct_DLLTOOL" >&6; }
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7860 $as_echo "no" >&6; }
7863 if test "x$ac_ct_DLLTOOL" = x
; then
7866 case $cross_compiling:$ac_tool_warned in
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7870 ac_tool_warned
=yes ;;
7872 DLLTOOL
=$ac_ct_DLLTOOL
7875 DLLTOOL
="$ac_cv_prog_DLLTOOL"
7878 if test -n "$ac_tool_prefix"; then
7879 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7880 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7882 $as_echo_n "checking for $ac_word... " >&6; }
7883 if ${ac_cv_prog_WINDRES+:} false
; then :
7884 $as_echo_n "(cached) " >&6
7886 if test -n "$WINDRES"; then
7887 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
7889 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7893 test -z "$as_dir" && as_dir
=.
7894 for ac_exec_ext
in '' $ac_executable_extensions; do
7895 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7896 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
7897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7906 WINDRES
=$ac_cv_prog_WINDRES
7907 if test -n "$WINDRES"; then
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7909 $as_echo "$WINDRES" >&6; }
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7912 $as_echo "no" >&6; }
7917 if test -z "$ac_cv_prog_WINDRES"; then
7918 ac_ct_WINDRES
=$WINDRES
7919 # Extract the first word of "windres", so it can be a program name with args.
7920 set dummy windres
; ac_word
=$2
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7922 $as_echo_n "checking for $ac_word... " >&6; }
7923 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
7924 $as_echo_n "(cached) " >&6
7926 if test -n "$ac_ct_WINDRES"; then
7927 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
7929 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7933 test -z "$as_dir" && as_dir
=.
7934 for ac_exec_ext
in '' $ac_executable_extensions; do
7935 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7936 ac_cv_prog_ac_ct_WINDRES
="windres"
7937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7946 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
7947 if test -n "$ac_ct_WINDRES"; then
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7949 $as_echo "$ac_ct_WINDRES" >&6; }
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7952 $as_echo "no" >&6; }
7955 if test "x$ac_ct_WINDRES" = x
; then
7958 case $cross_compiling:$ac_tool_warned in
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7962 ac_tool_warned
=yes ;;
7964 WINDRES
=$ac_ct_WINDRES
7967 WINDRES
="$ac_cv_prog_WINDRES"
7973 # Needed for GNU Hurd hosts.
7974 if test -n "$ac_tool_prefix"; then
7975 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7976 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7978 $as_echo_n "checking for $ac_word... " >&6; }
7979 if ${ac_cv_prog_MIG+:} false
; then :
7980 $as_echo_n "(cached) " >&6
7982 if test -n "$MIG"; then
7983 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
7985 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7989 test -z "$as_dir" && as_dir
=.
7990 for ac_exec_ext
in '' $ac_executable_extensions; do
7991 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7992 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
7993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8003 if test -n "$MIG"; then
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
8005 $as_echo "$MIG" >&6; }
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8008 $as_echo "no" >&6; }
8013 if test -z "$ac_cv_prog_MIG"; then
8015 # Extract the first word of "mig", so it can be a program name with args.
8016 set dummy mig
; ac_word
=$2
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8018 $as_echo_n "checking for $ac_word... " >&6; }
8019 if ${ac_cv_prog_ac_ct_MIG+:} false
; then :
8020 $as_echo_n "(cached) " >&6
8022 if test -n "$ac_ct_MIG"; then
8023 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
8025 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8029 test -z "$as_dir" && as_dir
=.
8030 for ac_exec_ext
in '' $ac_executable_extensions; do
8031 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8032 ac_cv_prog_ac_ct_MIG
="mig"
8033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8042 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
8043 if test -n "$ac_ct_MIG"; then
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
8045 $as_echo "$ac_ct_MIG" >&6; }
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048 $as_echo "no" >&6; }
8051 if test "x$ac_ct_MIG" = x
; then
8054 case $cross_compiling:$ac_tool_warned in
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8058 ac_tool_warned
=yes ;;
8063 MIG
="$ac_cv_prog_MIG"
8066 if test x
"$MIG" = x
; then
8067 as_fn_error $?
"MIG not found but required for $host hosts" "$LINENO" 5
8072 # ---------------------- #
8073 # Checks for libraries. #
8074 # ---------------------- #
8076 # We might need to link with -lm; most simulators need it.
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
8078 $as_echo_n "checking for main in -lm... " >&6; }
8079 if ${ac_cv_lib_m_main+:} false
; then :
8080 $as_echo_n "(cached) " >&6
8082 ac_check_lib_save_LIBS
=$LIBS
8084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8085 /* end confdefs.h. */
8096 if ac_fn_c_try_link
"$LINENO"; then :
8097 ac_cv_lib_m_main
=yes
8101 rm -f core conftest.err conftest.
$ac_objext \
8102 conftest
$ac_exeext conftest.
$ac_ext
8103 LIBS
=$ac_check_lib_save_LIBS
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
8106 $as_echo "$ac_cv_lib_m_main" >&6; }
8107 if test "x$ac_cv_lib_m_main" = xyes
; then :
8108 cat >>confdefs.h
<<_ACEOF
8117 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
8119 $as_echo_n "checking for library containing gethostbyname... " >&6; }
8120 if ${ac_cv_search_gethostbyname+:} false
; then :
8121 $as_echo_n "(cached) " >&6
8123 ac_func_search_save_LIBS
=$LIBS
8124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8125 /* end confdefs.h. */
8127 /* Override any GCC internal prototype to avoid an error.
8128 Use char because int might match the return type of a GCC
8129 builtin and then its argument prototype would still apply. */
8133 char gethostbyname ();
8137 return gethostbyname ();
8142 for ac_lib
in '' nsl
; do
8143 if test -z "$ac_lib"; then
8144 ac_res
="none required"
8147 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8149 if ac_fn_c_try_link
"$LINENO"; then :
8150 ac_cv_search_gethostbyname
=$ac_res
8152 rm -f core conftest.err conftest.
$ac_objext \
8154 if ${ac_cv_search_gethostbyname+:} false
; then :
8158 if ${ac_cv_search_gethostbyname+:} false
; then :
8161 ac_cv_search_gethostbyname
=no
8164 LIBS
=$ac_func_search_save_LIBS
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
8167 $as_echo "$ac_cv_search_gethostbyname" >&6; }
8168 ac_res
=$ac_cv_search_gethostbyname
8169 if test "$ac_res" != no
; then :
8170 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8175 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
8177 $as_echo_n "checking for library containing socketpair... " >&6; }
8178 if ${ac_cv_search_socketpair+:} false
; then :
8179 $as_echo_n "(cached) " >&6
8181 ac_func_search_save_LIBS
=$LIBS
8182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8183 /* end confdefs.h. */
8185 /* Override any GCC internal prototype to avoid an error.
8186 Use char because int might match the return type of a GCC
8187 builtin and then its argument prototype would still apply. */
8195 return socketpair ();
8200 for ac_lib
in '' socket
; do
8201 if test -z "$ac_lib"; then
8202 ac_res
="none required"
8205 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8207 if ac_fn_c_try_link
"$LINENO"; then :
8208 ac_cv_search_socketpair
=$ac_res
8210 rm -f core conftest.err conftest.
$ac_objext \
8212 if ${ac_cv_search_socketpair+:} false
; then :
8216 if ${ac_cv_search_socketpair+:} false
; then :
8219 ac_cv_search_socketpair
=no
8222 LIBS
=$ac_func_search_save_LIBS
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
8225 $as_echo "$ac_cv_search_socketpair" >&6; }
8226 ac_res
=$ac_cv_search_socketpair
8227 if test "$ac_res" != no
; then :
8228 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8233 # Link in zlib if we can. This allows us to read compressed debug sections.
8235 # Use the system's zlib library.
8236 zlibdir
="-L\$(top_builddir)/../zlib"
8237 zlibinc
="-I\$(top_srcdir)/../zlib"
8239 # Check whether --with-system-zlib was given.
8240 if test "${with_system_zlib+set}" = set; then :
8241 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
8253 if test "X$prefix" = "XNONE"; then
8254 acl_final_prefix
="$ac_default_prefix"
8256 acl_final_prefix
="$prefix"
8258 if test "X$exec_prefix" = "XNONE"; then
8259 acl_final_exec_prefix
='${prefix}'
8261 acl_final_exec_prefix
="$exec_prefix"
8263 acl_save_prefix
="$prefix"
8264 prefix
="$acl_final_prefix"
8265 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8266 prefix
="$acl_save_prefix"
8269 # Check whether --with-gnu-ld was given.
8270 if test "${with_gnu_ld+set}" = set; then :
8271 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8276 # Prepare PATH_SEPARATOR.
8277 # The user is always right.
8278 if test "${PATH_SEPARATOR+set}" != set; then
8279 echo "#! /bin/sh" >conf$$.sh
8280 echo "exit 0" >>conf$$.sh
8282 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8290 if test "$GCC" = yes; then
8291 # Check if gcc -print-prog-name=ld gives a path.
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8293 $as_echo_n "checking for ld used by GCC... " >&6; }
8296 # gcc leaves a trailing carriage return which upsets mingw
8297 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8299 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8302 # Accept absolute paths.
8303 [\\/]* |
[A-Za-z
]:[\\/]*)
8304 re_direlt
='/[^/][^/]*/\.\./'
8305 # Canonicalize the path of ld
8306 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8307 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8308 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8310 test -z "$LD" && LD
="$ac_prog"
8313 # If it fails, then pretend we aren't using GCC.
8317 # If it is relative, then search for the first ld in PATH.
8321 elif test "$with_gnu_ld" = yes; then
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8323 $as_echo_n "checking for GNU ld... " >&6; }
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8326 $as_echo_n "checking for non-GNU ld... " >&6; }
8328 if ${acl_cv_path_LD+:} false
; then :
8329 $as_echo_n "(cached) " >&6
8331 if test -z "$LD"; then
8332 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8333 for ac_dir
in $PATH; do
8334 test -z "$ac_dir" && ac_dir
=.
8335 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8336 acl_cv_path_LD
="$ac_dir/$ac_prog"
8337 # Check to see if the program is GNU ld. I'd rather use --version,
8338 # but apparently some GNU ld's only accept -v.
8339 # Break only if it was the GNU/non-GNU ld that we prefer.
8340 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
8341 test "$with_gnu_ld" != no
&& break
8343 test "$with_gnu_ld" != yes && break
8349 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8353 LD
="$acl_cv_path_LD"
8354 if test -n "$LD"; then
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8356 $as_echo "$LD" >&6; }
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8359 $as_echo "no" >&6; }
8361 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8363 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8364 if ${acl_cv_prog_gnu_ld+:} false
; then :
8365 $as_echo_n "(cached) " >&6
8367 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8368 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8369 acl_cv_prog_gnu_ld
=yes
8371 acl_cv_prog_gnu_ld
=no
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8375 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8376 with_gnu_ld
=$acl_cv_prog_gnu_ld
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8381 $as_echo_n "checking for shared library run path origin... " >&6; }
8382 if ${acl_cv_rpath+:} false
; then :
8383 $as_echo_n "(cached) " >&6
8386 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8387 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8394 $as_echo "$acl_cv_rpath" >&6; }
8396 libext
="$acl_cv_libext"
8397 shlibext
="$acl_cv_shlibext"
8398 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8399 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8400 hardcode_direct
="$acl_cv_hardcode_direct"
8401 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8402 # Check whether --enable-rpath was given.
8403 if test "${enable_rpath+set}" = set; then :
8404 enableval
=$enable_rpath; :
8418 acl_save_prefix
="$prefix"
8419 prefix
="$acl_final_prefix"
8420 acl_save_exec_prefix
="$exec_prefix"
8421 exec_prefix
="$acl_final_exec_prefix"
8423 eval additional_includedir
=\"$includedir\"
8424 eval additional_libdir
=\"$libdir\"
8426 exec_prefix
="$acl_save_exec_prefix"
8427 prefix
="$acl_save_prefix"
8430 # Check whether --with-libiconv-prefix was given.
8431 if test "${with_libiconv_prefix+set}" = set; then :
8432 withval
=$with_libiconv_prefix;
8433 if test "X$withval" = "Xno"; then
8436 if test "X$withval" = "X"; then
8438 acl_save_prefix
="$prefix"
8439 prefix
="$acl_final_prefix"
8440 acl_save_exec_prefix
="$exec_prefix"
8441 exec_prefix
="$acl_final_exec_prefix"
8443 eval additional_includedir
=\"$includedir\"
8444 eval additional_libdir
=\"$libdir\"
8446 exec_prefix
="$acl_save_exec_prefix"
8447 prefix
="$acl_save_prefix"
8450 additional_includedir
="$withval/include"
8451 additional_libdir
="$withval/lib"
8458 # Check whether --with-libiconv-type was given.
8459 if test "${with_libiconv_type+set}" = set; then :
8460 withval
=$with_libiconv_type; with_libiconv_type
=$withval
8462 with_libiconv_type
=auto
8465 lib_type
=`eval echo \$with_libiconv_type`
8472 names_already_handled
=
8473 names_next_round
='iconv '
8474 while test -n "$names_next_round"; do
8475 names_this_round
="$names_next_round"
8477 for name
in $names_this_round; do
8479 for n
in $names_already_handled; do
8480 if test "$n" = "$name"; then
8485 if test -z "$already_handled"; then
8486 names_already_handled
="$names_already_handled $name"
8487 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8488 eval value
=\"\
$HAVE_LIB$uppername\"
8489 if test -n "$value"; then
8490 if test "$value" = yes; then
8491 eval value
=\"\
$LIB$uppername\"
8492 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
8493 eval value
=\"\
$LTLIB$uppername\"
8494 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
8503 if test $use_additional = yes; then
8504 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8505 found_dir
="$additional_libdir"
8506 found_so
="$additional_libdir/lib$name.$shlibext"
8507 if test -f "$additional_libdir/lib$name.la"; then
8508 found_la
="$additional_libdir/lib$name.la"
8510 elif test x
$lib_type != xshared
; then
8511 if test -f "$additional_libdir/lib$name.$libext"; then
8512 found_dir
="$additional_libdir"
8513 found_a
="$additional_libdir/lib$name.$libext"
8514 if test -f "$additional_libdir/lib$name.la"; then
8515 found_la
="$additional_libdir/lib$name.la"
8520 if test "X$found_dir" = "X"; then
8521 for x
in $LDFLAGS $LTLIBICONV; do
8523 acl_save_prefix
="$prefix"
8524 prefix
="$acl_final_prefix"
8525 acl_save_exec_prefix
="$exec_prefix"
8526 exec_prefix
="$acl_final_exec_prefix"
8528 exec_prefix
="$acl_save_exec_prefix"
8529 prefix
="$acl_save_prefix"
8533 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8534 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8536 found_so
="$dir/lib$name.$shlibext"
8537 if test -f "$dir/lib$name.la"; then
8538 found_la
="$dir/lib$name.la"
8540 elif test x
$lib_type != xshared
; then
8541 if test -f "$dir/lib$name.$libext"; then
8543 found_a
="$dir/lib$name.$libext"
8544 if test -f "$dir/lib$name.la"; then
8545 found_la
="$dir/lib$name.la"
8551 if test "X$found_dir" != "X"; then
8556 if test "X$found_dir" != "X"; then
8557 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8558 if test "X$found_so" != "X"; then
8559 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8560 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8563 for x
in $ltrpathdirs; do
8564 if test "X$x" = "X$found_dir"; then
8569 if test -z "$haveit"; then
8570 ltrpathdirs
="$ltrpathdirs $found_dir"
8572 if test "$hardcode_direct" = yes; then
8573 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8575 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8576 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8578 for x
in $rpathdirs; do
8579 if test "X$x" = "X$found_dir"; then
8584 if test -z "$haveit"; then
8585 rpathdirs
="$rpathdirs $found_dir"
8589 for x
in $LDFLAGS $LIBICONV; do
8591 acl_save_prefix
="$prefix"
8592 prefix
="$acl_final_prefix"
8593 acl_save_exec_prefix
="$exec_prefix"
8594 exec_prefix
="$acl_final_exec_prefix"
8596 exec_prefix
="$acl_save_exec_prefix"
8597 prefix
="$acl_save_prefix"
8599 if test "X$x" = "X-L$found_dir"; then
8604 if test -z "$haveit"; then
8605 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8607 if test "$hardcode_minus_L" != no
; then
8608 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8610 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8616 if test "X$found_a" != "X"; then
8617 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
8619 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8622 additional_includedir
=
8623 case "$found_dir" in
8625 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8626 additional_includedir
="$basedir/include"
8629 if test "X$additional_includedir" != "X"; then
8630 if test "X$additional_includedir" != "X/usr/include"; then
8632 if test "X$additional_includedir" = "X/usr/local/include"; then
8633 if test -n "$GCC"; then
8635 linux
*) haveit
=yes;;
8639 if test -z "$haveit"; then
8640 for x
in $CPPFLAGS $INCICONV; 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-I$additional_includedir"; then
8655 if test -z "$haveit"; then
8656 if test -d "$additional_includedir"; then
8657 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8663 if test -n "$found_la"; then
8664 save_libdir
="$libdir"
8666 */* |
*\\*) .
"$found_la" ;;
8667 *) .
"./$found_la" ;;
8669 libdir
="$save_libdir"
8670 for dep
in $dependency_libs; do
8673 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8674 if test "X$additional_libdir" != "X/usr/lib"; then
8676 if test "X$additional_libdir" = "X/usr/local/lib"; then
8677 if test -n "$GCC"; then
8679 linux
*) haveit
=yes;;
8683 if test -z "$haveit"; then
8685 for x
in $LDFLAGS $LIBICONV; do
8687 acl_save_prefix
="$prefix"
8688 prefix
="$acl_final_prefix"
8689 acl_save_exec_prefix
="$exec_prefix"
8690 exec_prefix
="$acl_final_exec_prefix"
8692 exec_prefix
="$acl_save_exec_prefix"
8693 prefix
="$acl_save_prefix"
8695 if test "X$x" = "X-L$additional_libdir"; then
8700 if test -z "$haveit"; then
8701 if test -d "$additional_libdir"; then
8702 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8706 for x
in $LDFLAGS $LTLIBICONV; do
8708 acl_save_prefix
="$prefix"
8709 prefix
="$acl_final_prefix"
8710 acl_save_exec_prefix
="$exec_prefix"
8711 exec_prefix
="$acl_final_exec_prefix"
8713 exec_prefix
="$acl_save_exec_prefix"
8714 prefix
="$acl_save_prefix"
8716 if test "X$x" = "X-L$additional_libdir"; then
8721 if test -z "$haveit"; then
8722 if test -d "$additional_libdir"; then
8723 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8730 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8731 if test "$enable_rpath" != no
; then
8733 for x
in $rpathdirs; do
8734 if test "X$x" = "X$dir"; then
8739 if test -z "$haveit"; then
8740 rpathdirs
="$rpathdirs $dir"
8743 for x
in $ltrpathdirs; do
8744 if test "X$x" = "X$dir"; then
8749 if test -z "$haveit"; then
8750 ltrpathdirs
="$ltrpathdirs $dir"
8755 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8758 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8761 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
8762 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8768 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
8769 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8770 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8772 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
8773 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
8780 if test "X$rpathdirs" != "X"; then
8781 if test -n "$hardcode_libdir_separator"; then
8783 for found_dir
in $rpathdirs; do
8784 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8786 acl_save_libdir
="$libdir"
8788 eval flag
=\"$hardcode_libdir_flag_spec\"
8789 libdir
="$acl_save_libdir"
8790 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8792 for found_dir
in $rpathdirs; do
8793 acl_save_libdir
="$libdir"
8795 eval flag
=\"$hardcode_libdir_flag_spec\"
8796 libdir
="$acl_save_libdir"
8797 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8801 if test "X$ltrpathdirs" != "X"; then
8802 for found_dir
in $ltrpathdirs; do
8803 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8814 $as_echo_n "checking for iconv... " >&6; }
8815 if ${am_cv_func_iconv+:} false
; then :
8816 $as_echo_n "(cached) " >&6
8819 am_cv_func_iconv
="no, consider installing GNU libiconv"
8821 am_save_CPPFLAGS
="$CPPFLAGS"
8822 CPPFLAGS
="$CPPFLAGS $INCICONV"
8823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8824 /* end confdefs.h. */
8830 iconv_t cd = iconv_open("","");
8831 iconv(cd,NULL,NULL,NULL,NULL);
8837 if ac_fn_c_try_link
"$LINENO"; then :
8838 am_cv_func_iconv
=yes
8840 rm -f core conftest.err conftest.
$ac_objext \
8841 conftest
$ac_exeext conftest.
$ac_ext
8842 CPPFLAGS
="$am_save_CPPFLAGS"
8844 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
8845 for _libs
in .libs _libs
; do
8846 am_save_CPPFLAGS
="$CPPFLAGS"
8847 am_save_LIBS
="$LIBS"
8848 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
8849 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
8850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8851 /* end confdefs.h. */
8857 iconv_t cd = iconv_open("","");
8858 iconv(cd,NULL,NULL,NULL,NULL);
8864 if ac_fn_c_try_link
"$LINENO"; then :
8865 INCICONV
="-I../libiconv/include"
8866 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
8867 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
8869 am_cv_func_iconv
=yes
8871 rm -f core conftest.err conftest.
$ac_objext \
8872 conftest
$ac_exeext conftest.
$ac_ext
8873 CPPFLAGS
="$am_save_CPPFLAGS"
8874 LIBS
="$am_save_LIBS"
8875 if test "$am_cv_func_iconv" = "yes"; then
8881 if test "$am_cv_func_iconv" != yes; then
8882 am_save_CPPFLAGS
="$CPPFLAGS"
8883 am_save_LIBS
="$LIBS"
8884 CPPFLAGS
="$CPPFLAGS $INCICONV"
8885 LIBS
="$LIBS $LIBICONV"
8886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8887 /* end confdefs.h. */
8893 iconv_t cd = iconv_open("","");
8894 iconv(cd,NULL,NULL,NULL,NULL);
8900 if ac_fn_c_try_link
"$LINENO"; then :
8902 am_cv_func_iconv
=yes
8904 rm -f core conftest.err conftest.
$ac_objext \
8905 conftest
$ac_exeext conftest.
$ac_ext
8906 CPPFLAGS
="$am_save_CPPFLAGS"
8907 LIBS
="$am_save_LIBS"
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8912 $as_echo "$am_cv_func_iconv" >&6; }
8913 if test "$am_cv_func_iconv" = yes; then
8915 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8918 if test "$am_cv_lib_iconv" = yes; then
8920 for element
in $INCICONV; do
8922 for x
in $CPPFLAGS; do
8924 acl_save_prefix
="$prefix"
8925 prefix
="$acl_final_prefix"
8926 acl_save_exec_prefix
="$exec_prefix"
8927 exec_prefix
="$acl_final_exec_prefix"
8929 exec_prefix
="$acl_save_exec_prefix"
8930 prefix
="$acl_save_prefix"
8932 if test "X$x" = "X$element"; then
8937 if test -z "$haveit"; then
8938 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8943 $as_echo_n "checking how to link with libiconv... " >&6; }
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8945 $as_echo "$LIBICONV" >&6; }
8953 if test "$am_cv_func_iconv" = yes; then
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8955 $as_echo_n "checking for iconv declaration... " >&6; }
8956 if ${am_cv_proto_iconv+:} false
; then :
8957 $as_echo_n "(cached) " >&6
8960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8961 /* end confdefs.h. */
8969 #if defined(__STDC__) || defined(__cplusplus)
8970 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8983 if ac_fn_c_try_compile
"$LINENO"; then :
8984 am_cv_proto_iconv_arg1
=""
8986 am_cv_proto_iconv_arg1
="const"
8988 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8989 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);"
8992 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8994 }$am_cv_proto_iconv" >&5
8996 }$am_cv_proto_iconv" >&6; }
8998 cat >>confdefs.h
<<_ACEOF
8999 #define ICONV_CONST $am_cv_proto_iconv_arg1
9005 # GDB may fork/exec the iconv program to get the list of supported character
9006 # sets. Allow the user to specify where to find it.
9007 # There are several factors affecting the choice of option name:
9008 # - There is already --with-libiconv-prefix but we can't use it, it specifies
9009 # the build-time location of libiconv files.
9010 # - The program we need to find is iconv, which comes with glibc. The user
9011 # doesn't necessarily have libiconv installed. Therefore naming this
9012 # --with-libiconv-foo feels wrong.
9013 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
9014 # defined to work on directories not files (though it really doesn't know
9016 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
9017 # with --with-libiconv-prefix.
9018 # Putting these together is why the option name is --with-iconv-bin.
9021 # Check whether --with-iconv-bin was given.
9022 if test "${with_iconv_bin+set}" = set; then :
9023 withval
=$with_iconv_bin; iconv_bin
="${withval}"
9025 cat >>confdefs.h
<<_ACEOF
9026 #define ICONV_BIN "${iconv_bin}"
9030 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9031 if test "x$prefix" = xNONE
; then
9032 test_prefix
=/usr
/local
9037 test_prefix
=$exec_prefix
9040 case ${iconv_bin} in
9041 "${test_prefix}"|
"${test_prefix}/"*|\
9042 '${exec_prefix}'|
'${exec_prefix}/'*)
9047 cat >>confdefs.h
<<_ACEOF
9048 #define ICONV_BIN_RELOCATABLE $value
9056 # For the TUI, we need enhanced curses functionality.
9057 if test x
"$enable_tui" != xno
; then
9062 if test x
"$prefer_curses" = xyes
; then
9063 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9064 # curses library because the latter might not provide all the
9065 # functionality we need. However, this leads to problems on systems
9066 # where the linker searches /usr/local/lib, but the compiler doesn't
9067 # search /usr/local/include, if ncurses is installed in /usr/local. A
9068 # default installation of ncurses on alpha*-dec-osf* will lead to such
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
9071 $as_echo_n "checking for library containing waddstr... " >&6; }
9072 if ${ac_cv_search_waddstr+:} false
; then :
9073 $as_echo_n "(cached) " >&6
9075 ac_func_search_save_LIBS
=$LIBS
9076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9077 /* end confdefs.h. */
9079 /* Override any GCC internal prototype to avoid an error.
9080 Use char because int might match the return type of a GCC
9081 builtin and then its argument prototype would still apply. */
9094 for ac_lib
in '' ncursesw ncurses cursesX curses
; do
9095 if test -z "$ac_lib"; then
9096 ac_res
="none required"
9099 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9101 if ac_fn_c_try_link
"$LINENO"; then :
9102 ac_cv_search_waddstr
=$ac_res
9104 rm -f core conftest.err conftest.
$ac_objext \
9106 if ${ac_cv_search_waddstr+:} false
; then :
9110 if ${ac_cv_search_waddstr+:} false
; then :
9113 ac_cv_search_waddstr
=no
9116 LIBS
=$ac_func_search_save_LIBS
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
9119 $as_echo "$ac_cv_search_waddstr" >&6; }
9120 ac_res
=$ac_cv_search_waddstr
9121 if test "$ac_res" != no
; then :
9122 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9127 if test "$ac_cv_search_waddstr" != no
; then
9132 # Check whether we should enable the TUI, but only do so if we really
9134 if test x
"$enable_tui" != xno
; then
9135 if test -d "$srcdir/tui"; then
9136 if test "$curses_found" != no
; then
9137 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
9138 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
9139 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9140 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
9142 if test x
"$enable_tui" = xyes
; then
9143 as_fn_error $?
"no enhanced curses library found; disable TUI" "$LINENO" 5
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
9146 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9152 # Since GDB uses Readline, we need termcap functionality. In many
9153 # cases this will be provided by the curses library, but some systems
9154 # have a separate termcap library, or no curses library at all.
9158 if test -d "$srcdir/libtermcap"; then
9159 LIBS
="../libtermcap/libtermcap.a $LIBS"
9160 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
9163 ac_cv_search_tgetent
="none required"
9167 # These are the libraries checked by Readline.
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9169 $as_echo_n "checking for library containing tgetent... " >&6; }
9170 if ${ac_cv_search_tgetent+:} false
; then :
9171 $as_echo_n "(cached) " >&6
9173 ac_func_search_save_LIBS
=$LIBS
9174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9175 /* end confdefs.h. */
9177 /* Override any GCC internal prototype to avoid an error.
9178 Use char because int might match the return type of a GCC
9179 builtin and then its argument prototype would still apply. */
9192 for ac_lib
in '' termcap tinfow tinfo curses ncursesw ncurses
; do
9193 if test -z "$ac_lib"; then
9194 ac_res
="none required"
9197 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9199 if ac_fn_c_try_link
"$LINENO"; then :
9200 ac_cv_search_tgetent
=$ac_res
9202 rm -f core conftest.err conftest.
$ac_objext \
9204 if ${ac_cv_search_tgetent+:} false
; then :
9208 if ${ac_cv_search_tgetent+:} false
; then :
9211 ac_cv_search_tgetent
=no
9214 LIBS
=$ac_func_search_save_LIBS
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9217 $as_echo "$ac_cv_search_tgetent" >&6; }
9218 ac_res
=$ac_cv_search_tgetent
9219 if test "$ac_res" != no
; then :
9220 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9225 if test "$ac_cv_search_tgetent" = no
; then
9226 CONFIG_OBS
="$CONFIG_OBS stub-termcap.o"
9230 # Check whether --with-system-readline was given.
9231 if test "${with_system_readline+set}" = set; then :
9232 withval
=$with_system_readline;
9236 if test "$with_system_readline" = yes; then
9237 for ac_header
in readline
/readline.h
9239 ac_fn_c_check_header_mongrel
"$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
9240 if test "x$ac_cv_header_readline_readline_h" = xyes
; then :
9241 cat >>confdefs.h
<<_ACEOF
9242 #define HAVE_READLINE_READLINE_H 1
9251 if test "$readline_h" = "no"; then
9252 as_fn_error $?
"readline development packages are probably missing" "$LINENO" 5
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system readline is new enough" >&5
9255 $as_echo_n "checking whether system readline is new enough... " >&6; }
9256 if ${gdb_cv_readline_ok+:} false
; then :
9257 $as_echo_n "(cached) " >&6
9259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9260 /* end confdefs.h. */
9262 #include <readline/readline.h>
9266 #if RL_VERSION_MAJOR < 7
9267 # error "readline version 7 required"
9274 if ac_fn_c_try_compile
"$LINENO"; then :
9275 gdb_cv_readline_ok
=yes
9277 gdb_cv_readline_ok
=no
9280 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_readline_ok" >&5
9284 $as_echo "$gdb_cv_readline_ok" >&6; }
9285 if test "$gdb_cv_readline_ok" != yes; then
9286 as_fn_error $?
"system readline is not new enough" "$LINENO" 5
9292 READLINE_TEXI_INCFLAG
=
9294 READLINE
='$(READLINE_DIR)/libreadline.a'
9295 READLINE_DEPS
='$(READLINE)'
9296 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
9297 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
9304 # Generate jit-reader.h
9306 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
9309 # The cast to long int works around a bug in the HP C Compiler
9310 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9311 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9312 # This bug is HP SR number 8606223364.
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
9314 $as_echo_n "checking size of unsigned long long... " >&6; }
9315 if ${ac_cv_sizeof_unsigned_long_long+:} false
; then :
9316 $as_echo_n "(cached) " >&6
9318 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
9321 if test "$ac_cv_type_unsigned_long_long" = yes; then
9322 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9324 as_fn_error
77 "cannot compute sizeof (unsigned long long)
9325 See \`config.log' for more details" "$LINENO" 5; }
9327 ac_cv_sizeof_unsigned_long_long
=0
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
9333 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
9337 cat >>confdefs.h
<<_ACEOF
9338 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
9342 # The cast to long int works around a bug in the HP C Compiler
9343 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9344 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9345 # This bug is HP SR number 8606223364.
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
9347 $as_echo_n "checking size of unsigned long... " >&6; }
9348 if ${ac_cv_sizeof_unsigned_long+:} false
; then :
9349 $as_echo_n "(cached) " >&6
9351 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
9354 if test "$ac_cv_type_unsigned_long" = yes; then
9355 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9357 as_fn_error
77 "cannot compute sizeof (unsigned long)
9358 See \`config.log' for more details" "$LINENO" 5; }
9360 ac_cv_sizeof_unsigned_long
=0
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
9366 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
9370 cat >>confdefs.h
<<_ACEOF
9371 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9375 # The cast to long int works around a bug in the HP C Compiler
9376 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9377 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9378 # This bug is HP SR number 8606223364.
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
9380 $as_echo_n "checking size of unsigned __int128... " >&6; }
9381 if ${ac_cv_sizeof_unsigned___int128+:} false
; then :
9382 $as_echo_n "(cached) " >&6
9384 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
9387 if test "$ac_cv_type_unsigned___int128" = yes; then
9388 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9390 as_fn_error
77 "cannot compute sizeof (unsigned __int128)
9391 See \`config.log' for more details" "$LINENO" 5; }
9393 ac_cv_sizeof_unsigned___int128
=0
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
9399 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
9403 cat >>confdefs.h
<<_ACEOF
9404 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
9409 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9410 TARGET_PTR
="unsigned long"
9411 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9412 TARGET_PTR
="unsigned long long"
9413 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
9414 TARGET_PTR
="unsigned __int128"
9416 TARGET_PTR
="unsigned long"
9420 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9424 $as_echo_n "checking for library containing dlopen... " >&6; }
9425 if ${ac_cv_search_dlopen+:} false
; then :
9426 $as_echo_n "(cached) " >&6
9428 ac_func_search_save_LIBS
=$LIBS
9429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9430 /* end confdefs.h. */
9432 /* Override any GCC internal prototype to avoid an error.
9433 Use char because int might match the return type of a GCC
9434 builtin and then its argument prototype would still apply. */
9447 for ac_lib
in '' dl
; do
9448 if test -z "$ac_lib"; then
9449 ac_res
="none required"
9452 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9454 if ac_fn_c_try_link
"$LINENO"; then :
9455 ac_cv_search_dlopen
=$ac_res
9457 rm -f core conftest.err conftest.
$ac_objext \
9459 if ${ac_cv_search_dlopen+:} false
; then :
9463 if ${ac_cv_search_dlopen+:} false
; then :
9466 ac_cv_search_dlopen
=no
9469 LIBS
=$ac_func_search_save_LIBS
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9472 $as_echo "$ac_cv_search_dlopen" >&6; }
9473 ac_res
=$ac_cv_search_dlopen
9474 if test "$ac_res" != no
; then :
9475 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9482 # Check whether --with-jit-reader-dir was given.
9483 if test "${with_jit_reader_dir+set}" = set; then :
9484 withval
=$with_jit_reader_dir;
9485 JIT_READER_DIR
=$withval
9487 JIT_READER_DIR
=${libdir}/gdb
9491 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9492 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9493 ac_define_dir
=`eval echo $JIT_READER_DIR`
9494 ac_define_dir
=`eval echo $ac_define_dir`
9496 cat >>confdefs.h
<<_ACEOF
9497 #define JIT_READER_DIR "$ac_define_dir"
9503 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9504 if test "x$prefix" = xNONE
; then
9505 test_prefix
=/usr
/local
9510 test_prefix
=$exec_prefix
9513 case ${ac_define_dir} in
9514 "${test_prefix}"|
"${test_prefix}/"*|\
9515 '${exec_prefix}'|
'${exec_prefix}/'*)
9520 cat >>confdefs.h
<<_ACEOF
9521 #define JIT_READER_DIR_RELOCATABLE $value
9528 # Check whether --with-expat was given.
9529 if test "${with_expat+set}" = set; then :
9530 withval
=$with_expat;
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9536 $as_echo_n "checking whether to use expat... " >&6; }
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9538 $as_echo "$with_expat" >&6; }
9540 if test "${with_expat}" = no
; then
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9542 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9555 acl_save_prefix
="$prefix"
9556 prefix
="$acl_final_prefix"
9557 acl_save_exec_prefix
="$exec_prefix"
9558 exec_prefix
="$acl_final_exec_prefix"
9560 eval additional_includedir
=\"$includedir\"
9561 eval additional_libdir
=\"$libdir\"
9563 exec_prefix
="$acl_save_exec_prefix"
9564 prefix
="$acl_save_prefix"
9567 # Check whether --with-libexpat-prefix was given.
9568 if test "${with_libexpat_prefix+set}" = set; then :
9569 withval
=$with_libexpat_prefix;
9570 if test "X$withval" = "Xno"; then
9573 if test "X$withval" = "X"; then
9575 acl_save_prefix
="$prefix"
9576 prefix
="$acl_final_prefix"
9577 acl_save_exec_prefix
="$exec_prefix"
9578 exec_prefix
="$acl_final_exec_prefix"
9580 eval additional_includedir
=\"$includedir\"
9581 eval additional_libdir
=\"$libdir\"
9583 exec_prefix
="$acl_save_exec_prefix"
9584 prefix
="$acl_save_prefix"
9587 additional_includedir
="$withval/include"
9588 additional_libdir
="$withval/lib"
9595 # Check whether --with-libexpat-type was given.
9596 if test "${with_libexpat_type+set}" = set; then :
9597 withval
=$with_libexpat_type; with_libexpat_type
=$withval
9599 with_libexpat_type
=auto
9602 lib_type
=`eval echo \$with_libexpat_type`
9609 names_already_handled
=
9610 names_next_round
='expat '
9611 while test -n "$names_next_round"; do
9612 names_this_round
="$names_next_round"
9614 for name
in $names_this_round; do
9616 for n
in $names_already_handled; do
9617 if test "$n" = "$name"; then
9622 if test -z "$already_handled"; then
9623 names_already_handled
="$names_already_handled $name"
9624 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9625 eval value
=\"\
$HAVE_LIB$uppername\"
9626 if test -n "$value"; then
9627 if test "$value" = yes; then
9628 eval value
=\"\
$LIB$uppername\"
9629 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
9630 eval value
=\"\
$LTLIB$uppername\"
9631 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
9640 if test $use_additional = yes; then
9641 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9642 found_dir
="$additional_libdir"
9643 found_so
="$additional_libdir/lib$name.$shlibext"
9644 if test -f "$additional_libdir/lib$name.la"; then
9645 found_la
="$additional_libdir/lib$name.la"
9647 elif test x
$lib_type != xshared
; then
9648 if test -f "$additional_libdir/lib$name.$libext"; then
9649 found_dir
="$additional_libdir"
9650 found_a
="$additional_libdir/lib$name.$libext"
9651 if test -f "$additional_libdir/lib$name.la"; then
9652 found_la
="$additional_libdir/lib$name.la"
9657 if test "X$found_dir" = "X"; then
9658 for x
in $LDFLAGS $LTLIBEXPAT; do
9660 acl_save_prefix
="$prefix"
9661 prefix
="$acl_final_prefix"
9662 acl_save_exec_prefix
="$exec_prefix"
9663 exec_prefix
="$acl_final_exec_prefix"
9665 exec_prefix
="$acl_save_exec_prefix"
9666 prefix
="$acl_save_prefix"
9670 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9671 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9673 found_so
="$dir/lib$name.$shlibext"
9674 if test -f "$dir/lib$name.la"; then
9675 found_la
="$dir/lib$name.la"
9677 elif test x
$lib_type != xshared
; then
9678 if test -f "$dir/lib$name.$libext"; then
9680 found_a
="$dir/lib$name.$libext"
9681 if test -f "$dir/lib$name.la"; then
9682 found_la
="$dir/lib$name.la"
9688 if test "X$found_dir" != "X"; then
9693 if test "X$found_dir" != "X"; then
9694 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
9695 if test "X$found_so" != "X"; then
9696 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9697 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9700 for x
in $ltrpathdirs; do
9701 if test "X$x" = "X$found_dir"; then
9706 if test -z "$haveit"; then
9707 ltrpathdirs
="$ltrpathdirs $found_dir"
9709 if test "$hardcode_direct" = yes; then
9710 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9712 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9713 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9715 for x
in $rpathdirs; do
9716 if test "X$x" = "X$found_dir"; then
9721 if test -z "$haveit"; then
9722 rpathdirs
="$rpathdirs $found_dir"
9726 for x
in $LDFLAGS $LIBEXPAT; do
9728 acl_save_prefix
="$prefix"
9729 prefix
="$acl_final_prefix"
9730 acl_save_exec_prefix
="$exec_prefix"
9731 exec_prefix
="$acl_final_exec_prefix"
9733 exec_prefix
="$acl_save_exec_prefix"
9734 prefix
="$acl_save_prefix"
9736 if test "X$x" = "X-L$found_dir"; then
9741 if test -z "$haveit"; then
9742 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
9744 if test "$hardcode_minus_L" != no
; then
9745 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9747 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9753 if test "X$found_a" != "X"; then
9754 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
9756 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
9759 additional_includedir
=
9760 case "$found_dir" in
9762 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9763 additional_includedir
="$basedir/include"
9766 if test "X$additional_includedir" != "X"; then
9767 if test "X$additional_includedir" != "X/usr/include"; then
9769 if test "X$additional_includedir" = "X/usr/local/include"; then
9770 if test -n "$GCC"; then
9772 linux
*) haveit
=yes;;
9776 if test -z "$haveit"; then
9777 for x
in $CPPFLAGS $INCEXPAT; do
9779 acl_save_prefix
="$prefix"
9780 prefix
="$acl_final_prefix"
9781 acl_save_exec_prefix
="$exec_prefix"
9782 exec_prefix
="$acl_final_exec_prefix"
9784 exec_prefix
="$acl_save_exec_prefix"
9785 prefix
="$acl_save_prefix"
9787 if test "X$x" = "X-I$additional_includedir"; then
9792 if test -z "$haveit"; then
9793 if test -d "$additional_includedir"; then
9794 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
9800 if test -n "$found_la"; then
9801 save_libdir
="$libdir"
9803 */* |
*\\*) .
"$found_la" ;;
9804 *) .
"./$found_la" ;;
9806 libdir
="$save_libdir"
9807 for dep
in $dependency_libs; do
9810 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9811 if test "X$additional_libdir" != "X/usr/lib"; then
9813 if test "X$additional_libdir" = "X/usr/local/lib"; then
9814 if test -n "$GCC"; then
9816 linux
*) haveit
=yes;;
9820 if test -z "$haveit"; then
9822 for x
in $LDFLAGS $LIBEXPAT; do
9824 acl_save_prefix
="$prefix"
9825 prefix
="$acl_final_prefix"
9826 acl_save_exec_prefix
="$exec_prefix"
9827 exec_prefix
="$acl_final_exec_prefix"
9829 exec_prefix
="$acl_save_exec_prefix"
9830 prefix
="$acl_save_prefix"
9832 if test "X$x" = "X-L$additional_libdir"; then
9837 if test -z "$haveit"; then
9838 if test -d "$additional_libdir"; then
9839 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
9843 for x
in $LDFLAGS $LTLIBEXPAT; do
9845 acl_save_prefix
="$prefix"
9846 prefix
="$acl_final_prefix"
9847 acl_save_exec_prefix
="$exec_prefix"
9848 exec_prefix
="$acl_final_exec_prefix"
9850 exec_prefix
="$acl_save_exec_prefix"
9851 prefix
="$acl_save_prefix"
9853 if test "X$x" = "X-L$additional_libdir"; then
9858 if test -z "$haveit"; then
9859 if test -d "$additional_libdir"; then
9860 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
9867 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9868 if test "$enable_rpath" != no
; then
9870 for x
in $rpathdirs; do
9871 if test "X$x" = "X$dir"; then
9876 if test -z "$haveit"; then
9877 rpathdirs
="$rpathdirs $dir"
9880 for x
in $ltrpathdirs; do
9881 if test "X$x" = "X$dir"; then
9886 if test -z "$haveit"; then
9887 ltrpathdirs
="$ltrpathdirs $dir"
9892 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9895 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9898 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
9899 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
9905 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
9906 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9907 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
9909 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l:lib$name.$libext"
9910 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l:lib$name.$libext"
9917 if test "X$rpathdirs" != "X"; then
9918 if test -n "$hardcode_libdir_separator"; then
9920 for found_dir
in $rpathdirs; do
9921 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9923 acl_save_libdir
="$libdir"
9925 eval flag
=\"$hardcode_libdir_flag_spec\"
9926 libdir
="$acl_save_libdir"
9927 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9929 for found_dir
in $rpathdirs; do
9930 acl_save_libdir
="$libdir"
9932 eval flag
=\"$hardcode_libdir_flag_spec\"
9933 libdir
="$acl_save_libdir"
9934 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9938 if test "X$ltrpathdirs" != "X"; then
9939 for found_dir
in $ltrpathdirs; do
9940 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9945 ac_save_CPPFLAGS
="$CPPFLAGS"
9947 for element
in $INCEXPAT; do
9949 for x
in $CPPFLAGS; do
9951 acl_save_prefix
="$prefix"
9952 prefix
="$acl_final_prefix"
9953 acl_save_exec_prefix
="$exec_prefix"
9954 exec_prefix
="$acl_final_exec_prefix"
9956 exec_prefix
="$acl_save_exec_prefix"
9957 prefix
="$acl_save_prefix"
9959 if test "X$x" = "X$element"; then
9964 if test -z "$haveit"; then
9965 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9971 $as_echo_n "checking for libexpat... " >&6; }
9972 if ${ac_cv_libexpat+:} false
; then :
9973 $as_echo_n "(cached) " >&6
9976 ac_save_LIBS
="$LIBS"
9977 LIBS
="$LIBS $LIBEXPAT"
9978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9979 /* end confdefs.h. */
9984 XML_Parser p = XML_ParserCreate (0);
9989 if ac_fn_c_try_link
"$LINENO"; then :
9994 rm -f core conftest.err conftest.
$ac_objext \
9995 conftest
$ac_exeext conftest.
$ac_ext
9996 LIBS
="$ac_save_LIBS"
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
10000 $as_echo "$ac_cv_libexpat" >&6; }
10001 if test "$ac_cv_libexpat" = yes; then
10004 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
10007 $as_echo_n "checking how to link with libexpat... " >&6; }
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
10009 $as_echo "$LIBEXPAT" >&6; }
10012 CPPFLAGS
="$ac_save_CPPFLAGS"
10022 if test "$HAVE_LIBEXPAT" != yes; then
10023 if test "$with_expat" = yes; then
10024 as_fn_error $?
"expat is missing or unusable" "$LINENO" 5
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
10027 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
10031 LIBS
="$LIBS $LIBEXPAT"
10032 for ac_func
in XML_StopParser
10034 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
10035 if test "x$ac_cv_func_XML_StopParser" = xyes
; then :
10036 cat >>confdefs.h
<<_ACEOF
10037 #define HAVE_XML_STOPPARSER 1
10047 # Verify that we have a usable GMP library.
10058 acl_save_prefix
="$prefix"
10059 prefix
="$acl_final_prefix"
10060 acl_save_exec_prefix
="$exec_prefix"
10061 exec_prefix
="$acl_final_exec_prefix"
10063 eval additional_includedir
=\"$includedir\"
10064 eval additional_libdir
=\"$libdir\"
10066 exec_prefix
="$acl_save_exec_prefix"
10067 prefix
="$acl_save_prefix"
10070 # Check whether --with-libgmp-prefix was given.
10071 if test "${with_libgmp_prefix+set}" = set; then :
10072 withval
=$with_libgmp_prefix;
10073 if test "X$withval" = "Xno"; then
10076 if test "X$withval" = "X"; then
10078 acl_save_prefix
="$prefix"
10079 prefix
="$acl_final_prefix"
10080 acl_save_exec_prefix
="$exec_prefix"
10081 exec_prefix
="$acl_final_exec_prefix"
10083 eval additional_includedir
=\"$includedir\"
10084 eval additional_libdir
=\"$libdir\"
10086 exec_prefix
="$acl_save_exec_prefix"
10087 prefix
="$acl_save_prefix"
10090 additional_includedir
="$withval/include"
10091 additional_libdir
="$withval/lib"
10098 # Check whether --with-libgmp-type was given.
10099 if test "${with_libgmp_type+set}" = set; then :
10100 withval
=$with_libgmp_type; with_libgmp_type
=$withval
10102 with_libgmp_type
=auto
10105 lib_type
=`eval echo \$with_libgmp_type`
10112 names_already_handled
=
10113 names_next_round
='gmp '
10114 while test -n "$names_next_round"; do
10115 names_this_round
="$names_next_round"
10117 for name
in $names_this_round; do
10119 for n
in $names_already_handled; do
10120 if test "$n" = "$name"; then
10121 already_handled
=yes
10125 if test -z "$already_handled"; then
10126 names_already_handled
="$names_already_handled $name"
10127 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10128 eval value
=\"\
$HAVE_LIB$uppername\"
10129 if test -n "$value"; then
10130 if test "$value" = yes; then
10131 eval value
=\"\
$LIB$uppername\"
10132 test -z "$value" || LIBGMP
="${LIBGMP}${LIBGMP:+ }$value"
10133 eval value
=\"\
$LTLIB$uppername\"
10134 test -z "$value" || LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }$value"
10143 if test $use_additional = yes; then
10144 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10145 found_dir
="$additional_libdir"
10146 found_so
="$additional_libdir/lib$name.$shlibext"
10147 if test -f "$additional_libdir/lib$name.la"; then
10148 found_la
="$additional_libdir/lib$name.la"
10150 elif test x
$lib_type != xshared
; then
10151 if test -f "$additional_libdir/lib$name.$libext"; then
10152 found_dir
="$additional_libdir"
10153 found_a
="$additional_libdir/lib$name.$libext"
10154 if test -f "$additional_libdir/lib$name.la"; then
10155 found_la
="$additional_libdir/lib$name.la"
10160 if test "X$found_dir" = "X"; then
10161 for x
in $LDFLAGS $LTLIBGMP; do
10163 acl_save_prefix
="$prefix"
10164 prefix
="$acl_final_prefix"
10165 acl_save_exec_prefix
="$exec_prefix"
10166 exec_prefix
="$acl_final_exec_prefix"
10168 exec_prefix
="$acl_save_exec_prefix"
10169 prefix
="$acl_save_prefix"
10173 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10174 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10176 found_so
="$dir/lib$name.$shlibext"
10177 if test -f "$dir/lib$name.la"; then
10178 found_la
="$dir/lib$name.la"
10180 elif test x
$lib_type != xshared
; then
10181 if test -f "$dir/lib$name.$libext"; then
10183 found_a
="$dir/lib$name.$libext"
10184 if test -f "$dir/lib$name.la"; then
10185 found_la
="$dir/lib$name.la"
10191 if test "X$found_dir" != "X"; then
10196 if test "X$found_dir" != "X"; then
10197 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }-L$found_dir -l$name"
10198 if test "X$found_so" != "X"; then
10199 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10200 LIBGMP
="${LIBGMP}${LIBGMP:+ }$found_so"
10203 for x
in $ltrpathdirs; do
10204 if test "X$x" = "X$found_dir"; then
10209 if test -z "$haveit"; then
10210 ltrpathdirs
="$ltrpathdirs $found_dir"
10212 if test "$hardcode_direct" = yes; then
10213 LIBGMP
="${LIBGMP}${LIBGMP:+ }$found_so"
10215 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10216 LIBGMP
="${LIBGMP}${LIBGMP:+ }$found_so"
10218 for x
in $rpathdirs; do
10219 if test "X$x" = "X$found_dir"; then
10224 if test -z "$haveit"; then
10225 rpathdirs
="$rpathdirs $found_dir"
10229 for x
in $LDFLAGS $LIBGMP; do
10231 acl_save_prefix
="$prefix"
10232 prefix
="$acl_final_prefix"
10233 acl_save_exec_prefix
="$exec_prefix"
10234 exec_prefix
="$acl_final_exec_prefix"
10236 exec_prefix
="$acl_save_exec_prefix"
10237 prefix
="$acl_save_prefix"
10239 if test "X$x" = "X-L$found_dir"; then
10244 if test -z "$haveit"; then
10245 LIBGMP
="${LIBGMP}${LIBGMP:+ }-L$found_dir"
10247 if test "$hardcode_minus_L" != no
; then
10248 LIBGMP
="${LIBGMP}${LIBGMP:+ }$found_so"
10250 LIBGMP
="${LIBGMP}${LIBGMP:+ }-l$name"
10256 if test "X$found_a" != "X"; then
10257 LIBGMP
="${LIBGMP}${LIBGMP:+ }$found_a"
10259 LIBGMP
="${LIBGMP}${LIBGMP:+ }-L$found_dir -l$name"
10262 additional_includedir
=
10263 case "$found_dir" in
10265 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10266 additional_includedir
="$basedir/include"
10269 if test "X$additional_includedir" != "X"; then
10270 if test "X$additional_includedir" != "X/usr/include"; then
10272 if test "X$additional_includedir" = "X/usr/local/include"; then
10273 if test -n "$GCC"; then
10275 linux
*) haveit
=yes;;
10279 if test -z "$haveit"; then
10280 for x
in $CPPFLAGS $INCGMP; 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-I$additional_includedir"; then
10295 if test -z "$haveit"; then
10296 if test -d "$additional_includedir"; then
10297 INCGMP
="${INCGMP}${INCGMP:+ }-I$additional_includedir"
10303 if test -n "$found_la"; then
10304 save_libdir
="$libdir"
10305 case "$found_la" in
10306 */* |
*\\*) .
"$found_la" ;;
10307 *) .
"./$found_la" ;;
10309 libdir
="$save_libdir"
10310 for dep
in $dependency_libs; do
10313 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10314 if test "X$additional_libdir" != "X/usr/lib"; then
10316 if test "X$additional_libdir" = "X/usr/local/lib"; then
10317 if test -n "$GCC"; then
10319 linux
*) haveit
=yes;;
10323 if test -z "$haveit"; then
10325 for x
in $LDFLAGS $LIBGMP; do
10327 acl_save_prefix
="$prefix"
10328 prefix
="$acl_final_prefix"
10329 acl_save_exec_prefix
="$exec_prefix"
10330 exec_prefix
="$acl_final_exec_prefix"
10332 exec_prefix
="$acl_save_exec_prefix"
10333 prefix
="$acl_save_prefix"
10335 if test "X$x" = "X-L$additional_libdir"; then
10340 if test -z "$haveit"; then
10341 if test -d "$additional_libdir"; then
10342 LIBGMP
="${LIBGMP}${LIBGMP:+ }-L$additional_libdir"
10346 for x
in $LDFLAGS $LTLIBGMP; do
10348 acl_save_prefix
="$prefix"
10349 prefix
="$acl_final_prefix"
10350 acl_save_exec_prefix
="$exec_prefix"
10351 exec_prefix
="$acl_final_exec_prefix"
10353 exec_prefix
="$acl_save_exec_prefix"
10354 prefix
="$acl_save_prefix"
10356 if test "X$x" = "X-L$additional_libdir"; then
10361 if test -z "$haveit"; then
10362 if test -d "$additional_libdir"; then
10363 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }-L$additional_libdir"
10370 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10371 if test "$enable_rpath" != no
; then
10373 for x
in $rpathdirs; do
10374 if test "X$x" = "X$dir"; then
10379 if test -z "$haveit"; then
10380 rpathdirs
="$rpathdirs $dir"
10383 for x
in $ltrpathdirs; do
10384 if test "X$x" = "X$dir"; then
10389 if test -z "$haveit"; then
10390 ltrpathdirs
="$ltrpathdirs $dir"
10395 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10398 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10401 LIBGMP
="${LIBGMP}${LIBGMP:+ }$dep"
10402 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }$dep"
10408 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
10409 LIBGMP
="${LIBGMP}${LIBGMP:+ }-l$name"
10410 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }-l$name"
10412 LIBGMP
="${LIBGMP}${LIBGMP:+ }-l:lib$name.$libext"
10413 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }-l:lib$name.$libext"
10420 if test "X$rpathdirs" != "X"; then
10421 if test -n "$hardcode_libdir_separator"; then
10423 for found_dir
in $rpathdirs; do
10424 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10426 acl_save_libdir
="$libdir"
10428 eval flag
=\"$hardcode_libdir_flag_spec\"
10429 libdir
="$acl_save_libdir"
10430 LIBGMP
="${LIBGMP}${LIBGMP:+ }$flag"
10432 for found_dir
in $rpathdirs; do
10433 acl_save_libdir
="$libdir"
10434 libdir
="$found_dir"
10435 eval flag
=\"$hardcode_libdir_flag_spec\"
10436 libdir
="$acl_save_libdir"
10437 LIBGMP
="${LIBGMP}${LIBGMP:+ }$flag"
10441 if test "X$ltrpathdirs" != "X"; then
10442 for found_dir
in $ltrpathdirs; do
10443 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }-R$found_dir"
10448 ac_save_CPPFLAGS
="$CPPFLAGS"
10450 for element
in $INCGMP; do
10452 for x
in $CPPFLAGS; do
10454 acl_save_prefix
="$prefix"
10455 prefix
="$acl_final_prefix"
10456 acl_save_exec_prefix
="$exec_prefix"
10457 exec_prefix
="$acl_final_exec_prefix"
10459 exec_prefix
="$acl_save_exec_prefix"
10460 prefix
="$acl_save_prefix"
10462 if test "X$x" = "X$element"; then
10467 if test -z "$haveit"; then
10468 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgmp" >&5
10474 $as_echo_n "checking for libgmp... " >&6; }
10475 if ${ac_cv_libgmp+:} false
; then :
10476 $as_echo_n "(cached) " >&6
10479 ac_save_LIBS
="$LIBS"
10480 LIBS
="$LIBS $LIBGMP"
10481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10482 /* end confdefs.h. */
10493 if ac_fn_c_try_link
"$LINENO"; then :
10498 rm -f core conftest.err conftest.
$ac_objext \
10499 conftest
$ac_exeext conftest.
$ac_ext
10500 LIBS
="$ac_save_LIBS"
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgmp" >&5
10504 $as_echo "$ac_cv_libgmp" >&6; }
10505 if test "$ac_cv_libgmp" = yes; then
10508 $as_echo "#define HAVE_LIBGMP 1" >>confdefs.h
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libgmp" >&5
10511 $as_echo_n "checking how to link with libgmp... " >&6; }
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGMP" >&5
10513 $as_echo "$LIBGMP" >&6; }
10516 CPPFLAGS
="$ac_save_CPPFLAGS"
10526 if test "$HAVE_LIBGMP" != yes; then
10527 as_fn_error $?
"GMP is missing or unusable" "$LINENO" 5
10531 # Check whether --with-mpfr was given.
10532 if test "${with_mpfr+set}" = set; then :
10533 withval
=$with_mpfr;
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5
10539 $as_echo_n "checking whether to use MPFR... " >&6; }
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5
10541 $as_echo "$with_mpfr" >&6; }
10543 if test "${with_mpfr}" = no
; then
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5
10545 $as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;}
10558 acl_save_prefix
="$prefix"
10559 prefix
="$acl_final_prefix"
10560 acl_save_exec_prefix
="$exec_prefix"
10561 exec_prefix
="$acl_final_exec_prefix"
10563 eval additional_includedir
=\"$includedir\"
10564 eval additional_libdir
=\"$libdir\"
10566 exec_prefix
="$acl_save_exec_prefix"
10567 prefix
="$acl_save_prefix"
10570 # Check whether --with-libmpfr-prefix was given.
10571 if test "${with_libmpfr_prefix+set}" = set; then :
10572 withval
=$with_libmpfr_prefix;
10573 if test "X$withval" = "Xno"; then
10576 if test "X$withval" = "X"; then
10578 acl_save_prefix
="$prefix"
10579 prefix
="$acl_final_prefix"
10580 acl_save_exec_prefix
="$exec_prefix"
10581 exec_prefix
="$acl_final_exec_prefix"
10583 eval additional_includedir
=\"$includedir\"
10584 eval additional_libdir
=\"$libdir\"
10586 exec_prefix
="$acl_save_exec_prefix"
10587 prefix
="$acl_save_prefix"
10590 additional_includedir
="$withval/include"
10591 additional_libdir
="$withval/lib"
10598 # Check whether --with-libmpfr-type was given.
10599 if test "${with_libmpfr_type+set}" = set; then :
10600 withval
=$with_libmpfr_type; with_libmpfr_type
=$withval
10602 with_libmpfr_type
=auto
10605 lib_type
=`eval echo \$with_libmpfr_type`
10612 names_already_handled
=
10613 names_next_round
='mpfr gmp'
10614 while test -n "$names_next_round"; do
10615 names_this_round
="$names_next_round"
10617 for name
in $names_this_round; do
10619 for n
in $names_already_handled; do
10620 if test "$n" = "$name"; then
10621 already_handled
=yes
10625 if test -z "$already_handled"; then
10626 names_already_handled
="$names_already_handled $name"
10627 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10628 eval value
=\"\
$HAVE_LIB$uppername\"
10629 if test -n "$value"; then
10630 if test "$value" = yes; then
10631 eval value
=\"\
$LIB$uppername\"
10632 test -z "$value" || LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$value"
10633 eval value
=\"\
$LTLIB$uppername\"
10634 test -z "$value" || LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$value"
10643 if test $use_additional = yes; then
10644 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10645 found_dir
="$additional_libdir"
10646 found_so
="$additional_libdir/lib$name.$shlibext"
10647 if test -f "$additional_libdir/lib$name.la"; then
10648 found_la
="$additional_libdir/lib$name.la"
10650 elif test x
$lib_type != xshared
; then
10651 if test -f "$additional_libdir/lib$name.$libext"; then
10652 found_dir
="$additional_libdir"
10653 found_a
="$additional_libdir/lib$name.$libext"
10654 if test -f "$additional_libdir/lib$name.la"; then
10655 found_la
="$additional_libdir/lib$name.la"
10660 if test "X$found_dir" = "X"; then
10661 for x
in $LDFLAGS $LTLIBMPFR; do
10663 acl_save_prefix
="$prefix"
10664 prefix
="$acl_final_prefix"
10665 acl_save_exec_prefix
="$exec_prefix"
10666 exec_prefix
="$acl_final_exec_prefix"
10668 exec_prefix
="$acl_save_exec_prefix"
10669 prefix
="$acl_save_prefix"
10673 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10674 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10676 found_so
="$dir/lib$name.$shlibext"
10677 if test -f "$dir/lib$name.la"; then
10678 found_la
="$dir/lib$name.la"
10680 elif test x
$lib_type != xshared
; then
10681 if test -f "$dir/lib$name.$libext"; then
10683 found_a
="$dir/lib$name.$libext"
10684 if test -f "$dir/lib$name.la"; then
10685 found_la
="$dir/lib$name.la"
10691 if test "X$found_dir" != "X"; then
10696 if test "X$found_dir" != "X"; then
10697 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$found_dir -l$name"
10698 if test "X$found_so" != "X"; then
10699 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10700 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10703 for x
in $ltrpathdirs; do
10704 if test "X$x" = "X$found_dir"; then
10709 if test -z "$haveit"; then
10710 ltrpathdirs
="$ltrpathdirs $found_dir"
10712 if test "$hardcode_direct" = yes; then
10713 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10715 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10716 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10718 for x
in $rpathdirs; do
10719 if test "X$x" = "X$found_dir"; then
10724 if test -z "$haveit"; then
10725 rpathdirs
="$rpathdirs $found_dir"
10729 for x
in $LDFLAGS $LIBMPFR; do
10731 acl_save_prefix
="$prefix"
10732 prefix
="$acl_final_prefix"
10733 acl_save_exec_prefix
="$exec_prefix"
10734 exec_prefix
="$acl_final_exec_prefix"
10736 exec_prefix
="$acl_save_exec_prefix"
10737 prefix
="$acl_save_prefix"
10739 if test "X$x" = "X-L$found_dir"; then
10744 if test -z "$haveit"; then
10745 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir"
10747 if test "$hardcode_minus_L" != no
; then
10748 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10750 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10756 if test "X$found_a" != "X"; then
10757 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_a"
10759 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir -l$name"
10762 additional_includedir
=
10763 case "$found_dir" in
10765 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10766 additional_includedir
="$basedir/include"
10769 if test "X$additional_includedir" != "X"; then
10770 if test "X$additional_includedir" != "X/usr/include"; then
10772 if test "X$additional_includedir" = "X/usr/local/include"; then
10773 if test -n "$GCC"; then
10775 linux
*) haveit
=yes;;
10779 if test -z "$haveit"; then
10780 for x
in $CPPFLAGS $INCMPFR; do
10782 acl_save_prefix
="$prefix"
10783 prefix
="$acl_final_prefix"
10784 acl_save_exec_prefix
="$exec_prefix"
10785 exec_prefix
="$acl_final_exec_prefix"
10787 exec_prefix
="$acl_save_exec_prefix"
10788 prefix
="$acl_save_prefix"
10790 if test "X$x" = "X-I$additional_includedir"; then
10795 if test -z "$haveit"; then
10796 if test -d "$additional_includedir"; then
10797 INCMPFR
="${INCMPFR}${INCMPFR:+ }-I$additional_includedir"
10803 if test -n "$found_la"; then
10804 save_libdir
="$libdir"
10805 case "$found_la" in
10806 */* |
*\\*) .
"$found_la" ;;
10807 *) .
"./$found_la" ;;
10809 libdir
="$save_libdir"
10810 for dep
in $dependency_libs; do
10813 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10814 if test "X$additional_libdir" != "X/usr/lib"; then
10816 if test "X$additional_libdir" = "X/usr/local/lib"; then
10817 if test -n "$GCC"; then
10819 linux
*) haveit
=yes;;
10823 if test -z "$haveit"; then
10825 for x
in $LDFLAGS $LIBMPFR; do
10827 acl_save_prefix
="$prefix"
10828 prefix
="$acl_final_prefix"
10829 acl_save_exec_prefix
="$exec_prefix"
10830 exec_prefix
="$acl_final_exec_prefix"
10832 exec_prefix
="$acl_save_exec_prefix"
10833 prefix
="$acl_save_prefix"
10835 if test "X$x" = "X-L$additional_libdir"; then
10840 if test -z "$haveit"; then
10841 if test -d "$additional_libdir"; then
10842 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$additional_libdir"
10846 for x
in $LDFLAGS $LTLIBMPFR; do
10848 acl_save_prefix
="$prefix"
10849 prefix
="$acl_final_prefix"
10850 acl_save_exec_prefix
="$exec_prefix"
10851 exec_prefix
="$acl_final_exec_prefix"
10853 exec_prefix
="$acl_save_exec_prefix"
10854 prefix
="$acl_save_prefix"
10856 if test "X$x" = "X-L$additional_libdir"; then
10861 if test -z "$haveit"; then
10862 if test -d "$additional_libdir"; then
10863 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$additional_libdir"
10870 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10871 if test "$enable_rpath" != no
; then
10873 for x
in $rpathdirs; do
10874 if test "X$x" = "X$dir"; then
10879 if test -z "$haveit"; then
10880 rpathdirs
="$rpathdirs $dir"
10883 for x
in $ltrpathdirs; do
10884 if test "X$x" = "X$dir"; then
10889 if test -z "$haveit"; then
10890 ltrpathdirs
="$ltrpathdirs $dir"
10895 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10898 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10901 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$dep"
10902 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$dep"
10908 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
10909 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10910 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l$name"
10912 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l:lib$name.$libext"
10913 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l:lib$name.$libext"
10920 if test "X$rpathdirs" != "X"; then
10921 if test -n "$hardcode_libdir_separator"; then
10923 for found_dir
in $rpathdirs; do
10924 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10926 acl_save_libdir
="$libdir"
10928 eval flag
=\"$hardcode_libdir_flag_spec\"
10929 libdir
="$acl_save_libdir"
10930 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10932 for found_dir
in $rpathdirs; do
10933 acl_save_libdir
="$libdir"
10934 libdir
="$found_dir"
10935 eval flag
=\"$hardcode_libdir_flag_spec\"
10936 libdir
="$acl_save_libdir"
10937 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10941 if test "X$ltrpathdirs" != "X"; then
10942 for found_dir
in $ltrpathdirs; do
10943 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-R$found_dir"
10948 ac_save_CPPFLAGS
="$CPPFLAGS"
10950 for element
in $INCMPFR; do
10952 for x
in $CPPFLAGS; do
10954 acl_save_prefix
="$prefix"
10955 prefix
="$acl_final_prefix"
10956 acl_save_exec_prefix
="$exec_prefix"
10957 exec_prefix
="$acl_final_exec_prefix"
10959 exec_prefix
="$acl_save_exec_prefix"
10960 prefix
="$acl_save_prefix"
10962 if test "X$x" = "X$element"; then
10967 if test -z "$haveit"; then
10968 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpfr" >&5
10974 $as_echo_n "checking for libmpfr... " >&6; }
10975 if ${ac_cv_libmpfr+:} false
; then :
10976 $as_echo_n "(cached) " >&6
10979 ac_save_LIBS
="$LIBS"
10980 LIBS
="$LIBS $LIBMPFR"
10981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10982 /* end confdefs.h. */
10987 mpfr_exp_t exp; mpfr_t x;
10988 mpfr_frexp (&exp, x, x, MPFR_RNDN);
10993 if ac_fn_c_try_link
"$LINENO"; then :
10998 rm -f core conftest.err conftest.
$ac_objext \
10999 conftest
$ac_exeext conftest.
$ac_ext
11000 LIBS
="$ac_save_LIBS"
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmpfr" >&5
11004 $as_echo "$ac_cv_libmpfr" >&6; }
11005 if test "$ac_cv_libmpfr" = yes; then
11008 $as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libmpfr" >&5
11011 $as_echo_n "checking how to link with libmpfr... " >&6; }
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPFR" >&5
11013 $as_echo "$LIBMPFR" >&6; }
11016 CPPFLAGS
="$ac_save_CPPFLAGS"
11026 if test "$HAVE_LIBMPFR" != yes; then
11027 if test "$with_mpfr" = yes; then
11028 as_fn_error $?
"MPFR is missing or unusable" "$LINENO" 5
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR is missing or unusable; some features may be unavailable." >&5
11031 $as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;}
11036 # --------------------- #
11037 # Check for libpython. #
11038 # --------------------- #
11045 # Check whether --with-python was given.
11046 if test "${with_python+set}" = set; then :
11047 withval
=$with_python;
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
11053 $as_echo_n "checking whether to use python... " >&6; }
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
11055 $as_echo "$with_python" >&6; }
11057 if test "${with_python}" = no
; then
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
11059 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
11062 case "${with_python}" in
11064 if test -d "${with_python}"; then
11065 # Assume the python binary is ${with_python}/bin/python.
11066 python_prog
="${with_python}/bin/python"
11068 # If python does not exit ${with_python}/bin, then try in
11069 # ${with_python}. On Windows/MinGW, this is where the Python
11071 if test ! -x "${python_prog}"; then
11072 python_prog
="${with_python}/python"
11075 if test ! -x "${python_prog}"; then
11076 # Fall back to gdb 7.0/7.1 behaviour.
11077 python_prog
=missing
11078 python_prefix
=${with_python}
11080 elif test -x "${with_python}"; then
11081 # While we can't run python compiled for $host (unless host == build),
11082 # the user could write a script that provides the needed information,
11083 # so we support that.
11084 python_prog
=${with_python}
11087 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
11091 # Disallow --with-python=foo/bar.
11092 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
11095 # The user has either specified auto, yes, or the name of the python
11096 # program assumed to be in $PATH.
11098 case "${with_python}" in
11100 if test "${build}" = "${host}"; then
11101 # Look first for 'python', then 'python3'.
11102 for ac_prog
in python python3
11104 # Extract the first word of "$ac_prog", so it can be a program name with args.
11105 set dummy
$ac_prog; ac_word
=$2
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11107 $as_echo_n "checking for $ac_word... " >&6; }
11108 if ${ac_cv_path_python_prog_path+:} false
; then :
11109 $as_echo_n "(cached) " >&6
11111 case $python_prog_path in
11113 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
11116 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11117 for as_dir
in $PATH
11120 test -z "$as_dir" && as_dir
=.
11121 for ac_exec_ext
in '' $ac_executable_extensions; do
11122 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11123 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
11124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11134 python_prog_path
=$ac_cv_path_python_prog_path
11135 if test -n "$python_prog_path"; then
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
11137 $as_echo "$python_prog_path" >&6; }
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11140 $as_echo "no" >&6; }
11144 test -n "$python_prog_path" && break
11146 test -n "$python_prog_path" || python_prog_path
="missing"
11148 if test "${python_prog_path}" = missing
; then
11149 python_prog
=missing
11151 python_prog
=${python_prog_path}
11154 # Not much we can do except assume the cross-compiler will find the
11156 python_prog
=missing
11160 # While we can't run python compiled for $host (unless host == build),
11161 # the user could write a script that provides the needed information,
11162 # so we support that.
11163 python_prog
="${with_python}"
11164 # Extract the first word of "${python_prog}", so it can be a program name with args.
11165 set dummy
${python_prog}; ac_word
=$2
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11167 $as_echo_n "checking for $ac_word... " >&6; }
11168 if ${ac_cv_path_python_prog_path+:} false
; then :
11169 $as_echo_n "(cached) " >&6
11171 case $python_prog_path in
11173 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
11176 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11177 for as_dir
in $PATH
11180 test -z "$as_dir" && as_dir
=.
11181 for ac_exec_ext
in '' $ac_executable_extensions; do
11182 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11183 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
11184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11191 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
11195 python_prog_path
=$ac_cv_path_python_prog_path
11196 if test -n "$python_prog_path"; then
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
11198 $as_echo "$python_prog_path" >&6; }
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11201 $as_echo "no" >&6; }
11205 if test "${python_prog_path}" = missing
; then
11206 as_fn_error $?
"unable to find python program ${python_prog}" "$LINENO" 5
11212 if test "${python_prog}" != missing
; then
11213 # We have a python program to use, but it may be too old.
11214 # Don't flag an error for --with-python=auto (the default).
11215 have_python_config
=yes
11216 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
11217 if test $?
!= 0; then
11218 have_python_config
=failed
11219 if test "${with_python}" != auto
; then
11220 as_fn_error $?
"failure running python-config --includes" "$LINENO" 5
11223 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
11224 if test $?
!= 0; then
11225 have_python_config
=failed
11226 if test "${with_python}" != auto
; then
11227 as_fn_error $?
"failure running python-config --ldflags" "$LINENO" 5
11230 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
11231 if test $?
!= 0; then
11232 have_python_config
=failed
11233 if test "${with_python}" != auto
; then
11234 as_fn_error $?
"failure running python-config --exec-prefix" "$LINENO" 5
11238 # We do not have a python executable we can use to determine where
11239 # to find the Python headers and libs. We cannot guess the include
11240 # path from the python_prefix either, because that include path
11241 # depends on the Python version. So, there is nothing much we can
11242 # do except assume that the compiler will be able to find those files.
11245 have_python_config
=no
11248 # If we have python-config, only try the configuration it provides.
11249 # Otherwise fallback on the old way of trying different versions of
11253 if test "${have_python_config}" = yes; then
11256 new_CPPFLAGS
=${python_includes}
11257 new_LIBS
=${python_libs}
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
11259 $as_echo_n "checking for python... " >&6; }
11260 save_CPPFLAGS
=$CPPFLAGS
11262 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11263 LIBS
="$new_LIBS $LIBS"
11264 found_usable_python
=no
11265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11266 /* end confdefs.h. */
11267 #include "Python.h"
11272 #if PY_MAJOR_VERSION != 3
11273 # error "We only support Python 3"
11281 if ac_fn_c_try_link
"$LINENO"; then :
11283 found_usable_python
=yes
11284 PYTHON_CPPFLAGS
=$new_CPPFLAGS
11285 PYTHON_LIBS
=$new_LIBS
11287 rm -f core conftest.err conftest.
$ac_objext \
11288 conftest
$ac_exeext conftest.
$ac_ext
11289 CPPFLAGS
=$save_CPPFLAGS
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11292 $as_echo "${found_usable_python}" >&6; }
11296 if test "${have_libpython}" = no
; then
11297 case "${with_python}" in
11299 as_fn_error $?
"python is missing or unusable" "$LINENO" 5
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
11303 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
11306 as_fn_error $?
"no usable python found at ${with_python}" "$LINENO" 5
11310 if test -n "${python_prefix}"; then
11312 cat >>confdefs.h
<<_ACEOF
11313 #define WITH_PYTHON_PATH "${python_prefix}"
11317 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
11318 if test "x$prefix" = xNONE
; then
11319 test_prefix
=/usr
/local
11321 test_prefix
=$prefix
11324 test_prefix
=$exec_prefix
11327 case ${python_prefix} in
11328 "${test_prefix}"|
"${test_prefix}/"*|\
11329 '${exec_prefix}'|
'${exec_prefix}/'*)
11334 cat >>confdefs.h
<<_ACEOF
11335 #define PYTHON_PATH_RELOCATABLE $value
11344 # Check whether --with-python-libdir was given.
11345 if test "${with_python_libdir+set}" = set; then :
11346 withval
=$with_python_libdir;
11349 # If no python libdir is specified then select one based on
11350 # python's prefix path.
11351 if test -n "${python_prefix}"; then
11352 with_python_libdir
=${python_prefix}/lib
11358 if test "${have_libpython}" != no
; then
11360 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
11362 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
11363 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
11364 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
11365 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
11366 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
11368 if test -n "${with_python_libdir}"; then
11370 cat >>confdefs.h
<<_ACEOF
11371 #define WITH_PYTHON_LIBDIR "${with_python_libdir}"
11375 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
11376 if test "x$prefix" = xNONE
; then
11377 test_prefix
=/usr
/local
11379 test_prefix
=$prefix
11382 test_prefix
=$exec_prefix
11385 case ${with_python_libdir} in
11386 "${test_prefix}"|
"${test_prefix}/"*|\
11387 '${exec_prefix}'|
'${exec_prefix}/'*)
11392 cat >>confdefs.h
<<_ACEOF
11393 #define PYTHON_LIBDIR_RELOCATABLE $value
11399 # Flags needed to compile Python code (taken from python-config --cflags).
11400 # We cannot call python-config directly because it will output whatever was
11401 # used when compiling the Python interpreter itself, including flags which
11402 # would make the python-related objects be compiled differently from the
11403 # rest of GDB (e.g., -O2 and -fPIC).
11404 if test "${GCC}" = yes; then
11405 tentative_python_cflags
="-fno-strict-aliasing -fwrapv"
11406 # Python headers recommend -DNDEBUG, but it's unclear if that just
11407 # refers to building Python itself. In release mode, though, it
11408 # doesn't hurt for the Python code in gdb to follow.
11409 $development || tentative_python_cflags
="$tentative_python_cflags -DNDEBUG"
11412 if test "x${tentative_python_cflags}" != x
; then
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
11414 $as_echo_n "checking compiler flags for python code... " >&6; }
11415 for flag
in ${tentative_python_cflags}; do
11416 # Check that the compiler accepts it
11417 saved_CFLAGS
="$CFLAGS"
11418 CFLAGS
="$CFLAGS $flag"
11419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11420 /* end confdefs.h. */
11430 if ac_fn_c_try_compile
"$LINENO"; then :
11431 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
11433 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11434 CFLAGS
="$saved_CFLAGS"
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
11437 $as_echo "${PYTHON_CFLAGS}" >&6; }
11440 # On x64 Windows, Python's include headers, and pyconfig.h in
11441 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
11442 # version of Windows. Unfortunately, MS_WIN64 is only defined if
11443 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
11444 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
11445 # The issue was reported to the Python community, but still isn't
11446 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
11448 case "$gdb_host" in
11450 if test "${GCC}" = yes; then
11451 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
11456 # Even if Python support is not compiled in, we need to have this file
11457 # included so that the "python" command, et.al., still exists.
11458 CONFIG_OBS
="$CONFIG_OBS python/python.o"
11459 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
11462 # Work around Python http://bugs.python.org/issue10112. See also
11463 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
11464 # no effect. Note that the only test after this that uses Python is
11465 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
11466 # run without -export-dynamic too.
11467 PYTHON_LIBS
=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
11472 if test "${have_libpython}" != no
; then
11474 HAVE_PYTHON_FALSE
='#'
11476 HAVE_PYTHON_TRUE
='#'
11481 # -------------------- #
11482 # Check for libguile. #
11483 # -------------------- #
11490 # Check whether --with-guile was given.
11491 if test "${with_guile+set}" = set; then :
11492 withval
=$with_guile;
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
11498 $as_echo_n "checking whether to use guile... " >&6; }
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
11500 $as_echo "$with_guile" >&6; }
11502 # Extract the first word of "pkg-config", so it can be a program name with args.
11503 set dummy pkg-config
; ac_word
=$2
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11505 $as_echo_n "checking for $ac_word... " >&6; }
11506 if ${ac_cv_path_pkg_config_prog_path+:} false
; then :
11507 $as_echo_n "(cached) " >&6
11509 case $pkg_config_prog_path in
11511 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
11514 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11515 for as_dir
in $PATH
11518 test -z "$as_dir" && as_dir
=.
11519 for ac_exec_ext
in '' $ac_executable_extensions; do
11520 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11521 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
11522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11529 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
11533 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
11534 if test -n "$pkg_config_prog_path"; then
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
11536 $as_echo "$pkg_config_prog_path" >&6; }
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11539 $as_echo "no" >&6; }
11544 try_guile_versions
="guile-3.0 guile-2.2 guile-2.0"
11546 case "${with_guile}" in
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
11549 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
11552 if test "${pkg_config_prog_path}" = "missing"; then
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
11554 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
11557 pkg_config
=${pkg_config_prog_path}
11558 guile_version_list
=${try_guile_versions}
11561 found_usable_guile
=checking
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11563 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11564 for guile_version
in ${guile_version_list}; do
11565 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11566 if test $?
!= 0; then
11569 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11570 if test $?
!= 0; then
11571 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11573 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11574 if test $?
!= 0; then
11575 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11577 found_usable_guile
=${guile_version}
11580 if test "${found_usable_guile}" = "checking"; then
11581 if test "${flag_errors}" = "yes"; then
11582 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11584 found_usable_guile
=no
11587 if test "${found_usable_guile}" != no
; then
11588 save_CPPFLAGS
=$CPPFLAGS
11590 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11591 LIBS
="$LIBS $new_LIBS"
11592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11593 /* end confdefs.h. */
11594 #include "libguile.h"
11603 if ac_fn_c_try_link
"$LINENO"; then :
11605 GUILE_CPPFLAGS
=$new_CPPFLAGS
11606 GUILE_LIBS
=$new_LIBS
11608 found_usable_guile
=no
11610 rm -f core conftest.err conftest.
$ac_objext \
11611 conftest
$ac_exeext conftest.
$ac_ext
11612 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11613 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11615 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11620 CPPFLAGS
=$save_CPPFLAGS
11622 if test "${found_usable_guile}" = no
; then
11623 if test "${flag_errors}" = yes; then
11624 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11625 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11626 as_fn_error $?
"linking guile version ${guile_version} test program failed
11627 See \`config.log' for more details" "$LINENO" 5; }
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11632 $as_echo "${found_usable_guile}" >&6; }
11637 if test "${pkg_config_prog_path}" = "missing"; then
11638 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11641 pkg_config
=${pkg_config_prog_path}
11642 guile_version_list
=${try_guile_versions}
11645 found_usable_guile
=checking
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11647 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11648 for guile_version
in ${guile_version_list}; do
11649 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11650 if test $?
!= 0; then
11653 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11654 if test $?
!= 0; then
11655 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11657 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11658 if test $?
!= 0; then
11659 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11661 found_usable_guile
=${guile_version}
11664 if test "${found_usable_guile}" = "checking"; then
11665 if test "${flag_errors}" = "yes"; then
11666 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11668 found_usable_guile
=no
11671 if test "${found_usable_guile}" != no
; then
11672 save_CPPFLAGS
=$CPPFLAGS
11674 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11675 LIBS
="$LIBS $new_LIBS"
11676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11677 /* end confdefs.h. */
11678 #include "libguile.h"
11687 if ac_fn_c_try_link
"$LINENO"; then :
11689 GUILE_CPPFLAGS
=$new_CPPFLAGS
11690 GUILE_LIBS
=$new_LIBS
11692 found_usable_guile
=no
11694 rm -f core conftest.err conftest.
$ac_objext \
11695 conftest
$ac_exeext conftest.
$ac_ext
11696 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11697 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11699 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11704 CPPFLAGS
=$save_CPPFLAGS
11706 if test "${found_usable_guile}" = no
; then
11707 if test "${flag_errors}" = yes; then
11708 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11710 as_fn_error $?
"linking guile version ${guile_version} test program failed
11711 See \`config.log' for more details" "$LINENO" 5; }
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11716 $as_echo "${found_usable_guile}" >&6; }
11720 if test -x "${with_guile}"; then
11722 pkg_config
=${with_guile}
11723 guile_version_list
=${try_guile_versions}
11726 found_usable_guile
=checking
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11728 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11729 for guile_version
in ${guile_version_list}; do
11730 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11731 if test $?
!= 0; then
11734 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11735 if test $?
!= 0; then
11736 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11738 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11739 if test $?
!= 0; then
11740 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11742 found_usable_guile
=${guile_version}
11745 if test "${found_usable_guile}" = "checking"; then
11746 if test "${flag_errors}" = "yes"; then
11747 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11749 found_usable_guile
=no
11752 if test "${found_usable_guile}" != no
; then
11753 save_CPPFLAGS
=$CPPFLAGS
11755 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11756 LIBS
="$LIBS $new_LIBS"
11757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11758 /* end confdefs.h. */
11759 #include "libguile.h"
11768 if ac_fn_c_try_link
"$LINENO"; then :
11770 GUILE_CPPFLAGS
=$new_CPPFLAGS
11771 GUILE_LIBS
=$new_LIBS
11773 found_usable_guile
=no
11775 rm -f core conftest.err conftest.
$ac_objext \
11776 conftest
$ac_exeext conftest.
$ac_ext
11777 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11778 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11780 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11785 CPPFLAGS
=$save_CPPFLAGS
11787 if test "${found_usable_guile}" = no
; then
11788 if test "${flag_errors}" = yes; then
11789 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11790 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11791 as_fn_error $?
"linking guile version ${guile_version} test program failed
11792 See \`config.log' for more details" "$LINENO" 5; }
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11797 $as_echo "${found_usable_guile}" >&6; }
11800 as_fn_error $?
"Guile config program not executable: ${with_guile}" "$LINENO" 5
11804 # Disallow --with=guile="" and --with-guile=foo/bar.
11805 as_fn_error $?
"invalid value for --with-guile" "$LINENO" 5
11808 # A space separate list of guile versions to try, in order.
11809 if test "${pkg_config_prog_path}" = "missing"; then
11810 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11813 pkg_config
=${pkg_config_prog_path}
11814 guile_version_list
=${with_guile}
11817 found_usable_guile
=checking
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11819 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11820 for guile_version
in ${guile_version_list}; do
11821 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11822 if test $?
!= 0; then
11825 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11826 if test $?
!= 0; then
11827 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11829 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11830 if test $?
!= 0; then
11831 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11833 found_usable_guile
=${guile_version}
11836 if test "${found_usable_guile}" = "checking"; then
11837 if test "${flag_errors}" = "yes"; then
11838 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11840 found_usable_guile
=no
11843 if test "${found_usable_guile}" != no
; then
11844 save_CPPFLAGS
=$CPPFLAGS
11846 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11847 LIBS
="$LIBS $new_LIBS"
11848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11849 /* end confdefs.h. */
11850 #include "libguile.h"
11859 if ac_fn_c_try_link
"$LINENO"; then :
11861 GUILE_CPPFLAGS
=$new_CPPFLAGS
11862 GUILE_LIBS
=$new_LIBS
11864 found_usable_guile
=no
11866 rm -f core conftest.err conftest.
$ac_objext \
11867 conftest
$ac_exeext conftest.
$ac_ext
11868 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11869 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11871 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11876 CPPFLAGS
=$save_CPPFLAGS
11878 if test "${found_usable_guile}" = no
; then
11879 if test "${flag_errors}" = yes; then
11880 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11882 as_fn_error $?
"linking guile version ${guile_version} test program failed
11883 See \`config.log' for more details" "$LINENO" 5; }
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11888 $as_echo "${found_usable_guile}" >&6; }
11893 if test "${have_libguile}" != no
; then
11894 case "${with_guile}" in
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11898 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11899 if ${ac_cv_guild_program_name+:} false
; then :
11900 $as_echo_n "(cached) " >&6
11902 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
11904 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11905 # the 'guild' and 'bindir' variables. In that case, try to guess
11906 # what the program name is, at the risk of getting it wrong if
11907 # Guile was configured with '--program-suffix' or similar.
11908 if test "x$ac_cv_guild_program_name" = "x"; then
11909 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
11910 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11915 $as_echo "$ac_cv_guild_program_name" >&6; }
11917 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11918 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11921 GUILD
="$ac_cv_guild_program_name"
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11928 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11929 if ${ac_cv_guild_program_name+:} false
; then :
11930 $as_echo_n "(cached) " >&6
11932 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
11934 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11935 # the 'guild' and 'bindir' variables. In that case, try to guess
11936 # what the program name is, at the risk of getting it wrong if
11937 # Guile was configured with '--program-suffix' or similar.
11938 if test "x$ac_cv_guild_program_name" = "x"; then
11939 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
11940 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11945 $as_echo "$ac_cv_guild_program_name" >&6; }
11947 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11948 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11951 GUILD
="$ac_cv_guild_program_name"
11958 if test "$cross_compiling" = no
; then
11961 GUILD_TARGET_FLAG
="--target=$host"
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
11968 $as_echo_n "checking whether guild supports this host... " >&6; }
11969 if ${ac_cv_guild_ok+:} false
; then :
11970 $as_echo_n "(cached) " >&6
11972 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
11973 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
11980 $as_echo "$ac_cv_guild_ok" >&6; }
11982 if test "$ac_cv_guild_ok" = no
; then
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
11985 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
11989 if test "${have_libguile}" != no
; then
11991 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
11993 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
11994 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
11995 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
11996 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
11997 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
12000 save_CPPFLAGS
="$CPPFLAGS"
12002 CPPFLAGS
="$GUILE_CPPFLAGS"
12003 for ac_func
in scm_new_smob
12005 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
12006 if test "x$ac_cv_func_scm_new_smob" = xyes
; then :
12007 cat >>confdefs.h
<<_ACEOF
12008 #define HAVE_SCM_NEW_SMOB 1
12015 CPPFLAGS
="$save_CPPFLAGS"
12017 # Even if Guile support is not compiled in, we need to have these files
12019 CONFIG_OBS
="$CONFIG_OBS guile/guile.o"
12020 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
12024 if test "${have_libguile}" != no
; then
12026 HAVE_GUILE_FALSE
='#'
12028 HAVE_GUILE_TRUE
='#'
12033 # ---------------------------- #
12034 # Check for source highlight. #
12035 # ---------------------------- #
12040 # Check whether --enable-source-highlight was given.
12041 if test "${enable_source_highlight+set}" = set; then :
12042 enableval
=$enable_source_highlight; case "${enableval}" in
12043 yes) enable_source_highlight
=yes ;;
12044 no
) enable_source_highlight
=no
;;
12045 *) as_fn_error $?
"bad value ${enableval} for source-highlight option" "$LINENO" 5 ;;
12048 enable_source_highlight
=auto
12052 if test "${enable_source_highlight}" != "no"; then
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
12054 $as_echo_n "checking for the source-highlight library... " >&6; }
12055 if test "${pkg_config_prog_path}" = "missing"; then
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
12057 $as_echo "no - pkg-config not found" >&6; }
12058 if test "${enable_source_highlight}" = "yes"; then
12059 as_fn_error $?
"pkg-config was not found in your system" "$LINENO" 5
12062 if ${pkg_config_prog_path} --exists source-highlight
; then
12065 as_fn_error $?
"source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
12069 srchigh_pkg_cflags
=`${pkg_config_prog_path} --cflags source-highlight`
12070 srchigh_pkg_libs
=`${pkg_config_prog_path} --libs source-highlight`
12072 # Now that we have found a source-highlight library, check if we can use
12073 # it. In particular, we're trying to detect the situation that the
12074 # library is using the new libstdc++ library abi ( see
12075 # https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html )
12076 # while the compiler being used to compile gdb is using the old abi.
12077 # Such a situation will result in an undefined reference to
12078 # srchilite::SourceHighlight::SourceHighlight(std::string const&).
12079 # This situation can occur for instance when using a source highlight
12080 # library compiled with g++ 7.5.0 while building gdb with g++ 4.8.5.
12082 ac_cpp
='$CXXCPP $CPPFLAGS'
12083 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12084 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12085 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12087 save_CXXFLAGS
="$CXXFLAGS"
12089 CXXFLAGS
="$CXXFLAGS $srchigh_pkg_cflags"
12090 LIBS
="$LIBS $srchigh_pkg_libs"
12091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12092 /* end confdefs.h. */
12093 #include <srchilite/sourcehighlight.h>
12097 std::string outlang = "esc.outlang";
12098 new srchilite::SourceHighlight (outlang);
12104 if ac_fn_cxx_try_link
"$LINENO"; then :
12105 have_usable_source_highlight
=yes
12107 have_usable_source_highlight
=no
12110 rm -f core conftest.err conftest.
$ac_objext \
12111 conftest
$ac_exeext conftest.
$ac_ext
12112 CXXFLAGS
="$save_CXXFLAGS"
12115 ac_cpp
='$CPP $CPPFLAGS'
12116 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12117 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12118 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12121 if test "${have_usable_source_highlight}" = "yes"; then
12123 $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12126 $as_echo "yes" >&6; }
12127 SRCHIGH_CFLAGS
="$srchigh_pkg_cflags"
12128 SRCHIGH_LIBS
="$srchigh_pkg_libs"
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12131 $as_echo "no" >&6; }
12132 if test "${enable_source_highlight}" = "yes"; then
12133 as_fn_error $?
"source-highlight in your system could not be used" "$LINENO" 5
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12138 $as_echo "no" >&6; }
12139 if test "${enable_source_highlight}" = "yes"; then
12140 as_fn_error $?
"source-highlight was not found in your system" "$LINENO" 5
12148 # ------------------------- #
12149 # Checks for header files. #
12150 # ------------------------- #
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12153 $as_echo_n "checking for ANSI C header files... " >&6; }
12154 if ${ac_cv_header_stdc+:} false
; then :
12155 $as_echo_n "(cached) " >&6
12157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12158 /* end confdefs.h. */
12159 #include <stdlib.h>
12160 #include <stdarg.h>
12161 #include <string.h>
12172 if ac_fn_c_try_compile
"$LINENO"; then :
12173 ac_cv_header_stdc
=yes
12175 ac_cv_header_stdc
=no
12177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12179 if test $ac_cv_header_stdc = yes; then
12180 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12182 /* end confdefs.h. */
12183 #include <string.h>
12186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12187 $EGREP "memchr" >/dev
/null
2>&1; then :
12190 ac_cv_header_stdc
=no
12196 if test $ac_cv_header_stdc = yes; then
12197 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12199 /* end confdefs.h. */
12200 #include <stdlib.h>
12203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12204 $EGREP "free" >/dev
/null
2>&1; then :
12207 ac_cv_header_stdc
=no
12213 if test $ac_cv_header_stdc = yes; then
12214 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12215 if test "$cross_compiling" = yes; then :
12218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12219 /* end confdefs.h. */
12221 #include <stdlib.h>
12222 #if ((' ' & 0x0FF) == 0x020)
12223 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12224 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12226 # define ISLOWER(c) \
12227 (('a' <= (c) && (c) <= 'i') \
12228 || ('j' <= (c) && (c) <= 'r') \
12229 || ('s' <= (c) && (c) <= 'z'))
12230 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12233 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12238 for (i = 0; i < 256; i++)
12239 if (XOR (islower (i), ISLOWER (i))
12240 || toupper (i) != TOUPPER (i))
12245 if ac_fn_c_try_run
"$LINENO"; then :
12248 ac_cv_header_stdc
=no
12250 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12251 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12257 $as_echo "$ac_cv_header_stdc" >&6; }
12258 if test $ac_cv_header_stdc = yes; then
12260 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12264 # elf_hp.h is for HP/UX 64-bit shared library support.
12265 for ac_header
in nlist.h machine
/reg.h \
12267 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
12268 sys
/procctl.h sys
/resource.h sys
/ptrace.h ptrace.h \
12269 sys
/reg.h sys
/debugreg.h \
12272 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12273 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12274 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12275 cat >>confdefs.h
<<_ACEOF
12276 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12283 for ac_header
in sys
/user.h
12285 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
12286 # include <sys/param.h>
12290 if test "x$ac_cv_header_sys_user_h" = xyes
; then :
12291 cat >>confdefs.h
<<_ACEOF
12292 #define HAVE_SYS_USER_H 1
12300 for ac_header
in curses.h cursesX.h ncurses.h ncursesw
/ncurses.h ncurses
/ncurses.h ncurses
/term.h
12302 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12303 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12304 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12305 cat >>confdefs.h
<<_ACEOF
12306 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12313 for ac_header
in term.h
12315 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
12316 # include <curses.h>
12320 if test "x$ac_cv_header_term_h" = xyes
; then :
12321 cat >>confdefs.h
<<_ACEOF
12322 #define HAVE_TERM_H 1
12330 for ac_header
in sys
/socket.h
12332 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
12333 if test "x$ac_cv_header_sys_socket_h" = xyes
; then :
12334 cat >>confdefs.h
<<_ACEOF
12335 #define HAVE_SYS_SOCKET_H 1
12342 for ac_header
in ws2tcpip.h
12344 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
12345 if test "x$ac_cv_header_ws2tcpip_h" = xyes
; then :
12346 cat >>confdefs.h
<<_ACEOF
12347 #define HAVE_WS2TCPIP_H 1
12354 for ac_header
in execinfo.h
12356 ac_fn_c_check_header_mongrel
"$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
12357 if test "x$ac_cv_header_execinfo_h" = xyes
; then :
12358 cat >>confdefs.h
<<_ACEOF
12359 #define HAVE_EXECINFO_H 1
12367 # ------------------------- #
12368 # Checks for declarations. #
12369 # ------------------------- #
12372 # Check for presence and size of long long.
12373 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12374 if test "x$ac_cv_type_long_long" = xyes
; then :
12376 cat >>confdefs.h
<<_ACEOF
12377 #define HAVE_LONG_LONG 1
12380 # The cast to long int works around a bug in the HP C Compiler
12381 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12382 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12383 # This bug is HP SR number 8606223364.
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12385 $as_echo_n "checking size of long long... " >&6; }
12386 if ${ac_cv_sizeof_long_long+:} false
; then :
12387 $as_echo_n "(cached) " >&6
12389 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12392 if test "$ac_cv_type_long_long" = yes; then
12393 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12395 as_fn_error
77 "cannot compute sizeof (long long)
12396 See \`config.log' for more details" "$LINENO" 5; }
12398 ac_cv_sizeof_long_long
=0
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12404 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12408 cat >>confdefs.h
<<_ACEOF
12409 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12416 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
12417 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
12418 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
12424 cat >>confdefs.h
<<_ACEOF
12425 #define HAVE_DECL_BASENAME $ac_have_decl
12427 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
12428 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
12434 cat >>confdefs.h
<<_ACEOF
12435 #define HAVE_DECL_FFS $ac_have_decl
12437 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12438 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
12444 cat >>confdefs.h
<<_ACEOF
12445 #define HAVE_DECL_ASPRINTF $ac_have_decl
12447 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12448 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
12454 cat >>confdefs.h
<<_ACEOF
12455 #define HAVE_DECL_VASPRINTF $ac_have_decl
12457 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12458 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12464 cat >>confdefs.h
<<_ACEOF
12465 #define HAVE_DECL_SNPRINTF $ac_have_decl
12467 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12468 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
12474 cat >>confdefs.h
<<_ACEOF
12475 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12478 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
12479 if test "x$ac_cv_have_decl_strtol" = xyes
; then :
12485 cat >>confdefs.h
<<_ACEOF
12486 #define HAVE_DECL_STRTOL $ac_have_decl
12488 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
12489 if test "x$ac_cv_have_decl_strtoul" = xyes
; then :
12495 cat >>confdefs.h
<<_ACEOF
12496 #define HAVE_DECL_STRTOUL $ac_have_decl
12498 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
12499 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
12505 cat >>confdefs.h
<<_ACEOF
12506 #define HAVE_DECL_STRTOLL $ac_have_decl
12508 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
12509 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
12515 cat >>confdefs.h
<<_ACEOF
12516 #define HAVE_DECL_STRTOULL $ac_have_decl
12519 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12520 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
12526 cat >>confdefs.h
<<_ACEOF
12527 #define HAVE_DECL_STRVERSCMP $ac_have_decl
12532 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12533 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12539 cat >>confdefs.h
<<_ACEOF
12540 #define HAVE_DECL_SNPRINTF $ac_have_decl
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12545 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12546 if ${am_cv_val_LC_MESSAGES+:} false
; then :
12547 $as_echo_n "(cached) " >&6
12549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12550 /* end confdefs.h. */
12551 #include <locale.h>
12560 if ac_fn_c_try_link
"$LINENO"; then :
12561 am_cv_val_LC_MESSAGES
=yes
12563 am_cv_val_LC_MESSAGES
=no
12565 rm -f core conftest.err conftest.
$ac_objext \
12566 conftest
$ac_exeext conftest.
$ac_ext
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12569 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12570 if test $am_cv_val_LC_MESSAGES = yes; then
12572 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12577 # ------------------ #
12578 # Checks for types. #
12579 # ------------------ #
12581 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12582 #if HAVE_SYS_SOCKET_H
12583 # include <sys/socket.h>
12584 #elif HAVE_WS2TCPIP_H
12585 # include <ws2tcpip.h>
12589 if test "x$ac_cv_type_socklen_t" = xyes
; then :
12591 cat >>confdefs.h
<<_ACEOF
12592 #define HAVE_SOCKLEN_T 1
12599 # ------------------------------------- #
12600 # Checks for compiler characteristics. #
12601 # ------------------------------------- #
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12604 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12605 if ${ac_cv_c_const+:} false
; then :
12606 $as_echo_n "(cached) " >&6
12608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12609 /* end confdefs.h. */
12615 #ifndef __cplusplus
12616 /* Ultrix mips cc rejects this sort of thing. */
12617 typedef int charset[2];
12618 const charset cs = { 0, 0 };
12619 /* SunOS 4.1.1 cc rejects this. */
12620 char const *const *pcpcc;
12622 /* NEC SVR4.0.2 mips cc rejects this. */
12623 struct point {int x, y;};
12624 static struct point const zero = {0,0};
12625 /* AIX XL C 1.02.0.0 rejects this.
12626 It does not let you subtract one const X* pointer from another in
12627 an arm of an if-expression whose if-part is not a constant
12629 const char *g = "string";
12630 pcpcc = &g + (g ? g-g : 0);
12631 /* HPUX 7.0 cc rejects these. */
12633 ppc = (char**) pcpcc;
12634 pcpcc = (char const *const *) ppc;
12635 { /* SCO 3.2v4 cc rejects this sort of thing. */
12638 char const *s = 0 ? (char *) 0 : (char const *) 0;
12643 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12644 int x[] = {25, 17};
12645 const int *foo = &x[0];
12648 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12649 typedef const int *iptr;
12653 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12654 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12655 struct s { int j; const int *ap[3]; } bx;
12656 struct s *b = &bx; b->j = 5;
12658 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12659 const int foo = 10;
12660 if (!foo) return 0;
12662 return !cs[0] && !zero.x;
12669 if ac_fn_c_try_compile
"$LINENO"; then :
12674 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12677 $as_echo "$ac_cv_c_const" >&6; }
12678 if test $ac_cv_c_const = no
; then
12680 $as_echo "#define const /**/" >>confdefs.h
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12685 $as_echo_n "checking for inline... " >&6; }
12686 if ${ac_cv_c_inline+:} false
; then :
12687 $as_echo_n "(cached) " >&6
12690 for ac_kw
in inline __inline__ __inline
; do
12691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12692 /* end confdefs.h. */
12693 #ifndef __cplusplus
12695 static $ac_kw foo_t static_foo () {return 0; }
12696 $ac_kw foo_t foo () {return 0; }
12700 if ac_fn_c_try_compile
"$LINENO"; then :
12701 ac_cv_c_inline
=$ac_kw
12703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12704 test "$ac_cv_c_inline" != no
&& break
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12709 $as_echo "$ac_cv_c_inline" >&6; }
12711 case $ac_cv_c_inline in
12714 case $ac_cv_c_inline in
12716 *) ac_val
=$ac_cv_c_inline;;
12718 cat >>confdefs.h
<<_ACEOF
12719 #ifndef __cplusplus
12720 #define inline $ac_val
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12727 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12728 if ${ac_cv_c_bigendian+:} false
; then :
12729 $as_echo_n "(cached) " >&6
12731 ac_cv_c_bigendian
=unknown
12732 # See if we're dealing with a universal compiler.
12733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12734 /* end confdefs.h. */
12735 #ifndef __APPLE_CC__
12736 not a universal capable compiler
12741 if ac_fn_c_try_compile
"$LINENO"; then :
12743 # Check for potential -arch flags. It is not universal unless
12744 # there are at least two -arch flags with different values.
12747 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12748 if test -n "$ac_prev"; then
12750 i?
86 | x86_64 | ppc | ppc64
)
12751 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12754 ac_cv_c_bigendian
=universal
12760 elif test "x$ac_word" = "x-arch"; then
12765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12766 if test $ac_cv_c_bigendian = unknown
; then
12767 # See if sys/param.h defines the BYTE_ORDER macro.
12768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12769 /* end confdefs.h. */
12770 #include <sys/types.h>
12771 #include <sys/param.h>
12776 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12777 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12779 bogus endian macros
12786 if ac_fn_c_try_compile
"$LINENO"; then :
12787 # It does; now see whether it defined to BIG_ENDIAN or not.
12788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12789 /* end confdefs.h. */
12790 #include <sys/types.h>
12791 #include <sys/param.h>
12796 #if BYTE_ORDER != BIG_ENDIAN
12804 if ac_fn_c_try_compile
"$LINENO"; then :
12805 ac_cv_c_bigendian
=yes
12807 ac_cv_c_bigendian
=no
12809 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12811 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12813 if test $ac_cv_c_bigendian = unknown
; then
12814 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12816 /* end confdefs.h. */
12817 #include <limits.h>
12822 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12823 bogus endian macros
12830 if ac_fn_c_try_compile
"$LINENO"; then :
12831 # It does; now see whether it defined to _BIG_ENDIAN or not.
12832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12833 /* end confdefs.h. */
12834 #include <limits.h>
12839 #ifndef _BIG_ENDIAN
12847 if ac_fn_c_try_compile
"$LINENO"; then :
12848 ac_cv_c_bigendian
=yes
12850 ac_cv_c_bigendian
=no
12852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12856 if test $ac_cv_c_bigendian = unknown
; then
12857 # Compile a test program.
12858 if test "$cross_compiling" = yes; then :
12859 # Try to guess by grepping values from an object file.
12860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12861 /* end confdefs.h. */
12862 short int ascii_mm[] =
12863 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12864 short int ascii_ii[] =
12865 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12866 int use_ascii (int i) {
12867 return ascii_mm[i] + ascii_ii[i];
12869 short int ebcdic_ii[] =
12870 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12871 short int ebcdic_mm[] =
12872 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12873 int use_ebcdic (int i) {
12874 return ebcdic_mm[i] + ebcdic_ii[i];
12881 return use_ascii (foo) == use_ebcdic (foo);
12886 if ac_fn_c_try_compile
"$LINENO"; then :
12887 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12888 ac_cv_c_bigendian
=yes
12890 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12891 if test "$ac_cv_c_bigendian" = unknown
; then
12892 ac_cv_c_bigendian
=no
12894 # finding both strings is unlikely to happen, but who knows?
12895 ac_cv_c_bigendian
=unknown
12899 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12902 /* end confdefs.h. */
12903 $ac_includes_default
12908 /* Are we little or big endian? From Harbison&Steele. */
12912 char c[sizeof (long int)];
12915 return u.c[sizeof (long int) - 1] == 1;
12921 if ac_fn_c_try_run
"$LINENO"; then :
12922 ac_cv_c_bigendian
=no
12924 ac_cv_c_bigendian
=yes
12926 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12927 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12933 $as_echo "$ac_cv_c_bigendian" >&6; }
12934 case $ac_cv_c_bigendian in #(
12936 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12942 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12946 as_fn_error $?
"unknown endianness
12947 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12951 # ------------------------------ #
12952 # Checks for library functions. #
12953 # ------------------------------ #
12955 for ac_func
in getuid getgid \
12956 pipe pread pread64 pwrite resize_term \
12958 sigaction sigsetmask socketpair \
12959 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
12960 setrlimit getrlimit posix_madvise waitpid \
12963 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12964 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12965 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12966 cat >>confdefs.h
<<_ACEOF
12967 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12975 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12976 if ${am_cv_langinfo_codeset+:} false
; then :
12977 $as_echo_n "(cached) " >&6
12979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12980 /* end confdefs.h. */
12981 #include <langinfo.h>
12985 char* cs = nl_langinfo(CODESET);
12990 if ac_fn_c_try_link
"$LINENO"; then :
12991 am_cv_langinfo_codeset
=yes
12993 am_cv_langinfo_codeset
=no
12995 rm -f core conftest.err conftest.
$ac_objext \
12996 conftest
$ac_exeext conftest.
$ac_ext
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13000 $as_echo "$am_cv_langinfo_codeset" >&6; }
13001 if test $am_cv_langinfo_codeset = yes; then
13003 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13007 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13008 if test "x$ac_cv_type_size_t" = xyes
; then :
13012 cat >>confdefs.h
<<_ACEOF
13013 #define size_t unsigned int
13021 for ac_header
in $ac_header_list
13023 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13024 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13026 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13027 cat >>confdefs.h
<<_ACEOF
13028 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13041 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13042 if test "x$ac_cv_type_pid_t" = xyes
; then :
13046 cat >>confdefs.h
<<_ACEOF
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13053 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13054 if ${ac_cv_path_SED+:} false
; then :
13055 $as_echo_n "(cached) " >&6
13057 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
13058 for ac_i
in 1 2 3 4 5 6 7; do
13059 ac_script
="$ac_script$as_nl$ac_script"
13061 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
13062 { ac_script
=; unset ac_script
;}
13063 if test -z "$SED"; then
13064 ac_path_SED_found
=false
13065 # Loop through the user's path and test for each of PROGNAME-LIST
13066 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13067 for as_dir
in $PATH
13070 test -z "$as_dir" && as_dir
=.
13071 for ac_prog
in sed gsed
; do
13072 for ac_exec_ext
in '' $ac_executable_extensions; do
13073 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
13074 as_fn_executable_p
"$ac_path_SED" ||
continue
13075 # Check for GNU ac_path_SED and select it if it is found.
13076 # Check for GNU $ac_path_SED
13077 case `"$ac_path_SED" --version 2>&1` in
13079 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
13082 $as_echo_n 0123456789 >"conftest.in"
13085 cat "conftest.in" "conftest.in" >"conftest.tmp"
13086 mv "conftest.tmp" "conftest.in"
13087 cp "conftest.in" "conftest.nl"
13088 $as_echo '' >> "conftest.nl"
13089 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13090 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13091 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13092 if test $ac_count -gt ${ac_path_SED_max-0}; then
13093 # Best one so far, save it but keep looking for a better one
13094 ac_cv_path_SED
="$ac_path_SED"
13095 ac_path_SED_max
=$ac_count
13097 # 10*(2^10) chars as input seems more than enough
13098 test $ac_count -gt 10 && break
13100 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13103 $ac_path_SED_found && break 3
13108 if test -z "$ac_cv_path_SED"; then
13109 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
13112 ac_cv_path_SED
=$SED
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13117 $as_echo "$ac_cv_path_SED" >&6; }
13118 SED
="$ac_cv_path_SED"
13122 # Set the 'development' global.
13123 .
$srcdir/..
/bfd
/development.sh
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13126 $as_echo_n "checking for ANSI C header files... " >&6; }
13127 if ${ac_cv_header_stdc+:} false
; then :
13128 $as_echo_n "(cached) " >&6
13130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13131 /* end confdefs.h. */
13132 #include <stdlib.h>
13133 #include <stdarg.h>
13134 #include <string.h>
13145 if ac_fn_c_try_compile
"$LINENO"; then :
13146 ac_cv_header_stdc
=yes
13148 ac_cv_header_stdc
=no
13150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13152 if test $ac_cv_header_stdc = yes; then
13153 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13155 /* end confdefs.h. */
13156 #include <string.h>
13159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13160 $EGREP "memchr" >/dev
/null
2>&1; then :
13163 ac_cv_header_stdc
=no
13169 if test $ac_cv_header_stdc = yes; then
13170 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13172 /* end confdefs.h. */
13173 #include <stdlib.h>
13176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13177 $EGREP "free" >/dev
/null
2>&1; then :
13180 ac_cv_header_stdc
=no
13186 if test $ac_cv_header_stdc = yes; then
13187 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13188 if test "$cross_compiling" = yes; then :
13191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13192 /* end confdefs.h. */
13194 #include <stdlib.h>
13195 #if ((' ' & 0x0FF) == 0x020)
13196 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13197 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13199 # define ISLOWER(c) \
13200 (('a' <= (c) && (c) <= 'i') \
13201 || ('j' <= (c) && (c) <= 'r') \
13202 || ('s' <= (c) && (c) <= 'z'))
13203 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13206 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13211 for (i = 0; i < 256; i++)
13212 if (XOR (islower (i), ISLOWER (i))
13213 || toupper (i) != TOUPPER (i))
13218 if ac_fn_c_try_run
"$LINENO"; then :
13221 ac_cv_header_stdc
=no
13223 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13224 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13230 $as_echo "$ac_cv_header_stdc" >&6; }
13231 if test $ac_cv_header_stdc = yes; then
13233 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13237 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13238 # for constant arguments. Useless!
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13240 $as_echo_n "checking for working alloca.h... " >&6; }
13241 if ${ac_cv_working_alloca_h+:} false
; then :
13242 $as_echo_n "(cached) " >&6
13244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13245 /* end confdefs.h. */
13246 #include <alloca.h>
13250 char *p = (char *) alloca (2 * sizeof (int));
13256 if ac_fn_c_try_link
"$LINENO"; then :
13257 ac_cv_working_alloca_h
=yes
13259 ac_cv_working_alloca_h
=no
13261 rm -f core conftest.err conftest.
$ac_objext \
13262 conftest
$ac_exeext conftest.
$ac_ext
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13265 $as_echo "$ac_cv_working_alloca_h" >&6; }
13266 if test $ac_cv_working_alloca_h = yes; then
13268 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13273 $as_echo_n "checking for alloca... " >&6; }
13274 if ${ac_cv_func_alloca_works+:} false
; then :
13275 $as_echo_n "(cached) " >&6
13277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13278 /* end confdefs.h. */
13280 # define alloca __builtin_alloca
13283 # include <malloc.h>
13284 # define alloca _alloca
13286 # ifdef HAVE_ALLOCA_H
13287 # include <alloca.h>
13292 # ifndef alloca /* predefined by HP cc +Olibcalls */
13293 void *alloca (size_t);
13303 char *p = (char *) alloca (1);
13309 if ac_fn_c_try_link
"$LINENO"; then :
13310 ac_cv_func_alloca_works
=yes
13312 ac_cv_func_alloca_works
=no
13314 rm -f core conftest.err conftest.
$ac_objext \
13315 conftest
$ac_exeext conftest.
$ac_ext
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13318 $as_echo "$ac_cv_func_alloca_works" >&6; }
13320 if test $ac_cv_func_alloca_works = yes; then
13322 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13325 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13326 # that cause trouble. Some versions do not even contain alloca or
13327 # contain a buggy version. If you still want to use their alloca,
13328 # use ar to extract alloca.o from them instead of compiling alloca.c.
13330 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
13332 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13336 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13337 if ${ac_cv_os_cray+:} false
; then :
13338 $as_echo_n "(cached) " >&6
13340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13341 /* end confdefs.h. */
13342 #if defined CRAY && ! defined CRAY2
13349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13350 $EGREP "webecray" >/dev
/null
2>&1; then :
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13359 $as_echo "$ac_cv_os_cray" >&6; }
13360 if test $ac_cv_os_cray = yes; then
13361 for ac_func
in _getb67 GETB67 getb67
; do
13362 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13363 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13364 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13366 cat >>confdefs.h
<<_ACEOF
13367 #define CRAY_STACKSEG_END $ac_func
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13377 $as_echo_n "checking stack direction for C alloca... " >&6; }
13378 if ${ac_cv_c_stack_direction+:} false
; then :
13379 $as_echo_n "(cached) " >&6
13381 if test "$cross_compiling" = yes; then :
13382 ac_cv_c_stack_direction
=0
13384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13385 /* end confdefs.h. */
13386 $ac_includes_default
13388 find_stack_direction (int *addr, int depth)
13390 int dir, dummy = 0;
13393 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13394 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13395 return dir + dummy;
13399 main (int argc, char **argv)
13401 return find_stack_direction (0, argc + !argv + 20) < 0;
13404 if ac_fn_c_try_run
"$LINENO"; then :
13405 ac_cv_c_stack_direction
=1
13407 ac_cv_c_stack_direction
=-1
13409 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13410 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13415 $as_echo "$ac_cv_c_stack_direction" >&6; }
13416 cat >>confdefs.h
<<_ACEOF
13417 #define STACK_DIRECTION $ac_cv_c_stack_direction
13428 $as_echo "#define USE_WIN32API 1" >>confdefs.h
13430 WIN32APILIBS
="-lws2_32"
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13436 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13437 if ${am_cv_langinfo_codeset+:} false
; then :
13438 $as_echo_n "(cached) " >&6
13440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13441 /* end confdefs.h. */
13442 #include <langinfo.h>
13446 char* cs = nl_langinfo(CODESET);
13451 if ac_fn_c_try_link
"$LINENO"; then :
13452 am_cv_langinfo_codeset
=yes
13454 am_cv_langinfo_codeset
=no
13456 rm -f core conftest.err conftest.
$ac_objext \
13457 conftest
$ac_exeext conftest.
$ac_ext
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13461 $as_echo "$am_cv_langinfo_codeset" >&6; }
13462 if test $am_cv_langinfo_codeset = yes; then
13464 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13469 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
13471 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13472 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13473 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13474 cat >>confdefs.h
<<_ACEOF
13475 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13484 for ac_func
in getpagesize
13486 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13487 if test "x$ac_cv_func_getpagesize" = xyes
; then :
13488 cat >>confdefs.h
<<_ACEOF
13489 #define HAVE_GETPAGESIZE 1
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13496 $as_echo_n "checking for working mmap... " >&6; }
13497 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
13498 $as_echo_n "(cached) " >&6
13500 if test "$cross_compiling" = yes; then :
13501 ac_cv_func_mmap_fixed_mapped
=no
13503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13504 /* end confdefs.h. */
13505 $ac_includes_default
13506 /* malloc might have been renamed as rpl_malloc. */
13509 /* Thanks to Mike Haertel and Jim Avera for this test.
13510 Here is a matrix of mmap possibilities:
13511 mmap private not fixed
13512 mmap private fixed at somewhere currently unmapped
13513 mmap private fixed at somewhere already mapped
13514 mmap shared not fixed
13515 mmap shared fixed at somewhere currently unmapped
13516 mmap shared fixed at somewhere already mapped
13517 For private mappings, we should verify that changes cannot be read()
13518 back from the file, nor mmap's back from the file at a different
13519 address. (There have been systems where private was not correctly
13520 implemented like the infamous i386 svr4.0, and systems where the
13521 VM page cache was not coherent with the file system buffer cache
13522 like early versions of FreeBSD and possibly contemporary NetBSD.)
13523 For shared mappings, we should conversely verify that changes get
13524 propagated back to all the places they're supposed to be.
13526 Grep wants private fixed already mapped.
13527 The main things grep needs to know about mmap are:
13528 * does it exist and is it safe to write into the mmap'd area
13529 * how to use it (BSD variants) */
13532 #include <sys/mman.h>
13534 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13538 /* This mess was copied from the GNU getpagesize.h. */
13539 #ifndef HAVE_GETPAGESIZE
13540 # ifdef _SC_PAGESIZE
13541 # define getpagesize() sysconf(_SC_PAGESIZE)
13542 # else /* no _SC_PAGESIZE */
13543 # ifdef HAVE_SYS_PARAM_H
13544 # include <sys/param.h>
13545 # ifdef EXEC_PAGESIZE
13546 # define getpagesize() EXEC_PAGESIZE
13547 # else /* no EXEC_PAGESIZE */
13549 # define getpagesize() NBPG * CLSIZE
13552 # endif /* no CLSIZE */
13553 # else /* no NBPG */
13555 # define getpagesize() NBPC
13556 # else /* no NBPC */
13558 # define getpagesize() PAGESIZE
13559 # endif /* PAGESIZE */
13560 # endif /* no NBPC */
13561 # endif /* no NBPG */
13562 # endif /* no EXEC_PAGESIZE */
13563 # else /* no HAVE_SYS_PARAM_H */
13564 # define getpagesize() 8192 /* punt totally */
13565 # endif /* no HAVE_SYS_PARAM_H */
13566 # endif /* no _SC_PAGESIZE */
13568 #endif /* no HAVE_GETPAGESIZE */
13573 char *data, *data2, *data3;
13574 const char *cdata2;
13578 pagesize = getpagesize ();
13580 /* First, make a file with some known garbage in it. */
13581 data = (char *) malloc (pagesize);
13584 for (i = 0; i < pagesize; ++i)
13585 *(data + i) = rand ();
13587 fd = creat ("conftest.mmap", 0600);
13590 if (write (fd, data, pagesize) != pagesize)
13594 /* Next, check that the tail of a page is zero-filled. File must have
13595 non-zero length, otherwise we risk SIGBUS for entire page. */
13596 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13600 if (write (fd2, cdata2, 1) != 1)
13602 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13603 if (data2 == MAP_FAILED)
13605 for (i = 0; i < pagesize; ++i)
13609 if (munmap (data2, pagesize))
13612 /* Next, try to mmap the file at a fixed address which already has
13613 something else allocated at it. If we can, also make sure that
13614 we see the same garbage. */
13615 fd = open ("conftest.mmap", O_RDWR);
13618 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13619 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13621 for (i = 0; i < pagesize; ++i)
13622 if (*(data + i) != *(data2 + i))
13625 /* Finally, make sure that changes to the mapped area do not
13626 percolate back to the file as seen by read(). (This is a bug on
13627 some variants of i386 svr4.0.) */
13628 for (i = 0; i < pagesize; ++i)
13629 *(data2 + i) = *(data2 + i) + 1;
13630 data3 = (char *) malloc (pagesize);
13633 if (read (fd, data3, pagesize) != pagesize)
13635 for (i = 0; i < pagesize; ++i)
13636 if (*(data + i) != *(data3 + i))
13642 if ac_fn_c_try_run
"$LINENO"; then :
13643 ac_cv_func_mmap_fixed_mapped
=yes
13645 ac_cv_func_mmap_fixed_mapped
=no
13647 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13648 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13653 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13654 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13656 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13659 rm -f conftest.mmap conftest.txt
13661 for ac_header
in vfork.h
13663 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13664 if test "x$ac_cv_header_vfork_h" = xyes
; then :
13665 cat >>confdefs.h
<<_ACEOF
13666 #define HAVE_VFORK_H 1
13673 for ac_func
in fork vfork
13675 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13676 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13677 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13678 cat >>confdefs.h
<<_ACEOF
13679 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13685 if test "x$ac_cv_func_fork" = xyes
; then
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13687 $as_echo_n "checking for working fork... " >&6; }
13688 if ${ac_cv_func_fork_works+:} false
; then :
13689 $as_echo_n "(cached) " >&6
13691 if test "$cross_compiling" = yes; then :
13692 ac_cv_func_fork_works
=cross
13694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13695 /* end confdefs.h. */
13696 $ac_includes_default
13701 /* By Ruediger Kuhlmann. */
13702 return fork () < 0;
13708 if ac_fn_c_try_run
"$LINENO"; then :
13709 ac_cv_func_fork_works
=yes
13711 ac_cv_func_fork_works
=no
13713 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13714 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13719 $as_echo "$ac_cv_func_fork_works" >&6; }
13722 ac_cv_func_fork_works
=$ac_cv_func_fork
13724 if test "x$ac_cv_func_fork_works" = xcross
; then
13726 *-*-amigaos* |
*-*-msdosdjgpp*)
13727 # Override, as these systems have only a dummy fork() stub
13728 ac_cv_func_fork_works
=no
13731 ac_cv_func_fork_works
=yes
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13735 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13737 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13738 if test "x$ac_cv_func_vfork" = xyes
; then
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13740 $as_echo_n "checking for working vfork... " >&6; }
13741 if ${ac_cv_func_vfork_works+:} false
; then :
13742 $as_echo_n "(cached) " >&6
13744 if test "$cross_compiling" = yes; then :
13745 ac_cv_func_vfork_works
=cross
13747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13748 /* end confdefs.h. */
13749 /* Thanks to Paul Eggert for this test. */
13750 $ac_includes_default
13751 #include <sys/wait.h>
13752 #ifdef HAVE_VFORK_H
13753 # include <vfork.h>
13755 /* On some sparc systems, changes by the child to local and incoming
13756 argument registers are propagated back to the parent. The compiler
13757 is told about this with #include <vfork.h>, but some compilers
13758 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13759 static variable whose address is put into a register that is
13760 clobbered by the vfork. */
13763 sparc_address_test (int arg)
13765 sparc_address_test (arg) int arg;
13768 static pid_t child;
13786 pid_t parent = getpid ();
13789 sparc_address_test (0);
13794 /* Here is another test for sparc vfork register problems. This
13795 test uses lots of local variables, at least as many local
13796 variables as main has allocated so far including compiler
13797 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13798 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13799 reuse the register of parent for one of the local variables,
13800 since it will think that parent can't possibly be used any more
13801 in this routine. Assigning to the local variable will thus
13802 munge parent in the parent process. */
13804 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13805 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13806 /* Convince the compiler that p..p7 are live; otherwise, it might
13807 use the same hardware register for all 8 local variables. */
13808 if (p != p1 || p != p2 || p != p3 || p != p4
13809 || p != p5 || p != p6 || p != p7)
13812 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13813 from child file descriptors. If the child closes a descriptor
13814 before it execs or exits, this munges the parent's descriptor
13815 as well. Test for this by closing stdout in the child. */
13816 _exit(close(fileno(stdout)) != 0);
13821 while (wait(&status) != child)
13824 /* Was there some problem with vforking? */
13827 /* Did the child fail? (This shouldn't happen.) */
13830 /* Did the vfork/compiler bug occur? */
13831 || parent != getpid()
13833 /* Did the file descriptor bug occur? */
13834 || fstat(fileno(stdout), &st) != 0
13839 if ac_fn_c_try_run
"$LINENO"; then :
13840 ac_cv_func_vfork_works
=yes
13842 ac_cv_func_vfork_works
=no
13844 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13845 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13850 $as_echo "$ac_cv_func_vfork_works" >&6; }
13853 if test "x$ac_cv_func_fork_works" = xcross
; then
13854 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13856 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13859 if test "x$ac_cv_func_vfork_works" = xyes
; then
13861 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13865 $as_echo "#define vfork fork" >>confdefs.h
13868 if test "x$ac_cv_func_fork_works" = xyes
; then
13870 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13874 for ac_func
in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
13875 ptrace64 sbrk setns sigaltstack sigprocmask \
13876 setpgid setpgrp getrusage getauxval sigtimedwait
13878 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13879 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13880 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13881 cat >>confdefs.h
<<_ACEOF
13882 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13889 # This is needed for RHEL 5 and uclibc-ng < 1.0.39.
13890 # These did not define ADDR_NO_RANDOMIZE in sys/personality.h,
13891 # only in linux/personality.h.
13892 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
13894 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
13900 cat >>confdefs.h
<<_ACEOF
13901 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
13905 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13906 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
13912 cat >>confdefs.h
<<_ACEOF
13913 #define HAVE_DECL_STRSTR $ac_have_decl
13917 # ----------------------- #
13918 # Checks for structures. #
13919 # ----------------------- #
13921 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13922 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
13924 cat >>confdefs.h
<<_ACEOF
13925 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13930 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
13931 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
13933 cat >>confdefs.h
<<_ACEOF
13934 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13941 # On FreeBSD we need libutil for the kinfo_get* functions. On
13942 # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
13943 # Figure out which one to use.
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
13945 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
13946 if ${ac_cv_search_kinfo_getfile+:} false
; then :
13947 $as_echo_n "(cached) " >&6
13949 ac_func_search_save_LIBS
=$LIBS
13950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13951 /* end confdefs.h. */
13953 /* Override any GCC internal prototype to avoid an error.
13954 Use char because int might match the return type of a GCC
13955 builtin and then its argument prototype would still apply. */
13959 char kinfo_getfile ();
13963 return kinfo_getfile ();
13968 for ac_lib
in '' util util-freebsd
; do
13969 if test -z "$ac_lib"; then
13970 ac_res
="none required"
13973 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13975 if ac_fn_c_try_link
"$LINENO"; then :
13976 ac_cv_search_kinfo_getfile
=$ac_res
13978 rm -f core conftest.err conftest.
$ac_objext \
13980 if ${ac_cv_search_kinfo_getfile+:} false
; then :
13984 if ${ac_cv_search_kinfo_getfile+:} false
; then :
13987 ac_cv_search_kinfo_getfile
=no
13989 rm conftest.
$ac_ext
13990 LIBS
=$ac_func_search_save_LIBS
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
13993 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
13994 ac_res
=$ac_cv_search_kinfo_getfile
13995 if test "$ac_res" != no
; then :
13996 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14001 # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
14002 for ac_func
in kinfo_getfile
14004 ac_fn_c_check_func
"$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
14005 if test "x$ac_cv_func_kinfo_getfile" = xyes
; then :
14006 cat >>confdefs.h
<<_ACEOF
14007 #define HAVE_KINFO_GETFILE 1
14014 # ----------------------- #
14015 # Check for threading. #
14016 # ----------------------- #
14018 # Check whether --enable-threading was given.
14019 if test "${enable_threading+set}" = set; then :
14020 enableval
=$enable_threading; case "$enableval" in
14021 yes) want_threading
=yes ;;
14022 no
) want_threading
=no
;;
14023 *) as_fn_error $?
"bad value $enableval for threading" "$LINENO" 5 ;;
14030 # Check for std::thread. This does not work on some platforms, like
14033 ac_cpp
='$CXXCPP $CPPFLAGS'
14034 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14035 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14036 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
14043 ac_cpp
='$CPP $CPPFLAGS'
14044 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14045 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14046 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14050 # We used to check for pthread.h first, but this fails if pthread.h
14051 # requires special compiler flags (e.g. on Tru64 or Sequent).
14052 # It gets checked for in the link test anyway.
14054 # First of all, check if the user has set any of the PTHREAD_LIBS,
14055 # etcetera environment variables, and if threads linking works using
14057 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
14058 ax_pthread_save_CC
="$CC"
14059 ax_pthread_save_CFLAGS
="$CFLAGS"
14060 ax_pthread_save_LIBS
="$LIBS"
14061 if test "x$PTHREAD_CC" != "x"; then :
14064 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
14065 LIBS
="$PTHREAD_LIBS $LIBS"
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
14067 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
14068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14069 /* end confdefs.h. */
14071 /* Override any GCC internal prototype to avoid an error.
14072 Use char because int might match the return type of a GCC
14073 builtin and then its argument prototype would still apply. */
14077 char pthread_join ();
14081 return pthread_join ();
14086 if ac_fn_c_try_link
"$LINENO"; then :
14089 rm -f core conftest.err conftest.
$ac_objext \
14090 conftest
$ac_exeext conftest.
$ac_ext
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14092 $as_echo "$ax_pthread_ok" >&6; }
14093 if test "x$ax_pthread_ok" = "xno"; then
14097 CC
="$ax_pthread_save_CC"
14098 CFLAGS
="$ax_pthread_save_CFLAGS"
14099 LIBS
="$ax_pthread_save_LIBS"
14102 # We must check for the threads library under a number of different
14103 # names; the ordering is very important because some systems
14104 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14105 # libraries is broken (non-POSIX).
14107 # Create a list of thread flags to try. Items starting with a "-" are
14108 # C compiler flags, and other items are library names, except for "none"
14109 # which indicates that we try without any flags at all, and "pthread-config"
14110 # which is a program returning the flags for the Pth emulation library.
14112 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14114 # The ordering *is* (sometimes) important. Some notes on the
14115 # individual items follow:
14117 # pthreads: AIX (must check this before -lpthread)
14118 # none: in case threads are in libc; should be tried before -Kthread and
14119 # other compiler flags to prevent continual compiler warnings
14120 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14121 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
14122 # (Note: HP C rejects this with "bad form for `-t' option")
14123 # -pthreads: Solaris/gcc (Note: HP C also rejects)
14124 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14125 # doesn't hurt to check since this sometimes defines pthreads and
14126 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
14127 # is present but should not be used directly; and before -mthreads,
14128 # because the compiler interprets this as "-mt" + "-hreads")
14129 # -mthreads: Mingw32/gcc, Lynx/gcc
14130 # pthread: Linux, etcetera
14131 # --thread-safe: KAI C++
14132 # pthread-config: use pthread-config program (for GNU Pth library)
14138 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14139 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14141 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
14146 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
14147 # multi-threading and also sets -lpthread."
14149 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
14154 # IBM z/OS requires a feature-test macro to be defined in order to
14155 # enable POSIX threads at all, so give the user a hint if this is
14156 # not set. (We don't define these ourselves, as they can affect
14157 # other portions of the system API in unpredictable ways.)
14159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14160 /* end confdefs.h. */
14162 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
14163 AX_PTHREAD_ZOS_MISSING
14167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14168 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
14170 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
14178 # On Solaris (at least, for some versions), libc contains stubbed
14179 # (non-functional) versions of the pthreads routines, so link-based
14180 # tests will erroneously succeed. (N.B.: The stubs are missing
14181 # pthread_cleanup_push, or rather a function called by this macro,
14182 # so we could check for that, but who knows whether they'll stub
14183 # that too in a future libc.) So we'll check first for the
14184 # standard Solaris way of linking pthreads (-mt -lpthread).
14186 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
14190 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
14192 if test "x$GCC" = "xyes"; then :
14193 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
14196 # The presence of a feature test macro requesting re-entrant function
14197 # definitions is, on some systems, a strong hint that pthreads support is
14198 # correctly enabled
14201 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
14202 ax_pthread_check_macro
="_REENTRANT"
14206 ax_pthread_check_macro
="_THREAD_SAFE"
14210 ax_pthread_check_macro
="--"
14213 if test "x$ax_pthread_check_macro" = "x--"; then :
14214 ax_pthread_check_cond
=0
14216 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
14219 # Are we compiling with Clang?
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
14222 $as_echo_n "checking whether $CC is Clang... " >&6; }
14223 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
14224 $as_echo_n "(cached) " >&6
14226 ax_cv_PTHREAD_CLANG
=no
14227 # Note that Autoconf sets GCC=yes for Clang as well as GCC
14228 if test "x$GCC" = "xyes"; then
14229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14230 /* end confdefs.h. */
14231 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
14232 # if defined(__clang__) && defined(__llvm__)
14233 AX_PTHREAD_CC_IS_CLANG
14237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14238 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
14239 ax_cv_PTHREAD_CLANG
=yes
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
14247 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
14248 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
14250 ax_pthread_clang_warning
=no
14252 # Clang needs special handling, because older versions handle the -pthread
14253 # option in a rather... idiosyncratic way
14255 if test "x$ax_pthread_clang" = "xyes"; then
14257 # Clang takes -pthread; it has never supported any other flag
14259 # (Note 1: This will need to be revisited if a system that Clang
14260 # supports has POSIX threads in a separate library. This tends not
14261 # to be the way of modern systems, but it's conceivable.)
14263 # (Note 2: On some systems, notably Darwin, -pthread is not needed
14264 # to get POSIX threads support; the API is always present and
14265 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
14266 # -pthread does define _REENTRANT, and while the Darwin headers
14267 # ignore this macro, third-party headers might not.)
14269 PTHREAD_CFLAGS
="-pthread"
14274 # However, older versions of Clang make a point of warning the user
14275 # that, in an invocation where only linking and no compilation is
14276 # taking place, the -pthread option has no effect ("argument unused
14277 # during compilation"). They expect -pthread to be passed in only
14278 # when source code is being compiled.
14280 # Problem is, this is at odds with the way Automake and most other
14281 # C build frameworks function, which is that the same flags used in
14282 # compilation (CFLAGS) are also used in linking. Many systems
14283 # supported by AX_PTHREAD require exactly this for POSIX threads
14284 # support, and in fact it is often not straightforward to specify a
14285 # flag that is used only in the compilation phase and not in
14286 # linking. Such a scenario is extremely rare in practice.
14288 # Even though use of the -pthread flag in linking would only print
14289 # a warning, this can be a nuisance for well-run software projects
14290 # that build with -Werror. So if the active version of Clang has
14291 # this misfeature, we search for an option to squash it.
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
14294 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
14295 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
14296 $as_echo_n "(cached) " >&6
14298 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
14299 # Create an alternate version of $ac_link that compiles and
14300 # links in two steps (.c -> .o, .o -> exe) instead of one
14301 # (.c -> exe), because the warning occurs only in the second
14303 ax_pthread_save_ac_link
="$ac_link"
14304 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
14305 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
14306 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
14307 ax_pthread_save_CFLAGS
="$CFLAGS"
14308 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
14309 if test "x$ax_pthread_try" = "xunknown"; then :
14312 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
14313 ac_link
="$ax_pthread_save_ac_link"
14314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14315 /* end confdefs.h. */
14316 int main(void){return 0;}
14318 if ac_fn_c_try_link
"$LINENO"; then :
14319 ac_link
="$ax_pthread_2step_ac_link"
14320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14321 /* end confdefs.h. */
14322 int main(void){return 0;}
14324 if ac_fn_c_try_link
"$LINENO"; then :
14327 rm -f core conftest.err conftest.
$ac_objext \
14328 conftest
$ac_exeext conftest.
$ac_ext
14331 rm -f core conftest.err conftest.
$ac_objext \
14332 conftest
$ac_exeext conftest.
$ac_ext
14334 ac_link
="$ax_pthread_save_ac_link"
14335 CFLAGS
="$ax_pthread_save_CFLAGS"
14336 if test "x$ax_pthread_try" = "x"; then :
14339 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
14343 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
14345 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
14347 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
14350 fi # $ax_pthread_clang = yes
14352 if test "x$ax_pthread_ok" = "xno"; then
14353 for ax_pthread_try_flag
in $ax_pthread_flags; do
14355 case $ax_pthread_try_flag in
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14358 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
14363 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
14364 PTHREAD_CFLAGS
="-mt"
14365 PTHREAD_LIBS
="-lpthread"
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
14370 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
14371 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
14375 # Extract the first word of "pthread-config", so it can be a program name with args.
14376 set dummy pthread-config
; ac_word
=$2
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14378 $as_echo_n "checking for $ac_word... " >&6; }
14379 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
14380 $as_echo_n "(cached) " >&6
14382 if test -n "$ax_pthread_config"; then
14383 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
14385 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14386 for as_dir
in $PATH
14389 test -z "$as_dir" && as_dir
=.
14390 for ac_exec_ext
in '' $ac_executable_extensions; do
14391 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14392 ac_cv_prog_ax_pthread_config
="yes"
14393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14400 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
14403 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
14404 if test -n "$ax_pthread_config"; then
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
14406 $as_echo "$ax_pthread_config" >&6; }
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14409 $as_echo "no" >&6; }
14413 if test "x$ax_pthread_config" = "xno"; then :
14416 PTHREAD_CFLAGS
="`pthread-config --cflags`"
14417 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
14422 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
14423 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
14427 ax_pthread_save_CFLAGS
="$CFLAGS"
14428 ax_pthread_save_LIBS
="$LIBS"
14429 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
14430 LIBS
="$PTHREAD_LIBS $LIBS"
14432 # Check for various functions. We must include pthread.h,
14433 # since some functions may be macros. (On the Sequent, we
14434 # need a special flag -Kthread to make this header compile.)
14435 # We check for pthread_join because it is in -lpthread on IRIX
14436 # while pthread_create is in libc. We check for pthread_attr_init
14437 # due to DEC craziness with -lpthreads. We check for
14438 # pthread_cleanup_push because it is one of the few pthread
14439 # functions on Solaris that doesn't have a non-functional libc stub.
14440 # We try pthread_create on general principles.
14442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14443 /* end confdefs.h. */
14444 #include <pthread.h>
14445 # if $ax_pthread_check_cond
14446 # error "$ax_pthread_check_macro must be defined"
14448 static void routine(void *a) { a = 0; }
14449 static void *start_routine(void *a) { return a; }
14453 pthread_t th; pthread_attr_t attr;
14454 pthread_create(&th, 0, start_routine, 0);
14455 pthread_join(th, 0);
14456 pthread_attr_init(&attr);
14457 pthread_cleanup_push(routine, 0);
14458 pthread_cleanup_pop(0) /* ; */
14463 if ac_fn_c_try_link
"$LINENO"; then :
14466 rm -f core conftest.err conftest.
$ac_objext \
14467 conftest
$ac_exeext conftest.
$ac_ext
14469 CFLAGS
="$ax_pthread_save_CFLAGS"
14470 LIBS
="$ax_pthread_save_LIBS"
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14473 $as_echo "$ax_pthread_ok" >&6; }
14474 if test "x$ax_pthread_ok" = "xyes"; then :
14483 # Various other checks:
14484 if test "x$ax_pthread_ok" = "xyes"; then
14485 ax_pthread_save_CFLAGS
="$CFLAGS"
14486 ax_pthread_save_LIBS
="$LIBS"
14487 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
14488 LIBS
="$PTHREAD_LIBS $LIBS"
14490 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14492 $as_echo_n "checking for joinable pthread attribute... " >&6; }
14493 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
14494 $as_echo_n "(cached) " >&6
14496 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
14497 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
14498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14499 /* end confdefs.h. */
14500 #include <pthread.h>
14504 int attr = $ax_pthread_attr; return attr /* ; */
14509 if ac_fn_c_try_link
"$LINENO"; then :
14510 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
14512 rm -f core conftest.err conftest.
$ac_objext \
14513 conftest
$ac_exeext conftest.
$ac_ext
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
14518 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
14519 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
14520 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
14521 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
14523 cat >>confdefs.h
<<_ACEOF
14524 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
14527 ax_pthread_joinable_attr_defined
=yes
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
14532 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
14533 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
14534 $as_echo_n "(cached) " >&6
14536 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
14539 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
14545 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
14546 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
14547 test "x$ax_pthread_special_flags_added" != "xyes"; then :
14548 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
14549 ax_pthread_special_flags_added
=yes
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
14553 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
14554 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
14555 $as_echo_n "(cached) " >&6
14557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14558 /* end confdefs.h. */
14559 #include <pthread.h>
14563 int i = PTHREAD_PRIO_INHERIT;
14568 if ac_fn_c_try_link
"$LINENO"; then :
14569 ax_cv_PTHREAD_PRIO_INHERIT
=yes
14571 ax_cv_PTHREAD_PRIO_INHERIT
=no
14573 rm -f core conftest.err conftest.
$ac_objext \
14574 conftest
$ac_exeext conftest.
$ac_ext
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
14578 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
14579 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
14580 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
14582 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
14584 ax_pthread_prio_inherit_defined
=yes
14588 CFLAGS
="$ax_pthread_save_CFLAGS"
14589 LIBS
="$ax_pthread_save_LIBS"
14591 # More AIX lossage: compile with *_r variant
14592 if test "x$GCC" != "xyes"; then
14596 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
14597 #handle absolute path differently from PATH based program lookup
14600 if as_fn_executable_p
${CC}_r
; then :
14601 PTHREAD_CC
="${CC}_r"
14604 for ac_prog
in ${CC}_r
14606 # Extract the first word of "$ac_prog", so it can be a program name with args.
14607 set dummy
$ac_prog; ac_word
=$2
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14609 $as_echo_n "checking for $ac_word... " >&6; }
14610 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
14611 $as_echo_n "(cached) " >&6
14613 if test -n "$PTHREAD_CC"; then
14614 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
14616 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14617 for as_dir
in $PATH
14620 test -z "$as_dir" && as_dir
=.
14621 for ac_exec_ext
in '' $ac_executable_extensions; do
14622 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14623 ac_cv_prog_PTHREAD_CC
="$ac_prog"
14624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14633 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
14634 if test -n "$PTHREAD_CC"; then
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14636 $as_echo "$PTHREAD_CC" >&6; }
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14639 $as_echo "no" >&6; }
14643 test -n "$PTHREAD_CC" && break
14645 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
14656 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
14662 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14663 if test "x$ax_pthread_ok" = "xyes"; then
14671 ac_cpp
='$CXXCPP $CPPFLAGS'
14672 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14673 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14674 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
14678 LIBS
="$PTHREAD_LIBS $LIBS"
14679 save_CXXFLAGS
="$CXXFLAGS"
14680 CXXFLAGS
="$PTHREAD_CFLAGS $save_CXXFLAGS"
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
14682 $as_echo_n "checking for std::thread... " >&6; }
14683 if ${gdb_cv_cxx_std_thread+:} false
; then :
14684 $as_echo_n "(cached) " >&6
14686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14687 /* end confdefs.h. */
14689 void callback() { }
14693 std::thread t(callback);
14698 if ac_fn_cxx_try_compile
"$LINENO"; then :
14699 gdb_cv_cxx_std_thread
=yes
14701 gdb_cv_cxx_std_thread
=no
14703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
14706 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
14708 if test "$threads" = "yes"; then
14709 # This check must be here, while LIBS includes any necessary
14710 # threading library.
14711 for ac_func
in pthread_sigmask pthread_setname_np
14713 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14714 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14715 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14716 cat >>confdefs.h
<<_ACEOF
14717 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14725 CXXFLAGS
="$save_CXXFLAGS"
14727 if test "$want_threading" = "yes"; then
14728 if test "$gdb_cv_cxx_std_thread" = "yes"; then
14730 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
14735 ac_cpp
='$CPP $CPPFLAGS'
14736 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14737 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14738 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
14742 $as_echo_n "checking for sigsetjmp... " >&6; }
14743 if ${gdb_cv_func_sigsetjmp+:} false
; then :
14744 $as_echo_n "(cached) " >&6
14746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14747 /* end confdefs.h. */
14748 #include <setjmp.h>
14753 while (! sigsetjmp (env, 1))
14754 siglongjmp (env, 1);
14760 if ac_fn_c_try_compile
"$LINENO"; then :
14761 gdb_cv_func_sigsetjmp
=yes
14763 gdb_cv_func_sigsetjmp
=no
14766 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
14770 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
14771 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
14773 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
14778 # Check whether --with-intel_pt was given.
14779 if test "${with_intel_pt+set}" = set; then :
14780 withval
=$with_intel_pt;
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
14786 $as_echo_n "checking whether to use intel pt... " >&6; }
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
14788 $as_echo "$with_intel_pt" >&6; }
14790 if test "${with_intel_pt}" = no
; then
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
14792 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
14795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14796 /* end confdefs.h. */
14798 #include <linux/perf_event.h>
14799 #ifndef PERF_ATTR_SIZE_VER5
14804 if ac_fn_c_try_cpp
"$LINENO"; then :
14809 rm -f conftest.err conftest.i conftest.
$ac_ext
14810 if test "$perf_event" != yes; then
14811 if test "$with_intel_pt" = yes; then
14812 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
14815 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
14829 acl_save_prefix
="$prefix"
14830 prefix
="$acl_final_prefix"
14831 acl_save_exec_prefix
="$exec_prefix"
14832 exec_prefix
="$acl_final_exec_prefix"
14834 eval additional_includedir
=\"$includedir\"
14835 eval additional_libdir
=\"$libdir\"
14837 exec_prefix
="$acl_save_exec_prefix"
14838 prefix
="$acl_save_prefix"
14841 # Check whether --with-libipt-prefix was given.
14842 if test "${with_libipt_prefix+set}" = set; then :
14843 withval
=$with_libipt_prefix;
14844 if test "X$withval" = "Xno"; then
14847 if test "X$withval" = "X"; then
14849 acl_save_prefix
="$prefix"
14850 prefix
="$acl_final_prefix"
14851 acl_save_exec_prefix
="$exec_prefix"
14852 exec_prefix
="$acl_final_exec_prefix"
14854 eval additional_includedir
=\"$includedir\"
14855 eval additional_libdir
=\"$libdir\"
14857 exec_prefix
="$acl_save_exec_prefix"
14858 prefix
="$acl_save_prefix"
14861 additional_includedir
="$withval/include"
14862 additional_libdir
="$withval/lib"
14869 # Check whether --with-libipt-type was given.
14870 if test "${with_libipt_type+set}" = set; then :
14871 withval
=$with_libipt_type; with_libipt_type
=$withval
14873 with_libipt_type
=auto
14876 lib_type
=`eval echo \$with_libipt_type`
14883 names_already_handled
=
14884 names_next_round
='ipt '
14885 while test -n "$names_next_round"; do
14886 names_this_round
="$names_next_round"
14888 for name
in $names_this_round; do
14890 for n
in $names_already_handled; do
14891 if test "$n" = "$name"; then
14892 already_handled
=yes
14896 if test -z "$already_handled"; then
14897 names_already_handled
="$names_already_handled $name"
14898 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14899 eval value
=\"\
$HAVE_LIB$uppername\"
14900 if test -n "$value"; then
14901 if test "$value" = yes; then
14902 eval value
=\"\
$LIB$uppername\"
14903 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
14904 eval value
=\"\
$LTLIB$uppername\"
14905 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
14914 if test $use_additional = yes; then
14915 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
14916 found_dir
="$additional_libdir"
14917 found_so
="$additional_libdir/lib$name.$shlibext"
14918 if test -f "$additional_libdir/lib$name.la"; then
14919 found_la
="$additional_libdir/lib$name.la"
14921 elif test x
$lib_type != xshared
; then
14922 if test -f "$additional_libdir/lib$name.$libext"; then
14923 found_dir
="$additional_libdir"
14924 found_a
="$additional_libdir/lib$name.$libext"
14925 if test -f "$additional_libdir/lib$name.la"; then
14926 found_la
="$additional_libdir/lib$name.la"
14931 if test "X$found_dir" = "X"; then
14932 for x
in $LDFLAGS $LTLIBIPT; do
14934 acl_save_prefix
="$prefix"
14935 prefix
="$acl_final_prefix"
14936 acl_save_exec_prefix
="$exec_prefix"
14937 exec_prefix
="$acl_final_exec_prefix"
14939 exec_prefix
="$acl_save_exec_prefix"
14940 prefix
="$acl_save_prefix"
14944 dir
=`echo "X$x" | sed -e 's/^X-L//'`
14945 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
14947 found_so
="$dir/lib$name.$shlibext"
14948 if test -f "$dir/lib$name.la"; then
14949 found_la
="$dir/lib$name.la"
14951 elif test x
$lib_type != xshared
; then
14952 if test -f "$dir/lib$name.$libext"; then
14954 found_a
="$dir/lib$name.$libext"
14955 if test -f "$dir/lib$name.la"; then
14956 found_la
="$dir/lib$name.la"
14962 if test "X$found_dir" != "X"; then
14967 if test "X$found_dir" != "X"; then
14968 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
14969 if test "X$found_so" != "X"; then
14970 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
14971 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14974 for x
in $ltrpathdirs; do
14975 if test "X$x" = "X$found_dir"; then
14980 if test -z "$haveit"; then
14981 ltrpathdirs
="$ltrpathdirs $found_dir"
14983 if test "$hardcode_direct" = yes; then
14984 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14986 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
14987 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14989 for x
in $rpathdirs; do
14990 if test "X$x" = "X$found_dir"; then
14995 if test -z "$haveit"; then
14996 rpathdirs
="$rpathdirs $found_dir"
15000 for x
in $LDFLAGS $LIBIPT; do
15002 acl_save_prefix
="$prefix"
15003 prefix
="$acl_final_prefix"
15004 acl_save_exec_prefix
="$exec_prefix"
15005 exec_prefix
="$acl_final_exec_prefix"
15007 exec_prefix
="$acl_save_exec_prefix"
15008 prefix
="$acl_save_prefix"
15010 if test "X$x" = "X-L$found_dir"; then
15015 if test -z "$haveit"; then
15016 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
15018 if test "$hardcode_minus_L" != no
; then
15019 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
15021 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
15027 if test "X$found_a" != "X"; then
15028 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
15030 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
15033 additional_includedir
=
15034 case "$found_dir" in
15036 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15037 additional_includedir
="$basedir/include"
15040 if test "X$additional_includedir" != "X"; then
15041 if test "X$additional_includedir" != "X/usr/include"; then
15043 if test "X$additional_includedir" = "X/usr/local/include"; then
15044 if test -n "$GCC"; then
15046 linux
*) haveit
=yes;;
15050 if test -z "$haveit"; then
15051 for x
in $CPPFLAGS $INCIPT; do
15053 acl_save_prefix
="$prefix"
15054 prefix
="$acl_final_prefix"
15055 acl_save_exec_prefix
="$exec_prefix"
15056 exec_prefix
="$acl_final_exec_prefix"
15058 exec_prefix
="$acl_save_exec_prefix"
15059 prefix
="$acl_save_prefix"
15061 if test "X$x" = "X-I$additional_includedir"; then
15066 if test -z "$haveit"; then
15067 if test -d "$additional_includedir"; then
15068 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
15074 if test -n "$found_la"; then
15075 save_libdir
="$libdir"
15076 case "$found_la" in
15077 */* |
*\\*) .
"$found_la" ;;
15078 *) .
"./$found_la" ;;
15080 libdir
="$save_libdir"
15081 for dep
in $dependency_libs; do
15084 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
15085 if test "X$additional_libdir" != "X/usr/lib"; then
15087 if test "X$additional_libdir" = "X/usr/local/lib"; then
15088 if test -n "$GCC"; then
15090 linux
*) haveit
=yes;;
15094 if test -z "$haveit"; then
15096 for x
in $LDFLAGS $LIBIPT; do
15098 acl_save_prefix
="$prefix"
15099 prefix
="$acl_final_prefix"
15100 acl_save_exec_prefix
="$exec_prefix"
15101 exec_prefix
="$acl_final_exec_prefix"
15103 exec_prefix
="$acl_save_exec_prefix"
15104 prefix
="$acl_save_prefix"
15106 if test "X$x" = "X-L$additional_libdir"; then
15111 if test -z "$haveit"; then
15112 if test -d "$additional_libdir"; then
15113 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
15117 for x
in $LDFLAGS $LTLIBIPT; do
15119 acl_save_prefix
="$prefix"
15120 prefix
="$acl_final_prefix"
15121 acl_save_exec_prefix
="$exec_prefix"
15122 exec_prefix
="$acl_final_exec_prefix"
15124 exec_prefix
="$acl_save_exec_prefix"
15125 prefix
="$acl_save_prefix"
15127 if test "X$x" = "X-L$additional_libdir"; then
15132 if test -z "$haveit"; then
15133 if test -d "$additional_libdir"; then
15134 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
15141 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
15142 if test "$enable_rpath" != no
; then
15144 for x
in $rpathdirs; do
15145 if test "X$x" = "X$dir"; then
15150 if test -z "$haveit"; then
15151 rpathdirs
="$rpathdirs $dir"
15154 for x
in $ltrpathdirs; do
15155 if test "X$x" = "X$dir"; then
15160 if test -z "$haveit"; then
15161 ltrpathdirs
="$ltrpathdirs $dir"
15166 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15169 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15172 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
15173 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
15179 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
15180 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
15181 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
15183 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
15184 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
15191 if test "X$rpathdirs" != "X"; then
15192 if test -n "$hardcode_libdir_separator"; then
15194 for found_dir
in $rpathdirs; do
15195 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15197 acl_save_libdir
="$libdir"
15199 eval flag
=\"$hardcode_libdir_flag_spec\"
15200 libdir
="$acl_save_libdir"
15201 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
15203 for found_dir
in $rpathdirs; do
15204 acl_save_libdir
="$libdir"
15205 libdir
="$found_dir"
15206 eval flag
=\"$hardcode_libdir_flag_spec\"
15207 libdir
="$acl_save_libdir"
15208 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
15212 if test "X$ltrpathdirs" != "X"; then
15213 for found_dir
in $ltrpathdirs; do
15214 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
15219 ac_save_CPPFLAGS
="$CPPFLAGS"
15221 for element
in $INCIPT; do
15223 for x
in $CPPFLAGS; do
15225 acl_save_prefix
="$prefix"
15226 prefix
="$acl_final_prefix"
15227 acl_save_exec_prefix
="$exec_prefix"
15228 exec_prefix
="$acl_final_exec_prefix"
15230 exec_prefix
="$acl_save_exec_prefix"
15231 prefix
="$acl_save_prefix"
15233 if test "X$x" = "X$element"; then
15238 if test -z "$haveit"; then
15239 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
15245 $as_echo_n "checking for libipt... " >&6; }
15246 if ${ac_cv_libipt+:} false
; then :
15247 $as_echo_n "(cached) " >&6
15250 ac_save_LIBS
="$LIBS"
15251 LIBS
="$LIBS $LIBIPT"
15252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15253 /* end confdefs.h. */
15254 #include "intel-pt.h"
15258 pt_insn_alloc_decoder (0);
15263 if ac_fn_c_try_link
"$LINENO"; then :
15268 rm -f core conftest.err conftest.
$ac_objext \
15269 conftest
$ac_exeext conftest.
$ac_ext
15270 LIBS
="$ac_save_LIBS"
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
15274 $as_echo "$ac_cv_libipt" >&6; }
15275 if test "$ac_cv_libipt" = yes; then
15278 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
15281 $as_echo_n "checking how to link with libipt... " >&6; }
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
15283 $as_echo "$LIBIPT" >&6; }
15286 CPPFLAGS
="$ac_save_CPPFLAGS"
15296 if test "$HAVE_LIBIPT" != yes; then
15297 if test "$with_intel_pt" = yes; then
15298 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
15301 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
15305 LIBS
="$LIBS $LIBIPT"
15306 for ac_func
in pt_insn_event
15308 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
15309 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
15310 cat >>confdefs.h
<<_ACEOF
15311 #define HAVE_PT_INSN_EVENT 1
15317 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
15319 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
15321 cat >>confdefs.h
<<_ACEOF
15322 #define HAVE_STRUCT_PT_INSN_ENABLED 1
15327 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
15329 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
15331 cat >>confdefs.h
<<_ACEOF
15332 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
15342 # Check if the compiler and runtime support printing long longs.
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
15345 $as_echo_n "checking for long long support in printf... " >&6; }
15346 if ${gdb_cv_printf_has_long_long+:} false
; then :
15347 $as_echo_n "(cached) " >&6
15349 if test "$cross_compiling" = yes; then :
15350 gdb_cv_printf_has_long_long
=no
15352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15353 /* end confdefs.h. */
15354 $ac_includes_default
15360 l = (l << 16) + 0x0123;
15361 l = (l << 16) + 0x4567;
15362 l = (l << 16) + 0x89ab;
15363 l = (l << 16) + 0xcdef;
15364 sprintf (buf, "0x%016llx", l);
15365 return (strcmp ("0x0123456789abcdef", buf));
15370 if ac_fn_c_try_run
"$LINENO"; then :
15371 gdb_cv_printf_has_long_long
=yes
15373 gdb_cv_printf_has_long_long
=no
15375 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15376 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
15381 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
15382 if test "$gdb_cv_printf_has_long_long" = yes; then
15384 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
15389 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
15391 for ac_header
in sys
/procfs.h
15393 ac_fn_c_check_header_mongrel
"$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
15394 if test "x$ac_cv_header_sys_procfs_h" = xyes
; then :
15395 cat >>confdefs.h
<<_ACEOF
15396 #define HAVE_SYS_PROCFS_H 1
15403 if test "$ac_cv_header_sys_procfs_h" = yes; then
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
15406 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
15407 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
15408 $as_echo_n "(cached) " >&6
15410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15411 /* end confdefs.h. */
15414 #include <sys/procfs.h>
15423 if ac_fn_c_try_compile
"$LINENO"; then :
15424 bfd_cv_have_sys_procfs_type_gregset_t
=yes
15426 bfd_cv_have_sys_procfs_type_gregset_t
=no
15429 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15432 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
15434 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
15438 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
15442 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
15443 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
15444 $as_echo_n "(cached) " >&6
15446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15447 /* end confdefs.h. */
15450 #include <sys/procfs.h>
15459 if ac_fn_c_try_compile
"$LINENO"; then :
15460 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
15462 bfd_cv_have_sys_procfs_type_fpregset_t
=no
15465 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15468 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
15470 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
15474 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
15478 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
15479 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
15480 $as_echo_n "(cached) " >&6
15482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15483 /* end confdefs.h. */
15486 #include <sys/procfs.h>
15495 if ac_fn_c_try_compile
"$LINENO"; then :
15496 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
15498 bfd_cv_have_sys_procfs_type_prgregset_t
=no
15501 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15504 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
15506 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
15510 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
15513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
15514 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
15515 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
15516 $as_echo_n "(cached) " >&6
15518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15519 /* end confdefs.h. */
15522 #include <sys/procfs.h>
15531 if ac_fn_c_try_compile
"$LINENO"; then :
15532 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
15534 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
15537 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15540 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
15542 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
15545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
15546 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
15549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
15550 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
15551 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
15552 $as_echo_n "(cached) " >&6
15554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15555 /* end confdefs.h. */
15558 #include <sys/procfs.h>
15567 if ac_fn_c_try_compile
"$LINENO"; then :
15568 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
15570 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
15573 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15576 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
15578 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
15582 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
15586 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
15587 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
15588 $as_echo_n "(cached) " >&6
15590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15591 /* end confdefs.h. */
15594 #include <sys/procfs.h>
15603 if ac_fn_c_try_compile
"$LINENO"; then :
15604 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
15606 bfd_cv_have_sys_procfs_type_lwpid_t
=no
15609 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15612 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
15614 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
15618 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
15622 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
15623 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
15624 $as_echo_n "(cached) " >&6
15626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15627 /* end confdefs.h. */
15630 #include <sys/procfs.h>
15639 if ac_fn_c_try_compile
"$LINENO"; then :
15640 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
15642 bfd_cv_have_sys_procfs_type_psaddr_t
=no
15645 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15648 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
15650 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
15654 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
15658 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
15659 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
15660 $as_echo_n "(cached) " >&6
15662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15663 /* end confdefs.h. */
15666 #include <sys/procfs.h>
15670 elf_fpregset_t avar
15675 if ac_fn_c_try_compile
"$LINENO"; then :
15676 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
15678 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
15681 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15684 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
15686 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
15690 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
15695 # Check the return and argument types of ptrace.
15698 for ac_header
in sys
/ptrace.h ptrace.h
15700 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15701 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15702 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
15703 cat >>confdefs.h
<<_ACEOF
15704 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15712 gdb_ptrace_headers
='
15713 #include <sys/types.h>
15714 #if HAVE_SYS_PTRACE_H
15715 # include <sys/ptrace.h>
15718 # include <unistd.h>
15722 # Check return type. Varargs (used on GNU/Linux) conflict with the
15723 # empty argument list, so check for that explicitly.
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
15725 $as_echo_n "checking return type of ptrace... " >&6; }
15726 if ${gdb_cv_func_ptrace_ret+:} false
; then :
15727 $as_echo_n "(cached) " >&6
15729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15730 /* end confdefs.h. */
15731 Â $gdb_ptrace_headers
15735 extern long ptrace (enum __ptrace_request, ...);
15741 if ac_fn_c_try_compile
"$LINENO"; then :
15742 gdb_cv_func_ptrace_ret
='long'
15744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15745 /* end confdefs.h. */
15746 $gdb_ptrace_headers
15750 extern int ptrace ();
15756 if ac_fn_c_try_compile
"$LINENO"; then :
15757 gdb_cv_func_ptrace_ret
='int'
15759 gdb_cv_func_ptrace_ret
='long'
15762 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
15769 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
15772 cat >>confdefs.h
<<_ACEOF
15773 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
15777 # Check argument types.
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
15779 $as_echo_n "checking types of arguments for ptrace... " >&6; }
15780 if ${gdb_cv_func_ptrace_args+:} false
; then :
15781 $as_echo_n "(cached) " >&6
15783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15784 /* end confdefs.h. */
15785 $gdb_ptrace_headers
15789 extern long ptrace (enum __ptrace_request, ...);
15795 if ac_fn_c_try_compile
"$LINENO"; then :
15796 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
15798 for gdb_arg1
in 'int' 'long'; do
15799 for gdb_arg2
in 'pid_t' 'int' 'long'; do
15800 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
15801 for gdb_arg4
in 'int' 'long' 'void *'; do
15802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15803 /* end confdefs.h. */
15804 $gdb_ptrace_headers
15808 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
15814 if ac_fn_c_try_compile
"$LINENO"; then :
15815 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
15819 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15821 for gdb_arg5
in 'int *' 'int' 'long'; do
15822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15823 /* end confdefs.h. */
15824 $gdb_ptrace_headers
15828 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
15834 if ac_fn_c_try_compile
"$LINENO"; then :
15835 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
15839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15845 # Provide a safe default value.
15846 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
15849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
15853 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
15855 ac_save_IFS
=$IFS; IFS
=','
15856 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
15860 cat >>confdefs.h
<<_ACEOF
15861 #define PTRACE_TYPE_ARG1 $1
15865 cat >>confdefs.h
<<_ACEOF
15866 #define PTRACE_TYPE_ARG3 $3
15870 cat >>confdefs.h
<<_ACEOF
15871 #define PTRACE_TYPE_ARG4 $4
15874 if test -n "$5"; then
15876 cat >>confdefs.h
<<_ACEOF
15877 #define PTRACE_TYPE_ARG5 $5
15883 if test "$cross_compiling" = no
; then
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
15885 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
15886 if ${ac_cv_func_setpgrp_void+:} false
; then :
15887 $as_echo_n "(cached) " >&6
15889 if test "$cross_compiling" = yes; then :
15890 as_fn_error $?
"cannot check setpgrp when cross compiling" "$LINENO" 5
15892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15893 /* end confdefs.h. */
15894 $ac_includes_default
15898 /* If this system has a BSD-style setpgrp which takes arguments,
15899 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
15900 exit successfully. */
15901 return setpgrp (1,1) != -1;
15906 if ac_fn_c_try_run
"$LINENO"; then :
15907 ac_cv_func_setpgrp_void
=no
15909 ac_cv_func_setpgrp_void
=yes
15911 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15912 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
15917 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
15918 if test $ac_cv_func_setpgrp_void = yes; then
15920 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
15926 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
15927 if ${ac_cv_func_setpgrp_void+:} false
; then :
15928 $as_echo_n "(cached) " >&6
15930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15931 /* end confdefs.h. */
15932 #include <unistd.h>
15936 if (setpgrp(1,1) == -1)
15945 if ac_fn_c_try_compile
"$LINENO"; then :
15946 ac_cv_func_setpgrp_void
=no
15948 ac_cv_func_setpgrp_void
=yes
15951 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
15955 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
15956 if test "$ac_cv_func_setpgrp_void" = yes; then
15957 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
15962 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
15963 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
15964 #include <sys/proc.h>
15967 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes
; then :
15969 cat >>confdefs.h
<<_ACEOF
15970 #define HAVE_STRUCT_THREAD_TD_PCB 1
15977 # See if <sys/lwp.h> defines `struct lwp`.
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
15979 $as_echo_n "checking for struct lwp... " >&6; }
15980 if ${gdb_cv_struct_lwp+:} false
; then :
15981 $as_echo_n "(cached) " >&6
15983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15984 /* end confdefs.h. */
15985 #include <sys/param.h>
15987 #include <sys/lwp.h>
15997 if ac_fn_c_try_compile
"$LINENO"; then :
15998 gdb_cv_struct_lwp
=yes
16000 gdb_cv_struct_lwp
=no
16003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
16007 $as_echo "$gdb_cv_struct_lwp" >&6; }
16008 if test "$gdb_cv_struct_lwp" = yes; then
16010 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
16014 # See if <machine/reg.h> degines `struct reg'.
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
16016 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
16017 if ${gdb_cv_struct_reg+:} false
; then :
16018 $as_echo_n "(cached) " >&6
16020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16021 /* end confdefs.h. */
16022 #include <sys/types.h>
16023 #include <machine/reg.h>
16033 if ac_fn_c_try_compile
"$LINENO"; then :
16034 gdb_cv_struct_reg
=yes
16036 gdb_cv_struct_reg
=no
16039 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
16043 $as_echo "$gdb_cv_struct_reg" >&6; }
16044 if test "$gdb_cv_struct_reg" = yes; then
16046 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
16050 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
16051 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
16052 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
16053 #include <machine/reg.h>
16055 if test "x$ac_cv_member_struct_reg_r_fs" = xyes
; then :
16057 cat >>confdefs.h
<<_ACEOF
16058 #define HAVE_STRUCT_REG_R_FS 1
16063 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
16064 #include <machine/reg.h>
16066 if test "x$ac_cv_member_struct_reg_r_gs" = xyes
; then :
16068 cat >>confdefs.h
<<_ACEOF
16069 #define HAVE_STRUCT_REG_R_GS 1
16076 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
16078 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
16079 if ${gdb_cv_have_ptrace_getregs+:} false
; then :
16080 $as_echo_n "(cached) " >&6
16082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16083 /* end confdefs.h. */
16084 #include <sys/ptrace.h>
16093 if ac_fn_c_try_compile
"$LINENO"; then :
16094 gdb_cv_have_ptrace_getregs
=yes
16096 gdb_cv_have_ptrace_getregs
=no
16099 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
16104 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
16105 if test "$gdb_cv_have_ptrace_getregs" = yes; then
16107 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
16111 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
16113 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
16114 if ${gdb_cv_have_ptrace_getfpxregs+:} false
; then :
16115 $as_echo_n "(cached) " >&6
16117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16118 /* end confdefs.h. */
16119 #include <sys/ptrace.h>
16128 if ac_fn_c_try_compile
"$LINENO"; then :
16129 gdb_cv_have_ptrace_getfpxregs
=yes
16131 gdb_cv_have_ptrace_getfpxregs
=no
16134 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
16139 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
16140 if test "$gdb_cv_have_ptrace_getfpxregs" = yes; then
16142 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
16146 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
16148 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
16149 if ${gdb_cv_have_pt_getdbregs+:} false
; then :
16150 $as_echo_n "(cached) " >&6
16152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16153 /* end confdefs.h. */
16154 #include <sys/types.h>
16155 #include <sys/ptrace.h>
16165 if ac_fn_c_try_compile
"$LINENO"; then :
16166 gdb_cv_have_pt_getdbregs
=yes
16168 gdb_cv_have_pt_getdbregs
=no
16171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
16176 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
16177 if test "$gdb_cv_have_pt_getdbregs" = yes; then
16179 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
16183 # See if <sys/ptrace.h> supports LWP names on FreeBSD
16184 # Older FreeBSD versions don't have the pl_tdname member of
16185 # `struct ptrace_lwpinfo'.
16186 ac_fn_c_check_member
"$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
16188 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes
; then :
16190 cat >>confdefs.h
<<_ACEOF
16191 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
16198 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
16199 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
16201 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>
16203 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes
; then :
16205 cat >>confdefs.h
<<_ACEOF
16206 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
16213 # Check if the compiler supports the `long long' type.
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
16216 $as_echo_n "checking for long long support in compiler... " >&6; }
16217 if ${gdb_cv_c_long_long+:} false
; then :
16218 $as_echo_n "(cached) " >&6
16220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16221 /* end confdefs.h. */
16222 extern long long foo;
16226 switch (foo & 2) { case 0: return 1; }
16231 if ac_fn_c_try_compile
"$LINENO"; then :
16232 gdb_cv_c_long_long
=yes
16234 gdb_cv_c_long_long
=no
16236 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
16239 $as_echo "$gdb_cv_c_long_long" >&6; }
16240 if test "$gdb_cv_c_long_long" != yes; then
16241 # libdecnumber requires long long.
16242 as_fn_error $?
"Compiler must support long long for GDB." "$LINENO" 5
16245 # Check if the compiler and runtime support printing decfloats.
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
16248 $as_echo_n "checking for decfloat support in printf... " >&6; }
16249 if ${gdb_cv_printf_has_decfloat+:} false
; then :
16250 $as_echo_n "(cached) " >&6
16252 if test "$cross_compiling" = yes; then :
16253 gdb_cv_printf_has_decfloat
=no
16255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16256 /* end confdefs.h. */
16257 $ac_includes_default
16262 _Decimal32 d32 = 1.2345df;
16263 _Decimal64 d64 = 1.2345dd;
16264 _Decimal128 d128 = 1.2345dl;
16265 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
16266 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
16271 if ac_fn_c_try_run
"$LINENO"; then :
16272 gdb_cv_printf_has_decfloat
=yes
16274 gdb_cv_printf_has_decfloat
=no
16276 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16277 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
16282 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
16283 if test "$gdb_cv_printf_has_decfloat" = yes; then
16285 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
16289 # Check if the compiler supports the `long double' type. We can't use
16290 # AC_C_LONG_DOUBLE because that one does additional checks on the
16291 # constants defined in <float.h> that fail on some systems,
16292 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
16295 $as_echo_n "checking for long double support in compiler... " >&6; }
16296 if ${gdb_cv_c_long_double+:} false
; then :
16297 $as_echo_n "(cached) " >&6
16299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16300 /* end confdefs.h. */
16303 if ac_fn_c_try_compile
"$LINENO"; then :
16304 gdb_cv_c_long_double
=yes
16306 gdb_cv_c_long_double
=no
16308 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
16311 $as_echo "$gdb_cv_c_long_double" >&6; }
16312 if test "$gdb_cv_c_long_double" = yes; then
16314 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
16318 # Check if the compiler and runtime support printing long doubles.
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
16321 $as_echo_n "checking for long double support in printf... " >&6; }
16322 if ${gdb_cv_printf_has_long_double+:} false
; then :
16323 $as_echo_n "(cached) " >&6
16325 if test "$cross_compiling" = yes; then :
16326 gdb_cv_printf_has_long_double
=no
16328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16329 /* end confdefs.h. */
16330 $ac_includes_default
16335 long double f = 3.141592653;
16336 sprintf (buf, "%Lg", f);
16337 return (strncmp ("3.14159", buf, 7));
16342 if ac_fn_c_try_run
"$LINENO"; then :
16343 gdb_cv_printf_has_long_double
=yes
16345 gdb_cv_printf_has_long_double
=no
16347 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16348 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
16353 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
16354 if test "$gdb_cv_printf_has_long_double" = yes; then
16356 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
16360 # Check if the compiler and runtime support scanning long doubles.
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
16363 $as_echo_n "checking for long double support in scanf... " >&6; }
16364 if ${gdb_cv_scanf_has_long_double+:} false
; then :
16365 $as_echo_n "(cached) " >&6
16367 if test "$cross_compiling" = yes; then :
16368 gdb_cv_scanf_has_long_double
=no
16370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16371 /* end confdefs.h. */
16376 char *buf = "3.141592653";
16378 sscanf (buf, "%Lg", &f);
16379 return !(f > 3.14159 && f < 3.14160);
16384 if ac_fn_c_try_run
"$LINENO"; then :
16385 gdb_cv_scanf_has_long_double
=yes
16387 gdb_cv_scanf_has_long_double
=no
16389 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16390 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
16395 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
16396 if test "$gdb_cv_scanf_has_long_double" = yes; then
16398 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
16405 $as_echo_n "checking for -bbigtoc option... " >&6; }
16406 if ${gdb_cv_bigtoc+:} false
; then :
16407 $as_echo_n "(cached) " >&6
16409 SAVE_LDFLAGS
=$LDFLAGS
16412 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
16413 *) gdb_cv_bigtoc
=-bbigtoc ;;
16416 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
16417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16418 /* end confdefs.h. */
16428 if ac_fn_c_try_link
"$LINENO"; then :
16434 rm -f core conftest.err conftest.
$ac_objext \
16435 conftest
$ac_exeext conftest.
$ac_ext
16436 LDFLAGS
="${SAVE_LDFLAGS}"
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
16440 $as_echo "$gdb_cv_bigtoc" >&6; }
16441 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
16446 $as_echo_n "checking for the dynamic export flag... " >&6; }
16448 if test "${gdb_native}" = yes; then
16449 # The dynamically loaded libthread_db needs access to symbols in the gdb
16450 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
16451 # may not be supported there.
16452 old_LDFLAGS
="$LDFLAGS"
16453 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
16454 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
16455 LDFLAGS
="$LDFLAGS $RDYNAMIC"
16456 if test "${have_libpython}" = no
; then
16457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16458 /* end confdefs.h. */
16468 if ac_fn_c_try_link
"$LINENO"; then :
16471 rm -f core conftest.err conftest.
$ac_objext \
16472 conftest
$ac_exeext conftest.
$ac_ext
16474 # Workaround http://bugs.python.org/issue4434 where static
16475 # libpythonX.Y.a would get its symbols required for
16476 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
16477 # Problem does not happen for the recommended libpythonX.Y.so linkage.
16479 # Note the workaround for Python
16480 # http://bugs.python.org/issue10112 earlier has removed
16481 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
16482 # here too, as otherwise it'd make this -Wl,--dynamic-list test
16484 old_CFLAGS
="$CFLAGS"
16485 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
16487 LIBS
="$LIBS $PYTHON_LIBS"
16488 old_CPPFLAGS
="$CPPFLAGS"
16489 CPPFLAGS
="$CPPFLAGS $PYTHON_CPPFLAGS"
16490 if test "$cross_compiling" = yes; then :
16493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16494 /* end confdefs.h. */
16495 #include "Python.h"
16501 err = PyRun_SimpleString ("import ctypes\n");
16503 return err == 0 ? 0 : 1;
16508 if ac_fn_c_try_run
"$LINENO"; then :
16511 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16512 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16516 CFLAGS
="$old_CFLAGS"
16517 CPPFLAGS
="$old_CPPFLAGS"
16519 LDFLAGS
="$old_LDFLAGS"
16521 if $dynamic_list; then
16522 found
="-Wl,--dynamic-list"
16523 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
16526 RDYNAMIC
="-rdynamic"
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
16530 $as_echo "$found" >&6; }
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether execinfo.h backtrace is available" >&5
16533 $as_echo_n "checking whether execinfo.h backtrace is available... " >&6; }
16534 if ${gdb_cv_execinfo_backtrace+:} false
; then :
16535 $as_echo_n "(cached) " >&6
16537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16538 /* end confdefs.h. */
16540 #include <execinfo.h>
16548 f = backtrace (b, 2);
16549 backtrace_symbols_fd (b, f, 2);
16555 if ac_fn_c_try_link
"$LINENO"; then :
16556 gdb_cv_execinfo_backtrace
=yes
16558 gdb_cv_execinfo_backtrace
=no
16560 rm -f core conftest.err conftest.
$ac_objext \
16561 conftest
$ac_exeext conftest.
$ac_ext
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_execinfo_backtrace" >&5
16564 $as_echo "$gdb_cv_execinfo_backtrace" >&6; }
16565 if test "$gdb_cv_execinfo_backtrace" = yes; then
16567 $as_echo "#define HAVE_EXECINFO_BACKTRACE 1" >>confdefs.h
16572 if test "${build}" = "${host}" -a "${host}" = "${target}" ; then
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
16576 $as_echo_n "checking for AiX thread debugging library... " >&6; }
16577 if ${gdb_cv_have_aix_thread_debug+:} false
; then :
16578 $as_echo_n "(cached) " >&6
16580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16581 /* end confdefs.h. */
16582 #include <sys/pthdebug.h>
16586 #ifndef PTHDB_VERSION_3
16594 if ac_fn_c_try_compile
"$LINENO"; then :
16595 gdb_cv_have_aix_thread_debug
=yes
16597 gdb_cv_have_aix_thread_debug
=no
16600 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
16605 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
16606 if test "$gdb_cv_have_aix_thread_debug" = yes; then
16607 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
16608 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
16609 LIBS
="$LIBS -lpthdebug"
16611 # Older versions of AIX do not provide the declaration for
16612 # the getthrds function (it appears that it was introduced
16614 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
16616 if test "x$ac_cv_have_decl_getthrds" = xyes
; then :
16622 cat >>confdefs.h
<<_ACEOF
16623 #define HAVE_DECL_GETTHRDS $ac_have_decl
16632 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
16634 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
16635 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false
; then :
16636 $as_echo_n "(cached) " >&6
16638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16639 /* end confdefs.h. */
16640 #include <thread_db.h>
16644 int i = TD_NOTALLOC;
16650 if ac_fn_c_try_compile
"$LINENO"; then :
16651 gdb_cv_thread_db_h_has_td_notalloc
=yes
16653 gdb_cv_thread_db_h_has_td_notalloc
=no
16656 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
16660 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
16663 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
16664 if ${gdb_cv_thread_db_h_has_td_version+:} false
; then :
16665 $as_echo_n "(cached) " >&6
16667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16668 /* end confdefs.h. */
16669 #include <thread_db.h>
16673 int i = TD_VERSION;
16679 if ac_fn_c_try_compile
"$LINENO"; then :
16680 gdb_cv_thread_db_h_has_td_version
=yes
16682 gdb_cv_thread_db_h_has_td_version
=no
16685 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
16689 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
16692 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
16693 if ${gdb_cv_thread_db_h_has_td_notls+:} false
; then :
16694 $as_echo_n "(cached) " >&6
16696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16697 /* end confdefs.h. */
16698 #include <thread_db.h>
16708 if ac_fn_c_try_compile
"$LINENO"; then :
16709 gdb_cv_thread_db_h_has_td_notls
=yes
16711 gdb_cv_thread_db_h_has_td_notls
=no
16714 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
16718 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
16720 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
16722 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
16725 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
16727 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
16730 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
16732 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
16745 cat >>confdefs.h
<<_ACEOF
16746 #define GDBINIT "$gdbinit"
16751 cat >>confdefs.h
<<_ACEOF
16752 #define GDBEARLYINIT ".gdbearlyinit"
16757 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
16758 # except that the argument to --with-sysroot is optional.
16759 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
16760 if test "x$with_sysroot" = xyes
; then
16761 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
16764 # Check whether --with-sysroot was given.
16765 if test "${with_sysroot+set}" = set; then :
16766 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
16768 TARGET_SYSTEM_ROOT
=
16772 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16773 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16774 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
16775 ac_define_dir
=`eval echo $ac_define_dir`
16777 cat >>confdefs.h
<<_ACEOF
16778 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
16784 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16785 if test "x$prefix" = xNONE
; then
16786 test_prefix
=/usr
/local
16788 test_prefix
=$prefix
16791 test_prefix
=$exec_prefix
16794 case ${ac_define_dir} in
16795 "${test_prefix}"|
"${test_prefix}/"*|\
16796 '${exec_prefix}'|
'${exec_prefix}/'*)
16801 cat >>confdefs.h
<<_ACEOF
16802 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
16809 # Check whether --with-system-gdbinit was given.
16810 if test "${with_system_gdbinit+set}" = set; then :
16811 withval
=$with_system_gdbinit;
16812 SYSTEM_GDBINIT
=$withval
16818 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16819 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16820 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
16821 ac_define_dir
=`eval echo $ac_define_dir`
16823 cat >>confdefs.h
<<_ACEOF
16824 #define SYSTEM_GDBINIT "$ac_define_dir"
16830 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16831 if test "x$prefix" = xNONE
; then
16832 test_prefix
=/usr
/local
16834 test_prefix
=$prefix
16837 test_prefix
=$exec_prefix
16840 case ${ac_define_dir} in
16841 "${test_prefix}"|
"${test_prefix}/"*|\
16842 '${exec_prefix}'|
'${exec_prefix}/'*)
16847 cat >>confdefs.h
<<_ACEOF
16848 #define SYSTEM_GDBINIT_RELOCATABLE $value
16855 # Check whether --with-system-gdbinit-dir was given.
16856 if test "${with_system_gdbinit_dir+set}" = set; then :
16857 withval
=$with_system_gdbinit_dir;
16858 SYSTEM_GDBINIT_DIR
=$withval
16860 SYSTEM_GDBINIT_DIR
=
16864 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16865 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16866 ac_define_dir
=`eval echo $SYSTEM_GDBINIT_DIR`
16867 ac_define_dir
=`eval echo $ac_define_dir`
16869 cat >>confdefs.h
<<_ACEOF
16870 #define SYSTEM_GDBINIT_DIR "$ac_define_dir"
16876 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16877 if test "x$prefix" = xNONE
; then
16878 test_prefix
=/usr
/local
16880 test_prefix
=$prefix
16883 test_prefix
=$exec_prefix
16886 case ${ac_define_dir} in
16887 "${test_prefix}"|
"${test_prefix}/"*|\
16888 '${exec_prefix}'|
'${exec_prefix}/'*)
16893 cat >>confdefs.h
<<_ACEOF
16894 #define SYSTEM_GDBINIT_DIR_RELOCATABLE $value
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the compiler type" >&5
16903 $as_echo_n "checking the compiler type... " >&6; }
16904 if ${gdb_cv_compiler_type+:} false
; then :
16905 $as_echo_n "(cached) " >&6
16907 gdb_cv_compiler_type
=unknown
16908 if test "$gdb_cv_compiler_type" = unknown
; then
16909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16910 /* end confdefs.h. */
16916 #if !defined __GNUC__ || defined __clang__
16924 if ac_fn_c_try_compile
"$LINENO"; then :
16925 gdb_cv_compiler_type
=gcc
16927 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16930 if test "$gdb_cv_compiler_type" = unknown
; then
16931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16932 /* end confdefs.h. */
16946 if ac_fn_c_try_compile
"$LINENO"; then :
16947 gdb_cv_compiler_type
=clang
16949 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_compiler_type" >&5
16954 $as_echo "$gdb_cv_compiler_type" >&6; }
16956 GDB_COMPILER_TYPE
="$gdb_cv_compiler_type"
16959 # Check whether --enable-werror was given.
16960 if test "${enable_werror+set}" = set; then :
16961 enableval
=$enable_werror; case "${enableval}" in
16962 yes | y
) ERROR_ON_WARNING
="yes" ;;
16963 no | n
) ERROR_ON_WARNING
="no" ;;
16964 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16969 # Enable -Werror by default when using gcc. Turn it off for releases.
16970 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
16971 ERROR_ON_WARNING
=yes
16975 if test "${ERROR_ON_WARNING}" = yes ; then
16976 WERROR_CFLAGS
="-Werror"
16979 # The options we'll try to enable.
16980 build_warnings
="-Wall -Wpointer-arith \
16981 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
16982 -Wno-switch -Wno-char-subscripts \
16983 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
16984 -Wno-sign-compare -Wno-error=maybe-uninitialized \
16985 -Wno-mismatched-tags \
16986 -Wno-error=deprecated-register \
16987 -Wsuggest-override \
16988 -Wimplicit-fallthrough=3 \
16989 -Wduplicated-cond \
16991 -Wdeprecated-copy \
16992 -Wdeprecated-copy-dtor \
16994 -Wmissing-declarations \
16995 -Wstrict-null-sentinel \
16998 # The -Wmissing-prototypes flag will be accepted by GCC, but results
16999 # in a warning being printed about the flag not being valid for C++,
17000 # this is something to do with using ccache, and argument ordering.
17001 if test "$GDB_COMPILER_TYPE" != gcc
; then
17002 build_warnings
="$build_warnings -Wmissing-prototypes"
17007 # Enable -Wno-format by default when using gcc on mingw since many
17008 # GCC versions complain about %I64.
17009 build_warnings
="$build_warnings -Wno-format" ;;
17011 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
17012 # doesn't understand.
17013 build_warnings
="$build_warnings -Wno-unknown-pragmas"
17014 # Solaris 11 <unistd.h> marks vfork deprecated.
17015 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
17017 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
17018 # but there's a special case for this below.
17019 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
17022 # Check whether --enable-build-warnings was given.
17023 if test "${enable_build_warnings+set}" = set; then :
17024 enableval
=$enable_build_warnings; case "${enableval}" in
17026 no
) build_warnings
="-w";;
17027 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
17028 build_warnings
="${build_warnings} ${t}";;
17029 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
17030 build_warnings
="${t} ${build_warnings}";;
17031 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
17033 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
17034 echo "Setting compiler warning flags = $build_warnings" 6>&1
17037 # Check whether --enable-gdb-build-warnings was given.
17038 if test "${enable_gdb_build_warnings+set}" = set; then :
17039 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
17041 no
) build_warnings
="-w";;
17042 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
17043 build_warnings
="${build_warnings} ${t}";;
17044 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
17045 build_warnings
="${t} ${build_warnings}";;
17046 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
17048 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
17049 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
17053 # The set of warnings supported by a C++ compiler is not the same as
17054 # of the C compiler.
17056 ac_cpp
='$CXXCPP $CPPFLAGS'
17057 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17058 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17059 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
17063 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
17066 $as_echo_n "checking compiler warning flags... " >&6; }
17067 # Separate out the -Werror flag as some files just cannot be
17068 # compiled with it enabled.
17069 for w
in ${build_warnings}; do
17070 # GCC does not complain about -Wno-unknown-warning. Invert
17071 # and test -Wunknown-warning instead.
17074 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
17075 -Wformat-nonliteral)
17076 # gcc requires -Wformat before -Wformat-nonliteral
17077 # will work, so stick them together.
17086 -Werr*) WERROR_CFLAGS
=-Werror ;;
17088 # Check whether GCC accepts it.
17089 saved_CFLAGS
="$CFLAGS"
17090 CFLAGS
="$CFLAGS -Werror $wtest"
17091 saved_CXXFLAGS
="$CXXFLAGS"
17092 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
17093 if test "x$w" = "x-Wunused-variable"; then
17094 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
17095 # fixed in GCC 4.9. This test is derived from the gdb
17096 # source code that triggered this bug in GCC.
17097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17098 /* end confdefs.h. */
17099 struct scoped_restore_base {};
17100 struct scoped_restore_tmpl : public scoped_restore_base {
17101 ~scoped_restore_tmpl() {}
17106 const scoped_restore_base &b = scoped_restore_tmpl();
17112 if ac_fn_cxx_try_compile
"$LINENO"; then :
17113 WARN_CFLAGS
="${WARN_CFLAGS} $w"
17115 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17118 /* end confdefs.h. */
17128 if ac_fn_cxx_try_compile
"$LINENO"; then :
17129 WARN_CFLAGS
="${WARN_CFLAGS} $w"
17131 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17133 CFLAGS
="$saved_CFLAGS"
17134 CXXFLAGS
="$saved_CXXFLAGS"
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
17138 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
17144 ac_cpp='$CPP $CPPFLAGS'
17145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17151 # Check whether --enable-ubsan was given.
17152 if test "${enable_ubsan+set}" = set; then :
17153 enableval=$enable_ubsan;
17158 if test "x
$enable_ubsan" = xauto; then
17159 if $development; then
17164 ac_cpp='$CXXCPP $CPPFLAGS'
17165 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17166 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17167 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17169 if test "x
$enable_ubsan" = xyes; then
17170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
-fsanitize=undefined is accepted
" >&5
17171 $as_echo_n "checking whether
-fsanitize=undefined is accepted...
" >&6; }
17172 saved_CXXFLAGS="$CXXFLAGS"
17173 CXXFLAGS="$CXXFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
17174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17175 /* end confdefs.h. */
17185 if ac_fn_cxx_try_link "$LINENO"; then :
17191 rm -f core conftest.err conftest.$ac_objext \
17192 conftest$ac_exeext conftest.$ac_ext
17193 CXXFLAGS="$saved_CXXFLAGS"
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $enable_ubsan" >&5
17195 $as_echo "$enable_ubsan" >&6; }
17196 if test "x
$enable_ubsan" = xyes; then
17197 WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
17198 CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined
"
17202 ac_cpp='$CPP $CPPFLAGS'
17203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17209 # In the Cygwin environment, we need some additional flags.
17210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
17211 $as_echo_n "checking
for cygwin...
" >&6; }
17212 if ${gdb_cv_os_cygwin+:} false; then :
17213 $as_echo_n "(cached
) " >&6
17215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17216 /* end confdefs.h. */
17218 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
17222 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
17223 $EGREP "^lose$
" >/dev/null 2>&1; then :
17224 gdb_cv_os_cygwin=yes
17226 gdb_cv_os_cygwin=no
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
17232 $as_echo "$gdb_cv_os_cygwin" >&6; }
17235 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
17237 *go32* ) SER_HARDWIRE=ser-go32.o ;;
17238 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
17239 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
17240 *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o
" ;;
17244 # libreadline needs libuser32.a in a cygwin environment
17246 if test x"$gdb_cv_os_cygwin" = xyes; then
17247 WIN32LIBS="-luser32"
17248 case "${target}" in
17249 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
17254 # The ser-tcp.c module requires sockets.
17255 # Note that WIN32APILIBS is set by GDB_AC_COMMON.
17256 WIN32LIBS="$WIN32LIBS $WIN32APILIBS"
17258 # Add ELF support to GDB, but only if BFD includes ELF support.
17261 OLD_LDFLAGS=$LDFLAGS
17263 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
17264 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
17265 # always want our bfd.
17266 CFLAGS="-I${srcdir}/..
/include
-I..
/bfd
-I${srcdir}/..
/bfd
$CFLAGS"
17267 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
17268 LDFLAGS="-L..
/bfd
-L..
/libiberty
$ZLIBDIR $LDFLAGS"
17269 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
17270 LIBS="-lbfd -liberty -lz $intl $LIBS"
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ELF support
in BFD
" >&5
17272 $as_echo_n "checking
for ELF support
in BFD...
" >&6; }
17273 if ${gdb_cv_var_elf+:} false; then :
17274 $as_echo_n "(cached
) " >&6
17276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17277 /* end confdefs.h. */
17278 #include <stdlib.h>
17279 #include <string.h>
17281 #include "elf-bfd.h
"
17285 return bfd_get_elf_phdr_upper_bound (NULL);
17291 if ac_fn_c_try_link "$LINENO"; then :
17297 rm -f core conftest.err conftest.$ac_objext \
17298 conftest$ac_exeext conftest.$ac_ext
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_var_elf" >&5
17302 $as_echo "$gdb_cv_var_elf" >&6; }
17304 LDFLAGS=$OLD_LDFLAGS
17306 if test "$gdb_cv_var_elf" = yes; then
17307 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o \
17308 gcore-elf.o elf-none-tdep.o
"
17310 $as_echo "#define HAVE_ELF 1" >>confdefs.h
17312 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
17313 if test "$plugins" = "yes"; then
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17315 $as_echo_n "checking for library containing dlopen... " >&6; }
17316 if ${ac_cv_search_dlopen+:} false
; then :
17317 $as_echo_n "(cached) " >&6
17319 ac_func_search_save_LIBS
=$LIBS
17320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17321 /* end confdefs.h. */
17323 /* Override any GCC internal prototype to avoid an error.
17324 Use char because int might match the return type of a GCC
17325 builtin and then its argument prototype would still apply. */
17338 for ac_lib
in '' dl
; do
17339 if test -z "$ac_lib"; then
17340 ac_res
="none required"
17343 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
17345 if ac_fn_c_try_link
"$LINENO"; then :
17346 ac_cv_search_dlopen
=$ac_res
17348 rm -f core conftest.err conftest.
$ac_objext \
17350 if ${ac_cv_search_dlopen+:} false
; then :
17354 if ${ac_cv_search_dlopen+:} false
; then :
17357 ac_cv_search_dlopen
=no
17359 rm conftest.
$ac_ext
17360 LIBS
=$ac_func_search_save_LIBS
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17363 $as_echo "$ac_cv_search_dlopen" >&6; }
17364 ac_res
=$ac_cv_search_dlopen
17365 if test "$ac_res" != no
; then :
17366 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
17373 # Add macho support to GDB, but only if BFD includes it.
17376 OLD_LDFLAGS
=$LDFLAGS
17378 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
17379 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
17380 # always want our bfd.
17381 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
17382 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
17383 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
17384 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
17385 LIBS
="-lbfd -liberty -lz $intl $LIBS"
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
17387 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
17388 if ${gdb_cv_var_macho+:} false
; then :
17389 $as_echo_n "(cached) " >&6
17391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17392 /* end confdefs.h. */
17393 #include <stdlib.h>
17394 #include <string.h>
17396 #include "mach-o.h"
17400 return bfd_mach_o_lookup_command (NULL, 0, NULL);
17406 if ac_fn_c_try_link
"$LINENO"; then :
17407 gdb_cv_var_macho
=yes
17409 gdb_cv_var_macho
=no
17412 rm -f core conftest.err conftest.
$ac_objext \
17413 conftest
$ac_exeext conftest.
$ac_ext
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
17417 $as_echo "$gdb_cv_var_macho" >&6; }
17419 LDFLAGS
=$OLD_LDFLAGS
17421 if test "$gdb_cv_var_macho" = yes; then
17422 CONFIG_OBS
="$CONFIG_OBS machoread.o"
17425 # Add any host-specific objects to GDB.
17426 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
17428 # If building on ELF, look for lzma support for embedded compressed debug info.
17429 if test "$gdb_cv_var_elf" = yes; then
17431 # Check whether --with-lzma was given.
17432 if test "${with_lzma+set}" = set; then :
17433 withval
=$with_lzma;
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
17439 $as_echo_n "checking whether to use lzma... " >&6; }
17440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
17441 $as_echo "$with_lzma" >&6; }
17443 if test "${with_lzma}" != no
; then
17454 acl_save_prefix
="$prefix"
17455 prefix
="$acl_final_prefix"
17456 acl_save_exec_prefix
="$exec_prefix"
17457 exec_prefix
="$acl_final_exec_prefix"
17459 eval additional_includedir
=\"$includedir\"
17460 eval additional_libdir
=\"$libdir\"
17462 exec_prefix
="$acl_save_exec_prefix"
17463 prefix
="$acl_save_prefix"
17466 # Check whether --with-liblzma-prefix was given.
17467 if test "${with_liblzma_prefix+set}" = set; then :
17468 withval
=$with_liblzma_prefix;
17469 if test "X$withval" = "Xno"; then
17472 if test "X$withval" = "X"; then
17474 acl_save_prefix
="$prefix"
17475 prefix
="$acl_final_prefix"
17476 acl_save_exec_prefix
="$exec_prefix"
17477 exec_prefix
="$acl_final_exec_prefix"
17479 eval additional_includedir
=\"$includedir\"
17480 eval additional_libdir
=\"$libdir\"
17482 exec_prefix
="$acl_save_exec_prefix"
17483 prefix
="$acl_save_prefix"
17486 additional_includedir
="$withval/include"
17487 additional_libdir
="$withval/lib"
17494 # Check whether --with-liblzma-type was given.
17495 if test "${with_liblzma_type+set}" = set; then :
17496 withval
=$with_liblzma_type; with_liblzma_type
=$withval
17498 with_liblzma_type
=auto
17501 lib_type
=`eval echo \$with_liblzma_type`
17508 names_already_handled
=
17509 names_next_round
='lzma '
17510 while test -n "$names_next_round"; do
17511 names_this_round
="$names_next_round"
17513 for name
in $names_this_round; do
17515 for n
in $names_already_handled; do
17516 if test "$n" = "$name"; then
17517 already_handled
=yes
17521 if test -z "$already_handled"; then
17522 names_already_handled
="$names_already_handled $name"
17523 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17524 eval value
=\"\
$HAVE_LIB$uppername\"
17525 if test -n "$value"; then
17526 if test "$value" = yes; then
17527 eval value
=\"\
$LIB$uppername\"
17528 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
17529 eval value
=\"\
$LTLIB$uppername\"
17530 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
17539 if test $use_additional = yes; then
17540 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
17541 found_dir
="$additional_libdir"
17542 found_so
="$additional_libdir/lib$name.$shlibext"
17543 if test -f "$additional_libdir/lib$name.la"; then
17544 found_la
="$additional_libdir/lib$name.la"
17546 elif test x
$lib_type != xshared
; then
17547 if test -f "$additional_libdir/lib$name.$libext"; then
17548 found_dir
="$additional_libdir"
17549 found_a
="$additional_libdir/lib$name.$libext"
17550 if test -f "$additional_libdir/lib$name.la"; then
17551 found_la
="$additional_libdir/lib$name.la"
17556 if test "X$found_dir" = "X"; then
17557 for x
in $LDFLAGS $LTLIBLZMA; do
17559 acl_save_prefix
="$prefix"
17560 prefix
="$acl_final_prefix"
17561 acl_save_exec_prefix
="$exec_prefix"
17562 exec_prefix
="$acl_final_exec_prefix"
17564 exec_prefix
="$acl_save_exec_prefix"
17565 prefix
="$acl_save_prefix"
17569 dir
=`echo "X$x" | sed -e 's/^X-L//'`
17570 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
17572 found_so
="$dir/lib$name.$shlibext"
17573 if test -f "$dir/lib$name.la"; then
17574 found_la
="$dir/lib$name.la"
17576 elif test x
$lib_type != xshared
; then
17577 if test -f "$dir/lib$name.$libext"; then
17579 found_a
="$dir/lib$name.$libext"
17580 if test -f "$dir/lib$name.la"; then
17581 found_la
="$dir/lib$name.la"
17587 if test "X$found_dir" != "X"; then
17592 if test "X$found_dir" != "X"; then
17593 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
17594 if test "X$found_so" != "X"; then
17595 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
17596 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17599 for x
in $ltrpathdirs; do
17600 if test "X$x" = "X$found_dir"; then
17605 if test -z "$haveit"; then
17606 ltrpathdirs
="$ltrpathdirs $found_dir"
17608 if test "$hardcode_direct" = yes; then
17609 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17611 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
17612 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17614 for x
in $rpathdirs; do
17615 if test "X$x" = "X$found_dir"; then
17620 if test -z "$haveit"; then
17621 rpathdirs
="$rpathdirs $found_dir"
17625 for x
in $LDFLAGS $LIBLZMA; do
17627 acl_save_prefix
="$prefix"
17628 prefix
="$acl_final_prefix"
17629 acl_save_exec_prefix
="$exec_prefix"
17630 exec_prefix
="$acl_final_exec_prefix"
17632 exec_prefix
="$acl_save_exec_prefix"
17633 prefix
="$acl_save_prefix"
17635 if test "X$x" = "X-L$found_dir"; then
17640 if test -z "$haveit"; then
17641 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
17643 if test "$hardcode_minus_L" != no
; then
17644 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17646 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
17652 if test "X$found_a" != "X"; then
17653 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
17655 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
17658 additional_includedir
=
17659 case "$found_dir" in
17661 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17662 additional_includedir
="$basedir/include"
17665 if test "X$additional_includedir" != "X"; then
17666 if test "X$additional_includedir" != "X/usr/include"; then
17668 if test "X$additional_includedir" = "X/usr/local/include"; then
17669 if test -n "$GCC"; then
17671 linux
*) haveit
=yes;;
17675 if test -z "$haveit"; then
17676 for x
in $CPPFLAGS $INCLZMA; do
17678 acl_save_prefix
="$prefix"
17679 prefix
="$acl_final_prefix"
17680 acl_save_exec_prefix
="$exec_prefix"
17681 exec_prefix
="$acl_final_exec_prefix"
17683 exec_prefix
="$acl_save_exec_prefix"
17684 prefix
="$acl_save_prefix"
17686 if test "X$x" = "X-I$additional_includedir"; then
17691 if test -z "$haveit"; then
17692 if test -d "$additional_includedir"; then
17693 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
17699 if test -n "$found_la"; then
17700 save_libdir
="$libdir"
17701 case "$found_la" in
17702 */* |
*\\*) .
"$found_la" ;;
17703 *) .
"./$found_la" ;;
17705 libdir
="$save_libdir"
17706 for dep
in $dependency_libs; do
17709 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
17710 if test "X$additional_libdir" != "X/usr/lib"; then
17712 if test "X$additional_libdir" = "X/usr/local/lib"; then
17713 if test -n "$GCC"; then
17715 linux
*) haveit
=yes;;
17719 if test -z "$haveit"; then
17721 for x
in $LDFLAGS $LIBLZMA; do
17723 acl_save_prefix
="$prefix"
17724 prefix
="$acl_final_prefix"
17725 acl_save_exec_prefix
="$exec_prefix"
17726 exec_prefix
="$acl_final_exec_prefix"
17728 exec_prefix
="$acl_save_exec_prefix"
17729 prefix
="$acl_save_prefix"
17731 if test "X$x" = "X-L$additional_libdir"; then
17736 if test -z "$haveit"; then
17737 if test -d "$additional_libdir"; then
17738 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
17742 for x
in $LDFLAGS $LTLIBLZMA; do
17744 acl_save_prefix
="$prefix"
17745 prefix
="$acl_final_prefix"
17746 acl_save_exec_prefix
="$exec_prefix"
17747 exec_prefix
="$acl_final_exec_prefix"
17749 exec_prefix
="$acl_save_exec_prefix"
17750 prefix
="$acl_save_prefix"
17752 if test "X$x" = "X-L$additional_libdir"; then
17757 if test -z "$haveit"; then
17758 if test -d "$additional_libdir"; then
17759 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
17766 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
17767 if test "$enable_rpath" != no
; then
17769 for x
in $rpathdirs; do
17770 if test "X$x" = "X$dir"; then
17775 if test -z "$haveit"; then
17776 rpathdirs
="$rpathdirs $dir"
17779 for x
in $ltrpathdirs; do
17780 if test "X$x" = "X$dir"; then
17785 if test -z "$haveit"; then
17786 ltrpathdirs
="$ltrpathdirs $dir"
17791 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17794 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17797 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
17798 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
17804 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
17805 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
17806 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
17808 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l:lib$name.$libext"
17809 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l:lib$name.$libext"
17816 if test "X$rpathdirs" != "X"; then
17817 if test -n "$hardcode_libdir_separator"; then
17819 for found_dir
in $rpathdirs; do
17820 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17822 acl_save_libdir
="$libdir"
17824 eval flag
=\"$hardcode_libdir_flag_spec\"
17825 libdir
="$acl_save_libdir"
17826 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
17828 for found_dir
in $rpathdirs; do
17829 acl_save_libdir
="$libdir"
17830 libdir
="$found_dir"
17831 eval flag
=\"$hardcode_libdir_flag_spec\"
17832 libdir
="$acl_save_libdir"
17833 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
17837 if test "X$ltrpathdirs" != "X"; then
17838 for found_dir
in $ltrpathdirs; do
17839 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
17844 ac_save_CPPFLAGS
="$CPPFLAGS"
17846 for element
in $INCLZMA; do
17848 for x
in $CPPFLAGS; do
17850 acl_save_prefix
="$prefix"
17851 prefix
="$acl_final_prefix"
17852 acl_save_exec_prefix
="$exec_prefix"
17853 exec_prefix
="$acl_final_exec_prefix"
17855 exec_prefix
="$acl_save_exec_prefix"
17856 prefix
="$acl_save_prefix"
17858 if test "X$x" = "X$element"; then
17863 if test -z "$haveit"; then
17864 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
17870 $as_echo_n "checking for liblzma... " >&6; }
17871 if ${ac_cv_liblzma+:} false
; then :
17872 $as_echo_n "(cached) " >&6
17875 ac_save_LIBS
="$LIBS"
17876 LIBS
="$LIBS $LIBLZMA"
17877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17878 /* end confdefs.h. */
17883 lzma_index_iter iter;
17884 lzma_index_iter_init (&iter, 0);
17885 lzma_mf_is_supported (LZMA_MF_HC3);
17890 if ac_fn_c_try_link
"$LINENO"; then :
17895 rm -f core conftest.err conftest.
$ac_objext \
17896 conftest
$ac_exeext conftest.
$ac_ext
17897 LIBS
="$ac_save_LIBS"
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
17901 $as_echo "$ac_cv_liblzma" >&6; }
17902 if test "$ac_cv_liblzma" = yes; then
17905 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
17908 $as_echo_n "checking how to link with liblzma... " >&6; }
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
17910 $as_echo "$LIBLZMA" >&6; }
17913 CPPFLAGS
="$ac_save_CPPFLAGS"
17923 if test "$HAVE_LIBLZMA" != yes; then
17924 if test "$with_lzma" = yes; then
17925 as_fn_error $?
"missing liblzma for --with-lzma" "$LINENO" 5
17931 LIBGUI
="../libgui/src/libgui.a"
17932 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
17941 *-*-cygwin* |
*-*-mingw* )
17950 if test "${enable_gdbtk}" = "yes"; then
17952 # Gdbtk must have an absolute path to srcdir in order to run
17953 # properly when not installed.
17956 GDBTK_SRC_DIR
=`pwd`
17961 # Ok, lets find the tcl configuration
17962 # First, look for one uninstalled.
17963 # the alternative search directory is invoked by --with-tcl
17966 if test x
"${no_tcl}" = x
; then
17967 # we reset no_tcl in case something fails here
17970 # Check whether --with-tcl was given.
17971 if test "${with_tcl+set}" = set; then :
17972 withval
=$with_tcl; with_tclconfig
=${withval}
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
17976 $as_echo_n "checking for Tcl configuration... " >&6; }
17977 if ${ac_cv_c_tclconfig+:} false
; then :
17978 $as_echo_n "(cached) " >&6
17982 # First check to see if --with-tcl was specified.
17984 *-*-cygwin*) platDir
="win" ;;
17985 *) platDir
="unix" ;;
17987 if test x
"${with_tclconfig}" != x
; then
17988 if test -f "${with_tclconfig}/tclConfig.sh" ; then
17989 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
17991 as_fn_error $?
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
17995 # then check for a private Tcl installation
17996 if test x
"${ac_cv_c_tclconfig}" = x
; then
17999 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
18000 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
18001 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
18003 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
18004 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
18005 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
18007 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
18008 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
18009 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
18010 if test -f "$i/$platDir/tclConfig.sh" ; then
18011 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
18017 # on Darwin, check in Framework installation locations
18018 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
18019 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
18020 `ls -d /Library/Frameworks 2>/dev/null` \
18021 `ls -d /Network/Library/Frameworks 2>/dev/null` \
18022 `ls -d /System/Library/Frameworks 2>/dev/null` \
18024 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
18025 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
18031 # check in a few common install locations
18032 if test x
"${ac_cv_c_tclconfig}" = x
; then
18033 for i
in `ls -d ${libdir} 2>/dev/null` \
18034 `ls -d ${exec_prefix}/lib 2>/dev/null` \
18035 `ls -d ${prefix}/lib 2>/dev/null` \
18036 `ls -d /usr/local/lib 2>/dev/null` \
18037 `ls -d /usr/contrib/lib 2>/dev/null` \
18038 `ls -d /usr/lib 2>/dev/null` \
18040 if test -f "$i/tclConfig.sh" ; then
18041 ac_cv_c_tclconfig
=`(cd $i; pwd)`
18047 # check in a few other private locations
18048 if test x
"${ac_cv_c_tclconfig}" = x
; then
18051 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
18052 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
18053 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
18054 if test -f "$i/$platDir/tclConfig.sh" ; then
18055 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
18064 if test x
"${ac_cv_c_tclconfig}" = x
; then
18065 TCL_BIN_DIR
="# no Tcl configs found"
18066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
18067 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
18070 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
18072 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
18077 # If $no_tk is nonempty, then we can't do Tk, and there is no
18078 # point to doing Tcl.
18081 # Ok, lets find the tk configuration
18082 # First, look for one uninstalled.
18083 # the alternative search directory is invoked by --with-tk
18086 if test x
"${no_tk}" = x
; then
18087 # we reset no_tk in case something fails here
18090 # Check whether --with-tk was given.
18091 if test "${with_tk+set}" = set; then :
18092 withval
=$with_tk; with_tkconfig
=${withval}
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
18096 $as_echo_n "checking for Tk configuration... " >&6; }
18097 if ${ac_cv_c_tkconfig+:} false
; then :
18098 $as_echo_n "(cached) " >&6
18102 # First check to see if --with-tkconfig was specified.
18103 if test x
"${with_tkconfig}" != x
; then
18104 if test -f "${with_tkconfig}/tkConfig.sh" ; then
18105 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
18107 as_fn_error $?
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
18111 # then check for a private Tk library
18113 *-*-cygwin*) platDir
="win" ;;
18114 *) platDir
="unix" ;;
18116 if test x
"${ac_cv_c_tkconfig}" = x
; then
18119 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
18120 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
18121 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
18123 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
18124 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
18125 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
18127 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
18128 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
18129 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
18130 if test -f "$i/$platDir/tkConfig.sh" ; then
18131 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
18137 # on Darwin, check in Framework installation locations
18138 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
18139 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
18140 `ls -d /Library/Frameworks 2>/dev/null` \
18141 `ls -d /Network/Library/Frameworks 2>/dev/null` \
18142 `ls -d /System/Library/Frameworks 2>/dev/null` \
18144 if test -f "$i/Tk.framework/tkConfig.sh" ; then
18145 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
18151 # check in a few common install locations
18152 if test x
"${ac_cv_c_tkconfig}" = x
; then
18153 for i
in `ls -d ${libdir} 2>/dev/null` \
18154 `ls -d ${exec_prefix}/lib 2>/dev/null` \
18155 `ls -d ${prefix}/lib 2>/dev/null` \
18156 `ls -d /usr/local/lib 2>/dev/null` \
18157 `ls -d /usr/contrib/lib 2>/dev/null` \
18158 `ls -d /usr/lib 2>/dev/null` \
18160 if test -f "$i/tkConfig.sh" ; then
18161 ac_cv_c_tkconfig
=`(cd $i; pwd)`
18166 # check in a few other private locations
18167 if test x
"${ac_cv_c_tkconfig}" = x
; then
18170 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
18171 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
18172 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
18173 if test -f "$i/$platDir/tkConfig.sh" ; then
18174 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
18183 if test x
"${ac_cv_c_tkconfig}" = x
; then
18184 TK_BIN_DIR
="# no Tk configs found"
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
18186 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
18189 TK_BIN_DIR
=${ac_cv_c_tkconfig}
18190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
18191 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
18196 if test -z "${no_tcl}" -a -z "${no_tk}"; then
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
18199 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
18201 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
18203 $as_echo "loading" >&6; }
18204 .
${TCL_BIN_DIR}/tclConfig.sh
18206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
18207 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
18210 # eval is required to do the TCL_DBGX substitution
18211 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
18212 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
18214 # If the TCL_BIN_DIR is the build directory (not the install directory),
18215 # then set the common variable name to the value of the build variables.
18216 # For example, the variable TCL_LIB_SPEC will be set to the value
18217 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
18218 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
18219 # installed and uninstalled version of Tcl.
18220 if test -f "${TCL_BIN_DIR}/Makefile" ; then
18221 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
18222 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
18223 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
18224 elif test "`uname -s`" = "Darwin"; then
18225 # If Tcl was built as a framework, attempt to use the libraries
18226 # from the framework at the given location so that linking works
18227 # against Tcl.framework installed in an arbitrary location.
18228 case ${TCL_DEFS} in
18230 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
18231 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
18232 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
18233 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
18234 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
18239 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
18240 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
18241 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
18247 # eval is required to do the TCL_DBGX substitution
18248 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
18249 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
18250 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
18251 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
18267 # Check for in-tree tcl
18274 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
18278 # Find Tcl private headers
18279 if test x
"${intree}" = xno
; then
18281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
18282 $as_echo_n "checking for Tcl private headers... " >&6; }
18284 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
18285 if test -f ${dir}/tclInt.h
; then
18289 if test x
"${private_dir}" = x
; then
18290 as_fn_error $?
"could not find private Tcl headers" "$LINENO" 5
18292 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
18294 $as_echo "${private_dir}" >&6; }
18297 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
18298 TCL_LIBRARY
="${TCL_LIB_SPEC}"
18301 # If building tcl in the same src tree, private headers
18302 # are not needed, but we need to be sure to use the right
18304 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
18305 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
18306 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
18314 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
18316 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
18317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
18318 $as_echo "loading" >&6; }
18319 .
${TK_BIN_DIR}/tkConfig.sh
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
18322 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
18325 # eval is required to do the TK_DBGX substitution
18326 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
18327 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
18329 # If the TK_BIN_DIR is the build directory (not the install directory),
18330 # then set the common variable name to the value of the build variables.
18331 # For example, the variable TK_LIB_SPEC will be set to the value
18332 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
18333 # instead of TK_BUILD_LIB_SPEC since it will work with both an
18334 # installed and uninstalled version of Tcl.
18335 if test -f "${TK_BIN_DIR}/Makefile" ; then
18336 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
18337 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
18338 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
18339 elif test "`uname -s`" = "Darwin"; then
18340 # If Tk was built as a framework, attempt to use the libraries
18341 # from the framework at the given location so that linking works
18342 # against Tk.framework installed in an arbitrary location.
18345 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
18346 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
18347 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
18348 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
18349 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
18354 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
18355 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
18356 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
18362 # eval is required to do the TK_DBGX substitution
18363 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
18364 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
18365 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
18366 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
18381 # Check for in-tree Tk
18383 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
18387 # Find Tk private headers
18388 if test x
"${intree}" = xno
; then
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
18391 $as_echo_n "checking for Tk private headers... " >&6; }
18393 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
18394 if test -f ${dir}/tkInt.h
; then
18398 if test x
"${private_dir}" = x
; then
18399 as_fn_error $?
"could not find Tk private headers" "$LINENO" 5
18401 TK_PRIVATE_INCLUDE
="-I${private_dir}"
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
18403 $as_echo "${private_dir}" >&6; }
18406 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
18407 TK_LIBRARY
=${TK_LIB_SPEC}
18410 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
18411 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
18412 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
18419 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
18421 # Include some libraries that Tcl and Tk want.
18422 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
18423 # Yes, the ordering seems wrong here. But it isn't.
18424 # TK_LIBS is the list of libraries that need to be linked
18425 # after Tcl/Tk. Note that this isn't put into LIBS. If it
18426 # were in LIBS then any link tests after this point would
18427 # try to include things like `$(LIBGUI)', which wouldn't work.
18428 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
18430 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
18431 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
18432 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
18433 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
18434 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
18435 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
18436 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
18438 if test x
"$gdb_cv_os_cygwin" = xyes
; then
18439 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
18440 WIN32LDAPP
="-Wl,--subsystem,console"
18441 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
18444 subdirs
="$subdirs gdbtk"
18456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
18457 $as_echo_n "checking for X... " >&6; }
18460 # Check whether --with-x was given.
18461 if test "${with_x+set}" = set; then :
18465 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18466 if test "x$with_x" = xno
; then
18467 # The user explicitly disabled X.
18470 case $x_includes,$x_libraries in #(
18471 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
18472 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
18473 $as_echo_n "(cached) " >&6
18475 # One or both of the vars are not set, and there is no cached value.
18476 ac_x_includes
=no ac_x_libraries
=no
18477 rm -f -r conftest.dir
18478 if mkdir conftest.dir
; then
18480 cat >Imakefile
<<'_ACEOF'
18482 @echo incroot='${INCROOT}'
18484 @echo usrlibdir='${USRLIBDIR}'
18486 @echo libdir='${LIBDIR}'
18488 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
18489 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
18490 for ac_var
in incroot usrlibdir libdir
; do
18491 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18493 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18494 for ac_extension
in a so sl dylib la dll
; do
18495 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18496 test -f "$ac_im_libdir/libX11.$ac_extension"; then
18497 ac_im_usrlibdir
=$ac_im_libdir; break
18500 # Screen out bogus values from the imake configuration. They are
18501 # bogus both because they are the default anyway, and because
18502 # using them would break gcc on systems where it needs fixed includes.
18503 case $ac_im_incroot in
18504 /usr
/include
) ac_x_includes
= ;;
18505 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
18507 case $ac_im_usrlibdir in
18508 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
18509 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
18513 rm -f -r conftest.dir
18516 # Standard set of common directories for X headers.
18517 # Check X11 before X11Rn because it is often a symlink to the current release.
18531 /usr/local/X11/include
18532 /usr/local/X11R7/include
18533 /usr/local/X11R6/include
18534 /usr/local/X11R5/include
18535 /usr/local/X11R4/include
18537 /usr/local/include/X11
18538 /usr/local/include/X11R7
18539 /usr/local/include/X11R6
18540 /usr/local/include/X11R5
18541 /usr/local/include/X11R4
18545 /usr/XFree86/include/X11
18549 /usr/unsupported/include
18550 /usr/athena/include
18551 /usr/local/x11r5/include
18552 /usr/lpp/Xamples/include
18554 /usr/openwin/include
18555 /usr/openwin/share/include'
18557 if test "$ac_x_includes" = no
; then
18558 # Guess where to find include files, by looking for Xlib.h.
18559 # First, try using that file with no special directory specified.
18560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18561 /* end confdefs.h. */
18562 #include <X11/Xlib.h>
18564 if ac_fn_c_try_cpp
"$LINENO"; then :
18565 # We can compile using X headers with no special include directory.
18568 for ac_dir
in $ac_x_header_dirs; do
18569 if test -r "$ac_dir/X11/Xlib.h"; then
18570 ac_x_includes
=$ac_dir
18575 rm -f conftest.err conftest.i conftest.
$ac_ext
18576 fi # $ac_x_includes = no
18578 if test "$ac_x_libraries" = no
; then
18579 # Check for the libraries.
18580 # See if we find them without any special options.
18581 # Don't add to $LIBS permanently.
18584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18585 /* end confdefs.h. */
18586 #include <X11/Xlib.h>
18595 if ac_fn_c_try_link
"$LINENO"; then :
18597 # We can link X programs with no special library path.
18601 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18603 # Don't even attempt the hair of trying to link an X program!
18604 for ac_extension
in a so sl dylib la dll
; do
18605 if test -r "$ac_dir/libX11.$ac_extension"; then
18606 ac_x_libraries
=$ac_dir
18612 rm -f core conftest.err conftest.
$ac_objext \
18613 conftest
$ac_exeext conftest.
$ac_ext
18614 fi # $ac_x_libraries = no
18616 case $ac_x_includes,$ac_x_libraries in #(
18617 no
,* |
*,no |
*\'*)
18618 # Didn't find X, or a directory has "'" in its name.
18619 ac_cv_have_x
="have_x=no";; #(
18621 # Record where we found X for the cache.
18622 ac_cv_have_x
="have_x=yes\
18623 ac_x_includes='$ac_x_includes'\
18624 ac_x_libraries='$ac_x_libraries'"
18630 eval "$ac_cv_have_x"
18633 if test "$have_x" != yes; then
18634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
18635 $as_echo "$have_x" >&6; }
18638 # If each of the values was on the command line, it overrides each guess.
18639 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
18640 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
18641 # Update the cache value to reflect the command line values.
18642 ac_cv_have_x
="have_x=yes\
18643 ac_x_includes='$x_includes'\
18644 ac_x_libraries='$x_libraries'"
18645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
18646 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
18650 # Unlike the sim directory, whether a simulator is linked is controlled by
18651 # presence of a gdb_sim definition in the target configure.tgt entry.
18652 # This code just checks for a few cases where we'd like to ignore those
18653 # definitions, even when they're present in the '.mt' file. These cases
18654 # are when --disable-sim is specified, or if the simulator directory is
18655 # not part of the source tree.
18657 # Check whether --enable-sim was given.
18658 if test "${enable_sim+set}" = set; then :
18659 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
18660 echo "enableval = ${enableval}";
18661 case "${enableval}" in
18662 yes) ignore_sim
=false
;;
18663 no
) ignore_sim
=true
;;
18664 *) ignore_sim
=false
;;
18671 if test ! -d "${srcdir}/../sim"; then
18677 if test "${ignore_sim}" = "false"; then
18678 if test x
"${gdb_sim}" != x
; then
18680 SIM_OBS
="remote-sim.o"
18682 # Some tdep code should only be compiled in when the ppc sim is
18683 # built. PR sim/13418.
18687 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
18707 # List of host floatformats.
18709 cat >>confdefs.h
<<_ACEOF
18710 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
18714 cat >>confdefs.h
<<_ACEOF
18715 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
18719 cat >>confdefs.h
<<_ACEOF
18720 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
18724 # target_subdir is used by the testsuite to find the target libraries.
18726 if test "${host}" != "${target}"; then
18727 target_subdir
="${target_alias}/"
18731 # Import nat definitions.
18732 nat_makefile_frag
=/dev
/null
18733 if test "${gdb_native}" = "yes"; then
18734 .
${srcdir}/configure.nat
18735 nativefile
=$NAT_FILE
18748 if test x
"${gdb_osabi}" != x
; then
18750 cat >>confdefs.h
<<_ACEOF
18751 #define GDB_OSABI_DEFAULT $gdb_osabi
18756 # Setup possible use of libbacktrace.
18757 # Check whether --enable-libbacktrace was given.
18758 if test "${enable_libbacktrace+set}" = set; then :
18759 enableval
=$enable_libbacktrace; case "${enableval}" in
18760 yes) enable_libbacktrace
=yes ;;
18761 no
) enable_libbacktrace
=no
;;
18762 *) as_fn_error $?
"bad value ${enableval} for --enable-libbacktrace option" "$LINENO" 5 ;;
18765 enable_libbacktrace
=yes
18769 if test "${enable_libbacktrace}" = "yes"; then
18770 LIBBACKTRACE_INC
="-I$srcdir/../libbacktrace/ -I../libbacktrace/"
18771 LIBBACKTRACE_LIB
=..
/libbacktrace
/.libs
/libbacktrace.a
18773 $as_echo "#define HAVE_LIBBACKTRACE 1" >>confdefs.h
18783 # Check for babeltrace and babeltrace-ctf
18785 # Check whether --with-babeltrace was given.
18786 if test "${with_babeltrace+set}" = set; then :
18787 withval
=$with_babeltrace;
18789 with_babeltrace
=auto
18792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
18793 $as_echo_n "checking whether to use babeltrace... " >&6; }
18794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
18795 $as_echo "$with_babeltrace" >&6; }
18797 if test "x$with_babeltrace" = "xno"; then
18798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
18799 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
18801 # Append -Werror to CFLAGS so that configure can catch the warning
18802 # "assignment from incompatible pointer type", which is related to
18803 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
18804 # in GDB, while babeltrace 1.0.3 is broken.
18805 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
18806 # safe to save and restore CFLAGS here.
18807 saved_CFLAGS
=$CFLAGS
18808 CFLAGS
="$CFLAGS -Werror"
18819 acl_save_prefix
="$prefix"
18820 prefix
="$acl_final_prefix"
18821 acl_save_exec_prefix
="$exec_prefix"
18822 exec_prefix
="$acl_final_exec_prefix"
18824 eval additional_includedir
=\"$includedir\"
18825 eval additional_libdir
=\"$libdir\"
18827 exec_prefix
="$acl_save_exec_prefix"
18828 prefix
="$acl_save_prefix"
18831 # Check whether --with-libbabeltrace-prefix was given.
18832 if test "${with_libbabeltrace_prefix+set}" = set; then :
18833 withval
=$with_libbabeltrace_prefix;
18834 if test "X$withval" = "Xno"; then
18837 if test "X$withval" = "X"; then
18839 acl_save_prefix
="$prefix"
18840 prefix
="$acl_final_prefix"
18841 acl_save_exec_prefix
="$exec_prefix"
18842 exec_prefix
="$acl_final_exec_prefix"
18844 eval additional_includedir
=\"$includedir\"
18845 eval additional_libdir
=\"$libdir\"
18847 exec_prefix
="$acl_save_exec_prefix"
18848 prefix
="$acl_save_prefix"
18851 additional_includedir
="$withval/include"
18852 additional_libdir
="$withval/lib"
18859 # Check whether --with-libbabeltrace-type was given.
18860 if test "${with_libbabeltrace_type+set}" = set; then :
18861 withval
=$with_libbabeltrace_type; with_libbabeltrace_type
=$withval
18863 with_libbabeltrace_type
=auto
18866 lib_type
=`eval echo \$with_libbabeltrace_type`
18873 names_already_handled
=
18874 names_next_round
='babeltrace babeltrace-ctf'
18875 while test -n "$names_next_round"; do
18876 names_this_round
="$names_next_round"
18878 for name
in $names_this_round; do
18880 for n
in $names_already_handled; do
18881 if test "$n" = "$name"; then
18882 already_handled
=yes
18886 if test -z "$already_handled"; then
18887 names_already_handled
="$names_already_handled $name"
18888 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18889 eval value
=\"\
$HAVE_LIB$uppername\"
18890 if test -n "$value"; then
18891 if test "$value" = yes; then
18892 eval value
=\"\
$LIB$uppername\"
18893 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
18894 eval value
=\"\
$LTLIB$uppername\"
18895 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
18904 if test $use_additional = yes; then
18905 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18906 found_dir
="$additional_libdir"
18907 found_so
="$additional_libdir/lib$name.$shlibext"
18908 if test -f "$additional_libdir/lib$name.la"; then
18909 found_la
="$additional_libdir/lib$name.la"
18911 elif test x
$lib_type != xshared
; then
18912 if test -f "$additional_libdir/lib$name.$libext"; then
18913 found_dir
="$additional_libdir"
18914 found_a
="$additional_libdir/lib$name.$libext"
18915 if test -f "$additional_libdir/lib$name.la"; then
18916 found_la
="$additional_libdir/lib$name.la"
18921 if test "X$found_dir" = "X"; then
18922 for x
in $LDFLAGS $LTLIBBABELTRACE; do
18924 acl_save_prefix
="$prefix"
18925 prefix
="$acl_final_prefix"
18926 acl_save_exec_prefix
="$exec_prefix"
18927 exec_prefix
="$acl_final_exec_prefix"
18929 exec_prefix
="$acl_save_exec_prefix"
18930 prefix
="$acl_save_prefix"
18934 dir
=`echo "X$x" | sed -e 's/^X-L//'`
18935 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18937 found_so
="$dir/lib$name.$shlibext"
18938 if test -f "$dir/lib$name.la"; then
18939 found_la
="$dir/lib$name.la"
18941 elif test x
$lib_type != xshared
; then
18942 if test -f "$dir/lib$name.$libext"; then
18944 found_a
="$dir/lib$name.$libext"
18945 if test -f "$dir/lib$name.la"; then
18946 found_la
="$dir/lib$name.la"
18952 if test "X$found_dir" != "X"; then
18957 if test "X$found_dir" != "X"; then
18958 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
18959 if test "X$found_so" != "X"; then
18960 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
18961 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18964 for x
in $ltrpathdirs; do
18965 if test "X$x" = "X$found_dir"; then
18970 if test -z "$haveit"; then
18971 ltrpathdirs
="$ltrpathdirs $found_dir"
18973 if test "$hardcode_direct" = yes; then
18974 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18976 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
18977 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18979 for x
in $rpathdirs; do
18980 if test "X$x" = "X$found_dir"; then
18985 if test -z "$haveit"; then
18986 rpathdirs
="$rpathdirs $found_dir"
18990 for x
in $LDFLAGS $LIBBABELTRACE; do
18992 acl_save_prefix
="$prefix"
18993 prefix
="$acl_final_prefix"
18994 acl_save_exec_prefix
="$exec_prefix"
18995 exec_prefix
="$acl_final_exec_prefix"
18997 exec_prefix
="$acl_save_exec_prefix"
18998 prefix
="$acl_save_prefix"
19000 if test "X$x" = "X-L$found_dir"; then
19005 if test -z "$haveit"; then
19006 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
19008 if test "$hardcode_minus_L" != no
; then
19009 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
19011 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
19017 if test "X$found_a" != "X"; then
19018 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
19020 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
19023 additional_includedir
=
19024 case "$found_dir" in
19026 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
19027 additional_includedir
="$basedir/include"
19030 if test "X$additional_includedir" != "X"; then
19031 if test "X$additional_includedir" != "X/usr/include"; then
19033 if test "X$additional_includedir" = "X/usr/local/include"; then
19034 if test -n "$GCC"; then
19036 linux
*) haveit
=yes;;
19040 if test -z "$haveit"; then
19041 for x
in $CPPFLAGS $INCBABELTRACE; do
19043 acl_save_prefix
="$prefix"
19044 prefix
="$acl_final_prefix"
19045 acl_save_exec_prefix
="$exec_prefix"
19046 exec_prefix
="$acl_final_exec_prefix"
19048 exec_prefix
="$acl_save_exec_prefix"
19049 prefix
="$acl_save_prefix"
19051 if test "X$x" = "X-I$additional_includedir"; then
19056 if test -z "$haveit"; then
19057 if test -d "$additional_includedir"; then
19058 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
19064 if test -n "$found_la"; then
19065 save_libdir
="$libdir"
19066 case "$found_la" in
19067 */* |
*\\*) .
"$found_la" ;;
19068 *) .
"./$found_la" ;;
19070 libdir
="$save_libdir"
19071 for dep
in $dependency_libs; do
19074 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
19075 if test "X$additional_libdir" != "X/usr/lib"; then
19077 if test "X$additional_libdir" = "X/usr/local/lib"; then
19078 if test -n "$GCC"; then
19080 linux
*) haveit
=yes;;
19084 if test -z "$haveit"; then
19086 for x
in $LDFLAGS $LIBBABELTRACE; do
19088 acl_save_prefix
="$prefix"
19089 prefix
="$acl_final_prefix"
19090 acl_save_exec_prefix
="$exec_prefix"
19091 exec_prefix
="$acl_final_exec_prefix"
19093 exec_prefix
="$acl_save_exec_prefix"
19094 prefix
="$acl_save_prefix"
19096 if test "X$x" = "X-L$additional_libdir"; then
19101 if test -z "$haveit"; then
19102 if test -d "$additional_libdir"; then
19103 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
19107 for x
in $LDFLAGS $LTLIBBABELTRACE; do
19109 acl_save_prefix
="$prefix"
19110 prefix
="$acl_final_prefix"
19111 acl_save_exec_prefix
="$exec_prefix"
19112 exec_prefix
="$acl_final_exec_prefix"
19114 exec_prefix
="$acl_save_exec_prefix"
19115 prefix
="$acl_save_prefix"
19117 if test "X$x" = "X-L$additional_libdir"; then
19122 if test -z "$haveit"; then
19123 if test -d "$additional_libdir"; then
19124 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
19131 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
19132 if test "$enable_rpath" != no
; then
19134 for x
in $rpathdirs; do
19135 if test "X$x" = "X$dir"; then
19140 if test -z "$haveit"; then
19141 rpathdirs
="$rpathdirs $dir"
19144 for x
in $ltrpathdirs; do
19145 if test "X$x" = "X$dir"; then
19150 if test -z "$haveit"; then
19151 ltrpathdirs
="$ltrpathdirs $dir"
19156 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19159 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19162 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
19163 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
19169 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
19170 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
19171 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
19173 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l:lib$name.$libext"
19174 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l:lib$name.$libext"
19181 if test "X$rpathdirs" != "X"; then
19182 if test -n "$hardcode_libdir_separator"; then
19184 for found_dir
in $rpathdirs; do
19185 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
19187 acl_save_libdir
="$libdir"
19189 eval flag
=\"$hardcode_libdir_flag_spec\"
19190 libdir
="$acl_save_libdir"
19191 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
19193 for found_dir
in $rpathdirs; do
19194 acl_save_libdir
="$libdir"
19195 libdir
="$found_dir"
19196 eval flag
=\"$hardcode_libdir_flag_spec\"
19197 libdir
="$acl_save_libdir"
19198 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
19202 if test "X$ltrpathdirs" != "X"; then
19203 for found_dir
in $ltrpathdirs; do
19204 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
19209 ac_save_CPPFLAGS
="$CPPFLAGS"
19211 for element
in $INCBABELTRACE; do
19213 for x
in $CPPFLAGS; do
19215 acl_save_prefix
="$prefix"
19216 prefix
="$acl_final_prefix"
19217 acl_save_exec_prefix
="$exec_prefix"
19218 exec_prefix
="$acl_final_exec_prefix"
19220 exec_prefix
="$acl_save_exec_prefix"
19221 prefix
="$acl_save_prefix"
19223 if test "X$x" = "X$element"; then
19228 if test -z "$haveit"; then
19229 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
19234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
19235 $as_echo_n "checking for libbabeltrace... " >&6; }
19236 if ${ac_cv_libbabeltrace+:} false
; then :
19237 $as_echo_n "(cached) " >&6
19240 ac_save_LIBS
="$LIBS"
19241 LIBS
="$LIBS $LIBBABELTRACE"
19242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19243 /* end confdefs.h. */
19244 #include <babeltrace/babeltrace.h>
19245 #include <babeltrace/ctf/events.h>
19246 #include <babeltrace/ctf/iterator.h>
19250 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
19251 struct bt_ctf_event *event = NULL;
19252 const struct bt_definition *scope;
19254 pos->type = BT_SEEK_BEGIN;
19255 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
19256 scope = bt_ctf_get_top_level_scope (event,
19257 BT_STREAM_EVENT_HEADER);
19258 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
19264 if ac_fn_c_try_link
"$LINENO"; then :
19265 ac_cv_libbabeltrace
=yes
19267 ac_cv_libbabeltrace
=no
19269 rm -f core conftest.err conftest.
$ac_objext \
19270 conftest
$ac_exeext conftest.
$ac_ext
19271 LIBS
="$ac_save_LIBS"
19274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
19275 $as_echo "$ac_cv_libbabeltrace" >&6; }
19276 if test "$ac_cv_libbabeltrace" = yes; then
19277 HAVE_LIBBABELTRACE
=yes
19279 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
19281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
19282 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
19283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
19284 $as_echo "$LIBBABELTRACE" >&6; }
19286 HAVE_LIBBABELTRACE
=no
19287 CPPFLAGS
="$ac_save_CPPFLAGS"
19297 CFLAGS
=$saved_CFLAGS
19299 if test "$HAVE_LIBBABELTRACE" != yes; then
19300 if test "$with_babeltrace" = yes; then
19301 as_fn_error $?
"babeltrace is missing or unusable" "$LINENO" 5
19303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
19304 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
19311 # Check whether --with-xxhash was given.
19312 if test "${with_xxhash+set}" = set; then :
19313 withval
=$with_xxhash;
19319 # Check whether --enable-libctf was given.
19320 if test "${enable_libctf+set}" = set; then :
19321 enableval
=$enable_libctf;
19322 case "$enableval" in
19324 *) as_fn_error $?
"Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
19332 if test x
${enable_static} = xno
; then
19333 LIBCTF
="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so"
19334 CTF_DEPS
="../libctf/.libs/libctf.so"
19336 LIBCTF
="../libctf/.libs/libctf.a"
19339 if test "${enable_libctf}" = yes; then
19341 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
19350 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
19353 if test "x$with_xxhash" != "xno"; then
19364 acl_save_prefix
="$prefix"
19365 prefix
="$acl_final_prefix"
19366 acl_save_exec_prefix
="$exec_prefix"
19367 exec_prefix
="$acl_final_exec_prefix"
19369 eval additional_includedir
=\"$includedir\"
19370 eval additional_libdir
=\"$libdir\"
19372 exec_prefix
="$acl_save_exec_prefix"
19373 prefix
="$acl_save_prefix"
19376 # Check whether --with-libxxhash-prefix was given.
19377 if test "${with_libxxhash_prefix+set}" = set; then :
19378 withval
=$with_libxxhash_prefix;
19379 if test "X$withval" = "Xno"; then
19382 if test "X$withval" = "X"; then
19384 acl_save_prefix
="$prefix"
19385 prefix
="$acl_final_prefix"
19386 acl_save_exec_prefix
="$exec_prefix"
19387 exec_prefix
="$acl_final_exec_prefix"
19389 eval additional_includedir
=\"$includedir\"
19390 eval additional_libdir
=\"$libdir\"
19392 exec_prefix
="$acl_save_exec_prefix"
19393 prefix
="$acl_save_prefix"
19396 additional_includedir
="$withval/include"
19397 additional_libdir
="$withval/lib"
19404 # Check whether --with-libxxhash-type was given.
19405 if test "${with_libxxhash_type+set}" = set; then :
19406 withval
=$with_libxxhash_type; with_libxxhash_type
=$withval
19408 with_libxxhash_type
=auto
19411 lib_type
=`eval echo \$with_libxxhash_type`
19418 names_already_handled
=
19419 names_next_round
='xxhash '
19420 while test -n "$names_next_round"; do
19421 names_this_round
="$names_next_round"
19423 for name
in $names_this_round; do
19425 for n
in $names_already_handled; do
19426 if test "$n" = "$name"; then
19427 already_handled
=yes
19431 if test -z "$already_handled"; then
19432 names_already_handled
="$names_already_handled $name"
19433 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
19434 eval value
=\"\
$HAVE_LIB$uppername\"
19435 if test -n "$value"; then
19436 if test "$value" = yes; then
19437 eval value
=\"\
$LIB$uppername\"
19438 test -z "$value" || LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$value"
19439 eval value
=\"\
$LTLIB$uppername\"
19440 test -z "$value" || LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$value"
19449 if test $use_additional = yes; then
19450 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
19451 found_dir
="$additional_libdir"
19452 found_so
="$additional_libdir/lib$name.$shlibext"
19453 if test -f "$additional_libdir/lib$name.la"; then
19454 found_la
="$additional_libdir/lib$name.la"
19456 elif test x
$lib_type != xshared
; then
19457 if test -f "$additional_libdir/lib$name.$libext"; then
19458 found_dir
="$additional_libdir"
19459 found_a
="$additional_libdir/lib$name.$libext"
19460 if test -f "$additional_libdir/lib$name.la"; then
19461 found_la
="$additional_libdir/lib$name.la"
19466 if test "X$found_dir" = "X"; then
19467 for x
in $LDFLAGS $LTLIBXXHASH; do
19469 acl_save_prefix
="$prefix"
19470 prefix
="$acl_final_prefix"
19471 acl_save_exec_prefix
="$exec_prefix"
19472 exec_prefix
="$acl_final_exec_prefix"
19474 exec_prefix
="$acl_save_exec_prefix"
19475 prefix
="$acl_save_prefix"
19479 dir
=`echo "X$x" | sed -e 's/^X-L//'`
19480 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
19482 found_so
="$dir/lib$name.$shlibext"
19483 if test -f "$dir/lib$name.la"; then
19484 found_la
="$dir/lib$name.la"
19486 elif test x
$lib_type != xshared
; then
19487 if test -f "$dir/lib$name.$libext"; then
19489 found_a
="$dir/lib$name.$libext"
19490 if test -f "$dir/lib$name.la"; then
19491 found_la
="$dir/lib$name.la"
19497 if test "X$found_dir" != "X"; then
19502 if test "X$found_dir" != "X"; then
19503 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$found_dir -l$name"
19504 if test "X$found_so" != "X"; then
19505 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
19506 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19509 for x
in $ltrpathdirs; do
19510 if test "X$x" = "X$found_dir"; then
19515 if test -z "$haveit"; then
19516 ltrpathdirs
="$ltrpathdirs $found_dir"
19518 if test "$hardcode_direct" = yes; then
19519 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19521 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
19522 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19524 for x
in $rpathdirs; do
19525 if test "X$x" = "X$found_dir"; then
19530 if test -z "$haveit"; then
19531 rpathdirs
="$rpathdirs $found_dir"
19535 for x
in $LDFLAGS $LIBXXHASH; do
19537 acl_save_prefix
="$prefix"
19538 prefix
="$acl_final_prefix"
19539 acl_save_exec_prefix
="$exec_prefix"
19540 exec_prefix
="$acl_final_exec_prefix"
19542 exec_prefix
="$acl_save_exec_prefix"
19543 prefix
="$acl_save_prefix"
19545 if test "X$x" = "X-L$found_dir"; then
19550 if test -z "$haveit"; then
19551 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir"
19553 if test "$hardcode_minus_L" != no
; then
19554 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19556 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
19562 if test "X$found_a" != "X"; then
19563 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_a"
19565 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir -l$name"
19568 additional_includedir
=
19569 case "$found_dir" in
19571 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
19572 additional_includedir
="$basedir/include"
19575 if test "X$additional_includedir" != "X"; then
19576 if test "X$additional_includedir" != "X/usr/include"; then
19578 if test "X$additional_includedir" = "X/usr/local/include"; then
19579 if test -n "$GCC"; then
19581 linux
*) haveit
=yes;;
19585 if test -z "$haveit"; then
19586 for x
in $CPPFLAGS $INCXXHASH; do
19588 acl_save_prefix
="$prefix"
19589 prefix
="$acl_final_prefix"
19590 acl_save_exec_prefix
="$exec_prefix"
19591 exec_prefix
="$acl_final_exec_prefix"
19593 exec_prefix
="$acl_save_exec_prefix"
19594 prefix
="$acl_save_prefix"
19596 if test "X$x" = "X-I$additional_includedir"; then
19601 if test -z "$haveit"; then
19602 if test -d "$additional_includedir"; then
19603 INCXXHASH
="${INCXXHASH}${INCXXHASH:+ }-I$additional_includedir"
19609 if test -n "$found_la"; then
19610 save_libdir
="$libdir"
19611 case "$found_la" in
19612 */* |
*\\*) .
"$found_la" ;;
19613 *) .
"./$found_la" ;;
19615 libdir
="$save_libdir"
19616 for dep
in $dependency_libs; do
19619 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
19620 if test "X$additional_libdir" != "X/usr/lib"; then
19622 if test "X$additional_libdir" = "X/usr/local/lib"; then
19623 if test -n "$GCC"; then
19625 linux
*) haveit
=yes;;
19629 if test -z "$haveit"; then
19631 for x
in $LDFLAGS $LIBXXHASH; do
19633 acl_save_prefix
="$prefix"
19634 prefix
="$acl_final_prefix"
19635 acl_save_exec_prefix
="$exec_prefix"
19636 exec_prefix
="$acl_final_exec_prefix"
19638 exec_prefix
="$acl_save_exec_prefix"
19639 prefix
="$acl_save_prefix"
19641 if test "X$x" = "X-L$additional_libdir"; then
19646 if test -z "$haveit"; then
19647 if test -d "$additional_libdir"; then
19648 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$additional_libdir"
19652 for x
in $LDFLAGS $LTLIBXXHASH; do
19654 acl_save_prefix
="$prefix"
19655 prefix
="$acl_final_prefix"
19656 acl_save_exec_prefix
="$exec_prefix"
19657 exec_prefix
="$acl_final_exec_prefix"
19659 exec_prefix
="$acl_save_exec_prefix"
19660 prefix
="$acl_save_prefix"
19662 if test "X$x" = "X-L$additional_libdir"; then
19667 if test -z "$haveit"; then
19668 if test -d "$additional_libdir"; then
19669 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$additional_libdir"
19676 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
19677 if test "$enable_rpath" != no
; then
19679 for x
in $rpathdirs; do
19680 if test "X$x" = "X$dir"; then
19685 if test -z "$haveit"; then
19686 rpathdirs
="$rpathdirs $dir"
19689 for x
in $ltrpathdirs; do
19690 if test "X$x" = "X$dir"; then
19695 if test -z "$haveit"; then
19696 ltrpathdirs
="$ltrpathdirs $dir"
19701 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19704 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19707 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$dep"
19708 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$dep"
19714 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
19715 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
19716 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l$name"
19718 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l:lib$name.$libext"
19719 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l:lib$name.$libext"
19726 if test "X$rpathdirs" != "X"; then
19727 if test -n "$hardcode_libdir_separator"; then
19729 for found_dir
in $rpathdirs; do
19730 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
19732 acl_save_libdir
="$libdir"
19734 eval flag
=\"$hardcode_libdir_flag_spec\"
19735 libdir
="$acl_save_libdir"
19736 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
19738 for found_dir
in $rpathdirs; do
19739 acl_save_libdir
="$libdir"
19740 libdir
="$found_dir"
19741 eval flag
=\"$hardcode_libdir_flag_spec\"
19742 libdir
="$acl_save_libdir"
19743 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
19747 if test "X$ltrpathdirs" != "X"; then
19748 for found_dir
in $ltrpathdirs; do
19749 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-R$found_dir"
19754 ac_save_CPPFLAGS
="$CPPFLAGS"
19756 for element
in $INCXXHASH; do
19758 for x
in $CPPFLAGS; do
19760 acl_save_prefix
="$prefix"
19761 prefix
="$acl_final_prefix"
19762 acl_save_exec_prefix
="$exec_prefix"
19763 exec_prefix
="$acl_final_exec_prefix"
19765 exec_prefix
="$acl_save_exec_prefix"
19766 prefix
="$acl_save_prefix"
19768 if test "X$x" = "X$element"; then
19773 if test -z "$haveit"; then
19774 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
19779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5
19780 $as_echo_n "checking for libxxhash... " >&6; }
19781 if ${ac_cv_libxxhash+:} false
; then :
19782 $as_echo_n "(cached) " >&6
19785 ac_save_LIBS
="$LIBS"
19786 LIBS
="$LIBS $LIBXXHASH"
19787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19788 /* end confdefs.h. */
19789 #include <xxhash.h>
19793 XXH32("foo", 3, 0);
19799 if ac_fn_c_try_link
"$LINENO"; then :
19800 ac_cv_libxxhash
=yes
19804 rm -f core conftest.err conftest.
$ac_objext \
19805 conftest
$ac_exeext conftest.
$ac_ext
19806 LIBS
="$ac_save_LIBS"
19809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxxhash" >&5
19810 $as_echo "$ac_cv_libxxhash" >&6; }
19811 if test "$ac_cv_libxxhash" = yes; then
19814 $as_echo "#define HAVE_LIBXXHASH 1" >>confdefs.h
19816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libxxhash" >&5
19817 $as_echo_n "checking how to link with libxxhash... " >&6; }
19818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXXHASH" >&5
19819 $as_echo "$LIBXXHASH" >&6; }
19822 CPPFLAGS
="$ac_save_CPPFLAGS"
19832 if test "$HAVE_LIBXXHASH" != yes; then
19833 if test "$with_xxhash" = yes; then
19834 as_fn_error $?
"xxhash is missing or unusable" "$LINENO" 5
19837 if test "x$with_xxhash" = "xauto"; then
19838 with_xxhash
="$HAVE_LIBXXHASH"
19842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
19843 $as_echo_n "checking whether to use xxhash... " >&6; }
19844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
19845 $as_echo "$with_xxhash" >&6; }
19849 if test "${nativefile}" != ""; then
19850 case "${nativefile}" in
19851 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
19852 * ) GDB_NM_FILE
="${nativefile}"
19854 ac_config_links
="$ac_config_links nm.h:$GDB_NM_FILE"
19857 cat >>confdefs.h
<<_ACEOF
19858 #define GDB_NM_FILE "${GDB_NM_FILE}"
19866 for ac_prog
in xsltproc
19868 # Extract the first word of "$ac_prog", so it can be a program name with args.
19869 set dummy
$ac_prog; ac_word
=$2
19870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19871 $as_echo_n "checking for $ac_word... " >&6; }
19872 if ${ac_cv_path_XSLTPROC+:} false
; then :
19873 $as_echo_n "(cached) " >&6
19877 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
19880 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19881 for as_dir
in $PATH
19884 test -z "$as_dir" && as_dir
=.
19885 for ac_exec_ext
in '' $ac_executable_extensions; do
19886 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19887 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
19888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19898 XSLTPROC
=$ac_cv_path_XSLTPROC
19899 if test -n "$XSLTPROC"; then
19900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19901 $as_echo "$XSLTPROC" >&6; }
19903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19904 $as_echo "no" >&6; }
19908 test -n "$XSLTPROC" && break
19910 test -n "$XSLTPROC" || XSLTPROC
="missing"
19912 if test "x$USE_MAINTAINER_MODE" = xyes
; then
19913 if test "${XSLTPROC}" = missing
; then
19914 as_fn_error $?
"unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
19922 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
19926 # Check whether we will enable the inclusion of unit tests when
19929 # The default value of this option changes depending whether we're on
19930 # development mode (in which case it's "true") or not (in which case
19931 # it's "false"). The $development variable is set by the GDB_AC_COMMON
19932 # macro, which must therefore be used before GDB_AC_SELFTEST.
19934 if test "x$development" != xtrue
&& test "x$development" != xfalse
; then :
19935 as_fn_error $?
"Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
19938 # Check whether --enable-unit-tests was given.
19939 if test "${enable_unit_tests+set}" = set; then :
19940 enableval
=$enable_unit_tests; case "${enableval}" in
19941 yes) enable_unittests
=true
;;
19942 no
) enable_unittests
=false
;;
19943 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
19946 enable_unittests
=$development
19950 if $enable_unittests; then
19952 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
19955 CONFIG_OBS
="$CONFIG_OBS \$(SELFTESTS_OBS)"
19956 CONFIG_SRCS
="$CONFIG_SRCS \$(SELFTESTS_SRCS)"
19962 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19963 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
19964 if test "x$GDB_TRANSFORM_NAME" = x
; then
19965 GDB_TRANSFORM_NAME
=gdb
19970 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19971 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
19972 if test "x$GCORE_TRANSFORM_NAME" = x
; then
19973 GCORE_TRANSFORM_NAME
=gcore
19977 ac_config_files
="$ac_config_files gcore"
19979 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
19982 cat >confcache
<<\_ACEOF
19983 # This file is a shell script that caches the results of configure
19984 # tests run on this system so they can be shared between configure
19985 # scripts and configure runs, see configure's option --config-cache.
19986 # It is not useful on other systems. If it contains results you don't
19987 # want to keep, you may remove or edit it.
19989 # config.status only pays attention to the cache file if you give it
19990 # the --recheck option to rerun configure.
19992 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19993 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19994 # following values.
19998 # The following way of writing the cache mishandles newlines in values,
19999 # but we know of no workaround that is simple, portable, and efficient.
20000 # So, we kill variables containing newlines.
20001 # Ultrix sh set writes to stderr and can't be redirected directly,
20002 # and sets the high bit in the cache file unless we assign to the vars.
20004 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20005 eval ac_val
=\$
$ac_var
20009 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20010 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20013 _ | IFS | as_nl
) ;; #(
20014 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
20015 *) { eval $ac_var=; unset $ac_var;} ;;
20021 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20022 *${as_nl}ac_space
=\
*)
20023 # `set' does not quote correctly, so add quotes: double-quote
20024 # substitution turns \\\\ into \\, and sed turns \\ into \.
20027 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20030 # `set' quotes correctly as required by POSIX, so do not add quotes.
20031 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20040 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20042 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20044 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
20045 if test -w "$cache_file"; then
20046 if test "x$cache_file" != "x/dev/null"; then
20047 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20048 $as_echo "$as_me: updating cache $cache_file" >&6;}
20049 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
20050 cat confcache
>"$cache_file"
20052 case $cache_file in #(
20054 mv -f confcache
"$cache_file"$$
&&
20055 mv -f "$cache_file"$$
"$cache_file" ;; #(
20057 mv -f confcache
"$cache_file" ;;
20062 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20063 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20068 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
20069 # Let make expand exec_prefix.
20070 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
20072 DEFS
=-DHAVE_CONFIG_H
20077 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
20078 # 1. Remove the extension, and $U if already installed.
20079 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
20080 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
20081 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20082 # will be set to the directory where LIBOBJS objects are built.
20083 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20084 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
20086 LIBOBJS
=$ac_libobjs
20088 LTLIBOBJS
=$ac_ltlibobjs
20091 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20092 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
20093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20095 if test -z "${ENABLE_BFD_64_BIT_TRUE}" && test -z "${ENABLE_BFD_64_BIT_FALSE}"; then
20096 as_fn_error $?
"conditional \"ENABLE_BFD_64_BIT\" was never defined.
20097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20099 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
20100 as_fn_error $?
"conditional \"HAVE_PYTHON\" was never defined.
20101 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20103 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
20104 as_fn_error $?
"conditional \"HAVE_GUILE\" was never defined.
20105 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20109 : "${CONFIG_STATUS=./config.status}"
20111 ac_clean_files_save
=$ac_clean_files
20112 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
20113 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20114 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20116 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20118 # Generated by $as_me.
20119 # Run this file to recreate the current configuration.
20120 # Compiler output produced by configure, useful for debugging
20121 # configure, is in config.log if it exists.
20124 ac_cs_recheck=false
20127 SHELL=\${CONFIG_SHELL-$SHELL}
20130 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
20131 ## -------------------- ##
20132 ## M4sh Initialization. ##
20133 ## -------------------- ##
20135 # Be more Bourne compatible
20136 DUALCASE
=1; export DUALCASE
# for MKS sh
20137 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20140 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20141 # is contrary to our usage. Disable this feature.
20142 alias -g '${1+"$@"}'='"$@"'
20143 setopt NO_GLOB_SUBST
20145 case `(set -o) 2>/dev/null` in #(
20157 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20158 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20159 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20160 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20161 # Prefer a ksh shell builtin over an external printf program on Solaris,
20162 # but without wasting forks for bash or zsh.
20163 if test -z "$BASH_VERSION$ZSH_VERSION" \
20164 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20165 as_echo='print
-r --'
20166 as_echo_n='print
-rn --'
20167 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20168 as_echo='printf %s
\n'
20169 as_echo_n='printf %s
'
20171 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20172 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
20173 as_echo_n='/usr
/ucb
/echo -n'
20175 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20176 as_echo_n_body='eval
20180 expr "X$arg" : "X\\(.*\\)$as_nl";
20181 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20183 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
20185 export as_echo_n_body
20186 as_echo_n='sh
-c $as_echo_n_body as_echo
'
20188 export as_echo_body
20189 as_echo='sh
-c $as_echo_body as_echo
'
20192 # The user is always right.
20193 if test "${PATH_SEPARATOR+set}" != set; then
20195 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20196 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20203 # We need space, tab and new line, in precisely that order. Quoting is
20204 # there to prevent editors from complaining about space-tab.
20205 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20206 # splitting by setting IFS to empty value.)
20209 # Find who we are. Look in the path if we contain no directory separator.
20212 *[\\/]* ) as_myself=$0 ;;
20213 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20214 for as_dir in $PATH
20217 test -z "$as_dir" && as_dir=.
20218 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20224 # We did not find ourselves, most probably we were run as `sh COMMAND'
20225 # in which case we are not to be found in the path.
20226 if test "x$as_myself" = x
; then
20229 if test ! -f "$as_myself"; then
20230 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20234 # Unset variables that we do not need and which cause bugs (e.g. in
20235 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20236 # suppresses any "Segmentation fault" message there. '((' could
20237 # trigger a bug in pdksh 5.2.14.
20238 for as_var
in BASH_ENV ENV MAIL MAILPATH
20239 do eval test x\
${$as_var+set} = xset \
20240 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
20253 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
20256 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20257 # ----------------------------------------
20258 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20259 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20260 # script with STATUS, using 1 if that was 0.
20263 as_status
=$1; test $as_status -eq 0 && as_status
=1
20265 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
20266 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20268 $as_echo "$as_me: error: $2" >&2
20269 as_fn_exit
$as_status
20273 # as_fn_set_status STATUS
20274 # -----------------------
20275 # Set $? to STATUS, without forking.
20276 as_fn_set_status
()
20279 } # as_fn_set_status
20281 # as_fn_exit STATUS
20282 # -----------------
20283 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20287 as_fn_set_status
$1
20293 # Portably unset VAR.
20296 { eval $1=; unset $1;}
20298 as_unset
=as_fn_unset
20299 # as_fn_append VAR VALUE
20300 # ----------------------
20301 # Append the text in VALUE to the end of the definition contained in VAR. Take
20302 # advantage of any shell optimizations that allow amortized linear growth over
20303 # repeated appends, instead of the typical quadratic growth present in naive
20305 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
20306 eval 'as_fn_append ()
20317 # as_fn_arith ARG...
20318 # ------------------
20319 # Perform arithmetic evaluation on the ARGs, and store the result in the
20320 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20321 # must be portable across $(()) and expr.
20322 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
20323 eval 'as_fn_arith ()
20330 as_val
=`expr "$@" || test $? -eq 1`
20335 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20336 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20342 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20343 as_basename
=basename
20348 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
20354 as_me
=`$as_basename -- "$0" ||
20355 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20356 X"$0" : 'X\(//\)$' \| \
20357 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20359 sed '/^.*\/\([^/][^/]*\)\/*$/{
20373 # Avoid depending upon Character Ranges.
20374 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
20375 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20376 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
20377 as_cr_digits
='0123456789'
20378 as_cr_alnum
=$as_cr_Letters$as_cr_digits
20380 ECHO_C
= ECHO_N
= ECHO_T
=
20381 case `echo -n x` in #(((((
20383 case `echo 'xy\c'` in
20384 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
20386 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
20393 rm -f conf$$ conf$$.exe conf$$.
file
20394 if test -d conf$$.dir
; then
20395 rm -f conf$$.dir
/conf$$.
file
20398 mkdir conf$$.dir
2>/dev
/null
20400 if (echo >conf$$.
file) 2>/dev
/null
; then
20401 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20403 # ... but there are two gotchas:
20404 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20405 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20406 # In both cases, we have to default to `cp -pR'.
20407 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
20409 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20417 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
20418 rmdir conf$$.dir
2>/dev
/null
20423 # Create "$as_dir" as a directory, including parents if necessary.
20428 -*) as_dir
=.
/$as_dir;;
20430 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
20434 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20435 *) as_qdir
=$as_dir;;
20437 as_dirs
="'$as_qdir' $as_dirs"
20438 as_dir
=`$as_dirname -- "$as_dir" ||
20439 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20440 X"$as_dir" : 'X\(//\)[^/]' \| \
20441 X"$as_dir" : 'X\(//\)$' \| \
20442 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20443 $as_echo X"$as_dir" |
20444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20448 /^X\(\/\/\)[^/].*/{
20461 test -d "$as_dir" && break
20463 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
20464 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
20468 if mkdir
-p .
2>/dev
/null
; then
20469 as_mkdir_p
='mkdir -p "$as_dir"'
20471 test -d .
/-p && rmdir .
/-p
20476 # as_fn_executable_p FILE
20477 # -----------------------
20478 # Test if FILE is an executable regular file.
20479 as_fn_executable_p
()
20481 test -f "$1" && test -x "$1"
20482 } # as_fn_executable_p
20483 as_test_x
='test -x'
20484 as_executable_p
=as_fn_executable_p
20486 # Sed expression to map a string onto a valid CPP name.
20487 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20489 # Sed expression to map a string onto a valid variable name.
20490 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20494 ## ----------------------------------- ##
20495 ## Main body of $CONFIG_STATUS script. ##
20496 ## ----------------------------------- ##
20498 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
20500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20501 # Save the log message, to keep $0 and so on meaningful, and to
20502 # report actual input values of CONFIG_FILES etc. instead of their
20503 # values after options handling.
20505 This file was extended by $as_me, which was
20506 generated by GNU Autoconf 2.69. Invocation command line was
20508 CONFIG_FILES = $CONFIG_FILES
20509 CONFIG_HEADERS = $CONFIG_HEADERS
20510 CONFIG_LINKS = $CONFIG_LINKS
20511 CONFIG_COMMANDS = $CONFIG_COMMANDS
20514 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20519 case $ac_config_files in *"
20520 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
20523 case $ac_config_headers in *"
20524 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
20528 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20529 # Files that config.status was made for.
20530 config_files="$ac_config_files"
20531 config_headers="$ac_config_headers"
20532 config_links="$ac_config_links"
20533 config_commands="$ac_config_commands"
20537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20539 \`$as_me' instantiates files and other configuration actions
20540 from templates according to the current configuration. Unless the files
20541 and actions are specified as TAGs, all are instantiated by default.
20543 Usage: $0 [OPTION]... [TAG]...
20545 -h, --help print this help, then exit
20546 -V, --version print version number and configuration settings, then exit
20547 --config print configuration, then exit
20548 -q, --quiet, --silent
20549 do not print progress messages
20550 -d, --debug don't remove temporary files
20551 --recheck update $as_me by reconfiguring in the same conditions
20552 --file=FILE[:TEMPLATE]
20553 instantiate the configuration file FILE
20554 --header=FILE[:TEMPLATE]
20555 instantiate the configuration header FILE
20557 Configuration files:
20560 Configuration headers:
20563 Configuration links:
20566 Configuration commands:
20569 Report bugs to the package provider."
20572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20573 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20576 configured by $0, generated by GNU Autoconf 2.69,
20577 with options \\"\$ac_cs_config\\"
20579 Copyright (C) 2012 Free Software Foundation, Inc.
20580 This config.status script is free software; the Free Software Foundation
20581 gives unlimited permission to copy, distribute and modify it."
20587 test -n "\$AWK" || AWK=awk
20590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20591 # The default lists apply if the user does not specify any file.
20597 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20598 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20602 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20614 # Handling of the options.
20615 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20617 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20618 $as_echo "$ac_cs_version"; exit ;;
20619 --config |
--confi |
--conf |
--con |
--co |
--c )
20620 $as_echo "$ac_cs_config"; exit ;;
20621 --debug |
--debu |
--deb |
--de |
--d |
-d )
20623 --file |
--fil |
--fi |
--f )
20626 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20627 '') as_fn_error $?
"missing file argument" ;;
20629 as_fn_append CONFIG_FILES
" '$ac_optarg'"
20630 ac_need_defaults
=false
;;
20631 --header |
--heade |
--head |
--hea )
20634 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20636 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
20637 ac_need_defaults
=false
;;
20639 # Conflict between --help and --header
20640 as_fn_error $?
"ambiguous option: \`$1'
20641 Try \`$0 --help' for more information.";;
20642 --help |
--hel |
-h )
20643 $as_echo "$ac_cs_usage"; exit ;;
20644 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20645 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20648 # This is an error.
20649 -*) as_fn_error $?
"unrecognized option: \`$1'
20650 Try \`$0 --help' for more information." ;;
20652 *) as_fn_append ac_config_targets
" $1"
20653 ac_need_defaults
=false
;;
20659 ac_configure_extra_args
=
20661 if $ac_cs_silent; then
20663 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20668 if \$ac_cs_recheck; then
20669 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20671 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20672 CONFIG_SHELL='$SHELL'
20673 export CONFIG_SHELL
20678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20682 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20683 ## Running $as_me. ##
20689 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20693 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
20694 GDB_NM_FILE=$GDB_NM_FILE
20698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20700 # Handling of arguments.
20701 for ac_config_target
in $ac_config_targets
20703 case $ac_config_target in
20704 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
20705 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
20706 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
20707 "nm.h") CONFIG_LINKS
="$CONFIG_LINKS nm.h:$GDB_NM_FILE" ;;
20708 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
20709 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20710 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
20711 "gdb-gdb.py") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.py" ;;
20712 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
20713 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
20715 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20720 # If the user did not use the arguments to specify the items to instantiate,
20721 # then the envvar interface is used. Set only those that are not.
20722 # We use the long form for the default assignment because of an extremely
20723 # bizarre bug on SunOS 4.1.3.
20724 if $ac_need_defaults; then
20725 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20726 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20727 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
20728 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20731 # Have a temporary directory for convenience. Make it in the build tree
20732 # simply because there is no reason against having it here, and in addition,
20733 # creating and moving files from /tmp can sometimes cause problems.
20734 # Hook for its removal unless debugging.
20735 # Note that there is a small window in which the directory will not be cleaned:
20736 # after its creation but before its name has been assigned to `$tmp'.
20740 trap 'exit_status=$?
20741 : "${ac_tmp:=$tmp}"
20742 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20744 trap 'as_fn_exit 1' 1 2 13 15
20746 # Create a (secure) tmp directory for tmp files.
20749 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20753 tmp
=.
/conf$$
-$RANDOM
20754 (umask 077 && mkdir
"$tmp")
20755 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
20758 # Set up the scripts for CONFIG_FILES section.
20759 # No need to generate them if there are no CONFIG_FILES.
20760 # This happens for instance with `./config.status config.h'.
20761 if test -n "$CONFIG_FILES"; then
20763 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
20764 ac_cs_awk_getline
=:
20765 ac_cs_awk_pipe_init
=
20766 ac_cs_awk_read_file
='
20767 while ((getline aline < (F[key])) > 0)
20770 ac_cs_awk_pipe_fini
=
20772 ac_cs_awk_getline
=false
20773 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
20774 ac_cs_awk_read_file
='
20776 print "cat " F[key] " &&"
20777 '$ac_cs_awk_pipe_init
20778 # The final `:' finishes the AND list.
20779 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
20781 ac_cr
=`echo X | tr X '\015'`
20782 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20783 # But we know of no other shell where ac_cr would be empty at this
20784 # point, so we can use a bashism as a fallback.
20785 if test "x$ac_cr" = x
; then
20786 eval ac_cr
=\$
\'\\r
\'
20788 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20789 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20792 ac_cs_awk_cr
=$ac_cr
20795 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20798 # Create commands to substitute file output variables.
20800 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20801 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
20802 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
20805 } >conf$
$files.sh
&&
20806 . .
/conf$
$files.sh ||
20807 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
20808 rm -f conf$
$files.sh
20811 echo "cat >conf$$subs.awk <<_ACEOF" &&
20812 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20814 } >conf$$subs.sh ||
20815 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20816 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20818 for ac_last_try in false false false false false :; do
20819 . ./conf$$subs.sh ||
20820 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20822 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20823 if test $ac_delim_n = $ac_delim_num; then
20825 elif $ac_last_try; then
20826 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20828 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20831 rm -f conf$$subs.sh
20833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20834 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
20838 s/^/S["/; s
/!.
*/"]=/
20848 s/\(.\{148\}\)..*/\1/
20850 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
20855 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20862 s/\(.\{148\}\)..*/\1/
20864 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
20868 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20873 ' <conf$$subs.awk | sed '
20878 ' >>$CONFIG_STATUS || ac_write_fail=1
20879 rm -f conf$$subs.awk
20880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20882 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
20883 for (key in S) S_is_set[key] = 1
20885 \$ac_cs_awk_pipe_init
20889 nfields = split(line, field, "@
")
20891 len = length(field[1])
20892 for (i = 2; i < nfields; i++) {
20894 keylen = length(key)
20895 if (S_is_set[key]) {
20897 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20898 len += length(value) + length(field[++i])
20903 if (nfields == 3 && !substed) {
20905 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
20906 \$ac_cs_awk_read_file
20912 \$ac_cs_awk_pipe_fini
20915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20916 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20917 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
20920 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
20921 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
20924 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20925 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
20926 # trailing colons and then remove the whole line if VPATH becomes empty
20927 # (actually we leave an empty line to preserve line numbers).
20928 if test "x
$srcdir" = x.; then
20929 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20948 fi # test -n "$CONFIG_FILES"
20950 # Set up the scripts for CONFIG_HEADERS section.
20951 # No need to generate them if there are no CONFIG_HEADERS.
20952 # This happens for instance with `./config.status Makefile'.
20953 if test -n "$CONFIG_HEADERS"; then
20954 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
20958 # Transform confdefs.h into an awk script `defines.awk', embedded as
20959 # here-document in config.status, that substitutes the proper values into
20960 # config.h.in to produce config.h.
20962 # Create a delimiter string that does not exist in confdefs.h, to ease
20963 # handling of long lines.
20965 for ac_last_try in false false :; do
20966 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
20967 if test -z "$ac_tt"; then
20969 elif $ac_last_try; then
20970 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
20972 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20976 # For the awk script, D is an array of macro values keyed by name,
20977 # likewise P contains macro parameters if any. Preserve backslash
20978 # newline sequences.
20980 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20982 s/.\{148\}/&'"$ac_delim"'/g
20985 s/^[ ]*#[ ]*define[ ][ ]*/ /
20992 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
20994 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
20998 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
20999 D["\
1"]=" \
3\\\\\\n
"\\/p
21001 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
21006 s/.\{148\}/&'"$ac_delim"'/g
21011 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
21014 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
21016 ' <confdefs.h | sed '
21017 s/'"$ac_delim"'/"\\\
21018 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21021 for (key in D) D_is_set[key] = 1
21024 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21026 split(line, arg, " ")
21027 if (arg[1] == "#") {
21031 defundef
= substr
(arg
[1], 2)
21034 split(mac1
, mac2
, "(") #)
21036 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
21037 if (D_is_set
[macro
]) {
21038 # Preserve the white space surrounding the "#".
21039 print prefix
"define", macro P
[macro
] D
[macro
]
21042 # Replace #undef with comments. This is necessary, for example,
21043 # in the case of _POSIX_SOURCE, which is predefined and required
21044 # on some systems where configure will not decide to define it.
21045 if (defundef
== "undef") {
21046 print
"/*", prefix defundef
, macro
, "*/"
21054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21055 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
21056 fi # test -n "$CONFIG_HEADERS"
21059 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
21064 :[FHLC
]) ac_mode
=$ac_tag; continue;;
21066 case $ac_mode$ac_tag in
21068 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
21069 :[FH
]-) ac_tag
=-:-;;
21070 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
21087 -) ac_f
="$ac_tmp/stdin";;
21088 *) # Look for the file first in the build tree, then in the source tree
21089 # (if the path is not absolute). The absolute path cannot be DOS-style,
21090 # because $ac_f cannot contain `:'.
21094 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
21096 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21098 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21099 as_fn_append ac_file_inputs
" '$ac_f'"
21102 # Let's still pretend it is `configure' which instantiates (i.e., don't
21103 # use $as_me), people would be surprised to read:
21104 # /* config.h. Generated by config.status. */
21105 configure_input
='Generated from '`
21106 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21108 if test x
"$ac_file" != x-
; then
21109 configure_input
="$ac_file. $configure_input"
21110 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21111 $as_echo "$as_me: creating $ac_file" >&6;}
21113 # Neutralize special characters interpreted by sed in replacement strings.
21114 case $configure_input in #(
21115 *\
&* |
*\|
* |
*\\* )
21116 ac_sed_conf_input
=`$as_echo "$configure_input" |
21117 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21118 *) ac_sed_conf_input
=$configure_input;;
21122 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
21123 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
21128 ac_dir
=`$as_dirname -- "$ac_file" ||
21129 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21130 X"$ac_file" : 'X\(//\)[^/]' \| \
21131 X"$ac_file" : 'X\(//\)$' \| \
21132 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21133 $as_echo X"$ac_file" |
21134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21138 /^X\(\/\/\)[^/].*/{
21151 as_dir
="$ac_dir"; as_fn_mkdir_p
21155 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21157 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21158 # A ".." for each directory in $ac_dir_suffix.
21159 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21160 case $ac_top_builddir_sub in
21161 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21162 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
21165 ac_abs_top_builddir
=$ac_pwd
21166 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
21167 # for backward compatibility:
21168 ac_top_builddir
=$ac_top_build_prefix
21171 .
) # We are building in place.
21173 ac_top_srcdir
=$ac_top_builddir_sub
21174 ac_abs_top_srcdir
=$ac_pwd ;;
21175 [\\/]* | ?
:[\\/]* ) # Absolute name.
21176 ac_srcdir
=$srcdir$ac_dir_suffix;
21177 ac_top_srcdir
=$srcdir
21178 ac_abs_top_srcdir
=$srcdir ;;
21179 *) # Relative name.
21180 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
21181 ac_top_srcdir
=$ac_top_build_prefix$srcdir
21182 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
21184 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
21194 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
21195 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
21199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21200 # If the template does not know about datarootdir, expand it.
21201 # FIXME: This hack should be removed a few years after 2.60.
21202 ac_datarootdir_hack
=; ac_datarootdir_seen
=
21213 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21214 *datarootdir
*) ac_datarootdir_seen
=yes;;
21215 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
21216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21217 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21220 ac_datarootdir_hack='
21221 s&@datadir@&$datadir&g
21222 s&@docdir@&$docdir&g
21223 s&@infodir@&$infodir&g
21224 s&@localedir@&$localedir&g
21225 s&@mandir@&$mandir&g
21226 s&\\\${datarootdir}&$datarootdir&g' ;;
21230 # Neutralize VPATH when `$srcdir' = `.'.
21231 # Shell code in configure.ac might set extrasub.
21232 # FIXME: do we really want to maintain this feature?
21233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21234 ac_sed_extra="$ac_vpsub
21237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21239 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
21240 s|@configure_input@|
$ac_sed_conf_input|
;t t
21241 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
21242 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
21243 s
&@srcdir@
&$ac_srcdir&;t t
21244 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
21245 s
&@top_srcdir@
&$ac_top_srcdir&;t t
21246 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
21247 s
&@builddir@
&$ac_builddir&;t t
21248 s
&@abs_builddir@
&$ac_abs_builddir&;t t
21249 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
21250 s
&@INSTALL@
&$ac_INSTALL&;t t
21251 $ac_datarootdir_hack
21253 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
21254 if $ac_cs_awk_getline; then
21255 $AWK -f "$ac_tmp/subs.
awk"
21257 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
21259 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
21261 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21262 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
21263 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21264 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
21265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
21266 which seems to be undefined. Please make sure it is defined" >&5
21267 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
21268 which seems to be undefined. Please make sure it is defined" >&2;}
21270 rm -f "$ac_tmp/stdin"
21272 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21273 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21275 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21281 if test x"$ac_file" != x-; then
21283 $as_echo "/* $configure_input */" \
21284 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21285 } >"$ac_tmp/config.h" \
21286 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21287 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21288 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21289 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21292 mv "$ac_tmp/config.h" "$ac_file" \
21293 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21296 $as_echo "/* $configure_input */" \
21297 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21298 || as_fn_error $? "could not create -" "$LINENO" 5
21306 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
21309 # Prefer the file from the source tree if names are identical.
21310 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
21311 ac_source=$srcdir/$ac_source
21314 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
21315 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
21317 if test ! -r "$ac_source"; then
21318 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
21322 # Try a relative symlink, then a hard link, then a copy.
21324 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
21325 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
21327 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
21328 ln "$ac_source" "$ac_file" 2>/dev/null ||
21329 cp -p "$ac_source" "$ac_file" ||
21330 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
21333 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21334 $as_echo "$as_me: executing $ac_file commands" >&6;}
21339 case $ac_file$ac_mode in
21340 "config.h":H) echo > stamp-h ;;
21341 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
21342 "nm.h":L) echo > stamp-nmh ;;
21343 "gcore":F) chmod +x gcore ;;
21351 ac_clean_files=$ac_clean_files_save
21353 test $ac_write_fail = 0 ||
21354 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21357 # configure is writing to config.log, and then calls config.status.
21358 # config.status does its own redirection, appending to config.log.
21359 # Unfortunately, on DOS this fails, as config.log is still kept open
21360 # by configure, so config.status won't be able to
write to it
; its
21361 # output is simply discarded. So we exec the FD to /dev/null,
21362 # effectively closing config.log, so it can be properly (re)opened and
21363 # appended to by config.status. When coming back to configure, we
21364 # need to make the FD available again.
21365 if test "$no_create" != yes; then
21367 ac_config_status_args
=
21368 test "$silent" = yes &&
21369 ac_config_status_args
="$ac_config_status_args --quiet"
21371 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21373 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21374 # would make configure fail if this is the last instruction.
21375 $ac_cs_success || as_fn_exit
1
21379 # CONFIG_SUBDIRS section.
21381 if test "$no_recursion" != yes; then
21383 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
21384 # so they do not pile up.
21385 ac_sub_configure_args
=
21387 eval "set x $ac_configure_args"
21391 if test -n "$ac_prev"; then
21396 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
21397 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
21398 ac_prev
=cache_file
;;
21399 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
21400 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
21403 --config-cache |
-C)
21405 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
21407 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
21409 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
21411 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
21413 --disable-option-checking)
21417 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21419 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
21423 # Always prepend --prefix to ensure using the same prefix
21424 # in subdir configurations.
21425 ac_arg
="--prefix=$prefix"
21427 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21429 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
21432 if test "$silent" = yes; then
21433 ac_sub_configure_args
="--silent $ac_sub_configure_args"
21436 # Always prepend --disable-option-checking to silence warnings, since
21437 # different subdirs can have different --enable and --with options.
21438 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
21441 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
21443 # Do not complain, so a configure script can configure whichever
21444 # parts of a large source tree are present.
21445 test -d "$srcdir/$ac_dir" ||
continue
21447 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21448 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
21449 $as_echo "$ac_msg" >&6
21450 as_dir
="$ac_dir"; as_fn_mkdir_p
21454 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21456 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21457 # A ".." for each directory in $ac_dir_suffix.
21458 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21459 case $ac_top_builddir_sub in
21460 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21461 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
21464 ac_abs_top_builddir
=$ac_pwd
21465 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
21466 # for backward compatibility:
21467 ac_top_builddir
=$ac_top_build_prefix
21470 .
) # We are building in place.
21472 ac_top_srcdir
=$ac_top_builddir_sub
21473 ac_abs_top_srcdir
=$ac_pwd ;;
21474 [\\/]* | ?
:[\\/]* ) # Absolute name.
21475 ac_srcdir
=$srcdir$ac_dir_suffix;
21476 ac_top_srcdir
=$srcdir
21477 ac_abs_top_srcdir
=$srcdir ;;
21478 *) # Relative name.
21479 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
21480 ac_top_srcdir
=$ac_top_build_prefix$srcdir
21481 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
21483 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
21488 # Check for guested configure; otherwise get Cygnus style configure.
21489 if test -f "$ac_srcdir/configure.gnu"; then
21490 ac_sub_configure
=$ac_srcdir/configure.gnu
21491 elif test -f "$ac_srcdir/configure"; then
21492 ac_sub_configure
=$ac_srcdir/configure
21493 elif test -f "$ac_srcdir/configure.in"; then
21494 # This should be Cygnus configure.
21495 ac_sub_configure
=$ac_aux_dir/configure
21497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
21498 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21502 # The recursion is here.
21503 if test -n "$ac_sub_configure"; then
21504 # Make the cache file name correct relative to the subdirectory.
21505 case $cache_file in
21506 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
21507 *) # Relative name.
21508 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
21511 { $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
21512 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21513 # The eval makes quoting arguments work.
21514 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21515 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21516 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
21522 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
21523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21524 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}