2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
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.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev
/null
; then :
178 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
183 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir
=.
190 for as_base
in sh bash ksh sh5
; do
191 # Try only shells that exist, to save several forks.
192 as_shell
=$as_dir/$as_base
193 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
195 CONFIG_SHELL
=$as_shell as_have_required
=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
204 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
206 CONFIG_SHELL
=$SHELL as_have_required
=yes
211 if test "x$CONFIG_SHELL" != x
; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x
$as_have_required = xno
; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x
${ZSH_VERSION+set} = xset
; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL
=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE
= GREP_OPTIONS
=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir
=.
/$as_dir;;
283 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
287 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs
="'$as_qdir' $as_dirs"
291 as_dir
=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
317 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
352 as_val
=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status
=$?
; test $as_status -eq 0 && as_status
=1
366 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit
$as_status
373 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
380 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
392 as_me
=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits
='0123456789'
416 as_cr_alnum
=$as_cr_Letters$as_cr_digits
419 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
420 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x
"$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C
= ECHO_N
= ECHO_T
=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
463 rm -f conf$$ conf$$.exe conf$$.
file
464 if test -d conf$$.dir
; then
465 rm -f conf$$.dir
/conf$$.
file
468 mkdir conf$$.dir
2>/dev
/null
470 if (echo >conf$$.
file) 2>/dev
/null
; then
471 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
479 elif ln conf$$.
file conf$$
2>/dev
/null
; then
487 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
488 rmdir conf$$.dir
2>/dev
/null
490 if mkdir
-p .
2>/dev
/null
; then
491 as_mkdir_p
='mkdir -p "$as_dir"'
493 test -d .
/-p && rmdir .
/-p
497 if test -x / >/dev
/null
2>&1; then
500 if ls -dL / >/dev
/null
2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p
=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev
/null
6>&1
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
537 ac_default_prefix
=/usr
/local
539 ac_config_libobj_dir
=.
546 # Identity of this package.
554 ac_unique_file
="main.c"
555 # Factoring default headers for most tests.
556 ac_includes_default
="\
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
568 # ifdef HAVE_STDLIB_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
591 enable_option_checking
=no
592 ac_subst_vars
='LTLIBOBJS
601 HAVE_NATIVE_GCORE_HOST
693 READLINE_TEXI_INCFLAG
716 HAVE_NATIVE_GCORE_TARGET
744 INSTALL_STRIP_PROGRAM
773 MAINTAINER_MODE_FALSE
802 program_transform_name
813 ac_subst_files
='nat_makefile_frag'
815 enable_option_checking
816 enable_maintainer_mode
819 with_separate_debug_dir
821 with_relocated_sources
823 with_auto_load_safe_path
855 enable_build_warnings
856 enable_gdb_build_warnings
866 with_libbabeltrace_prefix
868 ac_precious_vars
='build_alias
885 ac_subdirs_all
='testsuite
890 # Initialize some variables set by options.
892 ac_init_version
=false
893 ac_unrecognized_opts
=
895 # The variables have the same names as the options, with
896 # dashes changed to underlines.
904 program_transform_name
=s
,x
,x
,
912 # Installation directory options.
913 # These are left unexpanded so users can "make install exec_prefix=/foo"
914 # and all the variables that are supposed to be based on exec_prefix
915 # by default will actually change.
916 # Use braces instead of parens because sh, perl, etc. also accept them.
917 # (The list follows the same order as the GNU Coding Standards.)
918 bindir
='${exec_prefix}/bin'
919 sbindir
='${exec_prefix}/sbin'
920 libexecdir
='${exec_prefix}/libexec'
921 datarootdir
='${prefix}/share'
922 datadir
='${datarootdir}'
923 sysconfdir
='${prefix}/etc'
924 sharedstatedir
='${prefix}/com'
925 localstatedir
='${prefix}/var'
926 includedir
='${prefix}/include'
927 oldincludedir
='/usr/include'
928 docdir
='${datarootdir}/doc/${PACKAGE}'
929 infodir
='${datarootdir}/info'
934 libdir
='${exec_prefix}/lib'
935 localedir
='${datarootdir}/locale'
936 mandir
='${datarootdir}/man'
942 # If the previous option needs an argument, assign it.
943 if test -n "$ac_prev"; then
944 eval $ac_prev=\
$ac_option
950 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
954 # Accept the important Cygnus configure options, so we can diagnose typos.
956 case $ac_dashdash$ac_option in
960 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
962 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
965 -build |
--build |
--buil |
--bui |
--bu)
966 ac_prev
=build_alias
;;
967 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
968 build_alias
=$ac_optarg ;;
970 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
971 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
972 ac_prev
=cache_file
;;
973 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
974 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
975 cache_file
=$ac_optarg ;;
978 cache_file
=config.cache
;;
980 -datadir |
--datadir |
--datadi |
--datad)
982 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
983 datadir
=$ac_optarg ;;
985 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
986 |
--dataroo |
--dataro |
--datar)
987 ac_prev
=datarootdir
;;
988 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
989 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
990 datarootdir
=$ac_optarg ;;
992 -disable-* |
--disable-*)
993 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
994 # Reject names that are not valid shell variable names.
995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
996 as_fn_error
"invalid feature name: $ac_useropt"
997 ac_useropt_orig
=$ac_useropt
998 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999 case $ac_user_opts in
1001 "enable_
$ac_useropt"
1003 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1004 ac_unrecognized_sep
=', ';;
1006 eval enable_
$ac_useropt=no
;;
1008 -docdir |
--docdir |
--docdi |
--doc |
--do)
1010 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1011 docdir
=$ac_optarg ;;
1013 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1015 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1016 dvidir
=$ac_optarg ;;
1018 -enable-* |
--enable-*)
1019 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1022 as_fn_error
"invalid feature name: $ac_useropt"
1023 ac_useropt_orig
=$ac_useropt
1024 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025 case $ac_user_opts in
1027 "enable_
$ac_useropt"
1029 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1030 ac_unrecognized_sep
=', ';;
1032 eval enable_
$ac_useropt=\
$ac_optarg ;;
1034 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1035 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1036 |
--exec |
--exe |
--ex)
1037 ac_prev
=exec_prefix
;;
1038 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1039 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1040 |
--exec=* |
--exe=* |
--ex=*)
1041 exec_prefix
=$ac_optarg ;;
1043 -gas |
--gas |
--ga |
--g)
1044 # Obsolete; use --with-gas.
1047 -help |
--help |
--hel |
--he |
-h)
1048 ac_init_help
=long
;;
1049 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1050 ac_init_help
=recursive
;;
1051 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1052 ac_init_help
=short
;;
1054 -host |
--host |
--hos |
--ho)
1055 ac_prev
=host_alias
;;
1056 -host=* |
--host=* |
--hos=* |
--ho=*)
1057 host_alias
=$ac_optarg ;;
1059 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1061 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1063 htmldir
=$ac_optarg ;;
1065 -includedir |
--includedir |
--includedi |
--included |
--include \
1066 |
--includ |
--inclu |
--incl |
--inc)
1067 ac_prev
=includedir
;;
1068 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1069 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1070 includedir
=$ac_optarg ;;
1072 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1074 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1075 infodir
=$ac_optarg ;;
1077 -libdir |
--libdir |
--libdi |
--libd)
1079 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1080 libdir
=$ac_optarg ;;
1082 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1083 |
--libexe |
--libex |
--libe)
1084 ac_prev
=libexecdir
;;
1085 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1086 |
--libexe=* |
--libex=* |
--libe=*)
1087 libexecdir
=$ac_optarg ;;
1089 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1090 ac_prev
=localedir
;;
1091 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1092 localedir
=$ac_optarg ;;
1094 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1095 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1096 ac_prev
=localstatedir
;;
1097 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1098 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1099 localstatedir
=$ac_optarg ;;
1101 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1103 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1104 mandir
=$ac_optarg ;;
1106 -nfp |
--nfp |
--nf)
1107 # Obsolete; use --without-fp.
1110 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1111 |
--no-cr |
--no-c |
-n)
1114 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1115 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1118 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1119 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1120 |
--oldin |
--oldi |
--old |
--ol |
--o)
1121 ac_prev
=oldincludedir
;;
1122 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1123 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1124 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1125 oldincludedir
=$ac_optarg ;;
1127 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1129 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1130 prefix
=$ac_optarg ;;
1132 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1133 |
--program-pre |
--program-pr |
--program-p)
1134 ac_prev
=program_prefix
;;
1135 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1136 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1137 program_prefix
=$ac_optarg ;;
1139 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1140 |
--program-suf |
--program-su |
--program-s)
1141 ac_prev
=program_suffix
;;
1142 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1143 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1144 program_suffix
=$ac_optarg ;;
1146 -program-transform-name |
--program-transform-name \
1147 |
--program-transform-nam |
--program-transform-na \
1148 |
--program-transform-n |
--program-transform- \
1149 |
--program-transform |
--program-transfor \
1150 |
--program-transfo |
--program-transf \
1151 |
--program-trans |
--program-tran \
1152 |
--progr-tra |
--program-tr |
--program-t)
1153 ac_prev
=program_transform_name
;;
1154 -program-transform-name=* |
--program-transform-name=* \
1155 |
--program-transform-nam=* |
--program-transform-na=* \
1156 |
--program-transform-n=* |
--program-transform-=* \
1157 |
--program-transform=* |
--program-transfor=* \
1158 |
--program-transfo=* |
--program-transf=* \
1159 |
--program-trans=* |
--program-tran=* \
1160 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1161 program_transform_name
=$ac_optarg ;;
1163 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1165 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1166 pdfdir
=$ac_optarg ;;
1168 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1170 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1173 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1174 |
-silent |
--silent |
--silen |
--sile |
--sil)
1177 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1179 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1181 sbindir
=$ac_optarg ;;
1183 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1184 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1185 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1187 ac_prev
=sharedstatedir
;;
1188 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1189 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1190 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1192 sharedstatedir
=$ac_optarg ;;
1194 -site |
--site |
--sit)
1196 -site=* |
--site=* |
--sit=*)
1199 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1201 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1202 srcdir
=$ac_optarg ;;
1204 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1205 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1206 ac_prev
=sysconfdir
;;
1207 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1208 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1209 sysconfdir
=$ac_optarg ;;
1211 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1212 ac_prev
=target_alias
;;
1213 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1214 target_alias
=$ac_optarg ;;
1216 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1219 -version |
--version |
--versio |
--versi |
--vers |
-V)
1220 ac_init_version
=: ;;
1223 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1226 as_fn_error
"invalid package name: $ac_useropt"
1227 ac_useropt_orig
=$ac_useropt
1228 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1229 case $ac_user_opts in
1233 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1234 ac_unrecognized_sep
=', ';;
1236 eval with_
$ac_useropt=\
$ac_optarg ;;
1238 -without-* |
--without-*)
1239 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1240 # Reject names that are not valid shell variable names.
1241 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1242 as_fn_error
"invalid package name: $ac_useropt"
1243 ac_useropt_orig
=$ac_useropt
1244 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245 case $ac_user_opts in
1249 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1250 ac_unrecognized_sep
=', ';;
1252 eval with_
$ac_useropt=no
;;
1255 # Obsolete; use --with-x.
1258 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1259 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1260 ac_prev
=x_includes
;;
1261 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1262 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1263 x_includes
=$ac_optarg ;;
1265 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1266 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1267 ac_prev
=x_libraries
;;
1268 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1269 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1270 x_libraries
=$ac_optarg ;;
1272 -*) as_fn_error
"unrecognized option: \`$ac_option'
1273 Try \`$0 --help' for more information."
1277 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1278 # Reject names that are not valid shell variable names.
1279 case $ac_envvar in #(
1280 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1281 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1283 eval $ac_envvar=\
$ac_optarg
1284 export $ac_envvar ;;
1287 # FIXME: should be removed in autoconf 3.0.
1288 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1289 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1290 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1291 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1297 if test -n "$ac_prev"; then
1298 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1299 as_fn_error
"missing argument to $ac_option"
1302 if test -n "$ac_unrecognized_opts"; then
1303 case $enable_option_checking in
1305 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1306 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1310 # Check all directory arguments for consistency.
1311 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1312 datadir sysconfdir sharedstatedir localstatedir includedir \
1313 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1314 libdir localedir mandir
1316 eval ac_val
=\$
$ac_var
1317 # Remove trailing slashes.
1320 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1321 eval $ac_var=\
$ac_val;;
1323 # Be sure to have absolute directory names.
1325 [\\/$
]* | ?
:[\\/]* ) continue;;
1326 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1328 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1331 # There might be people who depend on the old broken behavior: `$host'
1332 # used to hold the argument of --host etc.
1333 # FIXME: To remove some day.
1336 target
=$target_alias
1338 # FIXME: To remove some day.
1339 if test "x$host_alias" != x
; then
1340 if test "x$build_alias" = x
; then
1341 cross_compiling
=maybe
1342 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1343 If a cross compiler is detected then cross compile mode will be used." >&2
1344 elif test "x$build_alias" != "x$host_alias"; then
1350 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1352 test "$silent" = yes && exec 6>/dev
/null
1355 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1356 ac_ls_di
=`ls -di .` &&
1357 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1358 as_fn_error
"working directory cannot be determined"
1359 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1360 as_fn_error
"pwd does not report name of working directory"
1363 # Find the source files, if location was not specified.
1364 if test -z "$srcdir"; then
1365 ac_srcdir_defaulted
=yes
1366 # Try the directory containing this script, then the parent directory.
1367 ac_confdir
=`$as_dirname -- "$as_myself" ||
1368 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1369 X"$as_myself" : 'X\(//\)[^/]' \| \
1370 X"$as_myself" : 'X\(//\)$' \| \
1371 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1372 $as_echo X"$as_myself" |
1373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1391 if test ! -r "$srcdir/$ac_unique_file"; then
1395 ac_srcdir_defaulted
=no
1397 if test ! -r "$srcdir/$ac_unique_file"; then
1398 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1399 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1401 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1403 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1405 # When building in place, set srcdir=.
1406 if test "$ac_abs_confdir" = "$ac_pwd"; then
1409 # Remove unnecessary trailing slashes from srcdir.
1410 # Double slashes in file names in object file debugging info
1411 # mess up M-x gdb in Emacs.
1413 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1415 for ac_var
in $ac_precious_vars; do
1416 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1417 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1418 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1419 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1423 # Report the --help message.
1425 if test "$ac_init_help" = "long"; then
1426 # Omit some internal or obsolete options to make the list less imposing.
1427 # This message is too long to be a string in the A/UX 3.1 sh.
1429 \`configure' configures this package to adapt to many kinds of systems.
1431 Usage: $0 [OPTION]... [VAR=VALUE]...
1433 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1434 VAR=VALUE. See below for descriptions of some of the useful variables.
1436 Defaults for the options are specified in brackets.
1439 -h, --help display this help and exit
1440 --help=short display options specific to this package
1441 --help=recursive display the short help of all the included packages
1442 -V, --version display version information and exit
1443 -q, --quiet, --silent do not print \`checking...' messages
1444 --cache-file=FILE cache test results in FILE [disabled]
1445 -C, --config-cache alias for \`--cache-file=config.cache'
1446 -n, --no-create do not create output files
1447 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1449 Installation directories:
1450 --prefix=PREFIX install architecture-independent files in PREFIX
1451 [$ac_default_prefix]
1452 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1455 By default, \`make install' will install all the files in
1456 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1457 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1458 for instance \`--prefix=\$HOME'.
1460 For better control, use the options below.
1462 Fine tuning of the installation directories:
1463 --bindir=DIR user executables [EPREFIX/bin]
1464 --sbindir=DIR system admin executables [EPREFIX/sbin]
1465 --libexecdir=DIR program executables [EPREFIX/libexec]
1466 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1467 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1468 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1469 --libdir=DIR object code libraries [EPREFIX/lib]
1470 --includedir=DIR C header files [PREFIX/include]
1471 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1472 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1473 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1474 --infodir=DIR info documentation [DATAROOTDIR/info]
1475 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1476 --mandir=DIR man documentation [DATAROOTDIR/man]
1477 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1478 --htmldir=DIR html documentation [DOCDIR]
1479 --dvidir=DIR dvi documentation [DOCDIR]
1480 --pdfdir=DIR pdf documentation [DOCDIR]
1481 --psdir=DIR ps documentation [DOCDIR]
1487 --program-prefix=PREFIX prepend PREFIX to installed program names
1488 --program-suffix=SUFFIX append SUFFIX to installed program names
1489 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1492 --x-includes=DIR X include files are
in DIR
1493 --x-libraries=DIR X library files are
in DIR
1496 --build=BUILD configure
for building on BUILD
[guessed
]
1497 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1498 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1502 if test -n "$ac_init_help"; then
1507 --disable-option-checking ignore unrecognized
--enable/--with options
1508 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1509 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1510 --enable-maintainer-mode enable make rules and dependencies not useful
1511 (and sometimes confusing
) to the casual installer
1512 --enable-plugins Enable support
for plugins
1513 --disable-largefile omit support
for large files
1514 --enable-targets=TARGETS
1515 alternative target configurations
1516 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1517 --disable-gdbcli disable command-line interface
(CLI
)
1518 --disable-gdbmi disable machine-interface
(MI
)
1519 --enable-tui enable full-screen terminal user interface
(TUI
)
1520 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1521 --enable-profiling enable profiling of GDB
1522 --disable-rpath do not hardcode runtime library paths
1523 --enable-libmcheck Try linking with
-lmcheck if available
1524 --enable-werror treat compile warnings as errors
1525 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1526 --enable-gdb-build-warnings
1527 enable GDB specific build-time compiler warnings
if
1529 --enable-sim link gdb with simulator
1530 --enable-multi-ice build the multi-ice-gdb-server
1531 --enable-gdbserver automatically build gdbserver
(yes
/no
/auto
, default
1535 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1536 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1537 --with-separate-debug-dir=PATH
1538 look for global separate debug info
in this path
1540 --with-gdb-datadir=PATH
look for global separate data files
in this path
1542 --with-relocated-sources=PATH
1543 automatically relocate this path
for source files
1544 --with-auto-load-dir=PATH
1545 directories from
which to load auto-loaded scripts
1546 [$debugdir:$datadir/auto-load
]
1547 --with-auto-load-safe-path=PATH
1548 directories safe to hold auto-loaded files
1549 [--with-auto-load-dir]
1550 --without-auto-load-safe-path
1551 do not restrict auto-loaded files locations
1552 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1553 --with-curses use the curses library instead of the termcap
1555 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1556 --with-bugurl=URL Direct users to URL to report a bug
1557 --with-system-zlib use installed libz
1558 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1559 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1560 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1561 --with-iconv-bin=PATH specify where to find the iconv program
1562 --with-system-readline use installed readline library
1563 --with-jit-reader-dir=PATH
1564 directory to load the JIT readers from
1565 --with-expat include expat support (auto/yes/no)
1566 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1567 --without-libexpat-prefix don't search
for libexpat
in includedir and libdir
1568 --with-mpfr include MPFR support
(auto
/yes
/no
)
1569 --with-libmpfr-prefix[=DIR
] search
for libmpfr
in DIR
/include and DIR
/lib
1570 --without-libmpfr-prefix don
't search for libmpfr in includedir and libdir
1571 --with-python[=PYTHON] include python support
1572 (auto/yes/no/<python-program>)
1573 --with-guile[=GUILE] include guile support
1574 (auto/yes/no/<guile-version>/<pkg-config-program>)
1575 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1576 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1577 --without-libipt-prefix don't search
for libipt
in includedir and libdir
1578 --without-included-regex
1579 don
't use included regex; this is the default on
1580 systems with version 2 of the GNU C library (use
1581 with caution on other system)
1582 --with-sysroot[=DIR] search for usr/lib et al within DIR
1583 --with-system-gdbinit=PATH
1584 automatically load a system-wide gdbinit file
1585 --with-lzma support lzma compression (auto/yes/no)
1586 --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib
1587 --without-liblzma-prefix don't search
for liblzma
in includedir and libdir
1588 --with-tcl directory containing tcl configuration
(tclConfig.sh
)
1589 --with-tk directory containing tk configuration
(tkConfig.sh
)
1590 --with-x use the X Window System
1591 --with-babeltrace include babeltrace support
(auto
/yes
/no
)
1592 --with-libbabeltrace-prefix[=DIR
] search
for libbabeltrace
in DIR
/include and DIR
/lib
1593 --without-libbabeltrace-prefix don
't search for libbabeltrace in includedir and libdir
1595 Some influential environment variables:
1596 CC C compiler command
1597 CFLAGS C compiler flags
1598 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1599 nonstandard directory <lib dir>
1600 LIBS libraries to pass to the linker, e.g. -l<library>
1601 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1602 you have headers in a nonstandard directory <include dir>
1603 CXX C++ compiler command
1604 CXXFLAGS C++ compiler flags
1606 MAKEINFO Parent configure detects if it is of sufficient version.
1608 Parameters for MAKEINFO.
1609 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1610 the first program found out of
: `bison -y', `byacc
', `yacc'.
1611 YFLAGS The list of arguments that will be passed by default to
$YACC.
1612 This
script will default YFLAGS to the empty string to avoid a
1613 default value of
`-d' given by some make applications.
1614 XMKMF Path to xmkmf, Makefile generator for X Window System
1616 Use these variables to override the choices made by `configure
' or to help
1617 it to find libraries and programs with nonstandard names/locations.
1619 Report bugs to the package provider.
1624 if test "$ac_init_help" = "recursive"; then
1625 # If there are subdirs, report their specific --help.
1626 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1627 test -d "$ac_dir" ||
1628 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1633 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1635 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.
[\\/]||
'`
1636 # A ".." for each directory in $ac_dir_suffix.
1637 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|
/[^
\\/]*|
/..|g
;s|
/||
'`
1638 case $ac_top_builddir_sub in
1639 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1640 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1643 ac_abs_top_builddir=$ac_pwd
1644 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1645 # for backward compatibility:
1646 ac_top_builddir=$ac_top_build_prefix
1649 .) # We are building in place.
1651 ac_top_srcdir=$ac_top_builddir_sub
1652 ac_abs_top_srcdir=$ac_pwd ;;
1653 [\\/]* | ?:[\\/]* ) # Absolute name.
1654 ac_srcdir=$srcdir$ac_dir_suffix;
1655 ac_top_srcdir=$srcdir
1656 ac_abs_top_srcdir=$srcdir ;;
1658 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1659 ac_top_srcdir=$ac_top_build_prefix$srcdir
1660 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1662 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1664 cd "$ac_dir" || { ac_status=$?; continue; }
1665 # Check for guested configure.
1666 if test -f "$ac_srcdir/configure.gnu"; then
1668 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1669 elif test -f "$ac_srcdir/configure"; then
1671 $SHELL "$ac_srcdir/configure" --help=recursive
1673 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1675 cd "$ac_pwd" || { ac_status=$?; break; }
1679 test -n "$ac_init_help" && exit $ac_status
1680 if $ac_init_version; then
1683 generated by GNU Autoconf 2.64
1685 Copyright (C) 2009 Free Software Foundation, Inc.
1686 This configure script is free software; the Free Software Foundation
1687 gives unlimited permission to copy, distribute and modify it.
1692 ## ------------------------ ##
1693 ## Autoconf initialization. ##
1694 ## ------------------------ ##
1696 # ac_fn_c_try_compile LINENO
1697 # --------------------------
1698 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1699 ac_fn_c_try_compile ()
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 rm -f conftest.$ac_objext
1703 if { { ac_try="$ac_compile"
1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706 *) ac_try_echo=$ac_try;;
1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 $as_echo "$ac_try_echo"; } >&5
1710 (eval "$ac_compile") 2>conftest.err
1712 if test -s conftest.err; then
1713 grep -v '^
*+' conftest.err >conftest.er1
1714 cat conftest.er1 >&5
1715 mv -f conftest.er1 conftest.err
1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; } && {
1719 test -z "$ac_c_werror_flag" ||
1720 test ! -s conftest.err
1721 } && test -s conftest.$ac_objext; then :
1724 $as_echo "$as_me: failed program was:" >&5
1725 sed 's
/^
/|
/' conftest.$ac_ext >&5
1729 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1732 } # ac_fn_c_try_compile
1734 # ac_fn_cxx_try_compile LINENO
1735 # ----------------------------
1736 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1737 ac_fn_cxx_try_compile ()
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 rm -f conftest.$ac_objext
1741 if { { ac_try="$ac_compile"
1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744 *) ac_try_echo=$ac_try;;
1746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747 $as_echo "$ac_try_echo"; } >&5
1748 (eval "$ac_compile") 2>conftest.err
1750 if test -s conftest.err; then
1751 grep -v '^
*+' conftest.err >conftest.er1
1752 cat conftest.er1 >&5
1753 mv -f conftest.er1 conftest.err
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; } && {
1757 test -z "$ac_cxx_werror_flag" ||
1758 test ! -s conftest.err
1759 } && test -s conftest.$ac_objext; then :
1762 $as_echo "$as_me: failed program was:" >&5
1763 sed 's
/^
/|
/' conftest.$ac_ext >&5
1767 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1770 } # ac_fn_cxx_try_compile
1772 # ac_fn_c_try_cpp LINENO
1773 # ----------------------
1774 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 if { { ac_try="$ac_cpp conftest.$ac_ext"
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1787 if test -s conftest.err; then
1788 grep -v '^
*+' conftest.err >conftest.er1
1789 cat conftest.er1 >&5
1790 mv -f conftest.er1 conftest.err
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } >/dev/null && {
1794 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1795 test ! -s conftest.err
1799 $as_echo "$as_me: failed program was:" >&5
1800 sed 's
/^
/|
/' conftest.$ac_ext >&5
1804 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1810 # -------------------------------------------------------
1811 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1812 # the include files in INCLUDES and setting the cache variable VAR
1814 ac_fn_c_check_header_mongrel ()
1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819 $as_echo_n "checking for $2... " >&6; }
1820 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1821 $as_echo_n "(cached) " >&6
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825 $as_echo "$ac_res" >&6; }
1827 # Is the header compilable?
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1829 $as_echo_n "checking $2 usability... " >&6; }
1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831 /* end confdefs.h. */
1835 if ac_fn_c_try_compile "$LINENO"; then :
1836 ac_header_compiler=yes
1838 ac_header_compiler=no
1840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1842 $as_echo "$ac_header_compiler" >&6; }
1844 # Is the header present?
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1846 $as_echo_n "checking $2 presence... " >&6; }
1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848 /* end confdefs.h. */
1851 if ac_fn_c_try_cpp "$LINENO"; then :
1852 ac_header_preproc=yes
1854 ac_header_preproc=no
1856 rm -f conftest.err conftest.$ac_ext
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1858 $as_echo "$ac_header_preproc" >&6; }
1860 # So? What about this header?
1861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1864 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1866 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1870 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1872 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1874 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1876 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1878 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1882 $as_echo_n "checking for $2... " >&6; }
1883 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1884 $as_echo_n "(cached) " >&6
1886 eval "$3=\$ac_header_compiler"
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1890 $as_echo "$ac_res" >&6; }
1892 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1894 } # ac_fn_c_check_header_mongrel
1896 # ac_fn_c_try_run LINENO
1897 # ----------------------
1898 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1899 # that executables *can* be run.
1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903 if { { ac_try="$ac_link"
1905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1906 *) ac_try_echo=$ac_try;;
1908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1909 $as_echo "$ac_try_echo"; } >&5
1910 (eval "$ac_link") 2>&5
1912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913 test $ac_status = 0; } && { ac_try='.
/conftest
$ac_exeext'
1914 { { case "(($ac_try" in
1915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1916 *) ac_try_echo=$ac_try;;
1918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1919 $as_echo "$ac_try_echo"; } >&5
1920 (eval "$ac_try") 2>&5
1922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1923 test $ac_status = 0; }; }; then :
1926 $as_echo "$as_me: program exited with status $ac_status" >&5
1927 $as_echo "$as_me: failed program was:" >&5
1928 sed 's
/^
/|
/' conftest.$ac_ext >&5
1930 ac_retval=$ac_status
1932 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1933 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1938 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1939 # -------------------------------------------------------
1940 # Tests whether HEADER exists and can be compiled using the include files in
1941 # INCLUDES, setting the cache variable VAR accordingly.
1942 ac_fn_c_check_header_compile ()
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946 $as_echo_n "checking for $2... " >&6; }
1947 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1948 $as_echo_n "(cached) " >&6
1950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951 /* end confdefs.h. */
1955 if ac_fn_c_try_compile "$LINENO"; then :
1960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1964 $as_echo "$ac_res" >&6; }
1965 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1967 } # ac_fn_c_check_header_compile
1969 # ac_fn_c_try_link LINENO
1970 # -----------------------
1971 # Try to link conftest.$ac_ext, and return whether this succeeded.
1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975 rm -f conftest.$ac_objext conftest$ac_exeext
1976 if { { ac_try="$ac_link"
1978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1979 *) ac_try_echo=$ac_try;;
1981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1982 $as_echo "$ac_try_echo"; } >&5
1983 (eval "$ac_link") 2>conftest.err
1985 if test -s conftest.err; then
1986 grep -v '^
*+' conftest.err >conftest.er1
1987 cat conftest.er1 >&5
1988 mv -f conftest.er1 conftest.err
1990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1991 test $ac_status = 0; } && {
1992 test -z "$ac_c_werror_flag" ||
1993 test ! -s conftest.err
1994 } && test -s conftest$ac_exeext && {
1995 test "$cross_compiling" = yes ||
1996 $as_test_x conftest$ac_exeext
2000 $as_echo "$as_me: failed program was:" >&5
2001 sed 's
/^
/|
/' conftest.$ac_ext >&5
2005 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2006 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2007 # interfere with the next link command; also delete a directory that is
2008 # left behind by Apple's compiler. We
do this before executing the actions.
2009 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2010 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2013 } # ac_fn_c_try_link
2015 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2016 # --------------------------------------------
2017 # Tries to find the compile-time value of EXPR in a program that includes
2018 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2020 ac_fn_c_compute_int
()
2022 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2023 if test "$cross_compiling" = yes; then
2024 # Depending upon the size, compute the lo and hi bounds.
2025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2031 static int test_array [1 - 2 * !(($2) >= 0)];
2038 if ac_fn_c_try_compile
"$LINENO"; then :
2041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h. */
2047 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2054 if ac_fn_c_try_compile
"$LINENO"; then :
2055 ac_hi
=$ac_mid; break
2057 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2058 if test $ac_lo -le $ac_mid; then
2062 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2064 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2073 static int test_array [1 - 2 * !(($2) < 0)];
2080 if ac_fn_c_try_compile
"$LINENO"; then :
2083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2089 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2096 if ac_fn_c_try_compile
"$LINENO"; then :
2097 ac_lo
=$ac_mid; break
2099 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2100 if test $ac_mid -le $ac_hi; then
2104 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2106 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2111 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2113 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2114 # Binary search between lo and hi bounds.
2115 while test "x$ac_lo" != "x$ac_hi"; do
2116 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h. */
2123 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2130 if ac_fn_c_try_compile
"$LINENO"; then :
2133 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2135 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2138 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2145 static long int longval () { return $2; }
2146 static unsigned long int ulongval () { return $2; }
2153 FILE *f = fopen ("conftest.val", "w");
2158 long int i = longval ();
2161 fprintf (f, "%ld", i);
2165 unsigned long int i = ulongval ();
2168 fprintf (f, "%lu", i);
2170 /* Do not output a trailing newline, as this causes \r\n confusion
2171 on some platforms. */
2172 return ferror (f) || fclose (f) != 0;
2178 if ac_fn_c_try_run
"$LINENO"; then :
2179 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2183 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2184 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2188 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2191 } # ac_fn_c_compute_int
2193 # ac_fn_c_check_func LINENO FUNC VAR
2194 # ----------------------------------
2195 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2196 ac_fn_c_check_func
()
2198 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2200 $as_echo_n "checking for $2... " >&6; }
2201 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2202 $as_echo_n "(cached) " >&6
2204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2205 /* end confdefs.h. */
2206 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2208 #define $2 innocuous_$2
2210 /* System header to define __stub macros and hopefully few prototypes,
2211 which can conflict with char $2 (); below.
2212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2213 <limits.h> exists even on freestanding compilers. */
2216 # include <limits.h>
2218 # include <assert.h>
2223 /* Override any GCC internal prototype to avoid an error.
2224 Use char because int might match the return type of a GCC
2225 builtin and then its argument prototype would still apply. */
2230 /* The GNU C library defines this for functions which it implements
2231 to always fail with ENOSYS. Some functions are actually named
2232 something starting with __ and the normal name is an alias. */
2233 #if defined __stub_$2 || defined __stub___$2
2245 if ac_fn_c_try_link
"$LINENO"; then :
2250 rm -f core conftest.err conftest.
$ac_objext \
2251 conftest
$ac_exeext conftest.
$ac_ext
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2255 $as_echo "$ac_res" >&6; }
2256 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2258 } # ac_fn_c_check_func
2260 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2261 # ----------------------------------------------------
2262 # Tries to find if the field MEMBER exists in type AGGR, after including
2263 # INCLUDES, setting cache variable VAR accordingly.
2264 ac_fn_c_check_member
()
2266 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2268 $as_echo_n "checking for $2.$3... " >&6; }
2269 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2270 $as_echo_n "(cached) " >&6
2272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2273 /* end confdefs.h. */
2285 if ac_fn_c_try_compile
"$LINENO"; then :
2288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2289 /* end confdefs.h. */
2295 if (sizeof ac_aggr.$3)
2301 if ac_fn_c_try_compile
"$LINENO"; then :
2306 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2308 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2312 $as_echo "$ac_res" >&6; }
2313 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2315 } # ac_fn_c_check_member
2317 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2318 # -------------------------------------------
2319 # Tests whether TYPE exists after having included INCLUDES, setting cache
2320 # variable VAR accordingly.
2321 ac_fn_c_check_type
()
2323 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2325 $as_echo_n "checking for $2... " >&6; }
2326 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2327 $as_echo_n "(cached) " >&6
2330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h. */
2342 if ac_fn_c_try_compile
"$LINENO"; then :
2343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2344 /* end confdefs.h. */
2355 if ac_fn_c_try_compile
"$LINENO"; then :
2360 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2366 $as_echo "$ac_res" >&6; }
2367 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2369 } # ac_fn_c_check_type
2371 # ac_fn_c_check_decl LINENO SYMBOL VAR
2372 # ------------------------------------
2373 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2374 ac_fn_c_check_decl
()
2376 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2377 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2378 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2380 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2381 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2382 $as_echo_n "(cached) " >&6
2384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2385 /* end confdefs.h. */
2390 #ifndef $as_decl_name
2392 (void) $as_decl_use;
2394 (void) $as_decl_name;
2402 if ac_fn_c_try_compile
"$LINENO"; then :
2407 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2411 $as_echo "$ac_res" >&6; }
2412 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2414 } # ac_fn_c_check_decl
2415 cat >config.log
<<_ACEOF
2416 This file contains any messages produced by compilers while
2417 running configure, to aid debugging if configure makes a mistake.
2419 It was created by $as_me, which was
2420 generated by GNU Autoconf 2.64. Invocation command line was
2432 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2433 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2434 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2435 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2436 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2438 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2439 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2441 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2442 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2443 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2444 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2445 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2446 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2447 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2451 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2455 test -z "$as_dir" && as_dir
=.
2456 $as_echo "PATH: $as_dir"
2472 # Keep a trace of the command line.
2473 # Strip out --no-create and --no-recursion so they do not pile up.
2474 # Strip out --silent because we don't want to record it for future runs.
2475 # Also quote any args containing shell meta-characters.
2476 # Make two passes to allow for proper duplicate-argument suppression.
2480 ac_must_keep_next
=false
2486 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2487 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2488 |
-silent |
--silent |
--silen |
--sile |
--sil)
2491 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2494 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2496 as_fn_append ac_configure_args1
" '$ac_arg'"
2497 if test $ac_must_keep_next = true
; then
2498 ac_must_keep_next
=false
# Got value, back to normal.
2501 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2502 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2503 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2504 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2505 case "$ac_configure_args0 " in
2506 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2509 -* ) ac_must_keep_next
=true
;;
2512 as_fn_append ac_configure_args
" '$ac_arg'"
2517 { ac_configure_args0
=; unset ac_configure_args0
;}
2518 { ac_configure_args1
=; unset ac_configure_args1
;}
2520 # When interrupted or exit'd, cleanup temporary files, and complete
2521 # config.log. We remove comments because anyway the quotes in there
2522 # would cause problems or look ugly.
2523 # WARNING: Use '\'' to represent an apostrophe within the trap.
2524 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2525 trap 'exit_status=$?
2526 # Save into config.log some information that might help in debugging.
2531 ## ---------------- ##
2532 ## Cache variables. ##
2533 ## ---------------- ##
2536 # The following way of writing the cache mishandles newlines in values,
2538 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2539 eval ac_val=\$$ac_var
2543 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2544 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2547 _ | IFS | as_nl) ;; #(
2548 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2549 *) { eval $ac_var=; unset $ac_var;} ;;
2554 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2555 *${as_nl}ac_space=\ *)
2557 "s/'\''/'\''\\\\'\'''\''/g;
2558 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2561 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2569 ## ----------------- ##
2570 ## Output variables. ##
2571 ## ----------------- ##
2574 for ac_var in $ac_subst_vars
2576 eval ac_val=\$$ac_var
2578 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2580 $as_echo "$ac_var='\''$ac_val'\''"
2584 if test -n "$ac_subst_files"; then
2586 ## ------------------- ##
2587 ## File substitutions. ##
2588 ## ------------------- ##
2591 for ac_var
in $ac_subst_files
2593 eval ac_val
=\$
$ac_var
2595 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2597 $as_echo "$ac_var='\''$ac_val'\''"
2602 if test -s confdefs.h; then
2612 test "$ac_signal" != 0 &&
2613 $as_echo "$as_me: caught signal $ac_signal"
2614 $as_echo "$as_me: exit $exit_status"
2616 rm -f core *.core core.conftest.* &&
2617 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2620 for ac_signal
in 1 2 13 15; do
2621 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2625 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2626 rm -f -r conftest
* confdefs.h
2628 $as_echo "/* confdefs.h */" > confdefs.h
2630 # Predefined preprocessor variables.
2632 cat >>confdefs.h
<<_ACEOF
2633 #define PACKAGE_NAME "$PACKAGE_NAME"
2636 cat >>confdefs.h
<<_ACEOF
2637 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2640 cat >>confdefs.h
<<_ACEOF
2641 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2644 cat >>confdefs.h
<<_ACEOF
2645 #define PACKAGE_STRING "$PACKAGE_STRING"
2648 cat >>confdefs.h
<<_ACEOF
2649 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2652 cat >>confdefs.h
<<_ACEOF
2653 #define PACKAGE_URL "$PACKAGE_URL"
2657 # Let the site file select an alternate cache file if it wants to.
2658 # Prefer an explicitly selected file to automatically selected ones.
2661 if test -n "$CONFIG_SITE"; then
2662 ac_site_file1
=$CONFIG_SITE
2663 elif test "x$prefix" != xNONE
; then
2664 ac_site_file1
=$prefix/share
/config.site
2665 ac_site_file2
=$prefix/etc
/config.site
2667 ac_site_file1
=$ac_default_prefix/share
/config.site
2668 ac_site_file2
=$ac_default_prefix/etc
/config.site
2670 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2672 test "x$ac_site_file" = xNONE
&& continue
2673 if test -r "$ac_site_file"; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2675 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2676 sed 's/^/| /' "$ac_site_file" >&5
2681 if test -r "$cache_file"; then
2682 # Some versions of bash will fail to source /dev/null (special
2683 # files actually), so we avoid doing that.
2684 if test -f "$cache_file"; then
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2686 $as_echo "$as_me: loading cache $cache_file" >&6;}
2688 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2689 *) .
"./$cache_file";;
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2694 $as_echo "$as_me: creating cache $cache_file" >&6;}
2698 # Check that the precious variables saved in the cache have kept the same
2700 ac_cache_corrupted
=false
2701 for ac_var
in $ac_precious_vars; do
2702 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2703 eval ac_new_set
=\
$ac_env_${ac_var}_set
2704 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2705 eval ac_new_val
=\
$ac_env_${ac_var}_value
2706 case $ac_old_set,$ac_new_set in
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2709 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2710 ac_cache_corrupted
=: ;;
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2713 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2714 ac_cache_corrupted
=: ;;
2717 if test "x$ac_old_val" != "x$ac_new_val"; then
2718 # differences in whitespace do not lead to failure.
2719 ac_old_val_w
=`echo x $ac_old_val`
2720 ac_new_val_w
=`echo x $ac_new_val`
2721 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2723 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2724 ac_cache_corrupted
=:
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2727 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2728 eval $ac_var=\
$ac_old_val
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2731 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2733 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2736 # Pass precious variables to config.status.
2737 if test "$ac_new_set" = set; then
2739 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2740 *) ac_arg
=$ac_var=$ac_new_val ;;
2742 case " $ac_configure_args " in
2743 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2744 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2748 if $ac_cache_corrupted; then
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2752 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2753 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2755 ## -------------------- ##
2756 ## Main body of script. ##
2757 ## -------------------- ##
2760 ac_cpp
='$CPP $CPPFLAGS'
2761 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2762 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2763 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2769 ac_config_headers
="$ac_config_headers config.h:config.in"
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2773 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2774 # Check whether --enable-maintainer-mode was given.
2775 if test "${enable_maintainer_mode+set}" = set; then :
2776 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2778 USE_MAINTAINER_MODE
=no
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2782 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2783 if test $USE_MAINTAINER_MODE = yes; then
2784 MAINTAINER_MODE_TRUE
=
2785 MAINTAINER_MODE_FALSE
='#'
2787 MAINTAINER_MODE_TRUE
='#'
2788 MAINTAINER_MODE_FALSE
=
2791 MAINT
=$MAINTAINER_MODE_TRUE
2795 # Set the 'development' global.
2796 .
$srcdir/..
/bfd
/development.sh
2799 ac_cpp
='$CPP $CPPFLAGS'
2800 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2801 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2802 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2803 if test -n "$ac_tool_prefix"; then
2804 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2805 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807 $as_echo_n "checking for $ac_word... " >&6; }
2808 if test "${ac_cv_prog_CC+set}" = set; then :
2809 $as_echo_n "(cached) " >&6
2811 if test -n "$CC"; then
2812 ac_cv_prog_CC
="$CC" # Let the user override the test.
2814 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2818 test -z "$as_dir" && as_dir
=.
2819 for ac_exec_ext
in '' $ac_executable_extensions; do
2820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2821 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2832 if test -n "$CC"; then
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2834 $as_echo "$CC" >&6; }
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837 $as_echo "no" >&6; }
2842 if test -z "$ac_cv_prog_CC"; then
2844 # Extract the first word of "gcc", so it can be a program name with args.
2845 set dummy gcc
; ac_word
=$2
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2847 $as_echo_n "checking for $ac_word... " >&6; }
2848 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2849 $as_echo_n "(cached) " >&6
2851 if test -n "$ac_ct_CC"; then
2852 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2854 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2858 test -z "$as_dir" && as_dir
=.
2859 for ac_exec_ext
in '' $ac_executable_extensions; do
2860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2861 ac_cv_prog_ac_ct_CC
="gcc"
2862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2871 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2872 if test -n "$ac_ct_CC"; then
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2874 $as_echo "$ac_ct_CC" >&6; }
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2877 $as_echo "no" >&6; }
2880 if test "x$ac_ct_CC" = x
; then
2883 case $cross_compiling:$ac_tool_warned in
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2887 ac_tool_warned
=yes ;;
2895 if test -z "$CC"; then
2896 if test -n "$ac_tool_prefix"; then
2897 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2898 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2900 $as_echo_n "checking for $ac_word... " >&6; }
2901 if test "${ac_cv_prog_CC+set}" = set; then :
2902 $as_echo_n "(cached) " >&6
2904 if test -n "$CC"; then
2905 ac_cv_prog_CC
="$CC" # Let the user override the test.
2907 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2911 test -z "$as_dir" && as_dir
=.
2912 for ac_exec_ext
in '' $ac_executable_extensions; do
2913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2914 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2925 if test -n "$CC"; then
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2927 $as_echo "$CC" >&6; }
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930 $as_echo "no" >&6; }
2936 if test -z "$CC"; then
2937 # Extract the first word of "cc", so it can be a program name with args.
2938 set dummy cc
; ac_word
=$2
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940 $as_echo_n "checking for $ac_word... " >&6; }
2941 if test "${ac_cv_prog_CC+set}" = set; then :
2942 $as_echo_n "(cached) " >&6
2944 if test -n "$CC"; then
2945 ac_cv_prog_CC
="$CC" # Let the user override the test.
2948 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2952 test -z "$as_dir" && as_dir
=.
2953 for ac_exec_ext
in '' $ac_executable_extensions; do
2954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2955 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2956 ac_prog_rejected
=yes
2960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 if test $ac_prog_rejected = yes; then
2968 # We found a bogon in the path, so make sure we never use it.
2969 set dummy
$ac_cv_prog_CC
2971 if test $# != 0; then
2972 # We chose a different compiler from the bogus one.
2973 # However, it has the same basename, so the bogon will be chosen
2974 # first if we set CC to just the basename; use the full file name.
2976 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2982 if test -n "$CC"; then
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2984 $as_echo "$CC" >&6; }
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987 $as_echo "no" >&6; }
2992 if test -z "$CC"; then
2993 if test -n "$ac_tool_prefix"; then
2994 for ac_prog
in cl.exe
2996 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2997 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999 $as_echo_n "checking for $ac_word... " >&6; }
3000 if test "${ac_cv_prog_CC+set}" = set; then :
3001 $as_echo_n "(cached) " >&6
3003 if test -n "$CC"; then
3004 ac_cv_prog_CC
="$CC" # Let the user override the test.
3006 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3010 test -z "$as_dir" && as_dir
=.
3011 for ac_exec_ext
in '' $ac_executable_extensions; do
3012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3013 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3024 if test -n "$CC"; then
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3026 $as_echo "$CC" >&6; }
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029 $as_echo "no" >&6; }
3033 test -n "$CC" && break
3036 if test -z "$CC"; then
3038 for ac_prog
in cl.exe
3040 # Extract the first word of "$ac_prog", so it can be a program name with args.
3041 set dummy
$ac_prog; ac_word
=$2
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043 $as_echo_n "checking for $ac_word... " >&6; }
3044 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3045 $as_echo_n "(cached) " >&6
3047 if test -n "$ac_ct_CC"; then
3048 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3050 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3054 test -z "$as_dir" && as_dir
=.
3055 for ac_exec_ext
in '' $ac_executable_extensions; do
3056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3057 ac_cv_prog_ac_ct_CC
="$ac_prog"
3058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3067 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3068 if test -n "$ac_ct_CC"; then
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3070 $as_echo "$ac_ct_CC" >&6; }
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 $as_echo "no" >&6; }
3077 test -n "$ac_ct_CC" && break
3080 if test "x$ac_ct_CC" = x
; then
3083 case $cross_compiling:$ac_tool_warned in
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3087 ac_tool_warned
=yes ;;
3096 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3098 as_fn_error
"no acceptable C compiler found in \$PATH
3099 See \`config.log' for more details." "$LINENO" 5; }
3101 # Provide some information about the compiler.
3102 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3105 for ac_option
in --version -v -V -qversion; do
3106 { { ac_try
="$ac_compiler $ac_option >&5"
3108 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3111 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3112 $as_echo "$ac_try_echo"; } >&5
3113 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3115 if test -s conftest.err; then
3117 ... rest of stderr output deleted ...
3118 10q' conftest.err >conftest.er1
3119 cat conftest.er1 >&5
3120 rm -f conftest.er1 conftest.err
3122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3123 test $ac_status = 0; }
3126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3127 /* end confdefs.h. */
3137 ac_clean_files_save=$ac_clean_files
3138 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3139 # Try to create an executable without -o first, disregard a.out.
3140 # It will help us diagnose broken compilers, and finding out an intuition
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3143 $as_echo_n "checking for C compiler default output file name... " >&6; }
3144 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3146 # The possible output files:
3147 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3150 for ac_file in $ac_files
3153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3154 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3159 if { { ac_try="$ac_link_default"
3161 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3162 *) ac_try_echo
=$ac_try;;
3164 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3165 $as_echo "$ac_try_echo"; } >&5
3166 (eval "$ac_link_default") 2>&5
3168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3169 test $ac_status = 0; }; then :
3170 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3171 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3172 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3173 # so that the user can short-circuit this test for compilers unknown to
3175 for ac_file
in $ac_files ''
3177 test -f "$ac_file" ||
continue
3179 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3182 # We found the default executable, but exeext='' is most
3186 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3188 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3190 # We set ac_cv_exeext here because the later test for it is not
3191 # safe: cross compilers may not add the suffix if given an `-o'
3192 # argument, so we may need to know it at that point already.
3193 # Even if this section looks crufty: it has the advantage of
3200 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3206 $as_echo "$ac_file" >&6; }
3207 if test -z "$ac_file"; then :
3208 $as_echo "$as_me: failed program was:" >&5
3209 sed 's/^/| /' conftest.
$ac_ext >&5
3211 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3213 { as_fn_set_status
77
3214 as_fn_error
"C compiler cannot create executables
3215 See \`config.log' for more details." "$LINENO" 5; }; }
3217 ac_exeext
=$ac_cv_exeext
3219 # Check that the compiler produces executables we can run. If not, either
3220 # the compiler is broken, or we cross compile.
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3222 $as_echo_n "checking whether the C compiler works... " >&6; }
3223 # If not cross compiling, check that we can run a simple program.
3224 if test "$cross_compiling" != yes; then
3225 if { ac_try
='./$ac_file'
3226 { { case "(($ac_try" in
3227 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3231 $as_echo "$ac_try_echo"; } >&5
3232 (eval "$ac_try") 2>&5
3234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3235 test $ac_status = 0; }; }; then
3238 if test "$cross_compiling" = maybe; then
3241 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3243 as_fn_error "cannot run C compiled programs.
3244 If you meant to cross compile
, use \
`--host'.
3245 See \`config.log
' for more details." "$LINENO" 5; }
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3250 $as_echo "yes" >&6; }
3252 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3253 ac_clean_files=$ac_clean_files_save
3254 # Check that the compiler produces executables we can run. If not, either
3255 # the compiler is broken, or we cross compile.
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3257 $as_echo_n "checking whether we are cross compiling... " >&6; }
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3259 $as_echo "$cross_compiling" >&6; }
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3262 $as_echo_n "checking for suffix of executables... " >&6; }
3263 if { { ac_try="$ac_link"
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3269 $as_echo "$ac_try_echo"; } >&5
3270 (eval "$ac_link") 2>&5
3272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3273 test $ac_status = 0; }; then :
3274 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3275 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3276 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3278 for ac_file
in conftest.exe conftest conftest.
*; do
3279 test -f "$ac_file" ||
continue
3281 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3282 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3288 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3290 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3291 See \`config.log' for more details." "$LINENO" 5; }
3293 rm -f conftest
$ac_cv_exeext
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3295 $as_echo "$ac_cv_exeext" >&6; }
3297 rm -f conftest.
$ac_ext
3298 EXEEXT
=$ac_cv_exeext
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3301 $as_echo_n "checking for suffix of object files... " >&6; }
3302 if test "${ac_cv_objext+set}" = set; then :
3303 $as_echo_n "(cached) " >&6
3305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3306 /* end confdefs.h. */
3316 rm -f conftest.o conftest.obj
3317 if { { ac_try
="$ac_compile"
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_compile") 2>&5
3326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3327 test $ac_status = 0; }; then :
3328 for ac_file in conftest.o conftest.obj conftest.*; do
3329 test -f "$ac_file" || continue;
3331 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3332 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3337 $as_echo "$as_me: failed program was:" >&5
3338 sed 's/^/| /' conftest.$ac_ext >&5
3340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3342 as_fn_error "cannot compute suffix of object files
: cannot compile
3343 See \
`config.log' for more details." "$LINENO" 5; }
3345 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3348 $as_echo "$ac_cv_objext" >&6; }
3349 OBJEXT=$ac_cv_objext
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3352 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3353 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3354 $as_echo_n "(cached) " >&6
3356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357 /* end confdefs.h. */
3370 if ac_fn_c_try_compile "$LINENO"; then :
3375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3376 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3380 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3381 if test $ac_compiler_gnu = yes; then
3386 ac_test_CFLAGS=${CFLAGS+set}
3387 ac_save_CFLAGS=$CFLAGS
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3389 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3390 if test "${ac_cv_prog_cc_g+set}" = set; then :
3391 $as_echo_n "(cached) " >&6
3393 ac_save_c_werror_flag=$ac_c_werror_flag
3394 ac_c_werror_flag=yes
3397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3398 /* end confdefs.h. */
3408 if ac_fn_c_try_compile "$LINENO"; then :
3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413 /* end confdefs.h. */
3423 if ac_fn_c_try_compile "$LINENO"; then :
3426 ac_c_werror_flag=$ac_save_c_werror_flag
3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429 /* end confdefs.h. */
3439 if ac_fn_c_try_compile "$LINENO"; then :
3442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3447 ac_c_werror_flag=$ac_save_c_werror_flag
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3450 $as_echo "$ac_cv_prog_cc_g" >&6; }
3451 if test "$ac_test_CFLAGS" = set; then
3452 CFLAGS=$ac_save_CFLAGS
3453 elif test $ac_cv_prog_cc_g = yes; then
3454 if test "$GCC" = yes; then
3460 if test "$GCC" = yes; then
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3467 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3468 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3469 $as_echo_n "(cached) " >&6
3471 ac_cv_prog_cc_c89=no
3473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474 /* end confdefs.h. */
3477 #include <sys/types.h>
3478 #include <sys/stat.h>
3479 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3480 struct buf { int x; };
3481 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3482 static char *e (p, i)
3488 static char *f (char * (*g) (char **, int), char **p, ...)
3493 s = g (p, va_arg (v,int));
3498 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3499 function prototypes and stuff, but not '\xHH' hex character constants.
3500 These don't provoke an error unfortunately, instead are silently treated
3501 as 'x'. The following induces an error, until -std is added to get
3502 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3503 array size at least. It's necessary to write '\x00'==0 to get something
3504 that's true only with -std. */
3505 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3507 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3508 inside strings and character constants. */
3510 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3512 int test (int i, double x);
3513 struct s1 {int (*f) (int a);};
3514 struct s2 {int (*f) (double a);};
3515 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3521 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3526 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3527 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3529 CC="$ac_save_CC $ac_arg"
3530 if ac_fn_c_try_compile "$LINENO"; then :
3531 ac_cv_prog_cc_c89=$ac_arg
3533 rm -f core conftest.err conftest.$ac_objext
3534 test "x$ac_cv_prog_cc_c89" != "xno" && break
3536 rm -f conftest.$ac_ext
3541 case "x$ac_cv_prog_cc_c89" in
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3544 $as_echo "none needed" >&6; } ;;
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3547 $as_echo "unsupported" >&6; } ;;
3549 CC="$CC $ac_cv_prog_cc_c89"
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3551 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3553 if test "x$ac_cv_prog_cc_c89" != xno; then :
3558 ac_cpp='$CPP $CPPFLAGS'
3559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3564 ac_cpp='$CXXCPP $CPPFLAGS'
3565 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3566 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3567 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3568 if test -z "$CXX"; then
3569 if test -n "$CCC"; then
3572 if test -n "$ac_tool_prefix"; then
3573 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3575 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3576 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3578 $as_echo_n "checking for $ac_word... " >&6; }
3579 if test "${ac_cv_prog_CXX+set}" = set; then :
3580 $as_echo_n "(cached) " >&6
3582 if test -n "$CXX"; then
3583 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589 test -z "$as_dir" && as_dir=.
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3592 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3603 if test -n "$CXX"; then
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3605 $as_echo "$CXX" >&6; }
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608 $as_echo "no" >&6; }
3612 test -n "$CXX" && break
3615 if test -z "$CXX"; then
3617 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3619 # Extract the first word of "$ac_prog", so it can be a program name with args.
3620 set dummy $ac_prog; ac_word=$2
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3622 $as_echo_n "checking for $ac_word... " >&6; }
3623 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3624 $as_echo_n "(cached) " >&6
3626 if test -n "$ac_ct_CXX"; then
3627 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633 test -z "$as_dir" && as_dir=.
3634 for ac_exec_ext in '' $ac_executable_extensions; do
3635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3636 ac_cv_prog_ac_ct_CXX="$ac_prog"
3637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3646 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3647 if test -n "$ac_ct_CXX"; then
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3649 $as_echo "$ac_ct_CXX" >&6; }
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3652 $as_echo "no" >&6; }
3656 test -n "$ac_ct_CXX" && break
3659 if test "x$ac_ct_CXX" = x; then
3662 case $cross_compiling:$ac_tool_warned in
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3666 ac_tool_warned=yes ;;
3674 # Provide some information about the compiler.
3675 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3678 for ac_option in --version -v -V -qversion; do
3679 { { ac_try="$ac_compiler $ac_option >&5"
3681 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3682 *) ac_try_echo
=$ac_try;;
3684 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3685 $as_echo "$ac_try_echo"; } >&5
3686 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3688 if test -s conftest.err
; then
3690 ... rest of stderr output deleted ...
3691 10q' conftest.err
>conftest.er1
3692 cat conftest.er1
>&5
3693 rm -f conftest.er1 conftest.err
3695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3696 test $ac_status = 0; }
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3700 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3701 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3702 $as_echo_n "(cached) " >&6
3704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3705 /* end confdefs.h. */
3718 if ac_fn_cxx_try_compile
"$LINENO"; then :
3723 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3724 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3728 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3729 if test $ac_compiler_gnu = yes; then
3734 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3735 ac_save_CXXFLAGS
=$CXXFLAGS
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3737 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3738 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3739 $as_echo_n "(cached) " >&6
3741 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3742 ac_cxx_werror_flag
=yes
3745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3746 /* end confdefs.h. */
3756 if ac_fn_cxx_try_compile
"$LINENO"; then :
3757 ac_cv_prog_cxx_g
=yes
3760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3761 /* end confdefs.h. */
3771 if ac_fn_cxx_try_compile
"$LINENO"; then :
3774 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h. */
3787 if ac_fn_cxx_try_compile
"$LINENO"; then :
3788 ac_cv_prog_cxx_g
=yes
3790 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3795 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3798 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3799 if test "$ac_test_CXXFLAGS" = set; then
3800 CXXFLAGS
=$ac_save_CXXFLAGS
3801 elif test $ac_cv_prog_cxx_g = yes; then
3802 if test "$GXX" = yes; then
3808 if test "$GXX" = yes; then
3815 ac_cpp
='$CPP $CPPFLAGS'
3816 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3817 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3818 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3823 ac_cpp
='$CPP $CPPFLAGS'
3824 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3825 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3826 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3828 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3829 # On Suns, sometimes $CPP names a directory.
3830 if test -n "$CPP" && test -d "$CPP"; then
3833 if test -z "$CPP"; then
3834 if test "${ac_cv_prog_CPP+set}" = set; then :
3835 $as_echo_n "(cached) " >&6
3837 # Double quotes because CPP needs to be expanded
3838 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3841 for ac_c_preproc_warn_flag
in '' yes
3843 # Use a header file that comes with gcc, so configuring glibc
3844 # with a fresh cross-compiler works.
3845 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3846 # <limits.h> exists even on freestanding compilers.
3847 # On the NeXT, cc -E runs the code through the compiler's parser,
3848 # not just through cpp. "Syntax error" is here to catch this case.
3849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3850 /* end confdefs.h. */
3852 # include <limits.h>
3854 # include <assert.h>
3858 if ac_fn_c_try_cpp
"$LINENO"; then :
3861 # Broken: fails on valid input.
3864 rm -f conftest.err conftest.
$ac_ext
3866 # OK, works on sane cases. Now check whether nonexistent headers
3867 # can be detected and how.
3868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3869 /* end confdefs.h. */
3870 #include <ac_nonexistent.h>
3872 if ac_fn_c_try_cpp
"$LINENO"; then :
3873 # Broken: success on invalid input.
3876 # Passes both tests.
3880 rm -f conftest.err conftest.
$ac_ext
3883 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3884 rm -f conftest.err conftest.
$ac_ext
3885 if $ac_preproc_ok; then :
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3898 $as_echo "$CPP" >&6; }
3900 for ac_c_preproc_warn_flag
in '' yes
3902 # Use a header file that comes with gcc, so configuring glibc
3903 # with a fresh cross-compiler works.
3904 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3905 # <limits.h> exists even on freestanding compilers.
3906 # On the NeXT, cc -E runs the code through the compiler's parser,
3907 # not just through cpp. "Syntax error" is here to catch this case.
3908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3909 /* end confdefs.h. */
3911 # include <limits.h>
3913 # include <assert.h>
3917 if ac_fn_c_try_cpp
"$LINENO"; then :
3920 # Broken: fails on valid input.
3923 rm -f conftest.err conftest.
$ac_ext
3925 # OK, works on sane cases. Now check whether nonexistent headers
3926 # can be detected and how.
3927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h. */
3929 #include <ac_nonexistent.h>
3931 if ac_fn_c_try_cpp
"$LINENO"; then :
3932 # Broken: success on invalid input.
3935 # Passes both tests.
3939 rm -f conftest.err conftest.
$ac_ext
3942 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3943 rm -f conftest.err conftest.
$ac_ext
3944 if $ac_preproc_ok; then :
3947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3949 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
3950 See \`config.log' for more details." "$LINENO" 5; }
3954 ac_cpp
='$CPP $CPPFLAGS'
3955 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3956 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3957 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3961 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3962 if test "${ac_cv_path_GREP+set}" = set; then :
3963 $as_echo_n "(cached) " >&6
3965 if test -z "$GREP"; then
3966 ac_path_GREP_found
=false
3967 # Loop through the user's path and test for each of PROGNAME-LIST
3968 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3969 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3972 test -z "$as_dir" && as_dir
=.
3973 for ac_prog
in grep ggrep
; do
3974 for ac_exec_ext
in '' $ac_executable_extensions; do
3975 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3976 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3977 # Check for GNU ac_path_GREP and select it if it is found.
3978 # Check for GNU $ac_path_GREP
3979 case `"$ac_path_GREP" --version 2>&1` in
3981 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3984 $as_echo_n 0123456789 >"conftest.in"
3987 cat "conftest.in" "conftest.in" >"conftest.tmp"
3988 mv "conftest.tmp" "conftest.in"
3989 cp "conftest.in" "conftest.nl"
3990 $as_echo 'GREP' >> "conftest.nl"
3991 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3992 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3993 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3994 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3995 # Best one so far, save it but keep looking for a better one
3996 ac_cv_path_GREP
="$ac_path_GREP"
3997 ac_path_GREP_max
=$ac_count
3999 # 10*(2^10) chars as input seems more than enough
4000 test $ac_count -gt 10 && break
4002 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4005 $ac_path_GREP_found && break 3
4010 if test -z "$ac_cv_path_GREP"; then
4011 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4014 ac_cv_path_GREP
=$GREP
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4019 $as_echo "$ac_cv_path_GREP" >&6; }
4020 GREP
="$ac_cv_path_GREP"
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4024 $as_echo_n "checking for egrep... " >&6; }
4025 if test "${ac_cv_path_EGREP+set}" = set; then :
4026 $as_echo_n "(cached) " >&6
4028 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4029 then ac_cv_path_EGREP
="$GREP -E"
4031 if test -z "$EGREP"; then
4032 ac_path_EGREP_found
=false
4033 # Loop through the user's path and test for each of PROGNAME-LIST
4034 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4035 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4038 test -z "$as_dir" && as_dir
=.
4039 for ac_prog
in egrep; do
4040 for ac_exec_ext
in '' $ac_executable_extensions; do
4041 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4042 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4043 # Check for GNU ac_path_EGREP and select it if it is found.
4044 # Check for GNU $ac_path_EGREP
4045 case `"$ac_path_EGREP" --version 2>&1` in
4047 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4050 $as_echo_n 0123456789 >"conftest.in"
4053 cat "conftest.in" "conftest.in" >"conftest.tmp"
4054 mv "conftest.tmp" "conftest.in"
4055 cp "conftest.in" "conftest.nl"
4056 $as_echo 'EGREP' >> "conftest.nl"
4057 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4058 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4059 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4060 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4061 # Best one so far, save it but keep looking for a better one
4062 ac_cv_path_EGREP
="$ac_path_EGREP"
4063 ac_path_EGREP_max
=$ac_count
4065 # 10*(2^10) chars as input seems more than enough
4066 test $ac_count -gt 10 && break
4068 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4071 $ac_path_EGREP_found && break 3
4076 if test -z "$ac_cv_path_EGREP"; then
4077 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4080 ac_cv_path_EGREP
=$EGREP
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4086 $as_echo "$ac_cv_path_EGREP" >&6; }
4087 EGREP
="$ac_cv_path_EGREP"
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4091 $as_echo_n "checking for ANSI C header files... " >&6; }
4092 if test "${ac_cv_header_stdc+set}" = set; then :
4093 $as_echo_n "(cached) " >&6
4095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4096 /* end confdefs.h. */
4110 if ac_fn_c_try_compile
"$LINENO"; then :
4111 ac_cv_header_stdc
=yes
4113 ac_cv_header_stdc
=no
4115 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4117 if test $ac_cv_header_stdc = yes; then
4118 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4125 $EGREP "memchr" >/dev
/null
2>&1; then :
4128 ac_cv_header_stdc
=no
4134 if test $ac_cv_header_stdc = yes; then
4135 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h. */
4141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4142 $EGREP "free" >/dev
/null
2>&1; then :
4145 ac_cv_header_stdc
=no
4151 if test $ac_cv_header_stdc = yes; then
4152 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4153 if test "$cross_compiling" = yes; then :
4156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4157 /* end confdefs.h. */
4160 #if ((' ' & 0x0FF) == 0x020)
4161 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4162 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4164 # define ISLOWER(c) \
4165 (('a' <= (c) && (c) <= 'i') \
4166 || ('j' <= (c) && (c) <= 'r') \
4167 || ('s' <= (c) && (c) <= 'z'))
4168 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4171 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4176 for (i = 0; i < 256; i++)
4177 if (XOR (islower (i), ISLOWER (i))
4178 || toupper (i) != TOUPPER (i))
4183 if ac_fn_c_try_run
"$LINENO"; then :
4186 ac_cv_header_stdc
=no
4188 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4189 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4195 $as_echo "$ac_cv_header_stdc" >&6; }
4196 if test $ac_cv_header_stdc = yes; then
4198 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4202 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4203 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4204 inttypes.h stdint.h unistd.h
4206 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4207 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4209 eval as_val
=\$
$as_ac_Header
4210 if test "x$as_val" = x
""yes; then :
4211 cat >>confdefs.h
<<_ACEOF
4212 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4221 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4222 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4229 if test "$MINIX" = yes; then
4231 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4234 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4237 $as_echo "#define _MINIX 1" >>confdefs.h
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4243 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4244 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4245 $as_echo_n "(cached) " >&6
4247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4248 /* end confdefs.h. */
4250 # define __EXTENSIONS__ 1
4251 $ac_includes_default
4260 if ac_fn_c_try_compile
"$LINENO"; then :
4261 ac_cv_safe_to_define___extensions__
=yes
4263 ac_cv_safe_to_define___extensions__
=no
4265 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4268 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4269 test $ac_cv_safe_to_define___extensions__ = yes &&
4270 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4272 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4274 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4276 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4278 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4282 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4283 for ac_t
in install-sh
install.sh shtool
; do
4284 if test -f "$ac_dir/$ac_t"; then
4286 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4291 if test -z "$ac_aux_dir"; then
4292 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4295 # These three variables are undocumented and unsupported,
4296 # and are intended to be withdrawn in a future Autoconf release.
4297 # They can cause serious problems if a builder's source tree is in a directory
4298 # whose full name contains unusual characters.
4299 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4300 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4301 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4304 # Make sure we can run config.sub.
4305 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4306 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4309 $as_echo_n "checking build system type... " >&6; }
4310 if test "${ac_cv_build+set}" = set; then :
4311 $as_echo_n "(cached) " >&6
4313 ac_build_alias
=$build_alias
4314 test "x$ac_build_alias" = x
&&
4315 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4316 test "x$ac_build_alias" = x
&&
4317 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4318 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4319 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4323 $as_echo "$ac_cv_build" >&6; }
4324 case $ac_cv_build in
4326 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4329 ac_save_IFS
=$IFS; IFS
='-'
4335 # Remember, the first character of IFS is used to create $*,
4336 # except with old shells:
4339 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4343 $as_echo_n "checking host system type... " >&6; }
4344 if test "${ac_cv_host+set}" = set; then :
4345 $as_echo_n "(cached) " >&6
4347 if test "x$host_alias" = x
; then
4348 ac_cv_host
=$ac_cv_build
4350 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4351 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4356 $as_echo "$ac_cv_host" >&6; }
4359 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4362 ac_save_IFS
=$IFS; IFS
='-'
4368 # Remember, the first character of IFS is used to create $*,
4369 # except with old shells:
4372 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4376 $as_echo_n "checking target system type... " >&6; }
4377 if test "${ac_cv_target+set}" = set; then :
4378 $as_echo_n "(cached) " >&6
4380 if test "x$target_alias" = x
; then
4381 ac_cv_target
=$ac_cv_host
4383 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4384 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4389 $as_echo "$ac_cv_target" >&6; }
4390 case $ac_cv_target in
4392 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4394 target
=$ac_cv_target
4395 ac_save_IFS
=$IFS; IFS
='-'
4401 # Remember, the first character of IFS is used to create $*,
4402 # except with old shells:
4405 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4408 # The aliases save the names the user supplied, while $host etc.
4409 # will get canonicalized.
4410 test -n "$target_alias" &&
4411 test "$program_prefix$program_suffix$program_transform_name" = \
4413 program_prefix
=${target_alias}-
4415 # The tests for host and target for $enable_largefile require
4420 # As the $enable_largefile decision depends on --enable-plugins we must set it
4421 # even in directories otherwise not depending on the $plugins option.
4425 for ac_header
in dlfcn.h
4427 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4429 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then :
4430 cat >>confdefs.h
<<_ACEOF
4431 #define HAVE_DLFCN_H 1
4438 for ac_header
in windows.h
4440 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4442 if test "x$ac_cv_header_windows_h" = x
""yes; then :
4443 cat >>confdefs.h
<<_ACEOF
4444 #define HAVE_WINDOWS_H 1
4452 # Check whether --enable-plugins was given.
4453 if test "${enable_plugins+set}" = set; then :
4454 enableval
=$enable_plugins; case "${enableval}" in
4457 if test "$maybe_plugins" != "yes" ; then
4458 as_fn_error
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4462 plugins
=$maybe_plugins
4466 if test "$plugins" = "yes"; then
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
4468 $as_echo_n "checking for library containing dlopen... " >&6; }
4469 if test "${ac_cv_search_dlopen+set}" = set; then :
4470 $as_echo_n "(cached) " >&6
4472 ac_func_search_save_LIBS
=$LIBS
4473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4474 /* end confdefs.h. */
4476 /* Override any GCC internal prototype to avoid an error.
4477 Use char because int might match the return type of a GCC
4478 builtin and then its argument prototype would still apply. */
4491 for ac_lib
in '' dl
; do
4492 if test -z "$ac_lib"; then
4493 ac_res
="none required"
4496 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4498 if ac_fn_c_try_link
"$LINENO"; then :
4499 ac_cv_search_dlopen
=$ac_res
4501 rm -f core conftest.err conftest.
$ac_objext \
4503 if test "${ac_cv_search_dlopen+set}" = set; then :
4507 if test "${ac_cv_search_dlopen+set}" = set; then :
4510 ac_cv_search_dlopen
=no
4513 LIBS
=$ac_func_search_save_LIBS
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
4516 $as_echo "$ac_cv_search_dlopen" >&6; }
4517 ac_res
=$ac_cv_search_dlopen
4518 if test "$ac_res" != no
; then :
4519 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4527 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4528 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4529 # are mutually exclusive; and without procfs support, the bfd/ elf module
4530 # cannot provide certain routines such as elfcore_write_prpsinfo
4531 # or elfcore_write_prstatus. So unless the user explicitly requested
4532 # large-file support through the --enable-largefile switch, disable
4533 # large-file support in favor of procfs support.
4534 test "${target}" = "${host}" -a "x$plugins" = xno \
4535 && : ${enable_largefile="no"}
4539 # Check whether --enable-largefile was given.
4540 if test "${enable_largefile+set}" = set; then :
4541 enableval
=$enable_largefile;
4544 if test "$enable_largefile" != no
; then
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4547 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4548 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4549 $as_echo_n "(cached) " >&6
4551 ac_cv_sys_largefile_CC
=no
4552 if test "$GCC" != yes; then
4555 # IRIX 6.2 and later do not support large files by default,
4556 # so use the C compiler's -n32 option if that helps.
4557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h. */
4559 #include <sys/types.h>
4560 /* Check that off_t can represent 2**63 - 1 correctly.
4561 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4562 since some C++ compilers masquerading as C compilers
4563 incorrectly reject 9223372036854775807. */
4564 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4565 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4566 && LARGE_OFF_T % 2147483647 == 1)
4576 if ac_fn_c_try_compile
"$LINENO"; then :
4579 rm -f core conftest.err conftest.
$ac_objext
4581 if ac_fn_c_try_compile
"$LINENO"; then :
4582 ac_cv_sys_largefile_CC
=' -n32'; break
4584 rm -f core conftest.err conftest.
$ac_objext
4588 rm -f conftest.
$ac_ext
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4592 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4593 if test "$ac_cv_sys_largefile_CC" != no
; then
4594 CC
=$CC$ac_cv_sys_largefile_CC
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4598 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4599 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4600 $as_echo_n "(cached) " >&6
4603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h. */
4605 #include <sys/types.h>
4606 /* Check that off_t can represent 2**63 - 1 correctly.
4607 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4608 since some C++ compilers masquerading as C compilers
4609 incorrectly reject 9223372036854775807. */
4610 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4611 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4612 && LARGE_OFF_T % 2147483647 == 1)
4622 if ac_fn_c_try_compile
"$LINENO"; then :
4623 ac_cv_sys_file_offset_bits
=no
; break
4625 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4627 /* end confdefs.h. */
4628 #define _FILE_OFFSET_BITS 64
4629 #include <sys/types.h>
4630 /* Check that off_t can represent 2**63 - 1 correctly.
4631 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4632 since some C++ compilers masquerading as C compilers
4633 incorrectly reject 9223372036854775807. */
4634 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4635 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4636 && LARGE_OFF_T % 2147483647 == 1)
4646 if ac_fn_c_try_compile
"$LINENO"; then :
4647 ac_cv_sys_file_offset_bits
=64; break
4649 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4650 ac_cv_sys_file_offset_bits
=unknown
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4655 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4656 case $ac_cv_sys_file_offset_bits in #(
4659 cat >>confdefs.h
<<_ACEOF
4660 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4665 if test $ac_cv_sys_file_offset_bits = unknown
; then
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4667 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4668 if test "${ac_cv_sys_large_files+set}" = set; then :
4669 $as_echo_n "(cached) " >&6
4672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4673 /* end confdefs.h. */
4674 #include <sys/types.h>
4675 /* Check that off_t can represent 2**63 - 1 correctly.
4676 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4677 since some C++ compilers masquerading as C compilers
4678 incorrectly reject 9223372036854775807. */
4679 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4680 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4681 && LARGE_OFF_T % 2147483647 == 1)
4691 if ac_fn_c_try_compile
"$LINENO"; then :
4692 ac_cv_sys_large_files
=no
; break
4694 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4697 #define _LARGE_FILES 1
4698 #include <sys/types.h>
4699 /* Check that off_t can represent 2**63 - 1 correctly.
4700 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4701 since some C++ compilers masquerading as C compilers
4702 incorrectly reject 9223372036854775807. */
4703 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4704 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4705 && LARGE_OFF_T % 2147483647 == 1)
4715 if ac_fn_c_try_compile
"$LINENO"; then :
4716 ac_cv_sys_large_files
=1; break
4718 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4719 ac_cv_sys_large_files
=unknown
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4724 $as_echo "$ac_cv_sys_large_files" >&6; }
4725 case $ac_cv_sys_large_files in #(
4728 cat >>confdefs.h
<<_ACEOF
4729 #define _LARGE_FILES $ac_cv_sys_large_files
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4742 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4743 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4744 $as_echo_n "(cached) " >&6
4746 am_cv_prog_cc_stdc
=no
4748 # Don't try gcc -ansi; that turns off useful extensions and
4749 # breaks some systems' header files.
4750 # AIX -qlanglvl=ansi
4751 # Ultrix and OSF/1 -std1
4752 # HP-UX 10.20 and later -Ae
4753 # HP-UX older versions -Aa -D_HPUX_SOURCE
4754 # SVR4 -Xc -D__EXTENSIONS__
4755 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4757 CC
="$ac_save_CC $ac_arg"
4758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4759 /* end confdefs.h. */
4762 #include <sys/types.h>
4763 #include <sys/stat.h>
4764 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4765 struct buf { int x; };
4766 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4767 static char *e (p, i)
4773 static char *f (char * (*g) (char **, int), char **p, ...)
4778 s = g (p, va_arg (v,int));
4782 int test (int i, double x);
4783 struct s1 {int (*f) (int a);};
4784 struct s2 {int (*f) (double a);};
4785 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4793 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4799 if ac_fn_c_try_compile
"$LINENO"; then :
4800 am_cv_prog_cc_stdc
="$ac_arg"; break
4802 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4808 if test -z "$am_cv_prog_cc_stdc"; then
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4810 $as_echo "none needed" >&6; }
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4813 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4815 case "x$am_cv_prog_cc_stdc" in
4817 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4820 # expand $ac_aux_dir to an absolute path
4821 am_aux_dir
=`cd $ac_aux_dir && pwd`
4823 if test x
"${install_sh}" != xset
; then
4826 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
4828 install_sh
="\${SHELL} $am_aux_dir/install-sh"
4832 # Installed binaries are usually stripped using `strip' when the user
4833 # run `make install-strip'. However `strip' might not be the right
4834 # tool to use in cross-compilation environments, therefore Automake
4835 # will honor the `STRIP' environment variable to overrule this program.
4836 if test "$cross_compiling" != no
; then
4837 if test -n "$ac_tool_prefix"; then
4838 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4839 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4841 $as_echo_n "checking for $ac_word... " >&6; }
4842 if test "${ac_cv_prog_STRIP+set}" = set; then :
4843 $as_echo_n "(cached) " >&6
4845 if test -n "$STRIP"; then
4846 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4848 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4852 test -z "$as_dir" && as_dir
=.
4853 for ac_exec_ext
in '' $ac_executable_extensions; do
4854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4855 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4865 STRIP
=$ac_cv_prog_STRIP
4866 if test -n "$STRIP"; then
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4868 $as_echo "$STRIP" >&6; }
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4871 $as_echo "no" >&6; }
4876 if test -z "$ac_cv_prog_STRIP"; then
4878 # Extract the first word of "strip", so it can be a program name with args.
4879 set dummy strip
; ac_word
=$2
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4881 $as_echo_n "checking for $ac_word... " >&6; }
4882 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4883 $as_echo_n "(cached) " >&6
4885 if test -n "$ac_ct_STRIP"; then
4886 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
4888 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4892 test -z "$as_dir" && as_dir
=.
4893 for ac_exec_ext
in '' $ac_executable_extensions; do
4894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4895 ac_cv_prog_ac_ct_STRIP
="strip"
4896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4905 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4906 if test -n "$ac_ct_STRIP"; then
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4908 $as_echo "$ac_ct_STRIP" >&6; }
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4911 $as_echo "no" >&6; }
4914 if test "x$ac_ct_STRIP" = x
; then
4917 case $cross_compiling:$ac_tool_warned in
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4921 ac_tool_warned
=yes ;;
4926 STRIP
="$ac_cv_prog_STRIP"
4930 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
4934 for ac_dir
in ..
"$srcdir"/..
; do
4935 for ac_t
in install-sh
install.sh shtool
; do
4936 if test -f "$ac_dir/$ac_t"; then
4938 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4943 if test -z "$ac_aux_dir"; then
4944 as_fn_error
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4947 # These three variables are undocumented and unsupported,
4948 # and are intended to be withdrawn in a future Autoconf release.
4949 # They can cause serious problems if a builder's source tree is in a directory
4950 # whose full name contains unusual characters.
4951 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4952 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4953 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4957 test "$program_prefix" != NONE
&&
4958 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4959 # Use a double $ so make ignores it.
4960 test "$program_suffix" != NONE
&&
4961 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4962 # Double any \ or $.
4963 # By default was `s,x,x', remove it if useless.
4964 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4965 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4968 # We require a C++11 compiler. Check if one is available, and if
4969 # necessary, set CXX_DIALECT to some -std=xxx switch.
4971 ax_cxx_compile_cxx11_required
=true
4973 ac_cpp
='$CXXCPP $CPPFLAGS'
4974 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4975 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4976 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
4980 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
4981 if test "${ax_cv_cxx_compile_cxx11+set}" = set; then :
4982 $as_echo_n "(cached) " >&6
4984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4985 /* end confdefs.h. */
4988 // If the compiler admits that it is not ready for C++11, why torture it?
4989 // Hopefully, this will speed up the test.
4993 #error "This is not a C++ compiler"
4995 #elif __cplusplus < 201103L
4997 #error "This is not a C++11 compiler"
5004 namespace test_static_assert
5007 template <typename T>
5010 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5015 namespace test_final_override
5023 struct Derived : public Base
5025 virtual void f() override {}
5030 namespace test_double_right_angle_brackets
5033 template < typename T >
5036 typedef check<void> single_type;
5037 typedef check<check<void>> double_type;
5038 typedef check<check<check<void>>> triple_type;
5039 typedef check<check<check<check<void>>>> quadruple_type;
5043 namespace test_decltype
5056 namespace test_type_deduction
5059 template < typename T1, typename T2 >
5062 static const bool value = false;
5065 template < typename T >
5066 struct is_same<T, T>
5068 static const bool value = true;
5071 template < typename T1, typename T2 >
5073 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5079 test(const int c, volatile int v)
5081 static_assert(is_same<int, decltype(0)>::value == true, "");
5082 static_assert(is_same<int, decltype(c)>::value == false, "");
5083 static_assert(is_same<int, decltype(v)>::value == false, "");
5086 auto sumi = ac + av + 'x';
5087 auto sumf = ac + av + 1.0;
5088 static_assert(is_same<int, decltype(ac)>::value == true, "");
5089 static_assert(is_same<int, decltype(av)>::value == true, "");
5090 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5091 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5092 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5093 return (sumf > 0.0) ? sumi : add(c, v);
5098 namespace test_noexcept
5101 int f() { return 0; }
5102 int g() noexcept { return 0; }
5104 static_assert(noexcept(f()) == false, "");
5105 static_assert(noexcept(g()) == true, "");
5109 namespace test_constexpr
5112 template < typename CharT >
5113 unsigned long constexpr
5114 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5116 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5119 template < typename CharT >
5120 unsigned long constexpr
5121 strlen_c(const CharT *const s) noexcept
5123 return strlen_c_r(s, 0UL);
5126 static_assert(strlen_c("") == 0UL, "");
5127 static_assert(strlen_c("1") == 1UL, "");
5128 static_assert(strlen_c("example") == 7UL, "");
5129 static_assert(strlen_c("another\0example") == 7UL, "");
5133 namespace test_rvalue_references
5139 static constexpr int value = N;
5142 answer<1> f(int&) { return answer<1>(); }
5143 answer<2> f(const int&) { return answer<2>(); }
5144 answer<3> f(int&&) { return answer<3>(); }
5151 static_assert(decltype(f(i))::value == 1, "");
5152 static_assert(decltype(f(c))::value == 2, "");
5153 static_assert(decltype(f(0))::value == 3, "");
5158 namespace test_uniform_initialization
5163 static const int zero {};
5164 static const int one {1};
5167 static_assert(test::zero == 0, "");
5168 static_assert(test::one == 1, "");
5172 namespace test_lambdas
5178 auto lambda1 = [](){};
5179 auto lambda2 = lambda1;
5187 auto a = [](int i, int j){ return i + j; }(1, 2);
5188 auto b = []() -> int { return '0'; }();
5189 auto c = [=](){ return a + b; }();
5190 auto d = [&](){ return c; }();
5191 auto e = [a, &b](int x) mutable {
5192 const auto identity = [](int y){ return y; };
5193 for (auto i = 0; i < a; ++i)
5195 return x + identity(a + b);
5197 return a + b + c + d + e;
5203 const auto nullary = [](){ return 0; };
5204 const auto unary = [](int x){ return x; };
5205 using nullary_t = decltype(nullary);
5206 using unary_t = decltype(unary);
5207 const auto higher1st = [](nullary_t f){ return f(); };
5208 const auto higher2nd = [unary](nullary_t f1){
5209 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5211 return higher1st(nullary) + higher2nd(nullary)(unary);
5216 namespace test_variadic_templates
5222 template <int N0, int... N1toN>
5223 struct sum<N0, N1toN...>
5225 static constexpr auto value = N0 + sum<N1toN...>::value;
5231 static constexpr auto value = 0;
5234 static_assert(sum<>::value == 0, "");
5235 static_assert(sum<1>::value == 1, "");
5236 static_assert(sum<23>::value == 23, "");
5237 static_assert(sum<1, 2>::value == 3, "");
5238 static_assert(sum<5, 5, 11>::value == 21, "");
5239 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5243 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5244 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5246 namespace test_template_alias_sfinae
5251 template<typename T>
5252 using member = typename T::member_type;
5254 template<typename T>
5257 template<typename T>
5258 void func(member<T>*) {}
5262 void test() { func<foo>(0); }
5266 } // namespace cxx11
5268 #endif // __cplusplus >= 201103L
5273 if ac_fn_cxx_try_compile
"$LINENO"; then :
5274 ax_cv_cxx_compile_cxx11
=yes
5276 ax_cv_cxx_compile_cxx11
=no
5278 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5281 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5282 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
5286 if test x
$ac_success = xno
; then
5287 for switch
in -std=gnu
++11 -std=gnu
++0x
; do
5288 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5290 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5291 if { as_var
=$cachevar; eval "test \"\${$as_var+set}\" = set"; }; then :
5292 $as_echo_n "(cached) " >&6
5296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5297 /* end confdefs.h. */
5300 // If the compiler admits that it is not ready for C++11, why torture it?
5301 // Hopefully, this will speed up the test.
5305 #error "This is not a C++ compiler"
5307 #elif __cplusplus < 201103L
5309 #error "This is not a C++11 compiler"
5316 namespace test_static_assert
5319 template <typename T>
5322 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5327 namespace test_final_override
5335 struct Derived : public Base
5337 virtual void f() override {}
5342 namespace test_double_right_angle_brackets
5345 template < typename T >
5348 typedef check<void> single_type;
5349 typedef check<check<void>> double_type;
5350 typedef check<check<check<void>>> triple_type;
5351 typedef check<check<check<check<void>>>> quadruple_type;
5355 namespace test_decltype
5368 namespace test_type_deduction
5371 template < typename T1, typename T2 >
5374 static const bool value = false;
5377 template < typename T >
5378 struct is_same<T, T>
5380 static const bool value = true;
5383 template < typename T1, typename T2 >
5385 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5391 test(const int c, volatile int v)
5393 static_assert(is_same<int, decltype(0)>::value == true, "");
5394 static_assert(is_same<int, decltype(c)>::value == false, "");
5395 static_assert(is_same<int, decltype(v)>::value == false, "");
5398 auto sumi = ac + av + 'x';
5399 auto sumf = ac + av + 1.0;
5400 static_assert(is_same<int, decltype(ac)>::value == true, "");
5401 static_assert(is_same<int, decltype(av)>::value == true, "");
5402 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5403 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5404 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5405 return (sumf > 0.0) ? sumi : add(c, v);
5410 namespace test_noexcept
5413 int f() { return 0; }
5414 int g() noexcept { return 0; }
5416 static_assert(noexcept(f()) == false, "");
5417 static_assert(noexcept(g()) == true, "");
5421 namespace test_constexpr
5424 template < typename CharT >
5425 unsigned long constexpr
5426 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5428 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5431 template < typename CharT >
5432 unsigned long constexpr
5433 strlen_c(const CharT *const s) noexcept
5435 return strlen_c_r(s, 0UL);
5438 static_assert(strlen_c("") == 0UL, "");
5439 static_assert(strlen_c("1") == 1UL, "");
5440 static_assert(strlen_c("example") == 7UL, "");
5441 static_assert(strlen_c("another\0example") == 7UL, "");
5445 namespace test_rvalue_references
5451 static constexpr int value = N;
5454 answer<1> f(int&) { return answer<1>(); }
5455 answer<2> f(const int&) { return answer<2>(); }
5456 answer<3> f(int&&) { return answer<3>(); }
5463 static_assert(decltype(f(i))::value == 1, "");
5464 static_assert(decltype(f(c))::value == 2, "");
5465 static_assert(decltype(f(0))::value == 3, "");
5470 namespace test_uniform_initialization
5475 static const int zero {};
5476 static const int one {1};
5479 static_assert(test::zero == 0, "");
5480 static_assert(test::one == 1, "");
5484 namespace test_lambdas
5490 auto lambda1 = [](){};
5491 auto lambda2 = lambda1;
5499 auto a = [](int i, int j){ return i + j; }(1, 2);
5500 auto b = []() -> int { return '0'; }();
5501 auto c = [=](){ return a + b; }();
5502 auto d = [&](){ return c; }();
5503 auto e = [a, &b](int x) mutable {
5504 const auto identity = [](int y){ return y; };
5505 for (auto i = 0; i < a; ++i)
5507 return x + identity(a + b);
5509 return a + b + c + d + e;
5515 const auto nullary = [](){ return 0; };
5516 const auto unary = [](int x){ return x; };
5517 using nullary_t = decltype(nullary);
5518 using unary_t = decltype(unary);
5519 const auto higher1st = [](nullary_t f){ return f(); };
5520 const auto higher2nd = [unary](nullary_t f1){
5521 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5523 return higher1st(nullary) + higher2nd(nullary)(unary);
5528 namespace test_variadic_templates
5534 template <int N0, int... N1toN>
5535 struct sum<N0, N1toN...>
5537 static constexpr auto value = N0 + sum<N1toN...>::value;
5543 static constexpr auto value = 0;
5546 static_assert(sum<>::value == 0, "");
5547 static_assert(sum<1>::value == 1, "");
5548 static_assert(sum<23>::value == 23, "");
5549 static_assert(sum<1, 2>::value == 3, "");
5550 static_assert(sum<5, 5, 11>::value == 21, "");
5551 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5555 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5556 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5558 namespace test_template_alias_sfinae
5563 template<typename T>
5564 using member = typename T::member_type;
5566 template<typename T>
5569 template<typename T>
5570 void func(member<T>*) {}
5574 void test() { func<foo>(0); }
5578 } // namespace cxx11
5580 #endif // __cplusplus >= 201103L
5585 if ac_fn_cxx_try_compile
"$LINENO"; then :
5590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5593 eval ac_res
=\$
$cachevar
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5595 $as_echo "$ac_res" >&6; }
5596 if eval test x\$
$cachevar = xyes
; then
5597 CXX_DIALECT
="$switch"
5604 if test x
$ac_success = xno
; then
5605 for switch
in -std=c
++11 -std=c
++0x
+std
=c
++11 "-h std=c++11"; do
5606 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5608 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5609 if { as_var
=$cachevar; eval "test \"\${$as_var+set}\" = set"; }; then :
5610 $as_echo_n "(cached) " >&6
5614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5615 /* end confdefs.h. */
5618 // If the compiler admits that it is not ready for C++11, why torture it?
5619 // Hopefully, this will speed up the test.
5623 #error "This is not a C++ compiler"
5625 #elif __cplusplus < 201103L
5627 #error "This is not a C++11 compiler"
5634 namespace test_static_assert
5637 template <typename T>
5640 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5645 namespace test_final_override
5653 struct Derived : public Base
5655 virtual void f() override {}
5660 namespace test_double_right_angle_brackets
5663 template < typename T >
5666 typedef check<void> single_type;
5667 typedef check<check<void>> double_type;
5668 typedef check<check<check<void>>> triple_type;
5669 typedef check<check<check<check<void>>>> quadruple_type;
5673 namespace test_decltype
5686 namespace test_type_deduction
5689 template < typename T1, typename T2 >
5692 static const bool value = false;
5695 template < typename T >
5696 struct is_same<T, T>
5698 static const bool value = true;
5701 template < typename T1, typename T2 >
5703 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5709 test(const int c, volatile int v)
5711 static_assert(is_same<int, decltype(0)>::value == true, "");
5712 static_assert(is_same<int, decltype(c)>::value == false, "");
5713 static_assert(is_same<int, decltype(v)>::value == false, "");
5716 auto sumi = ac + av + 'x';
5717 auto sumf = ac + av + 1.0;
5718 static_assert(is_same<int, decltype(ac)>::value == true, "");
5719 static_assert(is_same<int, decltype(av)>::value == true, "");
5720 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5721 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5722 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5723 return (sumf > 0.0) ? sumi : add(c, v);
5728 namespace test_noexcept
5731 int f() { return 0; }
5732 int g() noexcept { return 0; }
5734 static_assert(noexcept(f()) == false, "");
5735 static_assert(noexcept(g()) == true, "");
5739 namespace test_constexpr
5742 template < typename CharT >
5743 unsigned long constexpr
5744 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5746 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5749 template < typename CharT >
5750 unsigned long constexpr
5751 strlen_c(const CharT *const s) noexcept
5753 return strlen_c_r(s, 0UL);
5756 static_assert(strlen_c("") == 0UL, "");
5757 static_assert(strlen_c("1") == 1UL, "");
5758 static_assert(strlen_c("example") == 7UL, "");
5759 static_assert(strlen_c("another\0example") == 7UL, "");
5763 namespace test_rvalue_references
5769 static constexpr int value = N;
5772 answer<1> f(int&) { return answer<1>(); }
5773 answer<2> f(const int&) { return answer<2>(); }
5774 answer<3> f(int&&) { return answer<3>(); }
5781 static_assert(decltype(f(i))::value == 1, "");
5782 static_assert(decltype(f(c))::value == 2, "");
5783 static_assert(decltype(f(0))::value == 3, "");
5788 namespace test_uniform_initialization
5793 static const int zero {};
5794 static const int one {1};
5797 static_assert(test::zero == 0, "");
5798 static_assert(test::one == 1, "");
5802 namespace test_lambdas
5808 auto lambda1 = [](){};
5809 auto lambda2 = lambda1;
5817 auto a = [](int i, int j){ return i + j; }(1, 2);
5818 auto b = []() -> int { return '0'; }();
5819 auto c = [=](){ return a + b; }();
5820 auto d = [&](){ return c; }();
5821 auto e = [a, &b](int x) mutable {
5822 const auto identity = [](int y){ return y; };
5823 for (auto i = 0; i < a; ++i)
5825 return x + identity(a + b);
5827 return a + b + c + d + e;
5833 const auto nullary = [](){ return 0; };
5834 const auto unary = [](int x){ return x; };
5835 using nullary_t = decltype(nullary);
5836 using unary_t = decltype(unary);
5837 const auto higher1st = [](nullary_t f){ return f(); };
5838 const auto higher2nd = [unary](nullary_t f1){
5839 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5841 return higher1st(nullary) + higher2nd(nullary)(unary);
5846 namespace test_variadic_templates
5852 template <int N0, int... N1toN>
5853 struct sum<N0, N1toN...>
5855 static constexpr auto value = N0 + sum<N1toN...>::value;
5861 static constexpr auto value = 0;
5864 static_assert(sum<>::value == 0, "");
5865 static_assert(sum<1>::value == 1, "");
5866 static_assert(sum<23>::value == 23, "");
5867 static_assert(sum<1, 2>::value == 3, "");
5868 static_assert(sum<5, 5, 11>::value == 21, "");
5869 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5873 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5874 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5876 namespace test_template_alias_sfinae
5881 template<typename T>
5882 using member = typename T::member_type;
5884 template<typename T>
5887 template<typename T>
5888 void func(member<T>*) {}
5892 void test() { func<foo>(0); }
5896 } // namespace cxx11
5898 #endif // __cplusplus >= 201103L
5903 if ac_fn_cxx_try_compile
"$LINENO"; then :
5908 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5911 eval ac_res
=\$
$cachevar
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5913 $as_echo "$ac_res" >&6; }
5914 if eval test x\$
$cachevar = xyes
; then
5915 CXX_DIALECT
="$switch"
5922 ac_cpp
='$CPP $CPPFLAGS'
5923 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5924 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5925 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5927 if test x
$ax_cxx_compile_cxx11_required = xtrue
; then
5928 if test x
$ac_success = xno
; then
5929 as_fn_error
"*** A compiler with support for C++11 language features is required." "$LINENO" 5
5932 if test x
$ac_success = xno
; then
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
5935 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
5939 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
5946 # Dependency checking.
5947 rm -rf .tst
2>/dev
/null
5948 mkdir .tst
2>/dev
/null
5949 if test -d .tst
; then
5954 rmdir .tst
2>/dev
/null
5956 DEPDIR
="${am__leading_dot}deps"
5958 ac_config_commands
="$ac_config_commands depdir"
5961 # Create sub-directories for objects and dependencies.
5962 CONFIG_SRC_SUBDIR
="arch"
5965 ac_config_commands
="$ac_config_commands gdbdepdir"
5968 depcc
="$CC" am_compiler_list
=
5970 am_depcomp
=$ac_aux_dir/depcomp
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5972 $as_echo_n "checking dependency style of $depcc... " >&6; }
5973 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5974 $as_echo_n "(cached) " >&6
5976 if test -f "$am_depcomp"; then
5977 # We make a subdir and do the tests there. Otherwise we can end up
5978 # making bogus files that we don't know about and never remove. For
5979 # instance it was reported that on HP-UX the gcc test will end up
5980 # making a dummy file named `D' -- because `-MD' means `put the output
5983 # Copy depcomp to subdir because otherwise we won't find it if we're
5984 # using a relative directory.
5985 cp "$am_depcomp" conftest.dir
5987 # We will build objects and dependencies in a subdirectory because
5988 # it helps to detect inapplicable dependency modes. For instance
5989 # both Tru64's cc and ICC support -MD to output dependencies as a
5990 # side effect of compilation, but ICC will put the dependencies in
5991 # the current directory while Tru64 will put them in the object
5995 am_cv_CC_dependencies_compiler_type
=none
5996 if test "$am_compiler_list" = ""; then
5997 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5999 for depmode
in $am_compiler_list; do
6000 if test $depmode = none
; then break; fi
6002 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6003 # Setup a source with many dependencies, because some compilers
6004 # like to wrap large dependency lists on column 80 (with \), and
6005 # we should not choose a depcomp mode which is confused by this.
6007 # We need to recreate these files for each test, as the compiler may
6008 # overwrite some of them when testing with obscure command lines.
6009 # This happens at least with the AIX C compiler.
6011 for i
in 1 2 3 4 5 6; do
6012 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6013 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6014 # Solaris 8's {/usr,}/bin/sh.
6015 touch sub
/conftst
$i.h
6017 echo "include sub/conftest.Po" > confmf
6019 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6020 # mode. It turns out that the SunPro C++ compiler does not properly
6021 # handle `-M -o', and we need to detect this.
6022 depcmd
="depmode=$depmode \
6023 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6024 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6025 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6026 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
6027 if env
$depcmd > conftest.err
2>&1 &&
6028 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
6029 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
6030 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
6031 # icc doesn't choke on unknown options, it will just issue warnings
6032 # or remarks (even with -Werror). So we grep stderr for any message
6033 # that says an option was ignored or not supported.
6034 # When given -MP, icc 7.0 and 7.1 complain thusly:
6035 # icc: Command line warning: ignoring option '-M'; no argument required
6036 # The diagnosis changed in icc 8.0:
6037 # icc: Command line remark: option '-MP' not supported
6038 if (grep 'ignoring option' conftest.err ||
6039 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6040 am_cv_CC_dependencies_compiler_type
=$depmode
6041 $as_echo "$as_me:$LINENO: success" >&5
6045 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6046 sed -e 's/^/| /' < conftest.err
>&5
6052 am_cv_CC_dependencies_compiler_type
=none
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6057 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6058 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
6059 then as_fn_error
"no usable dependency style found" "$LINENO" 5
6060 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
6065 gnulib_extra_configure_args
=
6066 # If large-file support is disabled, make sure gnulib does the same.
6067 if test "$enable_largefile" = no
; then
6068 gnulib_extra_configure_args
="$gnulib_extra_configure_args --disable-largefile"
6071 # Configure gnulib. We need to build gnulib under some other
6072 # directory not "gnulib", to avoid the problem of both GDB and
6073 # GDBserver wanting to build it in the same directory, when building
6074 # in the source dir.
6077 in_build
="build-gnulib"
6078 in_extra_args
="$gnulib_extra_configure_args"
6080 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
6081 # so they do not pile up.
6082 ac_sub_configure_args
=
6084 eval "set x $ac_configure_args"
6088 if test -n "$ac_prev"; then
6093 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
6094 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
6095 ac_prev
=cache_file
;;
6096 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
6097 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
6100 --config-cache |
-C)
6102 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
6104 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
6106 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
6108 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
6110 --disable-option-checking)
6114 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6116 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
6120 # Always prepend --prefix to ensure using the same prefix
6121 # in subdir configurations.
6122 ac_arg
="--prefix=$prefix"
6124 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6126 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
6129 if test "$silent" = yes; then
6130 ac_sub_configure_args
="--silent $ac_sub_configure_args"
6133 # Always prepend --disable-option-checking to silence warnings, since
6134 # different subdirs can have different --enable and --with options.
6135 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
6140 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
6141 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
6142 $as_echo "$ac_msg" >&6
6143 as_dir
="$ac_dir"; as_fn_mkdir_p
6147 ac_srcdir
=$srcdir/$in_src ;;
6149 ac_srcdir
=..
/$srcdir/$in_src ;;
6154 ac_sub_configure
=$ac_srcdir/configure
6156 # Make the cache file name correct relative to the subdirectory.
6158 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
6160 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
6163 if test -n "$in_extra_args"; then
6164 # Add the extra args at the end.
6165 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
6168 { $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
6169 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6170 # The eval makes quoting arguments work.
6171 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
6172 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
6173 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
6189 # If we haven't got the data from the intl directory,
6190 # assume NLS is disabled.
6199 if test -f ..
/intl
/config.intl
; then
6200 . ..
/intl
/config.intl
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6203 $as_echo_n "checking whether NLS is requested... " >&6; }
6204 if test x
"$USE_NLS" != xyes
; then
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6206 $as_echo "no" >&6; }
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6209 $as_echo "yes" >&6; }
6211 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6215 $as_echo_n "checking for catalogs to be installed... " >&6; }
6216 # Look for .po and .gmo files in the source directory.
6219 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
6220 # If there aren't any .gmo files the shell will give us the
6221 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6223 case "$cat" in *\
**)
6226 # The quadruple backslash is collapsed to a double backslash
6227 # by the backticks, then collapsed again by the double quotes,
6228 # leaving us with one backslash in the sed expression (right
6229 # before the dot that mustn't act as a wildcard).
6230 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6231 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
6232 # The user is allowed to set LINGUAS to a list of languages to
6233 # install catalogs for. If it's empty that means "all of them."
6234 if test "x$LINGUAS" = x
; then
6235 CATALOGS
="$CATALOGS $cat"
6236 XLINGUAS
="$XLINGUAS $lang"
6238 case "$LINGUAS" in *$lang*)
6239 CATALOGS
="$CATALOGS $cat"
6240 XLINGUAS
="$XLINGUAS $lang"
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6247 $as_echo "$LINGUAS" >&6; }
6260 localedir
='${datadir}/locale'
6263 if test x
"$USE_NLS" = xyes
; then
6264 CONFIG_ALL
="$CONFIG_ALL all-po"
6265 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
6266 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
6267 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
6270 GNULIB
=build-gnulib
/import
6272 # For Makefile dependencies.
6274 if test x
"$STDINT_H" != x
; then
6275 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
6281 cat >>confdefs.h
<<_ACEOF
6282 #define PACKAGE "$PACKAGE"
6287 # We never need to detect it in this sub-configure.
6288 # But preserve it for config.status --recheck.
6292 MAKEINFO_EXTRA_FLAGS
=""
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
6294 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
6295 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
6296 $as_echo_n "(cached) " >&6
6298 echo '@clicksequence{a @click{} b}' >conftest.texinfo
6299 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
6300 gdb_cv_have_makeinfo_click
=yes
6302 gdb_cv_have_makeinfo_click
=no
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
6306 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
6307 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
6308 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
6314 # Check whether --with-separate-debug-dir was given.
6315 if test "${with_separate_debug_dir+set}" = set; then :
6316 withval
=$with_separate_debug_dir;
6319 DEBUGDIR
=${libdir}/debug
6323 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6324 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6325 ac_define_dir
=`eval echo $DEBUGDIR`
6326 ac_define_dir
=`eval echo $ac_define_dir`
6328 cat >>confdefs.h
<<_ACEOF
6329 #define DEBUGDIR "$ac_define_dir"
6335 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6336 if test "x$prefix" = xNONE
; then
6337 test_prefix
=/usr
/local
6342 test_prefix
=$exec_prefix
6345 case ${ac_define_dir} in
6346 "${test_prefix}"|
"${test_prefix}/"*|\
6347 '${exec_prefix}'|
'${exec_prefix}/'*)
6352 cat >>confdefs.h
<<_ACEOF
6353 #define DEBUGDIR_RELOCATABLE $value
6359 # We can't pass paths as command line arguments.
6360 # Mingw32 tries to be clever and will convert the paths for us.
6361 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
6362 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
6363 # This breaks GDB's relocatable path conversions since paths passed in
6364 # config.h would not get so translated, the path prefixes no longer match.
6366 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6367 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6368 ac_define_dir
=`eval echo $bindir`
6369 ac_define_dir
=`eval echo $ac_define_dir`
6371 cat >>confdefs.h
<<_ACEOF
6372 #define BINDIR "$ac_define_dir"
6377 # GDB's datadir relocation
6381 # Check whether --with-gdb-datadir was given.
6382 if test "${with_gdb_datadir+set}" = set; then :
6383 withval
=$with_gdb_datadir;
6384 GDB_DATADIR
=$withval
6386 GDB_DATADIR
=${datadir}/gdb
6390 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6391 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6392 ac_define_dir
=`eval echo $GDB_DATADIR`
6393 ac_define_dir
=`eval echo $ac_define_dir`
6395 cat >>confdefs.h
<<_ACEOF
6396 #define GDB_DATADIR "$ac_define_dir"
6402 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6403 if test "x$prefix" = xNONE
; then
6404 test_prefix
=/usr
/local
6409 test_prefix
=$exec_prefix
6412 case ${ac_define_dir} in
6413 "${test_prefix}"|
"${test_prefix}/"*|\
6414 '${exec_prefix}'|
'${exec_prefix}/'*)
6419 cat >>confdefs.h
<<_ACEOF
6420 #define GDB_DATADIR_RELOCATABLE $value
6427 # Check whether --with-relocated-sources was given.
6428 if test "${with_relocated_sources+set}" = set; then :
6429 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
6431 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6432 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6433 ac_define_dir
=`eval echo $reloc_srcdir`
6434 ac_define_dir
=`eval echo $ac_define_dir`
6436 cat >>confdefs.h
<<_ACEOF
6437 #define RELOC_SRCDIR "$ac_define_dir"
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
6446 $as_echo_n "checking for default auto-load directory... " >&6; }
6448 # Check whether --with-auto-load-dir was given.
6449 if test "${with_auto_load_dir+set}" = set; then :
6450 withval
=$with_auto_load_dir;
6452 with_auto_load_dir
='$debugdir:$datadir/auto-load'
6455 escape_dir
=`echo $with_auto_load_dir | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
6457 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6458 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6459 ac_define_dir
=`eval echo $escape_dir`
6460 ac_define_dir
=`eval echo $ac_define_dir`
6462 cat >>confdefs.h
<<_ACEOF
6463 #define AUTO_LOAD_DIR "$ac_define_dir"
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
6468 $as_echo "$with_auto_load_dir" >&6; }
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
6471 $as_echo_n "checking for default auto-load safe-path... " >&6; }
6473 # Check whether --with-auto-load-safe-path was given.
6474 if test "${with_auto_load_safe_path+set}" = set; then :
6475 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
6476 with_auto_load_safe_path
="/"
6479 with_auto_load_safe_path
="$with_auto_load_dir"
6482 escape_dir
=`echo $with_auto_load_safe_path | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
6484 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6485 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6486 ac_define_dir
=`eval echo $escape_dir`
6487 ac_define_dir
=`eval echo $ac_define_dir`
6489 cat >>confdefs.h
<<_ACEOF
6490 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
6495 $as_echo "$with_auto_load_safe_path" >&6; }
6499 subdirs
="$subdirs testsuite"
6502 # Check whether to support alternative target configurations
6503 # Check whether --enable-targets was given.
6504 if test "${enable_targets+set}" = set; then :
6505 enableval
=$enable_targets; case "${enableval}" in
6506 yes |
"") as_fn_error
"enable-targets option must specify target names or 'all'" "$LINENO" 5
6508 no
) enable_targets
= ;;
6509 *) enable_targets
=$enableval ;;
6514 # Check whether to enable 64-bit support on 32-bit hosts
6515 # Check whether --enable-64-bit-bfd was given.
6516 if test "${enable_64_bit_bfd+set}" = set; then :
6517 enableval
=$enable_64_bit_bfd; case "${enableval}" in
6520 *) as_fn_error
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
6526 # Provide defaults for some variables set by the per-host and per-target
6528 gdb_host_obs
=posix-hdep.o
6530 if test "${target}" = "${host}"; then
6536 .
$srcdir/configure.
host
6538 # Add in the common host objects.
6539 .
$srcdir/common
/common.
host
6540 gdb_host_obs
="$gdb_host_obs $common_host_obs"
6542 # Accumulate some settings from configure.tgt over all enabled targets
6546 HAVE_NATIVE_GCORE_TARGET
=
6548 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6550 if test "$targ_alias" = "all"; then
6553 # Canonicalize the secondary target names.
6554 result
=`$ac_config_sub $targ_alias 2>/dev/null`
6555 if test -n "$result"; then
6561 .
${srcdir}/configure.tgt
6563 if test -z "${gdb_target_obs}"; then :
6564 as_fn_error
"configuration ${targ} is unsupported." "$LINENO" 5
6567 # Target-specific object files
6568 for i
in ${gdb_target_obs}; do
6569 case " $TARGET_OBS " in
6572 TARGET_OBS
="$TARGET_OBS ${i}"
6577 # Check whether this target needs 64-bit CORE_ADDR
6578 if test x
${want64} = xfalse
; then
6579 .
${srcdir}/..
/bfd
/config.bfd
6582 # Check whether this target is native and supports gcore.
6583 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
6584 && $gdb_have_gcore; then
6585 HAVE_NATIVE_GCORE_TARGET
=1
6590 if test x
${all_targets} = xtrue
; then
6592 # We want all 64-bit targets if we either:
6593 # - run on a 64-bit host or
6594 # - already require 64-bit support for some other target or
6595 # - the --enable-64-bit-bfd option was supplied
6596 # Otherwise we only support all 32-bit targets.
6598 # NOTE: This test must be in sync with the corresponding
6601 if test x
${want64} = xfalse
; then
6602 # The cast to long int works around a bug in the HP C Compiler
6603 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6604 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6605 # This bug is HP SR number 8606223364.
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6607 $as_echo_n "checking size of long... " >&6; }
6608 if test "${ac_cv_sizeof_long+set}" = set; then :
6609 $as_echo_n "(cached) " >&6
6611 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6614 if test "$ac_cv_type_long" = yes; then
6615 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6617 { as_fn_set_status
77
6618 as_fn_error
"cannot compute sizeof (long)
6619 See \`config.log' for more details." "$LINENO" 5; }; }
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6627 $as_echo "$ac_cv_sizeof_long" >&6; }
6631 cat >>confdefs.h
<<_ACEOF
6632 #define SIZEOF_LONG $ac_cv_sizeof_long
6636 if test "x${ac_cv_sizeof_long}" = "x8"; then
6640 if test x
${want64} = xtrue
; then
6641 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
6643 TARGET_OBS
='$(ALL_TARGET_OBS)'
6650 # For other settings, only the main target counts.
6654 targ
=$target; .
${srcdir}/configure.tgt
6656 # Fetch the default architecture and default target vector from BFD.
6657 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
6659 # We only want the first architecture, so strip off the others if
6660 # there is more than one.
6661 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
6663 if test "x$targ_archs" != x
; then
6665 cat >>confdefs.h
<<_ACEOF
6666 #define DEFAULT_BFD_ARCH $targ_archs
6670 if test "x$targ_defvec" != x
; then
6672 cat >>confdefs.h
<<_ACEOF
6673 #define DEFAULT_BFD_VEC $targ_defvec
6678 # The CLI cannot be disabled yet, but may be in the future.
6681 # Check whether --enable-gdbcli was given.
6682 if test "${enable_gdbcli+set}" = set; then :
6683 enableval
=$enable_gdbcli; case $enableval in
6687 as_fn_error
"the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
6689 as_fn_error
"bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
6695 if test x
"$enable_gdbcli" = xyes
; then
6696 if test -d $srcdir/cli
; then
6697 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
6698 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
6699 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
6700 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
6705 # Check whether --enable-gdbmi was given.
6706 if test "${enable_gdbmi+set}" = set; then :
6707 enableval
=$enable_gdbmi; case $enableval in
6711 as_fn_error
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
6717 if test x
"$enable_gdbmi" = xyes
; then
6718 if test -d $srcdir/mi
; then
6719 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6720 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6721 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6722 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6727 # Check whether --enable-tui was given.
6728 if test "${enable_tui+set}" = set; then :
6729 enableval
=$enable_tui; case $enableval in
6733 as_fn_error
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
6741 # Check whether --enable-gdbtk was given.
6742 if test "${enable_gdbtk+set}" = set; then :
6743 enableval
=$enable_gdbtk; case $enableval in
6747 as_fn_error
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
6750 if test -d $srcdir/gdbtk
; then
6757 # We unconditionally disable gdbtk tests on selected platforms.
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
6761 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6765 # Libunwind support for ia64.
6768 # Check whether --with-libunwind-ia64 was given.
6769 if test "${with_libunwind_ia64+set}" = set; then :
6770 withval
=$with_libunwind_ia64;
6772 with_libunwind_ia64
=auto
6776 # Backward compatibility option.
6777 if test "${with_libunwind+set}" = set; then
6778 if test x
"$with_libunwind_ia64" != xauto
; then
6779 as_fn_error
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
6782 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
6783 with_libunwind_ia64
="$with_libunwind"
6786 case "$with_libunwind_ia64" in
6790 for ac_header
in libunwind-ia64.h
6792 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
6793 if test "x$ac_cv_header_libunwind_ia64_h" = x
""yes; then :
6794 cat >>confdefs.h
<<_ACEOF
6795 #define HAVE_LIBUNWIND_IA64_H 1
6802 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
6805 as_fn_error
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
6809 if test x
"$with_libunwind_ia64" = xyes
; then
6810 for ac_header
in libunwind-ia64.h
6812 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
6813 if test "x$ac_cv_header_libunwind_ia64_h" = x
""yes; then :
6814 cat >>confdefs.h
<<_ACEOF
6815 #define HAVE_LIBUNWIND_IA64_H 1
6822 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
6823 as_fn_error
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
6825 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
6826 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
6827 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
6832 # Check whether --with-curses was given.
6833 if test "${with_curses+set}" = set; then :
6834 withval
=$with_curses; opt_curses
=$withval
6839 if test "$opt_curses" = "yes"; then
6843 # Profiling support.
6844 # Check whether --enable-profiling was given.
6845 if test "${enable_profiling+set}" = set; then :
6846 enableval
=$enable_profiling; case $enableval in
6850 as_fn_error
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
6857 for ac_func
in monstartup _mcleanup
6859 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6860 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6861 eval as_val
=\$
$as_ac_var
6862 if test "x$as_val" = x
""yes; then :
6863 cat >>confdefs.h
<<_ACEOF
6864 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
6871 $as_echo_n "checking for _etext... " >&6; }
6872 if test "${ac_cv_var__etext+set}" = set; then :
6873 $as_echo_n "(cached) " >&6
6875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6876 /* end confdefs.h. */
6888 if ac_fn_c_try_link
"$LINENO"; then :
6889 ac_cv_var__etext
=yes
6893 rm -f core conftest.err conftest.
$ac_objext \
6894 conftest
$ac_exeext conftest.
$ac_ext
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
6897 $as_echo "$ac_cv_var__etext" >&6; }
6898 if test $ac_cv_var__etext = yes; then
6900 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
6904 $as_echo_n "checking for etext... " >&6; }
6905 if test "${ac_cv_var_etext+set}" = set; then :
6906 $as_echo_n "(cached) " >&6
6908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6909 /* end confdefs.h. */
6921 if ac_fn_c_try_link
"$LINENO"; then :
6926 rm -f core conftest.err conftest.
$ac_objext \
6927 conftest
$ac_exeext conftest.
$ac_ext
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
6930 $as_echo "$ac_cv_var_etext" >&6; }
6931 if test $ac_cv_var_etext = yes; then
6933 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
6936 if test "$enable_profiling" = yes ; then
6937 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
6938 as_fn_error
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
6941 OLD_CFLAGS
="$CFLAGS"
6942 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
6945 $as_echo_n "checking whether $CC supports -pg... " >&6; }
6946 if test "${ac_cv_cc_supports_pg+set}" = set; then :
6947 $as_echo_n "(cached) " >&6
6949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6950 /* end confdefs.h. */
6960 if ac_fn_c_try_compile
"$LINENO"; then :
6961 ac_cv_cc_supports_pg
=yes
6963 ac_cv_cc_supports_pg
=no
6965 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
6968 $as_echo "$ac_cv_cc_supports_pg" >&6; }
6970 if test $ac_cv_cc_supports_pg = no
; then
6971 as_fn_error
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
6974 CFLAGS
="$OLD_CFLAGS"
6979 # Check whether --with-pkgversion was given.
6980 if test "${with_pkgversion+set}" = set; then :
6981 withval
=$with_pkgversion; case "$withval" in
6982 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
6984 *) PKGVERSION
="($withval) " ;;
6995 # Check whether --with-bugurl was given.
6996 if test "${with_bugurl+set}" = set; then :
6997 withval
=$with_bugurl; case "$withval" in
6998 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7001 *) BUGURL
="$withval"
7005 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
7015 REPORT_BUGS_TO
="<$BUGURL>"
7016 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7023 cat >>confdefs.h
<<_ACEOF
7024 #define PKGVERSION "$PKGVERSION"
7028 cat >>confdefs.h
<<_ACEOF
7029 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7033 # --------------------- #
7034 # Checks for programs. #
7035 # --------------------- #
7037 for ac_prog
in gawk mawk nawk
awk
7039 # Extract the first word of "$ac_prog", so it can be a program name with args.
7040 set dummy
$ac_prog; ac_word
=$2
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7042 $as_echo_n "checking for $ac_word... " >&6; }
7043 if test "${ac_cv_prog_AWK+set}" = set; then :
7044 $as_echo_n "(cached) " >&6
7046 if test -n "$AWK"; then
7047 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7049 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7053 test -z "$as_dir" && as_dir
=.
7054 for ac_exec_ext
in '' $ac_executable_extensions; do
7055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7056 ac_cv_prog_AWK
="$ac_prog"
7057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7067 if test -n "$AWK"; then
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7069 $as_echo "$AWK" >&6; }
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7072 $as_echo "no" >&6; }
7076 test -n "$AWK" && break
7079 # Find a good install program. We prefer a C program (faster),
7080 # so one script is as good as another. But avoid the broken or
7081 # incompatible versions:
7082 # SysV /etc/install, /usr/sbin/install
7083 # SunOS /usr/etc/install
7084 # IRIX /sbin/install
7086 # AmigaOS /C/install, which installs bootblocks on floppy discs
7087 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7088 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7089 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7090 # OS/2's system install, which has a completely different semantic
7091 # ./install, which can be erroneously created by make from ./install.sh.
7092 # Reject install programs that cannot install multiple files.
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7094 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7095 if test -z "$INSTALL"; then
7096 if test "${ac_cv_path_install+set}" = set; then :
7097 $as_echo_n "(cached) " >&6
7099 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7103 test -z "$as_dir" && as_dir
=.
7104 # Account for people who put trailing slashes in PATH elements.
7105 case $as_dir/ in #((
7106 .
/ | .
// |
/[cC
]/* | \
7107 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7108 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
7111 # OSF1 and SCO ODT 3.0 have their own names for install.
7112 # Don't use installbsd from OSF since it installs stuff as root
7114 for ac_prog
in ginstall scoinst
install; do
7115 for ac_exec_ext
in '' $ac_executable_extensions; do
7116 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7117 if test $ac_prog = install &&
7118 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7119 # AIX install. It has an incompatible calling convention.
7121 elif test $ac_prog = install &&
7122 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7123 # program-specific install script used by HP pwplus--don't use.
7126 rm -rf conftest.one conftest.two conftest.dir
7127 echo one
> conftest.one
7128 echo two
> conftest.two
7130 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
7131 test -s conftest.one
&& test -s conftest.two
&&
7132 test -s conftest.dir
/conftest.one
&&
7133 test -s conftest.dir
/conftest.two
7135 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7148 rm -rf conftest.one conftest.two conftest.dir
7151 if test "${ac_cv_path_install+set}" = set; then
7152 INSTALL
=$ac_cv_path_install
7154 # As a last resort, use the slow shell script. Don't cache a
7155 # value for INSTALL within a source directory, because that will
7156 # break other packages using the cache if that directory is
7157 # removed, or if the value is a relative name.
7158 INSTALL
=$ac_install_sh
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7162 $as_echo "$INSTALL" >&6; }
7164 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7165 # It thinks the first close brace ends the variable substitution.
7166 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7168 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7170 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7173 $as_echo_n "checking whether ln -s works... " >&6; }
7175 if test "$LN_S" = "ln -s"; then
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7177 $as_echo "yes" >&6; }
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7180 $as_echo "no, using $LN_S" >&6; }
7183 if test -n "$ac_tool_prefix"; then
7184 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7185 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7187 $as_echo_n "checking for $ac_word... " >&6; }
7188 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7189 $as_echo_n "(cached) " >&6
7191 if test -n "$RANLIB"; then
7192 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7198 test -z "$as_dir" && as_dir
=.
7199 for ac_exec_ext
in '' $ac_executable_extensions; do
7200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7201 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7211 RANLIB
=$ac_cv_prog_RANLIB
7212 if test -n "$RANLIB"; then
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7214 $as_echo "$RANLIB" >&6; }
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7217 $as_echo "no" >&6; }
7222 if test -z "$ac_cv_prog_RANLIB"; then
7223 ac_ct_RANLIB
=$RANLIB
7224 # Extract the first word of "ranlib", so it can be a program name with args.
7225 set dummy ranlib
; ac_word
=$2
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7227 $as_echo_n "checking for $ac_word... " >&6; }
7228 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7229 $as_echo_n "(cached) " >&6
7231 if test -n "$ac_ct_RANLIB"; then
7232 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7234 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7238 test -z "$as_dir" && as_dir
=.
7239 for ac_exec_ext
in '' $ac_executable_extensions; do
7240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7241 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7251 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7252 if test -n "$ac_ct_RANLIB"; then
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7254 $as_echo "$ac_ct_RANLIB" >&6; }
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7257 $as_echo "no" >&6; }
7260 if test "x$ac_ct_RANLIB" = x
; then
7263 case $cross_compiling:$ac_tool_warned in
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7267 ac_tool_warned
=yes ;;
7269 RANLIB
=$ac_ct_RANLIB
7272 RANLIB
="$ac_cv_prog_RANLIB"
7275 for ac_prog
in 'bison -y' byacc
7277 # Extract the first word of "$ac_prog", so it can be a program name with args.
7278 set dummy
$ac_prog; ac_word
=$2
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7280 $as_echo_n "checking for $ac_word... " >&6; }
7281 if test "${ac_cv_prog_YACC+set}" = set; then :
7282 $as_echo_n "(cached) " >&6
7284 if test -n "$YACC"; then
7285 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
7287 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7291 test -z "$as_dir" && as_dir
=.
7292 for ac_exec_ext
in '' $ac_executable_extensions; do
7293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7294 ac_cv_prog_YACC
="$ac_prog"
7295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7304 YACC
=$ac_cv_prog_YACC
7305 if test -n "$YACC"; then
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7307 $as_echo "$YACC" >&6; }
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7310 $as_echo "no" >&6; }
7314 test -n "$YACC" && break
7316 test -n "$YACC" || YACC
="yacc"
7319 if test -n "$ac_tool_prefix"; then
7320 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7321 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7323 $as_echo_n "checking for $ac_word... " >&6; }
7324 if test "${ac_cv_prog_AR+set}" = set; then :
7325 $as_echo_n "(cached) " >&6
7327 if test -n "$AR"; then
7328 ac_cv_prog_AR
="$AR" # Let the user override the test.
7330 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7334 test -z "$as_dir" && as_dir
=.
7335 for ac_exec_ext
in '' $ac_executable_extensions; do
7336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7337 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7348 if test -n "$AR"; then
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7350 $as_echo "$AR" >&6; }
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7353 $as_echo "no" >&6; }
7358 if test -z "$ac_cv_prog_AR"; then
7360 # Extract the first word of "ar", so it can be a program name with args.
7361 set dummy
ar; ac_word
=$2
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7363 $as_echo_n "checking for $ac_word... " >&6; }
7364 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7365 $as_echo_n "(cached) " >&6
7367 if test -n "$ac_ct_AR"; then
7368 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7370 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7374 test -z "$as_dir" && as_dir
=.
7375 for ac_exec_ext
in '' $ac_executable_extensions; do
7376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7377 ac_cv_prog_ac_ct_AR
="ar"
7378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7387 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7388 if test -n "$ac_ct_AR"; then
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7390 $as_echo "$ac_ct_AR" >&6; }
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7393 $as_echo "no" >&6; }
7396 if test "x$ac_ct_AR" = x
; then
7399 case $cross_compiling:$ac_tool_warned in
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7403 ac_tool_warned
=yes ;;
7411 if test -n "$ac_tool_prefix"; then
7412 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7413 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7415 $as_echo_n "checking for $ac_word... " >&6; }
7416 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7417 $as_echo_n "(cached) " >&6
7419 if test -n "$DLLTOOL"; then
7420 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
7422 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7426 test -z "$as_dir" && as_dir
=.
7427 for ac_exec_ext
in '' $ac_executable_extensions; do
7428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7429 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
7430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7439 DLLTOOL
=$ac_cv_prog_DLLTOOL
7440 if test -n "$DLLTOOL"; then
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7442 $as_echo "$DLLTOOL" >&6; }
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7445 $as_echo "no" >&6; }
7450 if test -z "$ac_cv_prog_DLLTOOL"; then
7451 ac_ct_DLLTOOL
=$DLLTOOL
7452 # Extract the first word of "dlltool", so it can be a program name with args.
7453 set dummy dlltool
; ac_word
=$2
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7455 $as_echo_n "checking for $ac_word... " >&6; }
7456 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7457 $as_echo_n "(cached) " >&6
7459 if test -n "$ac_ct_DLLTOOL"; then
7460 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
7462 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7466 test -z "$as_dir" && as_dir
=.
7467 for ac_exec_ext
in '' $ac_executable_extensions; do
7468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7469 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
7470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7479 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
7480 if test -n "$ac_ct_DLLTOOL"; then
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7482 $as_echo "$ac_ct_DLLTOOL" >&6; }
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7485 $as_echo "no" >&6; }
7488 if test "x$ac_ct_DLLTOOL" = x
; then
7491 case $cross_compiling:$ac_tool_warned in
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7495 ac_tool_warned
=yes ;;
7497 DLLTOOL
=$ac_ct_DLLTOOL
7500 DLLTOOL
="$ac_cv_prog_DLLTOOL"
7503 if test -n "$ac_tool_prefix"; then
7504 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7505 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7507 $as_echo_n "checking for $ac_word... " >&6; }
7508 if test "${ac_cv_prog_WINDRES+set}" = set; then :
7509 $as_echo_n "(cached) " >&6
7511 if test -n "$WINDRES"; then
7512 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
7514 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7518 test -z "$as_dir" && as_dir
=.
7519 for ac_exec_ext
in '' $ac_executable_extensions; do
7520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7521 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
7522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7531 WINDRES
=$ac_cv_prog_WINDRES
7532 if test -n "$WINDRES"; then
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7534 $as_echo "$WINDRES" >&6; }
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7537 $as_echo "no" >&6; }
7542 if test -z "$ac_cv_prog_WINDRES"; then
7543 ac_ct_WINDRES
=$WINDRES
7544 # Extract the first word of "windres", so it can be a program name with args.
7545 set dummy windres
; ac_word
=$2
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7547 $as_echo_n "checking for $ac_word... " >&6; }
7548 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
7549 $as_echo_n "(cached) " >&6
7551 if test -n "$ac_ct_WINDRES"; then
7552 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
7554 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7558 test -z "$as_dir" && as_dir
=.
7559 for ac_exec_ext
in '' $ac_executable_extensions; do
7560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7561 ac_cv_prog_ac_ct_WINDRES
="windres"
7562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7571 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
7572 if test -n "$ac_ct_WINDRES"; then
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7574 $as_echo "$ac_ct_WINDRES" >&6; }
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7577 $as_echo "no" >&6; }
7580 if test "x$ac_ct_WINDRES" = x
; then
7583 case $cross_compiling:$ac_tool_warned in
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7587 ac_tool_warned
=yes ;;
7589 WINDRES
=$ac_ct_WINDRES
7592 WINDRES
="$ac_cv_prog_WINDRES"
7598 # Needed for GNU Hurd hosts.
7599 if test -n "$ac_tool_prefix"; then
7600 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7601 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7603 $as_echo_n "checking for $ac_word... " >&6; }
7604 if test "${ac_cv_prog_MIG+set}" = set; then :
7605 $as_echo_n "(cached) " >&6
7607 if test -n "$MIG"; then
7608 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
7610 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7614 test -z "$as_dir" && as_dir
=.
7615 for ac_exec_ext
in '' $ac_executable_extensions; do
7616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7617 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
7618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7628 if test -n "$MIG"; then
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
7630 $as_echo "$MIG" >&6; }
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7633 $as_echo "no" >&6; }
7638 if test -z "$ac_cv_prog_MIG"; then
7640 # Extract the first word of "mig", so it can be a program name with args.
7641 set dummy mig
; ac_word
=$2
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7643 $as_echo_n "checking for $ac_word... " >&6; }
7644 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
7645 $as_echo_n "(cached) " >&6
7647 if test -n "$ac_ct_MIG"; then
7648 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
7650 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7654 test -z "$as_dir" && as_dir
=.
7655 for ac_exec_ext
in '' $ac_executable_extensions; do
7656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7657 ac_cv_prog_ac_ct_MIG
="mig"
7658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7667 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
7668 if test -n "$ac_ct_MIG"; then
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
7670 $as_echo "$ac_ct_MIG" >&6; }
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7673 $as_echo "no" >&6; }
7676 if test "x$ac_ct_MIG" = x
; then
7679 case $cross_compiling:$ac_tool_warned in
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7683 ac_tool_warned
=yes ;;
7688 MIG
="$ac_cv_prog_MIG"
7691 if test x
"$MIG" = x
; then
7692 as_fn_error
"MIG not found but required for $host hosts" "$LINENO" 5
7697 # ---------------------- #
7698 # Checks for libraries. #
7699 # ---------------------- #
7701 # We might need to link with -lm; most simulators need it.
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7703 $as_echo_n "checking for main in -lm... " >&6; }
7704 if test "${ac_cv_lib_m_main+set}" = set; then :
7705 $as_echo_n "(cached) " >&6
7707 ac_check_lib_save_LIBS
=$LIBS
7709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7710 /* end confdefs.h. */
7721 if ac_fn_c_try_link
"$LINENO"; then :
7722 ac_cv_lib_m_main
=yes
7726 rm -f core conftest.err conftest.
$ac_objext \
7727 conftest
$ac_exeext conftest.
$ac_ext
7728 LIBS
=$ac_check_lib_save_LIBS
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7731 $as_echo "$ac_cv_lib_m_main" >&6; }
7732 if test "x$ac_cv_lib_m_main" = x
""yes; then :
7733 cat >>confdefs.h
<<_ACEOF
7742 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
7744 $as_echo_n "checking for library containing gethostbyname... " >&6; }
7745 if test "${ac_cv_search_gethostbyname+set}" = set; then :
7746 $as_echo_n "(cached) " >&6
7748 ac_func_search_save_LIBS
=$LIBS
7749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7750 /* end confdefs.h. */
7752 /* Override any GCC internal prototype to avoid an error.
7753 Use char because int might match the return type of a GCC
7754 builtin and then its argument prototype would still apply. */
7758 char gethostbyname ();
7762 return gethostbyname ();
7767 for ac_lib
in '' nsl
; do
7768 if test -z "$ac_lib"; then
7769 ac_res
="none required"
7772 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7774 if ac_fn_c_try_link
"$LINENO"; then :
7775 ac_cv_search_gethostbyname
=$ac_res
7777 rm -f core conftest.err conftest.
$ac_objext \
7779 if test "${ac_cv_search_gethostbyname+set}" = set; then :
7783 if test "${ac_cv_search_gethostbyname+set}" = set; then :
7786 ac_cv_search_gethostbyname
=no
7789 LIBS
=$ac_func_search_save_LIBS
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
7792 $as_echo "$ac_cv_search_gethostbyname" >&6; }
7793 ac_res
=$ac_cv_search_gethostbyname
7794 if test "$ac_res" != no
; then :
7795 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7800 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
7802 $as_echo_n "checking for library containing socketpair... " >&6; }
7803 if test "${ac_cv_search_socketpair+set}" = set; then :
7804 $as_echo_n "(cached) " >&6
7806 ac_func_search_save_LIBS
=$LIBS
7807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7808 /* end confdefs.h. */
7810 /* Override any GCC internal prototype to avoid an error.
7811 Use char because int might match the return type of a GCC
7812 builtin and then its argument prototype would still apply. */
7820 return socketpair ();
7825 for ac_lib
in '' socket
; do
7826 if test -z "$ac_lib"; then
7827 ac_res
="none required"
7830 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7832 if ac_fn_c_try_link
"$LINENO"; then :
7833 ac_cv_search_socketpair
=$ac_res
7835 rm -f core conftest.err conftest.
$ac_objext \
7837 if test "${ac_cv_search_socketpair+set}" = set; then :
7841 if test "${ac_cv_search_socketpair+set}" = set; then :
7844 ac_cv_search_socketpair
=no
7847 LIBS
=$ac_func_search_save_LIBS
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
7850 $as_echo "$ac_cv_search_socketpair" >&6; }
7851 ac_res
=$ac_cv_search_socketpair
7852 if test "$ac_res" != no
; then :
7853 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7858 # Link in zlib if we can. This allows us to read compressed debug sections.
7860 # Use the system's zlib library.
7861 zlibdir
="-L\$(top_builddir)/../zlib"
7862 zlibinc
="-I\$(top_srcdir)/../zlib"
7864 # Check whether --with-system-zlib was given.
7865 if test "${with_system_zlib+set}" = set; then :
7866 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
7877 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
7878 # On GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
7880 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
7881 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7882 $as_echo_n "(cached) " >&6
7884 ac_func_search_save_LIBS
=$LIBS
7885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7886 /* end confdefs.h. */
7888 /* Override any GCC internal prototype to avoid an error.
7889 Use char because int might match the return type of a GCC
7890 builtin and then its argument prototype would still apply. */
7894 char kinfo_getvmmap ();
7898 return kinfo_getvmmap ();
7903 for ac_lib
in '' util util-freebsd
; do
7904 if test -z "$ac_lib"; then
7905 ac_res
="none required"
7908 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7910 if ac_fn_c_try_link
"$LINENO"; then :
7911 ac_cv_search_kinfo_getvmmap
=$ac_res
7913 rm -f core conftest.err conftest.
$ac_objext \
7915 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7919 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7922 ac_cv_search_kinfo_getvmmap
=no
7925 LIBS
=$ac_func_search_save_LIBS
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
7928 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
7929 ac_res
=$ac_cv_search_kinfo_getvmmap
7930 if test "$ac_res" != no
; then :
7931 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7933 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
7939 if test "X$prefix" = "XNONE"; then
7940 acl_final_prefix
="$ac_default_prefix"
7942 acl_final_prefix
="$prefix"
7944 if test "X$exec_prefix" = "XNONE"; then
7945 acl_final_exec_prefix
='${prefix}'
7947 acl_final_exec_prefix
="$exec_prefix"
7949 acl_save_prefix
="$prefix"
7950 prefix
="$acl_final_prefix"
7951 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
7952 prefix
="$acl_save_prefix"
7955 # Check whether --with-gnu-ld was given.
7956 if test "${with_gnu_ld+set}" = set; then :
7957 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
7962 # Prepare PATH_SEPARATOR.
7963 # The user is always right.
7964 if test "${PATH_SEPARATOR+set}" != set; then
7965 echo "#! /bin/sh" >conf$$.sh
7966 echo "exit 0" >>conf$$.sh
7968 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7976 if test "$GCC" = yes; then
7977 # Check if gcc -print-prog-name=ld gives a path.
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7979 $as_echo_n "checking for ld used by GCC... " >&6; }
7982 # gcc leaves a trailing carriage return which upsets mingw
7983 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7985 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
7988 # Accept absolute paths.
7989 [\\/]* |
[A-Za-z
]:[\\/]*)
7990 re_direlt
='/[^/][^/]*/\.\./'
7991 # Canonicalize the path of ld
7992 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
7993 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
7994 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
7996 test -z "$LD" && LD
="$ac_prog"
7999 # If it fails, then pretend we aren't using GCC.
8003 # If it is relative, then search for the first ld in PATH.
8007 elif test "$with_gnu_ld" = yes; then
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8009 $as_echo_n "checking for GNU ld... " >&6; }
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8012 $as_echo_n "checking for non-GNU ld... " >&6; }
8014 if test "${acl_cv_path_LD+set}" = set; then :
8015 $as_echo_n "(cached) " >&6
8017 if test -z "$LD"; then
8018 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8019 for ac_dir
in $PATH; do
8020 test -z "$ac_dir" && ac_dir
=.
8021 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8022 acl_cv_path_LD
="$ac_dir/$ac_prog"
8023 # Check to see if the program is GNU ld. I'd rather use --version,
8024 # but apparently some GNU ld's only accept -v.
8025 # Break only if it was the GNU/non-GNU ld that we prefer.
8026 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
8027 test "$with_gnu_ld" != no
&& break
8029 test "$with_gnu_ld" != yes && break
8035 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8039 LD
="$acl_cv_path_LD"
8040 if test -n "$LD"; then
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8042 $as_echo "$LD" >&6; }
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8045 $as_echo "no" >&6; }
8047 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8049 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8050 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
8051 $as_echo_n "(cached) " >&6
8053 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8054 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8055 acl_cv_prog_gnu_ld
=yes
8057 acl_cv_prog_gnu_ld
=no
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8061 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8062 with_gnu_ld
=$acl_cv_prog_gnu_ld
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8067 $as_echo_n "checking for shared library run path origin... " >&6; }
8068 if test "${acl_cv_rpath+set}" = set; then :
8069 $as_echo_n "(cached) " >&6
8072 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8073 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8080 $as_echo "$acl_cv_rpath" >&6; }
8082 libext
="$acl_cv_libext"
8083 shlibext
="$acl_cv_shlibext"
8084 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8085 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8086 hardcode_direct
="$acl_cv_hardcode_direct"
8087 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8088 # Check whether --enable-rpath was given.
8089 if test "${enable_rpath+set}" = set; then :
8090 enableval
=$enable_rpath; :
8104 acl_save_prefix
="$prefix"
8105 prefix
="$acl_final_prefix"
8106 acl_save_exec_prefix
="$exec_prefix"
8107 exec_prefix
="$acl_final_exec_prefix"
8109 eval additional_includedir
=\"$includedir\"
8110 eval additional_libdir
=\"$libdir\"
8112 exec_prefix
="$acl_save_exec_prefix"
8113 prefix
="$acl_save_prefix"
8116 # Check whether --with-libiconv-prefix was given.
8117 if test "${with_libiconv_prefix+set}" = set; then :
8118 withval
=$with_libiconv_prefix;
8119 if test "X$withval" = "Xno"; then
8122 if test "X$withval" = "X"; then
8124 acl_save_prefix
="$prefix"
8125 prefix
="$acl_final_prefix"
8126 acl_save_exec_prefix
="$exec_prefix"
8127 exec_prefix
="$acl_final_exec_prefix"
8129 eval additional_includedir
=\"$includedir\"
8130 eval additional_libdir
=\"$libdir\"
8132 exec_prefix
="$acl_save_exec_prefix"
8133 prefix
="$acl_save_prefix"
8136 additional_includedir
="$withval/include"
8137 additional_libdir
="$withval/lib"
8148 names_already_handled
=
8149 names_next_round
='iconv '
8150 while test -n "$names_next_round"; do
8151 names_this_round
="$names_next_round"
8153 for name
in $names_this_round; do
8155 for n
in $names_already_handled; do
8156 if test "$n" = "$name"; then
8161 if test -z "$already_handled"; then
8162 names_already_handled
="$names_already_handled $name"
8163 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8164 eval value
=\"\
$HAVE_LIB$uppername\"
8165 if test -n "$value"; then
8166 if test "$value" = yes; then
8167 eval value
=\"\
$LIB$uppername\"
8168 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
8169 eval value
=\"\
$LTLIB$uppername\"
8170 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
8179 if test $use_additional = yes; then
8180 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8181 found_dir
="$additional_libdir"
8182 found_so
="$additional_libdir/lib$name.$shlibext"
8183 if test -f "$additional_libdir/lib$name.la"; then
8184 found_la
="$additional_libdir/lib$name.la"
8187 if test -f "$additional_libdir/lib$name.$libext"; then
8188 found_dir
="$additional_libdir"
8189 found_a
="$additional_libdir/lib$name.$libext"
8190 if test -f "$additional_libdir/lib$name.la"; then
8191 found_la
="$additional_libdir/lib$name.la"
8196 if test "X$found_dir" = "X"; then
8197 for x
in $LDFLAGS $LTLIBICONV; do
8199 acl_save_prefix
="$prefix"
8200 prefix
="$acl_final_prefix"
8201 acl_save_exec_prefix
="$exec_prefix"
8202 exec_prefix
="$acl_final_exec_prefix"
8204 exec_prefix
="$acl_save_exec_prefix"
8205 prefix
="$acl_save_prefix"
8209 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8210 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8212 found_so
="$dir/lib$name.$shlibext"
8213 if test -f "$dir/lib$name.la"; then
8214 found_la
="$dir/lib$name.la"
8217 if test -f "$dir/lib$name.$libext"; then
8219 found_a
="$dir/lib$name.$libext"
8220 if test -f "$dir/lib$name.la"; then
8221 found_la
="$dir/lib$name.la"
8227 if test "X$found_dir" != "X"; then
8232 if test "X$found_dir" != "X"; then
8233 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8234 if test "X$found_so" != "X"; then
8235 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8236 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8239 for x
in $ltrpathdirs; do
8240 if test "X$x" = "X$found_dir"; then
8245 if test -z "$haveit"; then
8246 ltrpathdirs
="$ltrpathdirs $found_dir"
8248 if test "$hardcode_direct" = yes; then
8249 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8251 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8252 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8254 for x
in $rpathdirs; do
8255 if test "X$x" = "X$found_dir"; then
8260 if test -z "$haveit"; then
8261 rpathdirs
="$rpathdirs $found_dir"
8265 for x
in $LDFLAGS $LIBICONV; do
8267 acl_save_prefix
="$prefix"
8268 prefix
="$acl_final_prefix"
8269 acl_save_exec_prefix
="$exec_prefix"
8270 exec_prefix
="$acl_final_exec_prefix"
8272 exec_prefix
="$acl_save_exec_prefix"
8273 prefix
="$acl_save_prefix"
8275 if test "X$x" = "X-L$found_dir"; then
8280 if test -z "$haveit"; then
8281 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8283 if test "$hardcode_minus_L" != no
; then
8284 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8286 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8292 if test "X$found_a" != "X"; then
8293 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
8295 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8298 additional_includedir
=
8299 case "$found_dir" in
8301 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8302 additional_includedir
="$basedir/include"
8305 if test "X$additional_includedir" != "X"; then
8306 if test "X$additional_includedir" != "X/usr/include"; then
8308 if test "X$additional_includedir" = "X/usr/local/include"; then
8309 if test -n "$GCC"; then
8311 linux
*) haveit
=yes;;
8315 if test -z "$haveit"; then
8316 for x
in $CPPFLAGS $INCICONV; do
8318 acl_save_prefix
="$prefix"
8319 prefix
="$acl_final_prefix"
8320 acl_save_exec_prefix
="$exec_prefix"
8321 exec_prefix
="$acl_final_exec_prefix"
8323 exec_prefix
="$acl_save_exec_prefix"
8324 prefix
="$acl_save_prefix"
8326 if test "X$x" = "X-I$additional_includedir"; then
8331 if test -z "$haveit"; then
8332 if test -d "$additional_includedir"; then
8333 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8339 if test -n "$found_la"; then
8340 save_libdir
="$libdir"
8342 */* |
*\\*) .
"$found_la" ;;
8343 *) .
"./$found_la" ;;
8345 libdir
="$save_libdir"
8346 for dep
in $dependency_libs; do
8349 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8350 if test "X$additional_libdir" != "X/usr/lib"; then
8352 if test "X$additional_libdir" = "X/usr/local/lib"; then
8353 if test -n "$GCC"; then
8355 linux
*) haveit
=yes;;
8359 if test -z "$haveit"; then
8361 for x
in $LDFLAGS $LIBICONV; 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"
8371 if test "X$x" = "X-L$additional_libdir"; then
8376 if test -z "$haveit"; then
8377 if test -d "$additional_libdir"; then
8378 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8382 for x
in $LDFLAGS $LTLIBICONV; do
8384 acl_save_prefix
="$prefix"
8385 prefix
="$acl_final_prefix"
8386 acl_save_exec_prefix
="$exec_prefix"
8387 exec_prefix
="$acl_final_exec_prefix"
8389 exec_prefix
="$acl_save_exec_prefix"
8390 prefix
="$acl_save_prefix"
8392 if test "X$x" = "X-L$additional_libdir"; then
8397 if test -z "$haveit"; then
8398 if test -d "$additional_libdir"; then
8399 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8406 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8407 if test "$enable_rpath" != no
; then
8409 for x
in $rpathdirs; do
8410 if test "X$x" = "X$dir"; then
8415 if test -z "$haveit"; then
8416 rpathdirs
="$rpathdirs $dir"
8419 for x
in $ltrpathdirs; do
8420 if test "X$x" = "X$dir"; then
8425 if test -z "$haveit"; then
8426 ltrpathdirs
="$ltrpathdirs $dir"
8431 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8434 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8437 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
8438 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8444 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8445 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8451 if test "X$rpathdirs" != "X"; then
8452 if test -n "$hardcode_libdir_separator"; then
8454 for found_dir
in $rpathdirs; do
8455 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8457 acl_save_libdir
="$libdir"
8459 eval flag
=\"$hardcode_libdir_flag_spec\"
8460 libdir
="$acl_save_libdir"
8461 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8463 for found_dir
in $rpathdirs; do
8464 acl_save_libdir
="$libdir"
8466 eval flag
=\"$hardcode_libdir_flag_spec\"
8467 libdir
="$acl_save_libdir"
8468 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8472 if test "X$ltrpathdirs" != "X"; then
8473 for found_dir
in $ltrpathdirs; do
8474 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8485 $as_echo_n "checking for iconv... " >&6; }
8486 if test "${am_cv_func_iconv+set}" = set; then :
8487 $as_echo_n "(cached) " >&6
8490 am_cv_func_iconv
="no, consider installing GNU libiconv"
8492 am_save_CPPFLAGS
="$CPPFLAGS"
8493 CPPFLAGS
="$CPPFLAGS $INCICONV"
8494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8495 /* end confdefs.h. */
8501 iconv_t cd = iconv_open("","");
8502 iconv(cd,NULL,NULL,NULL,NULL);
8508 if ac_fn_c_try_link
"$LINENO"; then :
8509 am_cv_func_iconv
=yes
8511 rm -f core conftest.err conftest.
$ac_objext \
8512 conftest
$ac_exeext conftest.
$ac_ext
8513 CPPFLAGS
="$am_save_CPPFLAGS"
8515 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
8516 for _libs
in .libs _libs
; do
8517 am_save_CPPFLAGS
="$CPPFLAGS"
8518 am_save_LIBS
="$LIBS"
8519 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
8520 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
8521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8522 /* end confdefs.h. */
8528 iconv_t cd = iconv_open("","");
8529 iconv(cd,NULL,NULL,NULL,NULL);
8535 if ac_fn_c_try_link
"$LINENO"; then :
8536 INCICONV
="-I../libiconv/include"
8537 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
8538 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
8540 am_cv_func_iconv
=yes
8542 rm -f core conftest.err conftest.
$ac_objext \
8543 conftest
$ac_exeext conftest.
$ac_ext
8544 CPPFLAGS
="$am_save_CPPFLAGS"
8545 LIBS
="$am_save_LIBS"
8546 if test "$am_cv_func_iconv" = "yes"; then
8552 if test "$am_cv_func_iconv" != yes; then
8553 am_save_CPPFLAGS
="$CPPFLAGS"
8554 am_save_LIBS
="$LIBS"
8555 CPPFLAGS
="$LIBS $INCICONV"
8556 LIBS
="$LIBS $LIBICONV"
8557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8558 /* end confdefs.h. */
8564 iconv_t cd = iconv_open("","");
8565 iconv(cd,NULL,NULL,NULL,NULL);
8571 if ac_fn_c_try_link
"$LINENO"; then :
8573 am_cv_func_iconv
=yes
8575 rm -f core conftest.err conftest.
$ac_objext \
8576 conftest
$ac_exeext conftest.
$ac_ext
8577 CPPFLAGS
="$am_save_CPPFLAGS"
8578 LIBS
="$am_save_LIBS"
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8583 $as_echo "$am_cv_func_iconv" >&6; }
8584 if test "$am_cv_func_iconv" = yes; then
8586 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8589 if test "$am_cv_lib_iconv" = yes; then
8591 for element
in $INCICONV; do
8593 for x
in $CPPFLAGS; do
8595 acl_save_prefix
="$prefix"
8596 prefix
="$acl_final_prefix"
8597 acl_save_exec_prefix
="$exec_prefix"
8598 exec_prefix
="$acl_final_exec_prefix"
8600 exec_prefix
="$acl_save_exec_prefix"
8601 prefix
="$acl_save_prefix"
8603 if test "X$x" = "X$element"; then
8608 if test -z "$haveit"; then
8609 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8614 $as_echo_n "checking how to link with libiconv... " >&6; }
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8616 $as_echo "$LIBICONV" >&6; }
8624 if test "$am_cv_func_iconv" = yes; then
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8626 $as_echo_n "checking for iconv declaration... " >&6; }
8627 if test "${am_cv_proto_iconv+set}" = set; then :
8628 $as_echo_n "(cached) " >&6
8631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8632 /* end confdefs.h. */
8640 #if defined(__STDC__) || defined(__cplusplus)
8641 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8654 if ac_fn_c_try_compile
"$LINENO"; then :
8655 am_cv_proto_iconv_arg1
=""
8657 am_cv_proto_iconv_arg1
="const"
8659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8660 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);"
8663 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8665 }$am_cv_proto_iconv" >&5
8667 }$am_cv_proto_iconv" >&6; }
8669 cat >>confdefs.h
<<_ACEOF
8670 #define ICONV_CONST $am_cv_proto_iconv_arg1
8676 # GDB may fork/exec the iconv program to get the list of supported character
8677 # sets. Allow the user to specify where to find it.
8678 # There are several factors affecting the choice of option name:
8679 # - There is already --with-libiconv-prefix but we can't use it, it specifies
8680 # the build-time location of libiconv files.
8681 # - The program we need to find is iconv, which comes with glibc. The user
8682 # doesn't necessarily have libiconv installed. Therefore naming this
8683 # --with-libiconv-foo feels wrong.
8684 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
8685 # defined to work on directories not files (though it really doesn't know
8687 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
8688 # with --with-libiconv-prefix.
8689 # Putting these together is why the option name is --with-iconv-bin.
8692 # Check whether --with-iconv-bin was given.
8693 if test "${with_iconv_bin+set}" = set; then :
8694 withval
=$with_iconv_bin; iconv_bin
="${withval}"
8696 cat >>confdefs.h
<<_ACEOF
8697 #define ICONV_BIN "${iconv_bin}"
8701 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
8702 if test "x$prefix" = xNONE
; then
8703 test_prefix
=/usr
/local
8708 test_prefix
=$exec_prefix
8711 case ${iconv_bin} in
8712 "${test_prefix}"|
"${test_prefix}/"*|\
8713 '${exec_prefix}'|
'${exec_prefix}/'*)
8718 cat >>confdefs.h
<<_ACEOF
8719 #define ICONV_BIN_RELOCATABLE $value
8727 # For the TUI, we need enhanced curses functionality.
8728 if test x
"$enable_tui" != xno
; then
8733 if test x
"$prefer_curses" = xyes
; then
8734 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8735 # curses library because the latter might not provide all the
8736 # functionality we need. However, this leads to problems on systems
8737 # where the linker searches /usr/local/lib, but the compiler doesn't
8738 # search /usr/local/include, if ncurses is installed in /usr/local. A
8739 # default installation of ncurses on alpha*-dec-osf* will lead to such
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
8742 $as_echo_n "checking for library containing waddstr... " >&6; }
8743 if test "${ac_cv_search_waddstr+set}" = set; then :
8744 $as_echo_n "(cached) " >&6
8746 ac_func_search_save_LIBS
=$LIBS
8747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8748 /* end confdefs.h. */
8750 /* Override any GCC internal prototype to avoid an error.
8751 Use char because int might match the return type of a GCC
8752 builtin and then its argument prototype would still apply. */
8765 for ac_lib
in '' ncursesw ncurses cursesX curses
; do
8766 if test -z "$ac_lib"; then
8767 ac_res
="none required"
8770 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8772 if ac_fn_c_try_link
"$LINENO"; then :
8773 ac_cv_search_waddstr
=$ac_res
8775 rm -f core conftest.err conftest.
$ac_objext \
8777 if test "${ac_cv_search_waddstr+set}" = set; then :
8781 if test "${ac_cv_search_waddstr+set}" = set; then :
8784 ac_cv_search_waddstr
=no
8787 LIBS
=$ac_func_search_save_LIBS
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
8790 $as_echo "$ac_cv_search_waddstr" >&6; }
8791 ac_res
=$ac_cv_search_waddstr
8792 if test "$ac_res" != no
; then :
8793 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8798 if test "$ac_cv_search_waddstr" != no
; then
8803 # Check whether we should enable the TUI, but only do so if we really
8805 if test x
"$enable_tui" != xno
; then
8806 if test -d $srcdir/tui
; then
8807 if test "$curses_found" != no
; then
8808 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
8809 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
8810 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
8811 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
8813 if test x
"$enable_tui" = xyes
; then
8814 as_fn_error
"no enhanced curses library found; disable TUI" "$LINENO" 5
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
8817 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
8823 # Since GDB uses Readline, we need termcap functionality. In many
8824 # cases this will be provided by the curses library, but some systems
8825 # have a separate termcap library, or no curses library at all.
8829 if test -d $srcdir/libtermcap
; then
8830 LIBS
="../libtermcap/libtermcap.a $LIBS"
8831 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
8834 ac_cv_search_tgetent
="none required"
8838 # These are the libraries checked by Readline.
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
8840 $as_echo_n "checking for library containing tgetent... " >&6; }
8841 if test "${ac_cv_search_tgetent+set}" = set; then :
8842 $as_echo_n "(cached) " >&6
8844 ac_func_search_save_LIBS
=$LIBS
8845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8846 /* end confdefs.h. */
8848 /* Override any GCC internal prototype to avoid an error.
8849 Use char because int might match the return type of a GCC
8850 builtin and then its argument prototype would still apply. */
8863 for ac_lib
in '' termcap tinfo curses ncursesw ncurses
; do
8864 if test -z "$ac_lib"; then
8865 ac_res
="none required"
8868 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8870 if ac_fn_c_try_link
"$LINENO"; then :
8871 ac_cv_search_tgetent
=$ac_res
8873 rm -f core conftest.err conftest.
$ac_objext \
8875 if test "${ac_cv_search_tgetent+set}" = set; then :
8879 if test "${ac_cv_search_tgetent+set}" = set; then :
8882 ac_cv_search_tgetent
=no
8885 LIBS
=$ac_func_search_save_LIBS
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
8888 $as_echo "$ac_cv_search_tgetent" >&6; }
8889 ac_res
=$ac_cv_search_tgetent
8890 if test "$ac_res" != no
; then :
8891 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8896 if test "$ac_cv_search_tgetent" = no
; then
8897 CONFIG_OBS
="$CONFIG_OBS stub-termcap.o"
8901 # Check whether --with-system-readline was given.
8902 if test "${with_system_readline+set}" = set; then :
8903 withval
=$with_system_readline;
8907 if test "$with_system_readline" = yes; then
8911 READLINE_TEXI_INCFLAG
=
8913 READLINE
='$(READLINE_DIR)/libreadline.a'
8914 READLINE_DEPS
='$(READLINE)'
8915 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
8916 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
8923 # Generate jit-reader.h
8925 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
8928 # The cast to long int works around a bug in the HP C Compiler
8929 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8930 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8931 # This bug is HP SR number 8606223364.
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
8933 $as_echo_n "checking size of unsigned long long... " >&6; }
8934 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
8935 $as_echo_n "(cached) " >&6
8937 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
8940 if test "$ac_cv_type_unsigned_long_long" = yes; then
8941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8943 { as_fn_set_status
77
8944 as_fn_error
"cannot compute sizeof (unsigned long long)
8945 See \`config.log' for more details." "$LINENO" 5; }; }
8947 ac_cv_sizeof_unsigned_long_long
=0
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
8953 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
8957 cat >>confdefs.h
<<_ACEOF
8958 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
8962 # The cast to long int works around a bug in the HP C Compiler
8963 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8964 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8965 # This bug is HP SR number 8606223364.
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
8967 $as_echo_n "checking size of unsigned long... " >&6; }
8968 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
8969 $as_echo_n "(cached) " >&6
8971 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
8974 if test "$ac_cv_type_unsigned_long" = yes; then
8975 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8976 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8977 { as_fn_set_status
77
8978 as_fn_error
"cannot compute sizeof (unsigned long)
8979 See \`config.log' for more details." "$LINENO" 5; }; }
8981 ac_cv_sizeof_unsigned_long
=0
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
8987 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
8991 cat >>confdefs.h
<<_ACEOF
8992 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
8996 # The cast to long int works around a bug in the HP C Compiler
8997 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8998 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8999 # This bug is HP SR number 8606223364.
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
9001 $as_echo_n "checking size of unsigned __int128... " >&6; }
9002 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
9003 $as_echo_n "(cached) " >&6
9005 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
9008 if test "$ac_cv_type_unsigned___int128" = yes; then
9009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9011 { as_fn_set_status
77
9012 as_fn_error
"cannot compute sizeof (unsigned __int128)
9013 See \`config.log' for more details." "$LINENO" 5; }; }
9015 ac_cv_sizeof_unsigned___int128
=0
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
9021 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
9025 cat >>confdefs.h
<<_ACEOF
9026 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
9031 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9032 TARGET_PTR
="unsigned long"
9033 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9034 TARGET_PTR
="unsigned long long"
9035 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
9036 TARGET_PTR
="unsigned __int128"
9038 TARGET_PTR
="unsigned long"
9042 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9046 $as_echo_n "checking for library containing dlopen... " >&6; }
9047 if test "${ac_cv_search_dlopen+set}" = set; then :
9048 $as_echo_n "(cached) " >&6
9050 ac_func_search_save_LIBS
=$LIBS
9051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9052 /* end confdefs.h. */
9054 /* Override any GCC internal prototype to avoid an error.
9055 Use char because int might match the return type of a GCC
9056 builtin and then its argument prototype would still apply. */
9069 for ac_lib
in '' dl
; do
9070 if test -z "$ac_lib"; then
9071 ac_res
="none required"
9074 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9076 if ac_fn_c_try_link
"$LINENO"; then :
9077 ac_cv_search_dlopen
=$ac_res
9079 rm -f core conftest.err conftest.
$ac_objext \
9081 if test "${ac_cv_search_dlopen+set}" = set; then :
9085 if test "${ac_cv_search_dlopen+set}" = set; then :
9088 ac_cv_search_dlopen
=no
9091 LIBS
=$ac_func_search_save_LIBS
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9094 $as_echo "$ac_cv_search_dlopen" >&6; }
9095 ac_res
=$ac_cv_search_dlopen
9096 if test "$ac_res" != no
; then :
9097 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9104 # Check whether --with-jit-reader-dir was given.
9105 if test "${with_jit_reader_dir+set}" = set; then :
9106 withval
=$with_jit_reader_dir;
9107 JIT_READER_DIR
=$withval
9109 JIT_READER_DIR
=${libdir}/gdb
9113 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9114 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9115 ac_define_dir
=`eval echo $JIT_READER_DIR`
9116 ac_define_dir
=`eval echo $ac_define_dir`
9118 cat >>confdefs.h
<<_ACEOF
9119 #define JIT_READER_DIR "$ac_define_dir"
9125 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9126 if test "x$prefix" = xNONE
; then
9127 test_prefix
=/usr
/local
9132 test_prefix
=$exec_prefix
9135 case ${ac_define_dir} in
9136 "${test_prefix}"|
"${test_prefix}/"*|\
9137 '${exec_prefix}'|
'${exec_prefix}/'*)
9142 cat >>confdefs.h
<<_ACEOF
9143 #define JIT_READER_DIR_RELOCATABLE $value
9150 # Check whether --with-expat was given.
9151 if test "${with_expat+set}" = set; then :
9152 withval
=$with_expat;
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9158 $as_echo_n "checking whether to use expat... " >&6; }
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9160 $as_echo "$with_expat" >&6; }
9162 if test "${with_expat}" = no
; then
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9164 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9177 acl_save_prefix
="$prefix"
9178 prefix
="$acl_final_prefix"
9179 acl_save_exec_prefix
="$exec_prefix"
9180 exec_prefix
="$acl_final_exec_prefix"
9182 eval additional_includedir
=\"$includedir\"
9183 eval additional_libdir
=\"$libdir\"
9185 exec_prefix
="$acl_save_exec_prefix"
9186 prefix
="$acl_save_prefix"
9189 # Check whether --with-libexpat-prefix was given.
9190 if test "${with_libexpat_prefix+set}" = set; then :
9191 withval
=$with_libexpat_prefix;
9192 if test "X$withval" = "Xno"; then
9195 if test "X$withval" = "X"; then
9197 acl_save_prefix
="$prefix"
9198 prefix
="$acl_final_prefix"
9199 acl_save_exec_prefix
="$exec_prefix"
9200 exec_prefix
="$acl_final_exec_prefix"
9202 eval additional_includedir
=\"$includedir\"
9203 eval additional_libdir
=\"$libdir\"
9205 exec_prefix
="$acl_save_exec_prefix"
9206 prefix
="$acl_save_prefix"
9209 additional_includedir
="$withval/include"
9210 additional_libdir
="$withval/lib"
9221 names_already_handled
=
9222 names_next_round
='expat '
9223 while test -n "$names_next_round"; do
9224 names_this_round
="$names_next_round"
9226 for name
in $names_this_round; do
9228 for n
in $names_already_handled; do
9229 if test "$n" = "$name"; then
9234 if test -z "$already_handled"; then
9235 names_already_handled
="$names_already_handled $name"
9236 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9237 eval value
=\"\
$HAVE_LIB$uppername\"
9238 if test -n "$value"; then
9239 if test "$value" = yes; then
9240 eval value
=\"\
$LIB$uppername\"
9241 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
9242 eval value
=\"\
$LTLIB$uppername\"
9243 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
9252 if test $use_additional = yes; then
9253 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9254 found_dir
="$additional_libdir"
9255 found_so
="$additional_libdir/lib$name.$shlibext"
9256 if test -f "$additional_libdir/lib$name.la"; then
9257 found_la
="$additional_libdir/lib$name.la"
9260 if test -f "$additional_libdir/lib$name.$libext"; then
9261 found_dir
="$additional_libdir"
9262 found_a
="$additional_libdir/lib$name.$libext"
9263 if test -f "$additional_libdir/lib$name.la"; then
9264 found_la
="$additional_libdir/lib$name.la"
9269 if test "X$found_dir" = "X"; then
9270 for x
in $LDFLAGS $LTLIBEXPAT; do
9272 acl_save_prefix
="$prefix"
9273 prefix
="$acl_final_prefix"
9274 acl_save_exec_prefix
="$exec_prefix"
9275 exec_prefix
="$acl_final_exec_prefix"
9277 exec_prefix
="$acl_save_exec_prefix"
9278 prefix
="$acl_save_prefix"
9282 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9283 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9285 found_so
="$dir/lib$name.$shlibext"
9286 if test -f "$dir/lib$name.la"; then
9287 found_la
="$dir/lib$name.la"
9290 if test -f "$dir/lib$name.$libext"; then
9292 found_a
="$dir/lib$name.$libext"
9293 if test -f "$dir/lib$name.la"; then
9294 found_la
="$dir/lib$name.la"
9300 if test "X$found_dir" != "X"; then
9305 if test "X$found_dir" != "X"; then
9306 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
9307 if test "X$found_so" != "X"; then
9308 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9309 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9312 for x
in $ltrpathdirs; do
9313 if test "X$x" = "X$found_dir"; then
9318 if test -z "$haveit"; then
9319 ltrpathdirs
="$ltrpathdirs $found_dir"
9321 if test "$hardcode_direct" = yes; then
9322 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9324 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9325 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9327 for x
in $rpathdirs; do
9328 if test "X$x" = "X$found_dir"; then
9333 if test -z "$haveit"; then
9334 rpathdirs
="$rpathdirs $found_dir"
9338 for x
in $LDFLAGS $LIBEXPAT; do
9340 acl_save_prefix
="$prefix"
9341 prefix
="$acl_final_prefix"
9342 acl_save_exec_prefix
="$exec_prefix"
9343 exec_prefix
="$acl_final_exec_prefix"
9345 exec_prefix
="$acl_save_exec_prefix"
9346 prefix
="$acl_save_prefix"
9348 if test "X$x" = "X-L$found_dir"; then
9353 if test -z "$haveit"; then
9354 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
9356 if test "$hardcode_minus_L" != no
; then
9357 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9359 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9365 if test "X$found_a" != "X"; then
9366 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
9368 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
9371 additional_includedir
=
9372 case "$found_dir" in
9374 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9375 additional_includedir
="$basedir/include"
9378 if test "X$additional_includedir" != "X"; then
9379 if test "X$additional_includedir" != "X/usr/include"; then
9381 if test "X$additional_includedir" = "X/usr/local/include"; then
9382 if test -n "$GCC"; then
9384 linux
*) haveit
=yes;;
9388 if test -z "$haveit"; then
9389 for x
in $CPPFLAGS $INCEXPAT; do
9391 acl_save_prefix
="$prefix"
9392 prefix
="$acl_final_prefix"
9393 acl_save_exec_prefix
="$exec_prefix"
9394 exec_prefix
="$acl_final_exec_prefix"
9396 exec_prefix
="$acl_save_exec_prefix"
9397 prefix
="$acl_save_prefix"
9399 if test "X$x" = "X-I$additional_includedir"; then
9404 if test -z "$haveit"; then
9405 if test -d "$additional_includedir"; then
9406 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
9412 if test -n "$found_la"; then
9413 save_libdir
="$libdir"
9415 */* |
*\\*) .
"$found_la" ;;
9416 *) .
"./$found_la" ;;
9418 libdir
="$save_libdir"
9419 for dep
in $dependency_libs; do
9422 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9423 if test "X$additional_libdir" != "X/usr/lib"; then
9425 if test "X$additional_libdir" = "X/usr/local/lib"; then
9426 if test -n "$GCC"; then
9428 linux
*) haveit
=yes;;
9432 if test -z "$haveit"; then
9434 for x
in $LDFLAGS $LIBEXPAT; do
9436 acl_save_prefix
="$prefix"
9437 prefix
="$acl_final_prefix"
9438 acl_save_exec_prefix
="$exec_prefix"
9439 exec_prefix
="$acl_final_exec_prefix"
9441 exec_prefix
="$acl_save_exec_prefix"
9442 prefix
="$acl_save_prefix"
9444 if test "X$x" = "X-L$additional_libdir"; then
9449 if test -z "$haveit"; then
9450 if test -d "$additional_libdir"; then
9451 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
9455 for x
in $LDFLAGS $LTLIBEXPAT; do
9457 acl_save_prefix
="$prefix"
9458 prefix
="$acl_final_prefix"
9459 acl_save_exec_prefix
="$exec_prefix"
9460 exec_prefix
="$acl_final_exec_prefix"
9462 exec_prefix
="$acl_save_exec_prefix"
9463 prefix
="$acl_save_prefix"
9465 if test "X$x" = "X-L$additional_libdir"; then
9470 if test -z "$haveit"; then
9471 if test -d "$additional_libdir"; then
9472 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
9479 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9480 if test "$enable_rpath" != no
; then
9482 for x
in $rpathdirs; do
9483 if test "X$x" = "X$dir"; then
9488 if test -z "$haveit"; then
9489 rpathdirs
="$rpathdirs $dir"
9492 for x
in $ltrpathdirs; do
9493 if test "X$x" = "X$dir"; then
9498 if test -z "$haveit"; then
9499 ltrpathdirs
="$ltrpathdirs $dir"
9504 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9507 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9510 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
9511 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
9517 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9518 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
9524 if test "X$rpathdirs" != "X"; then
9525 if test -n "$hardcode_libdir_separator"; then
9527 for found_dir
in $rpathdirs; do
9528 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9530 acl_save_libdir
="$libdir"
9532 eval flag
=\"$hardcode_libdir_flag_spec\"
9533 libdir
="$acl_save_libdir"
9534 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9536 for found_dir
in $rpathdirs; do
9537 acl_save_libdir
="$libdir"
9539 eval flag
=\"$hardcode_libdir_flag_spec\"
9540 libdir
="$acl_save_libdir"
9541 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9545 if test "X$ltrpathdirs" != "X"; then
9546 for found_dir
in $ltrpathdirs; do
9547 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9552 ac_save_CPPFLAGS
="$CPPFLAGS"
9554 for element
in $INCEXPAT; do
9556 for x
in $CPPFLAGS; do
9558 acl_save_prefix
="$prefix"
9559 prefix
="$acl_final_prefix"
9560 acl_save_exec_prefix
="$exec_prefix"
9561 exec_prefix
="$acl_final_exec_prefix"
9563 exec_prefix
="$acl_save_exec_prefix"
9564 prefix
="$acl_save_prefix"
9566 if test "X$x" = "X$element"; then
9571 if test -z "$haveit"; then
9572 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9578 $as_echo_n "checking for libexpat... " >&6; }
9579 if test "${ac_cv_libexpat+set}" = set; then :
9580 $as_echo_n "(cached) " >&6
9583 ac_save_LIBS
="$LIBS"
9584 LIBS
="$LIBS $LIBEXPAT"
9585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9586 /* end confdefs.h. */
9591 XML_Parser p = XML_ParserCreate (0);
9596 if ac_fn_c_try_link
"$LINENO"; then :
9601 rm -f core conftest.err conftest.
$ac_objext \
9602 conftest
$ac_exeext conftest.
$ac_ext
9603 LIBS
="$ac_save_LIBS"
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
9607 $as_echo "$ac_cv_libexpat" >&6; }
9608 if test "$ac_cv_libexpat" = yes; then
9611 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
9614 $as_echo_n "checking how to link with libexpat... " >&6; }
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
9616 $as_echo "$LIBEXPAT" >&6; }
9619 CPPFLAGS
="$ac_save_CPPFLAGS"
9629 if test "$HAVE_LIBEXPAT" != yes; then
9630 if test "$with_expat" = yes; then
9631 as_fn_error
"expat is missing or unusable" "$LINENO" 5
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
9634 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
9638 LIBS
="$LIBS $LIBEXPAT"
9639 for ac_func
in XML_StopParser
9641 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
9642 if test "x$ac_cv_func_XML_StopParser" = x
""yes; then :
9643 cat >>confdefs.h
<<_ACEOF
9644 #define HAVE_XML_STOPPARSER 1
9655 # Check whether --with-mpfr was given.
9656 if test "${with_mpfr+set}" = set; then :
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5
9663 $as_echo_n "checking whether to use MPFR... " >&6; }
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5
9665 $as_echo "$with_mpfr" >&6; }
9667 if test "${with_mpfr}" = no
; then
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5
9669 $as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;}
9682 acl_save_prefix
="$prefix"
9683 prefix
="$acl_final_prefix"
9684 acl_save_exec_prefix
="$exec_prefix"
9685 exec_prefix
="$acl_final_exec_prefix"
9687 eval additional_includedir
=\"$includedir\"
9688 eval additional_libdir
=\"$libdir\"
9690 exec_prefix
="$acl_save_exec_prefix"
9691 prefix
="$acl_save_prefix"
9694 # Check whether --with-libmpfr-prefix was given.
9695 if test "${with_libmpfr_prefix+set}" = set; then :
9696 withval
=$with_libmpfr_prefix;
9697 if test "X$withval" = "Xno"; then
9700 if test "X$withval" = "X"; then
9702 acl_save_prefix
="$prefix"
9703 prefix
="$acl_final_prefix"
9704 acl_save_exec_prefix
="$exec_prefix"
9705 exec_prefix
="$acl_final_exec_prefix"
9707 eval additional_includedir
=\"$includedir\"
9708 eval additional_libdir
=\"$libdir\"
9710 exec_prefix
="$acl_save_exec_prefix"
9711 prefix
="$acl_save_prefix"
9714 additional_includedir
="$withval/include"
9715 additional_libdir
="$withval/lib"
9726 names_already_handled
=
9727 names_next_round
='mpfr '
9728 while test -n "$names_next_round"; do
9729 names_this_round
="$names_next_round"
9731 for name
in $names_this_round; do
9733 for n
in $names_already_handled; do
9734 if test "$n" = "$name"; then
9739 if test -z "$already_handled"; then
9740 names_already_handled
="$names_already_handled $name"
9741 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9742 eval value
=\"\
$HAVE_LIB$uppername\"
9743 if test -n "$value"; then
9744 if test "$value" = yes; then
9745 eval value
=\"\
$LIB$uppername\"
9746 test -z "$value" || LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$value"
9747 eval value
=\"\
$LTLIB$uppername\"
9748 test -z "$value" || LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$value"
9757 if test $use_additional = yes; then
9758 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9759 found_dir
="$additional_libdir"
9760 found_so
="$additional_libdir/lib$name.$shlibext"
9761 if test -f "$additional_libdir/lib$name.la"; then
9762 found_la
="$additional_libdir/lib$name.la"
9765 if test -f "$additional_libdir/lib$name.$libext"; then
9766 found_dir
="$additional_libdir"
9767 found_a
="$additional_libdir/lib$name.$libext"
9768 if test -f "$additional_libdir/lib$name.la"; then
9769 found_la
="$additional_libdir/lib$name.la"
9774 if test "X$found_dir" = "X"; then
9775 for x
in $LDFLAGS $LTLIBMPFR; do
9777 acl_save_prefix
="$prefix"
9778 prefix
="$acl_final_prefix"
9779 acl_save_exec_prefix
="$exec_prefix"
9780 exec_prefix
="$acl_final_exec_prefix"
9782 exec_prefix
="$acl_save_exec_prefix"
9783 prefix
="$acl_save_prefix"
9787 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9788 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9790 found_so
="$dir/lib$name.$shlibext"
9791 if test -f "$dir/lib$name.la"; then
9792 found_la
="$dir/lib$name.la"
9795 if test -f "$dir/lib$name.$libext"; then
9797 found_a
="$dir/lib$name.$libext"
9798 if test -f "$dir/lib$name.la"; then
9799 found_la
="$dir/lib$name.la"
9805 if test "X$found_dir" != "X"; then
9810 if test "X$found_dir" != "X"; then
9811 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$found_dir -l$name"
9812 if test "X$found_so" != "X"; then
9813 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9814 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
9817 for x
in $ltrpathdirs; do
9818 if test "X$x" = "X$found_dir"; then
9823 if test -z "$haveit"; then
9824 ltrpathdirs
="$ltrpathdirs $found_dir"
9826 if test "$hardcode_direct" = yes; then
9827 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
9829 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9830 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
9832 for x
in $rpathdirs; do
9833 if test "X$x" = "X$found_dir"; then
9838 if test -z "$haveit"; then
9839 rpathdirs
="$rpathdirs $found_dir"
9843 for x
in $LDFLAGS $LIBMPFR; do
9845 acl_save_prefix
="$prefix"
9846 prefix
="$acl_final_prefix"
9847 acl_save_exec_prefix
="$exec_prefix"
9848 exec_prefix
="$acl_final_exec_prefix"
9850 exec_prefix
="$acl_save_exec_prefix"
9851 prefix
="$acl_save_prefix"
9853 if test "X$x" = "X-L$found_dir"; then
9858 if test -z "$haveit"; then
9859 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir"
9861 if test "$hardcode_minus_L" != no
; then
9862 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
9864 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
9870 if test "X$found_a" != "X"; then
9871 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_a"
9873 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir -l$name"
9876 additional_includedir
=
9877 case "$found_dir" in
9879 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9880 additional_includedir
="$basedir/include"
9883 if test "X$additional_includedir" != "X"; then
9884 if test "X$additional_includedir" != "X/usr/include"; then
9886 if test "X$additional_includedir" = "X/usr/local/include"; then
9887 if test -n "$GCC"; then
9889 linux
*) haveit
=yes;;
9893 if test -z "$haveit"; then
9894 for x
in $CPPFLAGS $INCMPFR; do
9896 acl_save_prefix
="$prefix"
9897 prefix
="$acl_final_prefix"
9898 acl_save_exec_prefix
="$exec_prefix"
9899 exec_prefix
="$acl_final_exec_prefix"
9901 exec_prefix
="$acl_save_exec_prefix"
9902 prefix
="$acl_save_prefix"
9904 if test "X$x" = "X-I$additional_includedir"; then
9909 if test -z "$haveit"; then
9910 if test -d "$additional_includedir"; then
9911 INCMPFR
="${INCMPFR}${INCMPFR:+ }-I$additional_includedir"
9917 if test -n "$found_la"; then
9918 save_libdir
="$libdir"
9920 */* |
*\\*) .
"$found_la" ;;
9921 *) .
"./$found_la" ;;
9923 libdir
="$save_libdir"
9924 for dep
in $dependency_libs; do
9927 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9928 if test "X$additional_libdir" != "X/usr/lib"; then
9930 if test "X$additional_libdir" = "X/usr/local/lib"; then
9931 if test -n "$GCC"; then
9933 linux
*) haveit
=yes;;
9937 if test -z "$haveit"; then
9939 for x
in $LDFLAGS $LIBMPFR; do
9941 acl_save_prefix
="$prefix"
9942 prefix
="$acl_final_prefix"
9943 acl_save_exec_prefix
="$exec_prefix"
9944 exec_prefix
="$acl_final_exec_prefix"
9946 exec_prefix
="$acl_save_exec_prefix"
9947 prefix
="$acl_save_prefix"
9949 if test "X$x" = "X-L$additional_libdir"; then
9954 if test -z "$haveit"; then
9955 if test -d "$additional_libdir"; then
9956 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$additional_libdir"
9960 for x
in $LDFLAGS $LTLIBMPFR; do
9962 acl_save_prefix
="$prefix"
9963 prefix
="$acl_final_prefix"
9964 acl_save_exec_prefix
="$exec_prefix"
9965 exec_prefix
="$acl_final_exec_prefix"
9967 exec_prefix
="$acl_save_exec_prefix"
9968 prefix
="$acl_save_prefix"
9970 if test "X$x" = "X-L$additional_libdir"; then
9975 if test -z "$haveit"; then
9976 if test -d "$additional_libdir"; then
9977 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$additional_libdir"
9984 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9985 if test "$enable_rpath" != no
; then
9987 for x
in $rpathdirs; do
9988 if test "X$x" = "X$dir"; then
9993 if test -z "$haveit"; then
9994 rpathdirs
="$rpathdirs $dir"
9997 for x
in $ltrpathdirs; do
9998 if test "X$x" = "X$dir"; then
10003 if test -z "$haveit"; then
10004 ltrpathdirs
="$ltrpathdirs $dir"
10009 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10012 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10015 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$dep"
10016 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$dep"
10022 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10023 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l$name"
10029 if test "X$rpathdirs" != "X"; then
10030 if test -n "$hardcode_libdir_separator"; then
10032 for found_dir
in $rpathdirs; do
10033 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10035 acl_save_libdir
="$libdir"
10037 eval flag
=\"$hardcode_libdir_flag_spec\"
10038 libdir
="$acl_save_libdir"
10039 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10041 for found_dir
in $rpathdirs; do
10042 acl_save_libdir
="$libdir"
10043 libdir
="$found_dir"
10044 eval flag
=\"$hardcode_libdir_flag_spec\"
10045 libdir
="$acl_save_libdir"
10046 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10050 if test "X$ltrpathdirs" != "X"; then
10051 for found_dir
in $ltrpathdirs; do
10052 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-R$found_dir"
10057 ac_save_CPPFLAGS
="$CPPFLAGS"
10059 for element
in $INCMPFR; do
10061 for x
in $CPPFLAGS; do
10063 acl_save_prefix
="$prefix"
10064 prefix
="$acl_final_prefix"
10065 acl_save_exec_prefix
="$exec_prefix"
10066 exec_prefix
="$acl_final_exec_prefix"
10068 exec_prefix
="$acl_save_exec_prefix"
10069 prefix
="$acl_save_prefix"
10071 if test "X$x" = "X$element"; then
10076 if test -z "$haveit"; then
10077 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpfr" >&5
10083 $as_echo_n "checking for libmpfr... " >&6; }
10084 if test "${ac_cv_libmpfr+set}" = set; then :
10085 $as_echo_n "(cached) " >&6
10088 ac_save_LIBS
="$LIBS"
10089 LIBS
="$LIBS $LIBMPFR"
10090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10091 /* end confdefs.h. */
10096 mpfr_exp_t exp; mpfr_t x;
10097 mpfr_frexp (&exp, x, x, MPFR_RNDN);
10102 if ac_fn_c_try_link
"$LINENO"; then :
10107 rm -f core conftest.err conftest.
$ac_objext \
10108 conftest
$ac_exeext conftest.
$ac_ext
10109 LIBS
="$ac_save_LIBS"
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmpfr" >&5
10113 $as_echo "$ac_cv_libmpfr" >&6; }
10114 if test "$ac_cv_libmpfr" = yes; then
10117 $as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libmpfr" >&5
10120 $as_echo_n "checking how to link with libmpfr... " >&6; }
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPFR" >&5
10122 $as_echo "$LIBMPFR" >&6; }
10125 CPPFLAGS
="$ac_save_CPPFLAGS"
10135 if test "$HAVE_LIBMPFR" != yes; then
10136 if test "$with_mpfr" = yes; then
10137 as_fn_error
"MPFR is missing or unusable" "$LINENO" 5
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR is missing or unusable; some features may be unavailable." >&5
10140 $as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;}
10145 # --------------------- #
10146 # Check for libpython. #
10147 # --------------------- #
10154 # Check whether --with-python was given.
10155 if test "${with_python+set}" = set; then :
10156 withval
=$with_python;
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10162 $as_echo_n "checking whether to use python... " >&6; }
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10164 $as_echo "$with_python" >&6; }
10166 if test "${with_python}" = no
; then
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10168 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10171 case "${with_python}" in
10173 if test -d ${with_python}; then
10174 # Assume the python binary is ${with_python}/bin/python.
10175 python_prog
="${with_python}/bin/python"
10177 # If python does not exit ${with_python}/bin, then try in
10178 # ${with_python}. On Windows/MinGW, this is where the Python
10180 if test ! -x "${python_prog}"; then
10181 python_prog
="${with_python}/python"
10184 if test ! -x "${python_prog}"; then
10185 # Fall back to gdb 7.0/7.1 behaviour.
10186 python_prog
=missing
10187 python_prefix
=${with_python}
10189 elif test -x "${with_python}"; then
10190 # While we can't run python compiled for $host (unless host == build),
10191 # the user could write a script that provides the needed information,
10192 # so we support that.
10193 python_prog
=${with_python}
10196 as_fn_error
"invalid value for --with-python" "$LINENO" 5
10200 # Disallow --with-python=foo/bar.
10201 as_fn_error
"invalid value for --with-python" "$LINENO" 5
10204 # The user has either specified auto, yes, or the name of the python
10205 # program assumed to be in $PATH.
10207 case "${with_python}" in
10209 if test ${build} = ${host}; then
10210 # Extract the first word of "python", so it can be a program name with args.
10211 set dummy python
; ac_word
=$2
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10213 $as_echo_n "checking for $ac_word... " >&6; }
10214 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10215 $as_echo_n "(cached) " >&6
10217 case $python_prog_path in
10219 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10223 for as_dir
in $PATH
10226 test -z "$as_dir" && as_dir
=.
10227 for ac_exec_ext
in '' $ac_executable_extensions; do
10228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10229 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10237 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10241 python_prog_path
=$ac_cv_path_python_prog_path
10242 if test -n "$python_prog_path"; then
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10244 $as_echo "$python_prog_path" >&6; }
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10247 $as_echo "no" >&6; }
10251 if test "${python_prog_path}" = missing
; then
10252 python_prog
=missing
10254 python_prog
=${python_prog_path}
10257 # Not much we can do except assume the cross-compiler will find the
10259 python_prog
=missing
10263 # While we can't run python compiled for $host (unless host == build),
10264 # the user could write a script that provides the needed information,
10265 # so we support that.
10266 python_prog
="${with_python}"
10267 # Extract the first word of "${python_prog}", so it can be a program name with args.
10268 set dummy
${python_prog}; ac_word
=$2
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10270 $as_echo_n "checking for $ac_word... " >&6; }
10271 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10272 $as_echo_n "(cached) " >&6
10274 case $python_prog_path in
10276 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10279 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10280 for as_dir
in $PATH
10283 test -z "$as_dir" && as_dir
=.
10284 for ac_exec_ext
in '' $ac_executable_extensions; do
10285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10286 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10294 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10298 python_prog_path
=$ac_cv_path_python_prog_path
10299 if test -n "$python_prog_path"; then
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10301 $as_echo "$python_prog_path" >&6; }
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10304 $as_echo "no" >&6; }
10308 if test "${python_prog_path}" = missing
; then
10309 as_fn_error
"unable to find python program ${python_prog}" "$LINENO" 5
10315 if test "${python_prog}" != missing
; then
10316 # We have a python program to use, but it may be too old.
10317 # Don't flag an error for --with-python=auto (the default).
10318 have_python_config
=yes
10319 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
10320 if test $?
!= 0; then
10321 have_python_config
=failed
10322 if test "${with_python}" != auto
; then
10323 as_fn_error
"failure running python-config --includes" "$LINENO" 5
10326 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10327 if test $?
!= 0; then
10328 have_python_config
=failed
10329 if test "${with_python}" != auto
; then
10330 as_fn_error
"failure running python-config --ldflags" "$LINENO" 5
10333 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10334 if test $?
!= 0; then
10335 have_python_config
=failed
10336 if test "${with_python}" != auto
; then
10337 as_fn_error
"failure running python-config --exec-prefix" "$LINENO" 5
10341 # We do not have a python executable we can use to determine where
10342 # to find the Python headers and libs. We cannot guess the include
10343 # path from the python_prefix either, because that include path
10344 # depends on the Python version. So, there is nothing much we can
10345 # do except assume that the compiler will be able to find those files.
10348 have_python_config
=no
10351 # If we have python-config, only try the configuration it provides.
10352 # Otherwise fallback on the old way of trying different versions of
10356 if test "${have_python_config}" = yes; then
10357 # Determine the Python version by extracting "-lpython<version>"
10358 # part of the python_libs. <version> is usually X.Y with X and Y
10359 # being decimal numbers, but can also be XY (seen on Windows).
10361 # The extraction is performed using sed with a regular expression.
10362 # Initially, the regexp used was using the '?' quantifier to make
10363 # the dot in the version number optional. Unfortunately, this
10364 # does not work with non-GNU versions of sed because, because of
10365 # what looks like a limitation (the '?' quantifier does not work
10366 # with back-references). We work around this limitation by using
10367 # the '*' quantifier instead. It means that, in theory, we might
10368 # match unexpected version strings such as "-lpython2..7", but
10369 # this seems unlikely in practice. And even if that happens,
10370 # an error will be triggered later on, when checking that version
10372 python_version
=`echo " ${python_libs} " \
10373 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
10374 case "${python_version}" in
10377 version
=${python_version}
10379 new_CPPFLAGS
=${python_includes}
10380 new_LIBS
=${python_libs}
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10382 $as_echo_n "checking for ${version}... " >&6; }
10383 save_CPPFLAGS
=$CPPFLAGS
10385 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10386 LIBS
="$LIBS $new_LIBS"
10387 found_usable_python
=no
10388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10389 /* end confdefs.h. */
10390 #include "Python.h"
10399 if ac_fn_c_try_link
"$LINENO"; then :
10400 have_libpython
=${version}
10401 found_usable_python
=yes
10402 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10403 PYTHON_LIBS
=$new_LIBS
10405 rm -f core conftest.err conftest.
$ac_objext \
10406 conftest
$ac_exeext conftest.
$ac_ext
10407 CPPFLAGS
=$save_CPPFLAGS
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10410 $as_echo "${found_usable_python}" >&6; }
10414 as_fn_error
"unable to determine python version from ${python_libs}" "$LINENO" 5
10417 elif test "${have_python_config}" != failed
; then
10418 if test "${have_libpython}" = no
; then
10422 new_CPPFLAGS
=${python_includes}
10423 new_LIBS
="${python_libs} -lpython2.7"
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10425 $as_echo_n "checking for ${version}... " >&6; }
10426 save_CPPFLAGS
=$CPPFLAGS
10428 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10429 LIBS
="$LIBS $new_LIBS"
10430 found_usable_python
=no
10431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10432 /* end confdefs.h. */
10433 #include "Python.h"
10442 if ac_fn_c_try_link
"$LINENO"; then :
10443 have_libpython
=${version}
10444 found_usable_python
=yes
10445 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10446 PYTHON_LIBS
=$new_LIBS
10448 rm -f core conftest.err conftest.
$ac_objext \
10449 conftest
$ac_exeext conftest.
$ac_ext
10450 CPPFLAGS
=$save_CPPFLAGS
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10453 $as_echo "${found_usable_python}" >&6; }
10456 if test "${have_libpython}" = no
; then
10460 new_CPPFLAGS
=${python_includes}
10461 new_LIBS
="${python_libs} -lpython2.6"
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10463 $as_echo_n "checking for ${version}... " >&6; }
10464 save_CPPFLAGS
=$CPPFLAGS
10466 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10467 LIBS
="$LIBS $new_LIBS"
10468 found_usable_python
=no
10469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10470 /* end confdefs.h. */
10471 #include "Python.h"
10480 if ac_fn_c_try_link
"$LINENO"; then :
10481 have_libpython
=${version}
10482 found_usable_python
=yes
10483 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10484 PYTHON_LIBS
=$new_LIBS
10486 rm -f core conftest.err conftest.
$ac_objext \
10487 conftest
$ac_exeext conftest.
$ac_ext
10488 CPPFLAGS
=$save_CPPFLAGS
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10491 $as_echo "${found_usable_python}" >&6; }
10494 if test ${have_libpython} = no
; then
10498 new_CPPFLAGS
=${python_includes}
10499 new_LIBS
="${python_libs} -lpython2.5"
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10501 $as_echo_n "checking for ${version}... " >&6; }
10502 save_CPPFLAGS
=$CPPFLAGS
10504 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10505 LIBS
="$LIBS $new_LIBS"
10506 found_usable_python
=no
10507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10508 /* end confdefs.h. */
10509 #include "Python.h"
10518 if ac_fn_c_try_link
"$LINENO"; then :
10519 have_libpython
=${version}
10520 found_usable_python
=yes
10521 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10522 PYTHON_LIBS
=$new_LIBS
10524 rm -f core conftest.err conftest.
$ac_objext \
10525 conftest
$ac_exeext conftest.
$ac_ext
10526 CPPFLAGS
=$save_CPPFLAGS
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10529 $as_echo "${found_usable_python}" >&6; }
10532 if test ${have_libpython} = no
; then
10536 new_CPPFLAGS
=${python_includes}
10537 new_LIBS
="${python_libs} -lpython2.4"
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10539 $as_echo_n "checking for ${version}... " >&6; }
10540 save_CPPFLAGS
=$CPPFLAGS
10542 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10543 LIBS
="$LIBS $new_LIBS"
10544 found_usable_python
=no
10545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10546 /* end confdefs.h. */
10547 #include "Python.h"
10556 if ac_fn_c_try_link
"$LINENO"; then :
10557 have_libpython
=${version}
10558 found_usable_python
=yes
10559 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10560 PYTHON_LIBS
=$new_LIBS
10562 rm -f core conftest.err conftest.
$ac_objext \
10563 conftest
$ac_exeext conftest.
$ac_ext
10564 CPPFLAGS
=$save_CPPFLAGS
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10567 $as_echo "${found_usable_python}" >&6; }
10571 if test "${have_libpython}" = python2.7
-o "${have_libpython}" = python27
; then
10573 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
10575 elif test "${have_libpython}" = python2.6
-o "${have_libpython}" = python26
; then
10577 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
10579 elif test "${have_libpython}" = python2.5
-o "${have_libpython}" = python25
; then
10581 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
10583 elif test "${have_libpython}" = python2.4
-o "${have_libpython}" = python24
; then
10585 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
10589 if test "${have_libpython}" = no
; then
10590 case "${with_python}" in
10592 as_fn_error
"python is missing or unusable" "$LINENO" 5
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10596 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10599 as_fn_error
"no usable python found at ${with_python}" "$LINENO" 5
10603 if test -n "${python_prefix}"; then
10605 cat >>confdefs.h
<<_ACEOF
10606 #define WITH_PYTHON_PATH "${python_prefix}"
10610 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
10611 if test "x$prefix" = xNONE
; then
10612 test_prefix
=/usr
/local
10614 test_prefix
=$prefix
10617 test_prefix
=$exec_prefix
10620 case ${python_prefix} in
10621 "${test_prefix}"|
"${test_prefix}/"*|\
10622 '${exec_prefix}'|
'${exec_prefix}/'*)
10627 cat >>confdefs.h
<<_ACEOF
10628 #define PYTHON_PATH_RELOCATABLE $value
10636 if test "${have_libpython}" != no
; then
10638 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10640 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10641 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10642 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
10643 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
10644 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
10646 # Flags needed to compile Python code (taken from python-config --cflags).
10647 # We cannot call python-config directly because it will output whatever was
10648 # used when compiling the Python interpreter itself, including flags which
10649 # would make the python-related objects be compiled differently from the
10650 # rest of GDB (e.g., -O2 and -fPIC).
10651 if test "${GCC}" = yes; then
10652 tentative_python_cflags
="-fno-strict-aliasing -DNDEBUG -fwrapv"
10655 if test "x${tentative_python_cflags}" != x
; then
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10657 $as_echo_n "checking compiler flags for python code... " >&6; }
10658 for flag
in ${tentative_python_cflags}; do
10659 # Check that the compiler accepts it
10660 saved_CFLAGS
="$CFLAGS"
10661 CFLAGS
="$CFLAGS $flag"
10662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10663 /* end confdefs.h. */
10673 if ac_fn_c_try_compile
"$LINENO"; then :
10674 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
10676 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10677 CFLAGS
="$saved_CFLAGS"
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
10680 $as_echo "${PYTHON_CFLAGS}" >&6; }
10683 # On x64 Windows, Python's include headers, and pyconfig.h in
10684 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
10685 # version of Windows. Unfortunately, MS_WIN64 is only defined if
10686 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
10687 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
10688 # The issue was reported to the Python community, but still isn't
10689 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
10691 case "$gdb_host" in
10693 if test "${GCC}" = yes; then
10694 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
10699 # Note that "python -m threading" cannot be used to check for
10700 # threading support due to a bug in Python 2.7.3
10701 # (http://bugs.python.org/issue15567).
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
10703 $as_echo_n "checking whether python supports threads... " >&6; }
10704 saved_CPPFLAGS
="${CPPFLAGS}"
10705 CPPFLAGS
="${PYTHON_CPPFLAGS}"
10706 # Note that the test is reversed so that python_has_threads=yes on
10707 # unexpected failures.
10708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10709 /* end confdefs.h. */
10711 #include <Python.h>
10717 if ac_fn_c_try_cpp
"$LINENO"; then :
10718 python_has_threads
=no
10720 python_has_threads
=yes
10722 rm -f conftest.err conftest.
$ac_ext
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
10724 $as_echo "${python_has_threads}" >&6; }
10725 CPPFLAGS
="${saved_CPPFLAGS}"
10727 # Even if Python support is not compiled in, we need to have this file
10728 # included so that the "python" command, et.al., still exists.
10729 CONFIG_OBS
="$CONFIG_OBS python.o"
10730 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
10733 # Work around Python http://bugs.python.org/issue10112. See also
10734 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
10735 # no effect. Note that the only test after this that uses Python is
10736 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
10737 # run without -export-dynamic too.
10738 PYTHON_LIBS
=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
10743 if test "${have_libpython}" != no
; then
10745 HAVE_PYTHON_FALSE
='#'
10747 HAVE_PYTHON_TRUE
='#'
10752 # -------------------- #
10753 # Check for libguile. #
10754 # -------------------- #
10761 # Check whether --with-guile was given.
10762 if test "${with_guile+set}" = set; then :
10763 withval
=$with_guile;
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
10769 $as_echo_n "checking whether to use guile... " >&6; }
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
10771 $as_echo "$with_guile" >&6; }
10773 # Extract the first word of "pkg-config", so it can be a program name with args.
10774 set dummy pkg-config
; ac_word
=$2
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10776 $as_echo_n "checking for $ac_word... " >&6; }
10777 if test "${ac_cv_path_pkg_config_prog_path+set}" = set; then :
10778 $as_echo_n "(cached) " >&6
10780 case $pkg_config_prog_path in
10782 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
10785 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10786 for as_dir
in $PATH
10789 test -z "$as_dir" && as_dir
=.
10790 for ac_exec_ext
in '' $ac_executable_extensions; do
10791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10792 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10800 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
10804 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
10805 if test -n "$pkg_config_prog_path"; then
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
10807 $as_echo "$pkg_config_prog_path" >&6; }
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10810 $as_echo "no" >&6; }
10815 try_guile_versions
="guile-2.0"
10817 case "${with_guile}" in
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
10820 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
10823 if test "${pkg_config_prog_path}" = "missing"; then
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
10825 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
10828 pkg_config
=${pkg_config_prog_path}
10829 guile_version_list
=${try_guile_versions}
10832 found_usable_guile
=checking
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
10834 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
10835 for guile_version
in ${guile_version_list}; do
10836 ${pkg_config} --exists ${guile_version} 2>/dev
/null
10837 if test $?
!= 0; then
10840 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
10841 if test $?
!= 0; then
10842 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
10844 new_LIBS
=`${pkg_config} --libs ${guile_version}`
10845 if test $?
!= 0; then
10846 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
10848 found_usable_guile
=${guile_version}
10851 if test "${found_usable_guile}" = "checking"; then
10852 if test "${flag_errors}" = "yes"; then
10853 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
10855 found_usable_guile
=no
10858 if test "${found_usable_guile}" != no
; then
10859 save_CPPFLAGS
=$CPPFLAGS
10861 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10862 LIBS
="$LIBS $new_LIBS"
10863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10864 /* end confdefs.h. */
10865 #include "libguile.h"
10874 if ac_fn_c_try_link
"$LINENO"; then :
10876 GUILE_CPPFLAGS
=$new_CPPFLAGS
10877 GUILE_LIBS
=$new_LIBS
10879 found_usable_guile
=no
10881 rm -f core conftest.err conftest.
$ac_objext \
10882 conftest
$ac_exeext conftest.
$ac_ext
10883 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
10884 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
10886 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
10891 CPPFLAGS
=$save_CPPFLAGS
10893 if test "${found_usable_guile}" = no
; then
10894 if test "${flag_errors}" = yes; then
10895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10897 as_fn_error
"linking guile version ${guile_version} test program failed
10898 See \`config.log' for more details." "$LINENO" 5; }
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
10903 $as_echo "${found_usable_guile}" >&6; }
10908 if test "${pkg_config_prog_path}" = "missing"; then
10909 as_fn_error
"pkg-config not found" "$LINENO" 5
10912 pkg_config
=${pkg_config_prog_path}
10913 guile_version_list
=${try_guile_versions}
10916 found_usable_guile
=checking
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
10918 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
10919 for guile_version
in ${guile_version_list}; do
10920 ${pkg_config} --exists ${guile_version} 2>/dev
/null
10921 if test $?
!= 0; then
10924 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
10925 if test $?
!= 0; then
10926 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
10928 new_LIBS
=`${pkg_config} --libs ${guile_version}`
10929 if test $?
!= 0; then
10930 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
10932 found_usable_guile
=${guile_version}
10935 if test "${found_usable_guile}" = "checking"; then
10936 if test "${flag_errors}" = "yes"; then
10937 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
10939 found_usable_guile
=no
10942 if test "${found_usable_guile}" != no
; then
10943 save_CPPFLAGS
=$CPPFLAGS
10945 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10946 LIBS
="$LIBS $new_LIBS"
10947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10948 /* end confdefs.h. */
10949 #include "libguile.h"
10958 if ac_fn_c_try_link
"$LINENO"; then :
10960 GUILE_CPPFLAGS
=$new_CPPFLAGS
10961 GUILE_LIBS
=$new_LIBS
10963 found_usable_guile
=no
10965 rm -f core conftest.err conftest.
$ac_objext \
10966 conftest
$ac_exeext conftest.
$ac_ext
10967 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
10968 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
10970 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
10975 CPPFLAGS
=$save_CPPFLAGS
10977 if test "${found_usable_guile}" = no
; then
10978 if test "${flag_errors}" = yes; then
10979 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10981 as_fn_error
"linking guile version ${guile_version} test program failed
10982 See \`config.log' for more details." "$LINENO" 5; }
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
10987 $as_echo "${found_usable_guile}" >&6; }
10991 if test -x "${with_guile}"; then
10993 pkg_config
=${with_guile}
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" = x
""yes; 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; }
11071 as_fn_error
"Guile config program not executable: ${with_guile}" "$LINENO" 5
11075 # Disallow --with=guile="" and --with-guile=foo/bar.
11076 as_fn_error
"invalid value for --with-guile" "$LINENO" 5
11079 # A space separate list of guile versions to try, in order.
11080 if test "${pkg_config_prog_path}" = "missing"; then
11081 as_fn_error
"pkg-config not found" "$LINENO" 5
11084 pkg_config
=${pkg_config_prog_path}
11085 guile_version_list
=${with_guile}
11088 found_usable_guile
=checking
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11090 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11091 for guile_version
in ${guile_version_list}; do
11092 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11093 if test $?
!= 0; then
11096 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11097 if test $?
!= 0; then
11098 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11100 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11101 if test $?
!= 0; then
11102 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11104 found_usable_guile
=${guile_version}
11107 if test "${found_usable_guile}" = "checking"; then
11108 if test "${flag_errors}" = "yes"; then
11109 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11111 found_usable_guile
=no
11114 if test "${found_usable_guile}" != no
; then
11115 save_CPPFLAGS
=$CPPFLAGS
11117 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11118 LIBS
="$LIBS $new_LIBS"
11119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11120 /* end confdefs.h. */
11121 #include "libguile.h"
11130 if ac_fn_c_try_link
"$LINENO"; then :
11132 GUILE_CPPFLAGS
=$new_CPPFLAGS
11133 GUILE_LIBS
=$new_LIBS
11135 found_usable_guile
=no
11137 rm -f core conftest.err conftest.
$ac_objext \
11138 conftest
$ac_exeext conftest.
$ac_ext
11139 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11140 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
11142 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11147 CPPFLAGS
=$save_CPPFLAGS
11149 if test "${found_usable_guile}" = no
; then
11150 if test "${flag_errors}" = yes; then
11151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11153 as_fn_error
"linking guile version ${guile_version} test program failed
11154 See \`config.log' for more details." "$LINENO" 5; }
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11159 $as_echo "${found_usable_guile}" >&6; }
11164 if test "${have_libguile}" != no
; then
11165 case "${with_guile}" in
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11169 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11170 if test "${ac_cv_guild_program_name+set}" = set; then :
11171 $as_echo_n "(cached) " >&6
11173 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
11175 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11176 # the 'guild' and 'bindir' variables. In that case, try to guess
11177 # what the program name is, at the risk of getting it wrong if
11178 # Guile was configured with '--program-suffix' or similar.
11179 if test "x$ac_cv_guild_program_name" = "x"; then
11180 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
11181 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11186 $as_echo "$ac_cv_guild_program_name" >&6; }
11188 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11189 as_fn_error
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11192 GUILD
="$ac_cv_guild_program_name"
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11199 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11200 if test "${ac_cv_guild_program_name+set}" = set; then :
11201 $as_echo_n "(cached) " >&6
11203 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
11205 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11206 # the 'guild' and 'bindir' variables. In that case, try to guess
11207 # what the program name is, at the risk of getting it wrong if
11208 # Guile was configured with '--program-suffix' or similar.
11209 if test "x$ac_cv_guild_program_name" = "x"; then
11210 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
11211 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11216 $as_echo "$ac_cv_guild_program_name" >&6; }
11218 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11219 as_fn_error
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11222 GUILD
="$ac_cv_guild_program_name"
11229 if test "$cross_compiling" = no
; then
11232 GUILD_TARGET_FLAG
="--target=$host"
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
11239 $as_echo_n "checking whether guild supports this host... " >&6; }
11240 if test "${ac_cv_guild_ok+set}" = set; then :
11241 $as_echo_n "(cached) " >&6
11243 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
11244 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
11251 $as_echo "$ac_cv_guild_ok" >&6; }
11253 if test "$ac_cv_guild_ok" = no
; then
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
11256 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
11260 if test "${have_libguile}" != no
; then
11262 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
11264 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
11265 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
11266 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
11267 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
11268 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
11271 save_CPPFLAGS
="$CPPFLAGS"
11273 CPPFLAGS
="$GUILE_CPPFLAGS"
11274 for ac_func
in scm_new_smob
11276 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
11277 if test "x$ac_cv_func_scm_new_smob" = x
""yes; then :
11278 cat >>confdefs.h
<<_ACEOF
11279 #define HAVE_SCM_NEW_SMOB 1
11286 CPPFLAGS
="$save_CPPFLAGS"
11288 # Even if Guile support is not compiled in, we need to have these files
11290 CONFIG_OBS
="$CONFIG_OBS guile.o"
11291 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
11295 if test "${have_libguile}" != no
; then
11297 HAVE_GUILE_FALSE
='#'
11299 HAVE_GUILE_TRUE
='#'
11304 # --------------------- #
11305 # Check for libmcheck. #
11306 # --------------------- #
11308 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
11309 # but turn it off if Python is enabled with threads, since -lmcheck is
11310 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
11311 # and for releases.
11312 if test \
( "${have_libpython}" = "no" -o "${python_has_threads}" = "no" \
) \
11313 && $development; then
11314 libmcheck_default
=yes
11316 libmcheck_default
=no
11319 # Check whether --enable-libmcheck was given.
11320 if test "${enable_libmcheck+set}" = set; then :
11321 enableval
=$enable_libmcheck; case "${enableval}" in
11322 yes | y
) ENABLE_LIBMCHECK
="yes" ;;
11323 no | n
) ENABLE_LIBMCHECK
="no" ;;
11324 *) as_fn_error
"bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
11329 if test -z "${ENABLE_LIBMCHECK}"; then
11330 ENABLE_LIBMCHECK
=${libmcheck_default}
11333 if test "$ENABLE_LIBMCHECK" = "yes" ; then
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
11335 $as_echo_n "checking for main in -lmcheck... " >&6; }
11336 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
11337 $as_echo_n "(cached) " >&6
11339 ac_check_lib_save_LIBS
=$LIBS
11340 LIBS
="-lmcheck $LIBS"
11341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11342 /* end confdefs.h. */
11353 if ac_fn_c_try_link
"$LINENO"; then :
11354 ac_cv_lib_mcheck_main
=yes
11356 ac_cv_lib_mcheck_main
=no
11358 rm -f core conftest.err conftest.
$ac_objext \
11359 conftest
$ac_exeext conftest.
$ac_ext
11360 LIBS
=$ac_check_lib_save_LIBS
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
11363 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
11364 if test "x$ac_cv_lib_mcheck_main" = x
""yes; then :
11365 cat >>confdefs.h
<<_ACEOF
11366 #define HAVE_LIBMCHECK 1
11369 LIBS
="-lmcheck $LIBS"
11376 if test "$ENABLE_LIBMCHECK" = "yes" \
11377 -a "${have_libpython}" != "no" \
11378 -a "${python_has_threads}" = "yes" ; then
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
11380 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
11384 # Check whether --with-intel_pt was given.
11385 if test "${with_intel_pt+set}" = set; then :
11386 withval
=$with_intel_pt;
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
11392 $as_echo_n "checking whether to use intel pt... " >&6; }
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
11394 $as_echo "$with_intel_pt" >&6; }
11396 if test "${with_intel_pt}" = no
; then
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
11398 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
11401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11402 /* end confdefs.h. */
11404 #include <linux/perf_event.h>
11405 #ifndef PERF_ATTR_SIZE_VER5
11410 if ac_fn_c_try_cpp
"$LINENO"; then :
11415 rm -f conftest.err conftest.
$ac_ext
11416 if test "$perf_event" != yes; then
11417 if test "$with_intel_pt" = yes; then
11418 as_fn_error
"linux/perf_event.h missing or too old" "$LINENO" 5
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
11421 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
11435 acl_save_prefix
="$prefix"
11436 prefix
="$acl_final_prefix"
11437 acl_save_exec_prefix
="$exec_prefix"
11438 exec_prefix
="$acl_final_exec_prefix"
11440 eval additional_includedir
=\"$includedir\"
11441 eval additional_libdir
=\"$libdir\"
11443 exec_prefix
="$acl_save_exec_prefix"
11444 prefix
="$acl_save_prefix"
11447 # Check whether --with-libipt-prefix was given.
11448 if test "${with_libipt_prefix+set}" = set; then :
11449 withval
=$with_libipt_prefix;
11450 if test "X$withval" = "Xno"; then
11453 if test "X$withval" = "X"; then
11455 acl_save_prefix
="$prefix"
11456 prefix
="$acl_final_prefix"
11457 acl_save_exec_prefix
="$exec_prefix"
11458 exec_prefix
="$acl_final_exec_prefix"
11460 eval additional_includedir
=\"$includedir\"
11461 eval additional_libdir
=\"$libdir\"
11463 exec_prefix
="$acl_save_exec_prefix"
11464 prefix
="$acl_save_prefix"
11467 additional_includedir
="$withval/include"
11468 additional_libdir
="$withval/lib"
11479 names_already_handled
=
11480 names_next_round
='ipt '
11481 while test -n "$names_next_round"; do
11482 names_this_round
="$names_next_round"
11484 for name
in $names_this_round; do
11486 for n
in $names_already_handled; do
11487 if test "$n" = "$name"; then
11488 already_handled
=yes
11492 if test -z "$already_handled"; then
11493 names_already_handled
="$names_already_handled $name"
11494 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11495 eval value
=\"\
$HAVE_LIB$uppername\"
11496 if test -n "$value"; then
11497 if test "$value" = yes; then
11498 eval value
=\"\
$LIB$uppername\"
11499 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
11500 eval value
=\"\
$LTLIB$uppername\"
11501 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
11510 if test $use_additional = yes; then
11511 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11512 found_dir
="$additional_libdir"
11513 found_so
="$additional_libdir/lib$name.$shlibext"
11514 if test -f "$additional_libdir/lib$name.la"; then
11515 found_la
="$additional_libdir/lib$name.la"
11518 if test -f "$additional_libdir/lib$name.$libext"; then
11519 found_dir
="$additional_libdir"
11520 found_a
="$additional_libdir/lib$name.$libext"
11521 if test -f "$additional_libdir/lib$name.la"; then
11522 found_la
="$additional_libdir/lib$name.la"
11527 if test "X$found_dir" = "X"; then
11528 for x
in $LDFLAGS $LTLIBIPT; do
11530 acl_save_prefix
="$prefix"
11531 prefix
="$acl_final_prefix"
11532 acl_save_exec_prefix
="$exec_prefix"
11533 exec_prefix
="$acl_final_exec_prefix"
11535 exec_prefix
="$acl_save_exec_prefix"
11536 prefix
="$acl_save_prefix"
11540 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11541 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11543 found_so
="$dir/lib$name.$shlibext"
11544 if test -f "$dir/lib$name.la"; then
11545 found_la
="$dir/lib$name.la"
11548 if test -f "$dir/lib$name.$libext"; then
11550 found_a
="$dir/lib$name.$libext"
11551 if test -f "$dir/lib$name.la"; then
11552 found_la
="$dir/lib$name.la"
11558 if test "X$found_dir" != "X"; then
11563 if test "X$found_dir" != "X"; then
11564 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
11565 if test "X$found_so" != "X"; then
11566 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11567 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11570 for x
in $ltrpathdirs; do
11571 if test "X$x" = "X$found_dir"; then
11576 if test -z "$haveit"; then
11577 ltrpathdirs
="$ltrpathdirs $found_dir"
11579 if test "$hardcode_direct" = yes; then
11580 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11582 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11583 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11585 for x
in $rpathdirs; do
11586 if test "X$x" = "X$found_dir"; then
11591 if test -z "$haveit"; then
11592 rpathdirs
="$rpathdirs $found_dir"
11596 for x
in $LDFLAGS $LIBIPT; do
11598 acl_save_prefix
="$prefix"
11599 prefix
="$acl_final_prefix"
11600 acl_save_exec_prefix
="$exec_prefix"
11601 exec_prefix
="$acl_final_exec_prefix"
11603 exec_prefix
="$acl_save_exec_prefix"
11604 prefix
="$acl_save_prefix"
11606 if test "X$x" = "X-L$found_dir"; then
11611 if test -z "$haveit"; then
11612 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
11614 if test "$hardcode_minus_L" != no
; then
11615 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11617 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
11623 if test "X$found_a" != "X"; then
11624 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
11626 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
11629 additional_includedir
=
11630 case "$found_dir" in
11632 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11633 additional_includedir
="$basedir/include"
11636 if test "X$additional_includedir" != "X"; then
11637 if test "X$additional_includedir" != "X/usr/include"; then
11639 if test "X$additional_includedir" = "X/usr/local/include"; then
11640 if test -n "$GCC"; then
11642 linux
*) haveit
=yes;;
11646 if test -z "$haveit"; then
11647 for x
in $CPPFLAGS $INCIPT; do
11649 acl_save_prefix
="$prefix"
11650 prefix
="$acl_final_prefix"
11651 acl_save_exec_prefix
="$exec_prefix"
11652 exec_prefix
="$acl_final_exec_prefix"
11654 exec_prefix
="$acl_save_exec_prefix"
11655 prefix
="$acl_save_prefix"
11657 if test "X$x" = "X-I$additional_includedir"; then
11662 if test -z "$haveit"; then
11663 if test -d "$additional_includedir"; then
11664 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
11670 if test -n "$found_la"; then
11671 save_libdir
="$libdir"
11672 case "$found_la" in
11673 */* |
*\\*) .
"$found_la" ;;
11674 *) .
"./$found_la" ;;
11676 libdir
="$save_libdir"
11677 for dep
in $dependency_libs; do
11680 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11681 if test "X$additional_libdir" != "X/usr/lib"; then
11683 if test "X$additional_libdir" = "X/usr/local/lib"; then
11684 if test -n "$GCC"; then
11686 linux
*) haveit
=yes;;
11690 if test -z "$haveit"; then
11692 for x
in $LDFLAGS $LIBIPT; do
11694 acl_save_prefix
="$prefix"
11695 prefix
="$acl_final_prefix"
11696 acl_save_exec_prefix
="$exec_prefix"
11697 exec_prefix
="$acl_final_exec_prefix"
11699 exec_prefix
="$acl_save_exec_prefix"
11700 prefix
="$acl_save_prefix"
11702 if test "X$x" = "X-L$additional_libdir"; then
11707 if test -z "$haveit"; then
11708 if test -d "$additional_libdir"; then
11709 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
11713 for x
in $LDFLAGS $LTLIBIPT; do
11715 acl_save_prefix
="$prefix"
11716 prefix
="$acl_final_prefix"
11717 acl_save_exec_prefix
="$exec_prefix"
11718 exec_prefix
="$acl_final_exec_prefix"
11720 exec_prefix
="$acl_save_exec_prefix"
11721 prefix
="$acl_save_prefix"
11723 if test "X$x" = "X-L$additional_libdir"; then
11728 if test -z "$haveit"; then
11729 if test -d "$additional_libdir"; then
11730 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
11737 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11738 if test "$enable_rpath" != no
; then
11740 for x
in $rpathdirs; do
11741 if test "X$x" = "X$dir"; then
11746 if test -z "$haveit"; then
11747 rpathdirs
="$rpathdirs $dir"
11750 for x
in $ltrpathdirs; do
11751 if test "X$x" = "X$dir"; then
11756 if test -z "$haveit"; then
11757 ltrpathdirs
="$ltrpathdirs $dir"
11762 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11765 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11768 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
11769 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
11775 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
11776 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
11782 if test "X$rpathdirs" != "X"; then
11783 if test -n "$hardcode_libdir_separator"; then
11785 for found_dir
in $rpathdirs; do
11786 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11788 acl_save_libdir
="$libdir"
11790 eval flag
=\"$hardcode_libdir_flag_spec\"
11791 libdir
="$acl_save_libdir"
11792 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
11794 for found_dir
in $rpathdirs; do
11795 acl_save_libdir
="$libdir"
11796 libdir
="$found_dir"
11797 eval flag
=\"$hardcode_libdir_flag_spec\"
11798 libdir
="$acl_save_libdir"
11799 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
11803 if test "X$ltrpathdirs" != "X"; then
11804 for found_dir
in $ltrpathdirs; do
11805 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
11810 ac_save_CPPFLAGS
="$CPPFLAGS"
11812 for element
in $INCIPT; do
11814 for x
in $CPPFLAGS; do
11816 acl_save_prefix
="$prefix"
11817 prefix
="$acl_final_prefix"
11818 acl_save_exec_prefix
="$exec_prefix"
11819 exec_prefix
="$acl_final_exec_prefix"
11821 exec_prefix
="$acl_save_exec_prefix"
11822 prefix
="$acl_save_prefix"
11824 if test "X$x" = "X$element"; then
11829 if test -z "$haveit"; then
11830 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
11836 $as_echo_n "checking for libipt... " >&6; }
11837 if test "${ac_cv_libipt+set}" = set; then :
11838 $as_echo_n "(cached) " >&6
11841 ac_save_LIBS
="$LIBS"
11842 LIBS
="$LIBS $LIBIPT"
11843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11844 /* end confdefs.h. */
11845 #include "intel-pt.h"
11849 pt_insn_alloc_decoder (0);
11854 if ac_fn_c_try_link
"$LINENO"; then :
11859 rm -f core conftest.err conftest.
$ac_objext \
11860 conftest
$ac_exeext conftest.
$ac_ext
11861 LIBS
="$ac_save_LIBS"
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
11865 $as_echo "$ac_cv_libipt" >&6; }
11866 if test "$ac_cv_libipt" = yes; then
11869 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
11872 $as_echo_n "checking how to link with libipt... " >&6; }
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
11874 $as_echo "$LIBIPT" >&6; }
11877 CPPFLAGS
="$ac_save_CPPFLAGS"
11887 if test "$HAVE_LIBIPT" != yes; then
11888 if test "$with_intel_pt" = yes; then
11889 as_fn_error
"libipt is missing or unusable" "$LINENO" 5
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
11892 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
11896 LIBS
="$LIBS $LIBIPT"
11897 for ac_func
in pt_insn_event
11899 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
11900 if test "x$ac_cv_func_pt_insn_event" = x
""yes; then :
11901 cat >>confdefs.h
<<_ACEOF
11902 #define HAVE_PT_INSN_EVENT 1
11908 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
11910 if test "x$ac_cv_member_struct_pt_insn_enabled" = x
""yes; then :
11912 cat >>confdefs.h
<<_ACEOF
11913 #define HAVE_STRUCT_PT_INSN_ENABLED 1
11918 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
11920 if test "x$ac_cv_member_struct_pt_insn_resynced" = x
""yes; then :
11922 cat >>confdefs.h
<<_ACEOF
11923 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
11933 # ------------------------- #
11934 # Checks for header files. #
11935 # ------------------------- #
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11938 $as_echo_n "checking for ANSI C header files... " >&6; }
11939 if test "${ac_cv_header_stdc+set}" = set; then :
11940 $as_echo_n "(cached) " >&6
11942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11943 /* end confdefs.h. */
11944 #include <stdlib.h>
11945 #include <stdarg.h>
11946 #include <string.h>
11957 if ac_fn_c_try_compile
"$LINENO"; then :
11958 ac_cv_header_stdc
=yes
11960 ac_cv_header_stdc
=no
11962 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11964 if test $ac_cv_header_stdc = yes; then
11965 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11967 /* end confdefs.h. */
11968 #include <string.h>
11971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11972 $EGREP "memchr" >/dev
/null
2>&1; then :
11975 ac_cv_header_stdc
=no
11981 if test $ac_cv_header_stdc = yes; then
11982 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11984 /* end confdefs.h. */
11985 #include <stdlib.h>
11988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11989 $EGREP "free" >/dev
/null
2>&1; then :
11992 ac_cv_header_stdc
=no
11998 if test $ac_cv_header_stdc = yes; then
11999 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12000 if test "$cross_compiling" = yes; then :
12003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12004 /* end confdefs.h. */
12006 #include <stdlib.h>
12007 #if ((' ' & 0x0FF) == 0x020)
12008 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12009 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12011 # define ISLOWER(c) \
12012 (('a' <= (c) && (c) <= 'i') \
12013 || ('j' <= (c) && (c) <= 'r') \
12014 || ('s' <= (c) && (c) <= 'z'))
12015 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12018 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12023 for (i = 0; i < 256; i++)
12024 if (XOR (islower (i), ISLOWER (i))
12025 || toupper (i) != TOUPPER (i))
12030 if ac_fn_c_try_run
"$LINENO"; then :
12033 ac_cv_header_stdc
=no
12035 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12036 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12042 $as_echo "$ac_cv_header_stdc" >&6; }
12043 if test $ac_cv_header_stdc = yes; then
12045 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12049 # elf_hp.h is for HP/UX 64-bit shared library support.
12050 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
12053 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
12054 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
12055 sys
/reg.h sys
/debugreg.h sys
/select.h sys
/syscall.h \
12056 termios.h elf_hp.h \
12059 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12060 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12061 eval as_val
=\$
$as_ac_Header
12062 if test "x$as_val" = x
""yes; then :
12063 cat >>confdefs.h
<<_ACEOF
12064 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12071 for ac_header
in sys
/proc.h
12073 ac_fn_c_check_header_compile
"$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
12074 # include <sys/param.h>
12078 if test "x$ac_cv_header_sys_proc_h" = x
""yes; then :
12079 cat >>confdefs.h
<<_ACEOF
12080 #define HAVE_SYS_PROC_H 1
12087 for ac_header
in sys
/user.h
12089 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
12090 # include <sys/param.h>
12094 if test "x$ac_cv_header_sys_user_h" = x
""yes; then :
12095 cat >>confdefs.h
<<_ACEOF
12096 #define HAVE_SYS_USER_H 1
12104 for ac_header
in curses.h cursesX.h ncurses.h ncursesw
/ncurses.h ncurses
/ncurses.h ncurses
/term.h
12106 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12107 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12108 eval as_val
=\$
$as_ac_Header
12109 if test "x$as_val" = x
""yes; then :
12110 cat >>confdefs.h
<<_ACEOF
12111 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12118 for ac_header
in term.h
12120 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
12121 # include <curses.h>
12125 if test "x$ac_cv_header_term_h" = x
""yes; then :
12126 cat >>confdefs.h
<<_ACEOF
12127 #define HAVE_TERM_H 1
12135 # ------------------------- #
12136 # Checks for declarations. #
12137 # ------------------------- #
12140 # Check for presence and size of long long.
12141 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12142 if test "x$ac_cv_type_long_long" = x
""yes; then :
12144 cat >>confdefs.h
<<_ACEOF
12145 #define HAVE_LONG_LONG 1
12148 # The cast to long int works around a bug in the HP C Compiler
12149 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12150 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12151 # This bug is HP SR number 8606223364.
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12153 $as_echo_n "checking size of long long... " >&6; }
12154 if test "${ac_cv_sizeof_long_long+set}" = set; then :
12155 $as_echo_n "(cached) " >&6
12157 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12160 if test "$ac_cv_type_long_long" = yes; then
12161 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12163 { as_fn_set_status
77
12164 as_fn_error
"cannot compute sizeof (long long)
12165 See \`config.log' for more details." "$LINENO" 5; }; }
12167 ac_cv_sizeof_long_long
=0
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12173 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12177 cat >>confdefs.h
<<_ACEOF
12178 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12185 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
12186 if test "x$ac_cv_have_decl_basename_char_p_" = x
""yes; then :
12192 cat >>confdefs.h
<<_ACEOF
12193 #define HAVE_DECL_BASENAME $ac_have_decl
12195 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
12196 if test "x$ac_cv_have_decl_ffs" = x
""yes; then :
12202 cat >>confdefs.h
<<_ACEOF
12203 #define HAVE_DECL_FFS $ac_have_decl
12205 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12206 if test "x$ac_cv_have_decl_asprintf" = x
""yes; then :
12212 cat >>confdefs.h
<<_ACEOF
12213 #define HAVE_DECL_ASPRINTF $ac_have_decl
12215 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12216 if test "x$ac_cv_have_decl_vasprintf" = x
""yes; then :
12222 cat >>confdefs.h
<<_ACEOF
12223 #define HAVE_DECL_VASPRINTF $ac_have_decl
12225 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12226 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
12232 cat >>confdefs.h
<<_ACEOF
12233 #define HAVE_DECL_SNPRINTF $ac_have_decl
12235 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12236 if test "x$ac_cv_have_decl_vsnprintf" = x
""yes; then :
12242 cat >>confdefs.h
<<_ACEOF
12243 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12246 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
12247 if test "x$ac_cv_have_decl_strtol" = x
""yes; then :
12253 cat >>confdefs.h
<<_ACEOF
12254 #define HAVE_DECL_STRTOL $ac_have_decl
12256 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
12257 if test "x$ac_cv_have_decl_strtoul" = x
""yes; then :
12263 cat >>confdefs.h
<<_ACEOF
12264 #define HAVE_DECL_STRTOUL $ac_have_decl
12266 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
12267 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
12273 cat >>confdefs.h
<<_ACEOF
12274 #define HAVE_DECL_STRTOLL $ac_have_decl
12276 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
12277 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
12283 cat >>confdefs.h
<<_ACEOF
12284 #define HAVE_DECL_STRTOULL $ac_have_decl
12287 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12288 if test "x$ac_cv_have_decl_strverscmp" = x
""yes; then :
12294 cat >>confdefs.h
<<_ACEOF
12295 #define HAVE_DECL_STRVERSCMP $ac_have_decl
12300 ac_fn_c_check_decl
"$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
12301 if test "x$ac_cv_have_decl_free" = x
""yes; then :
12307 cat >>confdefs.h
<<_ACEOF
12308 #define HAVE_DECL_FREE $ac_have_decl
12310 ac_fn_c_check_decl
"$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
12311 if test "x$ac_cv_have_decl_malloc" = x
""yes; then :
12317 cat >>confdefs.h
<<_ACEOF
12318 #define HAVE_DECL_MALLOC $ac_have_decl
12320 ac_fn_c_check_decl
"$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
12321 if test "x$ac_cv_have_decl_realloc" = x
""yes; then :
12327 cat >>confdefs.h
<<_ACEOF
12328 #define HAVE_DECL_REALLOC $ac_have_decl
12330 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12331 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
12337 cat >>confdefs.h
<<_ACEOF
12338 #define HAVE_DECL_SNPRINTF $ac_have_decl
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12343 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12344 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
12345 $as_echo_n "(cached) " >&6
12347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12348 /* end confdefs.h. */
12349 #include <locale.h>
12358 if ac_fn_c_try_link
"$LINENO"; then :
12359 am_cv_val_LC_MESSAGES
=yes
12361 am_cv_val_LC_MESSAGES
=no
12363 rm -f core conftest.err conftest.
$ac_objext \
12364 conftest
$ac_exeext conftest.
$ac_ext
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12367 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12368 if test $am_cv_val_LC_MESSAGES = yes; then
12370 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12375 # ----------------------- #
12376 # Checks for structures. #
12377 # ----------------------- #
12379 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
12380 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then :
12382 cat >>confdefs.h
<<_ACEOF
12383 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12388 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
12389 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then :
12391 cat >>confdefs.h
<<_ACEOF
12392 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12399 # ------------------ #
12400 # Checks for types. #
12401 # ------------------ #
12403 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12404 #include <sys/socket.h>
12407 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
12409 cat >>confdefs.h
<<_ACEOF
12410 #define HAVE_SOCKLEN_T 1
12417 # ------------------------------------- #
12418 # Checks for compiler characteristics. #
12419 # ------------------------------------- #
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12422 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12423 if test "${ac_cv_c_const+set}" = set; then :
12424 $as_echo_n "(cached) " >&6
12426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12427 /* end confdefs.h. */
12432 /* FIXME: Include the comments suggested by Paul. */
12433 #ifndef __cplusplus
12434 /* Ultrix mips cc rejects this. */
12435 typedef int charset[2];
12437 /* SunOS 4.1.1 cc rejects this. */
12438 char const *const *pcpcc;
12440 /* NEC SVR4.0.2 mips cc rejects this. */
12441 struct point {int x, y;};
12442 static struct point const zero = {0,0};
12443 /* AIX XL C 1.02.0.0 rejects this.
12444 It does not let you subtract one const X* pointer from another in
12445 an arm of an if-expression whose if-part is not a constant
12447 const char *g = "string";
12448 pcpcc = &g + (g ? g-g : 0);
12449 /* HPUX 7.0 cc rejects these. */
12451 ppc = (char**) pcpcc;
12452 pcpcc = (char const *const *) ppc;
12453 { /* SCO 3.2v4 cc rejects this. */
12455 char const *s = 0 ? (char *) 0 : (char const *) 0;
12460 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12461 int x[] = {25, 17};
12462 const int *foo = &x[0];
12465 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12466 typedef const int *iptr;
12470 { /* AIX XL C 1.02.0.0 rejects this saying
12471 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12472 struct s { int j; const int *ap[3]; };
12473 struct s *b; b->j = 5;
12475 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12476 const int foo = 10;
12477 if (!foo) return 0;
12479 return !cs[0] && !zero.x;
12486 if ac_fn_c_try_compile
"$LINENO"; then :
12491 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12494 $as_echo "$ac_cv_c_const" >&6; }
12495 if test $ac_cv_c_const = no
; then
12497 $as_echo "#define const /**/" >>confdefs.h
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12502 $as_echo_n "checking for inline... " >&6; }
12503 if test "${ac_cv_c_inline+set}" = set; then :
12504 $as_echo_n "(cached) " >&6
12507 for ac_kw
in inline __inline__ __inline
; do
12508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12509 /* end confdefs.h. */
12510 #ifndef __cplusplus
12512 static $ac_kw foo_t static_foo () {return 0; }
12513 $ac_kw foo_t foo () {return 0; }
12517 if ac_fn_c_try_compile
"$LINENO"; then :
12518 ac_cv_c_inline
=$ac_kw
12520 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12521 test "$ac_cv_c_inline" != no
&& break
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12526 $as_echo "$ac_cv_c_inline" >&6; }
12528 case $ac_cv_c_inline in
12531 case $ac_cv_c_inline in
12533 *) ac_val
=$ac_cv_c_inline;;
12535 cat >>confdefs.h
<<_ACEOF
12536 #ifndef __cplusplus
12537 #define inline $ac_val
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12544 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12545 if test "${ac_cv_c_bigendian+set}" = set; then :
12546 $as_echo_n "(cached) " >&6
12548 ac_cv_c_bigendian
=unknown
12549 # See if we're dealing with a universal compiler.
12550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12551 /* end confdefs.h. */
12552 #ifndef __APPLE_CC__
12553 not a universal capable compiler
12558 if ac_fn_c_try_compile
"$LINENO"; then :
12560 # Check for potential -arch flags. It is not universal unless
12561 # there are at least two -arch flags with different values.
12564 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12565 if test -n "$ac_prev"; then
12567 i?
86 | x86_64 | ppc | ppc64
)
12568 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12571 ac_cv_c_bigendian
=universal
12577 elif test "x$ac_word" = "x-arch"; then
12582 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12583 if test $ac_cv_c_bigendian = unknown
; then
12584 # See if sys/param.h defines the BYTE_ORDER macro.
12585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12586 /* end confdefs.h. */
12587 #include <sys/types.h>
12588 #include <sys/param.h>
12593 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12594 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12596 bogus endian macros
12603 if ac_fn_c_try_compile
"$LINENO"; then :
12604 # It does; now see whether it defined to BIG_ENDIAN or not.
12605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12606 /* end confdefs.h. */
12607 #include <sys/types.h>
12608 #include <sys/param.h>
12613 #if BYTE_ORDER != BIG_ENDIAN
12621 if ac_fn_c_try_compile
"$LINENO"; then :
12622 ac_cv_c_bigendian
=yes
12624 ac_cv_c_bigendian
=no
12626 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12630 if test $ac_cv_c_bigendian = unknown
; then
12631 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12633 /* end confdefs.h. */
12634 #include <limits.h>
12639 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12640 bogus endian macros
12647 if ac_fn_c_try_compile
"$LINENO"; then :
12648 # It does; now see whether it defined to _BIG_ENDIAN or not.
12649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12650 /* end confdefs.h. */
12651 #include <limits.h>
12656 #ifndef _BIG_ENDIAN
12664 if ac_fn_c_try_compile
"$LINENO"; then :
12665 ac_cv_c_bigendian
=yes
12667 ac_cv_c_bigendian
=no
12669 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12671 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12673 if test $ac_cv_c_bigendian = unknown
; then
12674 # Compile a test program.
12675 if test "$cross_compiling" = yes; then :
12676 # Try to guess by grepping values from an object file.
12677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12678 /* end confdefs.h. */
12679 short int ascii_mm[] =
12680 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12681 short int ascii_ii[] =
12682 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12683 int use_ascii (int i) {
12684 return ascii_mm[i] + ascii_ii[i];
12686 short int ebcdic_ii[] =
12687 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12688 short int ebcdic_mm[] =
12689 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12690 int use_ebcdic (int i) {
12691 return ebcdic_mm[i] + ebcdic_ii[i];
12698 return use_ascii (foo) == use_ebcdic (foo);
12703 if ac_fn_c_try_compile
"$LINENO"; then :
12704 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12705 ac_cv_c_bigendian
=yes
12707 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12708 if test "$ac_cv_c_bigendian" = unknown
; then
12709 ac_cv_c_bigendian
=no
12711 # finding both strings is unlikely to happen, but who knows?
12712 ac_cv_c_bigendian
=unknown
12716 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12719 /* end confdefs.h. */
12720 $ac_includes_default
12725 /* Are we little or big endian? From Harbison&Steele. */
12729 char c[sizeof (long int)];
12732 return u.c[sizeof (long int) - 1] == 1;
12738 if ac_fn_c_try_run
"$LINENO"; then :
12739 ac_cv_c_bigendian
=no
12741 ac_cv_c_bigendian
=yes
12743 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12744 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12750 $as_echo "$ac_cv_c_bigendian" >&6; }
12751 case $ac_cv_c_bigendian in #(
12753 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12759 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12763 as_fn_error
"unknown endianness
12764 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12768 # ------------------------------ #
12769 # Checks for library functions. #
12770 # ------------------------------ #
12772 for ac_header
in stdlib.h unistd.h
12774 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12775 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12776 eval as_val
=\$
$as_ac_Header
12777 if test "x$as_val" = x
""yes; then :
12778 cat >>confdefs.h
<<_ACEOF
12779 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12786 for ac_func
in getpagesize
12788 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12789 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
12790 cat >>confdefs.h
<<_ACEOF
12791 #define HAVE_GETPAGESIZE 1
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12798 $as_echo_n "checking for working mmap... " >&6; }
12799 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12800 $as_echo_n "(cached) " >&6
12802 if test "$cross_compiling" = yes; then :
12803 ac_cv_func_mmap_fixed_mapped
=no
12805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12806 /* end confdefs.h. */
12807 $ac_includes_default
12808 /* malloc might have been renamed as rpl_malloc. */
12811 /* Thanks to Mike Haertel and Jim Avera for this test.
12812 Here is a matrix of mmap possibilities:
12813 mmap private not fixed
12814 mmap private fixed at somewhere currently unmapped
12815 mmap private fixed at somewhere already mapped
12816 mmap shared not fixed
12817 mmap shared fixed at somewhere currently unmapped
12818 mmap shared fixed at somewhere already mapped
12819 For private mappings, we should verify that changes cannot be read()
12820 back from the file, nor mmap's back from the file at a different
12821 address. (There have been systems where private was not correctly
12822 implemented like the infamous i386 svr4.0, and systems where the
12823 VM page cache was not coherent with the file system buffer cache
12824 like early versions of FreeBSD and possibly contemporary NetBSD.)
12825 For shared mappings, we should conversely verify that changes get
12826 propagated back to all the places they're supposed to be.
12828 Grep wants private fixed already mapped.
12829 The main things grep needs to know about mmap are:
12830 * does it exist and is it safe to write into the mmap'd area
12831 * how to use it (BSD variants) */
12834 #include <sys/mman.h>
12836 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12840 /* This mess was copied from the GNU getpagesize.h. */
12841 #ifndef HAVE_GETPAGESIZE
12842 /* Assume that all systems that can run configure have sys/param.h. */
12843 # ifndef HAVE_SYS_PARAM_H
12844 # define HAVE_SYS_PARAM_H 1
12847 # ifdef _SC_PAGESIZE
12848 # define getpagesize() sysconf(_SC_PAGESIZE)
12849 # else /* no _SC_PAGESIZE */
12850 # ifdef HAVE_SYS_PARAM_H
12851 # include <sys/param.h>
12852 # ifdef EXEC_PAGESIZE
12853 # define getpagesize() EXEC_PAGESIZE
12854 # else /* no EXEC_PAGESIZE */
12856 # define getpagesize() NBPG * CLSIZE
12859 # endif /* no CLSIZE */
12860 # else /* no NBPG */
12862 # define getpagesize() NBPC
12863 # else /* no NBPC */
12865 # define getpagesize() PAGESIZE
12866 # endif /* PAGESIZE */
12867 # endif /* no NBPC */
12868 # endif /* no NBPG */
12869 # endif /* no EXEC_PAGESIZE */
12870 # else /* no HAVE_SYS_PARAM_H */
12871 # define getpagesize() 8192 /* punt totally */
12872 # endif /* no HAVE_SYS_PARAM_H */
12873 # endif /* no _SC_PAGESIZE */
12875 #endif /* no HAVE_GETPAGESIZE */
12880 char *data, *data2, *data3;
12884 pagesize = getpagesize ();
12886 /* First, make a file with some known garbage in it. */
12887 data = (char *) malloc (pagesize);
12890 for (i = 0; i < pagesize; ++i)
12891 *(data + i) = rand ();
12893 fd = creat ("conftest.mmap", 0600);
12896 if (write (fd, data, pagesize) != pagesize)
12900 /* Next, try to mmap the file at a fixed address which already has
12901 something else allocated at it. If we can, also make sure that
12902 we see the same garbage. */
12903 fd = open ("conftest.mmap", O_RDWR);
12906 data2 = (char *) malloc (2 * pagesize);
12909 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12910 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12911 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12913 for (i = 0; i < pagesize; ++i)
12914 if (*(data + i) != *(data2 + i))
12917 /* Finally, make sure that changes to the mapped area do not
12918 percolate back to the file as seen by read(). (This is a bug on
12919 some variants of i386 svr4.0.) */
12920 for (i = 0; i < pagesize; ++i)
12921 *(data2 + i) = *(data2 + i) + 1;
12922 data3 = (char *) malloc (pagesize);
12925 if (read (fd, data3, pagesize) != pagesize)
12927 for (i = 0; i < pagesize; ++i)
12928 if (*(data + i) != *(data3 + i))
12934 if ac_fn_c_try_run
"$LINENO"; then :
12935 ac_cv_func_mmap_fixed_mapped
=yes
12937 ac_cv_func_mmap_fixed_mapped
=no
12939 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12940 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12945 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12946 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12948 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12951 rm -f conftest.mmap
12953 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12954 if test "x$ac_cv_type_pid_t" = x
""yes; then :
12958 cat >>confdefs.h
<<_ACEOF
12964 for ac_header
in vfork.h
12966 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12967 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
12968 cat >>confdefs.h
<<_ACEOF
12969 #define HAVE_VFORK_H 1
12976 for ac_func
in fork vfork
12978 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12979 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12980 eval as_val
=\$
$as_ac_var
12981 if test "x$as_val" = x
""yes; then :
12982 cat >>confdefs.h
<<_ACEOF
12983 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12989 if test "x$ac_cv_func_fork" = xyes
; then
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12991 $as_echo_n "checking for working fork... " >&6; }
12992 if test "${ac_cv_func_fork_works+set}" = set; then :
12993 $as_echo_n "(cached) " >&6
12995 if test "$cross_compiling" = yes; then :
12996 ac_cv_func_fork_works
=cross
12998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12999 /* end confdefs.h. */
13000 $ac_includes_default
13005 /* By Ruediger Kuhlmann. */
13006 return fork () < 0;
13012 if ac_fn_c_try_run
"$LINENO"; then :
13013 ac_cv_func_fork_works
=yes
13015 ac_cv_func_fork_works
=no
13017 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13018 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13023 $as_echo "$ac_cv_func_fork_works" >&6; }
13026 ac_cv_func_fork_works
=$ac_cv_func_fork
13028 if test "x$ac_cv_func_fork_works" = xcross
; then
13030 *-*-amigaos* |
*-*-msdosdjgpp*)
13031 # Override, as these systems have only a dummy fork() stub
13032 ac_cv_func_fork_works
=no
13035 ac_cv_func_fork_works
=yes
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13039 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13041 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13042 if test "x$ac_cv_func_vfork" = xyes
; then
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13044 $as_echo_n "checking for working vfork... " >&6; }
13045 if test "${ac_cv_func_vfork_works+set}" = set; then :
13046 $as_echo_n "(cached) " >&6
13048 if test "$cross_compiling" = yes; then :
13049 ac_cv_func_vfork_works
=cross
13051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13052 /* end confdefs.h. */
13053 /* Thanks to Paul Eggert for this test. */
13054 $ac_includes_default
13055 #include <sys/wait.h>
13056 #ifdef HAVE_VFORK_H
13057 # include <vfork.h>
13059 /* On some sparc systems, changes by the child to local and incoming
13060 argument registers are propagated back to the parent. The compiler
13061 is told about this with #include <vfork.h>, but some compilers
13062 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13063 static variable whose address is put into a register that is
13064 clobbered by the vfork. */
13067 sparc_address_test (int arg)
13069 sparc_address_test (arg) int arg;
13072 static pid_t child;
13090 pid_t parent = getpid ();
13093 sparc_address_test (0);
13098 /* Here is another test for sparc vfork register problems. This
13099 test uses lots of local variables, at least as many local
13100 variables as main has allocated so far including compiler
13101 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13102 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13103 reuse the register of parent for one of the local variables,
13104 since it will think that parent can't possibly be used any more
13105 in this routine. Assigning to the local variable will thus
13106 munge parent in the parent process. */
13108 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13109 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13110 /* Convince the compiler that p..p7 are live; otherwise, it might
13111 use the same hardware register for all 8 local variables. */
13112 if (p != p1 || p != p2 || p != p3 || p != p4
13113 || p != p5 || p != p6 || p != p7)
13116 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13117 from child file descriptors. If the child closes a descriptor
13118 before it execs or exits, this munges the parent's descriptor
13119 as well. Test for this by closing stdout in the child. */
13120 _exit(close(fileno(stdout)) != 0);
13125 while (wait(&status) != child)
13128 /* Was there some problem with vforking? */
13131 /* Did the child fail? (This shouldn't happen.) */
13134 /* Did the vfork/compiler bug occur? */
13135 || parent != getpid()
13137 /* Did the file descriptor bug occur? */
13138 || fstat(fileno(stdout), &st) != 0
13143 if ac_fn_c_try_run
"$LINENO"; then :
13144 ac_cv_func_vfork_works
=yes
13146 ac_cv_func_vfork_works
=no
13148 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13149 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13154 $as_echo "$ac_cv_func_vfork_works" >&6; }
13157 if test "x$ac_cv_func_fork_works" = xcross
; then
13158 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13160 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13163 if test "x$ac_cv_func_vfork_works" = xyes
; then
13165 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13169 $as_echo "#define vfork fork" >>confdefs.h
13172 if test "x$ac_cv_func_fork_works" = xyes
; then
13174 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13178 for ac_func
in getauxval getrusage getuid getgid \
13179 pipe poll pread pread64 pwrite resize_term \
13180 sbrk setpgid setpgrp setsid \
13181 sigaction sigprocmask sigsetmask socketpair \
13182 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
13183 setrlimit getrlimit posix_madvise waitpid \
13184 ptrace64 sigaltstack mkdtemp setns
13186 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13187 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13188 eval as_val
=\$
$as_ac_var
13189 if test "x$as_val" = x
""yes; then :
13190 cat >>confdefs.h
<<_ACEOF
13191 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13199 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13200 if test "${am_cv_langinfo_codeset+set}" = set; then :
13201 $as_echo_n "(cached) " >&6
13203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13204 /* end confdefs.h. */
13205 #include <langinfo.h>
13209 char* cs = nl_langinfo(CODESET);
13214 if ac_fn_c_try_link
"$LINENO"; then :
13215 am_cv_langinfo_codeset
=yes
13217 am_cv_langinfo_codeset
=no
13219 rm -f core conftest.err conftest.
$ac_objext \
13220 conftest
$ac_exeext conftest.
$ac_ext
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13224 $as_echo "$am_cv_langinfo_codeset" >&6; }
13225 if test $am_cv_langinfo_codeset = yes; then
13227 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13233 $as_echo_n "checking for ANSI C header files... " >&6; }
13234 if test "${ac_cv_header_stdc+set}" = set; then :
13235 $as_echo_n "(cached) " >&6
13237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13238 /* end confdefs.h. */
13239 #include <stdlib.h>
13240 #include <stdarg.h>
13241 #include <string.h>
13252 if ac_fn_c_try_compile
"$LINENO"; then :
13253 ac_cv_header_stdc
=yes
13255 ac_cv_header_stdc
=no
13257 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13259 if test $ac_cv_header_stdc = yes; then
13260 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13262 /* end confdefs.h. */
13263 #include <string.h>
13266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13267 $EGREP "memchr" >/dev
/null
2>&1; then :
13270 ac_cv_header_stdc
=no
13276 if test $ac_cv_header_stdc = yes; then
13277 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13279 /* end confdefs.h. */
13280 #include <stdlib.h>
13283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13284 $EGREP "free" >/dev
/null
2>&1; then :
13287 ac_cv_header_stdc
=no
13293 if test $ac_cv_header_stdc = yes; then
13294 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13295 if test "$cross_compiling" = yes; then :
13298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13299 /* end confdefs.h. */
13301 #include <stdlib.h>
13302 #if ((' ' & 0x0FF) == 0x020)
13303 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13304 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13306 # define ISLOWER(c) \
13307 (('a' <= (c) && (c) <= 'i') \
13308 || ('j' <= (c) && (c) <= 'r') \
13309 || ('s' <= (c) && (c) <= 'z'))
13310 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13313 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13318 for (i = 0; i < 256; i++)
13319 if (XOR (islower (i), ISLOWER (i))
13320 || toupper (i) != TOUPPER (i))
13325 if ac_fn_c_try_run
"$LINENO"; then :
13328 ac_cv_header_stdc
=no
13330 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13331 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13337 $as_echo "$ac_cv_header_stdc" >&6; }
13338 if test $ac_cv_header_stdc = yes; then
13340 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13344 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13345 # for constant arguments. Useless!
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13347 $as_echo_n "checking for working alloca.h... " >&6; }
13348 if test "${ac_cv_working_alloca_h+set}" = set; then :
13349 $as_echo_n "(cached) " >&6
13351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13352 /* end confdefs.h. */
13353 #include <alloca.h>
13357 char *p = (char *) alloca (2 * sizeof (int));
13363 if ac_fn_c_try_link
"$LINENO"; then :
13364 ac_cv_working_alloca_h
=yes
13366 ac_cv_working_alloca_h
=no
13368 rm -f core conftest.err conftest.
$ac_objext \
13369 conftest
$ac_exeext conftest.
$ac_ext
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13372 $as_echo "$ac_cv_working_alloca_h" >&6; }
13373 if test $ac_cv_working_alloca_h = yes; then
13375 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13380 $as_echo_n "checking for alloca... " >&6; }
13381 if test "${ac_cv_func_alloca_works+set}" = set; then :
13382 $as_echo_n "(cached) " >&6
13384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13385 /* end confdefs.h. */
13387 # define alloca __builtin_alloca
13390 # include <malloc.h>
13391 # define alloca _alloca
13393 # ifdef HAVE_ALLOCA_H
13394 # include <alloca.h>
13399 # ifndef alloca /* predefined by HP cc +Olibcalls */
13410 char *p = (char *) alloca (1);
13416 if ac_fn_c_try_link
"$LINENO"; then :
13417 ac_cv_func_alloca_works
=yes
13419 ac_cv_func_alloca_works
=no
13421 rm -f core conftest.err conftest.
$ac_objext \
13422 conftest
$ac_exeext conftest.
$ac_ext
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13425 $as_echo "$ac_cv_func_alloca_works" >&6; }
13427 if test $ac_cv_func_alloca_works = yes; then
13429 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13432 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13433 # that cause trouble. Some versions do not even contain alloca or
13434 # contain a buggy version. If you still want to use their alloca,
13435 # use ar to extract alloca.o from them instead of compiling alloca.c.
13437 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
13439 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13443 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13444 if test "${ac_cv_os_cray+set}" = set; then :
13445 $as_echo_n "(cached) " >&6
13447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13448 /* end confdefs.h. */
13449 #if defined CRAY && ! defined CRAY2
13456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13457 $EGREP "webecray" >/dev
/null
2>&1; then :
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13466 $as_echo "$ac_cv_os_cray" >&6; }
13467 if test $ac_cv_os_cray = yes; then
13468 for ac_func
in _getb67 GETB67 getb67
; do
13469 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13470 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13471 eval as_val
=\$
$as_ac_var
13472 if test "x$as_val" = x
""yes; then :
13474 cat >>confdefs.h
<<_ACEOF
13475 #define CRAY_STACKSEG_END $ac_func
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13485 $as_echo_n "checking stack direction for C alloca... " >&6; }
13486 if test "${ac_cv_c_stack_direction+set}" = set; then :
13487 $as_echo_n "(cached) " >&6
13489 if test "$cross_compiling" = yes; then :
13490 ac_cv_c_stack_direction
=0
13492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13493 /* end confdefs.h. */
13494 $ac_includes_default
13496 find_stack_direction ()
13498 static char *addr = 0;
13503 return find_stack_direction ();
13506 return (&dummy > addr) ? 1 : -1;
13512 return find_stack_direction () < 0;
13515 if ac_fn_c_try_run
"$LINENO"; then :
13516 ac_cv_c_stack_direction
=1
13518 ac_cv_c_stack_direction
=-1
13520 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13521 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13526 $as_echo "$ac_cv_c_stack_direction" >&6; }
13527 cat >>confdefs.h
<<_ACEOF
13528 #define STACK_DIRECTION $ac_cv_c_stack_direction
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13537 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13538 if test "${am_cv_langinfo_codeset+set}" = set; then :
13539 $as_echo_n "(cached) " >&6
13541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13542 /* end confdefs.h. */
13543 #include <langinfo.h>
13547 char* cs = nl_langinfo(CODESET);
13552 if ac_fn_c_try_link
"$LINENO"; then :
13553 am_cv_langinfo_codeset
=yes
13555 am_cv_langinfo_codeset
=no
13557 rm -f core conftest.err conftest.
$ac_objext \
13558 conftest
$ac_exeext conftest.
$ac_ext
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13562 $as_echo "$am_cv_langinfo_codeset" >&6; }
13563 if test $am_cv_langinfo_codeset = yes; then
13565 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13570 for ac_header
in linux
/perf_event.h locale.h memory.h signal.h sys
/resource.h sys
/socket.h sys
/syscall.h sys
/un.h sys
/wait.h thread_db.h
wait.h termios.h
13572 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13573 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13574 eval as_val
=\$
$as_ac_Header
13575 if test "x$as_val" = x
""yes; then :
13576 cat >>confdefs.h
<<_ACEOF
13577 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13585 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair sigaction
13587 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13588 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13589 eval as_val
=\$
$as_ac_var
13590 if test "x$as_val" = x
""yes; then :
13591 cat >>confdefs.h
<<_ACEOF
13592 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13599 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
13600 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
13606 cat >>confdefs.h
<<_ACEOF
13607 #define HAVE_DECL_STRERROR $ac_have_decl
13609 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13610 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
13616 cat >>confdefs.h
<<_ACEOF
13617 #define HAVE_DECL_STRSTR $ac_have_decl
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
13622 $as_echo_n "checking for sigsetjmp... " >&6; }
13623 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
13624 $as_echo_n "(cached) " >&6
13626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13627 /* end confdefs.h. */
13629 #include <setjmp.h>
13634 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
13639 if ac_fn_c_try_compile
"$LINENO"; then :
13640 gdb_cv_func_sigsetjmp
=yes
13642 gdb_cv_func_sigsetjmp
=no
13644 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
13647 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
13648 if test $gdb_cv_func_sigsetjmp = yes; then
13650 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
13655 # Check the return and argument types of ptrace.
13658 for ac_header
in sys
/ptrace.h ptrace.h
13660 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13661 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13662 eval as_val
=\$
$as_ac_Header
13663 if test "x$as_val" = x
""yes; then :
13664 cat >>confdefs.h
<<_ACEOF
13665 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13673 gdb_ptrace_headers
='
13674 #include <sys/types.h>
13675 #if HAVE_SYS_PTRACE_H
13676 # include <sys/ptrace.h>
13679 # include <unistd.h>
13682 # There is no point in checking if we don't have a prototype.
13683 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
13685 if test "x$ac_cv_have_decl_ptrace" = x
""yes; then :
13691 cat >>confdefs.h
<<_ACEOF
13692 #define HAVE_DECL_PTRACE $ac_have_decl
13694 if test $ac_have_decl = 1; then :
13698 : ${gdb_cv_func_ptrace_ret='int'}
13699 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13703 # Check return type. Varargs (used on GNU/Linux) conflict with the
13704 # empty argument list, so check for that explicitly.
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
13706 $as_echo_n "checking return type of ptrace... " >&6; }
13707 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
13708 $as_echo_n "(cached) " >&6
13710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13711 /* end confdefs.h. */
13712 $gdb_ptrace_headers
13716 extern long ptrace (enum __ptrace_request, ...);
13721 if ac_fn_c_try_compile
"$LINENO"; then :
13722 gdb_cv_func_ptrace_ret
='long'
13724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13725 /* end confdefs.h. */
13726 $gdb_ptrace_headers
13730 extern int ptrace ();
13735 if ac_fn_c_try_compile
"$LINENO"; then :
13736 gdb_cv_func_ptrace_ret
='int'
13738 gdb_cv_func_ptrace_ret
='long'
13740 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13742 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
13745 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
13747 cat >>confdefs.h
<<_ACEOF
13748 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
13751 # Check argument types.
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
13753 $as_echo_n "checking types of arguments for ptrace... " >&6; }
13754 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
13755 $as_echo_n "(cached) " >&6
13758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13759 /* end confdefs.h. */
13760 $gdb_ptrace_headers
13764 extern long ptrace (enum __ptrace_request, ...);
13769 if ac_fn_c_try_compile
"$LINENO"; then :
13770 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
13773 for gdb_arg1
in 'int' 'long'; do
13774 for gdb_arg2
in 'pid_t' 'int' 'long'; do
13775 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
13776 for gdb_arg4
in 'int' 'long' 'void *'; do
13777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13778 /* end confdefs.h. */
13779 $gdb_ptrace_headers
13784 extern $gdb_cv_func_ptrace_ret
13785 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
13791 if ac_fn_c_try_compile
"$LINENO"; then :
13792 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
13795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13796 for gdb_arg5
in 'int *' 'int' 'long'; do
13797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13798 /* end confdefs.h. */
13799 $gdb_ptrace_headers
13804 extern $gdb_cv_func_ptrace_ret
13805 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
13811 if ac_fn_c_try_compile
"$LINENO"; then :
13813 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
13816 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13822 # Provide a safe default value.
13823 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13826 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
13829 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
13830 ac_save_IFS
=$IFS; IFS
=','
13831 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
13835 cat >>confdefs.h
<<_ACEOF
13836 #define PTRACE_TYPE_ARG1 $1
13840 cat >>confdefs.h
<<_ACEOF
13841 #define PTRACE_TYPE_ARG3 $3
13845 cat >>confdefs.h
<<_ACEOF
13846 #define PTRACE_TYPE_ARG4 $4
13849 if test -n "$5"; then
13851 cat >>confdefs.h
<<_ACEOF
13852 #define PTRACE_TYPE_ARG5 $5
13858 if test "$cross_compiling" = no
; then
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
13860 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
13861 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
13862 $as_echo_n "(cached) " >&6
13864 if test "$cross_compiling" = yes; then :
13865 as_fn_error
"cannot check setpgrp when cross compiling" "$LINENO" 5
13867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13868 /* end confdefs.h. */
13869 $ac_includes_default
13873 /* If this system has a BSD-style setpgrp which takes arguments,
13874 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
13875 exit successfully. */
13876 return setpgrp (1,1) != -1;
13881 if ac_fn_c_try_run
"$LINENO"; then :
13882 ac_cv_func_setpgrp_void
=no
13884 ac_cv_func_setpgrp_void
=yes
13886 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13887 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
13892 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
13893 if test $ac_cv_func_setpgrp_void = yes; then
13895 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
13901 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
13902 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
13903 $as_echo_n "(cached) " >&6
13905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13906 /* end confdefs.h. */
13908 #include <unistd.h>
13914 if (setpgrp(1,1) == -1)
13923 if ac_fn_c_try_compile
"$LINENO"; then :
13924 ac_cv_func_setpgrp_void
=no
13926 ac_cv_func_setpgrp_void
=yes
13928 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
13931 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
13932 if test $ac_cv_func_setpgrp_void = yes; then
13933 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
13938 # Assume we'll default to using the included libiberty regex.
13939 gdb_use_included_regex
=yes
13941 # However, if the system regex is GNU regex, then default to *not*
13942 # using the included regex.
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
13944 $as_echo_n "checking for GNU regex... " >&6; }
13945 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
13946 $as_echo_n "(cached) " >&6
13948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13949 /* end confdefs.h. */
13950 #include <gnu-versions.h>
13954 #define REGEX_INTERFACE_VERSION 1
13955 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
13956 # error "Version mismatch"
13962 if ac_fn_c_try_compile
"$LINENO"; then :
13963 gdb_cv_have_gnu_regex
=yes
13965 gdb_cv_have_gnu_regex
=no
13967 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
13970 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
13971 if test $gdb_cv_have_gnu_regex = yes; then
13972 gdb_use_included_regex
=no
13976 # Check whether --with-included-regex was given.
13977 if test "${with_included_regex+set}" = set; then :
13978 withval
=$with_included_regex; gdb_with_regex
=$withval
13980 gdb_with_regex
=$gdb_use_included_regex
13983 if test "$gdb_with_regex" = yes; then
13985 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
13989 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
13990 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
13991 #include <sys/proc.h>
13994 if test "x$ac_cv_member_struct_thread_td_pcb" = x
""yes; then :
13996 cat >>confdefs.h
<<_ACEOF
13997 #define HAVE_STRUCT_THREAD_TD_PCB 1
14004 # See if <sys/lwp.h> defines `struct lwp`.
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
14006 $as_echo_n "checking for struct lwp... " >&6; }
14007 if test "${gdb_cv_struct_lwp+set}" = set; then :
14008 $as_echo_n "(cached) " >&6
14010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14011 /* end confdefs.h. */
14012 #include <sys/param.h>
14014 #include <sys/lwp.h>
14023 if ac_fn_c_try_compile
"$LINENO"; then :
14024 gdb_cv_struct_lwp
=yes
14026 gdb_cv_struct_lwp
=no
14028 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
14031 $as_echo "$gdb_cv_struct_lwp" >&6; }
14032 if test $gdb_cv_struct_lwp = yes; then
14034 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
14038 # See if <machine/reg.h> degines `struct reg'.
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
14040 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
14041 if test "${gdb_cv_struct_reg+set}" = set; then :
14042 $as_echo_n "(cached) " >&6
14044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14045 /* end confdefs.h. */
14046 #include <sys/types.h>
14047 #include <machine/reg.h>
14056 if ac_fn_c_try_compile
"$LINENO"; then :
14057 gdb_cv_struct_reg
=yes
14059 gdb_cv_struct_reg
=no
14061 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
14064 $as_echo "$gdb_cv_struct_reg" >&6; }
14065 if test $gdb_cv_struct_reg = yes; then
14067 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
14071 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
14072 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
14073 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
14074 #include <machine/reg.h>
14076 if test "x$ac_cv_member_struct_reg_r_fs" = x
""yes; then :
14078 cat >>confdefs.h
<<_ACEOF
14079 #define HAVE_STRUCT_REG_R_FS 1
14084 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
14085 #include <machine/reg.h>
14087 if test "x$ac_cv_member_struct_reg_r_gs" = x
""yes; then :
14089 cat >>confdefs.h
<<_ACEOF
14090 #define HAVE_STRUCT_REG_R_GS 1
14097 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
14098 # Older amd64 Linux's don't have the fs_base and gs_base members of
14099 # `struct user_regs_struct'.
14100 ac_fn_c_check_member
"$LINENO" "struct user_regs_struct" "fs_base" "ac_cv_member_struct_user_regs_struct_fs_base" "#include <sys/user.h>
14102 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = x
""yes; then :
14104 cat >>confdefs.h
<<_ACEOF
14105 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
14110 ac_fn_c_check_member
"$LINENO" "struct user_regs_struct" "gs_base" "ac_cv_member_struct_user_regs_struct_gs_base" "#include <sys/user.h>
14112 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = x
""yes; then :
14114 cat >>confdefs.h
<<_ACEOF
14115 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
14122 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
14124 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
14125 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
14126 $as_echo_n "(cached) " >&6
14128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14129 /* end confdefs.h. */
14130 #include <sys/ptrace.h>
14139 if ac_fn_c_try_compile
"$LINENO"; then :
14140 gdb_cv_have_ptrace_getregs
=yes
14142 gdb_cv_have_ptrace_getregs
=no
14144 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
14148 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
14149 if test $gdb_cv_have_ptrace_getregs = yes; then
14151 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
14155 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
14157 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
14158 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
14159 $as_echo_n "(cached) " >&6
14161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14162 /* end confdefs.h. */
14163 #include <sys/ptrace.h>
14172 if ac_fn_c_try_compile
"$LINENO"; then :
14173 gdb_cv_have_ptrace_getfpxregs
=yes
14175 gdb_cv_have_ptrace_getfpxregs
=no
14177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
14181 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
14182 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
14184 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
14188 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
14190 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
14191 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
14192 $as_echo_n "(cached) " >&6
14194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14195 /* end confdefs.h. */
14196 #include <sys/types.h>
14197 #include <sys/ptrace.h>
14206 if ac_fn_c_try_compile
"$LINENO"; then :
14207 gdb_cv_have_pt_getdbregs
=yes
14209 gdb_cv_have_pt_getdbregs
=no
14211 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
14215 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
14216 if test $gdb_cv_have_pt_getdbregs = yes; then
14218 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
14222 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
14224 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
14225 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
14226 $as_echo_n "(cached) " >&6
14228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14229 /* end confdefs.h. */
14230 #include <sys/types.h>
14231 #include <sys/ptrace.h>
14240 if ac_fn_c_try_compile
"$LINENO"; then :
14241 gdb_cv_have_pt_getxmmregs
=yes
14243 gdb_cv_have_pt_getxmmregs
=no
14245 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
14249 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
14250 if test $gdb_cv_have_pt_getxmmregs = yes; then
14252 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
14256 # See if <sys/ptrace.h> supports LWP names on FreeBSD
14257 # Older FreeBSD versions don't have the pl_tdname member of
14258 # `struct ptrace_lwpinfo'.
14259 ac_fn_c_check_member
"$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
14261 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = x
""yes; then :
14263 cat >>confdefs.h
<<_ACEOF
14264 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
14271 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
14272 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
14274 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>
14276 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = x
""yes; then :
14278 cat >>confdefs.h
<<_ACEOF
14279 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
14286 # Detect which type of /proc is in use, such as for Solaris.
14288 if test "${target}" = "${host}"; then
14290 *-*-sysv4.2
* |
*-*-sysv5* )
14292 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
14295 *-*-solaris2.
[6789] |
*-*-solaris2.1
[0-9]*)
14297 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
14303 if test "$ac_cv_header_sys_procfs_h" = yes; then
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
14305 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
14306 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
14307 $as_echo_n "(cached) " >&6
14309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14310 /* end confdefs.h. */
14313 /* Needed for new procfs interface on sparc-solaris. */
14314 #define _STRUCTURED_PROC 1
14315 #include <sys/procfs.h>
14324 if ac_fn_c_try_compile
"$LINENO"; then :
14325 bfd_cv_have_sys_procfs_type_gregset_t
=yes
14327 bfd_cv_have_sys_procfs_type_gregset_t
=no
14330 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14333 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
14335 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
14339 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
14342 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
14343 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
14344 $as_echo_n "(cached) " >&6
14346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14347 /* end confdefs.h. */
14350 /* Needed for new procfs interface on sparc-solaris. */
14351 #define _STRUCTURED_PROC 1
14352 #include <sys/procfs.h>
14361 if ac_fn_c_try_compile
"$LINENO"; then :
14362 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
14364 bfd_cv_have_sys_procfs_type_fpregset_t
=no
14367 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14370 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
14372 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
14376 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
14379 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
14380 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
14381 $as_echo_n "(cached) " >&6
14383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14384 /* end confdefs.h. */
14387 /* Needed for new procfs interface on sparc-solaris. */
14388 #define _STRUCTURED_PROC 1
14389 #include <sys/procfs.h>
14398 if ac_fn_c_try_compile
"$LINENO"; then :
14399 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
14401 bfd_cv_have_sys_procfs_type_prgregset_t
=no
14404 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14407 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
14409 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
14413 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
14416 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
14417 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
14418 $as_echo_n "(cached) " >&6
14420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14421 /* end confdefs.h. */
14424 /* Needed for new procfs interface on sparc-solaris. */
14425 #define _STRUCTURED_PROC 1
14426 #include <sys/procfs.h>
14435 if ac_fn_c_try_compile
"$LINENO"; then :
14436 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
14438 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
14441 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14444 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
14446 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
14450 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
14453 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
14454 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
14455 $as_echo_n "(cached) " >&6
14457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14458 /* end confdefs.h. */
14461 /* Needed for new procfs interface on sparc-solaris. */
14462 #define _STRUCTURED_PROC 1
14463 #include <sys/procfs.h>
14472 if ac_fn_c_try_compile
"$LINENO"; then :
14473 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
14475 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
14478 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14481 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
14483 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
14487 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
14490 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
14491 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
14492 $as_echo_n "(cached) " >&6
14494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14495 /* end confdefs.h. */
14498 /* Needed for new procfs interface on sparc-solaris. */
14499 #define _STRUCTURED_PROC 1
14500 #include <sys/procfs.h>
14509 if ac_fn_c_try_compile
"$LINENO"; then :
14510 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
14512 bfd_cv_have_sys_procfs_type_lwpid_t
=no
14515 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14518 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
14520 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
14524 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
14527 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
14528 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
14529 $as_echo_n "(cached) " >&6
14531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14532 /* end confdefs.h. */
14535 /* Needed for new procfs interface on sparc-solaris. */
14536 #define _STRUCTURED_PROC 1
14537 #include <sys/procfs.h>
14546 if ac_fn_c_try_compile
"$LINENO"; then :
14547 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
14549 bfd_cv_have_sys_procfs_type_psaddr_t
=no
14552 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14555 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
14557 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
14561 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
14564 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
14565 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
14566 $as_echo_n "(cached) " >&6
14568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14569 /* end confdefs.h. */
14572 /* Needed for new procfs interface on sparc-solaris. */
14573 #define _STRUCTURED_PROC 1
14574 #include <sys/procfs.h>
14583 if ac_fn_c_try_compile
"$LINENO"; then :
14584 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
14586 bfd_cv_have_sys_procfs_type_prsysent_t
=no
14589 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14592 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
14594 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
14598 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
14601 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
14602 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
14603 $as_echo_n "(cached) " >&6
14605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14606 /* end confdefs.h. */
14609 /* Needed for new procfs interface on sparc-solaris. */
14610 #define _STRUCTURED_PROC 1
14611 #include <sys/procfs.h>
14620 if ac_fn_c_try_compile
"$LINENO"; then :
14621 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
14623 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
14626 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14629 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
14631 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
14635 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
14638 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
14639 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
14640 $as_echo_n "(cached) " >&6
14642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14643 /* end confdefs.h. */
14646 /* Needed for new procfs interface on sparc-solaris. */
14647 #define _STRUCTURED_PROC 1
14648 #include <sys/procfs.h>
14652 pr_sigaction64_t avar
14657 if ac_fn_c_try_compile
"$LINENO"; then :
14658 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
14660 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
14663 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14666 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
14668 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
14672 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
14675 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
14676 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
14677 $as_echo_n "(cached) " >&6
14679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14680 /* end confdefs.h. */
14683 /* Needed for new procfs interface on sparc-solaris. */
14684 #define _STRUCTURED_PROC 1
14685 #include <sys/procfs.h>
14689 pr_siginfo64_t avar
14694 if ac_fn_c_try_compile
"$LINENO"; then :
14695 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
14697 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
14700 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14703 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
14705 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
14709 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
14715 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
14717 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
14718 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
14719 $as_echo_n "(cached) " >&6
14721 if test "$cross_compiling" = yes; then :
14722 gdb_cv_prfpregset_t_broken
=yes
14724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14725 /* end confdefs.h. */
14726 #include <sys/procfs.h>
14729 if (sizeof (prfpregset_t) == sizeof (void *))
14734 if ac_fn_c_try_run
"$LINENO"; then :
14735 gdb_cv_prfpregset_t_broken
=no
14737 gdb_cv_prfpregset_t_broken
=yes
14739 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14740 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
14746 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
14747 if test $gdb_cv_prfpregset_t_broken = yes; then
14749 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
14755 # Check if the compiler supports the `long long' type.
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
14758 $as_echo_n "checking for long long support in compiler... " >&6; }
14759 if test "${gdb_cv_c_long_long+set}" = set; then :
14760 $as_echo_n "(cached) " >&6
14762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14763 /* end confdefs.h. */
14764 extern long long foo;
14768 switch (foo & 2) { case 0: return 1; }
14773 if ac_fn_c_try_compile
"$LINENO"; then :
14774 gdb_cv_c_long_long
=yes
14776 gdb_cv_c_long_long
=no
14778 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
14781 $as_echo "$gdb_cv_c_long_long" >&6; }
14782 if test $gdb_cv_c_long_long != yes; then
14783 # libdecnumber requires long long.
14784 as_fn_error
"Compiler must support long long for GDB." "$LINENO" 5
14787 # Check if the compiler and runtime support printing long longs.
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
14790 $as_echo_n "checking for long long support in printf... " >&6; }
14791 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
14792 $as_echo_n "(cached) " >&6
14794 if test "$cross_compiling" = yes; then :
14795 gdb_cv_printf_has_long_long
=no
14797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14798 /* end confdefs.h. */
14799 $ac_includes_default
14805 l = (l << 16) + 0x0123;
14806 l = (l << 16) + 0x4567;
14807 l = (l << 16) + 0x89ab;
14808 l = (l << 16) + 0xcdef;
14809 sprintf (buf, "0x%016llx", l);
14810 return (strcmp ("0x0123456789abcdef", buf));
14815 if ac_fn_c_try_run
"$LINENO"; then :
14816 gdb_cv_printf_has_long_long
=yes
14818 gdb_cv_printf_has_long_long
=no
14820 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14821 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
14826 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
14827 if test $gdb_cv_printf_has_long_long = yes; then
14829 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
14833 # Check if the compiler and runtime support printing decfloats.
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
14836 $as_echo_n "checking for decfloat support in printf... " >&6; }
14837 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
14838 $as_echo_n "(cached) " >&6
14840 if test "$cross_compiling" = yes; then :
14841 gdb_cv_printf_has_decfloat
=no
14843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14844 /* end confdefs.h. */
14845 $ac_includes_default
14850 _Decimal32 d32 = 1.2345df;
14851 _Decimal64 d64 = 1.2345dd;
14852 _Decimal128 d128 = 1.2345dl;
14853 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
14854 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
14859 if ac_fn_c_try_run
"$LINENO"; then :
14860 gdb_cv_printf_has_decfloat
=yes
14862 gdb_cv_printf_has_decfloat
=no
14864 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14865 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
14870 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
14871 if test $gdb_cv_printf_has_decfloat = yes; then
14873 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
14877 # Check if the compiler supports the `long double' type. We can't use
14878 # AC_C_LONG_DOUBLE because that one does additional checks on the
14879 # constants defined in <float.h> that fail on some systems,
14880 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
14883 $as_echo_n "checking for long double support in compiler... " >&6; }
14884 if test "${gdb_cv_c_long_double+set}" = set; then :
14885 $as_echo_n "(cached) " >&6
14887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14888 /* end confdefs.h. */
14891 if ac_fn_c_try_compile
"$LINENO"; then :
14892 gdb_cv_c_long_double
=yes
14894 gdb_cv_c_long_double
=no
14896 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
14899 $as_echo "$gdb_cv_c_long_double" >&6; }
14900 if test $gdb_cv_c_long_double = yes; then
14902 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14906 # Check if the compiler and runtime support printing long doubles.
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
14909 $as_echo_n "checking for long double support in printf... " >&6; }
14910 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
14911 $as_echo_n "(cached) " >&6
14913 if test "$cross_compiling" = yes; then :
14914 gdb_cv_printf_has_long_double
=no
14916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14917 /* end confdefs.h. */
14918 $ac_includes_default
14923 long double f = 3.141592653;
14924 sprintf (buf, "%Lg", f);
14925 return (strncmp ("3.14159", buf, 7));
14930 if ac_fn_c_try_run
"$LINENO"; then :
14931 gdb_cv_printf_has_long_double
=yes
14933 gdb_cv_printf_has_long_double
=no
14935 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14936 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
14941 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
14942 if test $gdb_cv_printf_has_long_double = yes; then
14944 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
14948 # Check if the compiler and runtime support scanning long doubles.
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
14951 $as_echo_n "checking for long double support in scanf... " >&6; }
14952 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
14953 $as_echo_n "(cached) " >&6
14955 if test "$cross_compiling" = yes; then :
14956 gdb_cv_scanf_has_long_double
=no
14958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14959 /* end confdefs.h. */
14964 char *buf = "3.141592653";
14966 sscanf (buf, "%Lg", &f);
14967 return !(f > 3.14159 && f < 3.14160);
14972 if ac_fn_c_try_run
"$LINENO"; then :
14973 gdb_cv_scanf_has_long_double
=yes
14975 gdb_cv_scanf_has_long_double
=no
14977 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14978 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
14983 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
14984 if test $gdb_cv_scanf_has_long_double = yes; then
14986 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
14993 $as_echo_n "checking for -bbigtoc option... " >&6; }
14994 if test "${gdb_cv_bigtoc+set}" = set; then :
14995 $as_echo_n "(cached) " >&6
14998 SAVE_LDFLAGS
=$LDFLAGS
15001 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
15002 *) gdb_cv_bigtoc
=-bbigtoc ;;
15005 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
15006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15007 /* end confdefs.h. */
15017 if ac_fn_c_try_link
"$LINENO"; then :
15022 rm -f core conftest.err conftest.
$ac_objext \
15023 conftest
$ac_exeext conftest.
$ac_ext
15024 LDFLAGS
="${SAVE_LDFLAGS}"
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
15028 $as_echo "$gdb_cv_bigtoc" >&6; }
15029 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
15034 $as_echo_n "checking for the dynamic export flag... " >&6; }
15036 if test "${gdb_native}" = yes; then
15037 # The dynamically loaded libthread_db needs access to symbols in the gdb
15038 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
15039 # may not be supported there.
15040 old_LDFLAGS
="$LDFLAGS"
15041 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
15042 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
15043 LDFLAGS
="$LDFLAGS $RDYNAMIC"
15044 if test "${have_libpython}" = no
; then
15045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15046 /* end confdefs.h. */
15056 if ac_fn_c_try_link
"$LINENO"; then :
15059 rm -f core conftest.err conftest.
$ac_objext \
15060 conftest
$ac_exeext conftest.
$ac_ext
15062 # Workaround http://bugs.python.org/issue4434 where static
15063 # libpythonX.Y.a would get its symbols required for
15064 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
15065 # Problem does not happen for the recommended libpythonX.Y.so linkage.
15067 # Note the workaround for Python
15068 # http://bugs.python.org/issue10112 earlier has removed
15069 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
15070 # here too, as otherwise it'd make this -Wl,--dynamic-list test
15072 old_CFLAGS
="$CFLAGS"
15073 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
15075 LIBS
="$LIBS $PYTHON_LIBS"
15076 old_CPPFLAGS
="$CPPFLAGS"
15077 CPPFLAGS
="$CPPFLAGS $PYTHON_CPPFLAGS"
15078 if test "$cross_compiling" = yes; then :
15081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15082 /* end confdefs.h. */
15083 #include "Python.h"
15089 err = PyRun_SimpleString ("import itertools\n");
15091 return err == 0 ? 0 : 1;
15096 if ac_fn_c_try_run
"$LINENO"; then :
15099 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15100 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15104 CFLAGS
="$old_CFLAGS"
15105 CPPFLAGS
="$old_CPPFLAGS"
15107 LDFLAGS
="$old_LDFLAGS"
15109 if $dynamic_list; then
15110 found
="-Wl,--dynamic-list"
15111 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
15114 RDYNAMIC
="-rdynamic"
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
15118 $as_echo "$found" >&6; }
15121 if test ${build} = ${host} -a ${host} = ${target} ; then
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
15125 $as_echo_n "checking for AiX thread debugging library... " >&6; }
15126 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
15127 $as_echo_n "(cached) " >&6
15129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15130 /* end confdefs.h. */
15131 #include <sys/pthdebug.h>
15135 #ifndef PTHDB_VERSION_3
15142 if ac_fn_c_try_compile
"$LINENO"; then :
15143 gdb_cv_have_aix_thread_debug
=yes
15145 gdb_cv_have_aix_thread_debug
=no
15147 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
15151 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
15152 if test $gdb_cv_have_aix_thread_debug = yes; then
15153 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
15154 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
15155 LIBS
="$LIBS -lpthdebug"
15157 # Older versions of AIX do not provide the declaration for
15158 # the getthrds function (it appears that it was introduced
15160 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
15162 if test "x$ac_cv_have_decl_getthrds" = x
""yes; then :
15168 cat >>confdefs.h
<<_ACEOF
15169 #define HAVE_DECL_GETTHRDS $ac_have_decl
15178 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
15180 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
15181 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
15182 $as_echo_n "(cached) " >&6
15184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15185 /* end confdefs.h. */
15186 #include <thread_db.h>
15190 int i = TD_NOTALLOC;
15195 if ac_fn_c_try_compile
"$LINENO"; then :
15196 gdb_cv_thread_db_h_has_td_notalloc
=yes
15198 gdb_cv_thread_db_h_has_td_notalloc
=no
15201 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
15205 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
15207 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
15208 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
15209 $as_echo_n "(cached) " >&6
15211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15212 /* end confdefs.h. */
15213 #include <thread_db.h>
15217 int i = TD_VERSION;
15222 if ac_fn_c_try_compile
"$LINENO"; then :
15223 gdb_cv_thread_db_h_has_td_version
=yes
15225 gdb_cv_thread_db_h_has_td_version
=no
15228 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
15232 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
15234 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
15235 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
15236 $as_echo_n "(cached) " >&6
15238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15239 /* end confdefs.h. */
15240 #include <thread_db.h>
15249 if ac_fn_c_try_compile
"$LINENO"; then :
15250 gdb_cv_thread_db_h_has_td_notls
=yes
15252 gdb_cv_thread_db_h_has_td_notls
=no
15255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
15259 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
15261 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
15263 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
15266 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
15268 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
15271 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
15273 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
15277 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
15279 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
15285 cat >>confdefs.h
<<_ACEOF
15286 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
15290 if test "$cross_compiling" = yes; then :
15291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15292 /* end confdefs.h. */
15293 #include <sys/personality.h>
15298 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
15299 # define ADDR_NO_RANDOMIZE 0x0040000
15301 /* Test the flag could be set and stays set. */
15302 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
15303 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
15309 if ac_fn_c_try_link
"$LINENO"; then :
15310 have_personality
=true
15312 have_personality
=false
15314 rm -f core conftest.err conftest.
$ac_objext \
15315 conftest
$ac_exeext conftest.
$ac_ext
15317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15318 /* end confdefs.h. */
15319 #include <sys/personality.h>
15324 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
15325 # define ADDR_NO_RANDOMIZE 0x0040000
15327 /* Test the flag could be set and stays set. */
15328 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
15329 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
15335 if ac_fn_c_try_run
"$LINENO"; then :
15336 have_personality
=true
15338 have_personality
=false
15340 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15341 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15344 if $have_personality
15347 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
15360 cat >>confdefs.h
<<_ACEOF
15361 #define GDBINIT "$gdbinit"
15366 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
15367 # except that the argument to --with-sysroot is optional.
15368 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
15369 if test "x$with_sysroot" = xyes
; then
15370 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
15373 # Check whether --with-sysroot was given.
15374 if test "${with_sysroot+set}" = set; then :
15375 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
15377 TARGET_SYSTEM_ROOT
=
15381 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
15382 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15383 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
15384 ac_define_dir
=`eval echo $ac_define_dir`
15386 cat >>confdefs.h
<<_ACEOF
15387 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
15393 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
15394 if test "x$prefix" = xNONE
; then
15395 test_prefix
=/usr
/local
15397 test_prefix
=$prefix
15400 test_prefix
=$exec_prefix
15403 case ${ac_define_dir} in
15404 "${test_prefix}"|
"${test_prefix}/"*|\
15405 '${exec_prefix}'|
'${exec_prefix}/'*)
15410 cat >>confdefs.h
<<_ACEOF
15411 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
15418 # Check whether --with-system-gdbinit was given.
15419 if test "${with_system_gdbinit+set}" = set; then :
15420 withval
=$with_system_gdbinit;
15421 SYSTEM_GDBINIT
=$withval
15427 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
15428 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15429 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
15430 ac_define_dir
=`eval echo $ac_define_dir`
15432 cat >>confdefs.h
<<_ACEOF
15433 #define SYSTEM_GDBINIT "$ac_define_dir"
15439 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
15440 if test "x$prefix" = xNONE
; then
15441 test_prefix
=/usr
/local
15443 test_prefix
=$prefix
15446 test_prefix
=$exec_prefix
15449 case ${ac_define_dir} in
15450 "${test_prefix}"|
"${test_prefix}/"*|\
15451 '${exec_prefix}'|
'${exec_prefix}/'*)
15456 cat >>confdefs.h
<<_ACEOF
15457 #define SYSTEM_GDBINIT_RELOCATABLE $value
15464 # Check whether --enable-werror was given.
15465 if test "${enable_werror+set}" = set; then :
15466 enableval
=$enable_werror; case "${enableval}" in
15467 yes | y
) ERROR_ON_WARNING
="yes" ;;
15468 no | n
) ERROR_ON_WARNING
="no" ;;
15469 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15474 # Enable -Werror by default when using gcc. Turn it off for releases.
15475 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
15476 ERROR_ON_WARNING
=yes
15480 if test "${ERROR_ON_WARNING}" = yes ; then
15481 WERROR_CFLAGS
="-Werror"
15484 # The options we'll try to enable.
15485 build_warnings
="-Wall -Wpointer-arith \
15486 -Wno-unused -Wunused-value -Wunused-function \
15487 -Wno-switch -Wno-char-subscripts \
15488 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
15489 -Wno-sign-compare -Wno-narrowing -Wno-error=maybe-uninitialized \
15490 -Wno-mismatched-tags"
15494 # Enable -Wno-format by default when using gcc on mingw since many
15495 # GCC versions complain about %I64.
15496 build_warnings
="$build_warnings -Wno-format" ;;
15498 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
15499 # doesn't understand.
15500 build_warnings
="$build_warnings -Wno-unknown-pragmas"
15501 # Solaris 11 <unistd.h> marks vfork deprecated.
15502 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
15503 *) build_warnings
="$build_warnings -Wformat-nonliteral" ;;
15506 # Check whether --enable-build-warnings was given.
15507 if test "${enable_build_warnings+set}" = set; then :
15508 enableval
=$enable_build_warnings; case "${enableval}" in
15510 no
) build_warnings
="-w";;
15511 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15512 build_warnings
="${build_warnings} ${t}";;
15513 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15514 build_warnings
="${t} ${build_warnings}";;
15515 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15517 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
15518 echo "Setting compiler warning flags = $build_warnings" 6>&1
15521 # Check whether --enable-gdb-build-warnings was given.
15522 if test "${enable_gdb_build_warnings+set}" = set; then :
15523 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
15525 no
) build_warnings
="-w";;
15526 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15527 build_warnings
="${build_warnings} ${t}";;
15528 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15529 build_warnings
="${t} ${build_warnings}";;
15530 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15532 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
15533 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
15537 # The set of warnings supported by a C++ compiler is not the same as
15538 # of the C compiler.
15540 ac_cpp
='$CXXCPP $CPPFLAGS'
15541 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15542 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15543 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
15547 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
15549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
15550 $as_echo_n "checking compiler warning flags... " >&6; }
15551 # Separate out the -Werror flag as some files just cannot be
15552 # compiled with it enabled.
15553 for w
in ${build_warnings}; do
15554 # GCC does not complain about -Wno-unknown-warning. Invert
15555 # and test -Wunknown-warning instead.
15558 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
15564 -Werr*) WERROR_CFLAGS
=-Werror ;;
15566 # Check whether GCC accepts it.
15567 saved_CFLAGS
="$CFLAGS"
15568 CFLAGS
="$CFLAGS -Werror $wtest"
15569 saved_CXXFLAGS
="$CXXFLAGS"
15570 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
15571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15572 /* end confdefs.h. */
15582 if ac_fn_cxx_try_compile
"$LINENO"; then :
15583 WARN_CFLAGS
="${WARN_CFLAGS} $w"
15585 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15586 CFLAGS
="$saved_CFLAGS"
15587 CXXFLAGS
="$saved_CXXFLAGS"
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
15591 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
15597 ac_cpp='$CPP $CPPFLAGS'
15598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15604 # In the Cygwin environment, we need some additional flags.
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
15606 $as_echo_n "checking
for cygwin...
" >&6; }
15607 if test "${gdb_cv_os_cygwin+set}" = set; then :
15608 $as_echo_n "(cached
) " >&6
15610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15611 /* end confdefs.h. */
15613 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
15617 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15618 $EGREP "^lose$
" >/dev/null 2>&1; then :
15619 gdb_cv_os_cygwin=yes
15621 gdb_cv_os_cygwin=no
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
15627 $as_echo "$gdb_cv_os_cygwin" >&6; }
15630 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
15632 *go32* ) SER_HARDWIRE=ser-go32.o ;;
15633 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
15634 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
15638 # libreadline needs libuser32.a in a cygwin environment
15640 if test x$gdb_cv_os_cygwin = xyes; then
15641 WIN32LIBS="-luser32"
15642 case "${target}" in
15643 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
15648 # The ser-tcp.c module requires sockets.
15652 $as_echo "#define USE_WIN32API 1" >>confdefs.h
15654 WIN32LIBS
="$WIN32LIBS -lws2_32"
15659 # Add ELF support to GDB, but only if BFD includes ELF support.
15662 OLD_LDFLAGS
=$LDFLAGS
15664 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
15665 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
15666 # always want our bfd.
15667 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
15668 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
15669 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
15670 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15671 LIBS
="-lbfd -liberty -lz $intl $LIBS"
15672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
15673 $as_echo_n "checking for ELF support in BFD... " >&6; }
15674 if test "${gdb_cv_var_elf+set}" = set; then :
15675 $as_echo_n "(cached) " >&6
15677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15678 /* end confdefs.h. */
15679 #include <stdlib.h>
15681 #include "elf-bfd.h"
15686 return bfd_get_elf_phdr_upper_bound (NULL);
15691 if ac_fn_c_try_link
"$LINENO"; then :
15696 rm -f core conftest.err conftest.
$ac_objext \
15697 conftest
$ac_exeext conftest.
$ac_ext
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
15700 $as_echo "$gdb_cv_var_elf" >&6; }
15702 LDFLAGS
=$OLD_LDFLAGS
15704 if test $gdb_cv_var_elf = yes; then
15705 CONFIG_OBS
="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o"
15707 $as_echo "#define HAVE_ELF 1" >>confdefs.h
15709 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
15710 if test "$plugins" = "yes"; then
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15712 $as_echo_n "checking for library containing dlopen... " >&6; }
15713 if test "${ac_cv_search_dlopen+set}" = set; then :
15714 $as_echo_n "(cached) " >&6
15716 ac_func_search_save_LIBS
=$LIBS
15717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15718 /* end confdefs.h. */
15720 /* Override any GCC internal prototype to avoid an error.
15721 Use char because int might match the return type of a GCC
15722 builtin and then its argument prototype would still apply. */
15735 for ac_lib
in '' dl
; do
15736 if test -z "$ac_lib"; then
15737 ac_res
="none required"
15740 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15742 if ac_fn_c_try_link
"$LINENO"; then :
15743 ac_cv_search_dlopen
=$ac_res
15745 rm -f core conftest.err conftest.
$ac_objext \
15747 if test "${ac_cv_search_dlopen+set}" = set; then :
15751 if test "${ac_cv_search_dlopen+set}" = set; then :
15754 ac_cv_search_dlopen
=no
15756 rm conftest.
$ac_ext
15757 LIBS
=$ac_func_search_save_LIBS
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15760 $as_echo "$ac_cv_search_dlopen" >&6; }
15761 ac_res
=$ac_cv_search_dlopen
15762 if test "$ac_res" != no
; then :
15763 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15770 # Add macho support to GDB, but only if BFD includes it.
15773 OLD_LDFLAGS
=$LDFLAGS
15775 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
15776 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
15777 # always want our bfd.
15778 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
15779 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
15780 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
15781 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15782 LIBS
="-lbfd -liberty -lz $intl $LIBS"
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
15784 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
15785 if test "${gdb_cv_var_macho+set}" = set; then :
15786 $as_echo_n "(cached) " >&6
15788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15789 /* end confdefs.h. */
15790 #include <stdlib.h>
15792 #include "mach-o.h"
15797 return bfd_mach_o_lookup_command (NULL, 0, NULL);
15802 if ac_fn_c_try_link
"$LINENO"; then :
15803 gdb_cv_var_macho
=yes
15805 gdb_cv_var_macho
=no
15807 rm -f core conftest.err conftest.
$ac_objext \
15808 conftest
$ac_exeext conftest.
$ac_ext
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
15811 $as_echo "$gdb_cv_var_macho" >&6; }
15813 LDFLAGS
=$OLD_LDFLAGS
15815 if test $gdb_cv_var_macho = yes; then
15816 CONFIG_OBS
="$CONFIG_OBS machoread.o"
15819 # Add any host-specific objects to GDB.
15820 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
15822 # If building on ELF, look for lzma support for embedded compressed debug info.
15823 if test $gdb_cv_var_elf = yes; then
15825 # Check whether --with-lzma was given.
15826 if test "${with_lzma+set}" = set; then :
15827 withval
=$with_lzma;
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
15833 $as_echo_n "checking whether to use lzma... " >&6; }
15834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
15835 $as_echo "$with_lzma" >&6; }
15837 if test "${with_lzma}" != no
; then
15848 acl_save_prefix
="$prefix"
15849 prefix
="$acl_final_prefix"
15850 acl_save_exec_prefix
="$exec_prefix"
15851 exec_prefix
="$acl_final_exec_prefix"
15853 eval additional_includedir
=\"$includedir\"
15854 eval additional_libdir
=\"$libdir\"
15856 exec_prefix
="$acl_save_exec_prefix"
15857 prefix
="$acl_save_prefix"
15860 # Check whether --with-liblzma-prefix was given.
15861 if test "${with_liblzma_prefix+set}" = set; then :
15862 withval
=$with_liblzma_prefix;
15863 if test "X$withval" = "Xno"; then
15866 if test "X$withval" = "X"; then
15868 acl_save_prefix
="$prefix"
15869 prefix
="$acl_final_prefix"
15870 acl_save_exec_prefix
="$exec_prefix"
15871 exec_prefix
="$acl_final_exec_prefix"
15873 eval additional_includedir
=\"$includedir\"
15874 eval additional_libdir
=\"$libdir\"
15876 exec_prefix
="$acl_save_exec_prefix"
15877 prefix
="$acl_save_prefix"
15880 additional_includedir
="$withval/include"
15881 additional_libdir
="$withval/lib"
15892 names_already_handled
=
15893 names_next_round
='lzma '
15894 while test -n "$names_next_round"; do
15895 names_this_round
="$names_next_round"
15897 for name
in $names_this_round; do
15899 for n
in $names_already_handled; do
15900 if test "$n" = "$name"; then
15901 already_handled
=yes
15905 if test -z "$already_handled"; then
15906 names_already_handled
="$names_already_handled $name"
15907 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15908 eval value
=\"\
$HAVE_LIB$uppername\"
15909 if test -n "$value"; then
15910 if test "$value" = yes; then
15911 eval value
=\"\
$LIB$uppername\"
15912 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
15913 eval value
=\"\
$LTLIB$uppername\"
15914 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
15923 if test $use_additional = yes; then
15924 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15925 found_dir
="$additional_libdir"
15926 found_so
="$additional_libdir/lib$name.$shlibext"
15927 if test -f "$additional_libdir/lib$name.la"; then
15928 found_la
="$additional_libdir/lib$name.la"
15931 if test -f "$additional_libdir/lib$name.$libext"; then
15932 found_dir
="$additional_libdir"
15933 found_a
="$additional_libdir/lib$name.$libext"
15934 if test -f "$additional_libdir/lib$name.la"; then
15935 found_la
="$additional_libdir/lib$name.la"
15940 if test "X$found_dir" = "X"; then
15941 for x
in $LDFLAGS $LTLIBLZMA; do
15943 acl_save_prefix
="$prefix"
15944 prefix
="$acl_final_prefix"
15945 acl_save_exec_prefix
="$exec_prefix"
15946 exec_prefix
="$acl_final_exec_prefix"
15948 exec_prefix
="$acl_save_exec_prefix"
15949 prefix
="$acl_save_prefix"
15953 dir
=`echo "X$x" | sed -e 's/^X-L//'`
15954 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15956 found_so
="$dir/lib$name.$shlibext"
15957 if test -f "$dir/lib$name.la"; then
15958 found_la
="$dir/lib$name.la"
15961 if test -f "$dir/lib$name.$libext"; then
15963 found_a
="$dir/lib$name.$libext"
15964 if test -f "$dir/lib$name.la"; then
15965 found_la
="$dir/lib$name.la"
15971 if test "X$found_dir" != "X"; then
15976 if test "X$found_dir" != "X"; then
15977 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
15978 if test "X$found_so" != "X"; then
15979 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
15980 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
15983 for x
in $ltrpathdirs; do
15984 if test "X$x" = "X$found_dir"; then
15989 if test -z "$haveit"; then
15990 ltrpathdirs
="$ltrpathdirs $found_dir"
15992 if test "$hardcode_direct" = yes; then
15993 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
15995 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
15996 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
15998 for x
in $rpathdirs; do
15999 if test "X$x" = "X$found_dir"; then
16004 if test -z "$haveit"; then
16005 rpathdirs
="$rpathdirs $found_dir"
16009 for x
in $LDFLAGS $LIBLZMA; do
16011 acl_save_prefix
="$prefix"
16012 prefix
="$acl_final_prefix"
16013 acl_save_exec_prefix
="$exec_prefix"
16014 exec_prefix
="$acl_final_exec_prefix"
16016 exec_prefix
="$acl_save_exec_prefix"
16017 prefix
="$acl_save_prefix"
16019 if test "X$x" = "X-L$found_dir"; then
16024 if test -z "$haveit"; then
16025 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
16027 if test "$hardcode_minus_L" != no
; then
16028 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
16030 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
16036 if test "X$found_a" != "X"; then
16037 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
16039 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
16042 additional_includedir
=
16043 case "$found_dir" in
16045 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16046 additional_includedir
="$basedir/include"
16049 if test "X$additional_includedir" != "X"; then
16050 if test "X$additional_includedir" != "X/usr/include"; then
16052 if test "X$additional_includedir" = "X/usr/local/include"; then
16053 if test -n "$GCC"; then
16055 linux
*) haveit
=yes;;
16059 if test -z "$haveit"; then
16060 for x
in $CPPFLAGS $INCLZMA; do
16062 acl_save_prefix
="$prefix"
16063 prefix
="$acl_final_prefix"
16064 acl_save_exec_prefix
="$exec_prefix"
16065 exec_prefix
="$acl_final_exec_prefix"
16067 exec_prefix
="$acl_save_exec_prefix"
16068 prefix
="$acl_save_prefix"
16070 if test "X$x" = "X-I$additional_includedir"; then
16075 if test -z "$haveit"; then
16076 if test -d "$additional_includedir"; then
16077 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
16083 if test -n "$found_la"; then
16084 save_libdir
="$libdir"
16085 case "$found_la" in
16086 */* |
*\\*) .
"$found_la" ;;
16087 *) .
"./$found_la" ;;
16089 libdir
="$save_libdir"
16090 for dep
in $dependency_libs; do
16093 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
16094 if test "X$additional_libdir" != "X/usr/lib"; then
16096 if test "X$additional_libdir" = "X/usr/local/lib"; then
16097 if test -n "$GCC"; then
16099 linux
*) haveit
=yes;;
16103 if test -z "$haveit"; then
16105 for x
in $LDFLAGS $LIBLZMA; do
16107 acl_save_prefix
="$prefix"
16108 prefix
="$acl_final_prefix"
16109 acl_save_exec_prefix
="$exec_prefix"
16110 exec_prefix
="$acl_final_exec_prefix"
16112 exec_prefix
="$acl_save_exec_prefix"
16113 prefix
="$acl_save_prefix"
16115 if test "X$x" = "X-L$additional_libdir"; then
16120 if test -z "$haveit"; then
16121 if test -d "$additional_libdir"; then
16122 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
16126 for x
in $LDFLAGS $LTLIBLZMA; do
16128 acl_save_prefix
="$prefix"
16129 prefix
="$acl_final_prefix"
16130 acl_save_exec_prefix
="$exec_prefix"
16131 exec_prefix
="$acl_final_exec_prefix"
16133 exec_prefix
="$acl_save_exec_prefix"
16134 prefix
="$acl_save_prefix"
16136 if test "X$x" = "X-L$additional_libdir"; then
16141 if test -z "$haveit"; then
16142 if test -d "$additional_libdir"; then
16143 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
16150 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
16151 if test "$enable_rpath" != no
; then
16153 for x
in $rpathdirs; do
16154 if test "X$x" = "X$dir"; then
16159 if test -z "$haveit"; then
16160 rpathdirs
="$rpathdirs $dir"
16163 for x
in $ltrpathdirs; do
16164 if test "X$x" = "X$dir"; then
16169 if test -z "$haveit"; then
16170 ltrpathdirs
="$ltrpathdirs $dir"
16175 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16178 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16181 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
16182 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
16188 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
16189 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
16195 if test "X$rpathdirs" != "X"; then
16196 if test -n "$hardcode_libdir_separator"; then
16198 for found_dir
in $rpathdirs; do
16199 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16201 acl_save_libdir
="$libdir"
16203 eval flag
=\"$hardcode_libdir_flag_spec\"
16204 libdir
="$acl_save_libdir"
16205 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
16207 for found_dir
in $rpathdirs; do
16208 acl_save_libdir
="$libdir"
16209 libdir
="$found_dir"
16210 eval flag
=\"$hardcode_libdir_flag_spec\"
16211 libdir
="$acl_save_libdir"
16212 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
16216 if test "X$ltrpathdirs" != "X"; then
16217 for found_dir
in $ltrpathdirs; do
16218 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
16223 ac_save_CPPFLAGS
="$CPPFLAGS"
16225 for element
in $INCLZMA; do
16227 for x
in $CPPFLAGS; do
16229 acl_save_prefix
="$prefix"
16230 prefix
="$acl_final_prefix"
16231 acl_save_exec_prefix
="$exec_prefix"
16232 exec_prefix
="$acl_final_exec_prefix"
16234 exec_prefix
="$acl_save_exec_prefix"
16235 prefix
="$acl_save_prefix"
16237 if test "X$x" = "X$element"; then
16242 if test -z "$haveit"; then
16243 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
16249 $as_echo_n "checking for liblzma... " >&6; }
16250 if test "${ac_cv_liblzma+set}" = set; then :
16251 $as_echo_n "(cached) " >&6
16254 ac_save_LIBS
="$LIBS"
16255 LIBS
="$LIBS $LIBLZMA"
16256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16257 /* end confdefs.h. */
16262 lzma_index_iter iter;
16263 lzma_index_iter_init (&iter, 0);
16264 lzma_mf_is_supported (LZMA_MF_HC3);
16269 if ac_fn_c_try_link
"$LINENO"; then :
16274 rm -f core conftest.err conftest.
$ac_objext \
16275 conftest
$ac_exeext conftest.
$ac_ext
16276 LIBS
="$ac_save_LIBS"
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
16280 $as_echo "$ac_cv_liblzma" >&6; }
16281 if test "$ac_cv_liblzma" = yes; then
16284 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
16287 $as_echo_n "checking how to link with liblzma... " >&6; }
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
16289 $as_echo "$LIBLZMA" >&6; }
16292 CPPFLAGS
="$ac_save_CPPFLAGS"
16302 if test "$HAVE_LIBLZMA" != yes; then
16303 if test "$with_lzma" = yes; then
16304 as_fn_error
"missing liblzma for --with-lzma" "$LINENO" 5
16310 LIBGUI
="../libgui/src/libgui.a"
16311 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
16320 *-*-cygwin* |
*-*-mingw* )
16329 if test "${enable_gdbtk}" = "yes"; then
16331 # Gdbtk must have an absolute path to srcdir in order to run
16332 # properly when not installed.
16335 GDBTK_SRC_DIR
=`pwd`
16340 # Ok, lets find the tcl configuration
16341 # First, look for one uninstalled.
16342 # the alternative search directory is invoked by --with-tcl
16345 if test x
"${no_tcl}" = x
; then
16346 # we reset no_tcl in case something fails here
16349 # Check whether --with-tcl was given.
16350 if test "${with_tcl+set}" = set; then :
16351 withval
=$with_tcl; with_tclconfig
=${withval}
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
16355 $as_echo_n "checking for Tcl configuration... " >&6; }
16356 if test "${ac_cv_c_tclconfig+set}" = set; then :
16357 $as_echo_n "(cached) " >&6
16361 # First check to see if --with-tcl was specified.
16363 *-*-cygwin*) platDir
="win" ;;
16364 *) platDir
="unix" ;;
16366 if test x
"${with_tclconfig}" != x
; then
16367 if test -f "${with_tclconfig}/tclConfig.sh" ; then
16368 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
16370 as_fn_error
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
16374 # then check for a private Tcl installation
16375 if test x
"${ac_cv_c_tclconfig}" = x
; then
16378 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16379 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
16380 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
16382 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16383 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
16384 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
16386 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16387 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
16388 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
16389 if test -f "$i/$platDir/tclConfig.sh" ; then
16390 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
16396 # on Darwin, check in Framework installation locations
16397 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
16398 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
16399 `ls -d /Library/Frameworks 2>/dev/null` \
16400 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16401 `ls -d /System/Library/Frameworks 2>/dev/null` \
16403 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
16404 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
16410 # check in a few common install locations
16411 if test x
"${ac_cv_c_tclconfig}" = x
; then
16412 for i
in `ls -d ${libdir} 2>/dev/null` \
16413 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16414 `ls -d ${prefix}/lib 2>/dev/null` \
16415 `ls -d /usr/local/lib 2>/dev/null` \
16416 `ls -d /usr/contrib/lib 2>/dev/null` \
16417 `ls -d /usr/lib 2>/dev/null` \
16419 if test -f "$i/tclConfig.sh" ; then
16420 ac_cv_c_tclconfig
=`(cd $i; pwd)`
16426 # check in a few other private locations
16427 if test x
"${ac_cv_c_tclconfig}" = x
; then
16430 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16431 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
16432 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
16433 if test -f "$i/$platDir/tclConfig.sh" ; then
16434 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
16443 if test x
"${ac_cv_c_tclconfig}" = x
; then
16444 TCL_BIN_DIR
="# no Tcl configs found"
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
16446 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
16449 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
16451 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
16456 # If $no_tk is nonempty, then we can't do Tk, and there is no
16457 # point to doing Tcl.
16460 # Ok, lets find the tk configuration
16461 # First, look for one uninstalled.
16462 # the alternative search directory is invoked by --with-tk
16465 if test x
"${no_tk}" = x
; then
16466 # we reset no_tk in case something fails here
16469 # Check whether --with-tk was given.
16470 if test "${with_tk+set}" = set; then :
16471 withval
=$with_tk; with_tkconfig
=${withval}
16474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
16475 $as_echo_n "checking for Tk configuration... " >&6; }
16476 if test "${ac_cv_c_tkconfig+set}" = set; then :
16477 $as_echo_n "(cached) " >&6
16481 # First check to see if --with-tkconfig was specified.
16482 if test x
"${with_tkconfig}" != x
; then
16483 if test -f "${with_tkconfig}/tkConfig.sh" ; then
16484 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
16486 as_fn_error
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
16490 # then check for a private Tk library
16492 *-*-cygwin*) platDir
="win" ;;
16493 *) platDir
="unix" ;;
16495 if test x
"${ac_cv_c_tkconfig}" = x
; then
16498 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16499 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
16500 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
16502 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16503 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
16504 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
16506 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16507 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
16508 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
16509 if test -f "$i/$platDir/tkConfig.sh" ; then
16510 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
16516 # on Darwin, check in Framework installation locations
16517 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
16518 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
16519 `ls -d /Library/Frameworks 2>/dev/null` \
16520 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16521 `ls -d /System/Library/Frameworks 2>/dev/null` \
16523 if test -f "$i/Tk.framework/tkConfig.sh" ; then
16524 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
16530 # check in a few common install locations
16531 if test x
"${ac_cv_c_tkconfig}" = x
; then
16532 for i
in `ls -d ${libdir} 2>/dev/null` \
16533 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16534 `ls -d ${prefix}/lib 2>/dev/null` \
16535 `ls -d /usr/local/lib 2>/dev/null` \
16536 `ls -d /usr/contrib/lib 2>/dev/null` \
16537 `ls -d /usr/lib 2>/dev/null` \
16539 if test -f "$i/tkConfig.sh" ; then
16540 ac_cv_c_tkconfig
=`(cd $i; pwd)`
16545 # check in a few other private locations
16546 if test x
"${ac_cv_c_tkconfig}" = x
; then
16549 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16550 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
16551 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
16552 if test -f "$i/$platDir/tkConfig.sh" ; then
16553 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
16562 if test x
"${ac_cv_c_tkconfig}" = x
; then
16563 TK_BIN_DIR
="# no Tk configs found"
16564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
16565 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
16568 TK_BIN_DIR
=${ac_cv_c_tkconfig}
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
16570 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
16575 if test -z "${no_tcl}" -a -z "${no_tk}"; then
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
16578 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
16580 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
16582 $as_echo "loading" >&6; }
16583 .
${TCL_BIN_DIR}/tclConfig.sh
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
16586 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
16589 # eval is required to do the TCL_DBGX substitution
16590 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
16591 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
16593 # If the TCL_BIN_DIR is the build directory (not the install directory),
16594 # then set the common variable name to the value of the build variables.
16595 # For example, the variable TCL_LIB_SPEC will be set to the value
16596 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
16597 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
16598 # installed and uninstalled version of Tcl.
16599 if test -f "${TCL_BIN_DIR}/Makefile" ; then
16600 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
16601 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
16602 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
16603 elif test "`uname -s`" = "Darwin"; then
16604 # If Tcl was built as a framework, attempt to use the libraries
16605 # from the framework at the given location so that linking works
16606 # against Tcl.framework installed in an arbitrary location.
16607 case ${TCL_DEFS} in
16609 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
16610 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
16611 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
16612 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
16613 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
16618 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
16619 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
16620 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
16626 # eval is required to do the TCL_DBGX substitution
16627 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
16628 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
16629 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
16630 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
16646 # Check for in-tree tcl
16653 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
16657 # Find Tcl private headers
16658 if test x
"${intree}" = xno
; then
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
16661 $as_echo_n "checking for Tcl private headers... " >&6; }
16663 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
16664 if test -f ${dir}/tclInt.h
; then
16668 if test x
"${private_dir}" = x
; then
16669 as_fn_error
"could not find private Tcl headers" "$LINENO" 5
16671 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
16672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
16673 $as_echo "${private_dir}" >&6; }
16676 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
16677 TCL_LIBRARY
="${TCL_LIB_SPEC}"
16680 # If building tcl in the same src tree, private headers
16681 # are not needed, but we need to be sure to use the right
16683 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
16684 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
16685 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
16693 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
16695 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
16697 $as_echo "loading" >&6; }
16698 .
${TK_BIN_DIR}/tkConfig.sh
16700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
16701 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
16704 # eval is required to do the TK_DBGX substitution
16705 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
16706 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
16708 # If the TK_BIN_DIR is the build directory (not the install directory),
16709 # then set the common variable name to the value of the build variables.
16710 # For example, the variable TK_LIB_SPEC will be set to the value
16711 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
16712 # instead of TK_BUILD_LIB_SPEC since it will work with both an
16713 # installed and uninstalled version of Tcl.
16714 if test -f "${TK_BIN_DIR}/Makefile" ; then
16715 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
16716 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
16717 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
16718 elif test "`uname -s`" = "Darwin"; then
16719 # If Tk was built as a framework, attempt to use the libraries
16720 # from the framework at the given location so that linking works
16721 # against Tk.framework installed in an arbitrary location.
16724 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
16725 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
16726 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
16727 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
16728 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
16733 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
16734 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
16735 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
16741 # eval is required to do the TK_DBGX substitution
16742 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
16743 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
16744 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
16745 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
16760 # Check for in-tree Tk
16762 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
16766 # Find Tk private headers
16767 if test x
"${intree}" = xno
; then
16769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
16770 $as_echo_n "checking for Tk private headers... " >&6; }
16772 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
16773 if test -f ${dir}/tkInt.h
; then
16777 if test x
"${private_dir}" = x
; then
16778 as_fn_error
"could not find Tk private headers" "$LINENO" 5
16780 TK_PRIVATE_INCLUDE
="-I${private_dir}"
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
16782 $as_echo "${private_dir}" >&6; }
16785 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
16786 TK_LIBRARY
=${TK_LIB_SPEC}
16789 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
16790 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
16791 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
16798 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
16800 # Include some libraries that Tcl and Tk want.
16801 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
16802 # Yes, the ordering seems wrong here. But it isn't.
16803 # TK_LIBS is the list of libraries that need to be linked
16804 # after Tcl/Tk. Note that this isn't put into LIBS. If it
16805 # were in LIBS then any link tests after this point would
16806 # try to include things like `$(LIBGUI)', which wouldn't work.
16807 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
16809 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
16810 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
16811 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
16812 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
16813 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
16814 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
16815 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
16817 if test x
$gdb_cv_os_cygwin = xyes
; then
16818 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
16819 WIN32LDAPP
="-Wl,--subsystem,console"
16820 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
16823 subdirs
="$subdirs gdbtk"
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
16836 $as_echo_n "checking for X... " >&6; }
16839 # Check whether --with-x was given.
16840 if test "${with_x+set}" = set; then :
16844 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
16845 if test "x$with_x" = xno
; then
16846 # The user explicitly disabled X.
16849 case $x_includes,$x_libraries in #(
16850 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
16851 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
16852 $as_echo_n "(cached) " >&6
16854 # One or both of the vars are not set, and there is no cached value.
16855 ac_x_includes
=no ac_x_libraries
=no
16856 rm -f -r conftest.dir
16857 if mkdir conftest.dir
; then
16859 cat >Imakefile
<<'_ACEOF'
16861 @echo incroot='${INCROOT}'
16863 @echo usrlibdir='${USRLIBDIR}'
16865 @echo libdir='${LIBDIR}'
16867 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
16868 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16869 for ac_var
in incroot usrlibdir libdir
; do
16870 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
16872 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
16873 for ac_extension
in a so sl dylib la dll
; do
16874 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
16875 test -f "$ac_im_libdir/libX11.$ac_extension"; then
16876 ac_im_usrlibdir
=$ac_im_libdir; break
16879 # Screen out bogus values from the imake configuration. They are
16880 # bogus both because they are the default anyway, and because
16881 # using them would break gcc on systems where it needs fixed includes.
16882 case $ac_im_incroot in
16883 /usr
/include
) ac_x_includes
= ;;
16884 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
16886 case $ac_im_usrlibdir in
16887 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
16888 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
16892 rm -f -r conftest.dir
16895 # Standard set of common directories for X headers.
16896 # Check X11 before X11Rn because it is often a symlink to the current release.
16910 /usr/local/X11/include
16911 /usr/local/X11R7/include
16912 /usr/local/X11R6/include
16913 /usr/local/X11R5/include
16914 /usr/local/X11R4/include
16916 /usr/local/include/X11
16917 /usr/local/include/X11R7
16918 /usr/local/include/X11R6
16919 /usr/local/include/X11R5
16920 /usr/local/include/X11R4
16924 /usr/XFree86/include/X11
16928 /usr/unsupported/include
16929 /usr/athena/include
16930 /usr/local/x11r5/include
16931 /usr/lpp/Xamples/include
16933 /usr/openwin/include
16934 /usr/openwin/share/include'
16936 if test "$ac_x_includes" = no
; then
16937 # Guess where to find include files, by looking for Xlib.h.
16938 # First, try using that file with no special directory specified.
16939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16940 /* end confdefs.h. */
16941 #include <X11/Xlib.h>
16943 if ac_fn_c_try_cpp
"$LINENO"; then :
16944 # We can compile using X headers with no special include directory.
16947 for ac_dir
in $ac_x_header_dirs; do
16948 if test -r "$ac_dir/X11/Xlib.h"; then
16949 ac_x_includes
=$ac_dir
16954 rm -f conftest.err conftest.
$ac_ext
16955 fi # $ac_x_includes = no
16957 if test "$ac_x_libraries" = no
; then
16958 # Check for the libraries.
16959 # See if we find them without any special options.
16960 # Don't add to $LIBS permanently.
16963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16964 /* end confdefs.h. */
16965 #include <X11/Xlib.h>
16974 if ac_fn_c_try_link
"$LINENO"; then :
16976 # We can link X programs with no special library path.
16980 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
16982 # Don't even attempt the hair of trying to link an X program!
16983 for ac_extension
in a so sl dylib la dll
; do
16984 if test -r "$ac_dir/libX11.$ac_extension"; then
16985 ac_x_libraries
=$ac_dir
16991 rm -f core conftest.err conftest.
$ac_objext \
16992 conftest
$ac_exeext conftest.
$ac_ext
16993 fi # $ac_x_libraries = no
16995 case $ac_x_includes,$ac_x_libraries in #(
16996 no
,* |
*,no |
*\'*)
16997 # Didn't find X, or a directory has "'" in its name.
16998 ac_cv_have_x
="have_x=no";; #(
17000 # Record where we found X for the cache.
17001 ac_cv_have_x
="have_x=yes\
17002 ac_x_includes='$ac_x_includes'\
17003 ac_x_libraries='$ac_x_libraries'"
17009 eval "$ac_cv_have_x"
17012 if test "$have_x" != yes; then
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
17014 $as_echo "$have_x" >&6; }
17017 # If each of the values was on the command line, it overrides each guess.
17018 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
17019 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
17020 # Update the cache value to reflect the command line values.
17021 ac_cv_have_x
="have_x=yes\
17022 ac_x_includes='$x_includes'\
17023 ac_x_libraries='$x_libraries'"
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
17025 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
17029 # Unlike the sim directory, whether a simulator is linked is controlled by
17030 # presence of a gdb_sim definition in the target configure.tgt entry.
17031 # This code just checks for a few cases where we'd like to ignore those
17032 # definitions, even when they're present in the '.mt' file. These cases
17033 # are when --disable-sim is specified, or if the simulator directory is
17034 # not part of the source tree.
17036 # Check whether --enable-sim was given.
17037 if test "${enable_sim+set}" = set; then :
17038 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
17039 echo "enableval = ${enableval}";
17040 case "${enableval}" in
17041 yes) ignore_sim
=false
;;
17042 no
) ignore_sim
=true
;;
17043 *) ignore_sim
=false
;;
17050 if test ! -d "${srcdir}/../sim"; then
17056 if test "${ignore_sim}" = "false"; then
17057 if test x
"${gdb_sim}" != x
; then
17059 SIM_OBS
="remote-sim.o"
17061 $as_echo "#define WITH_SIM 1" >>confdefs.h
17064 # Some tdep code should only be compiled in when the ppc sim is
17065 # built. PR sim/13418.
17069 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
17089 # List of host floatformats.
17091 cat >>confdefs.h
<<_ACEOF
17092 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
17096 cat >>confdefs.h
<<_ACEOF
17097 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
17101 cat >>confdefs.h
<<_ACEOF
17102 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
17106 # target_subdir is used by the testsuite to find the target libraries.
17108 if test "${host}" != "${target}"; then
17109 target_subdir
="${target_alias}/"
17113 # Import nat definitions.
17114 nat_makefile_frag
=/dev
/null
17115 if test "${gdb_native}" = "yes"; then
17116 .
${srcdir}/configure.nat
17117 nativefile
=$NAT_FILE
17130 if test x
"${gdb_osabi}" != x
; then
17132 cat >>confdefs.h
<<_ACEOF
17133 #define GDB_OSABI_DEFAULT $gdb_osabi
17138 # Enable multi-ice-gdb-server.
17139 # Check whether --enable-multi-ice was given.
17140 if test "${enable_multi_ice+set}" = set; then :
17141 enableval
=$enable_multi_ice; case $enableval in
17144 *) as_fn_error
"bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
17148 if test "x$enable_multi_ice" = xyes
; then
17149 subdirs
="$subdirs multi-ice"
17153 # Check whether --enable-gdbserver was given.
17154 if test "${enable_gdbserver+set}" = set; then :
17155 enableval
=$enable_gdbserver; case "${enableval}" in
17157 *) as_fn_error
"bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
17160 enable_gdbserver
=auto
17164 # We only build gdbserver automatically in a native configuration, and
17165 # only if the user did not explicitly disable its build.
17166 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
17167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
17168 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
17169 if test "x$build_gdbserver" = xyes
; then
17170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17171 $as_echo "yes" >&6; }
17172 subdirs
="$subdirs gdbserver"
17174 gdbserver_build_enabled
=yes
17176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17177 $as_echo "no" >&6; }
17181 # If the user explicitly request the gdbserver to be built, verify that
17182 # we were in fact able to enable it.
17183 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
17184 as_fn_error
"Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
17187 # Check for babeltrace and babeltrace-ctf
17189 # Check whether --with-babeltrace was given.
17190 if test "${with_babeltrace+set}" = set; then :
17191 withval
=$with_babeltrace;
17193 with_babeltrace
=auto
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
17197 $as_echo_n "checking whether to use babeltrace... " >&6; }
17198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
17199 $as_echo "$with_babeltrace" >&6; }
17201 if test "x$with_babeltrace" = "xno"; then
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
17203 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
17205 # Append -Werror to CFLAGS so that configure can catch the warning
17206 # "assignment from incompatible pointer type", which is related to
17207 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
17208 # in GDB, while babeltrace 1.0.3 is broken.
17209 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
17210 # safe to save and restore CFLAGS here.
17211 saved_CFLAGS
=$CFLAGS
17212 CFLAGS
="$CFLAGS -Werror"
17223 acl_save_prefix
="$prefix"
17224 prefix
="$acl_final_prefix"
17225 acl_save_exec_prefix
="$exec_prefix"
17226 exec_prefix
="$acl_final_exec_prefix"
17228 eval additional_includedir
=\"$includedir\"
17229 eval additional_libdir
=\"$libdir\"
17231 exec_prefix
="$acl_save_exec_prefix"
17232 prefix
="$acl_save_prefix"
17235 # Check whether --with-libbabeltrace-prefix was given.
17236 if test "${with_libbabeltrace_prefix+set}" = set; then :
17237 withval
=$with_libbabeltrace_prefix;
17238 if test "X$withval" = "Xno"; then
17241 if test "X$withval" = "X"; then
17243 acl_save_prefix
="$prefix"
17244 prefix
="$acl_final_prefix"
17245 acl_save_exec_prefix
="$exec_prefix"
17246 exec_prefix
="$acl_final_exec_prefix"
17248 eval additional_includedir
=\"$includedir\"
17249 eval additional_libdir
=\"$libdir\"
17251 exec_prefix
="$acl_save_exec_prefix"
17252 prefix
="$acl_save_prefix"
17255 additional_includedir
="$withval/include"
17256 additional_libdir
="$withval/lib"
17267 names_already_handled
=
17268 names_next_round
='babeltrace babeltrace-ctf'
17269 while test -n "$names_next_round"; do
17270 names_this_round
="$names_next_round"
17272 for name
in $names_this_round; do
17274 for n
in $names_already_handled; do
17275 if test "$n" = "$name"; then
17276 already_handled
=yes
17280 if test -z "$already_handled"; then
17281 names_already_handled
="$names_already_handled $name"
17282 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17283 eval value
=\"\
$HAVE_LIB$uppername\"
17284 if test -n "$value"; then
17285 if test "$value" = yes; then
17286 eval value
=\"\
$LIB$uppername\"
17287 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
17288 eval value
=\"\
$LTLIB$uppername\"
17289 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
17298 if test $use_additional = yes; then
17299 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17300 found_dir
="$additional_libdir"
17301 found_so
="$additional_libdir/lib$name.$shlibext"
17302 if test -f "$additional_libdir/lib$name.la"; then
17303 found_la
="$additional_libdir/lib$name.la"
17306 if test -f "$additional_libdir/lib$name.$libext"; then
17307 found_dir
="$additional_libdir"
17308 found_a
="$additional_libdir/lib$name.$libext"
17309 if test -f "$additional_libdir/lib$name.la"; then
17310 found_la
="$additional_libdir/lib$name.la"
17315 if test "X$found_dir" = "X"; then
17316 for x
in $LDFLAGS $LTLIBBABELTRACE; do
17318 acl_save_prefix
="$prefix"
17319 prefix
="$acl_final_prefix"
17320 acl_save_exec_prefix
="$exec_prefix"
17321 exec_prefix
="$acl_final_exec_prefix"
17323 exec_prefix
="$acl_save_exec_prefix"
17324 prefix
="$acl_save_prefix"
17328 dir
=`echo "X$x" | sed -e 's/^X-L//'`
17329 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17331 found_so
="$dir/lib$name.$shlibext"
17332 if test -f "$dir/lib$name.la"; then
17333 found_la
="$dir/lib$name.la"
17336 if test -f "$dir/lib$name.$libext"; then
17338 found_a
="$dir/lib$name.$libext"
17339 if test -f "$dir/lib$name.la"; then
17340 found_la
="$dir/lib$name.la"
17346 if test "X$found_dir" != "X"; then
17351 if test "X$found_dir" != "X"; then
17352 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
17353 if test "X$found_so" != "X"; then
17354 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
17355 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17358 for x
in $ltrpathdirs; do
17359 if test "X$x" = "X$found_dir"; then
17364 if test -z "$haveit"; then
17365 ltrpathdirs
="$ltrpathdirs $found_dir"
17367 if test "$hardcode_direct" = yes; then
17368 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17370 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
17371 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17373 for x
in $rpathdirs; do
17374 if test "X$x" = "X$found_dir"; then
17379 if test -z "$haveit"; then
17380 rpathdirs
="$rpathdirs $found_dir"
17384 for x
in $LDFLAGS $LIBBABELTRACE; do
17386 acl_save_prefix
="$prefix"
17387 prefix
="$acl_final_prefix"
17388 acl_save_exec_prefix
="$exec_prefix"
17389 exec_prefix
="$acl_final_exec_prefix"
17391 exec_prefix
="$acl_save_exec_prefix"
17392 prefix
="$acl_save_prefix"
17394 if test "X$x" = "X-L$found_dir"; then
17399 if test -z "$haveit"; then
17400 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
17402 if test "$hardcode_minus_L" != no
; then
17403 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17405 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
17411 if test "X$found_a" != "X"; then
17412 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
17414 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
17417 additional_includedir
=
17418 case "$found_dir" in
17420 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17421 additional_includedir
="$basedir/include"
17424 if test "X$additional_includedir" != "X"; then
17425 if test "X$additional_includedir" != "X/usr/include"; then
17427 if test "X$additional_includedir" = "X/usr/local/include"; then
17428 if test -n "$GCC"; then
17430 linux
*) haveit
=yes;;
17434 if test -z "$haveit"; then
17435 for x
in $CPPFLAGS $INCBABELTRACE; do
17437 acl_save_prefix
="$prefix"
17438 prefix
="$acl_final_prefix"
17439 acl_save_exec_prefix
="$exec_prefix"
17440 exec_prefix
="$acl_final_exec_prefix"
17442 exec_prefix
="$acl_save_exec_prefix"
17443 prefix
="$acl_save_prefix"
17445 if test "X$x" = "X-I$additional_includedir"; then
17450 if test -z "$haveit"; then
17451 if test -d "$additional_includedir"; then
17452 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
17458 if test -n "$found_la"; then
17459 save_libdir
="$libdir"
17460 case "$found_la" in
17461 */* |
*\\*) .
"$found_la" ;;
17462 *) .
"./$found_la" ;;
17464 libdir
="$save_libdir"
17465 for dep
in $dependency_libs; do
17468 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
17469 if test "X$additional_libdir" != "X/usr/lib"; then
17471 if test "X$additional_libdir" = "X/usr/local/lib"; then
17472 if test -n "$GCC"; then
17474 linux
*) haveit
=yes;;
17478 if test -z "$haveit"; then
17480 for x
in $LDFLAGS $LIBBABELTRACE; do
17482 acl_save_prefix
="$prefix"
17483 prefix
="$acl_final_prefix"
17484 acl_save_exec_prefix
="$exec_prefix"
17485 exec_prefix
="$acl_final_exec_prefix"
17487 exec_prefix
="$acl_save_exec_prefix"
17488 prefix
="$acl_save_prefix"
17490 if test "X$x" = "X-L$additional_libdir"; then
17495 if test -z "$haveit"; then
17496 if test -d "$additional_libdir"; then
17497 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
17501 for x
in $LDFLAGS $LTLIBBABELTRACE; do
17503 acl_save_prefix
="$prefix"
17504 prefix
="$acl_final_prefix"
17505 acl_save_exec_prefix
="$exec_prefix"
17506 exec_prefix
="$acl_final_exec_prefix"
17508 exec_prefix
="$acl_save_exec_prefix"
17509 prefix
="$acl_save_prefix"
17511 if test "X$x" = "X-L$additional_libdir"; then
17516 if test -z "$haveit"; then
17517 if test -d "$additional_libdir"; then
17518 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
17525 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
17526 if test "$enable_rpath" != no
; then
17528 for x
in $rpathdirs; do
17529 if test "X$x" = "X$dir"; then
17534 if test -z "$haveit"; then
17535 rpathdirs
="$rpathdirs $dir"
17538 for x
in $ltrpathdirs; do
17539 if test "X$x" = "X$dir"; then
17544 if test -z "$haveit"; then
17545 ltrpathdirs
="$ltrpathdirs $dir"
17550 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17553 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17556 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
17557 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
17563 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
17564 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
17570 if test "X$rpathdirs" != "X"; then
17571 if test -n "$hardcode_libdir_separator"; then
17573 for found_dir
in $rpathdirs; do
17574 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17576 acl_save_libdir
="$libdir"
17578 eval flag
=\"$hardcode_libdir_flag_spec\"
17579 libdir
="$acl_save_libdir"
17580 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
17582 for found_dir
in $rpathdirs; do
17583 acl_save_libdir
="$libdir"
17584 libdir
="$found_dir"
17585 eval flag
=\"$hardcode_libdir_flag_spec\"
17586 libdir
="$acl_save_libdir"
17587 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
17591 if test "X$ltrpathdirs" != "X"; then
17592 for found_dir
in $ltrpathdirs; do
17593 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
17598 ac_save_CPPFLAGS
="$CPPFLAGS"
17600 for element
in $INCBABELTRACE; do
17602 for x
in $CPPFLAGS; do
17604 acl_save_prefix
="$prefix"
17605 prefix
="$acl_final_prefix"
17606 acl_save_exec_prefix
="$exec_prefix"
17607 exec_prefix
="$acl_final_exec_prefix"
17609 exec_prefix
="$acl_save_exec_prefix"
17610 prefix
="$acl_save_prefix"
17612 if test "X$x" = "X$element"; then
17617 if test -z "$haveit"; then
17618 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
17623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
17624 $as_echo_n "checking for libbabeltrace... " >&6; }
17625 if test "${ac_cv_libbabeltrace+set}" = set; then :
17626 $as_echo_n "(cached) " >&6
17629 ac_save_LIBS
="$LIBS"
17630 LIBS
="$LIBS $LIBBABELTRACE"
17631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17632 /* end confdefs.h. */
17633 #include <babeltrace/babeltrace.h>
17634 #include <babeltrace/ctf/events.h>
17635 #include <babeltrace/ctf/iterator.h>
17639 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
17640 struct bt_ctf_event *event = NULL;
17641 const struct bt_definition *scope;
17643 pos->type = BT_SEEK_BEGIN;
17644 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
17645 scope = bt_ctf_get_top_level_scope (event,
17646 BT_STREAM_EVENT_HEADER);
17647 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
17653 if ac_fn_c_try_link
"$LINENO"; then :
17654 ac_cv_libbabeltrace
=yes
17656 ac_cv_libbabeltrace
=no
17658 rm -f core conftest.err conftest.
$ac_objext \
17659 conftest
$ac_exeext conftest.
$ac_ext
17660 LIBS
="$ac_save_LIBS"
17663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
17664 $as_echo "$ac_cv_libbabeltrace" >&6; }
17665 if test "$ac_cv_libbabeltrace" = yes; then
17666 HAVE_LIBBABELTRACE
=yes
17668 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
17671 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
17672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
17673 $as_echo "$LIBBABELTRACE" >&6; }
17675 HAVE_LIBBABELTRACE
=no
17676 CPPFLAGS
="$ac_save_CPPFLAGS"
17686 CFLAGS
=$saved_CFLAGS
17688 if test "$HAVE_LIBBABELTRACE" != yes; then
17689 if test "$with_babeltrace" = yes; then
17690 as_fn_error
"babeltrace is missing or unusable" "$LINENO" 5
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
17693 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
17698 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
17705 if test "${nativefile}" != ""; then
17706 case "${nativefile}" in
17707 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
17708 * ) GDB_NM_FILE
="${nativefile}"
17710 files
="${files} ${GDB_NM_FILE}"
17711 links
="${links} nm.h"
17713 cat >>confdefs.h
<<_ACEOF
17714 #define GDB_NM_FILE "${GDB_NM_FILE}"
17720 for ac_prog
in xsltproc
17722 # Extract the first word of "$ac_prog", so it can be a program name with args.
17723 set dummy
$ac_prog; ac_word
=$2
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17725 $as_echo_n "checking for $ac_word... " >&6; }
17726 if test "${ac_cv_path_XSLTPROC+set}" = set; then :
17727 $as_echo_n "(cached) " >&6
17731 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
17734 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17735 for as_dir
in $PATH
17738 test -z "$as_dir" && as_dir
=.
17739 for ac_exec_ext
in '' $ac_executable_extensions; do
17740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17741 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
17742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17752 XSLTPROC
=$ac_cv_path_XSLTPROC
17753 if test -n "$XSLTPROC"; then
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
17755 $as_echo "$XSLTPROC" >&6; }
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17758 $as_echo "no" >&6; }
17762 test -n "$XSLTPROC" && break
17764 test -n "$XSLTPROC" || XSLTPROC
="missing"
17766 if test "x$USE_MAINTAINER_MODE" = xyes
; then
17767 if test "${XSLTPROC}" = missing
; then
17768 as_fn_error
"unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
17773 ac_sources
="$files"
17775 while test -n "$ac_sources"; do
17776 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
17777 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
17778 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
17780 ac_config_links
="$ac_config_links $ac_config_links_1"
17786 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
17789 if $development; then
17791 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
17793 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_UNITTESTS_OBS)"
17794 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_UNITTESTS_SRCS)"
17798 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
17799 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
17800 if test "x$GDB_TRANSFORM_NAME" = x
; then
17801 GDB_TRANSFORM_NAME
=gdb
17806 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
17807 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
17808 if test "x$GCORE_TRANSFORM_NAME" = x
; then
17809 GCORE_TRANSFORM_NAME
=gcore
17813 ac_config_files
="$ac_config_files gcore"
17815 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"
17818 cat >confcache
<<\_ACEOF
17819 # This file is a shell script that caches the results of configure
17820 # tests run on this system so they can be shared between configure
17821 # scripts and configure runs, see configure's option --config-cache.
17822 # It is not useful on other systems. If it contains results you don't
17823 # want to keep, you may remove or edit it.
17825 # config.status only pays attention to the cache file if you give it
17826 # the --recheck option to rerun configure.
17828 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17829 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17830 # following values.
17834 # The following way of writing the cache mishandles newlines in values,
17835 # but we know of no workaround that is simple, portable, and efficient.
17836 # So, we kill variables containing newlines.
17837 # Ultrix sh set writes to stderr and can't be redirected directly,
17838 # and sets the high bit in the cache file unless we assign to the vars.
17840 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17841 eval ac_val
=\$
$ac_var
17845 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17846 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17849 _ | IFS | as_nl
) ;; #(
17850 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
17851 *) { eval $ac_var=; unset $ac_var;} ;;
17857 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17858 *${as_nl}ac_space
=\
*)
17859 # `set' does not quote correctly, so add quotes: double-quote
17860 # substitution turns \\\\ into \\, and sed turns \\ into \.
17863 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17866 # `set' quotes correctly as required by POSIX, so do not add quotes.
17867 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17876 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17878 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17880 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17881 if test -w "$cache_file"; then
17882 test "x$cache_file" != "x/dev/null" &&
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17884 $as_echo "$as_me: updating cache $cache_file" >&6;}
17885 cat confcache
>$cache_file
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17888 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17893 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17894 # Let make expand exec_prefix.
17895 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17897 DEFS
=-DHAVE_CONFIG_H
17901 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17902 # 1. Remove the extension, and $U if already installed.
17903 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
17904 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
17905 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17906 # will be set to the directory where LIBOBJS objects are built.
17907 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17908 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
17910 LIBOBJS
=$ac_libobjs
17912 LTLIBOBJS
=$ac_ltlibobjs
17915 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17916 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
17917 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17919 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
17920 as_fn_error
"conditional \"HAVE_PYTHON\" was never defined.
17921 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17923 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
17924 as_fn_error
"conditional \"HAVE_GUILE\" was never defined.
17925 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17929 : ${CONFIG_STATUS=./config.status}
17931 ac_clean_files_save
=$ac_clean_files
17932 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17934 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17936 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17938 # Generated by $as_me.
17939 # Run this file to recreate the current configuration.
17940 # Compiler output produced by configure, useful for debugging
17941 # configure, is in config.log if it exists.
17944 ac_cs_recheck=false
17947 SHELL=\${CONFIG_SHELL-$SHELL}
17950 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
17951 ## -------------------- ##
17952 ## M4sh Initialization. ##
17953 ## -------------------- ##
17955 # Be more Bourne compatible
17956 DUALCASE
=1; export DUALCASE
# for MKS sh
17957 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
17960 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17961 # is contrary to our usage. Disable this feature.
17962 alias -g '${1+"$@"}'='"$@"'
17963 setopt NO_GLOB_SUBST
17965 case `(set -o) 2>/dev/null` in #(
17977 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17978 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17979 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17980 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17981 # Prefer a ksh shell builtin over an external printf program on Solaris,
17982 # but without wasting forks for bash or zsh.
17983 if test -z "$BASH_VERSION$ZSH_VERSION" \
17984 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17985 as_echo='print
-r --'
17986 as_echo_n='print
-rn --'
17987 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17988 as_echo='printf %s
\n'
17989 as_echo_n='printf %s
'
17991 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17992 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17993 as_echo_n='/usr
/ucb
/echo -n'
17995 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17996 as_echo_n_body='eval
18000 expr "X$arg" : "X\\(.*\\)$as_nl";
18001 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18003 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
18005 export as_echo_n_body
18006 as_echo_n='sh
-c $as_echo_n_body as_echo
'
18008 export as_echo_body
18009 as_echo='sh
-c $as_echo_body as_echo
'
18012 # The user is always right.
18013 if test "${PATH_SEPARATOR+set}" != set; then
18015 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18016 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18023 # We need space, tab and new line, in precisely that order. Quoting is
18024 # there to prevent editors from complaining about space-tab.
18025 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18026 # splitting by setting IFS to empty value.)
18029 # Find who we are. Look in the path if we contain no directory separator.
18031 *[\\/]* ) as_myself=$0 ;;
18032 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18033 for as_dir in $PATH
18036 test -z "$as_dir" && as_dir=.
18037 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18043 # We did not find ourselves, most probably we were run as `sh COMMAND'
18044 # in which case we are not to be found in the path.
18045 if test "x$as_myself" = x
; then
18048 if test ! -f "$as_myself"; then
18049 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18053 # Unset variables that we do not need and which cause bugs (e.g. in
18054 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18055 # suppresses any "Segmentation fault" message there. '((' could
18056 # trigger a bug in pdksh 5.2.14.
18057 for as_var
in BASH_ENV ENV MAIL MAILPATH
18058 do eval test x\
${$as_var+set} = xset \
18059 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
18072 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
18075 # as_fn_error ERROR [LINENO LOG_FD]
18076 # ---------------------------------
18077 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18078 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18079 # script with status $?, using 1 if that was 0.
18082 as_status
=$?
; test $as_status -eq 0 && as_status
=1
18084 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
18085 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
18087 $as_echo "$as_me: error: $1" >&2
18088 as_fn_exit
$as_status
18092 # as_fn_set_status STATUS
18093 # -----------------------
18094 # Set $? to STATUS, without forking.
18095 as_fn_set_status
()
18098 } # as_fn_set_status
18100 # as_fn_exit STATUS
18101 # -----------------
18102 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18106 as_fn_set_status
$1
18112 # Portably unset VAR.
18115 { eval $1=; unset $1;}
18117 as_unset
=as_fn_unset
18118 # as_fn_append VAR VALUE
18119 # ----------------------
18120 # Append the text in VALUE to the end of the definition contained in VAR. Take
18121 # advantage of any shell optimizations that allow amortized linear growth over
18122 # repeated appends, instead of the typical quadratic growth present in naive
18124 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
18125 eval 'as_fn_append ()
18136 # as_fn_arith ARG...
18137 # ------------------
18138 # Perform arithmetic evaluation on the ARGs, and store the result in the
18139 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18140 # must be portable across $(()) and expr.
18141 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
18142 eval 'as_fn_arith ()
18149 as_val
=`expr "$@" || test $? -eq 1`
18154 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
18155 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
18161 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18162 as_basename
=basename
18167 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
18173 as_me
=`$as_basename -- "$0" ||
18174 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18175 X"$0" : 'X\(//\)$' \| \
18176 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18178 sed '/^.*\/\([^/][^/]*\)\/*$/{
18192 # Avoid depending upon Character Ranges.
18193 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18194 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18195 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18196 as_cr_digits
='0123456789'
18197 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18199 ECHO_C
= ECHO_N
= ECHO_T
=
18200 case `echo -n x` in #(((((
18202 case `echo 'xy\c'` in
18203 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
18205 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
18212 rm -f conf$$ conf$$.exe conf$$.
file
18213 if test -d conf$$.dir
; then
18214 rm -f conf$$.dir
/conf$$.
file
18217 mkdir conf$$.dir
2>/dev
/null
18219 if (echo >conf$$.
file) 2>/dev
/null
; then
18220 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18222 # ... but there are two gotchas:
18223 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18224 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18225 # In both cases, we have to default to `cp -p'.
18226 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
18228 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18236 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
18237 rmdir conf$$.dir
2>/dev
/null
18242 # Create "$as_dir" as a directory, including parents if necessary.
18247 -*) as_dir
=.
/$as_dir;;
18249 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
18253 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18254 *) as_qdir
=$as_dir;;
18256 as_dirs
="'$as_qdir' $as_dirs"
18257 as_dir
=`$as_dirname -- "$as_dir" ||
18258 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18259 X"$as_dir" : 'X\(//\)[^/]' \| \
18260 X"$as_dir" : 'X\(//\)$' \| \
18261 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18262 $as_echo X"$as_dir" |
18263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18267 /^X\(\/\/\)[^/].*/{
18280 test -d "$as_dir" && break
18282 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
18283 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
18287 if mkdir
-p .
2>/dev
/null
; then
18288 as_mkdir_p
='mkdir -p "$as_dir"'
18290 test -d .
/-p && rmdir .
/-p
18294 if test -x / >/dev
/null
2>&1; then
18295 as_test_x
='test -x'
18297 if ls -dL / >/dev
/null
2>&1; then
18304 if test -d "$1"; then
18310 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18311 ???[sx]*):;;*)false;;esac;fi
18315 as_executable_p
=$as_test_x
18317 # Sed expression to map a string onto a valid CPP name.
18318 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18320 # Sed expression to map a string onto a valid variable name.
18321 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18325 ## ----------------------------------- ##
18326 ## Main body of $CONFIG_STATUS script. ##
18327 ## ----------------------------------- ##
18329 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
18331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18332 # Save the log message, to keep $0 and so on meaningful, and to
18333 # report actual input values of CONFIG_FILES etc. instead of their
18334 # values after options handling.
18336 This file was extended by $as_me, which was
18337 generated by GNU Autoconf 2.64. Invocation command line was
18339 CONFIG_FILES = $CONFIG_FILES
18340 CONFIG_HEADERS = $CONFIG_HEADERS
18341 CONFIG_LINKS = $CONFIG_LINKS
18342 CONFIG_COMMANDS = $CONFIG_COMMANDS
18345 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18350 case $ac_config_files in *"
18351 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
18354 case $ac_config_headers in *"
18355 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
18359 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18360 # Files that config.status was made for.
18361 config_files="$ac_config_files"
18362 config_headers="$ac_config_headers"
18363 config_links="$ac_config_links"
18364 config_commands="$ac_config_commands"
18368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18370 \`$as_me' instantiates files and other configuration actions
18371 from templates according to the current configuration. Unless the files
18372 and actions are specified as TAGs, all are instantiated by default.
18374 Usage: $0 [OPTION]... [TAG]...
18376 -h, --help print this help, then exit
18377 -V, --version print version number and configuration settings, then exit
18378 -q, --quiet, --silent
18379 do not print progress messages
18380 -d, --debug don't remove temporary files
18381 --recheck update $as_me by reconfiguring in the same conditions
18382 --file=FILE[:TEMPLATE]
18383 instantiate the configuration file FILE
18384 --header=FILE[:TEMPLATE]
18385 instantiate the configuration header FILE
18387 Configuration files:
18390 Configuration headers:
18393 Configuration links:
18396 Configuration commands:
18399 Report bugs to the package provider."
18402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18405 configured by $0, generated by GNU Autoconf 2.64,
18406 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18408 Copyright (C) 2009 Free Software Foundation, Inc.
18409 This config.status script is free software; the Free Software Foundation
18410 gives unlimited permission to copy, distribute and modify it."
18416 test -n "\$AWK" || AWK=awk
18419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18420 # The default lists apply if the user does not specify any file.
18426 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18427 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
18438 # Handling of the options.
18439 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18441 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
18442 $as_echo "$ac_cs_version"; exit ;;
18443 --debug |
--debu |
--deb |
--de |
--d |
-d )
18445 --file |
--fil |
--fi |
--f )
18448 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18450 as_fn_append CONFIG_FILES
" '$ac_optarg'"
18451 ac_need_defaults
=false
;;
18452 --header |
--heade |
--head |
--hea )
18455 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18457 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
18458 ac_need_defaults
=false
;;
18460 # Conflict between --help and --header
18461 as_fn_error
"ambiguous option: \`$1'
18462 Try \`$0 --help' for more information.";;
18463 --help |
--hel |
-h )
18464 $as_echo "$ac_cs_usage"; exit ;;
18465 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18466 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18469 # This is an error.
18470 -*) as_fn_error
"unrecognized option: \`$1'
18471 Try \`$0 --help' for more information." ;;
18473 *) as_fn_append ac_config_targets
" $1"
18474 ac_need_defaults
=false
;;
18480 ac_configure_extra_args
=
18482 if $ac_cs_silent; then
18484 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18489 if \$ac_cs_recheck; then
18490 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18492 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18493 CONFIG_SHELL='$SHELL'
18494 export CONFIG_SHELL
18499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18503 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18504 ## Running $as_me. ##
18510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18514 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
18515 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR CONFIG_SRC_SUBDIR="$CONFIG_SRC_SUBDIR"
18519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18521 # Handling of arguments.
18522 for ac_config_target
in $ac_config_targets
18524 case $ac_config_target in
18525 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
18526 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
18527 "gdbdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gdbdepdir" ;;
18528 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
18529 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
18530 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
18531 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18532 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
18533 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
18534 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
18536 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18541 # If the user did not use the arguments to specify the items to instantiate,
18542 # then the envvar interface is used. Set only those that are not.
18543 # We use the long form for the default assignment because of an extremely
18544 # bizarre bug on SunOS 4.1.3.
18545 if $ac_need_defaults; then
18546 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18547 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18548 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
18549 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18552 # Have a temporary directory for convenience. Make it in the build tree
18553 # simply because there is no reason against having it here, and in addition,
18554 # creating and moving files from /tmp can sometimes cause problems.
18555 # Hook for its removal unless debugging.
18556 # Note that there is a small window in which the directory will not be cleaned:
18557 # after its creation but before its name has been assigned to `$tmp'.
18561 trap 'exit_status=$?
18562 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18564 trap 'as_fn_exit 1' 1 2 13 15
18566 # Create a (secure) tmp directory for tmp files.
18569 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18570 test -n "$tmp" && test -d "$tmp"
18573 tmp
=.
/conf$$
-$RANDOM
18574 (umask 077 && mkdir
"$tmp")
18575 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
18577 # Set up the scripts for CONFIG_FILES section.
18578 # No need to generate them if there are no CONFIG_FILES.
18579 # This happens for instance with `./config.status config.h'.
18580 if test -n "$CONFIG_FILES"; then
18582 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
18583 ac_cs_awk_getline
=:
18584 ac_cs_awk_pipe_init
=
18585 ac_cs_awk_read_file
='
18586 while ((getline aline < (F[key])) > 0)
18589 ac_cs_awk_pipe_fini
=
18591 ac_cs_awk_getline
=false
18592 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
18593 ac_cs_awk_read_file
='
18595 print "cat " F[key] " &&"
18596 '$ac_cs_awk_pipe_init
18597 # The final `:' finishes the AND list.
18598 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
18600 ac_cr
=`echo X | tr X '\015'`
18601 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18602 # But we know of no other shell where ac_cr would be empty at this
18603 # point, so we can use a bashism as a fallback.
18604 if test "x$ac_cr" = x
; then
18605 eval ac_cr
=\$
\'\\r
\'
18607 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18608 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18611 ac_cs_awk_cr
=$ac_cr
18614 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18617 # Create commands to substitute file output variables.
18619 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18620 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
18621 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
18624 } >conf$
$files.sh
&&
18625 . .
/conf$
$files.sh ||
18626 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
18627 rm -f conf$
$files.sh
18630 echo "cat >conf$$subs.awk <<_ACEOF" &&
18631 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18633 } >conf$$subs.sh ||
18634 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
18635 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18637 for ac_last_try in false false false false false :; do
18638 . ./conf$$subs.sh ||
18639 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
18641 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18642 if test $ac_delim_n = $ac_delim_num; then
18644 elif $ac_last_try; then
18645 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
18647 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18650 rm -f conf$$subs.sh
18652 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18653 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
18657 s/^/S["/; s
/!.
*/"]=/
18667 s/\(.\{148\}\).*/\1/
18669 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18674 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18681 s/\(.\{148\}\).*/\1/
18683 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18687 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18692 ' <conf$$subs.awk | sed '
18697 ' >>$CONFIG_STATUS || ac_write_fail=1
18698 rm -f conf$$subs.awk
18699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18701 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
18702 for (key in S) S_is_set[key] = 1
18704 \$ac_cs_awk_pipe_init
18708 nfields = split(line, field, "@
")
18710 len = length(field[1])
18711 for (i = 2; i < nfields; i++) {
18713 keylen = length(key)
18714 if (S_is_set[key]) {
18716 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18717 len += length(value) + length(field[++i])
18722 if (nfields == 3 && !substed) {
18724 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18725 \$ac_cs_awk_read_file
18731 \$ac_cs_awk_pipe_fini
18734 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18735 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18736 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18739 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
18740 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
18743 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18744 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
18745 # trailing colons and then remove the whole line if VPATH becomes empty
18746 # (actually we leave an empty line to preserve line numbers).
18747 if test "x
$srcdir" = x.; then
18748 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18749 s/:*\$(srcdir):*/:/
18750 s/:*\${srcdir}:*/:/
18752 s/^\([^=]*=[ ]*\):*/\1/
18758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18759 fi # test -n "$CONFIG_FILES"
18761 # Set up the scripts for CONFIG_HEADERS section.
18762 # No need to generate them if there are no CONFIG_HEADERS.
18763 # This happens for instance with `./config.status Makefile'.
18764 if test -n "$CONFIG_HEADERS"; then
18765 cat >"$tmp/defines.
awk" <<\_ACAWK ||
18769 # Transform confdefs.h into an awk script `defines.awk', embedded as
18770 # here-document in config.status, that substitutes the proper values into
18771 # config.h.in to produce config.h.
18773 # Create a delimiter string that does not exist in confdefs.h, to ease
18774 # handling of long lines.
18776 for ac_last_try in false false :; do
18777 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
18778 if test -z "$ac_t"; then
18780 elif $ac_last_try; then
18781 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
18783 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18787 # For the awk script, D is an array of macro values keyed by name,
18788 # likewise P contains macro parameters if any. Preserve backslash
18789 # newline sequences.
18791 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18793 s/.\{148\}/&'"$ac_delim"'/g
18796 s/^[ ]*#[ ]*define[ ][ ]*/ /
18803 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18805 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18809 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18810 D["\
1"]=" \
3\\\\\\n
"\\/p
18812 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18817 s/.\{148\}/&'"$ac_delim"'/g
18822 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18825 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18827 ' <confdefs.h | sed '
18828 s/'"$ac_delim"'/"\\\
18829 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18832 for (key in D) D_is_set[key] = 1
18835 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18837 split(line, arg, " ")
18838 if (arg[1] == "#") {
18842 defundef
= substr
(arg
[1], 2)
18845 split(mac1
, mac2
, "(") #)
18847 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18848 if (D_is_set
[macro
]) {
18849 # Preserve the white space surrounding the "#".
18850 print prefix
"define", macro P
[macro
] D
[macro
]
18853 # Replace #undef with comments. This is necessary, for example,
18854 # in the case of _POSIX_SOURCE, which is predefined and required
18855 # on some systems where configure will not decide to define it.
18856 if (defundef
== "undef") {
18857 print
"/*", prefix defundef
, macro
, "*/"
18865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18866 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
18867 fi # test -n "$CONFIG_HEADERS"
18870 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18875 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18877 case $ac_mode$ac_tag in
18879 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
18880 :[FH
]-) ac_tag
=-:-;;
18881 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18898 -) ac_f
="$tmp/stdin";;
18899 *) # Look for the file first in the build tree, then in the source tree
18900 # (if the path is not absolute). The absolute path cannot be DOS-style,
18901 # because $ac_f cannot contain `:'.
18905 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18907 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
18909 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18910 as_fn_append ac_file_inputs
" '$ac_f'"
18913 # Let's still pretend it is `configure' which instantiates (i.e., don't
18914 # use $as_me), people would be surprised to read:
18915 # /* config.h. Generated by config.status. */
18916 configure_input
='Generated from '`
18917 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18919 if test x
"$ac_file" != x-
; then
18920 configure_input
="$ac_file. $configure_input"
18921 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18922 $as_echo "$as_me: creating $ac_file" >&6;}
18924 # Neutralize special characters interpreted by sed in replacement strings.
18925 case $configure_input in #(
18926 *\
&* |
*\|
* |
*\\* )
18927 ac_sed_conf_input
=`$as_echo "$configure_input" |
18928 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18929 *) ac_sed_conf_input
=$configure_input;;
18933 *:-:* |
*:-) cat >"$tmp/stdin" \
18934 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
18939 ac_dir
=`$as_dirname -- "$ac_file" ||
18940 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18941 X"$ac_file" : 'X\(//\)[^/]' \| \
18942 X"$ac_file" : 'X\(//\)$' \| \
18943 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18944 $as_echo X"$ac_file" |
18945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18949 /^X\(\/\/\)[^/].*/{
18962 as_dir
="$ac_dir"; as_fn_mkdir_p
18966 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18968 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18969 # A ".." for each directory in $ac_dir_suffix.
18970 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18971 case $ac_top_builddir_sub in
18972 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18973 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18976 ac_abs_top_builddir
=$ac_pwd
18977 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18978 # for backward compatibility:
18979 ac_top_builddir
=$ac_top_build_prefix
18982 .
) # We are building in place.
18984 ac_top_srcdir
=$ac_top_builddir_sub
18985 ac_abs_top_srcdir
=$ac_pwd ;;
18986 [\\/]* | ?
:[\\/]* ) # Absolute name.
18987 ac_srcdir
=$srcdir$ac_dir_suffix;
18988 ac_top_srcdir
=$srcdir
18989 ac_abs_top_srcdir
=$srcdir ;;
18990 *) # Relative name.
18991 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18992 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18993 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18995 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
19005 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
19006 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
19010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19011 # If the template does not know about datarootdir, expand it.
19012 # FIXME: This hack should be removed a few years after 2.60.
19013 ac_datarootdir_hack
=; ac_datarootdir_seen
=
19024 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19025 *datarootdir
*) ac_datarootdir_seen
=yes;;
19026 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
19027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19028 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19030 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19031 ac_datarootdir_hack='
19032 s&@datadir@&$datadir&g
19033 s&@docdir@&$docdir&g
19034 s&@infodir@&$infodir&g
19035 s&@localedir@&$localedir&g
19036 s&@mandir@&$mandir&g
19037 s&\\\${datarootdir}&$datarootdir&g' ;;
19041 # Neutralize VPATH when `$srcdir' = `.'.
19042 # Shell code in configure.ac might set extrasub.
19043 # FIXME: do we really want to maintain this feature?
19044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19045 ac_sed_extra="$ac_vpsub
19048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19050 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19051 s|@configure_input@|
$ac_sed_conf_input|
;t t
19052 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
19053 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
19054 s
&@srcdir@
&$ac_srcdir&;t t
19055 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
19056 s
&@top_srcdir@
&$ac_top_srcdir&;t t
19057 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
19058 s
&@builddir@
&$ac_builddir&;t t
19059 s
&@abs_builddir@
&$ac_abs_builddir&;t t
19060 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
19061 s
&@INSTALL@
&$ac_INSTALL&;t t
19062 $ac_datarootdir_hack
19064 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19065 if $ac_cs_awk_getline; then
19066 $AWK -f "$tmp/subs.
awk"
19068 $AWK -f "$tmp/subs.
awk" | $SHELL
19070 || as_fn_error "could not create
$ac_file" "$LINENO" 5
19072 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19073 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
19074 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
19075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
19076 which seems to be undefined. Please make sure it is defined." >&5
19077 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
19078 which seems to be undefined. Please make sure it is defined." >&2;}
19082 -) cat "$tmp/out" && rm -f "$tmp/out";;
19083 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19085 || as_fn_error "could not create $ac_file" "$LINENO" 5
19091 if test x"$ac_file" != x-; then
19093 $as_echo "/* $configure_input */" \
19094 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19095 } >"$tmp/config.h" \
19096 || as_fn_error "could not create $ac_file" "$LINENO" 5
19097 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19098 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19099 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19102 mv "$tmp/config.h" "$ac_file" \
19103 || as_fn_error "could not create $ac_file" "$LINENO" 5
19106 $as_echo "/* $configure_input */" \
19107 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19108 || as_fn_error "could not create -" "$LINENO" 5
19116 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
19119 # Prefer the file from the source tree if names are identical.
19120 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
19121 ac_source=$srcdir/$ac_source
19124 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
19125 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
19127 if test ! -r "$ac_source"; then
19128 as_fn_error "$ac_source: file not found" "$LINENO" 5
19132 # Try a relative symlink, then a hard link, then a copy.
19134 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
19135 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
19137 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
19138 ln "$ac_source" "$ac_file" 2>/dev/null ||
19139 cp -p "$ac_source" "$ac_file" ||
19140 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
19143 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19144 $as_echo "$as_me: executing $ac_file commands" >&6;}
19149 case $ac_file$ac_mode in
19150 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
19152 for subdir in ${CONFIG_SRC_SUBDIR}
19154 $SHELL $ac_aux_dir/mkinstalldirs $subdir/$DEPDIR
19156 "gcore":F) chmod +x gcore ;;
19158 case x$CONFIG_HEADERS in
19159 xconfig.h:config.in)
19164 case x$CONFIG_HEADERS in
19165 xconfig.h:config.in)
19170 case x$CONFIG_HEADERS in
19171 xconfig.h:config.in)
19175 "data-directory/Makefile":F)
19176 case x$CONFIG_HEADERS in
19177 xconfig.h:config.in)
19188 ac_clean_files=$ac_clean_files_save
19190 test $ac_write_fail = 0 ||
19191 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19194 # configure is writing to config.log, and then calls config.status.
19195 # config.status does its own redirection, appending to config.log.
19196 # Unfortunately, on DOS this fails, as config.log is still kept open
19197 # by configure, so config.status won't be able to
write to it
; its
19198 # output is simply discarded. So we exec the FD to /dev/null,
19199 # effectively closing config.log, so it can be properly (re)opened and
19200 # appended to by config.status. When coming back to configure, we
19201 # need to make the FD available again.
19202 if test "$no_create" != yes; then
19204 ac_config_status_args
=
19205 test "$silent" = yes &&
19206 ac_config_status_args
="$ac_config_status_args --quiet"
19208 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19210 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19211 # would make configure fail if this is the last instruction.
19212 $ac_cs_success || as_fn_exit $?
19216 # CONFIG_SUBDIRS section.
19218 if test "$no_recursion" != yes; then
19220 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19221 # so they do not pile up.
19222 ac_sub_configure_args
=
19224 eval "set x $ac_configure_args"
19228 if test -n "$ac_prev"; then
19233 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
19234 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
19235 ac_prev
=cache_file
;;
19236 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
19237 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
19240 --config-cache |
-C)
19242 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
19244 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
19246 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
19248 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
19250 --disable-option-checking)
19254 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19256 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
19260 # Always prepend --prefix to ensure using the same prefix
19261 # in subdir configurations.
19262 ac_arg
="--prefix=$prefix"
19264 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19266 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
19269 if test "$silent" = yes; then
19270 ac_sub_configure_args
="--silent $ac_sub_configure_args"
19273 # Always prepend --disable-option-checking to silence warnings, since
19274 # different subdirs can have different --enable and --with options.
19275 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
19278 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
19280 # Do not complain, so a configure script can configure whichever
19281 # parts of a large source tree are present.
19282 test -d "$srcdir/$ac_dir" ||
continue
19284 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19285 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19286 $as_echo "$ac_msg" >&6
19287 as_dir
="$ac_dir"; as_fn_mkdir_p
19291 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19293 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19294 # A ".." for each directory in $ac_dir_suffix.
19295 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19296 case $ac_top_builddir_sub in
19297 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19298 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
19301 ac_abs_top_builddir
=$ac_pwd
19302 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
19303 # for backward compatibility:
19304 ac_top_builddir
=$ac_top_build_prefix
19307 .
) # We are building in place.
19309 ac_top_srcdir
=$ac_top_builddir_sub
19310 ac_abs_top_srcdir
=$ac_pwd ;;
19311 [\\/]* | ?
:[\\/]* ) # Absolute name.
19312 ac_srcdir
=$srcdir$ac_dir_suffix;
19313 ac_top_srcdir
=$srcdir
19314 ac_abs_top_srcdir
=$srcdir ;;
19315 *) # Relative name.
19316 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
19317 ac_top_srcdir
=$ac_top_build_prefix$srcdir
19318 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
19320 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
19325 # Check for guested configure; otherwise get Cygnus style configure.
19326 if test -f "$ac_srcdir/configure.gnu"; then
19327 ac_sub_configure
=$ac_srcdir/configure.gnu
19328 elif test -f "$ac_srcdir/configure"; then
19329 ac_sub_configure
=$ac_srcdir/configure
19330 elif test -f "$ac_srcdir/configure.in"; then
19331 # This should be Cygnus configure.
19332 ac_sub_configure
=$ac_aux_dir/configure
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19335 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19339 # The recursion is here.
19340 if test -n "$ac_sub_configure"; then
19341 # Make the cache file name correct relative to the subdirectory.
19342 case $cache_file in
19343 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
19344 *) # Relative name.
19345 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
19348 { $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
19349 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19350 # The eval makes quoting arguments work.
19351 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19352 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19353 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19359 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19361 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}