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
683 READLINE_TEXI_INCFLAG
706 HAVE_NATIVE_GCORE_TARGET
737 INSTALL_STRIP_PROGRAM
766 MAINTAINER_MODE_FALSE
795 program_transform_name
806 ac_subst_files
='host_makefile_frag'
808 enable_option_checking
809 enable_maintainer_mode
812 enable_build_with_cxx
813 with_separate_debug_dir
815 with_relocated_sources
817 with_auto_load_safe_path
847 enable_build_warnings
848 enable_gdb_build_warnings
858 with_libbabeltrace_prefix
860 ac_precious_vars
='build_alias
877 ac_subdirs_all
='testsuite
882 # Initialize some variables set by options.
884 ac_init_version
=false
885 ac_unrecognized_opts
=
887 # The variables have the same names as the options, with
888 # dashes changed to underlines.
896 program_transform_name
=s
,x
,x
,
904 # Installation directory options.
905 # These are left unexpanded so users can "make install exec_prefix=/foo"
906 # and all the variables that are supposed to be based on exec_prefix
907 # by default will actually change.
908 # Use braces instead of parens because sh, perl, etc. also accept them.
909 # (The list follows the same order as the GNU Coding Standards.)
910 bindir
='${exec_prefix}/bin'
911 sbindir
='${exec_prefix}/sbin'
912 libexecdir
='${exec_prefix}/libexec'
913 datarootdir
='${prefix}/share'
914 datadir
='${datarootdir}'
915 sysconfdir
='${prefix}/etc'
916 sharedstatedir
='${prefix}/com'
917 localstatedir
='${prefix}/var'
918 includedir
='${prefix}/include'
919 oldincludedir
='/usr/include'
920 docdir
='${datarootdir}/doc/${PACKAGE}'
921 infodir
='${datarootdir}/info'
926 libdir
='${exec_prefix}/lib'
927 localedir
='${datarootdir}/locale'
928 mandir
='${datarootdir}/man'
934 # If the previous option needs an argument, assign it.
935 if test -n "$ac_prev"; then
936 eval $ac_prev=\
$ac_option
942 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
946 # Accept the important Cygnus configure options, so we can diagnose typos.
948 case $ac_dashdash$ac_option in
952 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
954 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
957 -build |
--build |
--buil |
--bui |
--bu)
958 ac_prev
=build_alias
;;
959 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
960 build_alias
=$ac_optarg ;;
962 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
963 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
964 ac_prev
=cache_file
;;
965 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
966 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
967 cache_file
=$ac_optarg ;;
970 cache_file
=config.cache
;;
972 -datadir |
--datadir |
--datadi |
--datad)
974 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
975 datadir
=$ac_optarg ;;
977 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
978 |
--dataroo |
--dataro |
--datar)
979 ac_prev
=datarootdir
;;
980 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
981 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
982 datarootdir
=$ac_optarg ;;
984 -disable-* |
--disable-*)
985 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
986 # Reject names that are not valid shell variable names.
987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
988 as_fn_error
"invalid feature name: $ac_useropt"
989 ac_useropt_orig
=$ac_useropt
990 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
991 case $ac_user_opts in
995 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
996 ac_unrecognized_sep
=', ';;
998 eval enable_
$ac_useropt=no
;;
1000 -docdir |
--docdir |
--docdi |
--doc |
--do)
1002 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1003 docdir
=$ac_optarg ;;
1005 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1007 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1008 dvidir
=$ac_optarg ;;
1010 -enable-* |
--enable-*)
1011 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1012 # Reject names that are not valid shell variable names.
1013 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1014 as_fn_error
"invalid feature name: $ac_useropt"
1015 ac_useropt_orig
=$ac_useropt
1016 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017 case $ac_user_opts in
1019 "enable_
$ac_useropt"
1021 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1022 ac_unrecognized_sep
=', ';;
1024 eval enable_
$ac_useropt=\
$ac_optarg ;;
1026 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1027 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1028 |
--exec |
--exe |
--ex)
1029 ac_prev
=exec_prefix
;;
1030 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1031 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1032 |
--exec=* |
--exe=* |
--ex=*)
1033 exec_prefix
=$ac_optarg ;;
1035 -gas |
--gas |
--ga |
--g)
1036 # Obsolete; use --with-gas.
1039 -help |
--help |
--hel |
--he |
-h)
1040 ac_init_help
=long
;;
1041 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1042 ac_init_help
=recursive
;;
1043 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1044 ac_init_help
=short
;;
1046 -host |
--host |
--hos |
--ho)
1047 ac_prev
=host_alias
;;
1048 -host=* |
--host=* |
--hos=* |
--ho=*)
1049 host_alias
=$ac_optarg ;;
1051 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1053 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1055 htmldir
=$ac_optarg ;;
1057 -includedir |
--includedir |
--includedi |
--included |
--include \
1058 |
--includ |
--inclu |
--incl |
--inc)
1059 ac_prev
=includedir
;;
1060 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1061 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1062 includedir
=$ac_optarg ;;
1064 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1066 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1067 infodir
=$ac_optarg ;;
1069 -libdir |
--libdir |
--libdi |
--libd)
1071 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1072 libdir
=$ac_optarg ;;
1074 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1075 |
--libexe |
--libex |
--libe)
1076 ac_prev
=libexecdir
;;
1077 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1078 |
--libexe=* |
--libex=* |
--libe=*)
1079 libexecdir
=$ac_optarg ;;
1081 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1082 ac_prev
=localedir
;;
1083 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1084 localedir
=$ac_optarg ;;
1086 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1087 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1088 ac_prev
=localstatedir
;;
1089 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1090 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1091 localstatedir
=$ac_optarg ;;
1093 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1095 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1096 mandir
=$ac_optarg ;;
1098 -nfp |
--nfp |
--nf)
1099 # Obsolete; use --without-fp.
1102 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1103 |
--no-cr |
--no-c |
-n)
1106 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1107 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1110 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1111 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1112 |
--oldin |
--oldi |
--old |
--ol |
--o)
1113 ac_prev
=oldincludedir
;;
1114 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1115 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1116 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1117 oldincludedir
=$ac_optarg ;;
1119 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1121 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1122 prefix
=$ac_optarg ;;
1124 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1125 |
--program-pre |
--program-pr |
--program-p)
1126 ac_prev
=program_prefix
;;
1127 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1128 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1129 program_prefix
=$ac_optarg ;;
1131 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1132 |
--program-suf |
--program-su |
--program-s)
1133 ac_prev
=program_suffix
;;
1134 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1135 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1136 program_suffix
=$ac_optarg ;;
1138 -program-transform-name |
--program-transform-name \
1139 |
--program-transform-nam |
--program-transform-na \
1140 |
--program-transform-n |
--program-transform- \
1141 |
--program-transform |
--program-transfor \
1142 |
--program-transfo |
--program-transf \
1143 |
--program-trans |
--program-tran \
1144 |
--progr-tra |
--program-tr |
--program-t)
1145 ac_prev
=program_transform_name
;;
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 program_transform_name
=$ac_optarg ;;
1155 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1157 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1158 pdfdir
=$ac_optarg ;;
1160 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1162 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1165 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1166 |
-silent |
--silent |
--silen |
--sile |
--sil)
1169 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1171 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1173 sbindir
=$ac_optarg ;;
1175 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1176 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1177 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1179 ac_prev
=sharedstatedir
;;
1180 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1181 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1182 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1184 sharedstatedir
=$ac_optarg ;;
1186 -site |
--site |
--sit)
1188 -site=* |
--site=* |
--sit=*)
1191 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1193 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1194 srcdir
=$ac_optarg ;;
1196 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1197 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1198 ac_prev
=sysconfdir
;;
1199 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1200 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1201 sysconfdir
=$ac_optarg ;;
1203 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1204 ac_prev
=target_alias
;;
1205 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1206 target_alias
=$ac_optarg ;;
1208 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1211 -version |
--version |
--versio |
--versi |
--vers |
-V)
1212 ac_init_version
=: ;;
1215 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1218 as_fn_error
"invalid package name: $ac_useropt"
1219 ac_useropt_orig
=$ac_useropt
1220 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1221 case $ac_user_opts in
1225 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1226 ac_unrecognized_sep
=', ';;
1228 eval with_
$ac_useropt=\
$ac_optarg ;;
1230 -without-* |
--without-*)
1231 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1234 as_fn_error
"invalid package name: $ac_useropt"
1235 ac_useropt_orig
=$ac_useropt
1236 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1237 case $ac_user_opts in
1241 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1242 ac_unrecognized_sep
=', ';;
1244 eval with_
$ac_useropt=no
;;
1247 # Obsolete; use --with-x.
1250 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1251 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1252 ac_prev
=x_includes
;;
1253 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1254 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1255 x_includes
=$ac_optarg ;;
1257 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1258 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1259 ac_prev
=x_libraries
;;
1260 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1261 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1262 x_libraries
=$ac_optarg ;;
1264 -*) as_fn_error
"unrecognized option: \`$ac_option'
1265 Try \`$0 --help' for more information."
1269 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1270 # Reject names that are not valid shell variable names.
1271 case $ac_envvar in #(
1272 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1273 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1275 eval $ac_envvar=\
$ac_optarg
1276 export $ac_envvar ;;
1279 # FIXME: should be removed in autoconf 3.0.
1280 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1281 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1282 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1283 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1289 if test -n "$ac_prev"; then
1290 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1291 as_fn_error
"missing argument to $ac_option"
1294 if test -n "$ac_unrecognized_opts"; then
1295 case $enable_option_checking in
1297 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1298 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1302 # Check all directory arguments for consistency.
1303 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1304 datadir sysconfdir sharedstatedir localstatedir includedir \
1305 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1306 libdir localedir mandir
1308 eval ac_val
=\$
$ac_var
1309 # Remove trailing slashes.
1312 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1313 eval $ac_var=\
$ac_val;;
1315 # Be sure to have absolute directory names.
1317 [\\/$
]* | ?
:[\\/]* ) continue;;
1318 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1320 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1323 # There might be people who depend on the old broken behavior: `$host'
1324 # used to hold the argument of --host etc.
1325 # FIXME: To remove some day.
1328 target
=$target_alias
1330 # FIXME: To remove some day.
1331 if test "x$host_alias" != x
; then
1332 if test "x$build_alias" = x
; then
1333 cross_compiling
=maybe
1334 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1335 If a cross compiler is detected then cross compile mode will be used." >&2
1336 elif test "x$build_alias" != "x$host_alias"; then
1342 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1344 test "$silent" = yes && exec 6>/dev
/null
1347 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1348 ac_ls_di
=`ls -di .` &&
1349 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1350 as_fn_error
"working directory cannot be determined"
1351 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1352 as_fn_error
"pwd does not report name of working directory"
1355 # Find the source files, if location was not specified.
1356 if test -z "$srcdir"; then
1357 ac_srcdir_defaulted
=yes
1358 # Try the directory containing this script, then the parent directory.
1359 ac_confdir
=`$as_dirname -- "$as_myself" ||
1360 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1361 X"$as_myself" : 'X\(//\)[^/]' \| \
1362 X"$as_myself" : 'X\(//\)$' \| \
1363 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1364 $as_echo X"$as_myself" |
1365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1383 if test ! -r "$srcdir/$ac_unique_file"; then
1387 ac_srcdir_defaulted
=no
1389 if test ! -r "$srcdir/$ac_unique_file"; then
1390 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1391 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1393 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1395 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1397 # When building in place, set srcdir=.
1398 if test "$ac_abs_confdir" = "$ac_pwd"; then
1401 # Remove unnecessary trailing slashes from srcdir.
1402 # Double slashes in file names in object file debugging info
1403 # mess up M-x gdb in Emacs.
1405 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1407 for ac_var
in $ac_precious_vars; do
1408 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1409 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1410 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1411 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1415 # Report the --help message.
1417 if test "$ac_init_help" = "long"; then
1418 # Omit some internal or obsolete options to make the list less imposing.
1419 # This message is too long to be a string in the A/UX 3.1 sh.
1421 \`configure' configures this package to adapt to many kinds of systems.
1423 Usage: $0 [OPTION]... [VAR=VALUE]...
1425 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1426 VAR=VALUE. See below for descriptions of some of the useful variables.
1428 Defaults for the options are specified in brackets.
1431 -h, --help display this help and exit
1432 --help=short display options specific to this package
1433 --help=recursive display the short help of all the included packages
1434 -V, --version display version information and exit
1435 -q, --quiet, --silent do not print \`checking...' messages
1436 --cache-file=FILE cache test results in FILE [disabled]
1437 -C, --config-cache alias for \`--cache-file=config.cache'
1438 -n, --no-create do not create output files
1439 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1441 Installation directories:
1442 --prefix=PREFIX install architecture-independent files in PREFIX
1443 [$ac_default_prefix]
1444 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1447 By default, \`make install' will install all the files in
1448 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1449 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1450 for instance \`--prefix=\$HOME'.
1452 For better control, use the options below.
1454 Fine tuning of the installation directories:
1455 --bindir=DIR user executables [EPREFIX/bin]
1456 --sbindir=DIR system admin executables [EPREFIX/sbin]
1457 --libexecdir=DIR program executables [EPREFIX/libexec]
1458 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1459 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1460 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1461 --libdir=DIR object code libraries [EPREFIX/lib]
1462 --includedir=DIR C header files [PREFIX/include]
1463 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1464 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1465 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1466 --infodir=DIR info documentation [DATAROOTDIR/info]
1467 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1468 --mandir=DIR man documentation [DATAROOTDIR/man]
1469 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1470 --htmldir=DIR html documentation [DOCDIR]
1471 --dvidir=DIR dvi documentation [DOCDIR]
1472 --pdfdir=DIR pdf documentation [DOCDIR]
1473 --psdir=DIR ps documentation [DOCDIR]
1479 --program-prefix=PREFIX prepend PREFIX to installed program names
1480 --program-suffix=SUFFIX append SUFFIX to installed program names
1481 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1484 --x-includes=DIR X include files are
in DIR
1485 --x-libraries=DIR X library files are
in DIR
1488 --build=BUILD configure
for building on BUILD
[guessed
]
1489 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1490 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1494 if test -n "$ac_init_help"; then
1499 --disable-option-checking ignore unrecognized
--enable/--with options
1500 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1501 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1502 --enable-maintainer-mode enable make rules and dependencies not useful
1503 (and sometimes confusing
) to the casual installer
1504 --enable-plugins Enable support
for plugins
1505 --disable-largefile omit support
for large files
1506 --enable-build-with-cxx build with C
++ compiler instead of C compiler
1507 --enable-targets=TARGETS
1508 alternative target configurations
1509 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1510 --disable-gdbcli disable command-line interface
(CLI
)
1511 --disable-gdbmi disable machine-interface
(MI
)
1512 --enable-tui enable full-screen terminal user interface
(TUI
)
1513 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1514 --enable-profiling enable profiling of GDB
1515 --disable-rpath do not hardcode runtime library paths
1516 --enable-libmcheck Try linking with
-lmcheck if available
1517 --enable-werror treat compile warnings as errors
1518 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1519 --enable-gdb-build-warnings
1520 enable GDB specific build-time compiler warnings
if
1522 --enable-sim link gdb with simulator
1523 --enable-multi-ice build the multi-ice-gdb-server
1524 --enable-gdbserver automatically build gdbserver
(yes
/no
/auto
, default
1528 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1529 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1530 --with-separate-debug-dir=PATH
1531 look for global separate debug info
in this path
1533 --with-gdb-datadir=PATH
look for global separate data files
in this path
1535 --with-relocated-sources=PATH
1536 automatically relocate this path
for source files
1537 --with-auto-load-dir=PATH
1538 directories from
which to load auto-loaded scripts
1539 [$debugdir:$datadir/auto-load
]
1540 --with-auto-load-safe-path=PATH
1541 directories safe to hold auto-loaded files
1542 [--with-auto-load-dir]
1543 --without-auto-load-safe-path
1544 do not restrict auto-loaded files locations
1545 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1546 --with-curses use the curses library instead of the termcap
1548 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1549 --with-bugurl=URL Direct users to URL to report a bug
1550 --with-system-zlib use installed libz
1551 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1552 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1553 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1554 --with-iconv-bin=PATH specify where to find the iconv program
1555 --with-system-readline use installed readline library
1556 --with-jit-reader-dir=PATH
1557 directory to load the JIT readers from
1558 --with-expat include expat support (auto/yes/no)
1559 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1560 --without-libexpat-prefix don't search
for libexpat
in includedir and libdir
1561 --with-python[=PYTHON
] include python support
1562 (auto
/yes
/no
/<python-program
>)
1563 --with-guile[=GUILE
] include guile support
1564 (auto
/yes
/no
/<guile-version
>/<pkg-config-program
>)
1565 --with-intel-pt include Intel Processor Trace support
(auto
/yes
/no
)
1566 --with-libipt-prefix[=DIR
] search
for libipt
in DIR
/include and DIR
/lib
1567 --without-libipt-prefix don
't search for libipt in includedir and libdir
1568 --without-included-regex
1569 don't use included regex
; this is the default on
1570 systems with version
2 of the GNU C library
(use
1571 with caution on other system
)
1572 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1573 --with-system-gdbinit=PATH
1574 automatically load a system-wide gdbinit
file
1575 --with-lzma support lzma compression
(auto
/yes
/no
)
1576 --with-liblzma-prefix[=DIR
] search
for liblzma
in DIR
/include and DIR
/lib
1577 --without-liblzma-prefix don
't search for liblzma in includedir and libdir
1578 --with-tcl directory containing tcl configuration (tclConfig.sh)
1579 --with-tk directory containing tk configuration (tkConfig.sh)
1580 --with-x use the X Window System
1581 --with-babeltrace include babeltrace support (auto/yes/no)
1582 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1583 --without-libbabeltrace-prefix don't search
for libbabeltrace
in includedir and libdir
1585 Some influential environment variables
:
1586 CC C compiler
command
1587 CFLAGS C compiler flags
1588 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1589 nonstandard directory
<lib dir
>
1590 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1591 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1592 you have headers
in a nonstandard directory
<include dir
>
1593 CXX C
++ compiler
command
1594 CXXFLAGS C
++ compiler flags
1596 MAKEINFO Parent configure detects
if it is of sufficient version.
1598 Parameters
for MAKEINFO.
1599 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1600 the first program found out of: `bison
-y', `byacc', `yacc'.
1601 YFLAGS The list of arguments that will be passed by default to $YACC.
1602 This script will default YFLAGS to the empty string to avoid a
1603 default value of `-d' given by some make applications.
1604 XMKMF Path to xmkmf, Makefile generator for X Window System
1606 Use these variables to override the choices made by `configure' or to
help
1607 it to
find libraries and programs with nonstandard names
/locations.
1609 Report bugs to the package provider.
1614 if test "$ac_init_help" = "recursive"; then
1615 # If there are subdirs, report their specific --help.
1616 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1617 test -d "$ac_dir" ||
1618 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1623 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1625 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1626 # A ".." for each directory in $ac_dir_suffix.
1627 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1628 case $ac_top_builddir_sub in
1629 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1630 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1633 ac_abs_top_builddir
=$ac_pwd
1634 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1635 # for backward compatibility:
1636 ac_top_builddir
=$ac_top_build_prefix
1639 .
) # We are building in place.
1641 ac_top_srcdir
=$ac_top_builddir_sub
1642 ac_abs_top_srcdir
=$ac_pwd ;;
1643 [\\/]* | ?
:[\\/]* ) # Absolute name.
1644 ac_srcdir
=$srcdir$ac_dir_suffix;
1645 ac_top_srcdir
=$srcdir
1646 ac_abs_top_srcdir
=$srcdir ;;
1648 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1649 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1650 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1652 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1654 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1655 # Check for guested configure.
1656 if test -f "$ac_srcdir/configure.gnu"; then
1658 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1659 elif test -f "$ac_srcdir/configure"; then
1661 $SHELL "$ac_srcdir/configure" --help=recursive
1663 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1665 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1669 test -n "$ac_init_help" && exit $ac_status
1670 if $ac_init_version; then
1673 generated by GNU Autoconf
2.64
1675 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1676 This configure
script is free software
; the Free Software Foundation
1677 gives unlimited permission to copy
, distribute and modify it.
1682 ## ------------------------ ##
1683 ## Autoconf initialization. ##
1684 ## ------------------------ ##
1686 # ac_fn_c_try_compile LINENO
1687 # --------------------------
1688 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1689 ac_fn_c_try_compile
()
1691 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1692 rm -f conftest.
$ac_objext
1693 if { { ac_try
="$ac_compile"
1695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_compile") 2>conftest.err
1702 if test -s conftest.err; then
1703 grep -v '^ *+' conftest.err >conftest.er1
1704 cat conftest.er1 >&5
1705 mv -f conftest.er1 conftest.err
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } && {
1709 test -z "$ac_c_werror_flag" ||
1710 test ! -s conftest.err
1711 } && test -s conftest.$ac_objext; then :
1714 $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1719 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1722 } # ac_fn_c_try_compile
1724 # ac_fn_cxx_try_compile LINENO
1725 # ----------------------------
1726 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1727 ac_fn_cxx_try_compile ()
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 rm -f conftest.$ac_objext
1731 if { { ac_try="$ac_compile"
1733 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1734 *) ac_try_echo
=$ac_try;;
1736 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_compile") 2>conftest.err
1740 if test -s conftest.err
; then
1741 grep -v '^ *+' conftest.err
>conftest.er1
1742 cat conftest.er1
>&5
1743 mv -f conftest.er1 conftest.err
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && {
1747 test -z "$ac_cxx_werror_flag" ||
1748 test ! -s conftest.err
1749 } && test -s conftest.
$ac_objext; then :
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.
$ac_ext >&5
1757 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1760 } # ac_fn_cxx_try_compile
1762 # ac_fn_c_try_cpp LINENO
1763 # ----------------------
1764 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1767 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1768 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1770 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1771 *) ac_try_echo=$ac_try;;
1773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774 $as_echo "$ac_try_echo"; } >&5
1775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1777 if test -s conftest.err; then
1778 grep -v '^ *+' conftest.err >conftest.er1
1779 cat conftest.er1 >&5
1780 mv -f conftest.er1 conftest.err
1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783 test $ac_status = 0; } >/dev/null && {
1784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1785 test ! -s conftest.err
1789 $as_echo "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.$ac_ext >&5
1794 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1799 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1800 # -------------------------------------------------------
1801 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1802 # the include files in INCLUDES and setting the cache variable VAR
1804 ac_fn_c_check_header_mongrel ()
1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809 $as_echo_n "checking for $2... " >&6; }
1810 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1811 $as_echo_n "(cached) " >&6
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1815 $as_echo "$ac_res" >&6; }
1817 # Is the header compilable?
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1819 $as_echo_n "checking $2 usability... " >&6; }
1820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821 /* end confdefs.h. */
1825 if ac_fn_c_try_compile "$LINENO"; then :
1826 ac_header_compiler=yes
1828 ac_header_compiler=no
1830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1832 $as_echo "$ac_header_compiler" >&6; }
1834 # Is the header present?
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1836 $as_echo_n "checking $2 presence... " >&6; }
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h. */
1841 if ac_fn_c_try_cpp "$LINENO"; then :
1842 ac_header_preproc=yes
1844 ac_header_preproc=no
1846 rm -f conftest.err conftest.$ac_ext
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1848 $as_echo "$ac_header_preproc" >&6; }
1850 # So? What about this header?
1851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1854 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1856 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1860 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1862 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1864 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1866 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1868 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872 $as_echo_n "checking for $2... " >&6; }
1873 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1874 $as_echo_n "(cached) " >&6
1876 eval "$3=\$ac_header_compiler"
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880 $as_echo "$ac_res" >&6; }
1882 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1884 } # ac_fn_c_check_header_mongrel
1886 # ac_fn_c_try_run LINENO
1887 # ----------------------
1888 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1889 # that executables *can* be run.
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 if { { ac_try="$ac_link"
1895 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1896 *) ac_try_echo
=$ac_try;;
1898 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899 $as_echo "$ac_try_echo"; } >&5
1900 (eval "$ac_link") 2>&5
1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1904 { { case "(($ac_try" in
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_try") 2>&5
1912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913 test $ac_status = 0; }; }; then :
1916 $as_echo "$as_me: program exited with status $ac_status" >&5
1917 $as_echo "$as_me: failed program was:" >&5
1918 sed 's/^/| /' conftest.$ac_ext >&5
1920 ac_retval=$ac_status
1922 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1923 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1928 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1929 # -------------------------------------------------------
1930 # Tests whether HEADER exists and can be compiled using the include files in
1931 # INCLUDES, setting the cache variable VAR accordingly.
1932 ac_fn_c_check_header_compile ()
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1936 $as_echo_n "checking for $2... " >&6; }
1937 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1938 $as_echo_n "(cached) " >&6
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1945 if ac_fn_c_try_compile "$LINENO"; then :
1950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954 $as_echo "$ac_res" >&6; }
1955 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1957 } # ac_fn_c_check_header_compile
1959 # ac_fn_c_try_link LINENO
1960 # -----------------------
1961 # Try to link conftest.$ac_ext, and return whether this succeeded.
1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965 rm -f conftest.$ac_objext conftest$ac_exeext
1966 if { { ac_try="$ac_link"
1968 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1969 *) ac_try_echo
=$ac_try;;
1971 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1972 $as_echo "$ac_try_echo"; } >&5
1973 (eval "$ac_link") 2>conftest.err
1975 if test -s conftest.err
; then
1976 grep -v '^ *+' conftest.err
>conftest.er1
1977 cat conftest.er1
>&5
1978 mv -f conftest.er1 conftest.err
1980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1981 test $ac_status = 0; } && {
1982 test -z "$ac_c_werror_flag" ||
1983 test ! -s conftest.err
1984 } && test -s conftest
$ac_exeext && {
1985 test "$cross_compiling" = yes ||
1986 $as_test_x conftest
$ac_exeext
1990 $as_echo "$as_me: failed program was:" >&5
1991 sed 's/^/| /' conftest.
$ac_ext >&5
1995 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1996 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1997 # interfere with the next link command; also delete a directory that is
1998 # left behind by Apple's compiler. We do this before executing the actions.
1999 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2000 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2003 } # ac_fn_c_try_link
2005 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2006 # --------------------------------------------
2007 # Tries to find the compile-time value of EXPR in a program that includes
2008 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2010 ac_fn_c_compute_int
()
2012 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2013 if test "$cross_compiling" = yes; then
2014 # Depending upon the size, compute the lo and hi bounds.
2015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h. */
2021 static int test_array [1 - 2 * !(($2) >= 0)];
2028 if ac_fn_c_try_compile
"$LINENO"; then :
2031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2037 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2044 if ac_fn_c_try_compile
"$LINENO"; then :
2045 ac_hi
=$ac_mid; break
2047 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2048 if test $ac_lo -le $ac_mid; then
2052 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2054 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h. */
2063 static int test_array [1 - 2 * !(($2) < 0)];
2070 if ac_fn_c_try_compile
"$LINENO"; then :
2073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2079 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2086 if ac_fn_c_try_compile
"$LINENO"; then :
2087 ac_lo
=$ac_mid; break
2089 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2090 if test $ac_mid -le $ac_hi; then
2094 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2096 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2103 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2104 # Binary search between lo and hi bounds.
2105 while test "x$ac_lo" != "x$ac_hi"; do
2106 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2113 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2120 if ac_fn_c_try_compile
"$LINENO"; then :
2123 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2125 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2128 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h. */
2135 static long int longval () { return $2; }
2136 static unsigned long int ulongval () { return $2; }
2143 FILE *f = fopen ("conftest.val", "w");
2148 long int i = longval ();
2151 fprintf (f, "%ld", i);
2155 unsigned long int i = ulongval ();
2158 fprintf (f, "%lu", i);
2160 /* Do not output a trailing newline, as this causes \r\n confusion
2161 on some platforms. */
2162 return ferror (f) || fclose (f) != 0;
2168 if ac_fn_c_try_run
"$LINENO"; then :
2169 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2173 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2174 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2178 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2181 } # ac_fn_c_compute_int
2183 # ac_fn_c_check_func LINENO FUNC VAR
2184 # ----------------------------------
2185 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2186 ac_fn_c_check_func
()
2188 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2190 $as_echo_n "checking for $2... " >&6; }
2191 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2192 $as_echo_n "(cached) " >&6
2194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2196 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2198 #define $2 innocuous_$2
2200 /* System header to define __stub macros and hopefully few prototypes,
2201 which can conflict with char $2 (); below.
2202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2203 <limits.h> exists even on freestanding compilers. */
2206 # include <limits.h>
2208 # include <assert.h>
2213 /* Override any GCC internal prototype to avoid an error.
2214 Use char because int might match the return type of a GCC
2215 builtin and then its argument prototype would still apply. */
2220 /* The GNU C library defines this for functions which it implements
2221 to always fail with ENOSYS. Some functions are actually named
2222 something starting with __ and the normal name is an alias. */
2223 #if defined __stub_$2 || defined __stub___$2
2235 if ac_fn_c_try_link
"$LINENO"; then :
2240 rm -f core conftest.err conftest.
$ac_objext \
2241 conftest
$ac_exeext conftest.
$ac_ext
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2245 $as_echo "$ac_res" >&6; }
2246 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2248 } # ac_fn_c_check_func
2250 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2251 # -------------------------------------------
2252 # Tests whether TYPE exists after having included INCLUDES, setting cache
2253 # variable VAR accordingly.
2254 ac_fn_c_check_type
()
2256 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2258 $as_echo_n "checking for $2... " >&6; }
2259 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2260 $as_echo_n "(cached) " >&6
2263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h. */
2275 if ac_fn_c_try_compile
"$LINENO"; then :
2276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2277 /* end confdefs.h. */
2288 if ac_fn_c_try_compile
"$LINENO"; then :
2293 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2295 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2299 $as_echo "$ac_res" >&6; }
2300 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2302 } # ac_fn_c_check_type
2304 # ac_fn_c_check_decl LINENO SYMBOL VAR
2305 # ------------------------------------
2306 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2307 ac_fn_c_check_decl
()
2309 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2310 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2311 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2313 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2314 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2315 $as_echo_n "(cached) " >&6
2317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2318 /* end confdefs.h. */
2323 #ifndef $as_decl_name
2325 (void) $as_decl_use;
2327 (void) $as_decl_name;
2335 if ac_fn_c_try_compile
"$LINENO"; then :
2340 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2344 $as_echo "$ac_res" >&6; }
2345 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2347 } # ac_fn_c_check_decl
2349 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2350 # ----------------------------------------------------
2351 # Tries to find if the field MEMBER exists in type AGGR, after including
2352 # INCLUDES, setting cache variable VAR accordingly.
2353 ac_fn_c_check_member
()
2355 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2357 $as_echo_n "checking for $2.$3... " >&6; }
2358 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2359 $as_echo_n "(cached) " >&6
2361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2362 /* end confdefs.h. */
2374 if ac_fn_c_try_compile
"$LINENO"; then :
2377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2378 /* end confdefs.h. */
2384 if (sizeof ac_aggr.$3)
2390 if ac_fn_c_try_compile
"$LINENO"; then :
2395 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2397 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2401 $as_echo "$ac_res" >&6; }
2402 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2404 } # ac_fn_c_check_member
2405 cat >config.log
<<_ACEOF
2406 This file contains any messages produced by compilers while
2407 running configure, to aid debugging if configure makes a mistake.
2409 It was created by $as_me, which was
2410 generated by GNU Autoconf 2.64. Invocation command line was
2422 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2423 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2424 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2425 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2426 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2428 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2429 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2431 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2432 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2433 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2434 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2435 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2436 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2437 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2441 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2445 test -z "$as_dir" && as_dir
=.
2446 $as_echo "PATH: $as_dir"
2462 # Keep a trace of the command line.
2463 # Strip out --no-create and --no-recursion so they do not pile up.
2464 # Strip out --silent because we don't want to record it for future runs.
2465 # Also quote any args containing shell meta-characters.
2466 # Make two passes to allow for proper duplicate-argument suppression.
2470 ac_must_keep_next
=false
2476 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2477 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2478 |
-silent |
--silent |
--silen |
--sile |
--sil)
2481 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2484 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2486 as_fn_append ac_configure_args1
" '$ac_arg'"
2487 if test $ac_must_keep_next = true
; then
2488 ac_must_keep_next
=false
# Got value, back to normal.
2491 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2492 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2493 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2494 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2495 case "$ac_configure_args0 " in
2496 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2499 -* ) ac_must_keep_next
=true
;;
2502 as_fn_append ac_configure_args
" '$ac_arg'"
2507 { ac_configure_args0
=; unset ac_configure_args0
;}
2508 { ac_configure_args1
=; unset ac_configure_args1
;}
2510 # When interrupted or exit'd, cleanup temporary files, and complete
2511 # config.log. We remove comments because anyway the quotes in there
2512 # would cause problems or look ugly.
2513 # WARNING: Use '\'' to represent an apostrophe within the trap.
2514 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2515 trap 'exit_status=$?
2516 # Save into config.log some information that might help in debugging.
2521 ## ---------------- ##
2522 ## Cache variables. ##
2523 ## ---------------- ##
2526 # The following way of writing the cache mishandles newlines in values,
2528 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2529 eval ac_val=\$$ac_var
2533 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2534 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2537 _ | IFS | as_nl) ;; #(
2538 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2539 *) { eval $ac_var=; unset $ac_var;} ;;
2544 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2545 *${as_nl}ac_space=\ *)
2547 "s/'\''/'\''\\\\'\'''\''/g;
2548 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2551 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2559 ## ----------------- ##
2560 ## Output variables. ##
2561 ## ----------------- ##
2564 for ac_var in $ac_subst_vars
2566 eval ac_val=\$$ac_var
2568 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2570 $as_echo "$ac_var='\''$ac_val'\''"
2574 if test -n "$ac_subst_files"; then
2576 ## ------------------- ##
2577 ## File substitutions. ##
2578 ## ------------------- ##
2581 for ac_var
in $ac_subst_files
2583 eval ac_val
=\$
$ac_var
2585 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2587 $as_echo "$ac_var='\''$ac_val'\''"
2592 if test -s confdefs.h; then
2602 test "$ac_signal" != 0 &&
2603 $as_echo "$as_me: caught signal $ac_signal"
2604 $as_echo "$as_me: exit $exit_status"
2606 rm -f core *.core core.conftest.* &&
2607 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2610 for ac_signal
in 1 2 13 15; do
2611 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2615 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2616 rm -f -r conftest
* confdefs.h
2618 $as_echo "/* confdefs.h */" > confdefs.h
2620 # Predefined preprocessor variables.
2622 cat >>confdefs.h
<<_ACEOF
2623 #define PACKAGE_NAME "$PACKAGE_NAME"
2626 cat >>confdefs.h
<<_ACEOF
2627 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2630 cat >>confdefs.h
<<_ACEOF
2631 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2634 cat >>confdefs.h
<<_ACEOF
2635 #define PACKAGE_STRING "$PACKAGE_STRING"
2638 cat >>confdefs.h
<<_ACEOF
2639 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2642 cat >>confdefs.h
<<_ACEOF
2643 #define PACKAGE_URL "$PACKAGE_URL"
2647 # Let the site file select an alternate cache file if it wants to.
2648 # Prefer an explicitly selected file to automatically selected ones.
2651 if test -n "$CONFIG_SITE"; then
2652 ac_site_file1
=$CONFIG_SITE
2653 elif test "x$prefix" != xNONE
; then
2654 ac_site_file1
=$prefix/share
/config.site
2655 ac_site_file2
=$prefix/etc
/config.site
2657 ac_site_file1
=$ac_default_prefix/share
/config.site
2658 ac_site_file2
=$ac_default_prefix/etc
/config.site
2660 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2662 test "x$ac_site_file" = xNONE
&& continue
2663 if test -r "$ac_site_file"; then
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2665 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2666 sed 's/^/| /' "$ac_site_file" >&5
2671 if test -r "$cache_file"; then
2672 # Some versions of bash will fail to source /dev/null (special
2673 # files actually), so we avoid doing that.
2674 if test -f "$cache_file"; then
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2676 $as_echo "$as_me: loading cache $cache_file" >&6;}
2678 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2679 *) .
"./$cache_file";;
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2684 $as_echo "$as_me: creating cache $cache_file" >&6;}
2688 # Check that the precious variables saved in the cache have kept the same
2690 ac_cache_corrupted
=false
2691 for ac_var
in $ac_precious_vars; do
2692 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2693 eval ac_new_set
=\
$ac_env_${ac_var}_set
2694 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2695 eval ac_new_val
=\
$ac_env_${ac_var}_value
2696 case $ac_old_set,$ac_new_set in
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2699 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2700 ac_cache_corrupted
=: ;;
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2703 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2704 ac_cache_corrupted
=: ;;
2707 if test "x$ac_old_val" != "x$ac_new_val"; then
2708 # differences in whitespace do not lead to failure.
2709 ac_old_val_w
=`echo x $ac_old_val`
2710 ac_new_val_w
=`echo x $ac_new_val`
2711 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2713 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2714 ac_cache_corrupted
=:
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2717 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2718 eval $ac_var=\
$ac_old_val
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2721 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2723 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2726 # Pass precious variables to config.status.
2727 if test "$ac_new_set" = set; then
2729 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2730 *) ac_arg
=$ac_var=$ac_new_val ;;
2732 case " $ac_configure_args " in
2733 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2734 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2738 if $ac_cache_corrupted; then
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2742 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2743 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2745 ## -------------------- ##
2746 ## Main body of script. ##
2747 ## -------------------- ##
2750 ac_cpp
='$CPP $CPPFLAGS'
2751 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2752 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2753 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2759 ac_config_headers
="$ac_config_headers config.h:config.in"
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2763 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2764 # Check whether --enable-maintainer-mode was given.
2765 if test "${enable_maintainer_mode+set}" = set; then :
2766 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2768 USE_MAINTAINER_MODE
=no
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2772 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2773 if test $USE_MAINTAINER_MODE = yes; then
2774 MAINTAINER_MODE_TRUE
=
2775 MAINTAINER_MODE_FALSE
='#'
2777 MAINTAINER_MODE_TRUE
='#'
2778 MAINTAINER_MODE_FALSE
=
2781 MAINT
=$MAINTAINER_MODE_TRUE
2785 # Set the 'development' global.
2786 .
$srcdir/..
/bfd
/development.sh
2789 ac_cpp
='$CPP $CPPFLAGS'
2790 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2791 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2792 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2793 if test -n "$ac_tool_prefix"; then
2794 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2795 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2797 $as_echo_n "checking for $ac_word... " >&6; }
2798 if test "${ac_cv_prog_CC+set}" = set; then :
2799 $as_echo_n "(cached) " >&6
2801 if test -n "$CC"; then
2802 ac_cv_prog_CC
="$CC" # Let the user override the test.
2804 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2808 test -z "$as_dir" && as_dir
=.
2809 for ac_exec_ext
in '' $ac_executable_extensions; do
2810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2811 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2822 if test -n "$CC"; then
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2824 $as_echo "$CC" >&6; }
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827 $as_echo "no" >&6; }
2832 if test -z "$ac_cv_prog_CC"; then
2834 # Extract the first word of "gcc", so it can be a program name with args.
2835 set dummy gcc
; ac_word
=$2
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2837 $as_echo_n "checking for $ac_word... " >&6; }
2838 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2839 $as_echo_n "(cached) " >&6
2841 if test -n "$ac_ct_CC"; then
2842 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2844 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2848 test -z "$as_dir" && as_dir
=.
2849 for ac_exec_ext
in '' $ac_executable_extensions; do
2850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2851 ac_cv_prog_ac_ct_CC
="gcc"
2852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2862 if test -n "$ac_ct_CC"; then
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2864 $as_echo "$ac_ct_CC" >&6; }
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2867 $as_echo "no" >&6; }
2870 if test "x$ac_ct_CC" = x
; then
2873 case $cross_compiling:$ac_tool_warned in
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2877 ac_tool_warned
=yes ;;
2885 if test -z "$CC"; then
2886 if test -n "$ac_tool_prefix"; then
2887 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2888 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2890 $as_echo_n "checking for $ac_word... " >&6; }
2891 if test "${ac_cv_prog_CC+set}" = set; then :
2892 $as_echo_n "(cached) " >&6
2894 if test -n "$CC"; then
2895 ac_cv_prog_CC
="$CC" # Let the user override the test.
2897 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2901 test -z "$as_dir" && as_dir
=.
2902 for ac_exec_ext
in '' $ac_executable_extensions; do
2903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2904 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2915 if test -n "$CC"; then
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2917 $as_echo "$CC" >&6; }
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920 $as_echo "no" >&6; }
2926 if test -z "$CC"; then
2927 # Extract the first word of "cc", so it can be a program name with args.
2928 set dummy cc
; ac_word
=$2
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2930 $as_echo_n "checking for $ac_word... " >&6; }
2931 if test "${ac_cv_prog_CC+set}" = set; then :
2932 $as_echo_n "(cached) " >&6
2934 if test -n "$CC"; then
2935 ac_cv_prog_CC
="$CC" # Let the user override the test.
2938 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2942 test -z "$as_dir" && as_dir
=.
2943 for ac_exec_ext
in '' $ac_executable_extensions; do
2944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2945 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2946 ac_prog_rejected
=yes
2950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2957 if test $ac_prog_rejected = yes; then
2958 # We found a bogon in the path, so make sure we never use it.
2959 set dummy
$ac_cv_prog_CC
2961 if test $# != 0; then
2962 # We chose a different compiler from the bogus one.
2963 # However, it has the same basename, so the bogon will be chosen
2964 # first if we set CC to just the basename; use the full file name.
2966 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2972 if test -n "$CC"; then
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2974 $as_echo "$CC" >&6; }
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977 $as_echo "no" >&6; }
2982 if test -z "$CC"; then
2983 if test -n "$ac_tool_prefix"; then
2984 for ac_prog
in cl.exe
2986 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2987 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989 $as_echo_n "checking for $ac_word... " >&6; }
2990 if test "${ac_cv_prog_CC+set}" = set; then :
2991 $as_echo_n "(cached) " >&6
2993 if test -n "$CC"; then
2994 ac_cv_prog_CC
="$CC" # Let the user override the test.
2996 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3000 test -z "$as_dir" && as_dir
=.
3001 for ac_exec_ext
in '' $ac_executable_extensions; do
3002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3003 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014 if test -n "$CC"; then
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3016 $as_echo "$CC" >&6; }
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 $as_echo "no" >&6; }
3023 test -n "$CC" && break
3026 if test -z "$CC"; then
3028 for ac_prog
in cl.exe
3030 # Extract the first word of "$ac_prog", so it can be a program name with args.
3031 set dummy
$ac_prog; ac_word
=$2
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033 $as_echo_n "checking for $ac_word... " >&6; }
3034 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3035 $as_echo_n "(cached) " >&6
3037 if test -n "$ac_ct_CC"; then
3038 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3040 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3044 test -z "$as_dir" && as_dir
=.
3045 for ac_exec_ext
in '' $ac_executable_extensions; do
3046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3047 ac_cv_prog_ac_ct_CC
="$ac_prog"
3048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3057 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3058 if test -n "$ac_ct_CC"; then
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3060 $as_echo "$ac_ct_CC" >&6; }
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063 $as_echo "no" >&6; }
3067 test -n "$ac_ct_CC" && break
3070 if test "x$ac_ct_CC" = x
; then
3073 case $cross_compiling:$ac_tool_warned in
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3077 ac_tool_warned
=yes ;;
3086 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3088 as_fn_error
"no acceptable C compiler found in \$PATH
3089 See \`config.log' for more details." "$LINENO" 5; }
3091 # Provide some information about the compiler.
3092 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3095 for ac_option
in --version -v -V -qversion; do
3096 { { ac_try
="$ac_compiler $ac_option >&5"
3098 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3101 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3102 $as_echo "$ac_try_echo"; } >&5
3103 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3105 if test -s conftest.err; then
3107 ... rest of stderr output deleted ...
3108 10q' conftest.err >conftest.er1
3109 cat conftest.er1 >&5
3110 rm -f conftest.er1 conftest.err
3112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3113 test $ac_status = 0; }
3116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3117 /* end confdefs.h. */
3127 ac_clean_files_save=$ac_clean_files
3128 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3129 # Try to create an executable without -o first, disregard a.out.
3130 # It will help us diagnose broken compilers, and finding out an intuition
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3133 $as_echo_n "checking for C compiler default output file name... " >&6; }
3134 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3136 # The possible output files:
3137 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3140 for ac_file in $ac_files
3143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3144 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3149 if { { ac_try="$ac_link_default"
3151 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3152 *) ac_try_echo
=$ac_try;;
3154 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3155 $as_echo "$ac_try_echo"; } >&5
3156 (eval "$ac_link_default") 2>&5
3158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3159 test $ac_status = 0; }; then :
3160 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3161 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3162 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3163 # so that the user can short-circuit this test for compilers unknown to
3165 for ac_file
in $ac_files ''
3167 test -f "$ac_file" ||
continue
3169 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3172 # We found the default executable, but exeext='' is most
3176 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3178 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3180 # We set ac_cv_exeext here because the later test for it is not
3181 # safe: cross compilers may not add the suffix if given an `-o'
3182 # argument, so we may need to know it at that point already.
3183 # Even if this section looks crufty: it has the advantage of
3190 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3196 $as_echo "$ac_file" >&6; }
3197 if test -z "$ac_file"; then :
3198 $as_echo "$as_me: failed program was:" >&5
3199 sed 's/^/| /' conftest.
$ac_ext >&5
3201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3203 { as_fn_set_status
77
3204 as_fn_error
"C compiler cannot create executables
3205 See \`config.log' for more details." "$LINENO" 5; }; }
3207 ac_exeext
=$ac_cv_exeext
3209 # Check that the compiler produces executables we can run. If not, either
3210 # the compiler is broken, or we cross compile.
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3212 $as_echo_n "checking whether the C compiler works... " >&6; }
3213 # If not cross compiling, check that we can run a simple program.
3214 if test "$cross_compiling" != yes; then
3215 if { ac_try
='./$ac_file'
3216 { { case "(($ac_try" in
3217 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3218 *) ac_try_echo=$ac_try;;
3220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3221 $as_echo "$ac_try_echo"; } >&5
3222 (eval "$ac_try") 2>&5
3224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3225 test $ac_status = 0; }; }; then
3228 if test "$cross_compiling" = maybe; then
3231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3233 as_fn_error "cannot run C compiled programs.
3234 If you meant to cross compile
, use \
`--host'.
3235 See \`config.log
' for more details." "$LINENO" 5; }
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3240 $as_echo "yes" >&6; }
3242 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3243 ac_clean_files=$ac_clean_files_save
3244 # Check that the compiler produces executables we can run. If not, either
3245 # the compiler is broken, or we cross compile.
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3247 $as_echo_n "checking whether we are cross compiling... " >&6; }
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3249 $as_echo "$cross_compiling" >&6; }
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3252 $as_echo_n "checking for suffix of executables... " >&6; }
3253 if { { ac_try="$ac_link"
3255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256 *) ac_try_echo=$ac_try;;
3258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3259 $as_echo "$ac_try_echo"; } >&5
3260 (eval "$ac_link") 2>&5
3262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3263 test $ac_status = 0; }; then :
3264 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3265 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3266 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3268 for ac_file
in conftest.exe conftest conftest.
*; do
3269 test -f "$ac_file" ||
continue
3271 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3272 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3278 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3279 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3280 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3281 See \`config.log' for more details." "$LINENO" 5; }
3283 rm -f conftest
$ac_cv_exeext
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3285 $as_echo "$ac_cv_exeext" >&6; }
3287 rm -f conftest.
$ac_ext
3288 EXEEXT
=$ac_cv_exeext
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3291 $as_echo_n "checking for suffix of object files... " >&6; }
3292 if test "${ac_cv_objext+set}" = set; then :
3293 $as_echo_n "(cached) " >&6
3295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3296 /* end confdefs.h. */
3306 rm -f conftest.o conftest.obj
3307 if { { ac_try
="$ac_compile"
3309 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3313 $as_echo "$ac_try_echo"; } >&5
3314 (eval "$ac_compile") 2>&5
3316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3317 test $ac_status = 0; }; then :
3318 for ac_file in conftest.o conftest.obj conftest.*; do
3319 test -f "$ac_file" || continue;
3321 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3322 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3327 $as_echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3330 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3332 as_fn_error "cannot compute suffix of object files
: cannot compile
3333 See \
`config.log' for more details." "$LINENO" 5; }
3335 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3338 $as_echo "$ac_cv_objext" >&6; }
3339 OBJEXT=$ac_cv_objext
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3342 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3343 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3344 $as_echo_n "(cached) " >&6
3346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3347 /* end confdefs.h. */
3360 if ac_fn_c_try_compile "$LINENO"; then :
3365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3366 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3370 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3371 if test $ac_compiler_gnu = yes; then
3376 ac_test_CFLAGS=${CFLAGS+set}
3377 ac_save_CFLAGS=$CFLAGS
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3379 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3380 if test "${ac_cv_prog_cc_g+set}" = set; then :
3381 $as_echo_n "(cached) " >&6
3383 ac_save_c_werror_flag=$ac_c_werror_flag
3384 ac_c_werror_flag=yes
3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388 /* end confdefs.h. */
3398 if ac_fn_c_try_compile "$LINENO"; then :
3402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403 /* end confdefs.h. */
3413 if ac_fn_c_try_compile "$LINENO"; then :
3416 ac_c_werror_flag=$ac_save_c_werror_flag
3418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419 /* end confdefs.h. */
3429 if ac_fn_c_try_compile "$LINENO"; then :
3432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3437 ac_c_werror_flag=$ac_save_c_werror_flag
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3440 $as_echo "$ac_cv_prog_cc_g" >&6; }
3441 if test "$ac_test_CFLAGS" = set; then
3442 CFLAGS=$ac_save_CFLAGS
3443 elif test $ac_cv_prog_cc_g = yes; then
3444 if test "$GCC" = yes; then
3450 if test "$GCC" = yes; then
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3457 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3458 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3459 $as_echo_n "(cached) " >&6
3461 ac_cv_prog_cc_c89=no
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h. */
3467 #include <sys/types.h>
3468 #include <sys/stat.h>
3469 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3470 struct buf { int x; };
3471 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3472 static char *e (p, i)
3478 static char *f (char * (*g) (char **, int), char **p, ...)
3483 s = g (p, va_arg (v,int));
3488 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3489 function prototypes and stuff, but not '\xHH' hex character constants.
3490 These don't provoke an error unfortunately, instead are silently treated
3491 as 'x'. The following induces an error, until -std is added to get
3492 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3493 array size at least. It's necessary to write '\x00'==0 to get something
3494 that's true only with -std. */
3495 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3497 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3498 inside strings and character constants. */
3500 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3502 int test (int i, double x);
3503 struct s1 {int (*f) (int a);};
3504 struct s2 {int (*f) (double a);};
3505 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3511 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3516 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3517 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3519 CC="$ac_save_CC $ac_arg"
3520 if ac_fn_c_try_compile "$LINENO"; then :
3521 ac_cv_prog_cc_c89=$ac_arg
3523 rm -f core conftest.err conftest.$ac_objext
3524 test "x$ac_cv_prog_cc_c89" != "xno" && break
3526 rm -f conftest.$ac_ext
3531 case "x$ac_cv_prog_cc_c89" in
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3534 $as_echo "none needed" >&6; } ;;
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3537 $as_echo "unsupported" >&6; } ;;
3539 CC="$CC $ac_cv_prog_cc_c89"
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3541 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3543 if test "x$ac_cv_prog_cc_c89" != xno; then :
3548 ac_cpp='$CPP $CPPFLAGS'
3549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3554 ac_cpp='$CXXCPP $CPPFLAGS'
3555 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3556 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3557 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3558 if test -z "$CXX"; then
3559 if test -n "$CCC"; then
3562 if test -n "$ac_tool_prefix"; then
3563 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3565 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3566 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3568 $as_echo_n "checking for $ac_word... " >&6; }
3569 if test "${ac_cv_prog_CXX+set}" = set; then :
3570 $as_echo_n "(cached) " >&6
3572 if test -n "$CXX"; then
3573 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579 test -z "$as_dir" && as_dir=.
3580 for ac_exec_ext in '' $ac_executable_extensions; do
3581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3582 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3593 if test -n "$CXX"; then
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3595 $as_echo "$CXX" >&6; }
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3598 $as_echo "no" >&6; }
3602 test -n "$CXX" && break
3605 if test -z "$CXX"; then
3607 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3609 # Extract the first word of "$ac_prog", so it can be a program name with args.
3610 set dummy $ac_prog; ac_word=$2
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3612 $as_echo_n "checking for $ac_word... " >&6; }
3613 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3614 $as_echo_n "(cached) " >&6
3616 if test -n "$ac_ct_CXX"; then
3617 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623 test -z "$as_dir" && as_dir=.
3624 for ac_exec_ext in '' $ac_executable_extensions; do
3625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3626 ac_cv_prog_ac_ct_CXX="$ac_prog"
3627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3636 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3637 if test -n "$ac_ct_CXX"; then
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3639 $as_echo "$ac_ct_CXX" >&6; }
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3642 $as_echo "no" >&6; }
3646 test -n "$ac_ct_CXX" && break
3649 if test "x$ac_ct_CXX" = x; then
3652 case $cross_compiling:$ac_tool_warned in
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3655 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3656 ac_tool_warned=yes ;;
3664 # Provide some information about the compiler.
3665 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3668 for ac_option in --version -v -V -qversion; do
3669 { { ac_try="$ac_compiler $ac_option >&5"
3671 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3672 *) ac_try_echo
=$ac_try;;
3674 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3675 $as_echo "$ac_try_echo"; } >&5
3676 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3678 if test -s conftest.err
; then
3680 ... rest of stderr output deleted ...
3681 10q' conftest.err
>conftest.er1
3682 cat conftest.er1
>&5
3683 rm -f conftest.er1 conftest.err
3685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3686 test $ac_status = 0; }
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3690 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3691 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3692 $as_echo_n "(cached) " >&6
3694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3695 /* end confdefs.h. */
3708 if ac_fn_cxx_try_compile
"$LINENO"; then :
3713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3714 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3718 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3719 if test $ac_compiler_gnu = yes; then
3724 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3725 ac_save_CXXFLAGS
=$CXXFLAGS
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3727 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3728 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3729 $as_echo_n "(cached) " >&6
3731 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3732 ac_cxx_werror_flag
=yes
3735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3736 /* end confdefs.h. */
3746 if ac_fn_cxx_try_compile
"$LINENO"; then :
3747 ac_cv_prog_cxx_g
=yes
3750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3751 /* end confdefs.h. */
3761 if ac_fn_cxx_try_compile
"$LINENO"; then :
3764 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h. */
3777 if ac_fn_cxx_try_compile
"$LINENO"; then :
3778 ac_cv_prog_cxx_g
=yes
3780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3782 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3784 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3785 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3788 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3789 if test "$ac_test_CXXFLAGS" = set; then
3790 CXXFLAGS
=$ac_save_CXXFLAGS
3791 elif test $ac_cv_prog_cxx_g = yes; then
3792 if test "$GXX" = yes; then
3798 if test "$GXX" = yes; then
3805 ac_cpp
='$CPP $CPPFLAGS'
3806 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3807 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3808 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3813 ac_cpp
='$CPP $CPPFLAGS'
3814 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3815 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3816 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3818 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3819 # On Suns, sometimes $CPP names a directory.
3820 if test -n "$CPP" && test -d "$CPP"; then
3823 if test -z "$CPP"; then
3824 if test "${ac_cv_prog_CPP+set}" = set; then :
3825 $as_echo_n "(cached) " >&6
3827 # Double quotes because CPP needs to be expanded
3828 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3831 for ac_c_preproc_warn_flag
in '' yes
3833 # Use a header file that comes with gcc, so configuring glibc
3834 # with a fresh cross-compiler works.
3835 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3836 # <limits.h> exists even on freestanding compilers.
3837 # On the NeXT, cc -E runs the code through the compiler's parser,
3838 # not just through cpp. "Syntax error" is here to catch this case.
3839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3840 /* end confdefs.h. */
3842 # include <limits.h>
3844 # include <assert.h>
3848 if ac_fn_c_try_cpp
"$LINENO"; then :
3851 # Broken: fails on valid input.
3854 rm -f conftest.err conftest.
$ac_ext
3856 # OK, works on sane cases. Now check whether nonexistent headers
3857 # can be detected and how.
3858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3859 /* end confdefs.h. */
3860 #include <ac_nonexistent.h>
3862 if ac_fn_c_try_cpp
"$LINENO"; then :
3863 # Broken: success on invalid input.
3866 # Passes both tests.
3870 rm -f conftest.err conftest.
$ac_ext
3873 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3874 rm -f conftest.err conftest.
$ac_ext
3875 if $ac_preproc_ok; then :
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3888 $as_echo "$CPP" >&6; }
3890 for ac_c_preproc_warn_flag
in '' yes
3892 # Use a header file that comes with gcc, so configuring glibc
3893 # with a fresh cross-compiler works.
3894 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3895 # <limits.h> exists even on freestanding compilers.
3896 # On the NeXT, cc -E runs the code through the compiler's parser,
3897 # not just through cpp. "Syntax error" is here to catch this case.
3898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3899 /* end confdefs.h. */
3901 # include <limits.h>
3903 # include <assert.h>
3907 if ac_fn_c_try_cpp
"$LINENO"; then :
3910 # Broken: fails on valid input.
3913 rm -f conftest.err conftest.
$ac_ext
3915 # OK, works on sane cases. Now check whether nonexistent headers
3916 # can be detected and how.
3917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3918 /* end confdefs.h. */
3919 #include <ac_nonexistent.h>
3921 if ac_fn_c_try_cpp
"$LINENO"; then :
3922 # Broken: success on invalid input.
3925 # Passes both tests.
3929 rm -f conftest.err conftest.
$ac_ext
3932 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3933 rm -f conftest.err conftest.
$ac_ext
3934 if $ac_preproc_ok; then :
3937 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3939 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
3940 See \`config.log' for more details." "$LINENO" 5; }
3944 ac_cpp
='$CPP $CPPFLAGS'
3945 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3946 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3947 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3951 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3952 if test "${ac_cv_path_GREP+set}" = set; then :
3953 $as_echo_n "(cached) " >&6
3955 if test -z "$GREP"; then
3956 ac_path_GREP_found
=false
3957 # Loop through the user's path and test for each of PROGNAME-LIST
3958 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3959 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3962 test -z "$as_dir" && as_dir
=.
3963 for ac_prog
in grep ggrep
; do
3964 for ac_exec_ext
in '' $ac_executable_extensions; do
3965 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3966 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3967 # Check for GNU ac_path_GREP and select it if it is found.
3968 # Check for GNU $ac_path_GREP
3969 case `"$ac_path_GREP" --version 2>&1` in
3971 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3974 $as_echo_n 0123456789 >"conftest.in"
3977 cat "conftest.in" "conftest.in" >"conftest.tmp"
3978 mv "conftest.tmp" "conftest.in"
3979 cp "conftest.in" "conftest.nl"
3980 $as_echo 'GREP' >> "conftest.nl"
3981 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3982 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3983 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3984 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3985 # Best one so far, save it but keep looking for a better one
3986 ac_cv_path_GREP
="$ac_path_GREP"
3987 ac_path_GREP_max
=$ac_count
3989 # 10*(2^10) chars as input seems more than enough
3990 test $ac_count -gt 10 && break
3992 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3995 $ac_path_GREP_found && break 3
4000 if test -z "$ac_cv_path_GREP"; then
4001 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4004 ac_cv_path_GREP
=$GREP
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4009 $as_echo "$ac_cv_path_GREP" >&6; }
4010 GREP
="$ac_cv_path_GREP"
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4014 $as_echo_n "checking for egrep... " >&6; }
4015 if test "${ac_cv_path_EGREP+set}" = set; then :
4016 $as_echo_n "(cached) " >&6
4018 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4019 then ac_cv_path_EGREP
="$GREP -E"
4021 if test -z "$EGREP"; then
4022 ac_path_EGREP_found
=false
4023 # Loop through the user's path and test for each of PROGNAME-LIST
4024 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4025 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4028 test -z "$as_dir" && as_dir
=.
4029 for ac_prog
in egrep; do
4030 for ac_exec_ext
in '' $ac_executable_extensions; do
4031 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4032 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4033 # Check for GNU ac_path_EGREP and select it if it is found.
4034 # Check for GNU $ac_path_EGREP
4035 case `"$ac_path_EGREP" --version 2>&1` in
4037 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4040 $as_echo_n 0123456789 >"conftest.in"
4043 cat "conftest.in" "conftest.in" >"conftest.tmp"
4044 mv "conftest.tmp" "conftest.in"
4045 cp "conftest.in" "conftest.nl"
4046 $as_echo 'EGREP' >> "conftest.nl"
4047 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4048 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4049 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4050 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4051 # Best one so far, save it but keep looking for a better one
4052 ac_cv_path_EGREP
="$ac_path_EGREP"
4053 ac_path_EGREP_max
=$ac_count
4055 # 10*(2^10) chars as input seems more than enough
4056 test $ac_count -gt 10 && break
4058 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4061 $ac_path_EGREP_found && break 3
4066 if test -z "$ac_cv_path_EGREP"; then
4067 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4070 ac_cv_path_EGREP
=$EGREP
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4076 $as_echo "$ac_cv_path_EGREP" >&6; }
4077 EGREP
="$ac_cv_path_EGREP"
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4081 $as_echo_n "checking for ANSI C header files... " >&6; }
4082 if test "${ac_cv_header_stdc+set}" = set; then :
4083 $as_echo_n "(cached) " >&6
4085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h. */
4100 if ac_fn_c_try_compile
"$LINENO"; then :
4101 ac_cv_header_stdc
=yes
4103 ac_cv_header_stdc
=no
4105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4107 if test $ac_cv_header_stdc = yes; then
4108 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4110 /* end confdefs.h. */
4114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4115 $EGREP "memchr" >/dev
/null
2>&1; then :
4118 ac_cv_header_stdc
=no
4124 if test $ac_cv_header_stdc = yes; then
4125 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4127 /* end confdefs.h. */
4131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4132 $EGREP "free" >/dev
/null
2>&1; then :
4135 ac_cv_header_stdc
=no
4141 if test $ac_cv_header_stdc = yes; then
4142 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4143 if test "$cross_compiling" = yes; then :
4146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4147 /* end confdefs.h. */
4150 #if ((' ' & 0x0FF) == 0x020)
4151 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4152 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4154 # define ISLOWER(c) \
4155 (('a' <= (c) && (c) <= 'i') \
4156 || ('j' <= (c) && (c) <= 'r') \
4157 || ('s' <= (c) && (c) <= 'z'))
4158 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4161 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4166 for (i = 0; i < 256; i++)
4167 if (XOR (islower (i), ISLOWER (i))
4168 || toupper (i) != TOUPPER (i))
4173 if ac_fn_c_try_run
"$LINENO"; then :
4176 ac_cv_header_stdc
=no
4178 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4179 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4185 $as_echo "$ac_cv_header_stdc" >&6; }
4186 if test $ac_cv_header_stdc = yes; then
4188 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4192 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4193 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4194 inttypes.h stdint.h unistd.h
4196 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4197 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4199 eval as_val
=\$
$as_ac_Header
4200 if test "x$as_val" = x
""yes; then :
4201 cat >>confdefs.h
<<_ACEOF
4202 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4211 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4212 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4219 if test "$MINIX" = yes; then
4221 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4224 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4227 $as_echo "#define _MINIX 1" >>confdefs.h
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4233 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4234 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4235 $as_echo_n "(cached) " >&6
4237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h. */
4240 # define __EXTENSIONS__ 1
4241 $ac_includes_default
4250 if ac_fn_c_try_compile
"$LINENO"; then :
4251 ac_cv_safe_to_define___extensions__
=yes
4253 ac_cv_safe_to_define___extensions__
=no
4255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4258 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4259 test $ac_cv_safe_to_define___extensions__ = yes &&
4260 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4262 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4264 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4266 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4268 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4272 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4273 for ac_t
in install-sh
install.sh shtool
; do
4274 if test -f "$ac_dir/$ac_t"; then
4276 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4281 if test -z "$ac_aux_dir"; then
4282 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4285 # These three variables are undocumented and unsupported,
4286 # and are intended to be withdrawn in a future Autoconf release.
4287 # They can cause serious problems if a builder's source tree is in a directory
4288 # whose full name contains unusual characters.
4289 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4290 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4291 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4294 # Make sure we can run config.sub.
4295 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4296 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4299 $as_echo_n "checking build system type... " >&6; }
4300 if test "${ac_cv_build+set}" = set; then :
4301 $as_echo_n "(cached) " >&6
4303 ac_build_alias
=$build_alias
4304 test "x$ac_build_alias" = x
&&
4305 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4306 test "x$ac_build_alias" = x
&&
4307 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4308 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4309 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4313 $as_echo "$ac_cv_build" >&6; }
4314 case $ac_cv_build in
4316 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4319 ac_save_IFS
=$IFS; IFS
='-'
4325 # Remember, the first character of IFS is used to create $*,
4326 # except with old shells:
4329 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4333 $as_echo_n "checking host system type... " >&6; }
4334 if test "${ac_cv_host+set}" = set; then :
4335 $as_echo_n "(cached) " >&6
4337 if test "x$host_alias" = x
; then
4338 ac_cv_host
=$ac_cv_build
4340 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4341 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4346 $as_echo "$ac_cv_host" >&6; }
4349 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4352 ac_save_IFS
=$IFS; IFS
='-'
4358 # Remember, the first character of IFS is used to create $*,
4359 # except with old shells:
4362 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4366 $as_echo_n "checking target system type... " >&6; }
4367 if test "${ac_cv_target+set}" = set; then :
4368 $as_echo_n "(cached) " >&6
4370 if test "x$target_alias" = x
; then
4371 ac_cv_target
=$ac_cv_host
4373 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4374 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4379 $as_echo "$ac_cv_target" >&6; }
4380 case $ac_cv_target in
4382 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4384 target
=$ac_cv_target
4385 ac_save_IFS
=$IFS; IFS
='-'
4391 # Remember, the first character of IFS is used to create $*,
4392 # except with old shells:
4395 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4398 # The aliases save the names the user supplied, while $host etc.
4399 # will get canonicalized.
4400 test -n "$target_alias" &&
4401 test "$program_prefix$program_suffix$program_transform_name" = \
4403 program_prefix
=${target_alias}-
4405 # The tests for host and target for $enable_largefile require
4410 # As the $enable_largefile decision depends on --enable-plugins we must set it
4411 # even in directories otherwise not depending on the $plugins option.
4415 for ac_header
in dlfcn.h
4417 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4419 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then :
4420 cat >>confdefs.h
<<_ACEOF
4421 #define HAVE_DLFCN_H 1
4428 for ac_header
in windows.h
4430 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4432 if test "x$ac_cv_header_windows_h" = x
""yes; then :
4433 cat >>confdefs.h
<<_ACEOF
4434 #define HAVE_WINDOWS_H 1
4442 # Check whether --enable-plugins was given.
4443 if test "${enable_plugins+set}" = set; then :
4444 enableval
=$enable_plugins; case "${enableval}" in
4447 if test "$maybe_plugins" != "yes" ; then
4448 as_fn_error
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4452 plugins
=$maybe_plugins
4456 if test "$plugins" = "yes"; then
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
4458 $as_echo_n "checking for library containing dlopen... " >&6; }
4459 if test "${ac_cv_search_dlopen+set}" = set; then :
4460 $as_echo_n "(cached) " >&6
4462 ac_func_search_save_LIBS
=$LIBS
4463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4464 /* end confdefs.h. */
4466 /* Override any GCC internal prototype to avoid an error.
4467 Use char because int might match the return type of a GCC
4468 builtin and then its argument prototype would still apply. */
4481 for ac_lib
in '' dl
; do
4482 if test -z "$ac_lib"; then
4483 ac_res
="none required"
4486 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4488 if ac_fn_c_try_link
"$LINENO"; then :
4489 ac_cv_search_dlopen
=$ac_res
4491 rm -f core conftest.err conftest.
$ac_objext \
4493 if test "${ac_cv_search_dlopen+set}" = set; then :
4497 if test "${ac_cv_search_dlopen+set}" = set; then :
4500 ac_cv_search_dlopen
=no
4503 LIBS
=$ac_func_search_save_LIBS
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
4506 $as_echo "$ac_cv_search_dlopen" >&6; }
4507 ac_res
=$ac_cv_search_dlopen
4508 if test "$ac_res" != no
; then :
4509 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4517 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4518 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4519 # are mutually exclusive; and without procfs support, the bfd/ elf module
4520 # cannot provide certain routines such as elfcore_write_prpsinfo
4521 # or elfcore_write_prstatus. So unless the user explicitly requested
4522 # large-file support through the --enable-largefile switch, disable
4523 # large-file support in favor of procfs support.
4524 test "${target}" = "${host}" -a "x$plugins" = xno \
4525 && : ${enable_largefile="no"}
4529 # Check whether --enable-largefile was given.
4530 if test "${enable_largefile+set}" = set; then :
4531 enableval
=$enable_largefile;
4534 if test "$enable_largefile" != no
; then
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4537 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4538 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4539 $as_echo_n "(cached) " >&6
4541 ac_cv_sys_largefile_CC
=no
4542 if test "$GCC" != yes; then
4545 # IRIX 6.2 and later do not support large files by default,
4546 # so use the C compiler's -n32 option if that helps.
4547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4548 /* end confdefs.h. */
4549 #include <sys/types.h>
4550 /* Check that off_t can represent 2**63 - 1 correctly.
4551 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4552 since some C++ compilers masquerading as C compilers
4553 incorrectly reject 9223372036854775807. */
4554 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4555 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4556 && LARGE_OFF_T % 2147483647 == 1)
4566 if ac_fn_c_try_compile
"$LINENO"; then :
4569 rm -f core conftest.err conftest.
$ac_objext
4571 if ac_fn_c_try_compile
"$LINENO"; then :
4572 ac_cv_sys_largefile_CC
=' -n32'; break
4574 rm -f core conftest.err conftest.
$ac_objext
4578 rm -f conftest.
$ac_ext
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4582 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4583 if test "$ac_cv_sys_largefile_CC" != no
; then
4584 CC
=$CC$ac_cv_sys_largefile_CC
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4588 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4589 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4590 $as_echo_n "(cached) " >&6
4593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4594 /* end confdefs.h. */
4595 #include <sys/types.h>
4596 /* Check that off_t can represent 2**63 - 1 correctly.
4597 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4598 since some C++ compilers masquerading as C compilers
4599 incorrectly reject 9223372036854775807. */
4600 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4601 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4602 && LARGE_OFF_T % 2147483647 == 1)
4612 if ac_fn_c_try_compile
"$LINENO"; then :
4613 ac_cv_sys_file_offset_bits
=no
; break
4615 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4617 /* end confdefs.h. */
4618 #define _FILE_OFFSET_BITS 64
4619 #include <sys/types.h>
4620 /* Check that off_t can represent 2**63 - 1 correctly.
4621 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4622 since some C++ compilers masquerading as C compilers
4623 incorrectly reject 9223372036854775807. */
4624 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4625 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4626 && LARGE_OFF_T % 2147483647 == 1)
4636 if ac_fn_c_try_compile
"$LINENO"; then :
4637 ac_cv_sys_file_offset_bits
=64; break
4639 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4640 ac_cv_sys_file_offset_bits
=unknown
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4645 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4646 case $ac_cv_sys_file_offset_bits in #(
4649 cat >>confdefs.h
<<_ACEOF
4650 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4655 if test $ac_cv_sys_file_offset_bits = unknown
; then
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4657 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4658 if test "${ac_cv_sys_large_files+set}" = set; then :
4659 $as_echo_n "(cached) " >&6
4662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4663 /* end confdefs.h. */
4664 #include <sys/types.h>
4665 /* Check that off_t can represent 2**63 - 1 correctly.
4666 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4667 since some C++ compilers masquerading as C compilers
4668 incorrectly reject 9223372036854775807. */
4669 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4670 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4671 && LARGE_OFF_T % 2147483647 == 1)
4681 if ac_fn_c_try_compile
"$LINENO"; then :
4682 ac_cv_sys_large_files
=no
; break
4684 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4686 /* end confdefs.h. */
4687 #define _LARGE_FILES 1
4688 #include <sys/types.h>
4689 /* Check that off_t can represent 2**63 - 1 correctly.
4690 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4691 since some C++ compilers masquerading as C compilers
4692 incorrectly reject 9223372036854775807. */
4693 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4694 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4695 && LARGE_OFF_T % 2147483647 == 1)
4705 if ac_fn_c_try_compile
"$LINENO"; then :
4706 ac_cv_sys_large_files
=1; break
4708 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4709 ac_cv_sys_large_files
=unknown
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4714 $as_echo "$ac_cv_sys_large_files" >&6; }
4715 case $ac_cv_sys_large_files in #(
4718 cat >>confdefs.h
<<_ACEOF
4719 #define _LARGE_FILES $ac_cv_sys_large_files
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4732 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4733 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4734 $as_echo_n "(cached) " >&6
4736 am_cv_prog_cc_stdc
=no
4738 # Don't try gcc -ansi; that turns off useful extensions and
4739 # breaks some systems' header files.
4740 # AIX -qlanglvl=ansi
4741 # Ultrix and OSF/1 -std1
4742 # HP-UX 10.20 and later -Ae
4743 # HP-UX older versions -Aa -D_HPUX_SOURCE
4744 # SVR4 -Xc -D__EXTENSIONS__
4745 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4747 CC
="$ac_save_CC $ac_arg"
4748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4749 /* end confdefs.h. */
4752 #include <sys/types.h>
4753 #include <sys/stat.h>
4754 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4755 struct buf { int x; };
4756 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4757 static char *e (p, i)
4763 static char *f (char * (*g) (char **, int), char **p, ...)
4768 s = g (p, va_arg (v,int));
4772 int test (int i, double x);
4773 struct s1 {int (*f) (int a);};
4774 struct s2 {int (*f) (double a);};
4775 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4783 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4789 if ac_fn_c_try_compile
"$LINENO"; then :
4790 am_cv_prog_cc_stdc
="$ac_arg"; break
4792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4798 if test -z "$am_cv_prog_cc_stdc"; then
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4800 $as_echo "none needed" >&6; }
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4803 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4805 case "x$am_cv_prog_cc_stdc" in
4807 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4810 # expand $ac_aux_dir to an absolute path
4811 am_aux_dir
=`cd $ac_aux_dir && pwd`
4813 if test x
"${install_sh}" != xset
; then
4816 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
4818 install_sh
="\${SHELL} $am_aux_dir/install-sh"
4822 # Installed binaries are usually stripped using `strip' when the user
4823 # run `make install-strip'. However `strip' might not be the right
4824 # tool to use in cross-compilation environments, therefore Automake
4825 # will honor the `STRIP' environment variable to overrule this program.
4826 if test "$cross_compiling" != no
; then
4827 if test -n "$ac_tool_prefix"; then
4828 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4829 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4831 $as_echo_n "checking for $ac_word... " >&6; }
4832 if test "${ac_cv_prog_STRIP+set}" = set; then :
4833 $as_echo_n "(cached) " >&6
4835 if test -n "$STRIP"; then
4836 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4838 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4842 test -z "$as_dir" && as_dir
=.
4843 for ac_exec_ext
in '' $ac_executable_extensions; do
4844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4845 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4855 STRIP
=$ac_cv_prog_STRIP
4856 if test -n "$STRIP"; then
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4858 $as_echo "$STRIP" >&6; }
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4861 $as_echo "no" >&6; }
4866 if test -z "$ac_cv_prog_STRIP"; then
4868 # Extract the first word of "strip", so it can be a program name with args.
4869 set dummy strip
; ac_word
=$2
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4871 $as_echo_n "checking for $ac_word... " >&6; }
4872 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4873 $as_echo_n "(cached) " >&6
4875 if test -n "$ac_ct_STRIP"; then
4876 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
4878 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4882 test -z "$as_dir" && as_dir
=.
4883 for ac_exec_ext
in '' $ac_executable_extensions; do
4884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4885 ac_cv_prog_ac_ct_STRIP
="strip"
4886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4895 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4896 if test -n "$ac_ct_STRIP"; then
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4898 $as_echo "$ac_ct_STRIP" >&6; }
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4901 $as_echo "no" >&6; }
4904 if test "x$ac_ct_STRIP" = x
; then
4907 case $cross_compiling:$ac_tool_warned in
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4911 ac_tool_warned
=yes ;;
4916 STRIP
="$ac_cv_prog_STRIP"
4920 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
4924 for ac_dir
in ..
"$srcdir"/..
; do
4925 for ac_t
in install-sh
install.sh shtool
; do
4926 if test -f "$ac_dir/$ac_t"; then
4928 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4933 if test -z "$ac_aux_dir"; then
4934 as_fn_error
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4937 # These three variables are undocumented and unsupported,
4938 # and are intended to be withdrawn in a future Autoconf release.
4939 # They can cause serious problems if a builder's source tree is in a directory
4940 # whose full name contains unusual characters.
4941 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4942 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4943 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4947 test "$program_prefix" != NONE
&&
4948 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4949 # Use a double $ so make ignores it.
4950 test "$program_suffix" != NONE
&&
4951 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4952 # Double any \ or $.
4953 # By default was `s,x,x', remove it if useless.
4954 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4955 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4958 # See if we are building with C++, and substitute COMPILER.
4960 # Check whether --enable-build-with-cxx was given.
4961 if test "${enable_build_with_cxx+set}" = set; then :
4962 enableval
=$enable_build_with_cxx; case $enableval in
4966 as_fn_error
"bad value $enableval for --enable-build-with-cxx" "$LINENO" 5 ;;
4969 enable_build_with_cxx
=yes
4973 if test "$enable_build_with_cxx" = "yes"; then
4975 COMPILER_CFLAGS
='$(CXXFLAGS)'
4978 COMPILER_CFLAGS
='$(CFLAGS)'
4984 # Dependency checking.
4985 rm -rf .tst
2>/dev
/null
4986 mkdir .tst
2>/dev
/null
4987 if test -d .tst
; then
4992 rmdir .tst
2>/dev
/null
4994 DEPDIR
="${am__leading_dot}deps"
4996 ac_config_commands
="$ac_config_commands depdir"
4999 depcc
="$CC" am_compiler_list
=
5001 am_depcomp
=$ac_aux_dir/depcomp
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5003 $as_echo_n "checking dependency style of $depcc... " >&6; }
5004 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5005 $as_echo_n "(cached) " >&6
5007 if test -f "$am_depcomp"; then
5008 # We make a subdir and do the tests there. Otherwise we can end up
5009 # making bogus files that we don't know about and never remove. For
5010 # instance it was reported that on HP-UX the gcc test will end up
5011 # making a dummy file named `D' -- because `-MD' means `put the output
5014 # Copy depcomp to subdir because otherwise we won't find it if we're
5015 # using a relative directory.
5016 cp "$am_depcomp" conftest.dir
5018 # We will build objects and dependencies in a subdirectory because
5019 # it helps to detect inapplicable dependency modes. For instance
5020 # both Tru64's cc and ICC support -MD to output dependencies as a
5021 # side effect of compilation, but ICC will put the dependencies in
5022 # the current directory while Tru64 will put them in the object
5026 am_cv_CC_dependencies_compiler_type
=none
5027 if test "$am_compiler_list" = ""; then
5028 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5030 for depmode
in $am_compiler_list; do
5031 if test $depmode = none
; then break; fi
5033 $as_echo "$as_me:$LINENO: trying $depmode" >&5
5034 # Setup a source with many dependencies, because some compilers
5035 # like to wrap large dependency lists on column 80 (with \), and
5036 # we should not choose a depcomp mode which is confused by this.
5038 # We need to recreate these files for each test, as the compiler may
5039 # overwrite some of them when testing with obscure command lines.
5040 # This happens at least with the AIX C compiler.
5042 for i
in 1 2 3 4 5 6; do
5043 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5044 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5045 # Solaris 8's {/usr,}/bin/sh.
5046 touch sub
/conftst
$i.h
5048 echo "include sub/conftest.Po" > confmf
5050 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5051 # mode. It turns out that the SunPro C++ compiler does not properly
5052 # handle `-M -o', and we need to detect this.
5053 depcmd
="depmode=$depmode \
5054 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5055 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5056 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
5057 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
5058 if env
$depcmd > conftest.err
2>&1 &&
5059 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
5060 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
5061 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
5062 # icc doesn't choke on unknown options, it will just issue warnings
5063 # or remarks (even with -Werror). So we grep stderr for any message
5064 # that says an option was ignored or not supported.
5065 # When given -MP, icc 7.0 and 7.1 complain thusly:
5066 # icc: Command line warning: ignoring option '-M'; no argument required
5067 # The diagnosis changed in icc 8.0:
5068 # icc: Command line remark: option '-MP' not supported
5069 if (grep 'ignoring option' conftest.err ||
5070 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5071 am_cv_CC_dependencies_compiler_type
=$depmode
5072 $as_echo "$as_me:$LINENO: success" >&5
5076 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
5077 sed -e 's/^/| /' < conftest.err
>&5
5083 am_cv_CC_dependencies_compiler_type
=none
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5088 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5089 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
5090 then as_fn_error
"no usable dependency style found" "$LINENO" 5
5091 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5096 # Check for the 'make' the user wants to use.
5099 # Extract the first word of "$ac_prog", so it can be a program name with args.
5100 set dummy
$ac_prog; ac_word
=$2
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5102 $as_echo_n "checking for $ac_word... " >&6; }
5103 if test "${ac_cv_prog_MAKE+set}" = set; then :
5104 $as_echo_n "(cached) " >&6
5106 if test -n "$MAKE"; then
5107 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
5109 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5113 test -z "$as_dir" && as_dir
=.
5114 for ac_exec_ext
in '' $ac_executable_extensions; do
5115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5116 ac_cv_prog_MAKE
="$ac_prog"
5117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5126 MAKE
=$ac_cv_prog_MAKE
5127 if test -n "$MAKE"; then
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5129 $as_echo "$MAKE" >&6; }
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5132 $as_echo "no" >&6; }
5136 test -n "$MAKE" && break
5140 case "`$MAKE --version 2>&1 | sed 1q`" in
5145 if test "$MAKE_IS_GNU" = yes; then
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5154 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5156 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5157 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5158 $as_echo_n "(cached) " >&6
5160 cat >conftest.
make <<\_ACEOF
5163 @
echo '@@@%%%=$(MAKE)=@@@%%%'
5165 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5166 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5168 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
5170 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
5174 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5176 $as_echo "yes" >&6; }
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5180 $as_echo "no" >&6; }
5181 SET_MAKE
="MAKE=${MAKE-make}"
5185 gnulib_extra_configure_args
=
5186 # If large-file support is disabled, make sure gnulib does the same.
5187 if test "$enable_largefile" = no
; then
5188 gnulib_extra_configure_args
="$gnulib_extra_configure_args --disable-largefile"
5191 # Configure gnulib. We need to build gnulib under some other
5192 # directory not "gnulib", to avoid the problem of both GDB and
5193 # GDBserver wanting to build it in the same directory, when building
5194 # in the source dir.
5197 in_build
="build-gnulib"
5198 in_extra_args
="$gnulib_extra_configure_args"
5200 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
5201 # so they do not pile up.
5202 ac_sub_configure_args
=
5204 eval "set x $ac_configure_args"
5208 if test -n "$ac_prev"; then
5213 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
5214 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
5215 ac_prev
=cache_file
;;
5216 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
5217 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
5220 --config-cache |
-C)
5222 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
5224 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
5226 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
5228 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
5230 --disable-option-checking)
5234 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5236 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
5240 # Always prepend --prefix to ensure using the same prefix
5241 # in subdir configurations.
5242 ac_arg
="--prefix=$prefix"
5244 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5246 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
5249 if test "$silent" = yes; then
5250 ac_sub_configure_args
="--silent $ac_sub_configure_args"
5253 # Always prepend --disable-option-checking to silence warnings, since
5254 # different subdirs can have different --enable and --with options.
5255 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
5260 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
5261 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
5262 $as_echo "$ac_msg" >&6
5263 as_dir
="$ac_dir"; as_fn_mkdir_p
5267 ac_srcdir
=$srcdir/$in_src ;;
5269 ac_srcdir
=..
/$srcdir/$in_src ;;
5274 ac_sub_configure
=$ac_srcdir/configure
5276 # Make the cache file name correct relative to the subdirectory.
5278 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
5280 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
5283 if test -n "$in_extra_args"; then
5284 # Add the extra args at the end.
5285 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
5288 { $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
5289 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
5290 # The eval makes quoting arguments work.
5291 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
5292 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
5293 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
5309 # If we haven't got the data from the intl directory,
5310 # assume NLS is disabled.
5319 if test -f ..
/intl
/config.intl
; then
5320 . ..
/intl
/config.intl
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5323 $as_echo_n "checking whether NLS is requested... " >&6; }
5324 if test x
"$USE_NLS" != xyes
; then
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326 $as_echo "no" >&6; }
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5329 $as_echo "yes" >&6; }
5331 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
5335 $as_echo_n "checking for catalogs to be installed... " >&6; }
5336 # Look for .po and .gmo files in the source directory.
5339 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
5340 # If there aren't any .gmo files the shell will give us the
5341 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5343 case "$cat" in *\
**)
5346 # The quadruple backslash is collapsed to a double backslash
5347 # by the backticks, then collapsed again by the double quotes,
5348 # leaving us with one backslash in the sed expression (right
5349 # before the dot that mustn't act as a wildcard).
5350 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5351 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
5352 # The user is allowed to set LINGUAS to a list of languages to
5353 # install catalogs for. If it's empty that means "all of them."
5354 if test "x$LINGUAS" = x
; then
5355 CATALOGS
="$CATALOGS $cat"
5356 XLINGUAS
="$XLINGUAS $lang"
5358 case "$LINGUAS" in *$lang*)
5359 CATALOGS
="$CATALOGS $cat"
5360 XLINGUAS
="$XLINGUAS $lang"
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
5367 $as_echo "$LINGUAS" >&6; }
5380 localedir
='${datadir}/locale'
5383 if test x
"$USE_NLS" = xyes
; then
5384 CONFIG_ALL
="$CONFIG_ALL all-po"
5385 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
5386 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
5387 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
5390 GNULIB
=build-gnulib
/import
5392 # For Makefile dependencies.
5394 if test x
"$STDINT_H" != x
; then
5395 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
5401 cat >>confdefs.h
<<_ACEOF
5402 #define PACKAGE "$PACKAGE"
5407 # We never need to detect it in this sub-configure.
5408 # But preserve it for config.status --recheck.
5412 MAKEINFO_EXTRA_FLAGS
=""
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
5414 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
5415 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
5416 $as_echo_n "(cached) " >&6
5418 echo '@clicksequence{a @click{} b}' >conftest.texinfo
5419 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
5420 gdb_cv_have_makeinfo_click
=yes
5422 gdb_cv_have_makeinfo_click
=no
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
5426 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
5427 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
5428 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
5434 # Check whether --with-separate-debug-dir was given.
5435 if test "${with_separate_debug_dir+set}" = set; then :
5436 withval
=$with_separate_debug_dir;
5439 DEBUGDIR
=${libdir}/debug
5443 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5444 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5445 ac_define_dir
=`eval echo $DEBUGDIR`
5446 ac_define_dir
=`eval echo $ac_define_dir`
5448 cat >>confdefs.h
<<_ACEOF
5449 #define DEBUGDIR "$ac_define_dir"
5455 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
5456 if test "x$prefix" = xNONE
; then
5457 test_prefix
=/usr
/local
5462 test_prefix
=$exec_prefix
5465 case ${ac_define_dir} in
5466 "${test_prefix}"|
"${test_prefix}/"*|\
5467 '${exec_prefix}'|
'${exec_prefix}/'*)
5472 cat >>confdefs.h
<<_ACEOF
5473 #define DEBUGDIR_RELOCATABLE $value
5479 # We can't pass paths as command line arguments.
5480 # Mingw32 tries to be clever and will convert the paths for us.
5481 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
5482 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
5483 # This breaks GDB's relocatable path conversions since paths passed in
5484 # config.h would not get so translated, the path prefixes no longer match.
5486 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5487 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5488 ac_define_dir
=`eval echo $bindir`
5489 ac_define_dir
=`eval echo $ac_define_dir`
5491 cat >>confdefs.h
<<_ACEOF
5492 #define BINDIR "$ac_define_dir"
5497 # GDB's datadir relocation
5501 # Check whether --with-gdb-datadir was given.
5502 if test "${with_gdb_datadir+set}" = set; then :
5503 withval
=$with_gdb_datadir;
5504 GDB_DATADIR
=$withval
5506 GDB_DATADIR
=${datadir}/gdb
5510 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5511 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5512 ac_define_dir
=`eval echo $GDB_DATADIR`
5513 ac_define_dir
=`eval echo $ac_define_dir`
5515 cat >>confdefs.h
<<_ACEOF
5516 #define GDB_DATADIR "$ac_define_dir"
5522 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
5523 if test "x$prefix" = xNONE
; then
5524 test_prefix
=/usr
/local
5529 test_prefix
=$exec_prefix
5532 case ${ac_define_dir} in
5533 "${test_prefix}"|
"${test_prefix}/"*|\
5534 '${exec_prefix}'|
'${exec_prefix}/'*)
5539 cat >>confdefs.h
<<_ACEOF
5540 #define GDB_DATADIR_RELOCATABLE $value
5547 # Check whether --with-relocated-sources was given.
5548 if test "${with_relocated_sources+set}" = set; then :
5549 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
5551 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5552 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5553 ac_define_dir
=`eval echo $reloc_srcdir`
5554 ac_define_dir
=`eval echo $ac_define_dir`
5556 cat >>confdefs.h
<<_ACEOF
5557 #define RELOC_SRCDIR "$ac_define_dir"
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
5566 $as_echo_n "checking for default auto-load directory... " >&6; }
5568 # Check whether --with-auto-load-dir was given.
5569 if test "${with_auto_load_dir+set}" = set; then :
5570 withval
=$with_auto_load_dir;
5572 with_auto_load_dir
='$debugdir:$datadir/auto-load'
5575 escape_dir
=`echo $with_auto_load_dir | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5577 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5578 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5579 ac_define_dir
=`eval echo $escape_dir`
5580 ac_define_dir
=`eval echo $ac_define_dir`
5582 cat >>confdefs.h
<<_ACEOF
5583 #define AUTO_LOAD_DIR "$ac_define_dir"
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
5588 $as_echo "$with_auto_load_dir" >&6; }
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
5591 $as_echo_n "checking for default auto-load safe-path... " >&6; }
5593 # Check whether --with-auto-load-safe-path was given.
5594 if test "${with_auto_load_safe_path+set}" = set; then :
5595 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
5596 with_auto_load_safe_path
="/"
5599 with_auto_load_safe_path
="$with_auto_load_dir"
5602 escape_dir
=`echo $with_auto_load_safe_path | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5604 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5605 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5606 ac_define_dir
=`eval echo $escape_dir`
5607 ac_define_dir
=`eval echo $ac_define_dir`
5609 cat >>confdefs.h
<<_ACEOF
5610 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
5615 $as_echo "$with_auto_load_safe_path" >&6; }
5619 subdirs
="$subdirs testsuite"
5622 # Check whether to support alternative target configurations
5623 # Check whether --enable-targets was given.
5624 if test "${enable_targets+set}" = set; then :
5625 enableval
=$enable_targets; case "${enableval}" in
5626 yes |
"") as_fn_error
"enable-targets option must specify target names or 'all'" "$LINENO" 5
5628 no
) enable_targets
= ;;
5629 *) enable_targets
=$enableval ;;
5634 # Check whether to enable 64-bit support on 32-bit hosts
5635 # Check whether --enable-64-bit-bfd was given.
5636 if test "${enable_64_bit_bfd+set}" = set; then :
5637 enableval
=$enable_64_bit_bfd; case "${enableval}" in
5640 *) as_fn_error
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
5646 # Provide defaults for some variables set by the per-host and per-target
5648 gdb_host_obs
=posix-hdep.o
5650 if test "${target}" = "${host}"; then
5656 .
$srcdir/configure.
host
5658 # Add in the common host objects.
5659 .
$srcdir/common
/common.
host
5660 gdb_host_obs
="$gdb_host_obs $common_host_obs"
5662 # Accumulate some settings from configure.tgt over all enabled targets
5666 HAVE_NATIVE_GCORE_TARGET
=
5668 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5670 if test "$targ_alias" = "all"; then
5673 # Canonicalize the secondary target names.
5674 result
=`$ac_config_sub $targ_alias 2>/dev/null`
5675 if test -n "$result"; then
5681 .
${srcdir}/configure.tgt
5683 if test -z "${gdb_target_obs}"; then :
5684 as_fn_error
"configuration ${targ} is unsupported." "$LINENO" 5
5687 # Target-specific object files
5688 for i
in ${gdb_target_obs}; do
5689 case " $TARGET_OBS " in
5692 TARGET_OBS
="$TARGET_OBS ${i}"
5697 # Check whether this target needs 64-bit CORE_ADDR
5698 if test x
${want64} = xfalse
; then
5699 .
${srcdir}/..
/bfd
/config.bfd
5702 # Check whether this target is native and supports gcore.
5703 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
5704 && $gdb_have_gcore; then
5705 HAVE_NATIVE_GCORE_TARGET
=1
5710 if test x
${all_targets} = xtrue
; then
5712 # We want all 64-bit targets if we either:
5713 # - run on a 64-bit host or
5714 # - already require 64-bit support for some other target or
5715 # - the --enable-64-bit-bfd option was supplied
5716 # Otherwise we only support all 32-bit targets.
5718 # NOTE: This test must be in sync with the corresponding
5721 if test x
${want64} = xfalse
; then
5722 # The cast to long int works around a bug in the HP C Compiler
5723 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5724 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5725 # This bug is HP SR number 8606223364.
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5727 $as_echo_n "checking size of long... " >&6; }
5728 if test "${ac_cv_sizeof_long+set}" = set; then :
5729 $as_echo_n "(cached) " >&6
5731 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5734 if test "$ac_cv_type_long" = yes; then
5735 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5737 { as_fn_set_status
77
5738 as_fn_error
"cannot compute sizeof (long)
5739 See \`config.log' for more details." "$LINENO" 5; }; }
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5747 $as_echo "$ac_cv_sizeof_long" >&6; }
5751 cat >>confdefs.h
<<_ACEOF
5752 #define SIZEOF_LONG $ac_cv_sizeof_long
5756 if test "x${ac_cv_sizeof_long}" = "x8"; then
5760 if test x
${want64} = xtrue
; then
5761 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
5763 TARGET_OBS
='$(ALL_TARGET_OBS)'
5770 # For other settings, only the main target counts.
5774 targ
=$target; .
${srcdir}/configure.tgt
5776 # Fetch the default architecture and default target vector from BFD.
5777 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
5779 # We only want the first architecture, so strip off the others if
5780 # there is more than one.
5781 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
5783 if test "x$targ_archs" != x
; then
5785 cat >>confdefs.h
<<_ACEOF
5786 #define DEFAULT_BFD_ARCH $targ_archs
5790 if test "x$targ_defvec" != x
; then
5792 cat >>confdefs.h
<<_ACEOF
5793 #define DEFAULT_BFD_VEC $targ_defvec
5798 # The CLI cannot be disabled yet, but may be in the future.
5801 # Check whether --enable-gdbcli was given.
5802 if test "${enable_gdbcli+set}" = set; then :
5803 enableval
=$enable_gdbcli; case $enableval in
5807 as_fn_error
"the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
5809 as_fn_error
"bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
5815 if test x
"$enable_gdbcli" = xyes
; then
5816 if test -d $srcdir/cli
; then
5817 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
5818 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
5819 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
5820 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
5825 # Check whether --enable-gdbmi was given.
5826 if test "${enable_gdbmi+set}" = set; then :
5827 enableval
=$enable_gdbmi; case $enableval in
5831 as_fn_error
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
5837 if test x
"$enable_gdbmi" = xyes
; then
5838 if test -d $srcdir/mi
; then
5839 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
5840 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
5841 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
5842 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
5847 # Check whether --enable-tui was given.
5848 if test "${enable_tui+set}" = set; then :
5849 enableval
=$enable_tui; case $enableval in
5853 as_fn_error
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
5861 # Check whether --enable-gdbtk was given.
5862 if test "${enable_gdbtk+set}" = set; then :
5863 enableval
=$enable_gdbtk; case $enableval in
5867 as_fn_error
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
5870 if test -d $srcdir/gdbtk
; then
5877 # We unconditionally disable gdbtk tests on selected platforms.
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
5881 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
5885 # Libunwind support for ia64.
5888 # Check whether --with-libunwind-ia64 was given.
5889 if test "${with_libunwind_ia64+set}" = set; then :
5890 withval
=$with_libunwind_ia64;
5892 with_libunwind_ia64
=auto
5896 # Backward compatibility option.
5897 if test "${with_libunwind+set}" = set; then
5898 if test x
"$with_libunwind_ia64" != xauto
; then
5899 as_fn_error
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
5902 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
5903 with_libunwind_ia64
="$with_libunwind"
5906 case "$with_libunwind_ia64" in
5910 for ac_header
in libunwind-ia64.h
5912 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5913 if test "x$ac_cv_header_libunwind_ia64_h" = x
""yes; then :
5914 cat >>confdefs.h
<<_ACEOF
5915 #define HAVE_LIBUNWIND_IA64_H 1
5922 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
5925 as_fn_error
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
5929 if test x
"$with_libunwind_ia64" = xyes
; then
5930 for ac_header
in libunwind-ia64.h
5932 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5933 if test "x$ac_cv_header_libunwind_ia64_h" = x
""yes; then :
5934 cat >>confdefs.h
<<_ACEOF
5935 #define HAVE_LIBUNWIND_IA64_H 1
5942 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
5943 as_fn_error
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
5945 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
5946 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
5947 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
5952 # Check whether --with-curses was given.
5953 if test "${with_curses+set}" = set; then :
5954 withval
=$with_curses; opt_curses
=$withval
5959 if test "$opt_curses" = "yes"; then
5963 # Profiling support.
5964 # Check whether --enable-profiling was given.
5965 if test "${enable_profiling+set}" = set; then :
5966 enableval
=$enable_profiling; case $enableval in
5970 as_fn_error
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
5977 for ac_func
in monstartup _mcleanup
5979 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5980 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5981 eval as_val
=\$
$as_ac_var
5982 if test "x$as_val" = x
""yes; then :
5983 cat >>confdefs.h
<<_ACEOF
5984 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
5991 $as_echo_n "checking for _etext... " >&6; }
5992 if test "${ac_cv_var__etext+set}" = set; then :
5993 $as_echo_n "(cached) " >&6
5995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5996 /* end confdefs.h. */
6008 if ac_fn_c_try_link
"$LINENO"; then :
6009 ac_cv_var__etext
=yes
6013 rm -f core conftest.err conftest.
$ac_objext \
6014 conftest
$ac_exeext conftest.
$ac_ext
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
6017 $as_echo "$ac_cv_var__etext" >&6; }
6018 if test $ac_cv_var__etext = yes; then
6020 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
6024 $as_echo_n "checking for etext... " >&6; }
6025 if test "${ac_cv_var_etext+set}" = set; then :
6026 $as_echo_n "(cached) " >&6
6028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6029 /* end confdefs.h. */
6041 if ac_fn_c_try_link
"$LINENO"; then :
6046 rm -f core conftest.err conftest.
$ac_objext \
6047 conftest
$ac_exeext conftest.
$ac_ext
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
6050 $as_echo "$ac_cv_var_etext" >&6; }
6051 if test $ac_cv_var_etext = yes; then
6053 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
6056 if test "$enable_profiling" = yes ; then
6057 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
6058 as_fn_error
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
6061 OLD_CFLAGS
="$CFLAGS"
6062 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
6065 $as_echo_n "checking whether $CC supports -pg... " >&6; }
6066 if test "${ac_cv_cc_supports_pg+set}" = set; then :
6067 $as_echo_n "(cached) " >&6
6069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6070 /* end confdefs.h. */
6080 if ac_fn_c_try_compile
"$LINENO"; then :
6081 ac_cv_cc_supports_pg
=yes
6083 ac_cv_cc_supports_pg
=no
6085 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
6088 $as_echo "$ac_cv_cc_supports_pg" >&6; }
6090 if test $ac_cv_cc_supports_pg = no
; then
6091 as_fn_error
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
6094 CFLAGS
="$OLD_CFLAGS"
6099 # Check whether --with-pkgversion was given.
6100 if test "${with_pkgversion+set}" = set; then :
6101 withval
=$with_pkgversion; case "$withval" in
6102 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
6104 *) PKGVERSION
="($withval) " ;;
6115 # Check whether --with-bugurl was given.
6116 if test "${with_bugurl+set}" = set; then :
6117 withval
=$with_bugurl; case "$withval" in
6118 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
6121 *) BUGURL
="$withval"
6125 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
6135 REPORT_BUGS_TO
="<$BUGURL>"
6136 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
6143 cat >>confdefs.h
<<_ACEOF
6144 #define PKGVERSION "$PKGVERSION"
6148 cat >>confdefs.h
<<_ACEOF
6149 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
6153 # --------------------- #
6154 # Checks for programs. #
6155 # --------------------- #
6157 for ac_prog
in gawk mawk nawk
awk
6159 # Extract the first word of "$ac_prog", so it can be a program name with args.
6160 set dummy
$ac_prog; ac_word
=$2
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6162 $as_echo_n "checking for $ac_word... " >&6; }
6163 if test "${ac_cv_prog_AWK+set}" = set; then :
6164 $as_echo_n "(cached) " >&6
6166 if test -n "$AWK"; then
6167 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
6169 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6173 test -z "$as_dir" && as_dir
=.
6174 for ac_exec_ext
in '' $ac_executable_extensions; do
6175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6176 ac_cv_prog_AWK
="$ac_prog"
6177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6187 if test -n "$AWK"; then
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6189 $as_echo "$AWK" >&6; }
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6192 $as_echo "no" >&6; }
6196 test -n "$AWK" && break
6199 # Find a good install program. We prefer a C program (faster),
6200 # so one script is as good as another. But avoid the broken or
6201 # incompatible versions:
6202 # SysV /etc/install, /usr/sbin/install
6203 # SunOS /usr/etc/install
6204 # IRIX /sbin/install
6206 # AmigaOS /C/install, which installs bootblocks on floppy discs
6207 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6208 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6209 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6210 # OS/2's system install, which has a completely different semantic
6211 # ./install, which can be erroneously created by make from ./install.sh.
6212 # Reject install programs that cannot install multiple files.
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6214 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6215 if test -z "$INSTALL"; then
6216 if test "${ac_cv_path_install+set}" = set; then :
6217 $as_echo_n "(cached) " >&6
6219 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6223 test -z "$as_dir" && as_dir
=.
6224 # Account for people who put trailing slashes in PATH elements.
6225 case $as_dir/ in #((
6226 .
/ | .
// |
/[cC
]/* | \
6227 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
6228 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
6231 # OSF1 and SCO ODT 3.0 have their own names for install.
6232 # Don't use installbsd from OSF since it installs stuff as root
6234 for ac_prog
in ginstall scoinst
install; do
6235 for ac_exec_ext
in '' $ac_executable_extensions; do
6236 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6237 if test $ac_prog = install &&
6238 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6239 # AIX install. It has an incompatible calling convention.
6241 elif test $ac_prog = install &&
6242 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6243 # program-specific install script used by HP pwplus--don't use.
6246 rm -rf conftest.one conftest.two conftest.dir
6247 echo one
> conftest.one
6248 echo two
> conftest.two
6250 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
6251 test -s conftest.one
&& test -s conftest.two
&&
6252 test -s conftest.dir
/conftest.one
&&
6253 test -s conftest.dir
/conftest.two
6255 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
6268 rm -rf conftest.one conftest.two conftest.dir
6271 if test "${ac_cv_path_install+set}" = set; then
6272 INSTALL
=$ac_cv_path_install
6274 # As a last resort, use the slow shell script. Don't cache a
6275 # value for INSTALL within a source directory, because that will
6276 # break other packages using the cache if that directory is
6277 # removed, or if the value is a relative name.
6278 INSTALL
=$ac_install_sh
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6282 $as_echo "$INSTALL" >&6; }
6284 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6285 # It thinks the first close brace ends the variable substitution.
6286 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
6288 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
6290 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6293 $as_echo_n "checking whether ln -s works... " >&6; }
6295 if test "$LN_S" = "ln -s"; then
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6297 $as_echo "yes" >&6; }
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6300 $as_echo "no, using $LN_S" >&6; }
6303 if test -n "$ac_tool_prefix"; then
6304 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6305 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6307 $as_echo_n "checking for $ac_word... " >&6; }
6308 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6309 $as_echo_n "(cached) " >&6
6311 if test -n "$RANLIB"; then
6312 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6314 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6318 test -z "$as_dir" && as_dir
=.
6319 for ac_exec_ext
in '' $ac_executable_extensions; do
6320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6321 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6331 RANLIB
=$ac_cv_prog_RANLIB
6332 if test -n "$RANLIB"; then
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6334 $as_echo "$RANLIB" >&6; }
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6337 $as_echo "no" >&6; }
6342 if test -z "$ac_cv_prog_RANLIB"; then
6343 ac_ct_RANLIB
=$RANLIB
6344 # Extract the first word of "ranlib", so it can be a program name with args.
6345 set dummy ranlib
; ac_word
=$2
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6347 $as_echo_n "checking for $ac_word... " >&6; }
6348 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6349 $as_echo_n "(cached) " >&6
6351 if test -n "$ac_ct_RANLIB"; then
6352 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6354 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6358 test -z "$as_dir" && as_dir
=.
6359 for ac_exec_ext
in '' $ac_executable_extensions; do
6360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6361 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6371 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6372 if test -n "$ac_ct_RANLIB"; then
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6374 $as_echo "$ac_ct_RANLIB" >&6; }
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6377 $as_echo "no" >&6; }
6380 if test "x$ac_ct_RANLIB" = x
; then
6383 case $cross_compiling:$ac_tool_warned in
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6387 ac_tool_warned
=yes ;;
6389 RANLIB
=$ac_ct_RANLIB
6392 RANLIB
="$ac_cv_prog_RANLIB"
6395 for ac_prog
in 'bison -y' byacc
6397 # Extract the first word of "$ac_prog", so it can be a program name with args.
6398 set dummy
$ac_prog; ac_word
=$2
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6400 $as_echo_n "checking for $ac_word... " >&6; }
6401 if test "${ac_cv_prog_YACC+set}" = set; then :
6402 $as_echo_n "(cached) " >&6
6404 if test -n "$YACC"; then
6405 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
6407 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6411 test -z "$as_dir" && as_dir
=.
6412 for ac_exec_ext
in '' $ac_executable_extensions; do
6413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6414 ac_cv_prog_YACC
="$ac_prog"
6415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6424 YACC
=$ac_cv_prog_YACC
6425 if test -n "$YACC"; then
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6427 $as_echo "$YACC" >&6; }
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6430 $as_echo "no" >&6; }
6434 test -n "$YACC" && break
6436 test -n "$YACC" || YACC
="yacc"
6439 if test -n "$ac_tool_prefix"; then
6440 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6441 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6443 $as_echo_n "checking for $ac_word... " >&6; }
6444 if test "${ac_cv_prog_AR+set}" = set; then :
6445 $as_echo_n "(cached) " >&6
6447 if test -n "$AR"; then
6448 ac_cv_prog_AR
="$AR" # Let the user override the test.
6450 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6454 test -z "$as_dir" && as_dir
=.
6455 for ac_exec_ext
in '' $ac_executable_extensions; do
6456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6457 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6468 if test -n "$AR"; then
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6470 $as_echo "$AR" >&6; }
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473 $as_echo "no" >&6; }
6478 if test -z "$ac_cv_prog_AR"; then
6480 # Extract the first word of "ar", so it can be a program name with args.
6481 set dummy
ar; ac_word
=$2
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6483 $as_echo_n "checking for $ac_word... " >&6; }
6484 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6485 $as_echo_n "(cached) " >&6
6487 if test -n "$ac_ct_AR"; then
6488 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6490 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6494 test -z "$as_dir" && as_dir
=.
6495 for ac_exec_ext
in '' $ac_executable_extensions; do
6496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6497 ac_cv_prog_ac_ct_AR
="ar"
6498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6507 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6508 if test -n "$ac_ct_AR"; then
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6510 $as_echo "$ac_ct_AR" >&6; }
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6513 $as_echo "no" >&6; }
6516 if test "x$ac_ct_AR" = x
; then
6519 case $cross_compiling:$ac_tool_warned in
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6523 ac_tool_warned
=yes ;;
6531 if test -n "$ac_tool_prefix"; then
6532 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6533 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6535 $as_echo_n "checking for $ac_word... " >&6; }
6536 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6537 $as_echo_n "(cached) " >&6
6539 if test -n "$DLLTOOL"; then
6540 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
6542 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6546 test -z "$as_dir" && as_dir
=.
6547 for ac_exec_ext
in '' $ac_executable_extensions; do
6548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6549 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
6550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6559 DLLTOOL
=$ac_cv_prog_DLLTOOL
6560 if test -n "$DLLTOOL"; then
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6562 $as_echo "$DLLTOOL" >&6; }
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565 $as_echo "no" >&6; }
6570 if test -z "$ac_cv_prog_DLLTOOL"; then
6571 ac_ct_DLLTOOL
=$DLLTOOL
6572 # Extract the first word of "dlltool", so it can be a program name with args.
6573 set dummy dlltool
; ac_word
=$2
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6575 $as_echo_n "checking for $ac_word... " >&6; }
6576 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6577 $as_echo_n "(cached) " >&6
6579 if test -n "$ac_ct_DLLTOOL"; then
6580 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
6582 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6586 test -z "$as_dir" && as_dir
=.
6587 for ac_exec_ext
in '' $ac_executable_extensions; do
6588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6589 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
6590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6599 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
6600 if test -n "$ac_ct_DLLTOOL"; then
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6602 $as_echo "$ac_ct_DLLTOOL" >&6; }
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6605 $as_echo "no" >&6; }
6608 if test "x$ac_ct_DLLTOOL" = x
; then
6611 case $cross_compiling:$ac_tool_warned in
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6614 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6615 ac_tool_warned
=yes ;;
6617 DLLTOOL
=$ac_ct_DLLTOOL
6620 DLLTOOL
="$ac_cv_prog_DLLTOOL"
6623 if test -n "$ac_tool_prefix"; then
6624 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6625 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6627 $as_echo_n "checking for $ac_word... " >&6; }
6628 if test "${ac_cv_prog_WINDRES+set}" = set; then :
6629 $as_echo_n "(cached) " >&6
6631 if test -n "$WINDRES"; then
6632 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
6634 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6638 test -z "$as_dir" && as_dir
=.
6639 for ac_exec_ext
in '' $ac_executable_extensions; do
6640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6641 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
6642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6651 WINDRES
=$ac_cv_prog_WINDRES
6652 if test -n "$WINDRES"; then
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6654 $as_echo "$WINDRES" >&6; }
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6657 $as_echo "no" >&6; }
6662 if test -z "$ac_cv_prog_WINDRES"; then
6663 ac_ct_WINDRES
=$WINDRES
6664 # Extract the first word of "windres", so it can be a program name with args.
6665 set dummy windres
; ac_word
=$2
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6667 $as_echo_n "checking for $ac_word... " >&6; }
6668 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
6669 $as_echo_n "(cached) " >&6
6671 if test -n "$ac_ct_WINDRES"; then
6672 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
6674 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6678 test -z "$as_dir" && as_dir
=.
6679 for ac_exec_ext
in '' $ac_executable_extensions; do
6680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6681 ac_cv_prog_ac_ct_WINDRES
="windres"
6682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6691 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
6692 if test -n "$ac_ct_WINDRES"; then
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6694 $as_echo "$ac_ct_WINDRES" >&6; }
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6697 $as_echo "no" >&6; }
6700 if test "x$ac_ct_WINDRES" = x
; then
6703 case $cross_compiling:$ac_tool_warned in
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6707 ac_tool_warned
=yes ;;
6709 WINDRES
=$ac_ct_WINDRES
6712 WINDRES
="$ac_cv_prog_WINDRES"
6718 # Needed for GNU Hurd hosts.
6719 if test -n "$ac_tool_prefix"; then
6720 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
6721 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6723 $as_echo_n "checking for $ac_word... " >&6; }
6724 if test "${ac_cv_prog_MIG+set}" = set; then :
6725 $as_echo_n "(cached) " >&6
6727 if test -n "$MIG"; then
6728 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
6730 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6734 test -z "$as_dir" && as_dir
=.
6735 for ac_exec_ext
in '' $ac_executable_extensions; do
6736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6737 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
6738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6748 if test -n "$MIG"; then
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
6750 $as_echo "$MIG" >&6; }
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6753 $as_echo "no" >&6; }
6758 if test -z "$ac_cv_prog_MIG"; then
6760 # Extract the first word of "mig", so it can be a program name with args.
6761 set dummy mig
; ac_word
=$2
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6763 $as_echo_n "checking for $ac_word... " >&6; }
6764 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
6765 $as_echo_n "(cached) " >&6
6767 if test -n "$ac_ct_MIG"; then
6768 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
6770 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6774 test -z "$as_dir" && as_dir
=.
6775 for ac_exec_ext
in '' $ac_executable_extensions; do
6776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6777 ac_cv_prog_ac_ct_MIG
="mig"
6778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6787 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
6788 if test -n "$ac_ct_MIG"; then
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
6790 $as_echo "$ac_ct_MIG" >&6; }
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6793 $as_echo "no" >&6; }
6796 if test "x$ac_ct_MIG" = x
; then
6799 case $cross_compiling:$ac_tool_warned in
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6803 ac_tool_warned
=yes ;;
6808 MIG
="$ac_cv_prog_MIG"
6811 if test x
"$MIG" = x
; then
6812 as_fn_error
"MIG not found but required for $host hosts" "$LINENO" 5
6817 # ---------------------- #
6818 # Checks for libraries. #
6819 # ---------------------- #
6821 # We might need to link with -lm; most simulators need it.
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6823 $as_echo_n "checking for main in -lm... " >&6; }
6824 if test "${ac_cv_lib_m_main+set}" = set; then :
6825 $as_echo_n "(cached) " >&6
6827 ac_check_lib_save_LIBS
=$LIBS
6829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6830 /* end confdefs.h. */
6841 if ac_fn_c_try_link
"$LINENO"; then :
6842 ac_cv_lib_m_main
=yes
6846 rm -f core conftest.err conftest.
$ac_objext \
6847 conftest
$ac_exeext conftest.
$ac_ext
6848 LIBS
=$ac_check_lib_save_LIBS
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
6851 $as_echo "$ac_cv_lib_m_main" >&6; }
6852 if test "x$ac_cv_lib_m_main" = x
""yes; then :
6853 cat >>confdefs.h
<<_ACEOF
6862 # We need to link with -lw to get `wctype' on Solaris before Solaris
6863 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
6864 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
6865 # is known to have this problem). Therefore we avoid libw if we can.
6866 ac_fn_c_check_func
"$LINENO" "wctype" "ac_cv_func_wctype"
6867 if test "x$ac_cv_func_wctype" = x
""yes; then :
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
6871 $as_echo_n "checking for wctype in -lw... " >&6; }
6872 if test "${ac_cv_lib_w_wctype+set}" = set; then :
6873 $as_echo_n "(cached) " >&6
6875 ac_check_lib_save_LIBS
=$LIBS
6877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6878 /* end confdefs.h. */
6880 /* Override any GCC internal prototype to avoid an error.
6881 Use char because int might match the return type of a GCC
6882 builtin and then its argument prototype would still apply. */
6895 if ac_fn_c_try_link
"$LINENO"; then :
6896 ac_cv_lib_w_wctype
=yes
6898 ac_cv_lib_w_wctype
=no
6900 rm -f core conftest.err conftest.
$ac_objext \
6901 conftest
$ac_exeext conftest.
$ac_ext
6902 LIBS
=$ac_check_lib_save_LIBS
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
6905 $as_echo "$ac_cv_lib_w_wctype" >&6; }
6906 if test "x$ac_cv_lib_w_wctype" = x
""yes; then :
6907 cat >>confdefs.h
<<_ACEOF
6918 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
6920 $as_echo_n "checking for library containing gethostbyname... " >&6; }
6921 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6922 $as_echo_n "(cached) " >&6
6924 ac_func_search_save_LIBS
=$LIBS
6925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6926 /* end confdefs.h. */
6928 /* Override any GCC internal prototype to avoid an error.
6929 Use char because int might match the return type of a GCC
6930 builtin and then its argument prototype would still apply. */
6934 char gethostbyname ();
6938 return gethostbyname ();
6943 for ac_lib
in '' nsl
; do
6944 if test -z "$ac_lib"; then
6945 ac_res
="none required"
6948 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6950 if ac_fn_c_try_link
"$LINENO"; then :
6951 ac_cv_search_gethostbyname
=$ac_res
6953 rm -f core conftest.err conftest.
$ac_objext \
6955 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6959 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6962 ac_cv_search_gethostbyname
=no
6965 LIBS
=$ac_func_search_save_LIBS
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
6968 $as_echo "$ac_cv_search_gethostbyname" >&6; }
6969 ac_res
=$ac_cv_search_gethostbyname
6970 if test "$ac_res" != no
; then :
6971 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6976 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
6978 $as_echo_n "checking for library containing socketpair... " >&6; }
6979 if test "${ac_cv_search_socketpair+set}" = set; then :
6980 $as_echo_n "(cached) " >&6
6982 ac_func_search_save_LIBS
=$LIBS
6983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6984 /* end confdefs.h. */
6986 /* Override any GCC internal prototype to avoid an error.
6987 Use char because int might match the return type of a GCC
6988 builtin and then its argument prototype would still apply. */
6996 return socketpair ();
7001 for ac_lib
in '' socket
; do
7002 if test -z "$ac_lib"; then
7003 ac_res
="none required"
7006 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7008 if ac_fn_c_try_link
"$LINENO"; then :
7009 ac_cv_search_socketpair
=$ac_res
7011 rm -f core conftest.err conftest.
$ac_objext \
7013 if test "${ac_cv_search_socketpair+set}" = set; then :
7017 if test "${ac_cv_search_socketpair+set}" = set; then :
7020 ac_cv_search_socketpair
=no
7023 LIBS
=$ac_func_search_save_LIBS
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
7026 $as_echo "$ac_cv_search_socketpair" >&6; }
7027 ac_res
=$ac_cv_search_socketpair
7028 if test "$ac_res" != no
; then :
7029 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7034 # Link in zlib if we can. This allows us to read compressed debug sections.
7036 # Use the system's zlib library.
7037 zlibdir
="-L\$(top_builddir)/../zlib"
7038 zlibinc
="-I\$(top_srcdir)/../zlib"
7040 # Check whether --with-system-zlib was given.
7041 if test "${with_system_zlib+set}" = set; then :
7042 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
7053 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
7054 # On GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
7056 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
7057 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7058 $as_echo_n "(cached) " >&6
7060 ac_func_search_save_LIBS
=$LIBS
7061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7062 /* end confdefs.h. */
7064 /* Override any GCC internal prototype to avoid an error.
7065 Use char because int might match the return type of a GCC
7066 builtin and then its argument prototype would still apply. */
7070 char kinfo_getvmmap ();
7074 return kinfo_getvmmap ();
7079 for ac_lib
in '' util util-freebsd
; do
7080 if test -z "$ac_lib"; then
7081 ac_res
="none required"
7084 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7086 if ac_fn_c_try_link
"$LINENO"; then :
7087 ac_cv_search_kinfo_getvmmap
=$ac_res
7089 rm -f core conftest.err conftest.
$ac_objext \
7091 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7095 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7098 ac_cv_search_kinfo_getvmmap
=no
7101 LIBS
=$ac_func_search_save_LIBS
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
7104 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
7105 ac_res
=$ac_cv_search_kinfo_getvmmap
7106 if test "$ac_res" != no
; then :
7107 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7109 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
7115 if test "X$prefix" = "XNONE"; then
7116 acl_final_prefix
="$ac_default_prefix"
7118 acl_final_prefix
="$prefix"
7120 if test "X$exec_prefix" = "XNONE"; then
7121 acl_final_exec_prefix
='${prefix}'
7123 acl_final_exec_prefix
="$exec_prefix"
7125 acl_save_prefix
="$prefix"
7126 prefix
="$acl_final_prefix"
7127 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
7128 prefix
="$acl_save_prefix"
7131 # Check whether --with-gnu-ld was given.
7132 if test "${with_gnu_ld+set}" = set; then :
7133 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
7138 # Prepare PATH_SEPARATOR.
7139 # The user is always right.
7140 if test "${PATH_SEPARATOR+set}" != set; then
7141 echo "#! /bin/sh" >conf$$.sh
7142 echo "exit 0" >>conf$$.sh
7144 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7152 if test "$GCC" = yes; then
7153 # Check if gcc -print-prog-name=ld gives a path.
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7155 $as_echo_n "checking for ld used by GCC... " >&6; }
7158 # gcc leaves a trailing carriage return which upsets mingw
7159 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7161 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
7164 # Accept absolute paths.
7165 [\\/]* |
[A-Za-z
]:[\\/]*)
7166 re_direlt
='/[^/][^/]*/\.\./'
7167 # Canonicalize the path of ld
7168 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
7169 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
7170 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
7172 test -z "$LD" && LD
="$ac_prog"
7175 # If it fails, then pretend we aren't using GCC.
7179 # If it is relative, then search for the first ld in PATH.
7183 elif test "$with_gnu_ld" = yes; then
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7185 $as_echo_n "checking for GNU ld... " >&6; }
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7188 $as_echo_n "checking for non-GNU ld... " >&6; }
7190 if test "${acl_cv_path_LD+set}" = set; then :
7191 $as_echo_n "(cached) " >&6
7193 if test -z "$LD"; then
7194 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7195 for ac_dir
in $PATH; do
7196 test -z "$ac_dir" && ac_dir
=.
7197 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
7198 acl_cv_path_LD
="$ac_dir/$ac_prog"
7199 # Check to see if the program is GNU ld. I'd rather use --version,
7200 # but apparently some GNU ld's only accept -v.
7201 # Break only if it was the GNU/non-GNU ld that we prefer.
7202 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
7203 test "$with_gnu_ld" != no
&& break
7205 test "$with_gnu_ld" != yes && break
7211 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
7215 LD
="$acl_cv_path_LD"
7216 if test -n "$LD"; then
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7218 $as_echo "$LD" >&6; }
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7221 $as_echo "no" >&6; }
7223 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7225 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7226 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7227 $as_echo_n "(cached) " >&6
7229 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7230 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
7231 acl_cv_prog_gnu_ld
=yes
7233 acl_cv_prog_gnu_ld
=no
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7237 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7238 with_gnu_ld
=$acl_cv_prog_gnu_ld
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7243 $as_echo_n "checking for shared library run path origin... " >&6; }
7244 if test "${acl_cv_rpath+set}" = set; then :
7245 $as_echo_n "(cached) " >&6
7248 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
7249 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7256 $as_echo "$acl_cv_rpath" >&6; }
7258 libext
="$acl_cv_libext"
7259 shlibext
="$acl_cv_shlibext"
7260 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
7261 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
7262 hardcode_direct
="$acl_cv_hardcode_direct"
7263 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
7264 # Check whether --enable-rpath was given.
7265 if test "${enable_rpath+set}" = set; then :
7266 enableval
=$enable_rpath; :
7280 acl_save_prefix
="$prefix"
7281 prefix
="$acl_final_prefix"
7282 acl_save_exec_prefix
="$exec_prefix"
7283 exec_prefix
="$acl_final_exec_prefix"
7285 eval additional_includedir
=\"$includedir\"
7286 eval additional_libdir
=\"$libdir\"
7288 exec_prefix
="$acl_save_exec_prefix"
7289 prefix
="$acl_save_prefix"
7292 # Check whether --with-libiconv-prefix was given.
7293 if test "${with_libiconv_prefix+set}" = set; then :
7294 withval
=$with_libiconv_prefix;
7295 if test "X$withval" = "Xno"; then
7298 if test "X$withval" = "X"; then
7300 acl_save_prefix
="$prefix"
7301 prefix
="$acl_final_prefix"
7302 acl_save_exec_prefix
="$exec_prefix"
7303 exec_prefix
="$acl_final_exec_prefix"
7305 eval additional_includedir
=\"$includedir\"
7306 eval additional_libdir
=\"$libdir\"
7308 exec_prefix
="$acl_save_exec_prefix"
7309 prefix
="$acl_save_prefix"
7312 additional_includedir
="$withval/include"
7313 additional_libdir
="$withval/lib"
7324 names_already_handled
=
7325 names_next_round
='iconv '
7326 while test -n "$names_next_round"; do
7327 names_this_round
="$names_next_round"
7329 for name
in $names_this_round; do
7331 for n
in $names_already_handled; do
7332 if test "$n" = "$name"; then
7337 if test -z "$already_handled"; then
7338 names_already_handled
="$names_already_handled $name"
7339 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7340 eval value
=\"\
$HAVE_LIB$uppername\"
7341 if test -n "$value"; then
7342 if test "$value" = yes; then
7343 eval value
=\"\
$LIB$uppername\"
7344 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
7345 eval value
=\"\
$LTLIB$uppername\"
7346 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
7355 if test $use_additional = yes; then
7356 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7357 found_dir
="$additional_libdir"
7358 found_so
="$additional_libdir/lib$name.$shlibext"
7359 if test -f "$additional_libdir/lib$name.la"; then
7360 found_la
="$additional_libdir/lib$name.la"
7363 if test -f "$additional_libdir/lib$name.$libext"; then
7364 found_dir
="$additional_libdir"
7365 found_a
="$additional_libdir/lib$name.$libext"
7366 if test -f "$additional_libdir/lib$name.la"; then
7367 found_la
="$additional_libdir/lib$name.la"
7372 if test "X$found_dir" = "X"; then
7373 for x
in $LDFLAGS $LTLIBICONV; do
7375 acl_save_prefix
="$prefix"
7376 prefix
="$acl_final_prefix"
7377 acl_save_exec_prefix
="$exec_prefix"
7378 exec_prefix
="$acl_final_exec_prefix"
7380 exec_prefix
="$acl_save_exec_prefix"
7381 prefix
="$acl_save_prefix"
7385 dir
=`echo "X$x" | sed -e 's/^X-L//'`
7386 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7388 found_so
="$dir/lib$name.$shlibext"
7389 if test -f "$dir/lib$name.la"; then
7390 found_la
="$dir/lib$name.la"
7393 if test -f "$dir/lib$name.$libext"; then
7395 found_a
="$dir/lib$name.$libext"
7396 if test -f "$dir/lib$name.la"; then
7397 found_la
="$dir/lib$name.la"
7403 if test "X$found_dir" != "X"; then
7408 if test "X$found_dir" != "X"; then
7409 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7410 if test "X$found_so" != "X"; then
7411 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
7412 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7415 for x
in $ltrpathdirs; do
7416 if test "X$x" = "X$found_dir"; then
7421 if test -z "$haveit"; then
7422 ltrpathdirs
="$ltrpathdirs $found_dir"
7424 if test "$hardcode_direct" = yes; then
7425 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7427 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
7428 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7430 for x
in $rpathdirs; do
7431 if test "X$x" = "X$found_dir"; then
7436 if test -z "$haveit"; then
7437 rpathdirs
="$rpathdirs $found_dir"
7441 for x
in $LDFLAGS $LIBICONV; do
7443 acl_save_prefix
="$prefix"
7444 prefix
="$acl_final_prefix"
7445 acl_save_exec_prefix
="$exec_prefix"
7446 exec_prefix
="$acl_final_exec_prefix"
7448 exec_prefix
="$acl_save_exec_prefix"
7449 prefix
="$acl_save_prefix"
7451 if test "X$x" = "X-L$found_dir"; then
7456 if test -z "$haveit"; then
7457 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7459 if test "$hardcode_minus_L" != no
; then
7460 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7462 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
7468 if test "X$found_a" != "X"; then
7469 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
7471 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7474 additional_includedir
=
7475 case "$found_dir" in
7477 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7478 additional_includedir
="$basedir/include"
7481 if test "X$additional_includedir" != "X"; then
7482 if test "X$additional_includedir" != "X/usr/include"; then
7484 if test "X$additional_includedir" = "X/usr/local/include"; then
7485 if test -n "$GCC"; then
7487 linux
*) haveit
=yes;;
7491 if test -z "$haveit"; then
7492 for x
in $CPPFLAGS $INCICONV; do
7494 acl_save_prefix
="$prefix"
7495 prefix
="$acl_final_prefix"
7496 acl_save_exec_prefix
="$exec_prefix"
7497 exec_prefix
="$acl_final_exec_prefix"
7499 exec_prefix
="$acl_save_exec_prefix"
7500 prefix
="$acl_save_prefix"
7502 if test "X$x" = "X-I$additional_includedir"; then
7507 if test -z "$haveit"; then
7508 if test -d "$additional_includedir"; then
7509 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7515 if test -n "$found_la"; then
7516 save_libdir
="$libdir"
7518 */* |
*\\*) .
"$found_la" ;;
7519 *) .
"./$found_la" ;;
7521 libdir
="$save_libdir"
7522 for dep
in $dependency_libs; do
7525 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
7526 if test "X$additional_libdir" != "X/usr/lib"; then
7528 if test "X$additional_libdir" = "X/usr/local/lib"; then
7529 if test -n "$GCC"; then
7531 linux
*) haveit
=yes;;
7535 if test -z "$haveit"; then
7537 for x
in $LDFLAGS $LIBICONV; do
7539 acl_save_prefix
="$prefix"
7540 prefix
="$acl_final_prefix"
7541 acl_save_exec_prefix
="$exec_prefix"
7542 exec_prefix
="$acl_final_exec_prefix"
7544 exec_prefix
="$acl_save_exec_prefix"
7545 prefix
="$acl_save_prefix"
7547 if test "X$x" = "X-L$additional_libdir"; then
7552 if test -z "$haveit"; then
7553 if test -d "$additional_libdir"; then
7554 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7558 for x
in $LDFLAGS $LTLIBICONV; do
7560 acl_save_prefix
="$prefix"
7561 prefix
="$acl_final_prefix"
7562 acl_save_exec_prefix
="$exec_prefix"
7563 exec_prefix
="$acl_final_exec_prefix"
7565 exec_prefix
="$acl_save_exec_prefix"
7566 prefix
="$acl_save_prefix"
7568 if test "X$x" = "X-L$additional_libdir"; then
7573 if test -z "$haveit"; then
7574 if test -d "$additional_libdir"; then
7575 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7582 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
7583 if test "$enable_rpath" != no
; then
7585 for x
in $rpathdirs; do
7586 if test "X$x" = "X$dir"; then
7591 if test -z "$haveit"; then
7592 rpathdirs
="$rpathdirs $dir"
7595 for x
in $ltrpathdirs; do
7596 if test "X$x" = "X$dir"; then
7601 if test -z "$haveit"; then
7602 ltrpathdirs
="$ltrpathdirs $dir"
7607 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7610 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7613 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
7614 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7620 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
7621 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7627 if test "X$rpathdirs" != "X"; then
7628 if test -n "$hardcode_libdir_separator"; then
7630 for found_dir
in $rpathdirs; do
7631 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7633 acl_save_libdir
="$libdir"
7635 eval flag
=\"$hardcode_libdir_flag_spec\"
7636 libdir
="$acl_save_libdir"
7637 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
7639 for found_dir
in $rpathdirs; do
7640 acl_save_libdir
="$libdir"
7642 eval flag
=\"$hardcode_libdir_flag_spec\"
7643 libdir
="$acl_save_libdir"
7644 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
7648 if test "X$ltrpathdirs" != "X"; then
7649 for found_dir
in $ltrpathdirs; do
7650 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7661 $as_echo_n "checking for iconv... " >&6; }
7662 if test "${am_cv_func_iconv+set}" = set; then :
7663 $as_echo_n "(cached) " >&6
7666 am_cv_func_iconv
="no, consider installing GNU libiconv"
7668 am_save_CPPFLAGS
="$CPPFLAGS"
7669 CPPFLAGS
="$CPPFLAGS $INCICONV"
7670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7671 /* end confdefs.h. */
7677 iconv_t cd = iconv_open("","");
7678 iconv(cd,NULL,NULL,NULL,NULL);
7684 if ac_fn_c_try_link
"$LINENO"; then :
7685 am_cv_func_iconv
=yes
7687 rm -f core conftest.err conftest.
$ac_objext \
7688 conftest
$ac_exeext conftest.
$ac_ext
7689 CPPFLAGS
="$am_save_CPPFLAGS"
7691 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
7692 for _libs
in .libs _libs
; do
7693 am_save_CPPFLAGS
="$CPPFLAGS"
7694 am_save_LIBS
="$LIBS"
7695 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
7696 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
7697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7698 /* end confdefs.h. */
7704 iconv_t cd = iconv_open("","");
7705 iconv(cd,NULL,NULL,NULL,NULL);
7711 if ac_fn_c_try_link
"$LINENO"; then :
7712 INCICONV
="-I../libiconv/include"
7713 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
7714 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
7716 am_cv_func_iconv
=yes
7718 rm -f core conftest.err conftest.
$ac_objext \
7719 conftest
$ac_exeext conftest.
$ac_ext
7720 CPPFLAGS
="$am_save_CPPFLAGS"
7721 LIBS
="$am_save_LIBS"
7722 if test "$am_cv_func_iconv" = "yes"; then
7728 if test "$am_cv_func_iconv" != yes; then
7729 am_save_CPPFLAGS
="$CPPFLAGS"
7730 am_save_LIBS
="$LIBS"
7731 CPPFLAGS
="$LIBS $INCICONV"
7732 LIBS
="$LIBS $LIBICONV"
7733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7734 /* end confdefs.h. */
7740 iconv_t cd = iconv_open("","");
7741 iconv(cd,NULL,NULL,NULL,NULL);
7747 if ac_fn_c_try_link
"$LINENO"; then :
7749 am_cv_func_iconv
=yes
7751 rm -f core conftest.err conftest.
$ac_objext \
7752 conftest
$ac_exeext conftest.
$ac_ext
7753 CPPFLAGS
="$am_save_CPPFLAGS"
7754 LIBS
="$am_save_LIBS"
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7759 $as_echo "$am_cv_func_iconv" >&6; }
7760 if test "$am_cv_func_iconv" = yes; then
7762 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7765 if test "$am_cv_lib_iconv" = yes; then
7767 for element
in $INCICONV; do
7769 for x
in $CPPFLAGS; do
7771 acl_save_prefix
="$prefix"
7772 prefix
="$acl_final_prefix"
7773 acl_save_exec_prefix
="$exec_prefix"
7774 exec_prefix
="$acl_final_exec_prefix"
7776 exec_prefix
="$acl_save_exec_prefix"
7777 prefix
="$acl_save_prefix"
7779 if test "X$x" = "X$element"; then
7784 if test -z "$haveit"; then
7785 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7790 $as_echo_n "checking how to link with libiconv... " >&6; }
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7792 $as_echo "$LIBICONV" >&6; }
7800 if test "$am_cv_func_iconv" = yes; then
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7802 $as_echo_n "checking for iconv declaration... " >&6; }
7803 if test "${am_cv_proto_iconv+set}" = set; then :
7804 $as_echo_n "(cached) " >&6
7807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7808 /* end confdefs.h. */
7816 #if defined(__STDC__) || defined(__cplusplus)
7817 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7830 if ac_fn_c_try_compile
"$LINENO"; then :
7831 am_cv_proto_iconv_arg1
=""
7833 am_cv_proto_iconv_arg1
="const"
7835 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7836 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);"
7839 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
7841 }$am_cv_proto_iconv" >&5
7843 }$am_cv_proto_iconv" >&6; }
7845 cat >>confdefs.h
<<_ACEOF
7846 #define ICONV_CONST $am_cv_proto_iconv_arg1
7852 # GDB may fork/exec the iconv program to get the list of supported character
7853 # sets. Allow the user to specify where to find it.
7854 # There are several factors affecting the choice of option name:
7855 # - There is already --with-libiconv-prefix but we can't use it, it specifies
7856 # the build-time location of libiconv files.
7857 # - The program we need to find is iconv, which comes with glibc. The user
7858 # doesn't necessarily have libiconv installed. Therefore naming this
7859 # --with-libiconv-foo feels wrong.
7860 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
7861 # defined to work on directories not files (though it really doesn't know
7863 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
7864 # with --with-libiconv-prefix.
7865 # Putting these together is why the option name is --with-iconv-bin.
7868 # Check whether --with-iconv-bin was given.
7869 if test "${with_iconv_bin+set}" = set; then :
7870 withval
=$with_iconv_bin; iconv_bin
="${withval}"
7872 cat >>confdefs.h
<<_ACEOF
7873 #define ICONV_BIN "${iconv_bin}"
7877 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
7878 if test "x$prefix" = xNONE
; then
7879 test_prefix
=/usr
/local
7884 test_prefix
=$exec_prefix
7887 case ${iconv_bin} in
7888 "${test_prefix}"|
"${test_prefix}/"*|\
7889 '${exec_prefix}'|
'${exec_prefix}/'*)
7894 cat >>confdefs.h
<<_ACEOF
7895 #define ICONV_BIN_RELOCATABLE $value
7903 # For the TUI, we need enhanced curses functionality.
7904 if test x
"$enable_tui" != xno
; then
7909 if test x
"$prefer_curses" = xyes
; then
7910 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
7911 # curses library because the latter might not provide all the
7912 # functionality we need. However, this leads to problems on systems
7913 # where the linker searches /usr/local/lib, but the compiler doesn't
7914 # search /usr/local/include, if ncurses is installed in /usr/local. A
7915 # default installation of ncurses on alpha*-dec-osf* will lead to such
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
7918 $as_echo_n "checking for library containing waddstr... " >&6; }
7919 if test "${ac_cv_search_waddstr+set}" = set; then :
7920 $as_echo_n "(cached) " >&6
7922 ac_func_search_save_LIBS
=$LIBS
7923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7924 /* end confdefs.h. */
7926 /* Override any GCC internal prototype to avoid an error.
7927 Use char because int might match the return type of a GCC
7928 builtin and then its argument prototype would still apply. */
7941 for ac_lib
in '' ncurses cursesX curses
; do
7942 if test -z "$ac_lib"; then
7943 ac_res
="none required"
7946 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7948 if ac_fn_c_try_link
"$LINENO"; then :
7949 ac_cv_search_waddstr
=$ac_res
7951 rm -f core conftest.err conftest.
$ac_objext \
7953 if test "${ac_cv_search_waddstr+set}" = set; then :
7957 if test "${ac_cv_search_waddstr+set}" = set; then :
7960 ac_cv_search_waddstr
=no
7963 LIBS
=$ac_func_search_save_LIBS
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
7966 $as_echo "$ac_cv_search_waddstr" >&6; }
7967 ac_res
=$ac_cv_search_waddstr
7968 if test "$ac_res" != no
; then :
7969 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7974 if test "$ac_cv_search_waddstr" != no
; then
7979 # Check whether we should enable the TUI, but only do so if we really
7981 if test x
"$enable_tui" != xno
; then
7982 if test -d $srcdir/tui
; then
7983 if test "$curses_found" != no
; then
7984 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
7985 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
7986 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
7987 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
7989 if test x
"$enable_tui" = xyes
; then
7990 as_fn_error
"no enhanced curses library found; disable TUI" "$LINENO" 5
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
7993 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
7999 # Since GDB uses Readline, we need termcap functionality. In many
8000 # cases this will be provided by the curses library, but some systems
8001 # have a seperate termcap library, or no curses library at all.
8005 if test -d $srcdir/libtermcap
; then
8006 LIBS
="../libtermcap/libtermcap.a $LIBS"
8007 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
8010 ac_cv_search_tgetent
="none required"
8014 # These are the libraries checked by Readline.
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
8016 $as_echo_n "checking for library containing tgetent... " >&6; }
8017 if test "${ac_cv_search_tgetent+set}" = set; then :
8018 $as_echo_n "(cached) " >&6
8020 ac_func_search_save_LIBS
=$LIBS
8021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8022 /* end confdefs.h. */
8024 /* Override any GCC internal prototype to avoid an error.
8025 Use char because int might match the return type of a GCC
8026 builtin and then its argument prototype would still apply. */
8039 for ac_lib
in '' termcap tinfo curses ncurses
; do
8040 if test -z "$ac_lib"; then
8041 ac_res
="none required"
8044 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8046 if ac_fn_c_try_link
"$LINENO"; then :
8047 ac_cv_search_tgetent
=$ac_res
8049 rm -f core conftest.err conftest.
$ac_objext \
8051 if test "${ac_cv_search_tgetent+set}" = set; then :
8055 if test "${ac_cv_search_tgetent+set}" = set; then :
8058 ac_cv_search_tgetent
=no
8061 LIBS
=$ac_func_search_save_LIBS
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
8064 $as_echo "$ac_cv_search_tgetent" >&6; }
8065 ac_res
=$ac_cv_search_tgetent
8066 if test "$ac_res" != no
; then :
8067 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8072 if test "$ac_cv_search_tgetent" = no
; then
8073 CONFIG_OBS
="$CONFIG_OBS stub-termcap.o"
8077 # Check whether --with-system-readline was given.
8078 if test "${with_system_readline+set}" = set; then :
8079 withval
=$with_system_readline;
8083 if test "$with_system_readline" = yes; then
8087 READLINE_TEXI_INCFLAG
=
8089 READLINE
='$(READLINE_DIR)/libreadline.a'
8090 READLINE_DEPS
='$(READLINE)'
8091 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
8092 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
8099 # Generate jit-reader.h
8101 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
8104 # The cast to long int works around a bug in the HP C Compiler
8105 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8106 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8107 # This bug is HP SR number 8606223364.
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
8109 $as_echo_n "checking size of unsigned long long... " >&6; }
8110 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
8111 $as_echo_n "(cached) " >&6
8113 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
8116 if test "$ac_cv_type_unsigned_long_long" = yes; then
8117 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8118 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8119 { as_fn_set_status
77
8120 as_fn_error
"cannot compute sizeof (unsigned long long)
8121 See \`config.log' for more details." "$LINENO" 5; }; }
8123 ac_cv_sizeof_unsigned_long_long
=0
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
8129 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
8133 cat >>confdefs.h
<<_ACEOF
8134 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
8138 # The cast to long int works around a bug in the HP C Compiler
8139 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8140 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8141 # This bug is HP SR number 8606223364.
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
8143 $as_echo_n "checking size of unsigned long... " >&6; }
8144 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
8145 $as_echo_n "(cached) " >&6
8147 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
8150 if test "$ac_cv_type_unsigned_long" = yes; then
8151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8153 { as_fn_set_status
77
8154 as_fn_error
"cannot compute sizeof (unsigned long)
8155 See \`config.log' for more details." "$LINENO" 5; }; }
8157 ac_cv_sizeof_unsigned_long
=0
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
8163 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
8167 cat >>confdefs.h
<<_ACEOF
8168 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
8172 # The cast to long int works around a bug in the HP C Compiler
8173 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8174 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8175 # This bug is HP SR number 8606223364.
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
8177 $as_echo_n "checking size of unsigned __int128... " >&6; }
8178 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
8179 $as_echo_n "(cached) " >&6
8181 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
8184 if test "$ac_cv_type_unsigned___int128" = yes; then
8185 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8187 { as_fn_set_status
77
8188 as_fn_error
"cannot compute sizeof (unsigned __int128)
8189 See \`config.log' for more details." "$LINENO" 5; }; }
8191 ac_cv_sizeof_unsigned___int128
=0
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
8197 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
8201 cat >>confdefs.h
<<_ACEOF
8202 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
8207 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
8208 TARGET_PTR
="unsigned long"
8209 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
8210 TARGET_PTR
="unsigned long long"
8211 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
8212 TARGET_PTR
="unsigned __int128"
8214 TARGET_PTR
="unsigned long"
8218 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
8222 $as_echo_n "checking for library containing dlopen... " >&6; }
8223 if test "${ac_cv_search_dlopen+set}" = set; then :
8224 $as_echo_n "(cached) " >&6
8226 ac_func_search_save_LIBS
=$LIBS
8227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8228 /* end confdefs.h. */
8230 /* Override any GCC internal prototype to avoid an error.
8231 Use char because int might match the return type of a GCC
8232 builtin and then its argument prototype would still apply. */
8245 for ac_lib
in '' dl
; do
8246 if test -z "$ac_lib"; then
8247 ac_res
="none required"
8250 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8252 if ac_fn_c_try_link
"$LINENO"; then :
8253 ac_cv_search_dlopen
=$ac_res
8255 rm -f core conftest.err conftest.
$ac_objext \
8257 if test "${ac_cv_search_dlopen+set}" = set; then :
8261 if test "${ac_cv_search_dlopen+set}" = set; then :
8264 ac_cv_search_dlopen
=no
8267 LIBS
=$ac_func_search_save_LIBS
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
8270 $as_echo "$ac_cv_search_dlopen" >&6; }
8271 ac_res
=$ac_cv_search_dlopen
8272 if test "$ac_res" != no
; then :
8273 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8280 # Check whether --with-jit-reader-dir was given.
8281 if test "${with_jit_reader_dir+set}" = set; then :
8282 withval
=$with_jit_reader_dir;
8283 JIT_READER_DIR
=$withval
8285 JIT_READER_DIR
=${libdir}/gdb
8289 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
8290 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8291 ac_define_dir
=`eval echo $JIT_READER_DIR`
8292 ac_define_dir
=`eval echo $ac_define_dir`
8294 cat >>confdefs.h
<<_ACEOF
8295 #define JIT_READER_DIR "$ac_define_dir"
8301 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
8302 if test "x$prefix" = xNONE
; then
8303 test_prefix
=/usr
/local
8308 test_prefix
=$exec_prefix
8311 case ${ac_define_dir} in
8312 "${test_prefix}"|
"${test_prefix}/"*|\
8313 '${exec_prefix}'|
'${exec_prefix}/'*)
8318 cat >>confdefs.h
<<_ACEOF
8319 #define JIT_READER_DIR_RELOCATABLE $value
8326 # Check whether --with-expat was given.
8327 if test "${with_expat+set}" = set; then :
8328 withval
=$with_expat;
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
8334 $as_echo_n "checking whether to use expat... " >&6; }
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
8336 $as_echo "$with_expat" >&6; }
8338 if test "${with_expat}" = no
; then
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
8340 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
8353 acl_save_prefix
="$prefix"
8354 prefix
="$acl_final_prefix"
8355 acl_save_exec_prefix
="$exec_prefix"
8356 exec_prefix
="$acl_final_exec_prefix"
8358 eval additional_includedir
=\"$includedir\"
8359 eval additional_libdir
=\"$libdir\"
8361 exec_prefix
="$acl_save_exec_prefix"
8362 prefix
="$acl_save_prefix"
8365 # Check whether --with-libexpat-prefix was given.
8366 if test "${with_libexpat_prefix+set}" = set; then :
8367 withval
=$with_libexpat_prefix;
8368 if test "X$withval" = "Xno"; then
8371 if test "X$withval" = "X"; then
8373 acl_save_prefix
="$prefix"
8374 prefix
="$acl_final_prefix"
8375 acl_save_exec_prefix
="$exec_prefix"
8376 exec_prefix
="$acl_final_exec_prefix"
8378 eval additional_includedir
=\"$includedir\"
8379 eval additional_libdir
=\"$libdir\"
8381 exec_prefix
="$acl_save_exec_prefix"
8382 prefix
="$acl_save_prefix"
8385 additional_includedir
="$withval/include"
8386 additional_libdir
="$withval/lib"
8397 names_already_handled
=
8398 names_next_round
='expat '
8399 while test -n "$names_next_round"; do
8400 names_this_round
="$names_next_round"
8402 for name
in $names_this_round; do
8404 for n
in $names_already_handled; do
8405 if test "$n" = "$name"; then
8410 if test -z "$already_handled"; then
8411 names_already_handled
="$names_already_handled $name"
8412 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8413 eval value
=\"\
$HAVE_LIB$uppername\"
8414 if test -n "$value"; then
8415 if test "$value" = yes; then
8416 eval value
=\"\
$LIB$uppername\"
8417 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
8418 eval value
=\"\
$LTLIB$uppername\"
8419 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
8428 if test $use_additional = yes; then
8429 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8430 found_dir
="$additional_libdir"
8431 found_so
="$additional_libdir/lib$name.$shlibext"
8432 if test -f "$additional_libdir/lib$name.la"; then
8433 found_la
="$additional_libdir/lib$name.la"
8436 if test -f "$additional_libdir/lib$name.$libext"; then
8437 found_dir
="$additional_libdir"
8438 found_a
="$additional_libdir/lib$name.$libext"
8439 if test -f "$additional_libdir/lib$name.la"; then
8440 found_la
="$additional_libdir/lib$name.la"
8445 if test "X$found_dir" = "X"; then
8446 for x
in $LDFLAGS $LTLIBEXPAT; do
8448 acl_save_prefix
="$prefix"
8449 prefix
="$acl_final_prefix"
8450 acl_save_exec_prefix
="$exec_prefix"
8451 exec_prefix
="$acl_final_exec_prefix"
8453 exec_prefix
="$acl_save_exec_prefix"
8454 prefix
="$acl_save_prefix"
8458 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8459 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8461 found_so
="$dir/lib$name.$shlibext"
8462 if test -f "$dir/lib$name.la"; then
8463 found_la
="$dir/lib$name.la"
8466 if test -f "$dir/lib$name.$libext"; then
8468 found_a
="$dir/lib$name.$libext"
8469 if test -f "$dir/lib$name.la"; then
8470 found_la
="$dir/lib$name.la"
8476 if test "X$found_dir" != "X"; then
8481 if test "X$found_dir" != "X"; then
8482 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
8483 if test "X$found_so" != "X"; then
8484 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8485 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8488 for x
in $ltrpathdirs; do
8489 if test "X$x" = "X$found_dir"; then
8494 if test -z "$haveit"; then
8495 ltrpathdirs
="$ltrpathdirs $found_dir"
8497 if test "$hardcode_direct" = yes; then
8498 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8500 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8501 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8503 for x
in $rpathdirs; do
8504 if test "X$x" = "X$found_dir"; then
8509 if test -z "$haveit"; then
8510 rpathdirs
="$rpathdirs $found_dir"
8514 for x
in $LDFLAGS $LIBEXPAT; do
8516 acl_save_prefix
="$prefix"
8517 prefix
="$acl_final_prefix"
8518 acl_save_exec_prefix
="$exec_prefix"
8519 exec_prefix
="$acl_final_exec_prefix"
8521 exec_prefix
="$acl_save_exec_prefix"
8522 prefix
="$acl_save_prefix"
8524 if test "X$x" = "X-L$found_dir"; then
8529 if test -z "$haveit"; then
8530 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
8532 if test "$hardcode_minus_L" != no
; then
8533 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8535 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
8541 if test "X$found_a" != "X"; then
8542 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
8544 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
8547 additional_includedir
=
8548 case "$found_dir" in
8550 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8551 additional_includedir
="$basedir/include"
8554 if test "X$additional_includedir" != "X"; then
8555 if test "X$additional_includedir" != "X/usr/include"; then
8557 if test "X$additional_includedir" = "X/usr/local/include"; then
8558 if test -n "$GCC"; then
8560 linux
*) haveit
=yes;;
8564 if test -z "$haveit"; then
8565 for x
in $CPPFLAGS $INCEXPAT; do
8567 acl_save_prefix
="$prefix"
8568 prefix
="$acl_final_prefix"
8569 acl_save_exec_prefix
="$exec_prefix"
8570 exec_prefix
="$acl_final_exec_prefix"
8572 exec_prefix
="$acl_save_exec_prefix"
8573 prefix
="$acl_save_prefix"
8575 if test "X$x" = "X-I$additional_includedir"; then
8580 if test -z "$haveit"; then
8581 if test -d "$additional_includedir"; then
8582 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
8588 if test -n "$found_la"; then
8589 save_libdir
="$libdir"
8591 */* |
*\\*) .
"$found_la" ;;
8592 *) .
"./$found_la" ;;
8594 libdir
="$save_libdir"
8595 for dep
in $dependency_libs; do
8598 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8599 if test "X$additional_libdir" != "X/usr/lib"; then
8601 if test "X$additional_libdir" = "X/usr/local/lib"; then
8602 if test -n "$GCC"; then
8604 linux
*) haveit
=yes;;
8608 if test -z "$haveit"; then
8610 for x
in $LDFLAGS $LIBEXPAT; do
8612 acl_save_prefix
="$prefix"
8613 prefix
="$acl_final_prefix"
8614 acl_save_exec_prefix
="$exec_prefix"
8615 exec_prefix
="$acl_final_exec_prefix"
8617 exec_prefix
="$acl_save_exec_prefix"
8618 prefix
="$acl_save_prefix"
8620 if test "X$x" = "X-L$additional_libdir"; then
8625 if test -z "$haveit"; then
8626 if test -d "$additional_libdir"; then
8627 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
8631 for x
in $LDFLAGS $LTLIBEXPAT; do
8633 acl_save_prefix
="$prefix"
8634 prefix
="$acl_final_prefix"
8635 acl_save_exec_prefix
="$exec_prefix"
8636 exec_prefix
="$acl_final_exec_prefix"
8638 exec_prefix
="$acl_save_exec_prefix"
8639 prefix
="$acl_save_prefix"
8641 if test "X$x" = "X-L$additional_libdir"; then
8646 if test -z "$haveit"; then
8647 if test -d "$additional_libdir"; then
8648 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
8655 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8656 if test "$enable_rpath" != no
; then
8658 for x
in $rpathdirs; do
8659 if test "X$x" = "X$dir"; then
8664 if test -z "$haveit"; then
8665 rpathdirs
="$rpathdirs $dir"
8668 for x
in $ltrpathdirs; do
8669 if test "X$x" = "X$dir"; then
8674 if test -z "$haveit"; then
8675 ltrpathdirs
="$ltrpathdirs $dir"
8680 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8683 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8686 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
8687 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
8693 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
8694 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
8700 if test "X$rpathdirs" != "X"; then
8701 if test -n "$hardcode_libdir_separator"; then
8703 for found_dir
in $rpathdirs; do
8704 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8706 acl_save_libdir
="$libdir"
8708 eval flag
=\"$hardcode_libdir_flag_spec\"
8709 libdir
="$acl_save_libdir"
8710 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
8712 for found_dir
in $rpathdirs; do
8713 acl_save_libdir
="$libdir"
8715 eval flag
=\"$hardcode_libdir_flag_spec\"
8716 libdir
="$acl_save_libdir"
8717 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
8721 if test "X$ltrpathdirs" != "X"; then
8722 for found_dir
in $ltrpathdirs; do
8723 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
8728 ac_save_CPPFLAGS
="$CPPFLAGS"
8730 for element
in $INCEXPAT; do
8732 for x
in $CPPFLAGS; do
8734 acl_save_prefix
="$prefix"
8735 prefix
="$acl_final_prefix"
8736 acl_save_exec_prefix
="$exec_prefix"
8737 exec_prefix
="$acl_final_exec_prefix"
8739 exec_prefix
="$acl_save_exec_prefix"
8740 prefix
="$acl_save_prefix"
8742 if test "X$x" = "X$element"; then
8747 if test -z "$haveit"; then
8748 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
8754 $as_echo_n "checking for libexpat... " >&6; }
8755 if test "${ac_cv_libexpat+set}" = set; then :
8756 $as_echo_n "(cached) " >&6
8759 ac_save_LIBS
="$LIBS"
8760 LIBS
="$LIBS $LIBEXPAT"
8761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8762 /* end confdefs.h. */
8767 XML_Parser p = XML_ParserCreate (0);
8772 if ac_fn_c_try_link
"$LINENO"; then :
8777 rm -f core conftest.err conftest.
$ac_objext \
8778 conftest
$ac_exeext conftest.
$ac_ext
8779 LIBS
="$ac_save_LIBS"
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
8783 $as_echo "$ac_cv_libexpat" >&6; }
8784 if test "$ac_cv_libexpat" = yes; then
8787 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
8790 $as_echo_n "checking how to link with libexpat... " >&6; }
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
8792 $as_echo "$LIBEXPAT" >&6; }
8795 CPPFLAGS
="$ac_save_CPPFLAGS"
8805 if test "$HAVE_LIBEXPAT" != yes; then
8806 if test "$with_expat" = yes; then
8807 as_fn_error
"expat is missing or unusable" "$LINENO" 5
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
8810 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
8814 LIBS
="$LIBS $LIBEXPAT"
8815 for ac_func
in XML_StopParser
8817 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
8818 if test "x$ac_cv_func_XML_StopParser" = x
""yes; then :
8819 cat >>confdefs.h
<<_ACEOF
8820 #define HAVE_XML_STOPPARSER 1
8830 # --------------------- #
8831 # Check for libpython. #
8832 # --------------------- #
8839 # Check whether --with-python was given.
8840 if test "${with_python+set}" = set; then :
8841 withval
=$with_python;
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
8847 $as_echo_n "checking whether to use python... " >&6; }
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
8849 $as_echo "$with_python" >&6; }
8851 if test "${with_python}" = no
; then
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
8853 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
8856 case "${with_python}" in
8858 if test -d ${with_python}; then
8859 # Assume the python binary is ${with_python}/bin/python.
8860 python_prog
="${with_python}/bin/python"
8862 # If python does not exit ${with_python}/bin, then try in
8863 # ${with_python}. On Windows/MinGW, this is where the Python
8865 if test ! -x "${python_prog}"; then
8866 python_prog
="${with_python}/python"
8869 if test ! -x "${python_prog}"; then
8870 # Fall back to gdb 7.0/7.1 behaviour.
8872 python_prefix
=${with_python}
8874 elif test -x "${with_python}"; then
8875 # While we can't run python compiled for $host (unless host == build),
8876 # the user could write a script that provides the needed information,
8877 # so we support that.
8878 python_prog
=${with_python}
8881 as_fn_error
"invalid value for --with-python" "$LINENO" 5
8885 # Disallow --with-python=foo/bar.
8886 as_fn_error
"invalid value for --with-python" "$LINENO" 5
8889 # The user has either specified auto, yes, or the name of the python
8890 # program assumed to be in $PATH.
8892 case "${with_python}" in
8894 if test ${build} = ${host}; then
8895 # Extract the first word of "python", so it can be a program name with args.
8896 set dummy python
; ac_word
=$2
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8898 $as_echo_n "checking for $ac_word... " >&6; }
8899 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8900 $as_echo_n "(cached) " >&6
8902 case $python_prog_path in
8904 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
8907 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8911 test -z "$as_dir" && as_dir
=.
8912 for ac_exec_ext
in '' $ac_executable_extensions; do
8913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8914 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
8915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8922 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
8926 python_prog_path
=$ac_cv_path_python_prog_path
8927 if test -n "$python_prog_path"; then
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8929 $as_echo "$python_prog_path" >&6; }
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8932 $as_echo "no" >&6; }
8936 if test "${python_prog_path}" = missing
; then
8939 python_prog
=${python_prog_path}
8942 # Not much we can do except assume the cross-compiler will find the
8948 # While we can't run python compiled for $host (unless host == build),
8949 # the user could write a script that provides the needed information,
8950 # so we support that.
8951 python_prog
="${with_python}"
8952 # Extract the first word of "${python_prog}", so it can be a program name with args.
8953 set dummy
${python_prog}; ac_word
=$2
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8955 $as_echo_n "checking for $ac_word... " >&6; }
8956 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8957 $as_echo_n "(cached) " >&6
8959 case $python_prog_path in
8961 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
8964 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8968 test -z "$as_dir" && as_dir
=.
8969 for ac_exec_ext
in '' $ac_executable_extensions; do
8970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8971 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
8972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8979 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
8983 python_prog_path
=$ac_cv_path_python_prog_path
8984 if test -n "$python_prog_path"; then
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8986 $as_echo "$python_prog_path" >&6; }
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8989 $as_echo "no" >&6; }
8993 if test "${python_prog_path}" = missing
; then
8994 as_fn_error
"unable to find python program ${python_prog}" "$LINENO" 5
9000 if test "${python_prog}" != missing
; then
9001 # We have a python program to use, but it may be too old.
9002 # Don't flag an error for --with-python=auto (the default).
9003 have_python_config
=yes
9004 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
9005 if test $?
!= 0; then
9006 have_python_config
=failed
9007 if test "${with_python}" != auto
; then
9008 as_fn_error
"failure running python-config --includes" "$LINENO" 5
9011 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
9012 if test $?
!= 0; then
9013 have_python_config
=failed
9014 if test "${with_python}" != auto
; then
9015 as_fn_error
"failure running python-config --ldflags" "$LINENO" 5
9018 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
9019 if test $?
!= 0; then
9020 have_python_config
=failed
9021 if test "${with_python}" != auto
; then
9022 as_fn_error
"failure running python-config --exec-prefix" "$LINENO" 5
9026 # We do not have a python executable we can use to determine where
9027 # to find the Python headers and libs. We cannot guess the include
9028 # path from the python_prefix either, because that include path
9029 # depends on the Python version. So, there is nothing much we can
9030 # do except assume that the compiler will be able to find those files.
9033 have_python_config
=no
9036 # If we have python-config, only try the configuration it provides.
9037 # Otherwise fallback on the old way of trying different versions of
9041 if test "${have_python_config}" = yes; then
9042 # Determine the Python version by extracting "-lpython<version>"
9043 # part of the python_libs. <version> is usually X.Y with X and Y
9044 # being decimal numbers, but can also be XY (seen on Windows).
9046 # The extraction is performed using sed with a regular expression.
9047 # Initially, the regexp used was using the '?' quantifier to make
9048 # the dot in the version number optional. Unfortunately, this
9049 # does not work with non-GNU versions of sed because, because of
9050 # what looks like a limitation (the '?' quantifier does not work
9051 # with back-references). We work around this limitation by using
9052 # the '*' quantifier instead. It means that, in theory, we might
9053 # match unexpected version strings such as "-lpython2..7", but
9054 # this seems unlikely in practice. And even if that happens,
9055 # an error will be triggered later on, when checking that version
9057 python_version
=`echo " ${python_libs} " \
9058 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
9059 case "${python_version}" in
9062 version
=${python_version}
9064 new_CPPFLAGS
=${python_includes}
9065 new_LIBS
=${python_libs}
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9067 $as_echo_n "checking for ${version}... " >&6; }
9068 save_CPPFLAGS
=$CPPFLAGS
9070 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9071 LIBS
="$LIBS $new_LIBS"
9072 found_usable_python
=no
9073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9074 /* end confdefs.h. */
9084 if ac_fn_c_try_link
"$LINENO"; then :
9085 have_libpython
=${version}
9086 found_usable_python
=yes
9087 PYTHON_CPPFLAGS
=$new_CPPFLAGS
9088 PYTHON_LIBS
=$new_LIBS
9090 rm -f core conftest.err conftest.
$ac_objext \
9091 conftest
$ac_exeext conftest.
$ac_ext
9092 CPPFLAGS
=$save_CPPFLAGS
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9095 $as_echo "${found_usable_python}" >&6; }
9099 as_fn_error
"unable to determine python version from ${python_libs}" "$LINENO" 5
9102 elif test "${have_python_config}" != failed
; then
9103 if test "${have_libpython}" = no
; then
9107 new_CPPFLAGS
=${python_includes}
9108 new_LIBS
="${python_libs} -lpython2.7"
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9110 $as_echo_n "checking for ${version}... " >&6; }
9111 save_CPPFLAGS
=$CPPFLAGS
9113 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9114 LIBS
="$LIBS $new_LIBS"
9115 found_usable_python
=no
9116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9117 /* end confdefs.h. */
9127 if ac_fn_c_try_link
"$LINENO"; then :
9128 have_libpython
=${version}
9129 found_usable_python
=yes
9130 PYTHON_CPPFLAGS
=$new_CPPFLAGS
9131 PYTHON_LIBS
=$new_LIBS
9133 rm -f core conftest.err conftest.
$ac_objext \
9134 conftest
$ac_exeext conftest.
$ac_ext
9135 CPPFLAGS
=$save_CPPFLAGS
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9138 $as_echo "${found_usable_python}" >&6; }
9141 if test "${have_libpython}" = no
; then
9145 new_CPPFLAGS
=${python_includes}
9146 new_LIBS
="${python_libs} -lpython2.6"
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9148 $as_echo_n "checking for ${version}... " >&6; }
9149 save_CPPFLAGS
=$CPPFLAGS
9151 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9152 LIBS
="$LIBS $new_LIBS"
9153 found_usable_python
=no
9154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9155 /* end confdefs.h. */
9165 if ac_fn_c_try_link
"$LINENO"; then :
9166 have_libpython
=${version}
9167 found_usable_python
=yes
9168 PYTHON_CPPFLAGS
=$new_CPPFLAGS
9169 PYTHON_LIBS
=$new_LIBS
9171 rm -f core conftest.err conftest.
$ac_objext \
9172 conftest
$ac_exeext conftest.
$ac_ext
9173 CPPFLAGS
=$save_CPPFLAGS
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9176 $as_echo "${found_usable_python}" >&6; }
9179 if test ${have_libpython} = no
; then
9183 new_CPPFLAGS
=${python_includes}
9184 new_LIBS
="${python_libs} -lpython2.5"
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9186 $as_echo_n "checking for ${version}... " >&6; }
9187 save_CPPFLAGS
=$CPPFLAGS
9189 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9190 LIBS
="$LIBS $new_LIBS"
9191 found_usable_python
=no
9192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9193 /* end confdefs.h. */
9203 if ac_fn_c_try_link
"$LINENO"; then :
9204 have_libpython
=${version}
9205 found_usable_python
=yes
9206 PYTHON_CPPFLAGS
=$new_CPPFLAGS
9207 PYTHON_LIBS
=$new_LIBS
9209 rm -f core conftest.err conftest.
$ac_objext \
9210 conftest
$ac_exeext conftest.
$ac_ext
9211 CPPFLAGS
=$save_CPPFLAGS
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9214 $as_echo "${found_usable_python}" >&6; }
9217 if test ${have_libpython} = no
; then
9221 new_CPPFLAGS
=${python_includes}
9222 new_LIBS
="${python_libs} -lpython2.4"
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9224 $as_echo_n "checking for ${version}... " >&6; }
9225 save_CPPFLAGS
=$CPPFLAGS
9227 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9228 LIBS
="$LIBS $new_LIBS"
9229 found_usable_python
=no
9230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9231 /* end confdefs.h. */
9241 if ac_fn_c_try_link
"$LINENO"; then :
9242 have_libpython
=${version}
9243 found_usable_python
=yes
9244 PYTHON_CPPFLAGS
=$new_CPPFLAGS
9245 PYTHON_LIBS
=$new_LIBS
9247 rm -f core conftest.err conftest.
$ac_objext \
9248 conftest
$ac_exeext conftest.
$ac_ext
9249 CPPFLAGS
=$save_CPPFLAGS
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9252 $as_echo "${found_usable_python}" >&6; }
9256 if test "${have_libpython}" = python2.7
-o "${have_libpython}" = python27
; then
9258 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
9260 elif test "${have_libpython}" = python2.6
-o "${have_libpython}" = python26
; then
9262 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
9264 elif test "${have_libpython}" = python2.5
-o "${have_libpython}" = python25
; then
9266 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
9268 elif test "${have_libpython}" = python2.4
-o "${have_libpython}" = python24
; then
9270 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
9274 if test "${have_libpython}" = no
; then
9275 case "${with_python}" in
9277 as_fn_error
"python is missing or unusable" "$LINENO" 5
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
9281 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
9284 as_fn_error
"no usable python found at ${with_python}" "$LINENO" 5
9288 if test -n "${python_prefix}"; then
9290 cat >>confdefs.h
<<_ACEOF
9291 #define WITH_PYTHON_PATH "${python_prefix}"
9295 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9296 if test "x$prefix" = xNONE
; then
9297 test_prefix
=/usr
/local
9302 test_prefix
=$exec_prefix
9305 case ${python_prefix} in
9306 "${test_prefix}"|
"${test_prefix}/"*|\
9307 '${exec_prefix}'|
'${exec_prefix}/'*)
9312 cat >>confdefs.h
<<_ACEOF
9313 #define PYTHON_PATH_RELOCATABLE $value
9321 if test "${have_libpython}" != no
; then
9323 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
9325 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
9326 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
9327 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
9328 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
9329 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
9331 # Flags needed to compile Python code (taken from python-config --cflags).
9332 # We cannot call python-config directly because it will output whatever was
9333 # used when compiling the Python interpreter itself, including flags which
9334 # would make the python-related objects be compiled differently from the
9335 # rest of GDB (e.g., -O2 and -fPIC).
9336 if test "${GCC}" = yes; then
9337 tentative_python_cflags
="-fno-strict-aliasing -DNDEBUG -fwrapv"
9340 if test "x${tentative_python_cflags}" != x
; then
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
9342 $as_echo_n "checking compiler flags for python code... " >&6; }
9343 for flag
in ${tentative_python_cflags}; do
9344 # Check that the compiler accepts it
9345 saved_CFLAGS
="$CFLAGS"
9346 CFLAGS
="$CFLAGS $flag"
9347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9348 /* end confdefs.h. */
9358 if ac_fn_c_try_compile
"$LINENO"; then :
9359 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
9361 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9362 CFLAGS
="$saved_CFLAGS"
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
9365 $as_echo "${PYTHON_CFLAGS}" >&6; }
9368 # On x64 Windows, Python's include headers, and pyconfig.h in
9369 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
9370 # version of Windows. Unfortunately, MS_WIN64 is only defined if
9371 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
9372 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
9373 # The issue was reported to the Python community, but still isn't
9374 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
9378 if test "${GCC}" = yes; then
9379 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
9384 # Note that "python -m threading" cannot be used to check for
9385 # threading support due to a bug in Python 2.7.3
9386 # (http://bugs.python.org/issue15567).
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
9388 $as_echo_n "checking whether python supports threads... " >&6; }
9389 saved_CPPFLAGS
="${CPPFLAGS}"
9390 CPPFLAGS
="${PYTHON_CPPFLAGS}"
9391 # Note that the test is reversed so that python_has_threads=yes on
9392 # unexpected failures.
9393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9394 /* end confdefs.h. */
9402 if ac_fn_c_try_cpp
"$LINENO"; then :
9403 python_has_threads
=no
9405 python_has_threads
=yes
9407 rm -f conftest.err conftest.
$ac_ext
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
9409 $as_echo "${python_has_threads}" >&6; }
9410 CPPFLAGS
="${saved_CPPFLAGS}"
9412 # Even if Python support is not compiled in, we need to have this file
9413 # included so that the "python" command, et.al., still exists.
9414 CONFIG_OBS
="$CONFIG_OBS python.o"
9415 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
9418 # Work around Python http://bugs.python.org/issue10112. See also
9419 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
9420 # no effect. Note that the only test after this that uses Python is
9421 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
9422 # run without -export-dynamic too.
9423 PYTHON_LIBS
=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
9428 if test "${have_libpython}" != no
; then
9430 HAVE_PYTHON_FALSE
='#'
9432 HAVE_PYTHON_TRUE
='#'
9437 # -------------------- #
9438 # Check for libguile. #
9439 # -------------------- #
9446 # Check whether --with-guile was given.
9447 if test "${with_guile+set}" = set; then :
9448 withval
=$with_guile;
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
9454 $as_echo_n "checking whether to use guile... " >&6; }
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
9456 $as_echo "$with_guile" >&6; }
9458 # Extract the first word of "pkg-config", so it can be a program name with args.
9459 set dummy pkg-config
; ac_word
=$2
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9461 $as_echo_n "checking for $ac_word... " >&6; }
9462 if test "${ac_cv_path_pkg_config_prog_path+set}" = set; then :
9463 $as_echo_n "(cached) " >&6
9465 case $pkg_config_prog_path in
9467 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
9470 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9474 test -z "$as_dir" && as_dir
=.
9475 for ac_exec_ext
in '' $ac_executable_extensions; do
9476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9477 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
9478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9485 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
9489 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
9490 if test -n "$pkg_config_prog_path"; then
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
9492 $as_echo "$pkg_config_prog_path" >&6; }
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9495 $as_echo "no" >&6; }
9500 try_guile_versions
="guile-2.2 guile-2.0"
9502 case "${with_guile}" in
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
9505 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
9508 if test "${pkg_config_prog_path}" = "missing"; then
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
9510 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
9513 pkg_config
=${pkg_config_prog_path}
9514 guile_version_list
=${try_guile_versions}
9517 found_usable_guile
=checking
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9519 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9520 for guile_version
in ${guile_version_list}; do
9521 ${pkg_config} --exists ${guile_version} 2>/dev
/null
9522 if test $?
!= 0; then
9525 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
9526 if test $?
!= 0; then
9527 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9529 new_LIBS
=`${pkg_config} --libs ${guile_version}`
9530 if test $?
!= 0; then
9531 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9533 found_usable_guile
=${guile_version}
9536 if test "${found_usable_guile}" = "checking"; then
9537 if test "${flag_errors}" = "yes"; then
9538 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9540 found_usable_guile
=no
9543 if test "${found_usable_guile}" != no
; then
9544 save_CPPFLAGS
=$CPPFLAGS
9546 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9547 LIBS
="$LIBS $new_LIBS"
9548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9549 /* end confdefs.h. */
9550 #include "libguile.h"
9559 if ac_fn_c_try_link
"$LINENO"; then :
9561 GUILE_CPPFLAGS
=$new_CPPFLAGS
9562 GUILE_LIBS
=$new_LIBS
9564 found_usable_guile
=no
9566 rm -f core conftest.err conftest.
$ac_objext \
9567 conftest
$ac_exeext conftest.
$ac_ext
9568 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9569 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
9571 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9576 CPPFLAGS
=$save_CPPFLAGS
9578 if test "${found_usable_guile}" = no
; then
9579 if test "${flag_errors}" = yes; then
9580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9582 as_fn_error
"linking guile version ${guile_version} test program failed
9583 See \`config.log' for more details." "$LINENO" 5; }
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9588 $as_echo "${found_usable_guile}" >&6; }
9593 if test "${pkg_config_prog_path}" = "missing"; then
9594 as_fn_error
"pkg-config not found" "$LINENO" 5
9597 pkg_config
=${pkg_config_prog_path}
9598 guile_version_list
=${try_guile_versions}
9601 found_usable_guile
=checking
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9603 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9604 for guile_version
in ${guile_version_list}; do
9605 ${pkg_config} --exists ${guile_version} 2>/dev
/null
9606 if test $?
!= 0; then
9609 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
9610 if test $?
!= 0; then
9611 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9613 new_LIBS
=`${pkg_config} --libs ${guile_version}`
9614 if test $?
!= 0; then
9615 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9617 found_usable_guile
=${guile_version}
9620 if test "${found_usable_guile}" = "checking"; then
9621 if test "${flag_errors}" = "yes"; then
9622 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9624 found_usable_guile
=no
9627 if test "${found_usable_guile}" != no
; then
9628 save_CPPFLAGS
=$CPPFLAGS
9630 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9631 LIBS
="$LIBS $new_LIBS"
9632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9633 /* end confdefs.h. */
9634 #include "libguile.h"
9643 if ac_fn_c_try_link
"$LINENO"; then :
9645 GUILE_CPPFLAGS
=$new_CPPFLAGS
9646 GUILE_LIBS
=$new_LIBS
9648 found_usable_guile
=no
9650 rm -f core conftest.err conftest.
$ac_objext \
9651 conftest
$ac_exeext conftest.
$ac_ext
9652 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9653 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
9655 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9660 CPPFLAGS
=$save_CPPFLAGS
9662 if test "${found_usable_guile}" = no
; then
9663 if test "${flag_errors}" = yes; then
9664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9666 as_fn_error
"linking guile version ${guile_version} test program failed
9667 See \`config.log' for more details." "$LINENO" 5; }
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9672 $as_echo "${found_usable_guile}" >&6; }
9676 if test -x "${with_guile}"; then
9678 pkg_config
=${with_guile}
9679 guile_version_list
=${try_guile_versions}
9682 found_usable_guile
=checking
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9684 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9685 for guile_version
in ${guile_version_list}; do
9686 ${pkg_config} --exists ${guile_version} 2>/dev
/null
9687 if test $?
!= 0; then
9690 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
9691 if test $?
!= 0; then
9692 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9694 new_LIBS
=`${pkg_config} --libs ${guile_version}`
9695 if test $?
!= 0; then
9696 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9698 found_usable_guile
=${guile_version}
9701 if test "${found_usable_guile}" = "checking"; then
9702 if test "${flag_errors}" = "yes"; then
9703 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9705 found_usable_guile
=no
9708 if test "${found_usable_guile}" != no
; then
9709 save_CPPFLAGS
=$CPPFLAGS
9711 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9712 LIBS
="$LIBS $new_LIBS"
9713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9714 /* end confdefs.h. */
9715 #include "libguile.h"
9724 if ac_fn_c_try_link
"$LINENO"; then :
9726 GUILE_CPPFLAGS
=$new_CPPFLAGS
9727 GUILE_LIBS
=$new_LIBS
9729 found_usable_guile
=no
9731 rm -f core conftest.err conftest.
$ac_objext \
9732 conftest
$ac_exeext conftest.
$ac_ext
9733 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9734 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
9736 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9741 CPPFLAGS
=$save_CPPFLAGS
9743 if test "${found_usable_guile}" = no
; then
9744 if test "${flag_errors}" = yes; then
9745 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9746 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9747 as_fn_error
"linking guile version ${guile_version} test program failed
9748 See \`config.log' for more details." "$LINENO" 5; }
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9753 $as_echo "${found_usable_guile}" >&6; }
9756 as_fn_error
"Guile config program not executable: ${with_guile}" "$LINENO" 5
9760 # Disallow --with=guile="" and --with-guile=foo/bar.
9761 as_fn_error
"invalid value for --with-guile" "$LINENO" 5
9764 # A space separate list of guile versions to try, in order.
9765 if test "${pkg_config_prog_path}" = "missing"; then
9766 as_fn_error
"pkg-config not found" "$LINENO" 5
9769 pkg_config
=${pkg_config_prog_path}
9770 guile_version_list
=${with_guile}
9773 found_usable_guile
=checking
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9775 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9776 for guile_version
in ${guile_version_list}; do
9777 ${pkg_config} --exists ${guile_version} 2>/dev
/null
9778 if test $?
!= 0; then
9781 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
9782 if test $?
!= 0; then
9783 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9785 new_LIBS
=`${pkg_config} --libs ${guile_version}`
9786 if test $?
!= 0; then
9787 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9789 found_usable_guile
=${guile_version}
9792 if test "${found_usable_guile}" = "checking"; then
9793 if test "${flag_errors}" = "yes"; then
9794 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9796 found_usable_guile
=no
9799 if test "${found_usable_guile}" != no
; then
9800 save_CPPFLAGS
=$CPPFLAGS
9802 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9803 LIBS
="$LIBS $new_LIBS"
9804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9805 /* end confdefs.h. */
9806 #include "libguile.h"
9815 if ac_fn_c_try_link
"$LINENO"; then :
9817 GUILE_CPPFLAGS
=$new_CPPFLAGS
9818 GUILE_LIBS
=$new_LIBS
9820 found_usable_guile
=no
9822 rm -f core conftest.err conftest.
$ac_objext \
9823 conftest
$ac_exeext conftest.
$ac_ext
9824 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9825 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
9827 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9832 CPPFLAGS
=$save_CPPFLAGS
9834 if test "${found_usable_guile}" = no
; then
9835 if test "${flag_errors}" = yes; then
9836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9838 as_fn_error
"linking guile version ${guile_version} test program failed
9839 See \`config.log' for more details." "$LINENO" 5; }
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9844 $as_echo "${found_usable_guile}" >&6; }
9849 if test "${have_libguile}" != no
; then
9850 case "${with_guile}" in
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
9854 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
9855 if test "${ac_cv_guild_program_name+set}" = set; then :
9856 $as_echo_n "(cached) " >&6
9858 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
9860 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
9861 # the 'guild' and 'bindir' variables. In that case, try to guess
9862 # what the program name is, at the risk of getting it wrong if
9863 # Guile was configured with '--program-suffix' or similar.
9864 if test "x$ac_cv_guild_program_name" = "x"; then
9865 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
9866 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
9871 $as_echo "$ac_cv_guild_program_name" >&6; }
9873 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
9874 as_fn_error
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
9877 GUILD
="$ac_cv_guild_program_name"
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
9884 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
9885 if test "${ac_cv_guild_program_name+set}" = set; then :
9886 $as_echo_n "(cached) " >&6
9888 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
9890 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
9891 # the 'guild' and 'bindir' variables. In that case, try to guess
9892 # what the program name is, at the risk of getting it wrong if
9893 # Guile was configured with '--program-suffix' or similar.
9894 if test "x$ac_cv_guild_program_name" = "x"; then
9895 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
9896 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
9901 $as_echo "$ac_cv_guild_program_name" >&6; }
9903 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
9904 as_fn_error
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
9907 GUILD
="$ac_cv_guild_program_name"
9914 if test "$cross_compiling" = no
; then
9917 GUILD_TARGET_FLAG
="--target=$host"
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
9924 $as_echo_n "checking whether guild supports this host... " >&6; }
9925 if test "${ac_cv_guild_ok+set}" = set; then :
9926 $as_echo_n "(cached) " >&6
9928 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
9929 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
9936 $as_echo "$ac_cv_guild_ok" >&6; }
9938 if test "$ac_cv_guild_ok" = no
; then
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
9941 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
9945 if test "${have_libguile}" != no
; then
9947 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
9949 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
9950 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
9951 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
9952 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
9953 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
9956 save_CPPFLAGS
="$CPPFLAGS"
9958 CPPFLAGS
="$GUILE_CPPFLAGS"
9959 for ac_func
in scm_new_smob
9961 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
9962 if test "x$ac_cv_func_scm_new_smob" = x
""yes; then :
9963 cat >>confdefs.h
<<_ACEOF
9964 #define HAVE_SCM_NEW_SMOB 1
9971 CPPFLAGS
="$save_CPPFLAGS"
9973 # Even if Guile support is not compiled in, we need to have these files
9975 CONFIG_OBS
="$CONFIG_OBS guile.o"
9976 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
9980 if test "${have_libguile}" != no
; then
9982 HAVE_GUILE_FALSE
='#'
9989 # --------------------- #
9990 # Check for libmcheck. #
9991 # --------------------- #
9993 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
9994 # but turn it off if Python is enabled with threads, since -lmcheck is
9995 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
9997 if test \
( "${have_libpython}" = "no" -o "${python_has_threads}" = "no" \
) \
9998 && $development; then
9999 libmcheck_default
=yes
10001 libmcheck_default
=no
10004 # Check whether --enable-libmcheck was given.
10005 if test "${enable_libmcheck+set}" = set; then :
10006 enableval
=$enable_libmcheck; case "${enableval}" in
10007 yes | y
) ENABLE_LIBMCHECK
="yes" ;;
10008 no | n
) ENABLE_LIBMCHECK
="no" ;;
10009 *) as_fn_error
"bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
10014 if test -z "${ENABLE_LIBMCHECK}"; then
10015 ENABLE_LIBMCHECK
=${libmcheck_default}
10018 if test "$ENABLE_LIBMCHECK" = "yes" ; then
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
10020 $as_echo_n "checking for main in -lmcheck... " >&6; }
10021 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
10022 $as_echo_n "(cached) " >&6
10024 ac_check_lib_save_LIBS
=$LIBS
10025 LIBS
="-lmcheck $LIBS"
10026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10027 /* end confdefs.h. */
10038 if ac_fn_c_try_link
"$LINENO"; then :
10039 ac_cv_lib_mcheck_main
=yes
10041 ac_cv_lib_mcheck_main
=no
10043 rm -f core conftest.err conftest.
$ac_objext \
10044 conftest
$ac_exeext conftest.
$ac_ext
10045 LIBS
=$ac_check_lib_save_LIBS
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
10048 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
10049 if test "x$ac_cv_lib_mcheck_main" = x
""yes; then :
10050 cat >>confdefs.h
<<_ACEOF
10051 #define HAVE_LIBMCHECK 1
10054 LIBS
="-lmcheck $LIBS"
10061 if test "$ENABLE_LIBMCHECK" = "yes" \
10062 -a "${have_libpython}" != "no" \
10063 -a "${python_has_threads}" = "yes" ; then
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
10065 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
10069 # Check whether --with-intel_pt was given.
10070 if test "${with_intel_pt+set}" = set; then :
10071 withval
=$with_intel_pt;
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
10077 $as_echo_n "checking whether to use intel pt... " >&6; }
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
10079 $as_echo "$with_intel_pt" >&6; }
10081 if test "${with_intel_pt}" = no
; then
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
10083 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
10086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10087 /* end confdefs.h. */
10089 #include <linux/perf_event.h>
10090 #ifndef PERF_ATTR_SIZE_VER5
10095 if ac_fn_c_try_cpp
"$LINENO"; then :
10100 rm -f conftest.err conftest.
$ac_ext
10101 if test "$perf_event" != yes; then
10102 if test "$with_intel_pt" = yes; then
10103 as_fn_error
"linux/perf_event.h missing or too old" "$LINENO" 5
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
10106 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
10120 acl_save_prefix
="$prefix"
10121 prefix
="$acl_final_prefix"
10122 acl_save_exec_prefix
="$exec_prefix"
10123 exec_prefix
="$acl_final_exec_prefix"
10125 eval additional_includedir
=\"$includedir\"
10126 eval additional_libdir
=\"$libdir\"
10128 exec_prefix
="$acl_save_exec_prefix"
10129 prefix
="$acl_save_prefix"
10132 # Check whether --with-libipt-prefix was given.
10133 if test "${with_libipt_prefix+set}" = set; then :
10134 withval
=$with_libipt_prefix;
10135 if test "X$withval" = "Xno"; then
10138 if test "X$withval" = "X"; then
10140 acl_save_prefix
="$prefix"
10141 prefix
="$acl_final_prefix"
10142 acl_save_exec_prefix
="$exec_prefix"
10143 exec_prefix
="$acl_final_exec_prefix"
10145 eval additional_includedir
=\"$includedir\"
10146 eval additional_libdir
=\"$libdir\"
10148 exec_prefix
="$acl_save_exec_prefix"
10149 prefix
="$acl_save_prefix"
10152 additional_includedir
="$withval/include"
10153 additional_libdir
="$withval/lib"
10164 names_already_handled
=
10165 names_next_round
='ipt '
10166 while test -n "$names_next_round"; do
10167 names_this_round
="$names_next_round"
10169 for name
in $names_this_round; do
10171 for n
in $names_already_handled; do
10172 if test "$n" = "$name"; then
10173 already_handled
=yes
10177 if test -z "$already_handled"; then
10178 names_already_handled
="$names_already_handled $name"
10179 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10180 eval value
=\"\
$HAVE_LIB$uppername\"
10181 if test -n "$value"; then
10182 if test "$value" = yes; then
10183 eval value
=\"\
$LIB$uppername\"
10184 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
10185 eval value
=\"\
$LTLIB$uppername\"
10186 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
10195 if test $use_additional = yes; then
10196 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10197 found_dir
="$additional_libdir"
10198 found_so
="$additional_libdir/lib$name.$shlibext"
10199 if test -f "$additional_libdir/lib$name.la"; then
10200 found_la
="$additional_libdir/lib$name.la"
10203 if test -f "$additional_libdir/lib$name.$libext"; then
10204 found_dir
="$additional_libdir"
10205 found_a
="$additional_libdir/lib$name.$libext"
10206 if test -f "$additional_libdir/lib$name.la"; then
10207 found_la
="$additional_libdir/lib$name.la"
10212 if test "X$found_dir" = "X"; then
10213 for x
in $LDFLAGS $LTLIBIPT; do
10215 acl_save_prefix
="$prefix"
10216 prefix
="$acl_final_prefix"
10217 acl_save_exec_prefix
="$exec_prefix"
10218 exec_prefix
="$acl_final_exec_prefix"
10220 exec_prefix
="$acl_save_exec_prefix"
10221 prefix
="$acl_save_prefix"
10225 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10226 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10228 found_so
="$dir/lib$name.$shlibext"
10229 if test -f "$dir/lib$name.la"; then
10230 found_la
="$dir/lib$name.la"
10233 if test -f "$dir/lib$name.$libext"; then
10235 found_a
="$dir/lib$name.$libext"
10236 if test -f "$dir/lib$name.la"; then
10237 found_la
="$dir/lib$name.la"
10243 if test "X$found_dir" != "X"; then
10248 if test "X$found_dir" != "X"; then
10249 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
10250 if test "X$found_so" != "X"; then
10251 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10252 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
10255 for x
in $ltrpathdirs; do
10256 if test "X$x" = "X$found_dir"; then
10261 if test -z "$haveit"; then
10262 ltrpathdirs
="$ltrpathdirs $found_dir"
10264 if test "$hardcode_direct" = yes; then
10265 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
10267 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10268 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
10270 for x
in $rpathdirs; do
10271 if test "X$x" = "X$found_dir"; then
10276 if test -z "$haveit"; then
10277 rpathdirs
="$rpathdirs $found_dir"
10281 for x
in $LDFLAGS $LIBIPT; do
10283 acl_save_prefix
="$prefix"
10284 prefix
="$acl_final_prefix"
10285 acl_save_exec_prefix
="$exec_prefix"
10286 exec_prefix
="$acl_final_exec_prefix"
10288 exec_prefix
="$acl_save_exec_prefix"
10289 prefix
="$acl_save_prefix"
10291 if test "X$x" = "X-L$found_dir"; then
10296 if test -z "$haveit"; then
10297 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
10299 if test "$hardcode_minus_L" != no
; then
10300 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
10302 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
10308 if test "X$found_a" != "X"; then
10309 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
10311 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
10314 additional_includedir
=
10315 case "$found_dir" in
10317 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10318 additional_includedir
="$basedir/include"
10321 if test "X$additional_includedir" != "X"; then
10322 if test "X$additional_includedir" != "X/usr/include"; then
10324 if test "X$additional_includedir" = "X/usr/local/include"; then
10325 if test -n "$GCC"; then
10327 linux
*) haveit
=yes;;
10331 if test -z "$haveit"; then
10332 for x
in $CPPFLAGS $INCIPT; do
10334 acl_save_prefix
="$prefix"
10335 prefix
="$acl_final_prefix"
10336 acl_save_exec_prefix
="$exec_prefix"
10337 exec_prefix
="$acl_final_exec_prefix"
10339 exec_prefix
="$acl_save_exec_prefix"
10340 prefix
="$acl_save_prefix"
10342 if test "X$x" = "X-I$additional_includedir"; then
10347 if test -z "$haveit"; then
10348 if test -d "$additional_includedir"; then
10349 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
10355 if test -n "$found_la"; then
10356 save_libdir
="$libdir"
10357 case "$found_la" in
10358 */* |
*\\*) .
"$found_la" ;;
10359 *) .
"./$found_la" ;;
10361 libdir
="$save_libdir"
10362 for dep
in $dependency_libs; do
10365 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10366 if test "X$additional_libdir" != "X/usr/lib"; then
10368 if test "X$additional_libdir" = "X/usr/local/lib"; then
10369 if test -n "$GCC"; then
10371 linux
*) haveit
=yes;;
10375 if test -z "$haveit"; then
10377 for x
in $LDFLAGS $LIBIPT; do
10379 acl_save_prefix
="$prefix"
10380 prefix
="$acl_final_prefix"
10381 acl_save_exec_prefix
="$exec_prefix"
10382 exec_prefix
="$acl_final_exec_prefix"
10384 exec_prefix
="$acl_save_exec_prefix"
10385 prefix
="$acl_save_prefix"
10387 if test "X$x" = "X-L$additional_libdir"; then
10392 if test -z "$haveit"; then
10393 if test -d "$additional_libdir"; then
10394 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
10398 for x
in $LDFLAGS $LTLIBIPT; do
10400 acl_save_prefix
="$prefix"
10401 prefix
="$acl_final_prefix"
10402 acl_save_exec_prefix
="$exec_prefix"
10403 exec_prefix
="$acl_final_exec_prefix"
10405 exec_prefix
="$acl_save_exec_prefix"
10406 prefix
="$acl_save_prefix"
10408 if test "X$x" = "X-L$additional_libdir"; then
10413 if test -z "$haveit"; then
10414 if test -d "$additional_libdir"; then
10415 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
10422 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10423 if test "$enable_rpath" != no
; then
10425 for x
in $rpathdirs; do
10426 if test "X$x" = "X$dir"; then
10431 if test -z "$haveit"; then
10432 rpathdirs
="$rpathdirs $dir"
10435 for x
in $ltrpathdirs; do
10436 if test "X$x" = "X$dir"; then
10441 if test -z "$haveit"; then
10442 ltrpathdirs
="$ltrpathdirs $dir"
10447 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10450 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10453 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
10454 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
10460 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
10461 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
10467 if test "X$rpathdirs" != "X"; then
10468 if test -n "$hardcode_libdir_separator"; then
10470 for found_dir
in $rpathdirs; do
10471 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10473 acl_save_libdir
="$libdir"
10475 eval flag
=\"$hardcode_libdir_flag_spec\"
10476 libdir
="$acl_save_libdir"
10477 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
10479 for found_dir
in $rpathdirs; do
10480 acl_save_libdir
="$libdir"
10481 libdir
="$found_dir"
10482 eval flag
=\"$hardcode_libdir_flag_spec\"
10483 libdir
="$acl_save_libdir"
10484 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
10488 if test "X$ltrpathdirs" != "X"; then
10489 for found_dir
in $ltrpathdirs; do
10490 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
10495 ac_save_CPPFLAGS
="$CPPFLAGS"
10497 for element
in $INCIPT; do
10499 for x
in $CPPFLAGS; do
10501 acl_save_prefix
="$prefix"
10502 prefix
="$acl_final_prefix"
10503 acl_save_exec_prefix
="$exec_prefix"
10504 exec_prefix
="$acl_final_exec_prefix"
10506 exec_prefix
="$acl_save_exec_prefix"
10507 prefix
="$acl_save_prefix"
10509 if test "X$x" = "X$element"; then
10514 if test -z "$haveit"; then
10515 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
10521 $as_echo_n "checking for libipt... " >&6; }
10522 if test "${ac_cv_libipt+set}" = set; then :
10523 $as_echo_n "(cached) " >&6
10526 ac_save_LIBS
="$LIBS"
10527 LIBS
="$LIBS $LIBIPT"
10528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10529 /* end confdefs.h. */
10530 #include "intel-pt.h"
10534 pt_insn_alloc_decoder (0);
10539 if ac_fn_c_try_link
"$LINENO"; then :
10544 rm -f core conftest.err conftest.
$ac_objext \
10545 conftest
$ac_exeext conftest.
$ac_ext
10546 LIBS
="$ac_save_LIBS"
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
10550 $as_echo "$ac_cv_libipt" >&6; }
10551 if test "$ac_cv_libipt" = yes; then
10554 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
10557 $as_echo_n "checking how to link with libipt... " >&6; }
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
10559 $as_echo "$LIBIPT" >&6; }
10562 CPPFLAGS
="$ac_save_CPPFLAGS"
10572 if test "$HAVE_LIBIPT" != yes; then
10573 if test "$with_intel_pt" = yes; then
10574 as_fn_error
"libipt is missing or unusable" "$LINENO" 5
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
10577 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
10582 # ------------------------- #
10583 # Checks for header files. #
10584 # ------------------------- #
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10587 $as_echo_n "checking for ANSI C header files... " >&6; }
10588 if test "${ac_cv_header_stdc+set}" = set; then :
10589 $as_echo_n "(cached) " >&6
10591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10592 /* end confdefs.h. */
10593 #include <stdlib.h>
10594 #include <stdarg.h>
10595 #include <string.h>
10606 if ac_fn_c_try_compile
"$LINENO"; then :
10607 ac_cv_header_stdc
=yes
10609 ac_cv_header_stdc
=no
10611 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10613 if test $ac_cv_header_stdc = yes; then
10614 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10616 /* end confdefs.h. */
10617 #include <string.h>
10620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10621 $EGREP "memchr" >/dev
/null
2>&1; then :
10624 ac_cv_header_stdc
=no
10630 if test $ac_cv_header_stdc = yes; then
10631 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10633 /* end confdefs.h. */
10634 #include <stdlib.h>
10637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10638 $EGREP "free" >/dev
/null
2>&1; then :
10641 ac_cv_header_stdc
=no
10647 if test $ac_cv_header_stdc = yes; then
10648 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10649 if test "$cross_compiling" = yes; then :
10652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10653 /* end confdefs.h. */
10655 #include <stdlib.h>
10656 #if ((' ' & 0x0FF) == 0x020)
10657 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10658 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10660 # define ISLOWER(c) \
10661 (('a' <= (c) && (c) <= 'i') \
10662 || ('j' <= (c) && (c) <= 'r') \
10663 || ('s' <= (c) && (c) <= 'z'))
10664 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10667 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10672 for (i = 0; i < 256; i++)
10673 if (XOR (islower (i), ISLOWER (i))
10674 || toupper (i) != TOUPPER (i))
10679 if ac_fn_c_try_run
"$LINENO"; then :
10682 ac_cv_header_stdc
=no
10684 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10685 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10691 $as_echo "$ac_cv_header_stdc" >&6; }
10692 if test $ac_cv_header_stdc = yes; then
10694 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10698 # elf_hp.h is for HP/UX 64-bit shared library support.
10699 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
10702 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
10703 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
10704 sys
/reg.h sys
/debugreg.h sys
/select.h sys
/syscall.h \
10705 termios.h termio.h \
10709 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10710 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10711 eval as_val
=\$
$as_ac_Header
10712 if test "x$as_val" = x
""yes; then :
10713 cat >>confdefs.h
<<_ACEOF
10714 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10721 for ac_header
in sys
/proc.h
10723 ac_fn_c_check_header_compile
"$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
10724 # include <sys/param.h>
10728 if test "x$ac_cv_header_sys_proc_h" = x
""yes; then :
10729 cat >>confdefs.h
<<_ACEOF
10730 #define HAVE_SYS_PROC_H 1
10737 for ac_header
in sys
/user.h
10739 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
10740 # include <sys/param.h>
10744 if test "x$ac_cv_header_sys_user_h" = x
""yes; then :
10745 cat >>confdefs.h
<<_ACEOF
10746 #define HAVE_SYS_USER_H 1
10754 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
10755 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
10756 # think that we don't have <curses.h> if we're using GCC.
10759 if test "$GCC" = yes; then
10761 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
10765 for ac_header
in curses.h cursesX.h ncurses.h ncurses
/ncurses.h ncurses
/term.h
10767 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10768 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10769 eval as_val
=\$
$as_ac_Header
10770 if test "x$as_val" = x
""yes; then :
10771 cat >>confdefs.h
<<_ACEOF
10772 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10779 for ac_header
in term.h
10781 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
10782 # include <curses.h>
10786 if test "x$ac_cv_header_term_h" = x
""yes; then :
10787 cat >>confdefs.h
<<_ACEOF
10788 #define HAVE_TERM_H 1
10796 # ------------------------- #
10797 # Checks for declarations. #
10798 # ------------------------- #
10801 # Check for presence and size of long long.
10802 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
10803 if test "x$ac_cv_type_long_long" = x
""yes; then :
10805 cat >>confdefs.h
<<_ACEOF
10806 #define HAVE_LONG_LONG 1
10809 # The cast to long int works around a bug in the HP C Compiler
10810 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10811 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10812 # This bug is HP SR number 8606223364.
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10814 $as_echo_n "checking size of long long... " >&6; }
10815 if test "${ac_cv_sizeof_long_long+set}" = set; then :
10816 $as_echo_n "(cached) " >&6
10818 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10821 if test "$ac_cv_type_long_long" = yes; then
10822 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10824 { as_fn_set_status
77
10825 as_fn_error
"cannot compute sizeof (long long)
10826 See \`config.log' for more details." "$LINENO" 5; }; }
10828 ac_cv_sizeof_long_long
=0
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10834 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10838 cat >>confdefs.h
<<_ACEOF
10839 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10846 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
10847 if test "x$ac_cv_have_decl_basename_char_p_" = x
""yes; then :
10853 cat >>confdefs.h
<<_ACEOF
10854 #define HAVE_DECL_BASENAME $ac_have_decl
10856 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
10857 if test "x$ac_cv_have_decl_ffs" = x
""yes; then :
10863 cat >>confdefs.h
<<_ACEOF
10864 #define HAVE_DECL_FFS $ac_have_decl
10866 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
10867 if test "x$ac_cv_have_decl_asprintf" = x
""yes; then :
10873 cat >>confdefs.h
<<_ACEOF
10874 #define HAVE_DECL_ASPRINTF $ac_have_decl
10876 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
10877 if test "x$ac_cv_have_decl_vasprintf" = x
""yes; then :
10883 cat >>confdefs.h
<<_ACEOF
10884 #define HAVE_DECL_VASPRINTF $ac_have_decl
10886 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
10887 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
10893 cat >>confdefs.h
<<_ACEOF
10894 #define HAVE_DECL_SNPRINTF $ac_have_decl
10896 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
10897 if test "x$ac_cv_have_decl_vsnprintf" = x
""yes; then :
10903 cat >>confdefs.h
<<_ACEOF
10904 #define HAVE_DECL_VSNPRINTF $ac_have_decl
10907 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
10908 if test "x$ac_cv_have_decl_strtol" = x
""yes; then :
10914 cat >>confdefs.h
<<_ACEOF
10915 #define HAVE_DECL_STRTOL $ac_have_decl
10917 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
10918 if test "x$ac_cv_have_decl_strtoul" = x
""yes; then :
10924 cat >>confdefs.h
<<_ACEOF
10925 #define HAVE_DECL_STRTOUL $ac_have_decl
10927 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
10928 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
10934 cat >>confdefs.h
<<_ACEOF
10935 #define HAVE_DECL_STRTOLL $ac_have_decl
10937 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
10938 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
10944 cat >>confdefs.h
<<_ACEOF
10945 #define HAVE_DECL_STRTOULL $ac_have_decl
10948 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
10949 if test "x$ac_cv_have_decl_strverscmp" = x
""yes; then :
10955 cat >>confdefs.h
<<_ACEOF
10956 #define HAVE_DECL_STRVERSCMP $ac_have_decl
10961 ac_fn_c_check_decl
"$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
10962 if test "x$ac_cv_have_decl_free" = x
""yes; then :
10968 cat >>confdefs.h
<<_ACEOF
10969 #define HAVE_DECL_FREE $ac_have_decl
10971 ac_fn_c_check_decl
"$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
10972 if test "x$ac_cv_have_decl_malloc" = x
""yes; then :
10978 cat >>confdefs.h
<<_ACEOF
10979 #define HAVE_DECL_MALLOC $ac_have_decl
10981 ac_fn_c_check_decl
"$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
10982 if test "x$ac_cv_have_decl_realloc" = x
""yes; then :
10988 cat >>confdefs.h
<<_ACEOF
10989 #define HAVE_DECL_REALLOC $ac_have_decl
10991 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
10992 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
10998 cat >>confdefs.h
<<_ACEOF
10999 #define HAVE_DECL_SNPRINTF $ac_have_decl
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11004 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11005 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
11006 $as_echo_n "(cached) " >&6
11008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11009 /* end confdefs.h. */
11010 #include <locale.h>
11019 if ac_fn_c_try_link
"$LINENO"; then :
11020 am_cv_val_LC_MESSAGES
=yes
11022 am_cv_val_LC_MESSAGES
=no
11024 rm -f core conftest.err conftest.
$ac_objext \
11025 conftest
$ac_exeext conftest.
$ac_ext
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11028 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11029 if test $am_cv_val_LC_MESSAGES = yes; then
11031 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11036 # ----------------------- #
11037 # Checks for structures. #
11038 # ----------------------- #
11040 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
11041 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then :
11043 cat >>confdefs.h
<<_ACEOF
11044 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11049 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
11050 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then :
11052 cat >>confdefs.h
<<_ACEOF
11053 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11060 # ------------------ #
11061 # Checks for types. #
11062 # ------------------ #
11064 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11065 #include <sys/socket.h>
11068 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
11070 cat >>confdefs.h
<<_ACEOF
11071 #define HAVE_SOCKLEN_T 1
11078 # ------------------------------------- #
11079 # Checks for compiler characteristics. #
11080 # ------------------------------------- #
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11083 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11084 if test "${ac_cv_c_const+set}" = set; then :
11085 $as_echo_n "(cached) " >&6
11087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11088 /* end confdefs.h. */
11093 /* FIXME: Include the comments suggested by Paul. */
11094 #ifndef __cplusplus
11095 /* Ultrix mips cc rejects this. */
11096 typedef int charset[2];
11098 /* SunOS 4.1.1 cc rejects this. */
11099 char const *const *pcpcc;
11101 /* NEC SVR4.0.2 mips cc rejects this. */
11102 struct point {int x, y;};
11103 static struct point const zero = {0,0};
11104 /* AIX XL C 1.02.0.0 rejects this.
11105 It does not let you subtract one const X* pointer from another in
11106 an arm of an if-expression whose if-part is not a constant
11108 const char *g = "string";
11109 pcpcc = &g + (g ? g-g : 0);
11110 /* HPUX 7.0 cc rejects these. */
11112 ppc = (char**) pcpcc;
11113 pcpcc = (char const *const *) ppc;
11114 { /* SCO 3.2v4 cc rejects this. */
11116 char const *s = 0 ? (char *) 0 : (char const *) 0;
11121 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11122 int x[] = {25, 17};
11123 const int *foo = &x[0];
11126 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11127 typedef const int *iptr;
11131 { /* AIX XL C 1.02.0.0 rejects this saying
11132 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11133 struct s { int j; const int *ap[3]; };
11134 struct s *b; b->j = 5;
11136 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11137 const int foo = 10;
11138 if (!foo) return 0;
11140 return !cs[0] && !zero.x;
11147 if ac_fn_c_try_compile
"$LINENO"; then :
11152 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11155 $as_echo "$ac_cv_c_const" >&6; }
11156 if test $ac_cv_c_const = no
; then
11158 $as_echo "#define const /**/" >>confdefs.h
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11163 $as_echo_n "checking for inline... " >&6; }
11164 if test "${ac_cv_c_inline+set}" = set; then :
11165 $as_echo_n "(cached) " >&6
11168 for ac_kw
in inline __inline__ __inline
; do
11169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11170 /* end confdefs.h. */
11171 #ifndef __cplusplus
11173 static $ac_kw foo_t static_foo () {return 0; }
11174 $ac_kw foo_t foo () {return 0; }
11178 if ac_fn_c_try_compile
"$LINENO"; then :
11179 ac_cv_c_inline
=$ac_kw
11181 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11182 test "$ac_cv_c_inline" != no
&& break
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11187 $as_echo "$ac_cv_c_inline" >&6; }
11189 case $ac_cv_c_inline in
11192 case $ac_cv_c_inline in
11194 *) ac_val
=$ac_cv_c_inline;;
11196 cat >>confdefs.h
<<_ACEOF
11197 #ifndef __cplusplus
11198 #define inline $ac_val
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11205 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11206 if test "${ac_cv_c_bigendian+set}" = set; then :
11207 $as_echo_n "(cached) " >&6
11209 ac_cv_c_bigendian
=unknown
11210 # See if we're dealing with a universal compiler.
11211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11212 /* end confdefs.h. */
11213 #ifndef __APPLE_CC__
11214 not a universal capable compiler
11219 if ac_fn_c_try_compile
"$LINENO"; then :
11221 # Check for potential -arch flags. It is not universal unless
11222 # there are at least two -arch flags with different values.
11225 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11226 if test -n "$ac_prev"; then
11228 i?
86 | x86_64 | ppc | ppc64
)
11229 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
11232 ac_cv_c_bigendian
=universal
11238 elif test "x$ac_word" = "x-arch"; then
11243 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11244 if test $ac_cv_c_bigendian = unknown
; then
11245 # See if sys/param.h defines the BYTE_ORDER macro.
11246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11247 /* end confdefs.h. */
11248 #include <sys/types.h>
11249 #include <sys/param.h>
11254 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11255 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11257 bogus endian macros
11264 if ac_fn_c_try_compile
"$LINENO"; then :
11265 # It does; now see whether it defined to BIG_ENDIAN or not.
11266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11267 /* end confdefs.h. */
11268 #include <sys/types.h>
11269 #include <sys/param.h>
11274 #if BYTE_ORDER != BIG_ENDIAN
11282 if ac_fn_c_try_compile
"$LINENO"; then :
11283 ac_cv_c_bigendian
=yes
11285 ac_cv_c_bigendian
=no
11287 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11291 if test $ac_cv_c_bigendian = unknown
; then
11292 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11294 /* end confdefs.h. */
11295 #include <limits.h>
11300 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11301 bogus endian macros
11308 if ac_fn_c_try_compile
"$LINENO"; then :
11309 # It does; now see whether it defined to _BIG_ENDIAN or not.
11310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11311 /* end confdefs.h. */
11312 #include <limits.h>
11317 #ifndef _BIG_ENDIAN
11325 if ac_fn_c_try_compile
"$LINENO"; then :
11326 ac_cv_c_bigendian
=yes
11328 ac_cv_c_bigendian
=no
11330 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11334 if test $ac_cv_c_bigendian = unknown
; then
11335 # Compile a test program.
11336 if test "$cross_compiling" = yes; then :
11337 # Try to guess by grepping values from an object file.
11338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11339 /* end confdefs.h. */
11340 short int ascii_mm[] =
11341 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11342 short int ascii_ii[] =
11343 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11344 int use_ascii (int i) {
11345 return ascii_mm[i] + ascii_ii[i];
11347 short int ebcdic_ii[] =
11348 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11349 short int ebcdic_mm[] =
11350 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11351 int use_ebcdic (int i) {
11352 return ebcdic_mm[i] + ebcdic_ii[i];
11359 return use_ascii (foo) == use_ebcdic (foo);
11364 if ac_fn_c_try_compile
"$LINENO"; then :
11365 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
11366 ac_cv_c_bigendian
=yes
11368 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
11369 if test "$ac_cv_c_bigendian" = unknown
; then
11370 ac_cv_c_bigendian
=no
11372 # finding both strings is unlikely to happen, but who knows?
11373 ac_cv_c_bigendian
=unknown
11377 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11380 /* end confdefs.h. */
11381 $ac_includes_default
11386 /* Are we little or big endian? From Harbison&Steele. */
11390 char c[sizeof (long int)];
11393 return u.c[sizeof (long int) - 1] == 1;
11399 if ac_fn_c_try_run
"$LINENO"; then :
11400 ac_cv_c_bigendian
=no
11402 ac_cv_c_bigendian
=yes
11404 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11405 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11411 $as_echo "$ac_cv_c_bigendian" >&6; }
11412 case $ac_cv_c_bigendian in #(
11414 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11420 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11424 as_fn_error
"unknown endianness
11425 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11429 # ------------------------------ #
11430 # Checks for library functions. #
11431 # ------------------------------ #
11433 for ac_header
in stdlib.h unistd.h
11435 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11436 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11437 eval as_val
=\$
$as_ac_Header
11438 if test "x$as_val" = x
""yes; then :
11439 cat >>confdefs.h
<<_ACEOF
11440 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11447 for ac_func
in getpagesize
11449 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11450 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
11451 cat >>confdefs.h
<<_ACEOF
11452 #define HAVE_GETPAGESIZE 1
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
11459 $as_echo_n "checking for working mmap... " >&6; }
11460 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
11461 $as_echo_n "(cached) " >&6
11463 if test "$cross_compiling" = yes; then :
11464 ac_cv_func_mmap_fixed_mapped
=no
11466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11467 /* end confdefs.h. */
11468 $ac_includes_default
11469 /* malloc might have been renamed as rpl_malloc. */
11472 /* Thanks to Mike Haertel and Jim Avera for this test.
11473 Here is a matrix of mmap possibilities:
11474 mmap private not fixed
11475 mmap private fixed at somewhere currently unmapped
11476 mmap private fixed at somewhere already mapped
11477 mmap shared not fixed
11478 mmap shared fixed at somewhere currently unmapped
11479 mmap shared fixed at somewhere already mapped
11480 For private mappings, we should verify that changes cannot be read()
11481 back from the file, nor mmap's back from the file at a different
11482 address. (There have been systems where private was not correctly
11483 implemented like the infamous i386 svr4.0, and systems where the
11484 VM page cache was not coherent with the file system buffer cache
11485 like early versions of FreeBSD and possibly contemporary NetBSD.)
11486 For shared mappings, we should conversely verify that changes get
11487 propagated back to all the places they're supposed to be.
11489 Grep wants private fixed already mapped.
11490 The main things grep needs to know about mmap are:
11491 * does it exist and is it safe to write into the mmap'd area
11492 * how to use it (BSD variants) */
11495 #include <sys/mman.h>
11497 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11501 /* This mess was copied from the GNU getpagesize.h. */
11502 #ifndef HAVE_GETPAGESIZE
11503 /* Assume that all systems that can run configure have sys/param.h. */
11504 # ifndef HAVE_SYS_PARAM_H
11505 # define HAVE_SYS_PARAM_H 1
11508 # ifdef _SC_PAGESIZE
11509 # define getpagesize() sysconf(_SC_PAGESIZE)
11510 # else /* no _SC_PAGESIZE */
11511 # ifdef HAVE_SYS_PARAM_H
11512 # include <sys/param.h>
11513 # ifdef EXEC_PAGESIZE
11514 # define getpagesize() EXEC_PAGESIZE
11515 # else /* no EXEC_PAGESIZE */
11517 # define getpagesize() NBPG * CLSIZE
11520 # endif /* no CLSIZE */
11521 # else /* no NBPG */
11523 # define getpagesize() NBPC
11524 # else /* no NBPC */
11526 # define getpagesize() PAGESIZE
11527 # endif /* PAGESIZE */
11528 # endif /* no NBPC */
11529 # endif /* no NBPG */
11530 # endif /* no EXEC_PAGESIZE */
11531 # else /* no HAVE_SYS_PARAM_H */
11532 # define getpagesize() 8192 /* punt totally */
11533 # endif /* no HAVE_SYS_PARAM_H */
11534 # endif /* no _SC_PAGESIZE */
11536 #endif /* no HAVE_GETPAGESIZE */
11541 char *data, *data2, *data3;
11545 pagesize = getpagesize ();
11547 /* First, make a file with some known garbage in it. */
11548 data = (char *) malloc (pagesize);
11551 for (i = 0; i < pagesize; ++i)
11552 *(data + i) = rand ();
11554 fd = creat ("conftest.mmap", 0600);
11557 if (write (fd, data, pagesize) != pagesize)
11561 /* Next, try to mmap the file at a fixed address which already has
11562 something else allocated at it. If we can, also make sure that
11563 we see the same garbage. */
11564 fd = open ("conftest.mmap", O_RDWR);
11567 data2 = (char *) malloc (2 * pagesize);
11570 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
11571 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11572 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11574 for (i = 0; i < pagesize; ++i)
11575 if (*(data + i) != *(data2 + i))
11578 /* Finally, make sure that changes to the mapped area do not
11579 percolate back to the file as seen by read(). (This is a bug on
11580 some variants of i386 svr4.0.) */
11581 for (i = 0; i < pagesize; ++i)
11582 *(data2 + i) = *(data2 + i) + 1;
11583 data3 = (char *) malloc (pagesize);
11586 if (read (fd, data3, pagesize) != pagesize)
11588 for (i = 0; i < pagesize; ++i)
11589 if (*(data + i) != *(data3 + i))
11595 if ac_fn_c_try_run
"$LINENO"; then :
11596 ac_cv_func_mmap_fixed_mapped
=yes
11598 ac_cv_func_mmap_fixed_mapped
=no
11600 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11601 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
11606 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11607 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11609 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
11612 rm -f conftest.mmap
11614 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11615 if test "x$ac_cv_type_pid_t" = x
""yes; then :
11619 cat >>confdefs.h
<<_ACEOF
11625 for ac_header
in vfork.h
11627 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
11628 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
11629 cat >>confdefs.h
<<_ACEOF
11630 #define HAVE_VFORK_H 1
11637 for ac_func
in fork vfork
11639 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11640 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11641 eval as_val
=\$
$as_ac_var
11642 if test "x$as_val" = x
""yes; then :
11643 cat >>confdefs.h
<<_ACEOF
11644 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11650 if test "x$ac_cv_func_fork" = xyes
; then
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11652 $as_echo_n "checking for working fork... " >&6; }
11653 if test "${ac_cv_func_fork_works+set}" = set; then :
11654 $as_echo_n "(cached) " >&6
11656 if test "$cross_compiling" = yes; then :
11657 ac_cv_func_fork_works
=cross
11659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11660 /* end confdefs.h. */
11661 $ac_includes_default
11666 /* By Ruediger Kuhlmann. */
11667 return fork () < 0;
11673 if ac_fn_c_try_run
"$LINENO"; then :
11674 ac_cv_func_fork_works
=yes
11676 ac_cv_func_fork_works
=no
11678 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11679 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11684 $as_echo "$ac_cv_func_fork_works" >&6; }
11687 ac_cv_func_fork_works
=$ac_cv_func_fork
11689 if test "x$ac_cv_func_fork_works" = xcross
; then
11691 *-*-amigaos* |
*-*-msdosdjgpp*)
11692 # Override, as these systems have only a dummy fork() stub
11693 ac_cv_func_fork_works
=no
11696 ac_cv_func_fork_works
=yes
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11700 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11702 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11703 if test "x$ac_cv_func_vfork" = xyes
; then
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11705 $as_echo_n "checking for working vfork... " >&6; }
11706 if test "${ac_cv_func_vfork_works+set}" = set; then :
11707 $as_echo_n "(cached) " >&6
11709 if test "$cross_compiling" = yes; then :
11710 ac_cv_func_vfork_works
=cross
11712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11713 /* end confdefs.h. */
11714 /* Thanks to Paul Eggert for this test. */
11715 $ac_includes_default
11716 #include <sys/wait.h>
11717 #ifdef HAVE_VFORK_H
11718 # include <vfork.h>
11720 /* On some sparc systems, changes by the child to local and incoming
11721 argument registers are propagated back to the parent. The compiler
11722 is told about this with #include <vfork.h>, but some compilers
11723 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11724 static variable whose address is put into a register that is
11725 clobbered by the vfork. */
11728 sparc_address_test (int arg)
11730 sparc_address_test (arg) int arg;
11733 static pid_t child;
11751 pid_t parent = getpid ();
11754 sparc_address_test (0);
11759 /* Here is another test for sparc vfork register problems. This
11760 test uses lots of local variables, at least as many local
11761 variables as main has allocated so far including compiler
11762 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11763 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11764 reuse the register of parent for one of the local variables,
11765 since it will think that parent can't possibly be used any more
11766 in this routine. Assigning to the local variable will thus
11767 munge parent in the parent process. */
11769 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11770 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11771 /* Convince the compiler that p..p7 are live; otherwise, it might
11772 use the same hardware register for all 8 local variables. */
11773 if (p != p1 || p != p2 || p != p3 || p != p4
11774 || p != p5 || p != p6 || p != p7)
11777 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11778 from child file descriptors. If the child closes a descriptor
11779 before it execs or exits, this munges the parent's descriptor
11780 as well. Test for this by closing stdout in the child. */
11781 _exit(close(fileno(stdout)) != 0);
11786 while (wait(&status) != child)
11789 /* Was there some problem with vforking? */
11792 /* Did the child fail? (This shouldn't happen.) */
11795 /* Did the vfork/compiler bug occur? */
11796 || parent != getpid()
11798 /* Did the file descriptor bug occur? */
11799 || fstat(fileno(stdout), &st) != 0
11804 if ac_fn_c_try_run
"$LINENO"; then :
11805 ac_cv_func_vfork_works
=yes
11807 ac_cv_func_vfork_works
=no
11809 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11810 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11815 $as_echo "$ac_cv_func_vfork_works" >&6; }
11818 if test "x$ac_cv_func_fork_works" = xcross
; then
11819 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11821 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11824 if test "x$ac_cv_func_vfork_works" = xyes
; then
11826 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11830 $as_echo "#define vfork fork" >>confdefs.h
11833 if test "x$ac_cv_func_fork_works" = xyes
; then
11835 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11839 for ac_func
in getauxval getrusage getuid getgid \
11840 pipe poll pread pread64 pwrite resize_term \
11841 sbrk setpgid setpgrp setsid \
11842 sigaction sigprocmask sigsetmask socketpair \
11843 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
11844 setrlimit getrlimit posix_madvise waitpid \
11845 ptrace64 sigaltstack mkdtemp setns
11847 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11848 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11849 eval as_val
=\$
$as_ac_var
11850 if test "x$as_val" = x
""yes; then :
11851 cat >>confdefs.h
<<_ACEOF
11852 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11860 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11861 if test "${am_cv_langinfo_codeset+set}" = set; then :
11862 $as_echo_n "(cached) " >&6
11864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11865 /* end confdefs.h. */
11866 #include <langinfo.h>
11870 char* cs = nl_langinfo(CODESET);
11875 if ac_fn_c_try_link
"$LINENO"; then :
11876 am_cv_langinfo_codeset
=yes
11878 am_cv_langinfo_codeset
=no
11880 rm -f core conftest.err conftest.
$ac_objext \
11881 conftest
$ac_exeext conftest.
$ac_ext
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11885 $as_echo "$am_cv_langinfo_codeset" >&6; }
11886 if test $am_cv_langinfo_codeset = yes; then
11888 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11894 $as_echo_n "checking for ANSI C header files... " >&6; }
11895 if test "${ac_cv_header_stdc+set}" = set; then :
11896 $as_echo_n "(cached) " >&6
11898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11899 /* end confdefs.h. */
11900 #include <stdlib.h>
11901 #include <stdarg.h>
11902 #include <string.h>
11913 if ac_fn_c_try_compile
"$LINENO"; then :
11914 ac_cv_header_stdc
=yes
11916 ac_cv_header_stdc
=no
11918 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11920 if test $ac_cv_header_stdc = yes; then
11921 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11923 /* end confdefs.h. */
11924 #include <string.h>
11927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11928 $EGREP "memchr" >/dev
/null
2>&1; then :
11931 ac_cv_header_stdc
=no
11937 if test $ac_cv_header_stdc = yes; then
11938 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11940 /* end confdefs.h. */
11941 #include <stdlib.h>
11944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11945 $EGREP "free" >/dev
/null
2>&1; then :
11948 ac_cv_header_stdc
=no
11954 if test $ac_cv_header_stdc = yes; then
11955 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11956 if test "$cross_compiling" = yes; then :
11959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11960 /* end confdefs.h. */
11962 #include <stdlib.h>
11963 #if ((' ' & 0x0FF) == 0x020)
11964 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11965 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11967 # define ISLOWER(c) \
11968 (('a' <= (c) && (c) <= 'i') \
11969 || ('j' <= (c) && (c) <= 'r') \
11970 || ('s' <= (c) && (c) <= 'z'))
11971 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11974 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11979 for (i = 0; i < 256; i++)
11980 if (XOR (islower (i), ISLOWER (i))
11981 || toupper (i) != TOUPPER (i))
11986 if ac_fn_c_try_run
"$LINENO"; then :
11989 ac_cv_header_stdc
=no
11991 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11992 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11998 $as_echo "$ac_cv_header_stdc" >&6; }
11999 if test $ac_cv_header_stdc = yes; then
12001 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12005 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12006 # for constant arguments. Useless!
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12008 $as_echo_n "checking for working alloca.h... " >&6; }
12009 if test "${ac_cv_working_alloca_h+set}" = set; then :
12010 $as_echo_n "(cached) " >&6
12012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12013 /* end confdefs.h. */
12014 #include <alloca.h>
12018 char *p = (char *) alloca (2 * sizeof (int));
12024 if ac_fn_c_try_link
"$LINENO"; then :
12025 ac_cv_working_alloca_h
=yes
12027 ac_cv_working_alloca_h
=no
12029 rm -f core conftest.err conftest.
$ac_objext \
12030 conftest
$ac_exeext conftest.
$ac_ext
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12033 $as_echo "$ac_cv_working_alloca_h" >&6; }
12034 if test $ac_cv_working_alloca_h = yes; then
12036 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12041 $as_echo_n "checking for alloca... " >&6; }
12042 if test "${ac_cv_func_alloca_works+set}" = set; then :
12043 $as_echo_n "(cached) " >&6
12045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12046 /* end confdefs.h. */
12048 # define alloca __builtin_alloca
12051 # include <malloc.h>
12052 # define alloca _alloca
12054 # ifdef HAVE_ALLOCA_H
12055 # include <alloca.h>
12060 # ifndef alloca /* predefined by HP cc +Olibcalls */
12071 char *p = (char *) alloca (1);
12077 if ac_fn_c_try_link
"$LINENO"; then :
12078 ac_cv_func_alloca_works
=yes
12080 ac_cv_func_alloca_works
=no
12082 rm -f core conftest.err conftest.
$ac_objext \
12083 conftest
$ac_exeext conftest.
$ac_ext
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12086 $as_echo "$ac_cv_func_alloca_works" >&6; }
12088 if test $ac_cv_func_alloca_works = yes; then
12090 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12093 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12094 # that cause trouble. Some versions do not even contain alloca or
12095 # contain a buggy version. If you still want to use their alloca,
12096 # use ar to extract alloca.o from them instead of compiling alloca.c.
12098 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
12100 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12104 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12105 if test "${ac_cv_os_cray+set}" = set; then :
12106 $as_echo_n "(cached) " >&6
12108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12109 /* end confdefs.h. */
12110 #if defined CRAY && ! defined CRAY2
12117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12118 $EGREP "webecray" >/dev
/null
2>&1; then :
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12127 $as_echo "$ac_cv_os_cray" >&6; }
12128 if test $ac_cv_os_cray = yes; then
12129 for ac_func
in _getb67 GETB67 getb67
; do
12130 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12131 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12132 eval as_val
=\$
$as_ac_var
12133 if test "x$as_val" = x
""yes; then :
12135 cat >>confdefs.h
<<_ACEOF
12136 #define CRAY_STACKSEG_END $ac_func
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12146 $as_echo_n "checking stack direction for C alloca... " >&6; }
12147 if test "${ac_cv_c_stack_direction+set}" = set; then :
12148 $as_echo_n "(cached) " >&6
12150 if test "$cross_compiling" = yes; then :
12151 ac_cv_c_stack_direction
=0
12153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12154 /* end confdefs.h. */
12155 $ac_includes_default
12157 find_stack_direction ()
12159 static char *addr = 0;
12164 return find_stack_direction ();
12167 return (&dummy > addr) ? 1 : -1;
12173 return find_stack_direction () < 0;
12176 if ac_fn_c_try_run
"$LINENO"; then :
12177 ac_cv_c_stack_direction
=1
12179 ac_cv_c_stack_direction
=-1
12181 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12182 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12187 $as_echo "$ac_cv_c_stack_direction" >&6; }
12188 cat >>confdefs.h
<<_ACEOF
12189 #define STACK_DIRECTION $ac_cv_c_stack_direction
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12198 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12199 if test "${am_cv_langinfo_codeset+set}" = set; then :
12200 $as_echo_n "(cached) " >&6
12202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12203 /* end confdefs.h. */
12204 #include <langinfo.h>
12208 char* cs = nl_langinfo(CODESET);
12213 if ac_fn_c_try_link
"$LINENO"; then :
12214 am_cv_langinfo_codeset
=yes
12216 am_cv_langinfo_codeset
=no
12218 rm -f core conftest.err conftest.
$ac_objext \
12219 conftest
$ac_exeext conftest.
$ac_ext
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12223 $as_echo "$am_cv_langinfo_codeset" >&6; }
12224 if test $am_cv_langinfo_codeset = yes; then
12226 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12231 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
12233 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12234 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12235 eval as_val
=\$
$as_ac_Header
12236 if test "x$as_val" = x
""yes; then :
12237 cat >>confdefs.h
<<_ACEOF
12238 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12246 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair
12248 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12249 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12250 eval as_val
=\$
$as_ac_var
12251 if test "x$as_val" = x
""yes; then :
12252 cat >>confdefs.h
<<_ACEOF
12253 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12260 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
12261 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
12267 cat >>confdefs.h
<<_ACEOF
12268 #define HAVE_DECL_STRERROR $ac_have_decl
12270 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
12271 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
12277 cat >>confdefs.h
<<_ACEOF
12278 #define HAVE_DECL_STRSTR $ac_have_decl
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
12283 $as_echo_n "checking for sigsetjmp... " >&6; }
12284 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
12285 $as_echo_n "(cached) " >&6
12287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12288 /* end confdefs.h. */
12290 #include <setjmp.h>
12295 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
12300 if ac_fn_c_try_compile
"$LINENO"; then :
12301 gdb_cv_func_sigsetjmp
=yes
12303 gdb_cv_func_sigsetjmp
=no
12305 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
12308 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
12309 if test $gdb_cv_func_sigsetjmp = yes; then
12311 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
12316 # Check the return and argument types of ptrace.
12319 for ac_header
in sys
/ptrace.h ptrace.h
12321 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12322 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12323 eval as_val
=\$
$as_ac_Header
12324 if test "x$as_val" = x
""yes; then :
12325 cat >>confdefs.h
<<_ACEOF
12326 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12334 gdb_ptrace_headers
='
12335 #include <sys/types.h>
12336 #if HAVE_SYS_PTRACE_H
12337 # include <sys/ptrace.h>
12340 # include <unistd.h>
12343 # There is no point in checking if we don't have a prototype.
12344 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
12346 if test "x$ac_cv_have_decl_ptrace" = x
""yes; then :
12352 cat >>confdefs.h
<<_ACEOF
12353 #define HAVE_DECL_PTRACE $ac_have_decl
12355 if test $ac_have_decl = 1; then :
12359 : ${gdb_cv_func_ptrace_ret='int'}
12360 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12364 # Check return type. Varargs (used on GNU/Linux) conflict with the
12365 # empty argument list, so check for that explicitly.
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
12367 $as_echo_n "checking return type of ptrace... " >&6; }
12368 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
12369 $as_echo_n "(cached) " >&6
12371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12372 /* end confdefs.h. */
12373 $gdb_ptrace_headers
12377 extern long ptrace (enum __ptrace_request, ...);
12382 if ac_fn_c_try_compile
"$LINENO"; then :
12383 gdb_cv_func_ptrace_ret
='long'
12385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12386 /* end confdefs.h. */
12387 $gdb_ptrace_headers
12391 extern int ptrace ();
12396 if ac_fn_c_try_compile
"$LINENO"; then :
12397 gdb_cv_func_ptrace_ret
='int'
12399 gdb_cv_func_ptrace_ret
='long'
12401 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
12406 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
12408 cat >>confdefs.h
<<_ACEOF
12409 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
12412 # Check argument types.
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
12414 $as_echo_n "checking types of arguments for ptrace... " >&6; }
12415 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
12416 $as_echo_n "(cached) " >&6
12419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12420 /* end confdefs.h. */
12421 $gdb_ptrace_headers
12425 extern long ptrace (enum __ptrace_request, ...);
12430 if ac_fn_c_try_compile
"$LINENO"; then :
12431 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
12434 for gdb_arg1
in 'int' 'long'; do
12435 for gdb_arg2
in 'pid_t' 'int' 'long'; do
12436 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
12437 for gdb_arg4
in 'int' 'long' 'void *'; do
12438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12439 /* end confdefs.h. */
12440 $gdb_ptrace_headers
12445 extern $gdb_cv_func_ptrace_ret
12446 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
12452 if ac_fn_c_try_compile
"$LINENO"; then :
12453 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
12456 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12457 for gdb_arg5
in 'int *' 'int' 'long'; do
12458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12459 /* end confdefs.h. */
12460 $gdb_ptrace_headers
12465 extern $gdb_cv_func_ptrace_ret
12466 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
12472 if ac_fn_c_try_compile
"$LINENO"; then :
12474 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
12477 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12483 # Provide a safe default value.
12484 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12487 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
12490 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
12491 ac_save_IFS
=$IFS; IFS
=','
12492 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
12496 cat >>confdefs.h
<<_ACEOF
12497 #define PTRACE_TYPE_ARG1 $1
12501 cat >>confdefs.h
<<_ACEOF
12502 #define PTRACE_TYPE_ARG3 $3
12506 cat >>confdefs.h
<<_ACEOF
12507 #define PTRACE_TYPE_ARG4 $4
12510 if test -n "$5"; then
12512 cat >>confdefs.h
<<_ACEOF
12513 #define PTRACE_TYPE_ARG5 $5
12519 if test "$cross_compiling" = no
; then
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12521 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12522 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12523 $as_echo_n "(cached) " >&6
12525 if test "$cross_compiling" = yes; then :
12526 as_fn_error
"cannot check setpgrp when cross compiling" "$LINENO" 5
12528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12529 /* end confdefs.h. */
12530 $ac_includes_default
12534 /* If this system has a BSD-style setpgrp which takes arguments,
12535 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
12536 exit successfully. */
12537 return setpgrp (1,1) != -1;
12542 if ac_fn_c_try_run
"$LINENO"; then :
12543 ac_cv_func_setpgrp_void
=no
12545 ac_cv_func_setpgrp_void
=yes
12547 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12548 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12553 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12554 if test $ac_cv_func_setpgrp_void = yes; then
12556 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12562 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12563 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12564 $as_echo_n "(cached) " >&6
12566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12567 /* end confdefs.h. */
12569 #include <unistd.h>
12575 if (setpgrp(1,1) == -1)
12584 if ac_fn_c_try_compile
"$LINENO"; then :
12585 ac_cv_func_setpgrp_void
=no
12587 ac_cv_func_setpgrp_void
=yes
12589 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12592 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12593 if test $ac_cv_func_setpgrp_void = yes; then
12594 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12599 # Assume we'll default to using the included libiberty regex.
12600 gdb_use_included_regex
=yes
12602 # However, if the system regex is GNU regex, then default to *not*
12603 # using the included regex.
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
12605 $as_echo_n "checking for GNU regex... " >&6; }
12606 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
12607 $as_echo_n "(cached) " >&6
12609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12610 /* end confdefs.h. */
12611 #include <gnu-versions.h>
12615 #define REGEX_INTERFACE_VERSION 1
12616 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
12617 # error "Version mismatch"
12623 if ac_fn_c_try_compile
"$LINENO"; then :
12624 gdb_cv_have_gnu_regex
=yes
12626 gdb_cv_have_gnu_regex
=no
12628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
12631 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
12632 if test $gdb_cv_have_gnu_regex = yes; then
12633 gdb_use_included_regex
=no
12637 # Check whether --with-included-regex was given.
12638 if test "${with_included_regex+set}" = set; then :
12639 withval
=$with_included_regex; gdb_with_regex
=$withval
12641 gdb_with_regex
=$gdb_use_included_regex
12644 if test "$gdb_with_regex" = yes; then
12646 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
12650 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
12651 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
12652 #include <sys/proc.h>
12655 if test "x$ac_cv_member_struct_thread_td_pcb" = x
""yes; then :
12657 cat >>confdefs.h
<<_ACEOF
12658 #define HAVE_STRUCT_THREAD_TD_PCB 1
12665 # See if <sys/lwp.h> defines `struct lwp`.
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
12667 $as_echo_n "checking for struct lwp... " >&6; }
12668 if test "${gdb_cv_struct_lwp+set}" = set; then :
12669 $as_echo_n "(cached) " >&6
12671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12672 /* end confdefs.h. */
12673 #include <sys/param.h>
12674 #include <sys/lwp.h>
12683 if ac_fn_c_try_compile
"$LINENO"; then :
12684 gdb_cv_struct_lwp
=yes
12686 gdb_cv_struct_lwp
=no
12688 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
12691 $as_echo "$gdb_cv_struct_lwp" >&6; }
12692 if test $gdb_cv_struct_lwp = yes; then
12694 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
12698 # See if <machine/reg.h> degines `struct reg'.
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
12700 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
12701 if test "${gdb_cv_struct_reg+set}" = set; then :
12702 $as_echo_n "(cached) " >&6
12704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12705 /* end confdefs.h. */
12706 #include <sys/types.h>
12707 #include <machine/reg.h>
12716 if ac_fn_c_try_compile
"$LINENO"; then :
12717 gdb_cv_struct_reg
=yes
12719 gdb_cv_struct_reg
=no
12721 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
12724 $as_echo "$gdb_cv_struct_reg" >&6; }
12725 if test $gdb_cv_struct_reg = yes; then
12727 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
12731 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
12732 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
12733 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
12734 #include <machine/reg.h>
12736 if test "x$ac_cv_member_struct_reg_r_fs" = x
""yes; then :
12738 cat >>confdefs.h
<<_ACEOF
12739 #define HAVE_STRUCT_REG_R_FS 1
12744 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
12745 #include <machine/reg.h>
12747 if test "x$ac_cv_member_struct_reg_r_gs" = x
""yes; then :
12749 cat >>confdefs.h
<<_ACEOF
12750 #define HAVE_STRUCT_REG_R_GS 1
12757 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
12758 # Older amd64 Linux's don't have the fs_base and gs_base members of
12759 # `struct user_regs_struct'.
12760 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>
12762 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = x
""yes; then :
12764 cat >>confdefs.h
<<_ACEOF
12765 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
12770 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>
12772 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = x
""yes; then :
12774 cat >>confdefs.h
<<_ACEOF
12775 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
12782 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
12784 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
12785 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
12786 $as_echo_n "(cached) " >&6
12788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12789 /* end confdefs.h. */
12790 #include <sys/ptrace.h>
12799 if ac_fn_c_try_compile
"$LINENO"; then :
12800 gdb_cv_have_ptrace_getregs
=yes
12802 gdb_cv_have_ptrace_getregs
=no
12804 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
12808 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
12809 if test $gdb_cv_have_ptrace_getregs = yes; then
12811 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
12815 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
12817 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
12818 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
12819 $as_echo_n "(cached) " >&6
12821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12822 /* end confdefs.h. */
12823 #include <sys/ptrace.h>
12832 if ac_fn_c_try_compile
"$LINENO"; then :
12833 gdb_cv_have_ptrace_getfpxregs
=yes
12835 gdb_cv_have_ptrace_getfpxregs
=no
12837 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
12841 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
12842 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
12844 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
12848 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
12850 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
12851 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
12852 $as_echo_n "(cached) " >&6
12854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12855 /* end confdefs.h. */
12856 #include <sys/types.h>
12857 #include <sys/ptrace.h>
12866 if ac_fn_c_try_compile
"$LINENO"; then :
12867 gdb_cv_have_pt_getdbregs
=yes
12869 gdb_cv_have_pt_getdbregs
=no
12871 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
12875 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
12876 if test $gdb_cv_have_pt_getdbregs = yes; then
12878 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
12882 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
12884 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
12885 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
12886 $as_echo_n "(cached) " >&6
12888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12889 /* end confdefs.h. */
12890 #include <sys/types.h>
12891 #include <sys/ptrace.h>
12900 if ac_fn_c_try_compile
"$LINENO"; then :
12901 gdb_cv_have_pt_getxmmregs
=yes
12903 gdb_cv_have_pt_getxmmregs
=no
12905 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
12909 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
12910 if test $gdb_cv_have_pt_getxmmregs = yes; then
12912 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
12916 # See if <sys/ptrace.h> supports LWP names on FreeBSD
12917 # Older FreeBSD versions don't have the pl_tdname member of
12918 # `struct ptrace_lwpinfo'.
12919 ac_fn_c_check_member
"$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
12921 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = x
""yes; then :
12923 cat >>confdefs.h
<<_ACEOF
12924 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
12931 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
12932 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
12934 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>
12936 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = x
""yes; then :
12938 cat >>confdefs.h
<<_ACEOF
12939 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
12946 # Detect which type of /proc is in use, such as for Solaris.
12948 if test "${target}" = "${host}"; then
12950 *-*-sysv4.2
* |
*-*-sysv5* )
12952 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
12955 *-*-solaris2.
[6789] |
*-*-solaris2.1
[0-9]*)
12957 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
12961 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
12963 $as_echo "#define _KMEMUSER 1" >>confdefs.h
12969 if test "$ac_cv_header_sys_procfs_h" = yes; then
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
12971 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
12972 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
12973 $as_echo_n "(cached) " >&6
12975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12976 /* end confdefs.h. */
12979 /* Needed for new procfs interface on sparc-solaris. */
12980 #define _STRUCTURED_PROC 1
12981 #include <sys/procfs.h>
12990 if ac_fn_c_try_compile
"$LINENO"; then :
12991 bfd_cv_have_sys_procfs_type_gregset_t
=yes
12993 bfd_cv_have_sys_procfs_type_gregset_t
=no
12996 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12999 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
13001 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
13005 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
13008 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
13009 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
13010 $as_echo_n "(cached) " >&6
13012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13013 /* end confdefs.h. */
13016 /* Needed for new procfs interface on sparc-solaris. */
13017 #define _STRUCTURED_PROC 1
13018 #include <sys/procfs.h>
13027 if ac_fn_c_try_compile
"$LINENO"; then :
13028 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
13030 bfd_cv_have_sys_procfs_type_fpregset_t
=no
13033 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13036 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
13038 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
13042 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
13045 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
13046 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
13047 $as_echo_n "(cached) " >&6
13049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13050 /* end confdefs.h. */
13053 /* Needed for new procfs interface on sparc-solaris. */
13054 #define _STRUCTURED_PROC 1
13055 #include <sys/procfs.h>
13064 if ac_fn_c_try_compile
"$LINENO"; then :
13065 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
13067 bfd_cv_have_sys_procfs_type_prgregset_t
=no
13070 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13073 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
13075 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
13079 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
13082 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
13083 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
13084 $as_echo_n "(cached) " >&6
13086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13087 /* end confdefs.h. */
13090 /* Needed for new procfs interface on sparc-solaris. */
13091 #define _STRUCTURED_PROC 1
13092 #include <sys/procfs.h>
13101 if ac_fn_c_try_compile
"$LINENO"; then :
13102 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
13104 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
13107 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13110 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13112 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
13116 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
13119 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
13120 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
13121 $as_echo_n "(cached) " >&6
13123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13124 /* end confdefs.h. */
13127 /* Needed for new procfs interface on sparc-solaris. */
13128 #define _STRUCTURED_PROC 1
13129 #include <sys/procfs.h>
13138 if ac_fn_c_try_compile
"$LINENO"; then :
13139 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
13141 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
13144 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13147 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
13149 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
13153 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
13156 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
13157 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
13158 $as_echo_n "(cached) " >&6
13160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13161 /* end confdefs.h. */
13164 /* Needed for new procfs interface on sparc-solaris. */
13165 #define _STRUCTURED_PROC 1
13166 #include <sys/procfs.h>
13175 if ac_fn_c_try_compile
"$LINENO"; then :
13176 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
13178 bfd_cv_have_sys_procfs_type_lwpid_t
=no
13181 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13184 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
13186 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
13190 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
13193 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
13194 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
13195 $as_echo_n "(cached) " >&6
13197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13198 /* end confdefs.h. */
13201 /* Needed for new procfs interface on sparc-solaris. */
13202 #define _STRUCTURED_PROC 1
13203 #include <sys/procfs.h>
13212 if ac_fn_c_try_compile
"$LINENO"; then :
13213 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
13215 bfd_cv_have_sys_procfs_type_psaddr_t
=no
13218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13221 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
13223 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
13227 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
13230 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
13231 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
13232 $as_echo_n "(cached) " >&6
13234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13235 /* end confdefs.h. */
13238 /* Needed for new procfs interface on sparc-solaris. */
13239 #define _STRUCTURED_PROC 1
13240 #include <sys/procfs.h>
13249 if ac_fn_c_try_compile
"$LINENO"; then :
13250 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
13252 bfd_cv_have_sys_procfs_type_prsysent_t
=no
13255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13258 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
13260 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
13264 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
13267 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
13268 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
13269 $as_echo_n "(cached) " >&6
13271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13272 /* end confdefs.h. */
13275 /* Needed for new procfs interface on sparc-solaris. */
13276 #define _STRUCTURED_PROC 1
13277 #include <sys/procfs.h>
13286 if ac_fn_c_try_compile
"$LINENO"; then :
13287 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
13289 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
13292 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13295 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
13297 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
13301 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
13304 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
13305 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
13306 $as_echo_n "(cached) " >&6
13308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13309 /* end confdefs.h. */
13312 /* Needed for new procfs interface on sparc-solaris. */
13313 #define _STRUCTURED_PROC 1
13314 #include <sys/procfs.h>
13318 pr_sigaction64_t avar
13323 if ac_fn_c_try_compile
"$LINENO"; then :
13324 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
13326 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
13329 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13332 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
13334 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
13338 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
13341 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
13342 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
13343 $as_echo_n "(cached) " >&6
13345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13346 /* end confdefs.h. */
13349 /* Needed for new procfs interface on sparc-solaris. */
13350 #define _STRUCTURED_PROC 1
13351 #include <sys/procfs.h>
13355 pr_siginfo64_t avar
13360 if ac_fn_c_try_compile
"$LINENO"; then :
13361 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
13363 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
13366 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13369 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
13371 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
13375 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
13381 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
13383 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
13384 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
13385 $as_echo_n "(cached) " >&6
13387 if test "$cross_compiling" = yes; then :
13388 gdb_cv_prfpregset_t_broken
=yes
13390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13391 /* end confdefs.h. */
13392 #include <sys/procfs.h>
13395 if (sizeof (prfpregset_t) == sizeof (void *))
13400 if ac_fn_c_try_run
"$LINENO"; then :
13401 gdb_cv_prfpregset_t_broken
=no
13403 gdb_cv_prfpregset_t_broken
=yes
13405 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13406 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
13412 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
13413 if test $gdb_cv_prfpregset_t_broken = yes; then
13415 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
13421 # Check if the compiler supports the `long long' type.
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
13424 $as_echo_n "checking for long long support in compiler... " >&6; }
13425 if test "${gdb_cv_c_long_long+set}" = set; then :
13426 $as_echo_n "(cached) " >&6
13428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13429 /* end confdefs.h. */
13430 extern long long foo;
13434 switch (foo & 2) { case 0: return 1; }
13439 if ac_fn_c_try_compile
"$LINENO"; then :
13440 gdb_cv_c_long_long
=yes
13442 gdb_cv_c_long_long
=no
13444 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
13447 $as_echo "$gdb_cv_c_long_long" >&6; }
13448 if test $gdb_cv_c_long_long != yes; then
13449 # libdecnumber requires long long.
13450 as_fn_error
"Compiler must support long long for GDB." "$LINENO" 5
13453 # Check if the compiler and runtime support printing long longs.
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
13456 $as_echo_n "checking for long long support in printf... " >&6; }
13457 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
13458 $as_echo_n "(cached) " >&6
13460 if test "$cross_compiling" = yes; then :
13461 gdb_cv_printf_has_long_long
=no
13463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13464 /* end confdefs.h. */
13465 $ac_includes_default
13471 l = (l << 16) + 0x0123;
13472 l = (l << 16) + 0x4567;
13473 l = (l << 16) + 0x89ab;
13474 l = (l << 16) + 0xcdef;
13475 sprintf (buf, "0x%016llx", l);
13476 return (strcmp ("0x0123456789abcdef", buf));
13481 if ac_fn_c_try_run
"$LINENO"; then :
13482 gdb_cv_printf_has_long_long
=yes
13484 gdb_cv_printf_has_long_long
=no
13486 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13487 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
13492 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
13493 if test $gdb_cv_printf_has_long_long = yes; then
13495 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
13499 # Check if the compiler and runtime support printing decfloats.
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
13502 $as_echo_n "checking for decfloat support in printf... " >&6; }
13503 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
13504 $as_echo_n "(cached) " >&6
13506 if test "$cross_compiling" = yes; then :
13507 gdb_cv_printf_has_decfloat
=no
13509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13510 /* end confdefs.h. */
13511 $ac_includes_default
13516 _Decimal32 d32 = 1.2345df;
13517 _Decimal64 d64 = 1.2345dd;
13518 _Decimal128 d128 = 1.2345dl;
13519 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
13520 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
13525 if ac_fn_c_try_run
"$LINENO"; then :
13526 gdb_cv_printf_has_decfloat
=yes
13528 gdb_cv_printf_has_decfloat
=no
13530 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13531 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
13536 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
13537 if test $gdb_cv_printf_has_decfloat = yes; then
13539 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
13543 # Check if the compiler supports the `long double' type. We can't use
13544 # AC_C_LONG_DOUBLE because that one does additional checks on the
13545 # constants defined in <float.h> that fail on some systems,
13546 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
13549 $as_echo_n "checking for long double support in compiler... " >&6; }
13550 if test "${gdb_cv_c_long_double+set}" = set; then :
13551 $as_echo_n "(cached) " >&6
13553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13554 /* end confdefs.h. */
13557 if ac_fn_c_try_compile
"$LINENO"; then :
13558 gdb_cv_c_long_double
=yes
13560 gdb_cv_c_long_double
=no
13562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
13565 $as_echo "$gdb_cv_c_long_double" >&6; }
13566 if test $gdb_cv_c_long_double = yes; then
13568 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
13572 # Check if the compiler and runtime support printing long doubles.
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
13575 $as_echo_n "checking for long double support in printf... " >&6; }
13576 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
13577 $as_echo_n "(cached) " >&6
13579 if test "$cross_compiling" = yes; then :
13580 gdb_cv_printf_has_long_double
=no
13582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13583 /* end confdefs.h. */
13584 $ac_includes_default
13589 long double f = 3.141592653;
13590 sprintf (buf, "%Lg", f);
13591 return (strncmp ("3.14159", buf, 7));
13596 if ac_fn_c_try_run
"$LINENO"; then :
13597 gdb_cv_printf_has_long_double
=yes
13599 gdb_cv_printf_has_long_double
=no
13601 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13602 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
13607 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
13608 if test $gdb_cv_printf_has_long_double = yes; then
13610 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
13614 # Check if the compiler and runtime support scanning long doubles.
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
13617 $as_echo_n "checking for long double support in scanf... " >&6; }
13618 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
13619 $as_echo_n "(cached) " >&6
13621 if test "$cross_compiling" = yes; then :
13622 gdb_cv_scanf_has_long_double
=no
13624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13625 /* end confdefs.h. */
13630 char *buf = "3.141592653";
13632 sscanf (buf, "%Lg", &f);
13633 return !(f > 3.14159 && f < 3.14160);
13638 if ac_fn_c_try_run
"$LINENO"; then :
13639 gdb_cv_scanf_has_long_double
=yes
13641 gdb_cv_scanf_has_long_double
=no
13643 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13644 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
13649 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
13650 if test $gdb_cv_scanf_has_long_double = yes; then
13652 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
13659 $as_echo_n "checking for -bbigtoc option... " >&6; }
13660 if test "${gdb_cv_bigtoc+set}" = set; then :
13661 $as_echo_n "(cached) " >&6
13664 SAVE_LDFLAGS
=$LDFLAGS
13667 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
13668 *) gdb_cv_bigtoc
=-bbigtoc ;;
13671 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
13672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13673 /* end confdefs.h. */
13683 if ac_fn_c_try_link
"$LINENO"; then :
13688 rm -f core conftest.err conftest.
$ac_objext \
13689 conftest
$ac_exeext conftest.
$ac_ext
13690 LDFLAGS
="${SAVE_LDFLAGS}"
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
13694 $as_echo "$gdb_cv_bigtoc" >&6; }
13695 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
13700 $as_echo_n "checking for the dynamic export flag... " >&6; }
13702 if test "${gdb_native}" = yes; then
13703 # The dynamically loaded libthread_db needs access to symbols in the gdb
13704 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
13705 # may not be supported there.
13706 old_LDFLAGS
="$LDFLAGS"
13707 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
13708 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
13709 LDFLAGS
="$LDFLAGS $RDYNAMIC"
13710 if test "${have_libpython}" = no
; then
13711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13712 /* end confdefs.h. */
13722 if ac_fn_c_try_link
"$LINENO"; then :
13725 rm -f core conftest.err conftest.
$ac_objext \
13726 conftest
$ac_exeext conftest.
$ac_ext
13728 # Workaround http://bugs.python.org/issue4434 where static
13729 # libpythonX.Y.a would get its symbols required for
13730 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
13731 # Problem does not happen for the recommended libpythonX.Y.so linkage.
13733 # Note the workaround for Python
13734 # http://bugs.python.org/issue10112 earlier has removed
13735 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
13736 # here too, as otherwise it'd make this -Wl,--dynamic-list test
13738 old_CFLAGS
="$CFLAGS"
13739 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
13741 LIBS
="$LIBS $PYTHON_LIBS"
13742 old_CPPFLAGS
="$CPPFLAGS"
13743 CPPFLAGS
="$CPPFLAGS $PYTHON_CPPFLAGS"
13744 if test "$cross_compiling" = yes; then :
13747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13748 /* end confdefs.h. */
13749 #include "Python.h"
13755 err = PyRun_SimpleString ("import itertools\n");
13757 return err == 0 ? 0 : 1;
13762 if ac_fn_c_try_run
"$LINENO"; then :
13765 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13766 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13770 CFLAGS
="$old_CFLAGS"
13771 CPPFLAGS
="$old_CPPFLAGS"
13773 LDFLAGS
="$old_LDFLAGS"
13775 if $dynamic_list; then
13776 found
="-Wl,--dynamic-list"
13777 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
13780 RDYNAMIC
="-rdynamic"
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
13784 $as_echo "$found" >&6; }
13787 if test ${build} = ${host} -a ${host} = ${target} ; then
13790 # See if thread_db library is around for Solaris thread debugging.
13791 # Note that we must explicitly test for version 1 of the library
13792 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
13795 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
13796 if test -f /usr
/lib
/libthread_db.so
.1 ; then
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13798 $as_echo "yes" >&6; }
13800 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
13802 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
13803 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13805 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13806 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13807 $as_echo_n "(cached) " >&6
13809 ac_check_lib_save_LIBS
=$LIBS
13811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13812 /* end confdefs.h. */
13814 /* Override any GCC internal prototype to avoid an error.
13815 Use char because int might match the return type of a GCC
13816 builtin and then its argument prototype would still apply. */
13829 if ac_fn_c_try_link
"$LINENO"; then :
13830 ac_cv_lib_dl_dlopen
=yes
13832 ac_cv_lib_dl_dlopen
=no
13834 rm -f core conftest.err conftest.
$ac_objext \
13835 conftest
$ac_exeext conftest.
$ac_ext
13836 LIBS
=$ac_check_lib_save_LIBS
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13839 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13840 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
13841 cat >>confdefs.h
<<_ACEOF
13842 #define HAVE_LIBDL 1
13849 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} $RDYNAMIC"
13850 # Sun randomly tweaked the prototypes in <proc_service.h>
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
13853 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
13854 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
13855 $as_echo_n "(cached) " >&6
13858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13859 /* end confdefs.h. */
13861 #include <proc_service.h>
13862 ps_err_e ps_pdwrite
13863 (struct ps_prochandle*, psaddr_t, const void*, size_t);
13873 if ac_fn_c_try_compile
"$LINENO"; then :
13874 gdb_cv_proc_service_is_old
=no
13876 gdb_cv_proc_service_is_old
=yes
13878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
13883 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
13884 if test $gdb_cv_proc_service_is_old = yes; then
13886 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13891 $as_echo "no" >&6; }
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
13896 $as_echo_n "checking for AiX thread debugging library... " >&6; }
13897 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
13898 $as_echo_n "(cached) " >&6
13900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13901 /* end confdefs.h. */
13902 #include <sys/pthdebug.h>
13906 #ifndef PTHDB_VERSION_3
13913 if ac_fn_c_try_compile
"$LINENO"; then :
13914 gdb_cv_have_aix_thread_debug
=yes
13916 gdb_cv_have_aix_thread_debug
=no
13918 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
13922 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
13923 if test $gdb_cv_have_aix_thread_debug = yes; then
13924 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
13925 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
13926 LIBS
="$LIBS -lpthdebug"
13928 # Older versions of AIX do not provide the declaration for
13929 # the getthrds function (it appears that it was introduced
13931 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
13933 if test "x$ac_cv_have_decl_getthrds" = x
""yes; then :
13939 cat >>confdefs.h
<<_ACEOF
13940 #define HAVE_DECL_GETTHRDS $ac_have_decl
13949 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
13951 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
13952 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
13953 $as_echo_n "(cached) " >&6
13955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13956 /* end confdefs.h. */
13957 #include <thread_db.h>
13961 int i = TD_NOTALLOC;
13966 if ac_fn_c_try_compile
"$LINENO"; then :
13967 gdb_cv_thread_db_h_has_td_notalloc
=yes
13969 gdb_cv_thread_db_h_has_td_notalloc
=no
13972 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
13976 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
13978 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
13979 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
13980 $as_echo_n "(cached) " >&6
13982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13983 /* end confdefs.h. */
13984 #include <thread_db.h>
13988 int i = TD_VERSION;
13993 if ac_fn_c_try_compile
"$LINENO"; then :
13994 gdb_cv_thread_db_h_has_td_version
=yes
13996 gdb_cv_thread_db_h_has_td_version
=no
13999 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
14003 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
14005 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
14006 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
14007 $as_echo_n "(cached) " >&6
14009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14010 /* end confdefs.h. */
14011 #include <thread_db.h>
14020 if ac_fn_c_try_compile
"$LINENO"; then :
14021 gdb_cv_thread_db_h_has_td_notls
=yes
14023 gdb_cv_thread_db_h_has_td_notls
=no
14026 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
14030 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
14032 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
14034 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
14037 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
14039 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
14042 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
14044 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
14048 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
14050 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
14056 cat >>confdefs.h
<<_ACEOF
14057 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
14061 if test "$cross_compiling" = yes; then :
14062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14063 /* end confdefs.h. */
14064 #include <sys/personality.h>
14069 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14070 # define ADDR_NO_RANDOMIZE 0x0040000
14072 /* Test the flag could be set and stays set. */
14073 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14074 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14080 if ac_fn_c_try_link
"$LINENO"; then :
14081 have_personality
=true
14083 have_personality
=false
14085 rm -f core conftest.err conftest.
$ac_objext \
14086 conftest
$ac_exeext conftest.
$ac_ext
14088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14089 /* end confdefs.h. */
14090 #include <sys/personality.h>
14095 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14096 # define ADDR_NO_RANDOMIZE 0x0040000
14098 /* Test the flag could be set and stays set. */
14099 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14100 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14106 if ac_fn_c_try_run
"$LINENO"; then :
14107 have_personality
=true
14109 have_personality
=false
14111 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14112 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14115 if $have_personality
14118 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
14131 cat >>confdefs.h
<<_ACEOF
14132 #define GDBINIT "$gdbinit"
14137 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
14138 # except that the argument to --with-sysroot is optional.
14139 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
14140 if test "x$with_sysroot" = xyes
; then
14141 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
14144 # Check whether --with-sysroot was given.
14145 if test "${with_sysroot+set}" = set; then :
14146 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
14148 TARGET_SYSTEM_ROOT
=
14152 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
14153 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14154 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
14155 ac_define_dir
=`eval echo $ac_define_dir`
14157 cat >>confdefs.h
<<_ACEOF
14158 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
14164 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
14165 if test "x$prefix" = xNONE
; then
14166 test_prefix
=/usr
/local
14168 test_prefix
=$prefix
14171 test_prefix
=$exec_prefix
14174 case ${ac_define_dir} in
14175 "${test_prefix}"|
"${test_prefix}/"*|\
14176 '${exec_prefix}'|
'${exec_prefix}/'*)
14181 cat >>confdefs.h
<<_ACEOF
14182 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
14189 # Check whether --with-system-gdbinit was given.
14190 if test "${with_system_gdbinit+set}" = set; then :
14191 withval
=$with_system_gdbinit;
14192 SYSTEM_GDBINIT
=$withval
14198 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
14199 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14200 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
14201 ac_define_dir
=`eval echo $ac_define_dir`
14203 cat >>confdefs.h
<<_ACEOF
14204 #define SYSTEM_GDBINIT "$ac_define_dir"
14210 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
14211 if test "x$prefix" = xNONE
; then
14212 test_prefix
=/usr
/local
14214 test_prefix
=$prefix
14217 test_prefix
=$exec_prefix
14220 case ${ac_define_dir} in
14221 "${test_prefix}"|
"${test_prefix}/"*|\
14222 '${exec_prefix}'|
'${exec_prefix}/'*)
14227 cat >>confdefs.h
<<_ACEOF
14228 #define SYSTEM_GDBINIT_RELOCATABLE $value
14236 # Check whether --enable-werror was given.
14237 if test "${enable_werror+set}" = set; then :
14238 enableval
=$enable_werror; case "${enableval}" in
14239 yes | y
) ERROR_ON_WARNING
="yes" ;;
14240 no | n
) ERROR_ON_WARNING
="no" ;;
14241 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
14246 # Enable -Werror by default when using gcc. Turn it off for releases.
14247 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
14248 ERROR_ON_WARNING
=yes
14252 if test "${ERROR_ON_WARNING}" = yes ; then
14253 WERROR_CFLAGS
="-Werror"
14256 # These options work in either C or C++ modes.
14257 build_warnings
="-Wall -Wpointer-arith \
14258 -Wno-unused -Wunused-value -Wunused-function \
14259 -Wno-switch -Wno-char-subscripts \
14260 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable"
14262 # Now add in C and C++ specific options, depending on mode.
14263 if test "$enable_build_with_cxx" = "yes"; then
14264 build_warnings
="$build_warnings -Wno-sign-compare -Wno-write-strings \
14267 build_warnings
="$build_warnings -Wpointer-sign -Wmissing-prototypes \
14268 -Wdeclaration-after-statement -Wmissing-parameter-type \
14269 -Wold-style-declaration -Wold-style-definition"
14272 # Enable -Wno-format by default when using gcc on mingw since many
14273 # GCC versions complain about %I64.
14275 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
14276 *) build_warnings
="$build_warnings -Wformat-nonliteral" ;;
14279 # Check whether --enable-build-warnings was given.
14280 if test "${enable_build_warnings+set}" = set; then :
14281 enableval
=$enable_build_warnings; case "${enableval}" in
14283 no
) build_warnings
="-w";;
14284 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
14285 build_warnings
="${build_warnings} ${t}";;
14286 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
14287 build_warnings
="${t} ${build_warnings}";;
14288 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14290 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
14291 echo "Setting compiler warning flags = $build_warnings" 6>&1
14294 # Check whether --enable-gdb-build-warnings was given.
14295 if test "${enable_gdb_build_warnings+set}" = set; then :
14296 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
14298 no
) build_warnings
="-w";;
14299 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
14300 build_warnings
="${build_warnings} ${t}";;
14301 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
14302 build_warnings
="${t} ${build_warnings}";;
14303 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14305 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
14306 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
14310 # The set of warnings supported by a C++ compiler is not the same as
14311 # of the C compiler.
14312 if test "$enable_build_with_cxx" = "yes"; then
14314 ac_cpp
='$CXXCPP $CPPFLAGS'
14315 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14316 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14317 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
14322 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
14325 $as_echo_n "checking compiler warning flags... " >&6; }
14326 # Separate out the -Werror flag as some files just cannot be
14327 # compiled with it enabled.
14328 for w
in ${build_warnings}; do
14329 # GCC does not complain about -Wno-unknown-warning. Invert
14330 # and test -Wunknown-warning instead.
14333 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
14339 -Werr*) WERROR_CFLAGS
=-Werror ;;
14341 # Check whether GCC accepts it.
14342 saved_CFLAGS
="$CFLAGS"
14343 CFLAGS
="$CFLAGS $wtest"
14344 saved_CXXFLAGS
="$CXXFLAGS"
14345 CXXFLAGS
="$CXXFLAGS $wtest"
14346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14347 /* end confdefs.h. */
14357 if ac_fn_cxx_try_compile
"$LINENO"; then :
14358 WARN_CFLAGS
="${WARN_CFLAGS} $w"
14360 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14361 CFLAGS
="$saved_CFLAGS"
14362 CXXFLAGS
="$saved_CXXFLAGS"
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
14366 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
14371 if test "$enable_build_with_cxx" = "yes"; then
14373 ac_cpp='$CPP $CPPFLAGS'
14374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14381 # In the Cygwin environment, we need some additional flags.
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
14383 $as_echo_n "checking
for cygwin...
" >&6; }
14384 if test "${gdb_cv_os_cygwin+set}" = set; then :
14385 $as_echo_n "(cached
) " >&6
14387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14388 /* end confdefs.h. */
14390 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
14394 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14395 $EGREP "^lose$
" >/dev/null 2>&1; then :
14396 gdb_cv_os_cygwin=yes
14398 gdb_cv_os_cygwin=no
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
14404 $as_echo "$gdb_cv_os_cygwin" >&6; }
14407 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
14409 *go32* ) SER_HARDWIRE=ser-go32.o ;;
14410 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
14411 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
14415 # libreadline needs libuser32.a in a cygwin environment
14417 if test x$gdb_cv_os_cygwin = xyes; then
14418 WIN32LIBS="-luser32"
14419 case "${target}" in
14420 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
14425 # The ser-tcp.c module requires sockets.
14429 $as_echo "#define USE_WIN32API 1" >>confdefs.h
14431 WIN32LIBS
="$WIN32LIBS -lws2_32"
14436 # Add ELF support to GDB, but only if BFD includes ELF support.
14439 OLD_LDFLAGS
=$LDFLAGS
14441 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
14442 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
14443 # always want our bfd.
14444 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
14445 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
14446 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
14447 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
14448 LIBS
="-lbfd -liberty -lz $intl $LIBS"
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
14450 $as_echo_n "checking for ELF support in BFD... " >&6; }
14451 if test "${gdb_cv_var_elf+set}" = set; then :
14452 $as_echo_n "(cached) " >&6
14454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14455 /* end confdefs.h. */
14456 #include <stdlib.h>
14458 #include "elf-bfd.h"
14463 return bfd_get_elf_phdr_upper_bound (NULL);
14468 if ac_fn_c_try_link
"$LINENO"; then :
14473 rm -f core conftest.err conftest.
$ac_objext \
14474 conftest
$ac_exeext conftest.
$ac_ext
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
14477 $as_echo "$gdb_cv_var_elf" >&6; }
14479 LDFLAGS
=$OLD_LDFLAGS
14481 if test $gdb_cv_var_elf = yes; then
14482 CONFIG_OBS
="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o"
14484 $as_echo "#define HAVE_ELF 1" >>confdefs.h
14486 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
14487 if test "$plugins" = "yes"; then
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14489 $as_echo_n "checking for library containing dlopen... " >&6; }
14490 if test "${ac_cv_search_dlopen+set}" = set; then :
14491 $as_echo_n "(cached) " >&6
14493 ac_func_search_save_LIBS
=$LIBS
14494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14495 /* end confdefs.h. */
14497 /* Override any GCC internal prototype to avoid an error.
14498 Use char because int might match the return type of a GCC
14499 builtin and then its argument prototype would still apply. */
14512 for ac_lib
in '' dl
; do
14513 if test -z "$ac_lib"; then
14514 ac_res
="none required"
14517 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14519 if ac_fn_c_try_link
"$LINENO"; then :
14520 ac_cv_search_dlopen
=$ac_res
14522 rm -f core conftest.err conftest.
$ac_objext \
14524 if test "${ac_cv_search_dlopen+set}" = set; then :
14528 if test "${ac_cv_search_dlopen+set}" = set; then :
14531 ac_cv_search_dlopen
=no
14533 rm conftest.
$ac_ext
14534 LIBS
=$ac_func_search_save_LIBS
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14537 $as_echo "$ac_cv_search_dlopen" >&6; }
14538 ac_res
=$ac_cv_search_dlopen
14539 if test "$ac_res" != no
; then :
14540 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14547 # Add macho support to GDB, but only if BFD includes it.
14550 OLD_LDFLAGS
=$LDFLAGS
14552 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
14553 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
14554 # always want our bfd.
14555 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
14556 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
14557 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
14558 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
14559 LIBS
="-lbfd -liberty -lz $intl $LIBS"
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
14561 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
14562 if test "${gdb_cv_var_macho+set}" = set; then :
14563 $as_echo_n "(cached) " >&6
14565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14566 /* end confdefs.h. */
14567 #include <stdlib.h>
14569 #include "mach-o.h"
14574 return bfd_mach_o_lookup_command (NULL, 0, NULL);
14579 if ac_fn_c_try_link
"$LINENO"; then :
14580 gdb_cv_var_macho
=yes
14582 gdb_cv_var_macho
=no
14584 rm -f core conftest.err conftest.
$ac_objext \
14585 conftest
$ac_exeext conftest.
$ac_ext
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
14588 $as_echo "$gdb_cv_var_macho" >&6; }
14590 LDFLAGS
=$OLD_LDFLAGS
14592 if test $gdb_cv_var_macho = yes; then
14593 CONFIG_OBS
="$CONFIG_OBS machoread.o"
14596 # Add any host-specific objects to GDB.
14597 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
14599 # If building on ELF, look for lzma support for embedded compressed debug info.
14600 if test $gdb_cv_var_elf = yes; then
14602 # Check whether --with-lzma was given.
14603 if test "${with_lzma+set}" = set; then :
14604 withval
=$with_lzma;
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
14610 $as_echo_n "checking whether to use lzma... " >&6; }
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
14612 $as_echo "$with_lzma" >&6; }
14614 if test "${with_lzma}" != no
; then
14625 acl_save_prefix
="$prefix"
14626 prefix
="$acl_final_prefix"
14627 acl_save_exec_prefix
="$exec_prefix"
14628 exec_prefix
="$acl_final_exec_prefix"
14630 eval additional_includedir
=\"$includedir\"
14631 eval additional_libdir
=\"$libdir\"
14633 exec_prefix
="$acl_save_exec_prefix"
14634 prefix
="$acl_save_prefix"
14637 # Check whether --with-liblzma-prefix was given.
14638 if test "${with_liblzma_prefix+set}" = set; then :
14639 withval
=$with_liblzma_prefix;
14640 if test "X$withval" = "Xno"; then
14643 if test "X$withval" = "X"; then
14645 acl_save_prefix
="$prefix"
14646 prefix
="$acl_final_prefix"
14647 acl_save_exec_prefix
="$exec_prefix"
14648 exec_prefix
="$acl_final_exec_prefix"
14650 eval additional_includedir
=\"$includedir\"
14651 eval additional_libdir
=\"$libdir\"
14653 exec_prefix
="$acl_save_exec_prefix"
14654 prefix
="$acl_save_prefix"
14657 additional_includedir
="$withval/include"
14658 additional_libdir
="$withval/lib"
14669 names_already_handled
=
14670 names_next_round
='lzma '
14671 while test -n "$names_next_round"; do
14672 names_this_round
="$names_next_round"
14674 for name
in $names_this_round; do
14676 for n
in $names_already_handled; do
14677 if test "$n" = "$name"; then
14678 already_handled
=yes
14682 if test -z "$already_handled"; then
14683 names_already_handled
="$names_already_handled $name"
14684 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14685 eval value
=\"\
$HAVE_LIB$uppername\"
14686 if test -n "$value"; then
14687 if test "$value" = yes; then
14688 eval value
=\"\
$LIB$uppername\"
14689 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
14690 eval value
=\"\
$LTLIB$uppername\"
14691 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
14700 if test $use_additional = yes; then
14701 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14702 found_dir
="$additional_libdir"
14703 found_so
="$additional_libdir/lib$name.$shlibext"
14704 if test -f "$additional_libdir/lib$name.la"; then
14705 found_la
="$additional_libdir/lib$name.la"
14708 if test -f "$additional_libdir/lib$name.$libext"; then
14709 found_dir
="$additional_libdir"
14710 found_a
="$additional_libdir/lib$name.$libext"
14711 if test -f "$additional_libdir/lib$name.la"; then
14712 found_la
="$additional_libdir/lib$name.la"
14717 if test "X$found_dir" = "X"; then
14718 for x
in $LDFLAGS $LTLIBLZMA; do
14720 acl_save_prefix
="$prefix"
14721 prefix
="$acl_final_prefix"
14722 acl_save_exec_prefix
="$exec_prefix"
14723 exec_prefix
="$acl_final_exec_prefix"
14725 exec_prefix
="$acl_save_exec_prefix"
14726 prefix
="$acl_save_prefix"
14730 dir
=`echo "X$x" | sed -e 's/^X-L//'`
14731 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14733 found_so
="$dir/lib$name.$shlibext"
14734 if test -f "$dir/lib$name.la"; then
14735 found_la
="$dir/lib$name.la"
14738 if test -f "$dir/lib$name.$libext"; then
14740 found_a
="$dir/lib$name.$libext"
14741 if test -f "$dir/lib$name.la"; then
14742 found_la
="$dir/lib$name.la"
14748 if test "X$found_dir" != "X"; then
14753 if test "X$found_dir" != "X"; then
14754 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
14755 if test "X$found_so" != "X"; then
14756 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
14757 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
14760 for x
in $ltrpathdirs; do
14761 if test "X$x" = "X$found_dir"; then
14766 if test -z "$haveit"; then
14767 ltrpathdirs
="$ltrpathdirs $found_dir"
14769 if test "$hardcode_direct" = yes; then
14770 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
14772 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
14773 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
14775 for x
in $rpathdirs; do
14776 if test "X$x" = "X$found_dir"; then
14781 if test -z "$haveit"; then
14782 rpathdirs
="$rpathdirs $found_dir"
14786 for x
in $LDFLAGS $LIBLZMA; do
14788 acl_save_prefix
="$prefix"
14789 prefix
="$acl_final_prefix"
14790 acl_save_exec_prefix
="$exec_prefix"
14791 exec_prefix
="$acl_final_exec_prefix"
14793 exec_prefix
="$acl_save_exec_prefix"
14794 prefix
="$acl_save_prefix"
14796 if test "X$x" = "X-L$found_dir"; then
14801 if test -z "$haveit"; then
14802 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
14804 if test "$hardcode_minus_L" != no
; then
14805 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
14807 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
14813 if test "X$found_a" != "X"; then
14814 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
14816 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
14819 additional_includedir
=
14820 case "$found_dir" in
14822 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14823 additional_includedir
="$basedir/include"
14826 if test "X$additional_includedir" != "X"; then
14827 if test "X$additional_includedir" != "X/usr/include"; then
14829 if test "X$additional_includedir" = "X/usr/local/include"; then
14830 if test -n "$GCC"; then
14832 linux
*) haveit
=yes;;
14836 if test -z "$haveit"; then
14837 for x
in $CPPFLAGS $INCLZMA; do
14839 acl_save_prefix
="$prefix"
14840 prefix
="$acl_final_prefix"
14841 acl_save_exec_prefix
="$exec_prefix"
14842 exec_prefix
="$acl_final_exec_prefix"
14844 exec_prefix
="$acl_save_exec_prefix"
14845 prefix
="$acl_save_prefix"
14847 if test "X$x" = "X-I$additional_includedir"; then
14852 if test -z "$haveit"; then
14853 if test -d "$additional_includedir"; then
14854 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
14860 if test -n "$found_la"; then
14861 save_libdir
="$libdir"
14862 case "$found_la" in
14863 */* |
*\\*) .
"$found_la" ;;
14864 *) .
"./$found_la" ;;
14866 libdir
="$save_libdir"
14867 for dep
in $dependency_libs; do
14870 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
14871 if test "X$additional_libdir" != "X/usr/lib"; then
14873 if test "X$additional_libdir" = "X/usr/local/lib"; then
14874 if test -n "$GCC"; then
14876 linux
*) haveit
=yes;;
14880 if test -z "$haveit"; then
14882 for x
in $LDFLAGS $LIBLZMA; do
14884 acl_save_prefix
="$prefix"
14885 prefix
="$acl_final_prefix"
14886 acl_save_exec_prefix
="$exec_prefix"
14887 exec_prefix
="$acl_final_exec_prefix"
14889 exec_prefix
="$acl_save_exec_prefix"
14890 prefix
="$acl_save_prefix"
14892 if test "X$x" = "X-L$additional_libdir"; then
14897 if test -z "$haveit"; then
14898 if test -d "$additional_libdir"; then
14899 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
14903 for x
in $LDFLAGS $LTLIBLZMA; do
14905 acl_save_prefix
="$prefix"
14906 prefix
="$acl_final_prefix"
14907 acl_save_exec_prefix
="$exec_prefix"
14908 exec_prefix
="$acl_final_exec_prefix"
14910 exec_prefix
="$acl_save_exec_prefix"
14911 prefix
="$acl_save_prefix"
14913 if test "X$x" = "X-L$additional_libdir"; then
14918 if test -z "$haveit"; then
14919 if test -d "$additional_libdir"; then
14920 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
14927 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
14928 if test "$enable_rpath" != no
; then
14930 for x
in $rpathdirs; do
14931 if test "X$x" = "X$dir"; then
14936 if test -z "$haveit"; then
14937 rpathdirs
="$rpathdirs $dir"
14940 for x
in $ltrpathdirs; do
14941 if test "X$x" = "X$dir"; then
14946 if test -z "$haveit"; then
14947 ltrpathdirs
="$ltrpathdirs $dir"
14952 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14955 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14958 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
14959 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
14965 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
14966 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
14972 if test "X$rpathdirs" != "X"; then
14973 if test -n "$hardcode_libdir_separator"; then
14975 for found_dir
in $rpathdirs; do
14976 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14978 acl_save_libdir
="$libdir"
14980 eval flag
=\"$hardcode_libdir_flag_spec\"
14981 libdir
="$acl_save_libdir"
14982 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
14984 for found_dir
in $rpathdirs; do
14985 acl_save_libdir
="$libdir"
14986 libdir
="$found_dir"
14987 eval flag
=\"$hardcode_libdir_flag_spec\"
14988 libdir
="$acl_save_libdir"
14989 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
14993 if test "X$ltrpathdirs" != "X"; then
14994 for found_dir
in $ltrpathdirs; do
14995 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
15000 ac_save_CPPFLAGS
="$CPPFLAGS"
15002 for element
in $INCLZMA; do
15004 for x
in $CPPFLAGS; do
15006 acl_save_prefix
="$prefix"
15007 prefix
="$acl_final_prefix"
15008 acl_save_exec_prefix
="$exec_prefix"
15009 exec_prefix
="$acl_final_exec_prefix"
15011 exec_prefix
="$acl_save_exec_prefix"
15012 prefix
="$acl_save_prefix"
15014 if test "X$x" = "X$element"; then
15019 if test -z "$haveit"; then
15020 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
15026 $as_echo_n "checking for liblzma... " >&6; }
15027 if test "${ac_cv_liblzma+set}" = set; then :
15028 $as_echo_n "(cached) " >&6
15031 ac_save_LIBS
="$LIBS"
15032 LIBS
="$LIBS $LIBLZMA"
15033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15034 /* end confdefs.h. */
15039 lzma_index_iter iter;
15040 lzma_index_iter_init (&iter, 0);
15041 lzma_mf_is_supported (LZMA_MF_HC3);
15046 if ac_fn_c_try_link
"$LINENO"; then :
15051 rm -f core conftest.err conftest.
$ac_objext \
15052 conftest
$ac_exeext conftest.
$ac_ext
15053 LIBS
="$ac_save_LIBS"
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
15057 $as_echo "$ac_cv_liblzma" >&6; }
15058 if test "$ac_cv_liblzma" = yes; then
15061 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
15064 $as_echo_n "checking how to link with liblzma... " >&6; }
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
15066 $as_echo "$LIBLZMA" >&6; }
15069 CPPFLAGS
="$ac_save_CPPFLAGS"
15079 if test "$HAVE_LIBLZMA" != yes; then
15080 if test "$with_lzma" = yes; then
15081 as_fn_error
"missing liblzma for --with-lzma" "$LINENO" 5
15087 LIBGUI
="../libgui/src/libgui.a"
15088 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
15097 *-*-cygwin* |
*-*-mingw* )
15106 if test "${enable_gdbtk}" = "yes"; then
15108 # Gdbtk must have an absolute path to srcdir in order to run
15109 # properly when not installed.
15112 GDBTK_SRC_DIR
=`pwd`
15117 # Ok, lets find the tcl configuration
15118 # First, look for one uninstalled.
15119 # the alternative search directory is invoked by --with-tcl
15122 if test x
"${no_tcl}" = x
; then
15123 # we reset no_tcl in case something fails here
15126 # Check whether --with-tcl was given.
15127 if test "${with_tcl+set}" = set; then :
15128 withval
=$with_tcl; with_tclconfig
=${withval}
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
15132 $as_echo_n "checking for Tcl configuration... " >&6; }
15133 if test "${ac_cv_c_tclconfig+set}" = set; then :
15134 $as_echo_n "(cached) " >&6
15138 # First check to see if --with-tcl was specified.
15140 *-*-cygwin*) platDir
="win" ;;
15141 *) platDir
="unix" ;;
15143 if test x
"${with_tclconfig}" != x
; then
15144 if test -f "${with_tclconfig}/tclConfig.sh" ; then
15145 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
15147 as_fn_error
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
15151 # then check for a private Tcl installation
15152 if test x
"${ac_cv_c_tclconfig}" = x
; then
15155 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15156 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
15157 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
15159 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15160 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
15161 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
15163 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15164 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
15165 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
15166 if test -f "$i/$platDir/tclConfig.sh" ; then
15167 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
15173 # on Darwin, check in Framework installation locations
15174 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
15175 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
15176 `ls -d /Library/Frameworks 2>/dev/null` \
15177 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15178 `ls -d /System/Library/Frameworks 2>/dev/null` \
15180 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
15181 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
15187 # check in a few common install locations
15188 if test x
"${ac_cv_c_tclconfig}" = x
; then
15189 for i
in `ls -d ${libdir} 2>/dev/null` \
15190 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15191 `ls -d ${prefix}/lib 2>/dev/null` \
15192 `ls -d /usr/local/lib 2>/dev/null` \
15193 `ls -d /usr/contrib/lib 2>/dev/null` \
15194 `ls -d /usr/lib 2>/dev/null` \
15196 if test -f "$i/tclConfig.sh" ; then
15197 ac_cv_c_tclconfig
=`(cd $i; pwd)`
15203 # check in a few other private locations
15204 if test x
"${ac_cv_c_tclconfig}" = x
; then
15207 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15208 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
15209 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
15210 if test -f "$i/$platDir/tclConfig.sh" ; then
15211 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
15220 if test x
"${ac_cv_c_tclconfig}" = x
; then
15221 TCL_BIN_DIR
="# no Tcl configs found"
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
15223 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
15226 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
15228 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15233 # If $no_tk is nonempty, then we can't do Tk, and there is no
15234 # point to doing Tcl.
15237 # Ok, lets find the tk configuration
15238 # First, look for one uninstalled.
15239 # the alternative search directory is invoked by --with-tk
15242 if test x
"${no_tk}" = x
; then
15243 # we reset no_tk in case something fails here
15246 # Check whether --with-tk was given.
15247 if test "${with_tk+set}" = set; then :
15248 withval
=$with_tk; with_tkconfig
=${withval}
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
15252 $as_echo_n "checking for Tk configuration... " >&6; }
15253 if test "${ac_cv_c_tkconfig+set}" = set; then :
15254 $as_echo_n "(cached) " >&6
15258 # First check to see if --with-tkconfig was specified.
15259 if test x
"${with_tkconfig}" != x
; then
15260 if test -f "${with_tkconfig}/tkConfig.sh" ; then
15261 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
15263 as_fn_error
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
15267 # then check for a private Tk library
15269 *-*-cygwin*) platDir
="win" ;;
15270 *) platDir
="unix" ;;
15272 if test x
"${ac_cv_c_tkconfig}" = x
; then
15275 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15276 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
15277 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
15279 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15280 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
15281 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
15283 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15284 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
15285 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
15286 if test -f "$i/$platDir/tkConfig.sh" ; then
15287 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
15293 # on Darwin, check in Framework installation locations
15294 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
15295 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
15296 `ls -d /Library/Frameworks 2>/dev/null` \
15297 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15298 `ls -d /System/Library/Frameworks 2>/dev/null` \
15300 if test -f "$i/Tk.framework/tkConfig.sh" ; then
15301 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
15307 # check in a few common install locations
15308 if test x
"${ac_cv_c_tkconfig}" = x
; then
15309 for i
in `ls -d ${libdir} 2>/dev/null` \
15310 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15311 `ls -d ${prefix}/lib 2>/dev/null` \
15312 `ls -d /usr/local/lib 2>/dev/null` \
15313 `ls -d /usr/contrib/lib 2>/dev/null` \
15314 `ls -d /usr/lib 2>/dev/null` \
15316 if test -f "$i/tkConfig.sh" ; then
15317 ac_cv_c_tkconfig
=`(cd $i; pwd)`
15322 # check in a few other private locations
15323 if test x
"${ac_cv_c_tkconfig}" = x
; then
15326 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15327 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
15328 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
15329 if test -f "$i/$platDir/tkConfig.sh" ; then
15330 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
15339 if test x
"${ac_cv_c_tkconfig}" = x
; then
15340 TK_BIN_DIR
="# no Tk configs found"
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
15342 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
15345 TK_BIN_DIR
=${ac_cv_c_tkconfig}
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
15347 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15352 if test -z "${no_tcl}" -a -z "${no_tk}"; then
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
15355 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
15357 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15359 $as_echo "loading" >&6; }
15360 .
${TCL_BIN_DIR}/tclConfig.sh
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
15363 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15366 # eval is required to do the TCL_DBGX substitution
15367 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
15368 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
15370 # If the TCL_BIN_DIR is the build directory (not the install directory),
15371 # then set the common variable name to the value of the build variables.
15372 # For example, the variable TCL_LIB_SPEC will be set to the value
15373 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
15374 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
15375 # installed and uninstalled version of Tcl.
15376 if test -f "${TCL_BIN_DIR}/Makefile" ; then
15377 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
15378 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
15379 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
15380 elif test "`uname -s`" = "Darwin"; then
15381 # If Tcl was built as a framework, attempt to use the libraries
15382 # from the framework at the given location so that linking works
15383 # against Tcl.framework installed in an arbitrary location.
15384 case ${TCL_DEFS} in
15386 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
15387 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
15388 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
15389 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
15390 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
15395 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
15396 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
15397 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
15403 # eval is required to do the TCL_DBGX substitution
15404 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
15405 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
15406 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
15407 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
15423 # Check for in-tree tcl
15430 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
15434 # Find Tcl private headers
15435 if test x
"${intree}" = xno
; then
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
15438 $as_echo_n "checking for Tcl private headers... " >&6; }
15440 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
15441 if test -f ${dir}/tclInt.h
; then
15445 if test x
"${private_dir}" = x
; then
15446 as_fn_error
"could not find private Tcl headers" "$LINENO" 5
15448 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15450 $as_echo "${private_dir}" >&6; }
15453 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
15454 TCL_LIBRARY
="${TCL_LIB_SPEC}"
15457 # If building tcl in the same src tree, private headers
15458 # are not needed, but we need to be sure to use the right
15460 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
15461 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
15462 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
15470 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
15472 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15474 $as_echo "loading" >&6; }
15475 .
${TK_BIN_DIR}/tkConfig.sh
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
15478 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15481 # eval is required to do the TK_DBGX substitution
15482 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
15483 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
15485 # If the TK_BIN_DIR is the build directory (not the install directory),
15486 # then set the common variable name to the value of the build variables.
15487 # For example, the variable TK_LIB_SPEC will be set to the value
15488 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
15489 # instead of TK_BUILD_LIB_SPEC since it will work with both an
15490 # installed and uninstalled version of Tcl.
15491 if test -f "${TK_BIN_DIR}/Makefile" ; then
15492 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
15493 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
15494 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
15495 elif test "`uname -s`" = "Darwin"; then
15496 # If Tk was built as a framework, attempt to use the libraries
15497 # from the framework at the given location so that linking works
15498 # against Tk.framework installed in an arbitrary location.
15501 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
15502 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
15503 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
15504 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
15505 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
15510 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
15511 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
15512 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
15518 # eval is required to do the TK_DBGX substitution
15519 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
15520 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
15521 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
15522 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
15537 # Check for in-tree Tk
15539 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
15543 # Find Tk private headers
15544 if test x
"${intree}" = xno
; then
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
15547 $as_echo_n "checking for Tk private headers... " >&6; }
15549 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
15550 if test -f ${dir}/tkInt.h
; then
15554 if test x
"${private_dir}" = x
; then
15555 as_fn_error
"could not find Tk private headers" "$LINENO" 5
15557 TK_PRIVATE_INCLUDE
="-I${private_dir}"
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15559 $as_echo "${private_dir}" >&6; }
15562 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
15563 TK_LIBRARY
=${TK_LIB_SPEC}
15566 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
15567 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
15568 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
15575 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
15577 # Include some libraries that Tcl and Tk want.
15578 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
15579 # Yes, the ordering seems wrong here. But it isn't.
15580 # TK_LIBS is the list of libraries that need to be linked
15581 # after Tcl/Tk. Note that this isn't put into LIBS. If it
15582 # were in LIBS then any link tests after this point would
15583 # try to include things like `$(LIBGUI)', which wouldn't work.
15584 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
15586 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
15587 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
15588 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
15589 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
15590 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
15591 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
15592 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
15594 if test x
$gdb_cv_os_cygwin = xyes
; then
15595 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
15596 WIN32LDAPP
="-Wl,--subsystem,console"
15597 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
15600 subdirs
="$subdirs gdbtk"
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15613 $as_echo_n "checking for X... " >&6; }
15616 # Check whether --with-x was given.
15617 if test "${with_x+set}" = set; then :
15621 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15622 if test "x$with_x" = xno
; then
15623 # The user explicitly disabled X.
15626 case $x_includes,$x_libraries in #(
15627 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
15628 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
15629 $as_echo_n "(cached) " >&6
15631 # One or both of the vars are not set, and there is no cached value.
15632 ac_x_includes
=no ac_x_libraries
=no
15633 rm -f -r conftest.dir
15634 if mkdir conftest.dir
; then
15636 cat >Imakefile
<<'_ACEOF'
15638 @echo incroot='${INCROOT}'
15640 @echo usrlibdir='${USRLIBDIR}'
15642 @echo libdir='${LIBDIR}'
15644 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
15645 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15646 for ac_var
in incroot usrlibdir libdir
; do
15647 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15649 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
15650 for ac_extension
in a so sl dylib la dll
; do
15651 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15652 test -f "$ac_im_libdir/libX11.$ac_extension"; then
15653 ac_im_usrlibdir
=$ac_im_libdir; break
15656 # Screen out bogus values from the imake configuration. They are
15657 # bogus both because they are the default anyway, and because
15658 # using them would break gcc on systems where it needs fixed includes.
15659 case $ac_im_incroot in
15660 /usr
/include
) ac_x_includes
= ;;
15661 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
15663 case $ac_im_usrlibdir in
15664 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
15665 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
15669 rm -f -r conftest.dir
15672 # Standard set of common directories for X headers.
15673 # Check X11 before X11Rn because it is often a symlink to the current release.
15687 /usr/local/X11/include
15688 /usr/local/X11R7/include
15689 /usr/local/X11R6/include
15690 /usr/local/X11R5/include
15691 /usr/local/X11R4/include
15693 /usr/local/include/X11
15694 /usr/local/include/X11R7
15695 /usr/local/include/X11R6
15696 /usr/local/include/X11R5
15697 /usr/local/include/X11R4
15701 /usr/XFree86/include/X11
15705 /usr/unsupported/include
15706 /usr/athena/include
15707 /usr/local/x11r5/include
15708 /usr/lpp/Xamples/include
15710 /usr/openwin/include
15711 /usr/openwin/share/include'
15713 if test "$ac_x_includes" = no
; then
15714 # Guess where to find include files, by looking for Xlib.h.
15715 # First, try using that file with no special directory specified.
15716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15717 /* end confdefs.h. */
15718 #include <X11/Xlib.h>
15720 if ac_fn_c_try_cpp
"$LINENO"; then :
15721 # We can compile using X headers with no special include directory.
15724 for ac_dir
in $ac_x_header_dirs; do
15725 if test -r "$ac_dir/X11/Xlib.h"; then
15726 ac_x_includes
=$ac_dir
15731 rm -f conftest.err conftest.
$ac_ext
15732 fi # $ac_x_includes = no
15734 if test "$ac_x_libraries" = no
; then
15735 # Check for the libraries.
15736 # See if we find them without any special options.
15737 # Don't add to $LIBS permanently.
15740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15741 /* end confdefs.h. */
15742 #include <X11/Xlib.h>
15751 if ac_fn_c_try_link
"$LINENO"; then :
15753 # We can link X programs with no special library path.
15757 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15759 # Don't even attempt the hair of trying to link an X program!
15760 for ac_extension
in a so sl dylib la dll
; do
15761 if test -r "$ac_dir/libX11.$ac_extension"; then
15762 ac_x_libraries
=$ac_dir
15768 rm -f core conftest.err conftest.
$ac_objext \
15769 conftest
$ac_exeext conftest.
$ac_ext
15770 fi # $ac_x_libraries = no
15772 case $ac_x_includes,$ac_x_libraries in #(
15773 no
,* |
*,no |
*\'*)
15774 # Didn't find X, or a directory has "'" in its name.
15775 ac_cv_have_x
="have_x=no";; #(
15777 # Record where we found X for the cache.
15778 ac_cv_have_x
="have_x=yes\
15779 ac_x_includes='$ac_x_includes'\
15780 ac_x_libraries='$ac_x_libraries'"
15786 eval "$ac_cv_have_x"
15789 if test "$have_x" != yes; then
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15791 $as_echo "$have_x" >&6; }
15794 # If each of the values was on the command line, it overrides each guess.
15795 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
15796 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
15797 # Update the cache value to reflect the command line values.
15798 ac_cv_have_x
="have_x=yes\
15799 ac_x_includes='$x_includes'\
15800 ac_x_libraries='$x_libraries'"
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15802 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15806 # Unlike the sim directory, whether a simulator is linked is controlled by
15807 # presence of a gdb_sim definition in the target configure.tgt entry.
15808 # This code just checks for a few cases where we'd like to ignore those
15809 # definitions, even when they're present in the '.mt' file. These cases
15810 # are when --disable-sim is specified, or if the simulator directory is
15811 # not part of the source tree.
15813 # Check whether --enable-sim was given.
15814 if test "${enable_sim+set}" = set; then :
15815 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
15816 echo "enableval = ${enableval}";
15817 case "${enableval}" in
15818 yes) ignore_sim
=false
;;
15819 no
) ignore_sim
=true
;;
15820 *) ignore_sim
=false
;;
15827 if test ! -d "${srcdir}/../sim"; then
15833 if test "${ignore_sim}" = "false"; then
15834 if test x
"${gdb_sim}" != x
; then
15836 SIM_OBS
="remote-sim.o"
15838 $as_echo "#define WITH_SIM 1" >>confdefs.h
15841 # Some tdep code should only be compiled in when the ppc sim is
15842 # built. PR sim/13418.
15846 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
15866 # List of host floatformats.
15868 cat >>confdefs.h
<<_ACEOF
15869 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
15873 cat >>confdefs.h
<<_ACEOF
15874 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
15878 cat >>confdefs.h
<<_ACEOF
15879 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
15883 # target_subdir is used by the testsuite to find the target libraries.
15885 if test "${host}" != "${target}"; then
15886 target_subdir
="${target_alias}/"
15891 if test "${gdb_native}" = "yes"; then
15892 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
15893 if test ! -f ${host_makefile_frag}; then
15894 as_fn_error
"\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
15896 frags
="$frags $host_makefile_frag"
15898 host_makefile_frag
=/dev
/null
15904 if test "${gdb_native}" = "yes"; then
15905 # We pick this up from the host configuration file (.mh) because we
15906 # do not have a native configuration Makefile fragment.
15907 nativefile
=`sed -n '
15908 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
15909 ' ${host_makefile_frag}`
15913 if test x
"${gdb_osabi}" != x
; then
15915 cat >>confdefs.h
<<_ACEOF
15916 #define GDB_OSABI_DEFAULT $gdb_osabi
15921 # Enable multi-ice-gdb-server.
15922 # Check whether --enable-multi-ice was given.
15923 if test "${enable_multi_ice+set}" = set; then :
15924 enableval
=$enable_multi_ice; case $enableval in
15927 *) as_fn_error
"bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
15931 if test "x$enable_multi_ice" = xyes
; then
15932 subdirs
="$subdirs multi-ice"
15936 # Check whether --enable-gdbserver was given.
15937 if test "${enable_gdbserver+set}" = set; then :
15938 enableval
=$enable_gdbserver; case "${enableval}" in
15940 *) as_fn_error
"bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
15943 enable_gdbserver
=auto
15947 # We only build gdbserver automatically in a native configuration, and
15948 # only if the user did not explicitly disable its build.
15949 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
15951 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
15952 if test "x$build_gdbserver" = xyes
; then
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15954 $as_echo "yes" >&6; }
15955 subdirs
="$subdirs gdbserver"
15957 gdbserver_build_enabled
=yes
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15960 $as_echo "no" >&6; }
15964 # If the user explicitly request the gdbserver to be built, verify that
15965 # we were in fact able to enable it.
15966 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
15967 as_fn_error
"Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
15970 # Check for babeltrace and babeltrace-ctf
15972 # Check whether --with-babeltrace was given.
15973 if test "${with_babeltrace+set}" = set; then :
15974 withval
=$with_babeltrace;
15976 with_babeltrace
=auto
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
15980 $as_echo_n "checking whether to use babeltrace... " >&6; }
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
15982 $as_echo "$with_babeltrace" >&6; }
15984 if test "x$with_babeltrace" = "xno"; then
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
15986 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
15988 # Append -Werror to CFLAGS so that configure can catch the warning
15989 # "assignment from incompatible pointer type", which is related to
15990 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
15991 # in GDB, while babeltrace 1.0.3 is broken.
15992 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
15993 # safe to save and restore CFLAGS here.
15994 saved_CFLAGS
=$CFLAGS
15995 CFLAGS
="$CFLAGS -Werror"
16006 acl_save_prefix
="$prefix"
16007 prefix
="$acl_final_prefix"
16008 acl_save_exec_prefix
="$exec_prefix"
16009 exec_prefix
="$acl_final_exec_prefix"
16011 eval additional_includedir
=\"$includedir\"
16012 eval additional_libdir
=\"$libdir\"
16014 exec_prefix
="$acl_save_exec_prefix"
16015 prefix
="$acl_save_prefix"
16018 # Check whether --with-libbabeltrace-prefix was given.
16019 if test "${with_libbabeltrace_prefix+set}" = set; then :
16020 withval
=$with_libbabeltrace_prefix;
16021 if test "X$withval" = "Xno"; then
16024 if test "X$withval" = "X"; then
16026 acl_save_prefix
="$prefix"
16027 prefix
="$acl_final_prefix"
16028 acl_save_exec_prefix
="$exec_prefix"
16029 exec_prefix
="$acl_final_exec_prefix"
16031 eval additional_includedir
=\"$includedir\"
16032 eval additional_libdir
=\"$libdir\"
16034 exec_prefix
="$acl_save_exec_prefix"
16035 prefix
="$acl_save_prefix"
16038 additional_includedir
="$withval/include"
16039 additional_libdir
="$withval/lib"
16050 names_already_handled
=
16051 names_next_round
='babeltrace babeltrace-ctf'
16052 while test -n "$names_next_round"; do
16053 names_this_round
="$names_next_round"
16055 for name
in $names_this_round; do
16057 for n
in $names_already_handled; do
16058 if test "$n" = "$name"; then
16059 already_handled
=yes
16063 if test -z "$already_handled"; then
16064 names_already_handled
="$names_already_handled $name"
16065 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16066 eval value
=\"\
$HAVE_LIB$uppername\"
16067 if test -n "$value"; then
16068 if test "$value" = yes; then
16069 eval value
=\"\
$LIB$uppername\"
16070 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
16071 eval value
=\"\
$LTLIB$uppername\"
16072 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
16081 if test $use_additional = yes; then
16082 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16083 found_dir
="$additional_libdir"
16084 found_so
="$additional_libdir/lib$name.$shlibext"
16085 if test -f "$additional_libdir/lib$name.la"; then
16086 found_la
="$additional_libdir/lib$name.la"
16089 if test -f "$additional_libdir/lib$name.$libext"; then
16090 found_dir
="$additional_libdir"
16091 found_a
="$additional_libdir/lib$name.$libext"
16092 if test -f "$additional_libdir/lib$name.la"; then
16093 found_la
="$additional_libdir/lib$name.la"
16098 if test "X$found_dir" = "X"; then
16099 for x
in $LDFLAGS $LTLIBBABELTRACE; do
16101 acl_save_prefix
="$prefix"
16102 prefix
="$acl_final_prefix"
16103 acl_save_exec_prefix
="$exec_prefix"
16104 exec_prefix
="$acl_final_exec_prefix"
16106 exec_prefix
="$acl_save_exec_prefix"
16107 prefix
="$acl_save_prefix"
16111 dir
=`echo "X$x" | sed -e 's/^X-L//'`
16112 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16114 found_so
="$dir/lib$name.$shlibext"
16115 if test -f "$dir/lib$name.la"; then
16116 found_la
="$dir/lib$name.la"
16119 if test -f "$dir/lib$name.$libext"; then
16121 found_a
="$dir/lib$name.$libext"
16122 if test -f "$dir/lib$name.la"; then
16123 found_la
="$dir/lib$name.la"
16129 if test "X$found_dir" != "X"; then
16134 if test "X$found_dir" != "X"; then
16135 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
16136 if test "X$found_so" != "X"; then
16137 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
16138 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
16141 for x
in $ltrpathdirs; do
16142 if test "X$x" = "X$found_dir"; then
16147 if test -z "$haveit"; then
16148 ltrpathdirs
="$ltrpathdirs $found_dir"
16150 if test "$hardcode_direct" = yes; then
16151 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
16153 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
16154 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
16156 for x
in $rpathdirs; do
16157 if test "X$x" = "X$found_dir"; then
16162 if test -z "$haveit"; then
16163 rpathdirs
="$rpathdirs $found_dir"
16167 for x
in $LDFLAGS $LIBBABELTRACE; do
16169 acl_save_prefix
="$prefix"
16170 prefix
="$acl_final_prefix"
16171 acl_save_exec_prefix
="$exec_prefix"
16172 exec_prefix
="$acl_final_exec_prefix"
16174 exec_prefix
="$acl_save_exec_prefix"
16175 prefix
="$acl_save_prefix"
16177 if test "X$x" = "X-L$found_dir"; then
16182 if test -z "$haveit"; then
16183 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
16185 if test "$hardcode_minus_L" != no
; then
16186 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
16188 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
16194 if test "X$found_a" != "X"; then
16195 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
16197 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
16200 additional_includedir
=
16201 case "$found_dir" in
16203 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16204 additional_includedir
="$basedir/include"
16207 if test "X$additional_includedir" != "X"; then
16208 if test "X$additional_includedir" != "X/usr/include"; then
16210 if test "X$additional_includedir" = "X/usr/local/include"; then
16211 if test -n "$GCC"; then
16213 linux
*) haveit
=yes;;
16217 if test -z "$haveit"; then
16218 for x
in $CPPFLAGS $INCBABELTRACE; do
16220 acl_save_prefix
="$prefix"
16221 prefix
="$acl_final_prefix"
16222 acl_save_exec_prefix
="$exec_prefix"
16223 exec_prefix
="$acl_final_exec_prefix"
16225 exec_prefix
="$acl_save_exec_prefix"
16226 prefix
="$acl_save_prefix"
16228 if test "X$x" = "X-I$additional_includedir"; then
16233 if test -z "$haveit"; then
16234 if test -d "$additional_includedir"; then
16235 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
16241 if test -n "$found_la"; then
16242 save_libdir
="$libdir"
16243 case "$found_la" in
16244 */* |
*\\*) .
"$found_la" ;;
16245 *) .
"./$found_la" ;;
16247 libdir
="$save_libdir"
16248 for dep
in $dependency_libs; do
16251 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
16252 if test "X$additional_libdir" != "X/usr/lib"; then
16254 if test "X$additional_libdir" = "X/usr/local/lib"; then
16255 if test -n "$GCC"; then
16257 linux
*) haveit
=yes;;
16261 if test -z "$haveit"; then
16263 for x
in $LDFLAGS $LIBBABELTRACE; do
16265 acl_save_prefix
="$prefix"
16266 prefix
="$acl_final_prefix"
16267 acl_save_exec_prefix
="$exec_prefix"
16268 exec_prefix
="$acl_final_exec_prefix"
16270 exec_prefix
="$acl_save_exec_prefix"
16271 prefix
="$acl_save_prefix"
16273 if test "X$x" = "X-L$additional_libdir"; then
16278 if test -z "$haveit"; then
16279 if test -d "$additional_libdir"; then
16280 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
16284 for x
in $LDFLAGS $LTLIBBABELTRACE; do
16286 acl_save_prefix
="$prefix"
16287 prefix
="$acl_final_prefix"
16288 acl_save_exec_prefix
="$exec_prefix"
16289 exec_prefix
="$acl_final_exec_prefix"
16291 exec_prefix
="$acl_save_exec_prefix"
16292 prefix
="$acl_save_prefix"
16294 if test "X$x" = "X-L$additional_libdir"; then
16299 if test -z "$haveit"; then
16300 if test -d "$additional_libdir"; then
16301 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
16308 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
16309 if test "$enable_rpath" != no
; then
16311 for x
in $rpathdirs; do
16312 if test "X$x" = "X$dir"; then
16317 if test -z "$haveit"; then
16318 rpathdirs
="$rpathdirs $dir"
16321 for x
in $ltrpathdirs; do
16322 if test "X$x" = "X$dir"; then
16327 if test -z "$haveit"; then
16328 ltrpathdirs
="$ltrpathdirs $dir"
16333 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16336 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16339 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
16340 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
16346 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
16347 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
16353 if test "X$rpathdirs" != "X"; then
16354 if test -n "$hardcode_libdir_separator"; then
16356 for found_dir
in $rpathdirs; do
16357 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16359 acl_save_libdir
="$libdir"
16361 eval flag
=\"$hardcode_libdir_flag_spec\"
16362 libdir
="$acl_save_libdir"
16363 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
16365 for found_dir
in $rpathdirs; do
16366 acl_save_libdir
="$libdir"
16367 libdir
="$found_dir"
16368 eval flag
=\"$hardcode_libdir_flag_spec\"
16369 libdir
="$acl_save_libdir"
16370 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
16374 if test "X$ltrpathdirs" != "X"; then
16375 for found_dir
in $ltrpathdirs; do
16376 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
16381 ac_save_CPPFLAGS
="$CPPFLAGS"
16383 for element
in $INCBABELTRACE; do
16385 for x
in $CPPFLAGS; do
16387 acl_save_prefix
="$prefix"
16388 prefix
="$acl_final_prefix"
16389 acl_save_exec_prefix
="$exec_prefix"
16390 exec_prefix
="$acl_final_exec_prefix"
16392 exec_prefix
="$acl_save_exec_prefix"
16393 prefix
="$acl_save_prefix"
16395 if test "X$x" = "X$element"; then
16400 if test -z "$haveit"; then
16401 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
16407 $as_echo_n "checking for libbabeltrace... " >&6; }
16408 if test "${ac_cv_libbabeltrace+set}" = set; then :
16409 $as_echo_n "(cached) " >&6
16412 ac_save_LIBS
="$LIBS"
16413 LIBS
="$LIBS $LIBBABELTRACE"
16414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16415 /* end confdefs.h. */
16416 #include <babeltrace/babeltrace.h>
16417 #include <babeltrace/ctf/events.h>
16418 #include <babeltrace/ctf/iterator.h>
16422 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
16423 struct bt_ctf_event *event = NULL;
16424 const struct bt_definition *scope;
16426 pos->type = BT_SEEK_BEGIN;
16427 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
16428 scope = bt_ctf_get_top_level_scope (event,
16429 BT_STREAM_EVENT_HEADER);
16430 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
16436 if ac_fn_c_try_link
"$LINENO"; then :
16437 ac_cv_libbabeltrace
=yes
16439 ac_cv_libbabeltrace
=no
16441 rm -f core conftest.err conftest.
$ac_objext \
16442 conftest
$ac_exeext conftest.
$ac_ext
16443 LIBS
="$ac_save_LIBS"
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
16447 $as_echo "$ac_cv_libbabeltrace" >&6; }
16448 if test "$ac_cv_libbabeltrace" = yes; then
16449 HAVE_LIBBABELTRACE
=yes
16451 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
16454 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
16456 $as_echo "$LIBBABELTRACE" >&6; }
16458 HAVE_LIBBABELTRACE
=no
16459 CPPFLAGS
="$ac_save_CPPFLAGS"
16469 CFLAGS
=$saved_CFLAGS
16471 if test "$HAVE_LIBBABELTRACE" != yes; then
16472 if test "$with_babeltrace" = yes; then
16473 as_fn_error
"babeltrace is missing or unusable" "$LINENO" 5
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
16476 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
16481 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
16482 # to an empty version.
16488 if test "${nativefile}" != ""; then
16489 case "${nativefile}" in
16490 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
16491 * ) GDB_NM_FILE
="${nativefile}"
16493 files
="${files} ${GDB_NM_FILE}"
16494 links
="${links} nm.h"
16496 cat >>confdefs.h
<<_ACEOF
16497 #define GDB_NM_FILE "${GDB_NM_FILE}"
16503 for ac_prog
in xsltproc
16505 # Extract the first word of "$ac_prog", so it can be a program name with args.
16506 set dummy
$ac_prog; ac_word
=$2
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16508 $as_echo_n "checking for $ac_word... " >&6; }
16509 if test "${ac_cv_path_XSLTPROC+set}" = set; then :
16510 $as_echo_n "(cached) " >&6
16514 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
16517 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16518 for as_dir
in $PATH
16521 test -z "$as_dir" && as_dir
=.
16522 for ac_exec_ext
in '' $ac_executable_extensions; do
16523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16524 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
16525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16535 XSLTPROC
=$ac_cv_path_XSLTPROC
16536 if test -n "$XSLTPROC"; then
16537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
16538 $as_echo "$XSLTPROC" >&6; }
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16541 $as_echo "no" >&6; }
16545 test -n "$XSLTPROC" && break
16547 test -n "$XSLTPROC" || XSLTPROC
="missing"
16549 if test "x$USE_MAINTAINER_MODE" = xyes
; then
16550 if test "${XSLTPROC}" = missing
; then
16551 as_fn_error
"unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
16556 ac_sources
="$files"
16558 while test -n "$ac_sources"; do
16559 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
16560 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
16561 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
16563 ac_config_links
="$ac_config_links $ac_config_links_1"
16569 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
16572 if $development; then
16574 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
16579 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
16580 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
16581 if test "x$GDB_TRANSFORM_NAME" = x
; then
16582 GDB_TRANSFORM_NAME
=gdb
16587 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
16588 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
16589 if test "x$GCORE_TRANSFORM_NAME" = x
; then
16590 GCORE_TRANSFORM_NAME
=gcore
16594 ac_config_files
="$ac_config_files gcore"
16596 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"
16599 cat >confcache
<<\_ACEOF
16600 # This file is a shell script that caches the results of configure
16601 # tests run on this system so they can be shared between configure
16602 # scripts and configure runs, see configure's option --config-cache.
16603 # It is not useful on other systems. If it contains results you don't
16604 # want to keep, you may remove or edit it.
16606 # config.status only pays attention to the cache file if you give it
16607 # the --recheck option to rerun configure.
16609 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16610 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16611 # following values.
16615 # The following way of writing the cache mishandles newlines in values,
16616 # but we know of no workaround that is simple, portable, and efficient.
16617 # So, we kill variables containing newlines.
16618 # Ultrix sh set writes to stderr and can't be redirected directly,
16619 # and sets the high bit in the cache file unless we assign to the vars.
16621 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16622 eval ac_val
=\$
$ac_var
16626 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16627 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16630 _ | IFS | as_nl
) ;; #(
16631 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16632 *) { eval $ac_var=; unset $ac_var;} ;;
16638 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16639 *${as_nl}ac_space
=\
*)
16640 # `set' does not quote correctly, so add quotes: double-quote
16641 # substitution turns \\\\ into \\, and sed turns \\ into \.
16644 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16647 # `set' quotes correctly as required by POSIX, so do not add quotes.
16648 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16657 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16659 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16661 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16662 if test -w "$cache_file"; then
16663 test "x$cache_file" != "x/dev/null" &&
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16665 $as_echo "$as_me: updating cache $cache_file" >&6;}
16666 cat confcache
>$cache_file
16668 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16669 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16674 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16675 # Let make expand exec_prefix.
16676 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16678 DEFS
=-DHAVE_CONFIG_H
16682 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16683 # 1. Remove the extension, and $U if already installed.
16684 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16685 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16686 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16687 # will be set to the directory where LIBOBJS objects are built.
16688 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16689 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16691 LIBOBJS
=$ac_libobjs
16693 LTLIBOBJS
=$ac_ltlibobjs
16696 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16697 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
16698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16700 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
16701 as_fn_error
"conditional \"GMAKE\" was never defined.
16702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16704 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
16705 as_fn_error
"conditional \"HAVE_PYTHON\" was never defined.
16706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16708 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
16709 as_fn_error
"conditional \"HAVE_GUILE\" was never defined.
16710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16714 : ${CONFIG_STATUS=./config.status}
16716 ac_clean_files_save
=$ac_clean_files
16717 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16719 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16721 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16723 # Generated by $as_me.
16724 # Run this file to recreate the current configuration.
16725 # Compiler output produced by configure, useful for debugging
16726 # configure, is in config.log if it exists.
16729 ac_cs_recheck=false
16732 SHELL=\${CONFIG_SHELL-$SHELL}
16735 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16736 ## -------------------- ##
16737 ## M4sh Initialization. ##
16738 ## -------------------- ##
16740 # Be more Bourne compatible
16741 DUALCASE
=1; export DUALCASE
# for MKS sh
16742 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16745 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16746 # is contrary to our usage. Disable this feature.
16747 alias -g '${1+"$@"}'='"$@"'
16748 setopt NO_GLOB_SUBST
16750 case `(set -o) 2>/dev/null` in #(
16762 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16763 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16764 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16765 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16766 # Prefer a ksh shell builtin over an external printf program on Solaris,
16767 # but without wasting forks for bash or zsh.
16768 if test -z "$BASH_VERSION$ZSH_VERSION" \
16769 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16770 as_echo='print
-r --'
16771 as_echo_n='print
-rn --'
16772 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16773 as_echo='printf %s
\n'
16774 as_echo_n='printf %s
'
16776 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16777 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
16778 as_echo_n='/usr
/ucb
/echo -n'
16780 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16781 as_echo_n_body='eval
16785 expr "X$arg" : "X\\(.*\\)$as_nl";
16786 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16788 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
16790 export as_echo_n_body
16791 as_echo_n='sh
-c $as_echo_n_body as_echo
'
16793 export as_echo_body
16794 as_echo='sh
-c $as_echo_body as_echo
'
16797 # The user is always right.
16798 if test "${PATH_SEPARATOR+set}" != set; then
16800 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16801 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16808 # We need space, tab and new line, in precisely that order. Quoting is
16809 # there to prevent editors from complaining about space-tab.
16810 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16811 # splitting by setting IFS to empty value.)
16814 # Find who we are. Look in the path if we contain no directory separator.
16816 *[\\/]* ) as_myself=$0 ;;
16817 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16818 for as_dir in $PATH
16821 test -z "$as_dir" && as_dir=.
16822 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16828 # We did not find ourselves, most probably we were run as `sh COMMAND'
16829 # in which case we are not to be found in the path.
16830 if test "x$as_myself" = x
; then
16833 if test ! -f "$as_myself"; then
16834 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16838 # Unset variables that we do not need and which cause bugs (e.g. in
16839 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16840 # suppresses any "Segmentation fault" message there. '((' could
16841 # trigger a bug in pdksh 5.2.14.
16842 for as_var
in BASH_ENV ENV MAIL MAILPATH
16843 do eval test x\
${$as_var+set} = xset \
16844 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
16857 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
16860 # as_fn_error ERROR [LINENO LOG_FD]
16861 # ---------------------------------
16862 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16863 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16864 # script with status $?, using 1 if that was 0.
16867 as_status
=$?
; test $as_status -eq 0 && as_status
=1
16869 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
16870 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16872 $as_echo "$as_me: error: $1" >&2
16873 as_fn_exit
$as_status
16877 # as_fn_set_status STATUS
16878 # -----------------------
16879 # Set $? to STATUS, without forking.
16880 as_fn_set_status
()
16883 } # as_fn_set_status
16885 # as_fn_exit STATUS
16886 # -----------------
16887 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16891 as_fn_set_status
$1
16897 # Portably unset VAR.
16900 { eval $1=; unset $1;}
16902 as_unset
=as_fn_unset
16903 # as_fn_append VAR VALUE
16904 # ----------------------
16905 # Append the text in VALUE to the end of the definition contained in VAR. Take
16906 # advantage of any shell optimizations that allow amortized linear growth over
16907 # repeated appends, instead of the typical quadratic growth present in naive
16909 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
16910 eval 'as_fn_append ()
16921 # as_fn_arith ARG...
16922 # ------------------
16923 # Perform arithmetic evaluation on the ARGs, and store the result in the
16924 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16925 # must be portable across $(()) and expr.
16926 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
16927 eval 'as_fn_arith ()
16934 as_val
=`expr "$@" || test $? -eq 1`
16939 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16940 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16946 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16947 as_basename
=basename
16952 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16958 as_me
=`$as_basename -- "$0" ||
16959 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16960 X"$0" : 'X\(//\)$' \| \
16961 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16963 sed '/^.*\/\([^/][^/]*\)\/*$/{
16977 # Avoid depending upon Character Ranges.
16978 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16979 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16980 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16981 as_cr_digits
='0123456789'
16982 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16984 ECHO_C
= ECHO_N
= ECHO_T
=
16985 case `echo -n x` in #(((((
16987 case `echo 'xy\c'` in
16988 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16990 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16997 rm -f conf$$ conf$$.exe conf$$.
file
16998 if test -d conf$$.dir
; then
16999 rm -f conf$$.dir
/conf$$.
file
17002 mkdir conf$$.dir
2>/dev
/null
17004 if (echo >conf$$.
file) 2>/dev
/null
; then
17005 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17007 # ... but there are two gotchas:
17008 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17009 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17010 # In both cases, we have to default to `cp -p'.
17011 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17013 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17021 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17022 rmdir conf$$.dir
2>/dev
/null
17027 # Create "$as_dir" as a directory, including parents if necessary.
17032 -*) as_dir
=.
/$as_dir;;
17034 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
17038 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17039 *) as_qdir
=$as_dir;;
17041 as_dirs
="'$as_qdir' $as_dirs"
17042 as_dir
=`$as_dirname -- "$as_dir" ||
17043 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17044 X"$as_dir" : 'X\(//\)[^/]' \| \
17045 X"$as_dir" : 'X\(//\)$' \| \
17046 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17047 $as_echo X"$as_dir" |
17048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17052 /^X\(\/\/\)[^/].*/{
17065 test -d "$as_dir" && break
17067 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
17068 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
17072 if mkdir
-p .
2>/dev
/null
; then
17073 as_mkdir_p
='mkdir -p "$as_dir"'
17075 test -d .
/-p && rmdir .
/-p
17079 if test -x / >/dev
/null
2>&1; then
17080 as_test_x
='test -x'
17082 if ls -dL / >/dev
/null
2>&1; then
17089 if test -d "$1"; then
17095 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17096 ???[sx]*):;;*)false;;esac;fi
17100 as_executable_p
=$as_test_x
17102 # Sed expression to map a string onto a valid CPP name.
17103 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17105 # Sed expression to map a string onto a valid variable name.
17106 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17110 ## ----------------------------------- ##
17111 ## Main body of $CONFIG_STATUS script. ##
17112 ## ----------------------------------- ##
17114 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
17116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17117 # Save the log message, to keep $0 and so on meaningful, and to
17118 # report actual input values of CONFIG_FILES etc. instead of their
17119 # values after options handling.
17121 This file was extended by $as_me, which was
17122 generated by GNU Autoconf 2.64. Invocation command line was
17124 CONFIG_FILES = $CONFIG_FILES
17125 CONFIG_HEADERS = $CONFIG_HEADERS
17126 CONFIG_LINKS = $CONFIG_LINKS
17127 CONFIG_COMMANDS = $CONFIG_COMMANDS
17130 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17135 case $ac_config_files in *"
17136 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
17139 case $ac_config_headers in *"
17140 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
17144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17145 # Files that config.status was made for.
17146 config_files="$ac_config_files"
17147 config_headers="$ac_config_headers"
17148 config_links="$ac_config_links"
17149 config_commands="$ac_config_commands"
17153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17155 \`$as_me' instantiates files and other configuration actions
17156 from templates according to the current configuration. Unless the files
17157 and actions are specified as TAGs, all are instantiated by default.
17159 Usage: $0 [OPTION]... [TAG]...
17161 -h, --help print this help, then exit
17162 -V, --version print version number and configuration settings, then exit
17163 -q, --quiet, --silent
17164 do not print progress messages
17165 -d, --debug don't remove temporary files
17166 --recheck update $as_me by reconfiguring in the same conditions
17167 --file=FILE[:TEMPLATE]
17168 instantiate the configuration file FILE
17169 --header=FILE[:TEMPLATE]
17170 instantiate the configuration header FILE
17172 Configuration files:
17175 Configuration headers:
17178 Configuration links:
17181 Configuration commands:
17184 Report bugs to the package provider."
17187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17190 configured by $0, generated by GNU Autoconf 2.64,
17191 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17193 Copyright (C) 2009 Free Software Foundation, Inc.
17194 This config.status script is free software; the Free Software Foundation
17195 gives unlimited permission to copy, distribute and modify it."
17201 test -n "\$AWK" || AWK=awk
17204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17205 # The default lists apply if the user does not specify any file.
17211 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17212 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17223 # Handling of the options.
17224 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17226 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17227 $as_echo "$ac_cs_version"; exit ;;
17228 --debug |
--debu |
--deb |
--de |
--d |
-d )
17230 --file |
--fil |
--fi |
--f )
17233 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17235 as_fn_append CONFIG_FILES
" '$ac_optarg'"
17236 ac_need_defaults
=false
;;
17237 --header |
--heade |
--head |
--hea )
17240 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17242 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
17243 ac_need_defaults
=false
;;
17245 # Conflict between --help and --header
17246 as_fn_error
"ambiguous option: \`$1'
17247 Try \`$0 --help' for more information.";;
17248 --help |
--hel |
-h )
17249 $as_echo "$ac_cs_usage"; exit ;;
17250 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17251 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17254 # This is an error.
17255 -*) as_fn_error
"unrecognized option: \`$1'
17256 Try \`$0 --help' for more information." ;;
17258 *) as_fn_append ac_config_targets
" $1"
17259 ac_need_defaults
=false
;;
17265 ac_configure_extra_args
=
17267 if $ac_cs_silent; then
17269 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17274 if \$ac_cs_recheck; then
17275 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17277 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17278 CONFIG_SHELL='$SHELL'
17279 export CONFIG_SHELL
17284 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17288 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17289 ## Running $as_me. ##
17295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17299 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17305 # Handling of arguments.
17306 for ac_config_target
in $ac_config_targets
17308 case $ac_config_target in
17309 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
17310 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
17311 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
17312 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
17313 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
17314 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
17315 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
17316 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
17317 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
17319 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17324 # If the user did not use the arguments to specify the items to instantiate,
17325 # then the envvar interface is used. Set only those that are not.
17326 # We use the long form for the default assignment because of an extremely
17327 # bizarre bug on SunOS 4.1.3.
17328 if $ac_need_defaults; then
17329 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17330 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17331 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
17332 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17335 # Have a temporary directory for convenience. Make it in the build tree
17336 # simply because there is no reason against having it here, and in addition,
17337 # creating and moving files from /tmp can sometimes cause problems.
17338 # Hook for its removal unless debugging.
17339 # Note that there is a small window in which the directory will not be cleaned:
17340 # after its creation but before its name has been assigned to `$tmp'.
17344 trap 'exit_status=$?
17345 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17347 trap 'as_fn_exit 1' 1 2 13 15
17349 # Create a (secure) tmp directory for tmp files.
17352 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17353 test -n "$tmp" && test -d "$tmp"
17356 tmp
=.
/conf$$
-$RANDOM
17357 (umask 077 && mkdir
"$tmp")
17358 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
17360 # Set up the scripts for CONFIG_FILES section.
17361 # No need to generate them if there are no CONFIG_FILES.
17362 # This happens for instance with `./config.status config.h'.
17363 if test -n "$CONFIG_FILES"; then
17365 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
17366 ac_cs_awk_getline
=:
17367 ac_cs_awk_pipe_init
=
17368 ac_cs_awk_read_file
='
17369 while ((getline aline < (F[key])) > 0)
17372 ac_cs_awk_pipe_fini
=
17374 ac_cs_awk_getline
=false
17375 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
17376 ac_cs_awk_read_file
='
17378 print "cat " F[key] " &&"
17379 '$ac_cs_awk_pipe_init
17380 # The final `:' finishes the AND list.
17381 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
17383 ac_cr
=`echo X | tr X '\015'`
17384 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17385 # But we know of no other shell where ac_cr would be empty at this
17386 # point, so we can use a bashism as a fallback.
17387 if test "x$ac_cr" = x
; then
17388 eval ac_cr
=\$
\'\\r
\'
17390 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17391 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17394 ac_cs_awk_cr
=$ac_cr
17397 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17400 # Create commands to substitute file output variables.
17402 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17403 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
17404 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
17407 } >conf$
$files.sh
&&
17408 . .
/conf$
$files.sh ||
17409 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
17410 rm -f conf$
$files.sh
17413 echo "cat >conf$$subs.awk <<_ACEOF" &&
17414 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17416 } >conf$$subs.sh ||
17417 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17418 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17420 for ac_last_try in false false false false false :; do
17421 . ./conf$$subs.sh ||
17422 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17424 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
17425 if test $ac_delim_n = $ac_delim_num; then
17427 elif $ac_last_try; then
17428 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17430 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17433 rm -f conf$$subs.sh
17435 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17436 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
17440 s/^/S["/; s
/!.
*/"]=/
17450 s/\(.\{148\}\).*/\1/
17452 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
17457 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17464 s/\(.\{148\}\).*/\1/
17466 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
17470 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17475 ' <conf$$subs.awk | sed '
17480 ' >>$CONFIG_STATUS || ac_write_fail=1
17481 rm -f conf$$subs.awk
17482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17484 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
17485 for (key in S) S_is_set[key] = 1
17487 \$ac_cs_awk_pipe_init
17491 nfields = split(line, field, "@
")
17493 len = length(field[1])
17494 for (i = 2; i < nfields; i++) {
17496 keylen = length(key)
17497 if (S_is_set[key]) {
17499 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17500 len += length(value) + length(field[++i])
17505 if (nfields == 3 && !substed) {
17507 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17508 \$ac_cs_awk_read_file
17514 \$ac_cs_awk_pipe_fini
17517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17518 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17519 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
17522 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
17523 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
17526 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17527 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
17528 # trailing colons and then remove the whole line if VPATH becomes empty
17529 # (actually we leave an empty line to preserve line numbers).
17530 if test "x
$srcdir" = x.; then
17531 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17532 s/:*\$(srcdir):*/:/
17533 s/:*\${srcdir}:*/:/
17535 s/^\([^=]*=[ ]*\):*/\1/
17541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17542 fi # test -n "$CONFIG_FILES"
17544 # Set up the scripts for CONFIG_HEADERS section.
17545 # No need to generate them if there are no CONFIG_HEADERS.
17546 # This happens for instance with `./config.status Makefile'.
17547 if test -n "$CONFIG_HEADERS"; then
17548 cat >"$tmp/defines.
awk" <<\_ACAWK ||
17552 # Transform confdefs.h into an awk script `defines.awk', embedded as
17553 # here-document in config.status, that substitutes the proper values into
17554 # config.h.in to produce config.h.
17556 # Create a delimiter string that does not exist in confdefs.h, to ease
17557 # handling of long lines.
17559 for ac_last_try in false false :; do
17560 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
17561 if test -z "$ac_t"; then
17563 elif $ac_last_try; then
17564 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
17566 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17570 # For the awk script, D is an array of macro values keyed by name,
17571 # likewise P contains macro parameters if any. Preserve backslash
17572 # newline sequences.
17574 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17576 s/.\{148\}/&'"$ac_delim"'/g
17579 s/^[ ]*#[ ]*define[ ][ ]*/ /
17586 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
17588 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
17592 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
17593 D["\
1"]=" \
3\\\\\\n
"\\/p
17595 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
17600 s/.\{148\}/&'"$ac_delim"'/g
17605 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
17608 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
17610 ' <confdefs.h | sed '
17611 s/'"$ac_delim"'/"\\\
17612 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17614 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17615 for (key in D) D_is_set[key] = 1
17618 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17620 split(line, arg, " ")
17621 if (arg[1] == "#") {
17625 defundef
= substr
(arg
[1], 2)
17628 split(mac1
, mac2
, "(") #)
17630 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
17631 if (D_is_set
[macro
]) {
17632 # Preserve the white space surrounding the "#".
17633 print prefix
"define", macro P
[macro
] D
[macro
]
17636 # Replace #undef with comments. This is necessary, for example,
17637 # in the case of _POSIX_SOURCE, which is predefined and required
17638 # on some systems where configure will not decide to define it.
17639 if (defundef
== "undef") {
17640 print
"/*", prefix defundef
, macro
, "*/"
17648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17649 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
17650 fi # test -n "$CONFIG_HEADERS"
17653 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17658 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17660 case $ac_mode$ac_tag in
17662 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
17663 :[FH
]-) ac_tag
=-:-;;
17664 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17681 -) ac_f
="$tmp/stdin";;
17682 *) # Look for the file first in the build tree, then in the source tree
17683 # (if the path is not absolute). The absolute path cannot be DOS-style,
17684 # because $ac_f cannot contain `:'.
17688 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17690 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
17692 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17693 as_fn_append ac_file_inputs
" '$ac_f'"
17696 # Let's still pretend it is `configure' which instantiates (i.e., don't
17697 # use $as_me), people would be surprised to read:
17698 # /* config.h. Generated by config.status. */
17699 configure_input
='Generated from '`
17700 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17702 if test x
"$ac_file" != x-
; then
17703 configure_input
="$ac_file. $configure_input"
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17705 $as_echo "$as_me: creating $ac_file" >&6;}
17707 # Neutralize special characters interpreted by sed in replacement strings.
17708 case $configure_input in #(
17709 *\
&* |
*\|
* |
*\\* )
17710 ac_sed_conf_input
=`$as_echo "$configure_input" |
17711 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17712 *) ac_sed_conf_input
=$configure_input;;
17716 *:-:* |
*:-) cat >"$tmp/stdin" \
17717 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
17722 ac_dir
=`$as_dirname -- "$ac_file" ||
17723 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17724 X"$ac_file" : 'X\(//\)[^/]' \| \
17725 X"$ac_file" : 'X\(//\)$' \| \
17726 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17727 $as_echo X"$ac_file" |
17728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17732 /^X\(\/\/\)[^/].*/{
17745 as_dir
="$ac_dir"; as_fn_mkdir_p
17749 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17751 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17752 # A ".." for each directory in $ac_dir_suffix.
17753 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17754 case $ac_top_builddir_sub in
17755 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17756 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17759 ac_abs_top_builddir
=$ac_pwd
17760 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17761 # for backward compatibility:
17762 ac_top_builddir
=$ac_top_build_prefix
17765 .
) # We are building in place.
17767 ac_top_srcdir
=$ac_top_builddir_sub
17768 ac_abs_top_srcdir
=$ac_pwd ;;
17769 [\\/]* | ?
:[\\/]* ) # Absolute name.
17770 ac_srcdir
=$srcdir$ac_dir_suffix;
17771 ac_top_srcdir
=$srcdir
17772 ac_abs_top_srcdir
=$srcdir ;;
17773 *) # Relative name.
17774 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17775 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17776 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17778 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17788 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17789 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
17793 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17794 # If the template does not know about datarootdir, expand it.
17795 # FIXME: This hack should be removed a few years after 2.60.
17796 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17807 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17808 *datarootdir
*) ac_datarootdir_seen
=yes;;
17809 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17811 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17813 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17814 ac_datarootdir_hack='
17815 s&@datadir@&$datadir&g
17816 s&@docdir@&$docdir&g
17817 s&@infodir@&$infodir&g
17818 s&@localedir@&$localedir&g
17819 s&@mandir@&$mandir&g
17820 s&\\\${datarootdir}&$datarootdir&g' ;;
17824 # Neutralize VPATH when `$srcdir' = `.'.
17825 # Shell code in configure.ac might set extrasub.
17826 # FIXME: do we really want to maintain this feature?
17827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17828 ac_sed_extra="$ac_vpsub
17831 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17833 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17834 s|@configure_input@|
$ac_sed_conf_input|
;t t
17835 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17836 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17837 s
&@srcdir@
&$ac_srcdir&;t t
17838 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17839 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17840 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17841 s
&@builddir@
&$ac_builddir&;t t
17842 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17843 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17844 s
&@INSTALL@
&$ac_INSTALL&;t t
17845 $ac_datarootdir_hack
17847 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17848 if $ac_cs_awk_getline; then
17849 $AWK -f "$tmp/subs.
awk"
17851 $AWK -f "$tmp/subs.
awk" | $SHELL
17853 || as_fn_error "could not create
$ac_file" "$LINENO" 5
17855 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17856 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
17857 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17859 which seems to be undefined. Please make sure it is defined." >&5
17860 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17861 which seems to be undefined. Please make sure it is defined." >&2;}
17865 -) cat "$tmp/out" && rm -f "$tmp/out";;
17866 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17868 || as_fn_error "could not create $ac_file" "$LINENO" 5
17874 if test x"$ac_file" != x-; then
17876 $as_echo "/* $configure_input */" \
17877 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17878 } >"$tmp/config.h" \
17879 || as_fn_error "could not create $ac_file" "$LINENO" 5
17880 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17882 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17885 mv "$tmp/config.h" "$ac_file" \
17886 || as_fn_error "could not create $ac_file" "$LINENO" 5
17889 $as_echo "/* $configure_input */" \
17890 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17891 || as_fn_error "could not create -" "$LINENO" 5
17899 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
17902 # Prefer the file from the source tree if names are identical.
17903 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17904 ac_source=$srcdir/$ac_source
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17908 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17910 if test ! -r "$ac_source"; then
17911 as_fn_error "$ac_source: file not found" "$LINENO" 5
17915 # Try a relative symlink, then a hard link, then a copy.
17917 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17918 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17920 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17921 ln "$ac_source" "$ac_file" 2>/dev/null ||
17922 cp -p "$ac_source" "$ac_file" ||
17923 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17926 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17927 $as_echo "$as_me: executing $ac_file commands" >&6;}
17932 case $ac_file$ac_mode in
17933 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
17934 "gcore":F) chmod +x gcore ;;
17936 case x$CONFIG_HEADERS in
17937 xconfig.h:config.in)
17942 case x$CONFIG_HEADERS in
17943 xconfig.h:config.in)
17948 case x$CONFIG_HEADERS in
17949 xconfig.h:config.in)
17953 "data-directory/Makefile":F)
17954 case x$CONFIG_HEADERS in
17955 xconfig.h:config.in)
17966 ac_clean_files=$ac_clean_files_save
17968 test $ac_write_fail = 0 ||
17969 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17972 # configure is writing to config.log, and then calls config.status.
17973 # config.status does its own redirection, appending to config.log.
17974 # Unfortunately, on DOS this fails, as config.log is still kept open
17975 # by configure, so config.status won't be able to
write to it
; its
17976 # output is simply discarded. So we exec the FD to /dev/null,
17977 # effectively closing config.log, so it can be properly (re)opened and
17978 # appended to by config.status. When coming back to configure, we
17979 # need to make the FD available again.
17980 if test "$no_create" != yes; then
17982 ac_config_status_args
=
17983 test "$silent" = yes &&
17984 ac_config_status_args
="$ac_config_status_args --quiet"
17986 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17988 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17989 # would make configure fail if this is the last instruction.
17990 $ac_cs_success || as_fn_exit $?
17994 # CONFIG_SUBDIRS section.
17996 if test "$no_recursion" != yes; then
17998 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17999 # so they do not pile up.
18000 ac_sub_configure_args
=
18002 eval "set x $ac_configure_args"
18006 if test -n "$ac_prev"; then
18011 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
18012 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
18013 ac_prev
=cache_file
;;
18014 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
18015 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
18018 --config-cache |
-C)
18020 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
18022 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
18024 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
18026 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
18028 --disable-option-checking)
18032 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18034 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
18038 # Always prepend --prefix to ensure using the same prefix
18039 # in subdir configurations.
18040 ac_arg
="--prefix=$prefix"
18042 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18044 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
18047 if test "$silent" = yes; then
18048 ac_sub_configure_args
="--silent $ac_sub_configure_args"
18051 # Always prepend --disable-option-checking to silence warnings, since
18052 # different subdirs can have different --enable and --with options.
18053 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
18056 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
18058 # Do not complain, so a configure script can configure whichever
18059 # parts of a large source tree are present.
18060 test -d "$srcdir/$ac_dir" ||
continue
18062 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
18063 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
18064 $as_echo "$ac_msg" >&6
18065 as_dir
="$ac_dir"; as_fn_mkdir_p
18069 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18071 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18072 # A ".." for each directory in $ac_dir_suffix.
18073 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18074 case $ac_top_builddir_sub in
18075 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18076 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18079 ac_abs_top_builddir
=$ac_pwd
18080 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18081 # for backward compatibility:
18082 ac_top_builddir
=$ac_top_build_prefix
18085 .
) # We are building in place.
18087 ac_top_srcdir
=$ac_top_builddir_sub
18088 ac_abs_top_srcdir
=$ac_pwd ;;
18089 [\\/]* | ?
:[\\/]* ) # Absolute name.
18090 ac_srcdir
=$srcdir$ac_dir_suffix;
18091 ac_top_srcdir
=$srcdir
18092 ac_abs_top_srcdir
=$srcdir ;;
18093 *) # Relative name.
18094 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18095 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18096 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18098 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18103 # Check for guested configure; otherwise get Cygnus style configure.
18104 if test -f "$ac_srcdir/configure.gnu"; then
18105 ac_sub_configure
=$ac_srcdir/configure.gnu
18106 elif test -f "$ac_srcdir/configure"; then
18107 ac_sub_configure
=$ac_srcdir/configure
18108 elif test -f "$ac_srcdir/configure.in"; then
18109 # This should be Cygnus configure.
18110 ac_sub_configure
=$ac_aux_dir/configure
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
18113 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18117 # The recursion is here.
18118 if test -n "$ac_sub_configure"; then
18119 # Make the cache file name correct relative to the subdirectory.
18120 case $cache_file in
18121 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
18122 *) # Relative name.
18123 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
18126 { $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
18127 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18128 # The eval makes quoting arguments work.
18129 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
18130 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
18131 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
18137 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18139 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}