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
633 HAVE_NATIVE_GCORE_HOST
725 READLINE_TEXI_INCFLAG
749 HAVE_NATIVE_GCORE_TARGET
776 INSTALL_STRIP_PROGRAM
805 MAINTAINER_MODE_FALSE
834 program_transform_name
845 ac_subst_files
='nat_makefile_frag'
847 enable_option_checking
848 enable_maintainer_mode
851 with_separate_debug_dir
853 with_relocated_sources
855 with_auto_load_safe_path
887 enable_build_warnings
888 enable_gdb_build_warnings
898 with_libbabeltrace_prefix
900 ac_precious_vars
='build_alias
917 ac_subdirs_all
='testsuite
921 # Initialize some variables set by options.
923 ac_init_version
=false
924 ac_unrecognized_opts
=
926 # The variables have the same names as the options, with
927 # dashes changed to underlines.
935 program_transform_name
=s
,x
,x
,
943 # Installation directory options.
944 # These are left unexpanded so users can "make install exec_prefix=/foo"
945 # and all the variables that are supposed to be based on exec_prefix
946 # by default will actually change.
947 # Use braces instead of parens because sh, perl, etc. also accept them.
948 # (The list follows the same order as the GNU Coding Standards.)
949 bindir
='${exec_prefix}/bin'
950 sbindir
='${exec_prefix}/sbin'
951 libexecdir
='${exec_prefix}/libexec'
952 datarootdir
='${prefix}/share'
953 datadir
='${datarootdir}'
954 sysconfdir
='${prefix}/etc'
955 sharedstatedir
='${prefix}/com'
956 localstatedir
='${prefix}/var'
957 includedir
='${prefix}/include'
958 oldincludedir
='/usr/include'
959 docdir
='${datarootdir}/doc/${PACKAGE}'
960 infodir
='${datarootdir}/info'
965 libdir
='${exec_prefix}/lib'
966 localedir
='${datarootdir}/locale'
967 mandir
='${datarootdir}/man'
973 # If the previous option needs an argument, assign it.
974 if test -n "$ac_prev"; then
975 eval $ac_prev=\
$ac_option
981 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
986 # Accept the important Cygnus configure options, so we can diagnose typos.
988 case $ac_dashdash$ac_option in
992 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
994 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
997 -build |
--build |
--buil |
--bui |
--bu)
998 ac_prev
=build_alias
;;
999 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1000 build_alias
=$ac_optarg ;;
1002 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1003 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1004 ac_prev
=cache_file
;;
1005 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1006 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1007 cache_file
=$ac_optarg ;;
1009 --config-cache |
-C)
1010 cache_file
=config.cache
;;
1012 -datadir |
--datadir |
--datadi |
--datad)
1014 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1015 datadir
=$ac_optarg ;;
1017 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1018 |
--dataroo |
--dataro |
--datar)
1019 ac_prev
=datarootdir
;;
1020 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1021 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1022 datarootdir
=$ac_optarg ;;
1024 -disable-* |
--disable-*)
1025 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1026 # Reject names that are not valid shell variable names.
1027 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1028 as_fn_error $?
"invalid feature name: $ac_useropt"
1029 ac_useropt_orig
=$ac_useropt
1030 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031 case $ac_user_opts in
1033 "enable_
$ac_useropt"
1035 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1036 ac_unrecognized_sep
=', ';;
1038 eval enable_
$ac_useropt=no
;;
1040 -docdir |
--docdir |
--docdi |
--doc |
--do)
1042 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1043 docdir
=$ac_optarg ;;
1045 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1047 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1048 dvidir
=$ac_optarg ;;
1050 -enable-* |
--enable-*)
1051 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1054 as_fn_error $?
"invalid feature name: $ac_useropt"
1055 ac_useropt_orig
=$ac_useropt
1056 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057 case $ac_user_opts in
1059 "enable_
$ac_useropt"
1061 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1062 ac_unrecognized_sep
=', ';;
1064 eval enable_
$ac_useropt=\
$ac_optarg ;;
1066 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1067 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1068 |
--exec |
--exe |
--ex)
1069 ac_prev
=exec_prefix
;;
1070 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1071 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1072 |
--exec=* |
--exe=* |
--ex=*)
1073 exec_prefix
=$ac_optarg ;;
1075 -gas |
--gas |
--ga |
--g)
1076 # Obsolete; use --with-gas.
1079 -help |
--help |
--hel |
--he |
-h)
1080 ac_init_help
=long
;;
1081 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1082 ac_init_help
=recursive
;;
1083 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1084 ac_init_help
=short
;;
1086 -host |
--host |
--hos |
--ho)
1087 ac_prev
=host_alias
;;
1088 -host=* |
--host=* |
--hos=* |
--ho=*)
1089 host_alias
=$ac_optarg ;;
1091 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1093 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1095 htmldir
=$ac_optarg ;;
1097 -includedir |
--includedir |
--includedi |
--included |
--include \
1098 |
--includ |
--inclu |
--incl |
--inc)
1099 ac_prev
=includedir
;;
1100 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1101 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1102 includedir
=$ac_optarg ;;
1104 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1106 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1107 infodir
=$ac_optarg ;;
1109 -libdir |
--libdir |
--libdi |
--libd)
1111 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1112 libdir
=$ac_optarg ;;
1114 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1115 |
--libexe |
--libex |
--libe)
1116 ac_prev
=libexecdir
;;
1117 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1118 |
--libexe=* |
--libex=* |
--libe=*)
1119 libexecdir
=$ac_optarg ;;
1121 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1122 ac_prev
=localedir
;;
1123 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1124 localedir
=$ac_optarg ;;
1126 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1127 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1128 ac_prev
=localstatedir
;;
1129 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1130 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1131 localstatedir
=$ac_optarg ;;
1133 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1135 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1136 mandir
=$ac_optarg ;;
1138 -nfp |
--nfp |
--nf)
1139 # Obsolete; use --without-fp.
1142 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1143 |
--no-cr |
--no-c |
-n)
1146 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1147 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1150 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1151 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1152 |
--oldin |
--oldi |
--old |
--ol |
--o)
1153 ac_prev
=oldincludedir
;;
1154 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1155 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1156 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1157 oldincludedir
=$ac_optarg ;;
1159 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1161 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1162 prefix
=$ac_optarg ;;
1164 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1165 |
--program-pre |
--program-pr |
--program-p)
1166 ac_prev
=program_prefix
;;
1167 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1168 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1169 program_prefix
=$ac_optarg ;;
1171 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1172 |
--program-suf |
--program-su |
--program-s)
1173 ac_prev
=program_suffix
;;
1174 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1175 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1176 program_suffix
=$ac_optarg ;;
1178 -program-transform-name |
--program-transform-name \
1179 |
--program-transform-nam |
--program-transform-na \
1180 |
--program-transform-n |
--program-transform- \
1181 |
--program-transform |
--program-transfor \
1182 |
--program-transfo |
--program-transf \
1183 |
--program-trans |
--program-tran \
1184 |
--progr-tra |
--program-tr |
--program-t)
1185 ac_prev
=program_transform_name
;;
1186 -program-transform-name=* |
--program-transform-name=* \
1187 |
--program-transform-nam=* |
--program-transform-na=* \
1188 |
--program-transform-n=* |
--program-transform-=* \
1189 |
--program-transform=* |
--program-transfor=* \
1190 |
--program-transfo=* |
--program-transf=* \
1191 |
--program-trans=* |
--program-tran=* \
1192 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1193 program_transform_name
=$ac_optarg ;;
1195 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1197 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1198 pdfdir
=$ac_optarg ;;
1200 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1202 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1205 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1206 |
-silent |
--silent |
--silen |
--sile |
--sil)
1209 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1211 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1213 sbindir
=$ac_optarg ;;
1215 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1216 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1217 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1219 ac_prev
=sharedstatedir
;;
1220 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1221 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1222 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1224 sharedstatedir
=$ac_optarg ;;
1226 -site |
--site |
--sit)
1228 -site=* |
--site=* |
--sit=*)
1231 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1233 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1234 srcdir
=$ac_optarg ;;
1236 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1237 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1238 ac_prev
=sysconfdir
;;
1239 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1240 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1241 sysconfdir
=$ac_optarg ;;
1243 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1244 ac_prev
=target_alias
;;
1245 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1246 target_alias
=$ac_optarg ;;
1248 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1251 -version |
--version |
--versio |
--versi |
--vers |
-V)
1252 ac_init_version
=: ;;
1255 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1258 as_fn_error $?
"invalid package name: $ac_useropt"
1259 ac_useropt_orig
=$ac_useropt
1260 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261 case $ac_user_opts in
1265 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1266 ac_unrecognized_sep
=', ';;
1268 eval with_
$ac_useropt=\
$ac_optarg ;;
1270 -without-* |
--without-*)
1271 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1272 # Reject names that are not valid shell variable names.
1273 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1274 as_fn_error $?
"invalid package name: $ac_useropt"
1275 ac_useropt_orig
=$ac_useropt
1276 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1277 case $ac_user_opts in
1281 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1282 ac_unrecognized_sep
=', ';;
1284 eval with_
$ac_useropt=no
;;
1287 # Obsolete; use --with-x.
1290 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1291 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1292 ac_prev
=x_includes
;;
1293 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1294 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1295 x_includes
=$ac_optarg ;;
1297 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1298 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1299 ac_prev
=x_libraries
;;
1300 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1301 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1302 x_libraries
=$ac_optarg ;;
1304 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1305 Try \`$0 --help' for more information"
1309 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1310 # Reject names that are not valid shell variable names.
1311 case $ac_envvar in #(
1312 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1313 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1315 eval $ac_envvar=\
$ac_optarg
1316 export $ac_envvar ;;
1319 # FIXME: should be removed in autoconf 3.0.
1320 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1321 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1322 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1323 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1329 if test -n "$ac_prev"; then
1330 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1331 as_fn_error $?
"missing argument to $ac_option"
1334 if test -n "$ac_unrecognized_opts"; then
1335 case $enable_option_checking in
1337 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1338 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1342 # Check all directory arguments for consistency.
1343 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1344 datadir sysconfdir sharedstatedir localstatedir includedir \
1345 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1346 libdir localedir mandir
1348 eval ac_val
=\$
$ac_var
1349 # Remove trailing slashes.
1352 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1353 eval $ac_var=\
$ac_val;;
1355 # Be sure to have absolute directory names.
1357 [\\/$
]* | ?
:[\\/]* ) continue;;
1358 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1360 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1363 # There might be people who depend on the old broken behavior: `$host'
1364 # used to hold the argument of --host etc.
1365 # FIXME: To remove some day.
1368 target
=$target_alias
1370 # FIXME: To remove some day.
1371 if test "x$host_alias" != x
; then
1372 if test "x$build_alias" = x
; then
1373 cross_compiling
=maybe
1374 elif test "x$build_alias" != "x$host_alias"; then
1380 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1382 test "$silent" = yes && exec 6>/dev
/null
1385 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1386 ac_ls_di
=`ls -di .` &&
1387 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1388 as_fn_error $?
"working directory cannot be determined"
1389 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1390 as_fn_error $?
"pwd does not report name of working directory"
1393 # Find the source files, if location was not specified.
1394 if test -z "$srcdir"; then
1395 ac_srcdir_defaulted
=yes
1396 # Try the directory containing this script, then the parent directory.
1397 ac_confdir
=`$as_dirname -- "$as_myself" ||
1398 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1399 X"$as_myself" : 'X\(//\)[^/]' \| \
1400 X"$as_myself" : 'X\(//\)$' \| \
1401 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1402 $as_echo X"$as_myself" |
1403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1421 if test ! -r "$srcdir/$ac_unique_file"; then
1425 ac_srcdir_defaulted
=no
1427 if test ! -r "$srcdir/$ac_unique_file"; then
1428 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1429 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1431 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1433 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1435 # When building in place, set srcdir=.
1436 if test "$ac_abs_confdir" = "$ac_pwd"; then
1439 # Remove unnecessary trailing slashes from srcdir.
1440 # Double slashes in file names in object file debugging info
1441 # mess up M-x gdb in Emacs.
1443 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1445 for ac_var
in $ac_precious_vars; do
1446 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1447 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1448 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1449 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1453 # Report the --help message.
1455 if test "$ac_init_help" = "long"; then
1456 # Omit some internal or obsolete options to make the list less imposing.
1457 # This message is too long to be a string in the A/UX 3.1 sh.
1459 \`configure' configures this package to adapt to many kinds of systems.
1461 Usage: $0 [OPTION]... [VAR=VALUE]...
1463 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1464 VAR=VALUE. See below for descriptions of some of the useful variables.
1466 Defaults for the options are specified in brackets.
1469 -h, --help display this help and exit
1470 --help=short display options specific to this package
1471 --help=recursive display the short help of all the included packages
1472 -V, --version display version information and exit
1473 -q, --quiet, --silent do not print \`checking ...' messages
1474 --cache-file=FILE cache test results in FILE [disabled]
1475 -C, --config-cache alias for \`--cache-file=config.cache'
1476 -n, --no-create do not create output files
1477 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1479 Installation directories:
1480 --prefix=PREFIX install architecture-independent files in PREFIX
1481 [$ac_default_prefix]
1482 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1485 By default, \`make install' will install all the files in
1486 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1487 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1488 for instance \`--prefix=\$HOME'.
1490 For better control, use the options below.
1492 Fine tuning of the installation directories:
1493 --bindir=DIR user executables [EPREFIX/bin]
1494 --sbindir=DIR system admin executables [EPREFIX/sbin]
1495 --libexecdir=DIR program executables [EPREFIX/libexec]
1496 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1497 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1498 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1499 --libdir=DIR object code libraries [EPREFIX/lib]
1500 --includedir=DIR C header files [PREFIX/include]
1501 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1502 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1503 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1504 --infodir=DIR info documentation [DATAROOTDIR/info]
1505 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1506 --mandir=DIR man documentation [DATAROOTDIR/man]
1507 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1508 --htmldir=DIR html documentation [DOCDIR]
1509 --dvidir=DIR dvi documentation [DOCDIR]
1510 --pdfdir=DIR pdf documentation [DOCDIR]
1511 --psdir=DIR ps documentation [DOCDIR]
1517 --program-prefix=PREFIX prepend PREFIX to installed program names
1518 --program-suffix=SUFFIX append SUFFIX to installed program names
1519 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1522 --x-includes=DIR X include files are
in DIR
1523 --x-libraries=DIR X library files are
in DIR
1526 --build=BUILD configure
for building on BUILD
[guessed
]
1527 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1528 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1532 if test -n "$ac_init_help"; then
1537 --disable-option-checking ignore unrecognized
--enable/--with options
1538 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1539 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1540 --enable-maintainer-mode
1541 enable make rules and dependencies not useful
(and
1542 sometimes confusing
) to the casual installer
1543 --enable-plugins Enable support
for plugins
1544 --disable-largefile omit support
for large files
1545 --enable-targets=TARGETS
1546 alternative target configurations
1547 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1548 --disable-gdbmi disable machine-interface
(MI
)
1549 --enable-tui enable full-screen terminal user interface
(TUI
)
1550 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1551 --enable-profiling enable profiling of GDB
1552 --enable-codesign=CERT sign gdb with
'codesign -s CERT'
1553 --disable-rpath do not hardcode runtime library paths
1554 --enable-libmcheck Try linking with
-lmcheck if available
1555 --enable-werror treat compile warnings as errors
1556 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1557 --enable-gdb-build-warnings
1558 enable GDB specific build-time compiler warnings
if
1560 --enable-ubsan enable undefined behavior sanitizer
(auto
/yes
/no
)
1561 --enable-sim link gdb with simulator
1562 --enable-gdbserver automatically build gdbserver
(yes
/no
/auto
, default
1566 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1567 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1568 --with-separate-debug-dir=PATH
1569 look for global separate debug info
in this path
1571 --with-gdb-datadir=PATH
look for global separate data files
in this path
1573 --with-relocated-sources=PATH
1574 automatically relocate this path
for source files
1575 --with-auto-load-dir=PATH
1576 directories from
which to load auto-loaded scripts
1577 [$debugdir:$datadir/auto-load
]
1578 --with-auto-load-safe-path=PATH
1579 directories safe to hold auto-loaded files
1580 [--with-auto-load-dir]
1581 --without-auto-load-safe-path
1582 do not restrict auto-loaded files locations
1583 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1584 --with-curses use the curses library instead of the termcap
1586 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1587 --with-bugurl=URL Direct users to URL to report a bug
1588 --with-system-zlib use installed libz
1589 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1590 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1591 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1592 --with-iconv-bin=PATH specify where to find the iconv program
1593 --with-system-readline use installed readline library
1594 --with-jit-reader-dir=PATH
1595 directory to load the JIT readers from
1596 --with-expat include expat support (auto/yes/no)
1597 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1598 --without-libexpat-prefix don't search
for libexpat
in includedir and libdir
1599 --with-mpfr include MPFR support
(auto
/yes
/no
)
1600 --with-libmpfr-prefix[=DIR
] search
for libmpfr
in DIR
/include and DIR
/lib
1601 --without-libmpfr-prefix don
't search for libmpfr in includedir and libdir
1602 --with-python[=PYTHON] include python support
1603 (auto/yes/no/<python-program>)
1604 --with-guile[=GUILE] include guile support
1605 (auto/yes/no/<guile-version>/<pkg-config-program>)
1606 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1607 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1608 --without-libipt-prefix don't search
for libipt
in includedir and libdir
1609 --without-included-regex
1610 don
't use included regex; this is the default on
1611 systems with version 2 of the GNU C library (use
1612 with caution on other system)
1613 --with-sysroot[=DIR] search for usr/lib et al within DIR
1614 --with-system-gdbinit=PATH
1615 automatically load a system-wide gdbinit file
1616 --with-lzma support lzma compression (auto/yes/no)
1617 --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib
1618 --without-liblzma-prefix don't search
for liblzma
in includedir and libdir
1619 --with-tcl directory containing tcl configuration
(tclConfig.sh
)
1620 --with-tk directory containing tk configuration
(tkConfig.sh
)
1621 --with-x use the X Window System
1622 --with-babeltrace include babeltrace support
(auto
/yes
/no
)
1623 --with-libbabeltrace-prefix[=DIR
] search
for libbabeltrace
in DIR
/include and DIR
/lib
1624 --without-libbabeltrace-prefix don
't search for libbabeltrace in includedir and libdir
1626 Some influential environment variables:
1627 CC C compiler command
1628 CFLAGS C compiler flags
1629 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1630 nonstandard directory <lib dir>
1631 LIBS libraries to pass to the linker, e.g. -l<library>
1632 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1633 you have headers in a nonstandard directory <include dir>
1634 CXX C++ compiler command
1635 CXXFLAGS C++ compiler flags
1637 MAKEINFO Parent configure detects if it is of sufficient version.
1639 Parameters for MAKEINFO.
1640 YACC The `Yet Another Compiler Compiler' implementation to use.
1641 Defaults to the first program found out of
: `bison -y', `byacc
',
1643 YFLAGS The list of arguments that will be passed by default to
$YACC.
1644 This
script will default YFLAGS to the empty string to avoid a
1645 default value of
`-d' given by some make applications.
1646 XMKMF Path to xmkmf, Makefile generator for X Window System
1648 Use these variables to override the choices made by `configure
' or to help
1649 it to find libraries and programs with nonstandard names/locations.
1651 Report bugs to the package provider.
1656 if test "$ac_init_help" = "recursive"; then
1657 # If there are subdirs, report their specific --help.
1658 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1659 test -d "$ac_dir" ||
1660 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1665 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1667 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.
[\\/]||
'`
1668 # A ".." for each directory in $ac_dir_suffix.
1669 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|
/[^
\\/]*|
/..|g
;s|
/||
'`
1670 case $ac_top_builddir_sub in
1671 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1672 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1675 ac_abs_top_builddir=$ac_pwd
1676 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1677 # for backward compatibility:
1678 ac_top_builddir=$ac_top_build_prefix
1681 .) # We are building in place.
1683 ac_top_srcdir=$ac_top_builddir_sub
1684 ac_abs_top_srcdir=$ac_pwd ;;
1685 [\\/]* | ?:[\\/]* ) # Absolute name.
1686 ac_srcdir=$srcdir$ac_dir_suffix;
1687 ac_top_srcdir=$srcdir
1688 ac_abs_top_srcdir=$srcdir ;;
1690 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1691 ac_top_srcdir=$ac_top_build_prefix$srcdir
1692 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1694 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1696 cd "$ac_dir" || { ac_status=$?; continue; }
1697 # Check for guested configure.
1698 if test -f "$ac_srcdir/configure.gnu"; then
1700 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1701 elif test -f "$ac_srcdir/configure"; then
1703 $SHELL "$ac_srcdir/configure" --help=recursive
1705 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1707 cd "$ac_pwd" || { ac_status=$?; break; }
1711 test -n "$ac_init_help" && exit $ac_status
1712 if $ac_init_version; then
1715 generated by GNU Autoconf 2.69
1717 Copyright (C) 2012 Free Software Foundation, Inc.
1718 This configure script is free software; the Free Software Foundation
1719 gives unlimited permission to copy, distribute and modify it.
1724 ## ------------------------ ##
1725 ## Autoconf initialization. ##
1726 ## ------------------------ ##
1728 # ac_fn_c_try_compile LINENO
1729 # --------------------------
1730 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1731 ac_fn_c_try_compile ()
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 rm -f conftest.$ac_objext
1735 if { { ac_try="$ac_compile"
1737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738 *) ac_try_echo=$ac_try;;
1740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741 $as_echo "$ac_try_echo"; } >&5
1742 (eval "$ac_compile") 2>conftest.err
1744 if test -s conftest.err; then
1745 grep -v '^
*+' conftest.err >conftest.er1
1746 cat conftest.er1 >&5
1747 mv -f conftest.er1 conftest.err
1749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750 test $ac_status = 0; } && {
1751 test -z "$ac_c_werror_flag" ||
1752 test ! -s conftest.err
1753 } && test -s conftest.$ac_objext; then :
1756 $as_echo "$as_me: failed program was:" >&5
1757 sed 's
/^
/|
/' conftest.$ac_ext >&5
1761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762 as_fn_set_status $ac_retval
1764 } # ac_fn_c_try_compile
1766 # ac_fn_cxx_try_compile LINENO
1767 # ----------------------------
1768 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1769 ac_fn_cxx_try_compile ()
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 rm -f conftest.$ac_objext
1773 if { { ac_try="$ac_compile"
1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776 *) ac_try_echo=$ac_try;;
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780 (eval "$ac_compile") 2>conftest.err
1782 if test -s conftest.err; then
1783 grep -v '^
*+' conftest.err >conftest.er1
1784 cat conftest.er1 >&5
1785 mv -f conftest.er1 conftest.err
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; } && {
1789 test -z "$ac_cxx_werror_flag" ||
1790 test ! -s conftest.err
1791 } && test -s conftest.$ac_objext; then :
1794 $as_echo "$as_me: failed program was:" >&5
1795 sed 's
/^
/|
/' conftest.$ac_ext >&5
1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800 as_fn_set_status $ac_retval
1802 } # ac_fn_cxx_try_compile
1804 # ac_fn_c_try_cpp LINENO
1805 # ----------------------
1806 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 if { { ac_try="$ac_cpp conftest.$ac_ext"
1812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813 *) ac_try_echo=$ac_try;;
1815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816 $as_echo "$ac_try_echo"; } >&5
1817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1819 if test -s conftest.err; then
1820 grep -v '^
*+' conftest.err >conftest.er1
1821 cat conftest.er1 >&5
1822 mv -f conftest.er1 conftest.err
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; } > conftest.i && {
1826 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1827 test ! -s conftest.err
1831 $as_echo "$as_me: failed program was:" >&5
1832 sed 's
/^
/|
/' conftest.$ac_ext >&5
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837 as_fn_set_status $ac_retval
1841 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1842 # -------------------------------------------------------
1843 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1844 # the include files in INCLUDES and setting the cache variable VAR
1846 ac_fn_c_check_header_mongrel ()
1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849 if eval \${$3+:} false; then :
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1851 $as_echo_n "checking for $2... " >&6; }
1852 if eval \${$3+:} false; then :
1853 $as_echo_n "(cached) " >&6
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857 $as_echo "$ac_res" >&6; }
1859 # Is the header compilable?
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1861 $as_echo_n "checking $2 usability... " >&6; }
1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863 /* end confdefs.h. */
1867 if ac_fn_c_try_compile "$LINENO"; then :
1868 ac_header_compiler=yes
1870 ac_header_compiler=no
1872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1874 $as_echo "$ac_header_compiler" >&6; }
1876 # Is the header present?
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1878 $as_echo_n "checking $2 presence... " >&6; }
1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880 /* end confdefs.h. */
1883 if ac_fn_c_try_cpp "$LINENO"; then :
1884 ac_header_preproc=yes
1886 ac_header_preproc=no
1888 rm -f conftest.err conftest.i conftest.$ac_ext
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1890 $as_echo "$ac_header_preproc" >&6; }
1892 # So? What about this header?
1893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1896 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1898 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1902 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1904 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1906 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1908 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1910 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914 $as_echo_n "checking for $2... " >&6; }
1915 if eval \${$3+:} false; then :
1916 $as_echo_n "(cached) " >&6
1918 eval "$3=\$ac_header_compiler"
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1922 $as_echo "$ac_res" >&6; }
1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 } # ac_fn_c_check_header_mongrel
1928 # ac_fn_c_try_run LINENO
1929 # ----------------------
1930 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1931 # that executables *can* be run.
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 if { { ac_try="$ac_link"
1937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938 *) ac_try_echo=$ac_try;;
1940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 $as_echo "$ac_try_echo"; } >&5
1942 (eval "$ac_link") 2>&5
1944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1945 test $ac_status = 0; } && { ac_try='.
/conftest
$ac_exeext'
1946 { { case "(($ac_try" in
1947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948 *) ac_try_echo=$ac_try;;
1950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951 $as_echo "$ac_try_echo"; } >&5
1952 (eval "$ac_try") 2>&5
1954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1955 test $ac_status = 0; }; }; then :
1958 $as_echo "$as_me: program exited with status $ac_status" >&5
1959 $as_echo "$as_me: failed program was:" >&5
1960 sed 's
/^
/|
/' conftest.$ac_ext >&5
1962 ac_retval=$ac_status
1964 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1965 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1966 as_fn_set_status $ac_retval
1970 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1971 # -------------------------------------------------------
1972 # Tests whether HEADER exists and can be compiled using the include files in
1973 # INCLUDES, setting the cache variable VAR accordingly.
1974 ac_fn_c_check_header_compile ()
1976 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1978 $as_echo_n "checking for $2... " >&6; }
1979 if eval \${$3+:} false; then :
1980 $as_echo_n "(cached) " >&6
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h. */
1987 if ac_fn_c_try_compile "$LINENO"; then :
1992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996 $as_echo "$ac_res" >&6; }
1997 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999 } # ac_fn_c_check_header_compile
2001 # ac_fn_c_try_link LINENO
2002 # -----------------------
2003 # Try to link conftest.$ac_ext, and return whether this succeeded.
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 rm -f conftest.$ac_objext conftest$ac_exeext
2008 if { { ac_try="$ac_link"
2010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2011 *) ac_try_echo=$ac_try;;
2013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2014 $as_echo "$ac_try_echo"; } >&5
2015 (eval "$ac_link") 2>conftest.err
2017 if test -s conftest.err; then
2018 grep -v '^
*+' conftest.err >conftest.er1
2019 cat conftest.er1 >&5
2020 mv -f conftest.er1 conftest.err
2022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2023 test $ac_status = 0; } && {
2024 test -z "$ac_c_werror_flag" ||
2025 test ! -s conftest.err
2026 } && test -s conftest$ac_exeext && {
2027 test "$cross_compiling" = yes ||
2028 test -x conftest$ac_exeext
2032 $as_echo "$as_me: failed program was:" >&5
2033 sed 's
/^
/|
/' conftest.$ac_ext >&5
2037 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2038 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2039 # interfere with the next link command; also delete a directory that is
2040 # left behind by Apple's compiler. We
do this before executing the actions.
2041 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2042 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2043 as_fn_set_status
$ac_retval
2045 } # ac_fn_c_try_link
2047 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2048 # --------------------------------------------
2049 # Tries to find the compile-time value of EXPR in a program that includes
2050 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2052 ac_fn_c_compute_int
()
2054 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2055 if test "$cross_compiling" = yes; then
2056 # Depending upon the size, compute the lo and hi bounds.
2057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h. */
2063 static int test_array [1 - 2 * !(($2) >= 0)];
2065 return test_array [0];
2071 if ac_fn_c_try_compile
"$LINENO"; then :
2074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2075 /* end confdefs.h. */
2080 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2082 return test_array [0];
2088 if ac_fn_c_try_compile
"$LINENO"; then :
2089 ac_hi
=$ac_mid; break
2091 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2092 if test $ac_lo -le $ac_mid; then
2096 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2098 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2107 static int test_array [1 - 2 * !(($2) < 0)];
2109 return test_array [0];
2115 if ac_fn_c_try_compile
"$LINENO"; then :
2118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2124 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2126 return test_array [0];
2132 if ac_fn_c_try_compile
"$LINENO"; then :
2133 ac_lo
=$ac_mid; break
2135 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2136 if test $ac_mid -le $ac_hi; then
2140 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2142 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2147 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2150 # Binary search between lo and hi bounds.
2151 while test "x$ac_lo" != "x$ac_hi"; do
2152 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2154 /* end confdefs.h. */
2159 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2161 return test_array [0];
2167 if ac_fn_c_try_compile
"$LINENO"; then :
2170 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2172 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2175 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h. */
2182 static long int longval () { return $2; }
2183 static unsigned long int ulongval () { return $2; }
2190 FILE *f = fopen ("conftest.val", "w");
2195 long int i = longval ();
2198 fprintf (f, "%ld", i);
2202 unsigned long int i = ulongval ();
2205 fprintf (f, "%lu", i);
2207 /* Do not output a trailing newline, as this causes \r\n confusion
2208 on some platforms. */
2209 return ferror (f) || fclose (f) != 0;
2215 if ac_fn_c_try_run
"$LINENO"; then :
2216 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2220 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2221 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2225 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2226 as_fn_set_status
$ac_retval
2228 } # ac_fn_c_compute_int
2230 # ac_fn_c_check_func LINENO FUNC VAR
2231 # ----------------------------------
2232 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2233 ac_fn_c_check_func
()
2235 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2237 $as_echo_n "checking for $2... " >&6; }
2238 if eval \
${$3+:} false
; then :
2239 $as_echo_n "(cached) " >&6
2241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2243 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2245 #define $2 innocuous_$2
2247 /* System header to define __stub macros and hopefully few prototypes,
2248 which can conflict with char $2 (); below.
2249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2250 <limits.h> exists even on freestanding compilers. */
2253 # include <limits.h>
2255 # include <assert.h>
2260 /* Override any GCC internal prototype to avoid an error.
2261 Use char because int might match the return type of a GCC
2262 builtin and then its argument prototype would still apply. */
2267 /* The GNU C library defines this for functions which it implements
2268 to always fail with ENOSYS. Some functions are actually named
2269 something starting with __ and the normal name is an alias. */
2270 #if defined __stub_$2 || defined __stub___$2
2282 if ac_fn_c_try_link
"$LINENO"; then :
2287 rm -f core conftest.err conftest.
$ac_objext \
2288 conftest
$ac_exeext conftest.
$ac_ext
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2292 $as_echo "$ac_res" >&6; }
2293 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2295 } # ac_fn_c_check_func
2297 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2298 # ----------------------------------------------------
2299 # Tries to find if the field MEMBER exists in type AGGR, after including
2300 # INCLUDES, setting cache variable VAR accordingly.
2301 ac_fn_c_check_member
()
2303 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2305 $as_echo_n "checking for $2.$3... " >&6; }
2306 if eval \
${$4+:} false
; then :
2307 $as_echo_n "(cached) " >&6
2309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2310 /* end confdefs.h. */
2322 if ac_fn_c_try_compile
"$LINENO"; then :
2325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2326 /* end confdefs.h. */
2332 if (sizeof ac_aggr.$3)
2338 if ac_fn_c_try_compile
"$LINENO"; then :
2343 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2345 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2349 $as_echo "$ac_res" >&6; }
2350 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2352 } # ac_fn_c_check_member
2354 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2355 # -------------------------------------------
2356 # Tests whether TYPE exists after having included INCLUDES, setting cache
2357 # variable VAR accordingly.
2358 ac_fn_c_check_type
()
2360 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2362 $as_echo_n "checking for $2... " >&6; }
2363 if eval \
${$3+:} false
; then :
2364 $as_echo_n "(cached) " >&6
2367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2368 /* end confdefs.h. */
2379 if ac_fn_c_try_compile
"$LINENO"; then :
2380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2381 /* end confdefs.h. */
2392 if ac_fn_c_try_compile
"$LINENO"; then :
2397 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2399 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2403 $as_echo "$ac_res" >&6; }
2404 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2406 } # ac_fn_c_check_type
2408 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2409 # ---------------------------------------------
2410 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2412 ac_fn_c_check_decl
()
2414 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2415 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2416 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2418 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2419 if eval \
${$3+:} false
; then :
2420 $as_echo_n "(cached) " >&6
2422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2423 /* end confdefs.h. */
2428 #ifndef $as_decl_name
2430 (void) $as_decl_use;
2432 (void) $as_decl_name;
2440 if ac_fn_c_try_compile
"$LINENO"; then :
2445 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2449 $as_echo "$ac_res" >&6; }
2450 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2452 } # ac_fn_c_check_decl
2454 # ac_fn_cxx_try_link LINENO
2455 # -------------------------
2456 # Try to link conftest.$ac_ext, and return whether this succeeded.
2457 ac_fn_cxx_try_link
()
2459 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2460 rm -f conftest.
$ac_objext conftest
$ac_exeext
2461 if { { ac_try
="$ac_link"
2463 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2464 *) ac_try_echo=$ac_try;;
2466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2467 $as_echo "$ac_try_echo"; } >&5
2468 (eval "$ac_link") 2>conftest.err
2470 if test -s conftest.err; then
2471 grep -v '^ *+' conftest.err >conftest.er1
2472 cat conftest.er1 >&5
2473 mv -f conftest.er1 conftest.err
2475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2476 test $ac_status = 0; } && {
2477 test -z "$ac_cxx_werror_flag" ||
2478 test ! -s conftest.err
2479 } && test -s conftest$ac_exeext && {
2480 test "$cross_compiling" = yes ||
2481 test -x conftest$ac_exeext
2485 $as_echo "$as_me: failed program was:" >&5
2486 sed 's/^/| /' conftest.$ac_ext >&5
2490 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2491 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2492 # interfere with the next link command; also delete a directory that is
2493 # left behind by Apple's compiler. We do this before executing the actions.
2494 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2495 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2496 as_fn_set_status $ac_retval
2498 } # ac_fn_cxx_try_link
2499 cat >config.log <<_ACEOF
2500 This file contains any messages produced by compilers while
2501 running configure, to aid debugging if configure makes a mistake.
2503 It was created by $as_me, which was
2504 generated by GNU Autoconf 2.69. Invocation command line was
2516 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2517 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2518 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2519 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2520 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2522 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2523 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2525 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2526 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2527 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2528 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2529 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2530 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2531 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539 test -z "$as_dir" && as_dir=.
2540 $as_echo "PATH: $as_dir"
2556 # Keep a trace of the command line.
2557 # Strip out --no-create and --no-recursion so they do not pile up.
2558 # Strip out --silent because we don't want to record it for future runs.
2559 # Also quote any args containing shell meta-characters.
2560 # Make two passes to allow for proper duplicate-argument suppression.
2564 ac_must_keep_next=false
2570 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2571 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2572 | -silent | --silent | --silen | --sile | --sil)
2575 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2578 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2580 as_fn_append ac_configure_args1 " '$ac_arg'"
2581 if test $ac_must_keep_next = true; then
2582 ac_must_keep_next=false # Got value, back to normal.
2585 *=* | --config-cache | -C | -disable-* | --disable-* \
2586 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2587 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2588 | -with-* | --with-* | -without-* | --without-* | --x)
2589 case "$ac_configure_args0 " in
2590 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2593 -* ) ac_must_keep_next=true ;;
2596 as_fn_append ac_configure_args " '$ac_arg'"
2601 { ac_configure_args0=; unset ac_configure_args0;}
2602 { ac_configure_args1=; unset ac_configure_args1;}
2604 # When interrupted or exit'd, cleanup temporary files, and complete
2605 # config.log. We remove comments because anyway the quotes in there
2606 # would cause problems or look ugly.
2607 # WARNING: Use '\'' to represent an apostrophe within the trap.
2608 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2609 trap 'exit_status=$?
2610 # Save into config.log some information that might help in debugging.
2614 $as_echo "## ---------------- ##
2615 ## Cache variables. ##
2616 ## ---------------- ##"
2618 # The following way of writing the cache mishandles newlines in values,
2620 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2621 eval ac_val=\$$ac_var
2625 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2626 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2629 _ | IFS | as_nl) ;; #(
2630 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2631 *) { eval $ac_var=; unset $ac_var;} ;;
2636 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2637 *${as_nl}ac_space=\ *)
2639 "s/'\''/'\''\\\\'\'''\''/g;
2640 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2643 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2650 $as_echo "## ----------------- ##
2651 ## Output variables. ##
2652 ## ----------------- ##"
2654 for ac_var in $ac_subst_vars
2656 eval ac_val=\$$ac_var
2658 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2660 $as_echo "$ac_var='\''$ac_val'\''"
2664 if test -n "$ac_subst_files"; then
2665 $as_echo "## ------------------- ##
2666 ## File substitutions. ##
2667 ## ------------------- ##"
2669 for ac_var in $ac_subst_files
2671 eval ac_val=\$$ac_var
2673 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2675 $as_echo "$ac_var='\''$ac_val'\''"
2680 if test -s confdefs.h; then
2681 $as_echo "## ----------- ##
2688 test "$ac_signal" != 0 &&
2689 $as_echo "$as_me: caught signal $ac_signal"
2690 $as_echo "$as_me: exit $exit_status"
2692 rm -f core *.core core.conftest.* &&
2693 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2696 for ac_signal in 1 2 13 15; do
2697 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2701 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2702 rm -f -r conftest* confdefs.h
2704 $as_echo "/* confdefs.h */" > confdefs.h
2706 # Predefined preprocessor variables.
2708 cat >>confdefs.h <<_ACEOF
2709 #define PACKAGE_NAME "$PACKAGE_NAME"
2712 cat >>confdefs.h <<_ACEOF
2713 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2716 cat >>confdefs.h <<_ACEOF
2717 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2720 cat >>confdefs.h <<_ACEOF
2721 #define PACKAGE_STRING "$PACKAGE_STRING"
2724 cat >>confdefs.h <<_ACEOF
2725 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2728 cat >>confdefs.h <<_ACEOF
2729 #define PACKAGE_URL "$PACKAGE_URL"
2733 # Let the site file select an alternate cache file if it wants to.
2734 # Prefer an explicitly selected file to automatically selected ones.
2737 if test -n "$CONFIG_SITE"; then
2738 # We do not want a PATH search for config.site.
2739 case $CONFIG_SITE in #((
2740 -*) ac_site_file1=./$CONFIG_SITE;;
2741 */*) ac_site_file1=$CONFIG_SITE;;
2742 *) ac_site_file1=./$CONFIG_SITE;;
2744 elif test "x$prefix" != xNONE; then
2745 ac_site_file1=$prefix/share/config.site
2746 ac_site_file2=$prefix/etc/config.site
2748 ac_site_file1=$ac_default_prefix/share/config.site
2749 ac_site_file2=$ac_default_prefix/etc/config.site
2751 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2753 test "x$ac_site_file" = xNONE && continue
2754 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2756 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2757 sed 's/^/| /' "$ac_site_file" >&5
2759 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2761 as_fn_error $? "failed to load site
script $ac_site_file
2762 See \
`config.log' for more details" "$LINENO" 5; }
2766 if test -r "$cache_file"; then
2767 # Some versions of bash will fail to source /dev/null (special files
2768 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2769 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2771 $as_echo "$as_me: loading cache $cache_file" >&6;}
2773 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2774 *) . "./$cache_file";;
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2779 $as_echo "$as_me: creating cache $cache_file" >&6;}
2783 as_fn_append ac_header_list " stdlib.h"
2784 as_fn_append ac_header_list " unistd.h"
2785 as_fn_append ac_header_list " sys/param.h"
2786 # Check that the precious variables saved in the cache have kept the same
2788 ac_cache_corrupted=false
2789 for ac_var in $ac_precious_vars; do
2790 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2791 eval ac_new_set=\$ac_env_${ac_var}_set
2792 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2793 eval ac_new_val=\$ac_env_${ac_var}_value
2794 case $ac_old_set,$ac_new_set in
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2797 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2798 ac_cache_corrupted=: ;;
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2801 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2802 ac_cache_corrupted=: ;;
2805 if test "x$ac_old_val" != "x$ac_new_val"; then
2806 # differences in whitespace do not lead to failure.
2807 ac_old_val_w=`echo x
$ac_old_val`
2808 ac_new_val_w=`echo x
$ac_new_val`
2809 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2811 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2812 ac_cache_corrupted=:
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2815 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2816 eval $ac_var=\$ac_old_val
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2819 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2821 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2824 # Pass precious variables to config.status.
2825 if test "$ac_new_set" = set; then
2827 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2828 *) ac_arg=$ac_var=$ac_new_val ;;
2830 case " $ac_configure_args " in
2831 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2832 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2836 if $ac_cache_corrupted; then
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2840 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2841 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2843 ## -------------------- ##
2844 ## Main body of script. ##
2845 ## -------------------- ##
2848 ac_cpp='$CPP $CPPFLAGS'
2849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2857 ac_config_headers="$ac_config_headers config.h:config.in"
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2861 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2862 # Check whether --enable-maintainer-mode was given.
2863 if test "${enable_maintainer_mode+set}" = set; then :
2864 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2866 USE_MAINTAINER_MODE=no
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2870 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2871 if test $USE_MAINTAINER_MODE = yes; then
2872 MAINTAINER_MODE_TRUE=
2873 MAINTAINER_MODE_FALSE='#'
2875 MAINTAINER_MODE_TRUE='#'
2876 MAINTAINER_MODE_FALSE=
2879 MAINT=$MAINTAINER_MODE_TRUE
2883 # Set the 'development' global.
2884 . $srcdir/../bfd/development.sh
2887 ac_cpp='$CPP $CPPFLAGS'
2888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2891 if test -n "$ac_tool_prefix"; then
2892 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2893 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895 $as_echo_n "checking for $ac_word... " >&6; }
2896 if ${ac_cv_prog_CC+:} false; then :
2897 $as_echo_n "(cached) " >&6
2899 if test -n "$CC"; then
2900 ac_cv_prog_CC="$CC" # Let the user override the test.
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2909 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2920 if test -n "$CC"; then
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2922 $as_echo "$CC" >&6; }
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925 $as_echo "no" >&6; }
2930 if test -z "$ac_cv_prog_CC"; then
2932 # Extract the first word of "gcc", so it can be a program name with args.
2933 set dummy gcc; ac_word=$2
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935 $as_echo_n "checking for $ac_word... " >&6; }
2936 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2937 $as_echo_n "(cached) " >&6
2939 if test -n "$ac_ct_CC"; then
2940 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 test -z "$as_dir" && as_dir=.
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2949 ac_cv_prog_ac_ct_CC="gcc"
2950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2959 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2960 if test -n "$ac_ct_CC"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2962 $as_echo "$ac_ct_CC" >&6; }
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 $as_echo "no" >&6; }
2968 if test "x$ac_ct_CC" = x; then
2971 case $cross_compiling:$ac_tool_warned in
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2975 ac_tool_warned=yes ;;
2983 if test -z "$CC"; then
2984 if test -n "$ac_tool_prefix"; then
2985 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2986 set dummy ${ac_tool_prefix}cc; ac_word=$2
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988 $as_echo_n "checking for $ac_word... " >&6; }
2989 if ${ac_cv_prog_CC+:} false; then :
2990 $as_echo_n "(cached) " >&6
2992 if test -n "$CC"; then
2993 ac_cv_prog_CC="$CC" # Let the user override the test.
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 test -z "$as_dir" && as_dir=.
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3002 ac_cv_prog_CC="${ac_tool_prefix}cc"
3003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3013 if test -n "$CC"; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3015 $as_echo "$CC" >&6; }
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 $as_echo "no" >&6; }
3024 if test -z "$CC"; then
3025 # Extract the first word of "cc", so it can be a program name with args.
3026 set dummy cc; ac_word=$2
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028 $as_echo_n "checking for $ac_word... " >&6; }
3029 if ${ac_cv_prog_CC+:} false; then :
3030 $as_echo_n "(cached) " >&6
3032 if test -n "$CC"; then
3033 ac_cv_prog_CC="$CC" # Let the user override the test.
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 test -z "$as_dir" && as_dir=.
3041 for ac_exec_ext in '' $ac_executable_extensions; do
3042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3043 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3044 ac_prog_rejected=yes
3048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3055 if test $ac_prog_rejected = yes; then
3056 # We found a bogon in the path, so make sure we never use it.
3057 set dummy $ac_cv_prog_CC
3059 if test $# != 0; then
3060 # We chose a different compiler from the bogus one.
3061 # However, it has the same basename, so the bogon will be chosen
3062 # first if we set CC to just the basename; use the full file name.
3064 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3070 if test -n "$CC"; then
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3072 $as_echo "$CC" >&6; }
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075 $as_echo "no" >&6; }
3080 if test -z "$CC"; then
3081 if test -n "$ac_tool_prefix"; then
3082 for ac_prog in cl.exe
3084 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3085 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087 $as_echo_n "checking for $ac_word... " >&6; }
3088 if ${ac_cv_prog_CC+:} false; then :
3089 $as_echo_n "(cached) " >&6
3091 if test -n "$CC"; then
3092 ac_cv_prog_CC="$CC" # Let the user override the test.
3094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098 test -z "$as_dir" && as_dir=.
3099 for ac_exec_ext in '' $ac_executable_extensions; do
3100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3101 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112 if test -n "$CC"; then
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3114 $as_echo "$CC" >&6; }
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117 $as_echo "no" >&6; }
3121 test -n "$CC" && break
3124 if test -z "$CC"; then
3126 for ac_prog in cl.exe
3128 # Extract the first word of "$ac_prog", so it can be a program name with args.
3129 set dummy $ac_prog; ac_word=$2
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3131 $as_echo_n "checking for $ac_word... " >&6; }
3132 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3133 $as_echo_n "(cached) " >&6
3135 if test -n "$ac_ct_CC"; then
3136 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142 test -z "$as_dir" && as_dir=.
3143 for ac_exec_ext in '' $ac_executable_extensions; do
3144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3145 ac_cv_prog_ac_ct_CC="$ac_prog"
3146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3155 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3156 if test -n "$ac_ct_CC"; then
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3158 $as_echo "$ac_ct_CC" >&6; }
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161 $as_echo "no" >&6; }
3165 test -n "$ac_ct_CC" && break
3168 if test "x$ac_ct_CC" = x; then
3171 case $cross_compiling:$ac_tool_warned in
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3174 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3175 ac_tool_warned=yes ;;
3184 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3186 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3187 See \
`config.log' for more details" "$LINENO" 5; }
3189 # Provide some information about the compiler.
3190 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3193 for ac_option in --version -v -V -qversion; do
3194 { { ac_try="$ac_compiler $ac_option >&5"
3196 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3197 *) ac_try_echo
=$ac_try;;
3199 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3200 $as_echo "$ac_try_echo"; } >&5
3201 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3203 if test -s conftest.err
; then
3205 ... rest of stderr output deleted ...
3206 10q' conftest.err
>conftest.er1
3207 cat conftest.er1
>&5
3209 rm -f conftest.er1 conftest.err
3210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3211 test $ac_status = 0; }
3214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3215 /* end confdefs.h. */
3225 ac_clean_files_save
=$ac_clean_files
3226 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3227 # Try to create an executable without -o first, disregard a.out.
3228 # It will help us diagnose broken compilers, and finding out an intuition
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3231 $as_echo_n "checking whether the C compiler works... " >&6; }
3232 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3234 # The possible output files:
3235 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3238 for ac_file
in $ac_files
3241 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3242 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3247 if { { ac_try
="$ac_link_default"
3249 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3252 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3253 $as_echo "$ac_try_echo"; } >&5
3254 (eval "$ac_link_default") 2>&5
3256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3257 test $ac_status = 0; }; then :
3258 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3259 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3260 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3261 # so that the user can short-circuit this test for compilers unknown to
3263 for ac_file in $ac_files ''
3265 test -f "$ac_file" || continue
3267 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3270 # We found the default executable, but exeext='' is most
3274 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3276 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3278 # We set ac_cv_exeext here because the later test for it is not
3279 # safe: cross compilers may not add the suffix if given an `-o'
3280 # argument, so we may need to know it at that point already.
3281 # Even if this section looks crufty: it has the advantage of
3288 test "$ac_cv_exeext" = no && ac_cv_exeext=
3293 if test -z "$ac_file"; then :
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295 $as_echo "no" >&6; }
3296 $as_echo "$as_me: failed program was:" >&5
3297 sed 's
/^
/|
/' conftest.$ac_ext >&5
3299 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3300 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3301 as_fn_error 77 "C compiler cannot create executables
3302 See \`config.log
' for more details" "$LINENO" 5; }
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3305 $as_echo "yes" >&6; }
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3308 $as_echo_n "checking for C compiler default output file name... " >&6; }
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3310 $as_echo "$ac_file" >&6; }
3311 ac_exeext=$ac_cv_exeext
3313 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3314 ac_clean_files=$ac_clean_files_save
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3316 $as_echo_n "checking for suffix of executables... " >&6; }
3317 if { { ac_try="$ac_link"
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3323 $as_echo "$ac_try_echo"; } >&5
3324 (eval "$ac_link") 2>&5
3326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3327 test $ac_status = 0; }; then :
3328 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3329 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3330 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3332 for ac_file
in conftest.exe conftest conftest.
*; do
3333 test -f "$ac_file" ||
continue
3335 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3336 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3342 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3344 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3345 See \`config.log' for more details" "$LINENO" 5; }
3347 rm -f conftest conftest
$ac_cv_exeext
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3349 $as_echo "$ac_cv_exeext" >&6; }
3351 rm -f conftest.
$ac_ext
3352 EXEEXT
=$ac_cv_exeext
3354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3355 /* end confdefs.h. */
3360 FILE *f = fopen ("conftest.out", "w");
3361 return ferror (f) || fclose (f) != 0;
3367 ac_clean_files
="$ac_clean_files conftest.out"
3368 # Check that the compiler produces executables we can run. If not, either
3369 # the compiler is broken, or we cross compile.
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3371 $as_echo_n "checking whether we are cross compiling... " >&6; }
3372 if test "$cross_compiling" != yes; then
3373 { { ac_try
="$ac_link"
3375 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3379 $as_echo "$ac_try_echo"; } >&5
3380 (eval "$ac_link") 2>&5
3382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3383 test $ac_status = 0; }
3384 if { ac_try='./conftest$ac_cv_exeext'
3385 { { case "(($ac_try" in
3386 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3387 *) ac_try_echo
=$ac_try;;
3389 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3390 $as_echo "$ac_try_echo"; } >&5
3391 (eval "$ac_try") 2>&5
3393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3394 test $ac_status = 0; }; }; then
3397 if test "$cross_compiling" = maybe
; then
3400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3402 as_fn_error $?
"cannot run C compiled programs.
3403 If you meant to cross compile, use \`--host'.
3404 See \`config.log' for more details" "$LINENO" 5; }
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3409 $as_echo "$cross_compiling" >&6; }
3411 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3412 ac_clean_files
=$ac_clean_files_save
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3414 $as_echo_n "checking for suffix of object files... " >&6; }
3415 if ${ac_cv_objext+:} false
; then :
3416 $as_echo_n "(cached) " >&6
3418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3419 /* end confdefs.h. */
3429 rm -f conftest.o conftest.obj
3430 if { { ac_try
="$ac_compile"
3432 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3433 *) ac_try_echo=$ac_try;;
3435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3436 $as_echo "$ac_try_echo"; } >&5
3437 (eval "$ac_compile") 2>&5
3439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3440 test $ac_status = 0; }; then :
3441 for ac_file in conftest.o conftest.obj conftest.*; do
3442 test -f "$ac_file" || continue;
3444 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3445 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3450 $as_echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3455 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3456 See \
`config.log' for more details" "$LINENO" 5; }
3458 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3461 $as_echo "$ac_cv_objext" >&6; }
3462 OBJEXT=$ac_cv_objext
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3465 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3466 if ${ac_cv_c_compiler_gnu+:} false; then :
3467 $as_echo_n "(cached) " >&6
3469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3470 /* end confdefs.h. */
3483 if ac_fn_c_try_compile "$LINENO"; then :
3488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3489 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3493 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3494 if test $ac_compiler_gnu = yes; then
3499 ac_test_CFLAGS=${CFLAGS+set}
3500 ac_save_CFLAGS=$CFLAGS
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3502 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3503 if ${ac_cv_prog_cc_g+:} false; then :
3504 $as_echo_n "(cached) " >&6
3506 ac_save_c_werror_flag=$ac_c_werror_flag
3507 ac_c_werror_flag=yes
3510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3511 /* end confdefs.h. */
3521 if ac_fn_c_try_compile "$LINENO"; then :
3525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3526 /* end confdefs.h. */
3536 if ac_fn_c_try_compile "$LINENO"; then :
3539 ac_c_werror_flag=$ac_save_c_werror_flag
3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h. */
3552 if ac_fn_c_try_compile "$LINENO"; then :
3555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3560 ac_c_werror_flag=$ac_save_c_werror_flag
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3563 $as_echo "$ac_cv_prog_cc_g" >&6; }
3564 if test "$ac_test_CFLAGS" = set; then
3565 CFLAGS=$ac_save_CFLAGS
3566 elif test $ac_cv_prog_cc_g = yes; then
3567 if test "$GCC" = yes; then
3573 if test "$GCC" = yes; then
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3580 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3581 if ${ac_cv_prog_cc_c89+:} false; then :
3582 $as_echo_n "(cached) " >&6
3584 ac_cv_prog_cc_c89=no
3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587 /* end confdefs.h. */
3591 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3592 struct buf { int x; };
3593 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3594 static char *e (p, i)
3600 static char *f (char * (*g) (char **, int), char **p, ...)
3605 s = g (p, va_arg (v,int));
3610 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3611 function prototypes and stuff, but not '\xHH' hex character constants.
3612 These don't provoke an error unfortunately, instead are silently treated
3613 as 'x'. The following induces an error, until -std is added to get
3614 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3615 array size at least. It's necessary to write '\x00'==0 to get something
3616 that's true only with -std. */
3617 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3619 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3620 inside strings and character constants. */
3622 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3624 int test (int i, double x);
3625 struct s1 {int (*f) (int a);};
3626 struct s2 {int (*f) (double a);};
3627 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3633 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3638 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3639 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3641 CC="$ac_save_CC $ac_arg"
3642 if ac_fn_c_try_compile "$LINENO"; then :
3643 ac_cv_prog_cc_c89=$ac_arg
3645 rm -f core conftest.err conftest.$ac_objext
3646 test "x$ac_cv_prog_cc_c89" != "xno" && break
3648 rm -f conftest.$ac_ext
3653 case "x$ac_cv_prog_cc_c89" in
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3656 $as_echo "none needed" >&6; } ;;
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3659 $as_echo "unsupported" >&6; } ;;
3661 CC="$CC $ac_cv_prog_cc_c89"
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3663 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3665 if test "x$ac_cv_prog_cc_c89" != xno; then :
3670 ac_cpp='$CPP $CPPFLAGS'
3671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3676 ac_cpp='$CXXCPP $CPPFLAGS'
3677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3680 if test -z "$CXX"; then
3681 if test -n "$CCC"; then
3684 if test -n "$ac_tool_prefix"; then
3685 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3688 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3690 $as_echo_n "checking for $ac_word... " >&6; }
3691 if ${ac_cv_prog_CXX+:} false; then :
3692 $as_echo_n "(cached) " >&6
3694 if test -n "$CXX"; then
3695 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 test -z "$as_dir" && as_dir=.
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3704 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3715 if test -n "$CXX"; then
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3717 $as_echo "$CXX" >&6; }
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3720 $as_echo "no" >&6; }
3724 test -n "$CXX" && break
3727 if test -z "$CXX"; then
3729 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3731 # Extract the first word of "$ac_prog", so it can be a program name with args.
3732 set dummy $ac_prog; ac_word=$2
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3734 $as_echo_n "checking for $ac_word... " >&6; }
3735 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3736 $as_echo_n "(cached) " >&6
3738 if test -n "$ac_ct_CXX"; then
3739 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 test -z "$as_dir" && as_dir=.
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3748 ac_cv_prog_ac_ct_CXX="$ac_prog"
3749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3759 if test -n "$ac_ct_CXX"; then
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3761 $as_echo "$ac_ct_CXX" >&6; }
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3764 $as_echo "no" >&6; }
3768 test -n "$ac_ct_CXX" && break
3771 if test "x$ac_ct_CXX" = x; then
3774 case $cross_compiling:$ac_tool_warned in
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3778 ac_tool_warned=yes ;;
3786 # Provide some information about the compiler.
3787 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3790 for ac_option in --version -v -V -qversion; do
3791 { { ac_try="$ac_compiler $ac_option >&5"
3793 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3794 *) ac_try_echo
=$ac_try;;
3796 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3797 $as_echo "$ac_try_echo"; } >&5
3798 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3800 if test -s conftest.err
; then
3802 ... rest of stderr output deleted ...
3803 10q' conftest.err
>conftest.er1
3804 cat conftest.er1
>&5
3806 rm -f conftest.er1 conftest.err
3807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3808 test $ac_status = 0; }
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3812 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3813 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3814 $as_echo_n "(cached) " >&6
3816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h. */
3830 if ac_fn_cxx_try_compile
"$LINENO"; then :
3835 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3836 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3840 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3841 if test $ac_compiler_gnu = yes; then
3846 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3847 ac_save_CXXFLAGS
=$CXXFLAGS
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3849 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3850 if ${ac_cv_prog_cxx_g+:} false
; then :
3851 $as_echo_n "(cached) " >&6
3853 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3854 ac_cxx_werror_flag
=yes
3857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
3868 if ac_fn_cxx_try_compile
"$LINENO"; then :
3869 ac_cv_prog_cxx_g
=yes
3872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h. */
3883 if ac_fn_cxx_try_compile
"$LINENO"; then :
3886 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3889 /* end confdefs.h. */
3899 if ac_fn_cxx_try_compile
"$LINENO"; then :
3900 ac_cv_prog_cxx_g
=yes
3902 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3907 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3910 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3911 if test "$ac_test_CXXFLAGS" = set; then
3912 CXXFLAGS
=$ac_save_CXXFLAGS
3913 elif test $ac_cv_prog_cxx_g = yes; then
3914 if test "$GXX" = yes; then
3920 if test "$GXX" = yes; then
3927 ac_cpp
='$CPP $CPPFLAGS'
3928 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3929 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3930 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3935 ac_cpp
='$CPP $CPPFLAGS'
3936 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3937 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3938 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3940 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3941 # On Suns, sometimes $CPP names a directory.
3942 if test -n "$CPP" && test -d "$CPP"; then
3945 if test -z "$CPP"; then
3946 if ${ac_cv_prog_CPP+:} false
; then :
3947 $as_echo_n "(cached) " >&6
3949 # Double quotes because CPP needs to be expanded
3950 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3953 for ac_c_preproc_warn_flag
in '' yes
3955 # Use a header file that comes with gcc, so configuring glibc
3956 # with a fresh cross-compiler works.
3957 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3958 # <limits.h> exists even on freestanding compilers.
3959 # On the NeXT, cc -E runs the code through the compiler's parser,
3960 # not just through cpp. "Syntax error" is here to catch this case.
3961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3962 /* end confdefs.h. */
3964 # include <limits.h>
3966 # include <assert.h>
3970 if ac_fn_c_try_cpp
"$LINENO"; then :
3973 # Broken: fails on valid input.
3976 rm -f conftest.err conftest.i conftest.
$ac_ext
3978 # OK, works on sane cases. Now check whether nonexistent headers
3979 # can be detected and how.
3980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3981 /* end confdefs.h. */
3982 #include <ac_nonexistent.h>
3984 if ac_fn_c_try_cpp
"$LINENO"; then :
3985 # Broken: success on invalid input.
3988 # Passes both tests.
3992 rm -f conftest.err conftest.i conftest.
$ac_ext
3995 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3996 rm -f conftest.i conftest.err conftest.
$ac_ext
3997 if $ac_preproc_ok; then :
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4010 $as_echo "$CPP" >&6; }
4012 for ac_c_preproc_warn_flag
in '' yes
4014 # Use a header file that comes with gcc, so configuring glibc
4015 # with a fresh cross-compiler works.
4016 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4017 # <limits.h> exists even on freestanding compilers.
4018 # On the NeXT, cc -E runs the code through the compiler's parser,
4019 # not just through cpp. "Syntax error" is here to catch this case.
4020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4021 /* end confdefs.h. */
4023 # include <limits.h>
4025 # include <assert.h>
4029 if ac_fn_c_try_cpp
"$LINENO"; then :
4032 # Broken: fails on valid input.
4035 rm -f conftest.err conftest.i conftest.
$ac_ext
4037 # OK, works on sane cases. Now check whether nonexistent headers
4038 # can be detected and how.
4039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h. */
4041 #include <ac_nonexistent.h>
4043 if ac_fn_c_try_cpp
"$LINENO"; then :
4044 # Broken: success on invalid input.
4047 # Passes both tests.
4051 rm -f conftest.err conftest.i conftest.
$ac_ext
4054 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4055 rm -f conftest.i conftest.err conftest.
$ac_ext
4056 if $ac_preproc_ok; then :
4059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4061 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4062 See \`config.log' for more details" "$LINENO" 5; }
4066 ac_cpp
='$CPP $CPPFLAGS'
4067 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4068 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4069 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4073 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4074 if ${ac_cv_path_GREP+:} false
; then :
4075 $as_echo_n "(cached) " >&6
4077 if test -z "$GREP"; then
4078 ac_path_GREP_found
=false
4079 # Loop through the user's path and test for each of PROGNAME-LIST
4080 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4081 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4084 test -z "$as_dir" && as_dir
=.
4085 for ac_prog
in grep ggrep
; do
4086 for ac_exec_ext
in '' $ac_executable_extensions; do
4087 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4088 as_fn_executable_p
"$ac_path_GREP" ||
continue
4089 # Check for GNU ac_path_GREP and select it if it is found.
4090 # Check for GNU $ac_path_GREP
4091 case `"$ac_path_GREP" --version 2>&1` in
4093 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4096 $as_echo_n 0123456789 >"conftest.in"
4099 cat "conftest.in" "conftest.in" >"conftest.tmp"
4100 mv "conftest.tmp" "conftest.in"
4101 cp "conftest.in" "conftest.nl"
4102 $as_echo 'GREP' >> "conftest.nl"
4103 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4104 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4105 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4106 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4107 # Best one so far, save it but keep looking for a better one
4108 ac_cv_path_GREP
="$ac_path_GREP"
4109 ac_path_GREP_max
=$ac_count
4111 # 10*(2^10) chars as input seems more than enough
4112 test $ac_count -gt 10 && break
4114 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4117 $ac_path_GREP_found && break 3
4122 if test -z "$ac_cv_path_GREP"; then
4123 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4126 ac_cv_path_GREP
=$GREP
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4131 $as_echo "$ac_cv_path_GREP" >&6; }
4132 GREP
="$ac_cv_path_GREP"
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4136 $as_echo_n "checking for egrep... " >&6; }
4137 if ${ac_cv_path_EGREP+:} false
; then :
4138 $as_echo_n "(cached) " >&6
4140 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4141 then ac_cv_path_EGREP
="$GREP -E"
4143 if test -z "$EGREP"; then
4144 ac_path_EGREP_found
=false
4145 # Loop through the user's path and test for each of PROGNAME-LIST
4146 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4147 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4150 test -z "$as_dir" && as_dir
=.
4151 for ac_prog
in egrep; do
4152 for ac_exec_ext
in '' $ac_executable_extensions; do
4153 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4154 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4155 # Check for GNU ac_path_EGREP and select it if it is found.
4156 # Check for GNU $ac_path_EGREP
4157 case `"$ac_path_EGREP" --version 2>&1` in
4159 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4162 $as_echo_n 0123456789 >"conftest.in"
4165 cat "conftest.in" "conftest.in" >"conftest.tmp"
4166 mv "conftest.tmp" "conftest.in"
4167 cp "conftest.in" "conftest.nl"
4168 $as_echo 'EGREP' >> "conftest.nl"
4169 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4170 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4171 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4172 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4173 # Best one so far, save it but keep looking for a better one
4174 ac_cv_path_EGREP
="$ac_path_EGREP"
4175 ac_path_EGREP_max
=$ac_count
4177 # 10*(2^10) chars as input seems more than enough
4178 test $ac_count -gt 10 && break
4180 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4183 $ac_path_EGREP_found && break 3
4188 if test -z "$ac_cv_path_EGREP"; then
4189 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4192 ac_cv_path_EGREP
=$EGREP
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4198 $as_echo "$ac_cv_path_EGREP" >&6; }
4199 EGREP
="$ac_cv_path_EGREP"
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4203 $as_echo_n "checking for ANSI C header files... " >&6; }
4204 if ${ac_cv_header_stdc+:} false
; then :
4205 $as_echo_n "(cached) " >&6
4207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4222 if ac_fn_c_try_compile
"$LINENO"; then :
4223 ac_cv_header_stdc
=yes
4225 ac_cv_header_stdc
=no
4227 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4229 if test $ac_cv_header_stdc = yes; then
4230 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4232 /* end confdefs.h. */
4236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4237 $EGREP "memchr" >/dev
/null
2>&1; then :
4240 ac_cv_header_stdc
=no
4246 if test $ac_cv_header_stdc = yes; then
4247 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4249 /* end confdefs.h. */
4253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4254 $EGREP "free" >/dev
/null
2>&1; then :
4257 ac_cv_header_stdc
=no
4263 if test $ac_cv_header_stdc = yes; then
4264 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4265 if test "$cross_compiling" = yes; then :
4268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h. */
4272 #if ((' ' & 0x0FF) == 0x020)
4273 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4274 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4276 # define ISLOWER(c) \
4277 (('a' <= (c) && (c) <= 'i') \
4278 || ('j' <= (c) && (c) <= 'r') \
4279 || ('s' <= (c) && (c) <= 'z'))
4280 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4283 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4288 for (i = 0; i < 256; i++)
4289 if (XOR (islower (i), ISLOWER (i))
4290 || toupper (i) != TOUPPER (i))
4295 if ac_fn_c_try_run
"$LINENO"; then :
4298 ac_cv_header_stdc
=no
4300 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4301 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4307 $as_echo "$ac_cv_header_stdc" >&6; }
4308 if test $ac_cv_header_stdc = yes; then
4310 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4314 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4315 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4316 inttypes.h stdint.h unistd.h
4318 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4319 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4321 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4322 cat >>confdefs.h
<<_ACEOF
4323 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4332 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4333 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4340 if test "$MINIX" = yes; then
4342 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4345 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4348 $as_echo "#define _MINIX 1" >>confdefs.h
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4354 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4355 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4356 $as_echo_n "(cached) " >&6
4358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4359 /* end confdefs.h. */
4361 # define __EXTENSIONS__ 1
4362 $ac_includes_default
4371 if ac_fn_c_try_compile
"$LINENO"; then :
4372 ac_cv_safe_to_define___extensions__
=yes
4374 ac_cv_safe_to_define___extensions__
=no
4376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4379 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4380 test $ac_cv_safe_to_define___extensions__ = yes &&
4381 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4383 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4385 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4387 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4389 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4393 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4394 if test -f "$ac_dir/install-sh"; then
4396 ac_install_sh
="$ac_aux_dir/install-sh -c"
4398 elif test -f "$ac_dir/install.sh"; then
4400 ac_install_sh
="$ac_aux_dir/install.sh -c"
4402 elif test -f "$ac_dir/shtool"; then
4404 ac_install_sh
="$ac_aux_dir/shtool install -c"
4408 if test -z "$ac_aux_dir"; then
4409 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4412 # These three variables are undocumented and unsupported,
4413 # and are intended to be withdrawn in a future Autoconf release.
4414 # They can cause serious problems if a builder's source tree is in a directory
4415 # whose full name contains unusual characters.
4416 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4417 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4418 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4421 # Make sure we can run config.sub.
4422 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4423 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4426 $as_echo_n "checking build system type... " >&6; }
4427 if ${ac_cv_build+:} false
; then :
4428 $as_echo_n "(cached) " >&6
4430 ac_build_alias
=$build_alias
4431 test "x$ac_build_alias" = x
&&
4432 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4433 test "x$ac_build_alias" = x
&&
4434 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4435 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4436 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4440 $as_echo "$ac_cv_build" >&6; }
4441 case $ac_cv_build in
4443 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4446 ac_save_IFS
=$IFS; IFS
='-'
4452 # Remember, the first character of IFS is used to create $*,
4453 # except with old shells:
4456 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4460 $as_echo_n "checking host system type... " >&6; }
4461 if ${ac_cv_host+:} false
; then :
4462 $as_echo_n "(cached) " >&6
4464 if test "x$host_alias" = x
; then
4465 ac_cv_host
=$ac_cv_build
4467 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4468 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4473 $as_echo "$ac_cv_host" >&6; }
4476 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4479 ac_save_IFS
=$IFS; IFS
='-'
4485 # Remember, the first character of IFS is used to create $*,
4486 # except with old shells:
4489 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4493 $as_echo_n "checking target system type... " >&6; }
4494 if ${ac_cv_target+:} false
; then :
4495 $as_echo_n "(cached) " >&6
4497 if test "x$target_alias" = x
; then
4498 ac_cv_target
=$ac_cv_host
4500 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4501 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4506 $as_echo "$ac_cv_target" >&6; }
4507 case $ac_cv_target in
4509 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4511 target
=$ac_cv_target
4512 ac_save_IFS
=$IFS; IFS
='-'
4518 # Remember, the first character of IFS is used to create $*,
4519 # except with old shells:
4522 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4525 # The aliases save the names the user supplied, while $host etc.
4526 # will get canonicalized.
4527 test -n "$target_alias" &&
4528 test "$program_prefix$program_suffix$program_transform_name" = \
4530 program_prefix
=${target_alias}-
4532 # The tests for host and target for $enable_largefile require
4537 # As the $enable_largefile decision depends on --enable-plugins we must set it
4538 # even in directories otherwise not depending on the $plugins option.
4542 for ac_header
in dlfcn.h
4544 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4546 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
4547 cat >>confdefs.h
<<_ACEOF
4548 #define HAVE_DLFCN_H 1
4555 for ac_header
in windows.h
4557 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4559 if test "x$ac_cv_header_windows_h" = xyes
; then :
4560 cat >>confdefs.h
<<_ACEOF
4561 #define HAVE_WINDOWS_H 1
4569 # Check whether --enable-plugins was given.
4570 if test "${enable_plugins+set}" = set; then :
4571 enableval
=$enable_plugins; case "${enableval}" in
4574 if test "$maybe_plugins" != "yes" ; then
4575 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4579 plugins
=$maybe_plugins
4583 if test "$plugins" = "yes"; then
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4585 $as_echo_n "checking for library containing dlsym... " >&6; }
4586 if ${ac_cv_search_dlsym+:} false
; then :
4587 $as_echo_n "(cached) " >&6
4589 ac_func_search_save_LIBS
=$LIBS
4590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h. */
4593 /* Override any GCC internal prototype to avoid an error.
4594 Use char because int might match the return type of a GCC
4595 builtin and then its argument prototype would still apply. */
4608 for ac_lib
in '' dl
; do
4609 if test -z "$ac_lib"; then
4610 ac_res
="none required"
4613 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4615 if ac_fn_c_try_link
"$LINENO"; then :
4616 ac_cv_search_dlsym
=$ac_res
4618 rm -f core conftest.err conftest.
$ac_objext \
4620 if ${ac_cv_search_dlsym+:} false
; then :
4624 if ${ac_cv_search_dlsym+:} false
; then :
4627 ac_cv_search_dlsym
=no
4630 LIBS
=$ac_func_search_save_LIBS
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4633 $as_echo "$ac_cv_search_dlsym" >&6; }
4634 ac_res
=$ac_cv_search_dlsym
4635 if test "$ac_res" != no
; then :
4636 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4644 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4645 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4646 # are mutually exclusive; and without procfs support, the bfd/ elf module
4647 # cannot provide certain routines such as elfcore_write_prpsinfo
4648 # or elfcore_write_prstatus. So unless the user explicitly requested
4649 # large-file support through the --enable-largefile switch, disable
4650 # large-file support in favor of procfs support.
4651 test "${target}" = "${host}" -a "x$plugins" = xno \
4652 && : ${enable_largefile="no"}
4656 # Check whether --enable-largefile was given.
4657 if test "${enable_largefile+set}" = set; then :
4658 enableval
=$enable_largefile;
4661 if test "$enable_largefile" != no
; then
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4664 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4665 if ${ac_cv_sys_largefile_CC+:} false
; then :
4666 $as_echo_n "(cached) " >&6
4668 ac_cv_sys_largefile_CC
=no
4669 if test "$GCC" != yes; then
4672 # IRIX 6.2 and later do not support large files by default,
4673 # so use the C compiler's -n32 option if that helps.
4674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4675 /* end confdefs.h. */
4676 #include <sys/types.h>
4677 /* Check that off_t can represent 2**63 - 1 correctly.
4678 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4679 since some C++ compilers masquerading as C compilers
4680 incorrectly reject 9223372036854775807. */
4681 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4682 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4683 && LARGE_OFF_T % 2147483647 == 1)
4693 if ac_fn_c_try_compile
"$LINENO"; then :
4696 rm -f core conftest.err conftest.
$ac_objext
4698 if ac_fn_c_try_compile
"$LINENO"; then :
4699 ac_cv_sys_largefile_CC
=' -n32'; break
4701 rm -f core conftest.err conftest.
$ac_objext
4705 rm -f conftest.
$ac_ext
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4709 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4710 if test "$ac_cv_sys_largefile_CC" != no
; then
4711 CC
=$CC$ac_cv_sys_largefile_CC
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4715 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4716 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4717 $as_echo_n "(cached) " >&6
4720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h. */
4722 #include <sys/types.h>
4723 /* Check that off_t can represent 2**63 - 1 correctly.
4724 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4725 since some C++ compilers masquerading as C compilers
4726 incorrectly reject 9223372036854775807. */
4727 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4728 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4729 && LARGE_OFF_T % 2147483647 == 1)
4739 if ac_fn_c_try_compile
"$LINENO"; then :
4740 ac_cv_sys_file_offset_bits
=no
; break
4742 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4745 #define _FILE_OFFSET_BITS 64
4746 #include <sys/types.h>
4747 /* Check that off_t can represent 2**63 - 1 correctly.
4748 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4749 since some C++ compilers masquerading as C compilers
4750 incorrectly reject 9223372036854775807. */
4751 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4752 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4753 && LARGE_OFF_T % 2147483647 == 1)
4763 if ac_fn_c_try_compile
"$LINENO"; then :
4764 ac_cv_sys_file_offset_bits
=64; break
4766 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4767 ac_cv_sys_file_offset_bits
=unknown
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4772 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4773 case $ac_cv_sys_file_offset_bits in #(
4776 cat >>confdefs.h
<<_ACEOF
4777 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4782 if test $ac_cv_sys_file_offset_bits = unknown
; then
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4784 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4785 if ${ac_cv_sys_large_files+:} false
; then :
4786 $as_echo_n "(cached) " >&6
4789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4790 /* end confdefs.h. */
4791 #include <sys/types.h>
4792 /* Check that off_t can represent 2**63 - 1 correctly.
4793 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4794 since some C++ compilers masquerading as C compilers
4795 incorrectly reject 9223372036854775807. */
4796 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4797 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4798 && LARGE_OFF_T % 2147483647 == 1)
4808 if ac_fn_c_try_compile
"$LINENO"; then :
4809 ac_cv_sys_large_files
=no
; break
4811 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4813 /* end confdefs.h. */
4814 #define _LARGE_FILES 1
4815 #include <sys/types.h>
4816 /* Check that off_t can represent 2**63 - 1 correctly.
4817 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4818 since some C++ compilers masquerading as C compilers
4819 incorrectly reject 9223372036854775807. */
4820 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4821 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4822 && LARGE_OFF_T % 2147483647 == 1)
4832 if ac_fn_c_try_compile
"$LINENO"; then :
4833 ac_cv_sys_large_files
=1; break
4835 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4836 ac_cv_sys_large_files
=unknown
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4841 $as_echo "$ac_cv_sys_large_files" >&6; }
4842 case $ac_cv_sys_large_files in #(
4845 cat >>confdefs.h
<<_ACEOF
4846 #define _LARGE_FILES $ac_cv_sys_large_files
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4861 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4862 if ${am_cv_prog_cc_stdc+:} false
; then :
4863 $as_echo_n "(cached) " >&6
4865 am_cv_prog_cc_stdc
=no
4867 # Don't try gcc -ansi; that turns off useful extensions and
4868 # breaks some systems' header files.
4869 # AIX -qlanglvl=ansi
4870 # Ultrix and OSF/1 -std1
4871 # HP-UX 10.20 and later -Ae
4872 # HP-UX older versions -Aa -D_HPUX_SOURCE
4873 # SVR4 -Xc -D__EXTENSIONS__
4874 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4876 CC
="$ac_save_CC $ac_arg"
4877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4878 /* end confdefs.h. */
4881 #include <sys/types.h>
4882 #include <sys/stat.h>
4883 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4884 struct buf { int x; };
4885 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4886 static char *e (p, i)
4892 static char *f (char * (*g) (char **, int), char **p, ...)
4897 s = g (p, va_arg (v,int));
4901 int test (int i, double x);
4902 struct s1 {int (*f) (int a);};
4903 struct s2 {int (*f) (double a);};
4904 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4912 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4918 if ac_fn_c_try_compile
"$LINENO"; then :
4919 am_cv_prog_cc_stdc
="$ac_arg"; break
4921 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4927 if test -z "$am_cv_prog_cc_stdc"; then
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4929 $as_echo "none needed" >&6; }
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4932 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4934 case "x$am_cv_prog_cc_stdc" in
4936 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4939 # Expand $ac_aux_dir to an absolute path.
4940 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
4942 if test x
"${install_sh+set}" != xset
; then
4945 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
4947 install_sh
="\${SHELL} $am_aux_dir/install-sh"
4951 # Installed binaries are usually stripped using 'strip' when the user
4952 # run "make install-strip". However 'strip' might not be the right
4953 # tool to use in cross-compilation environments, therefore Automake
4954 # will honor the 'STRIP' environment variable to overrule this program.
4955 if test "$cross_compiling" != no
; then
4956 if test -n "$ac_tool_prefix"; then
4957 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4958 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4960 $as_echo_n "checking for $ac_word... " >&6; }
4961 if ${ac_cv_prog_STRIP+:} false
; then :
4962 $as_echo_n "(cached) " >&6
4964 if test -n "$STRIP"; then
4965 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4967 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4971 test -z "$as_dir" && as_dir
=.
4972 for ac_exec_ext
in '' $ac_executable_extensions; do
4973 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4974 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4984 STRIP
=$ac_cv_prog_STRIP
4985 if test -n "$STRIP"; then
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4987 $as_echo "$STRIP" >&6; }
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4990 $as_echo "no" >&6; }
4995 if test -z "$ac_cv_prog_STRIP"; then
4997 # Extract the first word of "strip", so it can be a program name with args.
4998 set dummy strip
; ac_word
=$2
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5000 $as_echo_n "checking for $ac_word... " >&6; }
5001 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
5002 $as_echo_n "(cached) " >&6
5004 if test -n "$ac_ct_STRIP"; then
5005 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5007 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5011 test -z "$as_dir" && as_dir
=.
5012 for ac_exec_ext
in '' $ac_executable_extensions; do
5013 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5014 ac_cv_prog_ac_ct_STRIP
="strip"
5015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5024 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5025 if test -n "$ac_ct_STRIP"; then
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5027 $as_echo "$ac_ct_STRIP" >&6; }
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5030 $as_echo "no" >&6; }
5033 if test "x$ac_ct_STRIP" = x
; then
5036 case $cross_compiling:$ac_tool_warned in
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5039 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5040 ac_tool_warned
=yes ;;
5045 STRIP
="$ac_cv_prog_STRIP"
5049 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
5053 for ac_dir
in ..
"$srcdir"/..
; do
5054 if test -f "$ac_dir/install-sh"; then
5056 ac_install_sh
="$ac_aux_dir/install-sh -c"
5058 elif test -f "$ac_dir/install.sh"; then
5060 ac_install_sh
="$ac_aux_dir/install.sh -c"
5062 elif test -f "$ac_dir/shtool"; then
5064 ac_install_sh
="$ac_aux_dir/shtool install -c"
5068 if test -z "$ac_aux_dir"; then
5069 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
5072 # These three variables are undocumented and unsupported,
5073 # and are intended to be withdrawn in a future Autoconf release.
5074 # They can cause serious problems if a builder's source tree is in a directory
5075 # whose full name contains unusual characters.
5076 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5077 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5078 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5082 test "$program_prefix" != NONE
&&
5083 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
5084 # Use a double $ so make ignores it.
5085 test "$program_suffix" != NONE
&&
5086 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
5087 # Double any \ or $.
5088 # By default was `s,x,x', remove it if useless.
5089 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
5090 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
5093 # We require a C++11 compiler. Check if one is available, and if
5094 # necessary, set CXX_DIALECT to some -std=xxx switch.
5096 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5098 ac_cpp
='$CXXCPP $CPPFLAGS'
5099 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5100 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5101 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5105 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5106 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5107 $as_echo_n "(cached) " >&6
5109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5110 /* end confdefs.h. */
5113 // If the compiler admits that it is not ready for C++11, why torture it?
5114 // Hopefully, this will speed up the test.
5118 #error "This is not a C++ compiler"
5120 #elif __cplusplus < 201103L
5122 #error "This is not a C++11 compiler"
5129 namespace test_static_assert
5132 template <typename T>
5135 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5140 namespace test_final_override
5148 struct Derived : public Base
5150 virtual void f() override {}
5155 namespace test_double_right_angle_brackets
5158 template < typename T >
5161 typedef check<void> single_type;
5162 typedef check<check<void>> double_type;
5163 typedef check<check<check<void>>> triple_type;
5164 typedef check<check<check<check<void>>>> quadruple_type;
5168 namespace test_decltype
5181 namespace test_type_deduction
5184 template < typename T1, typename T2 >
5187 static const bool value = false;
5190 template < typename T >
5191 struct is_same<T, T>
5193 static const bool value = true;
5196 template < typename T1, typename T2 >
5198 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5204 test(const int c, volatile int v)
5206 static_assert(is_same<int, decltype(0)>::value == true, "");
5207 static_assert(is_same<int, decltype(c)>::value == false, "");
5208 static_assert(is_same<int, decltype(v)>::value == false, "");
5211 auto sumi = ac + av + 'x';
5212 auto sumf = ac + av + 1.0;
5213 static_assert(is_same<int, decltype(ac)>::value == true, "");
5214 static_assert(is_same<int, decltype(av)>::value == true, "");
5215 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5216 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5217 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5218 return (sumf > 0.0) ? sumi : add(c, v);
5223 namespace test_noexcept
5226 int f() { return 0; }
5227 int g() noexcept { return 0; }
5229 static_assert(noexcept(f()) == false, "");
5230 static_assert(noexcept(g()) == true, "");
5234 namespace test_constexpr
5237 template < typename CharT >
5238 unsigned long constexpr
5239 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5241 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5244 template < typename CharT >
5245 unsigned long constexpr
5246 strlen_c(const CharT *const s) noexcept
5248 return strlen_c_r(s, 0UL);
5251 static_assert(strlen_c("") == 0UL, "");
5252 static_assert(strlen_c("1") == 1UL, "");
5253 static_assert(strlen_c("example") == 7UL, "");
5254 static_assert(strlen_c("another\0example") == 7UL, "");
5258 namespace test_rvalue_references
5264 static constexpr int value = N;
5267 answer<1> f(int&) { return answer<1>(); }
5268 answer<2> f(const int&) { return answer<2>(); }
5269 answer<3> f(int&&) { return answer<3>(); }
5276 static_assert(decltype(f(i))::value == 1, "");
5277 static_assert(decltype(f(c))::value == 2, "");
5278 static_assert(decltype(f(0))::value == 3, "");
5283 namespace test_uniform_initialization
5288 static const int zero {};
5289 static const int one {1};
5292 static_assert(test::zero == 0, "");
5293 static_assert(test::one == 1, "");
5297 namespace test_lambdas
5303 auto lambda1 = [](){};
5304 auto lambda2 = lambda1;
5312 auto a = [](int i, int j){ return i + j; }(1, 2);
5313 auto b = []() -> int { return '0'; }();
5314 auto c = [=](){ return a + b; }();
5315 auto d = [&](){ return c; }();
5316 auto e = [a, &b](int x) mutable {
5317 const auto identity = [](int y){ return y; };
5318 for (auto i = 0; i < a; ++i)
5320 return x + identity(a + b);
5322 return a + b + c + d + e;
5328 const auto nullary = [](){ return 0; };
5329 const auto unary = [](int x){ return x; };
5330 using nullary_t = decltype(nullary);
5331 using unary_t = decltype(unary);
5332 const auto higher1st = [](nullary_t f){ return f(); };
5333 const auto higher2nd = [unary](nullary_t f1){
5334 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5336 return higher1st(nullary) + higher2nd(nullary)(unary);
5341 namespace test_variadic_templates
5347 template <int N0, int... N1toN>
5348 struct sum<N0, N1toN...>
5350 static constexpr auto value = N0 + sum<N1toN...>::value;
5356 static constexpr auto value = 0;
5359 static_assert(sum<>::value == 0, "");
5360 static_assert(sum<1>::value == 1, "");
5361 static_assert(sum<23>::value == 23, "");
5362 static_assert(sum<1, 2>::value == 3, "");
5363 static_assert(sum<5, 5, 11>::value == 21, "");
5364 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5368 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5369 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5371 namespace test_template_alias_sfinae
5376 template<typename T>
5377 using member = typename T::member_type;
5379 template<typename T>
5382 template<typename T>
5383 void func(member<T>*) {}
5387 void test() { func<foo>(0); }
5391 } // namespace cxx11
5393 #endif // __cplusplus >= 201103L
5398 if ac_fn_cxx_try_compile
"$LINENO"; then :
5399 ax_cv_cxx_compile_cxx11
=yes
5401 ax_cv_cxx_compile_cxx11
=no
5403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5406 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5407 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
5411 if test x
$ac_success = xno
; then
5412 for alternative
in ${ax_cxx_compile_alternatives}; do
5413 switch
="-std=gnu++${alternative}"
5414 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5416 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5417 if eval \
${$cachevar+:} false
; then :
5418 $as_echo_n "(cached) " >&6
5422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5423 /* end confdefs.h. */
5426 // If the compiler admits that it is not ready for C++11, why torture it?
5427 // Hopefully, this will speed up the test.
5431 #error "This is not a C++ compiler"
5433 #elif __cplusplus < 201103L
5435 #error "This is not a C++11 compiler"
5442 namespace test_static_assert
5445 template <typename T>
5448 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5453 namespace test_final_override
5461 struct Derived : public Base
5463 virtual void f() override {}
5468 namespace test_double_right_angle_brackets
5471 template < typename T >
5474 typedef check<void> single_type;
5475 typedef check<check<void>> double_type;
5476 typedef check<check<check<void>>> triple_type;
5477 typedef check<check<check<check<void>>>> quadruple_type;
5481 namespace test_decltype
5494 namespace test_type_deduction
5497 template < typename T1, typename T2 >
5500 static const bool value = false;
5503 template < typename T >
5504 struct is_same<T, T>
5506 static const bool value = true;
5509 template < typename T1, typename T2 >
5511 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5517 test(const int c, volatile int v)
5519 static_assert(is_same<int, decltype(0)>::value == true, "");
5520 static_assert(is_same<int, decltype(c)>::value == false, "");
5521 static_assert(is_same<int, decltype(v)>::value == false, "");
5524 auto sumi = ac + av + 'x';
5525 auto sumf = ac + av + 1.0;
5526 static_assert(is_same<int, decltype(ac)>::value == true, "");
5527 static_assert(is_same<int, decltype(av)>::value == true, "");
5528 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5529 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5530 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5531 return (sumf > 0.0) ? sumi : add(c, v);
5536 namespace test_noexcept
5539 int f() { return 0; }
5540 int g() noexcept { return 0; }
5542 static_assert(noexcept(f()) == false, "");
5543 static_assert(noexcept(g()) == true, "");
5547 namespace test_constexpr
5550 template < typename CharT >
5551 unsigned long constexpr
5552 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5554 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5557 template < typename CharT >
5558 unsigned long constexpr
5559 strlen_c(const CharT *const s) noexcept
5561 return strlen_c_r(s, 0UL);
5564 static_assert(strlen_c("") == 0UL, "");
5565 static_assert(strlen_c("1") == 1UL, "");
5566 static_assert(strlen_c("example") == 7UL, "");
5567 static_assert(strlen_c("another\0example") == 7UL, "");
5571 namespace test_rvalue_references
5577 static constexpr int value = N;
5580 answer<1> f(int&) { return answer<1>(); }
5581 answer<2> f(const int&) { return answer<2>(); }
5582 answer<3> f(int&&) { return answer<3>(); }
5589 static_assert(decltype(f(i))::value == 1, "");
5590 static_assert(decltype(f(c))::value == 2, "");
5591 static_assert(decltype(f(0))::value == 3, "");
5596 namespace test_uniform_initialization
5601 static const int zero {};
5602 static const int one {1};
5605 static_assert(test::zero == 0, "");
5606 static_assert(test::one == 1, "");
5610 namespace test_lambdas
5616 auto lambda1 = [](){};
5617 auto lambda2 = lambda1;
5625 auto a = [](int i, int j){ return i + j; }(1, 2);
5626 auto b = []() -> int { return '0'; }();
5627 auto c = [=](){ return a + b; }();
5628 auto d = [&](){ return c; }();
5629 auto e = [a, &b](int x) mutable {
5630 const auto identity = [](int y){ return y; };
5631 for (auto i = 0; i < a; ++i)
5633 return x + identity(a + b);
5635 return a + b + c + d + e;
5641 const auto nullary = [](){ return 0; };
5642 const auto unary = [](int x){ return x; };
5643 using nullary_t = decltype(nullary);
5644 using unary_t = decltype(unary);
5645 const auto higher1st = [](nullary_t f){ return f(); };
5646 const auto higher2nd = [unary](nullary_t f1){
5647 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5649 return higher1st(nullary) + higher2nd(nullary)(unary);
5654 namespace test_variadic_templates
5660 template <int N0, int... N1toN>
5661 struct sum<N0, N1toN...>
5663 static constexpr auto value = N0 + sum<N1toN...>::value;
5669 static constexpr auto value = 0;
5672 static_assert(sum<>::value == 0, "");
5673 static_assert(sum<1>::value == 1, "");
5674 static_assert(sum<23>::value == 23, "");
5675 static_assert(sum<1, 2>::value == 3, "");
5676 static_assert(sum<5, 5, 11>::value == 21, "");
5677 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5681 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5682 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5684 namespace test_template_alias_sfinae
5689 template<typename T>
5690 using member = typename T::member_type;
5692 template<typename T>
5695 template<typename T>
5696 void func(member<T>*) {}
5700 void test() { func<foo>(0); }
5704 } // namespace cxx11
5706 #endif // __cplusplus >= 201103L
5711 if ac_fn_cxx_try_compile
"$LINENO"; then :
5716 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5719 eval ac_res
=\$
$cachevar
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5721 $as_echo "$ac_res" >&6; }
5722 if eval test x\$
$cachevar = xyes
; then
5723 CXX_DIALECT
="$switch"
5730 if test x
$ac_success = xno
; then
5731 for alternative
in ${ax_cxx_compile_alternatives}; do
5732 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5733 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
5735 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
5736 if eval \${$cachevar+:} false; then :
5737 $as_echo_n "(cached
) " >&6
5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742 /* end confdefs.h. */
5745 // If the compiler admits that it is not ready for C++11, why torture it?
5746 // Hopefully, this will speed up the test.
5750 #error "This is not a C
++ compiler
"
5752 #elif __cplusplus < 201103L
5754 #error "This is not a C
++11 compiler
"
5761 namespace test_static_assert
5764 template <typename T>
5767 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
5772 namespace test_final_override
5780 struct Derived : public Base
5782 virtual void f() override {}
5787 namespace test_double_right_angle_brackets
5790 template < typename T >
5793 typedef check<void> single_type;
5794 typedef check<check<void>> double_type;
5795 typedef check<check<check<void>>> triple_type;
5796 typedef check<check<check<check<void>>>> quadruple_type;
5800 namespace test_decltype
5813 namespace test_type_deduction
5816 template < typename T1, typename T2 >
5819 static const bool value = false;
5822 template < typename T >
5823 struct is_same<T, T>
5825 static const bool value = true;
5828 template < typename T1, typename T2 >
5830 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5836 test(const int c, volatile int v)
5838 static_assert(is_same<int, decltype(0)>::value == true, "");
5839 static_assert(is_same<int, decltype(c)>::value == false, "");
5840 static_assert(is_same<int, decltype(v)>::value == false, "");
5843 auto sumi = ac + av + 'x';
5844 auto sumf = ac + av + 1.0;
5845 static_assert(is_same<int, decltype(ac)>::value == true, "");
5846 static_assert(is_same<int, decltype(av)>::value == true, "");
5847 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5848 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5849 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5850 return (sumf > 0.0) ? sumi : add(c, v);
5855 namespace test_noexcept
5858 int f() { return 0; }
5859 int g() noexcept { return 0; }
5861 static_assert(noexcept(f()) == false, "");
5862 static_assert(noexcept(g()) == true, "");
5866 namespace test_constexpr
5869 template < typename CharT >
5870 unsigned long constexpr
5871 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5873 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5876 template < typename CharT >
5877 unsigned long constexpr
5878 strlen_c(const CharT *const s) noexcept
5880 return strlen_c_r(s, 0UL);
5883 static_assert(strlen_c("") == 0UL, "");
5884 static_assert(strlen_c("1") == 1UL, "");
5885 static_assert(strlen_c("example
") == 7UL, "");
5886 static_assert(strlen_c("another\
0example
") == 7UL, "");
5890 namespace test_rvalue_references
5896 static constexpr int value = N;
5899 answer<1> f(int&) { return answer<1>(); }
5900 answer<2> f(const int&) { return answer<2>(); }
5901 answer<3> f(int&&) { return answer<3>(); }
5908 static_assert(decltype(f(i))::value == 1, "");
5909 static_assert(decltype(f(c))::value == 2, "");
5910 static_assert(decltype(f(0))::value == 3, "");
5915 namespace test_uniform_initialization
5920 static const int zero {};
5921 static const int one {1};
5924 static_assert(test::zero == 0, "");
5925 static_assert(test::one == 1, "");
5929 namespace test_lambdas
5935 auto lambda1 = [](){};
5936 auto lambda2 = lambda1;
5944 auto a = [](int i, int j){ return i + j; }(1, 2);
5945 auto b = []() -> int { return '0'; }();
5946 auto c = [=](){ return a + b; }();
5947 auto d = [&](){ return c; }();
5948 auto e = [a, &b](int x) mutable {
5949 const auto identity = [](int y){ return y; };
5950 for (auto i = 0; i < a; ++i)
5952 return x + identity(a + b);
5954 return a + b + c + d + e;
5960 const auto nullary = [](){ return 0; };
5961 const auto unary = [](int x){ return x; };
5962 using nullary_t = decltype(nullary);
5963 using unary_t = decltype(unary);
5964 const auto higher1st = [](nullary_t f){ return f(); };
5965 const auto higher2nd = [unary](nullary_t f1){
5966 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5968 return higher1st(nullary) + higher2nd(nullary)(unary);
5973 namespace test_variadic_templates
5979 template <int N0, int... N1toN>
5980 struct sum<N0, N1toN...>
5982 static constexpr auto value = N0 + sum<N1toN...>::value;
5988 static constexpr auto value = 0;
5991 static_assert(sum<>::value == 0, "");
5992 static_assert(sum<1>::value == 1, "");
5993 static_assert(sum<23>::value == 23, "");
5994 static_assert(sum<1, 2>::value == 3, "");
5995 static_assert(sum<5, 5, 11>::value == 21, "");
5996 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6000 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6001 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6003 namespace test_template_alias_sfinae
6008 template<typename T>
6009 using member = typename T::member_type;
6011 template<typename T>
6014 template<typename T>
6015 void func(member<T>*) {}
6019 void test() { func<foo>(0); }
6023 } // namespace cxx11
6025 #endif // __cplusplus >= 201103L
6030 if ac_fn_cxx_try_compile "$LINENO"; then :
6035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6038 eval ac_res=\$$cachevar
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6040 $as_echo "$ac_res" >&6; }
6041 if eval test x\$$cachevar = xyes; then
6042 CXX_DIALECT="$switch"
6047 if test x$ac_success = xyes; then
6053 ac_cpp='$CPP $CPPFLAGS'
6054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6058 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6059 if test x$ac_success = xno; then
6060 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6063 if test x$ac_success = xno; then
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6066 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6070 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6077 # Dependency checking.
6078 rm -rf .tst
2>/dev
/null
6079 mkdir .tst
2>/dev
/null
6080 if test -d .tst
; then
6085 rmdir .tst
2>/dev
/null
6087 DEPDIR
="${am__leading_dot}deps"
6089 ac_config_commands
="$ac_config_commands depdir"
6092 depcc
="$CC" am_compiler_list
=
6094 am_depcomp
=$ac_aux_dir/depcomp
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6096 $as_echo_n "checking dependency style of $depcc... " >&6; }
6097 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
6098 $as_echo_n "(cached) " >&6
6100 if test -f "$am_depcomp"; then
6101 # We make a subdir and do the tests there. Otherwise we can end up
6102 # making bogus files that we don't know about and never remove. For
6103 # instance it was reported that on HP-UX the gcc test will end up
6104 # making a dummy file named `D' -- because `-MD' means `put the output
6107 # Copy depcomp to subdir because otherwise we won't find it if we're
6108 # using a relative directory.
6109 cp "$am_depcomp" conftest.dir
6111 # We will build objects and dependencies in a subdirectory because
6112 # it helps to detect inapplicable dependency modes. For instance
6113 # both Tru64's cc and ICC support -MD to output dependencies as a
6114 # side effect of compilation, but ICC will put the dependencies in
6115 # the current directory while Tru64 will put them in the object
6119 am_cv_CC_dependencies_compiler_type
=none
6120 if test "$am_compiler_list" = ""; then
6121 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6123 for depmode
in $am_compiler_list; do
6124 if test $depmode = none
; then break; fi
6126 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6127 # Setup a source with many dependencies, because some compilers
6128 # like to wrap large dependency lists on column 80 (with \), and
6129 # we should not choose a depcomp mode which is confused by this.
6131 # We need to recreate these files for each test, as the compiler may
6132 # overwrite some of them when testing with obscure command lines.
6133 # This happens at least with the AIX C compiler.
6135 for i
in 1 2 3 4 5 6; do
6136 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6137 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6138 # Solaris 8's {/usr,}/bin/sh.
6139 touch sub
/conftst
$i.h
6141 echo "include sub/conftest.Po" > confmf
6143 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6144 # mode. It turns out that the SunPro C++ compiler does not properly
6145 # handle `-M -o', and we need to detect this.
6146 depcmd
="depmode=$depmode \
6147 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6148 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6149 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6150 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
6151 if env
$depcmd > conftest.err
2>&1 &&
6152 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
6153 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
6154 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
6155 # icc doesn't choke on unknown options, it will just issue warnings
6156 # or remarks (even with -Werror). So we grep stderr for any message
6157 # that says an option was ignored or not supported.
6158 # When given -MP, icc 7.0 and 7.1 complain thusly:
6159 # icc: Command line warning: ignoring option '-M'; no argument required
6160 # The diagnosis changed in icc 8.0:
6161 # icc: Command line remark: option '-MP' not supported
6162 if (grep 'ignoring option' conftest.err ||
6163 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6164 am_cv_CC_dependencies_compiler_type
=$depmode
6165 $as_echo "$as_me:$LINENO: success" >&5
6169 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6170 sed -e 's/^/| /' < conftest.err
>&5
6176 am_cv_CC_dependencies_compiler_type
=none
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6181 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6182 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
6183 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
6184 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
6189 gnulib_extra_configure_args
=
6190 # If large-file support is disabled, make sure gnulib does the same.
6191 if test "$enable_largefile" = no
; then
6192 gnulib_extra_configure_args
="$gnulib_extra_configure_args --disable-largefile"
6195 # Configure gnulib. We need to build gnulib under some other
6196 # directory not "gnulib", to avoid the problem of both GDB and
6197 # GDBserver wanting to build it in the same directory, when building
6198 # in the source dir.
6201 in_build
="build-gnulib"
6202 in_extra_args
="$gnulib_extra_configure_args"
6204 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
6205 # so they do not pile up.
6206 ac_sub_configure_args
=
6208 eval "set x $ac_configure_args"
6212 if test -n "$ac_prev"; then
6217 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
6218 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
6219 ac_prev
=cache_file
;;
6220 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
6221 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
6224 --config-cache |
-C)
6226 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
6228 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
6230 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
6232 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
6234 --disable-option-checking)
6238 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6240 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
6244 # Always prepend --prefix to ensure using the same prefix
6245 # in subdir configurations.
6246 ac_arg
="--prefix=$prefix"
6248 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6250 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
6253 if test "$silent" = yes; then
6254 ac_sub_configure_args
="--silent $ac_sub_configure_args"
6257 # Always prepend --disable-option-checking to silence warnings, since
6258 # different subdirs can have different --enable and --with options.
6259 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
6264 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
6265 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
6266 $as_echo "$ac_msg" >&6
6267 as_dir
="$ac_dir"; as_fn_mkdir_p
6271 ac_srcdir
=$srcdir/$in_src ;;
6273 ac_srcdir
=..
/$srcdir/$in_src ;;
6278 ac_sub_configure
=$ac_srcdir/configure
6280 # Make the cache file name correct relative to the subdirectory.
6282 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
6284 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
6287 if test -n "$in_extra_args"; then
6288 # Add the extra args at the end.
6289 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
6292 { $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
6293 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6294 # The eval makes quoting arguments work.
6295 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
6296 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
6297 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
6313 # If we haven't got the data from the intl directory,
6314 # assume NLS is disabled.
6323 if test -f ..
/intl
/config.intl
; then
6324 . ..
/intl
/config.intl
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6327 $as_echo_n "checking whether NLS is requested... " >&6; }
6328 if test x
"$USE_NLS" != xyes
; then
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6330 $as_echo "no" >&6; }
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6333 $as_echo "yes" >&6; }
6335 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6339 $as_echo_n "checking for catalogs to be installed... " >&6; }
6340 # Look for .po and .gmo files in the source directory.
6343 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
6344 # If there aren't any .gmo files the shell will give us the
6345 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6347 case "$cat" in *\
**)
6350 # The quadruple backslash is collapsed to a double backslash
6351 # by the backticks, then collapsed again by the double quotes,
6352 # leaving us with one backslash in the sed expression (right
6353 # before the dot that mustn't act as a wildcard).
6354 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6355 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
6356 # The user is allowed to set LINGUAS to a list of languages to
6357 # install catalogs for. If it's empty that means "all of them."
6358 if test "x$LINGUAS" = x
; then
6359 CATALOGS
="$CATALOGS $cat"
6360 XLINGUAS
="$XLINGUAS $lang"
6362 case "$LINGUAS" in *$lang*)
6363 CATALOGS
="$CATALOGS $cat"
6364 XLINGUAS
="$XLINGUAS $lang"
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6371 $as_echo "$LINGUAS" >&6; }
6384 localedir
='${datadir}/locale'
6387 if test x
"$USE_NLS" = xyes
; then
6388 CONFIG_ALL
="$CONFIG_ALL all-po"
6389 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
6390 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
6391 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
6394 GNULIB
=build-gnulib
/import
6396 # For Makefile dependencies.
6398 if test x
"$STDINT_H" != x
; then
6399 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
6405 cat >>confdefs.h
<<_ACEOF
6406 #define PACKAGE "$PACKAGE"
6411 # We never need to detect it in this sub-configure.
6412 # But preserve it for config.status --recheck.
6416 MAKEINFO_EXTRA_FLAGS
=""
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
6418 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
6419 if ${gdb_cv_have_makeinfo_click+:} false
; then :
6420 $as_echo_n "(cached) " >&6
6422 echo '@clicksequence{a @click{} b}' >conftest.texinfo
6423 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
6424 gdb_cv_have_makeinfo_click
=yes
6426 gdb_cv_have_makeinfo_click
=no
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
6430 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
6431 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
6432 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
6438 # Check whether --with-separate-debug-dir was given.
6439 if test "${with_separate_debug_dir+set}" = set; then :
6440 withval
=$with_separate_debug_dir;
6443 DEBUGDIR
=${libdir}/debug
6447 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6448 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6449 ac_define_dir
=`eval echo $DEBUGDIR`
6450 ac_define_dir
=`eval echo $ac_define_dir`
6452 cat >>confdefs.h
<<_ACEOF
6453 #define DEBUGDIR "$ac_define_dir"
6459 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6460 if test "x$prefix" = xNONE
; then
6461 test_prefix
=/usr
/local
6466 test_prefix
=$exec_prefix
6469 case ${ac_define_dir} in
6470 "${test_prefix}"|
"${test_prefix}/"*|\
6471 '${exec_prefix}'|
'${exec_prefix}/'*)
6476 cat >>confdefs.h
<<_ACEOF
6477 #define DEBUGDIR_RELOCATABLE $value
6483 # We can't pass paths as command line arguments.
6484 # Mingw32 tries to be clever and will convert the paths for us.
6485 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
6486 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
6487 # This breaks GDB's relocatable path conversions since paths passed in
6488 # config.h would not get so translated, the path prefixes no longer match.
6490 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6491 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6492 ac_define_dir
=`eval echo $bindir`
6493 ac_define_dir
=`eval echo $ac_define_dir`
6495 cat >>confdefs.h
<<_ACEOF
6496 #define BINDIR "$ac_define_dir"
6501 # GDB's datadir relocation
6505 # Check whether --with-gdb-datadir was given.
6506 if test "${with_gdb_datadir+set}" = set; then :
6507 withval
=$with_gdb_datadir;
6508 GDB_DATADIR
=$withval
6510 GDB_DATADIR
=${datadir}/gdb
6514 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6515 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6516 ac_define_dir
=`eval echo $GDB_DATADIR`
6517 ac_define_dir
=`eval echo $ac_define_dir`
6519 cat >>confdefs.h
<<_ACEOF
6520 #define GDB_DATADIR "$ac_define_dir"
6526 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6527 if test "x$prefix" = xNONE
; then
6528 test_prefix
=/usr
/local
6533 test_prefix
=$exec_prefix
6536 case ${ac_define_dir} in
6537 "${test_prefix}"|
"${test_prefix}/"*|\
6538 '${exec_prefix}'|
'${exec_prefix}/'*)
6543 cat >>confdefs.h
<<_ACEOF
6544 #define GDB_DATADIR_RELOCATABLE $value
6551 # Check whether --with-relocated-sources was given.
6552 if test "${with_relocated_sources+set}" = set; then :
6553 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
6555 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6556 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6557 ac_define_dir
=`eval echo $reloc_srcdir`
6558 ac_define_dir
=`eval echo $ac_define_dir`
6560 cat >>confdefs.h
<<_ACEOF
6561 #define RELOC_SRCDIR "$ac_define_dir"
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
6570 $as_echo_n "checking for default auto-load directory... " >&6; }
6572 # Check whether --with-auto-load-dir was given.
6573 if test "${with_auto_load_dir+set}" = set; then :
6574 withval
=$with_auto_load_dir;
6576 with_auto_load_dir
='$debugdir:$datadir/auto-load'
6579 escape_dir
=`echo $with_auto_load_dir | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
6581 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6582 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6583 ac_define_dir
=`eval echo $escape_dir`
6584 ac_define_dir
=`eval echo $ac_define_dir`
6586 cat >>confdefs.h
<<_ACEOF
6587 #define AUTO_LOAD_DIR "$ac_define_dir"
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
6592 $as_echo "$with_auto_load_dir" >&6; }
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
6595 $as_echo_n "checking for default auto-load safe-path... " >&6; }
6597 # Check whether --with-auto-load-safe-path was given.
6598 if test "${with_auto_load_safe_path+set}" = set; then :
6599 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
6600 with_auto_load_safe_path
="/"
6603 with_auto_load_safe_path
="$with_auto_load_dir"
6606 escape_dir
=`echo $with_auto_load_safe_path | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
6608 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6609 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6610 ac_define_dir
=`eval echo $escape_dir`
6611 ac_define_dir
=`eval echo $ac_define_dir`
6613 cat >>confdefs.h
<<_ACEOF
6614 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
6619 $as_echo "$with_auto_load_safe_path" >&6; }
6623 subdirs
="$subdirs testsuite"
6626 # Check whether to support alternative target configurations
6627 # Check whether --enable-targets was given.
6628 if test "${enable_targets+set}" = set; then :
6629 enableval
=$enable_targets; case "${enableval}" in
6630 yes |
"") as_fn_error $?
"enable-targets option must specify target names or 'all'" "$LINENO" 5
6632 no
) enable_targets
= ;;
6633 *) enable_targets
=$enableval ;;
6638 # Check whether to enable 64-bit support on 32-bit hosts
6639 # Check whether --enable-64-bit-bfd was given.
6640 if test "${enable_64_bit_bfd+set}" = set; then :
6641 enableval
=$enable_64_bit_bfd; case "${enableval}" in
6644 *) as_fn_error $?
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
6650 # Provide defaults for some variables set by the per-host and per-target
6652 gdb_host_obs
=posix-hdep.o
6654 if test "${target}" = "${host}"; then
6660 .
$srcdir/configure.
host
6662 # Add in the common host objects.
6663 .
$srcdir/common
/common.
host
6664 gdb_host_obs
="$gdb_host_obs $common_host_obs"
6666 # Accumulate some settings from configure.tgt over all enabled targets
6670 HAVE_NATIVE_GCORE_TARGET
=
6672 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6674 if test "$targ_alias" = "all"; then
6677 # Canonicalize the secondary target names.
6678 result
=`$ac_config_sub $targ_alias 2>/dev/null`
6679 if test -n "$result"; then
6685 .
${srcdir}/configure.tgt
6687 if test -z "${gdb_target_obs}"; then :
6688 as_fn_error $?
"configuration ${targ} is unsupported." "$LINENO" 5
6691 # Target-specific object files
6692 for i
in ${gdb_target_obs}; do
6693 case " $TARGET_OBS " in
6696 TARGET_OBS
="$TARGET_OBS ${i}"
6701 # Check whether this target needs 64-bit CORE_ADDR
6702 if test x
${want64} = xfalse
; then
6703 .
${srcdir}/..
/bfd
/config.bfd
6706 # Check whether this target is native and supports gcore.
6707 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
6708 && $gdb_have_gcore; then
6709 HAVE_NATIVE_GCORE_TARGET
=1
6714 if test x
${all_targets} = xtrue
; then
6716 # We want all 64-bit targets if we either:
6717 # - run on a 64-bit host or
6718 # - already require 64-bit support for some other target or
6719 # - the --enable-64-bit-bfd option was supplied
6720 # Otherwise we only support all 32-bit targets.
6722 # NOTE: This test must be in sync with the corresponding
6725 if test x
${want64} = xfalse
; then
6726 # The cast to long int works around a bug in the HP C Compiler
6727 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6728 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6729 # This bug is HP SR number 8606223364.
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6731 $as_echo_n "checking size of long... " >&6; }
6732 if ${ac_cv_sizeof_long+:} false
; then :
6733 $as_echo_n "(cached) " >&6
6735 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6738 if test "$ac_cv_type_long" = yes; then
6739 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6741 as_fn_error
77 "cannot compute sizeof (long)
6742 See \`config.log' for more details" "$LINENO" 5; }
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6750 $as_echo "$ac_cv_sizeof_long" >&6; }
6754 cat >>confdefs.h
<<_ACEOF
6755 #define SIZEOF_LONG $ac_cv_sizeof_long
6759 if test "x${ac_cv_sizeof_long}" = "x8"; then
6763 if test x
${want64} = xtrue
; then
6764 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
6766 TARGET_OBS
='$(ALL_TARGET_OBS)'
6773 # For other settings, only the main target counts.
6777 targ
=$target; .
${srcdir}/configure.tgt
6779 # Fetch the default architecture and default target vector from BFD.
6780 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
6782 # We only want the first architecture, so strip off the others if
6783 # there is more than one.
6784 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
6786 if test "x$targ_archs" != x
; then
6788 cat >>confdefs.h
<<_ACEOF
6789 #define DEFAULT_BFD_ARCH $targ_archs
6793 if test "x$targ_defvec" != x
; then
6795 cat >>confdefs.h
<<_ACEOF
6796 #define DEFAULT_BFD_VEC $targ_defvec
6802 # Check whether --enable-gdbmi was given.
6803 if test "${enable_gdbmi+set}" = set; then :
6804 enableval
=$enable_gdbmi; case $enableval in
6808 as_fn_error $?
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
6814 if test x
"$enable_gdbmi" = xyes
; then
6815 if test -d $srcdir/mi
; then
6816 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6817 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6818 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6819 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6824 # Check whether --enable-tui was given.
6825 if test "${enable_tui+set}" = set; then :
6826 enableval
=$enable_tui; case $enableval in
6830 as_fn_error $?
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
6838 # Check whether --enable-gdbtk was given.
6839 if test "${enable_gdbtk+set}" = set; then :
6840 enableval
=$enable_gdbtk; case $enableval in
6844 as_fn_error $?
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
6847 if test -d $srcdir/gdbtk
; then
6854 # We unconditionally disable gdbtk tests on selected platforms.
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
6858 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6862 # Libunwind support for ia64.
6865 # Check whether --with-libunwind-ia64 was given.
6866 if test "${with_libunwind_ia64+set}" = set; then :
6867 withval
=$with_libunwind_ia64;
6869 with_libunwind_ia64
=auto
6873 # Backward compatibility option.
6874 if test "${with_libunwind+set}" = set; then
6875 if test x
"$with_libunwind_ia64" != xauto
; then
6876 as_fn_error $?
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
6879 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
6880 with_libunwind_ia64
="$with_libunwind"
6883 case "$with_libunwind_ia64" in
6887 for ac_header
in libunwind-ia64.h
6889 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
6890 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
6891 cat >>confdefs.h
<<_ACEOF
6892 #define HAVE_LIBUNWIND_IA64_H 1
6899 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
6902 as_fn_error $?
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
6906 if test x
"$with_libunwind_ia64" = xyes
; then
6907 for ac_header
in libunwind-ia64.h
6909 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
6910 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
6911 cat >>confdefs.h
<<_ACEOF
6912 #define HAVE_LIBUNWIND_IA64_H 1
6919 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
6920 as_fn_error $?
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
6922 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
6923 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
6924 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
6929 # Check whether --with-curses was given.
6930 if test "${with_curses+set}" = set; then :
6931 withval
=$with_curses; opt_curses
=$withval
6936 if test "$opt_curses" = "yes"; then
6940 # Profiling support.
6941 # Check whether --enable-profiling was given.
6942 if test "${enable_profiling+set}" = set; then :
6943 enableval
=$enable_profiling; case $enableval in
6947 as_fn_error $?
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
6954 for ac_func
in monstartup _mcleanup
6956 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6957 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6958 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6959 cat >>confdefs.h
<<_ACEOF
6960 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
6967 $as_echo_n "checking for _etext... " >&6; }
6968 if ${ac_cv_var__etext+:} false
; then :
6969 $as_echo_n "(cached) " >&6
6971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6972 /* end confdefs.h. */
6984 if ac_fn_c_try_link
"$LINENO"; then :
6985 ac_cv_var__etext
=yes
6989 rm -f core conftest.err conftest.
$ac_objext \
6990 conftest
$ac_exeext conftest.
$ac_ext
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
6993 $as_echo "$ac_cv_var__etext" >&6; }
6994 if test $ac_cv_var__etext = yes; then
6996 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
7000 $as_echo_n "checking for etext... " >&6; }
7001 if ${ac_cv_var_etext+:} false
; then :
7002 $as_echo_n "(cached) " >&6
7004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7005 /* end confdefs.h. */
7017 if ac_fn_c_try_link
"$LINENO"; then :
7022 rm -f core conftest.err conftest.
$ac_objext \
7023 conftest
$ac_exeext conftest.
$ac_ext
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
7026 $as_echo "$ac_cv_var_etext" >&6; }
7027 if test $ac_cv_var_etext = yes; then
7029 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
7032 if test "$enable_profiling" = yes ; then
7033 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
7034 as_fn_error $?
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
7037 OLD_CFLAGS
="$CFLAGS"
7038 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
7041 $as_echo_n "checking whether $CC supports -pg... " >&6; }
7042 if ${ac_cv_cc_supports_pg+:} false
; then :
7043 $as_echo_n "(cached) " >&6
7045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7046 /* end confdefs.h. */
7056 if ac_fn_c_try_compile
"$LINENO"; then :
7057 ac_cv_cc_supports_pg
=yes
7059 ac_cv_cc_supports_pg
=no
7061 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
7064 $as_echo "$ac_cv_cc_supports_pg" >&6; }
7066 if test $ac_cv_cc_supports_pg = no
; then
7067 as_fn_error $?
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
7070 CFLAGS
="$OLD_CFLAGS"
7074 # Check whether --enable-codesign was given.
7075 if test "${enable_codesign+set}" = set; then :
7076 enableval
=$enable_codesign; CODESIGN_CERT
=$enableval
7083 # Check whether --with-pkgversion was given.
7084 if test "${with_pkgversion+set}" = set; then :
7085 withval
=$with_pkgversion; case "$withval" in
7086 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
7088 *) PKGVERSION
="($withval) " ;;
7099 # Check whether --with-bugurl was given.
7100 if test "${with_bugurl+set}" = set; then :
7101 withval
=$with_bugurl; case "$withval" in
7102 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
7105 *) BUGURL
="$withval"
7109 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
7119 REPORT_BUGS_TO
="<$BUGURL>"
7120 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7127 cat >>confdefs.h
<<_ACEOF
7128 #define PKGVERSION "$PKGVERSION"
7132 cat >>confdefs.h
<<_ACEOF
7133 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7137 # --------------------- #
7138 # Checks for programs. #
7139 # --------------------- #
7141 for ac_prog
in gawk mawk nawk
awk
7143 # Extract the first word of "$ac_prog", so it can be a program name with args.
7144 set dummy
$ac_prog; ac_word
=$2
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7146 $as_echo_n "checking for $ac_word... " >&6; }
7147 if ${ac_cv_prog_AWK+:} false
; then :
7148 $as_echo_n "(cached) " >&6
7150 if test -n "$AWK"; then
7151 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7153 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7157 test -z "$as_dir" && as_dir
=.
7158 for ac_exec_ext
in '' $ac_executable_extensions; do
7159 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7160 ac_cv_prog_AWK
="$ac_prog"
7161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7171 if test -n "$AWK"; then
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7173 $as_echo "$AWK" >&6; }
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7176 $as_echo "no" >&6; }
7180 test -n "$AWK" && break
7183 # Find a good install program. We prefer a C program (faster),
7184 # so one script is as good as another. But avoid the broken or
7185 # incompatible versions:
7186 # SysV /etc/install, /usr/sbin/install
7187 # SunOS /usr/etc/install
7188 # IRIX /sbin/install
7190 # AmigaOS /C/install, which installs bootblocks on floppy discs
7191 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7192 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7193 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7194 # OS/2's system install, which has a completely different semantic
7195 # ./install, which can be erroneously created by make from ./install.sh.
7196 # Reject install programs that cannot install multiple files.
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7198 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7199 if test -z "$INSTALL"; then
7200 if ${ac_cv_path_install+:} false
; then :
7201 $as_echo_n "(cached) " >&6
7203 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7207 test -z "$as_dir" && as_dir
=.
7208 # Account for people who put trailing slashes in PATH elements.
7209 case $as_dir/ in #((
7210 .
/ | .
// |
/[cC
]/* | \
7211 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7212 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
7215 # OSF1 and SCO ODT 3.0 have their own names for install.
7216 # Don't use installbsd from OSF since it installs stuff as root
7218 for ac_prog
in ginstall scoinst
install; do
7219 for ac_exec_ext
in '' $ac_executable_extensions; do
7220 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
7221 if test $ac_prog = install &&
7222 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7223 # AIX install. It has an incompatible calling convention.
7225 elif test $ac_prog = install &&
7226 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7227 # program-specific install script used by HP pwplus--don't use.
7230 rm -rf conftest.one conftest.two conftest.dir
7231 echo one
> conftest.one
7232 echo two
> conftest.two
7234 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
7235 test -s conftest.one
&& test -s conftest.two
&&
7236 test -s conftest.dir
/conftest.one
&&
7237 test -s conftest.dir
/conftest.two
7239 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7252 rm -rf conftest.one conftest.two conftest.dir
7255 if test "${ac_cv_path_install+set}" = set; then
7256 INSTALL
=$ac_cv_path_install
7258 # As a last resort, use the slow shell script. Don't cache a
7259 # value for INSTALL within a source directory, because that will
7260 # break other packages using the cache if that directory is
7261 # removed, or if the value is a relative name.
7262 INSTALL
=$ac_install_sh
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7266 $as_echo "$INSTALL" >&6; }
7268 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7269 # It thinks the first close brace ends the variable substitution.
7270 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7272 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7274 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7277 $as_echo_n "checking whether ln -s works... " >&6; }
7279 if test "$LN_S" = "ln -s"; then
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7281 $as_echo "yes" >&6; }
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7284 $as_echo "no, using $LN_S" >&6; }
7287 if test -n "$ac_tool_prefix"; then
7288 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7289 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7291 $as_echo_n "checking for $ac_word... " >&6; }
7292 if ${ac_cv_prog_RANLIB+:} false
; then :
7293 $as_echo_n "(cached) " >&6
7295 if test -n "$RANLIB"; then
7296 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7298 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7302 test -z "$as_dir" && as_dir
=.
7303 for ac_exec_ext
in '' $ac_executable_extensions; do
7304 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7305 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7315 RANLIB
=$ac_cv_prog_RANLIB
7316 if test -n "$RANLIB"; then
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7318 $as_echo "$RANLIB" >&6; }
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7321 $as_echo "no" >&6; }
7326 if test -z "$ac_cv_prog_RANLIB"; then
7327 ac_ct_RANLIB
=$RANLIB
7328 # Extract the first word of "ranlib", so it can be a program name with args.
7329 set dummy ranlib
; ac_word
=$2
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7331 $as_echo_n "checking for $ac_word... " >&6; }
7332 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
7333 $as_echo_n "(cached) " >&6
7335 if test -n "$ac_ct_RANLIB"; then
7336 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7338 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7342 test -z "$as_dir" && as_dir
=.
7343 for ac_exec_ext
in '' $ac_executable_extensions; do
7344 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7345 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7355 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7356 if test -n "$ac_ct_RANLIB"; then
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7358 $as_echo "$ac_ct_RANLIB" >&6; }
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7361 $as_echo "no" >&6; }
7364 if test "x$ac_ct_RANLIB" = x
; then
7367 case $cross_compiling:$ac_tool_warned in
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7371 ac_tool_warned
=yes ;;
7373 RANLIB
=$ac_ct_RANLIB
7376 RANLIB
="$ac_cv_prog_RANLIB"
7379 for ac_prog
in 'bison -y' byacc
7381 # Extract the first word of "$ac_prog", so it can be a program name with args.
7382 set dummy
$ac_prog; ac_word
=$2
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7384 $as_echo_n "checking for $ac_word... " >&6; }
7385 if ${ac_cv_prog_YACC+:} false
; then :
7386 $as_echo_n "(cached) " >&6
7388 if test -n "$YACC"; then
7389 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
7391 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7395 test -z "$as_dir" && as_dir
=.
7396 for ac_exec_ext
in '' $ac_executable_extensions; do
7397 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7398 ac_cv_prog_YACC
="$ac_prog"
7399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7408 YACC
=$ac_cv_prog_YACC
7409 if test -n "$YACC"; then
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7411 $as_echo "$YACC" >&6; }
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7414 $as_echo "no" >&6; }
7418 test -n "$YACC" && break
7420 test -n "$YACC" || YACC
="yacc"
7423 if test -n "$ac_tool_prefix"; then
7424 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7425 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7427 $as_echo_n "checking for $ac_word... " >&6; }
7428 if ${ac_cv_prog_AR+:} false
; then :
7429 $as_echo_n "(cached) " >&6
7431 if test -n "$AR"; then
7432 ac_cv_prog_AR
="$AR" # Let the user override the test.
7434 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7438 test -z "$as_dir" && as_dir
=.
7439 for ac_exec_ext
in '' $ac_executable_extensions; do
7440 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7441 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7452 if test -n "$AR"; then
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7454 $as_echo "$AR" >&6; }
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7457 $as_echo "no" >&6; }
7462 if test -z "$ac_cv_prog_AR"; then
7464 # Extract the first word of "ar", so it can be a program name with args.
7465 set dummy
ar; ac_word
=$2
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7467 $as_echo_n "checking for $ac_word... " >&6; }
7468 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
7469 $as_echo_n "(cached) " >&6
7471 if test -n "$ac_ct_AR"; then
7472 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7474 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7478 test -z "$as_dir" && as_dir
=.
7479 for ac_exec_ext
in '' $ac_executable_extensions; do
7480 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7481 ac_cv_prog_ac_ct_AR
="ar"
7482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7491 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7492 if test -n "$ac_ct_AR"; then
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7494 $as_echo "$ac_ct_AR" >&6; }
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7497 $as_echo "no" >&6; }
7500 if test "x$ac_ct_AR" = x
; then
7503 case $cross_compiling:$ac_tool_warned in
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7507 ac_tool_warned
=yes ;;
7515 if test -n "$ac_tool_prefix"; then
7516 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7517 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7519 $as_echo_n "checking for $ac_word... " >&6; }
7520 if ${ac_cv_prog_DLLTOOL+:} false
; then :
7521 $as_echo_n "(cached) " >&6
7523 if test -n "$DLLTOOL"; then
7524 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
7526 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7530 test -z "$as_dir" && as_dir
=.
7531 for ac_exec_ext
in '' $ac_executable_extensions; do
7532 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7533 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
7534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7543 DLLTOOL
=$ac_cv_prog_DLLTOOL
7544 if test -n "$DLLTOOL"; then
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7546 $as_echo "$DLLTOOL" >&6; }
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7549 $as_echo "no" >&6; }
7554 if test -z "$ac_cv_prog_DLLTOOL"; then
7555 ac_ct_DLLTOOL
=$DLLTOOL
7556 # Extract the first word of "dlltool", so it can be a program name with args.
7557 set dummy dlltool
; ac_word
=$2
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7559 $as_echo_n "checking for $ac_word... " >&6; }
7560 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
7561 $as_echo_n "(cached) " >&6
7563 if test -n "$ac_ct_DLLTOOL"; then
7564 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
7566 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7570 test -z "$as_dir" && as_dir
=.
7571 for ac_exec_ext
in '' $ac_executable_extensions; do
7572 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7573 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
7574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7583 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
7584 if test -n "$ac_ct_DLLTOOL"; then
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7586 $as_echo "$ac_ct_DLLTOOL" >&6; }
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7589 $as_echo "no" >&6; }
7592 if test "x$ac_ct_DLLTOOL" = x
; then
7595 case $cross_compiling:$ac_tool_warned in
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7599 ac_tool_warned
=yes ;;
7601 DLLTOOL
=$ac_ct_DLLTOOL
7604 DLLTOOL
="$ac_cv_prog_DLLTOOL"
7607 if test -n "$ac_tool_prefix"; then
7608 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7609 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7611 $as_echo_n "checking for $ac_word... " >&6; }
7612 if ${ac_cv_prog_WINDRES+:} false
; then :
7613 $as_echo_n "(cached) " >&6
7615 if test -n "$WINDRES"; then
7616 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
7618 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7622 test -z "$as_dir" && as_dir
=.
7623 for ac_exec_ext
in '' $ac_executable_extensions; do
7624 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7625 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
7626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7635 WINDRES
=$ac_cv_prog_WINDRES
7636 if test -n "$WINDRES"; then
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7638 $as_echo "$WINDRES" >&6; }
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7641 $as_echo "no" >&6; }
7646 if test -z "$ac_cv_prog_WINDRES"; then
7647 ac_ct_WINDRES
=$WINDRES
7648 # Extract the first word of "windres", so it can be a program name with args.
7649 set dummy windres
; ac_word
=$2
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7651 $as_echo_n "checking for $ac_word... " >&6; }
7652 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
7653 $as_echo_n "(cached) " >&6
7655 if test -n "$ac_ct_WINDRES"; then
7656 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
7658 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7662 test -z "$as_dir" && as_dir
=.
7663 for ac_exec_ext
in '' $ac_executable_extensions; do
7664 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7665 ac_cv_prog_ac_ct_WINDRES
="windres"
7666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7675 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
7676 if test -n "$ac_ct_WINDRES"; then
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7678 $as_echo "$ac_ct_WINDRES" >&6; }
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7681 $as_echo "no" >&6; }
7684 if test "x$ac_ct_WINDRES" = x
; then
7687 case $cross_compiling:$ac_tool_warned in
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7691 ac_tool_warned
=yes ;;
7693 WINDRES
=$ac_ct_WINDRES
7696 WINDRES
="$ac_cv_prog_WINDRES"
7702 # Needed for GNU Hurd hosts.
7703 if test -n "$ac_tool_prefix"; then
7704 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7705 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7707 $as_echo_n "checking for $ac_word... " >&6; }
7708 if ${ac_cv_prog_MIG+:} false
; then :
7709 $as_echo_n "(cached) " >&6
7711 if test -n "$MIG"; then
7712 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
7714 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7718 test -z "$as_dir" && as_dir
=.
7719 for ac_exec_ext
in '' $ac_executable_extensions; do
7720 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7721 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
7722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7732 if test -n "$MIG"; then
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
7734 $as_echo "$MIG" >&6; }
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7737 $as_echo "no" >&6; }
7742 if test -z "$ac_cv_prog_MIG"; then
7744 # Extract the first word of "mig", so it can be a program name with args.
7745 set dummy mig
; ac_word
=$2
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7747 $as_echo_n "checking for $ac_word... " >&6; }
7748 if ${ac_cv_prog_ac_ct_MIG+:} false
; then :
7749 $as_echo_n "(cached) " >&6
7751 if test -n "$ac_ct_MIG"; then
7752 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
7754 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7758 test -z "$as_dir" && as_dir
=.
7759 for ac_exec_ext
in '' $ac_executable_extensions; do
7760 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7761 ac_cv_prog_ac_ct_MIG
="mig"
7762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7771 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
7772 if test -n "$ac_ct_MIG"; then
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
7774 $as_echo "$ac_ct_MIG" >&6; }
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7777 $as_echo "no" >&6; }
7780 if test "x$ac_ct_MIG" = x
; then
7783 case $cross_compiling:$ac_tool_warned in
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7787 ac_tool_warned
=yes ;;
7792 MIG
="$ac_cv_prog_MIG"
7795 if test x
"$MIG" = x
; then
7796 as_fn_error $?
"MIG not found but required for $host hosts" "$LINENO" 5
7801 # ---------------------- #
7802 # Checks for libraries. #
7803 # ---------------------- #
7805 # We might need to link with -lm; most simulators need it.
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7807 $as_echo_n "checking for main in -lm... " >&6; }
7808 if ${ac_cv_lib_m_main+:} false
; then :
7809 $as_echo_n "(cached) " >&6
7811 ac_check_lib_save_LIBS
=$LIBS
7813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7814 /* end confdefs.h. */
7825 if ac_fn_c_try_link
"$LINENO"; then :
7826 ac_cv_lib_m_main
=yes
7830 rm -f core conftest.err conftest.
$ac_objext \
7831 conftest
$ac_exeext conftest.
$ac_ext
7832 LIBS
=$ac_check_lib_save_LIBS
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7835 $as_echo "$ac_cv_lib_m_main" >&6; }
7836 if test "x$ac_cv_lib_m_main" = xyes
; then :
7837 cat >>confdefs.h
<<_ACEOF
7846 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
7848 $as_echo_n "checking for library containing gethostbyname... " >&6; }
7849 if ${ac_cv_search_gethostbyname+:} false
; then :
7850 $as_echo_n "(cached) " >&6
7852 ac_func_search_save_LIBS
=$LIBS
7853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7854 /* end confdefs.h. */
7856 /* Override any GCC internal prototype to avoid an error.
7857 Use char because int might match the return type of a GCC
7858 builtin and then its argument prototype would still apply. */
7862 char gethostbyname ();
7866 return gethostbyname ();
7871 for ac_lib
in '' nsl
; do
7872 if test -z "$ac_lib"; then
7873 ac_res
="none required"
7876 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7878 if ac_fn_c_try_link
"$LINENO"; then :
7879 ac_cv_search_gethostbyname
=$ac_res
7881 rm -f core conftest.err conftest.
$ac_objext \
7883 if ${ac_cv_search_gethostbyname+:} false
; then :
7887 if ${ac_cv_search_gethostbyname+:} false
; then :
7890 ac_cv_search_gethostbyname
=no
7893 LIBS
=$ac_func_search_save_LIBS
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
7896 $as_echo "$ac_cv_search_gethostbyname" >&6; }
7897 ac_res
=$ac_cv_search_gethostbyname
7898 if test "$ac_res" != no
; then :
7899 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7904 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
7906 $as_echo_n "checking for library containing socketpair... " >&6; }
7907 if ${ac_cv_search_socketpair+:} false
; then :
7908 $as_echo_n "(cached) " >&6
7910 ac_func_search_save_LIBS
=$LIBS
7911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7912 /* end confdefs.h. */
7914 /* Override any GCC internal prototype to avoid an error.
7915 Use char because int might match the return type of a GCC
7916 builtin and then its argument prototype would still apply. */
7924 return socketpair ();
7929 for ac_lib
in '' socket
; do
7930 if test -z "$ac_lib"; then
7931 ac_res
="none required"
7934 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7936 if ac_fn_c_try_link
"$LINENO"; then :
7937 ac_cv_search_socketpair
=$ac_res
7939 rm -f core conftest.err conftest.
$ac_objext \
7941 if ${ac_cv_search_socketpair+:} false
; then :
7945 if ${ac_cv_search_socketpair+:} false
; then :
7948 ac_cv_search_socketpair
=no
7951 LIBS
=$ac_func_search_save_LIBS
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
7954 $as_echo "$ac_cv_search_socketpair" >&6; }
7955 ac_res
=$ac_cv_search_socketpair
7956 if test "$ac_res" != no
; then :
7957 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7962 # Link in zlib if we can. This allows us to read compressed debug sections.
7964 # Use the system's zlib library.
7965 zlibdir
="-L\$(top_builddir)/../zlib"
7966 zlibinc
="-I\$(top_srcdir)/../zlib"
7968 # Check whether --with-system-zlib was given.
7969 if test "${with_system_zlib+set}" = set; then :
7970 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
7981 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
7982 # On GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
7984 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
7985 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
7986 $as_echo_n "(cached) " >&6
7988 ac_func_search_save_LIBS
=$LIBS
7989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7990 /* end confdefs.h. */
7992 /* Override any GCC internal prototype to avoid an error.
7993 Use char because int might match the return type of a GCC
7994 builtin and then its argument prototype would still apply. */
7998 char kinfo_getvmmap ();
8002 return kinfo_getvmmap ();
8007 for ac_lib
in '' util util-freebsd
; do
8008 if test -z "$ac_lib"; then
8009 ac_res
="none required"
8012 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8014 if ac_fn_c_try_link
"$LINENO"; then :
8015 ac_cv_search_kinfo_getvmmap
=$ac_res
8017 rm -f core conftest.err conftest.
$ac_objext \
8019 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
8023 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
8026 ac_cv_search_kinfo_getvmmap
=no
8029 LIBS
=$ac_func_search_save_LIBS
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
8032 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
8033 ac_res
=$ac_cv_search_kinfo_getvmmap
8034 if test "$ac_res" != no
; then :
8035 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8037 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
8042 # fbsd-nat.c can also use kinfo_getfile.
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
8044 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
8045 if ${ac_cv_search_kinfo_getfile+:} false
; then :
8046 $as_echo_n "(cached) " >&6
8048 ac_func_search_save_LIBS
=$LIBS
8049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8050 /* end confdefs.h. */
8052 /* Override any GCC internal prototype to avoid an error.
8053 Use char because int might match the return type of a GCC
8054 builtin and then its argument prototype would still apply. */
8058 char kinfo_getfile ();
8062 return kinfo_getfile ();
8067 for ac_lib
in '' util util-freebsd
; do
8068 if test -z "$ac_lib"; then
8069 ac_res
="none required"
8072 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8074 if ac_fn_c_try_link
"$LINENO"; then :
8075 ac_cv_search_kinfo_getfile
=$ac_res
8077 rm -f core conftest.err conftest.
$ac_objext \
8079 if ${ac_cv_search_kinfo_getfile+:} false
; then :
8083 if ${ac_cv_search_kinfo_getfile+:} false
; then :
8086 ac_cv_search_kinfo_getfile
=no
8089 LIBS
=$ac_func_search_save_LIBS
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
8092 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
8093 ac_res
=$ac_cv_search_kinfo_getfile
8094 if test "$ac_res" != no
; then :
8095 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8097 $as_echo "#define HAVE_KINFO_GETFILE 1" >>confdefs.h
8103 if test "X$prefix" = "XNONE"; then
8104 acl_final_prefix
="$ac_default_prefix"
8106 acl_final_prefix
="$prefix"
8108 if test "X$exec_prefix" = "XNONE"; then
8109 acl_final_exec_prefix
='${prefix}'
8111 acl_final_exec_prefix
="$exec_prefix"
8113 acl_save_prefix
="$prefix"
8114 prefix
="$acl_final_prefix"
8115 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8116 prefix
="$acl_save_prefix"
8119 # Check whether --with-gnu-ld was given.
8120 if test "${with_gnu_ld+set}" = set; then :
8121 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8126 # Prepare PATH_SEPARATOR.
8127 # The user is always right.
8128 if test "${PATH_SEPARATOR+set}" != set; then
8129 echo "#! /bin/sh" >conf$$.sh
8130 echo "exit 0" >>conf$$.sh
8132 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8140 if test "$GCC" = yes; then
8141 # Check if gcc -print-prog-name=ld gives a path.
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8143 $as_echo_n "checking for ld used by GCC... " >&6; }
8146 # gcc leaves a trailing carriage return which upsets mingw
8147 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8149 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8152 # Accept absolute paths.
8153 [\\/]* |
[A-Za-z
]:[\\/]*)
8154 re_direlt
='/[^/][^/]*/\.\./'
8155 # Canonicalize the path of ld
8156 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8157 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8158 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8160 test -z "$LD" && LD
="$ac_prog"
8163 # If it fails, then pretend we aren't using GCC.
8167 # If it is relative, then search for the first ld in PATH.
8171 elif test "$with_gnu_ld" = yes; then
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8173 $as_echo_n "checking for GNU ld... " >&6; }
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8176 $as_echo_n "checking for non-GNU ld... " >&6; }
8178 if ${acl_cv_path_LD+:} false
; then :
8179 $as_echo_n "(cached) " >&6
8181 if test -z "$LD"; then
8182 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8183 for ac_dir
in $PATH; do
8184 test -z "$ac_dir" && ac_dir
=.
8185 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8186 acl_cv_path_LD
="$ac_dir/$ac_prog"
8187 # Check to see if the program is GNU ld. I'd rather use --version,
8188 # but apparently some GNU ld's only accept -v.
8189 # Break only if it was the GNU/non-GNU ld that we prefer.
8190 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
8191 test "$with_gnu_ld" != no
&& break
8193 test "$with_gnu_ld" != yes && break
8199 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8203 LD
="$acl_cv_path_LD"
8204 if test -n "$LD"; then
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8206 $as_echo "$LD" >&6; }
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8209 $as_echo "no" >&6; }
8211 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8213 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8214 if ${acl_cv_prog_gnu_ld+:} false
; then :
8215 $as_echo_n "(cached) " >&6
8217 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8218 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8219 acl_cv_prog_gnu_ld
=yes
8221 acl_cv_prog_gnu_ld
=no
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8225 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8226 with_gnu_ld
=$acl_cv_prog_gnu_ld
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8231 $as_echo_n "checking for shared library run path origin... " >&6; }
8232 if ${acl_cv_rpath+:} false
; then :
8233 $as_echo_n "(cached) " >&6
8236 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8237 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8244 $as_echo "$acl_cv_rpath" >&6; }
8246 libext
="$acl_cv_libext"
8247 shlibext
="$acl_cv_shlibext"
8248 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8249 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8250 hardcode_direct
="$acl_cv_hardcode_direct"
8251 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8252 # Check whether --enable-rpath was given.
8253 if test "${enable_rpath+set}" = set; then :
8254 enableval
=$enable_rpath; :
8268 acl_save_prefix
="$prefix"
8269 prefix
="$acl_final_prefix"
8270 acl_save_exec_prefix
="$exec_prefix"
8271 exec_prefix
="$acl_final_exec_prefix"
8273 eval additional_includedir
=\"$includedir\"
8274 eval additional_libdir
=\"$libdir\"
8276 exec_prefix
="$acl_save_exec_prefix"
8277 prefix
="$acl_save_prefix"
8280 # Check whether --with-libiconv-prefix was given.
8281 if test "${with_libiconv_prefix+set}" = set; then :
8282 withval
=$with_libiconv_prefix;
8283 if test "X$withval" = "Xno"; then
8286 if test "X$withval" = "X"; then
8288 acl_save_prefix
="$prefix"
8289 prefix
="$acl_final_prefix"
8290 acl_save_exec_prefix
="$exec_prefix"
8291 exec_prefix
="$acl_final_exec_prefix"
8293 eval additional_includedir
=\"$includedir\"
8294 eval additional_libdir
=\"$libdir\"
8296 exec_prefix
="$acl_save_exec_prefix"
8297 prefix
="$acl_save_prefix"
8300 additional_includedir
="$withval/include"
8301 additional_libdir
="$withval/lib"
8312 names_already_handled
=
8313 names_next_round
='iconv '
8314 while test -n "$names_next_round"; do
8315 names_this_round
="$names_next_round"
8317 for name
in $names_this_round; do
8319 for n
in $names_already_handled; do
8320 if test "$n" = "$name"; then
8325 if test -z "$already_handled"; then
8326 names_already_handled
="$names_already_handled $name"
8327 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8328 eval value
=\"\
$HAVE_LIB$uppername\"
8329 if test -n "$value"; then
8330 if test "$value" = yes; then
8331 eval value
=\"\
$LIB$uppername\"
8332 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
8333 eval value
=\"\
$LTLIB$uppername\"
8334 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
8343 if test $use_additional = yes; then
8344 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8345 found_dir
="$additional_libdir"
8346 found_so
="$additional_libdir/lib$name.$shlibext"
8347 if test -f "$additional_libdir/lib$name.la"; then
8348 found_la
="$additional_libdir/lib$name.la"
8351 if test -f "$additional_libdir/lib$name.$libext"; then
8352 found_dir
="$additional_libdir"
8353 found_a
="$additional_libdir/lib$name.$libext"
8354 if test -f "$additional_libdir/lib$name.la"; then
8355 found_la
="$additional_libdir/lib$name.la"
8360 if test "X$found_dir" = "X"; then
8361 for x
in $LDFLAGS $LTLIBICONV; do
8363 acl_save_prefix
="$prefix"
8364 prefix
="$acl_final_prefix"
8365 acl_save_exec_prefix
="$exec_prefix"
8366 exec_prefix
="$acl_final_exec_prefix"
8368 exec_prefix
="$acl_save_exec_prefix"
8369 prefix
="$acl_save_prefix"
8373 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8374 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8376 found_so
="$dir/lib$name.$shlibext"
8377 if test -f "$dir/lib$name.la"; then
8378 found_la
="$dir/lib$name.la"
8381 if test -f "$dir/lib$name.$libext"; then
8383 found_a
="$dir/lib$name.$libext"
8384 if test -f "$dir/lib$name.la"; then
8385 found_la
="$dir/lib$name.la"
8391 if test "X$found_dir" != "X"; then
8396 if test "X$found_dir" != "X"; then
8397 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8398 if test "X$found_so" != "X"; then
8399 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8400 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8403 for x
in $ltrpathdirs; do
8404 if test "X$x" = "X$found_dir"; then
8409 if test -z "$haveit"; then
8410 ltrpathdirs
="$ltrpathdirs $found_dir"
8412 if test "$hardcode_direct" = yes; then
8413 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8415 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8416 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8418 for x
in $rpathdirs; do
8419 if test "X$x" = "X$found_dir"; then
8424 if test -z "$haveit"; then
8425 rpathdirs
="$rpathdirs $found_dir"
8429 for x
in $LDFLAGS $LIBICONV; do
8431 acl_save_prefix
="$prefix"
8432 prefix
="$acl_final_prefix"
8433 acl_save_exec_prefix
="$exec_prefix"
8434 exec_prefix
="$acl_final_exec_prefix"
8436 exec_prefix
="$acl_save_exec_prefix"
8437 prefix
="$acl_save_prefix"
8439 if test "X$x" = "X-L$found_dir"; then
8444 if test -z "$haveit"; then
8445 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8447 if test "$hardcode_minus_L" != no
; then
8448 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8450 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8456 if test "X$found_a" != "X"; then
8457 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
8459 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8462 additional_includedir
=
8463 case "$found_dir" in
8465 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8466 additional_includedir
="$basedir/include"
8469 if test "X$additional_includedir" != "X"; then
8470 if test "X$additional_includedir" != "X/usr/include"; then
8472 if test "X$additional_includedir" = "X/usr/local/include"; then
8473 if test -n "$GCC"; then
8475 linux
*) haveit
=yes;;
8479 if test -z "$haveit"; then
8480 for x
in $CPPFLAGS $INCICONV; do
8482 acl_save_prefix
="$prefix"
8483 prefix
="$acl_final_prefix"
8484 acl_save_exec_prefix
="$exec_prefix"
8485 exec_prefix
="$acl_final_exec_prefix"
8487 exec_prefix
="$acl_save_exec_prefix"
8488 prefix
="$acl_save_prefix"
8490 if test "X$x" = "X-I$additional_includedir"; then
8495 if test -z "$haveit"; then
8496 if test -d "$additional_includedir"; then
8497 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8503 if test -n "$found_la"; then
8504 save_libdir
="$libdir"
8506 */* |
*\\*) .
"$found_la" ;;
8507 *) .
"./$found_la" ;;
8509 libdir
="$save_libdir"
8510 for dep
in $dependency_libs; do
8513 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8514 if test "X$additional_libdir" != "X/usr/lib"; then
8516 if test "X$additional_libdir" = "X/usr/local/lib"; then
8517 if test -n "$GCC"; then
8519 linux
*) haveit
=yes;;
8523 if test -z "$haveit"; then
8525 for x
in $LDFLAGS $LIBICONV; do
8527 acl_save_prefix
="$prefix"
8528 prefix
="$acl_final_prefix"
8529 acl_save_exec_prefix
="$exec_prefix"
8530 exec_prefix
="$acl_final_exec_prefix"
8532 exec_prefix
="$acl_save_exec_prefix"
8533 prefix
="$acl_save_prefix"
8535 if test "X$x" = "X-L$additional_libdir"; then
8540 if test -z "$haveit"; then
8541 if test -d "$additional_libdir"; then
8542 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8546 for x
in $LDFLAGS $LTLIBICONV; do
8548 acl_save_prefix
="$prefix"
8549 prefix
="$acl_final_prefix"
8550 acl_save_exec_prefix
="$exec_prefix"
8551 exec_prefix
="$acl_final_exec_prefix"
8553 exec_prefix
="$acl_save_exec_prefix"
8554 prefix
="$acl_save_prefix"
8556 if test "X$x" = "X-L$additional_libdir"; then
8561 if test -z "$haveit"; then
8562 if test -d "$additional_libdir"; then
8563 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8570 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8571 if test "$enable_rpath" != no
; then
8573 for x
in $rpathdirs; do
8574 if test "X$x" = "X$dir"; then
8579 if test -z "$haveit"; then
8580 rpathdirs
="$rpathdirs $dir"
8583 for x
in $ltrpathdirs; do
8584 if test "X$x" = "X$dir"; then
8589 if test -z "$haveit"; then
8590 ltrpathdirs
="$ltrpathdirs $dir"
8595 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8598 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8601 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
8602 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8608 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8609 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8615 if test "X$rpathdirs" != "X"; then
8616 if test -n "$hardcode_libdir_separator"; then
8618 for found_dir
in $rpathdirs; do
8619 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8621 acl_save_libdir
="$libdir"
8623 eval flag
=\"$hardcode_libdir_flag_spec\"
8624 libdir
="$acl_save_libdir"
8625 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8627 for found_dir
in $rpathdirs; do
8628 acl_save_libdir
="$libdir"
8630 eval flag
=\"$hardcode_libdir_flag_spec\"
8631 libdir
="$acl_save_libdir"
8632 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8636 if test "X$ltrpathdirs" != "X"; then
8637 for found_dir
in $ltrpathdirs; do
8638 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8649 $as_echo_n "checking for iconv... " >&6; }
8650 if ${am_cv_func_iconv+:} false
; then :
8651 $as_echo_n "(cached) " >&6
8654 am_cv_func_iconv
="no, consider installing GNU libiconv"
8656 am_save_CPPFLAGS
="$CPPFLAGS"
8657 CPPFLAGS
="$CPPFLAGS $INCICONV"
8658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8659 /* end confdefs.h. */
8665 iconv_t cd = iconv_open("","");
8666 iconv(cd,NULL,NULL,NULL,NULL);
8672 if ac_fn_c_try_link
"$LINENO"; then :
8673 am_cv_func_iconv
=yes
8675 rm -f core conftest.err conftest.
$ac_objext \
8676 conftest
$ac_exeext conftest.
$ac_ext
8677 CPPFLAGS
="$am_save_CPPFLAGS"
8679 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
8680 for _libs
in .libs _libs
; do
8681 am_save_CPPFLAGS
="$CPPFLAGS"
8682 am_save_LIBS
="$LIBS"
8683 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
8684 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
8685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8686 /* end confdefs.h. */
8692 iconv_t cd = iconv_open("","");
8693 iconv(cd,NULL,NULL,NULL,NULL);
8699 if ac_fn_c_try_link
"$LINENO"; then :
8700 INCICONV
="-I../libiconv/include"
8701 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
8702 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
8704 am_cv_func_iconv
=yes
8706 rm -f core conftest.err conftest.
$ac_objext \
8707 conftest
$ac_exeext conftest.
$ac_ext
8708 CPPFLAGS
="$am_save_CPPFLAGS"
8709 LIBS
="$am_save_LIBS"
8710 if test "$am_cv_func_iconv" = "yes"; then
8716 if test "$am_cv_func_iconv" != yes; then
8717 am_save_CPPFLAGS
="$CPPFLAGS"
8718 am_save_LIBS
="$LIBS"
8719 CPPFLAGS
="$LIBS $INCICONV"
8720 LIBS
="$LIBS $LIBICONV"
8721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8722 /* end confdefs.h. */
8728 iconv_t cd = iconv_open("","");
8729 iconv(cd,NULL,NULL,NULL,NULL);
8735 if ac_fn_c_try_link
"$LINENO"; then :
8737 am_cv_func_iconv
=yes
8739 rm -f core conftest.err conftest.
$ac_objext \
8740 conftest
$ac_exeext conftest.
$ac_ext
8741 CPPFLAGS
="$am_save_CPPFLAGS"
8742 LIBS
="$am_save_LIBS"
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8747 $as_echo "$am_cv_func_iconv" >&6; }
8748 if test "$am_cv_func_iconv" = yes; then
8750 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8753 if test "$am_cv_lib_iconv" = yes; then
8755 for element
in $INCICONV; do
8757 for x
in $CPPFLAGS; do
8759 acl_save_prefix
="$prefix"
8760 prefix
="$acl_final_prefix"
8761 acl_save_exec_prefix
="$exec_prefix"
8762 exec_prefix
="$acl_final_exec_prefix"
8764 exec_prefix
="$acl_save_exec_prefix"
8765 prefix
="$acl_save_prefix"
8767 if test "X$x" = "X$element"; then
8772 if test -z "$haveit"; then
8773 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8778 $as_echo_n "checking how to link with libiconv... " >&6; }
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8780 $as_echo "$LIBICONV" >&6; }
8788 if test "$am_cv_func_iconv" = yes; then
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8790 $as_echo_n "checking for iconv declaration... " >&6; }
8791 if ${am_cv_proto_iconv+:} false
; then :
8792 $as_echo_n "(cached) " >&6
8795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8796 /* end confdefs.h. */
8804 #if defined(__STDC__) || defined(__cplusplus)
8805 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8818 if ac_fn_c_try_compile
"$LINENO"; then :
8819 am_cv_proto_iconv_arg1
=""
8821 am_cv_proto_iconv_arg1
="const"
8823 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8824 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);"
8827 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8829 }$am_cv_proto_iconv" >&5
8831 }$am_cv_proto_iconv" >&6; }
8833 cat >>confdefs.h
<<_ACEOF
8834 #define ICONV_CONST $am_cv_proto_iconv_arg1
8840 # GDB may fork/exec the iconv program to get the list of supported character
8841 # sets. Allow the user to specify where to find it.
8842 # There are several factors affecting the choice of option name:
8843 # - There is already --with-libiconv-prefix but we can't use it, it specifies
8844 # the build-time location of libiconv files.
8845 # - The program we need to find is iconv, which comes with glibc. The user
8846 # doesn't necessarily have libiconv installed. Therefore naming this
8847 # --with-libiconv-foo feels wrong.
8848 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
8849 # defined to work on directories not files (though it really doesn't know
8851 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
8852 # with --with-libiconv-prefix.
8853 # Putting these together is why the option name is --with-iconv-bin.
8856 # Check whether --with-iconv-bin was given.
8857 if test "${with_iconv_bin+set}" = set; then :
8858 withval
=$with_iconv_bin; iconv_bin
="${withval}"
8860 cat >>confdefs.h
<<_ACEOF
8861 #define ICONV_BIN "${iconv_bin}"
8865 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
8866 if test "x$prefix" = xNONE
; then
8867 test_prefix
=/usr
/local
8872 test_prefix
=$exec_prefix
8875 case ${iconv_bin} in
8876 "${test_prefix}"|
"${test_prefix}/"*|\
8877 '${exec_prefix}'|
'${exec_prefix}/'*)
8882 cat >>confdefs.h
<<_ACEOF
8883 #define ICONV_BIN_RELOCATABLE $value
8891 # For the TUI, we need enhanced curses functionality.
8892 if test x
"$enable_tui" != xno
; then
8897 if test x
"$prefer_curses" = xyes
; then
8898 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8899 # curses library because the latter might not provide all the
8900 # functionality we need. However, this leads to problems on systems
8901 # where the linker searches /usr/local/lib, but the compiler doesn't
8902 # search /usr/local/include, if ncurses is installed in /usr/local. A
8903 # default installation of ncurses on alpha*-dec-osf* will lead to such
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
8906 $as_echo_n "checking for library containing waddstr... " >&6; }
8907 if ${ac_cv_search_waddstr+:} false
; then :
8908 $as_echo_n "(cached) " >&6
8910 ac_func_search_save_LIBS
=$LIBS
8911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8912 /* end confdefs.h. */
8914 /* Override any GCC internal prototype to avoid an error.
8915 Use char because int might match the return type of a GCC
8916 builtin and then its argument prototype would still apply. */
8929 for ac_lib
in '' ncursesw ncurses cursesX curses
; do
8930 if test -z "$ac_lib"; then
8931 ac_res
="none required"
8934 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8936 if ac_fn_c_try_link
"$LINENO"; then :
8937 ac_cv_search_waddstr
=$ac_res
8939 rm -f core conftest.err conftest.
$ac_objext \
8941 if ${ac_cv_search_waddstr+:} false
; then :
8945 if ${ac_cv_search_waddstr+:} false
; then :
8948 ac_cv_search_waddstr
=no
8951 LIBS
=$ac_func_search_save_LIBS
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
8954 $as_echo "$ac_cv_search_waddstr" >&6; }
8955 ac_res
=$ac_cv_search_waddstr
8956 if test "$ac_res" != no
; then :
8957 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8962 if test "$ac_cv_search_waddstr" != no
; then
8967 # Check whether we should enable the TUI, but only do so if we really
8969 if test x
"$enable_tui" != xno
; then
8970 if test -d $srcdir/tui
; then
8971 if test "$curses_found" != no
; then
8972 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
8973 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
8974 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
8975 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
8977 if test x
"$enable_tui" = xyes
; then
8978 as_fn_error $?
"no enhanced curses library found; disable TUI" "$LINENO" 5
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
8981 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
8987 # Since GDB uses Readline, we need termcap functionality. In many
8988 # cases this will be provided by the curses library, but some systems
8989 # have a separate termcap library, or no curses library at all.
8993 if test -d $srcdir/libtermcap
; then
8994 LIBS
="../libtermcap/libtermcap.a $LIBS"
8995 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
8998 ac_cv_search_tgetent
="none required"
9002 # These are the libraries checked by Readline.
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9004 $as_echo_n "checking for library containing tgetent... " >&6; }
9005 if ${ac_cv_search_tgetent+:} false
; then :
9006 $as_echo_n "(cached) " >&6
9008 ac_func_search_save_LIBS
=$LIBS
9009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9010 /* end confdefs.h. */
9012 /* Override any GCC internal prototype to avoid an error.
9013 Use char because int might match the return type of a GCC
9014 builtin and then its argument prototype would still apply. */
9027 for ac_lib
in '' termcap tinfo curses ncursesw ncurses
; do
9028 if test -z "$ac_lib"; then
9029 ac_res
="none required"
9032 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9034 if ac_fn_c_try_link
"$LINENO"; then :
9035 ac_cv_search_tgetent
=$ac_res
9037 rm -f core conftest.err conftest.
$ac_objext \
9039 if ${ac_cv_search_tgetent+:} false
; then :
9043 if ${ac_cv_search_tgetent+:} false
; then :
9046 ac_cv_search_tgetent
=no
9049 LIBS
=$ac_func_search_save_LIBS
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9052 $as_echo "$ac_cv_search_tgetent" >&6; }
9053 ac_res
=$ac_cv_search_tgetent
9054 if test "$ac_res" != no
; then :
9055 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9060 if test "$ac_cv_search_tgetent" = no
; then
9061 CONFIG_OBS
="$CONFIG_OBS stub-termcap.o"
9065 # Check whether --with-system-readline was given.
9066 if test "${with_system_readline+set}" = set; then :
9067 withval
=$with_system_readline;
9071 if test "$with_system_readline" = yes; then
9075 READLINE_TEXI_INCFLAG
=
9077 READLINE
='$(READLINE_DIR)/libreadline.a'
9078 READLINE_DEPS
='$(READLINE)'
9079 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
9080 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
9087 # Generate jit-reader.h
9089 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
9092 # The cast to long int works around a bug in the HP C Compiler
9093 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9094 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9095 # This bug is HP SR number 8606223364.
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
9097 $as_echo_n "checking size of unsigned long long... " >&6; }
9098 if ${ac_cv_sizeof_unsigned_long_long+:} false
; then :
9099 $as_echo_n "(cached) " >&6
9101 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
9104 if test "$ac_cv_type_unsigned_long_long" = yes; then
9105 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9107 as_fn_error
77 "cannot compute sizeof (unsigned long long)
9108 See \`config.log' for more details" "$LINENO" 5; }
9110 ac_cv_sizeof_unsigned_long_long
=0
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
9116 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
9120 cat >>confdefs.h
<<_ACEOF
9121 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
9125 # The cast to long int works around a bug in the HP C Compiler
9126 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9127 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9128 # This bug is HP SR number 8606223364.
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
9130 $as_echo_n "checking size of unsigned long... " >&6; }
9131 if ${ac_cv_sizeof_unsigned_long+:} false
; then :
9132 $as_echo_n "(cached) " >&6
9134 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
9137 if test "$ac_cv_type_unsigned_long" = yes; then
9138 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9140 as_fn_error
77 "cannot compute sizeof (unsigned long)
9141 See \`config.log' for more details" "$LINENO" 5; }
9143 ac_cv_sizeof_unsigned_long
=0
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
9149 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
9153 cat >>confdefs.h
<<_ACEOF
9154 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9158 # The cast to long int works around a bug in the HP C Compiler
9159 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9160 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9161 # This bug is HP SR number 8606223364.
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
9163 $as_echo_n "checking size of unsigned __int128... " >&6; }
9164 if ${ac_cv_sizeof_unsigned___int128+:} false
; then :
9165 $as_echo_n "(cached) " >&6
9167 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
9170 if test "$ac_cv_type_unsigned___int128" = yes; then
9171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9173 as_fn_error
77 "cannot compute sizeof (unsigned __int128)
9174 See \`config.log' for more details" "$LINENO" 5; }
9176 ac_cv_sizeof_unsigned___int128
=0
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
9182 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
9186 cat >>confdefs.h
<<_ACEOF
9187 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
9192 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9193 TARGET_PTR
="unsigned long"
9194 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9195 TARGET_PTR
="unsigned long long"
9196 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
9197 TARGET_PTR
="unsigned __int128"
9199 TARGET_PTR
="unsigned long"
9203 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9207 $as_echo_n "checking for library containing dlopen... " >&6; }
9208 if ${ac_cv_search_dlopen+:} false
; then :
9209 $as_echo_n "(cached) " >&6
9211 ac_func_search_save_LIBS
=$LIBS
9212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9213 /* end confdefs.h. */
9215 /* Override any GCC internal prototype to avoid an error.
9216 Use char because int might match the return type of a GCC
9217 builtin and then its argument prototype would still apply. */
9230 for ac_lib
in '' dl
; do
9231 if test -z "$ac_lib"; then
9232 ac_res
="none required"
9235 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9237 if ac_fn_c_try_link
"$LINENO"; then :
9238 ac_cv_search_dlopen
=$ac_res
9240 rm -f core conftest.err conftest.
$ac_objext \
9242 if ${ac_cv_search_dlopen+:} false
; then :
9246 if ${ac_cv_search_dlopen+:} false
; then :
9249 ac_cv_search_dlopen
=no
9252 LIBS
=$ac_func_search_save_LIBS
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9255 $as_echo "$ac_cv_search_dlopen" >&6; }
9256 ac_res
=$ac_cv_search_dlopen
9257 if test "$ac_res" != no
; then :
9258 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9265 # Check whether --with-jit-reader-dir was given.
9266 if test "${with_jit_reader_dir+set}" = set; then :
9267 withval
=$with_jit_reader_dir;
9268 JIT_READER_DIR
=$withval
9270 JIT_READER_DIR
=${libdir}/gdb
9274 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9275 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9276 ac_define_dir
=`eval echo $JIT_READER_DIR`
9277 ac_define_dir
=`eval echo $ac_define_dir`
9279 cat >>confdefs.h
<<_ACEOF
9280 #define JIT_READER_DIR "$ac_define_dir"
9286 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9287 if test "x$prefix" = xNONE
; then
9288 test_prefix
=/usr
/local
9293 test_prefix
=$exec_prefix
9296 case ${ac_define_dir} in
9297 "${test_prefix}"|
"${test_prefix}/"*|\
9298 '${exec_prefix}'|
'${exec_prefix}/'*)
9303 cat >>confdefs.h
<<_ACEOF
9304 #define JIT_READER_DIR_RELOCATABLE $value
9311 # Check whether --with-expat was given.
9312 if test "${with_expat+set}" = set; then :
9313 withval
=$with_expat;
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9319 $as_echo_n "checking whether to use expat... " >&6; }
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9321 $as_echo "$with_expat" >&6; }
9323 if test "${with_expat}" = no
; then
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9325 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9338 acl_save_prefix
="$prefix"
9339 prefix
="$acl_final_prefix"
9340 acl_save_exec_prefix
="$exec_prefix"
9341 exec_prefix
="$acl_final_exec_prefix"
9343 eval additional_includedir
=\"$includedir\"
9344 eval additional_libdir
=\"$libdir\"
9346 exec_prefix
="$acl_save_exec_prefix"
9347 prefix
="$acl_save_prefix"
9350 # Check whether --with-libexpat-prefix was given.
9351 if test "${with_libexpat_prefix+set}" = set; then :
9352 withval
=$with_libexpat_prefix;
9353 if test "X$withval" = "Xno"; then
9356 if test "X$withval" = "X"; then
9358 acl_save_prefix
="$prefix"
9359 prefix
="$acl_final_prefix"
9360 acl_save_exec_prefix
="$exec_prefix"
9361 exec_prefix
="$acl_final_exec_prefix"
9363 eval additional_includedir
=\"$includedir\"
9364 eval additional_libdir
=\"$libdir\"
9366 exec_prefix
="$acl_save_exec_prefix"
9367 prefix
="$acl_save_prefix"
9370 additional_includedir
="$withval/include"
9371 additional_libdir
="$withval/lib"
9382 names_already_handled
=
9383 names_next_round
='expat '
9384 while test -n "$names_next_round"; do
9385 names_this_round
="$names_next_round"
9387 for name
in $names_this_round; do
9389 for n
in $names_already_handled; do
9390 if test "$n" = "$name"; then
9395 if test -z "$already_handled"; then
9396 names_already_handled
="$names_already_handled $name"
9397 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9398 eval value
=\"\
$HAVE_LIB$uppername\"
9399 if test -n "$value"; then
9400 if test "$value" = yes; then
9401 eval value
=\"\
$LIB$uppername\"
9402 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
9403 eval value
=\"\
$LTLIB$uppername\"
9404 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
9413 if test $use_additional = yes; then
9414 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9415 found_dir
="$additional_libdir"
9416 found_so
="$additional_libdir/lib$name.$shlibext"
9417 if test -f "$additional_libdir/lib$name.la"; then
9418 found_la
="$additional_libdir/lib$name.la"
9421 if test -f "$additional_libdir/lib$name.$libext"; then
9422 found_dir
="$additional_libdir"
9423 found_a
="$additional_libdir/lib$name.$libext"
9424 if test -f "$additional_libdir/lib$name.la"; then
9425 found_la
="$additional_libdir/lib$name.la"
9430 if test "X$found_dir" = "X"; then
9431 for x
in $LDFLAGS $LTLIBEXPAT; do
9433 acl_save_prefix
="$prefix"
9434 prefix
="$acl_final_prefix"
9435 acl_save_exec_prefix
="$exec_prefix"
9436 exec_prefix
="$acl_final_exec_prefix"
9438 exec_prefix
="$acl_save_exec_prefix"
9439 prefix
="$acl_save_prefix"
9443 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9444 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9446 found_so
="$dir/lib$name.$shlibext"
9447 if test -f "$dir/lib$name.la"; then
9448 found_la
="$dir/lib$name.la"
9451 if test -f "$dir/lib$name.$libext"; then
9453 found_a
="$dir/lib$name.$libext"
9454 if test -f "$dir/lib$name.la"; then
9455 found_la
="$dir/lib$name.la"
9461 if test "X$found_dir" != "X"; then
9466 if test "X$found_dir" != "X"; then
9467 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
9468 if test "X$found_so" != "X"; then
9469 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9470 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9473 for x
in $ltrpathdirs; do
9474 if test "X$x" = "X$found_dir"; then
9479 if test -z "$haveit"; then
9480 ltrpathdirs
="$ltrpathdirs $found_dir"
9482 if test "$hardcode_direct" = yes; then
9483 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9485 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9486 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9488 for x
in $rpathdirs; do
9489 if test "X$x" = "X$found_dir"; then
9494 if test -z "$haveit"; then
9495 rpathdirs
="$rpathdirs $found_dir"
9499 for x
in $LDFLAGS $LIBEXPAT; do
9501 acl_save_prefix
="$prefix"
9502 prefix
="$acl_final_prefix"
9503 acl_save_exec_prefix
="$exec_prefix"
9504 exec_prefix
="$acl_final_exec_prefix"
9506 exec_prefix
="$acl_save_exec_prefix"
9507 prefix
="$acl_save_prefix"
9509 if test "X$x" = "X-L$found_dir"; then
9514 if test -z "$haveit"; then
9515 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
9517 if test "$hardcode_minus_L" != no
; then
9518 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9520 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9526 if test "X$found_a" != "X"; then
9527 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
9529 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
9532 additional_includedir
=
9533 case "$found_dir" in
9535 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9536 additional_includedir
="$basedir/include"
9539 if test "X$additional_includedir" != "X"; then
9540 if test "X$additional_includedir" != "X/usr/include"; then
9542 if test "X$additional_includedir" = "X/usr/local/include"; then
9543 if test -n "$GCC"; then
9545 linux
*) haveit
=yes;;
9549 if test -z "$haveit"; then
9550 for x
in $CPPFLAGS $INCEXPAT; do
9552 acl_save_prefix
="$prefix"
9553 prefix
="$acl_final_prefix"
9554 acl_save_exec_prefix
="$exec_prefix"
9555 exec_prefix
="$acl_final_exec_prefix"
9557 exec_prefix
="$acl_save_exec_prefix"
9558 prefix
="$acl_save_prefix"
9560 if test "X$x" = "X-I$additional_includedir"; then
9565 if test -z "$haveit"; then
9566 if test -d "$additional_includedir"; then
9567 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
9573 if test -n "$found_la"; then
9574 save_libdir
="$libdir"
9576 */* |
*\\*) .
"$found_la" ;;
9577 *) .
"./$found_la" ;;
9579 libdir
="$save_libdir"
9580 for dep
in $dependency_libs; do
9583 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9584 if test "X$additional_libdir" != "X/usr/lib"; then
9586 if test "X$additional_libdir" = "X/usr/local/lib"; then
9587 if test -n "$GCC"; then
9589 linux
*) haveit
=yes;;
9593 if test -z "$haveit"; then
9595 for x
in $LDFLAGS $LIBEXPAT; do
9597 acl_save_prefix
="$prefix"
9598 prefix
="$acl_final_prefix"
9599 acl_save_exec_prefix
="$exec_prefix"
9600 exec_prefix
="$acl_final_exec_prefix"
9602 exec_prefix
="$acl_save_exec_prefix"
9603 prefix
="$acl_save_prefix"
9605 if test "X$x" = "X-L$additional_libdir"; then
9610 if test -z "$haveit"; then
9611 if test -d "$additional_libdir"; then
9612 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
9616 for x
in $LDFLAGS $LTLIBEXPAT; do
9618 acl_save_prefix
="$prefix"
9619 prefix
="$acl_final_prefix"
9620 acl_save_exec_prefix
="$exec_prefix"
9621 exec_prefix
="$acl_final_exec_prefix"
9623 exec_prefix
="$acl_save_exec_prefix"
9624 prefix
="$acl_save_prefix"
9626 if test "X$x" = "X-L$additional_libdir"; then
9631 if test -z "$haveit"; then
9632 if test -d "$additional_libdir"; then
9633 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
9640 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9641 if test "$enable_rpath" != no
; then
9643 for x
in $rpathdirs; do
9644 if test "X$x" = "X$dir"; then
9649 if test -z "$haveit"; then
9650 rpathdirs
="$rpathdirs $dir"
9653 for x
in $ltrpathdirs; do
9654 if test "X$x" = "X$dir"; then
9659 if test -z "$haveit"; then
9660 ltrpathdirs
="$ltrpathdirs $dir"
9665 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9668 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9671 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
9672 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
9678 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9679 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
9685 if test "X$rpathdirs" != "X"; then
9686 if test -n "$hardcode_libdir_separator"; then
9688 for found_dir
in $rpathdirs; do
9689 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9691 acl_save_libdir
="$libdir"
9693 eval flag
=\"$hardcode_libdir_flag_spec\"
9694 libdir
="$acl_save_libdir"
9695 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9697 for found_dir
in $rpathdirs; do
9698 acl_save_libdir
="$libdir"
9700 eval flag
=\"$hardcode_libdir_flag_spec\"
9701 libdir
="$acl_save_libdir"
9702 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9706 if test "X$ltrpathdirs" != "X"; then
9707 for found_dir
in $ltrpathdirs; do
9708 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9713 ac_save_CPPFLAGS
="$CPPFLAGS"
9715 for element
in $INCEXPAT; do
9717 for x
in $CPPFLAGS; do
9719 acl_save_prefix
="$prefix"
9720 prefix
="$acl_final_prefix"
9721 acl_save_exec_prefix
="$exec_prefix"
9722 exec_prefix
="$acl_final_exec_prefix"
9724 exec_prefix
="$acl_save_exec_prefix"
9725 prefix
="$acl_save_prefix"
9727 if test "X$x" = "X$element"; then
9732 if test -z "$haveit"; then
9733 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9739 $as_echo_n "checking for libexpat... " >&6; }
9740 if ${ac_cv_libexpat+:} false
; then :
9741 $as_echo_n "(cached) " >&6
9744 ac_save_LIBS
="$LIBS"
9745 LIBS
="$LIBS $LIBEXPAT"
9746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9747 /* end confdefs.h. */
9752 XML_Parser p = XML_ParserCreate (0);
9757 if ac_fn_c_try_link
"$LINENO"; then :
9762 rm -f core conftest.err conftest.
$ac_objext \
9763 conftest
$ac_exeext conftest.
$ac_ext
9764 LIBS
="$ac_save_LIBS"
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
9768 $as_echo "$ac_cv_libexpat" >&6; }
9769 if test "$ac_cv_libexpat" = yes; then
9772 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
9775 $as_echo_n "checking how to link with libexpat... " >&6; }
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
9777 $as_echo "$LIBEXPAT" >&6; }
9780 CPPFLAGS
="$ac_save_CPPFLAGS"
9790 if test "$HAVE_LIBEXPAT" != yes; then
9791 if test "$with_expat" = yes; then
9792 as_fn_error $?
"expat is missing or unusable" "$LINENO" 5
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
9795 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
9799 LIBS
="$LIBS $LIBEXPAT"
9800 for ac_func
in XML_StopParser
9802 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
9803 if test "x$ac_cv_func_XML_StopParser" = xyes
; then :
9804 cat >>confdefs.h
<<_ACEOF
9805 #define HAVE_XML_STOPPARSER 1
9816 # Check whether --with-mpfr was given.
9817 if test "${with_mpfr+set}" = set; then :
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5
9824 $as_echo_n "checking whether to use MPFR... " >&6; }
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5
9826 $as_echo "$with_mpfr" >&6; }
9828 if test "${with_mpfr}" = no
; then
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5
9830 $as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;}
9843 acl_save_prefix
="$prefix"
9844 prefix
="$acl_final_prefix"
9845 acl_save_exec_prefix
="$exec_prefix"
9846 exec_prefix
="$acl_final_exec_prefix"
9848 eval additional_includedir
=\"$includedir\"
9849 eval additional_libdir
=\"$libdir\"
9851 exec_prefix
="$acl_save_exec_prefix"
9852 prefix
="$acl_save_prefix"
9855 # Check whether --with-libmpfr-prefix was given.
9856 if test "${with_libmpfr_prefix+set}" = set; then :
9857 withval
=$with_libmpfr_prefix;
9858 if test "X$withval" = "Xno"; then
9861 if test "X$withval" = "X"; then
9863 acl_save_prefix
="$prefix"
9864 prefix
="$acl_final_prefix"
9865 acl_save_exec_prefix
="$exec_prefix"
9866 exec_prefix
="$acl_final_exec_prefix"
9868 eval additional_includedir
=\"$includedir\"
9869 eval additional_libdir
=\"$libdir\"
9871 exec_prefix
="$acl_save_exec_prefix"
9872 prefix
="$acl_save_prefix"
9875 additional_includedir
="$withval/include"
9876 additional_libdir
="$withval/lib"
9887 names_already_handled
=
9888 names_next_round
='mpfr gmp'
9889 while test -n "$names_next_round"; do
9890 names_this_round
="$names_next_round"
9892 for name
in $names_this_round; do
9894 for n
in $names_already_handled; do
9895 if test "$n" = "$name"; then
9900 if test -z "$already_handled"; then
9901 names_already_handled
="$names_already_handled $name"
9902 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9903 eval value
=\"\
$HAVE_LIB$uppername\"
9904 if test -n "$value"; then
9905 if test "$value" = yes; then
9906 eval value
=\"\
$LIB$uppername\"
9907 test -z "$value" || LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$value"
9908 eval value
=\"\
$LTLIB$uppername\"
9909 test -z "$value" || LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$value"
9918 if test $use_additional = yes; then
9919 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9920 found_dir
="$additional_libdir"
9921 found_so
="$additional_libdir/lib$name.$shlibext"
9922 if test -f "$additional_libdir/lib$name.la"; then
9923 found_la
="$additional_libdir/lib$name.la"
9926 if test -f "$additional_libdir/lib$name.$libext"; then
9927 found_dir
="$additional_libdir"
9928 found_a
="$additional_libdir/lib$name.$libext"
9929 if test -f "$additional_libdir/lib$name.la"; then
9930 found_la
="$additional_libdir/lib$name.la"
9935 if test "X$found_dir" = "X"; then
9936 for x
in $LDFLAGS $LTLIBMPFR; do
9938 acl_save_prefix
="$prefix"
9939 prefix
="$acl_final_prefix"
9940 acl_save_exec_prefix
="$exec_prefix"
9941 exec_prefix
="$acl_final_exec_prefix"
9943 exec_prefix
="$acl_save_exec_prefix"
9944 prefix
="$acl_save_prefix"
9948 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9949 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9951 found_so
="$dir/lib$name.$shlibext"
9952 if test -f "$dir/lib$name.la"; then
9953 found_la
="$dir/lib$name.la"
9956 if test -f "$dir/lib$name.$libext"; then
9958 found_a
="$dir/lib$name.$libext"
9959 if test -f "$dir/lib$name.la"; then
9960 found_la
="$dir/lib$name.la"
9966 if test "X$found_dir" != "X"; then
9971 if test "X$found_dir" != "X"; then
9972 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$found_dir -l$name"
9973 if test "X$found_so" != "X"; then
9974 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9975 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
9978 for x
in $ltrpathdirs; do
9979 if test "X$x" = "X$found_dir"; then
9984 if test -z "$haveit"; then
9985 ltrpathdirs
="$ltrpathdirs $found_dir"
9987 if test "$hardcode_direct" = yes; then
9988 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
9990 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9991 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
9993 for x
in $rpathdirs; do
9994 if test "X$x" = "X$found_dir"; then
9999 if test -z "$haveit"; then
10000 rpathdirs
="$rpathdirs $found_dir"
10004 for x
in $LDFLAGS $LIBMPFR; do
10006 acl_save_prefix
="$prefix"
10007 prefix
="$acl_final_prefix"
10008 acl_save_exec_prefix
="$exec_prefix"
10009 exec_prefix
="$acl_final_exec_prefix"
10011 exec_prefix
="$acl_save_exec_prefix"
10012 prefix
="$acl_save_prefix"
10014 if test "X$x" = "X-L$found_dir"; then
10019 if test -z "$haveit"; then
10020 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir"
10022 if test "$hardcode_minus_L" != no
; then
10023 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10025 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10031 if test "X$found_a" != "X"; then
10032 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_a"
10034 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir -l$name"
10037 additional_includedir
=
10038 case "$found_dir" in
10040 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10041 additional_includedir
="$basedir/include"
10044 if test "X$additional_includedir" != "X"; then
10045 if test "X$additional_includedir" != "X/usr/include"; then
10047 if test "X$additional_includedir" = "X/usr/local/include"; then
10048 if test -n "$GCC"; then
10050 linux
*) haveit
=yes;;
10054 if test -z "$haveit"; then
10055 for x
in $CPPFLAGS $INCMPFR; do
10057 acl_save_prefix
="$prefix"
10058 prefix
="$acl_final_prefix"
10059 acl_save_exec_prefix
="$exec_prefix"
10060 exec_prefix
="$acl_final_exec_prefix"
10062 exec_prefix
="$acl_save_exec_prefix"
10063 prefix
="$acl_save_prefix"
10065 if test "X$x" = "X-I$additional_includedir"; then
10070 if test -z "$haveit"; then
10071 if test -d "$additional_includedir"; then
10072 INCMPFR
="${INCMPFR}${INCMPFR:+ }-I$additional_includedir"
10078 if test -n "$found_la"; then
10079 save_libdir
="$libdir"
10080 case "$found_la" in
10081 */* |
*\\*) .
"$found_la" ;;
10082 *) .
"./$found_la" ;;
10084 libdir
="$save_libdir"
10085 for dep
in $dependency_libs; do
10088 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10089 if test "X$additional_libdir" != "X/usr/lib"; then
10091 if test "X$additional_libdir" = "X/usr/local/lib"; then
10092 if test -n "$GCC"; then
10094 linux
*) haveit
=yes;;
10098 if test -z "$haveit"; then
10100 for x
in $LDFLAGS $LIBMPFR; do
10102 acl_save_prefix
="$prefix"
10103 prefix
="$acl_final_prefix"
10104 acl_save_exec_prefix
="$exec_prefix"
10105 exec_prefix
="$acl_final_exec_prefix"
10107 exec_prefix
="$acl_save_exec_prefix"
10108 prefix
="$acl_save_prefix"
10110 if test "X$x" = "X-L$additional_libdir"; then
10115 if test -z "$haveit"; then
10116 if test -d "$additional_libdir"; then
10117 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$additional_libdir"
10121 for x
in $LDFLAGS $LTLIBMPFR; do
10123 acl_save_prefix
="$prefix"
10124 prefix
="$acl_final_prefix"
10125 acl_save_exec_prefix
="$exec_prefix"
10126 exec_prefix
="$acl_final_exec_prefix"
10128 exec_prefix
="$acl_save_exec_prefix"
10129 prefix
="$acl_save_prefix"
10131 if test "X$x" = "X-L$additional_libdir"; then
10136 if test -z "$haveit"; then
10137 if test -d "$additional_libdir"; then
10138 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$additional_libdir"
10145 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10146 if test "$enable_rpath" != no
; then
10148 for x
in $rpathdirs; do
10149 if test "X$x" = "X$dir"; then
10154 if test -z "$haveit"; then
10155 rpathdirs
="$rpathdirs $dir"
10158 for x
in $ltrpathdirs; do
10159 if test "X$x" = "X$dir"; then
10164 if test -z "$haveit"; then
10165 ltrpathdirs
="$ltrpathdirs $dir"
10170 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10173 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10176 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$dep"
10177 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$dep"
10183 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10184 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l$name"
10190 if test "X$rpathdirs" != "X"; then
10191 if test -n "$hardcode_libdir_separator"; then
10193 for found_dir
in $rpathdirs; do
10194 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10196 acl_save_libdir
="$libdir"
10198 eval flag
=\"$hardcode_libdir_flag_spec\"
10199 libdir
="$acl_save_libdir"
10200 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10202 for found_dir
in $rpathdirs; do
10203 acl_save_libdir
="$libdir"
10204 libdir
="$found_dir"
10205 eval flag
=\"$hardcode_libdir_flag_spec\"
10206 libdir
="$acl_save_libdir"
10207 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10211 if test "X$ltrpathdirs" != "X"; then
10212 for found_dir
in $ltrpathdirs; do
10213 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-R$found_dir"
10218 ac_save_CPPFLAGS
="$CPPFLAGS"
10220 for element
in $INCMPFR; do
10222 for x
in $CPPFLAGS; do
10224 acl_save_prefix
="$prefix"
10225 prefix
="$acl_final_prefix"
10226 acl_save_exec_prefix
="$exec_prefix"
10227 exec_prefix
="$acl_final_exec_prefix"
10229 exec_prefix
="$acl_save_exec_prefix"
10230 prefix
="$acl_save_prefix"
10232 if test "X$x" = "X$element"; then
10237 if test -z "$haveit"; then
10238 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpfr" >&5
10244 $as_echo_n "checking for libmpfr... " >&6; }
10245 if ${ac_cv_libmpfr+:} false
; then :
10246 $as_echo_n "(cached) " >&6
10249 ac_save_LIBS
="$LIBS"
10250 LIBS
="$LIBS $LIBMPFR"
10251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10252 /* end confdefs.h. */
10257 mpfr_exp_t exp; mpfr_t x;
10258 mpfr_frexp (&exp, x, x, MPFR_RNDN);
10263 if ac_fn_c_try_link
"$LINENO"; then :
10268 rm -f core conftest.err conftest.
$ac_objext \
10269 conftest
$ac_exeext conftest.
$ac_ext
10270 LIBS
="$ac_save_LIBS"
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmpfr" >&5
10274 $as_echo "$ac_cv_libmpfr" >&6; }
10275 if test "$ac_cv_libmpfr" = yes; then
10278 $as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libmpfr" >&5
10281 $as_echo_n "checking how to link with libmpfr... " >&6; }
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPFR" >&5
10283 $as_echo "$LIBMPFR" >&6; }
10286 CPPFLAGS
="$ac_save_CPPFLAGS"
10296 if test "$HAVE_LIBMPFR" != yes; then
10297 if test "$with_mpfr" = yes; then
10298 as_fn_error $?
"MPFR is missing or unusable" "$LINENO" 5
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR is missing or unusable; some features may be unavailable." >&5
10301 $as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;}
10306 # --------------------- #
10307 # Check for libpython. #
10308 # --------------------- #
10315 # Check whether --with-python was given.
10316 if test "${with_python+set}" = set; then :
10317 withval
=$with_python;
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10323 $as_echo_n "checking whether to use python... " >&6; }
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10325 $as_echo "$with_python" >&6; }
10327 if test "${with_python}" = no
; then
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10329 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10332 case "${with_python}" in
10334 if test -d ${with_python}; then
10335 # Assume the python binary is ${with_python}/bin/python.
10336 python_prog
="${with_python}/bin/python"
10338 # If python does not exit ${with_python}/bin, then try in
10339 # ${with_python}. On Windows/MinGW, this is where the Python
10341 if test ! -x "${python_prog}"; then
10342 python_prog
="${with_python}/python"
10345 if test ! -x "${python_prog}"; then
10346 # Fall back to gdb 7.0/7.1 behaviour.
10347 python_prog
=missing
10348 python_prefix
=${with_python}
10350 elif test -x "${with_python}"; then
10351 # While we can't run python compiled for $host (unless host == build),
10352 # the user could write a script that provides the needed information,
10353 # so we support that.
10354 python_prog
=${with_python}
10357 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
10361 # Disallow --with-python=foo/bar.
10362 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
10365 # The user has either specified auto, yes, or the name of the python
10366 # program assumed to be in $PATH.
10368 case "${with_python}" in
10370 if test ${build} = ${host}; then
10371 # Extract the first word of "python", so it can be a program name with args.
10372 set dummy python
; ac_word
=$2
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10374 $as_echo_n "checking for $ac_word... " >&6; }
10375 if ${ac_cv_path_python_prog_path+:} false
; then :
10376 $as_echo_n "(cached) " >&6
10378 case $python_prog_path in
10380 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10383 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10384 for as_dir
in $PATH
10387 test -z "$as_dir" && as_dir
=.
10388 for ac_exec_ext
in '' $ac_executable_extensions; do
10389 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10390 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10398 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10402 python_prog_path
=$ac_cv_path_python_prog_path
10403 if test -n "$python_prog_path"; then
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10405 $as_echo "$python_prog_path" >&6; }
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10408 $as_echo "no" >&6; }
10412 if test "${python_prog_path}" = missing
; then
10413 python_prog
=missing
10415 python_prog
=${python_prog_path}
10418 # Not much we can do except assume the cross-compiler will find the
10420 python_prog
=missing
10424 # While we can't run python compiled for $host (unless host == build),
10425 # the user could write a script that provides the needed information,
10426 # so we support that.
10427 python_prog
="${with_python}"
10428 # Extract the first word of "${python_prog}", so it can be a program name with args.
10429 set dummy
${python_prog}; ac_word
=$2
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10431 $as_echo_n "checking for $ac_word... " >&6; }
10432 if ${ac_cv_path_python_prog_path+:} false
; then :
10433 $as_echo_n "(cached) " >&6
10435 case $python_prog_path in
10437 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10440 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10441 for as_dir
in $PATH
10444 test -z "$as_dir" && as_dir
=.
10445 for ac_exec_ext
in '' $ac_executable_extensions; do
10446 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10447 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10455 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10459 python_prog_path
=$ac_cv_path_python_prog_path
10460 if test -n "$python_prog_path"; then
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10462 $as_echo "$python_prog_path" >&6; }
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10465 $as_echo "no" >&6; }
10469 if test "${python_prog_path}" = missing
; then
10470 as_fn_error $?
"unable to find python program ${python_prog}" "$LINENO" 5
10476 if test "${python_prog}" != missing
; then
10477 # We have a python program to use, but it may be too old.
10478 # Don't flag an error for --with-python=auto (the default).
10479 have_python_config
=yes
10480 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
10481 if test $?
!= 0; then
10482 have_python_config
=failed
10483 if test "${with_python}" != auto
; then
10484 as_fn_error $?
"failure running python-config --includes" "$LINENO" 5
10487 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10488 if test $?
!= 0; then
10489 have_python_config
=failed
10490 if test "${with_python}" != auto
; then
10491 as_fn_error $?
"failure running python-config --ldflags" "$LINENO" 5
10494 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10495 if test $?
!= 0; then
10496 have_python_config
=failed
10497 if test "${with_python}" != auto
; then
10498 as_fn_error $?
"failure running python-config --exec-prefix" "$LINENO" 5
10502 # We do not have a python executable we can use to determine where
10503 # to find the Python headers and libs. We cannot guess the include
10504 # path from the python_prefix either, because that include path
10505 # depends on the Python version. So, there is nothing much we can
10506 # do except assume that the compiler will be able to find those files.
10509 have_python_config
=no
10512 # If we have python-config, only try the configuration it provides.
10513 # Otherwise fallback on the old way of trying different versions of
10517 if test "${have_python_config}" = yes; then
10518 # Determine the Python version by extracting "-lpython<version>"
10519 # part of the python_libs. <version> is usually X.Y with X and Y
10520 # being decimal numbers, but can also be XY (seen on Windows).
10522 # The extraction is performed using sed with a regular expression.
10523 # Initially, the regexp used was using the '?' quantifier to make
10524 # the dot in the version number optional. Unfortunately, this
10525 # does not work with non-GNU versions of sed because, because of
10526 # what looks like a limitation (the '?' quantifier does not work
10527 # with back-references). We work around this limitation by using
10528 # the '*' quantifier instead. It means that, in theory, we might
10529 # match unexpected version strings such as "-lpython2..7", but
10530 # this seems unlikely in practice. And even if that happens,
10531 # an error will be triggered later on, when checking that version
10533 python_version
=`echo " ${python_libs} " \
10534 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
10535 case "${python_version}" in
10538 version
=${python_version}
10540 new_CPPFLAGS
=${python_includes}
10541 new_LIBS
=${python_libs}
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10543 $as_echo_n "checking for ${version}... " >&6; }
10544 save_CPPFLAGS
=$CPPFLAGS
10546 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10547 LIBS
="$new_LIBS $LIBS"
10548 found_usable_python
=no
10549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10550 /* end confdefs.h. */
10551 #include "Python.h"
10560 if ac_fn_c_try_link
"$LINENO"; then :
10561 have_libpython
=${version}
10562 found_usable_python
=yes
10563 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10564 PYTHON_LIBS
=$new_LIBS
10566 rm -f core conftest.err conftest.
$ac_objext \
10567 conftest
$ac_exeext conftest.
$ac_ext
10568 CPPFLAGS
=$save_CPPFLAGS
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10571 $as_echo "${found_usable_python}" >&6; }
10575 as_fn_error $?
"unable to determine python version from ${python_libs}" "$LINENO" 5
10578 elif test "${have_python_config}" != failed
; then
10579 if test "${have_libpython}" = no
; then
10583 new_CPPFLAGS
=${python_includes}
10584 new_LIBS
="-lpython2.7 ${python_libs}"
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10586 $as_echo_n "checking for ${version}... " >&6; }
10587 save_CPPFLAGS
=$CPPFLAGS
10589 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10590 LIBS
="$new_LIBS $LIBS"
10591 found_usable_python
=no
10592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10593 /* end confdefs.h. */
10594 #include "Python.h"
10603 if ac_fn_c_try_link
"$LINENO"; then :
10604 have_libpython
=${version}
10605 found_usable_python
=yes
10606 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10607 PYTHON_LIBS
=$new_LIBS
10609 rm -f core conftest.err conftest.
$ac_objext \
10610 conftest
$ac_exeext conftest.
$ac_ext
10611 CPPFLAGS
=$save_CPPFLAGS
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10614 $as_echo "${found_usable_python}" >&6; }
10617 if test "${have_libpython}" = no
; then
10621 new_CPPFLAGS
=${python_includes}
10622 new_LIBS
="-lpython2.6 ${python_libs}"
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10624 $as_echo_n "checking for ${version}... " >&6; }
10625 save_CPPFLAGS
=$CPPFLAGS
10627 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10628 LIBS
="$new_LIBS $LIBS"
10629 found_usable_python
=no
10630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10631 /* end confdefs.h. */
10632 #include "Python.h"
10641 if ac_fn_c_try_link
"$LINENO"; then :
10642 have_libpython
=${version}
10643 found_usable_python
=yes
10644 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10645 PYTHON_LIBS
=$new_LIBS
10647 rm -f core conftest.err conftest.
$ac_objext \
10648 conftest
$ac_exeext conftest.
$ac_ext
10649 CPPFLAGS
=$save_CPPFLAGS
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10652 $as_echo "${found_usable_python}" >&6; }
10655 if test ${have_libpython} = no
; then
10659 new_CPPFLAGS
=${python_includes}
10660 new_LIBS
="-lpython2.5 ${python_libs}"
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10662 $as_echo_n "checking for ${version}... " >&6; }
10663 save_CPPFLAGS
=$CPPFLAGS
10665 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10666 LIBS
="$new_LIBS $LIBS"
10667 found_usable_python
=no
10668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10669 /* end confdefs.h. */
10670 #include "Python.h"
10679 if ac_fn_c_try_link
"$LINENO"; then :
10680 have_libpython
=${version}
10681 found_usable_python
=yes
10682 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10683 PYTHON_LIBS
=$new_LIBS
10685 rm -f core conftest.err conftest.
$ac_objext \
10686 conftest
$ac_exeext conftest.
$ac_ext
10687 CPPFLAGS
=$save_CPPFLAGS
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10690 $as_echo "${found_usable_python}" >&6; }
10693 if test ${have_libpython} = no
; then
10697 new_CPPFLAGS
=${python_includes}
10698 new_LIBS
="-lpython2.4 ${python_libs}"
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10700 $as_echo_n "checking for ${version}... " >&6; }
10701 save_CPPFLAGS
=$CPPFLAGS
10703 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10704 LIBS
="$new_LIBS $LIBS"
10705 found_usable_python
=no
10706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10707 /* end confdefs.h. */
10708 #include "Python.h"
10717 if ac_fn_c_try_link
"$LINENO"; then :
10718 have_libpython
=${version}
10719 found_usable_python
=yes
10720 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10721 PYTHON_LIBS
=$new_LIBS
10723 rm -f core conftest.err conftest.
$ac_objext \
10724 conftest
$ac_exeext conftest.
$ac_ext
10725 CPPFLAGS
=$save_CPPFLAGS
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10728 $as_echo "${found_usable_python}" >&6; }
10732 if test "${have_libpython}" = python2.7
-o "${have_libpython}" = python27
; then
10734 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
10736 elif test "${have_libpython}" = python2.6
-o "${have_libpython}" = python26
; then
10738 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
10740 elif test "${have_libpython}" = python2.5
-o "${have_libpython}" = python25
; then
10742 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
10744 elif test "${have_libpython}" = python2.4
-o "${have_libpython}" = python24
; then
10746 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
10750 if test "${have_libpython}" = no
; then
10751 case "${with_python}" in
10753 as_fn_error $?
"python is missing or unusable" "$LINENO" 5
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10757 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10760 as_fn_error $?
"no usable python found at ${with_python}" "$LINENO" 5
10764 if test -n "${python_prefix}"; then
10766 cat >>confdefs.h
<<_ACEOF
10767 #define WITH_PYTHON_PATH "${python_prefix}"
10771 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
10772 if test "x$prefix" = xNONE
; then
10773 test_prefix
=/usr
/local
10775 test_prefix
=$prefix
10778 test_prefix
=$exec_prefix
10781 case ${python_prefix} in
10782 "${test_prefix}"|
"${test_prefix}/"*|\
10783 '${exec_prefix}'|
'${exec_prefix}/'*)
10788 cat >>confdefs.h
<<_ACEOF
10789 #define PYTHON_PATH_RELOCATABLE $value
10797 if test "${have_libpython}" != no
; then
10799 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10801 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10802 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10803 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
10804 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
10805 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
10807 # Flags needed to compile Python code (taken from python-config --cflags).
10808 # We cannot call python-config directly because it will output whatever was
10809 # used when compiling the Python interpreter itself, including flags which
10810 # would make the python-related objects be compiled differently from the
10811 # rest of GDB (e.g., -O2 and -fPIC).
10812 if test "${GCC}" = yes; then
10813 tentative_python_cflags
="-fno-strict-aliasing -fwrapv"
10814 # Python headers recommend -DNDEBUG, but it's unclear if that just
10815 # refers to building Python itself. In release mode, though, it
10816 # doesn't hurt for the Python code in gdb to follow.
10817 $development || tentative_python_cflags
="$tentative_python_cflags -DNDEBUG"
10820 if test "x${tentative_python_cflags}" != x
; then
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10822 $as_echo_n "checking compiler flags for python code... " >&6; }
10823 for flag
in ${tentative_python_cflags}; do
10824 # Check that the compiler accepts it
10825 saved_CFLAGS
="$CFLAGS"
10826 CFLAGS
="$CFLAGS $flag"
10827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10828 /* end confdefs.h. */
10838 if ac_fn_c_try_compile
"$LINENO"; then :
10839 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
10841 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10842 CFLAGS
="$saved_CFLAGS"
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
10845 $as_echo "${PYTHON_CFLAGS}" >&6; }
10848 # On x64 Windows, Python's include headers, and pyconfig.h in
10849 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
10850 # version of Windows. Unfortunately, MS_WIN64 is only defined if
10851 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
10852 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
10853 # The issue was reported to the Python community, but still isn't
10854 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
10856 case "$gdb_host" in
10858 if test "${GCC}" = yes; then
10859 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
10864 # Note that "python -m threading" cannot be used to check for
10865 # threading support due to a bug in Python 2.7.3
10866 # (http://bugs.python.org/issue15567).
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
10868 $as_echo_n "checking whether python supports threads... " >&6; }
10869 saved_CPPFLAGS
="${CPPFLAGS}"
10870 CPPFLAGS
="${PYTHON_CPPFLAGS}"
10871 # Note that the test is reversed so that python_has_threads=yes on
10872 # unexpected failures.
10873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10874 /* end confdefs.h. */
10876 #include <Python.h>
10882 if ac_fn_c_try_cpp
"$LINENO"; then :
10883 python_has_threads
=no
10885 python_has_threads
=yes
10887 rm -f conftest.err conftest.i conftest.
$ac_ext
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
10889 $as_echo "${python_has_threads}" >&6; }
10890 CPPFLAGS
="${saved_CPPFLAGS}"
10892 # Even if Python support is not compiled in, we need to have this file
10893 # included so that the "python" command, et.al., still exists.
10894 CONFIG_OBS
="$CONFIG_OBS python/python.o"
10895 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
10898 # Work around Python http://bugs.python.org/issue10112. See also
10899 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
10900 # no effect. Note that the only test after this that uses Python is
10901 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
10902 # run without -export-dynamic too.
10903 PYTHON_LIBS
=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
10908 if test "${have_libpython}" != no
; then
10910 HAVE_PYTHON_FALSE
='#'
10912 HAVE_PYTHON_TRUE
='#'
10917 # -------------------- #
10918 # Check for libguile. #
10919 # -------------------- #
10926 # Check whether --with-guile was given.
10927 if test "${with_guile+set}" = set; then :
10928 withval
=$with_guile;
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
10934 $as_echo_n "checking whether to use guile... " >&6; }
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
10936 $as_echo "$with_guile" >&6; }
10938 # Extract the first word of "pkg-config", so it can be a program name with args.
10939 set dummy pkg-config
; ac_word
=$2
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10941 $as_echo_n "checking for $ac_word... " >&6; }
10942 if ${ac_cv_path_pkg_config_prog_path+:} false
; then :
10943 $as_echo_n "(cached) " >&6
10945 case $pkg_config_prog_path in
10947 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
10950 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10951 for as_dir
in $PATH
10954 test -z "$as_dir" && as_dir
=.
10955 for ac_exec_ext
in '' $ac_executable_extensions; do
10956 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10957 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10965 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
10969 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
10970 if test -n "$pkg_config_prog_path"; then
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
10972 $as_echo "$pkg_config_prog_path" >&6; }
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10975 $as_echo "no" >&6; }
10980 try_guile_versions
="guile-2.0"
10982 case "${with_guile}" in
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
10985 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
10988 if test "${pkg_config_prog_path}" = "missing"; then
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
10990 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
10993 pkg_config
=${pkg_config_prog_path}
10994 guile_version_list
=${try_guile_versions}
10997 found_usable_guile
=checking
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
10999 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11000 for guile_version
in ${guile_version_list}; do
11001 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11002 if test $?
!= 0; then
11005 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11006 if test $?
!= 0; then
11007 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11009 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11010 if test $?
!= 0; then
11011 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11013 found_usable_guile
=${guile_version}
11016 if test "${found_usable_guile}" = "checking"; then
11017 if test "${flag_errors}" = "yes"; then
11018 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11020 found_usable_guile
=no
11023 if test "${found_usable_guile}" != no
; then
11024 save_CPPFLAGS
=$CPPFLAGS
11026 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11027 LIBS
="$LIBS $new_LIBS"
11028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11029 /* end confdefs.h. */
11030 #include "libguile.h"
11039 if ac_fn_c_try_link
"$LINENO"; then :
11041 GUILE_CPPFLAGS
=$new_CPPFLAGS
11042 GUILE_LIBS
=$new_LIBS
11044 found_usable_guile
=no
11046 rm -f core conftest.err conftest.
$ac_objext \
11047 conftest
$ac_exeext conftest.
$ac_ext
11048 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11049 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11051 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11056 CPPFLAGS
=$save_CPPFLAGS
11058 if test "${found_usable_guile}" = no
; then
11059 if test "${flag_errors}" = yes; then
11060 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11062 as_fn_error $?
"linking guile version ${guile_version} test program failed
11063 See \`config.log' for more details" "$LINENO" 5; }
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11068 $as_echo "${found_usable_guile}" >&6; }
11073 if test "${pkg_config_prog_path}" = "missing"; then
11074 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11077 pkg_config
=${pkg_config_prog_path}
11078 guile_version_list
=${try_guile_versions}
11081 found_usable_guile
=checking
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11083 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11084 for guile_version
in ${guile_version_list}; do
11085 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11086 if test $?
!= 0; then
11089 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11090 if test $?
!= 0; then
11091 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11093 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11094 if test $?
!= 0; then
11095 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11097 found_usable_guile
=${guile_version}
11100 if test "${found_usable_guile}" = "checking"; then
11101 if test "${flag_errors}" = "yes"; then
11102 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11104 found_usable_guile
=no
11107 if test "${found_usable_guile}" != no
; then
11108 save_CPPFLAGS
=$CPPFLAGS
11110 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11111 LIBS
="$LIBS $new_LIBS"
11112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11113 /* end confdefs.h. */
11114 #include "libguile.h"
11123 if ac_fn_c_try_link
"$LINENO"; then :
11125 GUILE_CPPFLAGS
=$new_CPPFLAGS
11126 GUILE_LIBS
=$new_LIBS
11128 found_usable_guile
=no
11130 rm -f core conftest.err conftest.
$ac_objext \
11131 conftest
$ac_exeext conftest.
$ac_ext
11132 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11133 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11135 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11140 CPPFLAGS
=$save_CPPFLAGS
11142 if test "${found_usable_guile}" = no
; then
11143 if test "${flag_errors}" = yes; then
11144 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11146 as_fn_error $?
"linking guile version ${guile_version} test program failed
11147 See \`config.log' for more details" "$LINENO" 5; }
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11152 $as_echo "${found_usable_guile}" >&6; }
11156 if test -x "${with_guile}"; then
11158 pkg_config
=${with_guile}
11159 guile_version_list
=${try_guile_versions}
11162 found_usable_guile
=checking
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11164 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11165 for guile_version
in ${guile_version_list}; do
11166 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11167 if test $?
!= 0; then
11170 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11171 if test $?
!= 0; then
11172 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11174 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11175 if test $?
!= 0; then
11176 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11178 found_usable_guile
=${guile_version}
11181 if test "${found_usable_guile}" = "checking"; then
11182 if test "${flag_errors}" = "yes"; then
11183 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11185 found_usable_guile
=no
11188 if test "${found_usable_guile}" != no
; then
11189 save_CPPFLAGS
=$CPPFLAGS
11191 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11192 LIBS
="$LIBS $new_LIBS"
11193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11194 /* end confdefs.h. */
11195 #include "libguile.h"
11204 if ac_fn_c_try_link
"$LINENO"; then :
11206 GUILE_CPPFLAGS
=$new_CPPFLAGS
11207 GUILE_LIBS
=$new_LIBS
11209 found_usable_guile
=no
11211 rm -f core conftest.err conftest.
$ac_objext \
11212 conftest
$ac_exeext conftest.
$ac_ext
11213 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11214 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11216 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11221 CPPFLAGS
=$save_CPPFLAGS
11223 if test "${found_usable_guile}" = no
; then
11224 if test "${flag_errors}" = yes; then
11225 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11227 as_fn_error $?
"linking guile version ${guile_version} test program failed
11228 See \`config.log' for more details" "$LINENO" 5; }
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11233 $as_echo "${found_usable_guile}" >&6; }
11236 as_fn_error $?
"Guile config program not executable: ${with_guile}" "$LINENO" 5
11240 # Disallow --with=guile="" and --with-guile=foo/bar.
11241 as_fn_error $?
"invalid value for --with-guile" "$LINENO" 5
11244 # A space separate list of guile versions to try, in order.
11245 if test "${pkg_config_prog_path}" = "missing"; then
11246 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11249 pkg_config
=${pkg_config_prog_path}
11250 guile_version_list
=${with_guile}
11253 found_usable_guile
=checking
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11255 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11256 for guile_version
in ${guile_version_list}; do
11257 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11258 if test $?
!= 0; then
11261 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11262 if test $?
!= 0; then
11263 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11265 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11266 if test $?
!= 0; then
11267 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11269 found_usable_guile
=${guile_version}
11272 if test "${found_usable_guile}" = "checking"; then
11273 if test "${flag_errors}" = "yes"; then
11274 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11276 found_usable_guile
=no
11279 if test "${found_usable_guile}" != no
; then
11280 save_CPPFLAGS
=$CPPFLAGS
11282 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11283 LIBS
="$LIBS $new_LIBS"
11284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11285 /* end confdefs.h. */
11286 #include "libguile.h"
11295 if ac_fn_c_try_link
"$LINENO"; then :
11297 GUILE_CPPFLAGS
=$new_CPPFLAGS
11298 GUILE_LIBS
=$new_LIBS
11300 found_usable_guile
=no
11302 rm -f core conftest.err conftest.
$ac_objext \
11303 conftest
$ac_exeext conftest.
$ac_ext
11304 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11305 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11307 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11312 CPPFLAGS
=$save_CPPFLAGS
11314 if test "${found_usable_guile}" = no
; then
11315 if test "${flag_errors}" = yes; then
11316 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11318 as_fn_error $?
"linking guile version ${guile_version} test program failed
11319 See \`config.log' for more details" "$LINENO" 5; }
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11324 $as_echo "${found_usable_guile}" >&6; }
11329 if test "${have_libguile}" != no
; then
11330 case "${with_guile}" in
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11334 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11335 if ${ac_cv_guild_program_name+:} false
; then :
11336 $as_echo_n "(cached) " >&6
11338 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
11340 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11341 # the 'guild' and 'bindir' variables. In that case, try to guess
11342 # what the program name is, at the risk of getting it wrong if
11343 # Guile was configured with '--program-suffix' or similar.
11344 if test "x$ac_cv_guild_program_name" = "x"; then
11345 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
11346 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11351 $as_echo "$ac_cv_guild_program_name" >&6; }
11353 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11354 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11357 GUILD
="$ac_cv_guild_program_name"
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11364 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11365 if ${ac_cv_guild_program_name+:} false
; then :
11366 $as_echo_n "(cached) " >&6
11368 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
11370 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11371 # the 'guild' and 'bindir' variables. In that case, try to guess
11372 # what the program name is, at the risk of getting it wrong if
11373 # Guile was configured with '--program-suffix' or similar.
11374 if test "x$ac_cv_guild_program_name" = "x"; then
11375 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
11376 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11381 $as_echo "$ac_cv_guild_program_name" >&6; }
11383 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11384 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11387 GUILD
="$ac_cv_guild_program_name"
11394 if test "$cross_compiling" = no
; then
11397 GUILD_TARGET_FLAG
="--target=$host"
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
11404 $as_echo_n "checking whether guild supports this host... " >&6; }
11405 if ${ac_cv_guild_ok+:} false
; then :
11406 $as_echo_n "(cached) " >&6
11408 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
11409 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
11416 $as_echo "$ac_cv_guild_ok" >&6; }
11418 if test "$ac_cv_guild_ok" = no
; then
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
11421 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
11425 if test "${have_libguile}" != no
; then
11427 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
11429 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
11430 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
11431 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
11432 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
11433 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
11436 save_CPPFLAGS
="$CPPFLAGS"
11438 CPPFLAGS
="$GUILE_CPPFLAGS"
11439 for ac_func
in scm_new_smob
11441 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
11442 if test "x$ac_cv_func_scm_new_smob" = xyes
; then :
11443 cat >>confdefs.h
<<_ACEOF
11444 #define HAVE_SCM_NEW_SMOB 1
11451 CPPFLAGS
="$save_CPPFLAGS"
11453 # Even if Guile support is not compiled in, we need to have these files
11455 CONFIG_OBS
="$CONFIG_OBS guile/guile.o"
11456 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
11460 if test "${have_libguile}" != no
; then
11462 HAVE_GUILE_FALSE
='#'
11464 HAVE_GUILE_TRUE
='#'
11469 # --------------------- #
11470 # Check for libmcheck. #
11471 # --------------------- #
11473 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
11474 # but turn it off if Python is enabled with threads, since -lmcheck is
11475 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
11476 # and for releases.
11477 if test \
( "${have_libpython}" = "no" -o "${python_has_threads}" = "no" \
) \
11478 && $development; then
11479 libmcheck_default
=yes
11481 libmcheck_default
=no
11484 # Check whether --enable-libmcheck was given.
11485 if test "${enable_libmcheck+set}" = set; then :
11486 enableval
=$enable_libmcheck; case "${enableval}" in
11487 yes | y
) ENABLE_LIBMCHECK
="yes" ;;
11488 no | n
) ENABLE_LIBMCHECK
="no" ;;
11489 *) as_fn_error $?
"bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
11494 if test -z "${ENABLE_LIBMCHECK}"; then
11495 ENABLE_LIBMCHECK
=${libmcheck_default}
11498 if test "$ENABLE_LIBMCHECK" = "yes" ; then
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
11500 $as_echo_n "checking for main in -lmcheck... " >&6; }
11501 if ${ac_cv_lib_mcheck_main+:} false
; then :
11502 $as_echo_n "(cached) " >&6
11504 ac_check_lib_save_LIBS
=$LIBS
11505 LIBS
="-lmcheck $LIBS"
11506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11507 /* end confdefs.h. */
11518 if ac_fn_c_try_link
"$LINENO"; then :
11519 ac_cv_lib_mcheck_main
=yes
11521 ac_cv_lib_mcheck_main
=no
11523 rm -f core conftest.err conftest.
$ac_objext \
11524 conftest
$ac_exeext conftest.
$ac_ext
11525 LIBS
=$ac_check_lib_save_LIBS
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
11528 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
11529 if test "x$ac_cv_lib_mcheck_main" = xyes
; then :
11530 cat >>confdefs.h
<<_ACEOF
11531 #define HAVE_LIBMCHECK 1
11534 LIBS
="-lmcheck $LIBS"
11541 if test "$ENABLE_LIBMCHECK" = "yes" \
11542 -a "${have_libpython}" != "no" \
11543 -a "${python_has_threads}" = "yes" ; then
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
11545 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
11549 # Check whether --with-intel_pt was given.
11550 if test "${with_intel_pt+set}" = set; then :
11551 withval
=$with_intel_pt;
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
11557 $as_echo_n "checking whether to use intel pt... " >&6; }
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
11559 $as_echo "$with_intel_pt" >&6; }
11561 if test "${with_intel_pt}" = no
; then
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
11563 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
11566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11567 /* end confdefs.h. */
11569 #include <linux/perf_event.h>
11570 #ifndef PERF_ATTR_SIZE_VER5
11575 if ac_fn_c_try_cpp
"$LINENO"; then :
11580 rm -f conftest.err conftest.i conftest.
$ac_ext
11581 if test "$perf_event" != yes; then
11582 if test "$with_intel_pt" = yes; then
11583 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
11586 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
11600 acl_save_prefix
="$prefix"
11601 prefix
="$acl_final_prefix"
11602 acl_save_exec_prefix
="$exec_prefix"
11603 exec_prefix
="$acl_final_exec_prefix"
11605 eval additional_includedir
=\"$includedir\"
11606 eval additional_libdir
=\"$libdir\"
11608 exec_prefix
="$acl_save_exec_prefix"
11609 prefix
="$acl_save_prefix"
11612 # Check whether --with-libipt-prefix was given.
11613 if test "${with_libipt_prefix+set}" = set; then :
11614 withval
=$with_libipt_prefix;
11615 if test "X$withval" = "Xno"; then
11618 if test "X$withval" = "X"; then
11620 acl_save_prefix
="$prefix"
11621 prefix
="$acl_final_prefix"
11622 acl_save_exec_prefix
="$exec_prefix"
11623 exec_prefix
="$acl_final_exec_prefix"
11625 eval additional_includedir
=\"$includedir\"
11626 eval additional_libdir
=\"$libdir\"
11628 exec_prefix
="$acl_save_exec_prefix"
11629 prefix
="$acl_save_prefix"
11632 additional_includedir
="$withval/include"
11633 additional_libdir
="$withval/lib"
11644 names_already_handled
=
11645 names_next_round
='ipt '
11646 while test -n "$names_next_round"; do
11647 names_this_round
="$names_next_round"
11649 for name
in $names_this_round; do
11651 for n
in $names_already_handled; do
11652 if test "$n" = "$name"; then
11653 already_handled
=yes
11657 if test -z "$already_handled"; then
11658 names_already_handled
="$names_already_handled $name"
11659 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11660 eval value
=\"\
$HAVE_LIB$uppername\"
11661 if test -n "$value"; then
11662 if test "$value" = yes; then
11663 eval value
=\"\
$LIB$uppername\"
11664 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
11665 eval value
=\"\
$LTLIB$uppername\"
11666 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
11675 if test $use_additional = yes; then
11676 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11677 found_dir
="$additional_libdir"
11678 found_so
="$additional_libdir/lib$name.$shlibext"
11679 if test -f "$additional_libdir/lib$name.la"; then
11680 found_la
="$additional_libdir/lib$name.la"
11683 if test -f "$additional_libdir/lib$name.$libext"; then
11684 found_dir
="$additional_libdir"
11685 found_a
="$additional_libdir/lib$name.$libext"
11686 if test -f "$additional_libdir/lib$name.la"; then
11687 found_la
="$additional_libdir/lib$name.la"
11692 if test "X$found_dir" = "X"; then
11693 for x
in $LDFLAGS $LTLIBIPT; do
11695 acl_save_prefix
="$prefix"
11696 prefix
="$acl_final_prefix"
11697 acl_save_exec_prefix
="$exec_prefix"
11698 exec_prefix
="$acl_final_exec_prefix"
11700 exec_prefix
="$acl_save_exec_prefix"
11701 prefix
="$acl_save_prefix"
11705 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11706 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11708 found_so
="$dir/lib$name.$shlibext"
11709 if test -f "$dir/lib$name.la"; then
11710 found_la
="$dir/lib$name.la"
11713 if test -f "$dir/lib$name.$libext"; then
11715 found_a
="$dir/lib$name.$libext"
11716 if test -f "$dir/lib$name.la"; then
11717 found_la
="$dir/lib$name.la"
11723 if test "X$found_dir" != "X"; then
11728 if test "X$found_dir" != "X"; then
11729 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
11730 if test "X$found_so" != "X"; then
11731 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11732 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11735 for x
in $ltrpathdirs; do
11736 if test "X$x" = "X$found_dir"; then
11741 if test -z "$haveit"; then
11742 ltrpathdirs
="$ltrpathdirs $found_dir"
11744 if test "$hardcode_direct" = yes; then
11745 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11747 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11748 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11750 for x
in $rpathdirs; do
11751 if test "X$x" = "X$found_dir"; then
11756 if test -z "$haveit"; then
11757 rpathdirs
="$rpathdirs $found_dir"
11761 for x
in $LDFLAGS $LIBIPT; do
11763 acl_save_prefix
="$prefix"
11764 prefix
="$acl_final_prefix"
11765 acl_save_exec_prefix
="$exec_prefix"
11766 exec_prefix
="$acl_final_exec_prefix"
11768 exec_prefix
="$acl_save_exec_prefix"
11769 prefix
="$acl_save_prefix"
11771 if test "X$x" = "X-L$found_dir"; then
11776 if test -z "$haveit"; then
11777 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
11779 if test "$hardcode_minus_L" != no
; then
11780 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11782 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
11788 if test "X$found_a" != "X"; then
11789 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
11791 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
11794 additional_includedir
=
11795 case "$found_dir" in
11797 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11798 additional_includedir
="$basedir/include"
11801 if test "X$additional_includedir" != "X"; then
11802 if test "X$additional_includedir" != "X/usr/include"; then
11804 if test "X$additional_includedir" = "X/usr/local/include"; then
11805 if test -n "$GCC"; then
11807 linux
*) haveit
=yes;;
11811 if test -z "$haveit"; then
11812 for x
in $CPPFLAGS $INCIPT; do
11814 acl_save_prefix
="$prefix"
11815 prefix
="$acl_final_prefix"
11816 acl_save_exec_prefix
="$exec_prefix"
11817 exec_prefix
="$acl_final_exec_prefix"
11819 exec_prefix
="$acl_save_exec_prefix"
11820 prefix
="$acl_save_prefix"
11822 if test "X$x" = "X-I$additional_includedir"; then
11827 if test -z "$haveit"; then
11828 if test -d "$additional_includedir"; then
11829 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
11835 if test -n "$found_la"; then
11836 save_libdir
="$libdir"
11837 case "$found_la" in
11838 */* |
*\\*) .
"$found_la" ;;
11839 *) .
"./$found_la" ;;
11841 libdir
="$save_libdir"
11842 for dep
in $dependency_libs; do
11845 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11846 if test "X$additional_libdir" != "X/usr/lib"; then
11848 if test "X$additional_libdir" = "X/usr/local/lib"; then
11849 if test -n "$GCC"; then
11851 linux
*) haveit
=yes;;
11855 if test -z "$haveit"; then
11857 for x
in $LDFLAGS $LIBIPT; do
11859 acl_save_prefix
="$prefix"
11860 prefix
="$acl_final_prefix"
11861 acl_save_exec_prefix
="$exec_prefix"
11862 exec_prefix
="$acl_final_exec_prefix"
11864 exec_prefix
="$acl_save_exec_prefix"
11865 prefix
="$acl_save_prefix"
11867 if test "X$x" = "X-L$additional_libdir"; then
11872 if test -z "$haveit"; then
11873 if test -d "$additional_libdir"; then
11874 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
11878 for x
in $LDFLAGS $LTLIBIPT; do
11880 acl_save_prefix
="$prefix"
11881 prefix
="$acl_final_prefix"
11882 acl_save_exec_prefix
="$exec_prefix"
11883 exec_prefix
="$acl_final_exec_prefix"
11885 exec_prefix
="$acl_save_exec_prefix"
11886 prefix
="$acl_save_prefix"
11888 if test "X$x" = "X-L$additional_libdir"; then
11893 if test -z "$haveit"; then
11894 if test -d "$additional_libdir"; then
11895 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
11902 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11903 if test "$enable_rpath" != no
; then
11905 for x
in $rpathdirs; do
11906 if test "X$x" = "X$dir"; then
11911 if test -z "$haveit"; then
11912 rpathdirs
="$rpathdirs $dir"
11915 for x
in $ltrpathdirs; do
11916 if test "X$x" = "X$dir"; then
11921 if test -z "$haveit"; then
11922 ltrpathdirs
="$ltrpathdirs $dir"
11927 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11930 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11933 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
11934 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
11940 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
11941 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
11947 if test "X$rpathdirs" != "X"; then
11948 if test -n "$hardcode_libdir_separator"; then
11950 for found_dir
in $rpathdirs; do
11951 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11953 acl_save_libdir
="$libdir"
11955 eval flag
=\"$hardcode_libdir_flag_spec\"
11956 libdir
="$acl_save_libdir"
11957 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
11959 for found_dir
in $rpathdirs; do
11960 acl_save_libdir
="$libdir"
11961 libdir
="$found_dir"
11962 eval flag
=\"$hardcode_libdir_flag_spec\"
11963 libdir
="$acl_save_libdir"
11964 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
11968 if test "X$ltrpathdirs" != "X"; then
11969 for found_dir
in $ltrpathdirs; do
11970 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
11975 ac_save_CPPFLAGS
="$CPPFLAGS"
11977 for element
in $INCIPT; do
11979 for x
in $CPPFLAGS; do
11981 acl_save_prefix
="$prefix"
11982 prefix
="$acl_final_prefix"
11983 acl_save_exec_prefix
="$exec_prefix"
11984 exec_prefix
="$acl_final_exec_prefix"
11986 exec_prefix
="$acl_save_exec_prefix"
11987 prefix
="$acl_save_prefix"
11989 if test "X$x" = "X$element"; then
11994 if test -z "$haveit"; then
11995 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
12001 $as_echo_n "checking for libipt... " >&6; }
12002 if ${ac_cv_libipt+:} false
; then :
12003 $as_echo_n "(cached) " >&6
12006 ac_save_LIBS
="$LIBS"
12007 LIBS
="$LIBS $LIBIPT"
12008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12009 /* end confdefs.h. */
12010 #include "intel-pt.h"
12014 pt_insn_alloc_decoder (0);
12019 if ac_fn_c_try_link
"$LINENO"; then :
12024 rm -f core conftest.err conftest.
$ac_objext \
12025 conftest
$ac_exeext conftest.
$ac_ext
12026 LIBS
="$ac_save_LIBS"
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
12030 $as_echo "$ac_cv_libipt" >&6; }
12031 if test "$ac_cv_libipt" = yes; then
12034 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
12037 $as_echo_n "checking how to link with libipt... " >&6; }
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
12039 $as_echo "$LIBIPT" >&6; }
12042 CPPFLAGS
="$ac_save_CPPFLAGS"
12052 if test "$HAVE_LIBIPT" != yes; then
12053 if test "$with_intel_pt" = yes; then
12054 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
12057 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
12061 LIBS
="$LIBS $LIBIPT"
12062 for ac_func
in pt_insn_event
12064 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
12065 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
12066 cat >>confdefs.h
<<_ACEOF
12067 #define HAVE_PT_INSN_EVENT 1
12073 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
12075 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
12077 cat >>confdefs.h
<<_ACEOF
12078 #define HAVE_STRUCT_PT_INSN_ENABLED 1
12083 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
12085 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
12087 cat >>confdefs.h
<<_ACEOF
12088 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
12098 # ------------------------- #
12099 # Checks for header files. #
12100 # ------------------------- #
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12103 $as_echo_n "checking for ANSI C header files... " >&6; }
12104 if ${ac_cv_header_stdc+:} false
; then :
12105 $as_echo_n "(cached) " >&6
12107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12108 /* end confdefs.h. */
12109 #include <stdlib.h>
12110 #include <stdarg.h>
12111 #include <string.h>
12122 if ac_fn_c_try_compile
"$LINENO"; then :
12123 ac_cv_header_stdc
=yes
12125 ac_cv_header_stdc
=no
12127 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12129 if test $ac_cv_header_stdc = yes; then
12130 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12132 /* end confdefs.h. */
12133 #include <string.h>
12136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12137 $EGREP "memchr" >/dev
/null
2>&1; then :
12140 ac_cv_header_stdc
=no
12146 if test $ac_cv_header_stdc = yes; then
12147 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12149 /* end confdefs.h. */
12150 #include <stdlib.h>
12153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12154 $EGREP "free" >/dev
/null
2>&1; then :
12157 ac_cv_header_stdc
=no
12163 if test $ac_cv_header_stdc = yes; then
12164 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12165 if test "$cross_compiling" = yes; then :
12168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12169 /* end confdefs.h. */
12171 #include <stdlib.h>
12172 #if ((' ' & 0x0FF) == 0x020)
12173 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12174 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12176 # define ISLOWER(c) \
12177 (('a' <= (c) && (c) <= 'i') \
12178 || ('j' <= (c) && (c) <= 'r') \
12179 || ('s' <= (c) && (c) <= 'z'))
12180 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12183 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12188 for (i = 0; i < 256; i++)
12189 if (XOR (islower (i), ISLOWER (i))
12190 || toupper (i) != TOUPPER (i))
12195 if ac_fn_c_try_run
"$LINENO"; then :
12198 ac_cv_header_stdc
=no
12200 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12201 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12207 $as_echo "$ac_cv_header_stdc" >&6; }
12208 if test $ac_cv_header_stdc = yes; then
12210 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12214 # elf_hp.h is for HP/UX 64-bit shared library support.
12215 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
12216 thread_db.h linux
/elf.h \
12217 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
12218 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
12219 sys
/reg.h sys
/debugreg.h sys
/select.h \
12220 termios.h elf_hp.h \
12223 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12224 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12225 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12226 cat >>confdefs.h
<<_ACEOF
12227 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12234 for ac_header
in sys
/user.h
12236 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
12237 # include <sys/param.h>
12241 if test "x$ac_cv_header_sys_user_h" = xyes
; then :
12242 cat >>confdefs.h
<<_ACEOF
12243 #define HAVE_SYS_USER_H 1
12251 for ac_header
in curses.h cursesX.h ncurses.h ncursesw
/ncurses.h ncurses
/ncurses.h ncurses
/term.h
12253 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12254 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12255 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12256 cat >>confdefs.h
<<_ACEOF
12257 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12264 for ac_header
in term.h
12266 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
12267 # include <curses.h>
12271 if test "x$ac_cv_header_term_h" = xyes
; then :
12272 cat >>confdefs.h
<<_ACEOF
12273 #define HAVE_TERM_H 1
12281 # ------------------------- #
12282 # Checks for declarations. #
12283 # ------------------------- #
12286 # Check for presence and size of long long.
12287 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12288 if test "x$ac_cv_type_long_long" = xyes
; then :
12290 cat >>confdefs.h
<<_ACEOF
12291 #define HAVE_LONG_LONG 1
12294 # The cast to long int works around a bug in the HP C Compiler
12295 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12296 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12297 # This bug is HP SR number 8606223364.
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12299 $as_echo_n "checking size of long long... " >&6; }
12300 if ${ac_cv_sizeof_long_long+:} false
; then :
12301 $as_echo_n "(cached) " >&6
12303 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12306 if test "$ac_cv_type_long_long" = yes; then
12307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12309 as_fn_error
77 "cannot compute sizeof (long long)
12310 See \`config.log' for more details" "$LINENO" 5; }
12312 ac_cv_sizeof_long_long
=0
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12318 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12322 cat >>confdefs.h
<<_ACEOF
12323 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12330 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
12331 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
12332 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
12338 cat >>confdefs.h
<<_ACEOF
12339 #define HAVE_DECL_BASENAME $ac_have_decl
12341 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
12342 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
12348 cat >>confdefs.h
<<_ACEOF
12349 #define HAVE_DECL_FFS $ac_have_decl
12351 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12352 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
12358 cat >>confdefs.h
<<_ACEOF
12359 #define HAVE_DECL_ASPRINTF $ac_have_decl
12361 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12362 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
12368 cat >>confdefs.h
<<_ACEOF
12369 #define HAVE_DECL_VASPRINTF $ac_have_decl
12371 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12372 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12378 cat >>confdefs.h
<<_ACEOF
12379 #define HAVE_DECL_SNPRINTF $ac_have_decl
12381 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12382 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
12388 cat >>confdefs.h
<<_ACEOF
12389 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12392 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
12393 if test "x$ac_cv_have_decl_strtol" = xyes
; then :
12399 cat >>confdefs.h
<<_ACEOF
12400 #define HAVE_DECL_STRTOL $ac_have_decl
12402 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
12403 if test "x$ac_cv_have_decl_strtoul" = xyes
; then :
12409 cat >>confdefs.h
<<_ACEOF
12410 #define HAVE_DECL_STRTOUL $ac_have_decl
12412 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
12413 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
12419 cat >>confdefs.h
<<_ACEOF
12420 #define HAVE_DECL_STRTOLL $ac_have_decl
12422 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
12423 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
12429 cat >>confdefs.h
<<_ACEOF
12430 #define HAVE_DECL_STRTOULL $ac_have_decl
12433 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12434 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
12440 cat >>confdefs.h
<<_ACEOF
12441 #define HAVE_DECL_STRVERSCMP $ac_have_decl
12446 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12447 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12453 cat >>confdefs.h
<<_ACEOF
12454 #define HAVE_DECL_SNPRINTF $ac_have_decl
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12459 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12460 if ${am_cv_val_LC_MESSAGES+:} false
; then :
12461 $as_echo_n "(cached) " >&6
12463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12464 /* end confdefs.h. */
12465 #include <locale.h>
12474 if ac_fn_c_try_link
"$LINENO"; then :
12475 am_cv_val_LC_MESSAGES
=yes
12477 am_cv_val_LC_MESSAGES
=no
12479 rm -f core conftest.err conftest.
$ac_objext \
12480 conftest
$ac_exeext conftest.
$ac_ext
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12483 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12484 if test $am_cv_val_LC_MESSAGES = yes; then
12486 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12491 # ----------------------- #
12492 # Checks for structures. #
12493 # ----------------------- #
12495 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
12496 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
12498 cat >>confdefs.h
<<_ACEOF
12499 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12504 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
12505 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
12507 cat >>confdefs.h
<<_ACEOF
12508 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12515 # ------------------ #
12516 # Checks for types. #
12517 # ------------------ #
12519 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12520 #include <sys/socket.h>
12523 if test "x$ac_cv_type_socklen_t" = xyes
; then :
12525 cat >>confdefs.h
<<_ACEOF
12526 #define HAVE_SOCKLEN_T 1
12533 # ------------------------------------- #
12534 # Checks for compiler characteristics. #
12535 # ------------------------------------- #
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12538 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12539 if ${ac_cv_c_const+:} false
; then :
12540 $as_echo_n "(cached) " >&6
12542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12543 /* end confdefs.h. */
12549 #ifndef __cplusplus
12550 /* Ultrix mips cc rejects this sort of thing. */
12551 typedef int charset[2];
12552 const charset cs = { 0, 0 };
12553 /* SunOS 4.1.1 cc rejects this. */
12554 char const *const *pcpcc;
12556 /* NEC SVR4.0.2 mips cc rejects this. */
12557 struct point {int x, y;};
12558 static struct point const zero = {0,0};
12559 /* AIX XL C 1.02.0.0 rejects this.
12560 It does not let you subtract one const X* pointer from another in
12561 an arm of an if-expression whose if-part is not a constant
12563 const char *g = "string";
12564 pcpcc = &g + (g ? g-g : 0);
12565 /* HPUX 7.0 cc rejects these. */
12567 ppc = (char**) pcpcc;
12568 pcpcc = (char const *const *) ppc;
12569 { /* SCO 3.2v4 cc rejects this sort of thing. */
12572 char const *s = 0 ? (char *) 0 : (char const *) 0;
12577 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12578 int x[] = {25, 17};
12579 const int *foo = &x[0];
12582 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12583 typedef const int *iptr;
12587 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12588 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12589 struct s { int j; const int *ap[3]; } bx;
12590 struct s *b = &bx; b->j = 5;
12592 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12593 const int foo = 10;
12594 if (!foo) return 0;
12596 return !cs[0] && !zero.x;
12603 if ac_fn_c_try_compile
"$LINENO"; then :
12608 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12611 $as_echo "$ac_cv_c_const" >&6; }
12612 if test $ac_cv_c_const = no
; then
12614 $as_echo "#define const /**/" >>confdefs.h
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12619 $as_echo_n "checking for inline... " >&6; }
12620 if ${ac_cv_c_inline+:} false
; then :
12621 $as_echo_n "(cached) " >&6
12624 for ac_kw
in inline __inline__ __inline
; do
12625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12626 /* end confdefs.h. */
12627 #ifndef __cplusplus
12629 static $ac_kw foo_t static_foo () {return 0; }
12630 $ac_kw foo_t foo () {return 0; }
12634 if ac_fn_c_try_compile
"$LINENO"; then :
12635 ac_cv_c_inline
=$ac_kw
12637 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12638 test "$ac_cv_c_inline" != no
&& break
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12643 $as_echo "$ac_cv_c_inline" >&6; }
12645 case $ac_cv_c_inline in
12648 case $ac_cv_c_inline in
12650 *) ac_val
=$ac_cv_c_inline;;
12652 cat >>confdefs.h
<<_ACEOF
12653 #ifndef __cplusplus
12654 #define inline $ac_val
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12661 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12662 if ${ac_cv_c_bigendian+:} false
; then :
12663 $as_echo_n "(cached) " >&6
12665 ac_cv_c_bigendian
=unknown
12666 # See if we're dealing with a universal compiler.
12667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12668 /* end confdefs.h. */
12669 #ifndef __APPLE_CC__
12670 not a universal capable compiler
12675 if ac_fn_c_try_compile
"$LINENO"; then :
12677 # Check for potential -arch flags. It is not universal unless
12678 # there are at least two -arch flags with different values.
12681 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12682 if test -n "$ac_prev"; then
12684 i?
86 | x86_64 | ppc | ppc64
)
12685 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12688 ac_cv_c_bigendian
=universal
12694 elif test "x$ac_word" = "x-arch"; then
12699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12700 if test $ac_cv_c_bigendian = unknown
; then
12701 # See if sys/param.h defines the BYTE_ORDER macro.
12702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12703 /* end confdefs.h. */
12704 #include <sys/types.h>
12705 #include <sys/param.h>
12710 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12711 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12713 bogus endian macros
12720 if ac_fn_c_try_compile
"$LINENO"; then :
12721 # It does; now see whether it defined to BIG_ENDIAN or not.
12722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12723 /* end confdefs.h. */
12724 #include <sys/types.h>
12725 #include <sys/param.h>
12730 #if BYTE_ORDER != BIG_ENDIAN
12738 if ac_fn_c_try_compile
"$LINENO"; then :
12739 ac_cv_c_bigendian
=yes
12741 ac_cv_c_bigendian
=no
12743 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12745 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12747 if test $ac_cv_c_bigendian = unknown
; then
12748 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12750 /* end confdefs.h. */
12751 #include <limits.h>
12756 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12757 bogus endian macros
12764 if ac_fn_c_try_compile
"$LINENO"; then :
12765 # It does; now see whether it defined to _BIG_ENDIAN or not.
12766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12767 /* end confdefs.h. */
12768 #include <limits.h>
12773 #ifndef _BIG_ENDIAN
12781 if ac_fn_c_try_compile
"$LINENO"; then :
12782 ac_cv_c_bigendian
=yes
12784 ac_cv_c_bigendian
=no
12786 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12788 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12790 if test $ac_cv_c_bigendian = unknown
; then
12791 # Compile a test program.
12792 if test "$cross_compiling" = yes; then :
12793 # Try to guess by grepping values from an object file.
12794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12795 /* end confdefs.h. */
12796 short int ascii_mm[] =
12797 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12798 short int ascii_ii[] =
12799 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12800 int use_ascii (int i) {
12801 return ascii_mm[i] + ascii_ii[i];
12803 short int ebcdic_ii[] =
12804 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12805 short int ebcdic_mm[] =
12806 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12807 int use_ebcdic (int i) {
12808 return ebcdic_mm[i] + ebcdic_ii[i];
12815 return use_ascii (foo) == use_ebcdic (foo);
12820 if ac_fn_c_try_compile
"$LINENO"; then :
12821 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12822 ac_cv_c_bigendian
=yes
12824 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12825 if test "$ac_cv_c_bigendian" = unknown
; then
12826 ac_cv_c_bigendian
=no
12828 # finding both strings is unlikely to happen, but who knows?
12829 ac_cv_c_bigendian
=unknown
12833 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12836 /* end confdefs.h. */
12837 $ac_includes_default
12842 /* Are we little or big endian? From Harbison&Steele. */
12846 char c[sizeof (long int)];
12849 return u.c[sizeof (long int) - 1] == 1;
12855 if ac_fn_c_try_run
"$LINENO"; then :
12856 ac_cv_c_bigendian
=no
12858 ac_cv_c_bigendian
=yes
12860 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12861 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12867 $as_echo "$ac_cv_c_bigendian" >&6; }
12868 case $ac_cv_c_bigendian in #(
12870 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12876 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12880 as_fn_error $?
"unknown endianness
12881 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12885 # ------------------------------ #
12886 # Checks for library functions. #
12887 # ------------------------------ #
12892 for ac_header
in $ac_header_list
12894 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12895 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12897 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12898 cat >>confdefs.h
<<_ACEOF
12899 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12913 for ac_func
in getpagesize
12915 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12916 if test "x$ac_cv_func_getpagesize" = xyes
; then :
12917 cat >>confdefs.h
<<_ACEOF
12918 #define HAVE_GETPAGESIZE 1
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12925 $as_echo_n "checking for working mmap... " >&6; }
12926 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
12927 $as_echo_n "(cached) " >&6
12929 if test "$cross_compiling" = yes; then :
12930 ac_cv_func_mmap_fixed_mapped
=no
12932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12933 /* end confdefs.h. */
12934 $ac_includes_default
12935 /* malloc might have been renamed as rpl_malloc. */
12938 /* Thanks to Mike Haertel and Jim Avera for this test.
12939 Here is a matrix of mmap possibilities:
12940 mmap private not fixed
12941 mmap private fixed at somewhere currently unmapped
12942 mmap private fixed at somewhere already mapped
12943 mmap shared not fixed
12944 mmap shared fixed at somewhere currently unmapped
12945 mmap shared fixed at somewhere already mapped
12946 For private mappings, we should verify that changes cannot be read()
12947 back from the file, nor mmap's back from the file at a different
12948 address. (There have been systems where private was not correctly
12949 implemented like the infamous i386 svr4.0, and systems where the
12950 VM page cache was not coherent with the file system buffer cache
12951 like early versions of FreeBSD and possibly contemporary NetBSD.)
12952 For shared mappings, we should conversely verify that changes get
12953 propagated back to all the places they're supposed to be.
12955 Grep wants private fixed already mapped.
12956 The main things grep needs to know about mmap are:
12957 * does it exist and is it safe to write into the mmap'd area
12958 * how to use it (BSD variants) */
12961 #include <sys/mman.h>
12963 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12967 /* This mess was copied from the GNU getpagesize.h. */
12968 #ifndef HAVE_GETPAGESIZE
12969 # ifdef _SC_PAGESIZE
12970 # define getpagesize() sysconf(_SC_PAGESIZE)
12971 # else /* no _SC_PAGESIZE */
12972 # ifdef HAVE_SYS_PARAM_H
12973 # include <sys/param.h>
12974 # ifdef EXEC_PAGESIZE
12975 # define getpagesize() EXEC_PAGESIZE
12976 # else /* no EXEC_PAGESIZE */
12978 # define getpagesize() NBPG * CLSIZE
12981 # endif /* no CLSIZE */
12982 # else /* no NBPG */
12984 # define getpagesize() NBPC
12985 # else /* no NBPC */
12987 # define getpagesize() PAGESIZE
12988 # endif /* PAGESIZE */
12989 # endif /* no NBPC */
12990 # endif /* no NBPG */
12991 # endif /* no EXEC_PAGESIZE */
12992 # else /* no HAVE_SYS_PARAM_H */
12993 # define getpagesize() 8192 /* punt totally */
12994 # endif /* no HAVE_SYS_PARAM_H */
12995 # endif /* no _SC_PAGESIZE */
12997 #endif /* no HAVE_GETPAGESIZE */
13002 char *data, *data2, *data3;
13003 const char *cdata2;
13007 pagesize = getpagesize ();
13009 /* First, make a file with some known garbage in it. */
13010 data = (char *) malloc (pagesize);
13013 for (i = 0; i < pagesize; ++i)
13014 *(data + i) = rand ();
13016 fd = creat ("conftest.mmap", 0600);
13019 if (write (fd, data, pagesize) != pagesize)
13023 /* Next, check that the tail of a page is zero-filled. File must have
13024 non-zero length, otherwise we risk SIGBUS for entire page. */
13025 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13029 if (write (fd2, cdata2, 1) != 1)
13031 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13032 if (data2 == MAP_FAILED)
13034 for (i = 0; i < pagesize; ++i)
13038 if (munmap (data2, pagesize))
13041 /* Next, try to mmap the file at a fixed address which already has
13042 something else allocated at it. If we can, also make sure that
13043 we see the same garbage. */
13044 fd = open ("conftest.mmap", O_RDWR);
13047 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13048 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13050 for (i = 0; i < pagesize; ++i)
13051 if (*(data + i) != *(data2 + i))
13054 /* Finally, make sure that changes to the mapped area do not
13055 percolate back to the file as seen by read(). (This is a bug on
13056 some variants of i386 svr4.0.) */
13057 for (i = 0; i < pagesize; ++i)
13058 *(data2 + i) = *(data2 + i) + 1;
13059 data3 = (char *) malloc (pagesize);
13062 if (read (fd, data3, pagesize) != pagesize)
13064 for (i = 0; i < pagesize; ++i)
13065 if (*(data + i) != *(data3 + i))
13071 if ac_fn_c_try_run
"$LINENO"; then :
13072 ac_cv_func_mmap_fixed_mapped
=yes
13074 ac_cv_func_mmap_fixed_mapped
=no
13076 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13077 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13082 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13083 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13085 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13088 rm -f conftest.mmap conftest.txt
13090 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13091 if test "x$ac_cv_type_pid_t" = xyes
; then :
13095 cat >>confdefs.h
<<_ACEOF
13101 for ac_header
in vfork.h
13103 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13104 if test "x$ac_cv_header_vfork_h" = xyes
; then :
13105 cat >>confdefs.h
<<_ACEOF
13106 #define HAVE_VFORK_H 1
13113 for ac_func
in fork vfork
13115 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13116 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13117 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13118 cat >>confdefs.h
<<_ACEOF
13119 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13125 if test "x$ac_cv_func_fork" = xyes
; then
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13127 $as_echo_n "checking for working fork... " >&6; }
13128 if ${ac_cv_func_fork_works+:} false
; then :
13129 $as_echo_n "(cached) " >&6
13131 if test "$cross_compiling" = yes; then :
13132 ac_cv_func_fork_works
=cross
13134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13135 /* end confdefs.h. */
13136 $ac_includes_default
13141 /* By Ruediger Kuhlmann. */
13142 return fork () < 0;
13148 if ac_fn_c_try_run
"$LINENO"; then :
13149 ac_cv_func_fork_works
=yes
13151 ac_cv_func_fork_works
=no
13153 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13154 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13159 $as_echo "$ac_cv_func_fork_works" >&6; }
13162 ac_cv_func_fork_works
=$ac_cv_func_fork
13164 if test "x$ac_cv_func_fork_works" = xcross
; then
13166 *-*-amigaos* |
*-*-msdosdjgpp*)
13167 # Override, as these systems have only a dummy fork() stub
13168 ac_cv_func_fork_works
=no
13171 ac_cv_func_fork_works
=yes
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13175 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13177 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13178 if test "x$ac_cv_func_vfork" = xyes
; then
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13180 $as_echo_n "checking for working vfork... " >&6; }
13181 if ${ac_cv_func_vfork_works+:} false
; then :
13182 $as_echo_n "(cached) " >&6
13184 if test "$cross_compiling" = yes; then :
13185 ac_cv_func_vfork_works
=cross
13187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13188 /* end confdefs.h. */
13189 /* Thanks to Paul Eggert for this test. */
13190 $ac_includes_default
13191 #include <sys/wait.h>
13192 #ifdef HAVE_VFORK_H
13193 # include <vfork.h>
13195 /* On some sparc systems, changes by the child to local and incoming
13196 argument registers are propagated back to the parent. The compiler
13197 is told about this with #include <vfork.h>, but some compilers
13198 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13199 static variable whose address is put into a register that is
13200 clobbered by the vfork. */
13203 sparc_address_test (int arg)
13205 sparc_address_test (arg) int arg;
13208 static pid_t child;
13226 pid_t parent = getpid ();
13229 sparc_address_test (0);
13234 /* Here is another test for sparc vfork register problems. This
13235 test uses lots of local variables, at least as many local
13236 variables as main has allocated so far including compiler
13237 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13238 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13239 reuse the register of parent for one of the local variables,
13240 since it will think that parent can't possibly be used any more
13241 in this routine. Assigning to the local variable will thus
13242 munge parent in the parent process. */
13244 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13245 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13246 /* Convince the compiler that p..p7 are live; otherwise, it might
13247 use the same hardware register for all 8 local variables. */
13248 if (p != p1 || p != p2 || p != p3 || p != p4
13249 || p != p5 || p != p6 || p != p7)
13252 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13253 from child file descriptors. If the child closes a descriptor
13254 before it execs or exits, this munges the parent's descriptor
13255 as well. Test for this by closing stdout in the child. */
13256 _exit(close(fileno(stdout)) != 0);
13261 while (wait(&status) != child)
13264 /* Was there some problem with vforking? */
13267 /* Did the child fail? (This shouldn't happen.) */
13270 /* Did the vfork/compiler bug occur? */
13271 || parent != getpid()
13273 /* Did the file descriptor bug occur? */
13274 || fstat(fileno(stdout), &st) != 0
13279 if ac_fn_c_try_run
"$LINENO"; then :
13280 ac_cv_func_vfork_works
=yes
13282 ac_cv_func_vfork_works
=no
13284 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13285 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13290 $as_echo "$ac_cv_func_vfork_works" >&6; }
13293 if test "x$ac_cv_func_fork_works" = xcross
; then
13294 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13296 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13299 if test "x$ac_cv_func_vfork_works" = xyes
; then
13301 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13305 $as_echo "#define vfork fork" >>confdefs.h
13308 if test "x$ac_cv_func_fork_works" = xyes
; then
13310 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13314 for ac_func
in getauxval getrusage getuid getgid \
13315 pipe poll pread pread64 pwrite resize_term \
13316 sbrk getpgid setpgid setpgrp setsid \
13317 sigaction sigprocmask sigsetmask socketpair \
13318 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
13319 setrlimit getrlimit posix_madvise waitpid \
13320 ptrace64 sigaltstack mkdtemp setns
13322 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13323 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13324 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13325 cat >>confdefs.h
<<_ACEOF
13326 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13334 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13335 if ${am_cv_langinfo_codeset+:} false
; then :
13336 $as_echo_n "(cached) " >&6
13338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13339 /* end confdefs.h. */
13340 #include <langinfo.h>
13344 char* cs = nl_langinfo(CODESET);
13349 if ac_fn_c_try_link
"$LINENO"; then :
13350 am_cv_langinfo_codeset
=yes
13352 am_cv_langinfo_codeset
=no
13354 rm -f core conftest.err conftest.
$ac_objext \
13355 conftest
$ac_exeext conftest.
$ac_ext
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13359 $as_echo "$am_cv_langinfo_codeset" >&6; }
13360 if test $am_cv_langinfo_codeset = yes; then
13362 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13366 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13367 if test "x$ac_cv_type_size_t" = xyes
; then :
13371 cat >>confdefs.h
<<_ACEOF
13372 #define size_t unsigned int
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13379 $as_echo_n "checking for ANSI C header files... " >&6; }
13380 if ${ac_cv_header_stdc+:} false
; then :
13381 $as_echo_n "(cached) " >&6
13383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13384 /* end confdefs.h. */
13385 #include <stdlib.h>
13386 #include <stdarg.h>
13387 #include <string.h>
13398 if ac_fn_c_try_compile
"$LINENO"; then :
13399 ac_cv_header_stdc
=yes
13401 ac_cv_header_stdc
=no
13403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13405 if test $ac_cv_header_stdc = yes; then
13406 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13408 /* end confdefs.h. */
13409 #include <string.h>
13412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13413 $EGREP "memchr" >/dev
/null
2>&1; then :
13416 ac_cv_header_stdc
=no
13422 if test $ac_cv_header_stdc = yes; then
13423 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13425 /* end confdefs.h. */
13426 #include <stdlib.h>
13429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13430 $EGREP "free" >/dev
/null
2>&1; then :
13433 ac_cv_header_stdc
=no
13439 if test $ac_cv_header_stdc = yes; then
13440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13441 if test "$cross_compiling" = yes; then :
13444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13445 /* end confdefs.h. */
13447 #include <stdlib.h>
13448 #if ((' ' & 0x0FF) == 0x020)
13449 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13450 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13452 # define ISLOWER(c) \
13453 (('a' <= (c) && (c) <= 'i') \
13454 || ('j' <= (c) && (c) <= 'r') \
13455 || ('s' <= (c) && (c) <= 'z'))
13456 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13459 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13464 for (i = 0; i < 256; i++)
13465 if (XOR (islower (i), ISLOWER (i))
13466 || toupper (i) != TOUPPER (i))
13471 if ac_fn_c_try_run
"$LINENO"; then :
13474 ac_cv_header_stdc
=no
13476 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13477 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13483 $as_echo "$ac_cv_header_stdc" >&6; }
13484 if test $ac_cv_header_stdc = yes; then
13486 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13490 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13491 # for constant arguments. Useless!
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13493 $as_echo_n "checking for working alloca.h... " >&6; }
13494 if ${ac_cv_working_alloca_h+:} false
; then :
13495 $as_echo_n "(cached) " >&6
13497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13498 /* end confdefs.h. */
13499 #include <alloca.h>
13503 char *p = (char *) alloca (2 * sizeof (int));
13509 if ac_fn_c_try_link
"$LINENO"; then :
13510 ac_cv_working_alloca_h
=yes
13512 ac_cv_working_alloca_h
=no
13514 rm -f core conftest.err conftest.
$ac_objext \
13515 conftest
$ac_exeext conftest.
$ac_ext
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13518 $as_echo "$ac_cv_working_alloca_h" >&6; }
13519 if test $ac_cv_working_alloca_h = yes; then
13521 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13526 $as_echo_n "checking for alloca... " >&6; }
13527 if ${ac_cv_func_alloca_works+:} false
; then :
13528 $as_echo_n "(cached) " >&6
13530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13531 /* end confdefs.h. */
13533 # define alloca __builtin_alloca
13536 # include <malloc.h>
13537 # define alloca _alloca
13539 # ifdef HAVE_ALLOCA_H
13540 # include <alloca.h>
13545 # ifndef alloca /* predefined by HP cc +Olibcalls */
13546 void *alloca (size_t);
13556 char *p = (char *) alloca (1);
13562 if ac_fn_c_try_link
"$LINENO"; then :
13563 ac_cv_func_alloca_works
=yes
13565 ac_cv_func_alloca_works
=no
13567 rm -f core conftest.err conftest.
$ac_objext \
13568 conftest
$ac_exeext conftest.
$ac_ext
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13571 $as_echo "$ac_cv_func_alloca_works" >&6; }
13573 if test $ac_cv_func_alloca_works = yes; then
13575 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13578 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13579 # that cause trouble. Some versions do not even contain alloca or
13580 # contain a buggy version. If you still want to use their alloca,
13581 # use ar to extract alloca.o from them instead of compiling alloca.c.
13583 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
13585 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13589 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13590 if ${ac_cv_os_cray+:} false
; then :
13591 $as_echo_n "(cached) " >&6
13593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13594 /* end confdefs.h. */
13595 #if defined CRAY && ! defined CRAY2
13602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13603 $EGREP "webecray" >/dev
/null
2>&1; then :
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13612 $as_echo "$ac_cv_os_cray" >&6; }
13613 if test $ac_cv_os_cray = yes; then
13614 for ac_func
in _getb67 GETB67 getb67
; do
13615 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13616 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13617 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13619 cat >>confdefs.h
<<_ACEOF
13620 #define CRAY_STACKSEG_END $ac_func
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13630 $as_echo_n "checking stack direction for C alloca... " >&6; }
13631 if ${ac_cv_c_stack_direction+:} false
; then :
13632 $as_echo_n "(cached) " >&6
13634 if test "$cross_compiling" = yes; then :
13635 ac_cv_c_stack_direction
=0
13637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13638 /* end confdefs.h. */
13639 $ac_includes_default
13641 find_stack_direction (int *addr, int depth)
13643 int dir, dummy = 0;
13646 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13647 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13648 return dir + dummy;
13652 main (int argc, char **argv)
13654 return find_stack_direction (0, argc + !argv + 20) < 0;
13657 if ac_fn_c_try_run
"$LINENO"; then :
13658 ac_cv_c_stack_direction
=1
13660 ac_cv_c_stack_direction
=-1
13662 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13663 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13668 $as_echo "$ac_cv_c_stack_direction" >&6; }
13669 cat >>confdefs.h
<<_ACEOF
13670 #define STACK_DIRECTION $ac_cv_c_stack_direction
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13679 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13680 if ${am_cv_langinfo_codeset+:} false
; then :
13681 $as_echo_n "(cached) " >&6
13683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13684 /* end confdefs.h. */
13685 #include <langinfo.h>
13689 char* cs = nl_langinfo(CODESET);
13694 if ac_fn_c_try_link
"$LINENO"; then :
13695 am_cv_langinfo_codeset
=yes
13697 am_cv_langinfo_codeset
=no
13699 rm -f core conftest.err conftest.
$ac_objext \
13700 conftest
$ac_exeext conftest.
$ac_ext
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13704 $as_echo "$am_cv_langinfo_codeset" >&6; }
13705 if test $am_cv_langinfo_codeset = yes; then
13707 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13712 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
13714 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13715 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13716 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13717 cat >>confdefs.h
<<_ACEOF
13718 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13726 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair sigaction
13728 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13729 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13730 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13731 cat >>confdefs.h
<<_ACEOF
13732 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13739 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
13740 if test "x$ac_cv_have_decl_strerror" = xyes
; then :
13746 cat >>confdefs.h
<<_ACEOF
13747 #define HAVE_DECL_STRERROR $ac_have_decl
13749 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13750 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
13756 cat >>confdefs.h
<<_ACEOF
13757 #define HAVE_DECL_STRSTR $ac_have_decl
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
13762 $as_echo_n "checking for sigsetjmp... " >&6; }
13763 if ${gdb_cv_func_sigsetjmp+:} false
; then :
13764 $as_echo_n "(cached) " >&6
13766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13767 /* end confdefs.h. */
13769 #include <setjmp.h>
13774 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
13779 if ac_fn_c_try_compile
"$LINENO"; then :
13780 gdb_cv_func_sigsetjmp
=yes
13782 gdb_cv_func_sigsetjmp
=no
13784 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
13787 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
13788 if test $gdb_cv_func_sigsetjmp = yes; then
13790 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
13795 # Check the return and argument types of ptrace.
13798 for ac_header
in sys
/ptrace.h ptrace.h
13800 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13801 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13802 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13803 cat >>confdefs.h
<<_ACEOF
13804 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13812 gdb_ptrace_headers
='
13813 #include <sys/types.h>
13814 #if HAVE_SYS_PTRACE_H
13815 # include <sys/ptrace.h>
13818 # include <unistd.h>
13821 # There is no point in checking if we don't have a prototype.
13822 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
13824 if test "x$ac_cv_have_decl_ptrace" = xyes
; then :
13830 cat >>confdefs.h
<<_ACEOF
13831 #define HAVE_DECL_PTRACE $ac_have_decl
13833 if test $ac_have_decl = 1; then :
13837 : ${gdb_cv_func_ptrace_ret='int'}
13838 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13842 # Check return type. Varargs (used on GNU/Linux) conflict with the
13843 # empty argument list, so check for that explicitly.
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
13845 $as_echo_n "checking return type of ptrace... " >&6; }
13846 if ${gdb_cv_func_ptrace_ret+:} false
; then :
13847 $as_echo_n "(cached) " >&6
13849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13850 /* end confdefs.h. */
13851 $gdb_ptrace_headers
13855 extern long ptrace (enum __ptrace_request, ...);
13860 if ac_fn_c_try_compile
"$LINENO"; then :
13861 gdb_cv_func_ptrace_ret
='long'
13863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13864 /* end confdefs.h. */
13865 $gdb_ptrace_headers
13869 extern int ptrace ();
13874 if ac_fn_c_try_compile
"$LINENO"; then :
13875 gdb_cv_func_ptrace_ret
='int'
13877 gdb_cv_func_ptrace_ret
='long'
13879 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13881 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
13884 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
13886 cat >>confdefs.h
<<_ACEOF
13887 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
13890 # Check argument types.
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
13892 $as_echo_n "checking types of arguments for ptrace... " >&6; }
13893 if ${gdb_cv_func_ptrace_args+:} false
; then :
13894 $as_echo_n "(cached) " >&6
13897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13898 /* end confdefs.h. */
13899 $gdb_ptrace_headers
13903 extern long ptrace (enum __ptrace_request, ...);
13908 if ac_fn_c_try_compile
"$LINENO"; then :
13909 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
13912 for gdb_arg1
in 'int' 'long'; do
13913 for gdb_arg2
in 'pid_t' 'int' 'long'; do
13914 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
13915 for gdb_arg4
in 'int' 'long' 'void *'; do
13916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13917 /* end confdefs.h. */
13918 $gdb_ptrace_headers
13923 extern $gdb_cv_func_ptrace_ret
13924 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
13930 if ac_fn_c_try_compile
"$LINENO"; then :
13931 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
13934 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13935 for gdb_arg5
in 'int *' 'int' 'long'; do
13936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13937 /* end confdefs.h. */
13938 $gdb_ptrace_headers
13943 extern $gdb_cv_func_ptrace_ret
13944 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
13950 if ac_fn_c_try_compile
"$LINENO"; then :
13952 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
13955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13961 # Provide a safe default value.
13962 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13965 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
13968 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
13969 ac_save_IFS
=$IFS; IFS
=','
13970 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
13974 cat >>confdefs.h
<<_ACEOF
13975 #define PTRACE_TYPE_ARG1 $1
13979 cat >>confdefs.h
<<_ACEOF
13980 #define PTRACE_TYPE_ARG3 $3
13984 cat >>confdefs.h
<<_ACEOF
13985 #define PTRACE_TYPE_ARG4 $4
13988 if test -n "$5"; then
13990 cat >>confdefs.h
<<_ACEOF
13991 #define PTRACE_TYPE_ARG5 $5
13997 if test "$cross_compiling" = no
; then
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
13999 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
14000 if ${ac_cv_func_setpgrp_void+:} false
; then :
14001 $as_echo_n "(cached) " >&6
14003 if test "$cross_compiling" = yes; then :
14004 as_fn_error $?
"cannot check setpgrp when cross compiling" "$LINENO" 5
14006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14007 /* end confdefs.h. */
14008 $ac_includes_default
14012 /* If this system has a BSD-style setpgrp which takes arguments,
14013 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
14014 exit successfully. */
14015 return setpgrp (1,1) != -1;
14020 if ac_fn_c_try_run
"$LINENO"; then :
14021 ac_cv_func_setpgrp_void
=no
14023 ac_cv_func_setpgrp_void
=yes
14025 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14026 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
14031 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
14032 if test $ac_cv_func_setpgrp_void = yes; then
14034 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
14040 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
14041 if ${ac_cv_func_setpgrp_void+:} false
; then :
14042 $as_echo_n "(cached) " >&6
14044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14045 /* end confdefs.h. */
14047 #include <unistd.h>
14053 if (setpgrp(1,1) == -1)
14062 if ac_fn_c_try_compile
"$LINENO"; then :
14063 ac_cv_func_setpgrp_void
=no
14065 ac_cv_func_setpgrp_void
=yes
14067 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
14070 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
14071 if test $ac_cv_func_setpgrp_void = yes; then
14072 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
14077 # Assume we'll default to using the included libiberty regex.
14078 gdb_use_included_regex
=yes
14080 # However, if the system regex is GNU regex, then default to *not*
14081 # using the included regex.
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
14083 $as_echo_n "checking for GNU regex... " >&6; }
14084 if ${gdb_cv_have_gnu_regex+:} false
; then :
14085 $as_echo_n "(cached) " >&6
14087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14088 /* end confdefs.h. */
14089 #include <gnu-versions.h>
14093 #define REGEX_INTERFACE_VERSION 1
14094 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
14095 # error "Version mismatch"
14101 if ac_fn_c_try_compile
"$LINENO"; then :
14102 gdb_cv_have_gnu_regex
=yes
14104 gdb_cv_have_gnu_regex
=no
14106 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
14109 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
14110 if test $gdb_cv_have_gnu_regex = yes; then
14111 gdb_use_included_regex
=no
14115 # Check whether --with-included-regex was given.
14116 if test "${with_included_regex+set}" = set; then :
14117 withval
=$with_included_regex; gdb_with_regex
=$withval
14119 gdb_with_regex
=$gdb_use_included_regex
14122 if test "$gdb_with_regex" = yes; then
14124 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
14128 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
14129 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
14130 #include <sys/proc.h>
14133 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes
; then :
14135 cat >>confdefs.h
<<_ACEOF
14136 #define HAVE_STRUCT_THREAD_TD_PCB 1
14143 # See if <sys/lwp.h> defines `struct lwp`.
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
14145 $as_echo_n "checking for struct lwp... " >&6; }
14146 if ${gdb_cv_struct_lwp+:} false
; then :
14147 $as_echo_n "(cached) " >&6
14149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14150 /* end confdefs.h. */
14151 #include <sys/param.h>
14153 #include <sys/lwp.h>
14162 if ac_fn_c_try_compile
"$LINENO"; then :
14163 gdb_cv_struct_lwp
=yes
14165 gdb_cv_struct_lwp
=no
14167 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
14170 $as_echo "$gdb_cv_struct_lwp" >&6; }
14171 if test $gdb_cv_struct_lwp = yes; then
14173 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
14177 # See if <machine/reg.h> degines `struct reg'.
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
14179 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
14180 if ${gdb_cv_struct_reg+:} false
; then :
14181 $as_echo_n "(cached) " >&6
14183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14184 /* end confdefs.h. */
14185 #include <sys/types.h>
14186 #include <machine/reg.h>
14195 if ac_fn_c_try_compile
"$LINENO"; then :
14196 gdb_cv_struct_reg
=yes
14198 gdb_cv_struct_reg
=no
14200 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
14203 $as_echo "$gdb_cv_struct_reg" >&6; }
14204 if test $gdb_cv_struct_reg = yes; then
14206 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
14210 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
14211 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
14212 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
14213 #include <machine/reg.h>
14215 if test "x$ac_cv_member_struct_reg_r_fs" = xyes
; then :
14217 cat >>confdefs.h
<<_ACEOF
14218 #define HAVE_STRUCT_REG_R_FS 1
14223 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
14224 #include <machine/reg.h>
14226 if test "x$ac_cv_member_struct_reg_r_gs" = xyes
; then :
14228 cat >>confdefs.h
<<_ACEOF
14229 #define HAVE_STRUCT_REG_R_GS 1
14236 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
14237 # Older amd64 Linux's don't have the fs_base and gs_base members of
14238 # `struct user_regs_struct'.
14239 ac_fn_c_check_member
"$LINENO" "struct user_regs_struct" "fs_base" "ac_cv_member_struct_user_regs_struct_fs_base" "#include <sys/types.h>
14240 #include <sys/user.h>
14242 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = xyes
; then :
14244 cat >>confdefs.h
<<_ACEOF
14245 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
14250 ac_fn_c_check_member
"$LINENO" "struct user_regs_struct" "gs_base" "ac_cv_member_struct_user_regs_struct_gs_base" "#include <sys/types.h>
14251 #include <sys/user.h>
14253 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = xyes
; then :
14255 cat >>confdefs.h
<<_ACEOF
14256 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
14263 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
14265 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
14266 if ${gdb_cv_have_ptrace_getregs+:} false
; then :
14267 $as_echo_n "(cached) " >&6
14269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14270 /* end confdefs.h. */
14271 #include <sys/ptrace.h>
14280 if ac_fn_c_try_compile
"$LINENO"; then :
14281 gdb_cv_have_ptrace_getregs
=yes
14283 gdb_cv_have_ptrace_getregs
=no
14285 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
14289 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
14290 if test $gdb_cv_have_ptrace_getregs = yes; then
14292 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
14296 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
14298 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
14299 if ${gdb_cv_have_ptrace_getfpxregs+:} false
; then :
14300 $as_echo_n "(cached) " >&6
14302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14303 /* end confdefs.h. */
14304 #include <sys/ptrace.h>
14313 if ac_fn_c_try_compile
"$LINENO"; then :
14314 gdb_cv_have_ptrace_getfpxregs
=yes
14316 gdb_cv_have_ptrace_getfpxregs
=no
14318 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
14322 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
14323 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
14325 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
14329 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
14331 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
14332 if ${gdb_cv_have_pt_getdbregs+:} false
; then :
14333 $as_echo_n "(cached) " >&6
14335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14336 /* end confdefs.h. */
14337 #include <sys/types.h>
14338 #include <sys/ptrace.h>
14347 if ac_fn_c_try_compile
"$LINENO"; then :
14348 gdb_cv_have_pt_getdbregs
=yes
14350 gdb_cv_have_pt_getdbregs
=no
14352 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
14356 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
14357 if test $gdb_cv_have_pt_getdbregs = yes; then
14359 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
14363 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
14365 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
14366 if ${gdb_cv_have_pt_getxmmregs+:} false
; then :
14367 $as_echo_n "(cached) " >&6
14369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14370 /* end confdefs.h. */
14371 #include <sys/types.h>
14372 #include <sys/ptrace.h>
14381 if ac_fn_c_try_compile
"$LINENO"; then :
14382 gdb_cv_have_pt_getxmmregs
=yes
14384 gdb_cv_have_pt_getxmmregs
=no
14386 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
14390 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
14391 if test $gdb_cv_have_pt_getxmmregs = yes; then
14393 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
14397 # See if <sys/ptrace.h> supports LWP names on FreeBSD
14398 # Older FreeBSD versions don't have the pl_tdname member of
14399 # `struct ptrace_lwpinfo'.
14400 ac_fn_c_check_member
"$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
14402 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes
; then :
14404 cat >>confdefs.h
<<_ACEOF
14405 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
14412 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
14413 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
14415 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>
14417 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes
; then :
14419 cat >>confdefs.h
<<_ACEOF
14420 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
14427 if test "$ac_cv_header_sys_procfs_h" = yes; then
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
14429 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
14430 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
14431 $as_echo_n "(cached) " >&6
14433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14434 /* end confdefs.h. */
14437 /* Needed for new procfs interface on sparc-solaris. */
14438 #define _STRUCTURED_PROC 1
14439 #include <sys/procfs.h>
14448 if ac_fn_c_try_compile
"$LINENO"; then :
14449 bfd_cv_have_sys_procfs_type_gregset_t
=yes
14451 bfd_cv_have_sys_procfs_type_gregset_t
=no
14454 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14457 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
14459 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
14463 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
14466 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
14467 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
14468 $as_echo_n "(cached) " >&6
14470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14471 /* end confdefs.h. */
14474 /* Needed for new procfs interface on sparc-solaris. */
14475 #define _STRUCTURED_PROC 1
14476 #include <sys/procfs.h>
14485 if ac_fn_c_try_compile
"$LINENO"; then :
14486 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
14488 bfd_cv_have_sys_procfs_type_fpregset_t
=no
14491 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14494 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
14496 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
14500 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
14503 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
14504 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
14505 $as_echo_n "(cached) " >&6
14507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14508 /* end confdefs.h. */
14511 /* Needed for new procfs interface on sparc-solaris. */
14512 #define _STRUCTURED_PROC 1
14513 #include <sys/procfs.h>
14522 if ac_fn_c_try_compile
"$LINENO"; then :
14523 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
14525 bfd_cv_have_sys_procfs_type_prgregset_t
=no
14528 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14531 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
14533 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
14537 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
14540 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
14541 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
14542 $as_echo_n "(cached) " >&6
14544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14545 /* end confdefs.h. */
14548 /* Needed for new procfs interface on sparc-solaris. */
14549 #define _STRUCTURED_PROC 1
14550 #include <sys/procfs.h>
14559 if ac_fn_c_try_compile
"$LINENO"; then :
14560 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
14562 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
14565 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14568 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
14570 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
14574 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
14577 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
14578 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
14579 $as_echo_n "(cached) " >&6
14581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14582 /* end confdefs.h. */
14585 /* Needed for new procfs interface on sparc-solaris. */
14586 #define _STRUCTURED_PROC 1
14587 #include <sys/procfs.h>
14596 if ac_fn_c_try_compile
"$LINENO"; then :
14597 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
14599 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
14602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14605 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
14607 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
14611 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
14614 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
14615 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
14616 $as_echo_n "(cached) " >&6
14618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14619 /* end confdefs.h. */
14622 /* Needed for new procfs interface on sparc-solaris. */
14623 #define _STRUCTURED_PROC 1
14624 #include <sys/procfs.h>
14633 if ac_fn_c_try_compile
"$LINENO"; then :
14634 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
14636 bfd_cv_have_sys_procfs_type_lwpid_t
=no
14639 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14642 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
14644 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
14648 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
14651 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
14652 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
14653 $as_echo_n "(cached) " >&6
14655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14656 /* end confdefs.h. */
14659 /* Needed for new procfs interface on sparc-solaris. */
14660 #define _STRUCTURED_PROC 1
14661 #include <sys/procfs.h>
14670 if ac_fn_c_try_compile
"$LINENO"; then :
14671 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
14673 bfd_cv_have_sys_procfs_type_psaddr_t
=no
14676 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14679 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
14681 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
14685 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
14688 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
14689 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
14690 $as_echo_n "(cached) " >&6
14692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14693 /* end confdefs.h. */
14696 /* Needed for new procfs interface on sparc-solaris. */
14697 #define _STRUCTURED_PROC 1
14698 #include <sys/procfs.h>
14702 elf_fpregset_t avar
14707 if ac_fn_c_try_compile
"$LINENO"; then :
14708 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
14710 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
14713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14716 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
14718 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
14722 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
14726 # Check if the compiler supports the `long long' type.
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
14729 $as_echo_n "checking for long long support in compiler... " >&6; }
14730 if ${gdb_cv_c_long_long+:} false
; then :
14731 $as_echo_n "(cached) " >&6
14733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14734 /* end confdefs.h. */
14735 extern long long foo;
14739 switch (foo & 2) { case 0: return 1; }
14744 if ac_fn_c_try_compile
"$LINENO"; then :
14745 gdb_cv_c_long_long
=yes
14747 gdb_cv_c_long_long
=no
14749 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
14752 $as_echo "$gdb_cv_c_long_long" >&6; }
14753 if test $gdb_cv_c_long_long != yes; then
14754 # libdecnumber requires long long.
14755 as_fn_error $?
"Compiler must support long long for GDB." "$LINENO" 5
14758 # Check if the compiler and runtime support printing long longs.
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
14761 $as_echo_n "checking for long long support in printf... " >&6; }
14762 if ${gdb_cv_printf_has_long_long+:} false
; then :
14763 $as_echo_n "(cached) " >&6
14765 if test "$cross_compiling" = yes; then :
14766 gdb_cv_printf_has_long_long
=no
14768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14769 /* end confdefs.h. */
14770 $ac_includes_default
14776 l = (l << 16) + 0x0123;
14777 l = (l << 16) + 0x4567;
14778 l = (l << 16) + 0x89ab;
14779 l = (l << 16) + 0xcdef;
14780 sprintf (buf, "0x%016llx", l);
14781 return (strcmp ("0x0123456789abcdef", buf));
14786 if ac_fn_c_try_run
"$LINENO"; then :
14787 gdb_cv_printf_has_long_long
=yes
14789 gdb_cv_printf_has_long_long
=no
14791 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14792 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
14797 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
14798 if test $gdb_cv_printf_has_long_long = yes; then
14800 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
14804 # Check if the compiler and runtime support printing decfloats.
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
14807 $as_echo_n "checking for decfloat support in printf... " >&6; }
14808 if ${gdb_cv_printf_has_decfloat+:} false
; then :
14809 $as_echo_n "(cached) " >&6
14811 if test "$cross_compiling" = yes; then :
14812 gdb_cv_printf_has_decfloat
=no
14814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14815 /* end confdefs.h. */
14816 $ac_includes_default
14821 _Decimal32 d32 = 1.2345df;
14822 _Decimal64 d64 = 1.2345dd;
14823 _Decimal128 d128 = 1.2345dl;
14824 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
14825 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
14830 if ac_fn_c_try_run
"$LINENO"; then :
14831 gdb_cv_printf_has_decfloat
=yes
14833 gdb_cv_printf_has_decfloat
=no
14835 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14836 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
14841 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
14842 if test $gdb_cv_printf_has_decfloat = yes; then
14844 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
14848 # Check if the compiler supports the `long double' type. We can't use
14849 # AC_C_LONG_DOUBLE because that one does additional checks on the
14850 # constants defined in <float.h> that fail on some systems,
14851 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
14854 $as_echo_n "checking for long double support in compiler... " >&6; }
14855 if ${gdb_cv_c_long_double+:} false
; then :
14856 $as_echo_n "(cached) " >&6
14858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14859 /* end confdefs.h. */
14862 if ac_fn_c_try_compile
"$LINENO"; then :
14863 gdb_cv_c_long_double
=yes
14865 gdb_cv_c_long_double
=no
14867 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
14870 $as_echo "$gdb_cv_c_long_double" >&6; }
14871 if test $gdb_cv_c_long_double = yes; then
14873 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14877 # Check if the compiler and runtime support printing long doubles.
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
14880 $as_echo_n "checking for long double support in printf... " >&6; }
14881 if ${gdb_cv_printf_has_long_double+:} false
; then :
14882 $as_echo_n "(cached) " >&6
14884 if test "$cross_compiling" = yes; then :
14885 gdb_cv_printf_has_long_double
=no
14887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14888 /* end confdefs.h. */
14889 $ac_includes_default
14894 long double f = 3.141592653;
14895 sprintf (buf, "%Lg", f);
14896 return (strncmp ("3.14159", buf, 7));
14901 if ac_fn_c_try_run
"$LINENO"; then :
14902 gdb_cv_printf_has_long_double
=yes
14904 gdb_cv_printf_has_long_double
=no
14906 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14907 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
14912 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
14913 if test $gdb_cv_printf_has_long_double = yes; then
14915 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
14919 # Check if the compiler and runtime support scanning long doubles.
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
14922 $as_echo_n "checking for long double support in scanf... " >&6; }
14923 if ${gdb_cv_scanf_has_long_double+:} false
; then :
14924 $as_echo_n "(cached) " >&6
14926 if test "$cross_compiling" = yes; then :
14927 gdb_cv_scanf_has_long_double
=no
14929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14930 /* end confdefs.h. */
14935 char *buf = "3.141592653";
14937 sscanf (buf, "%Lg", &f);
14938 return !(f > 3.14159 && f < 3.14160);
14943 if ac_fn_c_try_run
"$LINENO"; then :
14944 gdb_cv_scanf_has_long_double
=yes
14946 gdb_cv_scanf_has_long_double
=no
14948 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14949 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
14954 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
14955 if test $gdb_cv_scanf_has_long_double = yes; then
14957 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
14964 $as_echo_n "checking for -bbigtoc option... " >&6; }
14965 if ${gdb_cv_bigtoc+:} false
; then :
14966 $as_echo_n "(cached) " >&6
14969 SAVE_LDFLAGS
=$LDFLAGS
14972 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
14973 *) gdb_cv_bigtoc
=-bbigtoc ;;
14976 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
14977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14978 /* end confdefs.h. */
14988 if ac_fn_c_try_link
"$LINENO"; then :
14993 rm -f core conftest.err conftest.
$ac_objext \
14994 conftest
$ac_exeext conftest.
$ac_ext
14995 LDFLAGS
="${SAVE_LDFLAGS}"
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
14999 $as_echo "$gdb_cv_bigtoc" >&6; }
15000 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
15005 $as_echo_n "checking for the dynamic export flag... " >&6; }
15007 if test "${gdb_native}" = yes; then
15008 # The dynamically loaded libthread_db needs access to symbols in the gdb
15009 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
15010 # may not be supported there.
15011 old_LDFLAGS
="$LDFLAGS"
15012 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
15013 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
15014 LDFLAGS
="$LDFLAGS $RDYNAMIC"
15015 if test "${have_libpython}" = no
; then
15016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15017 /* end confdefs.h. */
15027 if ac_fn_c_try_link
"$LINENO"; then :
15030 rm -f core conftest.err conftest.
$ac_objext \
15031 conftest
$ac_exeext conftest.
$ac_ext
15033 # Workaround http://bugs.python.org/issue4434 where static
15034 # libpythonX.Y.a would get its symbols required for
15035 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
15036 # Problem does not happen for the recommended libpythonX.Y.so linkage.
15038 # Note the workaround for Python
15039 # http://bugs.python.org/issue10112 earlier has removed
15040 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
15041 # here too, as otherwise it'd make this -Wl,--dynamic-list test
15043 old_CFLAGS
="$CFLAGS"
15044 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
15046 LIBS
="$LIBS $PYTHON_LIBS"
15047 old_CPPFLAGS
="$CPPFLAGS"
15048 CPPFLAGS
="$CPPFLAGS $PYTHON_CPPFLAGS"
15049 if test "$cross_compiling" = yes; then :
15052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15053 /* end confdefs.h. */
15054 #include "Python.h"
15060 err = PyRun_SimpleString ("import itertools\n");
15062 return err == 0 ? 0 : 1;
15067 if ac_fn_c_try_run
"$LINENO"; then :
15070 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15071 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15075 CFLAGS
="$old_CFLAGS"
15076 CPPFLAGS
="$old_CPPFLAGS"
15078 LDFLAGS
="$old_LDFLAGS"
15080 if $dynamic_list; then
15081 found
="-Wl,--dynamic-list"
15082 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
15085 RDYNAMIC
="-rdynamic"
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
15089 $as_echo "$found" >&6; }
15092 if test ${build} = ${host} -a ${host} = ${target} ; then
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
15096 $as_echo_n "checking for AiX thread debugging library... " >&6; }
15097 if ${gdb_cv_have_aix_thread_debug+:} false
; then :
15098 $as_echo_n "(cached) " >&6
15100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15101 /* end confdefs.h. */
15102 #include <sys/pthdebug.h>
15106 #ifndef PTHDB_VERSION_3
15113 if ac_fn_c_try_compile
"$LINENO"; then :
15114 gdb_cv_have_aix_thread_debug
=yes
15116 gdb_cv_have_aix_thread_debug
=no
15118 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
15122 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
15123 if test $gdb_cv_have_aix_thread_debug = yes; then
15124 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
15125 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
15126 LIBS
="$LIBS -lpthdebug"
15128 # Older versions of AIX do not provide the declaration for
15129 # the getthrds function (it appears that it was introduced
15131 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
15133 if test "x$ac_cv_have_decl_getthrds" = xyes
; then :
15139 cat >>confdefs.h
<<_ACEOF
15140 #define HAVE_DECL_GETTHRDS $ac_have_decl
15149 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
15151 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
15152 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false
; then :
15153 $as_echo_n "(cached) " >&6
15155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15156 /* end confdefs.h. */
15157 #include <thread_db.h>
15161 int i = TD_NOTALLOC;
15166 if ac_fn_c_try_compile
"$LINENO"; then :
15167 gdb_cv_thread_db_h_has_td_notalloc
=yes
15169 gdb_cv_thread_db_h_has_td_notalloc
=no
15172 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
15176 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
15178 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
15179 if ${gdb_cv_thread_db_h_has_td_version+:} false
; then :
15180 $as_echo_n "(cached) " >&6
15182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15183 /* end confdefs.h. */
15184 #include <thread_db.h>
15188 int i = TD_VERSION;
15193 if ac_fn_c_try_compile
"$LINENO"; then :
15194 gdb_cv_thread_db_h_has_td_version
=yes
15196 gdb_cv_thread_db_h_has_td_version
=no
15199 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
15203 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
15205 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
15206 if ${gdb_cv_thread_db_h_has_td_notls+:} false
; then :
15207 $as_echo_n "(cached) " >&6
15209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15210 /* end confdefs.h. */
15211 #include <thread_db.h>
15220 if ac_fn_c_try_compile
"$LINENO"; then :
15221 gdb_cv_thread_db_h_has_td_notls
=yes
15223 gdb_cv_thread_db_h_has_td_notls
=no
15226 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
15230 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
15232 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
15234 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
15237 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
15239 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
15242 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
15244 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
15248 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
15250 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
15256 cat >>confdefs.h
<<_ACEOF
15257 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
15261 if test "$cross_compiling" = yes; then :
15262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15263 /* end confdefs.h. */
15264 #include <sys/personality.h>
15269 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
15270 # define ADDR_NO_RANDOMIZE 0x0040000
15272 /* Test the flag could be set and stays set. */
15273 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
15274 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
15280 if ac_fn_c_try_link
"$LINENO"; then :
15281 have_personality
=true
15283 have_personality
=false
15285 rm -f core conftest.err conftest.
$ac_objext \
15286 conftest
$ac_exeext conftest.
$ac_ext
15288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15289 /* end confdefs.h. */
15290 #include <sys/personality.h>
15295 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
15296 # define ADDR_NO_RANDOMIZE 0x0040000
15298 /* Test the flag could be set and stays set. */
15299 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
15300 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
15306 if ac_fn_c_try_run
"$LINENO"; then :
15307 have_personality
=true
15309 have_personality
=false
15311 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15312 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15315 if $have_personality
15318 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
15331 cat >>confdefs.h
<<_ACEOF
15332 #define GDBINIT "$gdbinit"
15337 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
15338 # except that the argument to --with-sysroot is optional.
15339 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
15340 if test "x$with_sysroot" = xyes
; then
15341 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
15344 # Check whether --with-sysroot was given.
15345 if test "${with_sysroot+set}" = set; then :
15346 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
15348 TARGET_SYSTEM_ROOT
=
15352 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
15353 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15354 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
15355 ac_define_dir
=`eval echo $ac_define_dir`
15357 cat >>confdefs.h
<<_ACEOF
15358 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
15364 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
15365 if test "x$prefix" = xNONE
; then
15366 test_prefix
=/usr
/local
15368 test_prefix
=$prefix
15371 test_prefix
=$exec_prefix
15374 case ${ac_define_dir} in
15375 "${test_prefix}"|
"${test_prefix}/"*|\
15376 '${exec_prefix}'|
'${exec_prefix}/'*)
15381 cat >>confdefs.h
<<_ACEOF
15382 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
15389 # Check whether --with-system-gdbinit was given.
15390 if test "${with_system_gdbinit+set}" = set; then :
15391 withval
=$with_system_gdbinit;
15392 SYSTEM_GDBINIT
=$withval
15398 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
15399 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15400 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
15401 ac_define_dir
=`eval echo $ac_define_dir`
15403 cat >>confdefs.h
<<_ACEOF
15404 #define SYSTEM_GDBINIT "$ac_define_dir"
15410 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
15411 if test "x$prefix" = xNONE
; then
15412 test_prefix
=/usr
/local
15414 test_prefix
=$prefix
15417 test_prefix
=$exec_prefix
15420 case ${ac_define_dir} in
15421 "${test_prefix}"|
"${test_prefix}/"*|\
15422 '${exec_prefix}'|
'${exec_prefix}/'*)
15427 cat >>confdefs.h
<<_ACEOF
15428 #define SYSTEM_GDBINIT_RELOCATABLE $value
15435 # Check whether --enable-werror was given.
15436 if test "${enable_werror+set}" = set; then :
15437 enableval
=$enable_werror; case "${enableval}" in
15438 yes | y
) ERROR_ON_WARNING
="yes" ;;
15439 no | n
) ERROR_ON_WARNING
="no" ;;
15440 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15445 # Enable -Werror by default when using gcc. Turn it off for releases.
15446 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
15447 ERROR_ON_WARNING
=yes
15451 if test "${ERROR_ON_WARNING}" = yes ; then
15452 WERROR_CFLAGS
="-Werror"
15455 # The options we'll try to enable.
15456 build_warnings
="-Wall -Wpointer-arith \
15457 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
15458 -Wno-switch -Wno-char-subscripts \
15459 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
15460 -Wno-sign-compare -Wno-error=maybe-uninitialized \
15461 -Wno-mismatched-tags \
15462 -Wno-error=deprecated-register \
15463 -Wsuggest-override \
15464 -Wimplicit-fallthrough=3 \
15465 -Wduplicated-cond \
15470 # Enable -Wno-format by default when using gcc on mingw since many
15471 # GCC versions complain about %I64.
15472 build_warnings
="$build_warnings -Wno-format" ;;
15474 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
15475 # doesn't understand.
15476 build_warnings
="$build_warnings -Wno-unknown-pragmas"
15477 # Solaris 11 <unistd.h> marks vfork deprecated.
15478 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
15480 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
15481 # but there's a special case for this below.
15482 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
15485 # Check whether --enable-build-warnings was given.
15486 if test "${enable_build_warnings+set}" = set; then :
15487 enableval
=$enable_build_warnings; case "${enableval}" in
15489 no
) build_warnings
="-w";;
15490 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15491 build_warnings
="${build_warnings} ${t}";;
15492 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15493 build_warnings
="${t} ${build_warnings}";;
15494 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15496 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
15497 echo "Setting compiler warning flags = $build_warnings" 6>&1
15500 # Check whether --enable-gdb-build-warnings was given.
15501 if test "${enable_gdb_build_warnings+set}" = set; then :
15502 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
15504 no
) build_warnings
="-w";;
15505 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15506 build_warnings
="${build_warnings} ${t}";;
15507 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15508 build_warnings
="${t} ${build_warnings}";;
15509 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15511 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
15512 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
15516 # The set of warnings supported by a C++ compiler is not the same as
15517 # of the C compiler.
15519 ac_cpp
='$CXXCPP $CPPFLAGS'
15520 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15521 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15522 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
15526 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
15529 $as_echo_n "checking compiler warning flags... " >&6; }
15530 # Separate out the -Werror flag as some files just cannot be
15531 # compiled with it enabled.
15532 for w
in ${build_warnings}; do
15533 # GCC does not complain about -Wno-unknown-warning. Invert
15534 # and test -Wunknown-warning instead.
15537 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
15538 -Wformat-nonliteral)
15539 # gcc requires -Wformat before -Wformat-nonliteral
15540 # will work, so stick them together.
15549 -Werr*) WERROR_CFLAGS
=-Werror ;;
15551 # Check whether GCC accepts it.
15552 saved_CFLAGS
="$CFLAGS"
15553 CFLAGS
="$CFLAGS -Werror $wtest"
15554 saved_CXXFLAGS
="$CXXFLAGS"
15555 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
15556 if test "x$w" = "x-Wunused-variable"; then
15557 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
15558 # fixed in GCC 4.9. This test is derived from the gdb
15559 # source code that triggered this bug in GCC.
15560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15561 /* end confdefs.h. */
15562 struct scoped_restore_base {};
15563 struct scoped_restore_tmpl : public scoped_restore_base {
15564 ~scoped_restore_tmpl() {}
15569 const scoped_restore_base &b = scoped_restore_tmpl();
15574 if ac_fn_cxx_try_compile
"$LINENO"; then :
15575 WARN_CFLAGS
="${WARN_CFLAGS} $w"
15577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15580 /* end confdefs.h. */
15590 if ac_fn_cxx_try_compile
"$LINENO"; then :
15591 WARN_CFLAGS
="${WARN_CFLAGS} $w"
15593 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15595 CFLAGS
="$saved_CFLAGS"
15596 CXXFLAGS
="$saved_CXXFLAGS"
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
15600 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
15606 ac_cpp='$CPP $CPPFLAGS'
15607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15613 # Check whether --enable-ubsan was given.
15614 if test "${enable_ubsan+set}" = set; then :
15615 enableval=$enable_ubsan;
15620 if test "x
$enable_ubsan" = xauto; then
15621 if $development; then
15626 ac_cpp='$CXXCPP $CPPFLAGS'
15627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15631 if test "x
$enable_ubsan" = xyes; then
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
-fsanitize=undefined is accepted
" >&5
15633 $as_echo_n "checking whether
-fsanitize=undefined is accepted...
" >&6; }
15634 saved_CXXFLAGS="$CXXFLAGS"
15635 CXXFLAGS="$CXXFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
15636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15637 /* end confdefs.h. */
15647 if ac_fn_cxx_try_link "$LINENO"; then :
15652 rm -f core conftest.err conftest.$ac_objext \
15653 conftest$ac_exeext conftest.$ac_ext
15654 CXXFLAGS="$saved_CXXFLAGS"
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $enable_ubsan" >&5
15656 $as_echo "$enable_ubsan" >&6; }
15657 if test "x
$enable_ubsan" = xyes; then
15658 WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
15659 CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined
"
15663 ac_cpp='$CPP $CPPFLAGS'
15664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15670 # In the Cygwin environment, we need some additional flags.
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
15672 $as_echo_n "checking
for cygwin...
" >&6; }
15673 if ${gdb_cv_os_cygwin+:} false; then :
15674 $as_echo_n "(cached
) " >&6
15676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15677 /* end confdefs.h. */
15679 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
15683 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15684 $EGREP "^lose$
" >/dev/null 2>&1; then :
15685 gdb_cv_os_cygwin=yes
15687 gdb_cv_os_cygwin=no
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
15693 $as_echo "$gdb_cv_os_cygwin" >&6; }
15696 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
15698 *go32* ) SER_HARDWIRE=ser-go32.o ;;
15699 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
15700 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
15701 *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o
" ;;
15705 # libreadline needs libuser32.a in a cygwin environment
15707 if test x$gdb_cv_os_cygwin = xyes; then
15708 WIN32LIBS="-luser32"
15709 case "${target}" in
15710 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
15715 # The ser-tcp.c module requires sockets.
15719 $as_echo "#define USE_WIN32API 1" >>confdefs.h
15721 WIN32LIBS
="$WIN32LIBS -lws2_32"
15726 # Add ELF support to GDB, but only if BFD includes ELF support.
15729 OLD_LDFLAGS
=$LDFLAGS
15731 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
15732 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
15733 # always want our bfd.
15734 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
15735 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
15736 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
15737 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15738 LIBS
="-lbfd -liberty -lz $intl $LIBS"
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
15740 $as_echo_n "checking for ELF support in BFD... " >&6; }
15741 if ${gdb_cv_var_elf+:} false
; then :
15742 $as_echo_n "(cached) " >&6
15744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15745 /* end confdefs.h. */
15746 #include <stdlib.h>
15748 #include "elf-bfd.h"
15753 return bfd_get_elf_phdr_upper_bound (NULL);
15758 if ac_fn_c_try_link
"$LINENO"; then :
15763 rm -f core conftest.err conftest.
$ac_objext \
15764 conftest
$ac_exeext conftest.
$ac_ext
15766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
15767 $as_echo "$gdb_cv_var_elf" >&6; }
15769 LDFLAGS
=$OLD_LDFLAGS
15771 if test $gdb_cv_var_elf = yes; then
15772 CONFIG_OBS
="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o"
15774 $as_echo "#define HAVE_ELF 1" >>confdefs.h
15776 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
15777 if test "$plugins" = "yes"; then
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15779 $as_echo_n "checking for library containing dlopen... " >&6; }
15780 if ${ac_cv_search_dlopen+:} false
; then :
15781 $as_echo_n "(cached) " >&6
15783 ac_func_search_save_LIBS
=$LIBS
15784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15785 /* end confdefs.h. */
15787 /* Override any GCC internal prototype to avoid an error.
15788 Use char because int might match the return type of a GCC
15789 builtin and then its argument prototype would still apply. */
15802 for ac_lib
in '' dl
; do
15803 if test -z "$ac_lib"; then
15804 ac_res
="none required"
15807 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15809 if ac_fn_c_try_link
"$LINENO"; then :
15810 ac_cv_search_dlopen
=$ac_res
15812 rm -f core conftest.err conftest.
$ac_objext \
15814 if ${ac_cv_search_dlopen+:} false
; then :
15818 if ${ac_cv_search_dlopen+:} false
; then :
15821 ac_cv_search_dlopen
=no
15823 rm conftest.
$ac_ext
15824 LIBS
=$ac_func_search_save_LIBS
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15827 $as_echo "$ac_cv_search_dlopen" >&6; }
15828 ac_res
=$ac_cv_search_dlopen
15829 if test "$ac_res" != no
; then :
15830 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15837 # Add macho support to GDB, but only if BFD includes it.
15840 OLD_LDFLAGS
=$LDFLAGS
15842 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
15843 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
15844 # always want our bfd.
15845 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
15846 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
15847 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
15848 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15849 LIBS
="-lbfd -liberty -lz $intl $LIBS"
15850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
15851 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
15852 if ${gdb_cv_var_macho+:} false
; then :
15853 $as_echo_n "(cached) " >&6
15855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15856 /* end confdefs.h. */
15857 #include <stdlib.h>
15859 #include "mach-o.h"
15864 return bfd_mach_o_lookup_command (NULL, 0, NULL);
15869 if ac_fn_c_try_link
"$LINENO"; then :
15870 gdb_cv_var_macho
=yes
15872 gdb_cv_var_macho
=no
15874 rm -f core conftest.err conftest.
$ac_objext \
15875 conftest
$ac_exeext conftest.
$ac_ext
15877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
15878 $as_echo "$gdb_cv_var_macho" >&6; }
15880 LDFLAGS
=$OLD_LDFLAGS
15882 if test $gdb_cv_var_macho = yes; then
15883 CONFIG_OBS
="$CONFIG_OBS machoread.o"
15886 # Add any host-specific objects to GDB.
15887 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
15889 # If building on ELF, look for lzma support for embedded compressed debug info.
15890 if test $gdb_cv_var_elf = yes; then
15892 # Check whether --with-lzma was given.
15893 if test "${with_lzma+set}" = set; then :
15894 withval
=$with_lzma;
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
15900 $as_echo_n "checking whether to use lzma... " >&6; }
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
15902 $as_echo "$with_lzma" >&6; }
15904 if test "${with_lzma}" != no
; then
15915 acl_save_prefix
="$prefix"
15916 prefix
="$acl_final_prefix"
15917 acl_save_exec_prefix
="$exec_prefix"
15918 exec_prefix
="$acl_final_exec_prefix"
15920 eval additional_includedir
=\"$includedir\"
15921 eval additional_libdir
=\"$libdir\"
15923 exec_prefix
="$acl_save_exec_prefix"
15924 prefix
="$acl_save_prefix"
15927 # Check whether --with-liblzma-prefix was given.
15928 if test "${with_liblzma_prefix+set}" = set; then :
15929 withval
=$with_liblzma_prefix;
15930 if test "X$withval" = "Xno"; then
15933 if test "X$withval" = "X"; then
15935 acl_save_prefix
="$prefix"
15936 prefix
="$acl_final_prefix"
15937 acl_save_exec_prefix
="$exec_prefix"
15938 exec_prefix
="$acl_final_exec_prefix"
15940 eval additional_includedir
=\"$includedir\"
15941 eval additional_libdir
=\"$libdir\"
15943 exec_prefix
="$acl_save_exec_prefix"
15944 prefix
="$acl_save_prefix"
15947 additional_includedir
="$withval/include"
15948 additional_libdir
="$withval/lib"
15959 names_already_handled
=
15960 names_next_round
='lzma '
15961 while test -n "$names_next_round"; do
15962 names_this_round
="$names_next_round"
15964 for name
in $names_this_round; do
15966 for n
in $names_already_handled; do
15967 if test "$n" = "$name"; then
15968 already_handled
=yes
15972 if test -z "$already_handled"; then
15973 names_already_handled
="$names_already_handled $name"
15974 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15975 eval value
=\"\
$HAVE_LIB$uppername\"
15976 if test -n "$value"; then
15977 if test "$value" = yes; then
15978 eval value
=\"\
$LIB$uppername\"
15979 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
15980 eval value
=\"\
$LTLIB$uppername\"
15981 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
15990 if test $use_additional = yes; then
15991 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15992 found_dir
="$additional_libdir"
15993 found_so
="$additional_libdir/lib$name.$shlibext"
15994 if test -f "$additional_libdir/lib$name.la"; then
15995 found_la
="$additional_libdir/lib$name.la"
15998 if test -f "$additional_libdir/lib$name.$libext"; then
15999 found_dir
="$additional_libdir"
16000 found_a
="$additional_libdir/lib$name.$libext"
16001 if test -f "$additional_libdir/lib$name.la"; then
16002 found_la
="$additional_libdir/lib$name.la"
16007 if test "X$found_dir" = "X"; then
16008 for x
in $LDFLAGS $LTLIBLZMA; do
16010 acl_save_prefix
="$prefix"
16011 prefix
="$acl_final_prefix"
16012 acl_save_exec_prefix
="$exec_prefix"
16013 exec_prefix
="$acl_final_exec_prefix"
16015 exec_prefix
="$acl_save_exec_prefix"
16016 prefix
="$acl_save_prefix"
16020 dir
=`echo "X$x" | sed -e 's/^X-L//'`
16021 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16023 found_so
="$dir/lib$name.$shlibext"
16024 if test -f "$dir/lib$name.la"; then
16025 found_la
="$dir/lib$name.la"
16028 if test -f "$dir/lib$name.$libext"; then
16030 found_a
="$dir/lib$name.$libext"
16031 if test -f "$dir/lib$name.la"; then
16032 found_la
="$dir/lib$name.la"
16038 if test "X$found_dir" != "X"; then
16043 if test "X$found_dir" != "X"; then
16044 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
16045 if test "X$found_so" != "X"; then
16046 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
16047 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
16050 for x
in $ltrpathdirs; do
16051 if test "X$x" = "X$found_dir"; then
16056 if test -z "$haveit"; then
16057 ltrpathdirs
="$ltrpathdirs $found_dir"
16059 if test "$hardcode_direct" = yes; then
16060 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
16062 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
16063 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
16065 for x
in $rpathdirs; do
16066 if test "X$x" = "X$found_dir"; then
16071 if test -z "$haveit"; then
16072 rpathdirs
="$rpathdirs $found_dir"
16076 for x
in $LDFLAGS $LIBLZMA; do
16078 acl_save_prefix
="$prefix"
16079 prefix
="$acl_final_prefix"
16080 acl_save_exec_prefix
="$exec_prefix"
16081 exec_prefix
="$acl_final_exec_prefix"
16083 exec_prefix
="$acl_save_exec_prefix"
16084 prefix
="$acl_save_prefix"
16086 if test "X$x" = "X-L$found_dir"; then
16091 if test -z "$haveit"; then
16092 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
16094 if test "$hardcode_minus_L" != no
; then
16095 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
16097 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
16103 if test "X$found_a" != "X"; then
16104 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
16106 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
16109 additional_includedir
=
16110 case "$found_dir" in
16112 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16113 additional_includedir
="$basedir/include"
16116 if test "X$additional_includedir" != "X"; then
16117 if test "X$additional_includedir" != "X/usr/include"; then
16119 if test "X$additional_includedir" = "X/usr/local/include"; then
16120 if test -n "$GCC"; then
16122 linux
*) haveit
=yes;;
16126 if test -z "$haveit"; then
16127 for x
in $CPPFLAGS $INCLZMA; do
16129 acl_save_prefix
="$prefix"
16130 prefix
="$acl_final_prefix"
16131 acl_save_exec_prefix
="$exec_prefix"
16132 exec_prefix
="$acl_final_exec_prefix"
16134 exec_prefix
="$acl_save_exec_prefix"
16135 prefix
="$acl_save_prefix"
16137 if test "X$x" = "X-I$additional_includedir"; then
16142 if test -z "$haveit"; then
16143 if test -d "$additional_includedir"; then
16144 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
16150 if test -n "$found_la"; then
16151 save_libdir
="$libdir"
16152 case "$found_la" in
16153 */* |
*\\*) .
"$found_la" ;;
16154 *) .
"./$found_la" ;;
16156 libdir
="$save_libdir"
16157 for dep
in $dependency_libs; do
16160 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
16161 if test "X$additional_libdir" != "X/usr/lib"; then
16163 if test "X$additional_libdir" = "X/usr/local/lib"; then
16164 if test -n "$GCC"; then
16166 linux
*) haveit
=yes;;
16170 if test -z "$haveit"; then
16172 for x
in $LDFLAGS $LIBLZMA; do
16174 acl_save_prefix
="$prefix"
16175 prefix
="$acl_final_prefix"
16176 acl_save_exec_prefix
="$exec_prefix"
16177 exec_prefix
="$acl_final_exec_prefix"
16179 exec_prefix
="$acl_save_exec_prefix"
16180 prefix
="$acl_save_prefix"
16182 if test "X$x" = "X-L$additional_libdir"; then
16187 if test -z "$haveit"; then
16188 if test -d "$additional_libdir"; then
16189 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
16193 for x
in $LDFLAGS $LTLIBLZMA; do
16195 acl_save_prefix
="$prefix"
16196 prefix
="$acl_final_prefix"
16197 acl_save_exec_prefix
="$exec_prefix"
16198 exec_prefix
="$acl_final_exec_prefix"
16200 exec_prefix
="$acl_save_exec_prefix"
16201 prefix
="$acl_save_prefix"
16203 if test "X$x" = "X-L$additional_libdir"; then
16208 if test -z "$haveit"; then
16209 if test -d "$additional_libdir"; then
16210 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
16217 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
16218 if test "$enable_rpath" != no
; then
16220 for x
in $rpathdirs; do
16221 if test "X$x" = "X$dir"; then
16226 if test -z "$haveit"; then
16227 rpathdirs
="$rpathdirs $dir"
16230 for x
in $ltrpathdirs; do
16231 if test "X$x" = "X$dir"; then
16236 if test -z "$haveit"; then
16237 ltrpathdirs
="$ltrpathdirs $dir"
16242 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16245 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16248 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
16249 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
16255 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
16256 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
16262 if test "X$rpathdirs" != "X"; then
16263 if test -n "$hardcode_libdir_separator"; then
16265 for found_dir
in $rpathdirs; do
16266 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16268 acl_save_libdir
="$libdir"
16270 eval flag
=\"$hardcode_libdir_flag_spec\"
16271 libdir
="$acl_save_libdir"
16272 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
16274 for found_dir
in $rpathdirs; do
16275 acl_save_libdir
="$libdir"
16276 libdir
="$found_dir"
16277 eval flag
=\"$hardcode_libdir_flag_spec\"
16278 libdir
="$acl_save_libdir"
16279 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
16283 if test "X$ltrpathdirs" != "X"; then
16284 for found_dir
in $ltrpathdirs; do
16285 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
16290 ac_save_CPPFLAGS
="$CPPFLAGS"
16292 for element
in $INCLZMA; do
16294 for x
in $CPPFLAGS; do
16296 acl_save_prefix
="$prefix"
16297 prefix
="$acl_final_prefix"
16298 acl_save_exec_prefix
="$exec_prefix"
16299 exec_prefix
="$acl_final_exec_prefix"
16301 exec_prefix
="$acl_save_exec_prefix"
16302 prefix
="$acl_save_prefix"
16304 if test "X$x" = "X$element"; then
16309 if test -z "$haveit"; then
16310 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
16316 $as_echo_n "checking for liblzma... " >&6; }
16317 if ${ac_cv_liblzma+:} false
; then :
16318 $as_echo_n "(cached) " >&6
16321 ac_save_LIBS
="$LIBS"
16322 LIBS
="$LIBS $LIBLZMA"
16323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16324 /* end confdefs.h. */
16329 lzma_index_iter iter;
16330 lzma_index_iter_init (&iter, 0);
16331 lzma_mf_is_supported (LZMA_MF_HC3);
16336 if ac_fn_c_try_link
"$LINENO"; then :
16341 rm -f core conftest.err conftest.
$ac_objext \
16342 conftest
$ac_exeext conftest.
$ac_ext
16343 LIBS
="$ac_save_LIBS"
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
16347 $as_echo "$ac_cv_liblzma" >&6; }
16348 if test "$ac_cv_liblzma" = yes; then
16351 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
16354 $as_echo_n "checking how to link with liblzma... " >&6; }
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
16356 $as_echo "$LIBLZMA" >&6; }
16359 CPPFLAGS
="$ac_save_CPPFLAGS"
16369 if test "$HAVE_LIBLZMA" != yes; then
16370 if test "$with_lzma" = yes; then
16371 as_fn_error $?
"missing liblzma for --with-lzma" "$LINENO" 5
16377 LIBGUI
="../libgui/src/libgui.a"
16378 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
16387 *-*-cygwin* |
*-*-mingw* )
16396 if test "${enable_gdbtk}" = "yes"; then
16398 # Gdbtk must have an absolute path to srcdir in order to run
16399 # properly when not installed.
16402 GDBTK_SRC_DIR
=`pwd`
16407 # Ok, lets find the tcl configuration
16408 # First, look for one uninstalled.
16409 # the alternative search directory is invoked by --with-tcl
16412 if test x
"${no_tcl}" = x
; then
16413 # we reset no_tcl in case something fails here
16416 # Check whether --with-tcl was given.
16417 if test "${with_tcl+set}" = set; then :
16418 withval
=$with_tcl; with_tclconfig
=${withval}
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
16422 $as_echo_n "checking for Tcl configuration... " >&6; }
16423 if ${ac_cv_c_tclconfig+:} false
; then :
16424 $as_echo_n "(cached) " >&6
16428 # First check to see if --with-tcl was specified.
16430 *-*-cygwin*) platDir
="win" ;;
16431 *) platDir
="unix" ;;
16433 if test x
"${with_tclconfig}" != x
; then
16434 if test -f "${with_tclconfig}/tclConfig.sh" ; then
16435 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
16437 as_fn_error $?
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
16441 # then check for a private Tcl installation
16442 if test x
"${ac_cv_c_tclconfig}" = x
; then
16445 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16446 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
16447 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
16449 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16450 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
16451 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
16453 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16454 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
16455 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
16456 if test -f "$i/$platDir/tclConfig.sh" ; then
16457 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
16463 # on Darwin, check in Framework installation locations
16464 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
16465 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
16466 `ls -d /Library/Frameworks 2>/dev/null` \
16467 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16468 `ls -d /System/Library/Frameworks 2>/dev/null` \
16470 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
16471 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
16477 # check in a few common install locations
16478 if test x
"${ac_cv_c_tclconfig}" = x
; then
16479 for i
in `ls -d ${libdir} 2>/dev/null` \
16480 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16481 `ls -d ${prefix}/lib 2>/dev/null` \
16482 `ls -d /usr/local/lib 2>/dev/null` \
16483 `ls -d /usr/contrib/lib 2>/dev/null` \
16484 `ls -d /usr/lib 2>/dev/null` \
16486 if test -f "$i/tclConfig.sh" ; then
16487 ac_cv_c_tclconfig
=`(cd $i; pwd)`
16493 # check in a few other private locations
16494 if test x
"${ac_cv_c_tclconfig}" = x
; then
16497 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16498 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
16499 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
16500 if test -f "$i/$platDir/tclConfig.sh" ; then
16501 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
16510 if test x
"${ac_cv_c_tclconfig}" = x
; then
16511 TCL_BIN_DIR
="# no Tcl configs found"
16512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
16513 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
16516 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
16517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
16518 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
16523 # If $no_tk is nonempty, then we can't do Tk, and there is no
16524 # point to doing Tcl.
16527 # Ok, lets find the tk configuration
16528 # First, look for one uninstalled.
16529 # the alternative search directory is invoked by --with-tk
16532 if test x
"${no_tk}" = x
; then
16533 # we reset no_tk in case something fails here
16536 # Check whether --with-tk was given.
16537 if test "${with_tk+set}" = set; then :
16538 withval
=$with_tk; with_tkconfig
=${withval}
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
16542 $as_echo_n "checking for Tk configuration... " >&6; }
16543 if ${ac_cv_c_tkconfig+:} false
; then :
16544 $as_echo_n "(cached) " >&6
16548 # First check to see if --with-tkconfig was specified.
16549 if test x
"${with_tkconfig}" != x
; then
16550 if test -f "${with_tkconfig}/tkConfig.sh" ; then
16551 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
16553 as_fn_error $?
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
16557 # then check for a private Tk library
16559 *-*-cygwin*) platDir
="win" ;;
16560 *) platDir
="unix" ;;
16562 if test x
"${ac_cv_c_tkconfig}" = x
; then
16565 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16566 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
16567 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
16569 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16570 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
16571 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
16573 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16574 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
16575 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
16576 if test -f "$i/$platDir/tkConfig.sh" ; then
16577 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
16583 # on Darwin, check in Framework installation locations
16584 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
16585 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
16586 `ls -d /Library/Frameworks 2>/dev/null` \
16587 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16588 `ls -d /System/Library/Frameworks 2>/dev/null` \
16590 if test -f "$i/Tk.framework/tkConfig.sh" ; then
16591 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
16597 # check in a few common install locations
16598 if test x
"${ac_cv_c_tkconfig}" = x
; then
16599 for i
in `ls -d ${libdir} 2>/dev/null` \
16600 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16601 `ls -d ${prefix}/lib 2>/dev/null` \
16602 `ls -d /usr/local/lib 2>/dev/null` \
16603 `ls -d /usr/contrib/lib 2>/dev/null` \
16604 `ls -d /usr/lib 2>/dev/null` \
16606 if test -f "$i/tkConfig.sh" ; then
16607 ac_cv_c_tkconfig
=`(cd $i; pwd)`
16612 # check in a few other private locations
16613 if test x
"${ac_cv_c_tkconfig}" = x
; then
16616 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16617 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
16618 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
16619 if test -f "$i/$platDir/tkConfig.sh" ; then
16620 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
16629 if test x
"${ac_cv_c_tkconfig}" = x
; then
16630 TK_BIN_DIR
="# no Tk configs found"
16631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
16632 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
16635 TK_BIN_DIR
=${ac_cv_c_tkconfig}
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
16637 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
16642 if test -z "${no_tcl}" -a -z "${no_tk}"; then
16644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
16645 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
16647 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
16649 $as_echo "loading" >&6; }
16650 .
${TCL_BIN_DIR}/tclConfig.sh
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
16653 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
16656 # eval is required to do the TCL_DBGX substitution
16657 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
16658 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
16660 # If the TCL_BIN_DIR is the build directory (not the install directory),
16661 # then set the common variable name to the value of the build variables.
16662 # For example, the variable TCL_LIB_SPEC will be set to the value
16663 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
16664 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
16665 # installed and uninstalled version of Tcl.
16666 if test -f "${TCL_BIN_DIR}/Makefile" ; then
16667 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
16668 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
16669 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
16670 elif test "`uname -s`" = "Darwin"; then
16671 # If Tcl was built as a framework, attempt to use the libraries
16672 # from the framework at the given location so that linking works
16673 # against Tcl.framework installed in an arbitrary location.
16674 case ${TCL_DEFS} in
16676 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
16677 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
16678 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
16679 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
16680 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
16685 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
16686 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
16687 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
16693 # eval is required to do the TCL_DBGX substitution
16694 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
16695 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
16696 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
16697 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
16713 # Check for in-tree tcl
16720 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
16724 # Find Tcl private headers
16725 if test x
"${intree}" = xno
; then
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
16728 $as_echo_n "checking for Tcl private headers... " >&6; }
16730 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
16731 if test -f ${dir}/tclInt.h
; then
16735 if test x
"${private_dir}" = x
; then
16736 as_fn_error $?
"could not find private Tcl headers" "$LINENO" 5
16738 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
16740 $as_echo "${private_dir}" >&6; }
16743 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
16744 TCL_LIBRARY
="${TCL_LIB_SPEC}"
16747 # If building tcl in the same src tree, private headers
16748 # are not needed, but we need to be sure to use the right
16750 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
16751 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
16752 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
16760 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
16762 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
16764 $as_echo "loading" >&6; }
16765 .
${TK_BIN_DIR}/tkConfig.sh
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
16768 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
16771 # eval is required to do the TK_DBGX substitution
16772 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
16773 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
16775 # If the TK_BIN_DIR is the build directory (not the install directory),
16776 # then set the common variable name to the value of the build variables.
16777 # For example, the variable TK_LIB_SPEC will be set to the value
16778 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
16779 # instead of TK_BUILD_LIB_SPEC since it will work with both an
16780 # installed and uninstalled version of Tcl.
16781 if test -f "${TK_BIN_DIR}/Makefile" ; then
16782 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
16783 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
16784 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
16785 elif test "`uname -s`" = "Darwin"; then
16786 # If Tk was built as a framework, attempt to use the libraries
16787 # from the framework at the given location so that linking works
16788 # against Tk.framework installed in an arbitrary location.
16791 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
16792 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
16793 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
16794 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
16795 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
16800 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
16801 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
16802 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
16808 # eval is required to do the TK_DBGX substitution
16809 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
16810 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
16811 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
16812 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
16827 # Check for in-tree Tk
16829 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
16833 # Find Tk private headers
16834 if test x
"${intree}" = xno
; then
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
16837 $as_echo_n "checking for Tk private headers... " >&6; }
16839 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
16840 if test -f ${dir}/tkInt.h
; then
16844 if test x
"${private_dir}" = x
; then
16845 as_fn_error $?
"could not find Tk private headers" "$LINENO" 5
16847 TK_PRIVATE_INCLUDE
="-I${private_dir}"
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
16849 $as_echo "${private_dir}" >&6; }
16852 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
16853 TK_LIBRARY
=${TK_LIB_SPEC}
16856 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
16857 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
16858 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
16865 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
16867 # Include some libraries that Tcl and Tk want.
16868 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
16869 # Yes, the ordering seems wrong here. But it isn't.
16870 # TK_LIBS is the list of libraries that need to be linked
16871 # after Tcl/Tk. Note that this isn't put into LIBS. If it
16872 # were in LIBS then any link tests after this point would
16873 # try to include things like `$(LIBGUI)', which wouldn't work.
16874 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
16876 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
16877 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
16878 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
16879 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
16880 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
16881 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
16882 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
16884 if test x
$gdb_cv_os_cygwin = xyes
; then
16885 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
16886 WIN32LDAPP
="-Wl,--subsystem,console"
16887 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
16890 subdirs
="$subdirs gdbtk"
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
16903 $as_echo_n "checking for X... " >&6; }
16906 # Check whether --with-x was given.
16907 if test "${with_x+set}" = set; then :
16911 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
16912 if test "x$with_x" = xno
; then
16913 # The user explicitly disabled X.
16916 case $x_includes,$x_libraries in #(
16917 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
16918 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
16919 $as_echo_n "(cached) " >&6
16921 # One or both of the vars are not set, and there is no cached value.
16922 ac_x_includes
=no ac_x_libraries
=no
16923 rm -f -r conftest.dir
16924 if mkdir conftest.dir
; then
16926 cat >Imakefile
<<'_ACEOF'
16928 @echo incroot='${INCROOT}'
16930 @echo usrlibdir='${USRLIBDIR}'
16932 @echo libdir='${LIBDIR}'
16934 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
16935 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16936 for ac_var
in incroot usrlibdir libdir
; do
16937 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
16939 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
16940 for ac_extension
in a so sl dylib la dll
; do
16941 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
16942 test -f "$ac_im_libdir/libX11.$ac_extension"; then
16943 ac_im_usrlibdir
=$ac_im_libdir; break
16946 # Screen out bogus values from the imake configuration. They are
16947 # bogus both because they are the default anyway, and because
16948 # using them would break gcc on systems where it needs fixed includes.
16949 case $ac_im_incroot in
16950 /usr
/include
) ac_x_includes
= ;;
16951 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
16953 case $ac_im_usrlibdir in
16954 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
16955 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
16959 rm -f -r conftest.dir
16962 # Standard set of common directories for X headers.
16963 # Check X11 before X11Rn because it is often a symlink to the current release.
16977 /usr/local/X11/include
16978 /usr/local/X11R7/include
16979 /usr/local/X11R6/include
16980 /usr/local/X11R5/include
16981 /usr/local/X11R4/include
16983 /usr/local/include/X11
16984 /usr/local/include/X11R7
16985 /usr/local/include/X11R6
16986 /usr/local/include/X11R5
16987 /usr/local/include/X11R4
16991 /usr/XFree86/include/X11
16995 /usr/unsupported/include
16996 /usr/athena/include
16997 /usr/local/x11r5/include
16998 /usr/lpp/Xamples/include
17000 /usr/openwin/include
17001 /usr/openwin/share/include'
17003 if test "$ac_x_includes" = no
; then
17004 # Guess where to find include files, by looking for Xlib.h.
17005 # First, try using that file with no special directory specified.
17006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17007 /* end confdefs.h. */
17008 #include <X11/Xlib.h>
17010 if ac_fn_c_try_cpp
"$LINENO"; then :
17011 # We can compile using X headers with no special include directory.
17014 for ac_dir
in $ac_x_header_dirs; do
17015 if test -r "$ac_dir/X11/Xlib.h"; then
17016 ac_x_includes
=$ac_dir
17021 rm -f conftest.err conftest.i conftest.
$ac_ext
17022 fi # $ac_x_includes = no
17024 if test "$ac_x_libraries" = no
; then
17025 # Check for the libraries.
17026 # See if we find them without any special options.
17027 # Don't add to $LIBS permanently.
17030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17031 /* end confdefs.h. */
17032 #include <X11/Xlib.h>
17041 if ac_fn_c_try_link
"$LINENO"; then :
17043 # We can link X programs with no special library path.
17047 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17049 # Don't even attempt the hair of trying to link an X program!
17050 for ac_extension
in a so sl dylib la dll
; do
17051 if test -r "$ac_dir/libX11.$ac_extension"; then
17052 ac_x_libraries
=$ac_dir
17058 rm -f core conftest.err conftest.
$ac_objext \
17059 conftest
$ac_exeext conftest.
$ac_ext
17060 fi # $ac_x_libraries = no
17062 case $ac_x_includes,$ac_x_libraries in #(
17063 no
,* |
*,no |
*\'*)
17064 # Didn't find X, or a directory has "'" in its name.
17065 ac_cv_have_x
="have_x=no";; #(
17067 # Record where we found X for the cache.
17068 ac_cv_have_x
="have_x=yes\
17069 ac_x_includes='$ac_x_includes'\
17070 ac_x_libraries='$ac_x_libraries'"
17076 eval "$ac_cv_have_x"
17079 if test "$have_x" != yes; then
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
17081 $as_echo "$have_x" >&6; }
17084 # If each of the values was on the command line, it overrides each guess.
17085 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
17086 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
17087 # Update the cache value to reflect the command line values.
17088 ac_cv_have_x
="have_x=yes\
17089 ac_x_includes='$x_includes'\
17090 ac_x_libraries='$x_libraries'"
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
17092 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
17096 # Unlike the sim directory, whether a simulator is linked is controlled by
17097 # presence of a gdb_sim definition in the target configure.tgt entry.
17098 # This code just checks for a few cases where we'd like to ignore those
17099 # definitions, even when they're present in the '.mt' file. These cases
17100 # are when --disable-sim is specified, or if the simulator directory is
17101 # not part of the source tree.
17103 # Check whether --enable-sim was given.
17104 if test "${enable_sim+set}" = set; then :
17105 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
17106 echo "enableval = ${enableval}";
17107 case "${enableval}" in
17108 yes) ignore_sim
=false
;;
17109 no
) ignore_sim
=true
;;
17110 *) ignore_sim
=false
;;
17117 if test ! -d "${srcdir}/../sim"; then
17123 if test "${ignore_sim}" = "false"; then
17124 if test x
"${gdb_sim}" != x
; then
17126 SIM_OBS
="remote-sim.o"
17128 $as_echo "#define WITH_SIM 1" >>confdefs.h
17131 # Some tdep code should only be compiled in when the ppc sim is
17132 # built. PR sim/13418.
17136 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
17156 # List of host floatformats.
17158 cat >>confdefs.h
<<_ACEOF
17159 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
17163 cat >>confdefs.h
<<_ACEOF
17164 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
17168 cat >>confdefs.h
<<_ACEOF
17169 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
17173 # target_subdir is used by the testsuite to find the target libraries.
17175 if test "${host}" != "${target}"; then
17176 target_subdir
="${target_alias}/"
17180 # Import nat definitions.
17181 nat_makefile_frag
=/dev
/null
17182 if test "${gdb_native}" = "yes"; then
17183 .
${srcdir}/configure.nat
17184 nativefile
=$NAT_FILE
17197 if test x
"${gdb_osabi}" != x
; then
17199 cat >>confdefs.h
<<_ACEOF
17200 #define GDB_OSABI_DEFAULT $gdb_osabi
17205 # Check whether --enable-gdbserver was given.
17206 if test "${enable_gdbserver+set}" = set; then :
17207 enableval
=$enable_gdbserver; case "${enableval}" in
17209 *) as_fn_error $?
"bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
17212 enable_gdbserver
=auto
17216 # We only build gdbserver automatically in a native configuration, and
17217 # only if the user did not explicitly disable its build.
17218 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
17219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
17220 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
17221 if test "x$build_gdbserver" = xyes
; then
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17223 $as_echo "yes" >&6; }
17224 subdirs
="$subdirs gdbserver"
17226 gdbserver_build_enabled
=yes
17228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17229 $as_echo "no" >&6; }
17233 # If the user explicitly request the gdbserver to be built, verify that
17234 # we were in fact able to enable it.
17235 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
17236 as_fn_error $?
"Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
17239 # Check for babeltrace and babeltrace-ctf
17241 # Check whether --with-babeltrace was given.
17242 if test "${with_babeltrace+set}" = set; then :
17243 withval
=$with_babeltrace;
17245 with_babeltrace
=auto
17248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
17249 $as_echo_n "checking whether to use babeltrace... " >&6; }
17250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
17251 $as_echo "$with_babeltrace" >&6; }
17253 if test "x$with_babeltrace" = "xno"; then
17254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
17255 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
17257 # Append -Werror to CFLAGS so that configure can catch the warning
17258 # "assignment from incompatible pointer type", which is related to
17259 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
17260 # in GDB, while babeltrace 1.0.3 is broken.
17261 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
17262 # safe to save and restore CFLAGS here.
17263 saved_CFLAGS
=$CFLAGS
17264 CFLAGS
="$CFLAGS -Werror"
17275 acl_save_prefix
="$prefix"
17276 prefix
="$acl_final_prefix"
17277 acl_save_exec_prefix
="$exec_prefix"
17278 exec_prefix
="$acl_final_exec_prefix"
17280 eval additional_includedir
=\"$includedir\"
17281 eval additional_libdir
=\"$libdir\"
17283 exec_prefix
="$acl_save_exec_prefix"
17284 prefix
="$acl_save_prefix"
17287 # Check whether --with-libbabeltrace-prefix was given.
17288 if test "${with_libbabeltrace_prefix+set}" = set; then :
17289 withval
=$with_libbabeltrace_prefix;
17290 if test "X$withval" = "Xno"; then
17293 if test "X$withval" = "X"; then
17295 acl_save_prefix
="$prefix"
17296 prefix
="$acl_final_prefix"
17297 acl_save_exec_prefix
="$exec_prefix"
17298 exec_prefix
="$acl_final_exec_prefix"
17300 eval additional_includedir
=\"$includedir\"
17301 eval additional_libdir
=\"$libdir\"
17303 exec_prefix
="$acl_save_exec_prefix"
17304 prefix
="$acl_save_prefix"
17307 additional_includedir
="$withval/include"
17308 additional_libdir
="$withval/lib"
17319 names_already_handled
=
17320 names_next_round
='babeltrace babeltrace-ctf'
17321 while test -n "$names_next_round"; do
17322 names_this_round
="$names_next_round"
17324 for name
in $names_this_round; do
17326 for n
in $names_already_handled; do
17327 if test "$n" = "$name"; then
17328 already_handled
=yes
17332 if test -z "$already_handled"; then
17333 names_already_handled
="$names_already_handled $name"
17334 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17335 eval value
=\"\
$HAVE_LIB$uppername\"
17336 if test -n "$value"; then
17337 if test "$value" = yes; then
17338 eval value
=\"\
$LIB$uppername\"
17339 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
17340 eval value
=\"\
$LTLIB$uppername\"
17341 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
17350 if test $use_additional = yes; then
17351 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17352 found_dir
="$additional_libdir"
17353 found_so
="$additional_libdir/lib$name.$shlibext"
17354 if test -f "$additional_libdir/lib$name.la"; then
17355 found_la
="$additional_libdir/lib$name.la"
17358 if test -f "$additional_libdir/lib$name.$libext"; then
17359 found_dir
="$additional_libdir"
17360 found_a
="$additional_libdir/lib$name.$libext"
17361 if test -f "$additional_libdir/lib$name.la"; then
17362 found_la
="$additional_libdir/lib$name.la"
17367 if test "X$found_dir" = "X"; then
17368 for x
in $LDFLAGS $LTLIBBABELTRACE; do
17370 acl_save_prefix
="$prefix"
17371 prefix
="$acl_final_prefix"
17372 acl_save_exec_prefix
="$exec_prefix"
17373 exec_prefix
="$acl_final_exec_prefix"
17375 exec_prefix
="$acl_save_exec_prefix"
17376 prefix
="$acl_save_prefix"
17380 dir
=`echo "X$x" | sed -e 's/^X-L//'`
17381 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17383 found_so
="$dir/lib$name.$shlibext"
17384 if test -f "$dir/lib$name.la"; then
17385 found_la
="$dir/lib$name.la"
17388 if test -f "$dir/lib$name.$libext"; then
17390 found_a
="$dir/lib$name.$libext"
17391 if test -f "$dir/lib$name.la"; then
17392 found_la
="$dir/lib$name.la"
17398 if test "X$found_dir" != "X"; then
17403 if test "X$found_dir" != "X"; then
17404 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
17405 if test "X$found_so" != "X"; then
17406 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
17407 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17410 for x
in $ltrpathdirs; do
17411 if test "X$x" = "X$found_dir"; then
17416 if test -z "$haveit"; then
17417 ltrpathdirs
="$ltrpathdirs $found_dir"
17419 if test "$hardcode_direct" = yes; then
17420 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17422 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
17423 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17425 for x
in $rpathdirs; do
17426 if test "X$x" = "X$found_dir"; then
17431 if test -z "$haveit"; then
17432 rpathdirs
="$rpathdirs $found_dir"
17436 for x
in $LDFLAGS $LIBBABELTRACE; do
17438 acl_save_prefix
="$prefix"
17439 prefix
="$acl_final_prefix"
17440 acl_save_exec_prefix
="$exec_prefix"
17441 exec_prefix
="$acl_final_exec_prefix"
17443 exec_prefix
="$acl_save_exec_prefix"
17444 prefix
="$acl_save_prefix"
17446 if test "X$x" = "X-L$found_dir"; then
17451 if test -z "$haveit"; then
17452 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
17454 if test "$hardcode_minus_L" != no
; then
17455 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17457 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
17463 if test "X$found_a" != "X"; then
17464 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
17466 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
17469 additional_includedir
=
17470 case "$found_dir" in
17472 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17473 additional_includedir
="$basedir/include"
17476 if test "X$additional_includedir" != "X"; then
17477 if test "X$additional_includedir" != "X/usr/include"; then
17479 if test "X$additional_includedir" = "X/usr/local/include"; then
17480 if test -n "$GCC"; then
17482 linux
*) haveit
=yes;;
17486 if test -z "$haveit"; then
17487 for x
in $CPPFLAGS $INCBABELTRACE; do
17489 acl_save_prefix
="$prefix"
17490 prefix
="$acl_final_prefix"
17491 acl_save_exec_prefix
="$exec_prefix"
17492 exec_prefix
="$acl_final_exec_prefix"
17494 exec_prefix
="$acl_save_exec_prefix"
17495 prefix
="$acl_save_prefix"
17497 if test "X$x" = "X-I$additional_includedir"; then
17502 if test -z "$haveit"; then
17503 if test -d "$additional_includedir"; then
17504 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
17510 if test -n "$found_la"; then
17511 save_libdir
="$libdir"
17512 case "$found_la" in
17513 */* |
*\\*) .
"$found_la" ;;
17514 *) .
"./$found_la" ;;
17516 libdir
="$save_libdir"
17517 for dep
in $dependency_libs; do
17520 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
17521 if test "X$additional_libdir" != "X/usr/lib"; then
17523 if test "X$additional_libdir" = "X/usr/local/lib"; then
17524 if test -n "$GCC"; then
17526 linux
*) haveit
=yes;;
17530 if test -z "$haveit"; then
17532 for x
in $LDFLAGS $LIBBABELTRACE; do
17534 acl_save_prefix
="$prefix"
17535 prefix
="$acl_final_prefix"
17536 acl_save_exec_prefix
="$exec_prefix"
17537 exec_prefix
="$acl_final_exec_prefix"
17539 exec_prefix
="$acl_save_exec_prefix"
17540 prefix
="$acl_save_prefix"
17542 if test "X$x" = "X-L$additional_libdir"; then
17547 if test -z "$haveit"; then
17548 if test -d "$additional_libdir"; then
17549 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
17553 for x
in $LDFLAGS $LTLIBBABELTRACE; do
17555 acl_save_prefix
="$prefix"
17556 prefix
="$acl_final_prefix"
17557 acl_save_exec_prefix
="$exec_prefix"
17558 exec_prefix
="$acl_final_exec_prefix"
17560 exec_prefix
="$acl_save_exec_prefix"
17561 prefix
="$acl_save_prefix"
17563 if test "X$x" = "X-L$additional_libdir"; then
17568 if test -z "$haveit"; then
17569 if test -d "$additional_libdir"; then
17570 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
17577 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
17578 if test "$enable_rpath" != no
; then
17580 for x
in $rpathdirs; do
17581 if test "X$x" = "X$dir"; then
17586 if test -z "$haveit"; then
17587 rpathdirs
="$rpathdirs $dir"
17590 for x
in $ltrpathdirs; do
17591 if test "X$x" = "X$dir"; then
17596 if test -z "$haveit"; then
17597 ltrpathdirs
="$ltrpathdirs $dir"
17602 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17605 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17608 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
17609 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
17615 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
17616 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
17622 if test "X$rpathdirs" != "X"; then
17623 if test -n "$hardcode_libdir_separator"; then
17625 for found_dir
in $rpathdirs; do
17626 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17628 acl_save_libdir
="$libdir"
17630 eval flag
=\"$hardcode_libdir_flag_spec\"
17631 libdir
="$acl_save_libdir"
17632 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
17634 for found_dir
in $rpathdirs; do
17635 acl_save_libdir
="$libdir"
17636 libdir
="$found_dir"
17637 eval flag
=\"$hardcode_libdir_flag_spec\"
17638 libdir
="$acl_save_libdir"
17639 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
17643 if test "X$ltrpathdirs" != "X"; then
17644 for found_dir
in $ltrpathdirs; do
17645 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
17650 ac_save_CPPFLAGS
="$CPPFLAGS"
17652 for element
in $INCBABELTRACE; do
17654 for x
in $CPPFLAGS; do
17656 acl_save_prefix
="$prefix"
17657 prefix
="$acl_final_prefix"
17658 acl_save_exec_prefix
="$exec_prefix"
17659 exec_prefix
="$acl_final_exec_prefix"
17661 exec_prefix
="$acl_save_exec_prefix"
17662 prefix
="$acl_save_prefix"
17664 if test "X$x" = "X$element"; then
17669 if test -z "$haveit"; then
17670 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
17676 $as_echo_n "checking for libbabeltrace... " >&6; }
17677 if ${ac_cv_libbabeltrace+:} false
; then :
17678 $as_echo_n "(cached) " >&6
17681 ac_save_LIBS
="$LIBS"
17682 LIBS
="$LIBS $LIBBABELTRACE"
17683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17684 /* end confdefs.h. */
17685 #include <babeltrace/babeltrace.h>
17686 #include <babeltrace/ctf/events.h>
17687 #include <babeltrace/ctf/iterator.h>
17691 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
17692 struct bt_ctf_event *event = NULL;
17693 const struct bt_definition *scope;
17695 pos->type = BT_SEEK_BEGIN;
17696 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
17697 scope = bt_ctf_get_top_level_scope (event,
17698 BT_STREAM_EVENT_HEADER);
17699 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
17705 if ac_fn_c_try_link
"$LINENO"; then :
17706 ac_cv_libbabeltrace
=yes
17708 ac_cv_libbabeltrace
=no
17710 rm -f core conftest.err conftest.
$ac_objext \
17711 conftest
$ac_exeext conftest.
$ac_ext
17712 LIBS
="$ac_save_LIBS"
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
17716 $as_echo "$ac_cv_libbabeltrace" >&6; }
17717 if test "$ac_cv_libbabeltrace" = yes; then
17718 HAVE_LIBBABELTRACE
=yes
17720 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
17723 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
17725 $as_echo "$LIBBABELTRACE" >&6; }
17727 HAVE_LIBBABELTRACE
=no
17728 CPPFLAGS
="$ac_save_CPPFLAGS"
17738 CFLAGS
=$saved_CFLAGS
17740 if test "$HAVE_LIBBABELTRACE" != yes; then
17741 if test "$with_babeltrace" = yes; then
17742 as_fn_error $?
"babeltrace is missing or unusable" "$LINENO" 5
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
17745 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
17750 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
17757 if test "${nativefile}" != ""; then
17758 case "${nativefile}" in
17759 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
17760 * ) GDB_NM_FILE
="${nativefile}"
17762 files
="${files} ${GDB_NM_FILE}"
17763 links
="${links} nm.h"
17765 cat >>confdefs.h
<<_ACEOF
17766 #define GDB_NM_FILE "${GDB_NM_FILE}"
17772 for ac_prog
in xsltproc
17774 # Extract the first word of "$ac_prog", so it can be a program name with args.
17775 set dummy
$ac_prog; ac_word
=$2
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17777 $as_echo_n "checking for $ac_word... " >&6; }
17778 if ${ac_cv_path_XSLTPROC+:} false
; then :
17779 $as_echo_n "(cached) " >&6
17783 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
17786 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17787 for as_dir
in $PATH
17790 test -z "$as_dir" && as_dir
=.
17791 for ac_exec_ext
in '' $ac_executable_extensions; do
17792 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
17793 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
17794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17804 XSLTPROC
=$ac_cv_path_XSLTPROC
17805 if test -n "$XSLTPROC"; then
17806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
17807 $as_echo "$XSLTPROC" >&6; }
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17810 $as_echo "no" >&6; }
17814 test -n "$XSLTPROC" && break
17816 test -n "$XSLTPROC" || XSLTPROC
="missing"
17818 if test "x$USE_MAINTAINER_MODE" = xyes
; then
17819 if test "${XSLTPROC}" = missing
; then
17820 as_fn_error $?
"unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
17825 ac_sources
="$files"
17827 while test -n "$ac_sources"; do
17828 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
17829 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
17830 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
17832 ac_config_links
="$ac_config_links $ac_config_links_1"
17838 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
17841 if $development; then
17843 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
17845 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_UNITTESTS_OBS) common/selftest.o selftest-arch.o"
17846 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_UNITTESTS_SRCS) common/selftest.c selftest-arch.c"
17850 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
17851 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
17852 if test "x$GDB_TRANSFORM_NAME" = x
; then
17853 GDB_TRANSFORM_NAME
=gdb
17858 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
17859 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
17860 if test "x$GCORE_TRANSFORM_NAME" = x
; then
17861 GCORE_TRANSFORM_NAME
=gcore
17865 ac_config_files
="$ac_config_files gcore"
17867 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
17870 cat >confcache
<<\_ACEOF
17871 # This file is a shell script that caches the results of configure
17872 # tests run on this system so they can be shared between configure
17873 # scripts and configure runs, see configure's option --config-cache.
17874 # It is not useful on other systems. If it contains results you don't
17875 # want to keep, you may remove or edit it.
17877 # config.status only pays attention to the cache file if you give it
17878 # the --recheck option to rerun configure.
17880 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17881 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17882 # following values.
17886 # The following way of writing the cache mishandles newlines in values,
17887 # but we know of no workaround that is simple, portable, and efficient.
17888 # So, we kill variables containing newlines.
17889 # Ultrix sh set writes to stderr and can't be redirected directly,
17890 # and sets the high bit in the cache file unless we assign to the vars.
17892 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17893 eval ac_val
=\$
$ac_var
17897 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17898 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17901 _ | IFS | as_nl
) ;; #(
17902 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
17903 *) { eval $ac_var=; unset $ac_var;} ;;
17909 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17910 *${as_nl}ac_space
=\
*)
17911 # `set' does not quote correctly, so add quotes: double-quote
17912 # substitution turns \\\\ into \\, and sed turns \\ into \.
17915 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17918 # `set' quotes correctly as required by POSIX, so do not add quotes.
17919 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17928 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17930 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17932 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17933 if test -w "$cache_file"; then
17934 if test "x$cache_file" != "x/dev/null"; then
17935 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17936 $as_echo "$as_me: updating cache $cache_file" >&6;}
17937 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
17938 cat confcache
>"$cache_file"
17940 case $cache_file in #(
17942 mv -f confcache
"$cache_file"$$
&&
17943 mv -f "$cache_file"$$
"$cache_file" ;; #(
17945 mv -f confcache
"$cache_file" ;;
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17951 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17956 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17957 # Let make expand exec_prefix.
17958 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17960 DEFS
=-DHAVE_CONFIG_H
17965 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17966 # 1. Remove the extension, and $U if already installed.
17967 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
17968 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
17969 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17970 # will be set to the directory where LIBOBJS objects are built.
17971 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17972 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
17974 LIBOBJS
=$ac_libobjs
17976 LTLIBOBJS
=$ac_ltlibobjs
17979 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17980 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
17981 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17983 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
17984 as_fn_error $?
"conditional \"HAVE_PYTHON\" was never defined.
17985 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17987 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
17988 as_fn_error $?
"conditional \"HAVE_GUILE\" was never defined.
17989 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17993 : "${CONFIG_STATUS=./config.status}"
17995 ac_clean_files_save
=$ac_clean_files
17996 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17998 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18000 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18002 # Generated by $as_me.
18003 # Run this file to recreate the current configuration.
18004 # Compiler output produced by configure, useful for debugging
18005 # configure, is in config.log if it exists.
18008 ac_cs_recheck=false
18011 SHELL=\${CONFIG_SHELL-$SHELL}
18014 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
18015 ## -------------------- ##
18016 ## M4sh Initialization. ##
18017 ## -------------------- ##
18019 # Be more Bourne compatible
18020 DUALCASE
=1; export DUALCASE
# for MKS sh
18021 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
18024 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18025 # is contrary to our usage. Disable this feature.
18026 alias -g '${1+"$@"}'='"$@"'
18027 setopt NO_GLOB_SUBST
18029 case `(set -o) 2>/dev/null` in #(
18041 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18042 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18043 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18044 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18045 # Prefer a ksh shell builtin over an external printf program on Solaris,
18046 # but without wasting forks for bash or zsh.
18047 if test -z "$BASH_VERSION$ZSH_VERSION" \
18048 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18049 as_echo='print
-r --'
18050 as_echo_n='print
-rn --'
18051 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18052 as_echo='printf %s
\n'
18053 as_echo_n='printf %s
'
18055 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18056 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
18057 as_echo_n='/usr
/ucb
/echo -n'
18059 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18060 as_echo_n_body='eval
18064 expr "X$arg" : "X\\(.*\\)$as_nl";
18065 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18067 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
18069 export as_echo_n_body
18070 as_echo_n='sh
-c $as_echo_n_body as_echo
'
18072 export as_echo_body
18073 as_echo='sh
-c $as_echo_body as_echo
'
18076 # The user is always right.
18077 if test "${PATH_SEPARATOR+set}" != set; then
18079 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18080 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18087 # We need space, tab and new line, in precisely that order. Quoting is
18088 # there to prevent editors from complaining about space-tab.
18089 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18090 # splitting by setting IFS to empty value.)
18093 # Find who we are. Look in the path if we contain no directory separator.
18096 *[\\/]* ) as_myself=$0 ;;
18097 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18098 for as_dir in $PATH
18101 test -z "$as_dir" && as_dir=.
18102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18108 # We did not find ourselves, most probably we were run as `sh COMMAND'
18109 # in which case we are not to be found in the path.
18110 if test "x$as_myself" = x
; then
18113 if test ! -f "$as_myself"; then
18114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18118 # Unset variables that we do not need and which cause bugs (e.g. in
18119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18120 # suppresses any "Segmentation fault" message there. '((' could
18121 # trigger a bug in pdksh 5.2.14.
18122 for as_var
in BASH_ENV ENV MAIL MAILPATH
18123 do eval test x\
${$as_var+set} = xset \
18124 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
18137 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
18140 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18141 # ----------------------------------------
18142 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18143 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18144 # script with STATUS, using 1 if that was 0.
18147 as_status
=$1; test $as_status -eq 0 && as_status
=1
18149 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
18150 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18152 $as_echo "$as_me: error: $2" >&2
18153 as_fn_exit
$as_status
18157 # as_fn_set_status STATUS
18158 # -----------------------
18159 # Set $? to STATUS, without forking.
18160 as_fn_set_status
()
18163 } # as_fn_set_status
18165 # as_fn_exit STATUS
18166 # -----------------
18167 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18171 as_fn_set_status
$1
18177 # Portably unset VAR.
18180 { eval $1=; unset $1;}
18182 as_unset
=as_fn_unset
18183 # as_fn_append VAR VALUE
18184 # ----------------------
18185 # Append the text in VALUE to the end of the definition contained in VAR. Take
18186 # advantage of any shell optimizations that allow amortized linear growth over
18187 # repeated appends, instead of the typical quadratic growth present in naive
18189 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
18190 eval 'as_fn_append ()
18201 # as_fn_arith ARG...
18202 # ------------------
18203 # Perform arithmetic evaluation on the ARGs, and store the result in the
18204 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18205 # must be portable across $(()) and expr.
18206 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
18207 eval 'as_fn_arith ()
18214 as_val
=`expr "$@" || test $? -eq 1`
18219 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
18220 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
18226 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18227 as_basename
=basename
18232 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
18238 as_me
=`$as_basename -- "$0" ||
18239 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18240 X"$0" : 'X\(//\)$' \| \
18241 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18243 sed '/^.*\/\([^/][^/]*\)\/*$/{
18257 # Avoid depending upon Character Ranges.
18258 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18259 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18260 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18261 as_cr_digits
='0123456789'
18262 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18264 ECHO_C
= ECHO_N
= ECHO_T
=
18265 case `echo -n x` in #(((((
18267 case `echo 'xy\c'` in
18268 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
18270 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
18277 rm -f conf$$ conf$$.exe conf$$.
file
18278 if test -d conf$$.dir
; then
18279 rm -f conf$$.dir
/conf$$.
file
18282 mkdir conf$$.dir
2>/dev
/null
18284 if (echo >conf$$.
file) 2>/dev
/null
; then
18285 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18287 # ... but there are two gotchas:
18288 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18289 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18290 # In both cases, we have to default to `cp -pR'.
18291 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
18293 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18301 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
18302 rmdir conf$$.dir
2>/dev
/null
18307 # Create "$as_dir" as a directory, including parents if necessary.
18312 -*) as_dir
=.
/$as_dir;;
18314 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
18318 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18319 *) as_qdir
=$as_dir;;
18321 as_dirs
="'$as_qdir' $as_dirs"
18322 as_dir
=`$as_dirname -- "$as_dir" ||
18323 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18324 X"$as_dir" : 'X\(//\)[^/]' \| \
18325 X"$as_dir" : 'X\(//\)$' \| \
18326 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18327 $as_echo X"$as_dir" |
18328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18332 /^X\(\/\/\)[^/].*/{
18345 test -d "$as_dir" && break
18347 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
18348 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
18352 if mkdir
-p .
2>/dev
/null
; then
18353 as_mkdir_p
='mkdir -p "$as_dir"'
18355 test -d .
/-p && rmdir .
/-p
18360 # as_fn_executable_p FILE
18361 # -----------------------
18362 # Test if FILE is an executable regular file.
18363 as_fn_executable_p
()
18365 test -f "$1" && test -x "$1"
18366 } # as_fn_executable_p
18367 as_test_x
='test -x'
18368 as_executable_p
=as_fn_executable_p
18370 # Sed expression to map a string onto a valid CPP name.
18371 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18373 # Sed expression to map a string onto a valid variable name.
18374 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18378 ## ----------------------------------- ##
18379 ## Main body of $CONFIG_STATUS script. ##
18380 ## ----------------------------------- ##
18382 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
18384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18385 # Save the log message, to keep $0 and so on meaningful, and to
18386 # report actual input values of CONFIG_FILES etc. instead of their
18387 # values after options handling.
18389 This file was extended by $as_me, which was
18390 generated by GNU Autoconf 2.69. Invocation command line was
18392 CONFIG_FILES = $CONFIG_FILES
18393 CONFIG_HEADERS = $CONFIG_HEADERS
18394 CONFIG_LINKS = $CONFIG_LINKS
18395 CONFIG_COMMANDS = $CONFIG_COMMANDS
18398 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18403 case $ac_config_files in *"
18404 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
18407 case $ac_config_headers in *"
18408 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
18412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18413 # Files that config.status was made for.
18414 config_files="$ac_config_files"
18415 config_headers="$ac_config_headers"
18416 config_links="$ac_config_links"
18417 config_commands="$ac_config_commands"
18421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18423 \`$as_me' instantiates files and other configuration actions
18424 from templates according to the current configuration. Unless the files
18425 and actions are specified as TAGs, all are instantiated by default.
18427 Usage: $0 [OPTION]... [TAG]...
18429 -h, --help print this help, then exit
18430 -V, --version print version number and configuration settings, then exit
18431 --config print configuration, then exit
18432 -q, --quiet, --silent
18433 do not print progress messages
18434 -d, --debug don't remove temporary files
18435 --recheck update $as_me by reconfiguring in the same conditions
18436 --file=FILE[:TEMPLATE]
18437 instantiate the configuration file FILE
18438 --header=FILE[:TEMPLATE]
18439 instantiate the configuration header FILE
18441 Configuration files:
18444 Configuration headers:
18447 Configuration links:
18450 Configuration commands:
18453 Report bugs to the package provider."
18456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18457 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18460 configured by $0, generated by GNU Autoconf 2.69,
18461 with options \\"\$ac_cs_config\\"
18463 Copyright (C) 2012 Free Software Foundation, Inc.
18464 This config.status script is free software; the Free Software Foundation
18465 gives unlimited permission to copy, distribute and modify it."
18471 test -n "\$AWK" || AWK=awk
18474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18475 # The default lists apply if the user does not specify any file.
18481 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18482 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
18486 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18498 # Handling of the options.
18499 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18501 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
18502 $as_echo "$ac_cs_version"; exit ;;
18503 --config |
--confi |
--conf |
--con |
--co |
--c )
18504 $as_echo "$ac_cs_config"; exit ;;
18505 --debug |
--debu |
--deb |
--de |
--d |
-d )
18507 --file |
--fil |
--fi |
--f )
18510 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18511 '') as_fn_error $?
"missing file argument" ;;
18513 as_fn_append CONFIG_FILES
" '$ac_optarg'"
18514 ac_need_defaults
=false
;;
18515 --header |
--heade |
--head |
--hea )
18518 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18520 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
18521 ac_need_defaults
=false
;;
18523 # Conflict between --help and --header
18524 as_fn_error $?
"ambiguous option: \`$1'
18525 Try \`$0 --help' for more information.";;
18526 --help |
--hel |
-h )
18527 $as_echo "$ac_cs_usage"; exit ;;
18528 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18529 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18532 # This is an error.
18533 -*) as_fn_error $?
"unrecognized option: \`$1'
18534 Try \`$0 --help' for more information." ;;
18536 *) as_fn_append ac_config_targets
" $1"
18537 ac_need_defaults
=false
;;
18543 ac_configure_extra_args
=
18545 if $ac_cs_silent; then
18547 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18551 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18552 if \$ac_cs_recheck; then
18553 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18555 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18556 CONFIG_SHELL='$SHELL'
18557 export CONFIG_SHELL
18562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18566 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18567 ## Running $as_me. ##
18573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18577 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
18581 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18583 # Handling of arguments.
18584 for ac_config_target
in $ac_config_targets
18586 case $ac_config_target in
18587 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
18588 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
18589 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
18590 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
18591 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
18592 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18593 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
18594 "gdb-gdb.py") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.py" ;;
18595 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
18596 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
18598 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18603 # If the user did not use the arguments to specify the items to instantiate,
18604 # then the envvar interface is used. Set only those that are not.
18605 # We use the long form for the default assignment because of an extremely
18606 # bizarre bug on SunOS 4.1.3.
18607 if $ac_need_defaults; then
18608 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18609 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18610 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
18611 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18614 # Have a temporary directory for convenience. Make it in the build tree
18615 # simply because there is no reason against having it here, and in addition,
18616 # creating and moving files from /tmp can sometimes cause problems.
18617 # Hook for its removal unless debugging.
18618 # Note that there is a small window in which the directory will not be cleaned:
18619 # after its creation but before its name has been assigned to `$tmp'.
18623 trap 'exit_status=$?
18624 : "${ac_tmp:=$tmp}"
18625 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18627 trap 'as_fn_exit 1' 1 2 13 15
18629 # Create a (secure) tmp directory for tmp files.
18632 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18636 tmp
=.
/conf$$
-$RANDOM
18637 (umask 077 && mkdir
"$tmp")
18638 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
18641 # Set up the scripts for CONFIG_FILES section.
18642 # No need to generate them if there are no CONFIG_FILES.
18643 # This happens for instance with `./config.status config.h'.
18644 if test -n "$CONFIG_FILES"; then
18646 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
18647 ac_cs_awk_getline
=:
18648 ac_cs_awk_pipe_init
=
18649 ac_cs_awk_read_file
='
18650 while ((getline aline < (F[key])) > 0)
18653 ac_cs_awk_pipe_fini
=
18655 ac_cs_awk_getline
=false
18656 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
18657 ac_cs_awk_read_file
='
18659 print "cat " F[key] " &&"
18660 '$ac_cs_awk_pipe_init
18661 # The final `:' finishes the AND list.
18662 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
18664 ac_cr
=`echo X | tr X '\015'`
18665 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18666 # But we know of no other shell where ac_cr would be empty at this
18667 # point, so we can use a bashism as a fallback.
18668 if test "x$ac_cr" = x
; then
18669 eval ac_cr
=\$
\'\\r
\'
18671 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18672 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18675 ac_cs_awk_cr
=$ac_cr
18678 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18681 # Create commands to substitute file output variables.
18683 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18684 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
18685 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
18688 } >conf$
$files.sh
&&
18689 . .
/conf$
$files.sh ||
18690 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
18691 rm -f conf$
$files.sh
18694 echo "cat >conf$$subs.awk <<_ACEOF" &&
18695 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18697 } >conf$$subs.sh ||
18698 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18699 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18701 for ac_last_try in false false false false false :; do
18702 . ./conf$$subs.sh ||
18703 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18705 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18706 if test $ac_delim_n = $ac_delim_num; then
18708 elif $ac_last_try; then
18709 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18711 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18714 rm -f conf$$subs.sh
18716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18717 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
18721 s/^/S["/; s
/!.
*/"]=/
18731 s/\(.\{148\}\)..*/\1/
18733 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18738 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18745 s/\(.\{148\}\)..*/\1/
18747 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18751 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18756 ' <conf$$subs.awk | sed '
18761 ' >>$CONFIG_STATUS || ac_write_fail=1
18762 rm -f conf$$subs.awk
18763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18765 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
18766 for (key in S) S_is_set[key] = 1
18768 \$ac_cs_awk_pipe_init
18772 nfields = split(line, field, "@
")
18774 len = length(field[1])
18775 for (i = 2; i < nfields; i++) {
18777 keylen = length(key)
18778 if (S_is_set[key]) {
18780 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18781 len += length(value) + length(field[++i])
18786 if (nfields == 3 && !substed) {
18788 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18789 \$ac_cs_awk_read_file
18795 \$ac_cs_awk_pipe_fini
18798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18799 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18800 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18803 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
18804 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
18807 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18808 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
18809 # trailing colons and then remove the whole line if VPATH becomes empty
18810 # (actually we leave an empty line to preserve line numbers).
18811 if test "x
$srcdir" = x.; then
18812 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18831 fi # test -n "$CONFIG_FILES"
18833 # Set up the scripts for CONFIG_HEADERS section.
18834 # No need to generate them if there are no CONFIG_HEADERS.
18835 # This happens for instance with `./config.status Makefile'.
18836 if test -n "$CONFIG_HEADERS"; then
18837 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
18841 # Transform confdefs.h into an awk script `defines.awk', embedded as
18842 # here-document in config.status, that substitutes the proper values into
18843 # config.h.in to produce config.h.
18845 # Create a delimiter string that does not exist in confdefs.h, to ease
18846 # handling of long lines.
18848 for ac_last_try in false false :; do
18849 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
18850 if test -z "$ac_tt"; then
18852 elif $ac_last_try; then
18853 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
18855 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18859 # For the awk script, D is an array of macro values keyed by name,
18860 # likewise P contains macro parameters if any. Preserve backslash
18861 # newline sequences.
18863 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18865 s/.\{148\}/&'"$ac_delim"'/g
18868 s/^[ ]*#[ ]*define[ ][ ]*/ /
18875 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18877 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18881 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18882 D["\
1"]=" \
3\\\\\\n
"\\/p
18884 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18889 s/.\{148\}/&'"$ac_delim"'/g
18894 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18897 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18899 ' <confdefs.h | sed '
18900 s/'"$ac_delim"'/"\\\
18901 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18904 for (key in D) D_is_set[key] = 1
18907 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18909 split(line, arg, " ")
18910 if (arg[1] == "#") {
18914 defundef
= substr
(arg
[1], 2)
18917 split(mac1
, mac2
, "(") #)
18919 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18920 if (D_is_set
[macro
]) {
18921 # Preserve the white space surrounding the "#".
18922 print prefix
"define", macro P
[macro
] D
[macro
]
18925 # Replace #undef with comments. This is necessary, for example,
18926 # in the case of _POSIX_SOURCE, which is predefined and required
18927 # on some systems where configure will not decide to define it.
18928 if (defundef
== "undef") {
18929 print
"/*", prefix defundef
, macro
, "*/"
18937 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18938 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
18939 fi # test -n "$CONFIG_HEADERS"
18942 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18947 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18949 case $ac_mode$ac_tag in
18951 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
18952 :[FH
]-) ac_tag
=-:-;;
18953 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18970 -) ac_f
="$ac_tmp/stdin";;
18971 *) # Look for the file first in the build tree, then in the source tree
18972 # (if the path is not absolute). The absolute path cannot be DOS-style,
18973 # because $ac_f cannot contain `:'.
18977 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18979 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18981 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18982 as_fn_append ac_file_inputs
" '$ac_f'"
18985 # Let's still pretend it is `configure' which instantiates (i.e., don't
18986 # use $as_me), people would be surprised to read:
18987 # /* config.h. Generated by config.status. */
18988 configure_input
='Generated from '`
18989 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18991 if test x
"$ac_file" != x-
; then
18992 configure_input
="$ac_file. $configure_input"
18993 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18994 $as_echo "$as_me: creating $ac_file" >&6;}
18996 # Neutralize special characters interpreted by sed in replacement strings.
18997 case $configure_input in #(
18998 *\
&* |
*\|
* |
*\\* )
18999 ac_sed_conf_input
=`$as_echo "$configure_input" |
19000 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19001 *) ac_sed_conf_input
=$configure_input;;
19005 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
19006 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
19011 ac_dir
=`$as_dirname -- "$ac_file" ||
19012 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19013 X"$ac_file" : 'X\(//\)[^/]' \| \
19014 X"$ac_file" : 'X\(//\)$' \| \
19015 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19016 $as_echo X"$ac_file" |
19017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19021 /^X\(\/\/\)[^/].*/{
19034 as_dir
="$ac_dir"; as_fn_mkdir_p
19038 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19040 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19041 # A ".." for each directory in $ac_dir_suffix.
19042 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19043 case $ac_top_builddir_sub in
19044 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19045 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
19048 ac_abs_top_builddir
=$ac_pwd
19049 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
19050 # for backward compatibility:
19051 ac_top_builddir
=$ac_top_build_prefix
19054 .
) # We are building in place.
19056 ac_top_srcdir
=$ac_top_builddir_sub
19057 ac_abs_top_srcdir
=$ac_pwd ;;
19058 [\\/]* | ?
:[\\/]* ) # Absolute name.
19059 ac_srcdir
=$srcdir$ac_dir_suffix;
19060 ac_top_srcdir
=$srcdir
19061 ac_abs_top_srcdir
=$srcdir ;;
19062 *) # Relative name.
19063 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
19064 ac_top_srcdir
=$ac_top_build_prefix$srcdir
19065 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
19067 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
19077 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
19078 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
19082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19083 # If the template does not know about datarootdir, expand it.
19084 # FIXME: This hack should be removed a few years after 2.60.
19085 ac_datarootdir_hack
=; ac_datarootdir_seen
=
19096 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19097 *datarootdir
*) ac_datarootdir_seen
=yes;;
19098 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
19099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19100 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19102 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19103 ac_datarootdir_hack='
19104 s&@datadir@&$datadir&g
19105 s&@docdir@&$docdir&g
19106 s&@infodir@&$infodir&g
19107 s&@localedir@&$localedir&g
19108 s&@mandir@&$mandir&g
19109 s&\\\${datarootdir}&$datarootdir&g' ;;
19113 # Neutralize VPATH when `$srcdir' = `.'.
19114 # Shell code in configure.ac might set extrasub.
19115 # FIXME: do we really want to maintain this feature?
19116 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19117 ac_sed_extra="$ac_vpsub
19120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19122 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19123 s|@configure_input@|
$ac_sed_conf_input|
;t t
19124 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
19125 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
19126 s
&@srcdir@
&$ac_srcdir&;t t
19127 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
19128 s
&@top_srcdir@
&$ac_top_srcdir&;t t
19129 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
19130 s
&@builddir@
&$ac_builddir&;t t
19131 s
&@abs_builddir@
&$ac_abs_builddir&;t t
19132 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
19133 s
&@INSTALL@
&$ac_INSTALL&;t t
19134 $ac_datarootdir_hack
19136 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19137 if $ac_cs_awk_getline; then
19138 $AWK -f "$ac_tmp/subs.
awk"
19140 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
19142 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
19144 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19145 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
19146 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19147 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
19148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
19149 which seems to be undefined. Please make sure it is defined" >&5
19150 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
19151 which seems to be undefined. Please make sure it is defined" >&2;}
19153 rm -f "$ac_tmp/stdin"
19155 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19156 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19158 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19164 if test x"$ac_file" != x-; then
19166 $as_echo "/* $configure_input */" \
19167 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19168 } >"$ac_tmp/config.h" \
19169 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19170 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19171 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19172 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19175 mv "$ac_tmp/config.h" "$ac_file" \
19176 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19179 $as_echo "/* $configure_input */" \
19180 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19181 || as_fn_error $? "could not create -" "$LINENO" 5
19189 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
19192 # Prefer the file from the source tree if names are identical.
19193 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
19194 ac_source=$srcdir/$ac_source
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
19198 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
19200 if test ! -r "$ac_source"; then
19201 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
19205 # Try a relative symlink, then a hard link, then a copy.
19207 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
19208 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
19210 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
19211 ln "$ac_source" "$ac_file" 2>/dev/null ||
19212 cp -p "$ac_source" "$ac_file" ||
19213 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
19216 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19217 $as_echo "$as_me: executing $ac_file commands" >&6;}
19222 case $ac_file$ac_mode in
19223 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
19224 "gcore":F) chmod +x gcore ;;
19226 case x$CONFIG_HEADERS in
19227 xconfig.h:config.in)
19232 case x$CONFIG_HEADERS in
19233 xconfig.h:config.in)
19238 case x$CONFIG_HEADERS in
19239 xconfig.h:config.in)
19244 case x$CONFIG_HEADERS in
19245 xconfig.h:config.in)
19249 "data-directory/Makefile":F)
19250 case x$CONFIG_HEADERS in
19251 xconfig.h:config.in)
19262 ac_clean_files=$ac_clean_files_save
19264 test $ac_write_fail = 0 ||
19265 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19268 # configure is writing to config.log, and then calls config.status.
19269 # config.status does its own redirection, appending to config.log.
19270 # Unfortunately, on DOS this fails, as config.log is still kept open
19271 # by configure, so config.status won't be able to
write to it
; its
19272 # output is simply discarded. So we exec the FD to /dev/null,
19273 # effectively closing config.log, so it can be properly (re)opened and
19274 # appended to by config.status. When coming back to configure, we
19275 # need to make the FD available again.
19276 if test "$no_create" != yes; then
19278 ac_config_status_args
=
19279 test "$silent" = yes &&
19280 ac_config_status_args
="$ac_config_status_args --quiet"
19282 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19284 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19285 # would make configure fail if this is the last instruction.
19286 $ac_cs_success || as_fn_exit
1
19290 # CONFIG_SUBDIRS section.
19292 if test "$no_recursion" != yes; then
19294 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19295 # so they do not pile up.
19296 ac_sub_configure_args
=
19298 eval "set x $ac_configure_args"
19302 if test -n "$ac_prev"; then
19307 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
19308 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
19309 ac_prev
=cache_file
;;
19310 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
19311 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
19314 --config-cache |
-C)
19316 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
19318 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
19320 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
19322 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
19324 --disable-option-checking)
19328 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19330 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
19334 # Always prepend --prefix to ensure using the same prefix
19335 # in subdir configurations.
19336 ac_arg
="--prefix=$prefix"
19338 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19340 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
19343 if test "$silent" = yes; then
19344 ac_sub_configure_args
="--silent $ac_sub_configure_args"
19347 # Always prepend --disable-option-checking to silence warnings, since
19348 # different subdirs can have different --enable and --with options.
19349 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
19352 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
19354 # Do not complain, so a configure script can configure whichever
19355 # parts of a large source tree are present.
19356 test -d "$srcdir/$ac_dir" ||
continue
19358 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19359 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19360 $as_echo "$ac_msg" >&6
19361 as_dir
="$ac_dir"; as_fn_mkdir_p
19365 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19367 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19368 # A ".." for each directory in $ac_dir_suffix.
19369 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19370 case $ac_top_builddir_sub in
19371 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19372 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
19375 ac_abs_top_builddir
=$ac_pwd
19376 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
19377 # for backward compatibility:
19378 ac_top_builddir
=$ac_top_build_prefix
19381 .
) # We are building in place.
19383 ac_top_srcdir
=$ac_top_builddir_sub
19384 ac_abs_top_srcdir
=$ac_pwd ;;
19385 [\\/]* | ?
:[\\/]* ) # Absolute name.
19386 ac_srcdir
=$srcdir$ac_dir_suffix;
19387 ac_top_srcdir
=$srcdir
19388 ac_abs_top_srcdir
=$srcdir ;;
19389 *) # Relative name.
19390 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
19391 ac_top_srcdir
=$ac_top_build_prefix$srcdir
19392 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
19394 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
19399 # Check for guested configure; otherwise get Cygnus style configure.
19400 if test -f "$ac_srcdir/configure.gnu"; then
19401 ac_sub_configure
=$ac_srcdir/configure.gnu
19402 elif test -f "$ac_srcdir/configure"; then
19403 ac_sub_configure
=$ac_srcdir/configure
19404 elif test -f "$ac_srcdir/configure.in"; then
19405 # This should be Cygnus configure.
19406 ac_sub_configure
=$ac_aux_dir/configure
19408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19409 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19413 # The recursion is here.
19414 if test -n "$ac_sub_configure"; then
19415 # Make the cache file name correct relative to the subdirectory.
19416 case $cache_file in
19417 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
19418 *) # Relative name.
19419 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
19422 { $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
19423 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19424 # The eval makes quoting arguments work.
19425 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19426 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19427 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19433 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19435 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}