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
670 READLINE_TEXI_INCFLAG
701 INSTALL_STRIP_PROGRAM
724 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
760 NEXT_AS_FIRST_DIRECTIVE_STRING_H
762 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
832 UINT64_MAX_EQ_ULONG_MAX
833 UINT32_MAX_LT_UINTMAX_MAX
834 INT64_MAX_EQ_LONG_MAX
835 INT32_MAX_LT_INTMAX_MAX
837 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
856 HAVE_SIGNED_SIG_ATOMIC_T
859 BITSIZEOF_SIG_ATOMIC_T
862 APPLE_UNIVERSAL_BUILD
866 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
869 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
873 HAVE_UNSIGNED_LONG_LONG_INT
875 GL_COND_LIBTOOL_FALSE
920 MAINTAINER_MODE_FALSE
949 program_transform_name
960 ac_subst_files
='host_makefile_frag'
962 enable_option_checking
963 enable_maintainer_mode
966 enable_dependency_tracking
967 with_separate_debug_dir
969 with_relocated_sources
970 with_auto_load_safe_path
996 enable_build_warnings
997 enable_gdb_build_warnings
1005 ac_precious_vars
='build_alias
1019 ac_subdirs_all
='testsuite
1024 # Initialize some variables set by options.
1026 ac_init_version
=false
1027 ac_unrecognized_opts
=
1028 ac_unrecognized_sep
=
1029 # The variables have the same names as the options, with
1030 # dashes changed to underlines.
1031 cache_file
=/dev
/null
1038 program_transform_name
=s
,x
,x
,
1046 # Installation directory options.
1047 # These are left unexpanded so users can "make install exec_prefix=/foo"
1048 # and all the variables that are supposed to be based on exec_prefix
1049 # by default will actually change.
1050 # Use braces instead of parens because sh, perl, etc. also accept them.
1051 # (The list follows the same order as the GNU Coding Standards.)
1052 bindir
='${exec_prefix}/bin'
1053 sbindir
='${exec_prefix}/sbin'
1054 libexecdir
='${exec_prefix}/libexec'
1055 datarootdir
='${prefix}/share'
1056 datadir
='${datarootdir}'
1057 sysconfdir
='${prefix}/etc'
1058 sharedstatedir
='${prefix}/com'
1059 localstatedir
='${prefix}/var'
1060 includedir
='${prefix}/include'
1061 oldincludedir
='/usr/include'
1062 docdir
='${datarootdir}/doc/${PACKAGE}'
1063 infodir
='${datarootdir}/info'
1068 libdir
='${exec_prefix}/lib'
1069 localedir
='${datarootdir}/locale'
1070 mandir
='${datarootdir}/man'
1076 # If the previous option needs an argument, assign it.
1077 if test -n "$ac_prev"; then
1078 eval $ac_prev=\
$ac_option
1084 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1088 # Accept the important Cygnus configure options, so we can diagnose typos.
1090 case $ac_dashdash$ac_option in
1094 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1096 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1097 bindir
=$ac_optarg ;;
1099 -build |
--build |
--buil |
--bui |
--bu)
1100 ac_prev
=build_alias
;;
1101 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1102 build_alias
=$ac_optarg ;;
1104 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1105 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1106 ac_prev
=cache_file
;;
1107 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1108 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1109 cache_file
=$ac_optarg ;;
1111 --config-cache |
-C)
1112 cache_file
=config.cache
;;
1114 -datadir |
--datadir |
--datadi |
--datad)
1116 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1117 datadir
=$ac_optarg ;;
1119 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1120 |
--dataroo |
--dataro |
--datar)
1121 ac_prev
=datarootdir
;;
1122 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1123 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1124 datarootdir
=$ac_optarg ;;
1126 -disable-* |
--disable-*)
1127 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1130 as_fn_error
"invalid feature name: $ac_useropt"
1131 ac_useropt_orig
=$ac_useropt
1132 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1135 "enable_
$ac_useropt"
1137 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1138 ac_unrecognized_sep
=', ';;
1140 eval enable_
$ac_useropt=no
;;
1142 -docdir |
--docdir |
--docdi |
--doc |
--do)
1144 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1145 docdir
=$ac_optarg ;;
1147 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1149 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1150 dvidir
=$ac_optarg ;;
1152 -enable-* |
--enable-*)
1153 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1156 as_fn_error
"invalid feature name: $ac_useropt"
1157 ac_useropt_orig
=$ac_useropt
1158 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159 case $ac_user_opts in
1161 "enable_
$ac_useropt"
1163 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1164 ac_unrecognized_sep
=', ';;
1166 eval enable_
$ac_useropt=\
$ac_optarg ;;
1168 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1169 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1170 |
--exec |
--exe |
--ex)
1171 ac_prev
=exec_prefix
;;
1172 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1173 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1174 |
--exec=* |
--exe=* |
--ex=*)
1175 exec_prefix
=$ac_optarg ;;
1177 -gas |
--gas |
--ga |
--g)
1178 # Obsolete; use --with-gas.
1181 -help |
--help |
--hel |
--he |
-h)
1182 ac_init_help
=long
;;
1183 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1184 ac_init_help
=recursive
;;
1185 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1186 ac_init_help
=short
;;
1188 -host |
--host |
--hos |
--ho)
1189 ac_prev
=host_alias
;;
1190 -host=* |
--host=* |
--hos=* |
--ho=*)
1191 host_alias
=$ac_optarg ;;
1193 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1195 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1197 htmldir
=$ac_optarg ;;
1199 -includedir |
--includedir |
--includedi |
--included |
--include \
1200 |
--includ |
--inclu |
--incl |
--inc)
1201 ac_prev
=includedir
;;
1202 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1203 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1204 includedir
=$ac_optarg ;;
1206 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1208 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1209 infodir
=$ac_optarg ;;
1211 -libdir |
--libdir |
--libdi |
--libd)
1213 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1214 libdir
=$ac_optarg ;;
1216 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1217 |
--libexe |
--libex |
--libe)
1218 ac_prev
=libexecdir
;;
1219 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1220 |
--libexe=* |
--libex=* |
--libe=*)
1221 libexecdir
=$ac_optarg ;;
1223 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1224 ac_prev
=localedir
;;
1225 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1226 localedir
=$ac_optarg ;;
1228 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1229 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1230 ac_prev
=localstatedir
;;
1231 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1232 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1233 localstatedir
=$ac_optarg ;;
1235 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1237 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1238 mandir
=$ac_optarg ;;
1240 -nfp |
--nfp |
--nf)
1241 # Obsolete; use --without-fp.
1244 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1245 |
--no-cr |
--no-c |
-n)
1248 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1249 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1252 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1253 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1254 |
--oldin |
--oldi |
--old |
--ol |
--o)
1255 ac_prev
=oldincludedir
;;
1256 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1257 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1258 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1259 oldincludedir
=$ac_optarg ;;
1261 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1263 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1264 prefix
=$ac_optarg ;;
1266 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1267 |
--program-pre |
--program-pr |
--program-p)
1268 ac_prev
=program_prefix
;;
1269 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1270 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1271 program_prefix
=$ac_optarg ;;
1273 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1274 |
--program-suf |
--program-su |
--program-s)
1275 ac_prev
=program_suffix
;;
1276 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1277 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1278 program_suffix
=$ac_optarg ;;
1280 -program-transform-name |
--program-transform-name \
1281 |
--program-transform-nam |
--program-transform-na \
1282 |
--program-transform-n |
--program-transform- \
1283 |
--program-transform |
--program-transfor \
1284 |
--program-transfo |
--program-transf \
1285 |
--program-trans |
--program-tran \
1286 |
--progr-tra |
--program-tr |
--program-t)
1287 ac_prev
=program_transform_name
;;
1288 -program-transform-name=* |
--program-transform-name=* \
1289 |
--program-transform-nam=* |
--program-transform-na=* \
1290 |
--program-transform-n=* |
--program-transform-=* \
1291 |
--program-transform=* |
--program-transfor=* \
1292 |
--program-transfo=* |
--program-transf=* \
1293 |
--program-trans=* |
--program-tran=* \
1294 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1295 program_transform_name
=$ac_optarg ;;
1297 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1299 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1300 pdfdir
=$ac_optarg ;;
1302 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1304 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1307 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1308 |
-silent |
--silent |
--silen |
--sile |
--sil)
1311 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1313 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1315 sbindir
=$ac_optarg ;;
1317 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1318 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1319 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1321 ac_prev
=sharedstatedir
;;
1322 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1323 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1324 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1326 sharedstatedir
=$ac_optarg ;;
1328 -site |
--site |
--sit)
1330 -site=* |
--site=* |
--sit=*)
1333 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1335 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1336 srcdir
=$ac_optarg ;;
1338 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1339 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1340 ac_prev
=sysconfdir
;;
1341 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1342 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1343 sysconfdir
=$ac_optarg ;;
1345 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1346 ac_prev
=target_alias
;;
1347 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1348 target_alias
=$ac_optarg ;;
1350 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1353 -version |
--version |
--versio |
--versi |
--vers |
-V)
1354 ac_init_version
=: ;;
1357 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1358 # Reject names that are not valid shell variable names.
1359 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1360 as_fn_error
"invalid package name: $ac_useropt"
1361 ac_useropt_orig
=$ac_useropt
1362 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1363 case $ac_user_opts in
1367 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1368 ac_unrecognized_sep
=', ';;
1370 eval with_
$ac_useropt=\
$ac_optarg ;;
1372 -without-* |
--without-*)
1373 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1374 # Reject names that are not valid shell variable names.
1375 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1376 as_fn_error
"invalid package name: $ac_useropt"
1377 ac_useropt_orig
=$ac_useropt
1378 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1379 case $ac_user_opts in
1383 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1384 ac_unrecognized_sep
=', ';;
1386 eval with_
$ac_useropt=no
;;
1389 # Obsolete; use --with-x.
1392 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1393 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1394 ac_prev
=x_includes
;;
1395 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1396 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1397 x_includes
=$ac_optarg ;;
1399 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1400 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1401 ac_prev
=x_libraries
;;
1402 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1403 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1404 x_libraries
=$ac_optarg ;;
1406 -*) as_fn_error
"unrecognized option: \`$ac_option'
1407 Try \`$0 --help' for more information."
1411 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1412 # Reject names that are not valid shell variable names.
1413 case $ac_envvar in #(
1414 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1415 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1417 eval $ac_envvar=\
$ac_optarg
1418 export $ac_envvar ;;
1421 # FIXME: should be removed in autoconf 3.0.
1422 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1423 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1424 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1425 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1431 if test -n "$ac_prev"; then
1432 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1433 as_fn_error
"missing argument to $ac_option"
1436 if test -n "$ac_unrecognized_opts"; then
1437 case $enable_option_checking in
1439 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1440 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1444 # Check all directory arguments for consistency.
1445 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1446 datadir sysconfdir sharedstatedir localstatedir includedir \
1447 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1448 libdir localedir mandir
1450 eval ac_val
=\$
$ac_var
1451 # Remove trailing slashes.
1454 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1455 eval $ac_var=\
$ac_val;;
1457 # Be sure to have absolute directory names.
1459 [\\/$
]* | ?
:[\\/]* ) continue;;
1460 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1462 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1465 # There might be people who depend on the old broken behavior: `$host'
1466 # used to hold the argument of --host etc.
1467 # FIXME: To remove some day.
1470 target
=$target_alias
1472 # FIXME: To remove some day.
1473 if test "x$host_alias" != x
; then
1474 if test "x$build_alias" = x
; then
1475 cross_compiling
=maybe
1476 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1477 If a cross compiler is detected then cross compile mode will be used." >&2
1478 elif test "x$build_alias" != "x$host_alias"; then
1484 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1486 test "$silent" = yes && exec 6>/dev
/null
1489 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1490 ac_ls_di
=`ls -di .` &&
1491 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1492 as_fn_error
"working directory cannot be determined"
1493 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1494 as_fn_error
"pwd does not report name of working directory"
1497 # Find the source files, if location was not specified.
1498 if test -z "$srcdir"; then
1499 ac_srcdir_defaulted
=yes
1500 # Try the directory containing this script, then the parent directory.
1501 ac_confdir
=`$as_dirname -- "$as_myself" ||
1502 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1503 X"$as_myself" : 'X\(//\)[^/]' \| \
1504 X"$as_myself" : 'X\(//\)$' \| \
1505 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1506 $as_echo X"$as_myself" |
1507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1525 if test ! -r "$srcdir/$ac_unique_file"; then
1529 ac_srcdir_defaulted
=no
1531 if test ! -r "$srcdir/$ac_unique_file"; then
1532 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1533 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1535 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1537 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1539 # When building in place, set srcdir=.
1540 if test "$ac_abs_confdir" = "$ac_pwd"; then
1543 # Remove unnecessary trailing slashes from srcdir.
1544 # Double slashes in file names in object file debugging info
1545 # mess up M-x gdb in Emacs.
1547 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1549 for ac_var
in $ac_precious_vars; do
1550 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1551 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1552 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1553 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1557 # Report the --help message.
1559 if test "$ac_init_help" = "long"; then
1560 # Omit some internal or obsolete options to make the list less imposing.
1561 # This message is too long to be a string in the A/UX 3.1 sh.
1563 \`configure' configures this package to adapt to many kinds of systems.
1565 Usage: $0 [OPTION]... [VAR=VALUE]...
1567 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1568 VAR=VALUE. See below for descriptions of some of the useful variables.
1570 Defaults for the options are specified in brackets.
1573 -h, --help display this help and exit
1574 --help=short display options specific to this package
1575 --help=recursive display the short help of all the included packages
1576 -V, --version display version information and exit
1577 -q, --quiet, --silent do not print \`checking...' messages
1578 --cache-file=FILE cache test results in FILE [disabled]
1579 -C, --config-cache alias for \`--cache-file=config.cache'
1580 -n, --no-create do not create output files
1581 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1583 Installation directories:
1584 --prefix=PREFIX install architecture-independent files in PREFIX
1585 [$ac_default_prefix]
1586 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1589 By default, \`make install' will install all the files in
1590 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1591 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1592 for instance \`--prefix=\$HOME'.
1594 For better control, use the options below.
1596 Fine tuning of the installation directories:
1597 --bindir=DIR user executables [EPREFIX/bin]
1598 --sbindir=DIR system admin executables [EPREFIX/sbin]
1599 --libexecdir=DIR program executables [EPREFIX/libexec]
1600 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1601 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1602 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1603 --libdir=DIR object code libraries [EPREFIX/lib]
1604 --includedir=DIR C header files [PREFIX/include]
1605 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1606 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1607 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1608 --infodir=DIR info documentation [DATAROOTDIR/info]
1609 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1610 --mandir=DIR man documentation [DATAROOTDIR/man]
1611 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1612 --htmldir=DIR html documentation [DOCDIR]
1613 --dvidir=DIR dvi documentation [DOCDIR]
1614 --pdfdir=DIR pdf documentation [DOCDIR]
1615 --psdir=DIR ps documentation [DOCDIR]
1621 --program-prefix=PREFIX prepend PREFIX to installed program names
1622 --program-suffix=SUFFIX append SUFFIX to installed program names
1623 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1626 --x-includes=DIR X include files are
in DIR
1627 --x-libraries=DIR X library files are
in DIR
1630 --build=BUILD configure
for building on BUILD
[guessed
]
1631 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1632 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1636 if test -n "$ac_init_help"; then
1641 --disable-option-checking ignore unrecognized
--enable/--with options
1642 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1643 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1644 --enable-maintainer-mode enable make rules and dependencies not useful
1645 (and sometimes confusing
) to the casual installer
1646 --enable-plugins Enable support
for plugins
(defaults no
)
1647 --disable-largefile omit support
for large files
1648 --disable-dependency-tracking speeds up one-time build
1649 --enable-dependency-tracking do not reject slow dependency extractors
1650 --enable-targets=TARGETS
1651 alternative target configurations
1652 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1653 --disable-gdbcli disable command-line interface
(CLI
)
1654 --disable-gdbmi disable machine-interface
(MI
)
1655 --enable-tui enable full-screen terminal user interface
(TUI
)
1656 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1657 --enable-profiling enable profiling of GDB
1658 --disable-rpath do not hardcode runtime library paths
1659 --enable-werror treat compile warnings as errors
1660 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1661 --enable-gdb-build-warnings
1662 enable GDB specific build-time compiler warnings
if
1664 --enable-sim link gdb with simulator
1665 --enable-multi-ice build the multi-ice-gdb-server
1666 --enable-gdbserver automatically build gdbserver
(yes
/no
/auto
, default
1670 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1671 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1672 --with-separate-debug-dir=PATH
1673 look for global separate debug info
in this path
1675 --with-gdb-datadir=PATH
look for global separate data files
in this path
1677 --with-relocated-sources=PATH
1678 automatically relocate this path
for source files
1679 --with-auto-load-safe-path=PATH
1680 directories safe to hold auto-loaded files
1681 --without-auto-load-safe-path
1682 do not restrict auto-loaded files locations
1683 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1684 --with-curses use the curses library instead of the termcap
1686 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1687 --with-bugurl=URL Direct users to URL to report a bug
1688 --with-zlib include zlib support
(auto
/yes
/no
) default
=auto
1689 --with-libiconv-prefix=DIR
1690 search
for libiconv
in DIR
/include and DIR
/lib
1691 --with-iconv-bin=PATH specify where to
find the
iconv program
1692 --with-system-readline use installed readline library
1693 --with-jit-reader-dir=PATH
1694 directory to load the JIT readers from
1695 --with-expat include expat support
(auto
/yes
/no
)
1696 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1697 --with-libexpat-prefix[=DIR
] search
for libexpat
in DIR
/include and DIR
/lib
1698 --without-libexpat-prefix don
't search for libexpat in includedir and libdir
1699 --with-python[=PYTHON] include python support
1700 (auto/yes/no/<python-program>)
1701 --without-included-regex
1702 don't use included regex
; this is the default on
1703 systems with version
2 of the GNU C library
(use
1704 with caution on other system
)
1705 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1706 --with-system-gdbinit=PATH
1707 automatically load a system-wide gdbinit
file
1708 --with-tcl directory containing tcl configuration
(tclConfig.sh
)
1709 --with-tk directory containing tk configuration
(tkConfig.sh
)
1710 --with-x use the X Window System
1712 Some influential environment variables
:
1713 CC C compiler
command
1714 CFLAGS C compiler flags
1715 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1716 nonstandard directory
<lib dir
>
1717 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1718 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1719 you have headers
in a nonstandard directory
<include dir
>
1721 MAKEINFO Parent configure detects
if it is of sufficient version.
1723 Parameters
for MAKEINFO.
1724 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1725 the first program found out of: `bison
-y', `byacc', `yacc'.
1726 YFLAGS The list of arguments that will be passed by default to $YACC.
1727 This script will default YFLAGS to the empty string to avoid a
1728 default value of `-d' given by some make applications.
1729 XMKMF Path to xmkmf, Makefile generator for X Window System
1731 Use these variables to override the choices made by `configure' or to
help
1732 it to
find libraries and programs with nonstandard names
/locations.
1734 Report bugs to the package provider.
1739 if test "$ac_init_help" = "recursive"; then
1740 # If there are subdirs, report their specific --help.
1741 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1742 test -d "$ac_dir" ||
1743 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1748 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1750 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1751 # A ".." for each directory in $ac_dir_suffix.
1752 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1753 case $ac_top_builddir_sub in
1754 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1755 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1758 ac_abs_top_builddir
=$ac_pwd
1759 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1760 # for backward compatibility:
1761 ac_top_builddir
=$ac_top_build_prefix
1764 .
) # We are building in place.
1766 ac_top_srcdir
=$ac_top_builddir_sub
1767 ac_abs_top_srcdir
=$ac_pwd ;;
1768 [\\/]* | ?
:[\\/]* ) # Absolute name.
1769 ac_srcdir
=$srcdir$ac_dir_suffix;
1770 ac_top_srcdir
=$srcdir
1771 ac_abs_top_srcdir
=$srcdir ;;
1773 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1774 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1775 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1777 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1779 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1780 # Check for guested configure.
1781 if test -f "$ac_srcdir/configure.gnu"; then
1783 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1784 elif test -f "$ac_srcdir/configure"; then
1786 $SHELL "$ac_srcdir/configure" --help=recursive
1788 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1790 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1794 test -n "$ac_init_help" && exit $ac_status
1795 if $ac_init_version; then
1798 generated by GNU Autoconf
2.64
1800 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1801 This configure
script is free software
; the Free Software Foundation
1802 gives unlimited permission to copy
, distribute and modify it.
1807 ## ------------------------ ##
1808 ## Autoconf initialization. ##
1809 ## ------------------------ ##
1811 # ac_fn_c_try_compile LINENO
1812 # --------------------------
1813 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1814 ac_fn_c_try_compile
()
1816 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1817 rm -f conftest.
$ac_objext
1818 if { { ac_try
="$ac_compile"
1820 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_compile") 2>conftest.err
1827 if test -s conftest.err; then
1828 grep -v '^ *+' conftest.err >conftest.er1
1829 cat conftest.er1 >&5
1830 mv -f conftest.er1 conftest.err
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } && {
1834 test -z "$ac_c_werror_flag" ||
1835 test ! -s conftest.err
1836 } && test -s conftest.$ac_objext; then :
1839 $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1844 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847 } # ac_fn_c_try_compile
1849 # ac_fn_c_try_cpp LINENO
1850 # ----------------------
1851 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 if { { ac_try="$ac_cpp conftest.$ac_ext"
1857 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1858 *) ac_try_echo
=$ac_try;;
1860 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1864 if test -s conftest.err
; then
1865 grep -v '^ *+' conftest.err
>conftest.er1
1866 cat conftest.er1
>&5
1867 mv -f conftest.er1 conftest.err
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; } >/dev
/null
&& {
1871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1872 test ! -s conftest.err
1876 $as_echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.
$ac_ext >&5
1881 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1886 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1887 # -------------------------------------------------------
1888 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1889 # the include files in INCLUDES and setting the cache variable VAR
1891 ac_fn_c_check_header_mongrel
()
1893 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1894 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896 $as_echo_n "checking for $2... " >&6; }
1897 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1898 $as_echo_n "(cached) " >&6
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1904 # Is the header compilable?
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1906 $as_echo_n "checking $2 usability... " >&6; }
1907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h. */
1912 if ac_fn_c_try_compile
"$LINENO"; then :
1913 ac_header_compiler
=yes
1915 ac_header_compiler
=no
1917 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1919 $as_echo "$ac_header_compiler" >&6; }
1921 # Is the header present?
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1923 $as_echo_n "checking $2 presence... " >&6; }
1924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1928 if ac_fn_c_try_cpp
"$LINENO"; then :
1929 ac_header_preproc
=yes
1931 ac_header_preproc
=no
1933 rm -f conftest.err conftest.
$ac_ext
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1935 $as_echo "$ac_header_preproc" >&6; }
1937 # So? What about this header?
1938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1941 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1943 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1947 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1949 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1951 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1953 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1955 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1961 $as_echo_n "(cached) " >&6
1963 eval "$3=\$ac_header_compiler"
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967 $as_echo "$ac_res" >&6; }
1969 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1971 } # ac_fn_c_check_header_mongrel
1973 # ac_fn_c_try_run LINENO
1974 # ----------------------
1975 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1976 # that executables *can* be run.
1979 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1980 if { { ac_try
="$ac_link"
1982 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1983 *) ac_try_echo=$ac_try;;
1985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1986 $as_echo "$ac_try_echo"; } >&5
1987 (eval "$ac_link") 2>&5
1989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1990 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1991 { { case "(($ac_try" in
1992 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1993 *) ac_try_echo
=$ac_try;;
1995 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996 $as_echo "$ac_try_echo"; } >&5
1997 (eval "$ac_try") 2>&5
1999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000 test $ac_status = 0; }; }; then :
2003 $as_echo "$as_me: program exited with status $ac_status" >&5
2004 $as_echo "$as_me: failed program was:" >&5
2005 sed 's/^/| /' conftest.
$ac_ext >&5
2007 ac_retval
=$ac_status
2009 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2010 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2015 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2016 # -------------------------------------------------------
2017 # Tests whether HEADER exists and can be compiled using the include files in
2018 # INCLUDES, setting the cache variable VAR accordingly.
2019 ac_fn_c_check_header_compile
()
2021 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2023 $as_echo_n "checking for $2... " >&6; }
2024 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2025 $as_echo_n "(cached) " >&6
2027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2032 if ac_fn_c_try_compile
"$LINENO"; then :
2037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041 $as_echo "$ac_res" >&6; }
2042 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2044 } # ac_fn_c_check_header_compile
2046 # ac_fn_c_try_link LINENO
2047 # -----------------------
2048 # Try to link conftest.$ac_ext, and return whether this succeeded.
2051 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2052 rm -f conftest.
$ac_objext conftest
$ac_exeext
2053 if { { ac_try
="$ac_link"
2055 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2056 *) ac_try_echo=$ac_try;;
2058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2059 $as_echo "$ac_try_echo"; } >&5
2060 (eval "$ac_link") 2>conftest.err
2062 if test -s conftest.err; then
2063 grep -v '^ *+' conftest.err >conftest.er1
2064 cat conftest.er1 >&5
2065 mv -f conftest.er1 conftest.err
2067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2068 test $ac_status = 0; } && {
2069 test -z "$ac_c_werror_flag" ||
2070 test ! -s conftest.err
2071 } && test -s conftest$ac_exeext && {
2072 test "$cross_compiling" = yes ||
2073 $as_test_x conftest$ac_exeext
2077 $as_echo "$as_me: failed program was:" >&5
2078 sed 's/^/| /' conftest.$ac_ext >&5
2082 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2083 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2084 # interfere with the next link command; also delete a directory that is
2085 # left behind by Apple's compiler. We do this before executing the actions.
2086 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2087 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2090 } # ac_fn_c_try_link
2092 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2093 # --------------------------------------------
2094 # Tries to find the compile-time value of EXPR in a program that includes
2095 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2097 ac_fn_c_compute_int ()
2099 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2100 if test "$cross_compiling" = yes; then
2101 # Depending upon the size, compute the lo and hi bounds.
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h. */
2108 static int test_array [1 - 2 * !(($2) >= 0)];
2115 if ac_fn_c_try_compile "$LINENO"; then :
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2124 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2131 if ac_fn_c_try_compile "$LINENO"; then :
2132 ac_hi=$ac_mid; break
2134 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2135 if test $ac_lo -le $ac_mid; then
2139 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h. */
2150 static int test_array [1 - 2 * !(($2) < 0)];
2157 if ac_fn_c_try_compile "$LINENO"; then :
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2166 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2173 if ac_fn_c_try_compile "$LINENO"; then :
2174 ac_lo=$ac_mid; break
2176 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2177 if test $ac_mid -le $ac_hi; then
2181 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2191 # Binary search between lo and hi bounds.
2192 while test "x$ac_lo" != "x$ac_hi"; do
2193 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2200 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2207 if ac_fn_c_try_compile "$LINENO"; then :
2210 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2215 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2220 /* end confdefs.h. */
2222 static long int longval () { return $2; }
2223 static unsigned long int ulongval () { return $2; }
2230 FILE *f = fopen ("conftest.val", "w");
2235 long int i = longval ();
2238 fprintf (f, "%ld", i);
2242 unsigned long int i = ulongval ();
2245 fprintf (f, "%lu", i);
2247 /* Do not output a trailing newline, as this causes \r\n confusion
2248 on some platforms. */
2249 return ferror (f) || fclose (f) != 0;
2255 if ac_fn_c_try_run "$LINENO"; then :
2256 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2261 conftest.$ac_objext conftest.beam conftest.$ac_ext
2265 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2268 } # ac_fn_c_compute_int
2270 # ac_fn_c_check_decl LINENO SYMBOL VAR
2271 # ------------------------------------
2272 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2273 ac_fn_c_check_decl ()
2275 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2276 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2277 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2279 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2280 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2281 $as_echo_n "(cached) " >&6
2283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h. */
2289 #ifndef $as_decl_name
2291 (void) $as_decl_use;
2293 (void) $as_decl_name;
2301 if ac_fn_c_try_compile "$LINENO"; then :
2306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2310 $as_echo "$ac_res" >&6; }
2311 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2313 } # ac_fn_c_check_decl
2315 # ac_fn_c_check_func LINENO FUNC VAR
2316 # ----------------------------------
2317 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2318 ac_fn_c_check_func ()
2320 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2322 $as_echo_n "checking for $2... " >&6; }
2323 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2324 $as_echo_n "(cached) " >&6
2326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327 /* end confdefs.h. */
2328 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2330 #define $2 innocuous_$2
2332 /* System header to define __stub macros and hopefully few prototypes,
2333 which can conflict with char $2 (); below.
2334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2335 <limits.h> exists even on freestanding compilers. */
2338 # include <limits.h>
2340 # include <assert.h>
2345 /* Override any GCC internal prototype to avoid an error.
2346 Use char because int might match the return type of a GCC
2347 builtin and then its argument prototype would still apply. */
2352 /* The GNU C library defines this for functions which it implements
2353 to always fail with ENOSYS. Some functions are actually named
2354 something starting with __ and the normal name is an alias. */
2355 #if defined __stub_$2 || defined __stub___$2
2367 if ac_fn_c_try_link "$LINENO"; then :
2372 rm -f core conftest.err conftest.$ac_objext \
2373 conftest$ac_exeext conftest.$ac_ext
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2377 $as_echo "$ac_res" >&6; }
2378 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2380 } # ac_fn_c_check_func
2382 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2383 # ----------------------------------------------------
2384 # Tries to find if the field MEMBER exists in type AGGR, after including
2385 # INCLUDES, setting cache variable VAR accordingly.
2386 ac_fn_c_check_member ()
2388 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2390 $as_echo_n "checking for $2.$3... " >&6; }
2391 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2392 $as_echo_n "(cached) " >&6
2394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2395 /* end confdefs.h. */
2407 if ac_fn_c_try_compile "$LINENO"; then :
2410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411 /* end confdefs.h. */
2417 if (sizeof ac_aggr.$3)
2423 if ac_fn_c_try_compile "$LINENO"; then :
2428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2434 $as_echo "$ac_res" >&6; }
2435 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2437 } # ac_fn_c_check_member
2439 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2440 # -------------------------------------------
2441 # Tests whether TYPE exists after having included INCLUDES, setting cache
2442 # variable VAR accordingly.
2443 ac_fn_c_check_type ()
2445 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2447 $as_echo_n "checking for $2... " >&6; }
2448 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2449 $as_echo_n "(cached) " >&6
2452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2453 /* end confdefs.h. */
2464 if ac_fn_c_try_compile "$LINENO"; then :
2465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2466 /* end confdefs.h. */
2477 if ac_fn_c_try_compile "$LINENO"; then :
2482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2488 $as_echo "$ac_res" >&6; }
2489 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2491 } # ac_fn_c_check_type
2492 cat >config.log <<_ACEOF
2493 This file contains any messages produced by compilers while
2494 running configure, to aid debugging if configure makes a mistake.
2496 It was created by $as_me, which was
2497 generated by GNU Autoconf 2.64. Invocation command line was
2509 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2510 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2511 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2512 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2513 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2515 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2516 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2518 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2519 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2520 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2521 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2522 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2523 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2524 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 test -z "$as_dir" && as_dir=.
2533 $as_echo "PATH: $as_dir"
2549 # Keep a trace of the command line.
2550 # Strip out --no-create and --no-recursion so they do not pile up.
2551 # Strip out --silent because we don't want to record it for future runs.
2552 # Also quote any args containing shell meta-characters.
2553 # Make two passes to allow for proper duplicate-argument suppression.
2557 ac_must_keep_next=false
2563 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2564 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2565 | -silent | --silent | --silen | --sile | --sil)
2568 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2571 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2573 as_fn_append ac_configure_args1 " '$ac_arg'"
2574 if test $ac_must_keep_next = true; then
2575 ac_must_keep_next=false # Got value, back to normal.
2578 *=* | --config-cache | -C | -disable-* | --disable-* \
2579 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2580 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2581 | -with-* | --with-* | -without-* | --without-* | --x)
2582 case "$ac_configure_args0 " in
2583 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2586 -* ) ac_must_keep_next=true ;;
2589 as_fn_append ac_configure_args " '$ac_arg'"
2594 { ac_configure_args0=; unset ac_configure_args0;}
2595 { ac_configure_args1=; unset ac_configure_args1;}
2597 # When interrupted or exit'd, cleanup temporary files, and complete
2598 # config.log. We remove comments because anyway the quotes in there
2599 # would cause problems or look ugly.
2600 # WARNING: Use '\'' to represent an apostrophe within the trap.
2601 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2602 trap 'exit_status=$?
2603 # Save into config.log some information that might help in debugging.
2608 ## ---------------- ##
2609 ## Cache variables. ##
2610 ## ---------------- ##
2613 # The following way of writing the cache mishandles newlines in values,
2615 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2616 eval ac_val=\$$ac_var
2620 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2621 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2624 _ | IFS | as_nl) ;; #(
2625 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2626 *) { eval $ac_var=; unset $ac_var;} ;;
2631 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2632 *${as_nl}ac_space=\ *)
2634 "s/'\''/'\''\\\\'\'''\''/g;
2635 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2638 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2646 ## ----------------- ##
2647 ## Output variables. ##
2648 ## ----------------- ##
2651 for ac_var in $ac_subst_vars
2653 eval ac_val=\$$ac_var
2655 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2657 $as_echo "$ac_var='\''$ac_val'\''"
2661 if test -n "$ac_subst_files"; then
2663 ## ------------------- ##
2664 ## File substitutions. ##
2665 ## ------------------- ##
2668 for ac_var in $ac_subst_files
2670 eval ac_val=\$$ac_var
2672 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2674 $as_echo "$ac_var='\''$ac_val'\''"
2679 if test -s confdefs.h; then
2689 test "$ac_signal" != 0 &&
2690 $as_echo "$as_me: caught signal $ac_signal"
2691 $as_echo "$as_me: exit $exit_status"
2693 rm -f core *.core core.conftest.* &&
2694 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2697 for ac_signal in 1 2 13 15; do
2698 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2702 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2703 rm -f -r conftest* confdefs.h
2705 $as_echo "/* confdefs.h */" > confdefs.h
2707 # Predefined preprocessor variables.
2709 cat >>confdefs.h <<_ACEOF
2710 #define PACKAGE_NAME "$PACKAGE_NAME"
2713 cat >>confdefs.h <<_ACEOF
2714 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2717 cat >>confdefs.h <<_ACEOF
2718 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2721 cat >>confdefs.h <<_ACEOF
2722 #define PACKAGE_STRING "$PACKAGE_STRING"
2725 cat >>confdefs.h <<_ACEOF
2726 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2729 cat >>confdefs.h <<_ACEOF
2730 #define PACKAGE_URL "$PACKAGE_URL"
2734 # Let the site file select an alternate cache file if it wants to.
2735 # Prefer an explicitly selected file to automatically selected ones.
2738 if test -n "$CONFIG_SITE"; then
2739 ac_site_file1=$CONFIG_SITE
2740 elif test "x$prefix" != xNONE; then
2741 ac_site_file1=$prefix/share/config.site
2742 ac_site_file2=$prefix/etc/config.site
2744 ac_site_file1=$ac_default_prefix/share/config.site
2745 ac_site_file2=$ac_default_prefix/etc/config.site
2747 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2749 test "x$ac_site_file" = xNONE && continue
2750 if test -r "$ac_site_file"; then
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2752 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2753 sed 's/^/| /' "$ac_site_file" >&5
2758 if test -r "$cache_file"; then
2759 # Some versions of bash will fail to source /dev/null (special
2760 # files actually), so we avoid doing that.
2761 if test -f "$cache_file"; then
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2763 $as_echo "$as_me: loading cache $cache_file" >&6;}
2765 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2766 *) . "./$cache_file";;
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2771 $as_echo "$as_me: creating cache $cache_file" >&6;}
2775 gl_header_list="$gl_header_list stdint.h"
2776 gl_header_list="$gl_header_list wchar.h"
2777 gl_header_list="$gl_header_list inttypes.h"
2778 gl_header_list="$gl_header_list sys/mman.h"
2779 gl_func_list="$gl_func_list mprotect"
2780 gl_func_list="$gl_func_list memchr"
2781 gl_header_list="$gl_header_list stddef.h"
2782 gl_header_list="$gl_header_list string.h"
2783 # Check that the precious variables saved in the cache have kept the same
2785 ac_cache_corrupted=false
2786 for ac_var in $ac_precious_vars; do
2787 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2788 eval ac_new_set=\$ac_env_${ac_var}_set
2789 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2790 eval ac_new_val=\$ac_env_${ac_var}_value
2791 case $ac_old_set,$ac_new_set in
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2794 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2795 ac_cache_corrupted=: ;;
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2798 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2799 ac_cache_corrupted=: ;;
2802 if test "x$ac_old_val" != "x$ac_new_val"; then
2803 # differences in whitespace do not lead to failure.
2804 ac_old_val_w=`echo x
$ac_old_val`
2805 ac_new_val_w=`echo x
$ac_new_val`
2806 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2808 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2809 ac_cache_corrupted=:
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2812 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2813 eval $ac_var=\$ac_old_val
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2816 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2818 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2821 # Pass precious variables to config.status.
2822 if test "$ac_new_set" = set; then
2824 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2825 *) ac_arg=$ac_var=$ac_new_val ;;
2827 case " $ac_configure_args " in
2828 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2829 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2833 if $ac_cache_corrupted; then
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2837 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2838 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2840 ## -------------------- ##
2841 ## Main body of script. ##
2842 ## -------------------- ##
2845 ac_cpp='$CPP $CPPFLAGS'
2846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2854 ac_config_headers="$ac_config_headers config.h:config.in"
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2858 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2859 # Check whether --enable-maintainer-mode was given.
2860 if test "${enable_maintainer_mode+set}" = set; then :
2861 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2863 USE_MAINTAINER_MODE=no
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2867 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2868 if test $USE_MAINTAINER_MODE = yes; then
2869 MAINTAINER_MODE_TRUE=
2870 MAINTAINER_MODE_FALSE='#'
2872 MAINTAINER_MODE_TRUE='#'
2873 MAINTAINER_MODE_FALSE=
2876 MAINT=$MAINTAINER_MODE_TRUE
2881 ac_cpp='$CPP $CPPFLAGS'
2882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2885 if test -n "$ac_tool_prefix"; then
2886 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2887 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2889 $as_echo_n "checking for $ac_word... " >&6; }
2890 if test "${ac_cv_prog_CC+set}" = set; then :
2891 $as_echo_n "(cached) " >&6
2893 if test -n "$CC"; then
2894 ac_cv_prog_CC="$CC" # Let the user override the test.
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 test -z "$as_dir" && as_dir=.
2901 for ac_exec_ext in '' $ac_executable_extensions; do
2902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2903 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2914 if test -n "$CC"; then
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2916 $as_echo "$CC" >&6; }
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2919 $as_echo "no" >&6; }
2924 if test -z "$ac_cv_prog_CC"; then
2926 # Extract the first word of "gcc", so it can be a program name with args.
2927 set dummy gcc; ac_word=$2
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2929 $as_echo_n "checking for $ac_word... " >&6; }
2930 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2931 $as_echo_n "(cached) " >&6
2933 if test -n "$ac_ct_CC"; then
2934 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940 test -z "$as_dir" && as_dir=.
2941 for ac_exec_ext in '' $ac_executable_extensions; do
2942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2943 ac_cv_prog_ac_ct_CC="gcc"
2944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2953 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2954 if test -n "$ac_ct_CC"; then
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2956 $as_echo "$ac_ct_CC" >&6; }
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959 $as_echo "no" >&6; }
2962 if test "x$ac_ct_CC" = x; then
2965 case $cross_compiling:$ac_tool_warned in
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2969 ac_tool_warned=yes ;;
2977 if test -z "$CC"; then
2978 if test -n "$ac_tool_prefix"; then
2979 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2980 set dummy ${ac_tool_prefix}cc; ac_word=$2
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982 $as_echo_n "checking for $ac_word... " >&6; }
2983 if test "${ac_cv_prog_CC+set}" = set; then :
2984 $as_echo_n "(cached) " >&6
2986 if test -n "$CC"; then
2987 ac_cv_prog_CC="$CC" # Let the user override the test.
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2996 ac_cv_prog_CC="${ac_tool_prefix}cc"
2997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3007 if test -n "$CC"; then
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3009 $as_echo "$CC" >&6; }
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012 $as_echo "no" >&6; }
3018 if test -z "$CC"; then
3019 # Extract the first word of "cc", so it can be a program name with args.
3020 set dummy cc; ac_word=$2
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022 $as_echo_n "checking for $ac_word... " >&6; }
3023 if test "${ac_cv_prog_CC+set}" = set; then :
3024 $as_echo_n "(cached) " >&6
3026 if test -n "$CC"; then
3027 ac_cv_prog_CC="$CC" # Let the user override the test.
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 test -z "$as_dir" && as_dir=.
3035 for ac_exec_ext in '' $ac_executable_extensions; do
3036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3037 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3038 ac_prog_rejected=yes
3042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 if test $ac_prog_rejected = yes; then
3050 # We found a bogon in the path, so make sure we never use it.
3051 set dummy $ac_cv_prog_CC
3053 if test $# != 0; then
3054 # We chose a different compiler from the bogus one.
3055 # However, it has the same basename, so the bogon will be chosen
3056 # first if we set CC to just the basename; use the full file name.
3058 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3064 if test -n "$CC"; then
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3066 $as_echo "$CC" >&6; }
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069 $as_echo "no" >&6; }
3074 if test -z "$CC"; then
3075 if test -n "$ac_tool_prefix"; then
3076 for ac_prog in cl.exe
3078 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3079 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3081 $as_echo_n "checking for $ac_word... " >&6; }
3082 if test "${ac_cv_prog_CC+set}" = set; then :
3083 $as_echo_n "(cached) " >&6
3085 if test -n "$CC"; then
3086 ac_cv_prog_CC="$CC" # Let the user override the test.
3088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 test -z "$as_dir" && as_dir=.
3093 for ac_exec_ext in '' $ac_executable_extensions; do
3094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3095 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3106 if test -n "$CC"; then
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3108 $as_echo "$CC" >&6; }
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 $as_echo "no" >&6; }
3115 test -n "$CC" && break
3118 if test -z "$CC"; then
3120 for ac_prog in cl.exe
3122 # Extract the first word of "$ac_prog", so it can be a program name with args.
3123 set dummy $ac_prog; ac_word=$2
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3125 $as_echo_n "checking for $ac_word... " >&6; }
3126 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3127 $as_echo_n "(cached) " >&6
3129 if test -n "$ac_ct_CC"; then
3130 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136 test -z "$as_dir" && as_dir=.
3137 for ac_exec_ext in '' $ac_executable_extensions; do
3138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3139 ac_cv_prog_ac_ct_CC="$ac_prog"
3140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3150 if test -n "$ac_ct_CC"; then
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3152 $as_echo "$ac_ct_CC" >&6; }
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155 $as_echo "no" >&6; }
3159 test -n "$ac_ct_CC" && break
3162 if test "x$ac_ct_CC" = x; then
3165 case $cross_compiling:$ac_tool_warned in
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3169 ac_tool_warned=yes ;;
3178 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3180 as_fn_error "no acceptable C compiler found
in \
$PATH
3181 See \
`config.log' for more details." "$LINENO" 5; }
3183 # Provide some information about the compiler.
3184 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3187 for ac_option in --version -v -V -qversion; do
3188 { { ac_try="$ac_compiler $ac_option >&5"
3190 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3191 *) ac_try_echo
=$ac_try;;
3193 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3194 $as_echo "$ac_try_echo"; } >&5
3195 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3197 if test -s conftest.err
; then
3199 ... rest of stderr output deleted ...
3200 10q' conftest.err
>conftest.er1
3201 cat conftest.er1
>&5
3202 rm -f conftest.er1 conftest.err
3204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3205 test $ac_status = 0; }
3208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3209 /* end confdefs.h. */
3219 ac_clean_files_save
=$ac_clean_files
3220 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3221 # Try to create an executable without -o first, disregard a.out.
3222 # It will help us diagnose broken compilers, and finding out an intuition
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3225 $as_echo_n "checking for C compiler default output file name... " >&6; }
3226 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3228 # The possible output files:
3229 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3232 for ac_file
in $ac_files
3235 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3236 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3241 if { { ac_try
="$ac_link_default"
3243 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3244 *) ac_try_echo=$ac_try;;
3246 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3247 $as_echo "$ac_try_echo"; } >&5
3248 (eval "$ac_link_default") 2>&5
3250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3251 test $ac_status = 0; }; then :
3252 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3253 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3254 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3255 # so that the user can short-circuit this test for compilers unknown to
3257 for ac_file in $ac_files ''
3259 test -f "$ac_file" || continue
3261 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3264 # We found the default executable, but exeext='' is most
3268 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3270 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3272 # We set ac_cv_exeext here because the later test for it is not
3273 # safe: cross compilers may not add the suffix if given an `-o'
3274 # argument, so we may need to know it at that point already.
3275 # Even if this section looks crufty: it has the advantage of
3282 test "$ac_cv_exeext" = no && ac_cv_exeext=
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3288 $as_echo "$ac_file" >&6; }
3289 if test -z "$ac_file"; then :
3290 $as_echo "$as_me: failed program was:" >&5
3291 sed 's
/^
/|
/' conftest.$ac_ext >&5
3293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3294 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3295 { as_fn_set_status 77
3296 as_fn_error "C compiler cannot create executables
3297 See \`config.log
' for more details." "$LINENO" 5; }; }
3299 ac_exeext=$ac_cv_exeext
3301 # Check that the compiler produces executables we can run. If not, either
3302 # the compiler is broken, or we cross compile.
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3304 $as_echo_n "checking whether the C compiler works... " >&6; }
3305 # If not cross compiling, check that we can run a simple program.
3306 if test "$cross_compiling" != yes; then
3307 if { ac_try='.
/$ac_file'
3308 { { case "(($ac_try" in
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3313 $as_echo "$ac_try_echo"; } >&5
3314 (eval "$ac_try") 2>&5
3316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3317 test $ac_status = 0; }; }; then
3320 if test "$cross_compiling" = maybe; then
3323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3324 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3325 as_fn_error "cannot run C compiled programs.
3326 If you meant to cross compile, use \`--host'.
3327 See \`config.log' for more details.
" "$LINENO" 5; }
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
3332 $as_echo "yes" >&6; }
3334 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3335 ac_clean_files=$ac_clean_files_save
3336 # Check that the compiler produces executables we can run. If not, either
3337 # the compiler is broken, or we cross compile.
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
3339 $as_echo_n "checking whether we are cross compiling...
" >&6; }
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $cross_compiling" >&5
3341 $as_echo "$cross_compiling" >&6; }
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
3344 $as_echo_n "checking
for suffix of executables...
" >&6; }
3345 if { { ac_try="$ac_link"
3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348 *) ac_try_echo=$ac_try;;
3350 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3351 $as_echo "$ac_try_echo"; } >&5
3352 (eval "$ac_link") 2>&5
3354 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3355 test $ac_status = 0; }; then :
3356 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3357 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3358 # work properly (i.e., refer to `conftest.exe'), while it won't with
3360 for ac_file in conftest.exe conftest conftest.*; do
3361 test -f "$ac_file" || continue
3363 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3364 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3370 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3372 as_fn_error "cannot compute suffix of executables: cannot compile and link
3373 See \`config.log' for more details.
" "$LINENO" 5; }
3375 rm -f conftest$ac_cv_exeext
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
3377 $as_echo "$ac_cv_exeext" >&6; }
3379 rm -f conftest.$ac_ext
3380 EXEEXT=$ac_cv_exeext
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of object files
" >&5
3383 $as_echo_n "checking
for suffix of object files...
" >&6; }
3384 if test "${ac_cv_objext+set}" = set; then :
3385 $as_echo_n "(cached
) " >&6
3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388 /* end confdefs.h. */
3398 rm -f conftest.o conftest.obj
3399 if { { ac_try="$ac_compile"
3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402 *) ac_try_echo=$ac_try;;
3404 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3405 $as_echo "$ac_try_echo"; } >&5
3406 (eval "$ac_compile") 2>&5
3408 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3409 test $ac_status = 0; }; then :
3410 for ac_file in conftest.o conftest.obj conftest.*; do
3411 test -f "$ac_file" || continue;
3413 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3414 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3419 $as_echo "$as_me: failed program was
:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3424 as_fn_error "cannot compute suffix of object files: cannot compile
3425 See \`config.log' for more details.
" "$LINENO" 5; }
3427 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_objext" >&5
3430 $as_echo "$ac_cv_objext" >&6; }
3431 OBJEXT=$ac_cv_objext
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler
" >&5
3434 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3435 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3436 $as_echo_n "(cached
) " >&6
3438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3439 /* end confdefs.h. */
3452 if ac_fn_c_try_compile "$LINENO"; then :
3457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3458 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_compiler_gnu" >&5
3462 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3463 if test $ac_compiler_gnu = yes; then
3468 ac_test_CFLAGS=${CFLAGS+set}
3469 ac_save_CFLAGS=$CFLAGS
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC accepts
-g" >&5
3471 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3472 if test "${ac_cv_prog_cc_g+set}" = set; then :
3473 $as_echo_n "(cached
) " >&6
3475 ac_save_c_werror_flag=$ac_c_werror_flag
3476 ac_c_werror_flag=yes
3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h. */
3490 if ac_fn_c_try_compile "$LINENO"; then :
3494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495 /* end confdefs.h. */
3505 if ac_fn_c_try_compile "$LINENO"; then :
3508 ac_c_werror_flag=$ac_save_c_werror_flag
3510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3511 /* end confdefs.h. */
3521 if ac_fn_c_try_compile "$LINENO"; then :
3524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3529 ac_c_werror_flag=$ac_save_c_werror_flag
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_g" >&5
3532 $as_echo "$ac_cv_prog_cc_g" >&6; }
3533 if test "$ac_test_CFLAGS" = set; then
3534 CFLAGS=$ac_save_CFLAGS
3535 elif test $ac_cv_prog_cc_g = yes; then
3536 if test "$GCC" = yes; then
3542 if test "$GCC" = yes; then
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $CC option to accept ISO C89
" >&5
3549 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3550 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3551 $as_echo_n "(cached
) " >&6
3553 ac_cv_prog_cc_c89=no
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3559 #include <sys/types.h>
3560 #include <sys/stat.h>
3561 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3562 struct buf { int x; };
3563 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3564 static char *e (p, i)
3570 static char *f (char * (*g) (char **, int), char **p, ...)
3575 s = g (p, va_arg (v,int));
3580 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3581 function prototypes and stuff, but not '\xHH' hex character constants.
3582 These don't provoke an error unfortunately, instead are silently treated
3583 as 'x'. The following induces an error, until -std is added to get
3584 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3585 array size at least. It's necessary to write '\x00'==0 to get something
3586 that's true only with -std. */
3587 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3589 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3590 inside strings and character constants. */
3592 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3594 int test (int i, double x);
3595 struct s1 {int (*f) (int a);};
3596 struct s2 {int (*f) (double a);};
3597 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3603 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3608 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3609 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3611 CC="$ac_save_CC $ac_arg"
3612 if ac_fn_c_try_compile "$LINENO"; then :
3613 ac_cv_prog_cc_c89=$ac_arg
3615 rm -f core conftest.err conftest.$ac_objext
3616 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3618 rm -f conftest.$ac_ext
3623 case "x
$ac_cv_prog_cc_c89" in
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none needed
" >&5
3626 $as_echo "none needed
" >&6; } ;;
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: unsupported
" >&5
3629 $as_echo "unsupported
" >&6; } ;;
3631 CC="$CC $ac_cv_prog_cc_c89"
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_c89" >&5
3633 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3635 if test "x
$ac_cv_prog_cc_c89" != xno; then :
3640 ac_cpp='$CPP $CPPFLAGS'
3641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3646 for ac_dir in "$srcdir" "$srcdir/..
" "$srcdir/..
/..
"; do
3647 for ac_t in install-sh install.sh shtool; do
3648 if test -f "$ac_dir/$ac_t"; then
3650 ac_install_sh="$ac_aux_dir/$ac_t -c"
3655 if test -z "$ac_aux_dir"; then
3656 as_fn_error "cannot
find install-sh
, install.sh
, or shtool
in \"$srcdir\" \"$srcdir/..
\" \"$srcdir/..
/..
\"" "$LINENO" 5
3659 # These three variables are undocumented and unsupported,
3660 # and are intended to be withdrawn in a future Autoconf release.
3661 # They can cause serious problems if a builder's source tree is in a directory
3662 # whose full name contains unusual characters.
3663 ac_config_guess="$SHELL $ac_aux_dir/config.guess
" # Please don't use this var.
3664 ac_config_sub="$SHELL $ac_aux_dir/config.sub
" # Please don't use this var.
3665 ac_configure="$SHELL $ac_aux_dir/configure
" # Please don't use this var.
3668 # Make sure we can run config.sub.
3669 $SHELL "$ac_aux_dir/config.sub
" sun4 >/dev/null 2>&1 ||
3670 as_fn_error "cannot run
$SHELL $ac_aux_dir/config.sub
" "$LINENO" 5
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system
type" >&5
3673 $as_echo_n "checking build system
type...
" >&6; }
3674 if test "${ac_cv_build+set}" = set; then :
3675 $as_echo_n "(cached
) " >&6
3677 ac_build_alias=$build_alias
3678 test "x
$ac_build_alias" = x &&
3679 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess
"`
3680 test "x
$ac_build_alias" = x &&
3681 as_fn_error "cannot guess build
type; you must specify one
" "$LINENO" 5
3682 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub
" $ac_build_alias` ||
3683 as_fn_error "$SHELL $ac_aux_dir/config.sub
$ac_build_alias failed
" "$LINENO" 5
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_build" >&5
3687 $as_echo "$ac_cv_build" >&6; }
3688 case $ac_cv_build in
3690 *) as_fn_error "invalid value of canonical build
" "$LINENO" 5;;
3693 ac_save_IFS=$IFS; IFS='-'
3699 # Remember, the first character of IFS is used to create $*,
3700 # except with old shells:
3703 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
host system
type" >&5
3707 $as_echo_n "checking
host system
type...
" >&6; }
3708 if test "${ac_cv_host+set}" = set; then :
3709 $as_echo_n "(cached
) " >&6
3711 if test "x
$host_alias" = x; then
3712 ac_cv_host=$ac_cv_build
3714 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub
" $host_alias` ||
3715 as_fn_error "$SHELL $ac_aux_dir/config.sub
$host_alias failed
" "$LINENO" 5
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_host" >&5
3720 $as_echo "$ac_cv_host" >&6; }
3723 *) as_fn_error "invalid value of canonical
host" "$LINENO" 5;;
3726 ac_save_IFS=$IFS; IFS='-'
3732 # Remember, the first character of IFS is used to create $*,
3733 # except with old shells:
3736 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3741 ac_cpp='$CPP $CPPFLAGS'
3742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
3746 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3747 # On Suns, sometimes $CPP names a directory.
3748 if test -n "$CPP" && test -d "$CPP"; then
3751 if test -z "$CPP"; then
3752 if test "${ac_cv_prog_CPP+set}" = set; then :
3753 $as_echo_n "(cached
) " >&6
3755 # Double quotes because CPP needs to be expanded
3756 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3759 for ac_c_preproc_warn_flag in '' yes
3761 # Use a header file that comes with gcc, so configuring glibc
3762 # with a fresh cross-compiler works.
3763 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3764 # <limits.h> exists even on freestanding compilers.
3765 # On the NeXT, cc -E runs the code through the compiler's parser,
3766 # not just through cpp. "Syntax error
" is here to catch this case.
3767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768 /* end confdefs.h. */
3770 # include <limits.h>
3772 # include <assert.h>
3776 if ac_fn_c_try_cpp "$LINENO"; then :
3779 # Broken: fails on valid input.
3782 rm -f conftest.err conftest.$ac_ext
3784 # OK, works on sane cases. Now check whether nonexistent headers
3785 # can be detected and how.
3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787 /* end confdefs.h. */
3788 #include <ac_nonexistent.h>
3790 if ac_fn_c_try_cpp "$LINENO"; then :
3791 # Broken: success on invalid input.
3794 # Passes both tests.
3798 rm -f conftest.err conftest.$ac_ext
3801 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3802 rm -f conftest.err conftest.$ac_ext
3803 if $ac_preproc_ok; then :
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
3816 $as_echo "$CPP" >&6; }
3818 for ac_c_preproc_warn_flag in '' yes
3820 # Use a header file that comes with gcc, so configuring glibc
3821 # with a fresh cross-compiler works.
3822 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3823 # <limits.h> exists even on freestanding compilers.
3824 # On the NeXT, cc -E runs the code through the compiler's parser,
3825 # not just through cpp. "Syntax error
" is here to catch this case.
3826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3827 /* end confdefs.h. */
3829 # include <limits.h>
3831 # include <assert.h>
3835 if ac_fn_c_try_cpp "$LINENO"; then :
3838 # Broken: fails on valid input.
3841 rm -f conftest.err conftest.$ac_ext
3843 # OK, works on sane cases. Now check whether nonexistent headers
3844 # can be detected and how.
3845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846 /* end confdefs.h. */
3847 #include <ac_nonexistent.h>
3849 if ac_fn_c_try_cpp "$LINENO"; then :
3850 # Broken: success on invalid input.
3853 # Passes both tests.
3857 rm -f conftest.err conftest.$ac_ext
3860 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3861 rm -f conftest.err conftest.$ac_ext
3862 if $ac_preproc_ok; then :
3865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3867 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3868 See \`config.log' for more details.
" "$LINENO" 5; }
3872 ac_cpp='$CPP $CPPFLAGS'
3873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
3879 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
3880 if test "${ac_cv_path_GREP+set}" = set; then :
3881 $as_echo_n "(cached
) " >&6
3883 if test -z "$GREP"; then
3884 ac_path_GREP_found=false
3885 # Loop through the user's path and test for each of PROGNAME-LIST
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3890 test -z "$as_dir" && as_dir=.
3891 for ac_prog in grep ggrep; do
3892 for ac_exec_ext in '' $ac_executable_extensions; do
3893 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3894 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3895 # Check for GNU ac_path_GREP and select it if it is found.
3896 # Check for GNU $ac_path_GREP
3897 case `"$ac_path_GREP" --version 2>&1` in
3899 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3902 $as_echo_n 0123456789 >"conftest.
in"
3905 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3906 mv "conftest.tmp
" "conftest.
in"
3907 cp "conftest.
in" "conftest.
nl"
3908 $as_echo 'GREP' >> "conftest.
nl"
3909 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3910 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3911 as_fn_arith $ac_count + 1 && ac_count=$as_val
3912 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3913 # Best one so far, save it but keep looking for a better one
3914 ac_cv_path_GREP="$ac_path_GREP"
3915 ac_path_GREP_max=$ac_count
3917 # 10*(2^10) chars as input seems more than enough
3918 test $ac_count -gt 10 && break
3920 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3923 $ac_path_GREP_found && break 3
3928 if test -z "$ac_cv_path_GREP"; then
3929 as_fn_error "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3932 ac_cv_path_GREP=$GREP
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
3937 $as_echo "$ac_cv_path_GREP" >&6; }
3938 GREP="$ac_cv_path_GREP"
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
3942 $as_echo_n "checking
for egrep...
" >&6; }
3943 if test "${ac_cv_path_EGREP+set}" = set; then :
3944 $as_echo_n "(cached
) " >&6
3946 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3947 then ac_cv_path_EGREP="$GREP -E"
3949 if test -z "$EGREP"; then
3950 ac_path_EGREP_found=false
3951 # Loop through the user's path and test for each of PROGNAME-LIST
3952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3956 test -z "$as_dir" && as_dir=.
3957 for ac_prog in egrep; do
3958 for ac_exec_ext in '' $ac_executable_extensions; do
3959 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3960 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3961 # Check for GNU ac_path_EGREP and select it if it is found.
3962 # Check for GNU $ac_path_EGREP
3963 case `"$ac_path_EGREP" --version 2>&1` in
3965 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3968 $as_echo_n 0123456789 >"conftest.
in"
3971 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3972 mv "conftest.tmp
" "conftest.
in"
3973 cp "conftest.
in" "conftest.
nl"
3974 $as_echo 'EGREP' >> "conftest.
nl"
3975 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3976 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3977 as_fn_arith $ac_count + 1 && ac_count=$as_val
3978 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3979 # Best one so far, save it but keep looking for a better one
3980 ac_cv_path_EGREP="$ac_path_EGREP"
3981 ac_path_EGREP_max=$ac_count
3983 # 10*(2^10) chars as input seems more than enough
3984 test $ac_count -gt 10 && break
3986 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3989 $ac_path_EGREP_found && break 3
3994 if test -z "$ac_cv_path_EGREP"; then
3995 as_fn_error "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3998 ac_cv_path_EGREP=$EGREP
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
4004 $as_echo "$ac_cv_path_EGREP" >&6; }
4005 EGREP="$ac_cv_path_EGREP"
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
4009 $as_echo_n "checking
for ANSI C header files...
" >&6; }
4010 if test "${ac_cv_header_stdc+set}" = set; then :
4011 $as_echo_n "(cached
) " >&6
4013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4014 /* end confdefs.h. */
4028 if ac_fn_c_try_compile "$LINENO"; then :
4029 ac_cv_header_stdc=yes
4031 ac_cv_header_stdc=no
4033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4035 if test $ac_cv_header_stdc = yes; then
4036 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038 /* end confdefs.h. */
4042 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4043 $EGREP "memchr
" >/dev/null 2>&1; then :
4046 ac_cv_header_stdc=no
4052 if test $ac_cv_header_stdc = yes; then
4053 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4059 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4060 $EGREP "free
" >/dev/null 2>&1; then :
4063 ac_cv_header_stdc=no
4069 if test $ac_cv_header_stdc = yes; then
4070 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4071 if test "$cross_compiling" = yes; then :
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4078 #if ((' ' & 0x0FF) == 0x020)
4079 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4080 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4082 # define ISLOWER(c) \
4083 (('a' <= (c) && (c) <= 'i') \
4084 || ('j' <= (c) && (c) <= 'r') \
4085 || ('s' <= (c) && (c) <= 'z'))
4086 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4089 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4094 for (i = 0; i < 256; i++)
4095 if (XOR (islower (i), ISLOWER (i))
4096 || toupper (i) != TOUPPER (i))
4101 if ac_fn_c_try_run "$LINENO"; then :
4104 ac_cv_header_stdc=no
4106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4107 conftest.$ac_objext conftest.beam conftest.$ac_ext
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
4113 $as_echo "$ac_cv_header_stdc" >&6; }
4114 if test $ac_cv_header_stdc = yes; then
4116 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4120 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4121 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4122 inttypes.h stdint.h unistd.h
4124 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4125 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4127 eval as_val
=\$
$as_ac_Header
4128 if test "x$as_val" = x
""yes; then :
4129 cat >>confdefs.h
<<_ACEOF
4130 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4141 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4142 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4149 if test "$MINIX" = yes; then
4151 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4154 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4157 $as_echo "#define _MINIX 1" >>confdefs.h
4164 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4171 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4172 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4173 $as_echo_n "(cached) " >&6
4175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4176 /* end confdefs.h. */
4178 # define __EXTENSIONS__ 1
4179 $ac_includes_default
4188 if ac_fn_c_try_compile
"$LINENO"; then :
4189 ac_cv_safe_to_define___extensions__
=yes
4191 ac_cv_safe_to_define___extensions__
=no
4193 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4196 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4197 test $ac_cv_safe_to_define___extensions__ = yes &&
4198 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4200 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4202 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4204 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4206 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4209 if test -n "$ac_tool_prefix"; then
4210 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4211 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4213 $as_echo_n "checking for $ac_word... " >&6; }
4214 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4215 $as_echo_n "(cached) " >&6
4217 if test -n "$RANLIB"; then
4218 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4220 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4224 test -z "$as_dir" && as_dir
=.
4225 for ac_exec_ext
in '' $ac_executable_extensions; do
4226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4227 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4237 RANLIB
=$ac_cv_prog_RANLIB
4238 if test -n "$RANLIB"; then
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4240 $as_echo "$RANLIB" >&6; }
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4243 $as_echo "no" >&6; }
4248 if test -z "$ac_cv_prog_RANLIB"; then
4249 ac_ct_RANLIB
=$RANLIB
4250 # Extract the first word of "ranlib", so it can be a program name with args.
4251 set dummy ranlib
; ac_word
=$2
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4253 $as_echo_n "checking for $ac_word... " >&6; }
4254 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4255 $as_echo_n "(cached) " >&6
4257 if test -n "$ac_ct_RANLIB"; then
4258 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4260 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4264 test -z "$as_dir" && as_dir
=.
4265 for ac_exec_ext
in '' $ac_executable_extensions; do
4266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4267 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4277 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4278 if test -n "$ac_ct_RANLIB"; then
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4280 $as_echo "$ac_ct_RANLIB" >&6; }
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4283 $as_echo "no" >&6; }
4286 if test "x$ac_ct_RANLIB" = x
; then
4289 case $cross_compiling:$ac_tool_warned in
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4293 ac_tool_warned
=yes ;;
4295 RANLIB
=$ac_ct_RANLIB
4298 RANLIB
="$ac_cv_prog_RANLIB"
4309 # Code from module arg-nonnull:
4310 # Code from module c++defs:
4311 # Code from module extensions:
4313 # Code from module include_next:
4314 # Code from module inttypes:
4315 # Code from module memchr:
4316 # Code from module memmem:
4317 # Code from module memmem-simple:
4318 # Code from module multiarch:
4319 # Code from module stddef:
4320 # Code from module stdint:
4321 # Code from module string:
4322 # Code from module update-copyright:
4323 # Code from module warn-on-use:
4324 # Code from module wchar:
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4327 $as_echo_n "checking target system type... " >&6; }
4328 if test "${ac_cv_target+set}" = set; then :
4329 $as_echo_n "(cached) " >&6
4331 if test "x$target_alias" = x
; then
4332 ac_cv_target
=$ac_cv_host
4334 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4335 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4340 $as_echo "$ac_cv_target" >&6; }
4341 case $ac_cv_target in
4343 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4345 target
=$ac_cv_target
4346 ac_save_IFS
=$IFS; IFS
='-'
4352 # Remember, the first character of IFS is used to create $*,
4353 # except with old shells:
4356 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4359 # The aliases save the names the user supplied, while $host etc.
4360 # will get canonicalized.
4361 test -n "$target_alias" &&
4362 test "$program_prefix$program_suffix$program_transform_name" = \
4364 program_prefix
=${target_alias}-
4366 # The tests for host and target for $enable_largefile require
4371 # As the $enable_largefile decision depends on --enable-plugins we must set it
4372 # even in directories otherwise not depending on the $plugins option.
4375 # Check whether --enable-plugins was given.
4376 if test "${enable_plugins+set}" = set; then :
4377 enableval
=$enable_plugins; case "${enableval}" in
4378 yes |
"") plugins
=yes ;;
4389 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4390 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4391 # are mutually exclusive; and without procfs support, the bfd/ elf module
4392 # cannot provide certain routines such as elfcore_write_prpsinfo
4393 # or elfcore_write_prstatus. So unless the user explicitly requested
4394 # large-file support through the --enable-largefile switch, disable
4395 # large-file support in favor of procfs support.
4396 test "${target}" = "${host}" -a "x$plugins" = xno \
4397 && : ${enable_largefile="no"}
4401 # Check whether --enable-largefile was given.
4402 if test "${enable_largefile+set}" = set; then :
4403 enableval
=$enable_largefile;
4406 if test "$enable_largefile" != no
; then
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4409 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4410 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4411 $as_echo_n "(cached) " >&6
4413 ac_cv_sys_largefile_CC
=no
4414 if test "$GCC" != yes; then
4417 # IRIX 6.2 and later do not support large files by default,
4418 # so use the C compiler's -n32 option if that helps.
4419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4420 /* end confdefs.h. */
4421 #include <sys/types.h>
4422 /* Check that off_t can represent 2**63 - 1 correctly.
4423 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4424 since some C++ compilers masquerading as C compilers
4425 incorrectly reject 9223372036854775807. */
4426 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4427 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4428 && LARGE_OFF_T % 2147483647 == 1)
4438 if ac_fn_c_try_compile
"$LINENO"; then :
4441 rm -f core conftest.err conftest.
$ac_objext
4443 if ac_fn_c_try_compile
"$LINENO"; then :
4444 ac_cv_sys_largefile_CC
=' -n32'; break
4446 rm -f core conftest.err conftest.
$ac_objext
4450 rm -f conftest.
$ac_ext
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4454 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4455 if test "$ac_cv_sys_largefile_CC" != no
; then
4456 CC
=$CC$ac_cv_sys_largefile_CC
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4460 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4461 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4462 $as_echo_n "(cached) " >&6
4465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4466 /* end confdefs.h. */
4467 #include <sys/types.h>
4468 /* Check that off_t can represent 2**63 - 1 correctly.
4469 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4470 since some C++ compilers masquerading as C compilers
4471 incorrectly reject 9223372036854775807. */
4472 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4473 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4474 && LARGE_OFF_T % 2147483647 == 1)
4484 if ac_fn_c_try_compile
"$LINENO"; then :
4485 ac_cv_sys_file_offset_bits
=no
; break
4487 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h. */
4490 #define _FILE_OFFSET_BITS 64
4491 #include <sys/types.h>
4492 /* Check that off_t can represent 2**63 - 1 correctly.
4493 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4494 since some C++ compilers masquerading as C compilers
4495 incorrectly reject 9223372036854775807. */
4496 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4497 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4498 && LARGE_OFF_T % 2147483647 == 1)
4508 if ac_fn_c_try_compile
"$LINENO"; then :
4509 ac_cv_sys_file_offset_bits
=64; break
4511 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4512 ac_cv_sys_file_offset_bits
=unknown
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4517 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4518 case $ac_cv_sys_file_offset_bits in #(
4521 cat >>confdefs.h
<<_ACEOF
4522 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4527 if test $ac_cv_sys_file_offset_bits = unknown
; then
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4529 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4530 if test "${ac_cv_sys_large_files+set}" = set; then :
4531 $as_echo_n "(cached) " >&6
4534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h. */
4536 #include <sys/types.h>
4537 /* Check that off_t can represent 2**63 - 1 correctly.
4538 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4539 since some C++ compilers masquerading as C compilers
4540 incorrectly reject 9223372036854775807. */
4541 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4542 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4543 && LARGE_OFF_T % 2147483647 == 1)
4553 if ac_fn_c_try_compile
"$LINENO"; then :
4554 ac_cv_sys_large_files
=no
; break
4556 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h. */
4559 #define _LARGE_FILES 1
4560 #include <sys/types.h>
4561 /* Check that off_t can represent 2**63 - 1 correctly.
4562 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4563 since some C++ compilers masquerading as C compilers
4564 incorrectly reject 9223372036854775807. */
4565 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4566 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4567 && LARGE_OFF_T % 2147483647 == 1)
4577 if ac_fn_c_try_compile
"$LINENO"; then :
4578 ac_cv_sys_large_files
=1; break
4580 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4581 ac_cv_sys_large_files
=unknown
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4586 $as_echo "$ac_cv_sys_large_files" >&6; }
4587 case $ac_cv_sys_large_files in #(
4590 cat >>confdefs.h
<<_ACEOF
4591 #define _LARGE_FILES $ac_cv_sys_large_files
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4604 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4605 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4606 $as_echo_n "(cached) " >&6
4608 am_cv_prog_cc_stdc
=no
4610 # Don't try gcc -ansi; that turns off useful extensions and
4611 # breaks some systems' header files.
4612 # AIX -qlanglvl=ansi
4613 # Ultrix and OSF/1 -std1
4614 # HP-UX 10.20 and later -Ae
4615 # HP-UX older versions -Aa -D_HPUX_SOURCE
4616 # SVR4 -Xc -D__EXTENSIONS__
4617 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4619 CC
="$ac_save_CC $ac_arg"
4620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h. */
4624 #include <sys/types.h>
4625 #include <sys/stat.h>
4626 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4627 struct buf { int x; };
4628 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4629 static char *e (p, i)
4635 static char *f (char * (*g) (char **, int), char **p, ...)
4640 s = g (p, va_arg (v,int));
4644 int test (int i, double x);
4645 struct s1 {int (*f) (int a);};
4646 struct s2 {int (*f) (double a);};
4647 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4655 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4661 if ac_fn_c_try_compile
"$LINENO"; then :
4662 am_cv_prog_cc_stdc
="$ac_arg"; break
4664 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4670 if test -z "$am_cv_prog_cc_stdc"; then
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4672 $as_echo "none needed" >&6; }
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4675 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4677 case "x$am_cv_prog_cc_stdc" in
4679 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4684 for ac_dir
in ..
"$srcdir"/..
; do
4685 for ac_t
in install-sh
install.sh shtool
; do
4686 if test -f "$ac_dir/$ac_t"; then
4688 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4693 if test -z "$ac_aux_dir"; then
4694 as_fn_error
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4697 # These three variables are undocumented and unsupported,
4698 # and are intended to be withdrawn in a future Autoconf release.
4699 # They can cause serious problems if a builder's source tree is in a directory
4700 # whose full name contains unusual characters.
4701 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4702 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4703 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4708 # Dependency checking.
4709 rm -rf .tst
2>/dev
/null
4710 mkdir .tst
2>/dev
/null
4711 if test -d .tst
; then
4716 rmdir .tst
2>/dev
/null
4718 DEPDIR
="${am__leading_dot}deps"
4720 ac_config_commands
="$ac_config_commands depdir"
4723 depcc
="$CC" am_compiler_list
=
4725 am_depcomp
=$ac_aux_dir/depcomp
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4727 $as_echo_n "checking dependency style of $depcc... " >&6; }
4728 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4729 $as_echo_n "(cached) " >&6
4731 if test -f "$am_depcomp"; then
4732 # We make a subdir and do the tests there. Otherwise we can end up
4733 # making bogus files that we don't know about and never remove. For
4734 # instance it was reported that on HP-UX the gcc test will end up
4735 # making a dummy file named `D' -- because `-MD' means `put the output
4738 # Copy depcomp to subdir because otherwise we won't find it if we're
4739 # using a relative directory.
4740 cp "$am_depcomp" conftest.dir
4742 # We will build objects and dependencies in a subdirectory because
4743 # it helps to detect inapplicable dependency modes. For instance
4744 # both Tru64's cc and ICC support -MD to output dependencies as a
4745 # side effect of compilation, but ICC will put the dependencies in
4746 # the current directory while Tru64 will put them in the object
4750 am_cv_CC_dependencies_compiler_type
=none
4751 if test "$am_compiler_list" = ""; then
4752 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4754 for depmode
in $am_compiler_list; do
4755 if test $depmode = none
; then break; fi
4757 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4758 # Setup a source with many dependencies, because some compilers
4759 # like to wrap large dependency lists on column 80 (with \), and
4760 # we should not choose a depcomp mode which is confused by this.
4762 # We need to recreate these files for each test, as the compiler may
4763 # overwrite some of them when testing with obscure command lines.
4764 # This happens at least with the AIX C compiler.
4766 for i
in 1 2 3 4 5 6; do
4767 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4768 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4769 # Solaris 8's {/usr,}/bin/sh.
4770 touch sub
/conftst
$i.h
4772 echo "include sub/conftest.Po" > confmf
4774 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4775 # mode. It turns out that the SunPro C++ compiler does not properly
4776 # handle `-M -o', and we need to detect this.
4777 depcmd
="depmode=$depmode \
4778 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4779 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4780 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4781 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
4782 if env
$depcmd > conftest.err
2>&1 &&
4783 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
4784 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
4785 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
4786 # icc doesn't choke on unknown options, it will just issue warnings
4787 # or remarks (even with -Werror). So we grep stderr for any message
4788 # that says an option was ignored or not supported.
4789 # When given -MP, icc 7.0 and 7.1 complain thusly:
4790 # icc: Command line warning: ignoring option '-M'; no argument required
4791 # The diagnosis changed in icc 8.0:
4792 # icc: Command line remark: option '-MP' not supported
4793 if (grep 'ignoring option' conftest.err ||
4794 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4795 am_cv_CC_dependencies_compiler_type
=$depmode
4796 $as_echo "$as_me:$LINENO: success" >&5
4800 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4801 sed -e 's/^/| /' < conftest.err
>&5
4807 am_cv_CC_dependencies_compiler_type
=none
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4812 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4813 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
4814 then as_fn_error
"no usable dependency style found" "$LINENO" 5
4815 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4820 # Check for the 'make' the user wants to use.
4823 # Extract the first word of "$ac_prog", so it can be a program name with args.
4824 set dummy
$ac_prog; ac_word
=$2
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4826 $as_echo_n "checking for $ac_word... " >&6; }
4827 if test "${ac_cv_prog_MAKE+set}" = set; then :
4828 $as_echo_n "(cached) " >&6
4830 if test -n "$MAKE"; then
4831 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
4833 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4837 test -z "$as_dir" && as_dir
=.
4838 for ac_exec_ext
in '' $ac_executable_extensions; do
4839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4840 ac_cv_prog_MAKE
="$ac_prog"
4841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4850 MAKE
=$ac_cv_prog_MAKE
4851 if test -n "$MAKE"; then
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4853 $as_echo "$MAKE" >&6; }
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4856 $as_echo "no" >&6; }
4860 test -n "$MAKE" && break
4864 case "`$MAKE --version 2>&1 | sed 1q`" in
4869 if test "$MAKE_IS_GNU" = yes; then
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4878 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4880 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4881 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4882 $as_echo_n "(cached) " >&6
4884 cat >conftest.
make <<\_ACEOF
4887 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4889 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4890 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4892 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4894 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4898 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4900 $as_echo "yes" >&6; }
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4904 $as_echo "no" >&6; }
4905 SET_MAKE
="MAKE=${MAKE-make}"
4920 # If we haven't got the data from the intl directory,
4921 # assume NLS is disabled.
4930 if test -f ..
/intl
/config.intl
; then
4931 . ..
/intl
/config.intl
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4934 $as_echo_n "checking whether NLS is requested... " >&6; }
4935 if test x
"$USE_NLS" != xyes
; then
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4937 $as_echo "no" >&6; }
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4940 $as_echo "yes" >&6; }
4942 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4946 $as_echo_n "checking for catalogs to be installed... " >&6; }
4947 # Look for .po and .gmo files in the source directory.
4950 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
4951 # If there aren't any .gmo files the shell will give us the
4952 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4954 case "$cat" in *\
**)
4957 # The quadruple backslash is collapsed to a double backslash
4958 # by the backticks, then collapsed again by the double quotes,
4959 # leaving us with one backslash in the sed expression (right
4960 # before the dot that mustn't act as a wildcard).
4961 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4962 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
4963 # The user is allowed to set LINGUAS to a list of languages to
4964 # install catalogs for. If it's empty that means "all of them."
4965 if test "x$LINGUAS" = x
; then
4966 CATALOGS
="$CATALOGS $cat"
4967 XLINGUAS
="$XLINGUAS $lang"
4969 case "$LINGUAS" in *$lang*)
4970 CATALOGS
="$CATALOGS $cat"
4971 XLINGUAS
="$XLINGUAS $lang"
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4978 $as_echo "$LINGUAS" >&6; }
4991 localedir
='${datadir}/locale'
4994 if test x
"$USE_NLS" = xyes
; then
4995 CONFIG_ALL
="$CONFIG_ALL all-po"
4996 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
4997 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
4998 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
5005 LIBC_FATAL_STDERR_
=1
5006 export LIBC_FATAL_STDERR_
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5010 $as_echo_n "checking for long long int... " >&6; }
5011 if test "${ac_cv_type_long_long_int+set}" = set; then :
5012 $as_echo_n "(cached) " >&6
5014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5015 /* end confdefs.h. */
5017 /* For now, do not test the preprocessor; as of 2007 there are too many
5018 implementations with broken preprocessors. Perhaps this can
5019 be revisited in 2012. In the meantime, code should not expect
5020 #if to work with literals wider than 32 bits. */
5021 /* Test literals. */
5022 long long int ll = 9223372036854775807ll;
5023 long long int nll = -9223372036854775807LL;
5024 unsigned long long int ull = 18446744073709551615ULL;
5025 /* Test constant expressions. */
5026 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5028 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5034 /* Test availability of runtime routines for shift and division. */
5035 long long int llmax = 9223372036854775807ll;
5036 unsigned long long int ullmax = 18446744073709551615ull;
5037 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5038 | (llmax / ll) | (llmax % ll)
5039 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5040 | (ullmax / ull) | (ullmax % ull));
5046 if ac_fn_c_try_link
"$LINENO"; then :
5047 if test "$cross_compiling" = yes; then :
5048 ac_cv_type_long_long_int
=yes
5050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h. */
5055 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5056 # define LLONG_MAX (HALF - 1 + HALF)
5061 long long int n = 1;
5065 long long int m = n << i;
5068 if (LLONG_MAX / 2 < m)
5076 if ac_fn_c_try_run
"$LINENO"; then :
5077 ac_cv_type_long_long_int
=yes
5079 ac_cv_type_long_long_int
=no
5081 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5082 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5086 ac_cv_type_long_long_int
=no
5088 rm -f core conftest.err conftest.
$ac_objext \
5089 conftest
$ac_exeext conftest.
$ac_ext
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5092 $as_echo "$ac_cv_type_long_long_int" >&6; }
5093 if test $ac_cv_type_long_long_int = yes; then
5095 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5101 $as_echo_n "checking for unsigned long long int... " >&6; }
5102 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5103 $as_echo_n "(cached) " >&6
5105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5106 /* end confdefs.h. */
5108 /* For now, do not test the preprocessor; as of 2007 there are too many
5109 implementations with broken preprocessors. Perhaps this can
5110 be revisited in 2012. In the meantime, code should not expect
5111 #if to work with literals wider than 32 bits. */
5112 /* Test literals. */
5113 long long int ll = 9223372036854775807ll;
5114 long long int nll = -9223372036854775807LL;
5115 unsigned long long int ull = 18446744073709551615ULL;
5116 /* Test constant expressions. */
5117 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5119 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5125 /* Test availability of runtime routines for shift and division. */
5126 long long int llmax = 9223372036854775807ll;
5127 unsigned long long int ullmax = 18446744073709551615ull;
5128 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5129 | (llmax / ll) | (llmax % ll)
5130 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5131 | (ullmax / ull) | (ullmax % ull));
5137 if ac_fn_c_try_link
"$LINENO"; then :
5138 ac_cv_type_unsigned_long_long_int
=yes
5140 ac_cv_type_unsigned_long_long_int
=no
5142 rm -f core conftest.err conftest.
$ac_objext \
5143 conftest
$ac_exeext conftest.
$ac_ext
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5146 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5147 if test $ac_cv_type_unsigned_long_long_int = yes; then
5149 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5156 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5157 if test "${gl_cv_have_include_next+set}" = set; then :
5158 $as_echo_n "(cached) " >&6
5160 rm -rf conftestd1a conftestd1b conftestd2
5161 mkdir conftestd1a conftestd1b conftestd2
5162 cat <<EOF > conftestd1a/conftest.h
5163 #define DEFINED_IN_CONFTESTD1
5164 #include_next <conftest.h>
5165 #ifdef DEFINED_IN_CONFTESTD2
5168 #error "include_next doesn't work"
5171 cat <<EOF > conftestd1b/conftest.h
5172 #define DEFINED_IN_CONFTESTD1
5174 #include_next <conftest.h>
5175 #ifdef DEFINED_IN_CONFTESTD2
5178 #error "include_next doesn't work"
5181 cat <<EOF > conftestd2/conftest.h
5182 #ifndef DEFINED_IN_CONFTESTD1
5183 #error "include_next test doesn't work"
5185 #define DEFINED_IN_CONFTESTD2
5187 gl_save_CPPFLAGS
="$CPPFLAGS"
5188 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5190 /* end confdefs.h. */
5191 #include <conftest.h>
5193 if ac_fn_c_try_compile
"$LINENO"; then :
5194 gl_cv_have_include_next
=yes
5196 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h. */
5199 #include <conftest.h>
5201 if ac_fn_c_try_compile
"$LINENO"; then :
5202 gl_cv_have_include_next
=buggy
5204 gl_cv_have_include_next
=no
5206 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5209 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5210 CPPFLAGS
="$gl_save_CPPFLAGS"
5211 rm -rf conftestd1a conftestd1b conftestd2
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5215 $as_echo "$gl_cv_have_include_next" >&6; }
5216 PRAGMA_SYSTEM_HEADER
=
5217 if test $gl_cv_have_include_next = yes; then
5218 INCLUDE_NEXT
=include_next
5219 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
5220 if test -n "$GCC"; then
5221 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
5224 if test $gl_cv_have_include_next = buggy
; then
5225 INCLUDE_NEXT
=include
5226 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
5228 INCLUDE_NEXT
=include
5229 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
5240 for ac_header
in $gl_header_list
5242 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5243 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5244 eval as_val
=\$
$as_ac_Header
5245 if test "x$as_val" = x
""yes; then :
5246 cat >>confdefs.h
<<_ACEOF
5247 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5264 gl_cv_c_multiarch
=no
5265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5266 /* end confdefs.h. */
5267 #ifndef __APPLE_CC__
5268 not a universal capable compiler
5273 if ac_fn_c_try_compile
"$LINENO"; then :
5277 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
5278 if test -n "$prev"; then
5280 i?
86 | x86_64 | ppc | ppc64
)
5281 if test -z "$arch" ||
test "$arch" = "$word"; then
5284 gl_cv_c_multiarch
=yes
5290 if test "x$word" = "x-arch"; then
5297 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5298 if test $gl_cv_c_multiarch = yes; then
5300 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5302 APPLE_UNIVERSAL_BUILD
=1
5304 APPLE_UNIVERSAL_BUILD
=0
5311 if test $ac_cv_type_long_long_int = yes; then
5312 HAVE_LONG_LONG_INT
=1
5314 HAVE_LONG_LONG_INT
=0
5318 if test $ac_cv_type_unsigned_long_long_int = yes; then
5319 HAVE_UNSIGNED_LONG_LONG_INT
=1
5321 HAVE_UNSIGNED_LONG_LONG_INT
=0
5325 if test $ac_cv_header_inttypes_h = yes; then
5332 if test $ac_cv_header_sys_types_h = yes; then
5351 if test $gl_cv_have_include_next = yes; then
5352 gl_cv_next_stdint_h
='<'stdint.h
'>'
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
5355 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
5356 if test "${gl_cv_next_stdint_h+set}" = set; then :
5357 $as_echo_n "(cached) " >&6
5360 if test $ac_cv_header_stdint_h = yes; then
5361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5362 /* end confdefs.h. */
5367 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
5368 *) gl_absname_cpp
="$ac_cpp" ;;
5370 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5371 sed -n '\#/stdint.h#{
5372 s#.*"\(.*/stdint.h\)".*#\1#
5378 gl_cv_next_stdint_h
='<'stdint.h
'>'
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
5383 $as_echo "$gl_cv_next_stdint_h" >&6; }
5385 NEXT_STDINT_H
=$gl_cv_next_stdint_h
5387 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
5388 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5389 gl_next_as_first_directive
='<'stdint.h
'>'
5391 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5392 gl_next_as_first_directive
=$gl_cv_next_stdint_h
5394 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
5398 if test $ac_cv_header_stdint_h = yes; then
5405 if test $ac_cv_header_stdint_h = yes; then
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
5407 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
5408 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
5409 $as_echo_n "(cached) " >&6
5411 gl_cv_header_working_stdint_h
=no
5412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5413 /* end confdefs.h. */
5416 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5417 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5418 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5420 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5421 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
5422 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5426 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5427 included before <wchar.h>. */
5438 int8_t a1 = INT8_MAX;
5439 int8_t a1min = INT8_MIN;
5442 int16_t a2 = INT16_MAX;
5443 int16_t a2min = INT16_MIN;
5446 int32_t a3 = INT32_MAX;
5447 int32_t a3min = INT32_MIN;
5450 int64_t a4 = INT64_MAX;
5451 int64_t a4min = INT64_MIN;
5454 uint8_t b1 = UINT8_MAX;
5456 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5459 uint16_t b2 = UINT16_MAX;
5462 uint32_t b3 = UINT32_MAX;
5465 uint64_t b4 = UINT64_MAX;
5467 int_least8_t c1 = INT8_C (0x7f);
5468 int_least8_t c1max = INT_LEAST8_MAX;
5469 int_least8_t c1min = INT_LEAST8_MIN;
5470 int_least16_t c2 = INT16_C (0x7fff);
5471 int_least16_t c2max = INT_LEAST16_MAX;
5472 int_least16_t c2min = INT_LEAST16_MIN;
5473 int_least32_t c3 = INT32_C (0x7fffffff);
5474 int_least32_t c3max = INT_LEAST32_MAX;
5475 int_least32_t c3min = INT_LEAST32_MIN;
5476 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5477 int_least64_t c4max = INT_LEAST64_MAX;
5478 int_least64_t c4min = INT_LEAST64_MIN;
5479 uint_least8_t d1 = UINT8_C (0xff);
5480 uint_least8_t d1max = UINT_LEAST8_MAX;
5481 uint_least16_t d2 = UINT16_C (0xffff);
5482 uint_least16_t d2max = UINT_LEAST16_MAX;
5483 uint_least32_t d3 = UINT32_C (0xffffffff);
5484 uint_least32_t d3max = UINT_LEAST32_MAX;
5485 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5486 uint_least64_t d4max = UINT_LEAST64_MAX;
5487 int_fast8_t e1 = INT_FAST8_MAX;
5488 int_fast8_t e1min = INT_FAST8_MIN;
5489 int_fast16_t e2 = INT_FAST16_MAX;
5490 int_fast16_t e2min = INT_FAST16_MIN;
5491 int_fast32_t e3 = INT_FAST32_MAX;
5492 int_fast32_t e3min = INT_FAST32_MIN;
5493 int_fast64_t e4 = INT_FAST64_MAX;
5494 int_fast64_t e4min = INT_FAST64_MIN;
5495 uint_fast8_t f1 = UINT_FAST8_MAX;
5496 uint_fast16_t f2 = UINT_FAST16_MAX;
5497 uint_fast32_t f3 = UINT_FAST32_MAX;
5498 uint_fast64_t f4 = UINT_FAST64_MAX;
5500 intptr_t g = INTPTR_MAX;
5501 intptr_t gmin = INTPTR_MIN;
5504 uintptr_t h = UINTPTR_MAX;
5506 intmax_t i = INTMAX_MAX;
5507 uintmax_t j = UINTMAX_MAX;
5509 #include <limits.h> /* for CHAR_BIT */
5510 #define TYPE_MINIMUM(t) \
5511 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5512 #define TYPE_MAXIMUM(t) \
5513 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5516 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5517 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5519 /* Detect bug in FreeBSD 6.0 / ia64. */
5520 int check_SIG_ATOMIC:
5521 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5522 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5524 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5526 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5527 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5529 /* Detect bug in mingw. */
5531 WINT_MIN == TYPE_MINIMUM (wint_t)
5532 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5535 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5537 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5539 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5541 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5543 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5546 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5549 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5552 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5554 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5555 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5556 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5557 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5558 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5559 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5560 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5561 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5562 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5563 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5564 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5575 if ac_fn_c_try_compile
"$LINENO"; then :
5576 if test "$cross_compiling" = yes; then :
5577 gl_cv_header_working_stdint_h
=yes
5580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5581 /* end confdefs.h. */
5584 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5585 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5586 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5590 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5591 included before <wchar.h>. */
5603 #define MVAL(macro) MVAL1(macro)
5604 #define MVAL1(expression) #expression
5605 static const char *macro_values[] =
5639 for (mv = macro_values; *mv != NULL; mv++)
5641 const char *value = *mv;
5642 /* Test whether it looks like a cast expression. */
5643 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
5644 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
5645 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
5646 || strncmp (value, "((int)"/*)*/, 6) == 0
5647 || strncmp (value, "((signed short)"/*)*/, 15) == 0
5648 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
5657 if ac_fn_c_try_run
"$LINENO"; then :
5658 gl_cv_header_working_stdint_h
=yes
5660 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5661 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5666 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
5670 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
5672 if test "$gl_cv_header_working_stdint_h" = yes; then
5675 for ac_header
in sys
/inttypes.h sys
/bitypes.h
5677 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5678 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5679 eval as_val
=\$
$as_ac_Header
5680 if test "x$as_val" = x
""yes; then :
5681 cat >>confdefs.h
<<_ACEOF
5682 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5689 if test $ac_cv_header_sys_inttypes_h = yes; then
5690 HAVE_SYS_INTTYPES_H
=1
5692 HAVE_SYS_INTTYPES_H
=0
5695 if test $ac_cv_header_sys_bitypes_h = yes; then
5696 HAVE_SYS_BITYPES_H
=1
5698 HAVE_SYS_BITYPES_H
=0
5712 if test $APPLE_UNIVERSAL_BUILD = 0; then
5715 for gltype
in ptrdiff_t size_t
; do
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
5717 $as_echo_n "checking for bit size of $gltype... " >&6; }
5718 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
5719 $as_echo_n "(cached) " >&6
5721 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
5722 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5723 included before <wchar.h>. */
5732 #include <limits.h>"; then :
5738 eval gl_cv_bitsizeof_
${gltype}=\
$result
5741 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5743 $as_echo "$ac_res" >&6; }
5744 eval result
=\
$gl_cv_bitsizeof_${gltype}
5745 if test $result = unknown
; then
5748 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5749 cat >>confdefs.h
<<_ACEOF
5750 #define BITSIZEOF_${GLTYPE} $result
5753 eval BITSIZEOF_
${GLTYPE}=\
$result
5760 for gltype
in sig_atomic_t wchar_t wint_t
; do
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
5762 $as_echo_n "checking for bit size of $gltype... " >&6; }
5763 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
5764 $as_echo_n "(cached) " >&6
5766 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
5767 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5768 included before <wchar.h>. */
5777 #include <limits.h>"; then :
5783 eval gl_cv_bitsizeof_
${gltype}=\
$result
5786 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5788 $as_echo "$ac_res" >&6; }
5789 eval result
=\
$gl_cv_bitsizeof_${gltype}
5790 if test $result = unknown
; then
5793 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5794 cat >>confdefs.h
<<_ACEOF
5795 #define BITSIZEOF_${GLTYPE} $result
5798 eval BITSIZEOF_
${GLTYPE}=\
$result
5804 for gltype
in sig_atomic_t wchar_t wint_t
; do
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
5806 $as_echo_n "checking whether $gltype is signed... " >&6; }
5807 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
5808 $as_echo_n "(cached) " >&6
5810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5811 /* end confdefs.h. */
5813 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5814 included before <wchar.h>. */
5823 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
5832 if ac_fn_c_try_compile
"$LINENO"; then :
5837 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5838 eval gl_cv_type_
${gltype}_signed
=\
$result
5841 eval ac_res
=\
$gl_cv_type_${gltype}_signed
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5843 $as_echo "$ac_res" >&6; }
5844 eval result
=\
$gl_cv_type_${gltype}_signed
5845 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5846 if test "$result" = yes; then
5847 cat >>confdefs.h
<<_ACEOF
5848 #define HAVE_SIGNED_${GLTYPE} 1
5851 eval HAVE_SIGNED_
${GLTYPE}=1
5853 eval HAVE_SIGNED_
${GLTYPE}=0
5858 gl_cv_type_ptrdiff_t_signed
=yes
5859 gl_cv_type_size_t_signed
=no
5860 if test $APPLE_UNIVERSAL_BUILD = 0; then
5863 for gltype
in ptrdiff_t size_t
; do
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
5865 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
5866 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
5867 $as_echo_n "(cached) " >&6
5869 eval gl_cv_type_
${gltype}_suffix
=no
5870 eval result
=\
$gl_cv_type_${gltype}_signed
5871 if test "$result" = yes; then
5876 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
5879 l
) gltype1
='long int';;
5880 ll
) gltype1
='long long int';;
5881 i64
) gltype1
='__int64';;
5882 u
) gltype1
='unsigned int';;
5883 ul
) gltype1
='unsigned long int';;
5884 ull
) gltype1
='unsigned long long int';;
5885 ui64
)gltype1
='unsigned __int64';;
5887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5888 /* end confdefs.h. */
5890 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5891 included before <wchar.h>. */
5901 extern $gltype1 foo;
5910 if ac_fn_c_try_compile
"$LINENO"; then :
5911 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
5913 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5914 eval result
=\
$gl_cv_type_${gltype}_suffix
5915 test "$result" != no
&& break
5918 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5920 $as_echo "$ac_res" >&6; }
5921 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5922 eval result
=\
$gl_cv_type_${gltype}_suffix
5923 test "$result" = no
&& result
=
5924 eval ${GLTYPE}_SUFFIX
=\
$result
5925 cat >>confdefs.h
<<_ACEOF
5926 #define ${GLTYPE}_SUFFIX $result
5935 for gltype
in sig_atomic_t wchar_t wint_t
; do
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
5937 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
5938 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
5939 $as_echo_n "(cached) " >&6
5941 eval gl_cv_type_
${gltype}_suffix
=no
5942 eval result
=\
$gl_cv_type_${gltype}_signed
5943 if test "$result" = yes; then
5948 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
5951 l
) gltype1
='long int';;
5952 ll
) gltype1
='long long int';;
5953 i64
) gltype1
='__int64';;
5954 u
) gltype1
='unsigned int';;
5955 ul
) gltype1
='unsigned long int';;
5956 ull
) gltype1
='unsigned long long int';;
5957 ui64
)gltype1
='unsigned __int64';;
5959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5960 /* end confdefs.h. */
5962 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5963 included before <wchar.h>. */
5973 extern $gltype1 foo;
5982 if ac_fn_c_try_compile
"$LINENO"; then :
5983 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
5985 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5986 eval result
=\
$gl_cv_type_${gltype}_suffix
5987 test "$result" != no
&& break
5990 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5992 $as_echo "$ac_res" >&6; }
5993 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5994 eval result
=\
$gl_cv_type_${gltype}_suffix
5995 test "$result" = no
&& result
=
5996 eval ${GLTYPE}_SUFFIX
=\
$result
5997 cat >>confdefs.h
<<_ACEOF
5998 #define ${GLTYPE}_SUFFIX $result
6010 for ac_header
in inttypes.h
6012 ac_fn_c_check_header_mongrel
"$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
6013 if test "x$ac_cv_header_inttypes_h" = x
""yes; then :
6014 cat >>confdefs.h
<<_ACEOF
6015 #define HAVE_INTTYPES_H 1
6022 if test $ac_cv_header_inttypes_h = yes; then
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
6024 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
6025 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
6026 $as_echo_n "(cached) " >&6
6029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6030 /* end confdefs.h. */
6031 #include <inttypes.h>
6044 if ac_fn_c_try_compile
"$LINENO"; then :
6045 gt_cv_inttypes_pri_broken
=no
6047 gt_cv_inttypes_pri_broken
=yes
6049 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
6053 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
6055 if test "$gt_cv_inttypes_pri_broken" = yes; then
6057 cat >>confdefs.h
<<_ACEOF
6058 #define PRI_MACROS_BROKEN 1
6073 ac_fn_c_check_decl
"$LINENO" "imaxabs" "ac_cv_have_decl_imaxabs" "$ac_includes_default"
6074 if test "x$ac_cv_have_decl_imaxabs" = x
""yes; then :
6080 cat >>confdefs.h
<<_ACEOF
6081 #define HAVE_DECL_IMAXABS $ac_have_decl
6086 ac_fn_c_check_decl
"$LINENO" "imaxdiv" "ac_cv_have_decl_imaxdiv" "$ac_includes_default"
6087 if test "x$ac_cv_have_decl_imaxdiv" = x
""yes; then :
6093 cat >>confdefs.h
<<_ACEOF
6094 #define HAVE_DECL_IMAXDIV $ac_have_decl
6099 ac_fn_c_check_decl
"$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default"
6100 if test "x$ac_cv_have_decl_strtoimax" = x
""yes; then :
6106 cat >>confdefs.h
<<_ACEOF
6107 #define HAVE_DECL_STRTOIMAX $ac_have_decl
6112 ac_fn_c_check_decl
"$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default"
6113 if test "x$ac_cv_have_decl_strtoumax" = x
""yes; then :
6119 cat >>confdefs.h
<<_ACEOF
6120 #define HAVE_DECL_STRTOUMAX $ac_have_decl
6129 HAVE_DECL_IMAXABS
=1;
6130 HAVE_DECL_IMAXDIV
=1;
6131 HAVE_DECL_STRTOIMAX
=1;
6132 HAVE_DECL_STRTOUMAX
=1;
6143 for ac_func
in $gl_func_list
6145 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6146 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6147 eval as_val
=\$
$as_ac_var
6148 if test "x$as_val" = x
""yes; then :
6149 cat >>confdefs.h
<<_ACEOF
6150 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6176 GNULIB_STRCASESTR
=0;
6183 GNULIB_MBSCASECMP
=0;
6184 GNULIB_MBSNCASECMP
=0;
6185 GNULIB_MBSPCASECMP
=0;
6186 GNULIB_MBSCASESTR
=0;
6194 GNULIB_STRVERSCMP
=0;
6199 HAVE_DECL_MEMRCHR
=1;
6205 HAVE_DECL_STRNDUP
=1;
6206 HAVE_DECL_STRNLEN
=1;
6210 HAVE_DECL_STRTOK_R
=1;
6211 HAVE_DECL_STRSIGNAL
=1;
6218 REPLACE_STRCASESTR
=0;
6223 REPLACE_STRSIGNAL
=0;
6225 UNDEFINE_STRTOK_R
=0;
6239 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
6240 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
6241 # irrelevant for anonymous mappings.
6242 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
6243 if test "x$ac_cv_func_mmap" = x
""yes; then :
6250 # Try to allow MAP_ANONYMOUS.
6251 gl_have_mmap_anonymous
=no
6252 if test $gl_have_mmap = yes; then
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
6254 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
6255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6256 /* end confdefs.h. */
6258 #include <sys/mman.h>
6259 #ifdef MAP_ANONYMOUS
6260 I cant identify this map.
6264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6265 $EGREP "I cant identify this map." >/dev
/null
2>&1; then :
6266 gl_have_mmap_anonymous
=yes
6270 if test $gl_have_mmap_anonymous != yes; then
6271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6272 /* end confdefs.h. */
6274 #include <sys/mman.h>
6276 I cant identify this map.
6280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6281 $EGREP "I cant identify this map." >/dev
/null
2>&1; then :
6283 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
6285 gl_have_mmap_anonymous
=yes
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
6291 $as_echo "$gl_have_mmap_anonymous" >&6; }
6292 if test $gl_have_mmap_anonymous = yes; then
6294 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
6322 if test $ac_cv_func_memchr = yes; then
6323 # Detect platform-specific bugs in some versions of glibc:
6324 # memchr should not dereference anything with length 0
6325 # http://bugzilla.redhat.com/499689
6326 # memchr should not dereference overestimated length after a match
6327 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
6328 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
6329 # Assume that memchr works on platforms that lack mprotect.
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
6331 $as_echo_n "checking whether memchr works... " >&6; }
6332 if test "${gl_cv_func_memchr_works+set}" = set; then :
6333 $as_echo_n "(cached) " >&6
6335 if test "$cross_compiling" = yes; then :
6336 gl_cv_func_memchr_works
="guessing no"
6338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6339 /* end confdefs.h. */
6344 # include <unistd.h>
6345 # include <sys/types.h>
6346 # include <sys/mman.h>
6357 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
6358 # if HAVE_MAP_ANONYMOUS
6359 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
6361 # else /* !HAVE_MAP_ANONYMOUS */
6362 const int flags = MAP_FILE | MAP_PRIVATE;
6363 int fd = open ("/dev/zero", O_RDONLY, 0666);
6367 int pagesize = getpagesize ();
6369 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
6371 if (two_pages != (char *)(-1)
6372 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
6373 fence = two_pages + pagesize;
6378 if (memchr (fence, 0, 0))
6380 strcpy (fence - 9, "12345678");
6381 if (memchr (fence - 9, 0, 79) != fence - 1)
6390 if ac_fn_c_try_run
"$LINENO"; then :
6391 gl_cv_func_memchr_works
=yes
6393 gl_cv_func_memchr_works
=no
6395 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6396 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
6401 $as_echo "$gl_cv_func_memchr_works" >&6; }
6402 if test "$gl_cv_func_memchr_works" != yes; then
6408 if test $HAVE_MEMCHR = 0 ||
test $REPLACE_MEMCHR = 1; then
6417 gl_LIBOBJS
="$gl_LIBOBJS memchr.$ac_objext"
6420 for ac_header
in bp-sym.h
6422 ac_fn_c_check_header_mongrel
"$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
6423 if test "x$ac_cv_header_bp_sym_h" = x
""yes; then :
6424 cat >>confdefs.h
<<_ACEOF
6425 #define HAVE_BP_SYM_H 1
6436 ac_fn_c_check_decl
"$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
6437 if test "x$ac_cv_have_decl_memmem" = x
""yes; then :
6443 cat >>confdefs.h
<<_ACEOF
6444 #define HAVE_DECL_MEMMEM $ac_have_decl
6460 for ac_func
in memmem
6462 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
6463 if test "x$ac_cv_func_memmem" = x
""yes; then :
6464 cat >>confdefs.h
<<_ACEOF
6465 #define HAVE_MEMMEM 1
6470 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
6483 if test $ac_cv_have_decl_memmem = no
; then
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6495 $as_echo_n "checking for wchar_t... " >&6; }
6496 if test "${gt_cv_c_wchar_t+set}" = set; then :
6497 $as_echo_n "(cached) " >&6
6499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6500 /* end confdefs.h. */
6502 wchar_t foo = (wchar_t)'\0';
6511 if ac_fn_c_try_compile
"$LINENO"; then :
6516 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6519 $as_echo "$gt_cv_c_wchar_t" >&6; }
6520 if test $gt_cv_c_wchar_t = yes; then
6522 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
6532 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
6533 if test "${ac_cv_c_restrict+set}" = set; then :
6534 $as_echo_n "(cached) " >&6
6537 # The order here caters to the fact that C++ does not require restrict.
6538 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
6539 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6540 /* end confdefs.h. */
6541 typedef int * int_ptr;
6542 int foo (int_ptr $ac_kw ip) {
6556 if ac_fn_c_try_compile
"$LINENO"; then :
6557 ac_cv_c_restrict
=$ac_kw
6559 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6560 test "$ac_cv_c_restrict" != no
&& break
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
6565 $as_echo "$ac_cv_c_restrict" >&6; }
6567 case $ac_cv_c_restrict in
6569 no
) $as_echo "#define restrict /**/" >>confdefs.h
6571 *) cat >>confdefs.h
<<_ACEOF
6572 #define restrict $ac_cv_c_restrict
6597 if test $gl_cv_have_include_next = yes; then
6598 gl_cv_next_string_h
='<'string.h
'>'
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
6601 $as_echo_n "checking absolute name of <string.h>... " >&6; }
6602 if test "${gl_cv_next_string_h+set}" = set; then :
6603 $as_echo_n "(cached) " >&6
6606 if test $ac_cv_header_string_h = yes; then
6607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6608 /* end confdefs.h. */
6613 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
6614 *) gl_absname_cpp
="$ac_cpp" ;;
6616 gl_cv_next_string_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6617 sed -n '\#/string.h#{
6618 s#.*"\(.*/string.h\)".*#\1#
6624 gl_cv_next_string_h
='<'string.h
'>'
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
6629 $as_echo "$gl_cv_next_string_h" >&6; }
6631 NEXT_STRING_H
=$gl_cv_next_string_h
6633 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
6634 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6635 gl_next_as_first_directive
='<'string.h
'>'
6637 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6638 gl_next_as_first_directive
=$gl_cv_next_string_h
6640 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
6646 for gl_func
in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp
; do
6647 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
6649 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
6650 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
6651 $as_echo_n "(cached) " >&6
6653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6654 /* end confdefs.h. */
6666 if ac_fn_c_try_compile
"$LINENO"; then :
6667 eval "$as_gl_Symbol=yes"
6669 eval "$as_gl_Symbol=no"
6671 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6673 eval ac_res
=\$
$as_gl_Symbol
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6675 $as_echo "$ac_res" >&6; }
6676 eval as_val
=\$
$as_gl_Symbol
6677 if test "x$as_val" = x
""yes; then :
6678 cat >>confdefs.h
<<_ACEOF
6679 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
6682 eval ac_cv_have_decl_
$gl_func=yes
6694 GNULIB_MBSNRTOWCS
=0;
6697 GNULIB_WCSNRTOMBS
=0;
6709 HAVE_DECL_WCWIDTH
=1;
6710 REPLACE_MBSTATE_T
=0;
6716 REPLACE_MBSRTOWCS
=0;
6717 REPLACE_MBSNRTOWCS
=0;
6719 REPLACE_WCSRTOMBS
=0;
6720 REPLACE_WCSNRTOMBS
=0;
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
6725 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
6726 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
6727 $as_echo_n "(cached) " >&6
6729 gl_cv_header_wchar_h_correct_inline
=yes
6730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6731 /* end confdefs.h. */
6733 #define wcstod renamed_wcstod
6735 extern int zero (void);
6736 int main () { return zero(); }
6739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6740 (eval $ac_compile) 2>&5
6742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6743 test $ac_status = 0; }; then
6744 mv conftest.
$ac_objext conftest1.
$ac_objext
6745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h. */
6748 #define wcstod renamed_wcstod
6750 int zero (void) { return 0; }
6753 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6754 (eval $ac_compile) 2>&5
6756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6757 test $ac_status = 0; }; then
6758 mv conftest.
$ac_objext conftest2.
$ac_objext
6759 if $CC -o conftest
$ac_exeext $CFLAGS $LDFLAGS conftest1.
$ac_objext conftest2.
$ac_objext $LIBS >&5 2>&1; then
6762 gl_cv_header_wchar_h_correct_inline
=no
6766 rm -f conftest1.
$ac_objext conftest2.
$ac_objext conftest
$ac_exeext
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
6770 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
6771 if test $gl_cv_header_wchar_h_correct_inline = no
; then
6772 as_fn_error
"<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
6773 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
6774 C99 mode. You have four options:
6775 - Add the flag -fgnu89-inline to CC and reconfigure, or
6776 - Fix your include files, using parts of
6777 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
6778 - Use a gcc version older than 4.3, or
6779 - Don't use the flags -std=c99 or -std=gnu99.
6780 Configuration aborted." "$LINENO" 5
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6785 $as_echo_n "checking for wint_t... " >&6; }
6786 if test "${gt_cv_c_wint_t+set}" = set; then :
6787 $as_echo_n "(cached) " >&6
6789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6790 /* end confdefs.h. */
6792 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
6794 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
6795 before <wchar.h>. */
6800 wint_t foo = (wchar_t)'\0';
6809 if ac_fn_c_try_compile
"$LINENO"; then :
6814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6817 $as_echo "$gt_cv_c_wint_t" >&6; }
6818 if test $gt_cv_c_wint_t = yes; then
6820 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6826 GL_COND_LIBTOOL_TRUE
=
6827 GL_COND_LIBTOOL_FALSE
='#'
6829 GL_COND_LIBTOOL_TRUE
='#'
6830 GL_COND_LIBTOOL_FALSE
=
6833 gl_cond_libtool
=false
6836 gl_m4_base
='gnulib/m4'
6846 gl_source_base
='gnulib'
6847 # Code from module arg-nonnull:
6848 # Code from module c++defs:
6849 # Code from module extensions:
6850 # Code from module include_next:
6851 # Code from module inttypes:
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inttypes.h conforms to C99" >&5
6892 $as_echo_n "checking whether inttypes.h conforms to C99... " >&6; }
6893 if test "${gl_cv_header_working_inttypes_h+set}" = set; then :
6894 $as_echo_n "(cached) " >&6
6896 gl_cv_header_working_inttypes_h
=no
6897 if test "$gl_cv_header_working_stdint_h" = yes \
6898 && test $ac_cv_header_inttypes_h = yes \
6899 && test "$ac_cv_have_decl_imaxabs" = yes \
6900 && test "$ac_cv_have_decl_imaxdiv" = yes \
6901 && test "$ac_cv_have_decl_strtoimax" = yes \
6902 && test "$ac_cv_have_decl_strtoumax" = yes; then
6903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6904 /* end confdefs.h. */
6908 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6909 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6910 #define __STDC_FORMAT_MACROS 1 /* to make it work also in C++ mode */
6911 #define _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H /* work if build isn't clean */
6912 #include <inttypes.h>
6914 /* No need to duplicate the tests of stdint.m4; they are subsumed by
6915 $gl_cv_header_working_stdint_h = yes. */
6917 /* Tests for macros supposed to be defined in inttypes.h. */
6919 const char *k = /* implicit string concatenation */
6924 PRIo8 PRIu8 PRIx8 PRIX8
6930 PRIo16 PRIu16 PRIx16 PRIX16
6936 PRIo32 PRIu32 PRIx32 PRIX32
6942 PRIo64 PRIu64 PRIx64 PRIX64
6944 PRIdLEAST8 PRIiLEAST8 PRIoLEAST8 PRIuLEAST8 PRIxLEAST8 PRIXLEAST8
6945 PRIdLEAST16 PRIiLEAST16 PRIoLEAST16 PRIuLEAST16 PRIxLEAST16 PRIXLEAST16
6946 PRIdLEAST32 PRIiLEAST32 PRIoLEAST32 PRIuLEAST32 PRIxLEAST32 PRIXLEAST32
6947 PRIdLEAST64 PRIiLEAST64
6948 PRIoLEAST64 PRIuLEAST64 PRIxLEAST64 PRIXLEAST64
6949 PRIdFAST8 PRIiFAST8 PRIoFAST8 PRIuFAST8 PRIxFAST8 PRIXFAST8
6950 PRIdFAST16 PRIiFAST16 PRIoFAST16 PRIuFAST16 PRIxFAST16 PRIXFAST16
6951 PRIdFAST32 PRIiFAST32 PRIoFAST32 PRIuFAST32 PRIxFAST32 PRIXFAST32
6952 PRIdFAST64 PRIiFAST64
6953 PRIoFAST64 PRIuFAST64 PRIxFAST64 PRIXFAST64
6954 PRIdMAX PRIiMAX PRIoMAX PRIuMAX PRIxMAX PRIXMAX
6959 PRIoPTR PRIuPTR PRIxPTR PRIXPTR
6962 const char *l = /* implicit string concatenation */
6973 SCNo16 SCNu16 SCNx16
6979 SCNo32 SCNu32 SCNx32
6985 SCNo64 SCNu64 SCNx64
6987 SCNdLEAST8 SCNiLEAST8 SCNoLEAST8 SCNuLEAST8 SCNxLEAST8
6988 SCNdLEAST16 SCNiLEAST16 SCNoLEAST16 SCNuLEAST16 SCNxLEAST16
6989 SCNdLEAST32 SCNiLEAST32 SCNoLEAST32 SCNuLEAST32 SCNxLEAST32
6990 SCNdLEAST64 SCNiLEAST64
6991 SCNoLEAST64 SCNuLEAST64 SCNxLEAST64
6992 SCNdFAST8 SCNiFAST8 SCNoFAST8 SCNuFAST8 SCNxFAST8
6993 SCNdFAST16 SCNiFAST16 SCNoFAST16 SCNuFAST16 SCNxFAST16
6994 SCNdFAST32 SCNiFAST32 SCNoFAST32 SCNuFAST32 SCNxFAST32
6995 SCNdFAST64 SCNiFAST64
6996 SCNoFAST64 SCNuFAST64 SCNxFAST64
6997 SCNdMAX SCNiMAX SCNoMAX SCNuMAX SCNxMAX
7002 SCNoPTR SCNuPTR SCNxPTR
7014 if ac_fn_c_try_compile
"$LINENO"; then :
7015 gl_cv_header_working_inttypes_h
=yes
7017 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_inttypes_h" >&5
7021 $as_echo "$gl_cv_header_working_inttypes_h" >&6; }
7036 if test $gl_cv_have_include_next = yes; then
7037 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
7040 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
7041 if test "${gl_cv_next_inttypes_h+set}" = set; then :
7042 $as_echo_n "(cached) " >&6
7045 if test $ac_cv_header_inttypes_h = yes; then
7046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7047 /* end confdefs.h. */
7048 #include <inttypes.h>
7052 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
7053 *) gl_absname_cpp
="$ac_cpp" ;;
7055 gl_cv_next_inttypes_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7056 sed -n '\#/inttypes.h#{
7057 s#.*"\(.*/inttypes.h\)".*#\1#
7063 gl_cv_next_inttypes_h
='<'inttypes.h
'>'
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
7068 $as_echo "$gl_cv_next_inttypes_h" >&6; }
7070 NEXT_INTTYPES_H
=$gl_cv_next_inttypes_h
7072 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
7073 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7074 gl_next_as_first_directive
='<'inttypes.h
'>'
7076 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7077 gl_next_as_first_directive
=$gl_cv_next_inttypes_h
7079 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
=$gl_next_as_first_directive
7087 $as_echo "#define GL_TRIGGER_STDC_LIMIT_MACROS 1" >>confdefs.h
7092 if test -n "$STDINT_H"; then
7095 for glpfx
in '' l ll I64
; do
7098 l
) gltype1
='long int';;
7099 ll
) gltype1
='long long int';;
7100 I64
) gltype1
='__int64';;
7102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7103 /* end confdefs.h. */
7105 extern intptr_t foo;
7106 extern $gltype1 foo;
7115 if ac_fn_c_try_compile
"$LINENO"; then :
7116 PRIPTR_PREFIX
='"'$glpfx'"'
7118 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7119 test -n "$PRIPTR_PREFIX" && break
7124 if test "$ac_cv_have_decl_imaxabs" = yes; then
7130 if test "$ac_cv_have_decl_imaxdiv" = yes; then
7136 if test "$ac_cv_have_decl_strtoimax" = yes; then
7137 HAVE_DECL_STRTOIMAX
=1
7139 HAVE_DECL_STRTOIMAX
=0
7142 if test "$ac_cv_have_decl_strtoumax" = yes; then
7143 HAVE_DECL_STRTOUMAX
=1
7145 HAVE_DECL_STRTOUMAX
=0
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
7150 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
7151 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
7152 $as_echo_n "(cached) " >&6
7154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7155 /* end confdefs.h. */
7156 /* Work also in C++ mode. */
7157 #define __STDC_LIMIT_MACROS 1
7159 /* Work if build is not clean. */
7160 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
7167 #if defined INT32_MAX && defined INTMAX_MAX
7168 #define CONDITION (INT32_MAX < INTMAX_MAX)
7169 #elif HAVE_LONG_LONG_INT
7170 #define CONDITION (sizeof (int) < sizeof (long long int))
7174 int test[CONDITION ? 1 : -1];
7183 if ac_fn_c_try_compile
"$LINENO"; then :
7184 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=yes
7186 gl_cv_test_INT32_MAX_LT_INTMAX_MAX
=no
7188 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
7191 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
7192 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
7193 INT32_MAX_LT_INTMAX_MAX
=1;
7195 INT32_MAX_LT_INTMAX_MAX
=0;
7199 if test $APPLE_UNIVERSAL_BUILD = 0; then
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
7202 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
7203 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
7204 $as_echo_n "(cached) " >&6
7206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7207 /* end confdefs.h. */
7208 /* Work also in C++ mode. */
7209 #define __STDC_LIMIT_MACROS 1
7211 /* Work if build is not clean. */
7212 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
7219 #if defined INT64_MAX
7220 #define CONDITION (INT64_MAX == LONG_MAX)
7221 #elif HAVE_LONG_LONG_INT
7222 #define CONDITION (sizeof (long long int) == sizeof (long int))
7226 int test[CONDITION ? 1 : -1];
7235 if ac_fn_c_try_compile
"$LINENO"; then :
7236 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=yes
7238 gl_cv_test_INT64_MAX_EQ_LONG_MAX
=no
7240 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
7243 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
7244 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
7245 INT64_MAX_EQ_LONG_MAX
=1;
7247 INT64_MAX_EQ_LONG_MAX
=0;
7252 INT64_MAX_EQ_LONG_MAX
=-1
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
7256 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
7257 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
7258 $as_echo_n "(cached) " >&6
7260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7261 /* end confdefs.h. */
7262 /* Work also in C++ mode. */
7263 #define __STDC_LIMIT_MACROS 1
7265 /* Work if build is not clean. */
7266 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
7273 #if defined UINT32_MAX && defined UINTMAX_MAX
7274 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
7275 #elif HAVE_LONG_LONG_INT
7276 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
7280 int test[CONDITION ? 1 : -1];
7289 if ac_fn_c_try_compile
"$LINENO"; then :
7290 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=yes
7292 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX
=no
7294 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
7297 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
7298 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
7299 UINT32_MAX_LT_UINTMAX_MAX
=1;
7301 UINT32_MAX_LT_UINTMAX_MAX
=0;
7305 if test $APPLE_UNIVERSAL_BUILD = 0; then
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
7308 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
7309 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
7310 $as_echo_n "(cached) " >&6
7312 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7313 /* end confdefs.h. */
7314 /* Work also in C++ mode. */
7315 #define __STDC_LIMIT_MACROS 1
7317 /* Work if build is not clean. */
7318 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
7325 #if defined UINT64_MAX
7326 #define CONDITION (UINT64_MAX == ULONG_MAX)
7327 #elif HAVE_LONG_LONG_INT
7328 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
7332 int test[CONDITION ? 1 : -1];
7341 if ac_fn_c_try_compile
"$LINENO"; then :
7342 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=yes
7344 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX
=no
7346 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
7349 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
7350 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
7351 UINT64_MAX_EQ_ULONG_MAX
=1;
7353 UINT64_MAX_EQ_ULONG_MAX
=0;
7358 UINT64_MAX_EQ_ULONG_MAX
=-1
7362 for gl_func
in imaxabs imaxdiv strtoimax strtoumax
; do
7363 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7365 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7366 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7367 $as_echo_n "(cached) " >&6
7369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7370 /* end confdefs.h. */
7371 #include <inttypes.h>
7382 if ac_fn_c_try_compile
"$LINENO"; then :
7383 eval "$as_gl_Symbol=yes"
7385 eval "$as_gl_Symbol=no"
7387 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7389 eval ac_res
=\$
$as_gl_Symbol
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7391 $as_echo "$ac_res" >&6; }
7392 eval as_val
=\$
$as_gl_Symbol
7393 if test "x$as_val" = x
""yes; then :
7394 cat >>confdefs.h
<<_ACEOF
7395 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7398 eval ac_cv_have_decl_
$gl_func=yes
7403 # Code from module memchr:
7412 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
7416 # Code from module memmem:
7419 if test $ac_cv_have_decl_memmem = yes; then
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
7421 $as_echo_n "checking whether memmem works in linear time... " >&6; }
7422 if test "${gl_cv_func_memmem_works+set}" = set; then :
7423 $as_echo_n "(cached) " >&6
7425 if test "$cross_compiling" = yes; then :
7426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7427 /* end confdefs.h. */
7429 #include <features.h>
7430 #ifdef __GNU_LIBRARY__
7431 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)
7436 #include <cygwin/version.h>
7437 #if CYGWIN_VERSION_DLL_MAJOR >= 1007
7443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7444 $EGREP "Lucky user" >/dev
/null
2>&1; then :
7445 gl_cv_func_memmem_works
=yes
7447 gl_cv_func_memmem_works
="guessing no"
7453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7454 /* end confdefs.h. */
7456 #include <signal.h> /* for signal */
7457 #include <string.h> /* for memmem */
7458 #include <stdlib.h> /* for malloc */
7459 #include <unistd.h> /* for alarm */
7465 char *haystack = (char *) malloc (2 * m + 1);
7466 char *needle = (char *) malloc (m + 1);
7468 /* Failure to compile this test due to missing alarm is okay,
7469 since all such platforms (mingw) also lack memmem. */
7470 signal (SIGALRM, SIG_DFL);
7472 /* Check for quadratic performance. */
7473 if (haystack && needle)
7475 memset (haystack, 'A', 2 * m);
7476 haystack[2 * m] = 'B';
7477 memset (needle, 'A', m);
7479 result = memmem (haystack, 2 * m + 1, needle, m + 1);
7481 /* Check for empty needle behavior. */
7482 return !result || !memmem ("a", 1, 0, 0);
7487 if ac_fn_c_try_run
"$LINENO"; then :
7488 gl_cv_func_memmem_works
=yes
7490 gl_cv_func_memmem_works
=no
7492 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7493 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works" >&5
7499 $as_echo "$gl_cv_func_memmem_works" >&6; }
7500 if test "$gl_cv_func_memmem_works" != yes; then
7510 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
7515 # Code from module memmem-simple:
7528 for ac_func
in memmem
7530 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
7531 if test "x$ac_cv_func_memmem" = x
""yes; then :
7532 cat >>confdefs.h
<<_ACEOF
7533 #define HAVE_MEMMEM 1
7538 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
7551 if test $ac_cv_have_decl_memmem = no
; then
7563 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
7567 # Code from module multiarch:
7569 # Code from module stddef:
7573 if test $gt_cv_c_wchar_t = no
; then
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
7578 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
7579 if test "${gl_cv_decl_null_works+set}" = set; then :
7580 $as_echo_n "(cached) " >&6
7582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7583 /* end confdefs.h. */
7585 int test[2 * (sizeof NULL == sizeof (void *)) -1];
7595 if ac_fn_c_try_compile
"$LINENO"; then :
7596 gl_cv_decl_null_works
=yes
7598 gl_cv_decl_null_works
=no
7600 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
7603 $as_echo "$gl_cv_decl_null_works" >&6; }
7604 if test $gl_cv_decl_null_works = no
; then
7608 if test -n "$STDDEF_H"; then
7621 if test $gl_cv_have_include_next = yes; then
7622 gl_cv_next_stddef_h
='<'stddef.h
'>'
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
7625 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
7626 if test "${gl_cv_next_stddef_h+set}" = set; then :
7627 $as_echo_n "(cached) " >&6
7630 if test $ac_cv_header_stddef_h = yes; then
7631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7632 /* end confdefs.h. */
7637 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
7638 *) gl_absname_cpp
="$ac_cpp" ;;
7640 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7641 sed -n '\#/stddef.h#{
7642 s#.*"\(.*/stddef.h\)".*#\1#
7648 gl_cv_next_stddef_h
='<'stddef.h
'>'
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
7653 $as_echo "$gl_cv_next_stddef_h" >&6; }
7655 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
7657 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
7658 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7659 gl_next_as_first_directive
='<'stddef.h
'>'
7661 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7662 gl_next_as_first_directive
=$gl_cv_next_stddef_h
7664 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
7670 # Code from module stdint:
7674 if test $ac_cv_type_long_long_int = yes; then
7675 HAVE_LONG_LONG_INT
=1
7677 HAVE_LONG_LONG_INT
=0
7681 if test $ac_cv_type_unsigned_long_long_int = yes; then
7682 HAVE_UNSIGNED_LONG_LONG_INT
=1
7684 HAVE_UNSIGNED_LONG_LONG_INT
=0
7688 if test $ac_cv_header_inttypes_h = yes; then
7695 if test $ac_cv_header_sys_types_h = yes; then
7714 if test $gl_cv_have_include_next = yes; then
7715 gl_cv_next_stdint_h
='<'stdint.h
'>'
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
7718 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
7719 if test "${gl_cv_next_stdint_h+set}" = set; then :
7720 $as_echo_n "(cached) " >&6
7723 if test $ac_cv_header_stdint_h = yes; then
7724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7725 /* end confdefs.h. */
7730 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
7731 *) gl_absname_cpp
="$ac_cpp" ;;
7733 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7734 sed -n '\#/stdint.h#{
7735 s#.*"\(.*/stdint.h\)".*#\1#
7741 gl_cv_next_stdint_h
='<'stdint.h
'>'
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
7746 $as_echo "$gl_cv_next_stdint_h" >&6; }
7748 NEXT_STDINT_H
=$gl_cv_next_stdint_h
7750 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
7751 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7752 gl_next_as_first_directive
='<'stdint.h
'>'
7754 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7755 gl_next_as_first_directive
=$gl_cv_next_stdint_h
7757 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
7761 if test $ac_cv_header_stdint_h = yes; then
7768 if test $ac_cv_header_stdint_h = yes; then
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
7770 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
7771 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
7772 $as_echo_n "(cached) " >&6
7774 gl_cv_header_working_stdint_h
=no
7775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7776 /* end confdefs.h. */
7779 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
7780 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
7781 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
7783 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
7784 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
7785 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
7789 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7790 included before <wchar.h>. */
7801 int8_t a1 = INT8_MAX;
7802 int8_t a1min = INT8_MIN;
7805 int16_t a2 = INT16_MAX;
7806 int16_t a2min = INT16_MIN;
7809 int32_t a3 = INT32_MAX;
7810 int32_t a3min = INT32_MIN;
7813 int64_t a4 = INT64_MAX;
7814 int64_t a4min = INT64_MIN;
7817 uint8_t b1 = UINT8_MAX;
7819 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
7822 uint16_t b2 = UINT16_MAX;
7825 uint32_t b3 = UINT32_MAX;
7828 uint64_t b4 = UINT64_MAX;
7830 int_least8_t c1 = INT8_C (0x7f);
7831 int_least8_t c1max = INT_LEAST8_MAX;
7832 int_least8_t c1min = INT_LEAST8_MIN;
7833 int_least16_t c2 = INT16_C (0x7fff);
7834 int_least16_t c2max = INT_LEAST16_MAX;
7835 int_least16_t c2min = INT_LEAST16_MIN;
7836 int_least32_t c3 = INT32_C (0x7fffffff);
7837 int_least32_t c3max = INT_LEAST32_MAX;
7838 int_least32_t c3min = INT_LEAST32_MIN;
7839 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
7840 int_least64_t c4max = INT_LEAST64_MAX;
7841 int_least64_t c4min = INT_LEAST64_MIN;
7842 uint_least8_t d1 = UINT8_C (0xff);
7843 uint_least8_t d1max = UINT_LEAST8_MAX;
7844 uint_least16_t d2 = UINT16_C (0xffff);
7845 uint_least16_t d2max = UINT_LEAST16_MAX;
7846 uint_least32_t d3 = UINT32_C (0xffffffff);
7847 uint_least32_t d3max = UINT_LEAST32_MAX;
7848 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
7849 uint_least64_t d4max = UINT_LEAST64_MAX;
7850 int_fast8_t e1 = INT_FAST8_MAX;
7851 int_fast8_t e1min = INT_FAST8_MIN;
7852 int_fast16_t e2 = INT_FAST16_MAX;
7853 int_fast16_t e2min = INT_FAST16_MIN;
7854 int_fast32_t e3 = INT_FAST32_MAX;
7855 int_fast32_t e3min = INT_FAST32_MIN;
7856 int_fast64_t e4 = INT_FAST64_MAX;
7857 int_fast64_t e4min = INT_FAST64_MIN;
7858 uint_fast8_t f1 = UINT_FAST8_MAX;
7859 uint_fast16_t f2 = UINT_FAST16_MAX;
7860 uint_fast32_t f3 = UINT_FAST32_MAX;
7861 uint_fast64_t f4 = UINT_FAST64_MAX;
7863 intptr_t g = INTPTR_MAX;
7864 intptr_t gmin = INTPTR_MIN;
7867 uintptr_t h = UINTPTR_MAX;
7869 intmax_t i = INTMAX_MAX;
7870 uintmax_t j = UINTMAX_MAX;
7872 #include <limits.h> /* for CHAR_BIT */
7873 #define TYPE_MINIMUM(t) \
7874 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
7875 #define TYPE_MAXIMUM(t) \
7876 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
7879 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
7880 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
7882 /* Detect bug in FreeBSD 6.0 / ia64. */
7883 int check_SIG_ATOMIC:
7884 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
7885 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
7887 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
7889 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
7890 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
7892 /* Detect bug in mingw. */
7894 WINT_MIN == TYPE_MINIMUM (wint_t)
7895 && WINT_MAX == TYPE_MAXIMUM (wint_t)
7898 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
7900 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
7902 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
7904 /* Detect bugs in OpenBSD 3.9 stdint.h. */
7906 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
7909 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
7912 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
7915 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
7917 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
7918 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
7919 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
7920 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
7921 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
7922 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
7923 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
7924 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
7925 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
7926 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
7927 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
7938 if ac_fn_c_try_compile
"$LINENO"; then :
7939 if test "$cross_compiling" = yes; then :
7940 gl_cv_header_working_stdint_h
=yes
7943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7944 /* end confdefs.h. */
7947 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
7948 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
7949 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
7953 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7954 included before <wchar.h>. */
7966 #define MVAL(macro) MVAL1(macro)
7967 #define MVAL1(expression) #expression
7968 static const char *macro_values[] =
8002 for (mv = macro_values; *mv != NULL; mv++)
8004 const char *value = *mv;
8005 /* Test whether it looks like a cast expression. */
8006 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
8007 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
8008 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
8009 || strncmp (value, "((int)"/*)*/, 6) == 0
8010 || strncmp (value, "((signed short)"/*)*/, 15) == 0
8011 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
8020 if ac_fn_c_try_run
"$LINENO"; then :
8021 gl_cv_header_working_stdint_h
=yes
8023 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8024 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
8033 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
8035 if test "$gl_cv_header_working_stdint_h" = yes; then
8038 for ac_header
in sys
/inttypes.h sys
/bitypes.h
8040 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8041 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8042 eval as_val
=\$
$as_ac_Header
8043 if test "x$as_val" = x
""yes; then :
8044 cat >>confdefs.h
<<_ACEOF
8045 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8052 if test $ac_cv_header_sys_inttypes_h = yes; then
8053 HAVE_SYS_INTTYPES_H
=1
8055 HAVE_SYS_INTTYPES_H
=0
8058 if test $ac_cv_header_sys_bitypes_h = yes; then
8059 HAVE_SYS_BITYPES_H
=1
8061 HAVE_SYS_BITYPES_H
=0
8075 if test $APPLE_UNIVERSAL_BUILD = 0; then
8078 for gltype
in ptrdiff_t size_t
; do
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
8080 $as_echo_n "checking for bit size of $gltype... " >&6; }
8081 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
8082 $as_echo_n "(cached) " >&6
8084 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
8085 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8086 included before <wchar.h>. */
8095 #include <limits.h>"; then :
8101 eval gl_cv_bitsizeof_
${gltype}=\
$result
8104 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8106 $as_echo "$ac_res" >&6; }
8107 eval result
=\
$gl_cv_bitsizeof_${gltype}
8108 if test $result = unknown
; then
8111 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8112 cat >>confdefs.h
<<_ACEOF
8113 #define BITSIZEOF_${GLTYPE} $result
8116 eval BITSIZEOF_
${GLTYPE}=\
$result
8123 for gltype
in sig_atomic_t wchar_t wint_t
; do
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
8125 $as_echo_n "checking for bit size of $gltype... " >&6; }
8126 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
8127 $as_echo_n "(cached) " >&6
8129 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
8130 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8131 included before <wchar.h>. */
8140 #include <limits.h>"; then :
8146 eval gl_cv_bitsizeof_
${gltype}=\
$result
8149 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8151 $as_echo "$ac_res" >&6; }
8152 eval result
=\
$gl_cv_bitsizeof_${gltype}
8153 if test $result = unknown
; then
8156 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8157 cat >>confdefs.h
<<_ACEOF
8158 #define BITSIZEOF_${GLTYPE} $result
8161 eval BITSIZEOF_
${GLTYPE}=\
$result
8167 for gltype
in sig_atomic_t wchar_t wint_t
; do
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
8169 $as_echo_n "checking whether $gltype is signed... " >&6; }
8170 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
8171 $as_echo_n "(cached) " >&6
8173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8174 /* end confdefs.h. */
8176 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8177 included before <wchar.h>. */
8186 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
8195 if ac_fn_c_try_compile
"$LINENO"; then :
8200 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8201 eval gl_cv_type_
${gltype}_signed
=\
$result
8204 eval ac_res
=\
$gl_cv_type_${gltype}_signed
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8206 $as_echo "$ac_res" >&6; }
8207 eval result
=\
$gl_cv_type_${gltype}_signed
8208 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8209 if test "$result" = yes; then
8210 cat >>confdefs.h
<<_ACEOF
8211 #define HAVE_SIGNED_${GLTYPE} 1
8214 eval HAVE_SIGNED_
${GLTYPE}=1
8216 eval HAVE_SIGNED_
${GLTYPE}=0
8221 gl_cv_type_ptrdiff_t_signed
=yes
8222 gl_cv_type_size_t_signed
=no
8223 if test $APPLE_UNIVERSAL_BUILD = 0; then
8226 for gltype
in ptrdiff_t size_t
; do
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8228 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8229 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8230 $as_echo_n "(cached) " >&6
8232 eval gl_cv_type_
${gltype}_suffix
=no
8233 eval result
=\
$gl_cv_type_${gltype}_signed
8234 if test "$result" = yes; then
8239 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
8242 l
) gltype1
='long int';;
8243 ll
) gltype1
='long long int';;
8244 i64
) gltype1
='__int64';;
8245 u
) gltype1
='unsigned int';;
8246 ul
) gltype1
='unsigned long int';;
8247 ull
) gltype1
='unsigned long long int';;
8248 ui64
)gltype1
='unsigned __int64';;
8250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8251 /* end confdefs.h. */
8253 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8254 included before <wchar.h>. */
8264 extern $gltype1 foo;
8273 if ac_fn_c_try_compile
"$LINENO"; then :
8274 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
8276 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8277 eval result
=\
$gl_cv_type_${gltype}_suffix
8278 test "$result" != no
&& break
8281 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8283 $as_echo "$ac_res" >&6; }
8284 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8285 eval result
=\
$gl_cv_type_${gltype}_suffix
8286 test "$result" = no
&& result
=
8287 eval ${GLTYPE}_SUFFIX
=\
$result
8288 cat >>confdefs.h
<<_ACEOF
8289 #define ${GLTYPE}_SUFFIX $result
8298 for gltype
in sig_atomic_t wchar_t wint_t
; do
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8300 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8301 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8302 $as_echo_n "(cached) " >&6
8304 eval gl_cv_type_
${gltype}_suffix
=no
8305 eval result
=\
$gl_cv_type_${gltype}_signed
8306 if test "$result" = yes; then
8311 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
8314 l
) gltype1
='long int';;
8315 ll
) gltype1
='long long int';;
8316 i64
) gltype1
='__int64';;
8317 u
) gltype1
='unsigned int';;
8318 ul
) gltype1
='unsigned long int';;
8319 ull
) gltype1
='unsigned long long int';;
8320 ui64
)gltype1
='unsigned __int64';;
8322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8323 /* end confdefs.h. */
8325 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8326 included before <wchar.h>. */
8336 extern $gltype1 foo;
8345 if ac_fn_c_try_compile
"$LINENO"; then :
8346 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
8348 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8349 eval result
=\
$gl_cv_type_${gltype}_suffix
8350 test "$result" != no
&& break
8353 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8355 $as_echo "$ac_res" >&6; }
8356 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8357 eval result
=\
$gl_cv_type_${gltype}_suffix
8358 test "$result" = no
&& result
=
8359 eval ${GLTYPE}_SUFFIX
=\
$result
8360 cat >>confdefs.h
<<_ACEOF
8361 #define ${GLTYPE}_SUFFIX $result
8372 # Code from module string:
8376 # Code from module update-copyright:
8377 # Code from module warn-on-use:
8378 # Code from module wchar:
8401 if test $gl_cv_have_include_next = yes; then
8402 gl_cv_next_wchar_h
='<'wchar.h
'>'
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
8405 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
8406 if test "${gl_cv_next_wchar_h+set}" = set; then :
8407 $as_echo_n "(cached) " >&6
8410 if test $ac_cv_header_wchar_h = yes; then
8411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8412 /* end confdefs.h. */
8417 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
8418 *) gl_absname_cpp
="$ac_cpp" ;;
8420 gl_cv_next_wchar_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8421 sed -n '\#/wchar.h#{
8422 s#.*"\(.*/wchar.h\)".*#\1#
8428 gl_cv_next_wchar_h
='<'wchar.h
'>'
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
8433 $as_echo "$gl_cv_next_wchar_h" >&6; }
8435 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
8437 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
8438 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8439 gl_next_as_first_directive
='<'wchar.h
'>'
8441 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8442 gl_next_as_first_directive
=$gl_cv_next_wchar_h
8444 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
=$gl_next_as_first_directive
8448 if test $ac_cv_header_wchar_h = yes; then
8456 if test $gt_cv_c_wint_t = yes; then
8464 for gl_func
in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth
; do
8465 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
8467 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
8468 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
8469 $as_echo_n "(cached) " >&6
8471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8472 /* end confdefs.h. */
8474 /* Some systems require additional headers. */
8476 # include <stddef.h>
8491 if ac_fn_c_try_compile
"$LINENO"; then :
8492 eval "$as_gl_Symbol=yes"
8494 eval "$as_gl_Symbol=no"
8496 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8498 eval ac_res
=\$
$as_gl_Symbol
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8500 $as_echo "$ac_res" >&6; }
8501 eval as_val
=\$
$as_gl_Symbol
8502 if test "x$as_val" = x
""yes; then :
8503 cat >>confdefs.h
<<_ACEOF
8504 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
8507 eval ac_cv_have_decl_
$gl_func=yes
8512 # Code from module dummy:
8513 # End of code from modules
8534 gl_source_base
='tests'
8535 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
8537 gl_module_indicator_condition
=$gltests_WITNESS
8547 LIBGNU_LIBDEPS
="$gl_libdeps"
8549 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
8553 # For Makefile dependencies.
8555 if test x
"$STDINT_H" != x
; then
8556 GNULIB_STDINT_H
=gnulib
/$STDINT_H
8562 cat >>confdefs.h
<<_ACEOF
8563 #define PACKAGE "$PACKAGE"
8568 # We never need to detect it in this sub-configure.
8569 # But preserve it for config.status --recheck.
8573 MAKEINFO_EXTRA_FLAGS
=""
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
8575 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
8576 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
8577 $as_echo_n "(cached) " >&6
8579 echo '@clicksequence{a @click{} b}' >conftest.texinfo
8580 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
8581 gdb_cv_have_makeinfo_click
=yes
8583 gdb_cv_have_makeinfo_click
=no
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
8587 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
8588 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
8589 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
8593 # GDB does not use automake, but gnulib does. This line lets us
8594 # generate its Makefile.in.
8595 am__api_version
='1.11'
8597 # Find a good install program. We prefer a C program (faster),
8598 # so one script is as good as another. But avoid the broken or
8599 # incompatible versions:
8600 # SysV /etc/install, /usr/sbin/install
8601 # SunOS /usr/etc/install
8602 # IRIX /sbin/install
8604 # AmigaOS /C/install, which installs bootblocks on floppy discs
8605 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8606 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8607 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8608 # OS/2's system install, which has a completely different semantic
8609 # ./install, which can be erroneously created by make from ./install.sh.
8610 # Reject install programs that cannot install multiple files.
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8612 $as_echo_n "checking for a BSD-compatible install... " >&6; }
8613 if test -z "$INSTALL"; then
8614 if test "${ac_cv_path_install+set}" = set; then :
8615 $as_echo_n "(cached) " >&6
8617 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8621 test -z "$as_dir" && as_dir
=.
8622 # Account for people who put trailing slashes in PATH elements.
8623 case $as_dir/ in #((
8624 .
/ | .
// |
/[cC
]/* | \
8625 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
8626 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
8629 # OSF1 and SCO ODT 3.0 have their own names for install.
8630 # Don't use installbsd from OSF since it installs stuff as root
8632 for ac_prog
in ginstall scoinst
install; do
8633 for ac_exec_ext
in '' $ac_executable_extensions; do
8634 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
8635 if test $ac_prog = install &&
8636 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
8637 # AIX install. It has an incompatible calling convention.
8639 elif test $ac_prog = install &&
8640 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
8641 # program-specific install script used by HP pwplus--don't use.
8644 rm -rf conftest.one conftest.two conftest.dir
8645 echo one
> conftest.one
8646 echo two
> conftest.two
8648 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
8649 test -s conftest.one
&& test -s conftest.two
&&
8650 test -s conftest.dir
/conftest.one
&&
8651 test -s conftest.dir
/conftest.two
8653 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
8666 rm -rf conftest.one conftest.two conftest.dir
8669 if test "${ac_cv_path_install+set}" = set; then
8670 INSTALL
=$ac_cv_path_install
8672 # As a last resort, use the slow shell script. Don't cache a
8673 # value for INSTALL within a source directory, because that will
8674 # break other packages using the cache if that directory is
8675 # removed, or if the value is a relative name.
8676 INSTALL
=$ac_install_sh
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8680 $as_echo "$INSTALL" >&6; }
8682 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8683 # It thinks the first close brace ends the variable substitution.
8684 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8686 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
8688 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
8691 $as_echo_n "checking whether build environment is sane... " >&6; }
8694 echo timestamp
> conftest.
file
8695 # Reject unsafe characters in $srcdir or the absolute working directory
8696 # name. Accept space and tab only in the latter.
8700 *[\\\"\
#\$\&\'\`$am_lf]*)
8701 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
8704 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
8705 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
8708 # Do `set' in a subshell so we don't clobber the current shell's
8709 # arguments. Must try -L first in case configure is actually a
8710 # symlink; some systems play weird games with the mod time of symlinks
8711 # (eg FreeBSD returns the mod time of the symlink's containing
8714 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
8715 if test "$*" = "X"; then
8717 set X
`ls -t "$srcdir/configure" conftest.file`
8720 if test "$*" != "X $srcdir/configure conftest.file" \
8721 && test "$*" != "X conftest.file $srcdir/configure"; then
8723 # If neither matched, then we have a broken ls. This can happen
8724 # if, for instance, CONFIG_SHELL is bash and it inherits a
8725 # broken ls alias from the environment. This has actually
8726 # happened. Such a system could not be considered "sane".
8727 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
8728 alias in your environment" "$LINENO" 5
8731 test "$2" = conftest.
file
8737 as_fn_error
"newly created file is older than distributed files!
8738 Check your system clock" "$LINENO" 5
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8741 $as_echo "yes" >&6; }
8742 test "$program_prefix" != NONE
&&
8743 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
8744 # Use a double $ so make ignores it.
8745 test "$program_suffix" != NONE
&&
8746 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
8747 # Double any \ or $.
8748 # By default was `s,x,x', remove it if useless.
8749 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
8750 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
8752 # expand $ac_aux_dir to an absolute path
8753 am_aux_dir
=`cd $ac_aux_dir && pwd`
8755 if test x
"${MISSING+set}" != xset
; then
8758 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
8760 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
8763 # Use eval to expand $SHELL
8764 if eval "$MISSING --run true"; then
8765 am_missing_run
="$MISSING --run "
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
8769 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
8772 if test x
"${install_sh}" != xset
; then
8775 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
8777 install_sh
="\${SHELL} $am_aux_dir/install-sh"
8781 # Installed binaries are usually stripped using `strip' when the user
8782 # run `make install-strip'. However `strip' might not be the right
8783 # tool to use in cross-compilation environments, therefore Automake
8784 # will honor the `STRIP' environment variable to overrule this program.
8785 if test "$cross_compiling" != no
; then
8786 if test -n "$ac_tool_prefix"; then
8787 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8788 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8790 $as_echo_n "checking for $ac_word... " >&6; }
8791 if test "${ac_cv_prog_STRIP+set}" = set; then :
8792 $as_echo_n "(cached) " >&6
8794 if test -n "$STRIP"; then
8795 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
8797 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8801 test -z "$as_dir" && as_dir
=.
8802 for ac_exec_ext
in '' $ac_executable_extensions; do
8803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8804 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
8805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8814 STRIP
=$ac_cv_prog_STRIP
8815 if test -n "$STRIP"; then
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8817 $as_echo "$STRIP" >&6; }
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8820 $as_echo "no" >&6; }
8825 if test -z "$ac_cv_prog_STRIP"; then
8827 # Extract the first word of "strip", so it can be a program name with args.
8828 set dummy strip
; ac_word
=$2
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8830 $as_echo_n "checking for $ac_word... " >&6; }
8831 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8832 $as_echo_n "(cached) " >&6
8834 if test -n "$ac_ct_STRIP"; then
8835 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
8837 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8841 test -z "$as_dir" && as_dir
=.
8842 for ac_exec_ext
in '' $ac_executable_extensions; do
8843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8844 ac_cv_prog_ac_ct_STRIP
="strip"
8845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8854 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
8855 if test -n "$ac_ct_STRIP"; then
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8857 $as_echo "$ac_ct_STRIP" >&6; }
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8860 $as_echo "no" >&6; }
8863 if test "x$ac_ct_STRIP" = x
; then
8866 case $cross_compiling:$ac_tool_warned in
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8870 ac_tool_warned
=yes ;;
8875 STRIP
="$ac_cv_prog_STRIP"
8879 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
8882 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
8883 if test -z "$MKDIR_P"; then
8884 if test "${ac_cv_path_mkdir+set}" = set; then :
8885 $as_echo_n "(cached) " >&6
8887 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8888 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
8891 test -z "$as_dir" && as_dir
=.
8892 for ac_prog
in mkdir gmkdir
; do
8893 for ac_exec_ext
in '' $ac_executable_extensions; do
8894 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
8895 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
8896 'mkdir (GNU coreutils) '* | \
8897 'mkdir (coreutils) '* | \
8898 'mkdir (fileutils) '4.1*)
8899 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
8909 if test "${ac_cv_path_mkdir+set}" = set; then
8910 MKDIR_P
="$ac_cv_path_mkdir -p"
8912 # As a last resort, use the slow shell script. Don't cache a
8913 # value for MKDIR_P within a source directory, because that will
8914 # break other packages using the cache if that directory is
8915 # removed, or if the value is a relative name.
8916 test -d .
/--version && rmdir .
/--version
8917 MKDIR_P
="$ac_install_sh -d"
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
8921 $as_echo "$MKDIR_P" >&6; }
8926 [\\/$
]* | ?
:[\\/]*) ;;
8927 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
8930 for ac_prog
in gawk mawk nawk
awk
8932 # Extract the first word of "$ac_prog", so it can be a program name with args.
8933 set dummy
$ac_prog; ac_word
=$2
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8935 $as_echo_n "checking for $ac_word... " >&6; }
8936 if test "${ac_cv_prog_AWK+set}" = set; then :
8937 $as_echo_n "(cached) " >&6
8939 if test -n "$AWK"; then
8940 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8942 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8946 test -z "$as_dir" && as_dir
=.
8947 for ac_exec_ext
in '' $ac_executable_extensions; do
8948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8949 ac_cv_prog_AWK
="$ac_prog"
8950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8960 if test -n "$AWK"; then
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8962 $as_echo "$AWK" >&6; }
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8965 $as_echo "no" >&6; }
8969 test -n "$AWK" && break
8972 ac_config_commands
="$ac_config_commands depfiles"
8975 am_make
=${MAKE-make}
8976 cat > confinc
<< 'END'
8978 @
echo this is the am__doit target
8981 # If we don't find an include directive, just comment out the code.
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
8983 $as_echo_n "checking for style of include used by $am_make... " >&6; }
8987 # First try GNU make style include.
8988 echo "include confinc" > confmf
8989 # Ignore all kinds of additional output from `make'.
8990 case `$am_make -s -f confmf 2> /dev/null` in #(
8991 *the\ am__doit\ target
*)
8997 # Now try BSD make style include.
8998 if test "$am__include" = "#"; then
8999 echo '.include "confinc"' > confmf
9000 case `$am_make -s -f confmf 2> /dev/null` in #(
9001 *the\ am__doit\ target
*)
9002 am__include
=.include
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
9011 $as_echo "$_am_result" >&6; }
9012 rm -f confinc confmf
9014 # Check whether --enable-dependency-tracking was given.
9015 if test "${enable_dependency_tracking+set}" = set; then :
9016 enableval
=$enable_dependency_tracking;
9019 if test "x$enable_dependency_tracking" != xno
; then
9020 am_depcomp
="$ac_aux_dir/depcomp"
9023 if test "x$enable_dependency_tracking" != xno; then
9032 if test "`cd $srcdir && pwd`" != "`pwd`"; then
9033 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9034 # is not polluted with repeated "-I."
9035 am__isrc
=' -I$(srcdir)'
9036 # test to see if srcdir already configured
9037 if test -f $srcdir/config.status
; then
9038 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
9042 # test whether we have cygpath
9043 if test -z "$CYGPATH_W"; then
9044 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
9045 CYGPATH_W
='cygpath -w'
9052 # Define the identity of the package.
9054 VERSION
=UNUSED-VERSION
9057 # Some tools Automake needs.
9059 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
9062 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
9065 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
9068 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
9071 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
9073 # We need awk for the "check" target. The system "awk" is bad on
9075 # Always define AMTAR for backward compatibility.
9077 AMTAR
=${AMTAR-"${am_missing_run}tar"}
9079 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
9084 depcc
="$CC" am_compiler_list
=
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9087 $as_echo_n "checking dependency style of $depcc... " >&6; }
9088 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
9089 $as_echo_n "(cached) " >&6
9091 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9092 # We make a subdir and do the tests there. Otherwise we can end up
9093 # making bogus files that we don't know about and never remove. For
9094 # instance it was reported that on HP-UX the gcc test will end up
9095 # making a dummy file named `D' -- because `-MD' means `put the output
9098 # Copy depcomp to subdir because otherwise we won't find it if we're
9099 # using a relative directory.
9100 cp "$am_depcomp" conftest.dir
9102 # We will build objects and dependencies in a subdirectory because
9103 # it helps to detect inapplicable dependency modes. For instance
9104 # both Tru64's cc and ICC support -MD to output dependencies as a
9105 # side effect of compilation, but ICC will put the dependencies in
9106 # the current directory while Tru64 will put them in the object
9110 am_cv_CC_dependencies_compiler_type
=none
9111 if test "$am_compiler_list" = ""; then
9112 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9115 case " $depcc " in #(
9116 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
9119 for depmode
in $am_compiler_list; do
9120 # Setup a source with many dependencies, because some compilers
9121 # like to wrap large dependency lists on column 80 (with \), and
9122 # we should not choose a depcomp mode which is confused by this.
9124 # We need to recreate these files for each test, as the compiler may
9125 # overwrite some of them when testing with obscure command lines.
9126 # This happens at least with the AIX C compiler.
9128 for i
in 1 2 3 4 5 6; do
9129 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9130 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9131 # Solaris 8's {/usr,}/bin/sh.
9132 touch sub
/conftst
$i.h
9134 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9136 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9137 # mode. It turns out that the SunPro C++ compiler does not properly
9138 # handle `-M -o', and we need to detect this. Also, some Intel
9139 # versions had trouble with output in subdirs
9140 am__obj
=sub
/conftest.
${OBJEXT-o}
9141 am__minus_obj
="-o $am__obj"
9144 # This depmode causes a compiler race in universal mode.
9145 test "$am__universal" = false ||
continue
9148 # after this tag, mechanisms are not by side-effect, so they'll
9149 # only be used when explicitly requested
9150 if test "x$enable_dependency_tracking" = xyes
; then
9156 msvisualcpp | msvcmsys
)
9157 # This compiler won't grok `-c -o', but also, the minuso test has
9158 # not run yet. These depmodes are late enough in the game, and
9159 # so weak that their functioning should not be impacted.
9160 am__obj
=conftest.
${OBJEXT-o}
9165 if depmode
=$depmode \
9166 source=sub
/conftest.c object
=$am__obj \
9167 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
9168 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
9169 >/dev
/null
2>conftest.err
&&
9170 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
9171 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
9172 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
9173 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
9174 # icc doesn't choke on unknown options, it will just issue warnings
9175 # or remarks (even with -Werror). So we grep stderr for any message
9176 # that says an option was ignored or not supported.
9177 # When given -MP, icc 7.0 and 7.1 complain thusly:
9178 # icc: Command line warning: ignoring option '-M'; no argument required
9179 # The diagnosis changed in icc 8.0:
9180 # icc: Command line remark: option '-MP' not supported
9181 if (grep 'ignoring option' conftest.err ||
9182 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9183 am_cv_CC_dependencies_compiler_type
=$depmode
9192 am_cv_CC_dependencies_compiler_type
=none
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
9197 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
9198 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
9201 test "x$enable_dependency_tracking" != xno \
9202 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
9204 am__fastdepCC_FALSE
='#'
9206 am__fastdepCC_TRUE
='#'
9207 am__fastdepCC_FALSE
=
9215 # Check whether --with-separate-debug-dir was given.
9216 if test "${with_separate_debug_dir+set}" = set; then :
9217 withval
=$with_separate_debug_dir;
9220 DEBUGDIR
=${libdir}/debug
9224 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9225 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9226 ac_define_dir
=`eval echo $DEBUGDIR`
9227 ac_define_dir
=`eval echo $ac_define_dir`
9229 cat >>confdefs.h
<<_ACEOF
9230 #define DEBUGDIR "$ac_define_dir"
9236 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9237 if test "x$prefix" = xNONE
; then
9238 test_prefix
=/usr
/local
9243 test_prefix
=$exec_prefix
9246 case ${ac_define_dir} in
9247 "${test_prefix}"|
"${test_prefix}/"*|\
9248 '${exec_prefix}'|
'${exec_prefix}/'*)
9253 cat >>confdefs.h
<<_ACEOF
9254 #define DEBUGDIR_RELOCATABLE $value
9260 # We can't pass paths as command line arguments.
9261 # Mingw32 tries to be clever and will convert the paths for us.
9262 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
9263 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
9264 # This breaks GDB's relocatable path conversions since paths passed in
9265 # config.h would not get so translated, the path prefixes no longer match.
9267 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9268 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9269 ac_define_dir
=`eval echo $bindir`
9270 ac_define_dir
=`eval echo $ac_define_dir`
9272 cat >>confdefs.h
<<_ACEOF
9273 #define BINDIR "$ac_define_dir"
9278 # GDB's datadir relocation
9282 # Check whether --with-gdb-datadir was given.
9283 if test "${with_gdb_datadir+set}" = set; then :
9284 withval
=$with_gdb_datadir;
9285 GDB_DATADIR
=$withval
9287 GDB_DATADIR
=${datadir}/gdb
9291 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9292 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9293 ac_define_dir
=`eval echo $GDB_DATADIR`
9294 ac_define_dir
=`eval echo $ac_define_dir`
9296 cat >>confdefs.h
<<_ACEOF
9297 #define GDB_DATADIR "$ac_define_dir"
9303 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9304 if test "x$prefix" = xNONE
; then
9305 test_prefix
=/usr
/local
9310 test_prefix
=$exec_prefix
9313 case ${ac_define_dir} in
9314 "${test_prefix}"|
"${test_prefix}/"*|\
9315 '${exec_prefix}'|
'${exec_prefix}/'*)
9320 cat >>confdefs.h
<<_ACEOF
9321 #define GDB_DATADIR_RELOCATABLE $value
9328 # Check whether --with-relocated-sources was given.
9329 if test "${with_relocated_sources+set}" = set; then :
9330 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
9332 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9333 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9334 ac_define_dir
=`eval echo $reloc_srcdir`
9335 ac_define_dir
=`eval echo $ac_define_dir`
9337 cat >>confdefs.h
<<_ACEOF
9338 #define RELOC_SRCDIR "$ac_define_dir"
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
9347 $as_echo_n "checking for default auto-load safe-path... " >&6; }
9349 # Check whether --with-auto-load-safe-path was given.
9350 if test "${with_auto_load_safe_path+set}" = set; then :
9351 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
9352 with_auto_load_safe_path
=""
9355 with_auto_load_safe_path
="$prefix"
9359 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9360 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9361 ac_define_dir
=`eval echo $with_auto_load_safe_path`
9362 ac_define_dir
=`eval echo $ac_define_dir`
9364 cat >>confdefs.h
<<_ACEOF
9365 #define DEFAULT_AUTO_LOAD_SAFE_PATH "$ac_define_dir"
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
9370 $as_echo "$with_auto_load_safe_path" >&6; }
9374 subdirs
="$subdirs testsuite"
9377 # Check whether to support alternative target configurations
9378 # Check whether --enable-targets was given.
9379 if test "${enable_targets+set}" = set; then :
9380 enableval
=$enable_targets; case "${enableval}" in
9381 yes |
"") as_fn_error
"enable-targets option must specify target names or 'all'" "$LINENO" 5
9383 no
) enable_targets
= ;;
9384 *) enable_targets
=$enableval ;;
9389 # Check whether to enable 64-bit support on 32-bit hosts
9390 # Check whether --enable-64-bit-bfd was given.
9391 if test "${enable_64_bit_bfd+set}" = set; then :
9392 enableval
=$enable_64_bit_bfd; case "${enableval}" in
9395 *) as_fn_error
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
9401 # Provide defaults for some variables set by the per-host and per-target
9403 gdb_host_obs
=posix-hdep.o
9405 if test "${target}" = "${host}"; then
9411 .
$srcdir/configure.
host
9413 # Accumulate some settings from configure.tgt over all enabled targets
9418 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
9420 if test "$targ_alias" = "all"; then
9423 # Canonicalize the secondary target names.
9424 result
=`$ac_config_sub $targ_alias 2>/dev/null`
9425 if test -n "$result"; then
9431 .
${srcdir}/configure.tgt
9433 if test -z "${gdb_target_obs}"; then :
9434 as_fn_error
"configuration ${targ} is unsupported." "$LINENO" 5
9437 # Target-specific object files
9438 for i
in ${gdb_target_obs}; do
9439 case " $TARGET_OBS " in
9442 TARGET_OBS
="$TARGET_OBS ${i}"
9447 # Check whether this target needs 64-bit CORE_ADDR
9448 if test x
${want64} = xfalse
; then
9449 .
${srcdir}/..
/bfd
/config.bfd
9454 if test x
${all_targets} = xtrue
; then
9456 # We want all 64-bit targets if we either:
9457 # - run on a 64-bit host or
9458 # - already require 64-bit support for some other target or
9459 # - the --enable-64-bit-bfd option was supplied
9460 # Otherwise we only support all 32-bit targets.
9462 # NOTE: This test must be in sync with the corresponding
9465 if test x
${want64} = xfalse
; then
9466 # The cast to long int works around a bug in the HP C Compiler
9467 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9468 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9469 # This bug is HP SR number 8606223364.
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
9471 $as_echo_n "checking size of long... " >&6; }
9472 if test "${ac_cv_sizeof_long+set}" = set; then :
9473 $as_echo_n "(cached) " >&6
9475 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
9478 if test "$ac_cv_type_long" = yes; then
9479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9481 { as_fn_set_status
77
9482 as_fn_error
"cannot compute sizeof (long)
9483 See \`config.log' for more details." "$LINENO" 5; }; }
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
9491 $as_echo "$ac_cv_sizeof_long" >&6; }
9495 cat >>confdefs.h
<<_ACEOF
9496 #define SIZEOF_LONG $ac_cv_sizeof_long
9500 if test "x${ac_cv_sizeof_long}" = "x8"; then
9504 if test x
${want64} = xtrue
; then
9505 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
9507 TARGET_OBS
='$(ALL_TARGET_OBS)'
9513 # For other settings, only the main target counts.
9517 targ
=$target; .
${srcdir}/configure.tgt
9519 # Fetch the default architecture and default target vector from BFD.
9520 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
9522 # We only want the first architecture, so strip off the others if
9523 # there is more than one.
9524 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
9526 if test "x$targ_archs" != x
; then
9528 cat >>confdefs.h
<<_ACEOF
9529 #define DEFAULT_BFD_ARCH $targ_archs
9533 if test "x$targ_defvec" != x
; then
9535 cat >>confdefs.h
<<_ACEOF
9536 #define DEFAULT_BFD_VEC $targ_defvec
9541 # The CLI cannot be disabled yet, but may be in the future.
9544 # Check whether --enable-gdbcli was given.
9545 if test "${enable_gdbcli+set}" = set; then :
9546 enableval
=$enable_gdbcli; case $enableval in
9550 as_fn_error
"the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
9552 as_fn_error
"bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
9558 if test x
"$enable_gdbcli" = xyes
; then
9559 if test -d $srcdir/cli
; then
9560 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
9561 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
9562 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
9563 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
9568 # Check whether --enable-gdbmi was given.
9569 if test "${enable_gdbmi+set}" = set; then :
9570 enableval
=$enable_gdbmi; case $enableval in
9574 as_fn_error
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
9580 if test x
"$enable_gdbmi" = xyes
; then
9581 if test -d $srcdir/mi
; then
9582 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
9583 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
9584 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
9585 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
9590 # Check whether --enable-tui was given.
9591 if test "${enable_tui+set}" = set; then :
9592 enableval
=$enable_tui; case $enableval in
9596 as_fn_error
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
9604 # Check whether --enable-gdbtk was given.
9605 if test "${enable_gdbtk+set}" = set; then :
9606 enableval
=$enable_gdbtk; case $enableval in
9610 as_fn_error
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
9613 if test -d $srcdir/gdbtk
; then
9620 # We unconditionally disable gdbtk tests on selected platforms.
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
9624 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
9628 # Libunwind support for ia64.
9631 # Check whether --with-libunwind-ia64 was given.
9632 if test "${with_libunwind_ia64+set}" = set; then :
9633 withval
=$with_libunwind_ia64;
9635 with_libunwind_ia64
=auto
9639 # Backward compatibility option.
9640 if test "${with_libunwind+set}" = set; then
9641 if test x
"$with_libunwind_ia64" != xauto
; then
9642 as_fn_error
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
9645 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
9646 with_libunwind_ia64
="$with_libunwind"
9649 case "$with_libunwind_ia64" in
9653 for ac_header
in libunwind-ia64.h
9655 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
9656 if test "x$ac_cv_header_libunwind_ia64_h" = x
""yes; then :
9657 cat >>confdefs.h
<<_ACEOF
9658 #define HAVE_LIBUNWIND_IA64_H 1
9665 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
9668 as_fn_error
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
9672 if test x
"$with_libunwind_ia64" = xyes
; then
9673 for ac_header
in libunwind-ia64.h
9675 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
9676 if test "x$ac_cv_header_libunwind_ia64_h" = x
""yes; then :
9677 cat >>confdefs.h
<<_ACEOF
9678 #define HAVE_LIBUNWIND_IA64_H 1
9685 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
9686 as_fn_error
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
9688 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
9689 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
9690 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
9695 # Check whether --with-curses was given.
9696 if test "${with_curses+set}" = set; then :
9697 withval
=$with_curses; opt_curses
=$withval
9702 if test "$opt_curses" = "yes"; then
9706 # Profiling support.
9707 # Check whether --enable-profiling was given.
9708 if test "${enable_profiling+set}" = set; then :
9709 enableval
=$enable_profiling; case $enableval in
9713 as_fn_error
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
9720 for ac_func
in monstartup _mcleanup
9722 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9723 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9724 eval as_val
=\$
$as_ac_var
9725 if test "x$as_val" = x
""yes; then :
9726 cat >>confdefs.h
<<_ACEOF
9727 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
9734 $as_echo_n "checking for _etext... " >&6; }
9735 if test "${ac_cv_var__etext+set}" = set; then :
9736 $as_echo_n "(cached) " >&6
9738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9739 /* end confdefs.h. */
9751 if ac_fn_c_try_link
"$LINENO"; then :
9752 ac_cv_var__etext
=yes
9756 rm -f core conftest.err conftest.
$ac_objext \
9757 conftest
$ac_exeext conftest.
$ac_ext
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
9760 $as_echo "$ac_cv_var__etext" >&6; }
9761 if test $ac_cv_var__etext = yes; then
9763 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
9767 $as_echo_n "checking for etext... " >&6; }
9768 if test "${ac_cv_var_etext+set}" = set; then :
9769 $as_echo_n "(cached) " >&6
9771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9772 /* end confdefs.h. */
9784 if ac_fn_c_try_link
"$LINENO"; then :
9789 rm -f core conftest.err conftest.
$ac_objext \
9790 conftest
$ac_exeext conftest.
$ac_ext
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
9793 $as_echo "$ac_cv_var_etext" >&6; }
9794 if test $ac_cv_var_etext = yes; then
9796 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
9799 if test "$enable_profiling" = yes ; then
9800 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
9801 as_fn_error
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
9804 OLD_CFLAGS
="$CFLAGS"
9805 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
9808 $as_echo_n "checking whether $CC supports -pg... " >&6; }
9809 if test "${ac_cv_cc_supports_pg+set}" = set; then :
9810 $as_echo_n "(cached) " >&6
9812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9813 /* end confdefs.h. */
9823 if ac_fn_c_try_compile
"$LINENO"; then :
9824 ac_cv_cc_supports_pg
=yes
9826 ac_cv_cc_supports_pg
=no
9828 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
9831 $as_echo "$ac_cv_cc_supports_pg" >&6; }
9833 if test $ac_cv_cc_supports_pg = no
; then
9834 as_fn_error
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
9837 CFLAGS
="$OLD_CFLAGS"
9842 # Check whether --with-pkgversion was given.
9843 if test "${with_pkgversion+set}" = set; then :
9844 withval
=$with_pkgversion; case "$withval" in
9845 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
9847 *) PKGVERSION
="($withval) " ;;
9858 # Check whether --with-bugurl was given.
9859 if test "${with_bugurl+set}" = set; then :
9860 withval
=$with_bugurl; case "$withval" in
9861 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
9864 *) BUGURL
="$withval"
9868 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
9878 REPORT_BUGS_TO
="<$BUGURL>"
9879 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
9886 cat >>confdefs.h
<<_ACEOF
9887 #define PKGVERSION "$PKGVERSION"
9891 cat >>confdefs.h
<<_ACEOF
9892 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
9896 # --------------------- #
9897 # Checks for programs. #
9898 # --------------------- #
9900 for ac_prog
in gawk mawk nawk
awk
9902 # Extract the first word of "$ac_prog", so it can be a program name with args.
9903 set dummy
$ac_prog; ac_word
=$2
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9905 $as_echo_n "checking for $ac_word... " >&6; }
9906 if test "${ac_cv_prog_AWK+set}" = set; then :
9907 $as_echo_n "(cached) " >&6
9909 if test -n "$AWK"; then
9910 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
9912 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9916 test -z "$as_dir" && as_dir
=.
9917 for ac_exec_ext
in '' $ac_executable_extensions; do
9918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9919 ac_cv_prog_AWK
="$ac_prog"
9920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9930 if test -n "$AWK"; then
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9932 $as_echo "$AWK" >&6; }
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9935 $as_echo "no" >&6; }
9939 test -n "$AWK" && break
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9944 $as_echo_n "checking whether ln -s works... " >&6; }
9946 if test "$LN_S" = "ln -s"; then
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9948 $as_echo "yes" >&6; }
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9951 $as_echo "no, using $LN_S" >&6; }
9954 if test -n "$ac_tool_prefix"; then
9955 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9956 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9958 $as_echo_n "checking for $ac_word... " >&6; }
9959 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9960 $as_echo_n "(cached) " >&6
9962 if test -n "$RANLIB"; then
9963 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
9965 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9969 test -z "$as_dir" && as_dir
=.
9970 for ac_exec_ext
in '' $ac_executable_extensions; do
9971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9972 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
9973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9982 RANLIB
=$ac_cv_prog_RANLIB
9983 if test -n "$RANLIB"; then
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9985 $as_echo "$RANLIB" >&6; }
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9988 $as_echo "no" >&6; }
9993 if test -z "$ac_cv_prog_RANLIB"; then
9994 ac_ct_RANLIB
=$RANLIB
9995 # Extract the first word of "ranlib", so it can be a program name with args.
9996 set dummy ranlib
; ac_word
=$2
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9998 $as_echo_n "checking for $ac_word... " >&6; }
9999 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
10000 $as_echo_n "(cached) " >&6
10002 if test -n "$ac_ct_RANLIB"; then
10003 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
10005 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10006 for as_dir
in $PATH
10009 test -z "$as_dir" && as_dir
=.
10010 for ac_exec_ext
in '' $ac_executable_extensions; do
10011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10012 ac_cv_prog_ac_ct_RANLIB
="ranlib"
10013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10022 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
10023 if test -n "$ac_ct_RANLIB"; then
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10025 $as_echo "$ac_ct_RANLIB" >&6; }
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10028 $as_echo "no" >&6; }
10031 if test "x$ac_ct_RANLIB" = x
; then
10034 case $cross_compiling:$ac_tool_warned in
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10038 ac_tool_warned
=yes ;;
10040 RANLIB
=$ac_ct_RANLIB
10043 RANLIB
="$ac_cv_prog_RANLIB"
10046 for ac_prog
in 'bison -y' byacc
10048 # Extract the first word of "$ac_prog", so it can be a program name with args.
10049 set dummy
$ac_prog; ac_word
=$2
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10051 $as_echo_n "checking for $ac_word... " >&6; }
10052 if test "${ac_cv_prog_YACC+set}" = set; then :
10053 $as_echo_n "(cached) " >&6
10055 if test -n "$YACC"; then
10056 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
10058 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10059 for as_dir
in $PATH
10062 test -z "$as_dir" && as_dir
=.
10063 for ac_exec_ext
in '' $ac_executable_extensions; do
10064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10065 ac_cv_prog_YACC
="$ac_prog"
10066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10075 YACC
=$ac_cv_prog_YACC
10076 if test -n "$YACC"; then
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10078 $as_echo "$YACC" >&6; }
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10081 $as_echo "no" >&6; }
10085 test -n "$YACC" && break
10087 test -n "$YACC" || YACC
="yacc"
10090 if test -n "$ac_tool_prefix"; then
10091 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10092 set dummy
${ac_tool_prefix}ar; ac_word
=$2
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10094 $as_echo_n "checking for $ac_word... " >&6; }
10095 if test "${ac_cv_prog_AR+set}" = set; then :
10096 $as_echo_n "(cached) " >&6
10098 if test -n "$AR"; then
10099 ac_cv_prog_AR
="$AR" # Let the user override the test.
10101 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10102 for as_dir
in $PATH
10105 test -z "$as_dir" && as_dir
=.
10106 for ac_exec_ext
in '' $ac_executable_extensions; do
10107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10108 ac_cv_prog_AR
="${ac_tool_prefix}ar"
10109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10119 if test -n "$AR"; then
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10121 $as_echo "$AR" >&6; }
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10124 $as_echo "no" >&6; }
10129 if test -z "$ac_cv_prog_AR"; then
10131 # Extract the first word of "ar", so it can be a program name with args.
10132 set dummy
ar; ac_word
=$2
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10134 $as_echo_n "checking for $ac_word... " >&6; }
10135 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
10136 $as_echo_n "(cached) " >&6
10138 if test -n "$ac_ct_AR"; then
10139 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
10141 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10142 for as_dir
in $PATH
10145 test -z "$as_dir" && as_dir
=.
10146 for ac_exec_ext
in '' $ac_executable_extensions; do
10147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10148 ac_cv_prog_ac_ct_AR
="ar"
10149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10158 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
10159 if test -n "$ac_ct_AR"; then
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10161 $as_echo "$ac_ct_AR" >&6; }
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10164 $as_echo "no" >&6; }
10167 if test "x$ac_ct_AR" = x
; then
10170 case $cross_compiling:$ac_tool_warned in
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10174 ac_tool_warned
=yes ;;
10179 AR
="$ac_cv_prog_AR"
10182 if test -n "$ac_tool_prefix"; then
10183 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10184 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10186 $as_echo_n "checking for $ac_word... " >&6; }
10187 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
10188 $as_echo_n "(cached) " >&6
10190 if test -n "$DLLTOOL"; then
10191 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
10193 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10194 for as_dir
in $PATH
10197 test -z "$as_dir" && as_dir
=.
10198 for ac_exec_ext
in '' $ac_executable_extensions; do
10199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10200 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
10201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10210 DLLTOOL
=$ac_cv_prog_DLLTOOL
10211 if test -n "$DLLTOOL"; then
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10213 $as_echo "$DLLTOOL" >&6; }
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10216 $as_echo "no" >&6; }
10221 if test -z "$ac_cv_prog_DLLTOOL"; then
10222 ac_ct_DLLTOOL
=$DLLTOOL
10223 # Extract the first word of "dlltool", so it can be a program name with args.
10224 set dummy dlltool
; ac_word
=$2
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10226 $as_echo_n "checking for $ac_word... " >&6; }
10227 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
10228 $as_echo_n "(cached) " >&6
10230 if test -n "$ac_ct_DLLTOOL"; then
10231 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
10233 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10234 for as_dir
in $PATH
10237 test -z "$as_dir" && as_dir
=.
10238 for ac_exec_ext
in '' $ac_executable_extensions; do
10239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10240 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
10241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10250 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
10251 if test -n "$ac_ct_DLLTOOL"; then
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10253 $as_echo "$ac_ct_DLLTOOL" >&6; }
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10256 $as_echo "no" >&6; }
10259 if test "x$ac_ct_DLLTOOL" = x
; then
10262 case $cross_compiling:$ac_tool_warned in
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10266 ac_tool_warned
=yes ;;
10268 DLLTOOL
=$ac_ct_DLLTOOL
10271 DLLTOOL
="$ac_cv_prog_DLLTOOL"
10274 if test -n "$ac_tool_prefix"; then
10275 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10276 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10278 $as_echo_n "checking for $ac_word... " >&6; }
10279 if test "${ac_cv_prog_WINDRES+set}" = set; then :
10280 $as_echo_n "(cached) " >&6
10282 if test -n "$WINDRES"; then
10283 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
10285 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10286 for as_dir
in $PATH
10289 test -z "$as_dir" && as_dir
=.
10290 for ac_exec_ext
in '' $ac_executable_extensions; do
10291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10292 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
10293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10302 WINDRES
=$ac_cv_prog_WINDRES
10303 if test -n "$WINDRES"; then
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10305 $as_echo "$WINDRES" >&6; }
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10308 $as_echo "no" >&6; }
10313 if test -z "$ac_cv_prog_WINDRES"; then
10314 ac_ct_WINDRES
=$WINDRES
10315 # Extract the first word of "windres", so it can be a program name with args.
10316 set dummy windres
; ac_word
=$2
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10318 $as_echo_n "checking for $ac_word... " >&6; }
10319 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
10320 $as_echo_n "(cached) " >&6
10322 if test -n "$ac_ct_WINDRES"; then
10323 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
10325 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10326 for as_dir
in $PATH
10329 test -z "$as_dir" && as_dir
=.
10330 for ac_exec_ext
in '' $ac_executable_extensions; do
10331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10332 ac_cv_prog_ac_ct_WINDRES
="windres"
10333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10342 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
10343 if test -n "$ac_ct_WINDRES"; then
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10345 $as_echo "$ac_ct_WINDRES" >&6; }
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10348 $as_echo "no" >&6; }
10351 if test "x$ac_ct_WINDRES" = x
; then
10354 case $cross_compiling:$ac_tool_warned in
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10358 ac_tool_warned
=yes ;;
10360 WINDRES
=$ac_ct_WINDRES
10363 WINDRES
="$ac_cv_prog_WINDRES"
10367 # Needed for GNU/Hurd.
10368 if test -n "$ac_tool_prefix"; then
10369 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
10370 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10372 $as_echo_n "checking for $ac_word... " >&6; }
10373 if test "${ac_cv_prog_MIG+set}" = set; then :
10374 $as_echo_n "(cached) " >&6
10376 if test -n "$MIG"; then
10377 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
10379 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10380 for as_dir
in $PATH
10383 test -z "$as_dir" && as_dir
=.
10384 for ac_exec_ext
in '' $ac_executable_extensions; do
10385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10386 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
10387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10396 MIG
=$ac_cv_prog_MIG
10397 if test -n "$MIG"; then
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
10399 $as_echo "$MIG" >&6; }
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10402 $as_echo "no" >&6; }
10407 if test -z "$ac_cv_prog_MIG"; then
10409 # Extract the first word of "mig", so it can be a program name with args.
10410 set dummy mig
; ac_word
=$2
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10412 $as_echo_n "checking for $ac_word... " >&6; }
10413 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
10414 $as_echo_n "(cached) " >&6
10416 if test -n "$ac_ct_MIG"; then
10417 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
10419 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10420 for as_dir
in $PATH
10423 test -z "$as_dir" && as_dir
=.
10424 for ac_exec_ext
in '' $ac_executable_extensions; do
10425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10426 ac_cv_prog_ac_ct_MIG
="mig"
10427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10436 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
10437 if test -n "$ac_ct_MIG"; then
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
10439 $as_echo "$ac_ct_MIG" >&6; }
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10442 $as_echo "no" >&6; }
10445 if test "x$ac_ct_MIG" = x
; then
10448 case $cross_compiling:$ac_tool_warned in
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10452 ac_tool_warned
=yes ;;
10457 MIG
="$ac_cv_prog_MIG"
10461 # ---------------------- #
10462 # Checks for libraries. #
10463 # ---------------------- #
10465 # We might need to link with -lm; most simulators need it.
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
10467 $as_echo_n "checking for main in -lm... " >&6; }
10468 if test "${ac_cv_lib_m_main+set}" = set; then :
10469 $as_echo_n "(cached) " >&6
10471 ac_check_lib_save_LIBS
=$LIBS
10473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10474 /* end confdefs.h. */
10485 if ac_fn_c_try_link
"$LINENO"; then :
10486 ac_cv_lib_m_main
=yes
10488 ac_cv_lib_m_main
=no
10490 rm -f core conftest.err conftest.
$ac_objext \
10491 conftest
$ac_exeext conftest.
$ac_ext
10492 LIBS
=$ac_check_lib_save_LIBS
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
10495 $as_echo "$ac_cv_lib_m_main" >&6; }
10496 if test "x$ac_cv_lib_m_main" = x
""yes; then :
10497 cat >>confdefs.h
<<_ACEOF
10498 #define HAVE_LIBM 1
10506 # We need to link with -lw to get `wctype' on Solaris before Solaris
10507 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
10508 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
10509 # is known to have this problem). Therefore we avoid libw if we can.
10510 ac_fn_c_check_func
"$LINENO" "wctype" "ac_cv_func_wctype"
10511 if test "x$ac_cv_func_wctype" = x
""yes; then :
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
10515 $as_echo_n "checking for wctype in -lw... " >&6; }
10516 if test "${ac_cv_lib_w_wctype+set}" = set; then :
10517 $as_echo_n "(cached) " >&6
10519 ac_check_lib_save_LIBS
=$LIBS
10521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10522 /* end confdefs.h. */
10524 /* Override any GCC internal prototype to avoid an error.
10525 Use char because int might match the return type of a GCC
10526 builtin and then its argument prototype would still apply. */
10539 if ac_fn_c_try_link
"$LINENO"; then :
10540 ac_cv_lib_w_wctype
=yes
10542 ac_cv_lib_w_wctype
=no
10544 rm -f core conftest.err conftest.
$ac_objext \
10545 conftest
$ac_exeext conftest.
$ac_ext
10546 LIBS
=$ac_check_lib_save_LIBS
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
10549 $as_echo "$ac_cv_lib_w_wctype" >&6; }
10550 if test "x$ac_cv_lib_w_wctype" = x
""yes; then :
10551 cat >>confdefs.h
<<_ACEOF
10552 #define HAVE_LIBW 1
10562 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
10564 $as_echo_n "checking for library containing gethostbyname... " >&6; }
10565 if test "${ac_cv_search_gethostbyname+set}" = set; then :
10566 $as_echo_n "(cached) " >&6
10568 ac_func_search_save_LIBS
=$LIBS
10569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10570 /* end confdefs.h. */
10572 /* Override any GCC internal prototype to avoid an error.
10573 Use char because int might match the return type of a GCC
10574 builtin and then its argument prototype would still apply. */
10578 char gethostbyname ();
10582 return gethostbyname ();
10587 for ac_lib
in '' nsl
; do
10588 if test -z "$ac_lib"; then
10589 ac_res
="none required"
10592 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10594 if ac_fn_c_try_link
"$LINENO"; then :
10595 ac_cv_search_gethostbyname
=$ac_res
10597 rm -f core conftest.err conftest.
$ac_objext \
10599 if test "${ac_cv_search_gethostbyname+set}" = set; then :
10603 if test "${ac_cv_search_gethostbyname+set}" = set; then :
10606 ac_cv_search_gethostbyname
=no
10608 rm conftest.
$ac_ext
10609 LIBS
=$ac_func_search_save_LIBS
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
10612 $as_echo "$ac_cv_search_gethostbyname" >&6; }
10613 ac_res
=$ac_cv_search_gethostbyname
10614 if test "$ac_res" != no
; then :
10615 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10620 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
10622 $as_echo_n "checking for library containing socketpair... " >&6; }
10623 if test "${ac_cv_search_socketpair+set}" = set; then :
10624 $as_echo_n "(cached) " >&6
10626 ac_func_search_save_LIBS
=$LIBS
10627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10628 /* end confdefs.h. */
10630 /* Override any GCC internal prototype to avoid an error.
10631 Use char because int might match the return type of a GCC
10632 builtin and then its argument prototype would still apply. */
10636 char socketpair ();
10640 return socketpair ();
10645 for ac_lib
in '' socket
; do
10646 if test -z "$ac_lib"; then
10647 ac_res
="none required"
10650 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10652 if ac_fn_c_try_link
"$LINENO"; then :
10653 ac_cv_search_socketpair
=$ac_res
10655 rm -f core conftest.err conftest.
$ac_objext \
10657 if test "${ac_cv_search_socketpair+set}" = set; then :
10661 if test "${ac_cv_search_socketpair+set}" = set; then :
10664 ac_cv_search_socketpair
=no
10666 rm conftest.
$ac_ext
10667 LIBS
=$ac_func_search_save_LIBS
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
10670 $as_echo "$ac_cv_search_socketpair" >&6; }
10671 ac_res
=$ac_cv_search_socketpair
10672 if test "$ac_res" != no
; then :
10673 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10678 # Link in zlib if we can. This allows us to read compressed debug sections.
10680 # See if the user specified whether he wants zlib support or not.
10682 # Check whether --with-zlib was given.
10683 if test "${with_zlib+set}" = set; then :
10684 withval
=$with_zlib;
10690 if test "$with_zlib" != "no"; then
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
10692 $as_echo_n "checking for library containing zlibVersion... " >&6; }
10693 if test "${ac_cv_search_zlibVersion+set}" = set; then :
10694 $as_echo_n "(cached) " >&6
10696 ac_func_search_save_LIBS
=$LIBS
10697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10698 /* end confdefs.h. */
10700 /* Override any GCC internal prototype to avoid an error.
10701 Use char because int might match the return type of a GCC
10702 builtin and then its argument prototype would still apply. */
10706 char zlibVersion ();
10710 return zlibVersion ();
10715 for ac_lib
in '' z
; do
10716 if test -z "$ac_lib"; then
10717 ac_res
="none required"
10720 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10722 if ac_fn_c_try_link
"$LINENO"; then :
10723 ac_cv_search_zlibVersion
=$ac_res
10725 rm -f core conftest.err conftest.
$ac_objext \
10727 if test "${ac_cv_search_zlibVersion+set}" = set; then :
10731 if test "${ac_cv_search_zlibVersion+set}" = set; then :
10734 ac_cv_search_zlibVersion
=no
10736 rm conftest.
$ac_ext
10737 LIBS
=$ac_func_search_save_LIBS
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
10740 $as_echo "$ac_cv_search_zlibVersion" >&6; }
10741 ac_res
=$ac_cv_search_zlibVersion
10742 if test "$ac_res" != no
; then :
10743 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10744 for ac_header
in zlib.h
10746 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
10747 if test "x$ac_cv_header_zlib_h" = x
""yes; then :
10748 cat >>confdefs.h
<<_ACEOF
10749 #define HAVE_ZLIB_H 1
10758 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
10759 as_fn_error
"zlib (libz) library was explicitly requested but not found" "$LINENO" 5
10764 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
10766 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
10767 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
10768 $as_echo_n "(cached) " >&6
10770 ac_func_search_save_LIBS
=$LIBS
10771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10772 /* end confdefs.h. */
10774 /* Override any GCC internal prototype to avoid an error.
10775 Use char because int might match the return type of a GCC
10776 builtin and then its argument prototype would still apply. */
10780 char dlgetmodinfo ();
10784 return dlgetmodinfo ();
10789 for ac_lib
in '' dl xpdl
; do
10790 if test -z "$ac_lib"; then
10791 ac_res
="none required"
10794 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10796 if ac_fn_c_try_link
"$LINENO"; then :
10797 ac_cv_search_dlgetmodinfo
=$ac_res
10799 rm -f core conftest.err conftest.
$ac_objext \
10801 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
10805 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
10808 ac_cv_search_dlgetmodinfo
=no
10810 rm conftest.
$ac_ext
10811 LIBS
=$ac_func_search_save_LIBS
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
10814 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
10815 ac_res
=$ac_cv_search_dlgetmodinfo
10816 if test "$ac_res" != no
; then :
10817 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10825 # Check whether --with-libiconv-prefix was given.
10826 if test "${with_libiconv_prefix+set}" = set; then :
10827 withval
=$with_libiconv_prefix;
10828 for dir
in `echo "$withval" | tr : ' '`; do
10829 if test -d $dir/include
; then LIBICONV_INCLUDE
="-I$dir/include"; fi
10830 if test -d $dir/lib
; then LIBICONV_LIBDIR
="-L$dir/lib"; fi
10836 BUILD_LIBICONV_LIBDIRS
="../libiconv/lib/.libs ../libiconv/lib/_libs"
10837 BUILD_LIBICONV_INCLUDE
="-I../libiconv/include"
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10840 $as_echo_n "checking for iconv... " >&6; }
10841 if test "${am_cv_func_iconv+set}" = set; then :
10842 $as_echo_n "(cached) " >&6
10845 am_cv_func_iconv
="no, consider installing GNU libiconv"
10847 am_cv_use_build_libiconv
=no
10848 am_cv_build_libiconv_path
=
10850 # If libiconv is part of the build tree, then try using it over
10851 # any system iconv.
10852 if test -d ..
/libiconv
; then
10853 for lib_dir
in $BUILD_LIBICONV_LIBDIRS; do
10854 am_save_LIBS
="$LIBS"
10855 am_save_CPPFLAGS
="$CPPFLAGS"
10856 LIBS
="$LIBS $lib_dir/libiconv.a"
10857 CPPFLAGS
="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
10858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10859 /* end confdefs.h. */
10860 #include <stdlib.h>
10865 iconv_t cd = iconv_open("","");
10866 iconv(cd,NULL,NULL,NULL,NULL);
10872 if ac_fn_c_try_link
"$LINENO"; then :
10873 am_cv_use_build_libiconv
=yes
10874 am_cv_build_libiconv_path
=$lib_dir/libiconv.a
10875 am_cv_lib_iconv
=yes
10876 am_cv_func_iconv
=yes
10878 rm -f core conftest.err conftest.
$ac_objext \
10879 conftest
$ac_exeext conftest.
$ac_ext
10880 LIBS
="$am_save_LIBS"
10881 CPPFLAGS
="$am_save_CPPFLAGS"
10882 if test "$am_cv_use_build_libiconv" = "yes"; then
10888 # Next, try to find iconv in libc.
10889 if test "$am_cv_func_iconv" != yes; then
10890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10891 /* end confdefs.h. */
10892 #include <stdlib.h>
10897 iconv_t cd = iconv_open("","");
10898 iconv(cd,NULL,NULL,NULL,NULL);
10904 if ac_fn_c_try_link
"$LINENO"; then :
10905 am_cv_func_iconv
=yes
10907 rm -f core conftest.err conftest.
$ac_objext \
10908 conftest
$ac_exeext conftest.
$ac_ext
10911 # If iconv was not in libc, try -liconv. In this case, arrange to
10912 # look in the libiconv prefix, if it was specified by the user.
10913 if test "$am_cv_func_iconv" != yes; then
10914 am_save_CPPFLAGS
="$CPPFLAGS"
10915 am_save_LIBS
="$LIBS"
10916 if test -n "$LIBICONV_INCLUDE"; then
10917 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
10918 LIBS
="$LIBS $LIBICONV_LIBDIR"
10920 LIBS
="$LIBS -liconv"
10921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10922 /* end confdefs.h. */
10923 #include <stdlib.h>
10928 iconv_t cd = iconv_open("","");
10929 iconv(cd,NULL,NULL,NULL,NULL);
10935 if ac_fn_c_try_link
"$LINENO"; then :
10936 am_cv_lib_iconv
=yes
10937 am_cv_func_iconv
=yes
10939 rm -f core conftest.err conftest.
$ac_objext \
10940 conftest
$ac_exeext conftest.
$ac_ext
10941 LIBS
="$am_save_LIBS"
10942 CPPFLAGS
="$am_save_CPPFLAGS"
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10947 $as_echo "$am_cv_func_iconv" >&6; }
10949 # Set the various flags based on the cache variables. We can't rely
10950 # on the flags to remain set from the above code, due to caching.
10952 if test "$am_cv_lib_iconv" = yes; then
10958 if test "$am_cv_use_build_libiconv" = yes; then
10959 LIBICONV
="$am_cv_build_libiconv_path"
10961 LIBICONV_INCLUDE
="$BUILD_LIBICONV_INCLUDE"
10963 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
10964 LIBS
="$LIBS $LIBICONV_LIBDIR $LIBICONV"
10966 if test "$am_cv_func_iconv" = yes; then
10968 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10971 $as_echo_n "checking for iconv declaration... " >&6; }
10972 if test "${am_cv_proto_iconv+set}" = set; then :
10973 $as_echo_n "(cached) " >&6
10976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10977 /* end confdefs.h. */
10979 #include <stdlib.h>
10985 #if defined(__STDC__) || defined(__cplusplus)
10986 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10999 if ac_fn_c_try_compile
"$LINENO"; then :
11000 am_cv_proto_iconv_arg1
=""
11002 am_cv_proto_iconv_arg1
="const"
11004 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11005 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);"
11008 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11010 }$am_cv_proto_iconv" >&5
11012 }$am_cv_proto_iconv" >&6; }
11014 cat >>confdefs.h
<<_ACEOF
11015 #define ICONV_CONST $am_cv_proto_iconv_arg1
11021 # GDB may fork/exec the iconv program to get the list of supported character
11022 # sets. Allow the user to specify where to find it.
11023 # There are several factors affecting the choice of option name:
11024 # - There is already --with-libiconv-prefix but we can't use it, it specifies
11025 # the build-time location of libiconv files.
11026 # - The program we need to find is iconv, which comes with glibc. The user
11027 # doesn't necessarily have libiconv installed. Therefore naming this
11028 # --with-libiconv-foo feels wrong.
11029 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
11030 # defined to work on directories not files (though it really doesn't know
11032 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
11033 # with --with-libiconv-prefix.
11034 # Putting these together is why the option name is --with-iconv-bin.
11037 # Check whether --with-iconv-bin was given.
11038 if test "${with_iconv_bin+set}" = set; then :
11039 withval
=$with_iconv_bin; iconv_bin
="${withval}"
11041 cat >>confdefs.h
<<_ACEOF
11042 #define ICONV_BIN "${iconv_bin}"
11046 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
11047 if test "x$prefix" = xNONE
; then
11048 test_prefix
=/usr
/local
11050 test_prefix
=$prefix
11053 test_prefix
=$exec_prefix
11056 case ${iconv_bin} in
11057 "${test_prefix}"|
"${test_prefix}/"*|\
11058 '${exec_prefix}'|
'${exec_prefix}/'*)
11063 cat >>confdefs.h
<<_ACEOF
11064 #define ICONV_BIN_RELOCATABLE $value
11072 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
11073 # There is a very specific comment in /usr/include/curses.h explaining that
11074 # termcap routines built into libcurses must not be used.
11076 # The symptoms we observed so far is GDB unexpectedly changing
11077 # the terminal settings when tgetent is called - this is particularly
11078 # visible as the output is missing carriage returns, and so rapidly
11079 # becomes very hard to read.
11081 # The readline configure script has already decided that libtermcap
11082 # was enough for its purposes, and so decided to build readline using
11083 # libtermcap. Since the TUI mode requires curses, building GDB with
11084 # TUI enabled results in both libraries to be used at the same time,
11085 # which is not allowed. This basically means that GDB with TUI is
11086 # broken on alpha-osf.
11090 if test x
"$enable_tui" = xyes
; then
11091 as_fn_error
"Building GDB with TUI mode is not supported on this host" "$LINENO" 5
11093 if test x
"$enable_tui" = xauto
; then
11099 # For the TUI, we need enhanced curses functionality.
11100 if test x
"$enable_tui" != xno
; then
11105 if test x
"$prefer_curses" = xyes
; then
11106 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
11107 # curses library because the latter might not provide all the
11108 # functionality we need. However, this leads to problems on systems
11109 # where the linker searches /usr/local/lib, but the compiler doesn't
11110 # search /usr/local/include, if ncurses is installed in /usr/local. A
11111 # default installation of ncurses on alpha*-dec-osf* will lead to such
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
11114 $as_echo_n "checking for library containing waddstr... " >&6; }
11115 if test "${ac_cv_search_waddstr+set}" = set; then :
11116 $as_echo_n "(cached) " >&6
11118 ac_func_search_save_LIBS
=$LIBS
11119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11120 /* end confdefs.h. */
11122 /* Override any GCC internal prototype to avoid an error.
11123 Use char because int might match the return type of a GCC
11124 builtin and then its argument prototype would still apply. */
11137 for ac_lib
in '' ncurses cursesX curses
; do
11138 if test -z "$ac_lib"; then
11139 ac_res
="none required"
11142 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11144 if ac_fn_c_try_link
"$LINENO"; then :
11145 ac_cv_search_waddstr
=$ac_res
11147 rm -f core conftest.err conftest.
$ac_objext \
11149 if test "${ac_cv_search_waddstr+set}" = set; then :
11153 if test "${ac_cv_search_waddstr+set}" = set; then :
11156 ac_cv_search_waddstr
=no
11158 rm conftest.
$ac_ext
11159 LIBS
=$ac_func_search_save_LIBS
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
11162 $as_echo "$ac_cv_search_waddstr" >&6; }
11163 ac_res
=$ac_cv_search_waddstr
11164 if test "$ac_res" != no
; then :
11165 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11170 if test "$ac_cv_search_waddstr" != no
; then
11175 # Check whether we should enable the TUI, but only do so if we really
11177 if test x
"$enable_tui" != xno
; then
11178 if test -d $srcdir/tui
; then
11179 if test "$curses_found" != no
; then
11180 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
11181 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
11182 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
11183 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
11185 if test x
"$enable_tui" = xyes
; then
11186 as_fn_error
"no enhanced curses library found; disable TUI" "$LINENO" 5
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
11189 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
11195 # Since GDB uses Readline, we need termcap functionality. In many
11196 # cases this will be provided by the curses library, but some systems
11197 # have a seperate termcap library, or no curses library at all.
11201 if test -d $srcdir/libtermcap
; then
11202 LIBS
="../libtermcap/libtermcap.a $LIBS"
11203 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
11206 ac_cv_search_tgetent
="none required"
11209 ac_cv_search_tgetent
="none required"
11210 CONFIG_OBS
="$CONFIG_OBS windows-termcap.o"
11214 # These are the libraries checked by Readline.
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
11216 $as_echo_n "checking for library containing tgetent... " >&6; }
11217 if test "${ac_cv_search_tgetent+set}" = set; then :
11218 $as_echo_n "(cached) " >&6
11220 ac_func_search_save_LIBS
=$LIBS
11221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11222 /* end confdefs.h. */
11224 /* Override any GCC internal prototype to avoid an error.
11225 Use char because int might match the return type of a GCC
11226 builtin and then its argument prototype would still apply. */
11239 for ac_lib
in '' termcap tinfo curses ncurses
; do
11240 if test -z "$ac_lib"; then
11241 ac_res
="none required"
11244 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11246 if ac_fn_c_try_link
"$LINENO"; then :
11247 ac_cv_search_tgetent
=$ac_res
11249 rm -f core conftest.err conftest.
$ac_objext \
11251 if test "${ac_cv_search_tgetent+set}" = set; then :
11255 if test "${ac_cv_search_tgetent+set}" = set; then :
11258 ac_cv_search_tgetent
=no
11260 rm conftest.
$ac_ext
11261 LIBS
=$ac_func_search_save_LIBS
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
11264 $as_echo "$ac_cv_search_tgetent" >&6; }
11265 ac_res
=$ac_cv_search_tgetent
11266 if test "$ac_res" != no
; then :
11267 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11272 if test "$ac_cv_search_tgetent" = no
; then
11273 as_fn_error
"no termcap library found" "$LINENO" 5
11277 # Check whether --with-system-readline was given.
11278 if test "${with_system_readline+set}" = set; then :
11279 withval
=$with_system_readline;
11283 if test "$with_system_readline" = yes; then
11284 READLINE
=-lreadline
11287 READLINE_TEXI_INCFLAG
=
11289 READLINE
='$(READLINE_DIR)/libreadline.a'
11290 READLINE_DEPS
='$(READLINE)'
11291 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
11292 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
11299 # Generate jit-reader.h
11301 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
11304 # The cast to long int works around a bug in the HP C Compiler
11305 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11306 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11307 # This bug is HP SR number 8606223364.
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
11309 $as_echo_n "checking size of unsigned long long... " >&6; }
11310 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
11311 $as_echo_n "(cached) " >&6
11313 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
11316 if test "$ac_cv_type_unsigned_long_long" = yes; then
11317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11319 { as_fn_set_status
77
11320 as_fn_error
"cannot compute sizeof (unsigned long long)
11321 See \`config.log' for more details." "$LINENO" 5; }; }
11323 ac_cv_sizeof_unsigned_long_long
=0
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
11329 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
11333 cat >>confdefs.h
<<_ACEOF
11334 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
11338 # The cast to long int works around a bug in the HP C Compiler
11339 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11340 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11341 # This bug is HP SR number 8606223364.
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
11343 $as_echo_n "checking size of unsigned long... " >&6; }
11344 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
11345 $as_echo_n "(cached) " >&6
11347 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
11350 if test "$ac_cv_type_unsigned_long" = yes; then
11351 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11353 { as_fn_set_status
77
11354 as_fn_error
"cannot compute sizeof (unsigned long)
11355 See \`config.log' for more details." "$LINENO" 5; }; }
11357 ac_cv_sizeof_unsigned_long
=0
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
11363 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
11367 cat >>confdefs.h
<<_ACEOF
11368 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
11372 # The cast to long int works around a bug in the HP C Compiler
11373 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11374 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11375 # This bug is HP SR number 8606223364.
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
11377 $as_echo_n "checking size of unsigned __int128... " >&6; }
11378 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
11379 $as_echo_n "(cached) " >&6
11381 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
11384 if test "$ac_cv_type_unsigned___int128" = yes; then
11385 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11387 { as_fn_set_status
77
11388 as_fn_error
"cannot compute sizeof (unsigned __int128)
11389 See \`config.log' for more details." "$LINENO" 5; }; }
11391 ac_cv_sizeof_unsigned___int128
=0
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
11397 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
11401 cat >>confdefs.h
<<_ACEOF
11402 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
11407 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
11408 TARGET_PTR
="unsigned long"
11409 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
11410 TARGET_PTR
="unsigned long long"
11411 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
11412 TARGET_PTR
="unsigned __int128"
11414 TARGET_PTR
="unsigned long"
11418 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11422 $as_echo_n "checking for library containing dlopen... " >&6; }
11423 if test "${ac_cv_search_dlopen+set}" = set; then :
11424 $as_echo_n "(cached) " >&6
11426 ac_func_search_save_LIBS
=$LIBS
11427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11428 /* end confdefs.h. */
11430 /* Override any GCC internal prototype to avoid an error.
11431 Use char because int might match the return type of a GCC
11432 builtin and then its argument prototype would still apply. */
11445 for ac_lib
in '' dl
; do
11446 if test -z "$ac_lib"; then
11447 ac_res
="none required"
11450 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11452 if ac_fn_c_try_link
"$LINENO"; then :
11453 ac_cv_search_dlopen
=$ac_res
11455 rm -f core conftest.err conftest.
$ac_objext \
11457 if test "${ac_cv_search_dlopen+set}" = set; then :
11461 if test "${ac_cv_search_dlopen+set}" = set; then :
11464 ac_cv_search_dlopen
=no
11466 rm conftest.
$ac_ext
11467 LIBS
=$ac_func_search_save_LIBS
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11470 $as_echo "$ac_cv_search_dlopen" >&6; }
11471 ac_res
=$ac_cv_search_dlopen
11472 if test "$ac_res" != no
; then :
11473 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11480 # Check whether --with-jit-reader-dir was given.
11481 if test "${with_jit_reader_dir+set}" = set; then :
11482 withval
=$with_jit_reader_dir;
11483 JIT_READER_DIR
=$withval
11485 JIT_READER_DIR
=${libdir}/gdb
11489 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
11490 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
11491 ac_define_dir
=`eval echo $JIT_READER_DIR`
11492 ac_define_dir
=`eval echo $ac_define_dir`
11494 cat >>confdefs.h
<<_ACEOF
11495 #define JIT_READER_DIR "$ac_define_dir"
11501 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
11502 if test "x$prefix" = xNONE
; then
11503 test_prefix
=/usr
/local
11505 test_prefix
=$prefix
11508 test_prefix
=$exec_prefix
11511 case ${ac_define_dir} in
11512 "${test_prefix}"|
"${test_prefix}/"*|\
11513 '${exec_prefix}'|
'${exec_prefix}/'*)
11518 cat >>confdefs.h
<<_ACEOF
11519 #define JIT_READER_DIR_RELOCATABLE $value
11526 # Check whether --with-expat was given.
11527 if test "${with_expat+set}" = set; then :
11528 withval
=$with_expat;
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
11534 $as_echo_n "checking whether to use expat... " >&6; }
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
11536 $as_echo "$with_expat" >&6; }
11538 if test "${with_expat}" = no
; then
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
11540 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
11544 if test "X$prefix" = "XNONE"; then
11545 acl_final_prefix
="$ac_default_prefix"
11547 acl_final_prefix
="$prefix"
11549 if test "X$exec_prefix" = "XNONE"; then
11550 acl_final_exec_prefix
='${prefix}'
11552 acl_final_exec_prefix
="$exec_prefix"
11554 acl_save_prefix
="$prefix"
11555 prefix
="$acl_final_prefix"
11556 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
11557 prefix
="$acl_save_prefix"
11560 # Check whether --with-gnu-ld was given.
11561 if test "${with_gnu_ld+set}" = set; then :
11562 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
11567 # Prepare PATH_SEPARATOR.
11568 # The user is always right.
11569 if test "${PATH_SEPARATOR+set}" != set; then
11570 echo "#! /bin/sh" >conf$$.sh
11571 echo "exit 0" >>conf$$.sh
11573 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11581 if test "$GCC" = yes; then
11582 # Check if gcc -print-prog-name=ld gives a path.
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11584 $as_echo_n "checking for ld used by GCC... " >&6; }
11587 # gcc leaves a trailing carriage return which upsets mingw
11588 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11590 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
11593 # Accept absolute paths.
11594 [\\/]* |
[A-Za-z
]:[\\/]*)
11595 re_direlt
='/[^/][^/]*/\.\./'
11596 # Canonicalize the path of ld
11597 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
11598 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
11599 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
11601 test -z "$LD" && LD
="$ac_prog"
11604 # If it fails, then pretend we aren't using GCC.
11608 # If it is relative, then search for the first ld in PATH.
11609 with_gnu_ld
=unknown
11612 elif test "$with_gnu_ld" = yes; then
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11614 $as_echo_n "checking for GNU ld... " >&6; }
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11617 $as_echo_n "checking for non-GNU ld... " >&6; }
11619 if test "${acl_cv_path_LD+set}" = set; then :
11620 $as_echo_n "(cached) " >&6
11622 if test -z "$LD"; then
11623 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11624 for ac_dir
in $PATH; do
11625 test -z "$ac_dir" && ac_dir
=.
11626 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
11627 acl_cv_path_LD
="$ac_dir/$ac_prog"
11628 # Check to see if the program is GNU ld. I'd rather use --version,
11629 # but apparently some GNU ld's only accept -v.
11630 # Break only if it was the GNU/non-GNU ld that we prefer.
11631 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
11632 test "$with_gnu_ld" != no
&& break
11634 test "$with_gnu_ld" != yes && break
11640 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
11644 LD
="$acl_cv_path_LD"
11645 if test -n "$LD"; then
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11647 $as_echo "$LD" >&6; }
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11650 $as_echo "no" >&6; }
11652 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11654 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11655 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
11656 $as_echo_n "(cached) " >&6
11658 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11659 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
11660 acl_cv_prog_gnu_ld
=yes
11662 acl_cv_prog_gnu_ld
=no
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11666 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11667 with_gnu_ld
=$acl_cv_prog_gnu_ld
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11672 $as_echo_n "checking for shared library run path origin... " >&6; }
11673 if test "${acl_cv_rpath+set}" = set; then :
11674 $as_echo_n "(cached) " >&6
11677 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
11678 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11680 rm -f .
/conftest.sh
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11685 $as_echo "$acl_cv_rpath" >&6; }
11687 libext
="$acl_cv_libext"
11688 shlibext
="$acl_cv_shlibext"
11689 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
11690 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
11691 hardcode_direct
="$acl_cv_hardcode_direct"
11692 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
11693 # Check whether --enable-rpath was given.
11694 if test "${enable_rpath+set}" = set; then :
11695 enableval
=$enable_rpath; :
11711 acl_save_prefix
="$prefix"
11712 prefix
="$acl_final_prefix"
11713 acl_save_exec_prefix
="$exec_prefix"
11714 exec_prefix
="$acl_final_exec_prefix"
11716 eval additional_includedir
=\"$includedir\"
11717 eval additional_libdir
=\"$libdir\"
11719 exec_prefix
="$acl_save_exec_prefix"
11720 prefix
="$acl_save_prefix"
11723 # Check whether --with-libexpat-prefix was given.
11724 if test "${with_libexpat_prefix+set}" = set; then :
11725 withval
=$with_libexpat_prefix;
11726 if test "X$withval" = "Xno"; then
11729 if test "X$withval" = "X"; then
11731 acl_save_prefix
="$prefix"
11732 prefix
="$acl_final_prefix"
11733 acl_save_exec_prefix
="$exec_prefix"
11734 exec_prefix
="$acl_final_exec_prefix"
11736 eval additional_includedir
=\"$includedir\"
11737 eval additional_libdir
=\"$libdir\"
11739 exec_prefix
="$acl_save_exec_prefix"
11740 prefix
="$acl_save_prefix"
11743 additional_includedir
="$withval/include"
11744 additional_libdir
="$withval/lib"
11755 names_already_handled
=
11756 names_next_round
='expat '
11757 while test -n "$names_next_round"; do
11758 names_this_round
="$names_next_round"
11760 for name
in $names_this_round; do
11762 for n
in $names_already_handled; do
11763 if test "$n" = "$name"; then
11764 already_handled
=yes
11768 if test -z "$already_handled"; then
11769 names_already_handled
="$names_already_handled $name"
11770 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11771 eval value
=\"\
$HAVE_LIB$uppername\"
11772 if test -n "$value"; then
11773 if test "$value" = yes; then
11774 eval value
=\"\
$LIB$uppername\"
11775 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
11776 eval value
=\"\
$LTLIB$uppername\"
11777 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
11786 if test $use_additional = yes; then
11787 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11788 found_dir
="$additional_libdir"
11789 found_so
="$additional_libdir/lib$name.$shlibext"
11790 if test -f "$additional_libdir/lib$name.la"; then
11791 found_la
="$additional_libdir/lib$name.la"
11794 if test -f "$additional_libdir/lib$name.$libext"; then
11795 found_dir
="$additional_libdir"
11796 found_a
="$additional_libdir/lib$name.$libext"
11797 if test -f "$additional_libdir/lib$name.la"; then
11798 found_la
="$additional_libdir/lib$name.la"
11803 if test "X$found_dir" = "X"; then
11804 for x
in $LDFLAGS $LTLIBEXPAT; do
11806 acl_save_prefix
="$prefix"
11807 prefix
="$acl_final_prefix"
11808 acl_save_exec_prefix
="$exec_prefix"
11809 exec_prefix
="$acl_final_exec_prefix"
11811 exec_prefix
="$acl_save_exec_prefix"
11812 prefix
="$acl_save_prefix"
11816 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11817 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11819 found_so
="$dir/lib$name.$shlibext"
11820 if test -f "$dir/lib$name.la"; then
11821 found_la
="$dir/lib$name.la"
11824 if test -f "$dir/lib$name.$libext"; then
11826 found_a
="$dir/lib$name.$libext"
11827 if test -f "$dir/lib$name.la"; then
11828 found_la
="$dir/lib$name.la"
11834 if test "X$found_dir" != "X"; then
11839 if test "X$found_dir" != "X"; then
11840 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
11841 if test "X$found_so" != "X"; then
11842 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11843 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11846 for x
in $ltrpathdirs; do
11847 if test "X$x" = "X$found_dir"; then
11852 if test -z "$haveit"; then
11853 ltrpathdirs
="$ltrpathdirs $found_dir"
11855 if test "$hardcode_direct" = yes; then
11856 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11858 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11859 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11861 for x
in $rpathdirs; do
11862 if test "X$x" = "X$found_dir"; then
11867 if test -z "$haveit"; then
11868 rpathdirs
="$rpathdirs $found_dir"
11872 for x
in $LDFLAGS $LIBEXPAT; do
11874 acl_save_prefix
="$prefix"
11875 prefix
="$acl_final_prefix"
11876 acl_save_exec_prefix
="$exec_prefix"
11877 exec_prefix
="$acl_final_exec_prefix"
11879 exec_prefix
="$acl_save_exec_prefix"
11880 prefix
="$acl_save_prefix"
11882 if test "X$x" = "X-L$found_dir"; then
11887 if test -z "$haveit"; then
11888 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
11890 if test "$hardcode_minus_L" != no
; then
11891 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11893 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
11899 if test "X$found_a" != "X"; then
11900 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
11902 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
11905 additional_includedir
=
11906 case "$found_dir" in
11908 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11909 additional_includedir
="$basedir/include"
11912 if test "X$additional_includedir" != "X"; then
11913 if test "X$additional_includedir" != "X/usr/include"; then
11915 if test "X$additional_includedir" = "X/usr/local/include"; then
11916 if test -n "$GCC"; then
11918 linux
*) haveit
=yes;;
11922 if test -z "$haveit"; then
11923 for x
in $CPPFLAGS $INCEXPAT; do
11925 acl_save_prefix
="$prefix"
11926 prefix
="$acl_final_prefix"
11927 acl_save_exec_prefix
="$exec_prefix"
11928 exec_prefix
="$acl_final_exec_prefix"
11930 exec_prefix
="$acl_save_exec_prefix"
11931 prefix
="$acl_save_prefix"
11933 if test "X$x" = "X-I$additional_includedir"; then
11938 if test -z "$haveit"; then
11939 if test -d "$additional_includedir"; then
11940 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
11946 if test -n "$found_la"; then
11947 save_libdir
="$libdir"
11948 case "$found_la" in
11949 */* |
*\\*) .
"$found_la" ;;
11950 *) .
"./$found_la" ;;
11952 libdir
="$save_libdir"
11953 for dep
in $dependency_libs; do
11956 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11957 if test "X$additional_libdir" != "X/usr/lib"; then
11959 if test "X$additional_libdir" = "X/usr/local/lib"; then
11960 if test -n "$GCC"; then
11962 linux
*) haveit
=yes;;
11966 if test -z "$haveit"; then
11968 for x
in $LDFLAGS $LIBEXPAT; do
11970 acl_save_prefix
="$prefix"
11971 prefix
="$acl_final_prefix"
11972 acl_save_exec_prefix
="$exec_prefix"
11973 exec_prefix
="$acl_final_exec_prefix"
11975 exec_prefix
="$acl_save_exec_prefix"
11976 prefix
="$acl_save_prefix"
11978 if test "X$x" = "X-L$additional_libdir"; then
11983 if test -z "$haveit"; then
11984 if test -d "$additional_libdir"; then
11985 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
11989 for x
in $LDFLAGS $LTLIBEXPAT; do
11991 acl_save_prefix
="$prefix"
11992 prefix
="$acl_final_prefix"
11993 acl_save_exec_prefix
="$exec_prefix"
11994 exec_prefix
="$acl_final_exec_prefix"
11996 exec_prefix
="$acl_save_exec_prefix"
11997 prefix
="$acl_save_prefix"
11999 if test "X$x" = "X-L$additional_libdir"; then
12004 if test -z "$haveit"; then
12005 if test -d "$additional_libdir"; then
12006 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
12013 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
12014 if test "$enable_rpath" != no
; then
12016 for x
in $rpathdirs; do
12017 if test "X$x" = "X$dir"; then
12022 if test -z "$haveit"; then
12023 rpathdirs
="$rpathdirs $dir"
12026 for x
in $ltrpathdirs; do
12027 if test "X$x" = "X$dir"; then
12032 if test -z "$haveit"; then
12033 ltrpathdirs
="$ltrpathdirs $dir"
12038 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12041 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12044 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
12045 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
12051 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
12052 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
12058 if test "X$rpathdirs" != "X"; then
12059 if test -n "$hardcode_libdir_separator"; then
12061 for found_dir
in $rpathdirs; do
12062 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12064 acl_save_libdir
="$libdir"
12066 eval flag
=\"$hardcode_libdir_flag_spec\"
12067 libdir
="$acl_save_libdir"
12068 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
12070 for found_dir
in $rpathdirs; do
12071 acl_save_libdir
="$libdir"
12072 libdir
="$found_dir"
12073 eval flag
=\"$hardcode_libdir_flag_spec\"
12074 libdir
="$acl_save_libdir"
12075 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
12079 if test "X$ltrpathdirs" != "X"; then
12080 for found_dir
in $ltrpathdirs; do
12081 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
12086 ac_save_CPPFLAGS
="$CPPFLAGS"
12088 for element
in $INCEXPAT; do
12090 for x
in $CPPFLAGS; do
12092 acl_save_prefix
="$prefix"
12093 prefix
="$acl_final_prefix"
12094 acl_save_exec_prefix
="$exec_prefix"
12095 exec_prefix
="$acl_final_exec_prefix"
12097 exec_prefix
="$acl_save_exec_prefix"
12098 prefix
="$acl_save_prefix"
12100 if test "X$x" = "X$element"; then
12105 if test -z "$haveit"; then
12106 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
12112 $as_echo_n "checking for libexpat... " >&6; }
12113 if test "${ac_cv_libexpat+set}" = set; then :
12114 $as_echo_n "(cached) " >&6
12117 ac_save_LIBS
="$LIBS"
12118 LIBS
="$LIBS $LIBEXPAT"
12119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12120 /* end confdefs.h. */
12125 XML_Parser p = XML_ParserCreate (0);
12130 if ac_fn_c_try_link
"$LINENO"; then :
12135 rm -f core conftest.err conftest.
$ac_objext \
12136 conftest
$ac_exeext conftest.
$ac_ext
12137 LIBS
="$ac_save_LIBS"
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
12141 $as_echo "$ac_cv_libexpat" >&6; }
12142 if test "$ac_cv_libexpat" = yes; then
12145 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
12148 $as_echo_n "checking how to link with libexpat... " >&6; }
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
12150 $as_echo "$LIBEXPAT" >&6; }
12153 CPPFLAGS
="$ac_save_CPPFLAGS"
12163 if test "$HAVE_LIBEXPAT" != yes; then
12164 if test "$with_expat" = yes; then
12165 as_fn_error
"expat is missing or unusable" "$LINENO" 5
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
12168 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
12172 LIBS
="$LIBS $LIBEXPAT"
12173 for ac_func
in XML_StopParser
12175 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
12176 if test "x$ac_cv_func_XML_StopParser" = x
""yes; then :
12177 cat >>confdefs.h
<<_ACEOF
12178 #define HAVE_XML_STOPPARSER 1
12193 # Check whether --with-python was given.
12194 if test "${with_python+set}" = set; then :
12195 withval
=$with_python;
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
12201 $as_echo_n "checking whether to use python... " >&6; }
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
12203 $as_echo "$with_python" >&6; }
12205 if test "${with_python}" = no
; then
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
12207 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
12210 case "${with_python}" in
12212 if test -d ${with_python}; then
12213 # Assume the python binary is ${with_python}/bin/python.
12214 python_prog
="${with_python}/bin/python"
12216 # If python does not exit ${with_python}/bin, then try in
12217 # ${with_python}. On Windows/MinGW, this is where the Python
12219 if test ! -x "${python_prog}"; then
12220 python_prog
="${with_python}/python"
12223 if test ! -x "${python_prog}"; then
12224 # Fall back to gdb 7.0/7.1 behaviour.
12225 python_prog
=missing
12226 python_prefix
=${with_python}
12228 elif test -x "${with_python}"; then
12229 # While we can't run python compiled for $host (unless host == build),
12230 # the user could write a script that provides the needed information,
12231 # so we support that.
12232 python_prog
=${with_python}
12235 as_fn_error
"invalid value for --with-python" "$LINENO" 5
12239 # Disallow --with-python=foo/bar.
12240 as_fn_error
"invalid value for --with-python" "$LINENO" 5
12243 # The user has either specified auto, yes, or the name of the python
12244 # program assumed to be in $PATH.
12246 case "${with_python}" in
12248 if test ${build} = ${host}; then
12249 # Extract the first word of "python", so it can be a program name with args.
12250 set dummy python
; ac_word
=$2
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12252 $as_echo_n "checking for $ac_word... " >&6; }
12253 if test "${ac_cv_path_python_prog_path+set}" = set; then :
12254 $as_echo_n "(cached) " >&6
12256 case $python_prog_path in
12258 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
12261 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12262 for as_dir
in $PATH
12265 test -z "$as_dir" && as_dir
=.
12266 for ac_exec_ext
in '' $ac_executable_extensions; do
12267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12268 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
12269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12276 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
12280 python_prog_path
=$ac_cv_path_python_prog_path
12281 if test -n "$python_prog_path"; then
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
12283 $as_echo "$python_prog_path" >&6; }
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12286 $as_echo "no" >&6; }
12290 if test "${python_prog_path}" = missing
; then
12291 python_prog
=missing
12293 python_prog
=${python_prog_path}
12296 # Not much we can do except assume the cross-compiler will find the
12298 python_prog
=missing
12302 # While we can't run python compiled for $host (unless host == build),
12303 # the user could write a script that provides the needed information,
12304 # so we support that.
12305 python_prog
="${with_python}"
12306 # Extract the first word of "${python_prog}", so it can be a program name with args.
12307 set dummy
${python_prog}; ac_word
=$2
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12309 $as_echo_n "checking for $ac_word... " >&6; }
12310 if test "${ac_cv_path_python_prog_path+set}" = set; then :
12311 $as_echo_n "(cached) " >&6
12313 case $python_prog_path in
12315 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
12318 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12319 for as_dir
in $PATH
12322 test -z "$as_dir" && as_dir
=.
12323 for ac_exec_ext
in '' $ac_executable_extensions; do
12324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12325 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
12326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12333 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
12337 python_prog_path
=$ac_cv_path_python_prog_path
12338 if test -n "$python_prog_path"; then
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
12340 $as_echo "$python_prog_path" >&6; }
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12343 $as_echo "no" >&6; }
12347 if test "${python_prog_path}" = missing
; then
12348 as_fn_error
"unable to find python program ${python_prog}" "$LINENO" 5
12354 if test "${python_prog}" != missing
; then
12355 # We have a python program to use, but it may be too old.
12356 # Don't flag an error for --with-python=auto (the default).
12357 have_python_config
=yes
12358 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
12359 if test $?
!= 0; then
12360 have_python_config
=failed
12361 if test "${with_python}" != auto
; then
12362 as_fn_error
"failure running python-config --includes" "$LINENO" 5
12365 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
12366 if test $?
!= 0; then
12367 have_python_config
=failed
12368 if test "${with_python}" != auto
; then
12369 as_fn_error
"failure running python-config --ldflags" "$LINENO" 5
12372 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
12373 if test $?
!= 0; then
12374 have_python_config
=failed
12375 if test "${with_python}" != auto
; then
12376 as_fn_error
"failure running python-config --exec-prefix" "$LINENO" 5
12380 # We do not have a python executable we can use to determine where
12381 # to find the Python headers and libs. We cannot guess the include
12382 # path from the python_prefix either, because that include path
12383 # depends on the Python version. So, there is nothing much we can
12384 # do except assume that the compiler will be able to find those files.
12387 have_python_config
=no
12390 # If we have python-config, only try the configuration it provides.
12391 # Otherwise fallback on the old way of trying different versions of
12395 if test "${have_python_config}" = yes; then
12396 # Determine the Python version by extracting "-lpython<version>"
12397 # part of the python_libs. <version> is usually X.Y with X and Y
12398 # being decimal numbers, but can also be XY (seen on Windows).
12400 # The extraction is performed using sed with a regular expression.
12401 # Initially, the regexp used was using the '?' quantifier to make
12402 # the dot in the version number optional. Unfortunately, this
12403 # does not work with non-GNU versions of sed because, because of
12404 # what looks like a limitation (the '?' quantifier does not work
12405 # with back-references). We work around this limitation by using
12406 # the '*' quantifier instead. It means that, in theory, we might
12407 # match unexpected version strings such as "-lpython2..7", but
12408 # this seems unlikely in practice. And even if that happens,
12409 # an error will be triggered later on, when checking that version
12411 python_version
=`echo " ${python_libs} " \
12412 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
12413 case "${python_version}" in
12416 version
=${python_version}
12418 new_CPPFLAGS
=${python_includes}
12419 new_LIBS
=${python_libs}
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
12421 $as_echo_n "checking for ${version}... " >&6; }
12422 save_CPPFLAGS
=$CPPFLAGS
12424 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
12425 LIBS
="$LIBS $new_LIBS"
12426 found_usable_python
=no
12427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12428 /* end confdefs.h. */
12429 #include "Python.h"
12438 if ac_fn_c_try_link
"$LINENO"; then :
12439 have_libpython
=${version}
12440 found_usable_python
=yes
12441 PYTHON_CPPFLAGS
=$new_CPPFLAGS
12442 PYTHON_LIBS
=$new_LIBS
12444 rm -f core conftest.err conftest.
$ac_objext \
12445 conftest
$ac_exeext conftest.
$ac_ext
12446 CPPFLAGS
=$save_CPPFLAGS
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
12449 $as_echo "${found_usable_python}" >&6; }
12453 as_fn_error
"unable to determine python version from ${python_libs}" "$LINENO" 5
12456 elif test "${have_python_config}" != failed
; then
12457 if test "${have_libpython}" = no
; then
12461 new_CPPFLAGS
=${python_includes}
12462 new_LIBS
="${python_libs} -lpython2.7"
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
12464 $as_echo_n "checking for ${version}... " >&6; }
12465 save_CPPFLAGS
=$CPPFLAGS
12467 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
12468 LIBS
="$LIBS $new_LIBS"
12469 found_usable_python
=no
12470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12471 /* end confdefs.h. */
12472 #include "Python.h"
12481 if ac_fn_c_try_link
"$LINENO"; then :
12482 have_libpython
=${version}
12483 found_usable_python
=yes
12484 PYTHON_CPPFLAGS
=$new_CPPFLAGS
12485 PYTHON_LIBS
=$new_LIBS
12487 rm -f core conftest.err conftest.
$ac_objext \
12488 conftest
$ac_exeext conftest.
$ac_ext
12489 CPPFLAGS
=$save_CPPFLAGS
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
12492 $as_echo "${found_usable_python}" >&6; }
12495 if test "${have_libpython}" = no
; then
12499 new_CPPFLAGS
=${python_includes}
12500 new_LIBS
="${python_libs} -lpython2.6"
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
12502 $as_echo_n "checking for ${version}... " >&6; }
12503 save_CPPFLAGS
=$CPPFLAGS
12505 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
12506 LIBS
="$LIBS $new_LIBS"
12507 found_usable_python
=no
12508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12509 /* end confdefs.h. */
12510 #include "Python.h"
12519 if ac_fn_c_try_link
"$LINENO"; then :
12520 have_libpython
=${version}
12521 found_usable_python
=yes
12522 PYTHON_CPPFLAGS
=$new_CPPFLAGS
12523 PYTHON_LIBS
=$new_LIBS
12525 rm -f core conftest.err conftest.
$ac_objext \
12526 conftest
$ac_exeext conftest.
$ac_ext
12527 CPPFLAGS
=$save_CPPFLAGS
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
12530 $as_echo "${found_usable_python}" >&6; }
12533 if test ${have_libpython} = no
; then
12537 new_CPPFLAGS
=${python_includes}
12538 new_LIBS
="${python_libs} -lpython2.5"
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
12540 $as_echo_n "checking for ${version}... " >&6; }
12541 save_CPPFLAGS
=$CPPFLAGS
12543 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
12544 LIBS
="$LIBS $new_LIBS"
12545 found_usable_python
=no
12546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12547 /* end confdefs.h. */
12548 #include "Python.h"
12557 if ac_fn_c_try_link
"$LINENO"; then :
12558 have_libpython
=${version}
12559 found_usable_python
=yes
12560 PYTHON_CPPFLAGS
=$new_CPPFLAGS
12561 PYTHON_LIBS
=$new_LIBS
12563 rm -f core conftest.err conftest.
$ac_objext \
12564 conftest
$ac_exeext conftest.
$ac_ext
12565 CPPFLAGS
=$save_CPPFLAGS
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
12568 $as_echo "${found_usable_python}" >&6; }
12571 if test ${have_libpython} = no
; then
12575 new_CPPFLAGS
=${python_includes}
12576 new_LIBS
="${python_libs} -lpython2.4"
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
12578 $as_echo_n "checking for ${version}... " >&6; }
12579 save_CPPFLAGS
=$CPPFLAGS
12581 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
12582 LIBS
="$LIBS $new_LIBS"
12583 found_usable_python
=no
12584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12585 /* end confdefs.h. */
12586 #include "Python.h"
12595 if ac_fn_c_try_link
"$LINENO"; then :
12596 have_libpython
=${version}
12597 found_usable_python
=yes
12598 PYTHON_CPPFLAGS
=$new_CPPFLAGS
12599 PYTHON_LIBS
=$new_LIBS
12601 rm -f core conftest.err conftest.
$ac_objext \
12602 conftest
$ac_exeext conftest.
$ac_ext
12603 CPPFLAGS
=$save_CPPFLAGS
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
12606 $as_echo "${found_usable_python}" >&6; }
12610 if test "${have_libpython}" = python2.7
-o "${have_libpython}" = python27
; then
12612 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
12614 elif test "${have_libpython}" = python2.6
-o "${have_libpython}" = python26
; then
12616 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
12618 elif test "${have_libpython}" = python2.5
-o "${have_libpython}" = python25
; then
12620 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
12622 elif test "${have_libpython}" = python2.4
-o "${have_libpython}" = python24
; then
12624 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
12628 if test "${have_libpython}" = no
; then
12629 case "${with_python}" in
12631 as_fn_error
"python is missing or unusable" "$LINENO" 5
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
12635 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
12638 as_fn_error
"no usable python found at ${with_python}" "$LINENO" 5
12642 if test -n "${python_prefix}"; then
12644 cat >>confdefs.h
<<_ACEOF
12645 #define WITH_PYTHON_PATH "${python_prefix}"
12649 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
12650 if test "x$prefix" = xNONE
; then
12651 test_prefix
=/usr
/local
12653 test_prefix
=$prefix
12656 test_prefix
=$exec_prefix
12659 case ${python_prefix} in
12660 "${test_prefix}"|
"${test_prefix}/"*|\
12661 '${exec_prefix}'|
'${exec_prefix}/'*)
12666 cat >>confdefs.h
<<_ACEOF
12667 #define PYTHON_PATH_RELOCATABLE $value
12675 if test "${have_libpython}" != no
; then
12677 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
12679 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
12680 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
12681 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
12682 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
12683 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
12685 # Flags needed to compile Python code (taken from python-config --cflags).
12686 # We cannot call python-config directly because it will output whatever was
12687 # used when compiling the Python interpreter itself, including flags which
12688 # would make the python-related objects be compiled differently from the
12689 # rest of GDB (e.g., -O2 and -fPIC).
12690 if test "${GCC}" = yes; then
12691 tentative_python_cflags
="-fno-strict-aliasing -DNDEBUG -fwrapv"
12694 if test "x${tentative_python_cflags}" != x
; then
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
12696 $as_echo_n "checking compiler flags for python code... " >&6; }
12697 for flag
in ${tentative_python_cflags}; do
12698 # Check that the compiler accepts it
12699 saved_CFLAGS
="$CFLAGS"
12700 CFLAGS
="$CFLAGS $flag"
12701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12702 /* end confdefs.h. */
12712 if ac_fn_c_try_compile
"$LINENO"; then :
12713 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
12715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12716 CFLAGS
="$saved_CFLAGS"
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
12719 $as_echo "${PYTHON_CFLAGS}" >&6; }
12722 # On IRIX, type siginfo is not defined. Instead, sys/siginfo.h provides:
12724 # #define siginfo __siginfo
12726 # The problem is that including Python causes some XOPEN macros to be
12727 # unilaterally defined, and that in turn causes _SGIAPI to evaluate
12728 # to false. So, we work around this issue by defining siginfo ourself
12729 # though the command-line.
12730 case "$gdb_host" in
12731 irix
*) if test "${GCC}" = yes; then
12732 CPPFLAGS
="$CPPFLAGS -Dsiginfo=__siginfo"
12737 # Even if Python support is not compiled in, we need to have these files
12739 CONFIG_OBS
="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
12740 CONFIG_SRCS
="$CONFIG_SRCS python/python.c python/py-value.c \
12741 python/py-prettyprint.c python/py-auto-load.c"
12747 # ------------------------- #
12748 # Checks for header files. #
12749 # ------------------------- #
12751 ac_header_dirent
=no
12752 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
12753 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12755 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
12756 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
12757 $as_echo_n "(cached) " >&6
12759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12760 /* end confdefs.h. */
12761 #include <sys/types.h>
12773 if ac_fn_c_try_compile
"$LINENO"; then :
12774 eval "$as_ac_Header=yes"
12776 eval "$as_ac_Header=no"
12778 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12780 eval ac_res
=\$
$as_ac_Header
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12782 $as_echo "$ac_res" >&6; }
12783 eval as_val
=\$
$as_ac_Header
12784 if test "x$as_val" = x
""yes; then :
12785 cat >>confdefs.h
<<_ACEOF
12786 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12789 ac_header_dirent
=$ac_hdr; break
12793 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12794 if test $ac_header_dirent = dirent.h
; then
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12796 $as_echo_n "checking for library containing opendir... " >&6; }
12797 if test "${ac_cv_search_opendir+set}" = set; then :
12798 $as_echo_n "(cached) " >&6
12800 ac_func_search_save_LIBS
=$LIBS
12801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12802 /* end confdefs.h. */
12804 /* Override any GCC internal prototype to avoid an error.
12805 Use char because int might match the return type of a GCC
12806 builtin and then its argument prototype would still apply. */
12819 for ac_lib
in '' dir
; do
12820 if test -z "$ac_lib"; then
12821 ac_res
="none required"
12824 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12826 if ac_fn_c_try_link
"$LINENO"; then :
12827 ac_cv_search_opendir
=$ac_res
12829 rm -f core conftest.err conftest.
$ac_objext \
12831 if test "${ac_cv_search_opendir+set}" = set; then :
12835 if test "${ac_cv_search_opendir+set}" = set; then :
12838 ac_cv_search_opendir
=no
12840 rm conftest.
$ac_ext
12841 LIBS
=$ac_func_search_save_LIBS
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12844 $as_echo "$ac_cv_search_opendir" >&6; }
12845 ac_res
=$ac_cv_search_opendir
12846 if test "$ac_res" != no
; then :
12847 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12853 $as_echo_n "checking for library containing opendir... " >&6; }
12854 if test "${ac_cv_search_opendir+set}" = set; then :
12855 $as_echo_n "(cached) " >&6
12857 ac_func_search_save_LIBS
=$LIBS
12858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12859 /* end confdefs.h. */
12861 /* Override any GCC internal prototype to avoid an error.
12862 Use char because int might match the return type of a GCC
12863 builtin and then its argument prototype would still apply. */
12876 for ac_lib
in '' x
; do
12877 if test -z "$ac_lib"; then
12878 ac_res
="none required"
12881 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12883 if ac_fn_c_try_link
"$LINENO"; then :
12884 ac_cv_search_opendir
=$ac_res
12886 rm -f core conftest.err conftest.
$ac_objext \
12888 if test "${ac_cv_search_opendir+set}" = set; then :
12892 if test "${ac_cv_search_opendir+set}" = set; then :
12895 ac_cv_search_opendir
=no
12897 rm conftest.
$ac_ext
12898 LIBS
=$ac_func_search_save_LIBS
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12901 $as_echo "$ac_cv_search_opendir" >&6; }
12902 ac_res
=$ac_cv_search_opendir
12903 if test "$ac_res" != no
; then :
12904 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
12911 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
12912 if test "${ac_cv_header_stat_broken+set}" = set; then :
12913 $as_echo_n "(cached) " >&6
12915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12916 /* end confdefs.h. */
12917 #include <sys/types.h>
12918 #include <sys/stat.h>
12920 #if defined S_ISBLK && defined S_IFDIR
12921 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
12924 #if defined S_ISBLK && defined S_IFCHR
12925 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
12928 #if defined S_ISLNK && defined S_IFREG
12929 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
12932 #if defined S_ISSOCK && defined S_IFREG
12933 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
12937 if ac_fn_c_try_compile
"$LINENO"; then :
12938 ac_cv_header_stat_broken
=no
12940 ac_cv_header_stat_broken
=yes
12942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
12945 $as_echo "$ac_cv_header_stat_broken" >&6; }
12946 if test $ac_cv_header_stat_broken = yes; then
12948 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12953 $as_echo_n "checking for ANSI C header files... " >&6; }
12954 if test "${ac_cv_header_stdc+set}" = set; then :
12955 $as_echo_n "(cached) " >&6
12957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12958 /* end confdefs.h. */
12959 #include <stdlib.h>
12960 #include <stdarg.h>
12961 #include <string.h>
12972 if ac_fn_c_try_compile
"$LINENO"; then :
12973 ac_cv_header_stdc
=yes
12975 ac_cv_header_stdc
=no
12977 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12979 if test $ac_cv_header_stdc = yes; then
12980 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12982 /* end confdefs.h. */
12983 #include <string.h>
12986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12987 $EGREP "memchr" >/dev
/null
2>&1; then :
12990 ac_cv_header_stdc
=no
12996 if test $ac_cv_header_stdc = yes; then
12997 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12999 /* end confdefs.h. */
13000 #include <stdlib.h>
13003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13004 $EGREP "free" >/dev
/null
2>&1; then :
13007 ac_cv_header_stdc
=no
13013 if test $ac_cv_header_stdc = yes; then
13014 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13015 if test "$cross_compiling" = yes; then :
13018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13019 /* end confdefs.h. */
13021 #include <stdlib.h>
13022 #if ((' ' & 0x0FF) == 0x020)
13023 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13024 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13026 # define ISLOWER(c) \
13027 (('a' <= (c) && (c) <= 'i') \
13028 || ('j' <= (c) && (c) <= 'r') \
13029 || ('s' <= (c) && (c) <= 'z'))
13030 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13033 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13038 for (i = 0; i < 256; i++)
13039 if (XOR (islower (i), ISLOWER (i))
13040 || toupper (i) != TOUPPER (i))
13045 if ac_fn_c_try_run
"$LINENO"; then :
13048 ac_cv_header_stdc
=no
13050 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13051 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13057 $as_echo "$ac_cv_header_stdc" >&6; }
13058 if test $ac_cv_header_stdc = yes; then
13060 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13064 # elf_hp.h is for HP/UX 64-bit shared library support.
13065 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
13066 # unconditionally, so what's the point in checking these?
13067 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
13068 thread_db.h gnu
/libc-version.h signal.h stddef.h \
13069 stdlib.h string.h memory.h
strings.h sys
/fault.h \
13070 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
13071 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
13072 sys
/reg.h sys
/debugreg.h sys
/select.h sys
/syscall.h \
13073 sys
/types.h sys
/wait.h
wait.h termios.h termio.h \
13074 sgtty.h unistd.h elf_hp.h ctype.h
time.h locale.h \
13075 dlfcn.h sys
/socket.h sys
/un.h
13077 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13078 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13079 eval as_val
=\$
$as_ac_Header
13080 if test "x$as_val" = x
""yes; then :
13081 cat >>confdefs.h
<<_ACEOF
13082 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13089 for ac_header
in link.h
13091 ac_fn_c_check_header_compile
"$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
13092 # include <sys/types.h>
13095 # include <nlist.h>
13099 if test "x$ac_cv_header_link_h" = x
""yes; then :
13100 cat >>confdefs.h
<<_ACEOF
13101 #define HAVE_LINK_H 1
13108 for ac_header
in sys
/proc.h
13110 ac_fn_c_check_header_compile
"$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
13111 # include <sys/param.h>
13115 if test "x$ac_cv_header_sys_proc_h" = x
""yes; then :
13116 cat >>confdefs.h
<<_ACEOF
13117 #define HAVE_SYS_PROC_H 1
13124 for ac_header
in sys
/user.h
13126 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
13127 # include <sys/param.h>
13131 if test "x$ac_cv_header_sys_user_h" = x
""yes; then :
13132 cat >>confdefs.h
<<_ACEOF
13133 #define HAVE_SYS_USER_H 1
13141 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
13142 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
13143 # think that we don't have <curses.h> if we're using GCC.
13146 if test "$GCC" = yes; then
13148 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
13152 for ac_header
in curses.h cursesX.h ncurses.h ncurses
/ncurses.h ncurses
/term.h
13154 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13155 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13156 eval as_val
=\$
$as_ac_Header
13157 if test "x$as_val" = x
""yes; then :
13158 cat >>confdefs.h
<<_ACEOF
13159 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13166 for ac_header
in term.h
13168 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
13169 # include <curses.h>
13173 if test "x$ac_cv_header_term_h" = x
""yes; then :
13174 cat >>confdefs.h
<<_ACEOF
13175 #define HAVE_TERM_H 1
13183 # ------------------------- #
13184 # Checks for declarations. #
13185 # ------------------------- #
13187 ac_fn_c_check_decl
"$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
13188 if test "x$ac_cv_have_decl_free" = x
""yes; then :
13194 cat >>confdefs.h
<<_ACEOF
13195 #define HAVE_DECL_FREE $ac_have_decl
13197 ac_fn_c_check_decl
"$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
13198 if test "x$ac_cv_have_decl_malloc" = x
""yes; then :
13204 cat >>confdefs.h
<<_ACEOF
13205 #define HAVE_DECL_MALLOC $ac_have_decl
13207 ac_fn_c_check_decl
"$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
13208 if test "x$ac_cv_have_decl_realloc" = x
""yes; then :
13214 cat >>confdefs.h
<<_ACEOF
13215 #define HAVE_DECL_REALLOC $ac_have_decl
13217 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
13218 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
13224 cat >>confdefs.h
<<_ACEOF
13225 #define HAVE_DECL_STRERROR $ac_have_decl
13227 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13228 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
13234 cat >>confdefs.h
<<_ACEOF
13235 #define HAVE_DECL_STRSTR $ac_have_decl
13237 ac_fn_c_check_decl
"$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
13238 if test "x$ac_cv_have_decl_getopt" = x
""yes; then :
13244 cat >>confdefs.h
<<_ACEOF
13245 #define HAVE_DECL_GETOPT $ac_have_decl
13247 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
13248 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
13254 cat >>confdefs.h
<<_ACEOF
13255 #define HAVE_DECL_SNPRINTF $ac_have_decl
13257 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
13258 if test "x$ac_cv_have_decl_vsnprintf" = x
""yes; then :
13264 cat >>confdefs.h
<<_ACEOF
13265 #define HAVE_DECL_VSNPRINTF $ac_have_decl
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13270 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13271 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
13272 $as_echo_n "(cached) " >&6
13274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13275 /* end confdefs.h. */
13276 #include <locale.h>
13285 if ac_fn_c_try_link
"$LINENO"; then :
13286 am_cv_val_LC_MESSAGES
=yes
13288 am_cv_val_LC_MESSAGES
=no
13290 rm -f core conftest.err conftest.
$ac_objext \
13291 conftest
$ac_exeext conftest.
$ac_ext
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13294 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13295 if test $am_cv_val_LC_MESSAGES = yes; then
13297 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13302 # ----------------------- #
13303 # Checks for structures. #
13304 # ----------------------- #
13306 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13307 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then :
13309 cat >>confdefs.h
<<_ACEOF
13310 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13315 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
13316 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then :
13318 cat >>confdefs.h
<<_ACEOF
13319 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13326 # ------------------ #
13327 # Checks for types. #
13328 # ------------------ #
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13331 $as_echo_n "checking return type of signal handlers... " >&6; }
13332 if test "${ac_cv_type_signal+set}" = set; then :
13333 $as_echo_n "(cached) " >&6
13335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13336 /* end confdefs.h. */
13337 #include <sys/types.h>
13338 #include <signal.h>
13343 return *(signal (0, 0)) (0) == 1;
13348 if ac_fn_c_try_compile
"$LINENO"; then :
13349 ac_cv_type_signal
=int
13351 ac_cv_type_signal
=void
13353 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13356 $as_echo "$ac_cv_type_signal" >&6; }
13358 cat >>confdefs.h
<<_ACEOF
13359 #define RETSIGTYPE $ac_cv_type_signal
13363 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
13364 #include <sys/socket.h>
13367 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
13369 cat >>confdefs.h
<<_ACEOF
13370 #define HAVE_SOCKLEN_T 1
13377 # ------------------------------------- #
13378 # Checks for compiler characteristics. #
13379 # ------------------------------------- #
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13382 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13383 if test "${ac_cv_c_const+set}" = set; then :
13384 $as_echo_n "(cached) " >&6
13386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13387 /* end confdefs.h. */
13392 /* FIXME: Include the comments suggested by Paul. */
13393 #ifndef __cplusplus
13394 /* Ultrix mips cc rejects this. */
13395 typedef int charset[2];
13397 /* SunOS 4.1.1 cc rejects this. */
13398 char const *const *pcpcc;
13400 /* NEC SVR4.0.2 mips cc rejects this. */
13401 struct point {int x, y;};
13402 static struct point const zero = {0,0};
13403 /* AIX XL C 1.02.0.0 rejects this.
13404 It does not let you subtract one const X* pointer from another in
13405 an arm of an if-expression whose if-part is not a constant
13407 const char *g = "string";
13408 pcpcc = &g + (g ? g-g : 0);
13409 /* HPUX 7.0 cc rejects these. */
13411 ppc = (char**) pcpcc;
13412 pcpcc = (char const *const *) ppc;
13413 { /* SCO 3.2v4 cc rejects this. */
13415 char const *s = 0 ? (char *) 0 : (char const *) 0;
13420 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13421 int x[] = {25, 17};
13422 const int *foo = &x[0];
13425 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13426 typedef const int *iptr;
13430 { /* AIX XL C 1.02.0.0 rejects this saying
13431 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13432 struct s { int j; const int *ap[3]; };
13433 struct s *b; b->j = 5;
13435 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13436 const int foo = 10;
13437 if (!foo) return 0;
13439 return !cs[0] && !zero.x;
13446 if ac_fn_c_try_compile
"$LINENO"; then :
13451 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13454 $as_echo "$ac_cv_c_const" >&6; }
13455 if test $ac_cv_c_const = no
; then
13457 $as_echo "#define const /**/" >>confdefs.h
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13462 $as_echo_n "checking for inline... " >&6; }
13463 if test "${ac_cv_c_inline+set}" = set; then :
13464 $as_echo_n "(cached) " >&6
13467 for ac_kw
in inline __inline__ __inline
; do
13468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13469 /* end confdefs.h. */
13470 #ifndef __cplusplus
13472 static $ac_kw foo_t static_foo () {return 0; }
13473 $ac_kw foo_t foo () {return 0; }
13477 if ac_fn_c_try_compile
"$LINENO"; then :
13478 ac_cv_c_inline
=$ac_kw
13480 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13481 test "$ac_cv_c_inline" != no
&& break
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13486 $as_echo "$ac_cv_c_inline" >&6; }
13488 case $ac_cv_c_inline in
13491 case $ac_cv_c_inline in
13493 *) ac_val
=$ac_cv_c_inline;;
13495 cat >>confdefs.h
<<_ACEOF
13496 #ifndef __cplusplus
13497 #define inline $ac_val
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13504 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13505 if test "${ac_cv_c_bigendian+set}" = set; then :
13506 $as_echo_n "(cached) " >&6
13508 ac_cv_c_bigendian
=unknown
13509 # See if we're dealing with a universal compiler.
13510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13511 /* end confdefs.h. */
13512 #ifndef __APPLE_CC__
13513 not a universal capable compiler
13518 if ac_fn_c_try_compile
"$LINENO"; then :
13520 # Check for potential -arch flags. It is not universal unless
13521 # there are at least two -arch flags with different values.
13524 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13525 if test -n "$ac_prev"; then
13527 i?
86 | x86_64 | ppc | ppc64
)
13528 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
13531 ac_cv_c_bigendian
=universal
13537 elif test "x$ac_word" = "x-arch"; then
13542 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13543 if test $ac_cv_c_bigendian = unknown
; then
13544 # See if sys/param.h defines the BYTE_ORDER macro.
13545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13546 /* end confdefs.h. */
13547 #include <sys/types.h>
13548 #include <sys/param.h>
13553 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13554 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13556 bogus endian macros
13563 if ac_fn_c_try_compile
"$LINENO"; then :
13564 # It does; now see whether it defined to BIG_ENDIAN or not.
13565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13566 /* end confdefs.h. */
13567 #include <sys/types.h>
13568 #include <sys/param.h>
13573 #if BYTE_ORDER != BIG_ENDIAN
13581 if ac_fn_c_try_compile
"$LINENO"; then :
13582 ac_cv_c_bigendian
=yes
13584 ac_cv_c_bigendian
=no
13586 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13588 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13590 if test $ac_cv_c_bigendian = unknown
; then
13591 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13593 /* end confdefs.h. */
13594 #include <limits.h>
13599 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13600 bogus endian macros
13607 if ac_fn_c_try_compile
"$LINENO"; then :
13608 # It does; now see whether it defined to _BIG_ENDIAN or not.
13609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13610 /* end confdefs.h. */
13611 #include <limits.h>
13616 #ifndef _BIG_ENDIAN
13624 if ac_fn_c_try_compile
"$LINENO"; then :
13625 ac_cv_c_bigendian
=yes
13627 ac_cv_c_bigendian
=no
13629 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13631 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13633 if test $ac_cv_c_bigendian = unknown
; then
13634 # Compile a test program.
13635 if test "$cross_compiling" = yes; then :
13636 # Try to guess by grepping values from an object file.
13637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13638 /* end confdefs.h. */
13639 short int ascii_mm[] =
13640 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13641 short int ascii_ii[] =
13642 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13643 int use_ascii (int i) {
13644 return ascii_mm[i] + ascii_ii[i];
13646 short int ebcdic_ii[] =
13647 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13648 short int ebcdic_mm[] =
13649 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13650 int use_ebcdic (int i) {
13651 return ebcdic_mm[i] + ebcdic_ii[i];
13658 return use_ascii (foo) == use_ebcdic (foo);
13663 if ac_fn_c_try_compile
"$LINENO"; then :
13664 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
13665 ac_cv_c_bigendian
=yes
13667 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
13668 if test "$ac_cv_c_bigendian" = unknown
; then
13669 ac_cv_c_bigendian
=no
13671 # finding both strings is unlikely to happen, but who knows?
13672 ac_cv_c_bigendian
=unknown
13676 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13679 /* end confdefs.h. */
13680 $ac_includes_default
13685 /* Are we little or big endian? From Harbison&Steele. */
13689 char c[sizeof (long int)];
13692 return u.c[sizeof (long int) - 1] == 1;
13698 if ac_fn_c_try_run
"$LINENO"; then :
13699 ac_cv_c_bigendian
=no
13701 ac_cv_c_bigendian
=yes
13703 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13704 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13710 $as_echo "$ac_cv_c_bigendian" >&6; }
13711 case $ac_cv_c_bigendian in #(
13713 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13719 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13723 as_fn_error
"unknown endianness
13724 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13728 # ------------------------------ #
13729 # Checks for library functions. #
13730 # ------------------------------ #
13732 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13733 # for constant arguments. Useless!
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13735 $as_echo_n "checking for working alloca.h... " >&6; }
13736 if test "${ac_cv_working_alloca_h+set}" = set; then :
13737 $as_echo_n "(cached) " >&6
13739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13740 /* end confdefs.h. */
13741 #include <alloca.h>
13745 char *p = (char *) alloca (2 * sizeof (int));
13751 if ac_fn_c_try_link
"$LINENO"; then :
13752 ac_cv_working_alloca_h
=yes
13754 ac_cv_working_alloca_h
=no
13756 rm -f core conftest.err conftest.
$ac_objext \
13757 conftest
$ac_exeext conftest.
$ac_ext
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13760 $as_echo "$ac_cv_working_alloca_h" >&6; }
13761 if test $ac_cv_working_alloca_h = yes; then
13763 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13768 $as_echo_n "checking for alloca... " >&6; }
13769 if test "${ac_cv_func_alloca_works+set}" = set; then :
13770 $as_echo_n "(cached) " >&6
13772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13773 /* end confdefs.h. */
13775 # define alloca __builtin_alloca
13778 # include <malloc.h>
13779 # define alloca _alloca
13781 # ifdef HAVE_ALLOCA_H
13782 # include <alloca.h>
13787 # ifndef alloca /* predefined by HP cc +Olibcalls */
13798 char *p = (char *) alloca (1);
13804 if ac_fn_c_try_link
"$LINENO"; then :
13805 ac_cv_func_alloca_works
=yes
13807 ac_cv_func_alloca_works
=no
13809 rm -f core conftest.err conftest.
$ac_objext \
13810 conftest
$ac_exeext conftest.
$ac_ext
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13813 $as_echo "$ac_cv_func_alloca_works" >&6; }
13815 if test $ac_cv_func_alloca_works = yes; then
13817 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13820 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13821 # that cause trouble. Some versions do not even contain alloca or
13822 # contain a buggy version. If you still want to use their alloca,
13823 # use ar to extract alloca.o from them instead of compiling alloca.c.
13825 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
13827 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13831 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13832 if test "${ac_cv_os_cray+set}" = set; then :
13833 $as_echo_n "(cached) " >&6
13835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13836 /* end confdefs.h. */
13837 #if defined CRAY && ! defined CRAY2
13844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13845 $EGREP "webecray" >/dev
/null
2>&1; then :
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13854 $as_echo "$ac_cv_os_cray" >&6; }
13855 if test $ac_cv_os_cray = yes; then
13856 for ac_func
in _getb67 GETB67 getb67
; do
13857 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13858 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13859 eval as_val
=\$
$as_ac_var
13860 if test "x$as_val" = x
""yes; then :
13862 cat >>confdefs.h
<<_ACEOF
13863 #define CRAY_STACKSEG_END $ac_func
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13873 $as_echo_n "checking stack direction for C alloca... " >&6; }
13874 if test "${ac_cv_c_stack_direction+set}" = set; then :
13875 $as_echo_n "(cached) " >&6
13877 if test "$cross_compiling" = yes; then :
13878 ac_cv_c_stack_direction
=0
13880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13881 /* end confdefs.h. */
13882 $ac_includes_default
13884 find_stack_direction ()
13886 static char *addr = 0;
13891 return find_stack_direction ();
13894 return (&dummy > addr) ? 1 : -1;
13900 return find_stack_direction () < 0;
13903 if ac_fn_c_try_run
"$LINENO"; then :
13904 ac_cv_c_stack_direction
=1
13906 ac_cv_c_stack_direction
=-1
13908 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13909 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13914 $as_echo "$ac_cv_c_stack_direction" >&6; }
13915 cat >>confdefs.h
<<_ACEOF
13916 #define STACK_DIRECTION $ac_cv_c_stack_direction
13922 for ac_header
in stdlib.h unistd.h
13924 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13925 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13926 eval as_val
=\$
$as_ac_Header
13927 if test "x$as_val" = x
""yes; then :
13928 cat >>confdefs.h
<<_ACEOF
13929 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13936 for ac_func
in getpagesize
13938 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13939 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
13940 cat >>confdefs.h
<<_ACEOF
13941 #define HAVE_GETPAGESIZE 1
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13948 $as_echo_n "checking for working mmap... " >&6; }
13949 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
13950 $as_echo_n "(cached) " >&6
13952 if test "$cross_compiling" = yes; then :
13953 ac_cv_func_mmap_fixed_mapped
=no
13955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13956 /* end confdefs.h. */
13957 $ac_includes_default
13958 /* malloc might have been renamed as rpl_malloc. */
13961 /* Thanks to Mike Haertel and Jim Avera for this test.
13962 Here is a matrix of mmap possibilities:
13963 mmap private not fixed
13964 mmap private fixed at somewhere currently unmapped
13965 mmap private fixed at somewhere already mapped
13966 mmap shared not fixed
13967 mmap shared fixed at somewhere currently unmapped
13968 mmap shared fixed at somewhere already mapped
13969 For private mappings, we should verify that changes cannot be read()
13970 back from the file, nor mmap's back from the file at a different
13971 address. (There have been systems where private was not correctly
13972 implemented like the infamous i386 svr4.0, and systems where the
13973 VM page cache was not coherent with the file system buffer cache
13974 like early versions of FreeBSD and possibly contemporary NetBSD.)
13975 For shared mappings, we should conversely verify that changes get
13976 propagated back to all the places they're supposed to be.
13978 Grep wants private fixed already mapped.
13979 The main things grep needs to know about mmap are:
13980 * does it exist and is it safe to write into the mmap'd area
13981 * how to use it (BSD variants) */
13984 #include <sys/mman.h>
13986 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13990 /* This mess was copied from the GNU getpagesize.h. */
13991 #ifndef HAVE_GETPAGESIZE
13992 /* Assume that all systems that can run configure have sys/param.h. */
13993 # ifndef HAVE_SYS_PARAM_H
13994 # define HAVE_SYS_PARAM_H 1
13997 # ifdef _SC_PAGESIZE
13998 # define getpagesize() sysconf(_SC_PAGESIZE)
13999 # else /* no _SC_PAGESIZE */
14000 # ifdef HAVE_SYS_PARAM_H
14001 # include <sys/param.h>
14002 # ifdef EXEC_PAGESIZE
14003 # define getpagesize() EXEC_PAGESIZE
14004 # else /* no EXEC_PAGESIZE */
14006 # define getpagesize() NBPG * CLSIZE
14009 # endif /* no CLSIZE */
14010 # else /* no NBPG */
14012 # define getpagesize() NBPC
14013 # else /* no NBPC */
14015 # define getpagesize() PAGESIZE
14016 # endif /* PAGESIZE */
14017 # endif /* no NBPC */
14018 # endif /* no NBPG */
14019 # endif /* no EXEC_PAGESIZE */
14020 # else /* no HAVE_SYS_PARAM_H */
14021 # define getpagesize() 8192 /* punt totally */
14022 # endif /* no HAVE_SYS_PARAM_H */
14023 # endif /* no _SC_PAGESIZE */
14025 #endif /* no HAVE_GETPAGESIZE */
14030 char *data, *data2, *data3;
14034 pagesize = getpagesize ();
14036 /* First, make a file with some known garbage in it. */
14037 data = (char *) malloc (pagesize);
14040 for (i = 0; i < pagesize; ++i)
14041 *(data + i) = rand ();
14043 fd = creat ("conftest.mmap", 0600);
14046 if (write (fd, data, pagesize) != pagesize)
14050 /* Next, try to mmap the file at a fixed address which already has
14051 something else allocated at it. If we can, also make sure that
14052 we see the same garbage. */
14053 fd = open ("conftest.mmap", O_RDWR);
14056 data2 = (char *) malloc (2 * pagesize);
14059 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
14060 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14061 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14063 for (i = 0; i < pagesize; ++i)
14064 if (*(data + i) != *(data2 + i))
14067 /* Finally, make sure that changes to the mapped area do not
14068 percolate back to the file as seen by read(). (This is a bug on
14069 some variants of i386 svr4.0.) */
14070 for (i = 0; i < pagesize; ++i)
14071 *(data2 + i) = *(data2 + i) + 1;
14072 data3 = (char *) malloc (pagesize);
14075 if (read (fd, data3, pagesize) != pagesize)
14077 for (i = 0; i < pagesize; ++i)
14078 if (*(data + i) != *(data3 + i))
14084 if ac_fn_c_try_run
"$LINENO"; then :
14085 ac_cv_func_mmap_fixed_mapped
=yes
14087 ac_cv_func_mmap_fixed_mapped
=no
14089 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14090 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14095 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
14096 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14098 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
14101 rm -f conftest.mmap
14103 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14104 if test "x$ac_cv_type_pid_t" = x
""yes; then :
14108 cat >>confdefs.h
<<_ACEOF
14114 for ac_header
in vfork.h
14116 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14117 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
14118 cat >>confdefs.h
<<_ACEOF
14119 #define HAVE_VFORK_H 1
14126 for ac_func
in fork vfork
14128 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14129 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14130 eval as_val
=\$
$as_ac_var
14131 if test "x$as_val" = x
""yes; then :
14132 cat >>confdefs.h
<<_ACEOF
14133 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14139 if test "x$ac_cv_func_fork" = xyes
; then
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14141 $as_echo_n "checking for working fork... " >&6; }
14142 if test "${ac_cv_func_fork_works+set}" = set; then :
14143 $as_echo_n "(cached) " >&6
14145 if test "$cross_compiling" = yes; then :
14146 ac_cv_func_fork_works
=cross
14148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14149 /* end confdefs.h. */
14150 $ac_includes_default
14155 /* By Ruediger Kuhlmann. */
14156 return fork () < 0;
14162 if ac_fn_c_try_run
"$LINENO"; then :
14163 ac_cv_func_fork_works
=yes
14165 ac_cv_func_fork_works
=no
14167 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14168 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14173 $as_echo "$ac_cv_func_fork_works" >&6; }
14176 ac_cv_func_fork_works
=$ac_cv_func_fork
14178 if test "x$ac_cv_func_fork_works" = xcross
; then
14180 *-*-amigaos* |
*-*-msdosdjgpp*)
14181 # Override, as these systems have only a dummy fork() stub
14182 ac_cv_func_fork_works
=no
14185 ac_cv_func_fork_works
=yes
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14189 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14191 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14192 if test "x$ac_cv_func_vfork" = xyes
; then
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14194 $as_echo_n "checking for working vfork... " >&6; }
14195 if test "${ac_cv_func_vfork_works+set}" = set; then :
14196 $as_echo_n "(cached) " >&6
14198 if test "$cross_compiling" = yes; then :
14199 ac_cv_func_vfork_works
=cross
14201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14202 /* end confdefs.h. */
14203 /* Thanks to Paul Eggert for this test. */
14204 $ac_includes_default
14205 #include <sys/wait.h>
14206 #ifdef HAVE_VFORK_H
14207 # include <vfork.h>
14209 /* On some sparc systems, changes by the child to local and incoming
14210 argument registers are propagated back to the parent. The compiler
14211 is told about this with #include <vfork.h>, but some compilers
14212 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14213 static variable whose address is put into a register that is
14214 clobbered by the vfork. */
14217 sparc_address_test (int arg)
14219 sparc_address_test (arg) int arg;
14222 static pid_t child;
14240 pid_t parent = getpid ();
14243 sparc_address_test (0);
14248 /* Here is another test for sparc vfork register problems. This
14249 test uses lots of local variables, at least as many local
14250 variables as main has allocated so far including compiler
14251 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14252 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14253 reuse the register of parent for one of the local variables,
14254 since it will think that parent can't possibly be used any more
14255 in this routine. Assigning to the local variable will thus
14256 munge parent in the parent process. */
14258 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14259 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14260 /* Convince the compiler that p..p7 are live; otherwise, it might
14261 use the same hardware register for all 8 local variables. */
14262 if (p != p1 || p != p2 || p != p3 || p != p4
14263 || p != p5 || p != p6 || p != p7)
14266 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14267 from child file descriptors. If the child closes a descriptor
14268 before it execs or exits, this munges the parent's descriptor
14269 as well. Test for this by closing stdout in the child. */
14270 _exit(close(fileno(stdout)) != 0);
14275 while (wait(&status) != child)
14278 /* Was there some problem with vforking? */
14281 /* Did the child fail? (This shouldn't happen.) */
14284 /* Did the vfork/compiler bug occur? */
14285 || parent != getpid()
14287 /* Did the file descriptor bug occur? */
14288 || fstat(fileno(stdout), &st) != 0
14293 if ac_fn_c_try_run
"$LINENO"; then :
14294 ac_cv_func_vfork_works
=yes
14296 ac_cv_func_vfork_works
=no
14298 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14299 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14304 $as_echo "$ac_cv_func_vfork_works" >&6; }
14307 if test "x$ac_cv_func_fork_works" = xcross
; then
14308 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14310 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14313 if test "x$ac_cv_func_vfork_works" = xyes
; then
14315 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14319 $as_echo "#define vfork fork" >>confdefs.h
14322 if test "x$ac_cv_func_fork_works" = xyes
; then
14324 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14328 for ac_func
in canonicalize_file_name realpath getrusage getuid getgid \
14329 pipe poll pread pread64 pwrite readlink resize_term \
14330 sbrk setpgid setpgrp setsid \
14331 sigaction sigprocmask sigsetmask socketpair syscall \
14332 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
14333 setrlimit getrlimit posix_madvise waitpid lstat
14335 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14336 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14337 eval as_val
=\$
$as_ac_var
14338 if test "x$as_val" = x
""yes; then :
14339 cat >>confdefs.h
<<_ACEOF
14340 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14348 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14349 if test "${am_cv_langinfo_codeset+set}" = set; then :
14350 $as_echo_n "(cached) " >&6
14352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14353 /* end confdefs.h. */
14354 #include <langinfo.h>
14358 char* cs = nl_langinfo(CODESET);
14363 if ac_fn_c_try_link
"$LINENO"; then :
14364 am_cv_langinfo_codeset
=yes
14366 am_cv_langinfo_codeset
=no
14368 rm -f core conftest.err conftest.
$ac_objext \
14369 conftest
$ac_exeext conftest.
$ac_ext
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
14373 $as_echo "$am_cv_langinfo_codeset" >&6; }
14374 if test $am_cv_langinfo_codeset = yes; then
14376 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14381 # Check the return and argument types of ptrace. No canned test for
14382 # this, so roll our own.
14383 gdb_ptrace_headers
='
14384 #if HAVE_SYS_TYPES_H
14385 # include <sys/types.h>
14387 #if HAVE_SYS_PTRACE_H
14388 # include <sys/ptrace.h>
14391 # include <unistd.h>
14394 # There is no point in checking if we don't have a prototype.
14395 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
14397 if test "x$ac_cv_have_decl_ptrace" = x
""yes; then :
14403 cat >>confdefs.h
<<_ACEOF
14404 #define HAVE_DECL_PTRACE $ac_have_decl
14406 if test $ac_have_decl = 1; then :
14410 : ${gdb_cv_func_ptrace_ret='int'}
14411 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
14415 # Check return type. Varargs (used on GNU/Linux) conflict with the
14416 # empty argument list, so check for that explicitly.
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
14418 $as_echo_n "checking return type of ptrace... " >&6; }
14419 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
14420 $as_echo_n "(cached) " >&6
14422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14423 /* end confdefs.h. */
14424 $gdb_ptrace_headers
14428 extern long ptrace (enum __ptrace_request, ...);
14433 if ac_fn_c_try_compile
"$LINENO"; then :
14434 gdb_cv_func_ptrace_ret
='long'
14436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14437 /* end confdefs.h. */
14438 $gdb_ptrace_headers
14442 extern int ptrace ();
14447 if ac_fn_c_try_compile
"$LINENO"; then :
14448 gdb_cv_func_ptrace_ret
='int'
14450 gdb_cv_func_ptrace_ret
='long'
14452 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14454 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
14457 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
14459 cat >>confdefs.h
<<_ACEOF
14460 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
14463 # Check argument types.
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
14465 $as_echo_n "checking types of arguments for ptrace... " >&6; }
14466 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
14467 $as_echo_n "(cached) " >&6
14470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14471 /* end confdefs.h. */
14472 $gdb_ptrace_headers
14476 extern long ptrace (enum __ptrace_request, ...);
14481 if ac_fn_c_try_compile
"$LINENO"; then :
14482 gdb_cv_func_ptrace_args
='int,int,long,long'
14485 for gdb_arg1
in 'int' 'long'; do
14486 for gdb_arg2
in 'pid_t' 'int' 'long'; do
14487 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
14488 for gdb_arg4
in 'int' 'long'; do
14489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14490 /* end confdefs.h. */
14491 $gdb_ptrace_headers
14496 extern $gdb_cv_func_ptrace_ret
14497 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
14503 if ac_fn_c_try_compile
"$LINENO"; then :
14504 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
14507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14508 for gdb_arg5
in 'int *' 'int' 'long'; do
14509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14510 /* end confdefs.h. */
14511 $gdb_ptrace_headers
14516 extern $gdb_cv_func_ptrace_ret
14517 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
14523 if ac_fn_c_try_compile
"$LINENO"; then :
14525 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
14528 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14534 # Provide a safe default value.
14535 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
14538 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
14541 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
14542 ac_save_IFS
=$IFS; IFS
=','
14543 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
14547 cat >>confdefs.h
<<_ACEOF
14548 #define PTRACE_TYPE_ARG3 $3
14551 if test -n "$5"; then
14553 cat >>confdefs.h
<<_ACEOF
14554 #define PTRACE_TYPE_ARG5 $5
14559 if test "$cross_compiling" = no
; then
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
14561 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
14562 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
14563 $as_echo_n "(cached) " >&6
14565 if test "$cross_compiling" = yes; then :
14566 as_fn_error
"cannot check setpgrp when cross compiling" "$LINENO" 5
14568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14569 /* end confdefs.h. */
14570 $ac_includes_default
14574 /* If this system has a BSD-style setpgrp which takes arguments,
14575 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
14576 exit successfully. */
14577 return setpgrp (1,1) != -1;
14582 if ac_fn_c_try_run
"$LINENO"; then :
14583 ac_cv_func_setpgrp_void
=no
14585 ac_cv_func_setpgrp_void
=yes
14587 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14588 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
14593 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
14594 if test $ac_cv_func_setpgrp_void = yes; then
14596 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
14602 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
14603 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
14604 $as_echo_n "(cached) " >&6
14606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14607 /* end confdefs.h. */
14609 #include <unistd.h>
14615 if (setpgrp(1,1) == -1)
14624 if ac_fn_c_try_compile
"$LINENO"; then :
14625 ac_cv_func_setpgrp_void
=no
14627 ac_cv_func_setpgrp_void
=yes
14629 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
14632 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
14633 if test $ac_cv_func_setpgrp_void = yes; then
14634 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
14639 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
14640 # since sigsetjmp might only be defined as a macro.
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
14642 $as_echo_n "checking for sigsetjmp... " >&6; }
14643 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
14644 $as_echo_n "(cached) " >&6
14646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14647 /* end confdefs.h. */
14649 #include <setjmp.h>
14654 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
14659 if ac_fn_c_try_compile
"$LINENO"; then :
14660 gdb_cv_func_sigsetjmp
=yes
14662 gdb_cv_func_sigsetjmp
=no
14664 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
14667 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
14668 if test $gdb_cv_func_sigsetjmp = yes; then
14670 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
14674 # Assume we'll default to using the included libiberty regex.
14675 gdb_use_included_regex
=yes
14677 # However, if the system regex is GNU regex, then default to *not*
14678 # using the included regex.
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
14680 $as_echo_n "checking for GNU regex... " >&6; }
14681 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
14682 $as_echo_n "(cached) " >&6
14684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14685 /* end confdefs.h. */
14686 #include <gnu-versions.h>
14690 #define REGEX_INTERFACE_VERSION 1
14691 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
14692 # error "Version mismatch"
14698 if ac_fn_c_try_compile
"$LINENO"; then :
14699 gdb_cv_have_gnu_regex
=yes
14701 gdb_cv_have_gnu_regex
=no
14703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
14706 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
14707 if test $gdb_cv_have_gnu_regex = yes; then
14708 gdb_use_included_regex
=no
14712 # Check whether --with-included-regex was given.
14713 if test "${with_included_regex+set}" = set; then :
14714 withval
=$with_included_regex; gdb_with_regex
=$withval
14716 gdb_with_regex
=$gdb_use_included_regex
14719 if test "$gdb_with_regex" = yes; then
14721 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
14725 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
14726 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
14727 #include <sys/proc.h>
14730 if test "x$ac_cv_member_struct_thread_td_pcb" = x
""yes; then :
14732 cat >>confdefs.h
<<_ACEOF
14733 #define HAVE_STRUCT_THREAD_TD_PCB 1
14740 # See if <sys/lwp.h> defines `struct lwp`.
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
14742 $as_echo_n "checking for struct lwp... " >&6; }
14743 if test "${gdb_cv_struct_lwp+set}" = set; then :
14744 $as_echo_n "(cached) " >&6
14746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14747 /* end confdefs.h. */
14748 #include <sys/param.h>
14749 #include <sys/lwp.h>
14758 if ac_fn_c_try_compile
"$LINENO"; then :
14759 gdb_cv_struct_lwp
=yes
14761 gdb_cv_struct_lwp
=no
14763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
14766 $as_echo "$gdb_cv_struct_lwp" >&6; }
14767 if test $gdb_cv_struct_lwp = yes; then
14769 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
14773 # See if <machine/reg.h> degines `struct reg'.
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
14775 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
14776 if test "${gdb_cv_struct_reg+set}" = set; then :
14777 $as_echo_n "(cached) " >&6
14779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14780 /* end confdefs.h. */
14781 #include <sys/types.h>
14782 #include <machine/reg.h>
14791 if ac_fn_c_try_compile
"$LINENO"; then :
14792 gdb_cv_struct_reg
=yes
14794 gdb_cv_struct_reg
=no
14796 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
14799 $as_echo "$gdb_cv_struct_reg" >&6; }
14800 if test $gdb_cv_struct_reg = yes; then
14802 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
14806 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
14807 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
14808 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
14810 if test "x$ac_cv_member_struct_reg_r_fs" = x
""yes; then :
14812 cat >>confdefs.h
<<_ACEOF
14813 #define HAVE_STRUCT_REG_R_FS 1
14818 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
14820 if test "x$ac_cv_member_struct_reg_r_gs" = x
""yes; then :
14822 cat >>confdefs.h
<<_ACEOF
14823 #define HAVE_STRUCT_REG_R_GS 1
14830 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
14832 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
14833 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
14834 $as_echo_n "(cached) " >&6
14836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14837 /* end confdefs.h. */
14838 #include <sys/ptrace.h>
14847 if ac_fn_c_try_compile
"$LINENO"; then :
14848 gdb_cv_have_ptrace_getregs
=yes
14850 gdb_cv_have_ptrace_getregs
=no
14852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
14856 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
14857 if test $gdb_cv_have_ptrace_getregs = yes; then
14859 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
14863 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
14865 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
14866 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
14867 $as_echo_n "(cached) " >&6
14869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14870 /* end confdefs.h. */
14871 #include <sys/ptrace.h>
14880 if ac_fn_c_try_compile
"$LINENO"; then :
14881 gdb_cv_have_ptrace_getfpxregs
=yes
14883 gdb_cv_have_ptrace_getfpxregs
=no
14885 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
14889 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
14890 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
14892 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
14896 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
14898 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
14899 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
14900 $as_echo_n "(cached) " >&6
14902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14903 /* end confdefs.h. */
14904 #include <sys/types.h>
14905 #include <sys/ptrace.h>
14914 if ac_fn_c_try_compile
"$LINENO"; then :
14915 gdb_cv_have_pt_getdbregs
=yes
14917 gdb_cv_have_pt_getdbregs
=no
14919 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
14923 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
14924 if test $gdb_cv_have_pt_getdbregs = yes; then
14926 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
14930 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
14932 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
14933 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
14934 $as_echo_n "(cached) " >&6
14936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14937 /* end confdefs.h. */
14938 #include <sys/types.h>
14939 #include <sys/ptrace.h>
14948 if ac_fn_c_try_compile
"$LINENO"; then :
14949 gdb_cv_have_pt_getxmmregs
=yes
14951 gdb_cv_have_pt_getxmmregs
=no
14953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
14957 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
14958 if test $gdb_cv_have_pt_getxmmregs = yes; then
14960 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
14964 # Detect which type of /proc is in use, such as for Unixware or Solaris.
14966 if test "${target}" = "${host}"; then
14968 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5* |
*-*-interix* )
14970 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
14973 *-*-solaris2.
[6789] |
*-*-solaris2.1
[0-9]*)
14975 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
14979 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
14981 $as_echo "#define _KMEMUSER 1" >>confdefs.h
14987 if test "$ac_cv_header_sys_procfs_h" = yes; then
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
14989 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
14990 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
14991 $as_echo_n "(cached) " >&6
14993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14994 /* end confdefs.h. */
14997 /* Needed for new procfs interface on sparc-solaris. */
14998 #define _STRUCTURED_PROC 1
14999 #include <sys/procfs.h>
15008 if ac_fn_c_try_compile
"$LINENO"; then :
15009 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
15011 bfd_cv_have_sys_procfs_type_pstatus_t
=no
15014 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15017 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
15019 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
15023 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
15026 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
15027 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
15028 $as_echo_n "(cached) " >&6
15030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15031 /* end confdefs.h. */
15034 /* Needed for new procfs interface on sparc-solaris. */
15035 #define _STRUCTURED_PROC 1
15036 #include <sys/procfs.h>
15045 if ac_fn_c_try_compile
"$LINENO"; then :
15046 bfd_cv_have_sys_procfs_type_prrun_t
=yes
15048 bfd_cv_have_sys_procfs_type_prrun_t
=no
15051 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15054 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
15056 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
15060 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
15063 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
15064 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
15065 $as_echo_n "(cached) " >&6
15067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15068 /* end confdefs.h. */
15071 /* Needed for new procfs interface on sparc-solaris. */
15072 #define _STRUCTURED_PROC 1
15073 #include <sys/procfs.h>
15082 if ac_fn_c_try_compile
"$LINENO"; then :
15083 bfd_cv_have_sys_procfs_type_gregset_t
=yes
15085 bfd_cv_have_sys_procfs_type_gregset_t
=no
15088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15091 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
15093 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
15097 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
15100 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
15101 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
15102 $as_echo_n "(cached) " >&6
15104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15105 /* end confdefs.h. */
15108 /* Needed for new procfs interface on sparc-solaris. */
15109 #define _STRUCTURED_PROC 1
15110 #include <sys/procfs.h>
15119 if ac_fn_c_try_compile
"$LINENO"; then :
15120 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
15122 bfd_cv_have_sys_procfs_type_fpregset_t
=no
15125 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15128 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
15130 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
15134 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
15137 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
15138 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
15139 $as_echo_n "(cached) " >&6
15141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15142 /* end confdefs.h. */
15145 /* Needed for new procfs interface on sparc-solaris. */
15146 #define _STRUCTURED_PROC 1
15147 #include <sys/procfs.h>
15156 if ac_fn_c_try_compile
"$LINENO"; then :
15157 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
15159 bfd_cv_have_sys_procfs_type_prgregset_t
=no
15162 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15165 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
15167 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
15171 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
15174 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
15175 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
15176 $as_echo_n "(cached) " >&6
15178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15179 /* end confdefs.h. */
15182 /* Needed for new procfs interface on sparc-solaris. */
15183 #define _STRUCTURED_PROC 1
15184 #include <sys/procfs.h>
15193 if ac_fn_c_try_compile
"$LINENO"; then :
15194 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
15196 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
15199 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15202 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
15204 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
15208 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
15211 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
15212 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
15213 $as_echo_n "(cached) " >&6
15215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15216 /* end confdefs.h. */
15219 /* Needed for new procfs interface on sparc-solaris. */
15220 #define _STRUCTURED_PROC 1
15221 #include <sys/procfs.h>
15230 if ac_fn_c_try_compile
"$LINENO"; then :
15231 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
15233 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
15236 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15239 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
15241 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
15245 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
15248 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
15249 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
15250 $as_echo_n "(cached) " >&6
15252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15253 /* end confdefs.h. */
15256 /* Needed for new procfs interface on sparc-solaris. */
15257 #define _STRUCTURED_PROC 1
15258 #include <sys/procfs.h>
15262 prfpregset32_t avar
15267 if ac_fn_c_try_compile
"$LINENO"; then :
15268 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
15270 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
15273 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15276 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
15278 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
15282 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
15285 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
15286 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
15287 $as_echo_n "(cached) " >&6
15289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15290 /* end confdefs.h. */
15293 /* Needed for new procfs interface on sparc-solaris. */
15294 #define _STRUCTURED_PROC 1
15295 #include <sys/procfs.h>
15304 if ac_fn_c_try_compile
"$LINENO"; then :
15305 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
15307 bfd_cv_have_sys_procfs_type_lwpid_t
=no
15310 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15313 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
15315 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
15319 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
15322 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
15323 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
15324 $as_echo_n "(cached) " >&6
15326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15327 /* end confdefs.h. */
15330 /* Needed for new procfs interface on sparc-solaris. */
15331 #define _STRUCTURED_PROC 1
15332 #include <sys/procfs.h>
15341 if ac_fn_c_try_compile
"$LINENO"; then :
15342 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
15344 bfd_cv_have_sys_procfs_type_psaddr_t
=no
15347 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15350 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
15352 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
15356 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
15359 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
15360 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
15361 $as_echo_n "(cached) " >&6
15363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15364 /* end confdefs.h. */
15367 /* Needed for new procfs interface on sparc-solaris. */
15368 #define _STRUCTURED_PROC 1
15369 #include <sys/procfs.h>
15378 if ac_fn_c_try_compile
"$LINENO"; then :
15379 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
15381 bfd_cv_have_sys_procfs_type_prsysent_t
=no
15384 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15387 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
15389 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
15393 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
15396 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
15397 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
15398 $as_echo_n "(cached) " >&6
15400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15401 /* end confdefs.h. */
15404 /* Needed for new procfs interface on sparc-solaris. */
15405 #define _STRUCTURED_PROC 1
15406 #include <sys/procfs.h>
15415 if ac_fn_c_try_compile
"$LINENO"; then :
15416 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
15418 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
15421 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15424 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
15426 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
15430 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
15433 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
15434 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
15435 $as_echo_n "(cached) " >&6
15437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15438 /* end confdefs.h. */
15441 /* Needed for new procfs interface on sparc-solaris. */
15442 #define _STRUCTURED_PROC 1
15443 #include <sys/procfs.h>
15447 pr_sigaction64_t avar
15452 if ac_fn_c_try_compile
"$LINENO"; then :
15453 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
15455 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
15458 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15461 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
15463 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
15467 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
15470 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
15471 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
15472 $as_echo_n "(cached) " >&6
15474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15475 /* end confdefs.h. */
15478 /* Needed for new procfs interface on sparc-solaris. */
15479 #define _STRUCTURED_PROC 1
15480 #include <sys/procfs.h>
15484 pr_siginfo64_t avar
15489 if ac_fn_c_try_compile
"$LINENO"; then :
15490 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
15492 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
15495 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15498 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
15500 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
15504 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
15510 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
15512 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
15513 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
15514 $as_echo_n "(cached) " >&6
15516 if test "$cross_compiling" = yes; then :
15517 gdb_cv_prfpregset_t_broken
=yes
15519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15520 /* end confdefs.h. */
15521 #include <sys/procfs.h>
15524 if (sizeof (prfpregset_t) == sizeof (void *))
15529 if ac_fn_c_try_run
"$LINENO"; then :
15530 gdb_cv_prfpregset_t_broken
=no
15532 gdb_cv_prfpregset_t_broken
=yes
15534 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15535 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
15541 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
15542 if test $gdb_cv_prfpregset_t_broken = yes; then
15544 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
15551 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
15552 if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
15553 $as_echo_n "(cached) " >&6
15555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15556 /* end confdefs.h. */
15557 #include <unistd.h>
15558 #include <sys/types.h>
15559 #include <sys/procfs.h>
15566 dummy = ioctl(0, PIOCSET, &dummy);
15572 if ac_fn_c_try_compile
"$LINENO"; then :
15573 gdb_cv_have_procfs_piocset
=yes
15575 gdb_cv_have_procfs_piocset
=no
15577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
15581 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
15582 if test $gdb_cv_have_procfs_piocset = yes; then
15584 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
15589 if test ${host} = ${target} ; then
15591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
15592 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
15593 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
15594 $as_echo_n "(cached) " >&6
15596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15597 /* end confdefs.h. */
15602 struct link_map lm; (void) lm.l_addr;
15607 if ac_fn_c_try_compile
"$LINENO"; then :
15608 gdb_cv_have_struct_link_map_with_l_members
=yes
15610 gdb_cv_have_struct_link_map_with_l_members
=no
15612 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
15616 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
15617 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
15619 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
15625 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
15626 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
15627 $as_echo_n "(cached) " >&6
15629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15630 /* end confdefs.h. */
15631 #include <sys/types.h>
15636 struct link_map lm; (void) lm.lm_addr;
15641 if ac_fn_c_try_compile
"$LINENO"; then :
15642 gdb_cv_have_struct_link_map_with_lm_members
=yes
15644 gdb_cv_have_struct_link_map_with_lm_members
=no
15646 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
15650 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
15651 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
15653 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
15659 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
15660 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
15661 $as_echo_n "(cached) " >&6
15663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15664 /* end confdefs.h. */
15665 #include <sys/types.h>
15666 #ifdef HAVE_NLIST_H
15673 struct so_map lm; (void) lm.som_addr;
15678 if ac_fn_c_try_compile
"$LINENO"; then :
15679 gdb_cv_have_struct_so_map_with_som_members
=yes
15681 gdb_cv_have_struct_so_map_with_som_members
=no
15683 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
15687 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
15688 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
15690 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
15695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
15696 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
15697 if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
15698 $as_echo_n "(cached) " >&6
15700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15701 /* end confdefs.h. */
15703 #include <sys/link.h>
15707 struct link_map32 l;
15712 if ac_fn_c_try_compile
"$LINENO"; then :
15713 gdb_cv_have_struct_link_map32
=yes
15715 gdb_cv_have_struct_link_map32
=no
15717 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
15721 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
15722 if test $gdb_cv_have_struct_link_map32 = yes; then
15724 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
15727 $as_echo "#define _SYSCALL32 1" >>confdefs.h
15732 # Check if the compiler supports the `long long' type.
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
15735 $as_echo_n "checking for long long support in compiler... " >&6; }
15736 if test "${gdb_cv_c_long_long+set}" = set; then :
15737 $as_echo_n "(cached) " >&6
15739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15740 /* end confdefs.h. */
15741 extern long long foo;
15745 switch (foo & 2) { case 0: return 1; }
15750 if ac_fn_c_try_compile
"$LINENO"; then :
15751 gdb_cv_c_long_long
=yes
15753 gdb_cv_c_long_long
=no
15755 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
15758 $as_echo "$gdb_cv_c_long_long" >&6; }
15759 if test $gdb_cv_c_long_long = yes; then
15761 $as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
15765 # Check if the compiler and runtime support printing long longs.
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
15768 $as_echo_n "checking for long long support in printf... " >&6; }
15769 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
15770 $as_echo_n "(cached) " >&6
15772 if test "$cross_compiling" = yes; then :
15773 gdb_cv_printf_has_long_long
=no
15775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15776 /* end confdefs.h. */
15777 $ac_includes_default
15783 l = (l << 16) + 0x0123;
15784 l = (l << 16) + 0x4567;
15785 l = (l << 16) + 0x89ab;
15786 l = (l << 16) + 0xcdef;
15787 sprintf (buf, "0x%016llx", l);
15788 return (strcmp ("0x0123456789abcdef", buf));
15793 if ac_fn_c_try_run
"$LINENO"; then :
15794 gdb_cv_printf_has_long_long
=yes
15796 gdb_cv_printf_has_long_long
=no
15798 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15799 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
15804 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
15805 if test $gdb_cv_printf_has_long_long = yes; then
15807 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
15811 # Check if the compiler and runtime support printing decfloats.
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
15814 $as_echo_n "checking for decfloat support in printf... " >&6; }
15815 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
15816 $as_echo_n "(cached) " >&6
15818 if test "$cross_compiling" = yes; then :
15819 gdb_cv_printf_has_decfloat
=no
15821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15822 /* end confdefs.h. */
15823 $ac_includes_default
15828 _Decimal32 d32 = 1.2345df;
15829 _Decimal64 d64 = 1.2345dd;
15830 _Decimal128 d128 = 1.2345dl;
15831 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
15832 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
15837 if ac_fn_c_try_run
"$LINENO"; then :
15838 gdb_cv_printf_has_decfloat
=yes
15840 gdb_cv_printf_has_decfloat
=no
15842 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15843 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
15848 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
15849 if test $gdb_cv_printf_has_decfloat = yes; then
15851 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
15855 # Check if the compiler supports the `long double' type. We can't use
15856 # AC_C_LONG_DOUBLE because that one does additional checks on the
15857 # constants defined in <float.h> that fail on some systems,
15858 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
15861 $as_echo_n "checking for long double support in compiler... " >&6; }
15862 if test "${gdb_cv_c_long_double+set}" = set; then :
15863 $as_echo_n "(cached) " >&6
15865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15866 /* end confdefs.h. */
15869 if ac_fn_c_try_compile
"$LINENO"; then :
15870 gdb_cv_c_long_double
=yes
15872 gdb_cv_c_long_double
=no
15874 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
15877 $as_echo "$gdb_cv_c_long_double" >&6; }
15878 if test $gdb_cv_c_long_double = yes; then
15880 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
15884 # Check if the compiler and runtime support printing long doubles.
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
15887 $as_echo_n "checking for long double support in printf... " >&6; }
15888 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
15889 $as_echo_n "(cached) " >&6
15891 if test "$cross_compiling" = yes; then :
15892 gdb_cv_printf_has_long_double
=no
15894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15895 /* end confdefs.h. */
15896 $ac_includes_default
15901 long double f = 3.141592653;
15902 sprintf (buf, "%Lg", f);
15903 return (strncmp ("3.14159", buf, 7));
15908 if ac_fn_c_try_run
"$LINENO"; then :
15909 gdb_cv_printf_has_long_double
=yes
15911 gdb_cv_printf_has_long_double
=no
15913 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15914 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
15919 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
15920 if test $gdb_cv_printf_has_long_double = yes; then
15922 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
15926 # Check if the compiler and runtime support scanning long doubles.
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
15929 $as_echo_n "checking for long double support in scanf... " >&6; }
15930 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
15931 $as_echo_n "(cached) " >&6
15933 if test "$cross_compiling" = yes; then :
15934 gdb_cv_scanf_has_long_double
=no
15936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15937 /* end confdefs.h. */
15942 char *buf = "3.141592653";
15944 sscanf (buf, "%Lg", &f);
15945 return !(f > 3.14159 && f < 3.14160);
15950 if ac_fn_c_try_run
"$LINENO"; then :
15951 gdb_cv_scanf_has_long_double
=yes
15953 gdb_cv_scanf_has_long_double
=no
15955 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15956 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
15961 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
15962 if test $gdb_cv_scanf_has_long_double = yes; then
15964 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
15971 $as_echo_n "checking for -bbigtoc option... " >&6; }
15972 if test "${gdb_cv_bigtoc+set}" = set; then :
15973 $as_echo_n "(cached) " >&6
15976 SAVE_LDFLAGS
=$LDFLAGS
15979 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
15980 *) gdb_cv_bigtoc
=-bbigtoc ;;
15983 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
15984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15985 /* end confdefs.h. */
15995 if ac_fn_c_try_link
"$LINENO"; then :
16000 rm -f core conftest.err conftest.
$ac_objext \
16001 conftest
$ac_exeext conftest.
$ac_ext
16002 LDFLAGS
="${SAVE_LDFLAGS}"
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
16006 $as_echo "$gdb_cv_bigtoc" >&6; }
16007 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
16012 $as_echo_n "checking for the dynamic export flag... " >&6; }
16014 if test "${gdb_native}" = yes; then
16015 # The dynamically loaded libthread_db needs access to symbols in the gdb
16016 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
16017 # may not be supported there.
16018 old_LDFLAGS
="$LDFLAGS"
16019 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
16020 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
16021 LDFLAGS
="$LDFLAGS $RDYNAMIC"
16022 if test "${have_libpython}" = no
; then
16023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16024 /* end confdefs.h. */
16034 if ac_fn_c_try_link
"$LINENO"; then :
16037 rm -f core conftest.err conftest.
$ac_objext \
16038 conftest
$ac_exeext conftest.
$ac_ext
16040 # Workaround http://bugs.python.org/issue4434 where static
16041 # libpythonX.Y.a would get its symbols required for
16042 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
16043 # Problem does not happen for the recommended libpythonX.Y.so linkage.
16044 old_CFLAGS
="$CFLAGS"
16045 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
16046 if test "$cross_compiling" = yes; then :
16049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16050 /* end confdefs.h. */
16051 #include "${have_libpython}/Python.h"
16057 err = PyRun_SimpleString ("import itertools\n");
16059 return err == 0 ? 0 : 1;
16064 if ac_fn_c_try_run
"$LINENO"; then :
16067 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16068 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16071 CFLAGS
="$old_CFLAGS"
16073 LDFLAGS
="$old_LDFLAGS"
16075 if $dynamic_list; then
16076 found
="-Wl,--dynamic-list"
16077 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
16080 RDYNAMIC
="-rdynamic"
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
16084 $as_echo "$found" >&6; }
16087 if test ${build} = ${host} -a ${host} = ${target} ; then
16090 # See if thread_db library is around for Solaris thread debugging.
16091 # Note that we must explicitly test for version 1 of the library
16092 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
16095 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
16096 if test -f /usr
/lib
/libthread_db.so
.1 ; then
16097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16098 $as_echo "yes" >&6; }
16100 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
16102 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
16103 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16105 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16106 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16107 $as_echo_n "(cached) " >&6
16109 ac_check_lib_save_LIBS
=$LIBS
16111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16112 /* end confdefs.h. */
16114 /* Override any GCC internal prototype to avoid an error.
16115 Use char because int might match the return type of a GCC
16116 builtin and then its argument prototype would still apply. */
16129 if ac_fn_c_try_link
"$LINENO"; then :
16130 ac_cv_lib_dl_dlopen
=yes
16132 ac_cv_lib_dl_dlopen
=no
16134 rm -f core conftest.err conftest.
$ac_objext \
16135 conftest
$ac_exeext conftest.
$ac_ext
16136 LIBS
=$ac_check_lib_save_LIBS
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16139 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16140 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
16141 cat >>confdefs.h
<<_ACEOF
16142 #define HAVE_LIBDL 1
16149 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} $RDYNAMIC"
16150 # Sun randomly tweaked the prototypes in <proc_service.h>
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
16153 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
16154 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
16155 $as_echo_n "(cached) " >&6
16158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16159 /* end confdefs.h. */
16161 #include <proc_service.h>
16162 ps_err_e ps_pdwrite
16163 (struct ps_prochandle*, psaddr_t, const void*, size_t);
16173 if ac_fn_c_try_compile
"$LINENO"; then :
16174 gdb_cv_proc_service_is_old
=no
16176 gdb_cv_proc_service_is_old
=yes
16178 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
16183 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
16184 if test $gdb_cv_proc_service_is_old = yes; then
16186 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16191 $as_echo "no" >&6; }
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
16196 $as_echo_n "checking for AiX thread debugging library... " >&6; }
16197 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
16198 $as_echo_n "(cached) " >&6
16200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16201 /* end confdefs.h. */
16202 #include <sys/pthdebug.h>
16206 #ifndef PTHDB_VERSION_3
16213 if ac_fn_c_try_compile
"$LINENO"; then :
16214 gdb_cv_have_aix_thread_debug
=yes
16216 gdb_cv_have_aix_thread_debug
=no
16218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
16222 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
16223 if test $gdb_cv_have_aix_thread_debug = yes; then
16224 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
16225 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
16226 LIBS
="$LIBS -lpthdebug"
16228 # Older versions of AIX do not provide the declaration for
16229 # the getthrds function (it appears that it was introduced
16231 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
16233 if test "x$ac_cv_have_decl_getthrds" = x
""yes; then :
16239 cat >>confdefs.h
<<_ACEOF
16240 #define HAVE_DECL_GETTHRDS $ac_have_decl
16249 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
16251 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
16252 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
16253 $as_echo_n "(cached) " >&6
16255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16256 /* end confdefs.h. */
16257 #include <thread_db.h>
16261 int i = TD_NOTALLOC;
16266 if ac_fn_c_try_compile
"$LINENO"; then :
16267 gdb_cv_thread_db_h_has_td_notalloc
=yes
16269 gdb_cv_thread_db_h_has_td_notalloc
=no
16272 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
16276 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
16278 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
16279 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
16280 $as_echo_n "(cached) " >&6
16282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16283 /* end confdefs.h. */
16284 #include <thread_db.h>
16288 int i = TD_VERSION;
16293 if ac_fn_c_try_compile
"$LINENO"; then :
16294 gdb_cv_thread_db_h_has_td_version
=yes
16296 gdb_cv_thread_db_h_has_td_version
=no
16299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
16303 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
16305 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
16306 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
16307 $as_echo_n "(cached) " >&6
16309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16310 /* end confdefs.h. */
16311 #include <thread_db.h>
16320 if ac_fn_c_try_compile
"$LINENO"; then :
16321 gdb_cv_thread_db_h_has_td_notls
=yes
16323 gdb_cv_thread_db_h_has_td_notls
=no
16326 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
16330 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
16332 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
16334 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
16337 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
16339 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
16342 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
16344 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
16348 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
16350 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
16351 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
16352 $as_echo_n "(cached) " >&6
16354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16355 /* end confdefs.h. */
16356 #include <sys/syscall.h>
16360 int i = __NR_tkill;
16365 if ac_fn_c_try_compile
"$LINENO"; then :
16366 gdb_cv_sys_syscall_h_has_tkill
=yes
16368 gdb_cv_sys_syscall_h_has_tkill
=no
16371 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
16375 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
16377 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
16379 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
16383 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
16385 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
16391 cat >>confdefs.h
<<_ACEOF
16392 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
16396 if test "$cross_compiling" = yes; then :
16397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16398 /* end confdefs.h. */
16399 #include <sys/personality.h>
16404 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
16405 # define ADDR_NO_RANDOMIZE 0x0040000
16407 /* Test the flag could be set and stays set. */
16408 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
16409 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
16415 if ac_fn_c_try_link
"$LINENO"; then :
16416 have_personality
=true
16418 have_personality
=false
16420 rm -f core conftest.err conftest.
$ac_objext \
16421 conftest
$ac_exeext conftest.
$ac_ext
16423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16424 /* end confdefs.h. */
16425 #include <sys/personality.h>
16430 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
16431 # define ADDR_NO_RANDOMIZE 0x0040000
16433 /* Test the flag could be set and stays set. */
16434 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
16435 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
16441 if ac_fn_c_try_run
"$LINENO"; then :
16442 have_personality
=true
16444 have_personality
=false
16446 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16447 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16450 if $have_personality
16453 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
16458 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
16459 # except that the argument to --with-sysroot is optional.
16460 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
16461 if test "x$with_sysroot" = xyes
; then
16462 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
16465 # Check whether --with-sysroot was given.
16466 if test "${with_sysroot+set}" = set; then :
16467 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
16469 TARGET_SYSTEM_ROOT
=
16473 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16474 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16475 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
16476 ac_define_dir
=`eval echo $ac_define_dir`
16478 cat >>confdefs.h
<<_ACEOF
16479 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
16485 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16486 if test "x$prefix" = xNONE
; then
16487 test_prefix
=/usr
/local
16489 test_prefix
=$prefix
16492 test_prefix
=$exec_prefix
16495 case ${ac_define_dir} in
16496 "${test_prefix}"|
"${test_prefix}/"*|\
16497 '${exec_prefix}'|
'${exec_prefix}/'*)
16502 cat >>confdefs.h
<<_ACEOF
16503 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
16510 # Check whether --with-system-gdbinit was given.
16511 if test "${with_system_gdbinit+set}" = set; then :
16512 withval
=$with_system_gdbinit;
16513 SYSTEM_GDBINIT
=$withval
16519 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16520 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16521 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
16522 ac_define_dir
=`eval echo $ac_define_dir`
16524 cat >>confdefs.h
<<_ACEOF
16525 #define SYSTEM_GDBINIT "$ac_define_dir"
16531 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16532 if test "x$prefix" = xNONE
; then
16533 test_prefix
=/usr
/local
16535 test_prefix
=$prefix
16538 test_prefix
=$exec_prefix
16541 case ${ac_define_dir} in
16542 "${test_prefix}"|
"${test_prefix}/"*|\
16543 '${exec_prefix}'|
'${exec_prefix}/'*)
16548 cat >>confdefs.h
<<_ACEOF
16549 #define SYSTEM_GDBINIT_RELOCATABLE $value
16555 # Check whether --enable-werror was given.
16556 if test "${enable_werror+set}" = set; then :
16557 enableval
=$enable_werror; case "${enableval}" in
16558 yes | y
) ERROR_ON_WARNING
="yes" ;;
16559 no | n
) ERROR_ON_WARNING
="no" ;;
16560 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16565 # Enable -Werror by default when using gcc
16566 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
16567 ERROR_ON_WARNING
=yes
16571 if test "${ERROR_ON_WARNING}" = yes ; then
16572 WERROR_CFLAGS
="-Werror"
16575 # The entries after -Wno-pointer-sign are disabled warnings which may
16576 # be enabled in the future, which can not currently be used to build
16578 # NOTE: If you change this list, remember to update
16579 # gdb/doc/gdbint.texinfo.
16580 build_warnings
="-Wall -Wdeclaration-after-statement -Wpointer-arith \
16581 -Wformat-nonliteral -Wno-pointer-sign \
16582 -Wno-unused -Wunused-value -Wunused-function \
16583 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes"
16585 # Enable -Wno-format by default when using gcc on mingw since many
16586 # GCC versions complain about %I64.
16588 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
16591 # Check whether --enable-build-warnings was given.
16592 if test "${enable_build_warnings+set}" = set; then :
16593 enableval
=$enable_build_warnings; case "${enableval}" in
16595 no
) build_warnings
="-w";;
16596 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16597 build_warnings
="${build_warnings} ${t}";;
16598 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16599 build_warnings
="${t} ${build_warnings}";;
16600 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16602 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
16603 echo "Setting compiler warning flags = $build_warnings" 6>&1
16606 # Check whether --enable-gdb-build-warnings was given.
16607 if test "${enable_gdb_build_warnings+set}" = set; then :
16608 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
16610 no
) build_warnings
="-w";;
16611 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16612 build_warnings
="${build_warnings} ${t}";;
16613 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16614 build_warnings
="${t} ${build_warnings}";;
16615 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16617 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
16618 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
16622 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
16625 $as_echo_n "checking compiler warning flags... " >&6; }
16626 # Separate out the -Werror flag as some files just cannot be
16627 # compiled with it enabled.
16628 for w
in ${build_warnings}; do
16630 -Werr*) WERROR_CFLAGS
=-Werror ;;
16631 *) # Check that GCC accepts it
16632 saved_CFLAGS
="$CFLAGS"
16633 CFLAGS
="$CFLAGS $w"
16634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16635 /* end confdefs.h. */
16645 if ac_fn_c_try_compile
"$LINENO"; then :
16646 WARN_CFLAGS
="${WARN_CFLAGS} $w"
16648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16649 CFLAGS
="$saved_CFLAGS"
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
16653 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
16658 # In the Cygwin environment, we need some additional flags.
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
16660 $as_echo_n "checking
for cygwin...
" >&6; }
16661 if test "${gdb_cv_os_cygwin+set}" = set; then :
16662 $as_echo_n "(cached
) " >&6
16664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16665 /* end confdefs.h. */
16667 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
16671 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
16672 $EGREP "lose
" >/dev/null 2>&1; then :
16673 gdb_cv_os_cygwin=yes
16675 gdb_cv_os_cygwin=no
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
16681 $as_echo "$gdb_cv_os_cygwin" >&6; }
16684 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
16686 *go32* ) SER_HARDWIRE=ser-go32.o ;;
16687 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
16688 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
16692 # libreadline needs libuser32.a in a cygwin environment
16694 if test x$gdb_cv_os_cygwin = xyes; then
16695 WIN32LIBS="-luser32"
16696 case "${target}" in
16697 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
16702 # The ser-tcp.c module requires sockets.
16706 $as_echo "#define USE_WIN32API 1" >>confdefs.h
16708 WIN32LIBS
="$WIN32LIBS -lws2_32"
16713 # Add ELF support to GDB, but only if BFD includes ELF support.
16715 OLD_LDFLAGS
=$LDFLAGS
16717 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
16718 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
16719 # always want our bfd.
16720 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
16721 LDFLAGS
="-L../bfd -L../libiberty $LDFLAGS"
16722 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
16723 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
16724 if test "$plugins" = "yes"; then
16727 LIBS
="-lbfd -liberty $intl $LIBS"
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
16729 $as_echo_n "checking for ELF support in BFD... " >&6; }
16730 if test "${gdb_cv_var_elf+set}" = set; then :
16731 $as_echo_n "(cached) " >&6
16733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16734 /* end confdefs.h. */
16735 #include <stdlib.h>
16737 #include "elf-bfd.h"
16742 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
16747 if ac_fn_c_try_link
"$LINENO"; then :
16752 rm -f core conftest.err conftest.
$ac_objext \
16753 conftest
$ac_exeext conftest.
$ac_ext
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
16756 $as_echo "$gdb_cv_var_elf" >&6; }
16757 if test $gdb_cv_var_elf = yes; then
16758 CONFIG_OBS
="$CONFIG_OBS elfread.o"
16760 $as_echo "#define HAVE_ELF 1" >>confdefs.h
16762 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
16763 if test "$plugins" = "yes"; then
16764 OLD_LIBS
="-ldl $OLD_LIBS"
16768 LDFLAGS
=$OLD_LDFLAGS
16771 # Add any host-specific objects to GDB.
16772 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
16774 LIBGUI
="../libgui/src/libgui.a"
16775 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
16784 *-*-cygwin* |
*-*-mingw* )
16793 if test "${enable_gdbtk}" = "yes"; then
16795 # Gdbtk must have an absolute path to srcdir in order to run
16796 # properly when not installed.
16799 GDBTK_SRC_DIR
=`pwd`
16804 # Ok, lets find the tcl configuration
16805 # First, look for one uninstalled.
16806 # the alternative search directory is invoked by --with-tcl
16809 if test x
"${no_tcl}" = x
; then
16810 # we reset no_tcl in case something fails here
16813 # Check whether --with-tcl was given.
16814 if test "${with_tcl+set}" = set; then :
16815 withval
=$with_tcl; with_tclconfig
=${withval}
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
16819 $as_echo_n "checking for Tcl configuration... " >&6; }
16820 if test "${ac_cv_c_tclconfig+set}" = set; then :
16821 $as_echo_n "(cached) " >&6
16825 # First check to see if --with-tcl was specified.
16827 *-*-cygwin*) platDir
="win" ;;
16828 *) platDir
="unix" ;;
16830 if test x
"${with_tclconfig}" != x
; then
16831 if test -f "${with_tclconfig}/tclConfig.sh" ; then
16832 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
16834 as_fn_error
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
16838 # then check for a private Tcl installation
16839 if test x
"${ac_cv_c_tclconfig}" = x
; then
16842 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16843 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
16844 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
16846 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16847 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
16848 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
16850 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16851 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
16852 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
16853 if test -f "$i/$platDir/tclConfig.sh" ; then
16854 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
16860 # on Darwin, check in Framework installation locations
16861 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
16862 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
16863 `ls -d /Library/Frameworks 2>/dev/null` \
16864 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16865 `ls -d /System/Library/Frameworks 2>/dev/null` \
16867 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
16868 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
16874 # check in a few common install locations
16875 if test x
"${ac_cv_c_tclconfig}" = x
; then
16876 for i
in `ls -d ${libdir} 2>/dev/null` \
16877 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16878 `ls -d ${prefix}/lib 2>/dev/null` \
16879 `ls -d /usr/local/lib 2>/dev/null` \
16880 `ls -d /usr/contrib/lib 2>/dev/null` \
16881 `ls -d /usr/lib 2>/dev/null` \
16883 if test -f "$i/tclConfig.sh" ; then
16884 ac_cv_c_tclconfig
=`(cd $i; pwd)`
16890 # check in a few other private locations
16891 if test x
"${ac_cv_c_tclconfig}" = x
; then
16894 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16895 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
16896 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
16897 if test -f "$i/$platDir/tclConfig.sh" ; then
16898 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
16907 if test x
"${ac_cv_c_tclconfig}" = x
; then
16908 TCL_BIN_DIR
="# no Tcl configs found"
16909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
16910 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
16913 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
16914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
16915 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
16920 # If $no_tk is nonempty, then we can't do Tk, and there is no
16921 # point to doing Tcl.
16924 # Ok, lets find the tk configuration
16925 # First, look for one uninstalled.
16926 # the alternative search directory is invoked by --with-tk
16929 if test x
"${no_tk}" = x
; then
16930 # we reset no_tk in case something fails here
16933 # Check whether --with-tk was given.
16934 if test "${with_tk+set}" = set; then :
16935 withval
=$with_tk; with_tkconfig
=${withval}
16938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
16939 $as_echo_n "checking for Tk configuration... " >&6; }
16940 if test "${ac_cv_c_tkconfig+set}" = set; then :
16941 $as_echo_n "(cached) " >&6
16945 # First check to see if --with-tkconfig was specified.
16946 if test x
"${with_tkconfig}" != x
; then
16947 if test -f "${with_tkconfig}/tkConfig.sh" ; then
16948 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
16950 as_fn_error
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
16954 # then check for a private Tk library
16956 *-*-cygwin*) platDir
="win" ;;
16957 *) platDir
="unix" ;;
16959 if test x
"${ac_cv_c_tkconfig}" = x
; then
16962 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16963 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
16964 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
16966 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16967 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
16968 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
16970 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16971 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
16972 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
16973 if test -f "$i/$platDir/tkConfig.sh" ; then
16974 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
16980 # on Darwin, check in Framework installation locations
16981 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
16982 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
16983 `ls -d /Library/Frameworks 2>/dev/null` \
16984 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16985 `ls -d /System/Library/Frameworks 2>/dev/null` \
16987 if test -f "$i/Tk.framework/tkConfig.sh" ; then
16988 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
16994 # check in a few common install locations
16995 if test x
"${ac_cv_c_tkconfig}" = x
; then
16996 for i
in `ls -d ${libdir} 2>/dev/null` \
16997 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16998 `ls -d ${prefix}/lib 2>/dev/null` \
16999 `ls -d /usr/local/lib 2>/dev/null` \
17000 `ls -d /usr/contrib/lib 2>/dev/null` \
17001 `ls -d /usr/lib 2>/dev/null` \
17003 if test -f "$i/tkConfig.sh" ; then
17004 ac_cv_c_tkconfig
=`(cd $i; pwd)`
17009 # check in a few other private locations
17010 if test x
"${ac_cv_c_tkconfig}" = x
; then
17013 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17014 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
17015 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
17016 if test -f "$i/$platDir/tkConfig.sh" ; then
17017 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
17026 if test x
"${ac_cv_c_tkconfig}" = x
; then
17027 TK_BIN_DIR
="# no Tk configs found"
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
17029 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
17032 TK_BIN_DIR
=${ac_cv_c_tkconfig}
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
17034 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
17039 if test -z "${no_tcl}" -a -z "${no_tk}"; then
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
17042 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
17044 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
17046 $as_echo "loading" >&6; }
17047 .
${TCL_BIN_DIR}/tclConfig.sh
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
17050 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
17053 # eval is required to do the TCL_DBGX substitution
17054 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
17055 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
17057 # If the TCL_BIN_DIR is the build directory (not the install directory),
17058 # then set the common variable name to the value of the build variables.
17059 # For example, the variable TCL_LIB_SPEC will be set to the value
17060 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
17061 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
17062 # installed and uninstalled version of Tcl.
17063 if test -f "${TCL_BIN_DIR}/Makefile" ; then
17064 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
17065 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
17066 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
17067 elif test "`uname -s`" = "Darwin"; then
17068 # If Tcl was built as a framework, attempt to use the libraries
17069 # from the framework at the given location so that linking works
17070 # against Tcl.framework installed in an arbitary location.
17071 case ${TCL_DEFS} in
17073 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
17074 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
17075 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
17076 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
17077 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
17082 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
17083 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
17084 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
17090 # eval is required to do the TCL_DBGX substitution
17091 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
17092 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
17093 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
17094 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
17110 # Check for in-tree tcl
17117 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
17121 # Find Tcl private headers
17122 if test x
"${intree}" = xno
; then
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
17125 $as_echo_n "checking for Tcl private headers... " >&6; }
17127 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
17128 if test -f ${dir}/tclInt.h
; then
17132 if test x
"${private_dir}" = x
; then
17133 as_fn_error
"could not find private Tcl headers" "$LINENO" 5
17135 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
17137 $as_echo "${private_dir}" >&6; }
17140 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
17141 TCL_LIBRARY
="${TCL_LIB_SPEC}"
17144 # If building tcl in the same src tree, private headers
17145 # are not needed, but we need to be sure to use the right
17147 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
17148 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
17149 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
17157 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
17159 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
17160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
17161 $as_echo "loading" >&6; }
17162 .
${TK_BIN_DIR}/tkConfig.sh
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
17165 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
17168 # eval is required to do the TK_DBGX substitution
17169 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
17170 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
17172 # If the TK_BIN_DIR is the build directory (not the install directory),
17173 # then set the common variable name to the value of the build variables.
17174 # For example, the variable TK_LIB_SPEC will be set to the value
17175 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
17176 # instead of TK_BUILD_LIB_SPEC since it will work with both an
17177 # installed and uninstalled version of Tcl.
17178 if test -f "${TK_BIN_DIR}/Makefile" ; then
17179 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
17180 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
17181 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
17182 elif test "`uname -s`" = "Darwin"; then
17183 # If Tk was built as a framework, attempt to use the libraries
17184 # from the framework at the given location so that linking works
17185 # against Tk.framework installed in an arbitary location.
17188 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
17189 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
17190 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
17191 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
17192 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
17197 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
17198 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
17199 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
17205 # eval is required to do the TK_DBGX substitution
17206 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
17207 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
17208 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
17209 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
17224 # Check for in-tree Tk
17226 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
17230 # Find Tk private headers
17231 if test x
"${intree}" = xno
; then
17233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
17234 $as_echo_n "checking for Tk private headers... " >&6; }
17236 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
17237 if test -f ${dir}/tkInt.h
; then
17241 if test x
"${private_dir}" = x
; then
17242 as_fn_error
"could not find Tk private headers" "$LINENO" 5
17244 TK_PRIVATE_INCLUDE
="-I${private_dir}"
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
17246 $as_echo "${private_dir}" >&6; }
17249 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
17250 TK_LIBRARY
=${TK_LIB_SPEC}
17253 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
17254 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
17255 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
17262 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
17264 # Include some libraries that Tcl and Tk want.
17265 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
17266 # Yes, the ordering seems wrong here. But it isn't.
17267 # TK_LIBS is the list of libraries that need to be linked
17268 # after Tcl/Tk. Note that this isn't put into LIBS. If it
17269 # were in LIBS then any link tests after this point would
17270 # try to include things like `$(LIBGUI)', which wouldn't work.
17271 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
17273 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
17274 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
17275 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
17276 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
17277 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
17278 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
17279 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
17281 if test x
$gdb_cv_os_cygwin = xyes
; then
17282 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
17283 WIN32LDAPP
="-Wl,--subsystem,console"
17284 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
17287 subdirs
="$subdirs gdbtk"
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
17300 $as_echo_n "checking for X... " >&6; }
17303 # Check whether --with-x was given.
17304 if test "${with_x+set}" = set; then :
17308 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17309 if test "x$with_x" = xno
; then
17310 # The user explicitly disabled X.
17313 case $x_includes,$x_libraries in #(
17314 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
17315 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
17316 $as_echo_n "(cached) " >&6
17318 # One or both of the vars are not set, and there is no cached value.
17319 ac_x_includes
=no ac_x_libraries
=no
17320 rm -f -r conftest.dir
17321 if mkdir conftest.dir
; then
17323 cat >Imakefile
<<'_ACEOF'
17325 @echo incroot='${INCROOT}'
17327 @echo usrlibdir='${USRLIBDIR}'
17329 @echo libdir='${LIBDIR}'
17331 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
17332 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17333 for ac_var
in incroot usrlibdir libdir
; do
17334 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
17336 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17337 for ac_extension
in a so sl dylib la dll
; do
17338 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
17339 test -f "$ac_im_libdir/libX11.$ac_extension"; then
17340 ac_im_usrlibdir
=$ac_im_libdir; break
17343 # Screen out bogus values from the imake configuration. They are
17344 # bogus both because they are the default anyway, and because
17345 # using them would break gcc on systems where it needs fixed includes.
17346 case $ac_im_incroot in
17347 /usr
/include
) ac_x_includes
= ;;
17348 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
17350 case $ac_im_usrlibdir in
17351 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
17352 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
17356 rm -f -r conftest.dir
17359 # Standard set of common directories for X headers.
17360 # Check X11 before X11Rn because it is often a symlink to the current release.
17374 /usr/local/X11/include
17375 /usr/local/X11R7/include
17376 /usr/local/X11R6/include
17377 /usr/local/X11R5/include
17378 /usr/local/X11R4/include
17380 /usr/local/include/X11
17381 /usr/local/include/X11R7
17382 /usr/local/include/X11R6
17383 /usr/local/include/X11R5
17384 /usr/local/include/X11R4
17388 /usr/XFree86/include/X11
17392 /usr/unsupported/include
17393 /usr/athena/include
17394 /usr/local/x11r5/include
17395 /usr/lpp/Xamples/include
17397 /usr/openwin/include
17398 /usr/openwin/share/include'
17400 if test "$ac_x_includes" = no
; then
17401 # Guess where to find include files, by looking for Xlib.h.
17402 # First, try using that file with no special directory specified.
17403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17404 /* end confdefs.h. */
17405 #include <X11/Xlib.h>
17407 if ac_fn_c_try_cpp
"$LINENO"; then :
17408 # We can compile using X headers with no special include directory.
17411 for ac_dir
in $ac_x_header_dirs; do
17412 if test -r "$ac_dir/X11/Xlib.h"; then
17413 ac_x_includes
=$ac_dir
17418 rm -f conftest.err conftest.
$ac_ext
17419 fi # $ac_x_includes = no
17421 if test "$ac_x_libraries" = no
; then
17422 # Check for the libraries.
17423 # See if we find them without any special options.
17424 # Don't add to $LIBS permanently.
17427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17428 /* end confdefs.h. */
17429 #include <X11/Xlib.h>
17438 if ac_fn_c_try_link
"$LINENO"; then :
17440 # We can link X programs with no special library path.
17444 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17446 # Don't even attempt the hair of trying to link an X program!
17447 for ac_extension
in a so sl dylib la dll
; do
17448 if test -r "$ac_dir/libX11.$ac_extension"; then
17449 ac_x_libraries
=$ac_dir
17455 rm -f core conftest.err conftest.
$ac_objext \
17456 conftest
$ac_exeext conftest.
$ac_ext
17457 fi # $ac_x_libraries = no
17459 case $ac_x_includes,$ac_x_libraries in #(
17460 no
,* |
*,no |
*\'*)
17461 # Didn't find X, or a directory has "'" in its name.
17462 ac_cv_have_x
="have_x=no";; #(
17464 # Record where we found X for the cache.
17465 ac_cv_have_x
="have_x=yes\
17466 ac_x_includes='$ac_x_includes'\
17467 ac_x_libraries='$ac_x_libraries'"
17473 eval "$ac_cv_have_x"
17476 if test "$have_x" != yes; then
17477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
17478 $as_echo "$have_x" >&6; }
17481 # If each of the values was on the command line, it overrides each guess.
17482 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
17483 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
17484 # Update the cache value to reflect the command line values.
17485 ac_cv_have_x
="have_x=yes\
17486 ac_x_includes='$x_includes'\
17487 ac_x_libraries='$x_libraries'"
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
17489 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
17493 # Unlike the sim directory, whether a simulator is linked is controlled by
17494 # presence of a gdb_sim definition in the target configure.tgt entry.
17495 # This code just checks for a few cases where we'd like to ignore those
17496 # definitions, even when they're present in the '.mt' file. These cases
17497 # are when --disable-sim is specified, or if the simulator directory is
17498 # not part of the source tree.
17500 # Check whether --enable-sim was given.
17501 if test "${enable_sim+set}" = set; then :
17502 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
17503 echo "enableval = ${enableval}";
17504 case "${enableval}" in
17505 yes) ignore_sim
=false
;;
17506 no
) ignore_sim
=true
;;
17507 *) ignore_sim
=false
;;
17514 if test ! -d "${srcdir}/../sim"; then
17520 if test "${ignore_sim}" = "false"; then
17521 if test x
"${gdb_sim}" != x
; then
17523 SIM_OBS
="remote-sim.o"
17525 $as_echo "#define WITH_SIM 1" >>confdefs.h
17543 # List of host floatformats.
17545 cat >>confdefs.h
<<_ACEOF
17546 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
17550 cat >>confdefs.h
<<_ACEOF
17551 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
17555 cat >>confdefs.h
<<_ACEOF
17556 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
17560 # target_subdir is used by the testsuite to find the target libraries.
17562 if test "${host}" != "${target}"; then
17563 target_subdir
="${target_alias}/"
17568 if test "${gdb_native}" = "yes"; then
17569 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
17570 if test ! -f ${host_makefile_frag}; then
17571 as_fn_error
"\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
17573 frags
="$frags $host_makefile_frag"
17575 host_makefile_frag
=/dev
/null
17581 if test "${gdb_native}" = "yes"; then
17582 # We pick this up from the host configuration file (.mh) because we
17583 # do not have a native configuration Makefile fragment.
17584 nativefile
=`sed -n '
17585 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
17586 ' ${host_makefile_frag}`
17590 if test x
"${gdb_osabi}" != x
; then
17592 cat >>confdefs.h
<<_ACEOF
17593 #define GDB_OSABI_DEFAULT $gdb_osabi
17598 # Enable multi-ice-gdb-server.
17599 # Check whether --enable-multi-ice was given.
17600 if test "${enable_multi_ice+set}" = set; then :
17601 enableval
=$enable_multi_ice; case $enableval in
17604 *) as_fn_error
"bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
17608 if test "x$enable_multi_ice" = xyes
; then
17609 subdirs
="$subdirs multi-ice"
17613 # Check whether --enable-gdbserver was given.
17614 if test "${enable_gdbserver+set}" = set; then :
17615 enableval
=$enable_gdbserver; case "${enableval}" in
17617 *) as_fn_error
"bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
17620 enable_gdbserver
=auto
17624 # We only build gdbserver automatically in a native configuration, and
17625 # only if the user did not explicitly disable its build.
17626 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
17628 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
17629 if test "x$build_gdbserver" = xyes
; then
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17631 $as_echo "yes" >&6; }
17632 subdirs
="$subdirs gdbserver"
17634 gdbserver_build_enabled
=yes
17636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17637 $as_echo "no" >&6; }
17641 # If the user explicitly request the gdbserver to be built, verify that
17642 # we were in fact able to enable it.
17643 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
17644 as_fn_error
"Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
17647 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
17648 # to an empty version.
17654 if test "${nativefile}" != ""; then
17655 case "${nativefile}" in
17656 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
17657 * ) GDB_NM_FILE
="${nativefile}"
17659 files
="${files} ${GDB_NM_FILE}"
17660 links
="${links} nm.h"
17662 cat >>confdefs.h
<<_ACEOF
17663 #define GDB_NM_FILE "${GDB_NM_FILE}"
17669 ac_sources
="$files"
17671 while test -n "$ac_sources"; do
17672 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
17673 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
17674 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
17676 ac_config_links
="$ac_config_links $ac_config_links_1"
17682 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
17685 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile gnulib/Makefile data-directory/Makefile"
17687 ac_config_commands
="$ac_config_commands default"
17689 cat >confcache
<<\_ACEOF
17690 # This file is a shell script that caches the results of configure
17691 # tests run on this system so they can be shared between configure
17692 # scripts and configure runs, see configure's option --config-cache.
17693 # It is not useful on other systems. If it contains results you don't
17694 # want to keep, you may remove or edit it.
17696 # config.status only pays attention to the cache file if you give it
17697 # the --recheck option to rerun configure.
17699 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17700 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17701 # following values.
17705 # The following way of writing the cache mishandles newlines in values,
17706 # but we know of no workaround that is simple, portable, and efficient.
17707 # So, we kill variables containing newlines.
17708 # Ultrix sh set writes to stderr and can't be redirected directly,
17709 # and sets the high bit in the cache file unless we assign to the vars.
17711 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17712 eval ac_val
=\$
$ac_var
17716 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17717 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17720 _ | IFS | as_nl
) ;; #(
17721 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
17722 *) { eval $ac_var=; unset $ac_var;} ;;
17728 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17729 *${as_nl}ac_space
=\
*)
17730 # `set' does not quote correctly, so add quotes: double-quote
17731 # substitution turns \\\\ into \\, and sed turns \\ into \.
17734 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17737 # `set' quotes correctly as required by POSIX, so do not add quotes.
17738 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17747 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17749 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17751 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17752 if test -w "$cache_file"; then
17753 test "x$cache_file" != "x/dev/null" &&
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17755 $as_echo "$as_me: updating cache $cache_file" >&6;}
17756 cat confcache
>$cache_file
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17759 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17764 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17765 # Let make expand exec_prefix.
17766 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17768 DEFS
=-DHAVE_CONFIG_H
17772 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17773 # 1. Remove the extension, and $U if already installed.
17774 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
17775 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
17776 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17777 # will be set to the directory where LIBOBJS objects are built.
17778 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17779 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
17781 LIBOBJS
=$ac_libobjs
17783 LTLIBOBJS
=$ac_ltlibobjs
17786 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17787 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
17788 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17790 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
17791 as_fn_error
"conditional \"GMAKE\" was never defined.
17792 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17794 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
17795 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
17796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17801 if test -n "$gl_LIBOBJS"; then
17802 # Remove the extension.
17803 sed_drop_objext
='s/\.o$//;s/\.obj$//'
17804 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17805 gl_libobjs
="$gl_libobjs $i.$ac_objext"
17806 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
17809 gl_LIBOBJS
=$gl_libobjs
17811 gl_LTLIBOBJS
=$gl_ltlibobjs
17817 if test -n "$gltests_LIBOBJS"; then
17818 # Remove the extension.
17819 sed_drop_objext
='s/\.o$//;s/\.obj$//'
17820 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17821 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
17822 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
17825 gltests_LIBOBJS
=$gltests_libobjs
17827 gltests_LTLIBOBJS
=$gltests_ltlibobjs
17830 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17831 as_fn_error
"conditional \"AMDEP\" was never defined.
17832 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17834 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17835 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
17836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17838 if test -n "$EXEEXT"; then
17840 am__EXEEXT_FALSE
='#'
17842 am__EXEEXT_TRUE
='#'
17848 : ${CONFIG_STATUS=./config.status}
17850 ac_clean_files_save
=$ac_clean_files
17851 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17852 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17853 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17855 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17857 # Generated by $as_me.
17858 # Run this file to recreate the current configuration.
17859 # Compiler output produced by configure, useful for debugging
17860 # configure, is in config.log if it exists.
17863 ac_cs_recheck=false
17866 SHELL=\${CONFIG_SHELL-$SHELL}
17869 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
17870 ## -------------------- ##
17871 ## M4sh Initialization. ##
17872 ## -------------------- ##
17874 # Be more Bourne compatible
17875 DUALCASE
=1; export DUALCASE
# for MKS sh
17876 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
17879 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17880 # is contrary to our usage. Disable this feature.
17881 alias -g '${1+"$@"}'='"$@"'
17882 setopt NO_GLOB_SUBST
17884 case `(set -o) 2>/dev/null` in #(
17896 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17897 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17898 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17899 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17900 # Prefer a ksh shell builtin over an external printf program on Solaris,
17901 # but without wasting forks for bash or zsh.
17902 if test -z "$BASH_VERSION$ZSH_VERSION" \
17903 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17904 as_echo='print
-r --'
17905 as_echo_n='print
-rn --'
17906 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17907 as_echo='printf %s
\n'
17908 as_echo_n='printf %s
'
17910 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17911 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17912 as_echo_n='/usr
/ucb
/echo -n'
17914 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17915 as_echo_n_body='eval
17919 expr "X$arg" : "X\\(.*\\)$as_nl";
17920 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17922 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17924 export as_echo_n_body
17925 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17927 export as_echo_body
17928 as_echo='sh
-c $as_echo_body as_echo
'
17931 # The user is always right.
17932 if test "${PATH_SEPARATOR+set}" != set; then
17934 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17935 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17942 # We need space, tab and new line, in precisely that order. Quoting is
17943 # there to prevent editors from complaining about space-tab.
17944 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17945 # splitting by setting IFS to empty value.)
17948 # Find who we are. Look in the path if we contain no directory separator.
17950 *[\\/]* ) as_myself=$0 ;;
17951 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17952 for as_dir in $PATH
17955 test -z "$as_dir" && as_dir=.
17956 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17962 # We did not find ourselves, most probably we were run as `sh COMMAND'
17963 # in which case we are not to be found in the path.
17964 if test "x$as_myself" = x
; then
17967 if test ! -f "$as_myself"; then
17968 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17972 # Unset variables that we do not need and which cause bugs (e.g. in
17973 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17974 # suppresses any "Segmentation fault" message there. '((' could
17975 # trigger a bug in pdksh 5.2.14.
17976 for as_var
in BASH_ENV ENV MAIL MAILPATH
17977 do eval test x\
${$as_var+set} = xset \
17978 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
17991 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
17994 # as_fn_error ERROR [LINENO LOG_FD]
17995 # ---------------------------------
17996 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17997 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17998 # script with status $?, using 1 if that was 0.
18001 as_status
=$?
; test $as_status -eq 0 && as_status
=1
18003 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
18004 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
18006 $as_echo "$as_me: error: $1" >&2
18007 as_fn_exit
$as_status
18011 # as_fn_set_status STATUS
18012 # -----------------------
18013 # Set $? to STATUS, without forking.
18014 as_fn_set_status
()
18017 } # as_fn_set_status
18019 # as_fn_exit STATUS
18020 # -----------------
18021 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18025 as_fn_set_status
$1
18031 # Portably unset VAR.
18034 { eval $1=; unset $1;}
18036 as_unset
=as_fn_unset
18037 # as_fn_append VAR VALUE
18038 # ----------------------
18039 # Append the text in VALUE to the end of the definition contained in VAR. Take
18040 # advantage of any shell optimizations that allow amortized linear growth over
18041 # repeated appends, instead of the typical quadratic growth present in naive
18043 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
18044 eval 'as_fn_append ()
18055 # as_fn_arith ARG...
18056 # ------------------
18057 # Perform arithmetic evaluation on the ARGs, and store the result in the
18058 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18059 # must be portable across $(()) and expr.
18060 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
18061 eval 'as_fn_arith ()
18068 as_val
=`expr "$@" || test $? -eq 1`
18073 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
18074 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
18080 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18081 as_basename
=basename
18086 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
18092 as_me
=`$as_basename -- "$0" ||
18093 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18094 X"$0" : 'X\(//\)$' \| \
18095 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18097 sed '/^.*\/\([^/][^/]*\)\/*$/{
18111 # Avoid depending upon Character Ranges.
18112 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18113 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18114 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18115 as_cr_digits
='0123456789'
18116 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18118 ECHO_C
= ECHO_N
= ECHO_T
=
18119 case `echo -n x` in #(((((
18121 case `echo 'xy\c'` in
18122 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
18124 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
18131 rm -f conf$$ conf$$.exe conf$$.
file
18132 if test -d conf$$.dir
; then
18133 rm -f conf$$.dir
/conf$$.
file
18136 mkdir conf$$.dir
2>/dev
/null
18138 if (echo >conf$$.
file) 2>/dev
/null
; then
18139 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18141 # ... but there are two gotchas:
18142 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18143 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18144 # In both cases, we have to default to `cp -p'.
18145 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
18147 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18155 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
18156 rmdir conf$$.dir
2>/dev
/null
18161 # Create "$as_dir" as a directory, including parents if necessary.
18166 -*) as_dir
=.
/$as_dir;;
18168 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
18172 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18173 *) as_qdir
=$as_dir;;
18175 as_dirs
="'$as_qdir' $as_dirs"
18176 as_dir
=`$as_dirname -- "$as_dir" ||
18177 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18178 X"$as_dir" : 'X\(//\)[^/]' \| \
18179 X"$as_dir" : 'X\(//\)$' \| \
18180 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18181 $as_echo X"$as_dir" |
18182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18186 /^X\(\/\/\)[^/].*/{
18199 test -d "$as_dir" && break
18201 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
18202 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
18206 if mkdir
-p .
2>/dev
/null
; then
18207 as_mkdir_p
='mkdir -p "$as_dir"'
18209 test -d .
/-p && rmdir .
/-p
18213 if test -x / >/dev
/null
2>&1; then
18214 as_test_x
='test -x'
18216 if ls -dL / >/dev
/null
2>&1; then
18223 if test -d "$1"; then
18229 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18230 ???[sx]*):;;*)false;;esac;fi
18234 as_executable_p
=$as_test_x
18236 # Sed expression to map a string onto a valid CPP name.
18237 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18239 # Sed expression to map a string onto a valid variable name.
18240 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18244 ## ----------------------------------- ##
18245 ## Main body of $CONFIG_STATUS script. ##
18246 ## ----------------------------------- ##
18248 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
18250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18251 # Save the log message, to keep $0 and so on meaningful, and to
18252 # report actual input values of CONFIG_FILES etc. instead of their
18253 # values after options handling.
18255 This file was extended by $as_me, which was
18256 generated by GNU Autoconf 2.64. Invocation command line was
18258 CONFIG_FILES = $CONFIG_FILES
18259 CONFIG_HEADERS = $CONFIG_HEADERS
18260 CONFIG_LINKS = $CONFIG_LINKS
18261 CONFIG_COMMANDS = $CONFIG_COMMANDS
18264 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18269 case $ac_config_files in *"
18270 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
18273 case $ac_config_headers in *"
18274 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
18278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18279 # Files that config.status was made for.
18280 config_files="$ac_config_files"
18281 config_headers="$ac_config_headers"
18282 config_links="$ac_config_links"
18283 config_commands="$ac_config_commands"
18287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18289 \`$as_me' instantiates files and other configuration actions
18290 from templates according to the current configuration. Unless the files
18291 and actions are specified as TAGs, all are instantiated by default.
18293 Usage: $0 [OPTION]... [TAG]...
18295 -h, --help print this help, then exit
18296 -V, --version print version number and configuration settings, then exit
18297 -q, --quiet, --silent
18298 do not print progress messages
18299 -d, --debug don't remove temporary files
18300 --recheck update $as_me by reconfiguring in the same conditions
18301 --file=FILE[:TEMPLATE]
18302 instantiate the configuration file FILE
18303 --header=FILE[:TEMPLATE]
18304 instantiate the configuration header FILE
18306 Configuration files:
18309 Configuration headers:
18312 Configuration links:
18315 Configuration commands:
18318 Report bugs to the package provider."
18321 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18324 configured by $0, generated by GNU Autoconf 2.64,
18325 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18327 Copyright (C) 2009 Free Software Foundation, Inc.
18328 This config.status script is free software; the Free Software Foundation
18329 gives unlimited permission to copy, distribute and modify it."
18336 test -n "\$AWK" || AWK=awk
18339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18340 # The default lists apply if the user does not specify any file.
18346 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18347 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
18358 # Handling of the options.
18359 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18361 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
18362 $as_echo "$ac_cs_version"; exit ;;
18363 --debug |
--debu |
--deb |
--de |
--d |
-d )
18365 --file |
--fil |
--fi |
--f )
18368 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18370 as_fn_append CONFIG_FILES
" '$ac_optarg'"
18371 ac_need_defaults
=false
;;
18372 --header |
--heade |
--head |
--hea )
18375 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18377 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
18378 ac_need_defaults
=false
;;
18380 # Conflict between --help and --header
18381 as_fn_error
"ambiguous option: \`$1'
18382 Try \`$0 --help' for more information.";;
18383 --help |
--hel |
-h )
18384 $as_echo "$ac_cs_usage"; exit ;;
18385 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18386 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18389 # This is an error.
18390 -*) as_fn_error
"unrecognized option: \`$1'
18391 Try \`$0 --help' for more information." ;;
18393 *) as_fn_append ac_config_targets
" $1"
18394 ac_need_defaults
=false
;;
18400 ac_configure_extra_args
=
18402 if $ac_cs_silent; then
18404 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18409 if \$ac_cs_recheck; then
18410 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18412 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18413 CONFIG_SHELL='$SHELL'
18414 export CONFIG_SHELL
18419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18423 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18424 ## Running $as_me. ##
18430 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18434 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
18435 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18441 # Handling of arguments.
18442 for ac_config_target
in $ac_config_targets
18444 case $ac_config_target in
18445 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
18446 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
18447 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
18448 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
18449 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
18450 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18451 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
18452 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
18453 "gnulib/Makefile") CONFIG_FILES
="$CONFIG_FILES gnulib/Makefile" ;;
18454 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
18455 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
18457 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18462 # If the user did not use the arguments to specify the items to instantiate,
18463 # then the envvar interface is used. Set only those that are not.
18464 # We use the long form for the default assignment because of an extremely
18465 # bizarre bug on SunOS 4.1.3.
18466 if $ac_need_defaults; then
18467 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18468 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18469 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
18470 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18473 # Have a temporary directory for convenience. Make it in the build tree
18474 # simply because there is no reason against having it here, and in addition,
18475 # creating and moving files from /tmp can sometimes cause problems.
18476 # Hook for its removal unless debugging.
18477 # Note that there is a small window in which the directory will not be cleaned:
18478 # after its creation but before its name has been assigned to `$tmp'.
18482 trap 'exit_status=$?
18483 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18485 trap 'as_fn_exit 1' 1 2 13 15
18487 # Create a (secure) tmp directory for tmp files.
18490 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18491 test -n "$tmp" && test -d "$tmp"
18494 tmp
=.
/conf$$
-$RANDOM
18495 (umask 077 && mkdir
"$tmp")
18496 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
18498 # Set up the scripts for CONFIG_FILES section.
18499 # No need to generate them if there are no CONFIG_FILES.
18500 # This happens for instance with `./config.status config.h'.
18501 if test -n "$CONFIG_FILES"; then
18503 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
18504 ac_cs_awk_getline
=:
18505 ac_cs_awk_pipe_init
=
18506 ac_cs_awk_read_file
='
18507 while ((getline aline < (F[key])) > 0)
18510 ac_cs_awk_pipe_fini
=
18512 ac_cs_awk_getline
=false
18513 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
18514 ac_cs_awk_read_file
='
18516 print "cat " F[key] " &&"
18517 '$ac_cs_awk_pipe_init
18518 # The final `:' finishes the AND list.
18519 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
18521 ac_cr
=`echo X | tr X '\015'`
18522 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18523 # But we know of no other shell where ac_cr would be empty at this
18524 # point, so we can use a bashism as a fallback.
18525 if test "x$ac_cr" = x
; then
18526 eval ac_cr
=\$
\'\\r
\'
18528 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18529 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18532 ac_cs_awk_cr
=$ac_cr
18535 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18538 # Create commands to substitute file output variables.
18540 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18541 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
18542 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
18545 } >conf$
$files.sh
&&
18546 . .
/conf$
$files.sh ||
18547 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
18548 rm -f conf$
$files.sh
18551 echo "cat >conf$$subs.awk <<_ACEOF" &&
18552 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18554 } >conf$$subs.sh ||
18555 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
18556 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18558 for ac_last_try in false false false false false :; do
18559 . ./conf$$subs.sh ||
18560 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
18562 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18563 if test $ac_delim_n = $ac_delim_num; then
18565 elif $ac_last_try; then
18566 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
18568 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18571 rm -f conf$$subs.sh
18573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18574 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
18578 s/^/S["/; s
/!.
*/"]=/
18588 s/\(.\{148\}\).*/\1/
18590 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18595 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18602 s/\(.\{148\}\).*/\1/
18604 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18608 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18613 ' <conf$$subs.awk | sed '
18618 ' >>$CONFIG_STATUS || ac_write_fail=1
18619 rm -f conf$$subs.awk
18620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18622 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
18623 for (key in S) S_is_set[key] = 1
18625 \$ac_cs_awk_pipe_init
18629 nfields = split(line, field, "@
")
18631 len = length(field[1])
18632 for (i = 2; i < nfields; i++) {
18634 keylen = length(key)
18635 if (S_is_set[key]) {
18637 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18638 len += length(value) + length(field[++i])
18643 if (nfields == 3 && !substed) {
18645 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18646 \$ac_cs_awk_read_file
18652 \$ac_cs_awk_pipe_fini
18655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18656 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18657 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18660 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
18661 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
18664 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18665 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
18666 # trailing colons and then remove the whole line if VPATH becomes empty
18667 # (actually we leave an empty line to preserve line numbers).
18668 if test "x
$srcdir" = x.; then
18669 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18670 s/:*\$(srcdir):*/:/
18671 s/:*\${srcdir}:*/:/
18673 s/^\([^=]*=[ ]*\):*/\1/
18679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18680 fi # test -n "$CONFIG_FILES"
18682 # Set up the scripts for CONFIG_HEADERS section.
18683 # No need to generate them if there are no CONFIG_HEADERS.
18684 # This happens for instance with `./config.status Makefile'.
18685 if test -n "$CONFIG_HEADERS"; then
18686 cat >"$tmp/defines.
awk" <<\_ACAWK ||
18690 # Transform confdefs.h into an awk script `defines.awk', embedded as
18691 # here-document in config.status, that substitutes the proper values into
18692 # config.h.in to produce config.h.
18694 # Create a delimiter string that does not exist in confdefs.h, to ease
18695 # handling of long lines.
18697 for ac_last_try in false false :; do
18698 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
18699 if test -z "$ac_t"; then
18701 elif $ac_last_try; then
18702 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
18704 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18708 # For the awk script, D is an array of macro values keyed by name,
18709 # likewise P contains macro parameters if any. Preserve backslash
18710 # newline sequences.
18712 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18714 s/.\{148\}/&'"$ac_delim"'/g
18717 s/^[ ]*#[ ]*define[ ][ ]*/ /
18724 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18726 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18730 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18731 D["\
1"]=" \
3\\\\\\n
"\\/p
18733 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18738 s/.\{148\}/&'"$ac_delim"'/g
18743 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18746 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18748 ' <confdefs.h | sed '
18749 s/'"$ac_delim"'/"\\\
18750 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18753 for (key in D) D_is_set[key] = 1
18756 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18758 split(line, arg, " ")
18759 if (arg[1] == "#") {
18763 defundef
= substr
(arg
[1], 2)
18766 split(mac1
, mac2
, "(") #)
18768 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18769 if (D_is_set
[macro
]) {
18770 # Preserve the white space surrounding the "#".
18771 print prefix
"define", macro P
[macro
] D
[macro
]
18774 # Replace #undef with comments. This is necessary, for example,
18775 # in the case of _POSIX_SOURCE, which is predefined and required
18776 # on some systems where configure will not decide to define it.
18777 if (defundef
== "undef") {
18778 print
"/*", prefix defundef
, macro
, "*/"
18786 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18787 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
18788 fi # test -n "$CONFIG_HEADERS"
18791 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18796 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18798 case $ac_mode$ac_tag in
18800 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
18801 :[FH
]-) ac_tag
=-:-;;
18802 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18819 -) ac_f
="$tmp/stdin";;
18820 *) # Look for the file first in the build tree, then in the source tree
18821 # (if the path is not absolute). The absolute path cannot be DOS-style,
18822 # because $ac_f cannot contain `:'.
18826 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18828 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
18830 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18831 as_fn_append ac_file_inputs
" '$ac_f'"
18834 # Let's still pretend it is `configure' which instantiates (i.e., don't
18835 # use $as_me), people would be surprised to read:
18836 # /* config.h. Generated by config.status. */
18837 configure_input
='Generated from '`
18838 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18840 if test x
"$ac_file" != x-
; then
18841 configure_input
="$ac_file. $configure_input"
18842 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18843 $as_echo "$as_me: creating $ac_file" >&6;}
18845 # Neutralize special characters interpreted by sed in replacement strings.
18846 case $configure_input in #(
18847 *\
&* |
*\|
* |
*\\* )
18848 ac_sed_conf_input
=`$as_echo "$configure_input" |
18849 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18850 *) ac_sed_conf_input
=$configure_input;;
18854 *:-:* |
*:-) cat >"$tmp/stdin" \
18855 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
18860 ac_dir
=`$as_dirname -- "$ac_file" ||
18861 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18862 X"$ac_file" : 'X\(//\)[^/]' \| \
18863 X"$ac_file" : 'X\(//\)$' \| \
18864 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18865 $as_echo X"$ac_file" |
18866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18870 /^X\(\/\/\)[^/].*/{
18883 as_dir
="$ac_dir"; as_fn_mkdir_p
18887 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18889 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18890 # A ".." for each directory in $ac_dir_suffix.
18891 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18892 case $ac_top_builddir_sub in
18893 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18894 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18897 ac_abs_top_builddir
=$ac_pwd
18898 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18899 # for backward compatibility:
18900 ac_top_builddir
=$ac_top_build_prefix
18903 .
) # We are building in place.
18905 ac_top_srcdir
=$ac_top_builddir_sub
18906 ac_abs_top_srcdir
=$ac_pwd ;;
18907 [\\/]* | ?
:[\\/]* ) # Absolute name.
18908 ac_srcdir
=$srcdir$ac_dir_suffix;
18909 ac_top_srcdir
=$srcdir
18910 ac_abs_top_srcdir
=$srcdir ;;
18911 *) # Relative name.
18912 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18913 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18914 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18916 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18926 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18927 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
18929 ac_MKDIR_P
=$MKDIR_P
18931 [\\/$
]* | ?
:[\\/]* ) ;;
18932 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
18936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18937 # If the template does not know about datarootdir, expand it.
18938 # FIXME: This hack should be removed a few years after 2.60.
18939 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18950 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18951 *datarootdir
*) ac_datarootdir_seen
=yes;;
18952 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18954 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18957 ac_datarootdir_hack='
18958 s&@datadir@&$datadir&g
18959 s&@docdir@&$docdir&g
18960 s&@infodir@&$infodir&g
18961 s&@localedir@&$localedir&g
18962 s&@mandir@&$mandir&g
18963 s&\\\${datarootdir}&$datarootdir&g' ;;
18967 # Neutralize VPATH when `$srcdir' = `.'.
18968 # Shell code in configure.ac might set extrasub.
18969 # FIXME: do we really want to maintain this feature?
18970 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18971 ac_sed_extra="$ac_vpsub
18974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18976 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18977 s|@configure_input@|
$ac_sed_conf_input|
;t t
18978 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18979 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18980 s
&@srcdir@
&$ac_srcdir&;t t
18981 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18982 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18983 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18984 s
&@builddir@
&$ac_builddir&;t t
18985 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18986 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18987 s
&@INSTALL@
&$ac_INSTALL&;t t
18988 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
18989 $ac_datarootdir_hack
18991 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18992 if $ac_cs_awk_getline; then
18993 $AWK -f "$tmp/subs.
awk"
18995 $AWK -f "$tmp/subs.
awk" | $SHELL
18997 || as_fn_error "could not create
$ac_file" "$LINENO" 5
18999 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19000 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
19001 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
19002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
19003 which seems to be undefined. Please make sure it is defined." >&5
19004 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
19005 which seems to be undefined. Please make sure it is defined." >&2;}
19009 -) cat "$tmp/out" && rm -f "$tmp/out";;
19010 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19012 || as_fn_error "could not create $ac_file" "$LINENO" 5
19018 if test x"$ac_file" != x-; then
19020 $as_echo "/* $configure_input */" \
19021 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19022 } >"$tmp/config.h" \
19023 || as_fn_error "could not create $ac_file" "$LINENO" 5
19024 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19025 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19026 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19029 mv "$tmp/config.h" "$ac_file" \
19030 || as_fn_error "could not create $ac_file" "$LINENO" 5
19033 $as_echo "/* $configure_input */" \
19034 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19035 || as_fn_error "could not create -" "$LINENO" 5
19037 # Compute "$ac_file"'s index
in $config_headers.
19040 for _am_header
in $config_headers :; do
19041 case $_am_header in
19042 $_am_arg |
$_am_arg:* )
19045 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
19048 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19049 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19050 X"$_am_arg" : 'X\(//\)[^/]' \| \
19051 X"$_am_arg" : 'X\(//\)$' \| \
19052 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19053 $as_echo X"$_am_arg" |
19054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19058 /^X\(\/\/\)[^/].*/{
19070 s/.*/./; q'`/stamp-h
$_am_stamp_count
19077 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
19080 # Prefer the file from the source tree if names are identical.
19081 if test "$ac_source" = "$ac_file" ||
test ! -r "$ac_source"; then
19082 ac_source
=$srcdir/$ac_source
19085 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
19086 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
19088 if test ! -r "$ac_source"; then
19089 as_fn_error
"$ac_source: file not found" "$LINENO" 5
19093 # Try a relative symlink, then a hard link, then a copy.
19095 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$ac_source ;;
19096 *) ac_rel_source
=$ac_top_build_prefix$ac_source ;;
19098 ln -s "$ac_rel_source" "$ac_file" 2>/dev
/null ||
19099 ln "$ac_source" "$ac_file" 2>/dev
/null ||
19100 cp -p "$ac_source" "$ac_file" ||
19101 as_fn_error
"cannot link or copy $ac_source to $ac_file" "$LINENO" 5
19104 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19105 $as_echo "$as_me: executing $ac_file commands" >&6;}
19110 case $ac_file$ac_mode in
19111 "depdir":C
) $SHELL $ac_aux_dir/mkinstalldirs
$DEPDIR ;;
19112 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
19113 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19114 # are listed without --file. Let's play safe and only enable the eval
19115 # if we detect the quoting.
19116 case $CONFIG_FILES in
19117 *\'*) eval set x
"$CONFIG_FILES" ;;
19118 *) set x
$CONFIG_FILES ;;
19123 # Strip MF so we end up with the name of the file.
19124 mf
=`echo "$mf" | sed -e 's/:.*$//'`
19125 # Check whether this is an Automake generated Makefile or not.
19126 # We used to match only the files named `Makefile.in', but
19127 # some people rename them; so instead we look at the file content.
19128 # Grep'ing the first line is not enough: some people post-process
19129 # each Makefile.in and add a new line on top of each file to say so.
19130 # Grep'ing the whole file is not good either: AIX grep has a line
19131 # limit of 2048, but all sed's we know have understand at least 4000.
19132 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
19133 dirpart
=`$as_dirname -- "$mf" ||
19134 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19135 X"$mf" : 'X\(//\)[^/]' \| \
19136 X"$mf" : 'X\(//\)$' \| \
19137 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19143 /^X\(\/\/\)[^/].*/{
19159 # Extract the definition of DEPDIR, am__include, and am__quote
19160 # from the Makefile without running `make'.
19161 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
19162 test -z "$DEPDIR" && continue
19163 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
19164 test -z "am__include" && continue
19165 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
19166 # When using ansi2knr, U may be empty or an underscore; expand it
19167 U
=`sed -n 's/^U = //p' < "$mf"`
19168 # Find all dependency output files, they are included files with
19169 # $(DEPDIR) in their names. We invoke sed twice because it is the
19170 # simplest approach to changing $(DEPDIR) to its actual value in the
19172 for file in `sed -n "
19173 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19174 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19175 # Make sure the directory exists.
19176 test -f "$dirpart/$file" && continue
19177 fdir
=`$as_dirname -- "$file" ||
19178 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19179 X"$file" : 'X\(//\)[^/]' \| \
19180 X"$file" : 'X\(//\)$' \| \
19181 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19182 $as_echo X"$file" |
19183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19187 /^X\(\/\/\)[^/].*/{
19200 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
19201 # echo "creating $dirpart/$file"
19202 echo '# dummy' > "$dirpart/$file"
19208 case x
$CONFIG_HEADERS in
19209 xconfig.h
:config.
in)
19220 ac_clean_files
=$ac_clean_files_save
19222 test $ac_write_fail = 0 ||
19223 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
19226 # configure is writing to config.log, and then calls config.status.
19227 # config.status does its own redirection, appending to config.log.
19228 # Unfortunately, on DOS this fails, as config.log is still kept open
19229 # by configure, so config.status won't be able to write to it; its
19230 # output is simply discarded. So we exec the FD to /dev/null,
19231 # effectively closing config.log, so it can be properly (re)opened and
19232 # appended to by config.status. When coming back to configure, we
19233 # need to make the FD available again.
19234 if test "$no_create" != yes; then
19236 ac_config_status_args
=
19237 test "$silent" = yes &&
19238 ac_config_status_args
="$ac_config_status_args --quiet"
19240 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19242 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19243 # would make configure fail if this is the last instruction.
19244 $ac_cs_success || as_fn_exit $?
19248 # CONFIG_SUBDIRS section.
19250 if test "$no_recursion" != yes; then
19252 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19253 # so they do not pile up.
19254 ac_sub_configure_args
=
19256 eval "set x $ac_configure_args"
19260 if test -n "$ac_prev"; then
19265 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
19266 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
19267 ac_prev
=cache_file
;;
19268 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
19269 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
19272 --config-cache |
-C)
19274 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
19276 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
19278 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
19280 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
19282 --disable-option-checking)
19286 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19288 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
19292 # Always prepend --prefix to ensure using the same prefix
19293 # in subdir configurations.
19294 ac_arg
="--prefix=$prefix"
19296 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19298 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
19301 if test "$silent" = yes; then
19302 ac_sub_configure_args
="--silent $ac_sub_configure_args"
19305 # Always prepend --disable-option-checking to silence warnings, since
19306 # different subdirs can have different --enable and --with options.
19307 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
19310 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
19312 # Do not complain, so a configure script can configure whichever
19313 # parts of a large source tree are present.
19314 test -d "$srcdir/$ac_dir" ||
continue
19316 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19317 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19318 $as_echo "$ac_msg" >&6
19319 as_dir
="$ac_dir"; as_fn_mkdir_p
19323 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19325 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19326 # A ".." for each directory in $ac_dir_suffix.
19327 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19328 case $ac_top_builddir_sub in
19329 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19330 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
19333 ac_abs_top_builddir
=$ac_pwd
19334 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
19335 # for backward compatibility:
19336 ac_top_builddir
=$ac_top_build_prefix
19339 .
) # We are building in place.
19341 ac_top_srcdir
=$ac_top_builddir_sub
19342 ac_abs_top_srcdir
=$ac_pwd ;;
19343 [\\/]* | ?
:[\\/]* ) # Absolute name.
19344 ac_srcdir
=$srcdir$ac_dir_suffix;
19345 ac_top_srcdir
=$srcdir
19346 ac_abs_top_srcdir
=$srcdir ;;
19347 *) # Relative name.
19348 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
19349 ac_top_srcdir
=$ac_top_build_prefix$srcdir
19350 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
19352 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
19357 # Check for guested configure; otherwise get Cygnus style configure.
19358 if test -f "$ac_srcdir/configure.gnu"; then
19359 ac_sub_configure
=$ac_srcdir/configure.gnu
19360 elif test -f "$ac_srcdir/configure"; then
19361 ac_sub_configure
=$ac_srcdir/configure
19362 elif test -f "$ac_srcdir/configure.in"; then
19363 # This should be Cygnus configure.
19364 ac_sub_configure
=$ac_aux_dir/configure
19366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19367 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19371 # The recursion is here.
19372 if test -n "$ac_sub_configure"; then
19373 # Make the cache file name correct relative to the subdirectory.
19374 case $cache_file in
19375 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
19376 *) # Relative name.
19377 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
19380 { $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
19381 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19382 # The eval makes quoting arguments work.
19383 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19384 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19385 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19391 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19393 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}