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>
593 enable_option_checking
=no
594 ac_subst_vars
='am__EXEEXT_FALSE
657 TARGET_SYSTEM_ROOT_DEFINE
671 READLINE_TEXI_INCFLAG
702 INSTALL_STRIP_PROGRAM
725 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
761 NEXT_AS_FIRST_DIRECTIVE_STRING_H
771 HAVE_SIGNED_SIG_ATOMIC_T
774 BITSIZEOF_SIG_ATOMIC_T
780 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
784 HAVE_UNSIGNED_LONG_LONG_INT
786 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
789 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
794 APPLE_UNIVERSAL_BUILD
860 GL_COND_LIBTOOL_FALSE
905 MAINTAINER_MODE_FALSE
934 program_transform_name
945 ac_subst_files
='host_makefile_frag'
947 enable_option_checking
948 enable_maintainer_mode
951 enable_dependency_tracking
952 with_separate_debug_dir
954 with_relocated_sources
980 enable_build_warnings
981 enable_gdb_build_warnings
989 ac_precious_vars
='build_alias
1001 ac_subdirs_all
='testsuite
1006 # Initialize some variables set by options.
1008 ac_init_version
=false
1009 ac_unrecognized_opts
=
1010 ac_unrecognized_sep
=
1011 # The variables have the same names as the options, with
1012 # dashes changed to underlines.
1013 cache_file
=/dev
/null
1020 program_transform_name
=s
,x
,x
,
1028 # Installation directory options.
1029 # These are left unexpanded so users can "make install exec_prefix=/foo"
1030 # and all the variables that are supposed to be based on exec_prefix
1031 # by default will actually change.
1032 # Use braces instead of parens because sh, perl, etc. also accept them.
1033 # (The list follows the same order as the GNU Coding Standards.)
1034 bindir
='${exec_prefix}/bin'
1035 sbindir
='${exec_prefix}/sbin'
1036 libexecdir
='${exec_prefix}/libexec'
1037 datarootdir
='${prefix}/share'
1038 datadir
='${datarootdir}'
1039 sysconfdir
='${prefix}/etc'
1040 sharedstatedir
='${prefix}/com'
1041 localstatedir
='${prefix}/var'
1042 includedir
='${prefix}/include'
1043 oldincludedir
='/usr/include'
1044 docdir
='${datarootdir}/doc/${PACKAGE}'
1045 infodir
='${datarootdir}/info'
1050 libdir
='${exec_prefix}/lib'
1051 localedir
='${datarootdir}/locale'
1052 mandir
='${datarootdir}/man'
1058 # If the previous option needs an argument, assign it.
1059 if test -n "$ac_prev"; then
1060 eval $ac_prev=\
$ac_option
1066 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1070 # Accept the important Cygnus configure options, so we can diagnose typos.
1072 case $ac_dashdash$ac_option in
1076 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1078 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1079 bindir
=$ac_optarg ;;
1081 -build |
--build |
--buil |
--bui |
--bu)
1082 ac_prev
=build_alias
;;
1083 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1084 build_alias
=$ac_optarg ;;
1086 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1087 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1088 ac_prev
=cache_file
;;
1089 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1090 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1091 cache_file
=$ac_optarg ;;
1093 --config-cache |
-C)
1094 cache_file
=config.cache
;;
1096 -datadir |
--datadir |
--datadi |
--datad)
1098 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1099 datadir
=$ac_optarg ;;
1101 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1102 |
--dataroo |
--dataro |
--datar)
1103 ac_prev
=datarootdir
;;
1104 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1105 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1106 datarootdir
=$ac_optarg ;;
1108 -disable-* |
--disable-*)
1109 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1112 as_fn_error
"invalid feature name: $ac_useropt"
1113 ac_useropt_orig
=$ac_useropt
1114 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115 case $ac_user_opts in
1117 "enable_
$ac_useropt"
1119 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1120 ac_unrecognized_sep
=', ';;
1122 eval enable_
$ac_useropt=no
;;
1124 -docdir |
--docdir |
--docdi |
--doc |
--do)
1126 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1127 docdir
=$ac_optarg ;;
1129 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1131 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1132 dvidir
=$ac_optarg ;;
1134 -enable-* |
--enable-*)
1135 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1138 as_fn_error
"invalid feature name: $ac_useropt"
1139 ac_useropt_orig
=$ac_useropt
1140 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1143 "enable_
$ac_useropt"
1145 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1146 ac_unrecognized_sep
=', ';;
1148 eval enable_
$ac_useropt=\
$ac_optarg ;;
1150 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1151 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1152 |
--exec |
--exe |
--ex)
1153 ac_prev
=exec_prefix
;;
1154 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1155 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1156 |
--exec=* |
--exe=* |
--ex=*)
1157 exec_prefix
=$ac_optarg ;;
1159 -gas |
--gas |
--ga |
--g)
1160 # Obsolete; use --with-gas.
1163 -help |
--help |
--hel |
--he |
-h)
1164 ac_init_help
=long
;;
1165 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1166 ac_init_help
=recursive
;;
1167 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1168 ac_init_help
=short
;;
1170 -host |
--host |
--hos |
--ho)
1171 ac_prev
=host_alias
;;
1172 -host=* |
--host=* |
--hos=* |
--ho=*)
1173 host_alias
=$ac_optarg ;;
1175 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1177 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1179 htmldir
=$ac_optarg ;;
1181 -includedir |
--includedir |
--includedi |
--included |
--include \
1182 |
--includ |
--inclu |
--incl |
--inc)
1183 ac_prev
=includedir
;;
1184 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1185 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1186 includedir
=$ac_optarg ;;
1188 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1190 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1191 infodir
=$ac_optarg ;;
1193 -libdir |
--libdir |
--libdi |
--libd)
1195 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1196 libdir
=$ac_optarg ;;
1198 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1199 |
--libexe |
--libex |
--libe)
1200 ac_prev
=libexecdir
;;
1201 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1202 |
--libexe=* |
--libex=* |
--libe=*)
1203 libexecdir
=$ac_optarg ;;
1205 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1206 ac_prev
=localedir
;;
1207 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1208 localedir
=$ac_optarg ;;
1210 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1211 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1212 ac_prev
=localstatedir
;;
1213 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1214 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1215 localstatedir
=$ac_optarg ;;
1217 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1219 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1220 mandir
=$ac_optarg ;;
1222 -nfp |
--nfp |
--nf)
1223 # Obsolete; use --without-fp.
1226 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1227 |
--no-cr |
--no-c |
-n)
1230 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1231 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1234 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1235 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1236 |
--oldin |
--oldi |
--old |
--ol |
--o)
1237 ac_prev
=oldincludedir
;;
1238 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1239 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1240 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1241 oldincludedir
=$ac_optarg ;;
1243 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1245 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1246 prefix
=$ac_optarg ;;
1248 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1249 |
--program-pre |
--program-pr |
--program-p)
1250 ac_prev
=program_prefix
;;
1251 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1252 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1253 program_prefix
=$ac_optarg ;;
1255 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1256 |
--program-suf |
--program-su |
--program-s)
1257 ac_prev
=program_suffix
;;
1258 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1259 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1260 program_suffix
=$ac_optarg ;;
1262 -program-transform-name |
--program-transform-name \
1263 |
--program-transform-nam |
--program-transform-na \
1264 |
--program-transform-n |
--program-transform- \
1265 |
--program-transform |
--program-transfor \
1266 |
--program-transfo |
--program-transf \
1267 |
--program-trans |
--program-tran \
1268 |
--progr-tra |
--program-tr |
--program-t)
1269 ac_prev
=program_transform_name
;;
1270 -program-transform-name=* |
--program-transform-name=* \
1271 |
--program-transform-nam=* |
--program-transform-na=* \
1272 |
--program-transform-n=* |
--program-transform-=* \
1273 |
--program-transform=* |
--program-transfor=* \
1274 |
--program-transfo=* |
--program-transf=* \
1275 |
--program-trans=* |
--program-tran=* \
1276 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1277 program_transform_name
=$ac_optarg ;;
1279 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1281 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1282 pdfdir
=$ac_optarg ;;
1284 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1286 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1289 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1290 |
-silent |
--silent |
--silen |
--sile |
--sil)
1293 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1295 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1297 sbindir
=$ac_optarg ;;
1299 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1300 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1301 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1303 ac_prev
=sharedstatedir
;;
1304 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1305 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1306 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1308 sharedstatedir
=$ac_optarg ;;
1310 -site |
--site |
--sit)
1312 -site=* |
--site=* |
--sit=*)
1315 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1317 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1318 srcdir
=$ac_optarg ;;
1320 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1321 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1322 ac_prev
=sysconfdir
;;
1323 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1324 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1325 sysconfdir
=$ac_optarg ;;
1327 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1328 ac_prev
=target_alias
;;
1329 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1330 target_alias
=$ac_optarg ;;
1332 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1335 -version |
--version |
--versio |
--versi |
--vers |
-V)
1336 ac_init_version
=: ;;
1339 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1340 # Reject names that are not valid shell variable names.
1341 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1342 as_fn_error
"invalid package name: $ac_useropt"
1343 ac_useropt_orig
=$ac_useropt
1344 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1345 case $ac_user_opts in
1349 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1350 ac_unrecognized_sep
=', ';;
1352 eval with_
$ac_useropt=\
$ac_optarg ;;
1354 -without-* |
--without-*)
1355 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1356 # Reject names that are not valid shell variable names.
1357 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1358 as_fn_error
"invalid package name: $ac_useropt"
1359 ac_useropt_orig
=$ac_useropt
1360 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1361 case $ac_user_opts in
1365 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1366 ac_unrecognized_sep
=', ';;
1368 eval with_
$ac_useropt=no
;;
1371 # Obsolete; use --with-x.
1374 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1375 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1376 ac_prev
=x_includes
;;
1377 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1378 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1379 x_includes
=$ac_optarg ;;
1381 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1382 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1383 ac_prev
=x_libraries
;;
1384 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1385 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1386 x_libraries
=$ac_optarg ;;
1388 -*) as_fn_error
"unrecognized option: \`$ac_option'
1389 Try \`$0 --help' for more information."
1393 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1394 # Reject names that are not valid shell variable names.
1395 case $ac_envvar in #(
1396 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1397 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1399 eval $ac_envvar=\
$ac_optarg
1400 export $ac_envvar ;;
1403 # FIXME: should be removed in autoconf 3.0.
1404 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1405 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1406 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1407 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1413 if test -n "$ac_prev"; then
1414 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1415 as_fn_error
"missing argument to $ac_option"
1418 if test -n "$ac_unrecognized_opts"; then
1419 case $enable_option_checking in
1421 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1422 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1426 # Check all directory arguments for consistency.
1427 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1428 datadir sysconfdir sharedstatedir localstatedir includedir \
1429 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1430 libdir localedir mandir
1432 eval ac_val
=\$
$ac_var
1433 # Remove trailing slashes.
1436 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1437 eval $ac_var=\
$ac_val;;
1439 # Be sure to have absolute directory names.
1441 [\\/$
]* | ?
:[\\/]* ) continue;;
1442 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1444 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1447 # There might be people who depend on the old broken behavior: `$host'
1448 # used to hold the argument of --host etc.
1449 # FIXME: To remove some day.
1452 target
=$target_alias
1454 # FIXME: To remove some day.
1455 if test "x$host_alias" != x
; then
1456 if test "x$build_alias" = x
; then
1457 cross_compiling
=maybe
1458 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1459 If a cross compiler is detected then cross compile mode will be used." >&2
1460 elif test "x$build_alias" != "x$host_alias"; then
1466 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1468 test "$silent" = yes && exec 6>/dev
/null
1471 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1472 ac_ls_di
=`ls -di .` &&
1473 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1474 as_fn_error
"working directory cannot be determined"
1475 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1476 as_fn_error
"pwd does not report name of working directory"
1479 # Find the source files, if location was not specified.
1480 if test -z "$srcdir"; then
1481 ac_srcdir_defaulted
=yes
1482 # Try the directory containing this script, then the parent directory.
1483 ac_confdir
=`$as_dirname -- "$as_myself" ||
1484 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1485 X"$as_myself" : 'X\(//\)[^/]' \| \
1486 X"$as_myself" : 'X\(//\)$' \| \
1487 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1488 $as_echo X"$as_myself" |
1489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1507 if test ! -r "$srcdir/$ac_unique_file"; then
1511 ac_srcdir_defaulted
=no
1513 if test ! -r "$srcdir/$ac_unique_file"; then
1514 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1515 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1517 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1519 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1521 # When building in place, set srcdir=.
1522 if test "$ac_abs_confdir" = "$ac_pwd"; then
1525 # Remove unnecessary trailing slashes from srcdir.
1526 # Double slashes in file names in object file debugging info
1527 # mess up M-x gdb in Emacs.
1529 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1531 for ac_var
in $ac_precious_vars; do
1532 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1533 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1534 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1535 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1539 # Report the --help message.
1541 if test "$ac_init_help" = "long"; then
1542 # Omit some internal or obsolete options to make the list less imposing.
1543 # This message is too long to be a string in the A/UX 3.1 sh.
1545 \`configure' configures this package to adapt to many kinds of systems.
1547 Usage: $0 [OPTION]... [VAR=VALUE]...
1549 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1550 VAR=VALUE. See below for descriptions of some of the useful variables.
1552 Defaults for the options are specified in brackets.
1555 -h, --help display this help and exit
1556 --help=short display options specific to this package
1557 --help=recursive display the short help of all the included packages
1558 -V, --version display version information and exit
1559 -q, --quiet, --silent do not print \`checking...' messages
1560 --cache-file=FILE cache test results in FILE [disabled]
1561 -C, --config-cache alias for \`--cache-file=config.cache'
1562 -n, --no-create do not create output files
1563 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1565 Installation directories:
1566 --prefix=PREFIX install architecture-independent files in PREFIX
1567 [$ac_default_prefix]
1568 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1571 By default, \`make install' will install all the files in
1572 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1573 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1574 for instance \`--prefix=\$HOME'.
1576 For better control, use the options below.
1578 Fine tuning of the installation directories:
1579 --bindir=DIR user executables [EPREFIX/bin]
1580 --sbindir=DIR system admin executables [EPREFIX/sbin]
1581 --libexecdir=DIR program executables [EPREFIX/libexec]
1582 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1583 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1584 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1585 --libdir=DIR object code libraries [EPREFIX/lib]
1586 --includedir=DIR C header files [PREFIX/include]
1587 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1588 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1589 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1590 --infodir=DIR info documentation [DATAROOTDIR/info]
1591 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1592 --mandir=DIR man documentation [DATAROOTDIR/man]
1593 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1594 --htmldir=DIR html documentation [DOCDIR]
1595 --dvidir=DIR dvi documentation [DOCDIR]
1596 --pdfdir=DIR pdf documentation [DOCDIR]
1597 --psdir=DIR ps documentation [DOCDIR]
1603 --program-prefix=PREFIX prepend PREFIX to installed program names
1604 --program-suffix=SUFFIX append SUFFIX to installed program names
1605 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1608 --x-includes=DIR X include files are
in DIR
1609 --x-libraries=DIR X library files are
in DIR
1612 --build=BUILD configure
for building on BUILD
[guessed
]
1613 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1614 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1618 if test -n "$ac_init_help"; then
1623 --disable-option-checking ignore unrecognized
--enable/--with options
1624 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1625 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1626 --enable-maintainer-mode enable make rules and dependencies not useful
1627 (and sometimes confusing
) to the casual installer
1628 --enable-plugins Enable support
for plugins
(defaults no
)
1629 --disable-largefile omit support
for large files
1630 --disable-dependency-tracking speeds up one-time build
1631 --enable-dependency-tracking do not reject slow dependency extractors
1632 --enable-targets=TARGETS
1633 alternative target configurations
1634 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1635 --disable-gdbcli disable command-line interface
(CLI
)
1636 --disable-gdbmi disable machine-interface
(MI
)
1637 --enable-tui enable full-screen terminal user interface
(TUI
)
1638 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1639 --enable-profiling enable profiling of GDB
1640 --disable-rpath do not hardcode runtime library paths
1641 --enable-werror treat compile warnings as errors
1642 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1643 --enable-gdb-build-warnings
1644 enable GDB specific build-time compiler warnings
if
1646 --enable-sim link gdb with simulator
1647 --enable-multi-ice build the multi-ice-gdb-server
1648 --enable-gdbserver automatically build gdbserver
(yes
/no
/auto
, default
1652 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1653 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1654 --with-separate-debug-dir=PATH
1655 look for global separate debug info
in this path
1657 --with-gdb-datadir=PATH
look for global separate data files
in this path
1659 --with-relocated-sources=PATH
1660 automatically relocate this path
for source files
1661 --with-libunwind use libunwind frame unwinding support
1662 --with-curses use the curses library instead of the termcap
1664 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1665 --with-bugurl=URL Direct users to URL to report a bug
1666 --with-zlib include zlib support
(auto
/yes
/no
) default
=auto
1667 --with-libiconv-prefix=DIR
1668 search
for libiconv
in DIR
/include and DIR
/lib
1669 --with-iconv-bin=PATH specify where to
find the
iconv program
1670 --with-system-readline use installed readline library
1671 --with-jit-reader-dir=PATH
1672 directory to load the JIT readers from
1673 --with-expat include expat support
(auto
/yes
/no
)
1674 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1675 --with-libexpat-prefix[=DIR
] search
for libexpat
in DIR
/include and DIR
/lib
1676 --without-libexpat-prefix don
't search for libexpat in includedir and libdir
1677 --with-python[=PYTHON] include python support
1678 (auto/yes/no/<python-program>)
1679 --without-included-regex
1680 don't use included regex
; this is the default on
1681 systems with version
2 of the GNU C library
(use
1682 with caution on other system
)
1683 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1684 --with-system-gdbinit=PATH
1685 automatically load a system-wide gdbinit
file
1686 --with-tcl directory containing tcl configuration
(tclConfig.sh
)
1687 --with-tk directory containing tk configuration
(tkConfig.sh
)
1688 --with-x use the X Window System
1690 Some influential environment variables
:
1691 CC C compiler
command
1692 CFLAGS C compiler flags
1693 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1694 nonstandard directory
<lib dir
>
1695 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1696 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1697 you have headers
in a nonstandard directory
<include dir
>
1699 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1700 the first program found out of: `bison
-y', `byacc', `yacc'.
1701 YFLAGS The list of arguments that will be passed by default to $YACC.
1702 This script will default YFLAGS to the empty string to avoid a
1703 default value of `-d' given by some make applications.
1704 XMKMF Path to xmkmf, Makefile generator for X Window System
1706 Use these variables to override the choices made by `configure' or to
help
1707 it to
find libraries and programs with nonstandard names
/locations.
1709 Report bugs to the package provider.
1714 if test "$ac_init_help" = "recursive"; then
1715 # If there are subdirs, report their specific --help.
1716 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1717 test -d "$ac_dir" ||
1718 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1723 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1725 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1726 # A ".." for each directory in $ac_dir_suffix.
1727 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1728 case $ac_top_builddir_sub in
1729 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1730 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1733 ac_abs_top_builddir
=$ac_pwd
1734 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1735 # for backward compatibility:
1736 ac_top_builddir
=$ac_top_build_prefix
1739 .
) # We are building in place.
1741 ac_top_srcdir
=$ac_top_builddir_sub
1742 ac_abs_top_srcdir
=$ac_pwd ;;
1743 [\\/]* | ?
:[\\/]* ) # Absolute name.
1744 ac_srcdir
=$srcdir$ac_dir_suffix;
1745 ac_top_srcdir
=$srcdir
1746 ac_abs_top_srcdir
=$srcdir ;;
1748 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1749 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1750 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1752 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1754 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1755 # Check for guested configure.
1756 if test -f "$ac_srcdir/configure.gnu"; then
1758 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1759 elif test -f "$ac_srcdir/configure"; then
1761 $SHELL "$ac_srcdir/configure" --help=recursive
1763 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1765 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1769 test -n "$ac_init_help" && exit $ac_status
1770 if $ac_init_version; then
1773 generated by GNU Autoconf
2.64
1775 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1776 This configure
script is free software
; the Free Software Foundation
1777 gives unlimited permission to copy
, distribute and modify it.
1782 ## ------------------------ ##
1783 ## Autoconf initialization. ##
1784 ## ------------------------ ##
1786 # ac_fn_c_try_compile LINENO
1787 # --------------------------
1788 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1789 ac_fn_c_try_compile
()
1791 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1792 rm -f conftest.
$ac_objext
1793 if { { ac_try
="$ac_compile"
1795 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_compile") 2>conftest.err
1802 if test -s conftest.err; then
1803 grep -v '^ *+' conftest.err >conftest.er1
1804 cat conftest.er1 >&5
1805 mv -f conftest.er1 conftest.err
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; } && {
1809 test -z "$ac_c_werror_flag" ||
1810 test ! -s conftest.err
1811 } && test -s conftest.$ac_objext; then :
1814 $as_echo "$as_me: failed program was:" >&5
1815 sed 's/^/| /' conftest.$ac_ext >&5
1819 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1822 } # ac_fn_c_try_compile
1824 # ac_fn_c_try_cpp LINENO
1825 # ----------------------
1826 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 if { { ac_try="$ac_cpp conftest.$ac_ext"
1832 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1833 *) ac_try_echo
=$ac_try;;
1835 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836 $as_echo "$ac_try_echo"; } >&5
1837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1839 if test -s conftest.err
; then
1840 grep -v '^ *+' conftest.err
>conftest.er1
1841 cat conftest.er1
>&5
1842 mv -f conftest.er1 conftest.err
1844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1845 test $ac_status = 0; } >/dev
/null
&& {
1846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1847 test ! -s conftest.err
1851 $as_echo "$as_me: failed program was:" >&5
1852 sed 's/^/| /' conftest.
$ac_ext >&5
1856 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1861 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1862 # -------------------------------------------------------
1863 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1864 # the include files in INCLUDES and setting the cache variable VAR
1866 ac_fn_c_check_header_mongrel
()
1868 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1869 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871 $as_echo_n "checking for $2... " >&6; }
1872 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1873 $as_echo_n "(cached) " >&6
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877 $as_echo "$ac_res" >&6; }
1879 # Is the header compilable?
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1881 $as_echo_n "checking $2 usability... " >&6; }
1882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h. */
1887 if ac_fn_c_try_compile
"$LINENO"; then :
1888 ac_header_compiler
=yes
1890 ac_header_compiler
=no
1892 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1894 $as_echo "$ac_header_compiler" >&6; }
1896 # Is the header present?
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1898 $as_echo_n "checking $2 presence... " >&6; }
1899 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1900 /* end confdefs.h. */
1903 if ac_fn_c_try_cpp
"$LINENO"; then :
1904 ac_header_preproc
=yes
1906 ac_header_preproc
=no
1908 rm -f conftest.err conftest.
$ac_ext
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1910 $as_echo "$ac_header_preproc" >&6; }
1912 # So? What about this header?
1913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1916 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1918 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1922 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1924 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1926 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1928 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1930 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1934 $as_echo_n "checking for $2... " >&6; }
1935 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1936 $as_echo_n "(cached) " >&6
1938 eval "$3=\$ac_header_compiler"
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942 $as_echo "$ac_res" >&6; }
1944 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1946 } # ac_fn_c_check_header_mongrel
1948 # ac_fn_c_try_run LINENO
1949 # ----------------------
1950 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1951 # that executables *can* be run.
1954 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1955 if { { ac_try
="$ac_link"
1957 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1958 *) ac_try_echo=$ac_try;;
1960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961 $as_echo "$ac_try_echo"; } >&5
1962 (eval "$ac_link") 2>&5
1964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1965 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1966 { { case "(($ac_try" in
1967 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1968 *) ac_try_echo
=$ac_try;;
1970 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971 $as_echo "$ac_try_echo"; } >&5
1972 (eval "$ac_try") 2>&5
1974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1975 test $ac_status = 0; }; }; then :
1978 $as_echo "$as_me: program exited with status $ac_status" >&5
1979 $as_echo "$as_me: failed program was:" >&5
1980 sed 's/^/| /' conftest.
$ac_ext >&5
1982 ac_retval
=$ac_status
1984 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1985 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1990 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1991 # -------------------------------------------------------
1992 # Tests whether HEADER exists and can be compiled using the include files in
1993 # INCLUDES, setting the cache variable VAR accordingly.
1994 ac_fn_c_check_header_compile
()
1996 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1998 $as_echo_n "checking for $2... " >&6; }
1999 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2000 $as_echo_n "(cached) " >&6
2002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h. */
2007 if ac_fn_c_try_compile
"$LINENO"; then :
2012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016 $as_echo "$ac_res" >&6; }
2017 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2019 } # ac_fn_c_check_header_compile
2021 # ac_fn_c_try_link LINENO
2022 # -----------------------
2023 # Try to link conftest.$ac_ext, and return whether this succeeded.
2026 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2027 rm -f conftest.
$ac_objext conftest
$ac_exeext
2028 if { { ac_try
="$ac_link"
2030 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2031 *) ac_try_echo=$ac_try;;
2033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2034 $as_echo "$ac_try_echo"; } >&5
2035 (eval "$ac_link") 2>conftest.err
2037 if test -s conftest.err; then
2038 grep -v '^ *+' conftest.err >conftest.er1
2039 cat conftest.er1 >&5
2040 mv -f conftest.er1 conftest.err
2042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2043 test $ac_status = 0; } && {
2044 test -z "$ac_c_werror_flag" ||
2045 test ! -s conftest.err
2046 } && test -s conftest$ac_exeext && {
2047 test "$cross_compiling" = yes ||
2048 $as_test_x conftest$ac_exeext
2052 $as_echo "$as_me: failed program was:" >&5
2053 sed 's/^/| /' conftest.$ac_ext >&5
2057 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2058 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2059 # interfere with the next link command; also delete a directory that is
2060 # left behind by Apple's compiler. We do this before executing the actions.
2061 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2062 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2065 } # ac_fn_c_try_link
2067 # ac_fn_c_check_func LINENO FUNC VAR
2068 # ----------------------------------
2069 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2070 ac_fn_c_check_func ()
2072 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2074 $as_echo_n "checking for $2... " >&6; }
2075 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2076 $as_echo_n "(cached) " >&6
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2080 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2082 #define $2 innocuous_$2
2084 /* System header to define __stub macros and hopefully few prototypes,
2085 which can conflict with char $2 (); below.
2086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2087 <limits.h> exists even on freestanding compilers. */
2090 # include <limits.h>
2092 # include <assert.h>
2097 /* Override any GCC internal prototype to avoid an error.
2098 Use char because int might match the return type of a GCC
2099 builtin and then its argument prototype would still apply. */
2104 /* The GNU C library defines this for functions which it implements
2105 to always fail with ENOSYS. Some functions are actually named
2106 something starting with __ and the normal name is an alias. */
2107 #if defined __stub_$2 || defined __stub___$2
2119 if ac_fn_c_try_link "$LINENO"; then :
2124 rm -f core conftest.err conftest.$ac_objext \
2125 conftest$ac_exeext conftest.$ac_ext
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2129 $as_echo "$ac_res" >&6; }
2130 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2132 } # ac_fn_c_check_func
2134 # ac_fn_c_check_decl LINENO SYMBOL VAR
2135 # ------------------------------------
2136 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2137 ac_fn_c_check_decl ()
2139 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2140 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2141 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2143 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2144 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2145 $as_echo_n "(cached) " >&6
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2153 #ifndef $as_decl_name
2155 (void) $as_decl_use;
2157 (void) $as_decl_name;
2165 if ac_fn_c_try_compile "$LINENO"; then :
2170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2174 $as_echo "$ac_res" >&6; }
2175 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2177 } # ac_fn_c_check_decl
2179 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2180 # --------------------------------------------
2181 # Tries to find the compile-time value of EXPR in a program that includes
2182 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2184 ac_fn_c_compute_int ()
2186 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2187 if test "$cross_compiling" = yes; then
2188 # Depending upon the size, compute the lo and hi bounds.
2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190 /* end confdefs.h. */
2195 static int test_array [1 - 2 * !(($2) >= 0)];
2202 if ac_fn_c_try_compile "$LINENO"; then :
2205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2206 /* end confdefs.h. */
2211 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2218 if ac_fn_c_try_compile "$LINENO"; then :
2219 ac_hi=$ac_mid; break
2221 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2222 if test $ac_lo -le $ac_mid; then
2226 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232 /* end confdefs.h. */
2237 static int test_array [1 - 2 * !(($2) < 0)];
2244 if ac_fn_c_try_compile "$LINENO"; then :
2247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h. */
2253 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2260 if ac_fn_c_try_compile "$LINENO"; then :
2261 ac_lo=$ac_mid; break
2263 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2264 if test $ac_mid -le $ac_hi; then
2268 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2278 # Binary search between lo and hi bounds.
2279 while test "x$ac_lo" != "x$ac_hi"; do
2280 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282 /* end confdefs.h. */
2287 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2294 if ac_fn_c_try_compile "$LINENO"; then :
2297 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2302 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2307 /* end confdefs.h. */
2309 static long int longval () { return $2; }
2310 static unsigned long int ulongval () { return $2; }
2317 FILE *f = fopen ("conftest.val", "w");
2322 long int i = longval ();
2325 fprintf (f, "%ld", i);
2329 unsigned long int i = ulongval ();
2332 fprintf (f, "%lu", i);
2334 /* Do not output a trailing newline, as this causes \r\n confusion
2335 on some platforms. */
2336 return ferror (f) || fclose (f) != 0;
2342 if ac_fn_c_try_run "$LINENO"; then :
2343 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2348 conftest.$ac_objext conftest.beam conftest.$ac_ext
2352 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2355 } # ac_fn_c_compute_int
2357 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2358 # ----------------------------------------------------
2359 # Tries to find if the field MEMBER exists in type AGGR, after including
2360 # INCLUDES, setting cache variable VAR accordingly.
2361 ac_fn_c_check_member ()
2363 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2365 $as_echo_n "checking for $2.$3... " >&6; }
2366 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2367 $as_echo_n "(cached) " >&6
2369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2370 /* end confdefs.h. */
2382 if ac_fn_c_try_compile "$LINENO"; then :
2385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2386 /* end confdefs.h. */
2392 if (sizeof ac_aggr.$3)
2398 if ac_fn_c_try_compile "$LINENO"; then :
2403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2409 $as_echo "$ac_res" >&6; }
2410 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2412 } # ac_fn_c_check_member
2414 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2415 # -------------------------------------------
2416 # Tests whether TYPE exists after having included INCLUDES, setting cache
2417 # variable VAR accordingly.
2418 ac_fn_c_check_type ()
2420 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2422 $as_echo_n "checking for $2... " >&6; }
2423 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2424 $as_echo_n "(cached) " >&6
2427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h. */
2439 if ac_fn_c_try_compile "$LINENO"; then :
2440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2441 /* end confdefs.h. */
2452 if ac_fn_c_try_compile "$LINENO"; then :
2457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2463 $as_echo "$ac_res" >&6; }
2464 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2466 } # ac_fn_c_check_type
2467 cat >config.log <<_ACEOF
2468 This file contains any messages produced by compilers while
2469 running configure, to aid debugging if configure makes a mistake.
2471 It was created by $as_me, which was
2472 generated by GNU Autoconf 2.64. Invocation command line was
2484 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2485 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2486 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2487 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2488 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2490 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2491 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2493 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2494 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2495 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2496 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2497 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2498 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2499 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 test -z "$as_dir" && as_dir=.
2508 $as_echo "PATH: $as_dir"
2524 # Keep a trace of the command line.
2525 # Strip out --no-create and --no-recursion so they do not pile up.
2526 # Strip out --silent because we don't want to record it for future runs.
2527 # Also quote any args containing shell meta-characters.
2528 # Make two passes to allow for proper duplicate-argument suppression.
2532 ac_must_keep_next=false
2538 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2540 | -silent | --silent | --silen | --sile | --sil)
2543 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2546 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2548 as_fn_append ac_configure_args1 " '$ac_arg'"
2549 if test $ac_must_keep_next = true; then
2550 ac_must_keep_next=false # Got value, back to normal.
2553 *=* | --config-cache | -C | -disable-* | --disable-* \
2554 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2555 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2556 | -with-* | --with-* | -without-* | --without-* | --x)
2557 case "$ac_configure_args0 " in
2558 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2561 -* ) ac_must_keep_next=true ;;
2564 as_fn_append ac_configure_args " '$ac_arg'"
2569 { ac_configure_args0=; unset ac_configure_args0;}
2570 { ac_configure_args1=; unset ac_configure_args1;}
2572 # When interrupted or exit'd, cleanup temporary files, and complete
2573 # config.log. We remove comments because anyway the quotes in there
2574 # would cause problems or look ugly.
2575 # WARNING: Use '\'' to represent an apostrophe within the trap.
2576 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2577 trap 'exit_status=$?
2578 # Save into config.log some information that might help in debugging.
2583 ## ---------------- ##
2584 ## Cache variables. ##
2585 ## ---------------- ##
2588 # The following way of writing the cache mishandles newlines in values,
2590 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2591 eval ac_val=\$$ac_var
2595 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2596 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2599 _ | IFS | as_nl) ;; #(
2600 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2601 *) { eval $ac_var=; unset $ac_var;} ;;
2606 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2607 *${as_nl}ac_space=\ *)
2609 "s/'\''/'\''\\\\'\'''\''/g;
2610 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2613 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2621 ## ----------------- ##
2622 ## Output variables. ##
2623 ## ----------------- ##
2626 for ac_var in $ac_subst_vars
2628 eval ac_val=\$$ac_var
2630 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2632 $as_echo "$ac_var='\''$ac_val'\''"
2636 if test -n "$ac_subst_files"; then
2638 ## ------------------- ##
2639 ## File substitutions. ##
2640 ## ------------------- ##
2643 for ac_var in $ac_subst_files
2645 eval ac_val=\$$ac_var
2647 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2649 $as_echo "$ac_var='\''$ac_val'\''"
2654 if test -s confdefs.h; then
2664 test "$ac_signal" != 0 &&
2665 $as_echo "$as_me: caught signal $ac_signal"
2666 $as_echo "$as_me: exit $exit_status"
2668 rm -f core *.core core.conftest.* &&
2669 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2672 for ac_signal in 1 2 13 15; do
2673 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2677 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2678 rm -f -r conftest* confdefs.h
2680 $as_echo "/* confdefs.h */" > confdefs.h
2682 # Predefined preprocessor variables.
2684 cat >>confdefs.h <<_ACEOF
2685 #define PACKAGE_NAME "$PACKAGE_NAME"
2688 cat >>confdefs.h <<_ACEOF
2689 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2692 cat >>confdefs.h <<_ACEOF
2693 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2696 cat >>confdefs.h <<_ACEOF
2697 #define PACKAGE_STRING "$PACKAGE_STRING"
2700 cat >>confdefs.h <<_ACEOF
2701 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2704 cat >>confdefs.h <<_ACEOF
2705 #define PACKAGE_URL "$PACKAGE_URL"
2709 # Let the site file select an alternate cache file if it wants to.
2710 # Prefer an explicitly selected file to automatically selected ones.
2713 if test -n "$CONFIG_SITE"; then
2714 ac_site_file1=$CONFIG_SITE
2715 elif test "x$prefix" != xNONE; then
2716 ac_site_file1=$prefix/share/config.site
2717 ac_site_file2=$prefix/etc/config.site
2719 ac_site_file1=$ac_default_prefix/share/config.site
2720 ac_site_file2=$ac_default_prefix/etc/config.site
2722 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2724 test "x$ac_site_file" = xNONE && continue
2725 if test -r "$ac_site_file"; then
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2727 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2728 sed 's/^/| /' "$ac_site_file" >&5
2733 if test -r "$cache_file"; then
2734 # Some versions of bash will fail to source /dev/null (special
2735 # files actually), so we avoid doing that.
2736 if test -f "$cache_file"; then
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2738 $as_echo "$as_me: loading cache $cache_file" >&6;}
2740 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2741 *) . "./$cache_file";;
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2746 $as_echo "$as_me: creating cache $cache_file" >&6;}
2750 gl_header_list="$gl_header_list sys/mman.h"
2751 gl_func_list="$gl_func_list mprotect"
2752 gl_func_list="$gl_func_list memchr"
2753 gl_header_list="$gl_header_list stddef.h"
2754 gl_header_list="$gl_header_list stdint.h"
2755 gl_header_list="$gl_header_list wchar.h"
2756 gl_header_list="$gl_header_list string.h"
2757 # Check that the precious variables saved in the cache have kept the same
2759 ac_cache_corrupted=false
2760 for ac_var in $ac_precious_vars; do
2761 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2762 eval ac_new_set=\$ac_env_${ac_var}_set
2763 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2764 eval ac_new_val=\$ac_env_${ac_var}_value
2765 case $ac_old_set,$ac_new_set in
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2768 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2769 ac_cache_corrupted=: ;;
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2772 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2773 ac_cache_corrupted=: ;;
2776 if test "x$ac_old_val" != "x$ac_new_val"; then
2777 # differences in whitespace do not lead to failure.
2778 ac_old_val_w=`echo x
$ac_old_val`
2779 ac_new_val_w=`echo x
$ac_new_val`
2780 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2782 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2783 ac_cache_corrupted=:
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2786 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2787 eval $ac_var=\$ac_old_val
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2790 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2792 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2795 # Pass precious variables to config.status.
2796 if test "$ac_new_set" = set; then
2798 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2799 *) ac_arg=$ac_var=$ac_new_val ;;
2801 case " $ac_configure_args " in
2802 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2803 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2807 if $ac_cache_corrupted; then
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2809 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2811 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2812 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2814 ## -------------------- ##
2815 ## Main body of script. ##
2816 ## -------------------- ##
2819 ac_cpp='$CPP $CPPFLAGS'
2820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2828 ac_config_headers="$ac_config_headers config.h:config.in"
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2832 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2833 # Check whether --enable-maintainer-mode was given.
2834 if test "${enable_maintainer_mode+set}" = set; then :
2835 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2837 USE_MAINTAINER_MODE=no
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2841 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2842 if test $USE_MAINTAINER_MODE = yes; then
2843 MAINTAINER_MODE_TRUE=
2844 MAINTAINER_MODE_FALSE='#'
2846 MAINTAINER_MODE_TRUE='#'
2847 MAINTAINER_MODE_FALSE=
2850 MAINT=$MAINTAINER_MODE_TRUE
2855 ac_cpp='$CPP $CPPFLAGS'
2856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2859 if test -n "$ac_tool_prefix"; then
2860 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2861 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2863 $as_echo_n "checking for $ac_word... " >&6; }
2864 if test "${ac_cv_prog_CC+set}" = set; then :
2865 $as_echo_n "(cached) " >&6
2867 if test -n "$CC"; then
2868 ac_cv_prog_CC="$CC" # Let the user override the test.
2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 test -z "$as_dir" && as_dir=.
2875 for ac_exec_ext in '' $ac_executable_extensions; do
2876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2877 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2888 if test -n "$CC"; then
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2890 $as_echo "$CC" >&6; }
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2893 $as_echo "no" >&6; }
2898 if test -z "$ac_cv_prog_CC"; then
2900 # Extract the first word of "gcc", so it can be a program name with args.
2901 set dummy gcc; ac_word=$2
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2903 $as_echo_n "checking for $ac_word... " >&6; }
2904 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2905 $as_echo_n "(cached) " >&6
2907 if test -n "$ac_ct_CC"; then
2908 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 test -z "$as_dir" && as_dir=.
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2917 ac_cv_prog_ac_ct_CC="gcc"
2918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2928 if test -n "$ac_ct_CC"; then
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2930 $as_echo "$ac_ct_CC" >&6; }
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933 $as_echo "no" >&6; }
2936 if test "x$ac_ct_CC" = x; then
2939 case $cross_compiling:$ac_tool_warned in
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2943 ac_tool_warned=yes ;;
2951 if test -z "$CC"; then
2952 if test -n "$ac_tool_prefix"; then
2953 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2954 set dummy ${ac_tool_prefix}cc; ac_word=$2
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2956 $as_echo_n "checking for $ac_word... " >&6; }
2957 if test "${ac_cv_prog_CC+set}" = set; then :
2958 $as_echo_n "(cached) " >&6
2960 if test -n "$CC"; then
2961 ac_cv_prog_CC="$CC" # Let the user override the test.
2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967 test -z "$as_dir" && as_dir=.
2968 for ac_exec_ext in '' $ac_executable_extensions; do
2969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2970 ac_cv_prog_CC="${ac_tool_prefix}cc"
2971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981 if test -n "$CC"; then
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2983 $as_echo "$CC" >&6; }
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2986 $as_echo "no" >&6; }
2992 if test -z "$CC"; then
2993 # Extract the first word of "cc", so it can be a program name with args.
2994 set dummy cc; ac_word=$2
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2996 $as_echo_n "checking for $ac_word... " >&6; }
2997 if test "${ac_cv_prog_CC+set}" = set; then :
2998 $as_echo_n "(cached) " >&6
3000 if test -n "$CC"; then
3001 ac_cv_prog_CC="$CC" # Let the user override the test.
3004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008 test -z "$as_dir" && as_dir=.
3009 for ac_exec_ext in '' $ac_executable_extensions; do
3010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3011 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3012 ac_prog_rejected=yes
3016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3023 if test $ac_prog_rejected = yes; then
3024 # We found a bogon in the path, so make sure we never use it.
3025 set dummy $ac_cv_prog_CC
3027 if test $# != 0; then
3028 # We chose a different compiler from the bogus one.
3029 # However, it has the same basename, so the bogon will be chosen
3030 # first if we set CC to just the basename; use the full file name.
3032 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3038 if test -n "$CC"; then
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3040 $as_echo "$CC" >&6; }
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3043 $as_echo "no" >&6; }
3048 if test -z "$CC"; then
3049 if test -n "$ac_tool_prefix"; then
3050 for ac_prog in cl.exe
3052 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3053 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3055 $as_echo_n "checking for $ac_word... " >&6; }
3056 if test "${ac_cv_prog_CC+set}" = set; then :
3057 $as_echo_n "(cached) " >&6
3059 if test -n "$CC"; then
3060 ac_cv_prog_CC="$CC" # Let the user override the test.
3062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066 test -z "$as_dir" && as_dir=.
3067 for ac_exec_ext in '' $ac_executable_extensions; do
3068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3069 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080 if test -n "$CC"; then
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3082 $as_echo "$CC" >&6; }
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085 $as_echo "no" >&6; }
3089 test -n "$CC" && break
3092 if test -z "$CC"; then
3094 for ac_prog in cl.exe
3096 # Extract the first word of "$ac_prog", so it can be a program name with args.
3097 set dummy $ac_prog; ac_word=$2
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3099 $as_echo_n "checking for $ac_word... " >&6; }
3100 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3101 $as_echo_n "(cached) " >&6
3103 if test -n "$ac_ct_CC"; then
3104 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110 test -z "$as_dir" && as_dir=.
3111 for ac_exec_ext in '' $ac_executable_extensions; do
3112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3113 ac_cv_prog_ac_ct_CC="$ac_prog"
3114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3123 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3124 if test -n "$ac_ct_CC"; then
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3126 $as_echo "$ac_ct_CC" >&6; }
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3129 $as_echo "no" >&6; }
3133 test -n "$ac_ct_CC" && break
3136 if test "x$ac_ct_CC" = x; then
3139 case $cross_compiling:$ac_tool_warned in
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3143 ac_tool_warned=yes ;;
3152 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3154 as_fn_error "no acceptable C compiler found
in \
$PATH
3155 See \
`config.log' for more details." "$LINENO" 5; }
3157 # Provide some information about the compiler.
3158 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3161 for ac_option in --version -v -V -qversion; do
3162 { { ac_try="$ac_compiler $ac_option >&5"
3164 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3165 *) ac_try_echo
=$ac_try;;
3167 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3168 $as_echo "$ac_try_echo"; } >&5
3169 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3171 if test -s conftest.err
; then
3173 ... rest of stderr output deleted ...
3174 10q' conftest.err
>conftest.er1
3175 cat conftest.er1
>&5
3176 rm -f conftest.er1 conftest.err
3178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3179 test $ac_status = 0; }
3182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3183 /* end confdefs.h. */
3193 ac_clean_files_save
=$ac_clean_files
3194 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3195 # Try to create an executable without -o first, disregard a.out.
3196 # It will help us diagnose broken compilers, and finding out an intuition
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3199 $as_echo_n "checking for C compiler default output file name... " >&6; }
3200 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3202 # The possible output files:
3203 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3206 for ac_file
in $ac_files
3209 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3210 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3215 if { { ac_try
="$ac_link_default"
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_link_default") 2>&5
3224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3225 test $ac_status = 0; }; then :
3226 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3227 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3228 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3229 # so that the user can short-circuit this test for compilers unknown to
3231 for ac_file in $ac_files ''
3233 test -f "$ac_file" || continue
3235 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3238 # We found the default executable, but exeext='' is most
3242 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3244 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3246 # We set ac_cv_exeext here because the later test for it is not
3247 # safe: cross compilers may not add the suffix if given an `-o'
3248 # argument, so we may need to know it at that point already.
3249 # Even if this section looks crufty: it has the advantage of
3256 test "$ac_cv_exeext" = no && ac_cv_exeext=
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3262 $as_echo "$ac_file" >&6; }
3263 if test -z "$ac_file"; then :
3264 $as_echo "$as_me: failed program was:" >&5
3265 sed 's
/^
/|
/' conftest.$ac_ext >&5
3267 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3268 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3269 { as_fn_set_status 77
3270 as_fn_error "C compiler cannot create executables
3271 See \`config.log
' for more details." "$LINENO" 5; }; }
3273 ac_exeext=$ac_cv_exeext
3275 # Check that the compiler produces executables we can run. If not, either
3276 # the compiler is broken, or we cross compile.
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3278 $as_echo_n "checking whether the C compiler works... " >&6; }
3279 # If not cross compiling, check that we can run a simple program.
3280 if test "$cross_compiling" != yes; then
3281 if { ac_try='.
/$ac_file'
3282 { { case "(($ac_try" in
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3287 $as_echo "$ac_try_echo"; } >&5
3288 (eval "$ac_try") 2>&5
3290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3291 test $ac_status = 0; }; }; then
3294 if test "$cross_compiling" = maybe; then
3297 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3298 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3299 as_fn_error "cannot run C compiled programs.
3300 If you meant to cross compile, use \`--host'.
3301 See \`config.log' for more details.
" "$LINENO" 5; }
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
3306 $as_echo "yes" >&6; }
3308 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3309 ac_clean_files=$ac_clean_files_save
3310 # Check that the compiler produces executables we can run. If not, either
3311 # the compiler is broken, or we cross compile.
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
3313 $as_echo_n "checking whether we are cross compiling...
" >&6; }
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $cross_compiling" >&5
3315 $as_echo "$cross_compiling" >&6; }
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
3318 $as_echo_n "checking
for suffix of executables...
" >&6; }
3319 if { { ac_try="$ac_link"
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3324 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3325 $as_echo "$ac_try_echo"; } >&5
3326 (eval "$ac_link") 2>&5
3328 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3329 test $ac_status = 0; }; then :
3330 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3331 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3332 # work properly (i.e., refer to `conftest.exe'), while it won't with
3334 for ac_file in conftest.exe conftest conftest.*; do
3335 test -f "$ac_file" || continue
3337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3338 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3346 as_fn_error "cannot compute suffix of executables: cannot compile and link
3347 See \`config.log' for more details.
" "$LINENO" 5; }
3349 rm -f conftest$ac_cv_exeext
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
3351 $as_echo "$ac_cv_exeext" >&6; }
3353 rm -f conftest.$ac_ext
3354 EXEEXT=$ac_cv_exeext
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of object files
" >&5
3357 $as_echo_n "checking
for suffix of object files...
" >&6; }
3358 if test "${ac_cv_objext+set}" = set; then :
3359 $as_echo_n "(cached
) " >&6
3361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362 /* end confdefs.h. */
3372 rm -f conftest.o conftest.obj
3373 if { { ac_try="$ac_compile"
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3378 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3379 $as_echo "$ac_try_echo"; } >&5
3380 (eval "$ac_compile") 2>&5
3382 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3383 test $ac_status = 0; }; then :
3384 for ac_file in conftest.o conftest.obj conftest.*; do
3385 test -f "$ac_file" || continue;
3387 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3388 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3393 $as_echo "$as_me: failed program was
:" >&5
3394 sed 's/^/| /' conftest.$ac_ext >&5
3396 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3398 as_fn_error "cannot compute suffix of object files: cannot compile
3399 See \`config.log' for more details.
" "$LINENO" 5; }
3401 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_objext" >&5
3404 $as_echo "$ac_cv_objext" >&6; }
3405 OBJEXT=$ac_cv_objext
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler
" >&5
3408 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3409 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3410 $as_echo_n "(cached
) " >&6
3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413 /* end confdefs.h. */
3426 if ac_fn_c_try_compile "$LINENO"; then :
3431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3432 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_compiler_gnu" >&5
3436 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3437 if test $ac_compiler_gnu = yes; then
3442 ac_test_CFLAGS=${CFLAGS+set}
3443 ac_save_CFLAGS=$CFLAGS
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC accepts
-g" >&5
3445 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3446 if test "${ac_cv_prog_cc_g+set}" = set; then :
3447 $as_echo_n "(cached
) " >&6
3449 ac_save_c_werror_flag=$ac_c_werror_flag
3450 ac_c_werror_flag=yes
3453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3454 /* end confdefs.h. */
3464 if ac_fn_c_try_compile "$LINENO"; then :
3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469 /* end confdefs.h. */
3479 if ac_fn_c_try_compile "$LINENO"; then :
3482 ac_c_werror_flag=$ac_save_c_werror_flag
3484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3485 /* end confdefs.h. */
3495 if ac_fn_c_try_compile "$LINENO"; then :
3498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503 ac_c_werror_flag=$ac_save_c_werror_flag
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_g" >&5
3506 $as_echo "$ac_cv_prog_cc_g" >&6; }
3507 if test "$ac_test_CFLAGS" = set; then
3508 CFLAGS=$ac_save_CFLAGS
3509 elif test $ac_cv_prog_cc_g = yes; then
3510 if test "$GCC" = yes; then
3516 if test "$GCC" = yes; then
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $CC option to accept ISO C89
" >&5
3523 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3524 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3525 $as_echo_n "(cached
) " >&6
3527 ac_cv_prog_cc_c89=no
3529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3530 /* end confdefs.h. */
3533 #include <sys/types.h>
3534 #include <sys/stat.h>
3535 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3536 struct buf { int x; };
3537 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3538 static char *e (p, i)
3544 static char *f (char * (*g) (char **, int), char **p, ...)
3549 s = g (p, va_arg (v,int));
3554 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3555 function prototypes and stuff, but not '\xHH' hex character constants.
3556 These don't provoke an error unfortunately, instead are silently treated
3557 as 'x'. The following induces an error, until -std is added to get
3558 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3559 array size at least. It's necessary to write '\x00'==0 to get something
3560 that's true only with -std. */
3561 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3563 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3564 inside strings and character constants. */
3566 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3568 int test (int i, double x);
3569 struct s1 {int (*f) (int a);};
3570 struct s2 {int (*f) (double a);};
3571 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3577 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3582 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3583 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3585 CC="$ac_save_CC $ac_arg"
3586 if ac_fn_c_try_compile "$LINENO"; then :
3587 ac_cv_prog_cc_c89=$ac_arg
3589 rm -f core conftest.err conftest.$ac_objext
3590 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3592 rm -f conftest.$ac_ext
3597 case "x
$ac_cv_prog_cc_c89" in
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none needed
" >&5
3600 $as_echo "none needed
" >&6; } ;;
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: unsupported
" >&5
3603 $as_echo "unsupported
" >&6; } ;;
3605 CC="$CC $ac_cv_prog_cc_c89"
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_c89" >&5
3607 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3609 if test "x
$ac_cv_prog_cc_c89" != xno; then :
3614 ac_cpp='$CPP $CPPFLAGS'
3615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3620 for ac_dir in "$srcdir" "$srcdir/..
" "$srcdir/..
/..
"; do
3621 for ac_t in install-sh install.sh shtool; do
3622 if test -f "$ac_dir/$ac_t"; then
3624 ac_install_sh="$ac_aux_dir/$ac_t -c"
3629 if test -z "$ac_aux_dir"; then
3630 as_fn_error "cannot
find install-sh
, install.sh
, or shtool
in \"$srcdir\" \"$srcdir/..
\" \"$srcdir/..
/..
\"" "$LINENO" 5
3633 # These three variables are undocumented and unsupported,
3634 # and are intended to be withdrawn in a future Autoconf release.
3635 # They can cause serious problems if a builder's source tree is in a directory
3636 # whose full name contains unusual characters.
3637 ac_config_guess="$SHELL $ac_aux_dir/config.guess
" # Please don't use this var.
3638 ac_config_sub="$SHELL $ac_aux_dir/config.sub
" # Please don't use this var.
3639 ac_configure="$SHELL $ac_aux_dir/configure
" # Please don't use this var.
3642 # Make sure we can run config.sub.
3643 $SHELL "$ac_aux_dir/config.sub
" sun4 >/dev/null 2>&1 ||
3644 as_fn_error "cannot run
$SHELL $ac_aux_dir/config.sub
" "$LINENO" 5
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system
type" >&5
3647 $as_echo_n "checking build system
type...
" >&6; }
3648 if test "${ac_cv_build+set}" = set; then :
3649 $as_echo_n "(cached
) " >&6
3651 ac_build_alias=$build_alias
3652 test "x
$ac_build_alias" = x &&
3653 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess
"`
3654 test "x
$ac_build_alias" = x &&
3655 as_fn_error "cannot guess build
type; you must specify one
" "$LINENO" 5
3656 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub
" $ac_build_alias` ||
3657 as_fn_error "$SHELL $ac_aux_dir/config.sub
$ac_build_alias failed
" "$LINENO" 5
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_build" >&5
3661 $as_echo "$ac_cv_build" >&6; }
3662 case $ac_cv_build in
3664 *) as_fn_error "invalid value of canonical build
" "$LINENO" 5;;
3667 ac_save_IFS=$IFS; IFS='-'
3673 # Remember, the first character of IFS is used to create $*,
3674 # except with old shells:
3677 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
host system
type" >&5
3681 $as_echo_n "checking
host system
type...
" >&6; }
3682 if test "${ac_cv_host+set}" = set; then :
3683 $as_echo_n "(cached
) " >&6
3685 if test "x
$host_alias" = x; then
3686 ac_cv_host=$ac_cv_build
3688 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub
" $host_alias` ||
3689 as_fn_error "$SHELL $ac_aux_dir/config.sub
$host_alias failed
" "$LINENO" 5
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_host" >&5
3694 $as_echo "$ac_cv_host" >&6; }
3697 *) as_fn_error "invalid value of canonical
host" "$LINENO" 5;;
3700 ac_save_IFS=$IFS; IFS='-'
3706 # Remember, the first character of IFS is used to create $*,
3707 # except with old shells:
3710 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3715 ac_cpp='$CPP $CPPFLAGS'
3716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
3720 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3721 # On Suns, sometimes $CPP names a directory.
3722 if test -n "$CPP" && test -d "$CPP"; then
3725 if test -z "$CPP"; then
3726 if test "${ac_cv_prog_CPP+set}" = set; then :
3727 $as_echo_n "(cached
) " >&6
3729 # Double quotes because CPP needs to be expanded
3730 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3733 for ac_c_preproc_warn_flag in '' yes
3735 # Use a header file that comes with gcc, so configuring glibc
3736 # with a fresh cross-compiler works.
3737 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3738 # <limits.h> exists even on freestanding compilers.
3739 # On the NeXT, cc -E runs the code through the compiler's parser,
3740 # not just through cpp. "Syntax error
" is here to catch this case.
3741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742 /* end confdefs.h. */
3744 # include <limits.h>
3746 # include <assert.h>
3750 if ac_fn_c_try_cpp "$LINENO"; then :
3753 # Broken: fails on valid input.
3756 rm -f conftest.err conftest.$ac_ext
3758 # OK, works on sane cases. Now check whether nonexistent headers
3759 # can be detected and how.
3760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761 /* end confdefs.h. */
3762 #include <ac_nonexistent.h>
3764 if ac_fn_c_try_cpp "$LINENO"; then :
3765 # Broken: success on invalid input.
3768 # Passes both tests.
3772 rm -f conftest.err conftest.$ac_ext
3775 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3776 rm -f conftest.err conftest.$ac_ext
3777 if $ac_preproc_ok; then :
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
3790 $as_echo "$CPP" >&6; }
3792 for ac_c_preproc_warn_flag in '' yes
3794 # Use a header file that comes with gcc, so configuring glibc
3795 # with a fresh cross-compiler works.
3796 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3797 # <limits.h> exists even on freestanding compilers.
3798 # On the NeXT, cc -E runs the code through the compiler's parser,
3799 # not just through cpp. "Syntax error
" is here to catch this case.
3800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801 /* end confdefs.h. */
3803 # include <limits.h>
3805 # include <assert.h>
3809 if ac_fn_c_try_cpp "$LINENO"; then :
3812 # Broken: fails on valid input.
3815 rm -f conftest.err conftest.$ac_ext
3817 # OK, works on sane cases. Now check whether nonexistent headers
3818 # can be detected and how.
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h. */
3821 #include <ac_nonexistent.h>
3823 if ac_fn_c_try_cpp "$LINENO"; then :
3824 # Broken: success on invalid input.
3827 # Passes both tests.
3831 rm -f conftest.err conftest.$ac_ext
3834 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3835 rm -f conftest.err conftest.$ac_ext
3836 if $ac_preproc_ok; then :
3839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3841 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3842 See \`config.log' for more details.
" "$LINENO" 5; }
3846 ac_cpp='$CPP $CPPFLAGS'
3847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
3853 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
3854 if test "${ac_cv_path_GREP+set}" = set; then :
3855 $as_echo_n "(cached
) " >&6
3857 if test -z "$GREP"; then
3858 ac_path_GREP_found=false
3859 # Loop through the user's path and test for each of PROGNAME-LIST
3860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3864 test -z "$as_dir" && as_dir=.
3865 for ac_prog in grep ggrep; do
3866 for ac_exec_ext in '' $ac_executable_extensions; do
3867 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3868 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3869 # Check for GNU ac_path_GREP and select it if it is found.
3870 # Check for GNU $ac_path_GREP
3871 case `"$ac_path_GREP" --version 2>&1` in
3873 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3876 $as_echo_n 0123456789 >"conftest.
in"
3879 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3880 mv "conftest.tmp
" "conftest.
in"
3881 cp "conftest.
in" "conftest.
nl"
3882 $as_echo 'GREP' >> "conftest.
nl"
3883 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3884 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3885 as_fn_arith $ac_count + 1 && ac_count=$as_val
3886 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3887 # Best one so far, save it but keep looking for a better one
3888 ac_cv_path_GREP="$ac_path_GREP"
3889 ac_path_GREP_max=$ac_count
3891 # 10*(2^10) chars as input seems more than enough
3892 test $ac_count -gt 10 && break
3894 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3897 $ac_path_GREP_found && break 3
3902 if test -z "$ac_cv_path_GREP"; then
3903 as_fn_error "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3906 ac_cv_path_GREP=$GREP
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
3911 $as_echo "$ac_cv_path_GREP" >&6; }
3912 GREP="$ac_cv_path_GREP"
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
3916 $as_echo_n "checking
for egrep...
" >&6; }
3917 if test "${ac_cv_path_EGREP+set}" = set; then :
3918 $as_echo_n "(cached
) " >&6
3920 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3921 then ac_cv_path_EGREP="$GREP -E"
3923 if test -z "$EGREP"; then
3924 ac_path_EGREP_found=false
3925 # Loop through the user's path and test for each of PROGNAME-LIST
3926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3930 test -z "$as_dir" && as_dir=.
3931 for ac_prog in egrep; do
3932 for ac_exec_ext in '' $ac_executable_extensions; do
3933 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3934 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3935 # Check for GNU ac_path_EGREP and select it if it is found.
3936 # Check for GNU $ac_path_EGREP
3937 case `"$ac_path_EGREP" --version 2>&1` in
3939 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3942 $as_echo_n 0123456789 >"conftest.
in"
3945 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3946 mv "conftest.tmp
" "conftest.
in"
3947 cp "conftest.
in" "conftest.
nl"
3948 $as_echo 'EGREP' >> "conftest.
nl"
3949 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3950 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3951 as_fn_arith $ac_count + 1 && ac_count=$as_val
3952 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3953 # Best one so far, save it but keep looking for a better one
3954 ac_cv_path_EGREP="$ac_path_EGREP"
3955 ac_path_EGREP_max=$ac_count
3957 # 10*(2^10) chars as input seems more than enough
3958 test $ac_count -gt 10 && break
3960 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3963 $ac_path_EGREP_found && break 3
3968 if test -z "$ac_cv_path_EGREP"; then
3969 as_fn_error "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3972 ac_cv_path_EGREP=$EGREP
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
3978 $as_echo "$ac_cv_path_EGREP" >&6; }
3979 EGREP="$ac_cv_path_EGREP"
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
3983 $as_echo_n "checking
for ANSI C header files...
" >&6; }
3984 if test "${ac_cv_header_stdc+set}" = set; then :
3985 $as_echo_n "(cached
) " >&6
3987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988 /* end confdefs.h. */
4002 if ac_fn_c_try_compile "$LINENO"; then :
4003 ac_cv_header_stdc=yes
4005 ac_cv_header_stdc=no
4007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4009 if test $ac_cv_header_stdc = yes; then
4010 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h. */
4016 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4017 $EGREP "memchr
" >/dev/null 2>&1; then :
4020 ac_cv_header_stdc=no
4026 if test $ac_cv_header_stdc = yes; then
4027 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029 /* end confdefs.h. */
4033 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4034 $EGREP "free
" >/dev/null 2>&1; then :
4037 ac_cv_header_stdc=no
4043 if test $ac_cv_header_stdc = yes; then
4044 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4045 if test "$cross_compiling" = yes; then :
4048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4049 /* end confdefs.h. */
4052 #if ((' ' & 0x0FF) == 0x020)
4053 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4054 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4056 # define ISLOWER(c) \
4057 (('a' <= (c) && (c) <= 'i') \
4058 || ('j' <= (c) && (c) <= 'r') \
4059 || ('s' <= (c) && (c) <= 'z'))
4060 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4063 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4068 for (i = 0; i < 256; i++)
4069 if (XOR (islower (i), ISLOWER (i))
4070 || toupper (i) != TOUPPER (i))
4075 if ac_fn_c_try_run "$LINENO"; then :
4078 ac_cv_header_stdc=no
4080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4081 conftest.$ac_objext conftest.beam conftest.$ac_ext
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
4087 $as_echo "$ac_cv_header_stdc" >&6; }
4088 if test $ac_cv_header_stdc = yes; then
4090 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4094 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4095 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4096 inttypes.h stdint.h unistd.h
4098 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4099 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4101 eval as_val
=\$
$as_ac_Header
4102 if test "x$as_val" = x
""yes; then :
4103 cat >>confdefs.h
<<_ACEOF
4104 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4115 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4116 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4123 if test "$MINIX" = yes; then
4125 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4128 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4131 $as_echo "#define _MINIX 1" >>confdefs.h
4138 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4145 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4146 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4147 $as_echo_n "(cached) " >&6
4149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4150 /* end confdefs.h. */
4152 # define __EXTENSIONS__ 1
4153 $ac_includes_default
4162 if ac_fn_c_try_compile
"$LINENO"; then :
4163 ac_cv_safe_to_define___extensions__
=yes
4165 ac_cv_safe_to_define___extensions__
=no
4167 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4170 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4171 test $ac_cv_safe_to_define___extensions__ = yes &&
4172 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4174 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4176 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4178 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4180 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4183 if test -n "$ac_tool_prefix"; then
4184 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4185 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4187 $as_echo_n "checking for $ac_word... " >&6; }
4188 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4189 $as_echo_n "(cached) " >&6
4191 if test -n "$RANLIB"; then
4192 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4198 test -z "$as_dir" && as_dir
=.
4199 for ac_exec_ext
in '' $ac_executable_extensions; do
4200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4201 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4211 RANLIB
=$ac_cv_prog_RANLIB
4212 if test -n "$RANLIB"; then
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4214 $as_echo "$RANLIB" >&6; }
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4217 $as_echo "no" >&6; }
4222 if test -z "$ac_cv_prog_RANLIB"; then
4223 ac_ct_RANLIB
=$RANLIB
4224 # Extract the first word of "ranlib", so it can be a program name with args.
4225 set dummy ranlib
; ac_word
=$2
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4227 $as_echo_n "checking for $ac_word... " >&6; }
4228 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4229 $as_echo_n "(cached) " >&6
4231 if test -n "$ac_ct_RANLIB"; then
4232 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4234 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4238 test -z "$as_dir" && as_dir
=.
4239 for ac_exec_ext
in '' $ac_executable_extensions; do
4240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4241 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4251 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4252 if test -n "$ac_ct_RANLIB"; then
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4254 $as_echo "$ac_ct_RANLIB" >&6; }
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257 $as_echo "no" >&6; }
4260 if test "x$ac_ct_RANLIB" = x
; then
4263 case $cross_compiling:$ac_tool_warned in
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4267 ac_tool_warned
=yes ;;
4269 RANLIB
=$ac_ct_RANLIB
4272 RANLIB
="$ac_cv_prog_RANLIB"
4283 # Code from module arg-nonnull:
4284 # Code from module c++defs:
4285 # Code from module extensions:
4287 # Code from module include_next:
4288 # Code from module memchr:
4289 # Code from module memmem:
4290 # Code from module memmem-simple:
4291 # Code from module multiarch:
4292 # Code from module stddef:
4293 # Code from module stdint:
4294 # Code from module string:
4295 # Code from module warn-on-use:
4296 # Code from module wchar:
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4299 $as_echo_n "checking target system type... " >&6; }
4300 if test "${ac_cv_target+set}" = set; then :
4301 $as_echo_n "(cached) " >&6
4303 if test "x$target_alias" = x
; then
4304 ac_cv_target
=$ac_cv_host
4306 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4307 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4312 $as_echo "$ac_cv_target" >&6; }
4313 case $ac_cv_target in
4315 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4317 target
=$ac_cv_target
4318 ac_save_IFS
=$IFS; IFS
='-'
4324 # Remember, the first character of IFS is used to create $*,
4325 # except with old shells:
4328 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4331 # The aliases save the names the user supplied, while $host etc.
4332 # will get canonicalized.
4333 test -n "$target_alias" &&
4334 test "$program_prefix$program_suffix$program_transform_name" = \
4336 program_prefix
=${target_alias}-
4338 # The tests for host and target for $enable_largefile require
4343 # As the $enable_largefile decision depends on --enable-plugins we must set it
4344 # even in directories otherwise not depending on the $plugins option.
4347 # Check whether --enable-plugins was given.
4348 if test "${enable_plugins+set}" = set; then :
4349 enableval
=$enable_plugins; case "${enableval}" in
4350 yes |
"") plugins
=yes ;;
4361 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4362 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4363 # are mutually exclusive; and without procfs support, the bfd/ elf module
4364 # cannot provide certain routines such as elfcore_write_prpsinfo
4365 # or elfcore_write_prstatus. So unless the user explicitly requested
4366 # large-file support through the --enable-largefile switch, disable
4367 # large-file support in favor of procfs support.
4368 test "${target}" = "${host}" -a "x$plugins" = xno \
4369 && : ${enable_largefile="no"}
4373 # Check whether --enable-largefile was given.
4374 if test "${enable_largefile+set}" = set; then :
4375 enableval
=$enable_largefile;
4378 if test "$enable_largefile" != no
; then
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4381 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4382 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4383 $as_echo_n "(cached) " >&6
4385 ac_cv_sys_largefile_CC
=no
4386 if test "$GCC" != yes; then
4389 # IRIX 6.2 and later do not support large files by default,
4390 # so use the C compiler's -n32 option if that helps.
4391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4392 /* end confdefs.h. */
4393 #include <sys/types.h>
4394 /* Check that off_t can represent 2**63 - 1 correctly.
4395 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4396 since some C++ compilers masquerading as C compilers
4397 incorrectly reject 9223372036854775807. */
4398 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4399 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4400 && LARGE_OFF_T % 2147483647 == 1)
4410 if ac_fn_c_try_compile
"$LINENO"; then :
4413 rm -f core conftest.err conftest.
$ac_objext
4415 if ac_fn_c_try_compile
"$LINENO"; then :
4416 ac_cv_sys_largefile_CC
=' -n32'; break
4418 rm -f core conftest.err conftest.
$ac_objext
4422 rm -f conftest.
$ac_ext
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4426 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4427 if test "$ac_cv_sys_largefile_CC" != no
; then
4428 CC
=$CC$ac_cv_sys_largefile_CC
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4432 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4433 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4434 $as_echo_n "(cached) " >&6
4437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h. */
4439 #include <sys/types.h>
4440 /* Check that off_t can represent 2**63 - 1 correctly.
4441 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4442 since some C++ compilers masquerading as C compilers
4443 incorrectly reject 9223372036854775807. */
4444 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4445 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4446 && LARGE_OFF_T % 2147483647 == 1)
4456 if ac_fn_c_try_compile
"$LINENO"; then :
4457 ac_cv_sys_file_offset_bits
=no
; break
4459 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4461 /* end confdefs.h. */
4462 #define _FILE_OFFSET_BITS 64
4463 #include <sys/types.h>
4464 /* Check that off_t can represent 2**63 - 1 correctly.
4465 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4466 since some C++ compilers masquerading as C compilers
4467 incorrectly reject 9223372036854775807. */
4468 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4469 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4470 && LARGE_OFF_T % 2147483647 == 1)
4480 if ac_fn_c_try_compile
"$LINENO"; then :
4481 ac_cv_sys_file_offset_bits
=64; break
4483 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4484 ac_cv_sys_file_offset_bits
=unknown
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4489 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4490 case $ac_cv_sys_file_offset_bits in #(
4493 cat >>confdefs.h
<<_ACEOF
4494 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4499 if test $ac_cv_sys_file_offset_bits = unknown
; then
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4501 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4502 if test "${ac_cv_sys_large_files+set}" = set; then :
4503 $as_echo_n "(cached) " >&6
4506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4507 /* end confdefs.h. */
4508 #include <sys/types.h>
4509 /* Check that off_t can represent 2**63 - 1 correctly.
4510 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4511 since some C++ compilers masquerading as C compilers
4512 incorrectly reject 9223372036854775807. */
4513 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4514 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4515 && LARGE_OFF_T % 2147483647 == 1)
4525 if ac_fn_c_try_compile
"$LINENO"; then :
4526 ac_cv_sys_large_files
=no
; break
4528 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h. */
4531 #define _LARGE_FILES 1
4532 #include <sys/types.h>
4533 /* Check that off_t can represent 2**63 - 1 correctly.
4534 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4535 since some C++ compilers masquerading as C compilers
4536 incorrectly reject 9223372036854775807. */
4537 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4538 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4539 && LARGE_OFF_T % 2147483647 == 1)
4549 if ac_fn_c_try_compile
"$LINENO"; then :
4550 ac_cv_sys_large_files
=1; break
4552 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4553 ac_cv_sys_large_files
=unknown
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4558 $as_echo "$ac_cv_sys_large_files" >&6; }
4559 case $ac_cv_sys_large_files in #(
4562 cat >>confdefs.h
<<_ACEOF
4563 #define _LARGE_FILES $ac_cv_sys_large_files
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4576 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4577 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4578 $as_echo_n "(cached) " >&6
4580 am_cv_prog_cc_stdc
=no
4582 # Don't try gcc -ansi; that turns off useful extensions and
4583 # breaks some systems' header files.
4584 # AIX -qlanglvl=ansi
4585 # Ultrix and OSF/1 -std1
4586 # HP-UX 10.20 and later -Ae
4587 # HP-UX older versions -Aa -D_HPUX_SOURCE
4588 # SVR4 -Xc -D__EXTENSIONS__
4589 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4591 CC
="$ac_save_CC $ac_arg"
4592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4593 /* end confdefs.h. */
4596 #include <sys/types.h>
4597 #include <sys/stat.h>
4598 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4599 struct buf { int x; };
4600 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4601 static char *e (p, i)
4607 static char *f (char * (*g) (char **, int), char **p, ...)
4612 s = g (p, va_arg (v,int));
4616 int test (int i, double x);
4617 struct s1 {int (*f) (int a);};
4618 struct s2 {int (*f) (double a);};
4619 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4627 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4633 if ac_fn_c_try_compile
"$LINENO"; then :
4634 am_cv_prog_cc_stdc
="$ac_arg"; break
4636 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4642 if test -z "$am_cv_prog_cc_stdc"; then
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4644 $as_echo "none needed" >&6; }
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4647 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4649 case "x$am_cv_prog_cc_stdc" in
4651 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4656 for ac_dir
in ..
"$srcdir"/..
; do
4657 for ac_t
in install-sh
install.sh shtool
; do
4658 if test -f "$ac_dir/$ac_t"; then
4660 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4665 if test -z "$ac_aux_dir"; then
4666 as_fn_error
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4669 # These three variables are undocumented and unsupported,
4670 # and are intended to be withdrawn in a future Autoconf release.
4671 # They can cause serious problems if a builder's source tree is in a directory
4672 # whose full name contains unusual characters.
4673 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4674 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4675 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4680 # Dependency checking.
4681 rm -rf .tst
2>/dev
/null
4682 mkdir .tst
2>/dev
/null
4683 if test -d .tst
; then
4688 rmdir .tst
2>/dev
/null
4690 DEPDIR
="${am__leading_dot}deps"
4692 ac_config_commands
="$ac_config_commands depdir"
4695 depcc
="$CC" am_compiler_list
=
4697 am_depcomp
=$ac_aux_dir/depcomp
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4699 $as_echo_n "checking dependency style of $depcc... " >&6; }
4700 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4701 $as_echo_n "(cached) " >&6
4703 if test -f "$am_depcomp"; then
4704 # We make a subdir and do the tests there. Otherwise we can end up
4705 # making bogus files that we don't know about and never remove. For
4706 # instance it was reported that on HP-UX the gcc test will end up
4707 # making a dummy file named `D' -- because `-MD' means `put the output
4710 # Copy depcomp to subdir because otherwise we won't find it if we're
4711 # using a relative directory.
4712 cp "$am_depcomp" conftest.dir
4714 # We will build objects and dependencies in a subdirectory because
4715 # it helps to detect inapplicable dependency modes. For instance
4716 # both Tru64's cc and ICC support -MD to output dependencies as a
4717 # side effect of compilation, but ICC will put the dependencies in
4718 # the current directory while Tru64 will put them in the object
4722 am_cv_CC_dependencies_compiler_type
=none
4723 if test "$am_compiler_list" = ""; then
4724 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4726 for depmode
in $am_compiler_list; do
4727 if test $depmode = none
; then break; fi
4729 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4730 # Setup a source with many dependencies, because some compilers
4731 # like to wrap large dependency lists on column 80 (with \), and
4732 # we should not choose a depcomp mode which is confused by this.
4734 # We need to recreate these files for each test, as the compiler may
4735 # overwrite some of them when testing with obscure command lines.
4736 # This happens at least with the AIX C compiler.
4738 for i
in 1 2 3 4 5 6; do
4739 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4740 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4741 # Solaris 8's {/usr,}/bin/sh.
4742 touch sub
/conftst
$i.h
4744 echo "include sub/conftest.Po" > confmf
4746 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4747 # mode. It turns out that the SunPro C++ compiler does not properly
4748 # handle `-M -o', and we need to detect this.
4749 depcmd
="depmode=$depmode \
4750 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4751 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4752 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4753 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
4754 if env
$depcmd > conftest.err
2>&1 &&
4755 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
4756 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
4757 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
4758 # icc doesn't choke on unknown options, it will just issue warnings
4759 # or remarks (even with -Werror). So we grep stderr for any message
4760 # that says an option was ignored or not supported.
4761 # When given -MP, icc 7.0 and 7.1 complain thusly:
4762 # icc: Command line warning: ignoring option '-M'; no argument required
4763 # The diagnosis changed in icc 8.0:
4764 # icc: Command line remark: option '-MP' not supported
4765 if (grep 'ignoring option' conftest.err ||
4766 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4767 am_cv_CC_dependencies_compiler_type
=$depmode
4768 $as_echo "$as_me:$LINENO: success" >&5
4772 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4773 sed -e 's/^/| /' < conftest.err
>&5
4779 am_cv_CC_dependencies_compiler_type
=none
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4784 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4785 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
4786 then as_fn_error
"no usable dependency style found" "$LINENO" 5
4787 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4792 # Check for the 'make' the user wants to use.
4795 # Extract the first word of "$ac_prog", so it can be a program name with args.
4796 set dummy
$ac_prog; ac_word
=$2
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4798 $as_echo_n "checking for $ac_word... " >&6; }
4799 if test "${ac_cv_prog_MAKE+set}" = set; then :
4800 $as_echo_n "(cached) " >&6
4802 if test -n "$MAKE"; then
4803 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
4805 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4809 test -z "$as_dir" && as_dir
=.
4810 for ac_exec_ext
in '' $ac_executable_extensions; do
4811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4812 ac_cv_prog_MAKE
="$ac_prog"
4813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4822 MAKE
=$ac_cv_prog_MAKE
4823 if test -n "$MAKE"; then
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4825 $as_echo "$MAKE" >&6; }
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4828 $as_echo "no" >&6; }
4832 test -n "$MAKE" && break
4836 case "`$MAKE --version 2>&1 | sed 1q`" in
4841 if test "$MAKE_IS_GNU" = yes; then
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4850 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4852 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4853 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4854 $as_echo_n "(cached) " >&6
4856 cat >conftest.
make <<\_ACEOF
4859 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4861 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4862 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4864 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4866 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4870 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4872 $as_echo "yes" >&6; }
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4876 $as_echo "no" >&6; }
4877 SET_MAKE
="MAKE=${MAKE-make}"
4892 # If we haven't got the data from the intl directory,
4893 # assume NLS is disabled.
4902 if test -f ..
/intl
/config.intl
; then
4903 . ..
/intl
/config.intl
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4906 $as_echo_n "checking whether NLS is requested... " >&6; }
4907 if test x
"$USE_NLS" != xyes
; then
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4909 $as_echo "no" >&6; }
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4912 $as_echo "yes" >&6; }
4914 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4918 $as_echo_n "checking for catalogs to be installed... " >&6; }
4919 # Look for .po and .gmo files in the source directory.
4922 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
4923 # If there aren't any .gmo files the shell will give us the
4924 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4926 case "$cat" in *\
**)
4929 # The quadruple backslash is collapsed to a double backslash
4930 # by the backticks, then collapsed again by the double quotes,
4931 # leaving us with one backslash in the sed expression (right
4932 # before the dot that mustn't act as a wildcard).
4933 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4934 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
4935 # The user is allowed to set LINGUAS to a list of languages to
4936 # install catalogs for. If it's empty that means "all of them."
4937 if test "x$LINGUAS" = x
; then
4938 CATALOGS
="$CATALOGS $cat"
4939 XLINGUAS
="$XLINGUAS $lang"
4941 case "$LINGUAS" in *$lang*)
4942 CATALOGS
="$CATALOGS $cat"
4943 XLINGUAS
="$XLINGUAS $lang"
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4950 $as_echo "$LINGUAS" >&6; }
4963 localedir
='${datadir}/locale'
4966 if test x
"$USE_NLS" = xyes
; then
4967 CONFIG_ALL
="$CONFIG_ALL all-po"
4968 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
4969 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
4970 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
4977 LIBC_FATAL_STDERR_
=1
4978 export LIBC_FATAL_STDERR_
4984 for ac_header
in $gl_header_list
4986 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4987 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4988 eval as_val
=\$
$as_ac_Header
4989 if test "x$as_val" = x
""yes; then :
4990 cat >>confdefs.h
<<_ACEOF
4991 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5006 for ac_func
in $gl_func_list
5008 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5009 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5010 eval as_val
=\$
$as_ac_var
5011 if test "x$as_val" = x
""yes; then :
5012 cat >>confdefs.h
<<_ACEOF
5013 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5039 GNULIB_STRCASESTR
=0;
5046 GNULIB_MBSCASECMP
=0;
5047 GNULIB_MBSNCASECMP
=0;
5048 GNULIB_MBSPCASECMP
=0;
5049 GNULIB_MBSCASESTR
=0;
5057 GNULIB_STRVERSCMP
=0;
5062 HAVE_DECL_MEMRCHR
=1;
5068 HAVE_DECL_STRNDUP
=1;
5069 HAVE_DECL_STRNLEN
=1;
5073 HAVE_DECL_STRTOK_R
=1;
5074 HAVE_DECL_STRSIGNAL
=1;
5081 REPLACE_STRCASESTR
=0;
5086 REPLACE_STRSIGNAL
=0;
5088 UNDEFINE_STRTOK_R
=0;
5102 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
5103 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
5104 # irrelevant for anonymous mappings.
5105 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
5106 if test "x$ac_cv_func_mmap" = x
""yes; then :
5113 # Try to allow MAP_ANONYMOUS.
5114 gl_have_mmap_anonymous
=no
5115 if test $gl_have_mmap = yes; then
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
5117 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
5118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5119 /* end confdefs.h. */
5121 #include <sys/mman.h>
5122 #ifdef MAP_ANONYMOUS
5123 I cant identify this map.
5127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5128 $EGREP "I cant identify this map." >/dev
/null
2>&1; then :
5129 gl_have_mmap_anonymous
=yes
5133 if test $gl_have_mmap_anonymous != yes; then
5134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5135 /* end confdefs.h. */
5137 #include <sys/mman.h>
5139 I cant identify this map.
5143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5144 $EGREP "I cant identify this map." >/dev
/null
2>&1; then :
5146 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
5148 gl_have_mmap_anonymous
=yes
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
5154 $as_echo "$gl_have_mmap_anonymous" >&6; }
5155 if test $gl_have_mmap_anonymous = yes; then
5157 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
5185 if test $ac_cv_func_memchr = yes; then
5186 # Detect platform-specific bugs in some versions of glibc:
5187 # memchr should not dereference anything with length 0
5188 # http://bugzilla.redhat.com/499689
5189 # memchr should not dereference overestimated length after a match
5190 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
5191 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
5192 # Assume that memchr works on platforms that lack mprotect.
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
5194 $as_echo_n "checking whether memchr works... " >&6; }
5195 if test "${gl_cv_func_memchr_works+set}" = set; then :
5196 $as_echo_n "(cached) " >&6
5198 if test "$cross_compiling" = yes; then :
5199 gl_cv_func_memchr_works
="guessing no"
5201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5202 /* end confdefs.h. */
5207 # include <unistd.h>
5208 # include <sys/types.h>
5209 # include <sys/mman.h>
5220 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
5221 # if HAVE_MAP_ANONYMOUS
5222 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
5224 # else /* !HAVE_MAP_ANONYMOUS */
5225 const int flags = MAP_FILE | MAP_PRIVATE;
5226 int fd = open ("/dev/zero", O_RDONLY, 0666);
5230 int pagesize = getpagesize ();
5232 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
5234 if (two_pages != (char *)(-1)
5235 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
5236 fence = two_pages + pagesize;
5241 if (memchr (fence, 0, 0))
5243 strcpy (fence - 9, "12345678");
5244 if (memchr (fence - 9, 0, 79) != fence - 1)
5253 if ac_fn_c_try_run
"$LINENO"; then :
5254 gl_cv_func_memchr_works
=yes
5256 gl_cv_func_memchr_works
=no
5258 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5259 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
5264 $as_echo "$gl_cv_func_memchr_works" >&6; }
5265 if test "$gl_cv_func_memchr_works" != yes; then
5271 if test $HAVE_MEMCHR = 0 ||
test $REPLACE_MEMCHR = 1; then
5280 gl_LIBOBJS
="$gl_LIBOBJS memchr.$ac_objext"
5283 for ac_header
in bp-sym.h
5285 ac_fn_c_check_header_mongrel
"$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
5286 if test "x$ac_cv_header_bp_sym_h" = x
""yes; then :
5287 cat >>confdefs.h
<<_ACEOF
5288 #define HAVE_BP_SYM_H 1
5299 ac_fn_c_check_decl
"$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
5300 if test "x$ac_cv_have_decl_memmem" = x
""yes; then :
5306 cat >>confdefs.h
<<_ACEOF
5307 #define HAVE_DECL_MEMMEM $ac_have_decl
5323 for ac_func
in memmem
5325 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
5326 if test "x$ac_cv_func_memmem" = x
""yes; then :
5327 cat >>confdefs.h
<<_ACEOF
5328 #define HAVE_MEMMEM 1
5333 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
5346 if test $ac_cv_have_decl_memmem = no
; then
5352 gl_cv_c_multiarch
=no
5353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5354 /* end confdefs.h. */
5355 #ifndef __APPLE_CC__
5356 not a universal capable compiler
5361 if ac_fn_c_try_compile
"$LINENO"; then :
5365 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
5366 if test -n "$prev"; then
5368 i?
86 | x86_64 | ppc | ppc64
)
5369 if test -z "$arch" ||
test "$arch" = "$word"; then
5372 gl_cv_c_multiarch
=yes
5378 if test "x$word" = "x-arch"; then
5385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5386 if test $gl_cv_c_multiarch = yes; then
5388 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5390 APPLE_UNIVERSAL_BUILD
=1
5392 APPLE_UNIVERSAL_BUILD
=0
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
5403 $as_echo_n "checking for wchar_t... " >&6; }
5404 if test "${gt_cv_c_wchar_t+set}" = set; then :
5405 $as_echo_n "(cached) " >&6
5407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5410 wchar_t foo = (wchar_t)'\0';
5419 if ac_fn_c_try_compile
"$LINENO"; then :
5424 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
5427 $as_echo "$gt_cv_c_wchar_t" >&6; }
5428 if test $gt_cv_c_wchar_t = yes; then
5430 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5437 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5438 if test "${gl_cv_have_include_next+set}" = set; then :
5439 $as_echo_n "(cached) " >&6
5441 rm -rf conftestd1a conftestd1b conftestd2
5442 mkdir conftestd1a conftestd1b conftestd2
5443 cat <<EOF > conftestd1a/conftest.h
5444 #define DEFINED_IN_CONFTESTD1
5445 #include_next <conftest.h>
5446 #ifdef DEFINED_IN_CONFTESTD2
5449 #error "include_next doesn't work"
5452 cat <<EOF > conftestd1b/conftest.h
5453 #define DEFINED_IN_CONFTESTD1
5455 #include_next <conftest.h>
5456 #ifdef DEFINED_IN_CONFTESTD2
5459 #error "include_next doesn't work"
5462 cat <<EOF > conftestd2/conftest.h
5463 #ifndef DEFINED_IN_CONFTESTD1
5464 #error "include_next test doesn't work"
5466 #define DEFINED_IN_CONFTESTD2
5468 gl_save_CPPFLAGS
="$CPPFLAGS"
5469 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5471 /* end confdefs.h. */
5472 #include <conftest.h>
5474 if ac_fn_c_try_compile
"$LINENO"; then :
5475 gl_cv_have_include_next
=yes
5477 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5479 /* end confdefs.h. */
5480 #include <conftest.h>
5482 if ac_fn_c_try_compile
"$LINENO"; then :
5483 gl_cv_have_include_next
=buggy
5485 gl_cv_have_include_next
=no
5487 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5490 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5491 CPPFLAGS
="$gl_save_CPPFLAGS"
5492 rm -rf conftestd1a conftestd1b conftestd2
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5496 $as_echo "$gl_cv_have_include_next" >&6; }
5497 PRAGMA_SYSTEM_HEADER
=
5498 if test $gl_cv_have_include_next = yes; then
5499 INCLUDE_NEXT
=include_next
5500 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
5501 if test -n "$GCC"; then
5502 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
5505 if test $gl_cv_have_include_next = buggy
; then
5506 INCLUDE_NEXT
=include
5507 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
5509 INCLUDE_NEXT
=include
5510 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5524 $as_echo_n "checking for long long int... " >&6; }
5525 if test "${ac_cv_type_long_long_int+set}" = set; then :
5526 $as_echo_n "(cached) " >&6
5528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5529 /* end confdefs.h. */
5531 /* For now, do not test the preprocessor; as of 2007 there are too many
5532 implementations with broken preprocessors. Perhaps this can
5533 be revisited in 2012. In the meantime, code should not expect
5534 #if to work with literals wider than 32 bits. */
5535 /* Test literals. */
5536 long long int ll = 9223372036854775807ll;
5537 long long int nll = -9223372036854775807LL;
5538 unsigned long long int ull = 18446744073709551615ULL;
5539 /* Test constant expressions. */
5540 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5542 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5548 /* Test availability of runtime routines for shift and division. */
5549 long long int llmax = 9223372036854775807ll;
5550 unsigned long long int ullmax = 18446744073709551615ull;
5551 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5552 | (llmax / ll) | (llmax % ll)
5553 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5554 | (ullmax / ull) | (ullmax % ull));
5560 if ac_fn_c_try_link
"$LINENO"; then :
5561 if test "$cross_compiling" = yes; then :
5562 ac_cv_type_long_long_int
=yes
5564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h. */
5569 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5570 # define LLONG_MAX (HALF - 1 + HALF)
5575 long long int n = 1;
5579 long long int m = n << i;
5582 if (LLONG_MAX / 2 < m)
5590 if ac_fn_c_try_run
"$LINENO"; then :
5591 ac_cv_type_long_long_int
=yes
5593 ac_cv_type_long_long_int
=no
5595 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5596 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5600 ac_cv_type_long_long_int
=no
5602 rm -f core conftest.err conftest.
$ac_objext \
5603 conftest
$ac_exeext conftest.
$ac_ext
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5606 $as_echo "$ac_cv_type_long_long_int" >&6; }
5607 if test $ac_cv_type_long_long_int = yes; then
5609 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5615 $as_echo_n "checking for unsigned long long int... " >&6; }
5616 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5617 $as_echo_n "(cached) " >&6
5619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5620 /* end confdefs.h. */
5622 /* For now, do not test the preprocessor; as of 2007 there are too many
5623 implementations with broken preprocessors. Perhaps this can
5624 be revisited in 2012. In the meantime, code should not expect
5625 #if to work with literals wider than 32 bits. */
5626 /* Test literals. */
5627 long long int ll = 9223372036854775807ll;
5628 long long int nll = -9223372036854775807LL;
5629 unsigned long long int ull = 18446744073709551615ULL;
5630 /* Test constant expressions. */
5631 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5633 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5639 /* Test availability of runtime routines for shift and division. */
5640 long long int llmax = 9223372036854775807ll;
5641 unsigned long long int ullmax = 18446744073709551615ull;
5642 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5643 | (llmax / ll) | (llmax % ll)
5644 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5645 | (ullmax / ull) | (ullmax % ull));
5651 if ac_fn_c_try_link
"$LINENO"; then :
5652 ac_cv_type_unsigned_long_long_int
=yes
5654 ac_cv_type_unsigned_long_long_int
=no
5656 rm -f core conftest.err conftest.
$ac_objext \
5657 conftest
$ac_exeext conftest.
$ac_ext
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5660 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5661 if test $ac_cv_type_unsigned_long_long_int = yes; then
5663 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
5678 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
5679 if test "${ac_cv_c_restrict+set}" = set; then :
5680 $as_echo_n "(cached) " >&6
5683 # The order here caters to the fact that C++ does not require restrict.
5684 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
5685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5686 /* end confdefs.h. */
5687 typedef int * int_ptr;
5688 int foo (int_ptr $ac_kw ip) {
5702 if ac_fn_c_try_compile
"$LINENO"; then :
5703 ac_cv_c_restrict
=$ac_kw
5705 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5706 test "$ac_cv_c_restrict" != no
&& break
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5711 $as_echo "$ac_cv_c_restrict" >&6; }
5713 case $ac_cv_c_restrict in
5715 no
) $as_echo "#define restrict /**/" >>confdefs.h
5717 *) cat >>confdefs.h
<<_ACEOF
5718 #define restrict $ac_cv_c_restrict
5743 if test $gl_cv_have_include_next = yes; then
5744 gl_cv_next_string_h
='<'string.h
'>'
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
5747 $as_echo_n "checking absolute name of <string.h>... " >&6; }
5748 if test "${gl_cv_next_string_h+set}" = set; then :
5749 $as_echo_n "(cached) " >&6
5752 if test $ac_cv_header_string_h = yes; then
5753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5754 /* end confdefs.h. */
5759 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
5760 *) gl_absname_cpp
="$ac_cpp" ;;
5762 gl_cv_next_string_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5763 sed -n '\#/string.h#{
5764 s#.*"\(.*/string.h\)".*#\1#
5770 gl_cv_next_string_h
='<'string.h
'>'
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
5775 $as_echo "$gl_cv_next_string_h" >&6; }
5777 NEXT_STRING_H
=$gl_cv_next_string_h
5779 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
5780 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5781 gl_next_as_first_directive
='<'string.h
'>'
5783 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5784 gl_next_as_first_directive
=$gl_cv_next_string_h
5786 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
5792 for gl_func
in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp
; do
5793 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
5795 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
5796 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
5797 $as_echo_n "(cached) " >&6
5799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5800 /* end confdefs.h. */
5812 if ac_fn_c_try_compile
"$LINENO"; then :
5813 eval "$as_gl_Symbol=yes"
5815 eval "$as_gl_Symbol=no"
5817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5819 eval ac_res
=\$
$as_gl_Symbol
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5821 $as_echo "$ac_res" >&6; }
5822 eval as_val
=\$
$as_gl_Symbol
5823 if test "x$as_val" = x
""yes; then :
5824 cat >>confdefs.h
<<_ACEOF
5825 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
5828 eval ac_cv_have_decl_
$gl_func=yes
5840 GNULIB_MBSNRTOWCS
=0;
5843 GNULIB_WCSNRTOMBS
=0;
5855 HAVE_DECL_WCWIDTH
=1;
5856 REPLACE_MBSTATE_T
=0;
5862 REPLACE_MBSRTOWCS
=0;
5863 REPLACE_MBSNRTOWCS
=0;
5865 REPLACE_WCSRTOMBS
=0;
5866 REPLACE_WCSNRTOMBS
=0;
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
5871 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
5872 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
5873 $as_echo_n "(cached) " >&6
5875 gl_cv_header_wchar_h_correct_inline
=yes
5876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5877 /* end confdefs.h. */
5879 #define wcstod renamed_wcstod
5881 extern int zero (void);
5882 int main () { return zero(); }
5885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5886 (eval $ac_compile) 2>&5
5888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5889 test $ac_status = 0; }; then
5890 mv conftest.
$ac_objext conftest1.
$ac_objext
5891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5892 /* end confdefs.h. */
5894 #define wcstod renamed_wcstod
5896 int zero (void) { return 0; }
5899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5900 (eval $ac_compile) 2>&5
5902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5903 test $ac_status = 0; }; then
5904 mv conftest.
$ac_objext conftest2.
$ac_objext
5905 if $CC -o conftest
$ac_exeext $CFLAGS $LDFLAGS conftest1.
$ac_objext conftest2.
$ac_objext $LIBS >&5 2>&1; then
5908 gl_cv_header_wchar_h_correct_inline
=no
5912 rm -f conftest1.
$ac_objext conftest2.
$ac_objext conftest
$ac_exeext
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
5916 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
5917 if test $gl_cv_header_wchar_h_correct_inline = no
; then
5918 as_fn_error
"<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
5919 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
5920 C99 mode. You have four options:
5921 - Add the flag -fgnu89-inline to CC and reconfigure, or
5922 - Fix your include files, using parts of
5923 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
5924 - Use a gcc version older than 4.3, or
5925 - Don't use the flags -std=c99 or -std=gnu99.
5926 Configuration aborted." "$LINENO" 5
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
5931 $as_echo_n "checking for wint_t... " >&6; }
5932 if test "${gt_cv_c_wint_t+set}" = set; then :
5933 $as_echo_n "(cached) " >&6
5935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5936 /* end confdefs.h. */
5938 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5940 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
5941 before <wchar.h>. */
5946 wint_t foo = (wchar_t)'\0';
5955 if ac_fn_c_try_compile
"$LINENO"; then :
5960 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
5963 $as_echo "$gt_cv_c_wint_t" >&6; }
5964 if test $gt_cv_c_wint_t = yes; then
5966 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
5972 GL_COND_LIBTOOL_TRUE
=
5973 GL_COND_LIBTOOL_FALSE
='#'
5975 GL_COND_LIBTOOL_TRUE
='#'
5976 GL_COND_LIBTOOL_FALSE
=
5979 gl_cond_libtool
=false
5982 gl_m4_base
='gnulib/m4'
5992 gl_source_base
='gnulib'
5993 # Code from module arg-nonnull:
5994 # Code from module c++defs:
5995 # Code from module extensions:
5996 # Code from module include_next:
5997 # Code from module memchr:
6006 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
6010 # Code from module memmem:
6013 if test $ac_cv_have_decl_memmem = yes; then
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
6015 $as_echo_n "checking whether memmem works in linear time... " >&6; }
6016 if test "${gl_cv_func_memmem_works+set}" = set; then :
6017 $as_echo_n "(cached) " >&6
6019 if test "$cross_compiling" = yes; then :
6020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6021 /* end confdefs.h. */
6023 #include <features.h>
6024 #ifdef __GNU_LIBRARY__
6025 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)
6030 #include <cygwin/version.h>
6031 #if CYGWIN_VERSION_DLL_MAJOR >= 1007
6037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6038 $EGREP "Lucky user" >/dev
/null
2>&1; then :
6039 gl_cv_func_memmem_works
=yes
6041 gl_cv_func_memmem_works
="guessing no"
6047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6048 /* end confdefs.h. */
6050 #include <signal.h> /* for signal */
6051 #include <string.h> /* for memmem */
6052 #include <stdlib.h> /* for malloc */
6053 #include <unistd.h> /* for alarm */
6059 char *haystack = (char *) malloc (2 * m + 1);
6060 char *needle = (char *) malloc (m + 1);
6062 /* Failure to compile this test due to missing alarm is okay,
6063 since all such platforms (mingw) also lack memmem. */
6064 signal (SIGALRM, SIG_DFL);
6066 /* Check for quadratic performance. */
6067 if (haystack && needle)
6069 memset (haystack, 'A', 2 * m);
6070 haystack[2 * m] = 'B';
6071 memset (needle, 'A', m);
6073 result = memmem (haystack, 2 * m + 1, needle, m + 1);
6075 /* Check for empty needle behavior. */
6076 return !result || !memmem ("a", 1, 0, 0);
6081 if ac_fn_c_try_run
"$LINENO"; then :
6082 gl_cv_func_memmem_works
=yes
6084 gl_cv_func_memmem_works
=no
6086 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6087 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works" >&5
6093 $as_echo "$gl_cv_func_memmem_works" >&6; }
6094 if test "$gl_cv_func_memmem_works" != yes; then
6104 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
6109 # Code from module memmem-simple:
6122 for ac_func
in memmem
6124 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
6125 if test "x$ac_cv_func_memmem" = x
""yes; then :
6126 cat >>confdefs.h
<<_ACEOF
6127 #define HAVE_MEMMEM 1
6132 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
6145 if test $ac_cv_have_decl_memmem = no
; then
6157 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
6161 # Code from module multiarch:
6163 # Code from module stddef:
6167 if test $gt_cv_c_wchar_t = no
; then
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
6172 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
6173 if test "${gl_cv_decl_null_works+set}" = set; then :
6174 $as_echo_n "(cached) " >&6
6176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6177 /* end confdefs.h. */
6179 int test[2 * (sizeof NULL == sizeof (void *)) -1];
6189 if ac_fn_c_try_compile
"$LINENO"; then :
6190 gl_cv_decl_null_works
=yes
6192 gl_cv_decl_null_works
=no
6194 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
6197 $as_echo "$gl_cv_decl_null_works" >&6; }
6198 if test $gl_cv_decl_null_works = no
; then
6202 if test -n "$STDDEF_H"; then
6215 if test $gl_cv_have_include_next = yes; then
6216 gl_cv_next_stddef_h
='<'stddef.h
'>'
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
6219 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
6220 if test "${gl_cv_next_stddef_h+set}" = set; then :
6221 $as_echo_n "(cached) " >&6
6224 if test $ac_cv_header_stddef_h = yes; then
6225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6226 /* end confdefs.h. */
6231 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
6232 *) gl_absname_cpp
="$ac_cpp" ;;
6234 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6235 sed -n '\#/stddef.h#{
6236 s#.*"\(.*/stddef.h\)".*#\1#
6242 gl_cv_next_stddef_h
='<'stddef.h
'>'
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
6247 $as_echo "$gl_cv_next_stddef_h" >&6; }
6249 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
6251 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
6252 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6253 gl_next_as_first_directive
='<'stddef.h
'>'
6255 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6256 gl_next_as_first_directive
=$gl_cv_next_stddef_h
6258 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
6264 # Code from module stdint:
6268 if test $ac_cv_type_long_long_int = yes; then
6269 HAVE_LONG_LONG_INT
=1
6271 HAVE_LONG_LONG_INT
=0
6275 if test $ac_cv_type_unsigned_long_long_int = yes; then
6276 HAVE_UNSIGNED_LONG_LONG_INT
=1
6278 HAVE_UNSIGNED_LONG_LONG_INT
=0
6282 if test $ac_cv_header_inttypes_h = yes; then
6289 if test $ac_cv_header_sys_types_h = yes; then
6308 if test $gl_cv_have_include_next = yes; then
6309 gl_cv_next_stdint_h
='<'stdint.h
'>'
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6312 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6313 if test "${gl_cv_next_stdint_h+set}" = set; then :
6314 $as_echo_n "(cached) " >&6
6317 if test $ac_cv_header_stdint_h = yes; then
6318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6319 /* end confdefs.h. */
6324 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
6325 *) gl_absname_cpp
="$ac_cpp" ;;
6327 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6328 sed -n '\#/stdint.h#{
6329 s#.*"\(.*/stdint.h\)".*#\1#
6335 gl_cv_next_stdint_h
='<'stdint.h
'>'
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6340 $as_echo "$gl_cv_next_stdint_h" >&6; }
6342 NEXT_STDINT_H
=$gl_cv_next_stdint_h
6344 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
6345 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6346 gl_next_as_first_directive
='<'stdint.h
'>'
6348 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6349 gl_next_as_first_directive
=$gl_cv_next_stdint_h
6351 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
6355 if test $ac_cv_header_stdint_h = yes; then
6362 if test $ac_cv_header_stdint_h = yes; then
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
6364 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
6365 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
6366 $as_echo_n "(cached) " >&6
6368 gl_cv_header_working_stdint_h
=no
6369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6370 /* end confdefs.h. */
6373 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6374 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6375 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6377 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
6378 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
6379 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
6383 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6384 included before <wchar.h>. */
6395 int8_t a1 = INT8_MAX;
6396 int8_t a1min = INT8_MIN;
6399 int16_t a2 = INT16_MAX;
6400 int16_t a2min = INT16_MIN;
6403 int32_t a3 = INT32_MAX;
6404 int32_t a3min = INT32_MIN;
6407 int64_t a4 = INT64_MAX;
6408 int64_t a4min = INT64_MIN;
6411 uint8_t b1 = UINT8_MAX;
6413 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
6416 uint16_t b2 = UINT16_MAX;
6419 uint32_t b3 = UINT32_MAX;
6422 uint64_t b4 = UINT64_MAX;
6424 int_least8_t c1 = INT8_C (0x7f);
6425 int_least8_t c1max = INT_LEAST8_MAX;
6426 int_least8_t c1min = INT_LEAST8_MIN;
6427 int_least16_t c2 = INT16_C (0x7fff);
6428 int_least16_t c2max = INT_LEAST16_MAX;
6429 int_least16_t c2min = INT_LEAST16_MIN;
6430 int_least32_t c3 = INT32_C (0x7fffffff);
6431 int_least32_t c3max = INT_LEAST32_MAX;
6432 int_least32_t c3min = INT_LEAST32_MIN;
6433 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
6434 int_least64_t c4max = INT_LEAST64_MAX;
6435 int_least64_t c4min = INT_LEAST64_MIN;
6436 uint_least8_t d1 = UINT8_C (0xff);
6437 uint_least8_t d1max = UINT_LEAST8_MAX;
6438 uint_least16_t d2 = UINT16_C (0xffff);
6439 uint_least16_t d2max = UINT_LEAST16_MAX;
6440 uint_least32_t d3 = UINT32_C (0xffffffff);
6441 uint_least32_t d3max = UINT_LEAST32_MAX;
6442 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
6443 uint_least64_t d4max = UINT_LEAST64_MAX;
6444 int_fast8_t e1 = INT_FAST8_MAX;
6445 int_fast8_t e1min = INT_FAST8_MIN;
6446 int_fast16_t e2 = INT_FAST16_MAX;
6447 int_fast16_t e2min = INT_FAST16_MIN;
6448 int_fast32_t e3 = INT_FAST32_MAX;
6449 int_fast32_t e3min = INT_FAST32_MIN;
6450 int_fast64_t e4 = INT_FAST64_MAX;
6451 int_fast64_t e4min = INT_FAST64_MIN;
6452 uint_fast8_t f1 = UINT_FAST8_MAX;
6453 uint_fast16_t f2 = UINT_FAST16_MAX;
6454 uint_fast32_t f3 = UINT_FAST32_MAX;
6455 uint_fast64_t f4 = UINT_FAST64_MAX;
6457 intptr_t g = INTPTR_MAX;
6458 intptr_t gmin = INTPTR_MIN;
6461 uintptr_t h = UINTPTR_MAX;
6463 intmax_t i = INTMAX_MAX;
6464 uintmax_t j = UINTMAX_MAX;
6466 #include <limits.h> /* for CHAR_BIT */
6467 #define TYPE_MINIMUM(t) \
6468 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
6469 #define TYPE_MAXIMUM(t) \
6470 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
6473 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
6474 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
6476 /* Detect bug in FreeBSD 6.0 / ia64. */
6477 int check_SIG_ATOMIC:
6478 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
6479 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
6481 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
6483 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
6484 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
6486 /* Detect bug in mingw. */
6488 WINT_MIN == TYPE_MINIMUM (wint_t)
6489 && WINT_MAX == TYPE_MAXIMUM (wint_t)
6492 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
6494 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
6496 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
6498 /* Detect bugs in OpenBSD 3.9 stdint.h. */
6500 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
6503 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
6506 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
6509 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
6511 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
6512 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
6513 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
6514 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
6515 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
6516 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
6517 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
6518 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
6519 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
6520 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
6521 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
6532 if ac_fn_c_try_compile
"$LINENO"; then :
6533 if test "$cross_compiling" = yes; then :
6534 gl_cv_header_working_stdint_h
=yes
6537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6538 /* end confdefs.h. */
6541 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6542 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6543 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6547 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6548 included before <wchar.h>. */
6560 #define MVAL(macro) MVAL1(macro)
6561 #define MVAL1(expression) #expression
6562 static const char *macro_values[] =
6596 for (mv = macro_values; *mv != NULL; mv++)
6598 const char *value = *mv;
6599 /* Test whether it looks like a cast expression. */
6600 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
6601 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
6602 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
6603 || strncmp (value, "((int)"/*)*/, 6) == 0
6604 || strncmp (value, "((signed short)"/*)*/, 15) == 0
6605 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
6614 if ac_fn_c_try_run
"$LINENO"; then :
6615 gl_cv_header_working_stdint_h
=yes
6617 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6618 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6623 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
6627 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
6629 if test "$gl_cv_header_working_stdint_h" = yes; then
6632 for ac_header
in sys
/inttypes.h sys
/bitypes.h
6634 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6635 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6636 eval as_val
=\$
$as_ac_Header
6637 if test "x$as_val" = x
""yes; then :
6638 cat >>confdefs.h
<<_ACEOF
6639 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6646 if test $ac_cv_header_sys_inttypes_h = yes; then
6647 HAVE_SYS_INTTYPES_H
=1
6649 HAVE_SYS_INTTYPES_H
=0
6652 if test $ac_cv_header_sys_bitypes_h = yes; then
6653 HAVE_SYS_BITYPES_H
=1
6655 HAVE_SYS_BITYPES_H
=0
6669 if test $APPLE_UNIVERSAL_BUILD = 0; then
6672 for gltype
in ptrdiff_t size_t
; do
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6674 $as_echo_n "checking for bit size of $gltype... " >&6; }
6675 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6676 $as_echo_n "(cached) " >&6
6678 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6679 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6680 included before <wchar.h>. */
6689 #include <limits.h>"; then :
6695 eval gl_cv_bitsizeof_
${gltype}=\
$result
6698 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6700 $as_echo "$ac_res" >&6; }
6701 eval result
=\
$gl_cv_bitsizeof_${gltype}
6702 if test $result = unknown
; then
6705 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6706 cat >>confdefs.h
<<_ACEOF
6707 #define BITSIZEOF_${GLTYPE} $result
6710 eval BITSIZEOF_
${GLTYPE}=\
$result
6717 for gltype
in sig_atomic_t wchar_t wint_t
; do
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6719 $as_echo_n "checking for bit size of $gltype... " >&6; }
6720 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6721 $as_echo_n "(cached) " >&6
6723 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6724 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6725 included before <wchar.h>. */
6734 #include <limits.h>"; then :
6740 eval gl_cv_bitsizeof_
${gltype}=\
$result
6743 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6745 $as_echo "$ac_res" >&6; }
6746 eval result
=\
$gl_cv_bitsizeof_${gltype}
6747 if test $result = unknown
; then
6750 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6751 cat >>confdefs.h
<<_ACEOF
6752 #define BITSIZEOF_${GLTYPE} $result
6755 eval BITSIZEOF_
${GLTYPE}=\
$result
6761 for gltype
in sig_atomic_t wchar_t wint_t
; do
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
6763 $as_echo_n "checking whether $gltype is signed... " >&6; }
6764 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
6765 $as_echo_n "(cached) " >&6
6767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6768 /* end confdefs.h. */
6770 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6771 included before <wchar.h>. */
6780 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6789 if ac_fn_c_try_compile
"$LINENO"; then :
6794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6795 eval gl_cv_type_
${gltype}_signed
=\
$result
6798 eval ac_res
=\
$gl_cv_type_${gltype}_signed
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6800 $as_echo "$ac_res" >&6; }
6801 eval result
=\
$gl_cv_type_${gltype}_signed
6802 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6803 if test "$result" = yes; then
6804 cat >>confdefs.h
<<_ACEOF
6805 #define HAVE_SIGNED_${GLTYPE} 1
6808 eval HAVE_SIGNED_
${GLTYPE}=1
6810 eval HAVE_SIGNED_
${GLTYPE}=0
6815 gl_cv_type_ptrdiff_t_signed
=yes
6816 gl_cv_type_size_t_signed
=no
6817 if test $APPLE_UNIVERSAL_BUILD = 0; then
6820 for gltype
in ptrdiff_t size_t
; do
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6822 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6823 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6824 $as_echo_n "(cached) " >&6
6826 eval gl_cv_type_
${gltype}_suffix
=no
6827 eval result
=\
$gl_cv_type_${gltype}_signed
6828 if test "$result" = yes; then
6833 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
6836 l
) gltype1
='long int';;
6837 ll
) gltype1
='long long int';;
6838 i64
) gltype1
='__int64';;
6839 u
) gltype1
='unsigned int';;
6840 ul
) gltype1
='unsigned long int';;
6841 ull
) gltype1
='unsigned long long int';;
6842 ui64
)gltype1
='unsigned __int64';;
6844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6845 /* end confdefs.h. */
6847 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6848 included before <wchar.h>. */
6858 extern $gltype1 foo;
6867 if ac_fn_c_try_compile
"$LINENO"; then :
6868 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
6870 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6871 eval result
=\
$gl_cv_type_${gltype}_suffix
6872 test "$result" != no
&& break
6875 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6877 $as_echo "$ac_res" >&6; }
6878 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6879 eval result
=\
$gl_cv_type_${gltype}_suffix
6880 test "$result" = no
&& result
=
6881 eval ${GLTYPE}_SUFFIX
=\
$result
6882 cat >>confdefs.h
<<_ACEOF
6883 #define ${GLTYPE}_SUFFIX $result
6892 for gltype
in sig_atomic_t wchar_t wint_t
; do
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6894 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6895 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6896 $as_echo_n "(cached) " >&6
6898 eval gl_cv_type_
${gltype}_suffix
=no
6899 eval result
=\
$gl_cv_type_${gltype}_signed
6900 if test "$result" = yes; then
6905 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
6908 l
) gltype1
='long int';;
6909 ll
) gltype1
='long long int';;
6910 i64
) gltype1
='__int64';;
6911 u
) gltype1
='unsigned int';;
6912 ul
) gltype1
='unsigned long int';;
6913 ull
) gltype1
='unsigned long long int';;
6914 ui64
)gltype1
='unsigned __int64';;
6916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6917 /* end confdefs.h. */
6919 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6920 included before <wchar.h>. */
6930 extern $gltype1 foo;
6939 if ac_fn_c_try_compile
"$LINENO"; then :
6940 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
6942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6943 eval result
=\
$gl_cv_type_${gltype}_suffix
6944 test "$result" != no
&& break
6947 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6949 $as_echo "$ac_res" >&6; }
6950 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6951 eval result
=\
$gl_cv_type_${gltype}_suffix
6952 test "$result" = no
&& result
=
6953 eval ${GLTYPE}_SUFFIX
=\
$result
6954 cat >>confdefs.h
<<_ACEOF
6955 #define ${GLTYPE}_SUFFIX $result
6966 # Code from module string:
6970 # Code from module warn-on-use:
6971 # Code from module wchar:
6994 if test $gl_cv_have_include_next = yes; then
6995 gl_cv_next_wchar_h
='<'wchar.h
'>'
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
6998 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
6999 if test "${gl_cv_next_wchar_h+set}" = set; then :
7000 $as_echo_n "(cached) " >&6
7003 if test $ac_cv_header_wchar_h = yes; then
7004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7005 /* end confdefs.h. */
7010 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
7011 *) gl_absname_cpp
="$ac_cpp" ;;
7013 gl_cv_next_wchar_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7014 sed -n '\#/wchar.h#{
7015 s#.*"\(.*/wchar.h\)".*#\1#
7021 gl_cv_next_wchar_h
='<'wchar.h
'>'
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
7026 $as_echo "$gl_cv_next_wchar_h" >&6; }
7028 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
7030 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
7031 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7032 gl_next_as_first_directive
='<'wchar.h
'>'
7034 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7035 gl_next_as_first_directive
=$gl_cv_next_wchar_h
7037 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
=$gl_next_as_first_directive
7041 if test $ac_cv_header_wchar_h = yes; then
7049 if test $gt_cv_c_wint_t = yes; then
7057 for gl_func
in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth
; do
7058 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7060 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7061 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7062 $as_echo_n "(cached) " >&6
7064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7065 /* end confdefs.h. */
7067 /* Some systems require additional headers. */
7069 # include <stddef.h>
7084 if ac_fn_c_try_compile
"$LINENO"; then :
7085 eval "$as_gl_Symbol=yes"
7087 eval "$as_gl_Symbol=no"
7089 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7091 eval ac_res
=\$
$as_gl_Symbol
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7093 $as_echo "$ac_res" >&6; }
7094 eval as_val
=\$
$as_gl_Symbol
7095 if test "x$as_val" = x
""yes; then :
7096 cat >>confdefs.h
<<_ACEOF
7097 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7100 eval ac_cv_have_decl_
$gl_func=yes
7105 # Code from module dummy:
7106 # End of code from modules
7127 gl_source_base
='tests'
7128 gltests_WITNESS
=IN_
`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
7130 gl_module_indicator_condition
=$gltests_WITNESS
7140 LIBGNU_LIBDEPS
="$gl_libdeps"
7142 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
7146 # For Makefile dependencies.
7148 if test x
"$STDINT_H" != x
; then
7149 GNULIB_STDINT_H
=gnulib
/$STDINT_H
7155 cat >>confdefs.h
<<_ACEOF
7156 #define PACKAGE "$PACKAGE"
7161 # Do we have a single-tree copy of texinfo? Even if we do, we can't
7162 # rely on it - libiberty is built before texinfo.
7163 # Extract the first word of "makeinfo", so it can be a program name with args.
7164 set dummy makeinfo
; ac_word
=$2
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7166 $as_echo_n "checking for $ac_word... " >&6; }
7167 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7168 $as_echo_n "(cached) " >&6
7170 if test -n "$MAKEINFO"; then
7171 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7173 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7177 test -z "$as_dir" && as_dir
=.
7178 for ac_exec_ext
in '' $ac_executable_extensions; do
7179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7180 ac_cv_prog_MAKEINFO
="makeinfo"
7181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7190 MAKEINFO
=$ac_cv_prog_MAKEINFO
7191 if test -n "$MAKEINFO"; then
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7193 $as_echo "$MAKEINFO" >&6; }
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7196 $as_echo "no" >&6; }
7200 if test "x$MAKEINFO" = "x"; then
7201 as_fn_error
"makeinfo is required for compilation" "$LINENO" 5
7204 */missing\ makeinfo
*)
7205 as_fn_error
"makeinfo is required for compilation" "$LINENO" 5
7211 # --split-size=5000000 may be already in $MAKEINFO from parent configure.
7212 # Re-running configure in gdb/ would lose it so ensure it stays present.
7213 MAKEINFOFLAGS
=${MAKEINFOFLAGS---split-size=5000000}
7216 MAKEINFO_EXTRA_FLAGS
=""
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
7218 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
7219 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
7220 $as_echo_n "(cached) " >&6
7222 echo '@clicksequence{a @click{} b}' >conftest.texinfo
7223 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
7224 gdb_cv_have_makeinfo_click
=yes
7226 gdb_cv_have_makeinfo_click
=no
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
7230 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
7231 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
7232 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
7236 # GDB does not use automake, but gnulib does. This line lets us
7237 # generate its Makefile.in.
7238 am__api_version
='1.11'
7240 # Find a good install program. We prefer a C program (faster),
7241 # so one script is as good as another. But avoid the broken or
7242 # incompatible versions:
7243 # SysV /etc/install, /usr/sbin/install
7244 # SunOS /usr/etc/install
7245 # IRIX /sbin/install
7247 # AmigaOS /C/install, which installs bootblocks on floppy discs
7248 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7249 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7250 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7251 # OS/2's system install, which has a completely different semantic
7252 # ./install, which can be erroneously created by make from ./install.sh.
7253 # Reject install programs that cannot install multiple files.
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7255 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7256 if test -z "$INSTALL"; then
7257 if test "${ac_cv_path_install+set}" = set; then :
7258 $as_echo_n "(cached) " >&6
7260 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7264 test -z "$as_dir" && as_dir
=.
7265 # Account for people who put trailing slashes in PATH elements.
7266 case $as_dir/ in #((
7267 .
/ | .
// |
/[cC
]/* | \
7268 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7269 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
7272 # OSF1 and SCO ODT 3.0 have their own names for install.
7273 # Don't use installbsd from OSF since it installs stuff as root
7275 for ac_prog
in ginstall scoinst
install; do
7276 for ac_exec_ext
in '' $ac_executable_extensions; do
7277 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7278 if test $ac_prog = install &&
7279 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7280 # AIX install. It has an incompatible calling convention.
7282 elif test $ac_prog = install &&
7283 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7284 # program-specific install script used by HP pwplus--don't use.
7287 rm -rf conftest.one conftest.two conftest.dir
7288 echo one
> conftest.one
7289 echo two
> conftest.two
7291 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
7292 test -s conftest.one
&& test -s conftest.two
&&
7293 test -s conftest.dir
/conftest.one
&&
7294 test -s conftest.dir
/conftest.two
7296 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7309 rm -rf conftest.one conftest.two conftest.dir
7312 if test "${ac_cv_path_install+set}" = set; then
7313 INSTALL
=$ac_cv_path_install
7315 # As a last resort, use the slow shell script. Don't cache a
7316 # value for INSTALL within a source directory, because that will
7317 # break other packages using the cache if that directory is
7318 # removed, or if the value is a relative name.
7319 INSTALL
=$ac_install_sh
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7323 $as_echo "$INSTALL" >&6; }
7325 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7326 # It thinks the first close brace ends the variable substitution.
7327 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7329 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7331 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
7334 $as_echo_n "checking whether build environment is sane... " >&6; }
7337 echo timestamp
> conftest.
file
7338 # Reject unsafe characters in $srcdir or the absolute working directory
7339 # name. Accept space and tab only in the latter.
7343 *[\\\"\
#\$\&\'\`$am_lf]*)
7344 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
7347 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
7348 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
7351 # Do `set' in a subshell so we don't clobber the current shell's
7352 # arguments. Must try -L first in case configure is actually a
7353 # symlink; some systems play weird games with the mod time of symlinks
7354 # (eg FreeBSD returns the mod time of the symlink's containing
7357 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
7358 if test "$*" = "X"; then
7360 set X
`ls -t "$srcdir/configure" conftest.file`
7363 if test "$*" != "X $srcdir/configure conftest.file" \
7364 && test "$*" != "X conftest.file $srcdir/configure"; then
7366 # If neither matched, then we have a broken ls. This can happen
7367 # if, for instance, CONFIG_SHELL is bash and it inherits a
7368 # broken ls alias from the environment. This has actually
7369 # happened. Such a system could not be considered "sane".
7370 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
7371 alias in your environment" "$LINENO" 5
7374 test "$2" = conftest.
file
7380 as_fn_error
"newly created file is older than distributed files!
7381 Check your system clock" "$LINENO" 5
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7384 $as_echo "yes" >&6; }
7385 test "$program_prefix" != NONE
&&
7386 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
7387 # Use a double $ so make ignores it.
7388 test "$program_suffix" != NONE
&&
7389 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
7390 # Double any \ or $.
7391 # By default was `s,x,x', remove it if useless.
7392 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
7393 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
7395 # expand $ac_aux_dir to an absolute path
7396 am_aux_dir
=`cd $ac_aux_dir && pwd`
7398 if test x
"${MISSING+set}" != xset
; then
7401 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
7403 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
7406 # Use eval to expand $SHELL
7407 if eval "$MISSING --run true"; then
7408 am_missing_run
="$MISSING --run "
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
7412 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
7415 if test x
"${install_sh}" != xset
; then
7418 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
7420 install_sh
="\${SHELL} $am_aux_dir/install-sh"
7424 # Installed binaries are usually stripped using `strip' when the user
7425 # run `make install-strip'. However `strip' might not be the right
7426 # tool to use in cross-compilation environments, therefore Automake
7427 # will honor the `STRIP' environment variable to overrule this program.
7428 if test "$cross_compiling" != no
; then
7429 if test -n "$ac_tool_prefix"; then
7430 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7431 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7433 $as_echo_n "checking for $ac_word... " >&6; }
7434 if test "${ac_cv_prog_STRIP+set}" = set; then :
7435 $as_echo_n "(cached) " >&6
7437 if test -n "$STRIP"; then
7438 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
7440 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7444 test -z "$as_dir" && as_dir
=.
7445 for ac_exec_ext
in '' $ac_executable_extensions; do
7446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7447 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
7448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7457 STRIP
=$ac_cv_prog_STRIP
7458 if test -n "$STRIP"; then
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7460 $as_echo "$STRIP" >&6; }
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7463 $as_echo "no" >&6; }
7468 if test -z "$ac_cv_prog_STRIP"; then
7470 # Extract the first word of "strip", so it can be a program name with args.
7471 set dummy strip
; ac_word
=$2
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7473 $as_echo_n "checking for $ac_word... " >&6; }
7474 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7475 $as_echo_n "(cached) " >&6
7477 if test -n "$ac_ct_STRIP"; then
7478 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
7480 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7484 test -z "$as_dir" && as_dir
=.
7485 for ac_exec_ext
in '' $ac_executable_extensions; do
7486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7487 ac_cv_prog_ac_ct_STRIP
="strip"
7488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7497 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
7498 if test -n "$ac_ct_STRIP"; then
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7500 $as_echo "$ac_ct_STRIP" >&6; }
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7503 $as_echo "no" >&6; }
7506 if test "x$ac_ct_STRIP" = x
; then
7509 case $cross_compiling:$ac_tool_warned in
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7513 ac_tool_warned
=yes ;;
7518 STRIP
="$ac_cv_prog_STRIP"
7522 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7525 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7526 if test -z "$MKDIR_P"; then
7527 if test "${ac_cv_path_mkdir+set}" = set; then :
7528 $as_echo_n "(cached) " >&6
7530 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7531 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
7534 test -z "$as_dir" && as_dir
=.
7535 for ac_prog
in mkdir gmkdir
; do
7536 for ac_exec_ext
in '' $ac_executable_extensions; do
7537 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
7538 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7539 'mkdir (GNU coreutils) '* | \
7540 'mkdir (coreutils) '* | \
7541 'mkdir (fileutils) '4.1*)
7542 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
7552 if test "${ac_cv_path_mkdir+set}" = set; then
7553 MKDIR_P
="$ac_cv_path_mkdir -p"
7555 # As a last resort, use the slow shell script. Don't cache a
7556 # value for MKDIR_P within a source directory, because that will
7557 # break other packages using the cache if that directory is
7558 # removed, or if the value is a relative name.
7559 test -d .
/--version && rmdir .
/--version
7560 MKDIR_P
="$ac_install_sh -d"
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7564 $as_echo "$MKDIR_P" >&6; }
7569 [\\/$
]* | ?
:[\\/]*) ;;
7570 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
7573 for ac_prog
in gawk mawk nawk
awk
7575 # Extract the first word of "$ac_prog", so it can be a program name with args.
7576 set dummy
$ac_prog; ac_word
=$2
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7578 $as_echo_n "checking for $ac_word... " >&6; }
7579 if test "${ac_cv_prog_AWK+set}" = set; then :
7580 $as_echo_n "(cached) " >&6
7582 if test -n "$AWK"; then
7583 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7585 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7589 test -z "$as_dir" && as_dir
=.
7590 for ac_exec_ext
in '' $ac_executable_extensions; do
7591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7592 ac_cv_prog_AWK
="$ac_prog"
7593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7603 if test -n "$AWK"; then
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7605 $as_echo "$AWK" >&6; }
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7608 $as_echo "no" >&6; }
7612 test -n "$AWK" && break
7615 ac_config_commands
="$ac_config_commands depfiles"
7618 am_make
=${MAKE-make}
7619 cat > confinc
<< 'END'
7621 @
echo this is the am__doit target
7624 # If we don't find an include directive, just comment out the code.
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
7626 $as_echo_n "checking for style of include used by $am_make... " >&6; }
7630 # First try GNU make style include.
7631 echo "include confinc" > confmf
7632 # Ignore all kinds of additional output from `make'.
7633 case `$am_make -s -f confmf 2> /dev/null` in #(
7634 *the\ am__doit\ target
*)
7640 # Now try BSD make style include.
7641 if test "$am__include" = "#"; then
7642 echo '.include "confinc"' > confmf
7643 case `$am_make -s -f confmf 2> /dev/null` in #(
7644 *the\ am__doit\ target
*)
7645 am__include
=.include
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
7654 $as_echo "$_am_result" >&6; }
7655 rm -f confinc confmf
7657 # Check whether --enable-dependency-tracking was given.
7658 if test "${enable_dependency_tracking+set}" = set; then :
7659 enableval
=$enable_dependency_tracking;
7662 if test "x$enable_dependency_tracking" != xno
; then
7663 am_depcomp
="$ac_aux_dir/depcomp"
7666 if test "x$enable_dependency_tracking" != xno; then
7675 if test "`cd $srcdir && pwd`" != "`pwd`"; then
7676 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7677 # is not polluted with repeated "-I."
7678 am__isrc
=' -I$(srcdir)'
7679 # test to see if srcdir already configured
7680 if test -f $srcdir/config.status
; then
7681 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
7685 # test whether we have cygpath
7686 if test -z "$CYGPATH_W"; then
7687 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
7688 CYGPATH_W
='cygpath -w'
7695 # Define the identity of the package.
7697 VERSION
=UNUSED-VERSION
7700 # Some tools Automake needs.
7702 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
7705 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
7708 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
7711 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
7714 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
7716 # We need awk for the "check" target. The system "awk" is bad on
7718 # Always define AMTAR for backward compatibility.
7720 AMTAR
=${AMTAR-"${am_missing_run}tar"}
7722 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
7727 depcc
="$CC" am_compiler_list
=
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7730 $as_echo_n "checking dependency style of $depcc... " >&6; }
7731 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
7732 $as_echo_n "(cached) " >&6
7734 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7735 # We make a subdir and do the tests there. Otherwise we can end up
7736 # making bogus files that we don't know about and never remove. For
7737 # instance it was reported that on HP-UX the gcc test will end up
7738 # making a dummy file named `D' -- because `-MD' means `put the output
7741 # Copy depcomp to subdir because otherwise we won't find it if we're
7742 # using a relative directory.
7743 cp "$am_depcomp" conftest.dir
7745 # We will build objects and dependencies in a subdirectory because
7746 # it helps to detect inapplicable dependency modes. For instance
7747 # both Tru64's cc and ICC support -MD to output dependencies as a
7748 # side effect of compilation, but ICC will put the dependencies in
7749 # the current directory while Tru64 will put them in the object
7753 am_cv_CC_dependencies_compiler_type
=none
7754 if test "$am_compiler_list" = ""; then
7755 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7758 case " $depcc " in #(
7759 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
7762 for depmode
in $am_compiler_list; do
7763 # Setup a source with many dependencies, because some compilers
7764 # like to wrap large dependency lists on column 80 (with \), and
7765 # we should not choose a depcomp mode which is confused by this.
7767 # We need to recreate these files for each test, as the compiler may
7768 # overwrite some of them when testing with obscure command lines.
7769 # This happens at least with the AIX C compiler.
7771 for i
in 1 2 3 4 5 6; do
7772 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
7773 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7774 # Solaris 8's {/usr,}/bin/sh.
7775 touch sub
/conftst
$i.h
7777 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7779 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7780 # mode. It turns out that the SunPro C++ compiler does not properly
7781 # handle `-M -o', and we need to detect this. Also, some Intel
7782 # versions had trouble with output in subdirs
7783 am__obj
=sub
/conftest.
${OBJEXT-o}
7784 am__minus_obj
="-o $am__obj"
7787 # This depmode causes a compiler race in universal mode.
7788 test "$am__universal" = false ||
continue
7791 # after this tag, mechanisms are not by side-effect, so they'll
7792 # only be used when explicitly requested
7793 if test "x$enable_dependency_tracking" = xyes
; then
7799 msvisualcpp | msvcmsys
)
7800 # This compiler won't grok `-c -o', but also, the minuso test has
7801 # not run yet. These depmodes are late enough in the game, and
7802 # so weak that their functioning should not be impacted.
7803 am__obj
=conftest.
${OBJEXT-o}
7808 if depmode
=$depmode \
7809 source=sub
/conftest.c object
=$am__obj \
7810 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
7811 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
7812 >/dev
/null
2>conftest.err
&&
7813 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
7814 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
7815 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
7816 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
7817 # icc doesn't choke on unknown options, it will just issue warnings
7818 # or remarks (even with -Werror). So we grep stderr for any message
7819 # that says an option was ignored or not supported.
7820 # When given -MP, icc 7.0 and 7.1 complain thusly:
7821 # icc: Command line warning: ignoring option '-M'; no argument required
7822 # The diagnosis changed in icc 8.0:
7823 # icc: Command line remark: option '-MP' not supported
7824 if (grep 'ignoring option' conftest.err ||
7825 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
7826 am_cv_CC_dependencies_compiler_type
=$depmode
7835 am_cv_CC_dependencies_compiler_type
=none
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7840 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7841 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
7844 test "x$enable_dependency_tracking" != xno \
7845 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
7847 am__fastdepCC_FALSE
='#'
7849 am__fastdepCC_TRUE
='#'
7850 am__fastdepCC_FALSE
=
7858 # Check whether --with-separate-debug-dir was given.
7859 if test "${with_separate_debug_dir+set}" = set; then :
7860 withval
=$with_separate_debug_dir;
7863 DEBUGDIR
=${libdir}/debug
7867 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7868 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7869 ac_define_dir
=`eval echo $DEBUGDIR`
7870 ac_define_dir
=`eval echo $ac_define_dir`
7872 cat >>confdefs.h
<<_ACEOF
7873 #define DEBUGDIR "$ac_define_dir"
7879 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
7880 if test "x$prefix" = xNONE
; then
7881 test_prefix
=/usr
/local
7886 test_prefix
=$exec_prefix
7889 case ${ac_define_dir} in
7890 "${test_prefix}"|
"${test_prefix}/"*|\
7891 '${exec_prefix}'|
'${exec_prefix}/'*)
7896 cat >>confdefs.h
<<_ACEOF
7897 #define DEBUGDIR_RELOCATABLE $value
7903 # GDB's datadir relocation
7907 # Check whether --with-gdb-datadir was given.
7908 if test "${with_gdb_datadir+set}" = set; then :
7909 withval
=$with_gdb_datadir;
7910 GDB_DATADIR
=$withval
7912 GDB_DATADIR
=${datadir}/gdb
7916 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7917 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7918 ac_define_dir
=`eval echo $GDB_DATADIR`
7919 ac_define_dir
=`eval echo $ac_define_dir`
7921 cat >>confdefs.h
<<_ACEOF
7922 #define GDB_DATADIR "$ac_define_dir"
7928 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
7929 if test "x$prefix" = xNONE
; then
7930 test_prefix
=/usr
/local
7935 test_prefix
=$exec_prefix
7938 case ${ac_define_dir} in
7939 "${test_prefix}"|
"${test_prefix}/"*|\
7940 '${exec_prefix}'|
'${exec_prefix}/'*)
7945 cat >>confdefs.h
<<_ACEOF
7946 #define GDB_DATADIR_RELOCATABLE $value
7953 # Check whether --with-relocated-sources was given.
7954 if test "${with_relocated_sources+set}" = set; then :
7955 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
7957 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7958 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7959 ac_define_dir
=`eval echo $reloc_srcdir`
7960 ac_define_dir
=`eval echo $ac_define_dir`
7962 cat >>confdefs.h
<<_ACEOF
7963 #define RELOC_SRCDIR "$ac_define_dir"
7973 subdirs
="$subdirs testsuite"
7976 # Check whether to support alternative target configurations
7977 # Check whether --enable-targets was given.
7978 if test "${enable_targets+set}" = set; then :
7979 enableval
=$enable_targets; case "${enableval}" in
7980 yes |
"") as_fn_error
"enable-targets option must specify target names or 'all'" "$LINENO" 5
7982 no
) enable_targets
= ;;
7983 *) enable_targets
=$enableval ;;
7988 # Check whether to enable 64-bit support on 32-bit hosts
7989 # Check whether --enable-64-bit-bfd was given.
7990 if test "${enable_64_bit_bfd+set}" = set; then :
7991 enableval
=$enable_64_bit_bfd; case "${enableval}" in
7994 *) as_fn_error
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
8000 # Provide defaults for some variables set by the per-host and per-target
8002 gdb_host_obs
=posix-hdep.o
8004 if test "${target}" = "${host}"; then
8010 .
$srcdir/configure.
host
8012 # Accumulate some settings from configure.tgt over all enabled targets
8017 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
8019 if test "$targ_alias" = "all"; then
8022 # Canonicalize the secondary target names.
8023 result
=`$ac_config_sub $targ_alias 2>/dev/null`
8024 if test -n "$result"; then
8030 .
${srcdir}/configure.tgt
8032 if test -z "${gdb_target_obs}"; then :
8033 as_fn_error
"configuration ${targ} is unsupported." "$LINENO" 5
8036 # Target-specific object files
8037 for i
in ${gdb_target_obs}; do
8038 case " $TARGET_OBS " in
8041 TARGET_OBS
="$TARGET_OBS ${i}"
8046 # Check whether this target needs 64-bit CORE_ADDR
8047 if test x
${want64} = xfalse
; then
8048 .
${srcdir}/..
/bfd
/config.bfd
8053 if test x
${all_targets} = xtrue
; then
8055 # We want all 64-bit targets if we either:
8056 # - run on a 64-bit host or
8057 # - already require 64-bit support for some other target or
8058 # - the --enable-64-bit-bfd option was supplied
8059 # Otherwise we only support all 32-bit targets.
8061 # NOTE: This test must be in sync with the corresponding
8064 if test x
${want64} = xfalse
; then
8065 # The cast to long int works around a bug in the HP C Compiler
8066 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8067 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8068 # This bug is HP SR number 8606223364.
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
8070 $as_echo_n "checking size of long... " >&6; }
8071 if test "${ac_cv_sizeof_long+set}" = set; then :
8072 $as_echo_n "(cached) " >&6
8074 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
8077 if test "$ac_cv_type_long" = yes; then
8078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8080 { as_fn_set_status
77
8081 as_fn_error
"cannot compute sizeof (long)
8082 See \`config.log' for more details." "$LINENO" 5; }; }
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
8090 $as_echo "$ac_cv_sizeof_long" >&6; }
8094 cat >>confdefs.h
<<_ACEOF
8095 #define SIZEOF_LONG $ac_cv_sizeof_long
8099 if test "x${ac_cv_sizeof_long}" = "x8"; then
8103 if test x
${want64} = xtrue
; then
8104 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
8106 TARGET_OBS
='$(ALL_TARGET_OBS)'
8112 # For other settings, only the main target counts.
8116 targ
=$target; .
${srcdir}/configure.tgt
8118 # Fetch the default architecture and default target vector from BFD.
8119 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
8121 # We only want the first architecture, so strip off the others if
8122 # there is more than one.
8123 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
8125 if test "x$targ_archs" != x
; then
8127 cat >>confdefs.h
<<_ACEOF
8128 #define DEFAULT_BFD_ARCH $targ_archs
8132 if test "x$targ_defvec" != x
; then
8134 cat >>confdefs.h
<<_ACEOF
8135 #define DEFAULT_BFD_VEC $targ_defvec
8140 # The CLI cannot be disabled yet, but may be in the future.
8143 # Check whether --enable-gdbcli was given.
8144 if test "${enable_gdbcli+set}" = set; then :
8145 enableval
=$enable_gdbcli; case $enableval in
8149 as_fn_error
"the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
8151 as_fn_error
"bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
8157 if test x
"$enable_gdbcli" = xyes
; then
8158 if test -d $srcdir/cli
; then
8159 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
8160 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
8161 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
8162 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
8167 # Check whether --enable-gdbmi was given.
8168 if test "${enable_gdbmi+set}" = set; then :
8169 enableval
=$enable_gdbmi; case $enableval in
8173 as_fn_error
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
8179 if test x
"$enable_gdbmi" = xyes
; then
8180 if test -d $srcdir/mi
; then
8181 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
8182 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
8183 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
8184 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
8189 # Check whether --enable-tui was given.
8190 if test "${enable_tui+set}" = set; then :
8191 enableval
=$enable_tui; case $enableval in
8195 as_fn_error
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
8203 # Check whether --enable-gdbtk was given.
8204 if test "${enable_gdbtk+set}" = set; then :
8205 enableval
=$enable_gdbtk; case $enableval in
8209 as_fn_error
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
8212 if test -d $srcdir/gdbtk
; then
8219 # We unconditionally disable gdbtk tests on selected platforms.
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
8223 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
8227 # Libunwind support.
8229 # Check whether --with-libunwind was given.
8230 if test "${with_libunwind+set}" = set; then :
8231 withval
=$with_libunwind; case "${withval}" in
8232 yes) enable_libunwind
=yes ;;
8233 no
) enable_libunwind
=no
;;
8234 *) as_fn_error
"bad value ${withval} for GDB with-libunwind option" "$LINENO" 5 ;;
8238 for ac_header
in libunwind.h libunwind-ia64.h
8240 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8241 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8242 eval as_val
=\$
$as_ac_Header
8243 if test "x$as_val" = x
""yes; then :
8244 cat >>confdefs.h
<<_ACEOF
8245 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8252 if test x
"$ac_cv_header_libunwind_h" = xyes
-a x
"$ac_cv_header_libunwind_ia64_h" = xyes
; then
8253 enable_libunwind
=yes;
8259 if test x
"$enable_libunwind" = xyes
; then
8260 for ac_header
in libunwind.h libunwind-ia64.h
8262 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8263 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8264 eval as_val
=\$
$as_ac_Header
8265 if test "x$as_val" = x
""yes; then :
8266 cat >>confdefs.h
<<_ACEOF
8267 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8275 $as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h
8277 CONFIG_OBS
="$CONFIG_OBS libunwind-frame.o"
8278 CONFIG_DEPS
="$CONFIG_DEPS libunwind-frame.o"
8279 CONFIG_SRCS
="$CONFIG_SRCS libunwind-frame.c"
8284 # Check whether --with-curses was given.
8285 if test "${with_curses+set}" = set; then :
8286 withval
=$with_curses; opt_curses
=$withval
8291 if test "$opt_curses" = "yes"; then
8295 # Profiling support.
8296 # Check whether --enable-profiling was given.
8297 if test "${enable_profiling+set}" = set; then :
8298 enableval
=$enable_profiling; case $enableval in
8302 as_fn_error
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
8309 for ac_func
in monstartup _mcleanup
8311 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8312 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8313 eval as_val
=\$
$as_ac_var
8314 if test "x$as_val" = x
""yes; then :
8315 cat >>confdefs.h
<<_ACEOF
8316 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
8323 $as_echo_n "checking for _etext... " >&6; }
8324 if test "${ac_cv_var__etext+set}" = set; then :
8325 $as_echo_n "(cached) " >&6
8327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8328 /* end confdefs.h. */
8340 if ac_fn_c_try_link
"$LINENO"; then :
8341 ac_cv_var__etext
=yes
8345 rm -f core conftest.err conftest.
$ac_objext \
8346 conftest
$ac_exeext conftest.
$ac_ext
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
8349 $as_echo "$ac_cv_var__etext" >&6; }
8350 if test $ac_cv_var__etext = yes; then
8352 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
8356 $as_echo_n "checking for etext... " >&6; }
8357 if test "${ac_cv_var_etext+set}" = set; then :
8358 $as_echo_n "(cached) " >&6
8360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8361 /* end confdefs.h. */
8373 if ac_fn_c_try_link
"$LINENO"; then :
8378 rm -f core conftest.err conftest.
$ac_objext \
8379 conftest
$ac_exeext conftest.
$ac_ext
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
8382 $as_echo "$ac_cv_var_etext" >&6; }
8383 if test $ac_cv_var_etext = yes; then
8385 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
8388 if test "$enable_profiling" = yes ; then
8389 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
8390 as_fn_error
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
8393 OLD_CFLAGS
="$CFLAGS"
8394 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
8397 $as_echo_n "checking whether $CC supports -pg... " >&6; }
8398 if test "${ac_cv_cc_supports_pg+set}" = set; then :
8399 $as_echo_n "(cached) " >&6
8401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h. */
8412 if ac_fn_c_try_compile
"$LINENO"; then :
8413 ac_cv_cc_supports_pg
=yes
8415 ac_cv_cc_supports_pg
=no
8417 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
8420 $as_echo "$ac_cv_cc_supports_pg" >&6; }
8422 if test $ac_cv_cc_supports_pg = no
; then
8423 as_fn_error
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
8426 CFLAGS
="$OLD_CFLAGS"
8431 # Check whether --with-pkgversion was given.
8432 if test "${with_pkgversion+set}" = set; then :
8433 withval
=$with_pkgversion; case "$withval" in
8434 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
8436 *) PKGVERSION
="($withval) " ;;
8447 # Check whether --with-bugurl was given.
8448 if test "${with_bugurl+set}" = set; then :
8449 withval
=$with_bugurl; case "$withval" in
8450 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
8453 *) BUGURL
="$withval"
8457 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
8467 REPORT_BUGS_TO
="<$BUGURL>"
8468 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
8475 cat >>confdefs.h
<<_ACEOF
8476 #define PKGVERSION "$PKGVERSION"
8480 cat >>confdefs.h
<<_ACEOF
8481 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8485 # --------------------- #
8486 # Checks for programs. #
8487 # --------------------- #
8489 for ac_prog
in gawk mawk nawk
awk
8491 # Extract the first word of "$ac_prog", so it can be a program name with args.
8492 set dummy
$ac_prog; ac_word
=$2
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8494 $as_echo_n "checking for $ac_word... " >&6; }
8495 if test "${ac_cv_prog_AWK+set}" = set; then :
8496 $as_echo_n "(cached) " >&6
8498 if test -n "$AWK"; then
8499 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8501 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8505 test -z "$as_dir" && as_dir
=.
8506 for ac_exec_ext
in '' $ac_executable_extensions; do
8507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8508 ac_cv_prog_AWK
="$ac_prog"
8509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8519 if test -n "$AWK"; then
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8521 $as_echo "$AWK" >&6; }
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8524 $as_echo "no" >&6; }
8528 test -n "$AWK" && break
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8533 $as_echo_n "checking whether ln -s works... " >&6; }
8535 if test "$LN_S" = "ln -s"; then
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8537 $as_echo "yes" >&6; }
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8540 $as_echo "no, using $LN_S" >&6; }
8543 if test -n "$ac_tool_prefix"; then
8544 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8545 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8547 $as_echo_n "checking for $ac_word... " >&6; }
8548 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8549 $as_echo_n "(cached) " >&6
8551 if test -n "$RANLIB"; then
8552 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8554 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8558 test -z "$as_dir" && as_dir
=.
8559 for ac_exec_ext
in '' $ac_executable_extensions; do
8560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8561 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8571 RANLIB
=$ac_cv_prog_RANLIB
8572 if test -n "$RANLIB"; then
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8574 $as_echo "$RANLIB" >&6; }
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8577 $as_echo "no" >&6; }
8582 if test -z "$ac_cv_prog_RANLIB"; then
8583 ac_ct_RANLIB
=$RANLIB
8584 # Extract the first word of "ranlib", so it can be a program name with args.
8585 set dummy ranlib
; ac_word
=$2
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8587 $as_echo_n "checking for $ac_word... " >&6; }
8588 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8589 $as_echo_n "(cached) " >&6
8591 if test -n "$ac_ct_RANLIB"; then
8592 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8594 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8598 test -z "$as_dir" && as_dir
=.
8599 for ac_exec_ext
in '' $ac_executable_extensions; do
8600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8601 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8611 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8612 if test -n "$ac_ct_RANLIB"; then
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8614 $as_echo "$ac_ct_RANLIB" >&6; }
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8617 $as_echo "no" >&6; }
8620 if test "x$ac_ct_RANLIB" = x
; then
8623 case $cross_compiling:$ac_tool_warned in
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8627 ac_tool_warned
=yes ;;
8629 RANLIB
=$ac_ct_RANLIB
8632 RANLIB
="$ac_cv_prog_RANLIB"
8635 for ac_prog
in 'bison -y' byacc
8637 # Extract the first word of "$ac_prog", so it can be a program name with args.
8638 set dummy
$ac_prog; ac_word
=$2
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8640 $as_echo_n "checking for $ac_word... " >&6; }
8641 if test "${ac_cv_prog_YACC+set}" = set; then :
8642 $as_echo_n "(cached) " >&6
8644 if test -n "$YACC"; then
8645 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
8647 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8651 test -z "$as_dir" && as_dir
=.
8652 for ac_exec_ext
in '' $ac_executable_extensions; do
8653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8654 ac_cv_prog_YACC
="$ac_prog"
8655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8664 YACC
=$ac_cv_prog_YACC
8665 if test -n "$YACC"; then
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8667 $as_echo "$YACC" >&6; }
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8670 $as_echo "no" >&6; }
8674 test -n "$YACC" && break
8676 test -n "$YACC" || YACC
="yacc"
8679 if test -n "$ac_tool_prefix"; then
8680 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8681 set dummy
${ac_tool_prefix}ar; ac_word
=$2
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8683 $as_echo_n "checking for $ac_word... " >&6; }
8684 if test "${ac_cv_prog_AR+set}" = set; then :
8685 $as_echo_n "(cached) " >&6
8687 if test -n "$AR"; then
8688 ac_cv_prog_AR
="$AR" # Let the user override the test.
8690 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8694 test -z "$as_dir" && as_dir
=.
8695 for ac_exec_ext
in '' $ac_executable_extensions; do
8696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8697 ac_cv_prog_AR
="${ac_tool_prefix}ar"
8698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8708 if test -n "$AR"; then
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8710 $as_echo "$AR" >&6; }
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8713 $as_echo "no" >&6; }
8718 if test -z "$ac_cv_prog_AR"; then
8720 # Extract the first word of "ar", so it can be a program name with args.
8721 set dummy
ar; ac_word
=$2
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8723 $as_echo_n "checking for $ac_word... " >&6; }
8724 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8725 $as_echo_n "(cached) " >&6
8727 if test -n "$ac_ct_AR"; then
8728 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
8730 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8734 test -z "$as_dir" && as_dir
=.
8735 for ac_exec_ext
in '' $ac_executable_extensions; do
8736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8737 ac_cv_prog_ac_ct_AR
="ar"
8738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8747 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
8748 if test -n "$ac_ct_AR"; then
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8750 $as_echo "$ac_ct_AR" >&6; }
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8753 $as_echo "no" >&6; }
8756 if test "x$ac_ct_AR" = x
; then
8759 case $cross_compiling:$ac_tool_warned in
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8763 ac_tool_warned
=yes ;;
8771 if test -n "$ac_tool_prefix"; then
8772 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8773 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8775 $as_echo_n "checking for $ac_word... " >&6; }
8776 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8777 $as_echo_n "(cached) " >&6
8779 if test -n "$DLLTOOL"; then
8780 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
8782 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8786 test -z "$as_dir" && as_dir
=.
8787 for ac_exec_ext
in '' $ac_executable_extensions; do
8788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8789 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
8790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8799 DLLTOOL
=$ac_cv_prog_DLLTOOL
8800 if test -n "$DLLTOOL"; then
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8802 $as_echo "$DLLTOOL" >&6; }
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8805 $as_echo "no" >&6; }
8810 if test -z "$ac_cv_prog_DLLTOOL"; then
8811 ac_ct_DLLTOOL
=$DLLTOOL
8812 # Extract the first word of "dlltool", so it can be a program name with args.
8813 set dummy dlltool
; ac_word
=$2
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8815 $as_echo_n "checking for $ac_word... " >&6; }
8816 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
8817 $as_echo_n "(cached) " >&6
8819 if test -n "$ac_ct_DLLTOOL"; then
8820 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
8822 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8826 test -z "$as_dir" && as_dir
=.
8827 for ac_exec_ext
in '' $ac_executable_extensions; do
8828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8829 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
8830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8839 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
8840 if test -n "$ac_ct_DLLTOOL"; then
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8842 $as_echo "$ac_ct_DLLTOOL" >&6; }
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8845 $as_echo "no" >&6; }
8848 if test "x$ac_ct_DLLTOOL" = x
; then
8851 case $cross_compiling:$ac_tool_warned in
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8855 ac_tool_warned
=yes ;;
8857 DLLTOOL
=$ac_ct_DLLTOOL
8860 DLLTOOL
="$ac_cv_prog_DLLTOOL"
8863 if test -n "$ac_tool_prefix"; then
8864 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8865 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8867 $as_echo_n "checking for $ac_word... " >&6; }
8868 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8869 $as_echo_n "(cached) " >&6
8871 if test -n "$WINDRES"; then
8872 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
8874 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8878 test -z "$as_dir" && as_dir
=.
8879 for ac_exec_ext
in '' $ac_executable_extensions; do
8880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8881 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
8882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8891 WINDRES
=$ac_cv_prog_WINDRES
8892 if test -n "$WINDRES"; then
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8894 $as_echo "$WINDRES" >&6; }
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8897 $as_echo "no" >&6; }
8902 if test -z "$ac_cv_prog_WINDRES"; then
8903 ac_ct_WINDRES
=$WINDRES
8904 # Extract the first word of "windres", so it can be a program name with args.
8905 set dummy windres
; ac_word
=$2
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8907 $as_echo_n "checking for $ac_word... " >&6; }
8908 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
8909 $as_echo_n "(cached) " >&6
8911 if test -n "$ac_ct_WINDRES"; then
8912 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
8914 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8918 test -z "$as_dir" && as_dir
=.
8919 for ac_exec_ext
in '' $ac_executable_extensions; do
8920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8921 ac_cv_prog_ac_ct_WINDRES
="windres"
8922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8931 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
8932 if test -n "$ac_ct_WINDRES"; then
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
8934 $as_echo "$ac_ct_WINDRES" >&6; }
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8937 $as_echo "no" >&6; }
8940 if test "x$ac_ct_WINDRES" = x
; then
8943 case $cross_compiling:$ac_tool_warned in
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8947 ac_tool_warned
=yes ;;
8949 WINDRES
=$ac_ct_WINDRES
8952 WINDRES
="$ac_cv_prog_WINDRES"
8956 # Needed for GNU/Hurd.
8957 if test -n "$ac_tool_prefix"; then
8958 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
8959 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8961 $as_echo_n "checking for $ac_word... " >&6; }
8962 if test "${ac_cv_prog_MIG+set}" = set; then :
8963 $as_echo_n "(cached) " >&6
8965 if test -n "$MIG"; then
8966 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
8968 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8972 test -z "$as_dir" && as_dir
=.
8973 for ac_exec_ext
in '' $ac_executable_extensions; do
8974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8975 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
8976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8986 if test -n "$MIG"; then
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
8988 $as_echo "$MIG" >&6; }
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8991 $as_echo "no" >&6; }
8996 if test -z "$ac_cv_prog_MIG"; then
8998 # Extract the first word of "mig", so it can be a program name with args.
8999 set dummy mig
; ac_word
=$2
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9001 $as_echo_n "checking for $ac_word... " >&6; }
9002 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
9003 $as_echo_n "(cached) " >&6
9005 if test -n "$ac_ct_MIG"; then
9006 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
9008 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9012 test -z "$as_dir" && as_dir
=.
9013 for ac_exec_ext
in '' $ac_executable_extensions; do
9014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9015 ac_cv_prog_ac_ct_MIG
="mig"
9016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9025 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
9026 if test -n "$ac_ct_MIG"; then
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
9028 $as_echo "$ac_ct_MIG" >&6; }
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9031 $as_echo "no" >&6; }
9034 if test "x$ac_ct_MIG" = x
; then
9037 case $cross_compiling:$ac_tool_warned in
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9041 ac_tool_warned
=yes ;;
9046 MIG
="$ac_cv_prog_MIG"
9050 # ---------------------- #
9051 # Checks for libraries. #
9052 # ---------------------- #
9054 # We might need to link with -lm; most simulators need it.
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
9056 $as_echo_n "checking for main in -lm... " >&6; }
9057 if test "${ac_cv_lib_m_main+set}" = set; then :
9058 $as_echo_n "(cached) " >&6
9060 ac_check_lib_save_LIBS
=$LIBS
9062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9063 /* end confdefs.h. */
9074 if ac_fn_c_try_link
"$LINENO"; then :
9075 ac_cv_lib_m_main
=yes
9079 rm -f core conftest.err conftest.
$ac_objext \
9080 conftest
$ac_exeext conftest.
$ac_ext
9081 LIBS
=$ac_check_lib_save_LIBS
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
9084 $as_echo "$ac_cv_lib_m_main" >&6; }
9085 if test "x$ac_cv_lib_m_main" = x
""yes; then :
9086 cat >>confdefs.h
<<_ACEOF
9095 # We need to link with -lw to get `wctype' on Solaris before Solaris
9096 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9097 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9098 # is known to have this problem). Therefore we avoid libw if we can.
9099 ac_fn_c_check_func
"$LINENO" "wctype" "ac_cv_func_wctype"
9100 if test "x$ac_cv_func_wctype" = x
""yes; then :
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
9104 $as_echo_n "checking for wctype in -lw... " >&6; }
9105 if test "${ac_cv_lib_w_wctype+set}" = set; then :
9106 $as_echo_n "(cached) " >&6
9108 ac_check_lib_save_LIBS
=$LIBS
9110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9111 /* end confdefs.h. */
9113 /* Override any GCC internal prototype to avoid an error.
9114 Use char because int might match the return type of a GCC
9115 builtin and then its argument prototype would still apply. */
9128 if ac_fn_c_try_link
"$LINENO"; then :
9129 ac_cv_lib_w_wctype
=yes
9131 ac_cv_lib_w_wctype
=no
9133 rm -f core conftest.err conftest.
$ac_objext \
9134 conftest
$ac_exeext conftest.
$ac_ext
9135 LIBS
=$ac_check_lib_save_LIBS
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
9138 $as_echo "$ac_cv_lib_w_wctype" >&6; }
9139 if test "x$ac_cv_lib_w_wctype" = x
""yes; then :
9140 cat >>confdefs.h
<<_ACEOF
9151 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
9153 $as_echo_n "checking for library containing gethostbyname... " >&6; }
9154 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9155 $as_echo_n "(cached) " >&6
9157 ac_func_search_save_LIBS
=$LIBS
9158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9159 /* end confdefs.h. */
9161 /* Override any GCC internal prototype to avoid an error.
9162 Use char because int might match the return type of a GCC
9163 builtin and then its argument prototype would still apply. */
9167 char gethostbyname ();
9171 return gethostbyname ();
9176 for ac_lib
in '' nsl
; do
9177 if test -z "$ac_lib"; then
9178 ac_res
="none required"
9181 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9183 if ac_fn_c_try_link
"$LINENO"; then :
9184 ac_cv_search_gethostbyname
=$ac_res
9186 rm -f core conftest.err conftest.
$ac_objext \
9188 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9192 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9195 ac_cv_search_gethostbyname
=no
9198 LIBS
=$ac_func_search_save_LIBS
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
9201 $as_echo "$ac_cv_search_gethostbyname" >&6; }
9202 ac_res
=$ac_cv_search_gethostbyname
9203 if test "$ac_res" != no
; then :
9204 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9209 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
9211 $as_echo_n "checking for library containing socketpair... " >&6; }
9212 if test "${ac_cv_search_socketpair+set}" = set; then :
9213 $as_echo_n "(cached) " >&6
9215 ac_func_search_save_LIBS
=$LIBS
9216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9217 /* end confdefs.h. */
9219 /* Override any GCC internal prototype to avoid an error.
9220 Use char because int might match the return type of a GCC
9221 builtin and then its argument prototype would still apply. */
9229 return socketpair ();
9234 for ac_lib
in '' socket
; do
9235 if test -z "$ac_lib"; then
9236 ac_res
="none required"
9239 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9241 if ac_fn_c_try_link
"$LINENO"; then :
9242 ac_cv_search_socketpair
=$ac_res
9244 rm -f core conftest.err conftest.
$ac_objext \
9246 if test "${ac_cv_search_socketpair+set}" = set; then :
9250 if test "${ac_cv_search_socketpair+set}" = set; then :
9253 ac_cv_search_socketpair
=no
9256 LIBS
=$ac_func_search_save_LIBS
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
9259 $as_echo "$ac_cv_search_socketpair" >&6; }
9260 ac_res
=$ac_cv_search_socketpair
9261 if test "$ac_res" != no
; then :
9262 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9267 # Link in zlib if we can. This allows us to read compressed debug sections.
9269 # See if the user specified whether he wants zlib support or not.
9271 # Check whether --with-zlib was given.
9272 if test "${with_zlib+set}" = set; then :
9279 if test "$with_zlib" != "no"; then
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
9281 $as_echo_n "checking for library containing zlibVersion... " >&6; }
9282 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9283 $as_echo_n "(cached) " >&6
9285 ac_func_search_save_LIBS
=$LIBS
9286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9287 /* end confdefs.h. */
9289 /* Override any GCC internal prototype to avoid an error.
9290 Use char because int might match the return type of a GCC
9291 builtin and then its argument prototype would still apply. */
9295 char zlibVersion ();
9299 return zlibVersion ();
9304 for ac_lib
in '' z
; do
9305 if test -z "$ac_lib"; then
9306 ac_res
="none required"
9309 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9311 if ac_fn_c_try_link
"$LINENO"; then :
9312 ac_cv_search_zlibVersion
=$ac_res
9314 rm -f core conftest.err conftest.
$ac_objext \
9316 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9320 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9323 ac_cv_search_zlibVersion
=no
9326 LIBS
=$ac_func_search_save_LIBS
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
9329 $as_echo "$ac_cv_search_zlibVersion" >&6; }
9330 ac_res
=$ac_cv_search_zlibVersion
9331 if test "$ac_res" != no
; then :
9332 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9333 for ac_header
in zlib.h
9335 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
9336 if test "x$ac_cv_header_zlib_h" = x
""yes; then :
9337 cat >>confdefs.h
<<_ACEOF
9338 #define HAVE_ZLIB_H 1
9347 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
9348 as_fn_error
"zlib (libz) library was explicitly requested but not found" "$LINENO" 5
9353 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
9355 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
9356 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9357 $as_echo_n "(cached) " >&6
9359 ac_func_search_save_LIBS
=$LIBS
9360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9361 /* end confdefs.h. */
9363 /* Override any GCC internal prototype to avoid an error.
9364 Use char because int might match the return type of a GCC
9365 builtin and then its argument prototype would still apply. */
9369 char dlgetmodinfo ();
9373 return dlgetmodinfo ();
9378 for ac_lib
in '' dl xpdl
; do
9379 if test -z "$ac_lib"; then
9380 ac_res
="none required"
9383 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9385 if ac_fn_c_try_link
"$LINENO"; then :
9386 ac_cv_search_dlgetmodinfo
=$ac_res
9388 rm -f core conftest.err conftest.
$ac_objext \
9390 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9394 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9397 ac_cv_search_dlgetmodinfo
=no
9400 LIBS
=$ac_func_search_save_LIBS
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
9403 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
9404 ac_res
=$ac_cv_search_dlgetmodinfo
9405 if test "$ac_res" != no
; then :
9406 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9414 # Check whether --with-libiconv-prefix was given.
9415 if test "${with_libiconv_prefix+set}" = set; then :
9416 withval
=$with_libiconv_prefix;
9417 for dir
in `echo "$withval" | tr : ' '`; do
9418 if test -d $dir/include
; then LIBICONV_INCLUDE
="-I$dir/include"; fi
9419 if test -d $dir/lib
; then LIBICONV_LIBDIR
="-L$dir/lib"; fi
9425 BUILD_LIBICONV_LIBDIRS
="../libiconv/lib/.libs ../libiconv/lib/_libs"
9426 BUILD_LIBICONV_INCLUDE
="-I../libiconv/include"
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9429 $as_echo_n "checking for iconv... " >&6; }
9430 if test "${am_cv_func_iconv+set}" = set; then :
9431 $as_echo_n "(cached) " >&6
9434 am_cv_func_iconv
="no, consider installing GNU libiconv"
9436 am_cv_use_build_libiconv
=no
9437 am_cv_build_libiconv_path
=
9439 # If libiconv is part of the build tree, then try using it over
9441 if test -d ..
/libiconv
; then
9442 for lib_dir
in $BUILD_LIBICONV_LIBDIRS; do
9443 am_save_LIBS
="$LIBS"
9444 am_save_CPPFLAGS
="$CPPFLAGS"
9445 LIBS
="$LIBS $lib_dir/libiconv.a"
9446 CPPFLAGS
="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
9447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9448 /* end confdefs.h. */
9454 iconv_t cd = iconv_open("","");
9455 iconv(cd,NULL,NULL,NULL,NULL);
9461 if ac_fn_c_try_link
"$LINENO"; then :
9462 am_cv_use_build_libiconv
=yes
9463 am_cv_build_libiconv_path
=$lib_dir/libiconv.a
9465 am_cv_func_iconv
=yes
9467 rm -f core conftest.err conftest.
$ac_objext \
9468 conftest
$ac_exeext conftest.
$ac_ext
9469 LIBS
="$am_save_LIBS"
9470 CPPFLAGS
="$am_save_CPPFLAGS"
9471 if test "$am_cv_use_build_libiconv" = "yes"; then
9477 # Next, try to find iconv in libc.
9478 if test "$am_cv_func_iconv" != yes; then
9479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9480 /* end confdefs.h. */
9486 iconv_t cd = iconv_open("","");
9487 iconv(cd,NULL,NULL,NULL,NULL);
9493 if ac_fn_c_try_link
"$LINENO"; then :
9494 am_cv_func_iconv
=yes
9496 rm -f core conftest.err conftest.
$ac_objext \
9497 conftest
$ac_exeext conftest.
$ac_ext
9500 # If iconv was not in libc, try -liconv. In this case, arrange to
9501 # look in the libiconv prefix, if it was specified by the user.
9502 if test "$am_cv_func_iconv" != yes; then
9503 am_save_CPPFLAGS
="$CPPFLAGS"
9504 am_save_LIBS
="$LIBS"
9505 if test -n "$LIBICONV_INCLUDE"; then
9506 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
9507 LIBS
="$LIBS $LIBICONV_LIBDIR"
9509 LIBS
="$LIBS -liconv"
9510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9511 /* end confdefs.h. */
9517 iconv_t cd = iconv_open("","");
9518 iconv(cd,NULL,NULL,NULL,NULL);
9524 if ac_fn_c_try_link
"$LINENO"; then :
9526 am_cv_func_iconv
=yes
9528 rm -f core conftest.err conftest.
$ac_objext \
9529 conftest
$ac_exeext conftest.
$ac_ext
9530 LIBS
="$am_save_LIBS"
9531 CPPFLAGS
="$am_save_CPPFLAGS"
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9536 $as_echo "$am_cv_func_iconv" >&6; }
9538 # Set the various flags based on the cache variables. We can't rely
9539 # on the flags to remain set from the above code, due to caching.
9541 if test "$am_cv_lib_iconv" = yes; then
9547 if test "$am_cv_use_build_libiconv" = yes; then
9548 LIBICONV
="$am_cv_build_libiconv_path"
9550 LIBICONV_INCLUDE
="$BUILD_LIBICONV_INCLUDE"
9552 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
9553 LIBS
="$LIBS $LIBICONV_LIBDIR $LIBICONV"
9555 if test "$am_cv_func_iconv" = yes; then
9557 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9560 $as_echo_n "checking for iconv declaration... " >&6; }
9561 if test "${am_cv_proto_iconv+set}" = set; then :
9562 $as_echo_n "(cached) " >&6
9565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9566 /* end confdefs.h. */
9574 #if defined(__STDC__) || defined(__cplusplus)
9575 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9588 if ac_fn_c_try_compile
"$LINENO"; then :
9589 am_cv_proto_iconv_arg1
=""
9591 am_cv_proto_iconv_arg1
="const"
9593 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9594 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);"
9597 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9599 }$am_cv_proto_iconv" >&5
9601 }$am_cv_proto_iconv" >&6; }
9603 cat >>confdefs.h
<<_ACEOF
9604 #define ICONV_CONST $am_cv_proto_iconv_arg1
9610 # GDB may fork/exec the iconv program to get the list of supported character
9611 # sets. Allow the user to specify where to find it.
9612 # There are several factors affecting the choice of option name:
9613 # - There is already --with-libiconv-prefix but we can't use it, it specifies
9614 # the build-time location of libiconv files.
9615 # - The program we need to find is iconv, which comes with glibc. The user
9616 # doesn't necessarily have libiconv installed. Therefore naming this
9617 # --with-libiconv-foo feels wrong.
9618 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
9619 # defined to work on directories not files (though it really doesn't know
9621 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
9622 # with --with-libiconv-prefix.
9623 # Putting these together is why the option name is --with-iconv-bin.
9626 # Check whether --with-iconv-bin was given.
9627 if test "${with_iconv_bin+set}" = set; then :
9628 withval
=$with_iconv_bin; iconv_bin
="${withval}"
9630 cat >>confdefs.h
<<_ACEOF
9631 #define ICONV_BIN "${iconv_bin}"
9635 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9636 if test "x$prefix" = xNONE
; then
9637 test_prefix
=/usr
/local
9642 test_prefix
=$exec_prefix
9645 case ${iconv_bin} in
9646 "${test_prefix}"|
"${test_prefix}/"*|\
9647 '${exec_prefix}'|
'${exec_prefix}/'*)
9652 cat >>confdefs.h
<<_ACEOF
9653 #define ICONV_BIN_RELOCATABLE $value
9661 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
9662 # There is a very specific comment in /usr/include/curses.h explaining that
9663 # termcap routines built into libcurses must not be used.
9665 # The symptoms we observed so far is GDB unexpectedly changing
9666 # the terminal settings when tgetent is called - this is particularly
9667 # visible as the output is missing carriage returns, and so rapidly
9668 # becomes very hard to read.
9670 # The readline configure script has already decided that libtermcap
9671 # was enough for its purposes, and so decided to build readline using
9672 # libtermcap. Since the TUI mode requires curses, building GDB with
9673 # TUI enabled results in both libraries to be used at the same time,
9674 # which is not allowed. This basically means that GDB with TUI is
9675 # broken on alpha-osf.
9679 if test x
"$enable_tui" = xyes
; then
9680 as_fn_error
"Building GDB with TUI mode is not supported on this host" "$LINENO" 5
9682 if test x
"$enable_tui" = xauto
; then
9688 # For the TUI, we need enhanced curses functionality.
9689 if test x
"$enable_tui" != xno
; then
9694 if test x
"$prefer_curses" = xyes
; then
9695 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9696 # curses library because the latter might not provide all the
9697 # functionality we need. However, this leads to problems on systems
9698 # where the linker searches /usr/local/lib, but the compiler doesn't
9699 # search /usr/local/include, if ncurses is installed in /usr/local. A
9700 # default installation of ncurses on alpha*-dec-osf* will lead to such
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
9703 $as_echo_n "checking for library containing waddstr... " >&6; }
9704 if test "${ac_cv_search_waddstr+set}" = set; then :
9705 $as_echo_n "(cached) " >&6
9707 ac_func_search_save_LIBS
=$LIBS
9708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9709 /* end confdefs.h. */
9711 /* Override any GCC internal prototype to avoid an error.
9712 Use char because int might match the return type of a GCC
9713 builtin and then its argument prototype would still apply. */
9726 for ac_lib
in '' ncurses cursesX curses
; do
9727 if test -z "$ac_lib"; then
9728 ac_res
="none required"
9731 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9733 if ac_fn_c_try_link
"$LINENO"; then :
9734 ac_cv_search_waddstr
=$ac_res
9736 rm -f core conftest.err conftest.
$ac_objext \
9738 if test "${ac_cv_search_waddstr+set}" = set; then :
9742 if test "${ac_cv_search_waddstr+set}" = set; then :
9745 ac_cv_search_waddstr
=no
9748 LIBS
=$ac_func_search_save_LIBS
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
9751 $as_echo "$ac_cv_search_waddstr" >&6; }
9752 ac_res
=$ac_cv_search_waddstr
9753 if test "$ac_res" != no
; then :
9754 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9759 if test "$ac_cv_search_waddstr" != no
; then
9764 # Check whether we should enable the TUI, but only do so if we really
9766 if test x
"$enable_tui" != xno
; then
9767 if test -d $srcdir/tui
; then
9768 if test "$curses_found" != no
; then
9769 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
9770 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
9771 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9772 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
9774 if test x
"$enable_tui" = xyes
; then
9775 as_fn_error
"no enhanced curses library found; disable TUI" "$LINENO" 5
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
9778 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9784 # Since GDB uses Readline, we need termcap functionality. In many
9785 # cases this will be provided by the curses library, but some systems
9786 # have a seperate termcap library, or no curses library at all.
9790 if test -d $srcdir/libtermcap
; then
9791 LIBS
="../libtermcap/libtermcap.a $LIBS"
9792 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
9795 ac_cv_search_tgetent
="none required"
9798 ac_cv_search_tgetent
="none required"
9799 CONFIG_OBS
="$CONFIG_OBS windows-termcap.o"
9803 # These are the libraries checked by Readline.
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9805 $as_echo_n "checking for library containing tgetent... " >&6; }
9806 if test "${ac_cv_search_tgetent+set}" = set; then :
9807 $as_echo_n "(cached) " >&6
9809 ac_func_search_save_LIBS
=$LIBS
9810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9811 /* end confdefs.h. */
9813 /* Override any GCC internal prototype to avoid an error.
9814 Use char because int might match the return type of a GCC
9815 builtin and then its argument prototype would still apply. */
9828 for ac_lib
in '' termcap tinfo curses ncurses
; do
9829 if test -z "$ac_lib"; then
9830 ac_res
="none required"
9833 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9835 if ac_fn_c_try_link
"$LINENO"; then :
9836 ac_cv_search_tgetent
=$ac_res
9838 rm -f core conftest.err conftest.
$ac_objext \
9840 if test "${ac_cv_search_tgetent+set}" = set; then :
9844 if test "${ac_cv_search_tgetent+set}" = set; then :
9847 ac_cv_search_tgetent
=no
9850 LIBS
=$ac_func_search_save_LIBS
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9853 $as_echo "$ac_cv_search_tgetent" >&6; }
9854 ac_res
=$ac_cv_search_tgetent
9855 if test "$ac_res" != no
; then :
9856 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9861 if test "$ac_cv_search_tgetent" = no
; then
9862 as_fn_error
"no termcap library found" "$LINENO" 5
9866 # Check whether --with-system-readline was given.
9867 if test "${with_system_readline+set}" = set; then :
9868 withval
=$with_system_readline;
9872 if test "$with_system_readline" = yes; then
9876 READLINE_TEXI_INCFLAG
=
9878 READLINE
='$(READLINE_DIR)/libreadline.a'
9879 READLINE_DEPS
='$(READLINE)'
9880 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
9881 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
9888 # Generate jit-reader.h
9890 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
9893 # The cast to long int works around a bug in the HP C Compiler
9894 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9895 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9896 # This bug is HP SR number 8606223364.
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
9898 $as_echo_n "checking size of unsigned long long... " >&6; }
9899 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
9900 $as_echo_n "(cached) " >&6
9902 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
9905 if test "$ac_cv_type_unsigned_long_long" = yes; then
9906 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9908 { as_fn_set_status
77
9909 as_fn_error
"cannot compute sizeof (unsigned long long)
9910 See \`config.log' for more details." "$LINENO" 5; }; }
9912 ac_cv_sizeof_unsigned_long_long
=0
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
9918 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
9922 cat >>confdefs.h
<<_ACEOF
9923 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
9927 # The cast to long int works around a bug in the HP C Compiler
9928 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9929 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9930 # This bug is HP SR number 8606223364.
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
9932 $as_echo_n "checking size of unsigned long... " >&6; }
9933 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
9934 $as_echo_n "(cached) " >&6
9936 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
9939 if test "$ac_cv_type_unsigned_long" = yes; then
9940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9942 { as_fn_set_status
77
9943 as_fn_error
"cannot compute sizeof (unsigned long)
9944 See \`config.log' for more details." "$LINENO" 5; }; }
9946 ac_cv_sizeof_unsigned_long
=0
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
9952 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
9956 cat >>confdefs.h
<<_ACEOF
9957 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9961 # The cast to long int works around a bug in the HP C Compiler
9962 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9963 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9964 # This bug is HP SR number 8606223364.
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
9966 $as_echo_n "checking size of unsigned __int128... " >&6; }
9967 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
9968 $as_echo_n "(cached) " >&6
9970 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
9973 if test "$ac_cv_type_unsigned___int128" = yes; then
9974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9976 { as_fn_set_status
77
9977 as_fn_error
"cannot compute sizeof (unsigned __int128)
9978 See \`config.log' for more details." "$LINENO" 5; }; }
9980 ac_cv_sizeof_unsigned___int128
=0
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
9986 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
9990 cat >>confdefs.h
<<_ACEOF
9991 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
9996 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9997 TARGET_PTR
="unsigned long"
9998 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9999 TARGET_PTR
="unsigned long long"
10000 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
10001 TARGET_PTR
="unsigned __int128"
10003 TARGET_PTR
="unsigned long"
10007 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10011 $as_echo_n "checking for library containing dlopen... " >&6; }
10012 if test "${ac_cv_search_dlopen+set}" = set; then :
10013 $as_echo_n "(cached) " >&6
10015 ac_func_search_save_LIBS
=$LIBS
10016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10017 /* end confdefs.h. */
10019 /* Override any GCC internal prototype to avoid an error.
10020 Use char because int might match the return type of a GCC
10021 builtin and then its argument prototype would still apply. */
10034 for ac_lib
in '' dl
; do
10035 if test -z "$ac_lib"; then
10036 ac_res
="none required"
10039 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10041 if ac_fn_c_try_link
"$LINENO"; then :
10042 ac_cv_search_dlopen
=$ac_res
10044 rm -f core conftest.err conftest.
$ac_objext \
10046 if test "${ac_cv_search_dlopen+set}" = set; then :
10050 if test "${ac_cv_search_dlopen+set}" = set; then :
10053 ac_cv_search_dlopen
=no
10055 rm conftest.
$ac_ext
10056 LIBS
=$ac_func_search_save_LIBS
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10059 $as_echo "$ac_cv_search_dlopen" >&6; }
10060 ac_res
=$ac_cv_search_dlopen
10061 if test "$ac_res" != no
; then :
10062 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10069 # Check whether --with-jit-reader-dir was given.
10070 if test "${with_jit_reader_dir+set}" = set; then :
10071 withval
=$with_jit_reader_dir;
10072 JIT_READER_DIR
=$withval
10074 JIT_READER_DIR
=${libdir}/gdb
10078 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
10079 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10080 ac_define_dir
=`eval echo $JIT_READER_DIR`
10081 ac_define_dir
=`eval echo $ac_define_dir`
10083 cat >>confdefs.h
<<_ACEOF
10084 #define JIT_READER_DIR "$ac_define_dir"
10090 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
10091 if test "x$prefix" = xNONE
; then
10092 test_prefix
=/usr
/local
10094 test_prefix
=$prefix
10097 test_prefix
=$exec_prefix
10100 case ${ac_define_dir} in
10101 "${test_prefix}"|
"${test_prefix}/"*|\
10102 '${exec_prefix}'|
'${exec_prefix}/'*)
10107 cat >>confdefs.h
<<_ACEOF
10108 #define JIT_READER_DIR_RELOCATABLE $value
10115 # Check whether --with-expat was given.
10116 if test "${with_expat+set}" = set; then :
10117 withval
=$with_expat;
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
10123 $as_echo_n "checking whether to use expat... " >&6; }
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
10125 $as_echo "$with_expat" >&6; }
10127 if test "${with_expat}" = no
; then
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
10129 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
10133 if test "X$prefix" = "XNONE"; then
10134 acl_final_prefix
="$ac_default_prefix"
10136 acl_final_prefix
="$prefix"
10138 if test "X$exec_prefix" = "XNONE"; then
10139 acl_final_exec_prefix
='${prefix}'
10141 acl_final_exec_prefix
="$exec_prefix"
10143 acl_save_prefix
="$prefix"
10144 prefix
="$acl_final_prefix"
10145 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10146 prefix
="$acl_save_prefix"
10149 # Check whether --with-gnu-ld was given.
10150 if test "${with_gnu_ld+set}" = set; then :
10151 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
10156 # Prepare PATH_SEPARATOR.
10157 # The user is always right.
10158 if test "${PATH_SEPARATOR+set}" != set; then
10159 echo "#! /bin/sh" >conf$$.sh
10160 echo "exit 0" >>conf$$.sh
10162 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10170 if test "$GCC" = yes; then
10171 # Check if gcc -print-prog-name=ld gives a path.
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10173 $as_echo_n "checking for ld used by GCC... " >&6; }
10176 # gcc leaves a trailing carriage return which upsets mingw
10177 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10179 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10182 # Accept absolute paths.
10183 [\\/]* |
[A-Za-z
]:[\\/]*)
10184 re_direlt
='/[^/][^/]*/\.\./'
10185 # Canonicalize the path of ld
10186 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10187 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10188 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10190 test -z "$LD" && LD
="$ac_prog"
10193 # If it fails, then pretend we aren't using GCC.
10197 # If it is relative, then search for the first ld in PATH.
10198 with_gnu_ld
=unknown
10201 elif test "$with_gnu_ld" = yes; then
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10203 $as_echo_n "checking for GNU ld... " >&6; }
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10206 $as_echo_n "checking for non-GNU ld... " >&6; }
10208 if test "${acl_cv_path_LD+set}" = set; then :
10209 $as_echo_n "(cached) " >&6
10211 if test -z "$LD"; then
10212 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10213 for ac_dir
in $PATH; do
10214 test -z "$ac_dir" && ac_dir
=.
10215 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10216 acl_cv_path_LD
="$ac_dir/$ac_prog"
10217 # Check to see if the program is GNU ld. I'd rather use --version,
10218 # but apparently some GNU ld's only accept -v.
10219 # Break only if it was the GNU/non-GNU ld that we prefer.
10220 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10221 test "$with_gnu_ld" != no
&& break
10223 test "$with_gnu_ld" != yes && break
10229 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10233 LD
="$acl_cv_path_LD"
10234 if test -n "$LD"; then
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10236 $as_echo "$LD" >&6; }
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10239 $as_echo "no" >&6; }
10241 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10243 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10244 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10245 $as_echo_n "(cached) " >&6
10247 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10248 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10249 acl_cv_prog_gnu_ld
=yes
10251 acl_cv_prog_gnu_ld
=no
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10255 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10256 with_gnu_ld
=$acl_cv_prog_gnu_ld
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10261 $as_echo_n "checking for shared library run path origin... " >&6; }
10262 if test "${acl_cv_rpath+set}" = set; then :
10263 $as_echo_n "(cached) " >&6
10266 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10267 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10269 rm -f .
/conftest.sh
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10274 $as_echo "$acl_cv_rpath" >&6; }
10276 libext
="$acl_cv_libext"
10277 shlibext
="$acl_cv_shlibext"
10278 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10279 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10280 hardcode_direct
="$acl_cv_hardcode_direct"
10281 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10282 # Check whether --enable-rpath was given.
10283 if test "${enable_rpath+set}" = set; then :
10284 enableval
=$enable_rpath; :
10300 acl_save_prefix
="$prefix"
10301 prefix
="$acl_final_prefix"
10302 acl_save_exec_prefix
="$exec_prefix"
10303 exec_prefix
="$acl_final_exec_prefix"
10305 eval additional_includedir
=\"$includedir\"
10306 eval additional_libdir
=\"$libdir\"
10308 exec_prefix
="$acl_save_exec_prefix"
10309 prefix
="$acl_save_prefix"
10312 # Check whether --with-libexpat-prefix was given.
10313 if test "${with_libexpat_prefix+set}" = set; then :
10314 withval
=$with_libexpat_prefix;
10315 if test "X$withval" = "Xno"; then
10318 if test "X$withval" = "X"; then
10320 acl_save_prefix
="$prefix"
10321 prefix
="$acl_final_prefix"
10322 acl_save_exec_prefix
="$exec_prefix"
10323 exec_prefix
="$acl_final_exec_prefix"
10325 eval additional_includedir
=\"$includedir\"
10326 eval additional_libdir
=\"$libdir\"
10328 exec_prefix
="$acl_save_exec_prefix"
10329 prefix
="$acl_save_prefix"
10332 additional_includedir
="$withval/include"
10333 additional_libdir
="$withval/lib"
10344 names_already_handled
=
10345 names_next_round
='expat '
10346 while test -n "$names_next_round"; do
10347 names_this_round
="$names_next_round"
10349 for name
in $names_this_round; do
10351 for n
in $names_already_handled; do
10352 if test "$n" = "$name"; then
10353 already_handled
=yes
10357 if test -z "$already_handled"; then
10358 names_already_handled
="$names_already_handled $name"
10359 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10360 eval value
=\"\
$HAVE_LIB$uppername\"
10361 if test -n "$value"; then
10362 if test "$value" = yes; then
10363 eval value
=\"\
$LIB$uppername\"
10364 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
10365 eval value
=\"\
$LTLIB$uppername\"
10366 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10375 if test $use_additional = yes; then
10376 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10377 found_dir
="$additional_libdir"
10378 found_so
="$additional_libdir/lib$name.$shlibext"
10379 if test -f "$additional_libdir/lib$name.la"; then
10380 found_la
="$additional_libdir/lib$name.la"
10383 if test -f "$additional_libdir/lib$name.$libext"; then
10384 found_dir
="$additional_libdir"
10385 found_a
="$additional_libdir/lib$name.$libext"
10386 if test -f "$additional_libdir/lib$name.la"; then
10387 found_la
="$additional_libdir/lib$name.la"
10392 if test "X$found_dir" = "X"; then
10393 for x
in $LDFLAGS $LTLIBEXPAT; do
10395 acl_save_prefix
="$prefix"
10396 prefix
="$acl_final_prefix"
10397 acl_save_exec_prefix
="$exec_prefix"
10398 exec_prefix
="$acl_final_exec_prefix"
10400 exec_prefix
="$acl_save_exec_prefix"
10401 prefix
="$acl_save_prefix"
10405 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10406 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10408 found_so
="$dir/lib$name.$shlibext"
10409 if test -f "$dir/lib$name.la"; then
10410 found_la
="$dir/lib$name.la"
10413 if test -f "$dir/lib$name.$libext"; then
10415 found_a
="$dir/lib$name.$libext"
10416 if test -f "$dir/lib$name.la"; then
10417 found_la
="$dir/lib$name.la"
10423 if test "X$found_dir" != "X"; then
10428 if test "X$found_dir" != "X"; then
10429 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10430 if test "X$found_so" != "X"; then
10431 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10432 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10435 for x
in $ltrpathdirs; do
10436 if test "X$x" = "X$found_dir"; then
10441 if test -z "$haveit"; then
10442 ltrpathdirs
="$ltrpathdirs $found_dir"
10444 if test "$hardcode_direct" = yes; then
10445 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10447 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10448 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10450 for x
in $rpathdirs; do
10451 if test "X$x" = "X$found_dir"; then
10456 if test -z "$haveit"; then
10457 rpathdirs
="$rpathdirs $found_dir"
10461 for x
in $LDFLAGS $LIBEXPAT; do
10463 acl_save_prefix
="$prefix"
10464 prefix
="$acl_final_prefix"
10465 acl_save_exec_prefix
="$exec_prefix"
10466 exec_prefix
="$acl_final_exec_prefix"
10468 exec_prefix
="$acl_save_exec_prefix"
10469 prefix
="$acl_save_prefix"
10471 if test "X$x" = "X-L$found_dir"; then
10476 if test -z "$haveit"; then
10477 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10479 if test "$hardcode_minus_L" != no
; then
10480 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10482 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10488 if test "X$found_a" != "X"; then
10489 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10491 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10494 additional_includedir
=
10495 case "$found_dir" in
10497 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10498 additional_includedir
="$basedir/include"
10501 if test "X$additional_includedir" != "X"; then
10502 if test "X$additional_includedir" != "X/usr/include"; then
10504 if test "X$additional_includedir" = "X/usr/local/include"; then
10505 if test -n "$GCC"; then
10507 linux
*) haveit
=yes;;
10511 if test -z "$haveit"; then
10512 for x
in $CPPFLAGS $INCEXPAT; do
10514 acl_save_prefix
="$prefix"
10515 prefix
="$acl_final_prefix"
10516 acl_save_exec_prefix
="$exec_prefix"
10517 exec_prefix
="$acl_final_exec_prefix"
10519 exec_prefix
="$acl_save_exec_prefix"
10520 prefix
="$acl_save_prefix"
10522 if test "X$x" = "X-I$additional_includedir"; then
10527 if test -z "$haveit"; then
10528 if test -d "$additional_includedir"; then
10529 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10535 if test -n "$found_la"; then
10536 save_libdir
="$libdir"
10537 case "$found_la" in
10538 */* |
*\\*) .
"$found_la" ;;
10539 *) .
"./$found_la" ;;
10541 libdir
="$save_libdir"
10542 for dep
in $dependency_libs; do
10545 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10546 if test "X$additional_libdir" != "X/usr/lib"; then
10548 if test "X$additional_libdir" = "X/usr/local/lib"; then
10549 if test -n "$GCC"; then
10551 linux
*) haveit
=yes;;
10555 if test -z "$haveit"; then
10557 for x
in $LDFLAGS $LIBEXPAT; do
10559 acl_save_prefix
="$prefix"
10560 prefix
="$acl_final_prefix"
10561 acl_save_exec_prefix
="$exec_prefix"
10562 exec_prefix
="$acl_final_exec_prefix"
10564 exec_prefix
="$acl_save_exec_prefix"
10565 prefix
="$acl_save_prefix"
10567 if test "X$x" = "X-L$additional_libdir"; then
10572 if test -z "$haveit"; then
10573 if test -d "$additional_libdir"; then
10574 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
10578 for x
in $LDFLAGS $LTLIBEXPAT; do
10580 acl_save_prefix
="$prefix"
10581 prefix
="$acl_final_prefix"
10582 acl_save_exec_prefix
="$exec_prefix"
10583 exec_prefix
="$acl_final_exec_prefix"
10585 exec_prefix
="$acl_save_exec_prefix"
10586 prefix
="$acl_save_prefix"
10588 if test "X$x" = "X-L$additional_libdir"; then
10593 if test -z "$haveit"; then
10594 if test -d "$additional_libdir"; then
10595 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10602 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10603 if test "$enable_rpath" != no
; then
10605 for x
in $rpathdirs; do
10606 if test "X$x" = "X$dir"; then
10611 if test -z "$haveit"; then
10612 rpathdirs
="$rpathdirs $dir"
10615 for x
in $ltrpathdirs; do
10616 if test "X$x" = "X$dir"; then
10621 if test -z "$haveit"; then
10622 ltrpathdirs
="$ltrpathdirs $dir"
10627 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10630 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10633 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10634 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10640 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10641 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10647 if test "X$rpathdirs" != "X"; then
10648 if test -n "$hardcode_libdir_separator"; then
10650 for found_dir
in $rpathdirs; do
10651 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10653 acl_save_libdir
="$libdir"
10655 eval flag
=\"$hardcode_libdir_flag_spec\"
10656 libdir
="$acl_save_libdir"
10657 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10659 for found_dir
in $rpathdirs; do
10660 acl_save_libdir
="$libdir"
10661 libdir
="$found_dir"
10662 eval flag
=\"$hardcode_libdir_flag_spec\"
10663 libdir
="$acl_save_libdir"
10664 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10668 if test "X$ltrpathdirs" != "X"; then
10669 for found_dir
in $ltrpathdirs; do
10670 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10675 ac_save_CPPFLAGS
="$CPPFLAGS"
10677 for element
in $INCEXPAT; do
10679 for x
in $CPPFLAGS; do
10681 acl_save_prefix
="$prefix"
10682 prefix
="$acl_final_prefix"
10683 acl_save_exec_prefix
="$exec_prefix"
10684 exec_prefix
="$acl_final_exec_prefix"
10686 exec_prefix
="$acl_save_exec_prefix"
10687 prefix
="$acl_save_prefix"
10689 if test "X$x" = "X$element"; then
10694 if test -z "$haveit"; then
10695 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
10701 $as_echo_n "checking for libexpat... " >&6; }
10702 if test "${ac_cv_libexpat+set}" = set; then :
10703 $as_echo_n "(cached) " >&6
10706 ac_save_LIBS
="$LIBS"
10707 LIBS
="$LIBS $LIBEXPAT"
10708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10709 /* end confdefs.h. */
10714 XML_Parser p = XML_ParserCreate (0);
10719 if ac_fn_c_try_link
"$LINENO"; then :
10724 rm -f core conftest.err conftest.
$ac_objext \
10725 conftest
$ac_exeext conftest.
$ac_ext
10726 LIBS
="$ac_save_LIBS"
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
10730 $as_echo "$ac_cv_libexpat" >&6; }
10731 if test "$ac_cv_libexpat" = yes; then
10734 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
10737 $as_echo_n "checking how to link with libexpat... " >&6; }
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
10739 $as_echo "$LIBEXPAT" >&6; }
10742 CPPFLAGS
="$ac_save_CPPFLAGS"
10752 if test "$HAVE_LIBEXPAT" != yes; then
10753 if test "$with_expat" = yes; then
10754 as_fn_error
"expat is missing or unusable" "$LINENO" 5
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
10757 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
10761 LIBS
="$LIBS $LIBEXPAT"
10762 for ac_func
in XML_StopParser
10764 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
10765 if test "x$ac_cv_func_XML_StopParser" = x
""yes; then :
10766 cat >>confdefs.h
<<_ACEOF
10767 #define HAVE_XML_STOPPARSER 1
10782 # Check whether --with-python was given.
10783 if test "${with_python+set}" = set; then :
10784 withval
=$with_python;
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10790 $as_echo_n "checking whether to use python... " >&6; }
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10792 $as_echo "$with_python" >&6; }
10794 if test "${with_python}" = no
; then
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10796 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10799 case "${with_python}" in
10801 if test -d ${with_python}; then
10802 # Assume the python binary is ${with_python}/bin/python.
10803 python_prog
="${with_python}/bin/python"
10805 # If python does not exit ${with_python}/bin, then try in
10806 # ${with_python}. On Windows/MinGW, this is where the Python
10808 if test ! -x "${python_prog}"; then
10809 python_prog
="${with_python}/python"
10812 if test ! -x "${python_prog}"; then
10813 # Fall back to gdb 7.0/7.1 behaviour.
10814 python_prog
=missing
10815 python_prefix
=${with_python}
10817 elif test -x "${with_python}"; then
10818 # While we can't run python compiled for $host (unless host == build),
10819 # the user could write a script that provides the needed information,
10820 # so we support that.
10821 python_prog
=${with_python}
10824 as_fn_error
"invalid value for --with-python" "$LINENO" 5
10828 # Disallow --with-python=foo/bar.
10829 as_fn_error
"invalid value for --with-python" "$LINENO" 5
10832 # The user has either specified auto, yes, or the name of the python
10833 # program assumed to be in $PATH.
10835 case "${with_python}" in
10837 if test ${build} = ${host}; then
10838 # Extract the first word of "python", so it can be a program name with args.
10839 set dummy python
; ac_word
=$2
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10841 $as_echo_n "checking for $ac_word... " >&6; }
10842 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10843 $as_echo_n "(cached) " >&6
10845 case $python_prog_path in
10847 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10850 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10851 for as_dir
in $PATH
10854 test -z "$as_dir" && as_dir
=.
10855 for ac_exec_ext
in '' $ac_executable_extensions; do
10856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10857 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10865 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10869 python_prog_path
=$ac_cv_path_python_prog_path
10870 if test -n "$python_prog_path"; then
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10872 $as_echo "$python_prog_path" >&6; }
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10875 $as_echo "no" >&6; }
10879 if test "${python_prog_path}" = missing
; then
10880 python_prog
=missing
10882 python_prog
=${python_prog_path}
10885 # Not much we can do except assume the cross-compiler will find the
10887 python_prog
=missing
10891 # While we can't run python compiled for $host (unless host == build),
10892 # the user could write a script that provides the needed information,
10893 # so we support that.
10894 python_prog
="${with_python}"
10895 # Extract the first word of "${python_prog}", so it can be a program name with args.
10896 set dummy
${python_prog}; ac_word
=$2
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10898 $as_echo_n "checking for $ac_word... " >&6; }
10899 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10900 $as_echo_n "(cached) " >&6
10902 case $python_prog_path in
10904 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10907 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10908 for as_dir
in $PATH
10911 test -z "$as_dir" && as_dir
=.
10912 for ac_exec_ext
in '' $ac_executable_extensions; do
10913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10914 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10922 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10926 python_prog_path
=$ac_cv_path_python_prog_path
10927 if test -n "$python_prog_path"; then
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10929 $as_echo "$python_prog_path" >&6; }
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10932 $as_echo "no" >&6; }
10936 if test "${python_prog_path}" = missing
; then
10937 as_fn_error
"unable to find python program ${python_prog}" "$LINENO" 5
10943 if test "${python_prog}" != missing
; then
10944 # We have a python program to use, but it may be too old.
10945 # Don't flag an error for --with-python=auto (the default).
10946 have_python_config
=yes
10947 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
10948 if test $?
!= 0; then
10949 have_python_config
=failed
10950 if test "${with_python}" != auto
; then
10951 as_fn_error
"failure running python-config --includes" "$LINENO" 5
10954 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10955 if test $?
!= 0; then
10956 have_python_config
=failed
10957 if test "${with_python}" != auto
; then
10958 as_fn_error
"failure running python-config --ldflags" "$LINENO" 5
10961 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10962 if test $?
!= 0; then
10963 have_python_config
=failed
10964 if test "${with_python}" != auto
; then
10965 as_fn_error
"failure running python-config --exec-prefix" "$LINENO" 5
10969 # We do not have a python executable we can use to determine where
10970 # to find the Python headers and libs. We cannot guess the include
10971 # path from the python_prefix either, because that include path
10972 # depends on the Python version. So, there is nothing much we can
10973 # do except assume that the compiler will be able to find those files.
10976 have_python_config
=no
10979 # If we have python-config, only try the configuration it provides.
10980 # Otherwise fallback on the old way of trying different versions of
10984 if test "${have_python_config}" = yes; then
10985 # Determine the Python version by extracting "-lpython<version>"
10986 # part of the python_libs. <version> is usually X.Y with X and Y
10987 # being decimal numbers, but can also be XY (seen on Windows).
10989 # The extraction is performed using sed with a regular expression.
10990 # Initially, the regexp used was using the '?' quantifier to make
10991 # the dot in the version number optional. Unfortunately, this
10992 # does not work with non-GNU versions of sed because, because of
10993 # what looks like a limitation (the '?' quantifier does not work
10994 # with back-references). We work around this limitation by using
10995 # the '*' quantifier instead. It means that, in theory, we might
10996 # match unexpected version strings such as "-lpython2..7", but
10997 # this seems unlikely in practice. And even if that happens,
10998 # an error will be triggered later on, when checking that version
11000 python_version
=`echo " ${python_libs} " \
11001 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
11002 case "${python_version}" in
11005 version
=${python_version}
11007 new_CPPFLAGS
=${python_includes}
11008 new_LIBS
=${python_libs}
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
11010 $as_echo_n "checking for ${version}... " >&6; }
11011 save_CPPFLAGS
=$CPPFLAGS
11013 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11014 LIBS
="$LIBS $new_LIBS"
11015 found_usable_python
=no
11016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11017 /* end confdefs.h. */
11018 #include "Python.h"
11027 if ac_fn_c_try_link
"$LINENO"; then :
11028 have_libpython
=${version}
11029 found_usable_python
=yes
11030 PYTHON_CPPFLAGS
=$new_CPPFLAGS
11031 PYTHON_LIBS
=$new_LIBS
11033 rm -f core conftest.err conftest.
$ac_objext \
11034 conftest
$ac_exeext conftest.
$ac_ext
11035 CPPFLAGS
=$save_CPPFLAGS
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11038 $as_echo "${found_usable_python}" >&6; }
11042 as_fn_error
"unable to determine python version from ${python_libs}" "$LINENO" 5
11045 elif test "${have_python_config}" != failed
; then
11046 if test "${have_libpython}" = no
; then
11050 new_CPPFLAGS
=${python_includes}
11051 new_LIBS
="${python_libs} -lpython2.7"
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
11053 $as_echo_n "checking for ${version}... " >&6; }
11054 save_CPPFLAGS
=$CPPFLAGS
11056 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11057 LIBS
="$LIBS $new_LIBS"
11058 found_usable_python
=no
11059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11060 /* end confdefs.h. */
11061 #include "Python.h"
11070 if ac_fn_c_try_link
"$LINENO"; then :
11071 have_libpython
=${version}
11072 found_usable_python
=yes
11073 PYTHON_CPPFLAGS
=$new_CPPFLAGS
11074 PYTHON_LIBS
=$new_LIBS
11076 rm -f core conftest.err conftest.
$ac_objext \
11077 conftest
$ac_exeext conftest.
$ac_ext
11078 CPPFLAGS
=$save_CPPFLAGS
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11081 $as_echo "${found_usable_python}" >&6; }
11084 if test "${have_libpython}" = no
; then
11088 new_CPPFLAGS
=${python_includes}
11089 new_LIBS
="${python_libs} -lpython2.6"
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
11091 $as_echo_n "checking for ${version}... " >&6; }
11092 save_CPPFLAGS
=$CPPFLAGS
11094 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11095 LIBS
="$LIBS $new_LIBS"
11096 found_usable_python
=no
11097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11098 /* end confdefs.h. */
11099 #include "Python.h"
11108 if ac_fn_c_try_link
"$LINENO"; then :
11109 have_libpython
=${version}
11110 found_usable_python
=yes
11111 PYTHON_CPPFLAGS
=$new_CPPFLAGS
11112 PYTHON_LIBS
=$new_LIBS
11114 rm -f core conftest.err conftest.
$ac_objext \
11115 conftest
$ac_exeext conftest.
$ac_ext
11116 CPPFLAGS
=$save_CPPFLAGS
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11119 $as_echo "${found_usable_python}" >&6; }
11122 if test ${have_libpython} = no
; then
11126 new_CPPFLAGS
=${python_includes}
11127 new_LIBS
="${python_libs} -lpython2.5"
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
11129 $as_echo_n "checking for ${version}... " >&6; }
11130 save_CPPFLAGS
=$CPPFLAGS
11132 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11133 LIBS
="$LIBS $new_LIBS"
11134 found_usable_python
=no
11135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11136 /* end confdefs.h. */
11137 #include "Python.h"
11146 if ac_fn_c_try_link
"$LINENO"; then :
11147 have_libpython
=${version}
11148 found_usable_python
=yes
11149 PYTHON_CPPFLAGS
=$new_CPPFLAGS
11150 PYTHON_LIBS
=$new_LIBS
11152 rm -f core conftest.err conftest.
$ac_objext \
11153 conftest
$ac_exeext conftest.
$ac_ext
11154 CPPFLAGS
=$save_CPPFLAGS
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11157 $as_echo "${found_usable_python}" >&6; }
11160 if test ${have_libpython} = no
; then
11164 new_CPPFLAGS
=${python_includes}
11165 new_LIBS
="${python_libs} -lpython2.4"
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
11167 $as_echo_n "checking for ${version}... " >&6; }
11168 save_CPPFLAGS
=$CPPFLAGS
11170 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11171 LIBS
="$LIBS $new_LIBS"
11172 found_usable_python
=no
11173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11174 /* end confdefs.h. */
11175 #include "Python.h"
11184 if ac_fn_c_try_link
"$LINENO"; then :
11185 have_libpython
=${version}
11186 found_usable_python
=yes
11187 PYTHON_CPPFLAGS
=$new_CPPFLAGS
11188 PYTHON_LIBS
=$new_LIBS
11190 rm -f core conftest.err conftest.
$ac_objext \
11191 conftest
$ac_exeext conftest.
$ac_ext
11192 CPPFLAGS
=$save_CPPFLAGS
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11195 $as_echo "${found_usable_python}" >&6; }
11199 if test "${have_libpython}" = python2.7
-o "${have_libpython}" = python27
; then
11201 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
11203 elif test "${have_libpython}" = python2.6
-o "${have_libpython}" = python26
; then
11205 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
11207 elif test "${have_libpython}" = python2.5
-o "${have_libpython}" = python25
; then
11209 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
11211 elif test "${have_libpython}" = python2.4
-o "${have_libpython}" = python24
; then
11213 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
11217 if test "${have_libpython}" = no
; then
11218 case "${with_python}" in
11220 as_fn_error
"python is missing or unusable" "$LINENO" 5
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
11224 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
11227 as_fn_error
"no usable python found at ${with_python}" "$LINENO" 5
11231 if test -n "${python_prefix}"; then
11233 cat >>confdefs.h
<<_ACEOF
11234 #define WITH_PYTHON_PATH "${python_prefix}"
11238 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
11239 if test "x$prefix" = xNONE
; then
11240 test_prefix
=/usr
/local
11242 test_prefix
=$prefix
11245 test_prefix
=$exec_prefix
11248 case ${python_prefix} in
11249 "${test_prefix}"|
"${test_prefix}/"*|\
11250 '${exec_prefix}'|
'${exec_prefix}/'*)
11255 cat >>confdefs.h
<<_ACEOF
11256 #define PYTHON_PATH_RELOCATABLE $value
11264 if test "${have_libpython}" != no
; then
11266 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
11268 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
11269 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
11270 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
11271 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
11272 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
11274 # Flags needed to compile Python code (taken from python-config --cflags).
11275 # We cannot call python-config directly because it will output whatever was
11276 # used when compiling the Python interpreter itself, including flags which
11277 # would make the python-related objects be compiled differently from the
11278 # rest of GDB (e.g., -O2 and -fPIC).
11279 if test "${GCC}" = yes; then
11280 tentative_python_cflags
="-fno-strict-aliasing -DNDEBUG -fwrapv"
11283 if test "x${tentative_python_cflags}" != x
; then
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
11285 $as_echo_n "checking compiler flags for python code... " >&6; }
11286 for flag
in ${tentative_python_cflags}; do
11287 # Check that the compiler accepts it
11288 saved_CFLAGS
="$CFLAGS"
11289 CFLAGS
="$CFLAGS $flag"
11290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11291 /* end confdefs.h. */
11301 if ac_fn_c_try_compile
"$LINENO"; then :
11302 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
11304 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11305 CFLAGS
="$saved_CFLAGS"
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
11308 $as_echo "${PYTHON_CFLAGS}" >&6; }
11311 # On IRIX, type siginfo is not defined. Instead, sys/siginfo.h provides:
11313 # #define siginfo __siginfo
11315 # The problem is that including Python causes some XOPEN macros to be
11316 # unilaterally defined, and that in turn causes _SGIAPI to evaluate
11317 # to false. So, we work around this issue by defining siginfo ourself
11318 # though the command-line.
11319 case "$gdb_host" in
11320 irix
*) if test "${GCC}" = yes; then
11321 CPPFLAGS
="$CPPFLAGS -Dsiginfo=__siginfo"
11326 # Even if Python support is not compiled in, we need to have these files
11328 CONFIG_OBS
="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
11329 CONFIG_SRCS
="$CONFIG_SRCS python/python.c python/py-value.c \
11330 python/py-prettyprint.c python/py-auto-load.c"
11336 # ------------------------- #
11337 # Checks for header files. #
11338 # ------------------------- #
11340 ac_header_dirent
=no
11341 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
11342 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
11344 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
11345 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
11346 $as_echo_n "(cached) " >&6
11348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11349 /* end confdefs.h. */
11350 #include <sys/types.h>
11362 if ac_fn_c_try_compile
"$LINENO"; then :
11363 eval "$as_ac_Header=yes"
11365 eval "$as_ac_Header=no"
11367 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11369 eval ac_res
=\$
$as_ac_Header
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11371 $as_echo "$ac_res" >&6; }
11372 eval as_val
=\$
$as_ac_Header
11373 if test "x$as_val" = x
""yes; then :
11374 cat >>confdefs.h
<<_ACEOF
11375 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11378 ac_header_dirent
=$ac_hdr; break
11382 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11383 if test $ac_header_dirent = dirent.h
; then
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11385 $as_echo_n "checking for library containing opendir... " >&6; }
11386 if test "${ac_cv_search_opendir+set}" = set; then :
11387 $as_echo_n "(cached) " >&6
11389 ac_func_search_save_LIBS
=$LIBS
11390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11391 /* end confdefs.h. */
11393 /* Override any GCC internal prototype to avoid an error.
11394 Use char because int might match the return type of a GCC
11395 builtin and then its argument prototype would still apply. */
11408 for ac_lib
in '' dir
; do
11409 if test -z "$ac_lib"; then
11410 ac_res
="none required"
11413 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11415 if ac_fn_c_try_link
"$LINENO"; then :
11416 ac_cv_search_opendir
=$ac_res
11418 rm -f core conftest.err conftest.
$ac_objext \
11420 if test "${ac_cv_search_opendir+set}" = set; then :
11424 if test "${ac_cv_search_opendir+set}" = set; then :
11427 ac_cv_search_opendir
=no
11429 rm conftest.
$ac_ext
11430 LIBS
=$ac_func_search_save_LIBS
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11433 $as_echo "$ac_cv_search_opendir" >&6; }
11434 ac_res
=$ac_cv_search_opendir
11435 if test "$ac_res" != no
; then :
11436 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11442 $as_echo_n "checking for library containing opendir... " >&6; }
11443 if test "${ac_cv_search_opendir+set}" = set; then :
11444 $as_echo_n "(cached) " >&6
11446 ac_func_search_save_LIBS
=$LIBS
11447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11448 /* end confdefs.h. */
11450 /* Override any GCC internal prototype to avoid an error.
11451 Use char because int might match the return type of a GCC
11452 builtin and then its argument prototype would still apply. */
11465 for ac_lib
in '' x
; do
11466 if test -z "$ac_lib"; then
11467 ac_res
="none required"
11470 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11472 if ac_fn_c_try_link
"$LINENO"; then :
11473 ac_cv_search_opendir
=$ac_res
11475 rm -f core conftest.err conftest.
$ac_objext \
11477 if test "${ac_cv_search_opendir+set}" = set; then :
11481 if test "${ac_cv_search_opendir+set}" = set; then :
11484 ac_cv_search_opendir
=no
11486 rm conftest.
$ac_ext
11487 LIBS
=$ac_func_search_save_LIBS
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11490 $as_echo "$ac_cv_search_opendir" >&6; }
11491 ac_res
=$ac_cv_search_opendir
11492 if test "$ac_res" != no
; then :
11493 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11500 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11501 if test "${ac_cv_header_stat_broken+set}" = set; then :
11502 $as_echo_n "(cached) " >&6
11504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11505 /* end confdefs.h. */
11506 #include <sys/types.h>
11507 #include <sys/stat.h>
11509 #if defined S_ISBLK && defined S_IFDIR
11510 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11513 #if defined S_ISBLK && defined S_IFCHR
11514 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11517 #if defined S_ISLNK && defined S_IFREG
11518 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11521 #if defined S_ISSOCK && defined S_IFREG
11522 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11526 if ac_fn_c_try_compile
"$LINENO"; then :
11527 ac_cv_header_stat_broken
=no
11529 ac_cv_header_stat_broken
=yes
11531 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11534 $as_echo "$ac_cv_header_stat_broken" >&6; }
11535 if test $ac_cv_header_stat_broken = yes; then
11537 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11542 $as_echo_n "checking for ANSI C header files... " >&6; }
11543 if test "${ac_cv_header_stdc+set}" = set; then :
11544 $as_echo_n "(cached) " >&6
11546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11547 /* end confdefs.h. */
11548 #include <stdlib.h>
11549 #include <stdarg.h>
11550 #include <string.h>
11561 if ac_fn_c_try_compile
"$LINENO"; then :
11562 ac_cv_header_stdc
=yes
11564 ac_cv_header_stdc
=no
11566 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11568 if test $ac_cv_header_stdc = yes; then
11569 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11571 /* end confdefs.h. */
11572 #include <string.h>
11575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11576 $EGREP "memchr" >/dev
/null
2>&1; then :
11579 ac_cv_header_stdc
=no
11585 if test $ac_cv_header_stdc = yes; then
11586 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11588 /* end confdefs.h. */
11589 #include <stdlib.h>
11592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11593 $EGREP "free" >/dev
/null
2>&1; then :
11596 ac_cv_header_stdc
=no
11602 if test $ac_cv_header_stdc = yes; then
11603 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11604 if test "$cross_compiling" = yes; then :
11607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11608 /* end confdefs.h. */
11610 #include <stdlib.h>
11611 #if ((' ' & 0x0FF) == 0x020)
11612 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11613 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11615 # define ISLOWER(c) \
11616 (('a' <= (c) && (c) <= 'i') \
11617 || ('j' <= (c) && (c) <= 'r') \
11618 || ('s' <= (c) && (c) <= 'z'))
11619 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11622 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11627 for (i = 0; i < 256; i++)
11628 if (XOR (islower (i), ISLOWER (i))
11629 || toupper (i) != TOUPPER (i))
11634 if ac_fn_c_try_run
"$LINENO"; then :
11637 ac_cv_header_stdc
=no
11639 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11640 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11646 $as_echo "$ac_cv_header_stdc" >&6; }
11647 if test $ac_cv_header_stdc = yes; then
11649 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11653 # elf_hp.h is for HP/UX 64-bit shared library support.
11654 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
11655 # unconditionally, so what's the point in checking these?
11656 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
11657 thread_db.h gnu
/libc-version.h signal.h stddef.h \
11658 stdlib.h string.h memory.h
strings.h sys
/fault.h \
11659 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
11660 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
11661 sys
/reg.h sys
/debugreg.h sys
/select.h sys
/syscall.h \
11662 sys
/types.h sys
/wait.h
wait.h termios.h termio.h \
11663 sgtty.h unistd.h elf_hp.h ctype.h
time.h locale.h \
11666 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11667 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11668 eval as_val
=\$
$as_ac_Header
11669 if test "x$as_val" = x
""yes; then :
11670 cat >>confdefs.h
<<_ACEOF
11671 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11678 for ac_header
in link.h
11680 ac_fn_c_check_header_compile
"$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
11681 # include <sys/types.h>
11684 # include <nlist.h>
11688 if test "x$ac_cv_header_link_h" = x
""yes; then :
11689 cat >>confdefs.h
<<_ACEOF
11690 #define HAVE_LINK_H 1
11697 for ac_header
in sys
/proc.h
11699 ac_fn_c_check_header_compile
"$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
11700 # include <sys/param.h>
11704 if test "x$ac_cv_header_sys_proc_h" = x
""yes; then :
11705 cat >>confdefs.h
<<_ACEOF
11706 #define HAVE_SYS_PROC_H 1
11713 for ac_header
in sys
/user.h
11715 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
11716 # include <sys/param.h>
11720 if test "x$ac_cv_header_sys_user_h" = x
""yes; then :
11721 cat >>confdefs.h
<<_ACEOF
11722 #define HAVE_SYS_USER_H 1
11730 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
11731 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
11732 # think that we don't have <curses.h> if we're using GCC.
11735 if test "$GCC" = yes; then
11737 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
11741 for ac_header
in curses.h cursesX.h ncurses.h ncurses
/ncurses.h ncurses
/term.h
11743 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11744 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11745 eval as_val
=\$
$as_ac_Header
11746 if test "x$as_val" = x
""yes; then :
11747 cat >>confdefs.h
<<_ACEOF
11748 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11755 for ac_header
in term.h
11757 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
11758 # include <curses.h>
11762 if test "x$ac_cv_header_term_h" = x
""yes; then :
11763 cat >>confdefs.h
<<_ACEOF
11764 #define HAVE_TERM_H 1
11772 # ------------------------- #
11773 # Checks for declarations. #
11774 # ------------------------- #
11776 ac_fn_c_check_decl
"$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
11777 if test "x$ac_cv_have_decl_free" = x
""yes; then :
11783 cat >>confdefs.h
<<_ACEOF
11784 #define HAVE_DECL_FREE $ac_have_decl
11786 ac_fn_c_check_decl
"$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
11787 if test "x$ac_cv_have_decl_malloc" = x
""yes; then :
11793 cat >>confdefs.h
<<_ACEOF
11794 #define HAVE_DECL_MALLOC $ac_have_decl
11796 ac_fn_c_check_decl
"$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
11797 if test "x$ac_cv_have_decl_realloc" = x
""yes; then :
11803 cat >>confdefs.h
<<_ACEOF
11804 #define HAVE_DECL_REALLOC $ac_have_decl
11806 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
11807 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
11813 cat >>confdefs.h
<<_ACEOF
11814 #define HAVE_DECL_STRERROR $ac_have_decl
11816 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
11817 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
11823 cat >>confdefs.h
<<_ACEOF
11824 #define HAVE_DECL_STRSTR $ac_have_decl
11826 ac_fn_c_check_decl
"$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
11827 if test "x$ac_cv_have_decl_getopt" = x
""yes; then :
11833 cat >>confdefs.h
<<_ACEOF
11834 #define HAVE_DECL_GETOPT $ac_have_decl
11836 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11837 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
11843 cat >>confdefs.h
<<_ACEOF
11844 #define HAVE_DECL_SNPRINTF $ac_have_decl
11846 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
11847 if test "x$ac_cv_have_decl_vsnprintf" = x
""yes; then :
11853 cat >>confdefs.h
<<_ACEOF
11854 #define HAVE_DECL_VSNPRINTF $ac_have_decl
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11859 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11860 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
11861 $as_echo_n "(cached) " >&6
11863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11864 /* end confdefs.h. */
11865 #include <locale.h>
11874 if ac_fn_c_try_link
"$LINENO"; then :
11875 am_cv_val_LC_MESSAGES
=yes
11877 am_cv_val_LC_MESSAGES
=no
11879 rm -f core conftest.err conftest.
$ac_objext \
11880 conftest
$ac_exeext conftest.
$ac_ext
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11883 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11884 if test $am_cv_val_LC_MESSAGES = yes; then
11886 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11891 # ----------------------- #
11892 # Checks for structures. #
11893 # ----------------------- #
11895 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
11896 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then :
11898 cat >>confdefs.h
<<_ACEOF
11899 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11904 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
11905 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then :
11907 cat >>confdefs.h
<<_ACEOF
11908 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11915 # ------------------ #
11916 # Checks for types. #
11917 # ------------------ #
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11920 $as_echo_n "checking return type of signal handlers... " >&6; }
11921 if test "${ac_cv_type_signal+set}" = set; then :
11922 $as_echo_n "(cached) " >&6
11924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11925 /* end confdefs.h. */
11926 #include <sys/types.h>
11927 #include <signal.h>
11932 return *(signal (0, 0)) (0) == 1;
11937 if ac_fn_c_try_compile
"$LINENO"; then :
11938 ac_cv_type_signal
=int
11940 ac_cv_type_signal
=void
11942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11945 $as_echo "$ac_cv_type_signal" >&6; }
11947 cat >>confdefs.h
<<_ACEOF
11948 #define RETSIGTYPE $ac_cv_type_signal
11952 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11953 #include <sys/socket.h>
11956 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
11958 cat >>confdefs.h
<<_ACEOF
11959 #define HAVE_SOCKLEN_T 1
11966 # ------------------------------------- #
11967 # Checks for compiler characteristics. #
11968 # ------------------------------------- #
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11971 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11972 if test "${ac_cv_c_const+set}" = set; then :
11973 $as_echo_n "(cached) " >&6
11975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11976 /* end confdefs.h. */
11981 /* FIXME: Include the comments suggested by Paul. */
11982 #ifndef __cplusplus
11983 /* Ultrix mips cc rejects this. */
11984 typedef int charset[2];
11986 /* SunOS 4.1.1 cc rejects this. */
11987 char const *const *pcpcc;
11989 /* NEC SVR4.0.2 mips cc rejects this. */
11990 struct point {int x, y;};
11991 static struct point const zero = {0,0};
11992 /* AIX XL C 1.02.0.0 rejects this.
11993 It does not let you subtract one const X* pointer from another in
11994 an arm of an if-expression whose if-part is not a constant
11996 const char *g = "string";
11997 pcpcc = &g + (g ? g-g : 0);
11998 /* HPUX 7.0 cc rejects these. */
12000 ppc = (char**) pcpcc;
12001 pcpcc = (char const *const *) ppc;
12002 { /* SCO 3.2v4 cc rejects this. */
12004 char const *s = 0 ? (char *) 0 : (char const *) 0;
12009 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12010 int x[] = {25, 17};
12011 const int *foo = &x[0];
12014 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12015 typedef const int *iptr;
12019 { /* AIX XL C 1.02.0.0 rejects this saying
12020 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12021 struct s { int j; const int *ap[3]; };
12022 struct s *b; b->j = 5;
12024 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12025 const int foo = 10;
12026 if (!foo) return 0;
12028 return !cs[0] && !zero.x;
12035 if ac_fn_c_try_compile
"$LINENO"; then :
12040 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12043 $as_echo "$ac_cv_c_const" >&6; }
12044 if test $ac_cv_c_const = no
; then
12046 $as_echo "#define const /**/" >>confdefs.h
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12051 $as_echo_n "checking for inline... " >&6; }
12052 if test "${ac_cv_c_inline+set}" = set; then :
12053 $as_echo_n "(cached) " >&6
12056 for ac_kw
in inline __inline__ __inline
; do
12057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12058 /* end confdefs.h. */
12059 #ifndef __cplusplus
12061 static $ac_kw foo_t static_foo () {return 0; }
12062 $ac_kw foo_t foo () {return 0; }
12066 if ac_fn_c_try_compile
"$LINENO"; then :
12067 ac_cv_c_inline
=$ac_kw
12069 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12070 test "$ac_cv_c_inline" != no
&& break
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12075 $as_echo "$ac_cv_c_inline" >&6; }
12077 case $ac_cv_c_inline in
12080 case $ac_cv_c_inline in
12082 *) ac_val
=$ac_cv_c_inline;;
12084 cat >>confdefs.h
<<_ACEOF
12085 #ifndef __cplusplus
12086 #define inline $ac_val
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12093 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12094 if test "${ac_cv_c_bigendian+set}" = set; then :
12095 $as_echo_n "(cached) " >&6
12097 ac_cv_c_bigendian
=unknown
12098 # See if we're dealing with a universal compiler.
12099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12100 /* end confdefs.h. */
12101 #ifndef __APPLE_CC__
12102 not a universal capable compiler
12107 if ac_fn_c_try_compile
"$LINENO"; then :
12109 # Check for potential -arch flags. It is not universal unless
12110 # there are at least two -arch flags with different values.
12113 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12114 if test -n "$ac_prev"; then
12116 i?
86 | x86_64 | ppc | ppc64
)
12117 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12120 ac_cv_c_bigendian
=universal
12126 elif test "x$ac_word" = "x-arch"; then
12131 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12132 if test $ac_cv_c_bigendian = unknown
; then
12133 # See if sys/param.h defines the BYTE_ORDER macro.
12134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12135 /* end confdefs.h. */
12136 #include <sys/types.h>
12137 #include <sys/param.h>
12142 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12143 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12145 bogus endian macros
12152 if ac_fn_c_try_compile
"$LINENO"; then :
12153 # It does; now see whether it defined to BIG_ENDIAN or not.
12154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12155 /* end confdefs.h. */
12156 #include <sys/types.h>
12157 #include <sys/param.h>
12162 #if BYTE_ORDER != BIG_ENDIAN
12170 if ac_fn_c_try_compile
"$LINENO"; then :
12171 ac_cv_c_bigendian
=yes
12173 ac_cv_c_bigendian
=no
12175 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12179 if test $ac_cv_c_bigendian = unknown
; then
12180 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12182 /* end confdefs.h. */
12183 #include <limits.h>
12188 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12189 bogus endian macros
12196 if ac_fn_c_try_compile
"$LINENO"; then :
12197 # It does; now see whether it defined to _BIG_ENDIAN or not.
12198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12199 /* end confdefs.h. */
12200 #include <limits.h>
12205 #ifndef _BIG_ENDIAN
12213 if ac_fn_c_try_compile
"$LINENO"; then :
12214 ac_cv_c_bigendian
=yes
12216 ac_cv_c_bigendian
=no
12218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12220 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12222 if test $ac_cv_c_bigendian = unknown
; then
12223 # Compile a test program.
12224 if test "$cross_compiling" = yes; then :
12225 # Try to guess by grepping values from an object file.
12226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12227 /* end confdefs.h. */
12228 short int ascii_mm[] =
12229 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12230 short int ascii_ii[] =
12231 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12232 int use_ascii (int i) {
12233 return ascii_mm[i] + ascii_ii[i];
12235 short int ebcdic_ii[] =
12236 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12237 short int ebcdic_mm[] =
12238 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12239 int use_ebcdic (int i) {
12240 return ebcdic_mm[i] + ebcdic_ii[i];
12247 return use_ascii (foo) == use_ebcdic (foo);
12252 if ac_fn_c_try_compile
"$LINENO"; then :
12253 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12254 ac_cv_c_bigendian
=yes
12256 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12257 if test "$ac_cv_c_bigendian" = unknown
; then
12258 ac_cv_c_bigendian
=no
12260 # finding both strings is unlikely to happen, but who knows?
12261 ac_cv_c_bigendian
=unknown
12265 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12268 /* end confdefs.h. */
12269 $ac_includes_default
12274 /* Are we little or big endian? From Harbison&Steele. */
12278 char c[sizeof (long int)];
12281 return u.c[sizeof (long int) - 1] == 1;
12287 if ac_fn_c_try_run
"$LINENO"; then :
12288 ac_cv_c_bigendian
=no
12290 ac_cv_c_bigendian
=yes
12292 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12293 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12299 $as_echo "$ac_cv_c_bigendian" >&6; }
12300 case $ac_cv_c_bigendian in #(
12302 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12308 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12312 as_fn_error
"unknown endianness
12313 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12317 # ------------------------------ #
12318 # Checks for library functions. #
12319 # ------------------------------ #
12321 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12322 # for constant arguments. Useless!
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12324 $as_echo_n "checking for working alloca.h... " >&6; }
12325 if test "${ac_cv_working_alloca_h+set}" = set; then :
12326 $as_echo_n "(cached) " >&6
12328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12329 /* end confdefs.h. */
12330 #include <alloca.h>
12334 char *p = (char *) alloca (2 * sizeof (int));
12340 if ac_fn_c_try_link
"$LINENO"; then :
12341 ac_cv_working_alloca_h
=yes
12343 ac_cv_working_alloca_h
=no
12345 rm -f core conftest.err conftest.
$ac_objext \
12346 conftest
$ac_exeext conftest.
$ac_ext
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12349 $as_echo "$ac_cv_working_alloca_h" >&6; }
12350 if test $ac_cv_working_alloca_h = yes; then
12352 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12357 $as_echo_n "checking for alloca... " >&6; }
12358 if test "${ac_cv_func_alloca_works+set}" = set; then :
12359 $as_echo_n "(cached) " >&6
12361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12362 /* end confdefs.h. */
12364 # define alloca __builtin_alloca
12367 # include <malloc.h>
12368 # define alloca _alloca
12370 # ifdef HAVE_ALLOCA_H
12371 # include <alloca.h>
12376 # ifndef alloca /* predefined by HP cc +Olibcalls */
12387 char *p = (char *) alloca (1);
12393 if ac_fn_c_try_link
"$LINENO"; then :
12394 ac_cv_func_alloca_works
=yes
12396 ac_cv_func_alloca_works
=no
12398 rm -f core conftest.err conftest.
$ac_objext \
12399 conftest
$ac_exeext conftest.
$ac_ext
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12402 $as_echo "$ac_cv_func_alloca_works" >&6; }
12404 if test $ac_cv_func_alloca_works = yes; then
12406 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12409 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12410 # that cause trouble. Some versions do not even contain alloca or
12411 # contain a buggy version. If you still want to use their alloca,
12412 # use ar to extract alloca.o from them instead of compiling alloca.c.
12414 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
12416 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12420 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12421 if test "${ac_cv_os_cray+set}" = set; then :
12422 $as_echo_n "(cached) " >&6
12424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12425 /* end confdefs.h. */
12426 #if defined CRAY && ! defined CRAY2
12433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12434 $EGREP "webecray" >/dev
/null
2>&1; then :
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12443 $as_echo "$ac_cv_os_cray" >&6; }
12444 if test $ac_cv_os_cray = yes; then
12445 for ac_func
in _getb67 GETB67 getb67
; do
12446 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12447 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12448 eval as_val
=\$
$as_ac_var
12449 if test "x$as_val" = x
""yes; then :
12451 cat >>confdefs.h
<<_ACEOF
12452 #define CRAY_STACKSEG_END $ac_func
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12462 $as_echo_n "checking stack direction for C alloca... " >&6; }
12463 if test "${ac_cv_c_stack_direction+set}" = set; then :
12464 $as_echo_n "(cached) " >&6
12466 if test "$cross_compiling" = yes; then :
12467 ac_cv_c_stack_direction
=0
12469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12470 /* end confdefs.h. */
12471 $ac_includes_default
12473 find_stack_direction ()
12475 static char *addr = 0;
12480 return find_stack_direction ();
12483 return (&dummy > addr) ? 1 : -1;
12489 return find_stack_direction () < 0;
12492 if ac_fn_c_try_run
"$LINENO"; then :
12493 ac_cv_c_stack_direction
=1
12495 ac_cv_c_stack_direction
=-1
12497 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12498 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12503 $as_echo "$ac_cv_c_stack_direction" >&6; }
12504 cat >>confdefs.h
<<_ACEOF
12505 #define STACK_DIRECTION $ac_cv_c_stack_direction
12511 for ac_header
in stdlib.h unistd.h
12513 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12514 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12515 eval as_val
=\$
$as_ac_Header
12516 if test "x$as_val" = x
""yes; then :
12517 cat >>confdefs.h
<<_ACEOF
12518 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12525 for ac_func
in getpagesize
12527 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12528 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
12529 cat >>confdefs.h
<<_ACEOF
12530 #define HAVE_GETPAGESIZE 1
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12537 $as_echo_n "checking for working mmap... " >&6; }
12538 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12539 $as_echo_n "(cached) " >&6
12541 if test "$cross_compiling" = yes; then :
12542 ac_cv_func_mmap_fixed_mapped
=no
12544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12545 /* end confdefs.h. */
12546 $ac_includes_default
12547 /* malloc might have been renamed as rpl_malloc. */
12550 /* Thanks to Mike Haertel and Jim Avera for this test.
12551 Here is a matrix of mmap possibilities:
12552 mmap private not fixed
12553 mmap private fixed at somewhere currently unmapped
12554 mmap private fixed at somewhere already mapped
12555 mmap shared not fixed
12556 mmap shared fixed at somewhere currently unmapped
12557 mmap shared fixed at somewhere already mapped
12558 For private mappings, we should verify that changes cannot be read()
12559 back from the file, nor mmap's back from the file at a different
12560 address. (There have been systems where private was not correctly
12561 implemented like the infamous i386 svr4.0, and systems where the
12562 VM page cache was not coherent with the file system buffer cache
12563 like early versions of FreeBSD and possibly contemporary NetBSD.)
12564 For shared mappings, we should conversely verify that changes get
12565 propagated back to all the places they're supposed to be.
12567 Grep wants private fixed already mapped.
12568 The main things grep needs to know about mmap are:
12569 * does it exist and is it safe to write into the mmap'd area
12570 * how to use it (BSD variants) */
12573 #include <sys/mman.h>
12575 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12579 /* This mess was copied from the GNU getpagesize.h. */
12580 #ifndef HAVE_GETPAGESIZE
12581 /* Assume that all systems that can run configure have sys/param.h. */
12582 # ifndef HAVE_SYS_PARAM_H
12583 # define HAVE_SYS_PARAM_H 1
12586 # ifdef _SC_PAGESIZE
12587 # define getpagesize() sysconf(_SC_PAGESIZE)
12588 # else /* no _SC_PAGESIZE */
12589 # ifdef HAVE_SYS_PARAM_H
12590 # include <sys/param.h>
12591 # ifdef EXEC_PAGESIZE
12592 # define getpagesize() EXEC_PAGESIZE
12593 # else /* no EXEC_PAGESIZE */
12595 # define getpagesize() NBPG * CLSIZE
12598 # endif /* no CLSIZE */
12599 # else /* no NBPG */
12601 # define getpagesize() NBPC
12602 # else /* no NBPC */
12604 # define getpagesize() PAGESIZE
12605 # endif /* PAGESIZE */
12606 # endif /* no NBPC */
12607 # endif /* no NBPG */
12608 # endif /* no EXEC_PAGESIZE */
12609 # else /* no HAVE_SYS_PARAM_H */
12610 # define getpagesize() 8192 /* punt totally */
12611 # endif /* no HAVE_SYS_PARAM_H */
12612 # endif /* no _SC_PAGESIZE */
12614 #endif /* no HAVE_GETPAGESIZE */
12619 char *data, *data2, *data3;
12623 pagesize = getpagesize ();
12625 /* First, make a file with some known garbage in it. */
12626 data = (char *) malloc (pagesize);
12629 for (i = 0; i < pagesize; ++i)
12630 *(data + i) = rand ();
12632 fd = creat ("conftest.mmap", 0600);
12635 if (write (fd, data, pagesize) != pagesize)
12639 /* Next, try to mmap the file at a fixed address which already has
12640 something else allocated at it. If we can, also make sure that
12641 we see the same garbage. */
12642 fd = open ("conftest.mmap", O_RDWR);
12645 data2 = (char *) malloc (2 * pagesize);
12648 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12649 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12650 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12652 for (i = 0; i < pagesize; ++i)
12653 if (*(data + i) != *(data2 + i))
12656 /* Finally, make sure that changes to the mapped area do not
12657 percolate back to the file as seen by read(). (This is a bug on
12658 some variants of i386 svr4.0.) */
12659 for (i = 0; i < pagesize; ++i)
12660 *(data2 + i) = *(data2 + i) + 1;
12661 data3 = (char *) malloc (pagesize);
12664 if (read (fd, data3, pagesize) != pagesize)
12666 for (i = 0; i < pagesize; ++i)
12667 if (*(data + i) != *(data3 + i))
12673 if ac_fn_c_try_run
"$LINENO"; then :
12674 ac_cv_func_mmap_fixed_mapped
=yes
12676 ac_cv_func_mmap_fixed_mapped
=no
12678 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12679 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12684 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12685 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12687 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12690 rm -f conftest.mmap
12692 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12693 if test "x$ac_cv_type_pid_t" = x
""yes; then :
12697 cat >>confdefs.h
<<_ACEOF
12703 for ac_header
in vfork.h
12705 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12706 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
12707 cat >>confdefs.h
<<_ACEOF
12708 #define HAVE_VFORK_H 1
12715 for ac_func
in fork vfork
12717 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12718 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12719 eval as_val
=\$
$as_ac_var
12720 if test "x$as_val" = x
""yes; then :
12721 cat >>confdefs.h
<<_ACEOF
12722 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12728 if test "x$ac_cv_func_fork" = xyes
; then
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12730 $as_echo_n "checking for working fork... " >&6; }
12731 if test "${ac_cv_func_fork_works+set}" = set; then :
12732 $as_echo_n "(cached) " >&6
12734 if test "$cross_compiling" = yes; then :
12735 ac_cv_func_fork_works
=cross
12737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12738 /* end confdefs.h. */
12739 $ac_includes_default
12744 /* By Ruediger Kuhlmann. */
12745 return fork () < 0;
12751 if ac_fn_c_try_run
"$LINENO"; then :
12752 ac_cv_func_fork_works
=yes
12754 ac_cv_func_fork_works
=no
12756 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12757 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12762 $as_echo "$ac_cv_func_fork_works" >&6; }
12765 ac_cv_func_fork_works
=$ac_cv_func_fork
12767 if test "x$ac_cv_func_fork_works" = xcross
; then
12769 *-*-amigaos* |
*-*-msdosdjgpp*)
12770 # Override, as these systems have only a dummy fork() stub
12771 ac_cv_func_fork_works
=no
12774 ac_cv_func_fork_works
=yes
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12778 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12780 ac_cv_func_vfork_works
=$ac_cv_func_vfork
12781 if test "x$ac_cv_func_vfork" = xyes
; then
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12783 $as_echo_n "checking for working vfork... " >&6; }
12784 if test "${ac_cv_func_vfork_works+set}" = set; then :
12785 $as_echo_n "(cached) " >&6
12787 if test "$cross_compiling" = yes; then :
12788 ac_cv_func_vfork_works
=cross
12790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12791 /* end confdefs.h. */
12792 /* Thanks to Paul Eggert for this test. */
12793 $ac_includes_default
12794 #include <sys/wait.h>
12795 #ifdef HAVE_VFORK_H
12796 # include <vfork.h>
12798 /* On some sparc systems, changes by the child to local and incoming
12799 argument registers are propagated back to the parent. The compiler
12800 is told about this with #include <vfork.h>, but some compilers
12801 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12802 static variable whose address is put into a register that is
12803 clobbered by the vfork. */
12806 sparc_address_test (int arg)
12808 sparc_address_test (arg) int arg;
12811 static pid_t child;
12829 pid_t parent = getpid ();
12832 sparc_address_test (0);
12837 /* Here is another test for sparc vfork register problems. This
12838 test uses lots of local variables, at least as many local
12839 variables as main has allocated so far including compiler
12840 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12841 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12842 reuse the register of parent for one of the local variables,
12843 since it will think that parent can't possibly be used any more
12844 in this routine. Assigning to the local variable will thus
12845 munge parent in the parent process. */
12847 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12848 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12849 /* Convince the compiler that p..p7 are live; otherwise, it might
12850 use the same hardware register for all 8 local variables. */
12851 if (p != p1 || p != p2 || p != p3 || p != p4
12852 || p != p5 || p != p6 || p != p7)
12855 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12856 from child file descriptors. If the child closes a descriptor
12857 before it execs or exits, this munges the parent's descriptor
12858 as well. Test for this by closing stdout in the child. */
12859 _exit(close(fileno(stdout)) != 0);
12864 while (wait(&status) != child)
12867 /* Was there some problem with vforking? */
12870 /* Did the child fail? (This shouldn't happen.) */
12873 /* Did the vfork/compiler bug occur? */
12874 || parent != getpid()
12876 /* Did the file descriptor bug occur? */
12877 || fstat(fileno(stdout), &st) != 0
12882 if ac_fn_c_try_run
"$LINENO"; then :
12883 ac_cv_func_vfork_works
=yes
12885 ac_cv_func_vfork_works
=no
12887 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12888 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12893 $as_echo "$ac_cv_func_vfork_works" >&6; }
12896 if test "x$ac_cv_func_fork_works" = xcross
; then
12897 ac_cv_func_vfork_works
=$ac_cv_func_vfork
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12899 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12902 if test "x$ac_cv_func_vfork_works" = xyes
; then
12904 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12908 $as_echo "#define vfork fork" >>confdefs.h
12911 if test "x$ac_cv_func_fork_works" = xyes
; then
12913 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12917 for ac_func
in canonicalize_file_name realpath getrusage getuid \
12918 getgid pipe poll pread64 resize_term sbrk setpgid setpgrp setsid \
12919 sigaction sigprocmask sigsetmask socketpair syscall \
12920 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
12921 setrlimit getrlimit posix_madvise waitpid
12923 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12924 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12925 eval as_val
=\$
$as_ac_var
12926 if test "x$as_val" = x
""yes; then :
12927 cat >>confdefs.h
<<_ACEOF
12928 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12936 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12937 if test "${am_cv_langinfo_codeset+set}" = set; then :
12938 $as_echo_n "(cached) " >&6
12940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12941 /* end confdefs.h. */
12942 #include <langinfo.h>
12946 char* cs = nl_langinfo(CODESET);
12951 if ac_fn_c_try_link
"$LINENO"; then :
12952 am_cv_langinfo_codeset
=yes
12954 am_cv_langinfo_codeset
=no
12956 rm -f core conftest.err conftest.
$ac_objext \
12957 conftest
$ac_exeext conftest.
$ac_ext
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12961 $as_echo "$am_cv_langinfo_codeset" >&6; }
12962 if test $am_cv_langinfo_codeset = yes; then
12964 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12969 # Check the return and argument types of ptrace. No canned test for
12970 # this, so roll our own.
12971 gdb_ptrace_headers
='
12972 #if HAVE_SYS_TYPES_H
12973 # include <sys/types.h>
12975 #if HAVE_SYS_PTRACE_H
12976 # include <sys/ptrace.h>
12979 # include <unistd.h>
12982 # There is no point in checking if we don't have a prototype.
12983 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
12985 if test "x$ac_cv_have_decl_ptrace" = x
""yes; then :
12991 cat >>confdefs.h
<<_ACEOF
12992 #define HAVE_DECL_PTRACE $ac_have_decl
12994 if test $ac_have_decl = 1; then :
12998 : ${gdb_cv_func_ptrace_ret='int'}
12999 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13003 # Check return type. Varargs (used on GNU/Linux) conflict with the
13004 # empty argument list, so check for that explicitly.
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
13006 $as_echo_n "checking return type of ptrace... " >&6; }
13007 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
13008 $as_echo_n "(cached) " >&6
13010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13011 /* end confdefs.h. */
13012 $gdb_ptrace_headers
13016 extern long ptrace (enum __ptrace_request, ...);
13021 if ac_fn_c_try_compile
"$LINENO"; then :
13022 gdb_cv_func_ptrace_ret
='long'
13024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13025 /* end confdefs.h. */
13026 $gdb_ptrace_headers
13030 extern int ptrace ();
13035 if ac_fn_c_try_compile
"$LINENO"; then :
13036 gdb_cv_func_ptrace_ret
='int'
13038 gdb_cv_func_ptrace_ret
='long'
13040 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13042 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
13045 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
13047 cat >>confdefs.h
<<_ACEOF
13048 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
13051 # Check argument types.
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
13053 $as_echo_n "checking types of arguments for ptrace... " >&6; }
13054 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
13055 $as_echo_n "(cached) " >&6
13058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13059 /* end confdefs.h. */
13060 $gdb_ptrace_headers
13064 extern long ptrace (enum __ptrace_request, ...);
13069 if ac_fn_c_try_compile
"$LINENO"; then :
13070 gdb_cv_func_ptrace_args
='int,int,long,long'
13073 for gdb_arg1
in 'int' 'long'; do
13074 for gdb_arg2
in 'pid_t' 'int' 'long'; do
13075 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
13076 for gdb_arg4
in 'int' 'long'; do
13077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13078 /* end confdefs.h. */
13079 $gdb_ptrace_headers
13084 extern $gdb_cv_func_ptrace_ret
13085 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
13091 if ac_fn_c_try_compile
"$LINENO"; then :
13092 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
13095 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13096 for gdb_arg5
in 'int *' 'int' 'long'; do
13097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13098 /* end confdefs.h. */
13099 $gdb_ptrace_headers
13104 extern $gdb_cv_func_ptrace_ret
13105 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
13111 if ac_fn_c_try_compile
"$LINENO"; then :
13113 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
13116 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13122 # Provide a safe default value.
13123 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
13129 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
13130 ac_save_IFS
=$IFS; IFS
=','
13131 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
13135 cat >>confdefs.h
<<_ACEOF
13136 #define PTRACE_TYPE_ARG3 $3
13139 if test -n "$5"; then
13141 cat >>confdefs.h
<<_ACEOF
13142 #define PTRACE_TYPE_ARG5 $5
13147 if test "$cross_compiling" = no
; then
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
13149 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
13150 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
13151 $as_echo_n "(cached) " >&6
13153 if test "$cross_compiling" = yes; then :
13154 as_fn_error
"cannot check setpgrp when cross compiling" "$LINENO" 5
13156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13157 /* end confdefs.h. */
13158 $ac_includes_default
13162 /* If this system has a BSD-style setpgrp which takes arguments,
13163 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
13164 exit successfully. */
13165 return setpgrp (1,1) != -1;
13170 if ac_fn_c_try_run
"$LINENO"; then :
13171 ac_cv_func_setpgrp_void
=no
13173 ac_cv_func_setpgrp_void
=yes
13175 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13176 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
13181 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
13182 if test $ac_cv_func_setpgrp_void = yes; then
13184 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
13190 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
13191 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
13192 $as_echo_n "(cached) " >&6
13194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13195 /* end confdefs.h. */
13197 #include <unistd.h>
13203 if (setpgrp(1,1) == -1)
13212 if ac_fn_c_try_compile
"$LINENO"; then :
13213 ac_cv_func_setpgrp_void
=no
13215 ac_cv_func_setpgrp_void
=yes
13217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
13220 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
13221 if test $ac_cv_func_setpgrp_void = yes; then
13222 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
13227 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
13228 # since sigsetjmp might only be defined as a macro.
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
13230 $as_echo_n "checking for sigsetjmp... " >&6; }
13231 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
13232 $as_echo_n "(cached) " >&6
13234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13235 /* end confdefs.h. */
13237 #include <setjmp.h>
13242 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
13247 if ac_fn_c_try_compile
"$LINENO"; then :
13248 gdb_cv_func_sigsetjmp
=yes
13250 gdb_cv_func_sigsetjmp
=no
13252 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
13255 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
13256 if test $gdb_cv_func_sigsetjmp = yes; then
13258 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
13262 # Assume we'll default to using the included libiberty regex.
13263 gdb_use_included_regex
=yes
13265 # However, if the system regex is GNU regex, then default to *not*
13266 # using the included regex.
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
13268 $as_echo_n "checking for GNU regex... " >&6; }
13269 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
13270 $as_echo_n "(cached) " >&6
13272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13273 /* end confdefs.h. */
13274 #include <gnu-versions.h>
13278 #define REGEX_INTERFACE_VERSION 1
13279 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
13280 # error "Version mismatch"
13286 if ac_fn_c_try_compile
"$LINENO"; then :
13287 gdb_cv_have_gnu_regex
=yes
13289 gdb_cv_have_gnu_regex
=no
13291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
13294 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
13295 if test $gdb_cv_have_gnu_regex = yes; then
13296 gdb_use_included_regex
=no
13300 # Check whether --with-included-regex was given.
13301 if test "${with_included_regex+set}" = set; then :
13302 withval
=$with_included_regex; gdb_with_regex
=$withval
13304 gdb_with_regex
=$gdb_use_included_regex
13307 if test "$gdb_with_regex" = yes; then
13309 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
13313 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
13314 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
13315 #include <sys/proc.h>
13318 if test "x$ac_cv_member_struct_thread_td_pcb" = x
""yes; then :
13320 cat >>confdefs.h
<<_ACEOF
13321 #define HAVE_STRUCT_THREAD_TD_PCB 1
13328 # See if <sys/lwp.h> defines `struct lwp`.
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
13330 $as_echo_n "checking for struct lwp... " >&6; }
13331 if test "${gdb_cv_struct_lwp+set}" = set; then :
13332 $as_echo_n "(cached) " >&6
13334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13335 /* end confdefs.h. */
13336 #include <sys/param.h>
13337 #include <sys/lwp.h>
13346 if ac_fn_c_try_compile
"$LINENO"; then :
13347 gdb_cv_struct_lwp
=yes
13349 gdb_cv_struct_lwp
=no
13351 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
13354 $as_echo "$gdb_cv_struct_lwp" >&6; }
13355 if test $gdb_cv_struct_lwp = yes; then
13357 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
13361 # See if <machine/reg.h> degines `struct reg'.
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
13363 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
13364 if test "${gdb_cv_struct_reg+set}" = set; then :
13365 $as_echo_n "(cached) " >&6
13367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13368 /* end confdefs.h. */
13369 #include <sys/types.h>
13370 #include <machine/reg.h>
13379 if ac_fn_c_try_compile
"$LINENO"; then :
13380 gdb_cv_struct_reg
=yes
13382 gdb_cv_struct_reg
=no
13384 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
13387 $as_echo "$gdb_cv_struct_reg" >&6; }
13388 if test $gdb_cv_struct_reg = yes; then
13390 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
13394 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
13395 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
13396 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
13398 if test "x$ac_cv_member_struct_reg_r_fs" = x
""yes; then :
13400 cat >>confdefs.h
<<_ACEOF
13401 #define HAVE_STRUCT_REG_R_FS 1
13406 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
13408 if test "x$ac_cv_member_struct_reg_r_gs" = x
""yes; then :
13410 cat >>confdefs.h
<<_ACEOF
13411 #define HAVE_STRUCT_REG_R_GS 1
13418 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
13420 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
13421 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
13422 $as_echo_n "(cached) " >&6
13424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13425 /* end confdefs.h. */
13426 #include <sys/ptrace.h>
13435 if ac_fn_c_try_compile
"$LINENO"; then :
13436 gdb_cv_have_ptrace_getregs
=yes
13438 gdb_cv_have_ptrace_getregs
=no
13440 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
13444 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
13445 if test $gdb_cv_have_ptrace_getregs = yes; then
13447 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
13451 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
13453 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
13454 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
13455 $as_echo_n "(cached) " >&6
13457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13458 /* end confdefs.h. */
13459 #include <sys/ptrace.h>
13468 if ac_fn_c_try_compile
"$LINENO"; then :
13469 gdb_cv_have_ptrace_getfpxregs
=yes
13471 gdb_cv_have_ptrace_getfpxregs
=no
13473 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
13477 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
13478 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
13480 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
13484 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
13486 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
13487 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
13488 $as_echo_n "(cached) " >&6
13490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13491 /* end confdefs.h. */
13492 #include <sys/types.h>
13493 #include <sys/ptrace.h>
13502 if ac_fn_c_try_compile
"$LINENO"; then :
13503 gdb_cv_have_pt_getdbregs
=yes
13505 gdb_cv_have_pt_getdbregs
=no
13507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
13511 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
13512 if test $gdb_cv_have_pt_getdbregs = yes; then
13514 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
13518 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
13520 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
13521 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
13522 $as_echo_n "(cached) " >&6
13524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13525 /* end confdefs.h. */
13526 #include <sys/types.h>
13527 #include <sys/ptrace.h>
13536 if ac_fn_c_try_compile
"$LINENO"; then :
13537 gdb_cv_have_pt_getxmmregs
=yes
13539 gdb_cv_have_pt_getxmmregs
=no
13541 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
13545 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
13546 if test $gdb_cv_have_pt_getxmmregs = yes; then
13548 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
13552 # Detect which type of /proc is in use, such as for Unixware or Solaris.
13554 if test "${target}" = "${host}"; then
13556 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5* |
*-*-interix* )
13558 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13561 *-*-solaris2.
[6789] |
*-*-solaris2.1
[0-9]*)
13563 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13567 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
13569 $as_echo "#define _KMEMUSER 1" >>confdefs.h
13575 if test "$ac_cv_header_sys_procfs_h" = yes; then
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
13577 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
13578 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
13579 $as_echo_n "(cached) " >&6
13581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13582 /* end confdefs.h. */
13585 /* Needed for new procfs interface on sparc-solaris. */
13586 #define _STRUCTURED_PROC 1
13587 #include <sys/procfs.h>
13596 if ac_fn_c_try_compile
"$LINENO"; then :
13597 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
13599 bfd_cv_have_sys_procfs_type_pstatus_t
=no
13602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13605 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
13607 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
13611 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
13614 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
13615 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
13616 $as_echo_n "(cached) " >&6
13618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13619 /* end confdefs.h. */
13622 /* Needed for new procfs interface on sparc-solaris. */
13623 #define _STRUCTURED_PROC 1
13624 #include <sys/procfs.h>
13633 if ac_fn_c_try_compile
"$LINENO"; then :
13634 bfd_cv_have_sys_procfs_type_prrun_t
=yes
13636 bfd_cv_have_sys_procfs_type_prrun_t
=no
13639 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13642 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
13644 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
13648 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
13651 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
13652 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
13653 $as_echo_n "(cached) " >&6
13655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13656 /* end confdefs.h. */
13659 /* Needed for new procfs interface on sparc-solaris. */
13660 #define _STRUCTURED_PROC 1
13661 #include <sys/procfs.h>
13670 if ac_fn_c_try_compile
"$LINENO"; then :
13671 bfd_cv_have_sys_procfs_type_gregset_t
=yes
13673 bfd_cv_have_sys_procfs_type_gregset_t
=no
13676 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13679 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
13681 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
13685 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
13688 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
13689 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
13690 $as_echo_n "(cached) " >&6
13692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13693 /* end confdefs.h. */
13696 /* Needed for new procfs interface on sparc-solaris. */
13697 #define _STRUCTURED_PROC 1
13698 #include <sys/procfs.h>
13707 if ac_fn_c_try_compile
"$LINENO"; then :
13708 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
13710 bfd_cv_have_sys_procfs_type_fpregset_t
=no
13713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13716 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
13718 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
13722 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
13725 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
13726 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
13727 $as_echo_n "(cached) " >&6
13729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13730 /* end confdefs.h. */
13733 /* Needed for new procfs interface on sparc-solaris. */
13734 #define _STRUCTURED_PROC 1
13735 #include <sys/procfs.h>
13744 if ac_fn_c_try_compile
"$LINENO"; then :
13745 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
13747 bfd_cv_have_sys_procfs_type_prgregset_t
=no
13750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13753 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
13755 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
13759 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
13762 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
13763 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
13764 $as_echo_n "(cached) " >&6
13766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13767 /* end confdefs.h. */
13770 /* Needed for new procfs interface on sparc-solaris. */
13771 #define _STRUCTURED_PROC 1
13772 #include <sys/procfs.h>
13781 if ac_fn_c_try_compile
"$LINENO"; then :
13782 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
13784 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
13787 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13790 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13792 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
13796 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
13799 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
13800 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
13801 $as_echo_n "(cached) " >&6
13803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13804 /* end confdefs.h. */
13807 /* Needed for new procfs interface on sparc-solaris. */
13808 #define _STRUCTURED_PROC 1
13809 #include <sys/procfs.h>
13818 if ac_fn_c_try_compile
"$LINENO"; then :
13819 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
13821 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
13824 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13827 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
13829 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
13833 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
13836 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
13837 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
13838 $as_echo_n "(cached) " >&6
13840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13841 /* end confdefs.h. */
13844 /* Needed for new procfs interface on sparc-solaris. */
13845 #define _STRUCTURED_PROC 1
13846 #include <sys/procfs.h>
13850 prfpregset32_t avar
13855 if ac_fn_c_try_compile
"$LINENO"; then :
13856 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
13858 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
13861 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13864 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
13866 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
13870 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
13873 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
13874 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
13875 $as_echo_n "(cached) " >&6
13877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13878 /* end confdefs.h. */
13881 /* Needed for new procfs interface on sparc-solaris. */
13882 #define _STRUCTURED_PROC 1
13883 #include <sys/procfs.h>
13892 if ac_fn_c_try_compile
"$LINENO"; then :
13893 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
13895 bfd_cv_have_sys_procfs_type_lwpid_t
=no
13898 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13901 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
13903 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
13907 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
13910 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
13911 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
13912 $as_echo_n "(cached) " >&6
13914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13915 /* end confdefs.h. */
13918 /* Needed for new procfs interface on sparc-solaris. */
13919 #define _STRUCTURED_PROC 1
13920 #include <sys/procfs.h>
13929 if ac_fn_c_try_compile
"$LINENO"; then :
13930 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
13932 bfd_cv_have_sys_procfs_type_psaddr_t
=no
13935 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13938 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
13940 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
13944 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
13947 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
13948 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
13949 $as_echo_n "(cached) " >&6
13951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13952 /* end confdefs.h. */
13955 /* Needed for new procfs interface on sparc-solaris. */
13956 #define _STRUCTURED_PROC 1
13957 #include <sys/procfs.h>
13966 if ac_fn_c_try_compile
"$LINENO"; then :
13967 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
13969 bfd_cv_have_sys_procfs_type_prsysent_t
=no
13972 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13975 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
13977 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
13981 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
13984 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
13985 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
13986 $as_echo_n "(cached) " >&6
13988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13989 /* end confdefs.h. */
13992 /* Needed for new procfs interface on sparc-solaris. */
13993 #define _STRUCTURED_PROC 1
13994 #include <sys/procfs.h>
14003 if ac_fn_c_try_compile
"$LINENO"; then :
14004 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
14006 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
14009 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14012 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
14014 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
14018 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
14021 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
14022 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
14023 $as_echo_n "(cached) " >&6
14025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14026 /* end confdefs.h. */
14029 /* Needed for new procfs interface on sparc-solaris. */
14030 #define _STRUCTURED_PROC 1
14031 #include <sys/procfs.h>
14035 pr_sigaction64_t avar
14040 if ac_fn_c_try_compile
"$LINENO"; then :
14041 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
14043 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
14046 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14049 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
14051 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
14055 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
14058 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
14059 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
14060 $as_echo_n "(cached) " >&6
14062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14063 /* end confdefs.h. */
14066 /* Needed for new procfs interface on sparc-solaris. */
14067 #define _STRUCTURED_PROC 1
14068 #include <sys/procfs.h>
14072 pr_siginfo64_t avar
14077 if ac_fn_c_try_compile
"$LINENO"; then :
14078 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
14080 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
14083 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14086 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
14088 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
14092 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
14098 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
14100 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
14101 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
14102 $as_echo_n "(cached) " >&6
14104 if test "$cross_compiling" = yes; then :
14105 gdb_cv_prfpregset_t_broken
=yes
14107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14108 /* end confdefs.h. */
14109 #include <sys/procfs.h>
14112 if (sizeof (prfpregset_t) == sizeof (void *))
14117 if ac_fn_c_try_run
"$LINENO"; then :
14118 gdb_cv_prfpregset_t_broken
=no
14120 gdb_cv_prfpregset_t_broken
=yes
14122 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14123 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
14129 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
14130 if test $gdb_cv_prfpregset_t_broken = yes; then
14132 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
14139 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
14140 if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
14141 $as_echo_n "(cached) " >&6
14143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14144 /* end confdefs.h. */
14145 #include <unistd.h>
14146 #include <sys/types.h>
14147 #include <sys/procfs.h>
14154 dummy = ioctl(0, PIOCSET, &dummy);
14160 if ac_fn_c_try_compile
"$LINENO"; then :
14161 gdb_cv_have_procfs_piocset
=yes
14163 gdb_cv_have_procfs_piocset
=no
14165 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
14169 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
14170 if test $gdb_cv_have_procfs_piocset = yes; then
14172 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
14177 if test ${host} = ${target} ; then
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
14180 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
14181 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
14182 $as_echo_n "(cached) " >&6
14184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14185 /* end confdefs.h. */
14190 struct link_map lm; (void) lm.l_addr;
14195 if ac_fn_c_try_compile
"$LINENO"; then :
14196 gdb_cv_have_struct_link_map_with_l_members
=yes
14198 gdb_cv_have_struct_link_map_with_l_members
=no
14200 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
14204 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
14205 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
14207 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
14213 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
14214 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
14215 $as_echo_n "(cached) " >&6
14217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14218 /* end confdefs.h. */
14219 #include <sys/types.h>
14224 struct link_map lm; (void) lm.lm_addr;
14229 if ac_fn_c_try_compile
"$LINENO"; then :
14230 gdb_cv_have_struct_link_map_with_lm_members
=yes
14232 gdb_cv_have_struct_link_map_with_lm_members
=no
14234 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
14238 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
14239 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
14241 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
14247 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
14248 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
14249 $as_echo_n "(cached) " >&6
14251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14252 /* end confdefs.h. */
14253 #include <sys/types.h>
14254 #ifdef HAVE_NLIST_H
14261 struct so_map lm; (void) lm.som_addr;
14266 if ac_fn_c_try_compile
"$LINENO"; then :
14267 gdb_cv_have_struct_so_map_with_som_members
=yes
14269 gdb_cv_have_struct_so_map_with_som_members
=no
14271 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
14275 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
14276 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
14278 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
14284 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
14285 if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
14286 $as_echo_n "(cached) " >&6
14288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14289 /* end confdefs.h. */
14291 #include <sys/link.h>
14295 struct link_map32 l;
14300 if ac_fn_c_try_compile
"$LINENO"; then :
14301 gdb_cv_have_struct_link_map32
=yes
14303 gdb_cv_have_struct_link_map32
=no
14305 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
14309 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
14310 if test $gdb_cv_have_struct_link_map32 = yes; then
14312 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
14315 $as_echo "#define _SYSCALL32 1" >>confdefs.h
14320 # Check if the compiler supports the `long long' type.
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
14323 $as_echo_n "checking for long long support in compiler... " >&6; }
14324 if test "${gdb_cv_c_long_long+set}" = set; then :
14325 $as_echo_n "(cached) " >&6
14327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14328 /* end confdefs.h. */
14329 extern long long foo;
14333 switch (foo & 2) { case 0: return 1; }
14338 if ac_fn_c_try_compile
"$LINENO"; then :
14339 gdb_cv_c_long_long
=yes
14341 gdb_cv_c_long_long
=no
14343 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
14346 $as_echo "$gdb_cv_c_long_long" >&6; }
14347 if test $gdb_cv_c_long_long = yes; then
14349 $as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
14353 # Check if the compiler and runtime support printing long longs.
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
14356 $as_echo_n "checking for long long support in printf... " >&6; }
14357 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
14358 $as_echo_n "(cached) " >&6
14360 if test "$cross_compiling" = yes; then :
14361 gdb_cv_printf_has_long_long
=no
14363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14364 /* end confdefs.h. */
14365 $ac_includes_default
14371 l = (l << 16) + 0x0123;
14372 l = (l << 16) + 0x4567;
14373 l = (l << 16) + 0x89ab;
14374 l = (l << 16) + 0xcdef;
14375 sprintf (buf, "0x%016llx", l);
14376 return (strcmp ("0x0123456789abcdef", buf));
14381 if ac_fn_c_try_run
"$LINENO"; then :
14382 gdb_cv_printf_has_long_long
=yes
14384 gdb_cv_printf_has_long_long
=no
14386 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14387 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
14392 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
14393 if test $gdb_cv_printf_has_long_long = yes; then
14395 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
14399 # Check if the compiler and runtime support printing decfloats.
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
14402 $as_echo_n "checking for decfloat support in printf... " >&6; }
14403 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
14404 $as_echo_n "(cached) " >&6
14406 if test "$cross_compiling" = yes; then :
14407 gdb_cv_printf_has_decfloat
=no
14409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14410 /* end confdefs.h. */
14411 $ac_includes_default
14416 _Decimal32 d32 = 1.2345df;
14417 _Decimal64 d64 = 1.2345dd;
14418 _Decimal128 d128 = 1.2345dl;
14419 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
14420 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
14425 if ac_fn_c_try_run
"$LINENO"; then :
14426 gdb_cv_printf_has_decfloat
=yes
14428 gdb_cv_printf_has_decfloat
=no
14430 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14431 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
14436 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
14437 if test $gdb_cv_printf_has_decfloat = yes; then
14439 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
14443 # Check if the compiler supports the `long double' type. We can't use
14444 # AC_C_LONG_DOUBLE because that one does additional checks on the
14445 # constants defined in <float.h> that fail on some systems,
14446 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
14449 $as_echo_n "checking for long double support in compiler... " >&6; }
14450 if test "${gdb_cv_c_long_double+set}" = set; then :
14451 $as_echo_n "(cached) " >&6
14453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14454 /* end confdefs.h. */
14457 if ac_fn_c_try_compile
"$LINENO"; then :
14458 gdb_cv_c_long_double
=yes
14460 gdb_cv_c_long_double
=no
14462 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
14465 $as_echo "$gdb_cv_c_long_double" >&6; }
14466 if test $gdb_cv_c_long_double = yes; then
14468 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14472 # Check if the compiler and runtime support printing long doubles.
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
14475 $as_echo_n "checking for long double support in printf... " >&6; }
14476 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
14477 $as_echo_n "(cached) " >&6
14479 if test "$cross_compiling" = yes; then :
14480 gdb_cv_printf_has_long_double
=no
14482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14483 /* end confdefs.h. */
14484 $ac_includes_default
14489 long double f = 3.141592653;
14490 sprintf (buf, "%Lg", f);
14491 return (strncmp ("3.14159", buf, 7));
14496 if ac_fn_c_try_run
"$LINENO"; then :
14497 gdb_cv_printf_has_long_double
=yes
14499 gdb_cv_printf_has_long_double
=no
14501 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14502 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
14507 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
14508 if test $gdb_cv_printf_has_long_double = yes; then
14510 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
14514 # Check if the compiler and runtime support scanning long doubles.
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
14517 $as_echo_n "checking for long double support in scanf... " >&6; }
14518 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
14519 $as_echo_n "(cached) " >&6
14521 if test "$cross_compiling" = yes; then :
14522 gdb_cv_scanf_has_long_double
=no
14524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14525 /* end confdefs.h. */
14530 char *buf = "3.141592653";
14532 sscanf (buf, "%Lg", &f);
14533 return !(f > 3.14159 && f < 3.14160);
14538 if ac_fn_c_try_run
"$LINENO"; then :
14539 gdb_cv_scanf_has_long_double
=yes
14541 gdb_cv_scanf_has_long_double
=no
14543 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14544 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
14549 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
14550 if test $gdb_cv_scanf_has_long_double = yes; then
14552 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
14559 $as_echo_n "checking for -bbigtoc option... " >&6; }
14560 if test "${gdb_cv_bigtoc+set}" = set; then :
14561 $as_echo_n "(cached) " >&6
14564 SAVE_LDFLAGS
=$LDFLAGS
14567 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
14568 *) gdb_cv_bigtoc
=-bbigtoc ;;
14571 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
14572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14573 /* end confdefs.h. */
14583 if ac_fn_c_try_link
"$LINENO"; then :
14588 rm -f core conftest.err conftest.
$ac_objext \
14589 conftest
$ac_exeext conftest.
$ac_ext
14590 LDFLAGS
="${SAVE_LDFLAGS}"
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
14594 $as_echo "$gdb_cv_bigtoc" >&6; }
14595 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
14600 $as_echo_n "checking for the dynamic export flag... " >&6; }
14602 if test "${gdb_native}" = yes; then
14603 # The dynamically loaded libthread_db needs access to symbols in the gdb
14604 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
14605 # may not be supported there.
14606 old_LDFLAGS
="$LDFLAGS"
14607 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
14608 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
14609 LDFLAGS
="$LDFLAGS $RDYNAMIC"
14610 if test "${have_libpython}" = no
; then
14611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14612 /* end confdefs.h. */
14622 if ac_fn_c_try_link
"$LINENO"; then :
14625 rm -f core conftest.err conftest.
$ac_objext \
14626 conftest
$ac_exeext conftest.
$ac_ext
14628 # Workaround http://bugs.python.org/issue4434 where static
14629 # libpythonX.Y.a would get its symbols required for
14630 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
14631 # Problem does not happen for the recommended libpythonX.Y.so linkage.
14632 old_CFLAGS
="$CFLAGS"
14633 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
14634 if test "$cross_compiling" = yes; then :
14637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14638 /* end confdefs.h. */
14639 #include "${have_libpython}/Python.h"
14645 err = PyRun_SimpleString ("import itertools\n");
14647 return err == 0 ? 0 : 1;
14652 if ac_fn_c_try_run
"$LINENO"; then :
14655 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14656 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14659 CFLAGS
="$old_CFLAGS"
14661 LDFLAGS
="$old_LDFLAGS"
14663 if $dynamic_list; then
14664 found
="-Wl,--dynamic-list"
14665 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
14668 RDYNAMIC
="-rdynamic"
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
14672 $as_echo "$found" >&6; }
14675 if test ${build} = ${host} -a ${host} = ${target} ; then
14678 # See if thread_db library is around for Solaris thread debugging.
14679 # Note that we must explicitly test for version 1 of the library
14680 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
14683 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
14684 if test -f /usr
/lib
/libthread_db.so
.1 ; then
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14686 $as_echo "yes" >&6; }
14688 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
14690 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
14691 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14693 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14694 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14695 $as_echo_n "(cached) " >&6
14697 ac_check_lib_save_LIBS
=$LIBS
14699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14700 /* end confdefs.h. */
14702 /* Override any GCC internal prototype to avoid an error.
14703 Use char because int might match the return type of a GCC
14704 builtin and then its argument prototype would still apply. */
14717 if ac_fn_c_try_link
"$LINENO"; then :
14718 ac_cv_lib_dl_dlopen
=yes
14720 ac_cv_lib_dl_dlopen
=no
14722 rm -f core conftest.err conftest.
$ac_objext \
14723 conftest
$ac_exeext conftest.
$ac_ext
14724 LIBS
=$ac_check_lib_save_LIBS
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14727 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14728 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
14729 cat >>confdefs.h
<<_ACEOF
14730 #define HAVE_LIBDL 1
14737 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} $RDYNAMIC"
14738 # Sun randomly tweaked the prototypes in <proc_service.h>
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
14741 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
14742 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
14743 $as_echo_n "(cached) " >&6
14746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14747 /* end confdefs.h. */
14749 #include <proc_service.h>
14750 ps_err_e ps_pdwrite
14751 (struct ps_prochandle*, psaddr_t, const void*, size_t);
14761 if ac_fn_c_try_compile
"$LINENO"; then :
14762 gdb_cv_proc_service_is_old
=no
14764 gdb_cv_proc_service_is_old
=yes
14766 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
14771 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
14772 if test $gdb_cv_proc_service_is_old = yes; then
14774 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14779 $as_echo "no" >&6; }
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
14784 $as_echo_n "checking for AiX thread debugging library... " >&6; }
14785 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
14786 $as_echo_n "(cached) " >&6
14788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14789 /* end confdefs.h. */
14790 #include <sys/pthdebug.h>
14794 #ifndef PTHDB_VERSION_3
14801 if ac_fn_c_try_compile
"$LINENO"; then :
14802 gdb_cv_have_aix_thread_debug
=yes
14804 gdb_cv_have_aix_thread_debug
=no
14806 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
14810 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
14811 if test $gdb_cv_have_aix_thread_debug = yes; then
14812 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
14813 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
14814 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -lpthdebug"
14816 # Older versions of AIX do not provide the declaration for
14817 # the getthrds function (it appears that it was introduced
14819 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
14821 if test "x$ac_cv_have_decl_getthrds" = x
""yes; then :
14827 cat >>confdefs.h
<<_ACEOF
14828 #define HAVE_DECL_GETTHRDS $ac_have_decl
14837 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
14839 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
14840 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
14841 $as_echo_n "(cached) " >&6
14843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14844 /* end confdefs.h. */
14845 #include <thread_db.h>
14849 int i = TD_NOTALLOC;
14854 if ac_fn_c_try_compile
"$LINENO"; then :
14855 gdb_cv_thread_db_h_has_td_notalloc
=yes
14857 gdb_cv_thread_db_h_has_td_notalloc
=no
14860 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
14864 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
14866 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
14867 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
14868 $as_echo_n "(cached) " >&6
14870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14871 /* end confdefs.h. */
14872 #include <thread_db.h>
14876 int i = TD_VERSION;
14881 if ac_fn_c_try_compile
"$LINENO"; then :
14882 gdb_cv_thread_db_h_has_td_version
=yes
14884 gdb_cv_thread_db_h_has_td_version
=no
14887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
14891 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
14893 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
14894 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
14895 $as_echo_n "(cached) " >&6
14897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14898 /* end confdefs.h. */
14899 #include <thread_db.h>
14908 if ac_fn_c_try_compile
"$LINENO"; then :
14909 gdb_cv_thread_db_h_has_td_notls
=yes
14911 gdb_cv_thread_db_h_has_td_notls
=no
14914 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
14918 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
14920 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
14922 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
14925 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
14927 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
14930 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
14932 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
14936 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
14938 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
14939 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
14940 $as_echo_n "(cached) " >&6
14942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14943 /* end confdefs.h. */
14944 #include <sys/syscall.h>
14948 int i = __NR_tkill;
14953 if ac_fn_c_try_compile
"$LINENO"; then :
14954 gdb_cv_sys_syscall_h_has_tkill
=yes
14956 gdb_cv_sys_syscall_h_has_tkill
=no
14959 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
14963 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
14965 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
14967 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
14971 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
14973 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
14979 cat >>confdefs.h
<<_ACEOF
14980 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
14984 if test "$cross_compiling" = yes; then :
14985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14986 /* end confdefs.h. */
14987 #include <sys/personality.h>
14992 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14993 # define ADDR_NO_RANDOMIZE 0x0040000
14995 /* Test the flag could be set and stays set. */
14996 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14997 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
15003 if ac_fn_c_try_link
"$LINENO"; then :
15004 have_personality
=true
15006 have_personality
=false
15008 rm -f core conftest.err conftest.
$ac_objext \
15009 conftest
$ac_exeext conftest.
$ac_ext
15011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15012 /* end confdefs.h. */
15013 #include <sys/personality.h>
15018 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
15019 # define ADDR_NO_RANDOMIZE 0x0040000
15021 /* Test the flag could be set and stays set. */
15022 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
15023 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
15029 if ac_fn_c_try_run
"$LINENO"; then :
15030 have_personality
=true
15032 have_personality
=false
15034 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15035 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15038 if $have_personality
15041 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
15046 target_sysroot_reloc
=0
15048 # Check whether --with-sysroot was given.
15049 if test "${with_sysroot+set}" = set; then :
15050 withval
=$with_sysroot;
15051 case ${with_sysroot} in
15052 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_alias}/sys-root' ;;
15053 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
15056 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
15058 if test "x$prefix" = xNONE
; then
15059 test_prefix
=/usr
/local
15061 test_prefix
=$prefix
15063 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
15064 test_exec_prefix
=$test_prefix
15066 test_exec_prefix
=$exec_prefix
15068 case ${TARGET_SYSTEM_ROOT} in
15069 "${test_prefix}"|
"${test_prefix}/"*|\
15070 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
15071 '${prefix}'|
'${prefix}/'*|\
15072 '${exec_prefix}'|
'${exec_prefix}/'*)
15073 target_sysroot_reloc
=1
15079 TARGET_SYSTEM_ROOT
=
15080 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"\"'
15084 TARGET_SYSTEM_ROOT_DEFINE
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE=$target_sysroot_reloc"
15090 # Check whether --with-system-gdbinit was given.
15091 if test "${with_system_gdbinit+set}" = set; then :
15092 withval
=$with_system_gdbinit;
15093 SYSTEM_GDBINIT
=$withval
15099 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
15100 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15101 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
15102 ac_define_dir
=`eval echo $ac_define_dir`
15104 cat >>confdefs.h
<<_ACEOF
15105 #define SYSTEM_GDBINIT "$ac_define_dir"
15111 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
15112 if test "x$prefix" = xNONE
; then
15113 test_prefix
=/usr
/local
15115 test_prefix
=$prefix
15118 test_prefix
=$exec_prefix
15121 case ${ac_define_dir} in
15122 "${test_prefix}"|
"${test_prefix}/"*|\
15123 '${exec_prefix}'|
'${exec_prefix}/'*)
15128 cat >>confdefs.h
<<_ACEOF
15129 #define SYSTEM_GDBINIT_RELOCATABLE $value
15135 # Check whether --enable-werror was given.
15136 if test "${enable_werror+set}" = set; then :
15137 enableval
=$enable_werror; case "${enableval}" in
15138 yes | y
) ERROR_ON_WARNING
="yes" ;;
15139 no | n
) ERROR_ON_WARNING
="no" ;;
15140 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15145 # Enable -Werror by default when using gcc
15146 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
15147 ERROR_ON_WARNING
=yes
15151 if test "${ERROR_ON_WARNING}" = yes ; then
15152 WERROR_CFLAGS
="-Werror"
15155 # The entries after -Wno-pointer-sign are disabled warnings which may
15156 # be enabled in the future, which can not currently be used to build
15158 # NOTE: If you change this list, remember to update
15159 # gdb/doc/gdbint.texinfo.
15160 build_warnings
="-Wall -Wdeclaration-after-statement -Wpointer-arith \
15161 -Wformat-nonliteral -Wno-pointer-sign \
15162 -Wno-unused -Wunused-value -Wunused-function \
15163 -Wno-switch -Wno-char-subscripts"
15165 # Enable -Wno-format by default when using gcc on mingw since many
15166 # GCC versions complain about %I64.
15168 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
15171 # Check whether --enable-build-warnings was given.
15172 if test "${enable_build_warnings+set}" = set; then :
15173 enableval
=$enable_build_warnings; case "${enableval}" in
15175 no
) build_warnings
="-w";;
15176 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15177 build_warnings
="${build_warnings} ${t}";;
15178 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15179 build_warnings
="${t} ${build_warnings}";;
15180 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15182 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
15183 echo "Setting compiler warning flags = $build_warnings" 6>&1
15186 # Check whether --enable-gdb-build-warnings was given.
15187 if test "${enable_gdb_build_warnings+set}" = set; then :
15188 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
15190 no
) build_warnings
="-w";;
15191 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15192 build_warnings
="${build_warnings} ${t}";;
15193 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15194 build_warnings
="${t} ${build_warnings}";;
15195 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15197 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
15198 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
15202 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
15205 $as_echo_n "checking compiler warning flags... " >&6; }
15206 # Separate out the -Werror flag as some files just cannot be
15207 # compiled with it enabled.
15208 for w
in ${build_warnings}; do
15210 -Werr*) WERROR_CFLAGS
=-Werror ;;
15211 *) # Check that GCC accepts it
15212 saved_CFLAGS
="$CFLAGS"
15213 CFLAGS
="$CFLAGS $w"
15214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15215 /* end confdefs.h. */
15225 if ac_fn_c_try_compile
"$LINENO"; then :
15226 WARN_CFLAGS
="${WARN_CFLAGS} $w"
15228 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15229 CFLAGS
="$saved_CFLAGS"
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
15233 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
15238 # In the Cygwin environment, we need some additional flags.
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
15240 $as_echo_n "checking
for cygwin...
" >&6; }
15241 if test "${gdb_cv_os_cygwin+set}" = set; then :
15242 $as_echo_n "(cached
) " >&6
15244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15245 /* end confdefs.h. */
15247 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
15251 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15252 $EGREP "lose
" >/dev/null 2>&1; then :
15253 gdb_cv_os_cygwin=yes
15255 gdb_cv_os_cygwin=no
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
15261 $as_echo "$gdb_cv_os_cygwin" >&6; }
15264 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
15266 *go32* ) SER_HARDWIRE=ser-go32.o ;;
15267 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
15268 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
15272 # libreadline needs libuser32.a in a cygwin environment
15274 if test x$gdb_cv_os_cygwin = xyes; then
15275 WIN32LIBS="-luser32"
15276 case "${target}" in
15277 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
15282 # The ser-tcp.c module requires sockets.
15286 $as_echo "#define USE_WIN32API 1" >>confdefs.h
15288 WIN32LIBS
="$WIN32LIBS -lws2_32"
15293 # Add ELF support to GDB, but only if BFD includes ELF support.
15295 OLD_LDFLAGS
=$LDFLAGS
15297 CFLAGS
="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
15298 LDFLAGS
="$LDFLAGS -L../bfd -L../libiberty"
15299 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15300 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
15301 if test "$plugins" = "yes"; then
15304 LIBS
="-lbfd -liberty $intl $LIBS"
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
15306 $as_echo_n "checking for ELF support in BFD... " >&6; }
15307 if test "${gdb_cv_var_elf+set}" = set; then :
15308 $as_echo_n "(cached) " >&6
15310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15311 /* end confdefs.h. */
15312 #include <stdlib.h>
15314 #include "elf-bfd.h"
15319 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
15324 if ac_fn_c_try_link
"$LINENO"; then :
15329 rm -f core conftest.err conftest.
$ac_objext \
15330 conftest
$ac_exeext conftest.
$ac_ext
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
15333 $as_echo "$gdb_cv_var_elf" >&6; }
15334 if test $gdb_cv_var_elf = yes; then
15335 CONFIG_OBS
="$CONFIG_OBS elfread.o"
15337 $as_echo "#define HAVE_ELF 1" >>confdefs.h
15339 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
15340 if test "$plugins" = "yes"; then
15341 OLD_LIBS
="-ldl $OLD_LIBS"
15345 LDFLAGS
=$OLD_LDFLAGS
15348 # Add any host-specific objects to GDB.
15349 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
15351 LIBGUI
="../libgui/src/libgui.a"
15352 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
15361 *-*-cygwin* |
*-*-mingw* )
15370 if test "${enable_gdbtk}" = "yes"; then
15372 # Gdbtk must have an absolute path to srcdir in order to run
15373 # properly when not installed.
15376 GDBTK_SRC_DIR
=`pwd`
15381 # Ok, lets find the tcl configuration
15382 # First, look for one uninstalled.
15383 # the alternative search directory is invoked by --with-tcl
15386 if test x
"${no_tcl}" = x
; then
15387 # we reset no_tcl in case something fails here
15390 # Check whether --with-tcl was given.
15391 if test "${with_tcl+set}" = set; then :
15392 withval
=$with_tcl; with_tclconfig
=${withval}
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
15396 $as_echo_n "checking for Tcl configuration... " >&6; }
15397 if test "${ac_cv_c_tclconfig+set}" = set; then :
15398 $as_echo_n "(cached) " >&6
15402 # First check to see if --with-tcl was specified.
15404 *-*-cygwin*) platDir
="win" ;;
15405 *) platDir
="unix" ;;
15407 if test x
"${with_tclconfig}" != x
; then
15408 if test -f "${with_tclconfig}/tclConfig.sh" ; then
15409 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
15411 as_fn_error
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
15415 # then check for a private Tcl installation
15416 if test x
"${ac_cv_c_tclconfig}" = x
; then
15419 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15420 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
15421 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
15423 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15424 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
15425 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
15427 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15428 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
15429 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
15430 if test -f "$i/$platDir/tclConfig.sh" ; then
15431 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
15437 # on Darwin, check in Framework installation locations
15438 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
15439 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
15440 `ls -d /Library/Frameworks 2>/dev/null` \
15441 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15442 `ls -d /System/Library/Frameworks 2>/dev/null` \
15444 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
15445 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
15451 # check in a few common install locations
15452 if test x
"${ac_cv_c_tclconfig}" = x
; then
15453 for i
in `ls -d ${libdir} 2>/dev/null` \
15454 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15455 `ls -d ${prefix}/lib 2>/dev/null` \
15456 `ls -d /usr/local/lib 2>/dev/null` \
15457 `ls -d /usr/contrib/lib 2>/dev/null` \
15458 `ls -d /usr/lib 2>/dev/null` \
15460 if test -f "$i/tclConfig.sh" ; then
15461 ac_cv_c_tclconfig
=`(cd $i; pwd)`
15467 # check in a few other private locations
15468 if test x
"${ac_cv_c_tclconfig}" = x
; then
15471 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15472 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
15473 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
15474 if test -f "$i/$platDir/tclConfig.sh" ; then
15475 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
15484 if test x
"${ac_cv_c_tclconfig}" = x
; then
15485 TCL_BIN_DIR
="# no Tcl configs found"
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
15487 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
15490 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
15492 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15497 # If $no_tk is nonempty, then we can't do Tk, and there is no
15498 # point to doing Tcl.
15501 # Ok, lets find the tk configuration
15502 # First, look for one uninstalled.
15503 # the alternative search directory is invoked by --with-tk
15506 if test x
"${no_tk}" = x
; then
15507 # we reset no_tk in case something fails here
15510 # Check whether --with-tk was given.
15511 if test "${with_tk+set}" = set; then :
15512 withval
=$with_tk; with_tkconfig
=${withval}
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
15516 $as_echo_n "checking for Tk configuration... " >&6; }
15517 if test "${ac_cv_c_tkconfig+set}" = set; then :
15518 $as_echo_n "(cached) " >&6
15522 # First check to see if --with-tkconfig was specified.
15523 if test x
"${with_tkconfig}" != x
; then
15524 if test -f "${with_tkconfig}/tkConfig.sh" ; then
15525 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
15527 as_fn_error
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
15531 # then check for a private Tk library
15533 *-*-cygwin*) platDir
="win" ;;
15534 *) platDir
="unix" ;;
15536 if test x
"${ac_cv_c_tkconfig}" = x
; then
15539 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15540 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
15541 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
15543 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15544 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
15545 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
15547 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15548 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
15549 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
15550 if test -f "$i/$platDir/tkConfig.sh" ; then
15551 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
15557 # on Darwin, check in Framework installation locations
15558 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
15559 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
15560 `ls -d /Library/Frameworks 2>/dev/null` \
15561 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15562 `ls -d /System/Library/Frameworks 2>/dev/null` \
15564 if test -f "$i/Tk.framework/tkConfig.sh" ; then
15565 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
15571 # check in a few common install locations
15572 if test x
"${ac_cv_c_tkconfig}" = x
; then
15573 for i
in `ls -d ${libdir} 2>/dev/null` \
15574 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15575 `ls -d ${prefix}/lib 2>/dev/null` \
15576 `ls -d /usr/local/lib 2>/dev/null` \
15577 `ls -d /usr/contrib/lib 2>/dev/null` \
15578 `ls -d /usr/lib 2>/dev/null` \
15580 if test -f "$i/tkConfig.sh" ; then
15581 ac_cv_c_tkconfig
=`(cd $i; pwd)`
15586 # check in a few other private locations
15587 if test x
"${ac_cv_c_tkconfig}" = x
; then
15590 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15591 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
15592 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
15593 if test -f "$i/$platDir/tkConfig.sh" ; then
15594 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
15603 if test x
"${ac_cv_c_tkconfig}" = x
; then
15604 TK_BIN_DIR
="# no Tk configs found"
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
15606 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
15609 TK_BIN_DIR
=${ac_cv_c_tkconfig}
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
15611 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15616 if test -z "${no_tcl}" -a -z "${no_tk}"; then
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
15619 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
15621 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15623 $as_echo "loading" >&6; }
15624 .
${TCL_BIN_DIR}/tclConfig.sh
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
15627 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15630 # eval is required to do the TCL_DBGX substitution
15631 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
15632 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
15634 # If the TCL_BIN_DIR is the build directory (not the install directory),
15635 # then set the common variable name to the value of the build variables.
15636 # For example, the variable TCL_LIB_SPEC will be set to the value
15637 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
15638 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
15639 # installed and uninstalled version of Tcl.
15640 if test -f "${TCL_BIN_DIR}/Makefile" ; then
15641 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
15642 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
15643 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
15644 elif test "`uname -s`" = "Darwin"; then
15645 # If Tcl was built as a framework, attempt to use the libraries
15646 # from the framework at the given location so that linking works
15647 # against Tcl.framework installed in an arbitary location.
15648 case ${TCL_DEFS} in
15650 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
15651 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
15652 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
15653 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
15654 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
15659 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
15660 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
15661 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
15667 # eval is required to do the TCL_DBGX substitution
15668 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
15669 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
15670 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
15671 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
15687 # Check for in-tree tcl
15694 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
15698 # Find Tcl private headers
15699 if test x
"${intree}" = xno
; then
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
15702 $as_echo_n "checking for Tcl private headers... " >&6; }
15704 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
15705 if test -f ${dir}/tclInt.h
; then
15709 if test x
"${private_dir}" = x
; then
15710 as_fn_error
"could not find private Tcl headers" "$LINENO" 5
15712 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15714 $as_echo "${private_dir}" >&6; }
15717 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
15718 TCL_LIBRARY
="${TCL_LIB_SPEC}"
15721 # If building tcl in the same src tree, private headers
15722 # are not needed, but we need to be sure to use the right
15724 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
15725 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
15726 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
15734 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
15736 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
15737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15738 $as_echo "loading" >&6; }
15739 .
${TK_BIN_DIR}/tkConfig.sh
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
15742 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15745 # eval is required to do the TK_DBGX substitution
15746 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
15747 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
15749 # If the TK_BIN_DIR is the build directory (not the install directory),
15750 # then set the common variable name to the value of the build variables.
15751 # For example, the variable TK_LIB_SPEC will be set to the value
15752 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
15753 # instead of TK_BUILD_LIB_SPEC since it will work with both an
15754 # installed and uninstalled version of Tcl.
15755 if test -f "${TK_BIN_DIR}/Makefile" ; then
15756 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
15757 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
15758 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
15759 elif test "`uname -s`" = "Darwin"; then
15760 # If Tk was built as a framework, attempt to use the libraries
15761 # from the framework at the given location so that linking works
15762 # against Tk.framework installed in an arbitary location.
15765 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
15766 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
15767 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
15768 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
15769 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
15774 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
15775 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
15776 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
15782 # eval is required to do the TK_DBGX substitution
15783 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
15784 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
15785 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
15786 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
15801 # Check for in-tree Tk
15803 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
15807 # Find Tk private headers
15808 if test x
"${intree}" = xno
; then
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
15811 $as_echo_n "checking for Tk private headers... " >&6; }
15813 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
15814 if test -f ${dir}/tkInt.h
; then
15818 if test x
"${private_dir}" = x
; then
15819 as_fn_error
"could not find Tk private headers" "$LINENO" 5
15821 TK_PRIVATE_INCLUDE
="-I${private_dir}"
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15823 $as_echo "${private_dir}" >&6; }
15826 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
15827 TK_LIBRARY
=${TK_LIB_SPEC}
15830 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
15831 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
15832 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
15839 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
15841 # Include some libraries that Tcl and Tk want.
15842 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
15843 # Yes, the ordering seems wrong here. But it isn't.
15844 # TK_LIBS is the list of libraries that need to be linked
15845 # after Tcl/Tk. Note that this isn't put into LIBS. If it
15846 # were in LIBS then any link tests after this point would
15847 # try to include things like `$(LIBGUI)', which wouldn't work.
15848 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
15850 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
15851 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
15852 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
15853 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
15854 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
15855 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
15856 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
15858 if test x
$gdb_cv_os_cygwin = xyes
; then
15859 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
15860 WIN32LDAPP
="-Wl,--subsystem,console"
15861 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
15864 subdirs
="$subdirs gdbtk"
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15877 $as_echo_n "checking for X... " >&6; }
15880 # Check whether --with-x was given.
15881 if test "${with_x+set}" = set; then :
15885 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15886 if test "x$with_x" = xno
; then
15887 # The user explicitly disabled X.
15890 case $x_includes,$x_libraries in #(
15891 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
15892 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
15893 $as_echo_n "(cached) " >&6
15895 # One or both of the vars are not set, and there is no cached value.
15896 ac_x_includes
=no ac_x_libraries
=no
15897 rm -f -r conftest.dir
15898 if mkdir conftest.dir
; then
15900 cat >Imakefile
<<'_ACEOF'
15902 @echo incroot='${INCROOT}'
15904 @echo usrlibdir='${USRLIBDIR}'
15906 @echo libdir='${LIBDIR}'
15908 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
15909 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15910 for ac_var
in incroot usrlibdir libdir
; do
15911 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15913 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
15914 for ac_extension
in a so sl dylib la dll
; do
15915 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15916 test -f "$ac_im_libdir/libX11.$ac_extension"; then
15917 ac_im_usrlibdir
=$ac_im_libdir; break
15920 # Screen out bogus values from the imake configuration. They are
15921 # bogus both because they are the default anyway, and because
15922 # using them would break gcc on systems where it needs fixed includes.
15923 case $ac_im_incroot in
15924 /usr
/include
) ac_x_includes
= ;;
15925 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
15927 case $ac_im_usrlibdir in
15928 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
15929 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
15933 rm -f -r conftest.dir
15936 # Standard set of common directories for X headers.
15937 # Check X11 before X11Rn because it is often a symlink to the current release.
15951 /usr/local/X11/include
15952 /usr/local/X11R7/include
15953 /usr/local/X11R6/include
15954 /usr/local/X11R5/include
15955 /usr/local/X11R4/include
15957 /usr/local/include/X11
15958 /usr/local/include/X11R7
15959 /usr/local/include/X11R6
15960 /usr/local/include/X11R5
15961 /usr/local/include/X11R4
15965 /usr/XFree86/include/X11
15969 /usr/unsupported/include
15970 /usr/athena/include
15971 /usr/local/x11r5/include
15972 /usr/lpp/Xamples/include
15974 /usr/openwin/include
15975 /usr/openwin/share/include'
15977 if test "$ac_x_includes" = no
; then
15978 # Guess where to find include files, by looking for Xlib.h.
15979 # First, try using that file with no special directory specified.
15980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15981 /* end confdefs.h. */
15982 #include <X11/Xlib.h>
15984 if ac_fn_c_try_cpp
"$LINENO"; then :
15985 # We can compile using X headers with no special include directory.
15988 for ac_dir
in $ac_x_header_dirs; do
15989 if test -r "$ac_dir/X11/Xlib.h"; then
15990 ac_x_includes
=$ac_dir
15995 rm -f conftest.err conftest.
$ac_ext
15996 fi # $ac_x_includes = no
15998 if test "$ac_x_libraries" = no
; then
15999 # Check for the libraries.
16000 # See if we find them without any special options.
16001 # Don't add to $LIBS permanently.
16004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16005 /* end confdefs.h. */
16006 #include <X11/Xlib.h>
16015 if ac_fn_c_try_link
"$LINENO"; then :
16017 # We can link X programs with no special library path.
16021 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
16023 # Don't even attempt the hair of trying to link an X program!
16024 for ac_extension
in a so sl dylib la dll
; do
16025 if test -r "$ac_dir/libX11.$ac_extension"; then
16026 ac_x_libraries
=$ac_dir
16032 rm -f core conftest.err conftest.
$ac_objext \
16033 conftest
$ac_exeext conftest.
$ac_ext
16034 fi # $ac_x_libraries = no
16036 case $ac_x_includes,$ac_x_libraries in #(
16037 no
,* |
*,no |
*\'*)
16038 # Didn't find X, or a directory has "'" in its name.
16039 ac_cv_have_x
="have_x=no";; #(
16041 # Record where we found X for the cache.
16042 ac_cv_have_x
="have_x=yes\
16043 ac_x_includes='$ac_x_includes'\
16044 ac_x_libraries='$ac_x_libraries'"
16050 eval "$ac_cv_have_x"
16053 if test "$have_x" != yes; then
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
16055 $as_echo "$have_x" >&6; }
16058 # If each of the values was on the command line, it overrides each guess.
16059 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
16060 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
16061 # Update the cache value to reflect the command line values.
16062 ac_cv_have_x
="have_x=yes\
16063 ac_x_includes='$x_includes'\
16064 ac_x_libraries='$x_libraries'"
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
16066 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
16070 # Unlike the sim directory, whether a simulator is linked is controlled by
16071 # presence of a gdb_sim definition in the target configure.tgt entry.
16072 # This code just checks for a few cases where we'd like to ignore those
16073 # definitions, even when they're present in the '.mt' file. These cases
16074 # are when --disable-sim is specified, or if the simulator directory is
16075 # not part of the source tree.
16077 # Check whether --enable-sim was given.
16078 if test "${enable_sim+set}" = set; then :
16079 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
16080 echo "enableval = ${enableval}";
16081 case "${enableval}" in
16082 yes) ignore_sim
=false
;;
16083 no
) ignore_sim
=true
;;
16084 *) ignore_sim
=false
;;
16091 if test ! -d "${srcdir}/../sim"; then
16097 if test "${ignore_sim}" = "false"; then
16098 if test x
"${gdb_sim}" != x
; then
16100 SIM_OBS
="remote-sim.o"
16102 $as_echo "#define WITH_SIM 1" >>confdefs.h
16120 # List of host floatformats.
16122 cat >>confdefs.h
<<_ACEOF
16123 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
16127 cat >>confdefs.h
<<_ACEOF
16128 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
16132 cat >>confdefs.h
<<_ACEOF
16133 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
16137 # target_subdir is used by the testsuite to find the target libraries.
16139 if test "${host}" != "${target}"; then
16140 target_subdir
="${target_alias}/"
16145 if test "${gdb_native}" = "yes"; then
16146 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
16147 if test ! -f ${host_makefile_frag}; then
16148 as_fn_error
"\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
16150 frags
="$frags $host_makefile_frag"
16152 host_makefile_frag
=/dev
/null
16158 if test "${gdb_native}" = "yes"; then
16159 # We pick this up from the host configuration file (.mh) because we
16160 # do not have a native configuration Makefile fragment.
16161 nativefile
=`sed -n '
16162 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
16163 ' ${host_makefile_frag}`
16167 if test x
"${gdb_osabi}" != x
; then
16169 cat >>confdefs.h
<<_ACEOF
16170 #define GDB_OSABI_DEFAULT $gdb_osabi
16175 # Enable multi-ice-gdb-server.
16176 # Check whether --enable-multi-ice was given.
16177 if test "${enable_multi_ice+set}" = set; then :
16178 enableval
=$enable_multi_ice; case $enableval in
16181 *) as_fn_error
"bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
16185 if test "x$enable_multi_ice" = xyes
; then
16186 subdirs
="$subdirs multi-ice"
16190 # Check whether --enable-gdbserver was given.
16191 if test "${enable_gdbserver+set}" = set; then :
16192 enableval
=$enable_gdbserver; case "${enableval}" in
16194 *) as_fn_error
"bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
16197 enable_gdbserver
=auto
16201 # We only build gdbserver automatically in a native configuration, and
16202 # only if the user did not explicitly disable its build.
16203 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
16205 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
16206 if test "x$build_gdbserver" = xyes
; then
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16208 $as_echo "yes" >&6; }
16209 subdirs
="$subdirs gdbserver"
16211 gdbserver_build_enabled
=yes
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16214 $as_echo "no" >&6; }
16218 # If the user explicitly request the gdbserver to be built, verify that
16219 # we were in fact able to enable it.
16220 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
16221 as_fn_error
"Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
16224 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
16225 # to an empty version.
16231 if test "${nativefile}" != ""; then
16232 case "${nativefile}" in
16233 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
16234 * ) GDB_NM_FILE
="${nativefile}"
16236 files
="${files} ${GDB_NM_FILE}"
16237 links
="${links} nm.h"
16239 cat >>confdefs.h
<<_ACEOF
16240 #define GDB_NM_FILE "${GDB_NM_FILE}"
16246 ac_sources
="$files"
16248 while test -n "$ac_sources"; do
16249 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
16250 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
16251 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
16253 ac_config_links
="$ac_config_links $ac_config_links_1"
16259 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
16262 ac_config_files
="$ac_config_files Makefile .gdbinit:gdbinit.in doc/Makefile gnulib/Makefile data-directory/Makefile"
16264 ac_config_commands
="$ac_config_commands default"
16266 cat >confcache
<<\_ACEOF
16267 # This file is a shell script that caches the results of configure
16268 # tests run on this system so they can be shared between configure
16269 # scripts and configure runs, see configure's option --config-cache.
16270 # It is not useful on other systems. If it contains results you don't
16271 # want to keep, you may remove or edit it.
16273 # config.status only pays attention to the cache file if you give it
16274 # the --recheck option to rerun configure.
16276 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16277 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16278 # following values.
16282 # The following way of writing the cache mishandles newlines in values,
16283 # but we know of no workaround that is simple, portable, and efficient.
16284 # So, we kill variables containing newlines.
16285 # Ultrix sh set writes to stderr and can't be redirected directly,
16286 # and sets the high bit in the cache file unless we assign to the vars.
16288 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16289 eval ac_val
=\$
$ac_var
16293 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16294 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16297 _ | IFS | as_nl
) ;; #(
16298 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16299 *) { eval $ac_var=; unset $ac_var;} ;;
16305 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16306 *${as_nl}ac_space
=\
*)
16307 # `set' does not quote correctly, so add quotes: double-quote
16308 # substitution turns \\\\ into \\, and sed turns \\ into \.
16311 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16314 # `set' quotes correctly as required by POSIX, so do not add quotes.
16315 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16324 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16326 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16328 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16329 if test -w "$cache_file"; then
16330 test "x$cache_file" != "x/dev/null" &&
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16332 $as_echo "$as_me: updating cache $cache_file" >&6;}
16333 cat confcache
>$cache_file
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16336 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16341 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16342 # Let make expand exec_prefix.
16343 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16345 DEFS
=-DHAVE_CONFIG_H
16349 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16350 # 1. Remove the extension, and $U if already installed.
16351 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16352 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16353 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16354 # will be set to the directory where LIBOBJS objects are built.
16355 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16356 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16358 LIBOBJS
=$ac_libobjs
16360 LTLIBOBJS
=$ac_ltlibobjs
16363 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16364 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
16365 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16367 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
16368 as_fn_error
"conditional \"GMAKE\" was never defined.
16369 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16371 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
16372 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
16373 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16378 if test -n "$gl_LIBOBJS"; then
16379 # Remove the extension.
16380 sed_drop_objext
='s/\.o$//;s/\.obj$//'
16381 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16382 gl_libobjs
="$gl_libobjs $i.$ac_objext"
16383 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
16386 gl_LIBOBJS
=$gl_libobjs
16388 gl_LTLIBOBJS
=$gl_ltlibobjs
16394 if test -n "$gltests_LIBOBJS"; then
16395 # Remove the extension.
16396 sed_drop_objext
='s/\.o$//;s/\.obj$//'
16397 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16398 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
16399 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
16402 gltests_LIBOBJS
=$gltests_libobjs
16404 gltests_LTLIBOBJS
=$gltests_ltlibobjs
16407 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16408 as_fn_error
"conditional \"AMDEP\" was never defined.
16409 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16411 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16412 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
16413 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16415 if test -n "$EXEEXT"; then
16417 am__EXEEXT_FALSE
='#'
16419 am__EXEEXT_TRUE
='#'
16425 : ${CONFIG_STATUS=./config.status}
16427 ac_clean_files_save
=$ac_clean_files
16428 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16429 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16430 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16432 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16434 # Generated by $as_me.
16435 # Run this file to recreate the current configuration.
16436 # Compiler output produced by configure, useful for debugging
16437 # configure, is in config.log if it exists.
16440 ac_cs_recheck=false
16443 SHELL=\${CONFIG_SHELL-$SHELL}
16446 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16447 ## -------------------- ##
16448 ## M4sh Initialization. ##
16449 ## -------------------- ##
16451 # Be more Bourne compatible
16452 DUALCASE
=1; export DUALCASE
# for MKS sh
16453 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16456 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16457 # is contrary to our usage. Disable this feature.
16458 alias -g '${1+"$@"}'='"$@"'
16459 setopt NO_GLOB_SUBST
16461 case `(set -o) 2>/dev/null` in #(
16473 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16474 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16475 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16476 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16477 # Prefer a ksh shell builtin over an external printf program on Solaris,
16478 # but without wasting forks for bash or zsh.
16479 if test -z "$BASH_VERSION$ZSH_VERSION" \
16480 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16481 as_echo='print
-r --'
16482 as_echo_n='print
-rn --'
16483 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16484 as_echo='printf %s
\n'
16485 as_echo_n='printf %s
'
16487 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16488 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
16489 as_echo_n='/usr
/ucb
/echo -n'
16491 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16492 as_echo_n_body='eval
16496 expr "X$arg" : "X\\(.*\\)$as_nl";
16497 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16499 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
16501 export as_echo_n_body
16502 as_echo_n='sh
-c $as_echo_n_body as_echo
'
16504 export as_echo_body
16505 as_echo='sh
-c $as_echo_body as_echo
'
16508 # The user is always right.
16509 if test "${PATH_SEPARATOR+set}" != set; then
16511 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16512 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16519 # We need space, tab and new line, in precisely that order. Quoting is
16520 # there to prevent editors from complaining about space-tab.
16521 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16522 # splitting by setting IFS to empty value.)
16525 # Find who we are. Look in the path if we contain no directory separator.
16527 *[\\/]* ) as_myself=$0 ;;
16528 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16529 for as_dir in $PATH
16532 test -z "$as_dir" && as_dir=.
16533 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16539 # We did not find ourselves, most probably we were run as `sh COMMAND'
16540 # in which case we are not to be found in the path.
16541 if test "x$as_myself" = x
; then
16544 if test ! -f "$as_myself"; then
16545 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16549 # Unset variables that we do not need and which cause bugs (e.g. in
16550 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16551 # suppresses any "Segmentation fault" message there. '((' could
16552 # trigger a bug in pdksh 5.2.14.
16553 for as_var
in BASH_ENV ENV MAIL MAILPATH
16554 do eval test x\
${$as_var+set} = xset \
16555 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
16568 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
16571 # as_fn_error ERROR [LINENO LOG_FD]
16572 # ---------------------------------
16573 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16574 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16575 # script with status $?, using 1 if that was 0.
16578 as_status
=$?
; test $as_status -eq 0 && as_status
=1
16580 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
16581 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16583 $as_echo "$as_me: error: $1" >&2
16584 as_fn_exit
$as_status
16588 # as_fn_set_status STATUS
16589 # -----------------------
16590 # Set $? to STATUS, without forking.
16591 as_fn_set_status
()
16594 } # as_fn_set_status
16596 # as_fn_exit STATUS
16597 # -----------------
16598 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16602 as_fn_set_status
$1
16608 # Portably unset VAR.
16611 { eval $1=; unset $1;}
16613 as_unset
=as_fn_unset
16614 # as_fn_append VAR VALUE
16615 # ----------------------
16616 # Append the text in VALUE to the end of the definition contained in VAR. Take
16617 # advantage of any shell optimizations that allow amortized linear growth over
16618 # repeated appends, instead of the typical quadratic growth present in naive
16620 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
16621 eval 'as_fn_append ()
16632 # as_fn_arith ARG...
16633 # ------------------
16634 # Perform arithmetic evaluation on the ARGs, and store the result in the
16635 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16636 # must be portable across $(()) and expr.
16637 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
16638 eval 'as_fn_arith ()
16645 as_val
=`expr "$@" || test $? -eq 1`
16650 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16651 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16657 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16658 as_basename
=basename
16663 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16669 as_me
=`$as_basename -- "$0" ||
16670 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16671 X"$0" : 'X\(//\)$' \| \
16672 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16674 sed '/^.*\/\([^/][^/]*\)\/*$/{
16688 # Avoid depending upon Character Ranges.
16689 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16690 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16691 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16692 as_cr_digits
='0123456789'
16693 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16695 ECHO_C
= ECHO_N
= ECHO_T
=
16696 case `echo -n x` in #(((((
16698 case `echo 'xy\c'` in
16699 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16701 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16708 rm -f conf$$ conf$$.exe conf$$.
file
16709 if test -d conf$$.dir
; then
16710 rm -f conf$$.dir
/conf$$.
file
16713 mkdir conf$$.dir
2>/dev
/null
16715 if (echo >conf$$.
file) 2>/dev
/null
; then
16716 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16718 # ... but there are two gotchas:
16719 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16720 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16721 # In both cases, we have to default to `cp -p'.
16722 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16724 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16732 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16733 rmdir conf$$.dir
2>/dev
/null
16738 # Create "$as_dir" as a directory, including parents if necessary.
16743 -*) as_dir
=.
/$as_dir;;
16745 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16749 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16750 *) as_qdir
=$as_dir;;
16752 as_dirs
="'$as_qdir' $as_dirs"
16753 as_dir
=`$as_dirname -- "$as_dir" ||
16754 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16755 X"$as_dir" : 'X\(//\)[^/]' \| \
16756 X"$as_dir" : 'X\(//\)$' \| \
16757 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16758 $as_echo X"$as_dir" |
16759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16763 /^X\(\/\/\)[^/].*/{
16776 test -d "$as_dir" && break
16778 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16779 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
16783 if mkdir
-p .
2>/dev
/null
; then
16784 as_mkdir_p
='mkdir -p "$as_dir"'
16786 test -d .
/-p && rmdir .
/-p
16790 if test -x / >/dev
/null
2>&1; then
16791 as_test_x
='test -x'
16793 if ls -dL / >/dev
/null
2>&1; then
16800 if test -d "$1"; then
16806 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16807 ???[sx]*):;;*)false;;esac;fi
16811 as_executable_p
=$as_test_x
16813 # Sed expression to map a string onto a valid CPP name.
16814 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16816 # Sed expression to map a string onto a valid variable name.
16817 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16821 ## ----------------------------------- ##
16822 ## Main body of $CONFIG_STATUS script. ##
16823 ## ----------------------------------- ##
16825 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16828 # Save the log message, to keep $0 and so on meaningful, and to
16829 # report actual input values of CONFIG_FILES etc. instead of their
16830 # values after options handling.
16832 This file was extended by $as_me, which was
16833 generated by GNU Autoconf 2.64. Invocation command line was
16835 CONFIG_FILES = $CONFIG_FILES
16836 CONFIG_HEADERS = $CONFIG_HEADERS
16837 CONFIG_LINKS = $CONFIG_LINKS
16838 CONFIG_COMMANDS = $CONFIG_COMMANDS
16841 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16846 case $ac_config_files in *"
16847 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16850 case $ac_config_headers in *"
16851 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16856 # Files that config.status was made for.
16857 config_files="$ac_config_files"
16858 config_headers="$ac_config_headers"
16859 config_links="$ac_config_links"
16860 config_commands="$ac_config_commands"
16864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16866 \`$as_me' instantiates files and other configuration actions
16867 from templates according to the current configuration. Unless the files
16868 and actions are specified as TAGs, all are instantiated by default.
16870 Usage: $0 [OPTION]... [TAG]...
16872 -h, --help print this help, then exit
16873 -V, --version print version number and configuration settings, then exit
16874 -q, --quiet, --silent
16875 do not print progress messages
16876 -d, --debug don't remove temporary files
16877 --recheck update $as_me by reconfiguring in the same conditions
16878 --file=FILE[:TEMPLATE]
16879 instantiate the configuration file FILE
16880 --header=FILE[:TEMPLATE]
16881 instantiate the configuration header FILE
16883 Configuration files:
16886 Configuration headers:
16889 Configuration links:
16892 Configuration commands:
16895 Report bugs to the package provider."
16898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16901 configured by $0, generated by GNU Autoconf 2.64,
16902 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16904 Copyright (C) 2009 Free Software Foundation, Inc.
16905 This config.status script is free software; the Free Software Foundation
16906 gives unlimited permission to copy, distribute and modify it."
16913 test -n "\$AWK" || AWK=awk
16916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16917 # The default lists apply if the user does not specify any file.
16923 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16924 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16935 # Handling of the options.
16936 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16938 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16939 $as_echo "$ac_cs_version"; exit ;;
16940 --debug |
--debu |
--deb |
--de |
--d |
-d )
16942 --file |
--fil |
--fi |
--f )
16945 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16947 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16948 ac_need_defaults
=false
;;
16949 --header |
--heade |
--head |
--hea )
16952 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16954 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
16955 ac_need_defaults
=false
;;
16957 # Conflict between --help and --header
16958 as_fn_error
"ambiguous option: \`$1'
16959 Try \`$0 --help' for more information.";;
16960 --help |
--hel |
-h )
16961 $as_echo "$ac_cs_usage"; exit ;;
16962 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16963 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16966 # This is an error.
16967 -*) as_fn_error
"unrecognized option: \`$1'
16968 Try \`$0 --help' for more information." ;;
16970 *) as_fn_append ac_config_targets
" $1"
16971 ac_need_defaults
=false
;;
16977 ac_configure_extra_args
=
16979 if $ac_cs_silent; then
16981 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16986 if \$ac_cs_recheck; then
16987 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16989 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16990 CONFIG_SHELL='$SHELL'
16991 export CONFIG_SHELL
16996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17000 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17001 ## Running $as_me. ##
17007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17011 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
17012 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17016 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17018 # Handling of arguments.
17019 for ac_config_target
in $ac_config_targets
17021 case $ac_config_target in
17022 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
17023 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
17024 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
17025 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
17026 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
17027 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
17028 ".gdbinit") CONFIG_FILES
="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
17029 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
17030 "gnulib/Makefile") CONFIG_FILES
="$CONFIG_FILES gnulib/Makefile" ;;
17031 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
17032 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
17034 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17039 # If the user did not use the arguments to specify the items to instantiate,
17040 # then the envvar interface is used. Set only those that are not.
17041 # We use the long form for the default assignment because of an extremely
17042 # bizarre bug on SunOS 4.1.3.
17043 if $ac_need_defaults; then
17044 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17045 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17046 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
17047 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17050 # Have a temporary directory for convenience. Make it in the build tree
17051 # simply because there is no reason against having it here, and in addition,
17052 # creating and moving files from /tmp can sometimes cause problems.
17053 # Hook for its removal unless debugging.
17054 # Note that there is a small window in which the directory will not be cleaned:
17055 # after its creation but before its name has been assigned to `$tmp'.
17059 trap 'exit_status=$?
17060 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17062 trap 'as_fn_exit 1' 1 2 13 15
17064 # Create a (secure) tmp directory for tmp files.
17067 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17068 test -n "$tmp" && test -d "$tmp"
17071 tmp
=.
/conf$$
-$RANDOM
17072 (umask 077 && mkdir
"$tmp")
17073 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
17075 # Set up the scripts for CONFIG_FILES section.
17076 # No need to generate them if there are no CONFIG_FILES.
17077 # This happens for instance with `./config.status config.h'.
17078 if test -n "$CONFIG_FILES"; then
17080 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
17081 ac_cs_awk_getline
=:
17082 ac_cs_awk_pipe_init
=
17083 ac_cs_awk_read_file
='
17084 while ((getline aline < (F[key])) > 0)
17087 ac_cs_awk_pipe_fini
=
17089 ac_cs_awk_getline
=false
17090 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
17091 ac_cs_awk_read_file
='
17093 print "cat " F[key] " &&"
17094 '$ac_cs_awk_pipe_init
17095 # The final `:' finishes the AND list.
17096 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
17098 ac_cr
=`echo X | tr X '\015'`
17099 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17100 # But we know of no other shell where ac_cr would be empty at this
17101 # point, so we can use a bashism as a fallback.
17102 if test "x$ac_cr" = x
; then
17103 eval ac_cr
=\$
\'\\r
\'
17105 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17106 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17109 ac_cs_awk_cr
=$ac_cr
17112 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17115 # Create commands to substitute file output variables.
17117 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17118 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
17119 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
17122 } >conf$
$files.sh
&&
17123 . .
/conf$
$files.sh ||
17124 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
17125 rm -f conf$
$files.sh
17128 echo "cat >conf$$subs.awk <<_ACEOF" &&
17129 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17131 } >conf$$subs.sh ||
17132 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17133 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17135 for ac_last_try in false false false false false :; do
17136 . ./conf$$subs.sh ||
17137 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17139 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
17140 if test $ac_delim_n = $ac_delim_num; then
17142 elif $ac_last_try; then
17143 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17145 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17148 rm -f conf$$subs.sh
17150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17151 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
17155 s/^/S["/; s
/!.
*/"]=/
17165 s/\(.\{148\}\).*/\1/
17167 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
17172 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17179 s/\(.\{148\}\).*/\1/
17181 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
17185 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17190 ' <conf$$subs.awk | sed '
17195 ' >>$CONFIG_STATUS || ac_write_fail=1
17196 rm -f conf$$subs.awk
17197 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17199 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
17200 for (key in S) S_is_set[key] = 1
17202 \$ac_cs_awk_pipe_init
17206 nfields = split(line, field, "@
")
17208 len = length(field[1])
17209 for (i = 2; i < nfields; i++) {
17211 keylen = length(key)
17212 if (S_is_set[key]) {
17214 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17215 len += length(value) + length(field[++i])
17220 if (nfields == 3 && !substed) {
17222 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17223 \$ac_cs_awk_read_file
17229 \$ac_cs_awk_pipe_fini
17232 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17233 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17234 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
17237 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
17238 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
17241 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17242 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
17243 # trailing colons and then remove the whole line if VPATH becomes empty
17244 # (actually we leave an empty line to preserve line numbers).
17245 if test "x
$srcdir" = x.; then
17246 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17247 s/:*\$(srcdir):*/:/
17248 s/:*\${srcdir}:*/:/
17250 s/^\([^=]*=[ ]*\):*/\1/
17256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17257 fi # test -n "$CONFIG_FILES"
17259 # Set up the scripts for CONFIG_HEADERS section.
17260 # No need to generate them if there are no CONFIG_HEADERS.
17261 # This happens for instance with `./config.status Makefile'.
17262 if test -n "$CONFIG_HEADERS"; then
17263 cat >"$tmp/defines.
awk" <<\_ACAWK ||
17267 # Transform confdefs.h into an awk script `defines.awk', embedded as
17268 # here-document in config.status, that substitutes the proper values into
17269 # config.h.in to produce config.h.
17271 # Create a delimiter string that does not exist in confdefs.h, to ease
17272 # handling of long lines.
17274 for ac_last_try in false false :; do
17275 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
17276 if test -z "$ac_t"; then
17278 elif $ac_last_try; then
17279 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
17281 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17285 # For the awk script, D is an array of macro values keyed by name,
17286 # likewise P contains macro parameters if any. Preserve backslash
17287 # newline sequences.
17289 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17291 s/.\{148\}/&'"$ac_delim"'/g
17294 s/^[ ]*#[ ]*define[ ][ ]*/ /
17301 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
17303 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
17307 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
17308 D["\
1"]=" \
3\\\\\\n
"\\/p
17310 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
17315 s/.\{148\}/&'"$ac_delim"'/g
17320 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
17323 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
17325 ' <confdefs.h | sed '
17326 s/'"$ac_delim"'/"\\\
17327 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17329 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17330 for (key in D) D_is_set[key] = 1
17333 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17335 split(line, arg, " ")
17336 if (arg[1] == "#") {
17340 defundef
= substr
(arg
[1], 2)
17343 split(mac1
, mac2
, "(") #)
17345 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
17346 if (D_is_set
[macro
]) {
17347 # Preserve the white space surrounding the "#".
17348 print prefix
"define", macro P
[macro
] D
[macro
]
17351 # Replace #undef with comments. This is necessary, for example,
17352 # in the case of _POSIX_SOURCE, which is predefined and required
17353 # on some systems where configure will not decide to define it.
17354 if (defundef
== "undef") {
17355 print
"/*", prefix defundef
, macro
, "*/"
17363 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17364 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
17365 fi # test -n "$CONFIG_HEADERS"
17368 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17373 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17375 case $ac_mode$ac_tag in
17377 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
17378 :[FH
]-) ac_tag
=-:-;;
17379 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17396 -) ac_f
="$tmp/stdin";;
17397 *) # Look for the file first in the build tree, then in the source tree
17398 # (if the path is not absolute). The absolute path cannot be DOS-style,
17399 # because $ac_f cannot contain `:'.
17403 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17405 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
17407 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17408 as_fn_append ac_file_inputs
" '$ac_f'"
17411 # Let's still pretend it is `configure' which instantiates (i.e., don't
17412 # use $as_me), people would be surprised to read:
17413 # /* config.h. Generated by config.status. */
17414 configure_input
='Generated from '`
17415 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17417 if test x
"$ac_file" != x-
; then
17418 configure_input
="$ac_file. $configure_input"
17419 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17420 $as_echo "$as_me: creating $ac_file" >&6;}
17422 # Neutralize special characters interpreted by sed in replacement strings.
17423 case $configure_input in #(
17424 *\
&* |
*\|
* |
*\\* )
17425 ac_sed_conf_input
=`$as_echo "$configure_input" |
17426 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17427 *) ac_sed_conf_input
=$configure_input;;
17431 *:-:* |
*:-) cat >"$tmp/stdin" \
17432 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
17437 ac_dir
=`$as_dirname -- "$ac_file" ||
17438 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17439 X"$ac_file" : 'X\(//\)[^/]' \| \
17440 X"$ac_file" : 'X\(//\)$' \| \
17441 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17442 $as_echo X"$ac_file" |
17443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17447 /^X\(\/\/\)[^/].*/{
17460 as_dir
="$ac_dir"; as_fn_mkdir_p
17464 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17466 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17467 # A ".." for each directory in $ac_dir_suffix.
17468 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17469 case $ac_top_builddir_sub in
17470 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17471 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17474 ac_abs_top_builddir
=$ac_pwd
17475 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17476 # for backward compatibility:
17477 ac_top_builddir
=$ac_top_build_prefix
17480 .
) # We are building in place.
17482 ac_top_srcdir
=$ac_top_builddir_sub
17483 ac_abs_top_srcdir
=$ac_pwd ;;
17484 [\\/]* | ?
:[\\/]* ) # Absolute name.
17485 ac_srcdir
=$srcdir$ac_dir_suffix;
17486 ac_top_srcdir
=$srcdir
17487 ac_abs_top_srcdir
=$srcdir ;;
17488 *) # Relative name.
17489 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17490 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17491 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17493 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17503 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17504 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
17506 ac_MKDIR_P
=$MKDIR_P
17508 [\\/$
]* | ?
:[\\/]* ) ;;
17509 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
17513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17514 # If the template does not know about datarootdir, expand it.
17515 # FIXME: This hack should be removed a few years after 2.60.
17516 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17527 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17528 *datarootdir
*) ac_datarootdir_seen
=yes;;
17529 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17531 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17534 ac_datarootdir_hack='
17535 s&@datadir@&$datadir&g
17536 s&@docdir@&$docdir&g
17537 s&@infodir@&$infodir&g
17538 s&@localedir@&$localedir&g
17539 s&@mandir@&$mandir&g
17540 s&\\\${datarootdir}&$datarootdir&g' ;;
17544 # Neutralize VPATH when `$srcdir' = `.'.
17545 # Shell code in configure.ac might set extrasub.
17546 # FIXME: do we really want to maintain this feature?
17547 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17548 ac_sed_extra="$ac_vpsub
17551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17553 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17554 s|@configure_input@|
$ac_sed_conf_input|
;t t
17555 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17556 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17557 s
&@srcdir@
&$ac_srcdir&;t t
17558 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17559 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17560 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17561 s
&@builddir@
&$ac_builddir&;t t
17562 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17563 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17564 s
&@INSTALL@
&$ac_INSTALL&;t t
17565 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
17566 $ac_datarootdir_hack
17568 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17569 if $ac_cs_awk_getline; then
17570 $AWK -f "$tmp/subs.
awk"
17572 $AWK -f "$tmp/subs.
awk" | $SHELL
17574 || as_fn_error "could not create
$ac_file" "$LINENO" 5
17576 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17577 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
17578 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
17579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17580 which seems to be undefined. Please make sure it is defined." >&5
17581 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17582 which seems to be undefined. Please make sure it is defined." >&2;}
17586 -) cat "$tmp/out" && rm -f "$tmp/out";;
17587 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17589 || as_fn_error "could not create $ac_file" "$LINENO" 5
17595 if test x"$ac_file" != x-; then
17597 $as_echo "/* $configure_input */" \
17598 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17599 } >"$tmp/config.h" \
17600 || as_fn_error "could not create $ac_file" "$LINENO" 5
17601 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17603 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17606 mv "$tmp/config.h" "$ac_file" \
17607 || as_fn_error "could not create $ac_file" "$LINENO" 5
17610 $as_echo "/* $configure_input */" \
17611 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17612 || as_fn_error "could not create -" "$LINENO" 5
17614 # Compute "$ac_file"'s index
in $config_headers.
17617 for _am_header
in $config_headers :; do
17618 case $_am_header in
17619 $_am_arg |
$_am_arg:* )
17622 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
17625 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17626 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17627 X"$_am_arg" : 'X\(//\)[^/]' \| \
17628 X"$_am_arg" : 'X\(//\)$' \| \
17629 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17630 $as_echo X"$_am_arg" |
17631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17635 /^X\(\/\/\)[^/].*/{
17647 s/.*/./; q'`/stamp-h
$_am_stamp_count
17654 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17657 # Prefer the file from the source tree if names are identical.
17658 if test "$ac_source" = "$ac_file" ||
test ! -r "$ac_source"; then
17659 ac_source
=$srcdir/$ac_source
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17663 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17665 if test ! -r "$ac_source"; then
17666 as_fn_error
"$ac_source: file not found" "$LINENO" 5
17670 # Try a relative symlink, then a hard link, then a copy.
17672 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$ac_source ;;
17673 *) ac_rel_source
=$ac_top_build_prefix$ac_source ;;
17675 ln -s "$ac_rel_source" "$ac_file" 2>/dev
/null ||
17676 ln "$ac_source" "$ac_file" 2>/dev
/null ||
17677 cp -p "$ac_source" "$ac_file" ||
17678 as_fn_error
"cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17681 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17682 $as_echo "$as_me: executing $ac_file commands" >&6;}
17687 case $ac_file$ac_mode in
17688 "depdir":C
) $SHELL $ac_aux_dir/mkinstalldirs
$DEPDIR ;;
17689 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
17690 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17691 # are listed without --file. Let's play safe and only enable the eval
17692 # if we detect the quoting.
17693 case $CONFIG_FILES in
17694 *\'*) eval set x
"$CONFIG_FILES" ;;
17695 *) set x
$CONFIG_FILES ;;
17700 # Strip MF so we end up with the name of the file.
17701 mf
=`echo "$mf" | sed -e 's/:.*$//'`
17702 # Check whether this is an Automake generated Makefile or not.
17703 # We used to match only the files named `Makefile.in', but
17704 # some people rename them; so instead we look at the file content.
17705 # Grep'ing the first line is not enough: some people post-process
17706 # each Makefile.in and add a new line on top of each file to say so.
17707 # Grep'ing the whole file is not good either: AIX grep has a line
17708 # limit of 2048, but all sed's we know have understand at least 4000.
17709 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
17710 dirpart
=`$as_dirname -- "$mf" ||
17711 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17712 X"$mf" : 'X\(//\)[^/]' \| \
17713 X"$mf" : 'X\(//\)$' \| \
17714 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17720 /^X\(\/\/\)[^/].*/{
17736 # Extract the definition of DEPDIR, am__include, and am__quote
17737 # from the Makefile without running `make'.
17738 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
17739 test -z "$DEPDIR" && continue
17740 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
17741 test -z "am__include" && continue
17742 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
17743 # When using ansi2knr, U may be empty or an underscore; expand it
17744 U
=`sed -n 's/^U = //p' < "$mf"`
17745 # Find all dependency output files, they are included files with
17746 # $(DEPDIR) in their names. We invoke sed twice because it is the
17747 # simplest approach to changing $(DEPDIR) to its actual value in the
17749 for file in `sed -n "
17750 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17751 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17752 # Make sure the directory exists.
17753 test -f "$dirpart/$file" && continue
17754 fdir
=`$as_dirname -- "$file" ||
17755 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17756 X"$file" : 'X\(//\)[^/]' \| \
17757 X"$file" : 'X\(//\)$' \| \
17758 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17759 $as_echo X"$file" |
17760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17764 /^X\(\/\/\)[^/].*/{
17777 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
17778 # echo "creating $dirpart/$file"
17779 echo '# dummy' > "$dirpart/$file"
17785 case x
$CONFIG_HEADERS in
17786 xconfig.h
:config.
in)
17797 ac_clean_files
=$ac_clean_files_save
17799 test $ac_write_fail = 0 ||
17800 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
17803 # configure is writing to config.log, and then calls config.status.
17804 # config.status does its own redirection, appending to config.log.
17805 # Unfortunately, on DOS this fails, as config.log is still kept open
17806 # by configure, so config.status won't be able to write to it; its
17807 # output is simply discarded. So we exec the FD to /dev/null,
17808 # effectively closing config.log, so it can be properly (re)opened and
17809 # appended to by config.status. When coming back to configure, we
17810 # need to make the FD available again.
17811 if test "$no_create" != yes; then
17813 ac_config_status_args
=
17814 test "$silent" = yes &&
17815 ac_config_status_args
="$ac_config_status_args --quiet"
17817 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17819 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17820 # would make configure fail if this is the last instruction.
17821 $ac_cs_success || as_fn_exit $?
17825 # CONFIG_SUBDIRS section.
17827 if test "$no_recursion" != yes; then
17829 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17830 # so they do not pile up.
17831 ac_sub_configure_args
=
17833 eval "set x $ac_configure_args"
17837 if test -n "$ac_prev"; then
17842 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
17843 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
17844 ac_prev
=cache_file
;;
17845 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
17846 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
17849 --config-cache |
-C)
17851 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
17853 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
17855 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
17857 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
17859 --disable-option-checking)
17863 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17865 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
17869 # Always prepend --prefix to ensure using the same prefix
17870 # in subdir configurations.
17871 ac_arg
="--prefix=$prefix"
17873 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17875 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
17878 if test "$silent" = yes; then
17879 ac_sub_configure_args
="--silent $ac_sub_configure_args"
17882 # Always prepend --disable-option-checking to silence warnings, since
17883 # different subdirs can have different --enable and --with options.
17884 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
17887 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
17889 # Do not complain, so a configure script can configure whichever
17890 # parts of a large source tree are present.
17891 test -d "$srcdir/$ac_dir" ||
continue
17893 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17894 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17895 $as_echo "$ac_msg" >&6
17896 as_dir
="$ac_dir"; as_fn_mkdir_p
17900 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17902 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17903 # A ".." for each directory in $ac_dir_suffix.
17904 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17905 case $ac_top_builddir_sub in
17906 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17907 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17910 ac_abs_top_builddir
=$ac_pwd
17911 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17912 # for backward compatibility:
17913 ac_top_builddir
=$ac_top_build_prefix
17916 .
) # We are building in place.
17918 ac_top_srcdir
=$ac_top_builddir_sub
17919 ac_abs_top_srcdir
=$ac_pwd ;;
17920 [\\/]* | ?
:[\\/]* ) # Absolute name.
17921 ac_srcdir
=$srcdir$ac_dir_suffix;
17922 ac_top_srcdir
=$srcdir
17923 ac_abs_top_srcdir
=$srcdir ;;
17924 *) # Relative name.
17925 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17926 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17927 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17929 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17934 # Check for guested configure; otherwise get Cygnus style configure.
17935 if test -f "$ac_srcdir/configure.gnu"; then
17936 ac_sub_configure
=$ac_srcdir/configure.gnu
17937 elif test -f "$ac_srcdir/configure"; then
17938 ac_sub_configure
=$ac_srcdir/configure
17939 elif test -f "$ac_srcdir/configure.in"; then
17940 # This should be Cygnus configure.
17941 ac_sub_configure
=$ac_aux_dir/configure
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17944 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17948 # The recursion is here.
17949 if test -n "$ac_sub_configure"; then
17950 # Make the cache file name correct relative to the subdirectory.
17951 case $cache_file in
17952 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
17953 *) # Relative name.
17954 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
17957 { $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
17958 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17959 # The eval makes quoting arguments work.
17960 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17961 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17962 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17968 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
17969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17970 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}