2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev
/null
; then :
178 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
183 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir
=.
190 for as_base
in sh bash ksh sh5
; do
191 # Try only shells that exist, to save several forks.
192 as_shell
=$as_dir/$as_base
193 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
195 CONFIG_SHELL
=$as_shell as_have_required
=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
204 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
206 CONFIG_SHELL
=$SHELL as_have_required
=yes
211 if test "x$CONFIG_SHELL" != x
; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x
$as_have_required = xno
; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x
${ZSH_VERSION+set} = xset
; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL
=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE
= GREP_OPTIONS
=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir
=.
/$as_dir;;
283 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
287 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs
="'$as_qdir' $as_dirs"
291 as_dir
=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
317 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
352 as_val
=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status
=$?
; test $as_status -eq 0 && as_status
=1
366 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit
$as_status
373 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
380 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
392 as_me
=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits
='0123456789'
416 as_cr_alnum
=$as_cr_Letters$as_cr_digits
419 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
420 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x
"$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C
= ECHO_N
= ECHO_T
=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
463 rm -f conf$$ conf$$.exe conf$$.
file
464 if test -d conf$$.dir
; then
465 rm -f conf$$.dir
/conf$$.
file
468 mkdir conf$$.dir
2>/dev
/null
470 if (echo >conf$$.
file) 2>/dev
/null
; then
471 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
479 elif ln conf$$.
file conf$$
2>/dev
/null
; then
487 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
488 rmdir conf$$.dir
2>/dev
/null
490 if mkdir
-p .
2>/dev
/null
; then
491 as_mkdir_p
='mkdir -p "$as_dir"'
493 test -d .
/-p && rmdir .
/-p
497 if test -x / >/dev
/null
2>&1; then
500 if ls -dL / >/dev
/null
2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p
=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev
/null
6>&1
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
537 ac_default_prefix
=/usr
/local
539 ac_config_libobj_dir
=.
546 # Identity of this package.
554 ac_unique_file
="main.c"
555 # Factoring default headers for most tests.
556 ac_includes_default
="\
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
568 # ifdef HAVE_STDLIB_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
593 enable_option_checking
=no
594 ac_subst_vars
='am__EXEEXT_FALSE
657 TARGET_SYSTEM_ROOT_DEFINE
669 READLINE_TEXI_INCFLAG
700 INSTALL_STRIP_PROGRAM
721 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
757 NEXT_AS_FIRST_DIRECTIVE_STRING_H
767 HAVE_SIGNED_SIG_ATOMIC_T
770 BITSIZEOF_SIG_ATOMIC_T
776 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
780 HAVE_UNSIGNED_LONG_LONG_INT
782 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
785 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
790 APPLE_UNIVERSAL_BUILD
856 GL_COND_LIBTOOL_FALSE
901 MAINTAINER_MODE_FALSE
930 program_transform_name
941 ac_subst_files
='host_makefile_frag'
943 enable_option_checking
944 enable_maintainer_mode
947 enable_dependency_tracking
948 with_separate_debug_dir
950 with_relocated_sources
974 enable_build_warnings
975 enable_gdb_build_warnings
983 ac_precious_vars
='build_alias
995 ac_subdirs_all
='testsuite
1001 # Initialize some variables set by options.
1003 ac_init_version
=false
1004 ac_unrecognized_opts
=
1005 ac_unrecognized_sep
=
1006 # The variables have the same names as the options, with
1007 # dashes changed to underlines.
1008 cache_file
=/dev
/null
1015 program_transform_name
=s
,x
,x
,
1023 # Installation directory options.
1024 # These are left unexpanded so users can "make install exec_prefix=/foo"
1025 # and all the variables that are supposed to be based on exec_prefix
1026 # by default will actually change.
1027 # Use braces instead of parens because sh, perl, etc. also accept them.
1028 # (The list follows the same order as the GNU Coding Standards.)
1029 bindir
='${exec_prefix}/bin'
1030 sbindir
='${exec_prefix}/sbin'
1031 libexecdir
='${exec_prefix}/libexec'
1032 datarootdir
='${prefix}/share'
1033 datadir
='${datarootdir}'
1034 sysconfdir
='${prefix}/etc'
1035 sharedstatedir
='${prefix}/com'
1036 localstatedir
='${prefix}/var'
1037 includedir
='${prefix}/include'
1038 oldincludedir
='/usr/include'
1039 docdir
='${datarootdir}/doc/${PACKAGE}'
1040 infodir
='${datarootdir}/info'
1045 libdir
='${exec_prefix}/lib'
1046 localedir
='${datarootdir}/locale'
1047 mandir
='${datarootdir}/man'
1053 # If the previous option needs an argument, assign it.
1054 if test -n "$ac_prev"; then
1055 eval $ac_prev=\
$ac_option
1061 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1065 # Accept the important Cygnus configure options, so we can diagnose typos.
1067 case $ac_dashdash$ac_option in
1071 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1073 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1074 bindir
=$ac_optarg ;;
1076 -build |
--build |
--buil |
--bui |
--bu)
1077 ac_prev
=build_alias
;;
1078 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1079 build_alias
=$ac_optarg ;;
1081 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1082 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1083 ac_prev
=cache_file
;;
1084 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1085 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1086 cache_file
=$ac_optarg ;;
1088 --config-cache |
-C)
1089 cache_file
=config.cache
;;
1091 -datadir |
--datadir |
--datadi |
--datad)
1093 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1094 datadir
=$ac_optarg ;;
1096 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1097 |
--dataroo |
--dataro |
--datar)
1098 ac_prev
=datarootdir
;;
1099 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1100 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1101 datarootdir
=$ac_optarg ;;
1103 -disable-* |
--disable-*)
1104 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1105 # Reject names that are not valid shell variable names.
1106 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1107 as_fn_error
"invalid feature name: $ac_useropt"
1108 ac_useropt_orig
=$ac_useropt
1109 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110 case $ac_user_opts in
1112 "enable_
$ac_useropt"
1114 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1115 ac_unrecognized_sep
=', ';;
1117 eval enable_
$ac_useropt=no
;;
1119 -docdir |
--docdir |
--docdi |
--doc |
--do)
1121 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1122 docdir
=$ac_optarg ;;
1124 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1126 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1127 dvidir
=$ac_optarg ;;
1129 -enable-* |
--enable-*)
1130 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1133 as_fn_error
"invalid feature name: $ac_useropt"
1134 ac_useropt_orig
=$ac_useropt
1135 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1138 "enable_
$ac_useropt"
1140 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1141 ac_unrecognized_sep
=', ';;
1143 eval enable_
$ac_useropt=\
$ac_optarg ;;
1145 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1146 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1147 |
--exec |
--exe |
--ex)
1148 ac_prev
=exec_prefix
;;
1149 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1150 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1151 |
--exec=* |
--exe=* |
--ex=*)
1152 exec_prefix
=$ac_optarg ;;
1154 -gas |
--gas |
--ga |
--g)
1155 # Obsolete; use --with-gas.
1158 -help |
--help |
--hel |
--he |
-h)
1159 ac_init_help
=long
;;
1160 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1161 ac_init_help
=recursive
;;
1162 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1163 ac_init_help
=short
;;
1165 -host |
--host |
--hos |
--ho)
1166 ac_prev
=host_alias
;;
1167 -host=* |
--host=* |
--hos=* |
--ho=*)
1168 host_alias
=$ac_optarg ;;
1170 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1172 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1174 htmldir
=$ac_optarg ;;
1176 -includedir |
--includedir |
--includedi |
--included |
--include \
1177 |
--includ |
--inclu |
--incl |
--inc)
1178 ac_prev
=includedir
;;
1179 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1180 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1181 includedir
=$ac_optarg ;;
1183 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1185 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1186 infodir
=$ac_optarg ;;
1188 -libdir |
--libdir |
--libdi |
--libd)
1190 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1191 libdir
=$ac_optarg ;;
1193 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1194 |
--libexe |
--libex |
--libe)
1195 ac_prev
=libexecdir
;;
1196 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1197 |
--libexe=* |
--libex=* |
--libe=*)
1198 libexecdir
=$ac_optarg ;;
1200 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1201 ac_prev
=localedir
;;
1202 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1203 localedir
=$ac_optarg ;;
1205 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1206 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1207 ac_prev
=localstatedir
;;
1208 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1209 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1210 localstatedir
=$ac_optarg ;;
1212 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1214 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1215 mandir
=$ac_optarg ;;
1217 -nfp |
--nfp |
--nf)
1218 # Obsolete; use --without-fp.
1221 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1222 |
--no-cr |
--no-c |
-n)
1225 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1226 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1229 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1230 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1231 |
--oldin |
--oldi |
--old |
--ol |
--o)
1232 ac_prev
=oldincludedir
;;
1233 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1234 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1235 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1236 oldincludedir
=$ac_optarg ;;
1238 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1240 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1241 prefix
=$ac_optarg ;;
1243 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1244 |
--program-pre |
--program-pr |
--program-p)
1245 ac_prev
=program_prefix
;;
1246 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1247 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1248 program_prefix
=$ac_optarg ;;
1250 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1251 |
--program-suf |
--program-su |
--program-s)
1252 ac_prev
=program_suffix
;;
1253 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1254 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1255 program_suffix
=$ac_optarg ;;
1257 -program-transform-name |
--program-transform-name \
1258 |
--program-transform-nam |
--program-transform-na \
1259 |
--program-transform-n |
--program-transform- \
1260 |
--program-transform |
--program-transfor \
1261 |
--program-transfo |
--program-transf \
1262 |
--program-trans |
--program-tran \
1263 |
--progr-tra |
--program-tr |
--program-t)
1264 ac_prev
=program_transform_name
;;
1265 -program-transform-name=* |
--program-transform-name=* \
1266 |
--program-transform-nam=* |
--program-transform-na=* \
1267 |
--program-transform-n=* |
--program-transform-=* \
1268 |
--program-transform=* |
--program-transfor=* \
1269 |
--program-transfo=* |
--program-transf=* \
1270 |
--program-trans=* |
--program-tran=* \
1271 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1272 program_transform_name
=$ac_optarg ;;
1274 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1276 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1277 pdfdir
=$ac_optarg ;;
1279 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1281 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1284 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1285 |
-silent |
--silent |
--silen |
--sile |
--sil)
1288 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1290 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1292 sbindir
=$ac_optarg ;;
1294 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1295 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1296 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1298 ac_prev
=sharedstatedir
;;
1299 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1300 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1301 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1303 sharedstatedir
=$ac_optarg ;;
1305 -site |
--site |
--sit)
1307 -site=* |
--site=* |
--sit=*)
1310 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1312 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1313 srcdir
=$ac_optarg ;;
1315 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1316 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1317 ac_prev
=sysconfdir
;;
1318 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1319 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1320 sysconfdir
=$ac_optarg ;;
1322 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1323 ac_prev
=target_alias
;;
1324 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1325 target_alias
=$ac_optarg ;;
1327 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1330 -version |
--version |
--versio |
--versi |
--vers |
-V)
1331 ac_init_version
=: ;;
1334 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1335 # Reject names that are not valid shell variable names.
1336 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1337 as_fn_error
"invalid package name: $ac_useropt"
1338 ac_useropt_orig
=$ac_useropt
1339 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1340 case $ac_user_opts in
1344 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1345 ac_unrecognized_sep
=', ';;
1347 eval with_
$ac_useropt=\
$ac_optarg ;;
1349 -without-* |
--without-*)
1350 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1351 # Reject names that are not valid shell variable names.
1352 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1353 as_fn_error
"invalid package name: $ac_useropt"
1354 ac_useropt_orig
=$ac_useropt
1355 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1356 case $ac_user_opts in
1360 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1361 ac_unrecognized_sep
=', ';;
1363 eval with_
$ac_useropt=no
;;
1366 # Obsolete; use --with-x.
1369 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1370 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1371 ac_prev
=x_includes
;;
1372 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1373 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1374 x_includes
=$ac_optarg ;;
1376 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1377 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1378 ac_prev
=x_libraries
;;
1379 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1380 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1381 x_libraries
=$ac_optarg ;;
1383 -*) as_fn_error
"unrecognized option: \`$ac_option'
1384 Try \`$0 --help' for more information."
1388 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1389 # Reject names that are not valid shell variable names.
1390 case $ac_envvar in #(
1391 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1392 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1394 eval $ac_envvar=\
$ac_optarg
1395 export $ac_envvar ;;
1398 # FIXME: should be removed in autoconf 3.0.
1399 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1400 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1401 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1402 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1408 if test -n "$ac_prev"; then
1409 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1410 as_fn_error
"missing argument to $ac_option"
1413 if test -n "$ac_unrecognized_opts"; then
1414 case $enable_option_checking in
1416 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1417 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1421 # Check all directory arguments for consistency.
1422 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1423 datadir sysconfdir sharedstatedir localstatedir includedir \
1424 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1425 libdir localedir mandir
1427 eval ac_val
=\$
$ac_var
1428 # Remove trailing slashes.
1431 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1432 eval $ac_var=\
$ac_val;;
1434 # Be sure to have absolute directory names.
1436 [\\/$
]* | ?
:[\\/]* ) continue;;
1437 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1439 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1442 # There might be people who depend on the old broken behavior: `$host'
1443 # used to hold the argument of --host etc.
1444 # FIXME: To remove some day.
1447 target
=$target_alias
1449 # FIXME: To remove some day.
1450 if test "x$host_alias" != x
; then
1451 if test "x$build_alias" = x
; then
1452 cross_compiling
=maybe
1453 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1454 If a cross compiler is detected then cross compile mode will be used." >&2
1455 elif test "x$build_alias" != "x$host_alias"; then
1461 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1463 test "$silent" = yes && exec 6>/dev
/null
1466 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1467 ac_ls_di
=`ls -di .` &&
1468 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1469 as_fn_error
"working directory cannot be determined"
1470 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1471 as_fn_error
"pwd does not report name of working directory"
1474 # Find the source files, if location was not specified.
1475 if test -z "$srcdir"; then
1476 ac_srcdir_defaulted
=yes
1477 # Try the directory containing this script, then the parent directory.
1478 ac_confdir
=`$as_dirname -- "$as_myself" ||
1479 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1480 X"$as_myself" : 'X\(//\)[^/]' \| \
1481 X"$as_myself" : 'X\(//\)$' \| \
1482 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1483 $as_echo X"$as_myself" |
1484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1502 if test ! -r "$srcdir/$ac_unique_file"; then
1506 ac_srcdir_defaulted
=no
1508 if test ! -r "$srcdir/$ac_unique_file"; then
1509 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1510 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1512 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1514 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1516 # When building in place, set srcdir=.
1517 if test "$ac_abs_confdir" = "$ac_pwd"; then
1520 # Remove unnecessary trailing slashes from srcdir.
1521 # Double slashes in file names in object file debugging info
1522 # mess up M-x gdb in Emacs.
1524 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1526 for ac_var
in $ac_precious_vars; do
1527 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1528 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1529 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1530 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1534 # Report the --help message.
1536 if test "$ac_init_help" = "long"; then
1537 # Omit some internal or obsolete options to make the list less imposing.
1538 # This message is too long to be a string in the A/UX 3.1 sh.
1540 \`configure' configures this package to adapt to many kinds of systems.
1542 Usage: $0 [OPTION]... [VAR=VALUE]...
1544 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1545 VAR=VALUE. See below for descriptions of some of the useful variables.
1547 Defaults for the options are specified in brackets.
1550 -h, --help display this help and exit
1551 --help=short display options specific to this package
1552 --help=recursive display the short help of all the included packages
1553 -V, --version display version information and exit
1554 -q, --quiet, --silent do not print \`checking...' messages
1555 --cache-file=FILE cache test results in FILE [disabled]
1556 -C, --config-cache alias for \`--cache-file=config.cache'
1557 -n, --no-create do not create output files
1558 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1560 Installation directories:
1561 --prefix=PREFIX install architecture-independent files in PREFIX
1562 [$ac_default_prefix]
1563 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1566 By default, \`make install' will install all the files in
1567 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1568 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1569 for instance \`--prefix=\$HOME'.
1571 For better control, use the options below.
1573 Fine tuning of the installation directories:
1574 --bindir=DIR user executables [EPREFIX/bin]
1575 --sbindir=DIR system admin executables [EPREFIX/sbin]
1576 --libexecdir=DIR program executables [EPREFIX/libexec]
1577 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1578 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1579 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1580 --libdir=DIR object code libraries [EPREFIX/lib]
1581 --includedir=DIR C header files [PREFIX/include]
1582 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1583 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1584 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1585 --infodir=DIR info documentation [DATAROOTDIR/info]
1586 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1587 --mandir=DIR man documentation [DATAROOTDIR/man]
1588 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1589 --htmldir=DIR html documentation [DOCDIR]
1590 --dvidir=DIR dvi documentation [DOCDIR]
1591 --pdfdir=DIR pdf documentation [DOCDIR]
1592 --psdir=DIR ps documentation [DOCDIR]
1598 --program-prefix=PREFIX prepend PREFIX to installed program names
1599 --program-suffix=SUFFIX append SUFFIX to installed program names
1600 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1603 --x-includes=DIR X include files are
in DIR
1604 --x-libraries=DIR X library files are
in DIR
1607 --build=BUILD configure
for building on BUILD
[guessed
]
1608 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1609 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1613 if test -n "$ac_init_help"; then
1618 --disable-option-checking ignore unrecognized
--enable/--with options
1619 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1620 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1621 --enable-maintainer-mode enable make rules and dependencies not useful
1622 (and sometimes confusing
) to the casual installer
1623 --enable-plugins Enable support
for plugins
(defaults no
)
1624 --disable-largefile omit support
for large files
1625 --disable-dependency-tracking speeds up one-time build
1626 --enable-dependency-tracking do not reject slow dependency extractors
1627 --enable-targets=TARGETS
1628 alternative target configurations
1629 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1630 --disable-gdbcli disable command-line interface
(CLI
)
1631 --disable-gdbmi disable machine-interface
(MI
)
1632 --enable-tui enable full-screen terminal user interface
(TUI
)
1633 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1634 --enable-profiling enable profiling of GDB
1635 --disable-rpath do not hardcode runtime library paths
1636 --enable-werror treat compile warnings as errors
1637 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1638 --enable-gdb-build-warnings
1639 enable GDB specific build-time compiler warnings
if
1641 --enable-sim link gdb with simulator
1642 --enable-multi-ice build the multi-ice-gdb-server
1643 --enable-gdbserver automatically build gdbserver
(yes
/no
/auto
, default
1647 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1648 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1649 --with-separate-debug-dir=PATH
1650 look for global separate debug info
in this path
1652 --with-gdb-datadir=PATH
look for global separate data files
in this path
1654 --with-relocated-sources=PATH
1655 automatically relocate this path
for source files
1656 --with-libunwind use libunwind frame unwinding support
1657 --with-curses use the curses library instead of the termcap
1659 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1660 --with-bugurl=URL Direct users to URL to report a bug
1661 --with-zlib include zlib support
(auto
/yes
/no
) default
=auto
1662 --with-libiconv-prefix=DIR
1663 search
for libiconv
in DIR
/include and DIR
/lib
1664 --with-system-readline use installed readline library
1665 --with-expat include expat support
(auto
/yes
/no
)
1666 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1667 --with-libexpat-prefix[=DIR
] search
for libexpat
in DIR
/include and DIR
/lib
1668 --without-libexpat-prefix don
't search for libexpat in includedir and libdir
1669 --with-python[=PYTHON] include python support
1670 (auto/yes/no/<python-program>)
1671 --without-included-regex
1672 don't use included regex
; this is the default on
1673 systems with version
2 of the GNU C library
(use
1674 with caution on other system
)
1675 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1676 --with-system-gdbinit=PATH
1677 automatically load a system-wide gdbinit
file
1678 --with-tcl directory containing tcl configuration
(tclConfig.sh
)
1679 --with-tk directory containing tk configuration
(tkConfig.sh
)
1680 --with-x use the X Window System
1682 Some influential environment variables
:
1683 CC C compiler
command
1684 CFLAGS C compiler flags
1685 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1686 nonstandard directory
<lib dir
>
1687 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1688 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1689 you have headers
in a nonstandard directory
<include dir
>
1691 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1692 the first program found out of: `bison
-y', `byacc', `yacc'.
1693 YFLAGS The list of arguments that will be passed by default to $YACC.
1694 This script will default YFLAGS to the empty string to avoid a
1695 default value of `-d' given by some make applications.
1696 XMKMF Path to xmkmf, Makefile generator for X Window System
1698 Use these variables to override the choices made by `configure' or to
help
1699 it to
find libraries and programs with nonstandard names
/locations.
1701 Report bugs to the package provider.
1706 if test "$ac_init_help" = "recursive"; then
1707 # If there are subdirs, report their specific --help.
1708 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1709 test -d "$ac_dir" ||
1710 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1715 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1717 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1718 # A ".." for each directory in $ac_dir_suffix.
1719 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1720 case $ac_top_builddir_sub in
1721 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1722 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1725 ac_abs_top_builddir
=$ac_pwd
1726 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1727 # for backward compatibility:
1728 ac_top_builddir
=$ac_top_build_prefix
1731 .
) # We are building in place.
1733 ac_top_srcdir
=$ac_top_builddir_sub
1734 ac_abs_top_srcdir
=$ac_pwd ;;
1735 [\\/]* | ?
:[\\/]* ) # Absolute name.
1736 ac_srcdir
=$srcdir$ac_dir_suffix;
1737 ac_top_srcdir
=$srcdir
1738 ac_abs_top_srcdir
=$srcdir ;;
1740 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1741 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1742 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1744 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1746 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1747 # Check for guested configure.
1748 if test -f "$ac_srcdir/configure.gnu"; then
1750 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1751 elif test -f "$ac_srcdir/configure"; then
1753 $SHELL "$ac_srcdir/configure" --help=recursive
1755 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1757 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1761 test -n "$ac_init_help" && exit $ac_status
1762 if $ac_init_version; then
1765 generated by GNU Autoconf
2.64
1767 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1768 This configure
script is free software
; the Free Software Foundation
1769 gives unlimited permission to copy
, distribute and modify it.
1774 ## ------------------------ ##
1775 ## Autoconf initialization. ##
1776 ## ------------------------ ##
1778 # ac_fn_c_try_compile LINENO
1779 # --------------------------
1780 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1781 ac_fn_c_try_compile
()
1783 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1784 rm -f conftest.
$ac_objext
1785 if { { ac_try
="$ac_compile"
1787 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1788 *) ac_try_echo=$ac_try;;
1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 $as_echo "$ac_try_echo"; } >&5
1792 (eval "$ac_compile") 2>conftest.err
1794 if test -s conftest.err; then
1795 grep -v '^ *+' conftest.err >conftest.er1
1796 cat conftest.er1 >&5
1797 mv -f conftest.er1 conftest.err
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; } && {
1801 test -z "$ac_c_werror_flag" ||
1802 test ! -s conftest.err
1803 } && test -s conftest.$ac_objext; then :
1806 $as_echo "$as_me: failed program was:" >&5
1807 sed 's/^/| /' conftest.$ac_ext >&5
1811 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1814 } # ac_fn_c_try_compile
1816 # ac_fn_c_try_cpp LINENO
1817 # ----------------------
1818 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 if { { ac_try="$ac_cpp conftest.$ac_ext"
1824 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1825 *) ac_try_echo
=$ac_try;;
1827 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828 $as_echo "$ac_try_echo"; } >&5
1829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1831 if test -s conftest.err
; then
1832 grep -v '^ *+' conftest.err
>conftest.er1
1833 cat conftest.er1
>&5
1834 mv -f conftest.er1 conftest.err
1836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837 test $ac_status = 0; } >/dev
/null
&& {
1838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1839 test ! -s conftest.err
1843 $as_echo "$as_me: failed program was:" >&5
1844 sed 's/^/| /' conftest.
$ac_ext >&5
1848 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1853 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1854 # -------------------------------------------------------
1855 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1856 # the include files in INCLUDES and setting the cache variable VAR
1858 ac_fn_c_check_header_mongrel
()
1860 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1861 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1863 $as_echo_n "checking for $2... " >&6; }
1864 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1865 $as_echo_n "(cached) " >&6
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869 $as_echo "$ac_res" >&6; }
1871 # Is the header compilable?
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1873 $as_echo_n "checking $2 usability... " >&6; }
1874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1875 /* end confdefs.h. */
1879 if ac_fn_c_try_compile
"$LINENO"; then :
1880 ac_header_compiler
=yes
1882 ac_header_compiler
=no
1884 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1886 $as_echo "$ac_header_compiler" >&6; }
1888 # Is the header present?
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1890 $as_echo_n "checking $2 presence... " >&6; }
1891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1892 /* end confdefs.h. */
1895 if ac_fn_c_try_cpp
"$LINENO"; then :
1896 ac_header_preproc
=yes
1898 ac_header_preproc
=no
1900 rm -f conftest.err conftest.
$ac_ext
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1902 $as_echo "$ac_header_preproc" >&6; }
1904 # So? What about this header?
1905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1908 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1910 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1914 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1916 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1918 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1920 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1922 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1926 $as_echo_n "checking for $2... " >&6; }
1927 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1928 $as_echo_n "(cached) " >&6
1930 eval "$3=\$ac_header_compiler"
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934 $as_echo "$ac_res" >&6; }
1936 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1938 } # ac_fn_c_check_header_mongrel
1940 # ac_fn_c_try_run LINENO
1941 # ----------------------
1942 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1943 # that executables *can* be run.
1946 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1947 if { { ac_try
="$ac_link"
1949 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1950 *) ac_try_echo=$ac_try;;
1952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1953 $as_echo "$ac_try_echo"; } >&5
1954 (eval "$ac_link") 2>&5
1956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1957 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1958 { { case "(($ac_try" in
1959 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1960 *) ac_try_echo
=$ac_try;;
1962 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1963 $as_echo "$ac_try_echo"; } >&5
1964 (eval "$ac_try") 2>&5
1966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1967 test $ac_status = 0; }; }; then :
1970 $as_echo "$as_me: program exited with status $ac_status" >&5
1971 $as_echo "$as_me: failed program was:" >&5
1972 sed 's/^/| /' conftest.
$ac_ext >&5
1974 ac_retval
=$ac_status
1976 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1977 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1982 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1983 # -------------------------------------------------------
1984 # Tests whether HEADER exists and can be compiled using the include files in
1985 # INCLUDES, setting the cache variable VAR accordingly.
1986 ac_fn_c_check_header_compile
()
1988 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1990 $as_echo_n "checking for $2... " >&6; }
1991 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1992 $as_echo_n "(cached) " >&6
1994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1995 /* end confdefs.h. */
1999 if ac_fn_c_try_compile
"$LINENO"; then :
2004 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2008 $as_echo "$ac_res" >&6; }
2009 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2011 } # ac_fn_c_check_header_compile
2013 # ac_fn_c_try_link LINENO
2014 # -----------------------
2015 # Try to link conftest.$ac_ext, and return whether this succeeded.
2018 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2019 rm -f conftest.
$ac_objext conftest
$ac_exeext
2020 if { { ac_try
="$ac_link"
2022 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2023 *) ac_try_echo=$ac_try;;
2025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2026 $as_echo "$ac_try_echo"; } >&5
2027 (eval "$ac_link") 2>conftest.err
2029 if test -s conftest.err; then
2030 grep -v '^ *+' conftest.err >conftest.er1
2031 cat conftest.er1 >&5
2032 mv -f conftest.er1 conftest.err
2034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2035 test $ac_status = 0; } && {
2036 test -z "$ac_c_werror_flag" ||
2037 test ! -s conftest.err
2038 } && test -s conftest$ac_exeext && {
2039 test "$cross_compiling" = yes ||
2040 $as_test_x conftest$ac_exeext
2044 $as_echo "$as_me: failed program was:" >&5
2045 sed 's/^/| /' conftest.$ac_ext >&5
2049 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2050 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2051 # interfere with the next link command; also delete a directory that is
2052 # left behind by Apple's compiler. We do this before executing the actions.
2053 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2054 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2057 } # ac_fn_c_try_link
2059 # ac_fn_c_check_func LINENO FUNC VAR
2060 # ----------------------------------
2061 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2062 ac_fn_c_check_func ()
2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2066 $as_echo_n "checking for $2... " >&6; }
2067 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2068 $as_echo_n "(cached) " >&6
2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071 /* end confdefs.h. */
2072 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2074 #define $2 innocuous_$2
2076 /* System header to define __stub macros and hopefully few prototypes,
2077 which can conflict with char $2 (); below.
2078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2079 <limits.h> exists even on freestanding compilers. */
2082 # include <limits.h>
2084 # include <assert.h>
2089 /* Override any GCC internal prototype to avoid an error.
2090 Use char because int might match the return type of a GCC
2091 builtin and then its argument prototype would still apply. */
2096 /* The GNU C library defines this for functions which it implements
2097 to always fail with ENOSYS. Some functions are actually named
2098 something starting with __ and the normal name is an alias. */
2099 #if defined __stub_$2 || defined __stub___$2
2111 if ac_fn_c_try_link "$LINENO"; then :
2116 rm -f core conftest.err conftest.$ac_objext \
2117 conftest$ac_exeext conftest.$ac_ext
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2121 $as_echo "$ac_res" >&6; }
2122 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2124 } # ac_fn_c_check_func
2126 # ac_fn_c_check_decl LINENO SYMBOL VAR
2127 # ------------------------------------
2128 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2129 ac_fn_c_check_decl ()
2131 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2132 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2133 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2135 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2136 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2137 $as_echo_n "(cached) " >&6
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h. */
2145 #ifndef $as_decl_name
2147 (void) $as_decl_use;
2149 (void) $as_decl_name;
2157 if ac_fn_c_try_compile "$LINENO"; then :
2162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2166 $as_echo "$ac_res" >&6; }
2167 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2169 } # ac_fn_c_check_decl
2171 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2172 # --------------------------------------------
2173 # Tries to find the compile-time value of EXPR in a program that includes
2174 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2176 ac_fn_c_compute_int ()
2178 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179 if test "$cross_compiling" = yes; then
2180 # Depending upon the size, compute the lo and hi bounds.
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h. */
2187 static int test_array [1 - 2 * !(($2) >= 0)];
2194 if ac_fn_c_try_compile "$LINENO"; then :
2197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2198 /* end confdefs.h. */
2203 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2210 if ac_fn_c_try_compile "$LINENO"; then :
2211 ac_hi=$ac_mid; break
2213 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2214 if test $ac_lo -le $ac_mid; then
2218 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224 /* end confdefs.h. */
2229 static int test_array [1 - 2 * !(($2) < 0)];
2236 if ac_fn_c_try_compile "$LINENO"; then :
2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240 /* end confdefs.h. */
2245 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2252 if ac_fn_c_try_compile "$LINENO"; then :
2253 ac_lo=$ac_mid; break
2255 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2256 if test $ac_mid -le $ac_hi; then
2260 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270 # Binary search between lo and hi bounds.
2271 while test "x$ac_lo" != "x$ac_hi"; do
2272 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274 /* end confdefs.h. */
2279 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2286 if ac_fn_c_try_compile "$LINENO"; then :
2289 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2294 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299 /* end confdefs.h. */
2301 static long int longval () { return $2; }
2302 static unsigned long int ulongval () { return $2; }
2309 FILE *f = fopen ("conftest.val", "w");
2314 long int i = longval ();
2317 fprintf (f, "%ld", i);
2321 unsigned long int i = ulongval ();
2324 fprintf (f, "%lu", i);
2326 /* Do not output a trailing newline, as this causes \r\n confusion
2327 on some platforms. */
2328 return ferror (f) || fclose (f) != 0;
2334 if ac_fn_c_try_run "$LINENO"; then :
2335 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2340 conftest.$ac_objext conftest.beam conftest.$ac_ext
2344 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2347 } # ac_fn_c_compute_int
2349 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2350 # ----------------------------------------------------
2351 # Tries to find if the field MEMBER exists in type AGGR, after including
2352 # INCLUDES, setting cache variable VAR accordingly.
2353 ac_fn_c_check_member ()
2355 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2357 $as_echo_n "checking for $2.$3... " >&6; }
2358 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2359 $as_echo_n "(cached) " >&6
2361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2362 /* end confdefs.h. */
2374 if ac_fn_c_try_compile "$LINENO"; then :
2377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2378 /* end confdefs.h. */
2384 if (sizeof ac_aggr.$3)
2390 if ac_fn_c_try_compile "$LINENO"; then :
2395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2401 $as_echo "$ac_res" >&6; }
2402 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2404 } # ac_fn_c_check_member
2406 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2407 # -------------------------------------------
2408 # Tests whether TYPE exists after having included INCLUDES, setting cache
2409 # variable VAR accordingly.
2410 ac_fn_c_check_type ()
2412 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2414 $as_echo_n "checking for $2... " >&6; }
2415 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2416 $as_echo_n "(cached) " >&6
2419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2420 /* end confdefs.h. */
2431 if ac_fn_c_try_compile "$LINENO"; then :
2432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2433 /* end confdefs.h. */
2444 if ac_fn_c_try_compile "$LINENO"; then :
2449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2455 $as_echo "$ac_res" >&6; }
2456 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2458 } # ac_fn_c_check_type
2459 cat >config.log <<_ACEOF
2460 This file contains any messages produced by compilers while
2461 running configure, to aid debugging if configure makes a mistake.
2463 It was created by $as_me, which was
2464 generated by GNU Autoconf 2.64. Invocation command line was
2476 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2477 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2478 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2479 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2480 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2482 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2483 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2485 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2486 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2487 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2488 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2489 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2490 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2491 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499 test -z "$as_dir" && as_dir=.
2500 $as_echo "PATH: $as_dir"
2516 # Keep a trace of the command line.
2517 # Strip out --no-create and --no-recursion so they do not pile up.
2518 # Strip out --silent because we don't want to record it for future runs.
2519 # Also quote any args containing shell meta-characters.
2520 # Make two passes to allow for proper duplicate-argument suppression.
2524 ac_must_keep_next=false
2530 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2531 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2532 | -silent | --silent | --silen | --sile | --sil)
2535 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2538 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2540 as_fn_append ac_configure_args1 " '$ac_arg'"
2541 if test $ac_must_keep_next = true; then
2542 ac_must_keep_next=false # Got value, back to normal.
2545 *=* | --config-cache | -C | -disable-* | --disable-* \
2546 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2547 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2548 | -with-* | --with-* | -without-* | --without-* | --x)
2549 case "$ac_configure_args0 " in
2550 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2553 -* ) ac_must_keep_next=true ;;
2556 as_fn_append ac_configure_args " '$ac_arg'"
2561 { ac_configure_args0=; unset ac_configure_args0;}
2562 { ac_configure_args1=; unset ac_configure_args1;}
2564 # When interrupted or exit'd, cleanup temporary files, and complete
2565 # config.log. We remove comments because anyway the quotes in there
2566 # would cause problems or look ugly.
2567 # WARNING: Use '\'' to represent an apostrophe within the trap.
2568 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2569 trap 'exit_status=$?
2570 # Save into config.log some information that might help in debugging.
2575 ## ---------------- ##
2576 ## Cache variables. ##
2577 ## ---------------- ##
2580 # The following way of writing the cache mishandles newlines in values,
2582 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2583 eval ac_val=\$$ac_var
2587 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2588 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2591 _ | IFS | as_nl) ;; #(
2592 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2593 *) { eval $ac_var=; unset $ac_var;} ;;
2598 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2599 *${as_nl}ac_space=\ *)
2601 "s/'\''/'\''\\\\'\'''\''/g;
2602 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2605 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2613 ## ----------------- ##
2614 ## Output variables. ##
2615 ## ----------------- ##
2618 for ac_var in $ac_subst_vars
2620 eval ac_val=\$$ac_var
2622 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2624 $as_echo "$ac_var='\''$ac_val'\''"
2628 if test -n "$ac_subst_files"; then
2630 ## ------------------- ##
2631 ## File substitutions. ##
2632 ## ------------------- ##
2635 for ac_var in $ac_subst_files
2637 eval ac_val=\$$ac_var
2639 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2641 $as_echo "$ac_var='\''$ac_val'\''"
2646 if test -s confdefs.h; then
2656 test "$ac_signal" != 0 &&
2657 $as_echo "$as_me: caught signal $ac_signal"
2658 $as_echo "$as_me: exit $exit_status"
2660 rm -f core *.core core.conftest.* &&
2661 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2664 for ac_signal in 1 2 13 15; do
2665 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2669 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2670 rm -f -r conftest* confdefs.h
2672 $as_echo "/* confdefs.h */" > confdefs.h
2674 # Predefined preprocessor variables.
2676 cat >>confdefs.h <<_ACEOF
2677 #define PACKAGE_NAME "$PACKAGE_NAME"
2680 cat >>confdefs.h <<_ACEOF
2681 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2684 cat >>confdefs.h <<_ACEOF
2685 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2688 cat >>confdefs.h <<_ACEOF
2689 #define PACKAGE_STRING "$PACKAGE_STRING"
2692 cat >>confdefs.h <<_ACEOF
2693 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2696 cat >>confdefs.h <<_ACEOF
2697 #define PACKAGE_URL "$PACKAGE_URL"
2701 # Let the site file select an alternate cache file if it wants to.
2702 # Prefer an explicitly selected file to automatically selected ones.
2705 if test -n "$CONFIG_SITE"; then
2706 ac_site_file1=$CONFIG_SITE
2707 elif test "x$prefix" != xNONE; then
2708 ac_site_file1=$prefix/share/config.site
2709 ac_site_file2=$prefix/etc/config.site
2711 ac_site_file1=$ac_default_prefix/share/config.site
2712 ac_site_file2=$ac_default_prefix/etc/config.site
2714 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2716 test "x$ac_site_file" = xNONE && continue
2717 if test -r "$ac_site_file"; then
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2719 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2720 sed 's/^/| /' "$ac_site_file" >&5
2725 if test -r "$cache_file"; then
2726 # Some versions of bash will fail to source /dev/null (special
2727 # files actually), so we avoid doing that.
2728 if test -f "$cache_file"; then
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2730 $as_echo "$as_me: loading cache $cache_file" >&6;}
2732 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2733 *) . "./$cache_file";;
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2738 $as_echo "$as_me: creating cache $cache_file" >&6;}
2742 gl_header_list="$gl_header_list sys/mman.h"
2743 gl_func_list="$gl_func_list mprotect"
2744 gl_func_list="$gl_func_list memchr"
2745 gl_header_list="$gl_header_list stddef.h"
2746 gl_header_list="$gl_header_list stdint.h"
2747 gl_header_list="$gl_header_list wchar.h"
2748 gl_header_list="$gl_header_list string.h"
2749 # Check that the precious variables saved in the cache have kept the same
2751 ac_cache_corrupted=false
2752 for ac_var in $ac_precious_vars; do
2753 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2754 eval ac_new_set=\$ac_env_${ac_var}_set
2755 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2756 eval ac_new_val=\$ac_env_${ac_var}_value
2757 case $ac_old_set,$ac_new_set in
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2760 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2761 ac_cache_corrupted=: ;;
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2764 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2765 ac_cache_corrupted=: ;;
2768 if test "x$ac_old_val" != "x$ac_new_val"; then
2769 # differences in whitespace do not lead to failure.
2770 ac_old_val_w=`echo x
$ac_old_val`
2771 ac_new_val_w=`echo x
$ac_new_val`
2772 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2774 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2775 ac_cache_corrupted=:
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2778 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2779 eval $ac_var=\$ac_old_val
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2782 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2784 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2787 # Pass precious variables to config.status.
2788 if test "$ac_new_set" = set; then
2790 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2791 *) ac_arg=$ac_var=$ac_new_val ;;
2793 case " $ac_configure_args " in
2794 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2795 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2799 if $ac_cache_corrupted; then
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2803 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2804 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2806 ## -------------------- ##
2807 ## Main body of script. ##
2808 ## -------------------- ##
2811 ac_cpp='$CPP $CPPFLAGS'
2812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2820 ac_config_headers="$ac_config_headers config.h:config.in"
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2824 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2825 # Check whether --enable-maintainer-mode was given.
2826 if test "${enable_maintainer_mode+set}" = set; then :
2827 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2829 USE_MAINTAINER_MODE=no
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2833 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2834 if test $USE_MAINTAINER_MODE = yes; then
2835 MAINTAINER_MODE_TRUE=
2836 MAINTAINER_MODE_FALSE='#'
2838 MAINTAINER_MODE_TRUE='#'
2839 MAINTAINER_MODE_FALSE=
2842 MAINT=$MAINTAINER_MODE_TRUE
2847 ac_cpp='$CPP $CPPFLAGS'
2848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2851 if test -n "$ac_tool_prefix"; then
2852 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2853 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2855 $as_echo_n "checking for $ac_word... " >&6; }
2856 if test "${ac_cv_prog_CC+set}" = set; then :
2857 $as_echo_n "(cached) " >&6
2859 if test -n "$CC"; then
2860 ac_cv_prog_CC="$CC" # Let the user override the test.
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2869 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 if test -n "$CC"; then
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2882 $as_echo "$CC" >&6; }
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2885 $as_echo "no" >&6; }
2890 if test -z "$ac_cv_prog_CC"; then
2892 # Extract the first word of "gcc", so it can be a program name with args.
2893 set dummy gcc; ac_word=$2
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895 $as_echo_n "checking for $ac_word... " >&6; }
2896 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2897 $as_echo_n "(cached) " >&6
2899 if test -n "$ac_ct_CC"; then
2900 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909 ac_cv_prog_ac_ct_CC="gcc"
2910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2920 if test -n "$ac_ct_CC"; then
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2922 $as_echo "$ac_ct_CC" >&6; }
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925 $as_echo "no" >&6; }
2928 if test "x$ac_ct_CC" = x; then
2931 case $cross_compiling:$ac_tool_warned in
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2935 ac_tool_warned=yes ;;
2943 if test -z "$CC"; then
2944 if test -n "$ac_tool_prefix"; then
2945 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2946 set dummy ${ac_tool_prefix}cc; ac_word=$2
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2948 $as_echo_n "checking for $ac_word... " >&6; }
2949 if test "${ac_cv_prog_CC+set}" = set; then :
2950 $as_echo_n "(cached) " >&6
2952 if test -n "$CC"; then
2953 ac_cv_prog_CC="$CC" # Let the user override the test.
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 test -z "$as_dir" && as_dir=.
2960 for ac_exec_ext in '' $ac_executable_extensions; do
2961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2962 ac_cv_prog_CC="${ac_tool_prefix}cc"
2963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2973 if test -n "$CC"; then
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2975 $as_echo "$CC" >&6; }
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978 $as_echo "no" >&6; }
2984 if test -z "$CC"; then
2985 # Extract the first word of "cc", so it can be a program name with args.
2986 set dummy cc; ac_word=$2
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988 $as_echo_n "checking for $ac_word... " >&6; }
2989 if test "${ac_cv_prog_CC+set}" = set; then :
2990 $as_echo_n "(cached) " >&6
2992 if test -n "$CC"; then
2993 ac_cv_prog_CC="$CC" # Let the user override the test.
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 test -z "$as_dir" && as_dir=.
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3003 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3004 ac_prog_rejected=yes
3008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3015 if test $ac_prog_rejected = yes; then
3016 # We found a bogon in the path, so make sure we never use it.
3017 set dummy $ac_cv_prog_CC
3019 if test $# != 0; then
3020 # We chose a different compiler from the bogus one.
3021 # However, it has the same basename, so the bogon will be chosen
3022 # first if we set CC to just the basename; use the full file name.
3024 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3030 if test -n "$CC"; then
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3032 $as_echo "$CC" >&6; }
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035 $as_echo "no" >&6; }
3040 if test -z "$CC"; then
3041 if test -n "$ac_tool_prefix"; then
3042 for ac_prog in cl.exe
3044 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3045 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047 $as_echo_n "checking for $ac_word... " >&6; }
3048 if test "${ac_cv_prog_CC+set}" = set; then :
3049 $as_echo_n "(cached) " >&6
3051 if test -n "$CC"; then
3052 ac_cv_prog_CC="$CC" # Let the user override the test.
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 test -z "$as_dir" && as_dir=.
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3061 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 if test -n "$CC"; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3074 $as_echo "$CC" >&6; }
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077 $as_echo "no" >&6; }
3081 test -n "$CC" && break
3084 if test -z "$CC"; then
3086 for ac_prog in cl.exe
3088 # Extract the first word of "$ac_prog", so it can be a program name with args.
3089 set dummy $ac_prog; ac_word=$2
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091 $as_echo_n "checking for $ac_word... " >&6; }
3092 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3093 $as_echo_n "(cached) " >&6
3095 if test -n "$ac_ct_CC"; then
3096 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102 test -z "$as_dir" && as_dir=.
3103 for ac_exec_ext in '' $ac_executable_extensions; do
3104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3105 ac_cv_prog_ac_ct_CC="$ac_prog"
3106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3115 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3116 if test -n "$ac_ct_CC"; then
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3118 $as_echo "$ac_ct_CC" >&6; }
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121 $as_echo "no" >&6; }
3125 test -n "$ac_ct_CC" && break
3128 if test "x$ac_ct_CC" = x; then
3131 case $cross_compiling:$ac_tool_warned in
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3135 ac_tool_warned=yes ;;
3144 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3146 as_fn_error "no acceptable C compiler found
in \
$PATH
3147 See \
`config.log' for more details." "$LINENO" 5; }
3149 # Provide some information about the compiler.
3150 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3153 for ac_option in --version -v -V -qversion; do
3154 { { ac_try="$ac_compiler $ac_option >&5"
3156 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3157 *) ac_try_echo
=$ac_try;;
3159 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3160 $as_echo "$ac_try_echo"; } >&5
3161 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3163 if test -s conftest.err
; then
3165 ... rest of stderr output deleted ...
3166 10q' conftest.err
>conftest.er1
3167 cat conftest.er1
>&5
3168 rm -f conftest.er1 conftest.err
3170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3171 test $ac_status = 0; }
3174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3175 /* end confdefs.h. */
3185 ac_clean_files_save
=$ac_clean_files
3186 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3187 # Try to create an executable without -o first, disregard a.out.
3188 # It will help us diagnose broken compilers, and finding out an intuition
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3191 $as_echo_n "checking for C compiler default output file name... " >&6; }
3192 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3194 # The possible output files:
3195 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3198 for ac_file
in $ac_files
3201 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3202 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3207 if { { ac_try
="$ac_link_default"
3209 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3213 $as_echo "$ac_try_echo"; } >&5
3214 (eval "$ac_link_default") 2>&5
3216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3217 test $ac_status = 0; }; then :
3218 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3219 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3220 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3221 # so that the user can short-circuit this test for compilers unknown to
3223 for ac_file in $ac_files ''
3225 test -f "$ac_file" || continue
3227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3230 # We found the default executable, but exeext='' is most
3234 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3236 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3238 # We set ac_cv_exeext here because the later test for it is not
3239 # safe: cross compilers may not add the suffix if given an `-o'
3240 # argument, so we may need to know it at that point already.
3241 # Even if this section looks crufty: it has the advantage of
3248 test "$ac_cv_exeext" = no && ac_cv_exeext=
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3254 $as_echo "$ac_file" >&6; }
3255 if test -z "$ac_file"; then :
3256 $as_echo "$as_me: failed program was:" >&5
3257 sed 's
/^
/|
/' conftest.$ac_ext >&5
3259 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3260 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3261 { as_fn_set_status 77
3262 as_fn_error "C compiler cannot create executables
3263 See \`config.log
' for more details." "$LINENO" 5; }; }
3265 ac_exeext=$ac_cv_exeext
3267 # Check that the compiler produces executables we can run. If not, either
3268 # the compiler is broken, or we cross compile.
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3270 $as_echo_n "checking whether the C compiler works... " >&6; }
3271 # If not cross compiling, check that we can run a simple program.
3272 if test "$cross_compiling" != yes; then
3273 if { ac_try='.
/$ac_file'
3274 { { case "(($ac_try" in
3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3279 $as_echo "$ac_try_echo"; } >&5
3280 (eval "$ac_try") 2>&5
3282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3283 test $ac_status = 0; }; }; then
3286 if test "$cross_compiling" = maybe; then
3289 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3290 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3291 as_fn_error "cannot run C compiled programs.
3292 If you meant to cross compile, use \`--host'.
3293 See \`config.log' for more details.
" "$LINENO" 5; }
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
3298 $as_echo "yes" >&6; }
3300 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3301 ac_clean_files=$ac_clean_files_save
3302 # Check that the compiler produces executables we can run. If not, either
3303 # the compiler is broken, or we cross compile.
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
3305 $as_echo_n "checking whether we are cross compiling...
" >&6; }
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $cross_compiling" >&5
3307 $as_echo "$cross_compiling" >&6; }
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
3310 $as_echo_n "checking
for suffix of executables...
" >&6; }
3311 if { { ac_try="$ac_link"
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3316 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3317 $as_echo "$ac_try_echo"; } >&5
3318 (eval "$ac_link") 2>&5
3320 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3321 test $ac_status = 0; }; then :
3322 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3323 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3324 # work properly (i.e., refer to `conftest.exe'), while it won't with
3326 for ac_file in conftest.exe conftest conftest.*; do
3327 test -f "$ac_file" || continue
3329 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3330 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3336 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3338 as_fn_error "cannot compute suffix of executables: cannot compile and link
3339 See \`config.log' for more details.
" "$LINENO" 5; }
3341 rm -f conftest$ac_cv_exeext
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
3343 $as_echo "$ac_cv_exeext" >&6; }
3345 rm -f conftest.$ac_ext
3346 EXEEXT=$ac_cv_exeext
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of object files
" >&5
3349 $as_echo_n "checking
for suffix of object files...
" >&6; }
3350 if test "${ac_cv_objext+set}" = set; then :
3351 $as_echo_n "(cached
) " >&6
3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354 /* end confdefs.h. */
3364 rm -f conftest.o conftest.obj
3365 if { { ac_try="$ac_compile"
3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
3370 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3371 $as_echo "$ac_try_echo"; } >&5
3372 (eval "$ac_compile") 2>&5
3374 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3375 test $ac_status = 0; }; then :
3376 for ac_file in conftest.o conftest.obj conftest.*; do
3377 test -f "$ac_file" || continue;
3379 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3380 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3385 $as_echo "$as_me: failed program was
:" >&5
3386 sed 's/^/| /' conftest.$ac_ext >&5
3388 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3390 as_fn_error "cannot compute suffix of object files: cannot compile
3391 See \`config.log' for more details.
" "$LINENO" 5; }
3393 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_objext" >&5
3396 $as_echo "$ac_cv_objext" >&6; }
3397 OBJEXT=$ac_cv_objext
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler
" >&5
3400 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3401 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3402 $as_echo_n "(cached
) " >&6
3404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3405 /* end confdefs.h. */
3418 if ac_fn_c_try_compile "$LINENO"; then :
3423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3424 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_compiler_gnu" >&5
3428 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3429 if test $ac_compiler_gnu = yes; then
3434 ac_test_CFLAGS=${CFLAGS+set}
3435 ac_save_CFLAGS=$CFLAGS
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC accepts
-g" >&5
3437 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3438 if test "${ac_cv_prog_cc_g+set}" = set; then :
3439 $as_echo_n "(cached
) " >&6
3441 ac_save_c_werror_flag=$ac_c_werror_flag
3442 ac_c_werror_flag=yes
3445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3446 /* end confdefs.h. */
3456 if ac_fn_c_try_compile "$LINENO"; then :
3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461 /* end confdefs.h. */
3471 if ac_fn_c_try_compile "$LINENO"; then :
3474 ac_c_werror_flag=$ac_save_c_werror_flag
3476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477 /* end confdefs.h. */
3487 if ac_fn_c_try_compile "$LINENO"; then :
3490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3495 ac_c_werror_flag=$ac_save_c_werror_flag
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_g" >&5
3498 $as_echo "$ac_cv_prog_cc_g" >&6; }
3499 if test "$ac_test_CFLAGS" = set; then
3500 CFLAGS=$ac_save_CFLAGS
3501 elif test $ac_cv_prog_cc_g = yes; then
3502 if test "$GCC" = yes; then
3508 if test "$GCC" = yes; then
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $CC option to accept ISO C89
" >&5
3515 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3516 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3517 $as_echo_n "(cached
) " >&6
3519 ac_cv_prog_cc_c89=no
3521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522 /* end confdefs.h. */
3525 #include <sys/types.h>
3526 #include <sys/stat.h>
3527 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3528 struct buf { int x; };
3529 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3530 static char *e (p, i)
3536 static char *f (char * (*g) (char **, int), char **p, ...)
3541 s = g (p, va_arg (v,int));
3546 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3547 function prototypes and stuff, but not '\xHH' hex character constants.
3548 These don't provoke an error unfortunately, instead are silently treated
3549 as 'x'. The following induces an error, until -std is added to get
3550 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3551 array size at least. It's necessary to write '\x00'==0 to get something
3552 that's true only with -std. */
3553 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3555 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3556 inside strings and character constants. */
3558 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3560 int test (int i, double x);
3561 struct s1 {int (*f) (int a);};
3562 struct s2 {int (*f) (double a);};
3563 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3569 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3574 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3575 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3577 CC="$ac_save_CC $ac_arg"
3578 if ac_fn_c_try_compile "$LINENO"; then :
3579 ac_cv_prog_cc_c89=$ac_arg
3581 rm -f core conftest.err conftest.$ac_objext
3582 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3584 rm -f conftest.$ac_ext
3589 case "x
$ac_cv_prog_cc_c89" in
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none needed
" >&5
3592 $as_echo "none needed
" >&6; } ;;
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: unsupported
" >&5
3595 $as_echo "unsupported
" >&6; } ;;
3597 CC="$CC $ac_cv_prog_cc_c89"
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_c89" >&5
3599 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3601 if test "x
$ac_cv_prog_cc_c89" != xno; then :
3606 ac_cpp='$CPP $CPPFLAGS'
3607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3612 for ac_dir in "$srcdir" "$srcdir/..
" "$srcdir/..
/..
"; do
3613 for ac_t in install-sh install.sh shtool; do
3614 if test -f "$ac_dir/$ac_t"; then
3616 ac_install_sh="$ac_aux_dir/$ac_t -c"
3621 if test -z "$ac_aux_dir"; then
3622 as_fn_error "cannot
find install-sh
, install.sh
, or shtool
in \"$srcdir\" \"$srcdir/..
\" \"$srcdir/..
/..
\"" "$LINENO" 5
3625 # These three variables are undocumented and unsupported,
3626 # and are intended to be withdrawn in a future Autoconf release.
3627 # They can cause serious problems if a builder's source tree is in a directory
3628 # whose full name contains unusual characters.
3629 ac_config_guess="$SHELL $ac_aux_dir/config.guess
" # Please don't use this var.
3630 ac_config_sub="$SHELL $ac_aux_dir/config.sub
" # Please don't use this var.
3631 ac_configure="$SHELL $ac_aux_dir/configure
" # Please don't use this var.
3634 # Make sure we can run config.sub.
3635 $SHELL "$ac_aux_dir/config.sub
" sun4 >/dev/null 2>&1 ||
3636 as_fn_error "cannot run
$SHELL $ac_aux_dir/config.sub
" "$LINENO" 5
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system
type" >&5
3639 $as_echo_n "checking build system
type...
" >&6; }
3640 if test "${ac_cv_build+set}" = set; then :
3641 $as_echo_n "(cached
) " >&6
3643 ac_build_alias=$build_alias
3644 test "x
$ac_build_alias" = x &&
3645 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess
"`
3646 test "x
$ac_build_alias" = x &&
3647 as_fn_error "cannot guess build
type; you must specify one
" "$LINENO" 5
3648 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub
" $ac_build_alias` ||
3649 as_fn_error "$SHELL $ac_aux_dir/config.sub
$ac_build_alias failed
" "$LINENO" 5
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_build" >&5
3653 $as_echo "$ac_cv_build" >&6; }
3654 case $ac_cv_build in
3656 *) as_fn_error "invalid value of canonical build
" "$LINENO" 5;;
3659 ac_save_IFS=$IFS; IFS='-'
3665 # Remember, the first character of IFS is used to create $*,
3666 # except with old shells:
3669 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
host system
type" >&5
3673 $as_echo_n "checking
host system
type...
" >&6; }
3674 if test "${ac_cv_host+set}" = set; then :
3675 $as_echo_n "(cached
) " >&6
3677 if test "x
$host_alias" = x; then
3678 ac_cv_host=$ac_cv_build
3680 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub
" $host_alias` ||
3681 as_fn_error "$SHELL $ac_aux_dir/config.sub
$host_alias failed
" "$LINENO" 5
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_host" >&5
3686 $as_echo "$ac_cv_host" >&6; }
3689 *) as_fn_error "invalid value of canonical
host" "$LINENO" 5;;
3692 ac_save_IFS=$IFS; IFS='-'
3698 # Remember, the first character of IFS is used to create $*,
3699 # except with old shells:
3702 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3707 ac_cpp='$CPP $CPPFLAGS'
3708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
3712 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3713 # On Suns, sometimes $CPP names a directory.
3714 if test -n "$CPP" && test -d "$CPP"; then
3717 if test -z "$CPP"; then
3718 if test "${ac_cv_prog_CPP+set}" = set; then :
3719 $as_echo_n "(cached
) " >&6
3721 # Double quotes because CPP needs to be expanded
3722 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3725 for ac_c_preproc_warn_flag in '' yes
3727 # Use a header file that comes with gcc, so configuring glibc
3728 # with a fresh cross-compiler works.
3729 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3730 # <limits.h> exists even on freestanding compilers.
3731 # On the NeXT, cc -E runs the code through the compiler's parser,
3732 # not just through cpp. "Syntax error
" is here to catch this case.
3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h. */
3736 # include <limits.h>
3738 # include <assert.h>
3742 if ac_fn_c_try_cpp "$LINENO"; then :
3745 # Broken: fails on valid input.
3748 rm -f conftest.err conftest.$ac_ext
3750 # OK, works on sane cases. Now check whether nonexistent headers
3751 # can be detected and how.
3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753 /* end confdefs.h. */
3754 #include <ac_nonexistent.h>
3756 if ac_fn_c_try_cpp "$LINENO"; then :
3757 # Broken: success on invalid input.
3760 # Passes both tests.
3764 rm -f conftest.err conftest.$ac_ext
3767 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3768 rm -f conftest.err conftest.$ac_ext
3769 if $ac_preproc_ok; then :
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
3782 $as_echo "$CPP" >&6; }
3784 for ac_c_preproc_warn_flag in '' yes
3786 # Use a header file that comes with gcc, so configuring glibc
3787 # with a fresh cross-compiler works.
3788 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3789 # <limits.h> exists even on freestanding compilers.
3790 # On the NeXT, cc -E runs the code through the compiler's parser,
3791 # not just through cpp. "Syntax error
" is here to catch this case.
3792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793 /* end confdefs.h. */
3795 # include <limits.h>
3797 # include <assert.h>
3801 if ac_fn_c_try_cpp "$LINENO"; then :
3804 # Broken: fails on valid input.
3807 rm -f conftest.err conftest.$ac_ext
3809 # OK, works on sane cases. Now check whether nonexistent headers
3810 # can be detected and how.
3811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812 /* end confdefs.h. */
3813 #include <ac_nonexistent.h>
3815 if ac_fn_c_try_cpp "$LINENO"; then :
3816 # Broken: success on invalid input.
3819 # Passes both tests.
3823 rm -f conftest.err conftest.$ac_ext
3826 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3827 rm -f conftest.err conftest.$ac_ext
3828 if $ac_preproc_ok; then :
3831 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3832 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3833 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3834 See \`config.log' for more details.
" "$LINENO" 5; }
3838 ac_cpp='$CPP $CPPFLAGS'
3839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
3845 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
3846 if test "${ac_cv_path_GREP+set}" = set; then :
3847 $as_echo_n "(cached
) " >&6
3849 if test -z "$GREP"; then
3850 ac_path_GREP_found=false
3851 # Loop through the user's path and test for each of PROGNAME-LIST
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3856 test -z "$as_dir" && as_dir=.
3857 for ac_prog in grep ggrep; do
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3860 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3861 # Check for GNU ac_path_GREP and select it if it is found.
3862 # Check for GNU $ac_path_GREP
3863 case `"$ac_path_GREP" --version 2>&1` in
3865 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3868 $as_echo_n 0123456789 >"conftest.
in"
3871 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3872 mv "conftest.tmp
" "conftest.
in"
3873 cp "conftest.
in" "conftest.
nl"
3874 $as_echo 'GREP' >> "conftest.
nl"
3875 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3876 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3877 as_fn_arith $ac_count + 1 && ac_count=$as_val
3878 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3879 # Best one so far, save it but keep looking for a better one
3880 ac_cv_path_GREP="$ac_path_GREP"
3881 ac_path_GREP_max=$ac_count
3883 # 10*(2^10) chars as input seems more than enough
3884 test $ac_count -gt 10 && break
3886 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3889 $ac_path_GREP_found && break 3
3894 if test -z "$ac_cv_path_GREP"; then
3895 as_fn_error "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3898 ac_cv_path_GREP=$GREP
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
3903 $as_echo "$ac_cv_path_GREP" >&6; }
3904 GREP="$ac_cv_path_GREP"
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
3908 $as_echo_n "checking
for egrep...
" >&6; }
3909 if test "${ac_cv_path_EGREP+set}" = set; then :
3910 $as_echo_n "(cached
) " >&6
3912 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3913 then ac_cv_path_EGREP="$GREP -E"
3915 if test -z "$EGREP"; then
3916 ac_path_EGREP_found=false
3917 # Loop through the user's path and test for each of PROGNAME-LIST
3918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3922 test -z "$as_dir" && as_dir=.
3923 for ac_prog in egrep; do
3924 for ac_exec_ext in '' $ac_executable_extensions; do
3925 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3926 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3927 # Check for GNU ac_path_EGREP and select it if it is found.
3928 # Check for GNU $ac_path_EGREP
3929 case `"$ac_path_EGREP" --version 2>&1` in
3931 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3934 $as_echo_n 0123456789 >"conftest.
in"
3937 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3938 mv "conftest.tmp
" "conftest.
in"
3939 cp "conftest.
in" "conftest.
nl"
3940 $as_echo 'EGREP' >> "conftest.
nl"
3941 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3942 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3943 as_fn_arith $ac_count + 1 && ac_count=$as_val
3944 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3945 # Best one so far, save it but keep looking for a better one
3946 ac_cv_path_EGREP="$ac_path_EGREP"
3947 ac_path_EGREP_max=$ac_count
3949 # 10*(2^10) chars as input seems more than enough
3950 test $ac_count -gt 10 && break
3952 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3955 $ac_path_EGREP_found && break 3
3960 if test -z "$ac_cv_path_EGREP"; then
3961 as_fn_error "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3964 ac_cv_path_EGREP=$EGREP
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
3970 $as_echo "$ac_cv_path_EGREP" >&6; }
3971 EGREP="$ac_cv_path_EGREP"
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
3975 $as_echo_n "checking
for ANSI C header files...
" >&6; }
3976 if test "${ac_cv_header_stdc+set}" = set; then :
3977 $as_echo_n "(cached
) " >&6
3979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3980 /* end confdefs.h. */
3994 if ac_fn_c_try_compile "$LINENO"; then :
3995 ac_cv_header_stdc=yes
3997 ac_cv_header_stdc=no
3999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4001 if test $ac_cv_header_stdc = yes; then
4002 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h. */
4008 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4009 $EGREP "memchr
" >/dev/null 2>&1; then :
4012 ac_cv_header_stdc=no
4018 if test $ac_cv_header_stdc = yes; then
4019 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4021 /* end confdefs.h. */
4025 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4026 $EGREP "free
" >/dev/null 2>&1; then :
4029 ac_cv_header_stdc=no
4035 if test $ac_cv_header_stdc = yes; then
4036 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4037 if test "$cross_compiling" = yes; then :
4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h. */
4044 #if ((' ' & 0x0FF) == 0x020)
4045 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4046 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4048 # define ISLOWER(c) \
4049 (('a' <= (c) && (c) <= 'i') \
4050 || ('j' <= (c) && (c) <= 'r') \
4051 || ('s' <= (c) && (c) <= 'z'))
4052 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4055 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4060 for (i = 0; i < 256; i++)
4061 if (XOR (islower (i), ISLOWER (i))
4062 || toupper (i) != TOUPPER (i))
4067 if ac_fn_c_try_run "$LINENO"; then :
4070 ac_cv_header_stdc=no
4072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4073 conftest.$ac_objext conftest.beam conftest.$ac_ext
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
4079 $as_echo "$ac_cv_header_stdc" >&6; }
4080 if test $ac_cv_header_stdc = yes; then
4082 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4086 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4087 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4088 inttypes.h stdint.h unistd.h
4090 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4091 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4093 eval as_val
=\$
$as_ac_Header
4094 if test "x$as_val" = x
""yes; then :
4095 cat >>confdefs.h
<<_ACEOF
4096 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4107 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4108 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4115 if test "$MINIX" = yes; then
4117 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4120 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4123 $as_echo "#define _MINIX 1" >>confdefs.h
4130 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4137 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4138 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4139 $as_echo_n "(cached) " >&6
4141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4142 /* end confdefs.h. */
4144 # define __EXTENSIONS__ 1
4145 $ac_includes_default
4154 if ac_fn_c_try_compile
"$LINENO"; then :
4155 ac_cv_safe_to_define___extensions__
=yes
4157 ac_cv_safe_to_define___extensions__
=no
4159 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4162 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4163 test $ac_cv_safe_to_define___extensions__ = yes &&
4164 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4166 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4168 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4170 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4172 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4175 if test -n "$ac_tool_prefix"; then
4176 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4177 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4179 $as_echo_n "checking for $ac_word... " >&6; }
4180 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4181 $as_echo_n "(cached) " >&6
4183 if test -n "$RANLIB"; then
4184 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4190 test -z "$as_dir" && as_dir
=.
4191 for ac_exec_ext
in '' $ac_executable_extensions; do
4192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4193 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4203 RANLIB
=$ac_cv_prog_RANLIB
4204 if test -n "$RANLIB"; then
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4206 $as_echo "$RANLIB" >&6; }
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4209 $as_echo "no" >&6; }
4214 if test -z "$ac_cv_prog_RANLIB"; then
4215 ac_ct_RANLIB
=$RANLIB
4216 # Extract the first word of "ranlib", so it can be a program name with args.
4217 set dummy ranlib
; ac_word
=$2
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4219 $as_echo_n "checking for $ac_word... " >&6; }
4220 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4221 $as_echo_n "(cached) " >&6
4223 if test -n "$ac_ct_RANLIB"; then
4224 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4226 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4230 test -z "$as_dir" && as_dir
=.
4231 for ac_exec_ext
in '' $ac_executable_extensions; do
4232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4233 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4243 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4244 if test -n "$ac_ct_RANLIB"; then
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4246 $as_echo "$ac_ct_RANLIB" >&6; }
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4249 $as_echo "no" >&6; }
4252 if test "x$ac_ct_RANLIB" = x
; then
4255 case $cross_compiling:$ac_tool_warned in
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4258 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4259 ac_tool_warned
=yes ;;
4261 RANLIB
=$ac_ct_RANLIB
4264 RANLIB
="$ac_cv_prog_RANLIB"
4275 # Code from module arg-nonnull:
4276 # Code from module c++defs:
4277 # Code from module extensions:
4279 # Code from module include_next:
4280 # Code from module memchr:
4281 # Code from module memmem:
4282 # Code from module memmem-simple:
4283 # Code from module multiarch:
4284 # Code from module stddef:
4285 # Code from module stdint:
4286 # Code from module string:
4287 # Code from module warn-on-use:
4288 # Code from module wchar:
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4291 $as_echo_n "checking target system type... " >&6; }
4292 if test "${ac_cv_target+set}" = set; then :
4293 $as_echo_n "(cached) " >&6
4295 if test "x$target_alias" = x
; then
4296 ac_cv_target
=$ac_cv_host
4298 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4299 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4304 $as_echo "$ac_cv_target" >&6; }
4305 case $ac_cv_target in
4307 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4309 target
=$ac_cv_target
4310 ac_save_IFS
=$IFS; IFS
='-'
4316 # Remember, the first character of IFS is used to create $*,
4317 # except with old shells:
4320 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4323 # The aliases save the names the user supplied, while $host etc.
4324 # will get canonicalized.
4325 test -n "$target_alias" &&
4326 test "$program_prefix$program_suffix$program_transform_name" = \
4328 program_prefix
=${target_alias}-
4330 # The tests for host and target for $enable_largefile require
4335 # As the $enable_largefile decision depends on --enable-plugins we must set it
4336 # even in directories otherwise not depending on the $plugins option.
4339 # Check whether --enable-plugins was given.
4340 if test "${enable_plugins+set}" = set; then :
4341 enableval
=$enable_plugins; case "${enableval}" in
4342 yes |
"") plugins
=yes ;;
4353 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4354 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4355 # are mutually exclusive; and without procfs support, the bfd/ elf module
4356 # cannot provide certain routines such as elfcore_write_prpsinfo
4357 # or elfcore_write_prstatus. So unless the user explicitly requested
4358 # large-file support through the --enable-largefile switch, disable
4359 # large-file support in favor of procfs support.
4360 test "${target}" = "${host}" -a "x$plugins" = xno \
4361 && : ${enable_largefile="no"}
4365 # Check whether --enable-largefile was given.
4366 if test "${enable_largefile+set}" = set; then :
4367 enableval
=$enable_largefile;
4370 if test "$enable_largefile" != no
; then
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4373 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4374 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4375 $as_echo_n "(cached) " >&6
4377 ac_cv_sys_largefile_CC
=no
4378 if test "$GCC" != yes; then
4381 # IRIX 6.2 and later do not support large files by default,
4382 # so use the C compiler's -n32 option if that helps.
4383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4384 /* end confdefs.h. */
4385 #include <sys/types.h>
4386 /* Check that off_t can represent 2**63 - 1 correctly.
4387 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4388 since some C++ compilers masquerading as C compilers
4389 incorrectly reject 9223372036854775807. */
4390 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4391 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4392 && LARGE_OFF_T % 2147483647 == 1)
4402 if ac_fn_c_try_compile
"$LINENO"; then :
4405 rm -f core conftest.err conftest.
$ac_objext
4407 if ac_fn_c_try_compile
"$LINENO"; then :
4408 ac_cv_sys_largefile_CC
=' -n32'; break
4410 rm -f core conftest.err conftest.
$ac_objext
4414 rm -f conftest.
$ac_ext
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4418 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4419 if test "$ac_cv_sys_largefile_CC" != no
; then
4420 CC
=$CC$ac_cv_sys_largefile_CC
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4424 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4425 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4426 $as_echo_n "(cached) " >&6
4429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4430 /* end confdefs.h. */
4431 #include <sys/types.h>
4432 /* Check that off_t can represent 2**63 - 1 correctly.
4433 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4434 since some C++ compilers masquerading as C compilers
4435 incorrectly reject 9223372036854775807. */
4436 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4437 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4438 && LARGE_OFF_T % 2147483647 == 1)
4448 if ac_fn_c_try_compile
"$LINENO"; then :
4449 ac_cv_sys_file_offset_bits
=no
; break
4451 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4453 /* end confdefs.h. */
4454 #define _FILE_OFFSET_BITS 64
4455 #include <sys/types.h>
4456 /* Check that off_t can represent 2**63 - 1 correctly.
4457 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4458 since some C++ compilers masquerading as C compilers
4459 incorrectly reject 9223372036854775807. */
4460 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4461 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4462 && LARGE_OFF_T % 2147483647 == 1)
4472 if ac_fn_c_try_compile
"$LINENO"; then :
4473 ac_cv_sys_file_offset_bits
=64; break
4475 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4476 ac_cv_sys_file_offset_bits
=unknown
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4481 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4482 case $ac_cv_sys_file_offset_bits in #(
4485 cat >>confdefs.h
<<_ACEOF
4486 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4491 if test $ac_cv_sys_file_offset_bits = unknown
; then
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4493 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4494 if test "${ac_cv_sys_large_files+set}" = set; then :
4495 $as_echo_n "(cached) " >&6
4498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4499 /* end confdefs.h. */
4500 #include <sys/types.h>
4501 /* Check that off_t can represent 2**63 - 1 correctly.
4502 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4503 since some C++ compilers masquerading as C compilers
4504 incorrectly reject 9223372036854775807. */
4505 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4506 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4507 && LARGE_OFF_T % 2147483647 == 1)
4517 if ac_fn_c_try_compile
"$LINENO"; then :
4518 ac_cv_sys_large_files
=no
; break
4520 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4522 /* end confdefs.h. */
4523 #define _LARGE_FILES 1
4524 #include <sys/types.h>
4525 /* Check that off_t can represent 2**63 - 1 correctly.
4526 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4527 since some C++ compilers masquerading as C compilers
4528 incorrectly reject 9223372036854775807. */
4529 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4530 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4531 && LARGE_OFF_T % 2147483647 == 1)
4541 if ac_fn_c_try_compile
"$LINENO"; then :
4542 ac_cv_sys_large_files
=1; break
4544 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4545 ac_cv_sys_large_files
=unknown
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4550 $as_echo "$ac_cv_sys_large_files" >&6; }
4551 case $ac_cv_sys_large_files in #(
4554 cat >>confdefs.h
<<_ACEOF
4555 #define _LARGE_FILES $ac_cv_sys_large_files
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4568 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4569 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4570 $as_echo_n "(cached) " >&6
4572 am_cv_prog_cc_stdc
=no
4574 # Don't try gcc -ansi; that turns off useful extensions and
4575 # breaks some systems' header files.
4576 # AIX -qlanglvl=ansi
4577 # Ultrix and OSF/1 -std1
4578 # HP-UX 10.20 and later -Ae
4579 # HP-UX older versions -Aa -D_HPUX_SOURCE
4580 # SVR4 -Xc -D__EXTENSIONS__
4581 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4583 CC
="$ac_save_CC $ac_arg"
4584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h. */
4588 #include <sys/types.h>
4589 #include <sys/stat.h>
4590 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4591 struct buf { int x; };
4592 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4593 static char *e (p, i)
4599 static char *f (char * (*g) (char **, int), char **p, ...)
4604 s = g (p, va_arg (v,int));
4608 int test (int i, double x);
4609 struct s1 {int (*f) (int a);};
4610 struct s2 {int (*f) (double a);};
4611 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4619 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4625 if ac_fn_c_try_compile
"$LINENO"; then :
4626 am_cv_prog_cc_stdc
="$ac_arg"; break
4628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4634 if test -z "$am_cv_prog_cc_stdc"; then
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4636 $as_echo "none needed" >&6; }
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4639 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4641 case "x$am_cv_prog_cc_stdc" in
4643 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4648 for ac_dir
in ..
"$srcdir"/..
; do
4649 for ac_t
in install-sh
install.sh shtool
; do
4650 if test -f "$ac_dir/$ac_t"; then
4652 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4657 if test -z "$ac_aux_dir"; then
4658 as_fn_error
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4661 # These three variables are undocumented and unsupported,
4662 # and are intended to be withdrawn in a future Autoconf release.
4663 # They can cause serious problems if a builder's source tree is in a directory
4664 # whose full name contains unusual characters.
4665 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4666 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4667 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4672 # Dependency checking.
4673 rm -rf .tst
2>/dev
/null
4674 mkdir .tst
2>/dev
/null
4675 if test -d .tst
; then
4680 rmdir .tst
2>/dev
/null
4682 DEPDIR
="${am__leading_dot}deps"
4684 ac_config_commands
="$ac_config_commands depdir"
4687 depcc
="$CC" am_compiler_list
=
4689 am_depcomp
=$ac_aux_dir/depcomp
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4691 $as_echo_n "checking dependency style of $depcc... " >&6; }
4692 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4693 $as_echo_n "(cached) " >&6
4695 if test -f "$am_depcomp"; then
4696 # We make a subdir and do the tests there. Otherwise we can end up
4697 # making bogus files that we don't know about and never remove. For
4698 # instance it was reported that on HP-UX the gcc test will end up
4699 # making a dummy file named `D' -- because `-MD' means `put the output
4702 # Copy depcomp to subdir because otherwise we won't find it if we're
4703 # using a relative directory.
4704 cp "$am_depcomp" conftest.dir
4706 # We will build objects and dependencies in a subdirectory because
4707 # it helps to detect inapplicable dependency modes. For instance
4708 # both Tru64's cc and ICC support -MD to output dependencies as a
4709 # side effect of compilation, but ICC will put the dependencies in
4710 # the current directory while Tru64 will put them in the object
4714 am_cv_CC_dependencies_compiler_type
=none
4715 if test "$am_compiler_list" = ""; then
4716 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4718 for depmode
in $am_compiler_list; do
4719 if test $depmode = none
; then break; fi
4721 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4722 # Setup a source with many dependencies, because some compilers
4723 # like to wrap large dependency lists on column 80 (with \), and
4724 # we should not choose a depcomp mode which is confused by this.
4726 # We need to recreate these files for each test, as the compiler may
4727 # overwrite some of them when testing with obscure command lines.
4728 # This happens at least with the AIX C compiler.
4730 for i
in 1 2 3 4 5 6; do
4731 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4732 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4733 # Solaris 8's {/usr,}/bin/sh.
4734 touch sub
/conftst
$i.h
4736 echo "include sub/conftest.Po" > confmf
4738 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4739 # mode. It turns out that the SunPro C++ compiler does not properly
4740 # handle `-M -o', and we need to detect this.
4741 depcmd
="depmode=$depmode \
4742 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4743 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4744 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4745 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
4746 if env
$depcmd > conftest.err
2>&1 &&
4747 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
4748 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
4749 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
4750 # icc doesn't choke on unknown options, it will just issue warnings
4751 # or remarks (even with -Werror). So we grep stderr for any message
4752 # that says an option was ignored or not supported.
4753 # When given -MP, icc 7.0 and 7.1 complain thusly:
4754 # icc: Command line warning: ignoring option '-M'; no argument required
4755 # The diagnosis changed in icc 8.0:
4756 # icc: Command line remark: option '-MP' not supported
4757 if (grep 'ignoring option' conftest.err ||
4758 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4759 am_cv_CC_dependencies_compiler_type
=$depmode
4760 $as_echo "$as_me:$LINENO: success" >&5
4764 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4765 sed -e 's/^/| /' < conftest.err
>&5
4771 am_cv_CC_dependencies_compiler_type
=none
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4776 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4777 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
4778 then as_fn_error
"no usable dependency style found" "$LINENO" 5
4779 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4784 # Check for the 'make' the user wants to use.
4787 # Extract the first word of "$ac_prog", so it can be a program name with args.
4788 set dummy
$ac_prog; ac_word
=$2
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4790 $as_echo_n "checking for $ac_word... " >&6; }
4791 if test "${ac_cv_prog_MAKE+set}" = set; then :
4792 $as_echo_n "(cached) " >&6
4794 if test -n "$MAKE"; then
4795 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
4797 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4801 test -z "$as_dir" && as_dir
=.
4802 for ac_exec_ext
in '' $ac_executable_extensions; do
4803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4804 ac_cv_prog_MAKE
="$ac_prog"
4805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4814 MAKE
=$ac_cv_prog_MAKE
4815 if test -n "$MAKE"; then
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4817 $as_echo "$MAKE" >&6; }
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4820 $as_echo "no" >&6; }
4824 test -n "$MAKE" && break
4828 case "`$MAKE --version 2>&1 | sed 1q`" in
4833 if test "$MAKE_IS_GNU" = yes; then
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4842 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4844 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4845 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4846 $as_echo_n "(cached) " >&6
4848 cat >conftest.
make <<\_ACEOF
4851 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4853 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4854 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4856 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4858 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4862 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4864 $as_echo "yes" >&6; }
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4868 $as_echo "no" >&6; }
4869 SET_MAKE
="MAKE=${MAKE-make}"
4884 # If we haven't got the data from the intl directory,
4885 # assume NLS is disabled.
4894 if test -f ..
/intl
/config.intl
; then
4895 . ..
/intl
/config.intl
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4898 $as_echo_n "checking whether NLS is requested... " >&6; }
4899 if test x
"$USE_NLS" != xyes
; then
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4901 $as_echo "no" >&6; }
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4904 $as_echo "yes" >&6; }
4906 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4910 $as_echo_n "checking for catalogs to be installed... " >&6; }
4911 # Look for .po and .gmo files in the source directory.
4914 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
4915 # If there aren't any .gmo files the shell will give us the
4916 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4918 case "$cat" in *\
**)
4921 # The quadruple backslash is collapsed to a double backslash
4922 # by the backticks, then collapsed again by the double quotes,
4923 # leaving us with one backslash in the sed expression (right
4924 # before the dot that mustn't act as a wildcard).
4925 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4926 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
4927 # The user is allowed to set LINGUAS to a list of languages to
4928 # install catalogs for. If it's empty that means "all of them."
4929 if test "x$LINGUAS" = x
; then
4930 CATALOGS
="$CATALOGS $cat"
4931 XLINGUAS
="$XLINGUAS $lang"
4933 case "$LINGUAS" in *$lang*)
4934 CATALOGS
="$CATALOGS $cat"
4935 XLINGUAS
="$XLINGUAS $lang"
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4942 $as_echo "$LINGUAS" >&6; }
4955 localedir
='${datadir}/locale'
4958 if test x
"$USE_NLS" = xyes
; then
4959 CONFIG_ALL
="$CONFIG_ALL all-po"
4960 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
4961 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
4962 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
4969 LIBC_FATAL_STDERR_
=1
4970 export LIBC_FATAL_STDERR_
4976 for ac_header
in $gl_header_list
4978 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4979 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4980 eval as_val
=\$
$as_ac_Header
4981 if test "x$as_val" = x
""yes; then :
4982 cat >>confdefs.h
<<_ACEOF
4983 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4998 for ac_func
in $gl_func_list
5000 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5001 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5002 eval as_val
=\$
$as_ac_var
5003 if test "x$as_val" = x
""yes; then :
5004 cat >>confdefs.h
<<_ACEOF
5005 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5031 GNULIB_STRCASESTR
=0;
5038 GNULIB_MBSCASECMP
=0;
5039 GNULIB_MBSNCASECMP
=0;
5040 GNULIB_MBSPCASECMP
=0;
5041 GNULIB_MBSCASESTR
=0;
5049 GNULIB_STRVERSCMP
=0;
5054 HAVE_DECL_MEMRCHR
=1;
5060 HAVE_DECL_STRNDUP
=1;
5061 HAVE_DECL_STRNLEN
=1;
5065 HAVE_DECL_STRTOK_R
=1;
5066 HAVE_DECL_STRSIGNAL
=1;
5073 REPLACE_STRCASESTR
=0;
5078 REPLACE_STRSIGNAL
=0;
5080 UNDEFINE_STRTOK_R
=0;
5094 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
5095 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
5096 # irrelevant for anonymous mappings.
5097 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
5098 if test "x$ac_cv_func_mmap" = x
""yes; then :
5105 # Try to allow MAP_ANONYMOUS.
5106 gl_have_mmap_anonymous
=no
5107 if test $gl_have_mmap = yes; then
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
5109 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
5110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5111 /* end confdefs.h. */
5113 #include <sys/mman.h>
5114 #ifdef MAP_ANONYMOUS
5115 I cant identify this map.
5119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5120 $EGREP "I cant identify this map." >/dev
/null
2>&1; then :
5121 gl_have_mmap_anonymous
=yes
5125 if test $gl_have_mmap_anonymous != yes; then
5126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5127 /* end confdefs.h. */
5129 #include <sys/mman.h>
5131 I cant identify this map.
5135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5136 $EGREP "I cant identify this map." >/dev
/null
2>&1; then :
5138 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
5140 gl_have_mmap_anonymous
=yes
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
5146 $as_echo "$gl_have_mmap_anonymous" >&6; }
5147 if test $gl_have_mmap_anonymous = yes; then
5149 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
5177 if test $ac_cv_func_memchr = yes; then
5178 # Detect platform-specific bugs in some versions of glibc:
5179 # memchr should not dereference anything with length 0
5180 # http://bugzilla.redhat.com/499689
5181 # memchr should not dereference overestimated length after a match
5182 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
5183 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
5184 # Assume that memchr works on platforms that lack mprotect.
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
5186 $as_echo_n "checking whether memchr works... " >&6; }
5187 if test "${gl_cv_func_memchr_works+set}" = set; then :
5188 $as_echo_n "(cached) " >&6
5190 if test "$cross_compiling" = yes; then :
5191 gl_cv_func_memchr_works
="guessing no"
5193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5194 /* end confdefs.h. */
5199 # include <unistd.h>
5200 # include <sys/types.h>
5201 # include <sys/mman.h>
5212 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
5213 # if HAVE_MAP_ANONYMOUS
5214 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
5216 # else /* !HAVE_MAP_ANONYMOUS */
5217 const int flags = MAP_FILE | MAP_PRIVATE;
5218 int fd = open ("/dev/zero", O_RDONLY, 0666);
5222 int pagesize = getpagesize ();
5224 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
5226 if (two_pages != (char *)(-1)
5227 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
5228 fence = two_pages + pagesize;
5233 if (memchr (fence, 0, 0))
5235 strcpy (fence - 9, "12345678");
5236 if (memchr (fence - 9, 0, 79) != fence - 1)
5245 if ac_fn_c_try_run
"$LINENO"; then :
5246 gl_cv_func_memchr_works
=yes
5248 gl_cv_func_memchr_works
=no
5250 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5251 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
5256 $as_echo "$gl_cv_func_memchr_works" >&6; }
5257 if test "$gl_cv_func_memchr_works" != yes; then
5263 if test $HAVE_MEMCHR = 0 ||
test $REPLACE_MEMCHR = 1; then
5272 gl_LIBOBJS
="$gl_LIBOBJS memchr.$ac_objext"
5275 for ac_header
in bp-sym.h
5277 ac_fn_c_check_header_mongrel
"$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
5278 if test "x$ac_cv_header_bp_sym_h" = x
""yes; then :
5279 cat >>confdefs.h
<<_ACEOF
5280 #define HAVE_BP_SYM_H 1
5291 ac_fn_c_check_decl
"$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
5292 if test "x$ac_cv_have_decl_memmem" = x
""yes; then :
5298 cat >>confdefs.h
<<_ACEOF
5299 #define HAVE_DECL_MEMMEM $ac_have_decl
5315 for ac_func
in memmem
5317 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
5318 if test "x$ac_cv_func_memmem" = x
""yes; then :
5319 cat >>confdefs.h
<<_ACEOF
5320 #define HAVE_MEMMEM 1
5325 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
5338 if test $ac_cv_have_decl_memmem = no
; then
5344 gl_cv_c_multiarch
=no
5345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5346 /* end confdefs.h. */
5347 #ifndef __APPLE_CC__
5348 not a universal capable compiler
5353 if ac_fn_c_try_compile
"$LINENO"; then :
5357 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
5358 if test -n "$prev"; then
5360 i?
86 | x86_64 | ppc | ppc64
)
5361 if test -z "$arch" ||
test "$arch" = "$word"; then
5364 gl_cv_c_multiarch
=yes
5370 if test "x$word" = "x-arch"; then
5377 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5378 if test $gl_cv_c_multiarch = yes; then
5380 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5382 APPLE_UNIVERSAL_BUILD
=1
5384 APPLE_UNIVERSAL_BUILD
=0
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
5395 $as_echo_n "checking for wchar_t... " >&6; }
5396 if test "${gt_cv_c_wchar_t+set}" = set; then :
5397 $as_echo_n "(cached) " >&6
5399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5400 /* end confdefs.h. */
5402 wchar_t foo = (wchar_t)'\0';
5411 if ac_fn_c_try_compile
"$LINENO"; then :
5416 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
5419 $as_echo "$gt_cv_c_wchar_t" >&6; }
5420 if test $gt_cv_c_wchar_t = yes; then
5422 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5429 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5430 if test "${gl_cv_have_include_next+set}" = set; then :
5431 $as_echo_n "(cached) " >&6
5433 rm -rf conftestd1a conftestd1b conftestd2
5434 mkdir conftestd1a conftestd1b conftestd2
5435 cat <<EOF > conftestd1a/conftest.h
5436 #define DEFINED_IN_CONFTESTD1
5437 #include_next <conftest.h>
5438 #ifdef DEFINED_IN_CONFTESTD2
5441 #error "include_next doesn't work"
5444 cat <<EOF > conftestd1b/conftest.h
5445 #define DEFINED_IN_CONFTESTD1
5447 #include_next <conftest.h>
5448 #ifdef DEFINED_IN_CONFTESTD2
5451 #error "include_next doesn't work"
5454 cat <<EOF > conftestd2/conftest.h
5455 #ifndef DEFINED_IN_CONFTESTD1
5456 #error "include_next test doesn't work"
5458 #define DEFINED_IN_CONFTESTD2
5460 gl_save_CPPFLAGS
="$CPPFLAGS"
5461 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5463 /* end confdefs.h. */
5464 #include <conftest.h>
5466 if ac_fn_c_try_compile
"$LINENO"; then :
5467 gl_cv_have_include_next
=yes
5469 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5471 /* end confdefs.h. */
5472 #include <conftest.h>
5474 if ac_fn_c_try_compile
"$LINENO"; then :
5475 gl_cv_have_include_next
=buggy
5477 gl_cv_have_include_next
=no
5479 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5483 CPPFLAGS
="$gl_save_CPPFLAGS"
5484 rm -rf conftestd1a conftestd1b conftestd2
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5488 $as_echo "$gl_cv_have_include_next" >&6; }
5489 PRAGMA_SYSTEM_HEADER
=
5490 if test $gl_cv_have_include_next = yes; then
5491 INCLUDE_NEXT
=include_next
5492 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
5493 if test -n "$GCC"; then
5494 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
5497 if test $gl_cv_have_include_next = buggy
; then
5498 INCLUDE_NEXT
=include
5499 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
5501 INCLUDE_NEXT
=include
5502 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5516 $as_echo_n "checking for long long int... " >&6; }
5517 if test "${ac_cv_type_long_long_int+set}" = set; then :
5518 $as_echo_n "(cached) " >&6
5520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5521 /* end confdefs.h. */
5523 /* For now, do not test the preprocessor; as of 2007 there are too many
5524 implementations with broken preprocessors. Perhaps this can
5525 be revisited in 2012. In the meantime, code should not expect
5526 #if to work with literals wider than 32 bits. */
5527 /* Test literals. */
5528 long long int ll = 9223372036854775807ll;
5529 long long int nll = -9223372036854775807LL;
5530 unsigned long long int ull = 18446744073709551615ULL;
5531 /* Test constant expressions. */
5532 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5534 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5540 /* Test availability of runtime routines for shift and division. */
5541 long long int llmax = 9223372036854775807ll;
5542 unsigned long long int ullmax = 18446744073709551615ull;
5543 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5544 | (llmax / ll) | (llmax % ll)
5545 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5546 | (ullmax / ull) | (ullmax % ull));
5552 if ac_fn_c_try_link
"$LINENO"; then :
5553 if test "$cross_compiling" = yes; then :
5554 ac_cv_type_long_long_int
=yes
5556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5557 /* end confdefs.h. */
5561 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5562 # define LLONG_MAX (HALF - 1 + HALF)
5567 long long int n = 1;
5571 long long int m = n << i;
5574 if (LLONG_MAX / 2 < m)
5582 if ac_fn_c_try_run
"$LINENO"; then :
5583 ac_cv_type_long_long_int
=yes
5585 ac_cv_type_long_long_int
=no
5587 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5588 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5592 ac_cv_type_long_long_int
=no
5594 rm -f core conftest.err conftest.
$ac_objext \
5595 conftest
$ac_exeext conftest.
$ac_ext
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5598 $as_echo "$ac_cv_type_long_long_int" >&6; }
5599 if test $ac_cv_type_long_long_int = yes; then
5601 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5607 $as_echo_n "checking for unsigned long long int... " >&6; }
5608 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5609 $as_echo_n "(cached) " >&6
5611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5612 /* end confdefs.h. */
5614 /* For now, do not test the preprocessor; as of 2007 there are too many
5615 implementations with broken preprocessors. Perhaps this can
5616 be revisited in 2012. In the meantime, code should not expect
5617 #if to work with literals wider than 32 bits. */
5618 /* Test literals. */
5619 long long int ll = 9223372036854775807ll;
5620 long long int nll = -9223372036854775807LL;
5621 unsigned long long int ull = 18446744073709551615ULL;
5622 /* Test constant expressions. */
5623 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5625 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5631 /* Test availability of runtime routines for shift and division. */
5632 long long int llmax = 9223372036854775807ll;
5633 unsigned long long int ullmax = 18446744073709551615ull;
5634 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5635 | (llmax / ll) | (llmax % ll)
5636 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5637 | (ullmax / ull) | (ullmax % ull));
5643 if ac_fn_c_try_link
"$LINENO"; then :
5644 ac_cv_type_unsigned_long_long_int
=yes
5646 ac_cv_type_unsigned_long_long_int
=no
5648 rm -f core conftest.err conftest.
$ac_objext \
5649 conftest
$ac_exeext conftest.
$ac_ext
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5652 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5653 if test $ac_cv_type_unsigned_long_long_int = yes; then
5655 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
5670 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
5671 if test "${ac_cv_c_restrict+set}" = set; then :
5672 $as_echo_n "(cached) " >&6
5675 # The order here caters to the fact that C++ does not require restrict.
5676 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
5677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5678 /* end confdefs.h. */
5679 typedef int * int_ptr;
5680 int foo (int_ptr $ac_kw ip) {
5694 if ac_fn_c_try_compile
"$LINENO"; then :
5695 ac_cv_c_restrict
=$ac_kw
5697 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5698 test "$ac_cv_c_restrict" != no
&& break
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5703 $as_echo "$ac_cv_c_restrict" >&6; }
5705 case $ac_cv_c_restrict in
5707 no
) $as_echo "#define restrict /**/" >>confdefs.h
5709 *) cat >>confdefs.h
<<_ACEOF
5710 #define restrict $ac_cv_c_restrict
5735 if test $gl_cv_have_include_next = yes; then
5736 gl_cv_next_string_h
='<'string.h
'>'
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
5739 $as_echo_n "checking absolute name of <string.h>... " >&6; }
5740 if test "${gl_cv_next_string_h+set}" = set; then :
5741 $as_echo_n "(cached) " >&6
5744 if test $ac_cv_header_string_h = yes; then
5745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5746 /* end confdefs.h. */
5751 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
5752 *) gl_absname_cpp
="$ac_cpp" ;;
5754 gl_cv_next_string_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5755 sed -n '\#/string.h#{
5756 s#.*"\(.*/string.h\)".*#\1#
5762 gl_cv_next_string_h
='<'string.h
'>'
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
5767 $as_echo "$gl_cv_next_string_h" >&6; }
5769 NEXT_STRING_H
=$gl_cv_next_string_h
5771 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
5772 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5773 gl_next_as_first_directive
='<'string.h
'>'
5775 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5776 gl_next_as_first_directive
=$gl_cv_next_string_h
5778 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
5784 for gl_func
in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp
; do
5785 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
5787 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
5788 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
5789 $as_echo_n "(cached) " >&6
5791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5792 /* end confdefs.h. */
5804 if ac_fn_c_try_compile
"$LINENO"; then :
5805 eval "$as_gl_Symbol=yes"
5807 eval "$as_gl_Symbol=no"
5809 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5811 eval ac_res
=\$
$as_gl_Symbol
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5813 $as_echo "$ac_res" >&6; }
5814 eval as_val
=\$
$as_gl_Symbol
5815 if test "x$as_val" = x
""yes; then :
5816 cat >>confdefs.h
<<_ACEOF
5817 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
5820 eval ac_cv_have_decl_
$gl_func=yes
5832 GNULIB_MBSNRTOWCS
=0;
5835 GNULIB_WCSNRTOMBS
=0;
5847 HAVE_DECL_WCWIDTH
=1;
5848 REPLACE_MBSTATE_T
=0;
5854 REPLACE_MBSRTOWCS
=0;
5855 REPLACE_MBSNRTOWCS
=0;
5857 REPLACE_WCSRTOMBS
=0;
5858 REPLACE_WCSNRTOMBS
=0;
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
5863 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
5864 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
5865 $as_echo_n "(cached) " >&6
5867 gl_cv_header_wchar_h_correct_inline
=yes
5868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5869 /* end confdefs.h. */
5871 #define wcstod renamed_wcstod
5873 extern int zero (void);
5874 int main () { return zero(); }
5877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5878 (eval $ac_compile) 2>&5
5880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5881 test $ac_status = 0; }; then
5882 mv conftest.
$ac_objext conftest1.
$ac_objext
5883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5884 /* end confdefs.h. */
5886 #define wcstod renamed_wcstod
5888 int zero (void) { return 0; }
5891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5892 (eval $ac_compile) 2>&5
5894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5895 test $ac_status = 0; }; then
5896 mv conftest.
$ac_objext conftest2.
$ac_objext
5897 if $CC -o conftest
$ac_exeext $CFLAGS $LDFLAGS conftest1.
$ac_objext conftest2.
$ac_objext $LIBS >&5 2>&1; then
5900 gl_cv_header_wchar_h_correct_inline
=no
5904 rm -f conftest1.
$ac_objext conftest2.
$ac_objext conftest
$ac_exeext
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
5908 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
5909 if test $gl_cv_header_wchar_h_correct_inline = no
; then
5910 as_fn_error
"<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
5911 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
5912 C99 mode. You have four options:
5913 - Add the flag -fgnu89-inline to CC and reconfigure, or
5914 - Fix your include files, using parts of
5915 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
5916 - Use a gcc version older than 4.3, or
5917 - Don't use the flags -std=c99 or -std=gnu99.
5918 Configuration aborted." "$LINENO" 5
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
5923 $as_echo_n "checking for wint_t... " >&6; }
5924 if test "${gt_cv_c_wint_t+set}" = set; then :
5925 $as_echo_n "(cached) " >&6
5927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5928 /* end confdefs.h. */
5930 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5932 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
5933 before <wchar.h>. */
5938 wint_t foo = (wchar_t)'\0';
5947 if ac_fn_c_try_compile
"$LINENO"; then :
5952 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
5955 $as_echo "$gt_cv_c_wint_t" >&6; }
5956 if test $gt_cv_c_wint_t = yes; then
5958 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
5964 GL_COND_LIBTOOL_TRUE
=
5965 GL_COND_LIBTOOL_FALSE
='#'
5967 GL_COND_LIBTOOL_TRUE
='#'
5968 GL_COND_LIBTOOL_FALSE
=
5971 gl_cond_libtool
=false
5974 gl_m4_base
='gnulib/m4'
5984 gl_source_base
='gnulib'
5985 # Code from module arg-nonnull:
5986 # Code from module c++defs:
5987 # Code from module extensions:
5988 # Code from module include_next:
5989 # Code from module memchr:
5998 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
6002 # Code from module memmem:
6005 if test $ac_cv_have_decl_memmem = yes; then
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
6007 $as_echo_n "checking whether memmem works in linear time... " >&6; }
6008 if test "${gl_cv_func_memmem_works+set}" = set; then :
6009 $as_echo_n "(cached) " >&6
6011 if test "$cross_compiling" = yes; then :
6012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6013 /* end confdefs.h. */
6015 #include <features.h>
6016 #ifdef __GNU_LIBRARY__
6017 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)
6022 #include <cygwin/version.h>
6023 #if CYGWIN_VERSION_DLL_MAJOR >= 1007
6029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6030 $EGREP "Lucky user" >/dev
/null
2>&1; then :
6031 gl_cv_func_memmem_works
=yes
6033 gl_cv_func_memmem_works
="guessing no"
6039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6040 /* end confdefs.h. */
6042 #include <signal.h> /* for signal */
6043 #include <string.h> /* for memmem */
6044 #include <stdlib.h> /* for malloc */
6045 #include <unistd.h> /* for alarm */
6051 char *haystack = (char *) malloc (2 * m + 1);
6052 char *needle = (char *) malloc (m + 1);
6054 /* Failure to compile this test due to missing alarm is okay,
6055 since all such platforms (mingw) also lack memmem. */
6056 signal (SIGALRM, SIG_DFL);
6058 /* Check for quadratic performance. */
6059 if (haystack && needle)
6061 memset (haystack, 'A', 2 * m);
6062 haystack[2 * m] = 'B';
6063 memset (needle, 'A', m);
6065 result = memmem (haystack, 2 * m + 1, needle, m + 1);
6067 /* Check for empty needle behavior. */
6068 return !result || !memmem ("a", 1, 0, 0);
6073 if ac_fn_c_try_run
"$LINENO"; then :
6074 gl_cv_func_memmem_works
=yes
6076 gl_cv_func_memmem_works
=no
6078 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6079 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works" >&5
6085 $as_echo "$gl_cv_func_memmem_works" >&6; }
6086 if test "$gl_cv_func_memmem_works" != yes; then
6096 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
6101 # Code from module memmem-simple:
6114 for ac_func
in memmem
6116 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
6117 if test "x$ac_cv_func_memmem" = x
""yes; then :
6118 cat >>confdefs.h
<<_ACEOF
6119 #define HAVE_MEMMEM 1
6124 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
6137 if test $ac_cv_have_decl_memmem = no
; then
6149 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
6153 # Code from module multiarch:
6155 # Code from module stddef:
6159 if test $gt_cv_c_wchar_t = no
; then
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
6164 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
6165 if test "${gl_cv_decl_null_works+set}" = set; then :
6166 $as_echo_n "(cached) " >&6
6168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6169 /* end confdefs.h. */
6171 int test[2 * (sizeof NULL == sizeof (void *)) -1];
6181 if ac_fn_c_try_compile
"$LINENO"; then :
6182 gl_cv_decl_null_works
=yes
6184 gl_cv_decl_null_works
=no
6186 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
6189 $as_echo "$gl_cv_decl_null_works" >&6; }
6190 if test $gl_cv_decl_null_works = no
; then
6194 if test -n "$STDDEF_H"; then
6207 if test $gl_cv_have_include_next = yes; then
6208 gl_cv_next_stddef_h
='<'stddef.h
'>'
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
6211 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
6212 if test "${gl_cv_next_stddef_h+set}" = set; then :
6213 $as_echo_n "(cached) " >&6
6216 if test $ac_cv_header_stddef_h = yes; then
6217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6218 /* end confdefs.h. */
6223 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
6224 *) gl_absname_cpp
="$ac_cpp" ;;
6226 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6227 sed -n '\#/stddef.h#{
6228 s#.*"\(.*/stddef.h\)".*#\1#
6234 gl_cv_next_stddef_h
='<'stddef.h
'>'
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
6239 $as_echo "$gl_cv_next_stddef_h" >&6; }
6241 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
6243 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
6244 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6245 gl_next_as_first_directive
='<'stddef.h
'>'
6247 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6248 gl_next_as_first_directive
=$gl_cv_next_stddef_h
6250 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
6256 # Code from module stdint:
6260 if test $ac_cv_type_long_long_int = yes; then
6261 HAVE_LONG_LONG_INT
=1
6263 HAVE_LONG_LONG_INT
=0
6267 if test $ac_cv_type_unsigned_long_long_int = yes; then
6268 HAVE_UNSIGNED_LONG_LONG_INT
=1
6270 HAVE_UNSIGNED_LONG_LONG_INT
=0
6274 if test $ac_cv_header_inttypes_h = yes; then
6281 if test $ac_cv_header_sys_types_h = yes; then
6300 if test $gl_cv_have_include_next = yes; then
6301 gl_cv_next_stdint_h
='<'stdint.h
'>'
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6304 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6305 if test "${gl_cv_next_stdint_h+set}" = set; then :
6306 $as_echo_n "(cached) " >&6
6309 if test $ac_cv_header_stdint_h = yes; then
6310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6311 /* end confdefs.h. */
6316 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
6317 *) gl_absname_cpp
="$ac_cpp" ;;
6319 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6320 sed -n '\#/stdint.h#{
6321 s#.*"\(.*/stdint.h\)".*#\1#
6327 gl_cv_next_stdint_h
='<'stdint.h
'>'
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6332 $as_echo "$gl_cv_next_stdint_h" >&6; }
6334 NEXT_STDINT_H
=$gl_cv_next_stdint_h
6336 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
6337 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6338 gl_next_as_first_directive
='<'stdint.h
'>'
6340 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6341 gl_next_as_first_directive
=$gl_cv_next_stdint_h
6343 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
6347 if test $ac_cv_header_stdint_h = yes; then
6354 if test $ac_cv_header_stdint_h = yes; then
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
6356 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
6357 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
6358 $as_echo_n "(cached) " >&6
6360 gl_cv_header_working_stdint_h
=no
6361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6362 /* end confdefs.h. */
6365 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6366 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6367 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6369 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
6370 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
6371 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
6375 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6376 included before <wchar.h>. */
6387 int8_t a1 = INT8_MAX;
6388 int8_t a1min = INT8_MIN;
6391 int16_t a2 = INT16_MAX;
6392 int16_t a2min = INT16_MIN;
6395 int32_t a3 = INT32_MAX;
6396 int32_t a3min = INT32_MIN;
6399 int64_t a4 = INT64_MAX;
6400 int64_t a4min = INT64_MIN;
6403 uint8_t b1 = UINT8_MAX;
6405 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
6408 uint16_t b2 = UINT16_MAX;
6411 uint32_t b3 = UINT32_MAX;
6414 uint64_t b4 = UINT64_MAX;
6416 int_least8_t c1 = INT8_C (0x7f);
6417 int_least8_t c1max = INT_LEAST8_MAX;
6418 int_least8_t c1min = INT_LEAST8_MIN;
6419 int_least16_t c2 = INT16_C (0x7fff);
6420 int_least16_t c2max = INT_LEAST16_MAX;
6421 int_least16_t c2min = INT_LEAST16_MIN;
6422 int_least32_t c3 = INT32_C (0x7fffffff);
6423 int_least32_t c3max = INT_LEAST32_MAX;
6424 int_least32_t c3min = INT_LEAST32_MIN;
6425 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
6426 int_least64_t c4max = INT_LEAST64_MAX;
6427 int_least64_t c4min = INT_LEAST64_MIN;
6428 uint_least8_t d1 = UINT8_C (0xff);
6429 uint_least8_t d1max = UINT_LEAST8_MAX;
6430 uint_least16_t d2 = UINT16_C (0xffff);
6431 uint_least16_t d2max = UINT_LEAST16_MAX;
6432 uint_least32_t d3 = UINT32_C (0xffffffff);
6433 uint_least32_t d3max = UINT_LEAST32_MAX;
6434 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
6435 uint_least64_t d4max = UINT_LEAST64_MAX;
6436 int_fast8_t e1 = INT_FAST8_MAX;
6437 int_fast8_t e1min = INT_FAST8_MIN;
6438 int_fast16_t e2 = INT_FAST16_MAX;
6439 int_fast16_t e2min = INT_FAST16_MIN;
6440 int_fast32_t e3 = INT_FAST32_MAX;
6441 int_fast32_t e3min = INT_FAST32_MIN;
6442 int_fast64_t e4 = INT_FAST64_MAX;
6443 int_fast64_t e4min = INT_FAST64_MIN;
6444 uint_fast8_t f1 = UINT_FAST8_MAX;
6445 uint_fast16_t f2 = UINT_FAST16_MAX;
6446 uint_fast32_t f3 = UINT_FAST32_MAX;
6447 uint_fast64_t f4 = UINT_FAST64_MAX;
6449 intptr_t g = INTPTR_MAX;
6450 intptr_t gmin = INTPTR_MIN;
6453 uintptr_t h = UINTPTR_MAX;
6455 intmax_t i = INTMAX_MAX;
6456 uintmax_t j = UINTMAX_MAX;
6458 #include <limits.h> /* for CHAR_BIT */
6459 #define TYPE_MINIMUM(t) \
6460 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
6461 #define TYPE_MAXIMUM(t) \
6462 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
6465 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
6466 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
6468 /* Detect bug in FreeBSD 6.0 / ia64. */
6469 int check_SIG_ATOMIC:
6470 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
6471 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
6473 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
6475 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
6476 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
6478 /* Detect bug in mingw. */
6480 WINT_MIN == TYPE_MINIMUM (wint_t)
6481 && WINT_MAX == TYPE_MAXIMUM (wint_t)
6484 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
6486 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
6488 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
6490 /* Detect bugs in OpenBSD 3.9 stdint.h. */
6492 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
6495 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
6498 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
6501 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
6503 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
6504 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
6505 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
6506 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
6507 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
6508 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
6509 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
6510 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
6511 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
6512 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
6513 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
6524 if ac_fn_c_try_compile
"$LINENO"; then :
6525 if test "$cross_compiling" = yes; then :
6526 gl_cv_header_working_stdint_h
=yes
6529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h. */
6533 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6534 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6535 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6539 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6540 included before <wchar.h>. */
6552 #define MVAL(macro) MVAL1(macro)
6553 #define MVAL1(expression) #expression
6554 static const char *macro_values[] =
6588 for (mv = macro_values; *mv != NULL; mv++)
6590 const char *value = *mv;
6591 /* Test whether it looks like a cast expression. */
6592 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
6593 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
6594 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
6595 || strncmp (value, "((int)"/*)*/, 6) == 0
6596 || strncmp (value, "((signed short)"/*)*/, 15) == 0
6597 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
6606 if ac_fn_c_try_run
"$LINENO"; then :
6607 gl_cv_header_working_stdint_h
=yes
6609 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6610 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6615 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
6619 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
6621 if test "$gl_cv_header_working_stdint_h" = yes; then
6624 for ac_header
in sys
/inttypes.h sys
/bitypes.h
6626 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6627 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6628 eval as_val
=\$
$as_ac_Header
6629 if test "x$as_val" = x
""yes; then :
6630 cat >>confdefs.h
<<_ACEOF
6631 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6638 if test $ac_cv_header_sys_inttypes_h = yes; then
6639 HAVE_SYS_INTTYPES_H
=1
6641 HAVE_SYS_INTTYPES_H
=0
6644 if test $ac_cv_header_sys_bitypes_h = yes; then
6645 HAVE_SYS_BITYPES_H
=1
6647 HAVE_SYS_BITYPES_H
=0
6661 if test $APPLE_UNIVERSAL_BUILD = 0; then
6664 for gltype
in ptrdiff_t size_t
; do
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6666 $as_echo_n "checking for bit size of $gltype... " >&6; }
6667 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6668 $as_echo_n "(cached) " >&6
6670 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6671 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6672 included before <wchar.h>. */
6681 #include <limits.h>"; then :
6687 eval gl_cv_bitsizeof_
${gltype}=\
$result
6690 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6692 $as_echo "$ac_res" >&6; }
6693 eval result
=\
$gl_cv_bitsizeof_${gltype}
6694 if test $result = unknown
; then
6697 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6698 cat >>confdefs.h
<<_ACEOF
6699 #define BITSIZEOF_${GLTYPE} $result
6702 eval BITSIZEOF_
${GLTYPE}=\
$result
6709 for gltype
in sig_atomic_t wchar_t wint_t
; do
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6711 $as_echo_n "checking for bit size of $gltype... " >&6; }
6712 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6713 $as_echo_n "(cached) " >&6
6715 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6716 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6717 included before <wchar.h>. */
6726 #include <limits.h>"; then :
6732 eval gl_cv_bitsizeof_
${gltype}=\
$result
6735 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6737 $as_echo "$ac_res" >&6; }
6738 eval result
=\
$gl_cv_bitsizeof_${gltype}
6739 if test $result = unknown
; then
6742 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6743 cat >>confdefs.h
<<_ACEOF
6744 #define BITSIZEOF_${GLTYPE} $result
6747 eval BITSIZEOF_
${GLTYPE}=\
$result
6753 for gltype
in sig_atomic_t wchar_t wint_t
; do
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
6755 $as_echo_n "checking whether $gltype is signed... " >&6; }
6756 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
6757 $as_echo_n "(cached) " >&6
6759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6760 /* end confdefs.h. */
6762 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6763 included before <wchar.h>. */
6772 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6781 if ac_fn_c_try_compile
"$LINENO"; then :
6786 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6787 eval gl_cv_type_
${gltype}_signed
=\
$result
6790 eval ac_res
=\
$gl_cv_type_${gltype}_signed
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6792 $as_echo "$ac_res" >&6; }
6793 eval result
=\
$gl_cv_type_${gltype}_signed
6794 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6795 if test "$result" = yes; then
6796 cat >>confdefs.h
<<_ACEOF
6797 #define HAVE_SIGNED_${GLTYPE} 1
6800 eval HAVE_SIGNED_
${GLTYPE}=1
6802 eval HAVE_SIGNED_
${GLTYPE}=0
6807 gl_cv_type_ptrdiff_t_signed
=yes
6808 gl_cv_type_size_t_signed
=no
6809 if test $APPLE_UNIVERSAL_BUILD = 0; then
6812 for gltype
in ptrdiff_t size_t
; do
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6814 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6815 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6816 $as_echo_n "(cached) " >&6
6818 eval gl_cv_type_
${gltype}_suffix
=no
6819 eval result
=\
$gl_cv_type_${gltype}_signed
6820 if test "$result" = yes; then
6825 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
6828 l
) gltype1
='long int';;
6829 ll
) gltype1
='long long int';;
6830 i64
) gltype1
='__int64';;
6831 u
) gltype1
='unsigned int';;
6832 ul
) gltype1
='unsigned long int';;
6833 ull
) gltype1
='unsigned long long int';;
6834 ui64
)gltype1
='unsigned __int64';;
6836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6837 /* end confdefs.h. */
6839 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6840 included before <wchar.h>. */
6850 extern $gltype1 foo;
6859 if ac_fn_c_try_compile
"$LINENO"; then :
6860 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
6862 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6863 eval result
=\
$gl_cv_type_${gltype}_suffix
6864 test "$result" != no
&& break
6867 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6869 $as_echo "$ac_res" >&6; }
6870 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6871 eval result
=\
$gl_cv_type_${gltype}_suffix
6872 test "$result" = no
&& result
=
6873 eval ${GLTYPE}_SUFFIX
=\
$result
6874 cat >>confdefs.h
<<_ACEOF
6875 #define ${GLTYPE}_SUFFIX $result
6884 for gltype
in sig_atomic_t wchar_t wint_t
; do
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6886 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6887 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6888 $as_echo_n "(cached) " >&6
6890 eval gl_cv_type_
${gltype}_suffix
=no
6891 eval result
=\
$gl_cv_type_${gltype}_signed
6892 if test "$result" = yes; then
6897 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
6900 l
) gltype1
='long int';;
6901 ll
) gltype1
='long long int';;
6902 i64
) gltype1
='__int64';;
6903 u
) gltype1
='unsigned int';;
6904 ul
) gltype1
='unsigned long int';;
6905 ull
) gltype1
='unsigned long long int';;
6906 ui64
)gltype1
='unsigned __int64';;
6908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6909 /* end confdefs.h. */
6911 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6912 included before <wchar.h>. */
6922 extern $gltype1 foo;
6931 if ac_fn_c_try_compile
"$LINENO"; then :
6932 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
6934 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6935 eval result
=\
$gl_cv_type_${gltype}_suffix
6936 test "$result" != no
&& break
6939 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6941 $as_echo "$ac_res" >&6; }
6942 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6943 eval result
=\
$gl_cv_type_${gltype}_suffix
6944 test "$result" = no
&& result
=
6945 eval ${GLTYPE}_SUFFIX
=\
$result
6946 cat >>confdefs.h
<<_ACEOF
6947 #define ${GLTYPE}_SUFFIX $result
6958 # Code from module string:
6962 # Code from module warn-on-use:
6963 # Code from module wchar:
6986 if test $gl_cv_have_include_next = yes; then
6987 gl_cv_next_wchar_h
='<'wchar.h
'>'
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
6990 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
6991 if test "${gl_cv_next_wchar_h+set}" = set; then :
6992 $as_echo_n "(cached) " >&6
6995 if test $ac_cv_header_wchar_h = yes; then
6996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6997 /* end confdefs.h. */
7002 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
7003 *) gl_absname_cpp
="$ac_cpp" ;;
7005 gl_cv_next_wchar_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7006 sed -n '\#/wchar.h#{
7007 s#.*"\(.*/wchar.h\)".*#\1#
7013 gl_cv_next_wchar_h
='<'wchar.h
'>'
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
7018 $as_echo "$gl_cv_next_wchar_h" >&6; }
7020 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
7022 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
7023 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7024 gl_next_as_first_directive
='<'wchar.h
'>'
7026 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7027 gl_next_as_first_directive
=$gl_cv_next_wchar_h
7029 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
=$gl_next_as_first_directive
7033 if test $ac_cv_header_wchar_h = yes; then
7041 if test $gt_cv_c_wint_t = yes; then
7049 for gl_func
in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth
; do
7050 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7052 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7053 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7054 $as_echo_n "(cached) " >&6
7056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7057 /* end confdefs.h. */
7059 /* Some systems require additional headers. */
7061 # include <stddef.h>
7076 if ac_fn_c_try_compile
"$LINENO"; then :
7077 eval "$as_gl_Symbol=yes"
7079 eval "$as_gl_Symbol=no"
7081 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7083 eval ac_res
=\$
$as_gl_Symbol
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7085 $as_echo "$ac_res" >&6; }
7086 eval as_val
=\$
$as_gl_Symbol
7087 if test "x$as_val" = x
""yes; then :
7088 cat >>confdefs.h
<<_ACEOF
7089 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7092 eval ac_cv_have_decl_
$gl_func=yes
7097 # Code from module dummy:
7098 # End of code from modules
7119 gl_source_base
='tests'
7120 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
7122 gl_module_indicator_condition
=$gltests_WITNESS
7132 LIBGNU_LIBDEPS
="$gl_libdeps"
7134 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
7138 # For Makefile dependencies.
7140 if test x
"$STDINT_H" != x
; then
7141 GNULIB_STDINT_H
=gnulib
/$STDINT_H
7147 cat >>confdefs.h
<<_ACEOF
7148 #define PACKAGE "$PACKAGE"
7153 # GDB does not use automake, but gnulib does. This line lets us
7154 # generate its Makefile.in.
7155 am__api_version
='1.11'
7157 # Find a good install program. We prefer a C program (faster),
7158 # so one script is as good as another. But avoid the broken or
7159 # incompatible versions:
7160 # SysV /etc/install, /usr/sbin/install
7161 # SunOS /usr/etc/install
7162 # IRIX /sbin/install
7164 # AmigaOS /C/install, which installs bootblocks on floppy discs
7165 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7166 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7167 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7168 # OS/2's system install, which has a completely different semantic
7169 # ./install, which can be erroneously created by make from ./install.sh.
7170 # Reject install programs that cannot install multiple files.
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7172 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7173 if test -z "$INSTALL"; then
7174 if test "${ac_cv_path_install+set}" = set; then :
7175 $as_echo_n "(cached) " >&6
7177 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7181 test -z "$as_dir" && as_dir
=.
7182 # Account for people who put trailing slashes in PATH elements.
7183 case $as_dir/ in #((
7184 .
/ | .
// |
/[cC
]/* | \
7185 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7186 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
7189 # OSF1 and SCO ODT 3.0 have their own names for install.
7190 # Don't use installbsd from OSF since it installs stuff as root
7192 for ac_prog
in ginstall scoinst
install; do
7193 for ac_exec_ext
in '' $ac_executable_extensions; do
7194 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7195 if test $ac_prog = install &&
7196 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7197 # AIX install. It has an incompatible calling convention.
7199 elif test $ac_prog = install &&
7200 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7201 # program-specific install script used by HP pwplus--don't use.
7204 rm -rf conftest.one conftest.two conftest.dir
7205 echo one
> conftest.one
7206 echo two
> conftest.two
7208 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
7209 test -s conftest.one
&& test -s conftest.two
&&
7210 test -s conftest.dir
/conftest.one
&&
7211 test -s conftest.dir
/conftest.two
7213 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7226 rm -rf conftest.one conftest.two conftest.dir
7229 if test "${ac_cv_path_install+set}" = set; then
7230 INSTALL
=$ac_cv_path_install
7232 # As a last resort, use the slow shell script. Don't cache a
7233 # value for INSTALL within a source directory, because that will
7234 # break other packages using the cache if that directory is
7235 # removed, or if the value is a relative name.
7236 INSTALL
=$ac_install_sh
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7240 $as_echo "$INSTALL" >&6; }
7242 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7243 # It thinks the first close brace ends the variable substitution.
7244 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7246 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7248 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
7251 $as_echo_n "checking whether build environment is sane... " >&6; }
7254 echo timestamp
> conftest.
file
7255 # Reject unsafe characters in $srcdir or the absolute working directory
7256 # name. Accept space and tab only in the latter.
7260 *[\\\"\
#\$\&\'\`$am_lf]*)
7261 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
7264 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
7265 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
7268 # Do `set' in a subshell so we don't clobber the current shell's
7269 # arguments. Must try -L first in case configure is actually a
7270 # symlink; some systems play weird games with the mod time of symlinks
7271 # (eg FreeBSD returns the mod time of the symlink's containing
7274 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
7275 if test "$*" = "X"; then
7277 set X
`ls -t "$srcdir/configure" conftest.file`
7280 if test "$*" != "X $srcdir/configure conftest.file" \
7281 && test "$*" != "X conftest.file $srcdir/configure"; then
7283 # If neither matched, then we have a broken ls. This can happen
7284 # if, for instance, CONFIG_SHELL is bash and it inherits a
7285 # broken ls alias from the environment. This has actually
7286 # happened. Such a system could not be considered "sane".
7287 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
7288 alias in your environment" "$LINENO" 5
7291 test "$2" = conftest.
file
7297 as_fn_error
"newly created file is older than distributed files!
7298 Check your system clock" "$LINENO" 5
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7301 $as_echo "yes" >&6; }
7302 test "$program_prefix" != NONE
&&
7303 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
7304 # Use a double $ so make ignores it.
7305 test "$program_suffix" != NONE
&&
7306 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
7307 # Double any \ or $.
7308 # By default was `s,x,x', remove it if useless.
7309 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
7310 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
7312 # expand $ac_aux_dir to an absolute path
7313 am_aux_dir
=`cd $ac_aux_dir && pwd`
7315 if test x
"${MISSING+set}" != xset
; then
7318 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
7320 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
7323 # Use eval to expand $SHELL
7324 if eval "$MISSING --run true"; then
7325 am_missing_run
="$MISSING --run "
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
7329 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
7332 if test x
"${install_sh}" != xset
; then
7335 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
7337 install_sh
="\${SHELL} $am_aux_dir/install-sh"
7341 # Installed binaries are usually stripped using `strip' when the user
7342 # run `make install-strip'. However `strip' might not be the right
7343 # tool to use in cross-compilation environments, therefore Automake
7344 # will honor the `STRIP' environment variable to overrule this program.
7345 if test "$cross_compiling" != no
; then
7346 if test -n "$ac_tool_prefix"; then
7347 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7348 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7350 $as_echo_n "checking for $ac_word... " >&6; }
7351 if test "${ac_cv_prog_STRIP+set}" = set; then :
7352 $as_echo_n "(cached) " >&6
7354 if test -n "$STRIP"; then
7355 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
7357 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7361 test -z "$as_dir" && as_dir
=.
7362 for ac_exec_ext
in '' $ac_executable_extensions; do
7363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7364 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
7365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7374 STRIP
=$ac_cv_prog_STRIP
7375 if test -n "$STRIP"; then
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7377 $as_echo "$STRIP" >&6; }
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380 $as_echo "no" >&6; }
7385 if test -z "$ac_cv_prog_STRIP"; then
7387 # Extract the first word of "strip", so it can be a program name with args.
7388 set dummy strip
; ac_word
=$2
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7390 $as_echo_n "checking for $ac_word... " >&6; }
7391 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7392 $as_echo_n "(cached) " >&6
7394 if test -n "$ac_ct_STRIP"; then
7395 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
7397 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7401 test -z "$as_dir" && as_dir
=.
7402 for ac_exec_ext
in '' $ac_executable_extensions; do
7403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7404 ac_cv_prog_ac_ct_STRIP
="strip"
7405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7414 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
7415 if test -n "$ac_ct_STRIP"; then
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7417 $as_echo "$ac_ct_STRIP" >&6; }
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420 $as_echo "no" >&6; }
7423 if test "x$ac_ct_STRIP" = x
; then
7426 case $cross_compiling:$ac_tool_warned in
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7430 ac_tool_warned
=yes ;;
7435 STRIP
="$ac_cv_prog_STRIP"
7439 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7442 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7443 if test -z "$MKDIR_P"; then
7444 if test "${ac_cv_path_mkdir+set}" = set; then :
7445 $as_echo_n "(cached) " >&6
7447 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7448 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
7451 test -z "$as_dir" && as_dir
=.
7452 for ac_prog
in mkdir gmkdir
; do
7453 for ac_exec_ext
in '' $ac_executable_extensions; do
7454 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
7455 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7456 'mkdir (GNU coreutils) '* | \
7457 'mkdir (coreutils) '* | \
7458 'mkdir (fileutils) '4.1*)
7459 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
7469 if test "${ac_cv_path_mkdir+set}" = set; then
7470 MKDIR_P
="$ac_cv_path_mkdir -p"
7472 # As a last resort, use the slow shell script. Don't cache a
7473 # value for MKDIR_P within a source directory, because that will
7474 # break other packages using the cache if that directory is
7475 # removed, or if the value is a relative name.
7476 test -d .
/--version && rmdir .
/--version
7477 MKDIR_P
="$ac_install_sh -d"
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7481 $as_echo "$MKDIR_P" >&6; }
7486 [\\/$
]* | ?
:[\\/]*) ;;
7487 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
7490 for ac_prog
in gawk mawk nawk
awk
7492 # Extract the first word of "$ac_prog", so it can be a program name with args.
7493 set dummy
$ac_prog; ac_word
=$2
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7495 $as_echo_n "checking for $ac_word... " >&6; }
7496 if test "${ac_cv_prog_AWK+set}" = set; then :
7497 $as_echo_n "(cached) " >&6
7499 if test -n "$AWK"; then
7500 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7502 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7506 test -z "$as_dir" && as_dir
=.
7507 for ac_exec_ext
in '' $ac_executable_extensions; do
7508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7509 ac_cv_prog_AWK
="$ac_prog"
7510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7520 if test -n "$AWK"; then
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7522 $as_echo "$AWK" >&6; }
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7525 $as_echo "no" >&6; }
7529 test -n "$AWK" && break
7532 ac_config_commands
="$ac_config_commands depfiles"
7535 am_make
=${MAKE-make}
7536 cat > confinc
<< 'END'
7538 @
echo this is the am__doit target
7541 # If we don't find an include directive, just comment out the code.
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
7543 $as_echo_n "checking for style of include used by $am_make... " >&6; }
7547 # First try GNU make style include.
7548 echo "include confinc" > confmf
7549 # Ignore all kinds of additional output from `make'.
7550 case `$am_make -s -f confmf 2> /dev/null` in #(
7551 *the\ am__doit\ target
*)
7557 # Now try BSD make style include.
7558 if test "$am__include" = "#"; then
7559 echo '.include "confinc"' > confmf
7560 case `$am_make -s -f confmf 2> /dev/null` in #(
7561 *the\ am__doit\ target
*)
7562 am__include
=.include
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
7571 $as_echo "$_am_result" >&6; }
7572 rm -f confinc confmf
7574 # Check whether --enable-dependency-tracking was given.
7575 if test "${enable_dependency_tracking+set}" = set; then :
7576 enableval
=$enable_dependency_tracking;
7579 if test "x$enable_dependency_tracking" != xno
; then
7580 am_depcomp
="$ac_aux_dir/depcomp"
7583 if test "x$enable_dependency_tracking" != xno; then
7592 if test "`cd $srcdir && pwd`" != "`pwd`"; then
7593 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7594 # is not polluted with repeated "-I."
7595 am__isrc
=' -I$(srcdir)'
7596 # test to see if srcdir already configured
7597 if test -f $srcdir/config.status
; then
7598 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
7602 # test whether we have cygpath
7603 if test -z "$CYGPATH_W"; then
7604 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
7605 CYGPATH_W
='cygpath -w'
7612 # Define the identity of the package.
7614 VERSION
=UNUSED-VERSION
7617 # Some tools Automake needs.
7619 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
7622 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
7625 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
7628 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
7631 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
7633 # We need awk for the "check" target. The system "awk" is bad on
7635 # Always define AMTAR for backward compatibility.
7637 AMTAR
=${AMTAR-"${am_missing_run}tar"}
7639 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
7644 depcc
="$CC" am_compiler_list
=
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7647 $as_echo_n "checking dependency style of $depcc... " >&6; }
7648 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
7649 $as_echo_n "(cached) " >&6
7651 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7652 # We make a subdir and do the tests there. Otherwise we can end up
7653 # making bogus files that we don't know about and never remove. For
7654 # instance it was reported that on HP-UX the gcc test will end up
7655 # making a dummy file named `D' -- because `-MD' means `put the output
7658 # Copy depcomp to subdir because otherwise we won't find it if we're
7659 # using a relative directory.
7660 cp "$am_depcomp" conftest.dir
7662 # We will build objects and dependencies in a subdirectory because
7663 # it helps to detect inapplicable dependency modes. For instance
7664 # both Tru64's cc and ICC support -MD to output dependencies as a
7665 # side effect of compilation, but ICC will put the dependencies in
7666 # the current directory while Tru64 will put them in the object
7670 am_cv_CC_dependencies_compiler_type
=none
7671 if test "$am_compiler_list" = ""; then
7672 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7675 case " $depcc " in #(
7676 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
7679 for depmode
in $am_compiler_list; do
7680 # Setup a source with many dependencies, because some compilers
7681 # like to wrap large dependency lists on column 80 (with \), and
7682 # we should not choose a depcomp mode which is confused by this.
7684 # We need to recreate these files for each test, as the compiler may
7685 # overwrite some of them when testing with obscure command lines.
7686 # This happens at least with the AIX C compiler.
7688 for i
in 1 2 3 4 5 6; do
7689 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
7690 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7691 # Solaris 8's {/usr,}/bin/sh.
7692 touch sub
/conftst
$i.h
7694 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7696 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7697 # mode. It turns out that the SunPro C++ compiler does not properly
7698 # handle `-M -o', and we need to detect this. Also, some Intel
7699 # versions had trouble with output in subdirs
7700 am__obj
=sub
/conftest.
${OBJEXT-o}
7701 am__minus_obj
="-o $am__obj"
7704 # This depmode causes a compiler race in universal mode.
7705 test "$am__universal" = false ||
continue
7708 # after this tag, mechanisms are not by side-effect, so they'll
7709 # only be used when explicitly requested
7710 if test "x$enable_dependency_tracking" = xyes
; then
7716 msvisualcpp | msvcmsys
)
7717 # This compiler won't grok `-c -o', but also, the minuso test has
7718 # not run yet. These depmodes are late enough in the game, and
7719 # so weak that their functioning should not be impacted.
7720 am__obj
=conftest.
${OBJEXT-o}
7725 if depmode
=$depmode \
7726 source=sub
/conftest.c object
=$am__obj \
7727 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
7728 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
7729 >/dev
/null
2>conftest.err
&&
7730 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
7731 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
7732 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
7733 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
7734 # icc doesn't choke on unknown options, it will just issue warnings
7735 # or remarks (even with -Werror). So we grep stderr for any message
7736 # that says an option was ignored or not supported.
7737 # When given -MP, icc 7.0 and 7.1 complain thusly:
7738 # icc: Command line warning: ignoring option '-M'; no argument required
7739 # The diagnosis changed in icc 8.0:
7740 # icc: Command line remark: option '-MP' not supported
7741 if (grep 'ignoring option' conftest.err ||
7742 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
7743 am_cv_CC_dependencies_compiler_type
=$depmode
7752 am_cv_CC_dependencies_compiler_type
=none
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7757 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7758 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
7761 test "x$enable_dependency_tracking" != xno \
7762 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
7764 am__fastdepCC_FALSE
='#'
7766 am__fastdepCC_TRUE
='#'
7767 am__fastdepCC_FALSE
=
7775 # Check whether --with-separate-debug-dir was given.
7776 if test "${with_separate_debug_dir+set}" = set; then :
7777 withval
=$with_separate_debug_dir;
7780 DEBUGDIR
=${libdir}/debug
7784 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7785 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7786 ac_define_dir
=`eval echo $DEBUGDIR`
7787 ac_define_dir
=`eval echo $ac_define_dir`
7789 cat >>confdefs.h
<<_ACEOF
7790 #define DEBUGDIR "$ac_define_dir"
7796 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
7797 if test "x$prefix" = xNONE
; then
7798 test_prefix
=/usr
/local
7803 test_prefix
=$exec_prefix
7806 case ${ac_define_dir} in
7807 "${test_prefix}"|
"${test_prefix}/"*|\
7808 '${exec_prefix}'|
'${exec_prefix}/'*)
7813 cat >>confdefs.h
<<_ACEOF
7814 #define DEBUGDIR_RELOCATABLE $value
7820 # GDB's datadir relocation
7824 # Check whether --with-gdb-datadir was given.
7825 if test "${with_gdb_datadir+set}" = set; then :
7826 withval
=$with_gdb_datadir;
7827 GDB_DATADIR
=$withval
7829 GDB_DATADIR
=${datadir}/gdb
7833 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7834 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7835 ac_define_dir
=`eval echo $GDB_DATADIR`
7836 ac_define_dir
=`eval echo $ac_define_dir`
7838 cat >>confdefs.h
<<_ACEOF
7839 #define GDB_DATADIR "$ac_define_dir"
7845 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
7846 if test "x$prefix" = xNONE
; then
7847 test_prefix
=/usr
/local
7852 test_prefix
=$exec_prefix
7855 case ${ac_define_dir} in
7856 "${test_prefix}"|
"${test_prefix}/"*|\
7857 '${exec_prefix}'|
'${exec_prefix}/'*)
7862 cat >>confdefs.h
<<_ACEOF
7863 #define GDB_DATADIR_RELOCATABLE $value
7870 # Check whether --with-relocated-sources was given.
7871 if test "${with_relocated_sources+set}" = set; then :
7872 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
7874 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7875 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7876 ac_define_dir
=`eval echo $reloc_srcdir`
7877 ac_define_dir
=`eval echo $ac_define_dir`
7879 cat >>confdefs.h
<<_ACEOF
7880 #define RELOC_SRCDIR "$ac_define_dir"
7890 subdirs
="$subdirs testsuite"
7892 subdirs
="$subdirs common"
7895 # Check whether to support alternative target configurations
7896 # Check whether --enable-targets was given.
7897 if test "${enable_targets+set}" = set; then :
7898 enableval
=$enable_targets; case "${enableval}" in
7899 yes |
"") as_fn_error
"enable-targets option must specify target names or 'all'" "$LINENO" 5
7901 no
) enable_targets
= ;;
7902 *) enable_targets
=$enableval ;;
7907 # Check whether to enable 64-bit support on 32-bit hosts
7908 # Check whether --enable-64-bit-bfd was given.
7909 if test "${enable_64_bit_bfd+set}" = set; then :
7910 enableval
=$enable_64_bit_bfd; case "${enableval}" in
7913 *) as_fn_error
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
7919 # Provide defaults for some variables set by the per-host and per-target
7921 gdb_host_obs
=posix-hdep.o
7923 if test "${target}" = "${host}"; then
7929 .
$srcdir/configure.
host
7931 # Accumulate some settings from configure.tgt over all enabled targets
7936 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
7938 if test "$targ_alias" = "all"; then
7941 # Canonicalize the secondary target names.
7942 result
=`$ac_config_sub $targ_alias 2>/dev/null`
7943 if test -n "$result"; then
7949 .
${srcdir}/configure.tgt
7951 if test -z "${gdb_target_obs}"; then :
7952 as_fn_error
"configuration ${targ} is unsupported." "$LINENO" 5
7955 # Target-specific object files
7956 for i
in ${gdb_target_obs}; do
7957 case " $TARGET_OBS " in
7960 TARGET_OBS
="$TARGET_OBS ${i}"
7965 # Check whether this target needs 64-bit CORE_ADDR
7966 if test x
${want64} = xfalse
; then
7967 .
${srcdir}/..
/bfd
/config.bfd
7972 if test x
${all_targets} = xtrue
; then
7974 # We want all 64-bit targets if we either:
7975 # - run on a 64-bit host or
7976 # - already require 64-bit support for some other target or
7977 # - the --enable-64-bit-bfd option was supplied
7978 # Otherwise we only support all 32-bit targets.
7980 # NOTE: This test must be in sync with the corresponding
7983 if test x
${want64} = xfalse
; then
7984 # The cast to long int works around a bug in the HP C Compiler
7985 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7986 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7987 # This bug is HP SR number 8606223364.
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7989 $as_echo_n "checking size of long... " >&6; }
7990 if test "${ac_cv_sizeof_long+set}" = set; then :
7991 $as_echo_n "(cached) " >&6
7993 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
7996 if test "$ac_cv_type_long" = yes; then
7997 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7999 { as_fn_set_status
77
8000 as_fn_error
"cannot compute sizeof (long)
8001 See \`config.log' for more details." "$LINENO" 5; }; }
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
8009 $as_echo "$ac_cv_sizeof_long" >&6; }
8013 cat >>confdefs.h
<<_ACEOF
8014 #define SIZEOF_LONG $ac_cv_sizeof_long
8018 if test "x${ac_cv_sizeof_long}" = "x8"; then
8022 if test x
${want64} = xtrue
; then
8023 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
8025 TARGET_OBS
='$(ALL_TARGET_OBS)'
8031 # For other settings, only the main target counts.
8035 targ
=$target; .
${srcdir}/configure.tgt
8037 # Fetch the default architecture and default target vector from BFD.
8038 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
8040 # We only want the first architecture, so strip off the others if
8041 # there is more than one.
8042 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
8044 if test "x$targ_archs" != x
; then
8046 cat >>confdefs.h
<<_ACEOF
8047 #define DEFAULT_BFD_ARCH $targ_archs
8051 if test "x$targ_defvec" != x
; then
8053 cat >>confdefs.h
<<_ACEOF
8054 #define DEFAULT_BFD_VEC $targ_defvec
8059 # The CLI cannot be disabled yet, but may be in the future.
8062 # Check whether --enable-gdbcli was given.
8063 if test "${enable_gdbcli+set}" = set; then :
8064 enableval
=$enable_gdbcli; case $enableval in
8068 as_fn_error
"the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
8070 as_fn_error
"bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
8076 if test x
"$enable_gdbcli" = xyes
; then
8077 if test -d $srcdir/cli
; then
8078 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
8079 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
8080 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
8081 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
8086 # Check whether --enable-gdbmi was given.
8087 if test "${enable_gdbmi+set}" = set; then :
8088 enableval
=$enable_gdbmi; case $enableval in
8092 as_fn_error
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
8098 if test x
"$enable_gdbmi" = xyes
; then
8099 if test -d $srcdir/mi
; then
8100 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
8101 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
8102 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
8103 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
8108 # Check whether --enable-tui was given.
8109 if test "${enable_tui+set}" = set; then :
8110 enableval
=$enable_tui; case $enableval in
8114 as_fn_error
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
8122 # Check whether --enable-gdbtk was given.
8123 if test "${enable_gdbtk+set}" = set; then :
8124 enableval
=$enable_gdbtk; case $enableval in
8128 as_fn_error
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
8131 if test -d $srcdir/gdbtk
; then
8138 # We unconditionally disable gdbtk tests on selected platforms.
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
8142 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
8146 # Libunwind support.
8148 # Check whether --with-libunwind was given.
8149 if test "${with_libunwind+set}" = set; then :
8150 withval
=$with_libunwind; case "${withval}" in
8151 yes) enable_libunwind
=yes ;;
8152 no
) enable_libunwind
=no
;;
8153 *) as_fn_error
"bad value ${withval} for GDB with-libunwind option" "$LINENO" 5 ;;
8157 for ac_header
in libunwind.h libunwind-ia64.h
8159 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8160 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8161 eval as_val
=\$
$as_ac_Header
8162 if test "x$as_val" = x
""yes; then :
8163 cat >>confdefs.h
<<_ACEOF
8164 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8171 if test x
"$ac_cv_header_libunwind_h" = xyes
-a x
"$ac_cv_header_libunwind_ia64_h" = xyes
; then
8172 enable_libunwind
=yes;
8178 if test x
"$enable_libunwind" = xyes
; then
8179 for ac_header
in libunwind.h libunwind-ia64.h
8181 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8182 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8183 eval as_val
=\$
$as_ac_Header
8184 if test "x$as_val" = x
""yes; then :
8185 cat >>confdefs.h
<<_ACEOF
8186 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8194 $as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h
8196 CONFIG_OBS
="$CONFIG_OBS libunwind-frame.o"
8197 CONFIG_DEPS
="$CONFIG_DEPS libunwind-frame.o"
8198 CONFIG_SRCS
="$CONFIG_SRCS libunwind-frame.c"
8203 # Check whether --with-curses was given.
8204 if test "${with_curses+set}" = set; then :
8205 withval
=$with_curses; opt_curses
=$withval
8210 if test "$opt_curses" = "yes"; then
8214 # Profiling support.
8215 # Check whether --enable-profiling was given.
8216 if test "${enable_profiling+set}" = set; then :
8217 enableval
=$enable_profiling; case $enableval in
8221 as_fn_error
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
8228 for ac_func
in monstartup _mcleanup
8230 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8231 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8232 eval as_val
=\$
$as_ac_var
8233 if test "x$as_val" = x
""yes; then :
8234 cat >>confdefs.h
<<_ACEOF
8235 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
8242 $as_echo_n "checking for _etext... " >&6; }
8243 if test "${ac_cv_var__etext+set}" = set; then :
8244 $as_echo_n "(cached) " >&6
8246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8247 /* end confdefs.h. */
8259 if ac_fn_c_try_link
"$LINENO"; then :
8260 ac_cv_var__etext
=yes
8264 rm -f core conftest.err conftest.
$ac_objext \
8265 conftest
$ac_exeext conftest.
$ac_ext
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
8268 $as_echo "$ac_cv_var__etext" >&6; }
8269 if test $ac_cv_var__etext = yes; then
8271 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
8275 $as_echo_n "checking for etext... " >&6; }
8276 if test "${ac_cv_var_etext+set}" = set; then :
8277 $as_echo_n "(cached) " >&6
8279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8280 /* end confdefs.h. */
8292 if ac_fn_c_try_link
"$LINENO"; then :
8297 rm -f core conftest.err conftest.
$ac_objext \
8298 conftest
$ac_exeext conftest.
$ac_ext
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
8301 $as_echo "$ac_cv_var_etext" >&6; }
8302 if test $ac_cv_var_etext = yes; then
8304 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
8307 if test "$enable_profiling" = yes ; then
8308 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
8309 as_fn_error
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
8312 OLD_CFLAGS
="$CFLAGS"
8313 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
8316 $as_echo_n "checking whether $CC supports -pg... " >&6; }
8317 if test "${ac_cv_cc_supports_pg+set}" = set; then :
8318 $as_echo_n "(cached) " >&6
8320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8321 /* end confdefs.h. */
8331 if ac_fn_c_try_compile
"$LINENO"; then :
8332 ac_cv_cc_supports_pg
=yes
8334 ac_cv_cc_supports_pg
=no
8336 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
8339 $as_echo "$ac_cv_cc_supports_pg" >&6; }
8341 if test $ac_cv_cc_supports_pg = no
; then
8342 as_fn_error
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
8345 CFLAGS
="$OLD_CFLAGS"
8350 # Check whether --with-pkgversion was given.
8351 if test "${with_pkgversion+set}" = set; then :
8352 withval
=$with_pkgversion; case "$withval" in
8353 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
8355 *) PKGVERSION
="($withval) " ;;
8366 # Check whether --with-bugurl was given.
8367 if test "${with_bugurl+set}" = set; then :
8368 withval
=$with_bugurl; case "$withval" in
8369 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
8372 *) BUGURL
="$withval"
8376 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
8386 REPORT_BUGS_TO
="<$BUGURL>"
8387 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
8394 cat >>confdefs.h
<<_ACEOF
8395 #define PKGVERSION "$PKGVERSION"
8399 cat >>confdefs.h
<<_ACEOF
8400 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8404 # --------------------- #
8405 # Checks for programs. #
8406 # --------------------- #
8408 for ac_prog
in gawk mawk nawk
awk
8410 # Extract the first word of "$ac_prog", so it can be a program name with args.
8411 set dummy
$ac_prog; ac_word
=$2
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8413 $as_echo_n "checking for $ac_word... " >&6; }
8414 if test "${ac_cv_prog_AWK+set}" = set; then :
8415 $as_echo_n "(cached) " >&6
8417 if test -n "$AWK"; then
8418 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8420 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8424 test -z "$as_dir" && as_dir
=.
8425 for ac_exec_ext
in '' $ac_executable_extensions; do
8426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8427 ac_cv_prog_AWK
="$ac_prog"
8428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8438 if test -n "$AWK"; then
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8440 $as_echo "$AWK" >&6; }
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8443 $as_echo "no" >&6; }
8447 test -n "$AWK" && break
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8452 $as_echo_n "checking whether ln -s works... " >&6; }
8454 if test "$LN_S" = "ln -s"; then
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8456 $as_echo "yes" >&6; }
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8459 $as_echo "no, using $LN_S" >&6; }
8462 if test -n "$ac_tool_prefix"; then
8463 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8464 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8466 $as_echo_n "checking for $ac_word... " >&6; }
8467 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8468 $as_echo_n "(cached) " >&6
8470 if test -n "$RANLIB"; then
8471 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8473 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8477 test -z "$as_dir" && as_dir
=.
8478 for ac_exec_ext
in '' $ac_executable_extensions; do
8479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8480 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8490 RANLIB
=$ac_cv_prog_RANLIB
8491 if test -n "$RANLIB"; then
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8493 $as_echo "$RANLIB" >&6; }
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8496 $as_echo "no" >&6; }
8501 if test -z "$ac_cv_prog_RANLIB"; then
8502 ac_ct_RANLIB
=$RANLIB
8503 # Extract the first word of "ranlib", so it can be a program name with args.
8504 set dummy ranlib
; ac_word
=$2
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8506 $as_echo_n "checking for $ac_word... " >&6; }
8507 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8508 $as_echo_n "(cached) " >&6
8510 if test -n "$ac_ct_RANLIB"; then
8511 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8513 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8517 test -z "$as_dir" && as_dir
=.
8518 for ac_exec_ext
in '' $ac_executable_extensions; do
8519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8520 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8530 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8531 if test -n "$ac_ct_RANLIB"; then
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8533 $as_echo "$ac_ct_RANLIB" >&6; }
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8536 $as_echo "no" >&6; }
8539 if test "x$ac_ct_RANLIB" = x
; then
8542 case $cross_compiling:$ac_tool_warned in
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8546 ac_tool_warned
=yes ;;
8548 RANLIB
=$ac_ct_RANLIB
8551 RANLIB
="$ac_cv_prog_RANLIB"
8554 for ac_prog
in 'bison -y' byacc
8556 # Extract the first word of "$ac_prog", so it can be a program name with args.
8557 set dummy
$ac_prog; ac_word
=$2
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8559 $as_echo_n "checking for $ac_word... " >&6; }
8560 if test "${ac_cv_prog_YACC+set}" = set; then :
8561 $as_echo_n "(cached) " >&6
8563 if test -n "$YACC"; then
8564 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
8566 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8570 test -z "$as_dir" && as_dir
=.
8571 for ac_exec_ext
in '' $ac_executable_extensions; do
8572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8573 ac_cv_prog_YACC
="$ac_prog"
8574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8583 YACC
=$ac_cv_prog_YACC
8584 if test -n "$YACC"; then
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8586 $as_echo "$YACC" >&6; }
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8589 $as_echo "no" >&6; }
8593 test -n "$YACC" && break
8595 test -n "$YACC" || YACC
="yacc"
8598 if test -n "$ac_tool_prefix"; then
8599 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8600 set dummy
${ac_tool_prefix}ar; ac_word
=$2
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8602 $as_echo_n "checking for $ac_word... " >&6; }
8603 if test "${ac_cv_prog_AR+set}" = set; then :
8604 $as_echo_n "(cached) " >&6
8606 if test -n "$AR"; then
8607 ac_cv_prog_AR
="$AR" # Let the user override the test.
8609 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8613 test -z "$as_dir" && as_dir
=.
8614 for ac_exec_ext
in '' $ac_executable_extensions; do
8615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8616 ac_cv_prog_AR
="${ac_tool_prefix}ar"
8617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8627 if test -n "$AR"; then
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8629 $as_echo "$AR" >&6; }
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8632 $as_echo "no" >&6; }
8637 if test -z "$ac_cv_prog_AR"; then
8639 # Extract the first word of "ar", so it can be a program name with args.
8640 set dummy
ar; ac_word
=$2
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8642 $as_echo_n "checking for $ac_word... " >&6; }
8643 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8644 $as_echo_n "(cached) " >&6
8646 if test -n "$ac_ct_AR"; then
8647 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
8649 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8653 test -z "$as_dir" && as_dir
=.
8654 for ac_exec_ext
in '' $ac_executable_extensions; do
8655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8656 ac_cv_prog_ac_ct_AR
="ar"
8657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8666 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
8667 if test -n "$ac_ct_AR"; then
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8669 $as_echo "$ac_ct_AR" >&6; }
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8672 $as_echo "no" >&6; }
8675 if test "x$ac_ct_AR" = x
; then
8678 case $cross_compiling:$ac_tool_warned in
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8682 ac_tool_warned
=yes ;;
8690 if test -n "$ac_tool_prefix"; then
8691 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8692 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8694 $as_echo_n "checking for $ac_word... " >&6; }
8695 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8696 $as_echo_n "(cached) " >&6
8698 if test -n "$DLLTOOL"; then
8699 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
8701 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8705 test -z "$as_dir" && as_dir
=.
8706 for ac_exec_ext
in '' $ac_executable_extensions; do
8707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8708 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
8709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8718 DLLTOOL
=$ac_cv_prog_DLLTOOL
8719 if test -n "$DLLTOOL"; then
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8721 $as_echo "$DLLTOOL" >&6; }
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8724 $as_echo "no" >&6; }
8729 if test -z "$ac_cv_prog_DLLTOOL"; then
8730 ac_ct_DLLTOOL
=$DLLTOOL
8731 # Extract the first word of "dlltool", so it can be a program name with args.
8732 set dummy dlltool
; ac_word
=$2
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8734 $as_echo_n "checking for $ac_word... " >&6; }
8735 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
8736 $as_echo_n "(cached) " >&6
8738 if test -n "$ac_ct_DLLTOOL"; then
8739 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
8741 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8745 test -z "$as_dir" && as_dir
=.
8746 for ac_exec_ext
in '' $ac_executable_extensions; do
8747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8748 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
8749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8758 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
8759 if test -n "$ac_ct_DLLTOOL"; then
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8761 $as_echo "$ac_ct_DLLTOOL" >&6; }
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8764 $as_echo "no" >&6; }
8767 if test "x$ac_ct_DLLTOOL" = x
; then
8770 case $cross_compiling:$ac_tool_warned in
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8774 ac_tool_warned
=yes ;;
8776 DLLTOOL
=$ac_ct_DLLTOOL
8779 DLLTOOL
="$ac_cv_prog_DLLTOOL"
8782 if test -n "$ac_tool_prefix"; then
8783 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8784 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8786 $as_echo_n "checking for $ac_word... " >&6; }
8787 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8788 $as_echo_n "(cached) " >&6
8790 if test -n "$WINDRES"; then
8791 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
8793 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8797 test -z "$as_dir" && as_dir
=.
8798 for ac_exec_ext
in '' $ac_executable_extensions; do
8799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8800 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
8801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8810 WINDRES
=$ac_cv_prog_WINDRES
8811 if test -n "$WINDRES"; then
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8813 $as_echo "$WINDRES" >&6; }
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8816 $as_echo "no" >&6; }
8821 if test -z "$ac_cv_prog_WINDRES"; then
8822 ac_ct_WINDRES
=$WINDRES
8823 # Extract the first word of "windres", so it can be a program name with args.
8824 set dummy windres
; ac_word
=$2
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8826 $as_echo_n "checking for $ac_word... " >&6; }
8827 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
8828 $as_echo_n "(cached) " >&6
8830 if test -n "$ac_ct_WINDRES"; then
8831 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
8833 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8837 test -z "$as_dir" && as_dir
=.
8838 for ac_exec_ext
in '' $ac_executable_extensions; do
8839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8840 ac_cv_prog_ac_ct_WINDRES
="windres"
8841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8850 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
8851 if test -n "$ac_ct_WINDRES"; then
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
8853 $as_echo "$ac_ct_WINDRES" >&6; }
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8856 $as_echo "no" >&6; }
8859 if test "x$ac_ct_WINDRES" = x
; then
8862 case $cross_compiling:$ac_tool_warned in
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8866 ac_tool_warned
=yes ;;
8868 WINDRES
=$ac_ct_WINDRES
8871 WINDRES
="$ac_cv_prog_WINDRES"
8875 # Needed for GNU/Hurd.
8876 if test -n "$ac_tool_prefix"; then
8877 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
8878 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8880 $as_echo_n "checking for $ac_word... " >&6; }
8881 if test "${ac_cv_prog_MIG+set}" = set; then :
8882 $as_echo_n "(cached) " >&6
8884 if test -n "$MIG"; then
8885 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
8887 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8891 test -z "$as_dir" && as_dir
=.
8892 for ac_exec_ext
in '' $ac_executable_extensions; do
8893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8894 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
8895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8905 if test -n "$MIG"; then
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
8907 $as_echo "$MIG" >&6; }
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8910 $as_echo "no" >&6; }
8915 if test -z "$ac_cv_prog_MIG"; then
8917 # Extract the first word of "mig", so it can be a program name with args.
8918 set dummy mig
; ac_word
=$2
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8920 $as_echo_n "checking for $ac_word... " >&6; }
8921 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
8922 $as_echo_n "(cached) " >&6
8924 if test -n "$ac_ct_MIG"; then
8925 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
8927 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8931 test -z "$as_dir" && as_dir
=.
8932 for ac_exec_ext
in '' $ac_executable_extensions; do
8933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8934 ac_cv_prog_ac_ct_MIG
="mig"
8935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8944 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
8945 if test -n "$ac_ct_MIG"; then
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
8947 $as_echo "$ac_ct_MIG" >&6; }
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8950 $as_echo "no" >&6; }
8953 if test "x$ac_ct_MIG" = x
; then
8956 case $cross_compiling:$ac_tool_warned in
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8960 ac_tool_warned
=yes ;;
8965 MIG
="$ac_cv_prog_MIG"
8969 # ---------------------- #
8970 # Checks for libraries. #
8971 # ---------------------- #
8973 # We might need to link with -lm; most simulators need it.
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
8975 $as_echo_n "checking for main in -lm... " >&6; }
8976 if test "${ac_cv_lib_m_main+set}" = set; then :
8977 $as_echo_n "(cached) " >&6
8979 ac_check_lib_save_LIBS
=$LIBS
8981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8982 /* end confdefs.h. */
8993 if ac_fn_c_try_link
"$LINENO"; then :
8994 ac_cv_lib_m_main
=yes
8998 rm -f core conftest.err conftest.
$ac_objext \
8999 conftest
$ac_exeext conftest.
$ac_ext
9000 LIBS
=$ac_check_lib_save_LIBS
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
9003 $as_echo "$ac_cv_lib_m_main" >&6; }
9004 if test "x$ac_cv_lib_m_main" = x
""yes; then :
9005 cat >>confdefs.h
<<_ACEOF
9014 # We need to link with -lw to get `wctype' on Solaris before Solaris
9015 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9016 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9017 # is known to have this problem). Therefore we avoid libw if we can.
9018 ac_fn_c_check_func
"$LINENO" "wctype" "ac_cv_func_wctype"
9019 if test "x$ac_cv_func_wctype" = x
""yes; then :
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
9023 $as_echo_n "checking for wctype in -lw... " >&6; }
9024 if test "${ac_cv_lib_w_wctype+set}" = set; then :
9025 $as_echo_n "(cached) " >&6
9027 ac_check_lib_save_LIBS
=$LIBS
9029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9030 /* end confdefs.h. */
9032 /* Override any GCC internal prototype to avoid an error.
9033 Use char because int might match the return type of a GCC
9034 builtin and then its argument prototype would still apply. */
9047 if ac_fn_c_try_link
"$LINENO"; then :
9048 ac_cv_lib_w_wctype
=yes
9050 ac_cv_lib_w_wctype
=no
9052 rm -f core conftest.err conftest.
$ac_objext \
9053 conftest
$ac_exeext conftest.
$ac_ext
9054 LIBS
=$ac_check_lib_save_LIBS
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
9057 $as_echo "$ac_cv_lib_w_wctype" >&6; }
9058 if test "x$ac_cv_lib_w_wctype" = x
""yes; then :
9059 cat >>confdefs.h
<<_ACEOF
9070 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
9072 $as_echo_n "checking for library containing gethostbyname... " >&6; }
9073 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9074 $as_echo_n "(cached) " >&6
9076 ac_func_search_save_LIBS
=$LIBS
9077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9078 /* end confdefs.h. */
9080 /* Override any GCC internal prototype to avoid an error.
9081 Use char because int might match the return type of a GCC
9082 builtin and then its argument prototype would still apply. */
9086 char gethostbyname ();
9090 return gethostbyname ();
9095 for ac_lib
in '' nsl
; do
9096 if test -z "$ac_lib"; then
9097 ac_res
="none required"
9100 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9102 if ac_fn_c_try_link
"$LINENO"; then :
9103 ac_cv_search_gethostbyname
=$ac_res
9105 rm -f core conftest.err conftest.
$ac_objext \
9107 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9111 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9114 ac_cv_search_gethostbyname
=no
9117 LIBS
=$ac_func_search_save_LIBS
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
9120 $as_echo "$ac_cv_search_gethostbyname" >&6; }
9121 ac_res
=$ac_cv_search_gethostbyname
9122 if test "$ac_res" != no
; then :
9123 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9128 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
9130 $as_echo_n "checking for library containing socketpair... " >&6; }
9131 if test "${ac_cv_search_socketpair+set}" = set; then :
9132 $as_echo_n "(cached) " >&6
9134 ac_func_search_save_LIBS
=$LIBS
9135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9136 /* end confdefs.h. */
9138 /* Override any GCC internal prototype to avoid an error.
9139 Use char because int might match the return type of a GCC
9140 builtin and then its argument prototype would still apply. */
9148 return socketpair ();
9153 for ac_lib
in '' socket
; do
9154 if test -z "$ac_lib"; then
9155 ac_res
="none required"
9158 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9160 if ac_fn_c_try_link
"$LINENO"; then :
9161 ac_cv_search_socketpair
=$ac_res
9163 rm -f core conftest.err conftest.
$ac_objext \
9165 if test "${ac_cv_search_socketpair+set}" = set; then :
9169 if test "${ac_cv_search_socketpair+set}" = set; then :
9172 ac_cv_search_socketpair
=no
9175 LIBS
=$ac_func_search_save_LIBS
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
9178 $as_echo "$ac_cv_search_socketpair" >&6; }
9179 ac_res
=$ac_cv_search_socketpair
9180 if test "$ac_res" != no
; then :
9181 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9186 # Link in zlib if we can. This allows us to read compressed debug sections.
9188 # See if the user specified whether he wants zlib support or not.
9190 # Check whether --with-zlib was given.
9191 if test "${with_zlib+set}" = set; then :
9198 if test "$with_zlib" != "no"; then
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
9200 $as_echo_n "checking for library containing zlibVersion... " >&6; }
9201 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9202 $as_echo_n "(cached) " >&6
9204 ac_func_search_save_LIBS
=$LIBS
9205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9206 /* end confdefs.h. */
9208 /* Override any GCC internal prototype to avoid an error.
9209 Use char because int might match the return type of a GCC
9210 builtin and then its argument prototype would still apply. */
9214 char zlibVersion ();
9218 return zlibVersion ();
9223 for ac_lib
in '' z
; do
9224 if test -z "$ac_lib"; then
9225 ac_res
="none required"
9228 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9230 if ac_fn_c_try_link
"$LINENO"; then :
9231 ac_cv_search_zlibVersion
=$ac_res
9233 rm -f core conftest.err conftest.
$ac_objext \
9235 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9239 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9242 ac_cv_search_zlibVersion
=no
9245 LIBS
=$ac_func_search_save_LIBS
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
9248 $as_echo "$ac_cv_search_zlibVersion" >&6; }
9249 ac_res
=$ac_cv_search_zlibVersion
9250 if test "$ac_res" != no
; then :
9251 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9252 for ac_header
in zlib.h
9254 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
9255 if test "x$ac_cv_header_zlib_h" = x
""yes; then :
9256 cat >>confdefs.h
<<_ACEOF
9257 #define HAVE_ZLIB_H 1
9266 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
9267 as_fn_error
"zlib (libz) library was explicitly requested but not found" "$LINENO" 5
9272 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
9274 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
9275 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9276 $as_echo_n "(cached) " >&6
9278 ac_func_search_save_LIBS
=$LIBS
9279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9280 /* end confdefs.h. */
9282 /* Override any GCC internal prototype to avoid an error.
9283 Use char because int might match the return type of a GCC
9284 builtin and then its argument prototype would still apply. */
9288 char dlgetmodinfo ();
9292 return dlgetmodinfo ();
9297 for ac_lib
in '' dl xpdl
; do
9298 if test -z "$ac_lib"; then
9299 ac_res
="none required"
9302 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9304 if ac_fn_c_try_link
"$LINENO"; then :
9305 ac_cv_search_dlgetmodinfo
=$ac_res
9307 rm -f core conftest.err conftest.
$ac_objext \
9309 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9313 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9316 ac_cv_search_dlgetmodinfo
=no
9319 LIBS
=$ac_func_search_save_LIBS
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
9322 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
9323 ac_res
=$ac_cv_search_dlgetmodinfo
9324 if test "$ac_res" != no
; then :
9325 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9333 # Check whether --with-libiconv-prefix was given.
9334 if test "${with_libiconv_prefix+set}" = set; then :
9335 withval
=$with_libiconv_prefix;
9336 for dir
in `echo "$withval" | tr : ' '`; do
9337 if test -d $dir/include
; then LIBICONV_INCLUDE
="-I$dir/include"; fi
9338 if test -d $dir/lib
; then LIBICONV_LIBDIR
="-L$dir/lib"; fi
9344 BUILD_LIBICONV_LIBDIRS
="../libiconv/lib/.libs ../libiconv/lib/_libs"
9345 BUILD_LIBICONV_INCLUDE
="-I../libiconv/include"
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9348 $as_echo_n "checking for iconv... " >&6; }
9349 if test "${am_cv_func_iconv+set}" = set; then :
9350 $as_echo_n "(cached) " >&6
9353 am_cv_func_iconv
="no, consider installing GNU libiconv"
9355 am_cv_use_build_libiconv
=no
9356 am_cv_build_libiconv_path
=
9358 # If libiconv is part of the build tree, then try using it over
9360 if test -d ..
/libiconv
; then
9361 for lib_dir
in $BUILD_LIBICONV_LIBDIRS; do
9362 am_save_LIBS
="$LIBS"
9363 am_save_CPPFLAGS
="$CPPFLAGS"
9364 LIBS
="$LIBS $lib_dir/libiconv.a"
9365 CPPFLAGS
="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
9366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9367 /* end confdefs.h. */
9373 iconv_t cd = iconv_open("","");
9374 iconv(cd,NULL,NULL,NULL,NULL);
9380 if ac_fn_c_try_link
"$LINENO"; then :
9381 am_cv_use_build_libiconv
=yes
9382 am_cv_build_libiconv_path
=$lib_dir/libiconv.a
9384 am_cv_func_iconv
=yes
9386 rm -f core conftest.err conftest.
$ac_objext \
9387 conftest
$ac_exeext conftest.
$ac_ext
9388 LIBS
="$am_save_LIBS"
9389 CPPFLAGS
="$am_save_CPPFLAGS"
9390 if test "$am_cv_use_build_libiconv" = "yes"; then
9396 # Next, try to find iconv in libc.
9397 if test "$am_cv_func_iconv" != yes; then
9398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9399 /* end confdefs.h. */
9405 iconv_t cd = iconv_open("","");
9406 iconv(cd,NULL,NULL,NULL,NULL);
9412 if ac_fn_c_try_link
"$LINENO"; then :
9413 am_cv_func_iconv
=yes
9415 rm -f core conftest.err conftest.
$ac_objext \
9416 conftest
$ac_exeext conftest.
$ac_ext
9419 # If iconv was not in libc, try -liconv. In this case, arrange to
9420 # look in the libiconv prefix, if it was specified by the user.
9421 if test "$am_cv_func_iconv" != yes; then
9422 am_save_CPPFLAGS
="$CPPFLAGS"
9423 am_save_LIBS
="$LIBS"
9424 if test -n "$LIBICONV_INCLUDE"; then
9425 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
9426 LIBS
="$LIBS $LIBICONV_LIBDIR"
9428 LIBS
="$LIBS -liconv"
9429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9430 /* end confdefs.h. */
9436 iconv_t cd = iconv_open("","");
9437 iconv(cd,NULL,NULL,NULL,NULL);
9443 if ac_fn_c_try_link
"$LINENO"; then :
9445 am_cv_func_iconv
=yes
9447 rm -f core conftest.err conftest.
$ac_objext \
9448 conftest
$ac_exeext conftest.
$ac_ext
9449 LIBS
="$am_save_LIBS"
9450 CPPFLAGS
="$am_save_CPPFLAGS"
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9455 $as_echo "$am_cv_func_iconv" >&6; }
9457 # Set the various flags based on the cache variables. We can't rely
9458 # on the flags to remain set from the above code, due to caching.
9460 if test "$am_cv_lib_iconv" = yes; then
9466 if test "$am_cv_use_build_libiconv" = yes; then
9467 LIBICONV
="$am_cv_build_libiconv_path"
9469 LIBICONV_INCLUDE
="$BUILD_LIBICONV_INCLUDE"
9471 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
9472 LIBS
="$LIBS $LIBICONV_LIBDIR $LIBICONV"
9474 if test "$am_cv_func_iconv" = yes; then
9476 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9479 $as_echo_n "checking for iconv declaration... " >&6; }
9480 if test "${am_cv_proto_iconv+set}" = set; then :
9481 $as_echo_n "(cached) " >&6
9484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9485 /* end confdefs.h. */
9493 #if defined(__STDC__) || defined(__cplusplus)
9494 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9507 if ac_fn_c_try_compile
"$LINENO"; then :
9508 am_cv_proto_iconv_arg1
=""
9510 am_cv_proto_iconv_arg1
="const"
9512 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9513 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);"
9516 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9518 }$am_cv_proto_iconv" >&5
9520 }$am_cv_proto_iconv" >&6; }
9522 cat >>confdefs.h
<<_ACEOF
9523 #define ICONV_CONST $am_cv_proto_iconv_arg1
9529 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
9530 # There is a very specific comment in /usr/include/curses.h explaining that
9531 # termcap routines built into libcurses must not be used.
9533 # The symptoms we observed so far is GDB unexpectedly changing
9534 # the terminal settings when tgetent is called - this is particularly
9535 # visible as the output is missing carriage returns, and so rapidly
9536 # becomes very hard to read.
9538 # The readline configure script has already decided that libtermcap
9539 # was enough for its purposes, and so decided to build readline using
9540 # libtermcap. Since the TUI mode requires curses, building GDB with
9541 # TUI enabled results in both libraries to be used at the same time,
9542 # which is not allowed. This basically means that GDB with TUI is
9543 # broken on alpha-osf.
9547 if test x
"$enable_tui" = xyes
; then
9548 as_fn_error
"Building GDB with TUI mode is not supported on this host" "$LINENO" 5
9550 if test x
"$enable_tui" = xauto
; then
9556 # For the TUI, we need enhanced curses functionality.
9557 if test x
"$enable_tui" != xno
; then
9562 if test x
"$prefer_curses" = xyes
; then
9563 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9564 # curses library because the latter might not provide all the
9565 # functionality we need. However, this leads to problems on systems
9566 # where the linker searches /usr/local/lib, but the compiler doesn't
9567 # search /usr/local/include, if ncurses is installed in /usr/local. A
9568 # default installation of ncurses on alpha*-dec-osf* will lead to such
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
9571 $as_echo_n "checking for library containing waddstr... " >&6; }
9572 if test "${ac_cv_search_waddstr+set}" = set; then :
9573 $as_echo_n "(cached) " >&6
9575 ac_func_search_save_LIBS
=$LIBS
9576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9577 /* end confdefs.h. */
9579 /* Override any GCC internal prototype to avoid an error.
9580 Use char because int might match the return type of a GCC
9581 builtin and then its argument prototype would still apply. */
9594 for ac_lib
in '' ncurses cursesX curses
; do
9595 if test -z "$ac_lib"; then
9596 ac_res
="none required"
9599 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9601 if ac_fn_c_try_link
"$LINENO"; then :
9602 ac_cv_search_waddstr
=$ac_res
9604 rm -f core conftest.err conftest.
$ac_objext \
9606 if test "${ac_cv_search_waddstr+set}" = set; then :
9610 if test "${ac_cv_search_waddstr+set}" = set; then :
9613 ac_cv_search_waddstr
=no
9616 LIBS
=$ac_func_search_save_LIBS
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
9619 $as_echo "$ac_cv_search_waddstr" >&6; }
9620 ac_res
=$ac_cv_search_waddstr
9621 if test "$ac_res" != no
; then :
9622 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9627 if test "$ac_cv_search_waddstr" != no
; then
9632 # Check whether we should enable the TUI, but only do so if we really
9634 if test x
"$enable_tui" != xno
; then
9635 if test -d $srcdir/tui
; then
9636 if test "$curses_found" != no
; then
9637 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
9638 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
9639 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9640 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
9641 CONFIG_ALL
="${CONFIG_ALL} all-tui"
9642 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-tui"
9643 CONFIG_INSTALL
="${CONFIG_INSTALL} install-tui"
9644 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-tui"
9646 if test x
"$enable_tui" = xyes
; then
9647 as_fn_error
"no enhanced curses library found; disable TUI" "$LINENO" 5
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
9650 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9656 # Since GDB uses Readline, we need termcap functionality. In many
9657 # cases this will be provided by the curses library, but some systems
9658 # have a seperate termcap library, or no curses library at all.
9662 if test -d $srcdir/libtermcap
; then
9663 LIBS
="../libtermcap/libtermcap.a $LIBS"
9664 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
9667 ac_cv_search_tgetent
="none required"
9670 ac_cv_search_tgetent
="none required"
9671 CONFIG_OBS
="$CONFIG_OBS windows-termcap.o"
9675 # These are the libraries checked by Readline.
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9677 $as_echo_n "checking for library containing tgetent... " >&6; }
9678 if test "${ac_cv_search_tgetent+set}" = set; then :
9679 $as_echo_n "(cached) " >&6
9681 ac_func_search_save_LIBS
=$LIBS
9682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9683 /* end confdefs.h. */
9685 /* Override any GCC internal prototype to avoid an error.
9686 Use char because int might match the return type of a GCC
9687 builtin and then its argument prototype would still apply. */
9700 for ac_lib
in '' termcap tinfo curses ncurses
; do
9701 if test -z "$ac_lib"; then
9702 ac_res
="none required"
9705 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9707 if ac_fn_c_try_link
"$LINENO"; then :
9708 ac_cv_search_tgetent
=$ac_res
9710 rm -f core conftest.err conftest.
$ac_objext \
9712 if test "${ac_cv_search_tgetent+set}" = set; then :
9716 if test "${ac_cv_search_tgetent+set}" = set; then :
9719 ac_cv_search_tgetent
=no
9722 LIBS
=$ac_func_search_save_LIBS
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9725 $as_echo "$ac_cv_search_tgetent" >&6; }
9726 ac_res
=$ac_cv_search_tgetent
9727 if test "$ac_res" != no
; then :
9728 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9733 if test "$ac_cv_search_tgetent" = no
; then
9734 as_fn_error
"no termcap library found" "$LINENO" 5
9738 # Check whether --with-system-readline was given.
9739 if test "${with_system_readline+set}" = set; then :
9740 withval
=$with_system_readline;
9744 if test "$with_system_readline" = yes; then
9748 READLINE_TEXI_INCFLAG
=
9750 # readline-6.0 started to use the name `_rl_echoing_p'.
9751 # `$(READLINE_DIR)/' of bundled readline would not resolve in configure.
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline_echoing_p" >&5
9754 $as_echo_n "checking for readline_echoing_p... " >&6; }
9756 LIBS
="$LIBS $READLINE"
9757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9758 /* end confdefs.h. */
9763 extern int readline_echoing_p;
9764 return readline_echoing_p;
9769 if ac_fn_c_try_link
"$LINENO"; then :
9770 READLINE_ECHOING_P
=yes
9772 READLINE_ECHOING_P
=no
9774 $as_echo "#define readline_echoing_p _rl_echoing_p" >>confdefs.h
9777 rm -f core conftest.err conftest.
$ac_objext \
9778 conftest
$ac_exeext conftest.
$ac_ext
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_ECHOING_P" >&5
9781 $as_echo "$READLINE_ECHOING_P" >&6; }
9783 READLINE
='$(READLINE_DIR)/libreadline.a'
9784 READLINE_DEPS
='$(READLINE)'
9785 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
9786 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
9794 # Check whether --with-expat was given.
9795 if test "${with_expat+set}" = set; then :
9796 withval
=$with_expat;
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9802 $as_echo_n "checking whether to use expat... " >&6; }
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9804 $as_echo "$with_expat" >&6; }
9806 if test "${with_expat}" = no
; then
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9808 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9812 if test "X$prefix" = "XNONE"; then
9813 acl_final_prefix
="$ac_default_prefix"
9815 acl_final_prefix
="$prefix"
9817 if test "X$exec_prefix" = "XNONE"; then
9818 acl_final_exec_prefix
='${prefix}'
9820 acl_final_exec_prefix
="$exec_prefix"
9822 acl_save_prefix
="$prefix"
9823 prefix
="$acl_final_prefix"
9824 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9825 prefix
="$acl_save_prefix"
9828 # Check whether --with-gnu-ld was given.
9829 if test "${with_gnu_ld+set}" = set; then :
9830 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9835 # Prepare PATH_SEPARATOR.
9836 # The user is always right.
9837 if test "${PATH_SEPARATOR+set}" != set; then
9838 echo "#! /bin/sh" >conf$$.sh
9839 echo "exit 0" >>conf$$.sh
9841 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9849 if test "$GCC" = yes; then
9850 # Check if gcc -print-prog-name=ld gives a path.
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9852 $as_echo_n "checking for ld used by GCC... " >&6; }
9855 # gcc leaves a trailing carriage return which upsets mingw
9856 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9858 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9861 # Accept absolute paths.
9862 [\\/]* |
[A-Za-z
]:[\\/]*)
9863 re_direlt
='/[^/][^/]*/\.\./'
9864 # Canonicalize the path of ld
9865 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9866 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9867 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9869 test -z "$LD" && LD
="$ac_prog"
9872 # If it fails, then pretend we aren't using GCC.
9876 # If it is relative, then search for the first ld in PATH.
9880 elif test "$with_gnu_ld" = yes; then
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9882 $as_echo_n "checking for GNU ld... " >&6; }
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9885 $as_echo_n "checking for non-GNU ld... " >&6; }
9887 if test "${acl_cv_path_LD+set}" = set; then :
9888 $as_echo_n "(cached) " >&6
9890 if test -z "$LD"; then
9891 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9892 for ac_dir
in $PATH; do
9893 test -z "$ac_dir" && ac_dir
=.
9894 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9895 acl_cv_path_LD
="$ac_dir/$ac_prog"
9896 # Check to see if the program is GNU ld. I'd rather use --version,
9897 # but apparently some GNU ld's only accept -v.
9898 # Break only if it was the GNU/non-GNU ld that we prefer.
9899 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9900 test "$with_gnu_ld" != no
&& break
9902 test "$with_gnu_ld" != yes && break
9908 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9912 LD
="$acl_cv_path_LD"
9913 if test -n "$LD"; then
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9915 $as_echo "$LD" >&6; }
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9918 $as_echo "no" >&6; }
9920 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9922 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9923 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9924 $as_echo_n "(cached) " >&6
9926 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9927 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9928 acl_cv_prog_gnu_ld
=yes
9930 acl_cv_prog_gnu_ld
=no
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9934 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9935 with_gnu_ld
=$acl_cv_prog_gnu_ld
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9940 $as_echo_n "checking for shared library run path origin... " >&6; }
9941 if test "${acl_cv_rpath+set}" = set; then :
9942 $as_echo_n "(cached) " >&6
9945 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9946 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9953 $as_echo "$acl_cv_rpath" >&6; }
9955 libext
="$acl_cv_libext"
9956 shlibext
="$acl_cv_shlibext"
9957 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9958 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9959 hardcode_direct
="$acl_cv_hardcode_direct"
9960 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9961 # Check whether --enable-rpath was given.
9962 if test "${enable_rpath+set}" = set; then :
9963 enableval
=$enable_rpath; :
9979 acl_save_prefix
="$prefix"
9980 prefix
="$acl_final_prefix"
9981 acl_save_exec_prefix
="$exec_prefix"
9982 exec_prefix
="$acl_final_exec_prefix"
9984 eval additional_includedir
=\"$includedir\"
9985 eval additional_libdir
=\"$libdir\"
9987 exec_prefix
="$acl_save_exec_prefix"
9988 prefix
="$acl_save_prefix"
9991 # Check whether --with-libexpat-prefix was given.
9992 if test "${with_libexpat_prefix+set}" = set; then :
9993 withval
=$with_libexpat_prefix;
9994 if test "X$withval" = "Xno"; then
9997 if test "X$withval" = "X"; then
9999 acl_save_prefix
="$prefix"
10000 prefix
="$acl_final_prefix"
10001 acl_save_exec_prefix
="$exec_prefix"
10002 exec_prefix
="$acl_final_exec_prefix"
10004 eval additional_includedir
=\"$includedir\"
10005 eval additional_libdir
=\"$libdir\"
10007 exec_prefix
="$acl_save_exec_prefix"
10008 prefix
="$acl_save_prefix"
10011 additional_includedir
="$withval/include"
10012 additional_libdir
="$withval/lib"
10023 names_already_handled
=
10024 names_next_round
='expat '
10025 while test -n "$names_next_round"; do
10026 names_this_round
="$names_next_round"
10028 for name
in $names_this_round; do
10030 for n
in $names_already_handled; do
10031 if test "$n" = "$name"; then
10032 already_handled
=yes
10036 if test -z "$already_handled"; then
10037 names_already_handled
="$names_already_handled $name"
10038 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10039 eval value
=\"\
$HAVE_LIB$uppername\"
10040 if test -n "$value"; then
10041 if test "$value" = yes; then
10042 eval value
=\"\
$LIB$uppername\"
10043 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
10044 eval value
=\"\
$LTLIB$uppername\"
10045 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10054 if test $use_additional = yes; then
10055 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10056 found_dir
="$additional_libdir"
10057 found_so
="$additional_libdir/lib$name.$shlibext"
10058 if test -f "$additional_libdir/lib$name.la"; then
10059 found_la
="$additional_libdir/lib$name.la"
10062 if test -f "$additional_libdir/lib$name.$libext"; then
10063 found_dir
="$additional_libdir"
10064 found_a
="$additional_libdir/lib$name.$libext"
10065 if test -f "$additional_libdir/lib$name.la"; then
10066 found_la
="$additional_libdir/lib$name.la"
10071 if test "X$found_dir" = "X"; then
10072 for x
in $LDFLAGS $LTLIBEXPAT; do
10074 acl_save_prefix
="$prefix"
10075 prefix
="$acl_final_prefix"
10076 acl_save_exec_prefix
="$exec_prefix"
10077 exec_prefix
="$acl_final_exec_prefix"
10079 exec_prefix
="$acl_save_exec_prefix"
10080 prefix
="$acl_save_prefix"
10084 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10085 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10087 found_so
="$dir/lib$name.$shlibext"
10088 if test -f "$dir/lib$name.la"; then
10089 found_la
="$dir/lib$name.la"
10092 if test -f "$dir/lib$name.$libext"; then
10094 found_a
="$dir/lib$name.$libext"
10095 if test -f "$dir/lib$name.la"; then
10096 found_la
="$dir/lib$name.la"
10102 if test "X$found_dir" != "X"; then
10107 if test "X$found_dir" != "X"; then
10108 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10109 if test "X$found_so" != "X"; then
10110 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10111 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10114 for x
in $ltrpathdirs; do
10115 if test "X$x" = "X$found_dir"; then
10120 if test -z "$haveit"; then
10121 ltrpathdirs
="$ltrpathdirs $found_dir"
10123 if test "$hardcode_direct" = yes; then
10124 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10126 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10127 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10129 for x
in $rpathdirs; do
10130 if test "X$x" = "X$found_dir"; then
10135 if test -z "$haveit"; then
10136 rpathdirs
="$rpathdirs $found_dir"
10140 for x
in $LDFLAGS $LIBEXPAT; do
10142 acl_save_prefix
="$prefix"
10143 prefix
="$acl_final_prefix"
10144 acl_save_exec_prefix
="$exec_prefix"
10145 exec_prefix
="$acl_final_exec_prefix"
10147 exec_prefix
="$acl_save_exec_prefix"
10148 prefix
="$acl_save_prefix"
10150 if test "X$x" = "X-L$found_dir"; then
10155 if test -z "$haveit"; then
10156 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10158 if test "$hardcode_minus_L" != no
; then
10159 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10161 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10167 if test "X$found_a" != "X"; then
10168 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10170 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10173 additional_includedir
=
10174 case "$found_dir" in
10176 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10177 additional_includedir
="$basedir/include"
10180 if test "X$additional_includedir" != "X"; then
10181 if test "X$additional_includedir" != "X/usr/include"; then
10183 if test "X$additional_includedir" = "X/usr/local/include"; then
10184 if test -n "$GCC"; then
10186 linux
*) haveit
=yes;;
10190 if test -z "$haveit"; then
10191 for x
in $CPPFLAGS $INCEXPAT; do
10193 acl_save_prefix
="$prefix"
10194 prefix
="$acl_final_prefix"
10195 acl_save_exec_prefix
="$exec_prefix"
10196 exec_prefix
="$acl_final_exec_prefix"
10198 exec_prefix
="$acl_save_exec_prefix"
10199 prefix
="$acl_save_prefix"
10201 if test "X$x" = "X-I$additional_includedir"; then
10206 if test -z "$haveit"; then
10207 if test -d "$additional_includedir"; then
10208 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10214 if test -n "$found_la"; then
10215 save_libdir
="$libdir"
10216 case "$found_la" in
10217 */* |
*\\*) .
"$found_la" ;;
10218 *) .
"./$found_la" ;;
10220 libdir
="$save_libdir"
10221 for dep
in $dependency_libs; do
10224 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10225 if test "X$additional_libdir" != "X/usr/lib"; then
10227 if test "X$additional_libdir" = "X/usr/local/lib"; then
10228 if test -n "$GCC"; then
10230 linux
*) haveit
=yes;;
10234 if test -z "$haveit"; then
10236 for x
in $LDFLAGS $LIBEXPAT; do
10238 acl_save_prefix
="$prefix"
10239 prefix
="$acl_final_prefix"
10240 acl_save_exec_prefix
="$exec_prefix"
10241 exec_prefix
="$acl_final_exec_prefix"
10243 exec_prefix
="$acl_save_exec_prefix"
10244 prefix
="$acl_save_prefix"
10246 if test "X$x" = "X-L$additional_libdir"; then
10251 if test -z "$haveit"; then
10252 if test -d "$additional_libdir"; then
10253 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
10257 for x
in $LDFLAGS $LTLIBEXPAT; do
10259 acl_save_prefix
="$prefix"
10260 prefix
="$acl_final_prefix"
10261 acl_save_exec_prefix
="$exec_prefix"
10262 exec_prefix
="$acl_final_exec_prefix"
10264 exec_prefix
="$acl_save_exec_prefix"
10265 prefix
="$acl_save_prefix"
10267 if test "X$x" = "X-L$additional_libdir"; then
10272 if test -z "$haveit"; then
10273 if test -d "$additional_libdir"; then
10274 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10281 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10282 if test "$enable_rpath" != no
; then
10284 for x
in $rpathdirs; do
10285 if test "X$x" = "X$dir"; then
10290 if test -z "$haveit"; then
10291 rpathdirs
="$rpathdirs $dir"
10294 for x
in $ltrpathdirs; do
10295 if test "X$x" = "X$dir"; then
10300 if test -z "$haveit"; then
10301 ltrpathdirs
="$ltrpathdirs $dir"
10306 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10309 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10312 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10313 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10319 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10320 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10326 if test "X$rpathdirs" != "X"; then
10327 if test -n "$hardcode_libdir_separator"; then
10329 for found_dir
in $rpathdirs; do
10330 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10332 acl_save_libdir
="$libdir"
10334 eval flag
=\"$hardcode_libdir_flag_spec\"
10335 libdir
="$acl_save_libdir"
10336 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10338 for found_dir
in $rpathdirs; do
10339 acl_save_libdir
="$libdir"
10340 libdir
="$found_dir"
10341 eval flag
=\"$hardcode_libdir_flag_spec\"
10342 libdir
="$acl_save_libdir"
10343 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10347 if test "X$ltrpathdirs" != "X"; then
10348 for found_dir
in $ltrpathdirs; do
10349 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10354 ac_save_CPPFLAGS
="$CPPFLAGS"
10356 for element
in $INCEXPAT; do
10358 for x
in $CPPFLAGS; do
10360 acl_save_prefix
="$prefix"
10361 prefix
="$acl_final_prefix"
10362 acl_save_exec_prefix
="$exec_prefix"
10363 exec_prefix
="$acl_final_exec_prefix"
10365 exec_prefix
="$acl_save_exec_prefix"
10366 prefix
="$acl_save_prefix"
10368 if test "X$x" = "X$element"; then
10373 if test -z "$haveit"; then
10374 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
10380 $as_echo_n "checking for libexpat... " >&6; }
10381 if test "${ac_cv_libexpat+set}" = set; then :
10382 $as_echo_n "(cached) " >&6
10385 ac_save_LIBS
="$LIBS"
10386 LIBS
="$LIBS $LIBEXPAT"
10387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10388 /* end confdefs.h. */
10393 XML_Parser p = XML_ParserCreate (0);
10398 if ac_fn_c_try_link
"$LINENO"; then :
10403 rm -f core conftest.err conftest.
$ac_objext \
10404 conftest
$ac_exeext conftest.
$ac_ext
10405 LIBS
="$ac_save_LIBS"
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
10409 $as_echo "$ac_cv_libexpat" >&6; }
10410 if test "$ac_cv_libexpat" = yes; then
10413 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
10416 $as_echo_n "checking how to link with libexpat... " >&6; }
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
10418 $as_echo "$LIBEXPAT" >&6; }
10421 CPPFLAGS
="$ac_save_CPPFLAGS"
10431 if test "$HAVE_LIBEXPAT" != yes; then
10432 if test "$with_expat" = yes; then
10433 as_fn_error
"expat is missing or unusable" "$LINENO" 5
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
10436 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
10440 LIBS
="$LIBS $LIBEXPAT"
10441 for ac_func
in XML_StopParser
10443 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
10444 if test "x$ac_cv_func_XML_StopParser" = x
""yes; then :
10445 cat >>confdefs.h
<<_ACEOF
10446 #define HAVE_XML_STOPPARSER 1
10461 # Check whether --with-python was given.
10462 if test "${with_python+set}" = set; then :
10463 withval
=$with_python;
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10469 $as_echo_n "checking whether to use python... " >&6; }
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10471 $as_echo "$with_python" >&6; }
10473 if test "${with_python}" = no
; then
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10475 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10478 case "${with_python}" in
10480 if test -d ${with_python}; then
10481 # Assume the python binary is ${with_python}/bin/python.
10482 python_prog
="${with_python}/bin/python"
10484 # If python does not exit ${with_python}/bin, then try in
10485 # ${with_python}. On Windows/MinGW, this is where the Python
10487 if test ! -x "${python_prog}"; then
10488 python_prog
="${with_python}/python"
10491 if test ! -x "${python_prog}"; then
10492 # Fall back to gdb 7.0/7.1 behaviour.
10493 python_prog
=missing
10494 python_prefix
=${with_python}
10496 elif test -x "${with_python}"; then
10497 # While we can't run python compiled for $host (unless host == build),
10498 # the user could write a script that provides the needed information,
10499 # so we support that.
10500 python_prog
=${with_python}
10503 as_fn_error
"invalid value for --with-python" "$LINENO" 5
10507 # Disallow --with-python=foo/bar.
10508 as_fn_error
"invalid value for --with-python" "$LINENO" 5
10511 # The user has either specified auto, yes, or the name of the python
10512 # program assumed to be in $PATH.
10514 case "${with_python}" in
10516 if test ${build} = ${host}; then
10517 # Extract the first word of "python", so it can be a program name with args.
10518 set dummy python
; ac_word
=$2
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10520 $as_echo_n "checking for $ac_word... " >&6; }
10521 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10522 $as_echo_n "(cached) " >&6
10524 case $python_prog_path in
10526 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10529 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10530 for as_dir
in $PATH
10533 test -z "$as_dir" && as_dir
=.
10534 for ac_exec_ext
in '' $ac_executable_extensions; do
10535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10536 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10544 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10548 python_prog_path
=$ac_cv_path_python_prog_path
10549 if test -n "$python_prog_path"; then
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10551 $as_echo "$python_prog_path" >&6; }
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10554 $as_echo "no" >&6; }
10558 if test "${python_prog_path}" = missing
; then
10559 python_prog
=missing
10561 python_prog
=${python_prog_path}
10564 # Not much we can do except assume the cross-compiler will find the
10566 python_prog
=missing
10570 # While we can't run python compiled for $host (unless host == build),
10571 # the user could write a script that provides the needed information,
10572 # so we support that.
10573 python_prog
="${with_python}"
10574 # Extract the first word of "${python_prog}", so it can be a program name with args.
10575 set dummy
${python_prog}; ac_word
=$2
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10577 $as_echo_n "checking for $ac_word... " >&6; }
10578 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10579 $as_echo_n "(cached) " >&6
10581 case $python_prog_path in
10583 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10586 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10587 for as_dir
in $PATH
10590 test -z "$as_dir" && as_dir
=.
10591 for ac_exec_ext
in '' $ac_executable_extensions; do
10592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10593 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10601 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10605 python_prog_path
=$ac_cv_path_python_prog_path
10606 if test -n "$python_prog_path"; then
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10608 $as_echo "$python_prog_path" >&6; }
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10611 $as_echo "no" >&6; }
10615 if test "${python_prog_path}" = missing
; then
10616 as_fn_error
"unable to find python program ${python_prog}" "$LINENO" 5
10622 if test "${python_prog}" != missing
; then
10623 # We have a python program to use, but it may be too old.
10624 # Don't flag an error for --with-python=auto (the default).
10625 have_python_config
=yes
10626 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
10627 if test $?
!= 0; then
10628 have_python_config
=failed
10629 if test "${with_python}" != auto
; then
10630 as_fn_error
"failure running python-config --includes" "$LINENO" 5
10633 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10634 if test $?
!= 0; then
10635 have_python_config
=failed
10636 if test "${with_python}" != auto
; then
10637 as_fn_error
"failure running python-config --ldflags" "$LINENO" 5
10640 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10641 if test $?
!= 0; then
10642 have_python_config
=failed
10643 if test "${with_python}" != auto
; then
10644 as_fn_error
"failure running python-config --exec-prefix" "$LINENO" 5
10648 # We do not have a python executable we can use to determine where
10649 # to find the Python headers and libs. We cannot guess the include
10650 # path from the python_prefix either, because that include path
10651 # depends on the Python version. So, there is nothing much we can
10652 # do except assume that the compiler will be able to find those files.
10655 have_python_config
=no
10658 # If we have python-config, only try the configuration it provides.
10659 # Otherwise fallback on the old way of trying different versions of
10663 if test "${have_python_config}" = yes; then
10664 # Determine the Python version by extracting "-lpython<version>"
10665 # part of the python_libs. <version> is usually X.Y with X and Y
10666 # being decimal numbers, but can also be XY (seen on Windows).
10668 # The extraction is performed using sed with a regular expression.
10669 # Initially, the regexp used was using the '?' quantifier to make
10670 # the dot in the version number optional. Unfortunately, this
10671 # does not work with non-GNU versions of sed because, because of
10672 # what looks like a limitation (the '?' quantifier does not work
10673 # with back-references). We work around this limitation by using
10674 # the '*' quantifier instead. It means that, in theory, we might
10675 # match unexpected version strings such as "-lpython2..7", but
10676 # this seems unlikely in practice. And even if that happens,
10677 # an error will be triggered later on, when checking that version
10679 python_version
=`echo " ${python_libs} " \
10680 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
10681 case "${python_version}" in
10684 version
=${python_version}
10686 new_CPPFLAGS
=${python_includes}
10687 new_LIBS
=${python_libs}
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10689 $as_echo_n "checking for ${version}... " >&6; }
10690 save_CPPFLAGS
=$CPPFLAGS
10692 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10693 LIBS
="$LIBS $new_LIBS"
10694 found_usable_python
=no
10695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10696 /* end confdefs.h. */
10697 #include "Python.h"
10706 if ac_fn_c_try_link
"$LINENO"; then :
10707 have_libpython
=${version}
10708 found_usable_python
=yes
10709 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10710 PYTHON_LIBS
=$new_LIBS
10712 rm -f core conftest.err conftest.
$ac_objext \
10713 conftest
$ac_exeext conftest.
$ac_ext
10714 CPPFLAGS
=$save_CPPFLAGS
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10717 $as_echo "${found_usable_python}" >&6; }
10721 as_fn_error
"unable to determine python version from ${python_libs}" "$LINENO" 5
10724 elif test "${have_python_config}" != failed
; then
10725 if test "${have_libpython}" = no
; then
10729 new_CPPFLAGS
=${python_includes}
10730 new_LIBS
="${python_libs} -lpython2.7"
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10732 $as_echo_n "checking for ${version}... " >&6; }
10733 save_CPPFLAGS
=$CPPFLAGS
10735 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10736 LIBS
="$LIBS $new_LIBS"
10737 found_usable_python
=no
10738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10739 /* end confdefs.h. */
10740 #include "Python.h"
10749 if ac_fn_c_try_link
"$LINENO"; then :
10750 have_libpython
=${version}
10751 found_usable_python
=yes
10752 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10753 PYTHON_LIBS
=$new_LIBS
10755 rm -f core conftest.err conftest.
$ac_objext \
10756 conftest
$ac_exeext conftest.
$ac_ext
10757 CPPFLAGS
=$save_CPPFLAGS
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10760 $as_echo "${found_usable_python}" >&6; }
10763 if test "${have_libpython}" = no
; then
10767 new_CPPFLAGS
=${python_includes}
10768 new_LIBS
="${python_libs} -lpython2.6"
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10770 $as_echo_n "checking for ${version}... " >&6; }
10771 save_CPPFLAGS
=$CPPFLAGS
10773 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10774 LIBS
="$LIBS $new_LIBS"
10775 found_usable_python
=no
10776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10777 /* end confdefs.h. */
10778 #include "Python.h"
10787 if ac_fn_c_try_link
"$LINENO"; then :
10788 have_libpython
=${version}
10789 found_usable_python
=yes
10790 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10791 PYTHON_LIBS
=$new_LIBS
10793 rm -f core conftest.err conftest.
$ac_objext \
10794 conftest
$ac_exeext conftest.
$ac_ext
10795 CPPFLAGS
=$save_CPPFLAGS
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10798 $as_echo "${found_usable_python}" >&6; }
10801 if test ${have_libpython} = no
; then
10805 new_CPPFLAGS
=${python_includes}
10806 new_LIBS
="${python_libs} -lpython2.5"
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10808 $as_echo_n "checking for ${version}... " >&6; }
10809 save_CPPFLAGS
=$CPPFLAGS
10811 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10812 LIBS
="$LIBS $new_LIBS"
10813 found_usable_python
=no
10814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10815 /* end confdefs.h. */
10816 #include "Python.h"
10825 if ac_fn_c_try_link
"$LINENO"; then :
10826 have_libpython
=${version}
10827 found_usable_python
=yes
10828 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10829 PYTHON_LIBS
=$new_LIBS
10831 rm -f core conftest.err conftest.
$ac_objext \
10832 conftest
$ac_exeext conftest.
$ac_ext
10833 CPPFLAGS
=$save_CPPFLAGS
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10836 $as_echo "${found_usable_python}" >&6; }
10839 if test ${have_libpython} = no
; then
10843 new_CPPFLAGS
=${python_includes}
10844 new_LIBS
="${python_libs} -lpython2.4"
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10846 $as_echo_n "checking for ${version}... " >&6; }
10847 save_CPPFLAGS
=$CPPFLAGS
10849 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10850 LIBS
="$LIBS $new_LIBS"
10851 found_usable_python
=no
10852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10853 /* end confdefs.h. */
10854 #include "Python.h"
10863 if ac_fn_c_try_link
"$LINENO"; then :
10864 have_libpython
=${version}
10865 found_usable_python
=yes
10866 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10867 PYTHON_LIBS
=$new_LIBS
10869 rm -f core conftest.err conftest.
$ac_objext \
10870 conftest
$ac_exeext conftest.
$ac_ext
10871 CPPFLAGS
=$save_CPPFLAGS
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10874 $as_echo "${found_usable_python}" >&6; }
10878 if test "${have_libpython}" = python2.7
-o "${have_libpython}" = python27
; then
10880 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
10882 elif test "${have_libpython}" = python2.6
-o "${have_libpython}" = python26
; then
10884 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
10886 elif test "${have_libpython}" = python2.5
-o "${have_libpython}" = python25
; then
10888 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
10890 elif test "${have_libpython}" = python2.4
-o "${have_libpython}" = python24
; then
10892 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
10896 if test "${have_libpython}" = no
; then
10897 case "${with_python}" in
10899 as_fn_error
"python is missing or unusable" "$LINENO" 5
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10903 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10906 as_fn_error
"no usable python found at ${with_python}" "$LINENO" 5
10910 if test -n "${python_prefix}"; then
10912 cat >>confdefs.h
<<_ACEOF
10913 #define WITH_PYTHON_PATH "${python_prefix}"
10917 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
10918 if test "x$prefix" = xNONE
; then
10919 test_prefix
=/usr
/local
10921 test_prefix
=$prefix
10924 test_prefix
=$exec_prefix
10927 case ${python_prefix} in
10928 "${test_prefix}"|
"${test_prefix}/"*|\
10929 '${exec_prefix}'|
'${exec_prefix}/'*)
10934 cat >>confdefs.h
<<_ACEOF
10935 #define PYTHON_PATH_RELOCATABLE $value
10943 if test "${have_libpython}" != no
; then
10945 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10947 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10948 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10949 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
10950 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
10951 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
10953 # Flags needed to compile Python code (taken from python-config --cflags).
10954 # We cannot call python-config directly because it will output whatever was
10955 # used when compiling the Python interpreter itself, including flags which
10956 # would make the python-related objects be compiled differently from the
10957 # rest of GDB (e.g., -O2 and -fPIC).
10958 if test "${GCC}" = yes; then
10959 tentative_python_cflags
="-fno-strict-aliasing -DNDEBUG -fwrapv"
10962 if test "x${tentative_python_cflags}" != x
; then
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10964 $as_echo_n "checking compiler flags for python code... " >&6; }
10965 for flag
in ${tentative_python_cflags}; do
10966 # Check that the compiler accepts it
10967 saved_CFLAGS
="$CFLAGS"
10968 CFLAGS
="$CFLAGS $flag"
10969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10970 /* end confdefs.h. */
10980 if ac_fn_c_try_compile
"$LINENO"; then :
10981 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
10983 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10984 CFLAGS
="$saved_CFLAGS"
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
10987 $as_echo "${PYTHON_CFLAGS}" >&6; }
10990 # On IRIX, type siginfo is not defined. Instead, sys/siginfo.h provides:
10992 # #define siginfo __siginfo
10994 # The problem is that including Python causes some XOPEN macros to be
10995 # unilaterally defined, and that in turn causes _SGIAPI to evaluate
10996 # to false. So, we work around this issue by defining siginfo ourself
10997 # though the command-line.
10998 case "$gdb_host" in
10999 irix
*) if test "${GCC}" = yes; then
11000 CPPFLAGS
="$CPPFLAGS -Dsiginfo=__siginfo"
11005 # Even if Python support is not compiled in, we need to have these files
11007 CONFIG_OBS
="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
11008 CONFIG_SRCS
="$CONFIG_SRCS python/python.c python/py-value.c \
11009 python/py-prettyprint.c python/py-auto-load.c"
11015 # ------------------------- #
11016 # Checks for header files. #
11017 # ------------------------- #
11019 ac_header_dirent
=no
11020 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
11021 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
11023 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
11024 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
11025 $as_echo_n "(cached) " >&6
11027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11028 /* end confdefs.h. */
11029 #include <sys/types.h>
11041 if ac_fn_c_try_compile
"$LINENO"; then :
11042 eval "$as_ac_Header=yes"
11044 eval "$as_ac_Header=no"
11046 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11048 eval ac_res
=\$
$as_ac_Header
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11050 $as_echo "$ac_res" >&6; }
11051 eval as_val
=\$
$as_ac_Header
11052 if test "x$as_val" = x
""yes; then :
11053 cat >>confdefs.h
<<_ACEOF
11054 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11057 ac_header_dirent
=$ac_hdr; break
11061 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11062 if test $ac_header_dirent = dirent.h
; then
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11064 $as_echo_n "checking for library containing opendir... " >&6; }
11065 if test "${ac_cv_search_opendir+set}" = set; then :
11066 $as_echo_n "(cached) " >&6
11068 ac_func_search_save_LIBS
=$LIBS
11069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11070 /* end confdefs.h. */
11072 /* Override any GCC internal prototype to avoid an error.
11073 Use char because int might match the return type of a GCC
11074 builtin and then its argument prototype would still apply. */
11087 for ac_lib
in '' dir
; do
11088 if test -z "$ac_lib"; then
11089 ac_res
="none required"
11092 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11094 if ac_fn_c_try_link
"$LINENO"; then :
11095 ac_cv_search_opendir
=$ac_res
11097 rm -f core conftest.err conftest.
$ac_objext \
11099 if test "${ac_cv_search_opendir+set}" = set; then :
11103 if test "${ac_cv_search_opendir+set}" = set; then :
11106 ac_cv_search_opendir
=no
11108 rm conftest.
$ac_ext
11109 LIBS
=$ac_func_search_save_LIBS
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11112 $as_echo "$ac_cv_search_opendir" >&6; }
11113 ac_res
=$ac_cv_search_opendir
11114 if test "$ac_res" != no
; then :
11115 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11121 $as_echo_n "checking for library containing opendir... " >&6; }
11122 if test "${ac_cv_search_opendir+set}" = set; then :
11123 $as_echo_n "(cached) " >&6
11125 ac_func_search_save_LIBS
=$LIBS
11126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11127 /* end confdefs.h. */
11129 /* Override any GCC internal prototype to avoid an error.
11130 Use char because int might match the return type of a GCC
11131 builtin and then its argument prototype would still apply. */
11144 for ac_lib
in '' x
; do
11145 if test -z "$ac_lib"; then
11146 ac_res
="none required"
11149 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11151 if ac_fn_c_try_link
"$LINENO"; then :
11152 ac_cv_search_opendir
=$ac_res
11154 rm -f core conftest.err conftest.
$ac_objext \
11156 if test "${ac_cv_search_opendir+set}" = set; then :
11160 if test "${ac_cv_search_opendir+set}" = set; then :
11163 ac_cv_search_opendir
=no
11165 rm conftest.
$ac_ext
11166 LIBS
=$ac_func_search_save_LIBS
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11169 $as_echo "$ac_cv_search_opendir" >&6; }
11170 ac_res
=$ac_cv_search_opendir
11171 if test "$ac_res" != no
; then :
11172 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11179 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11180 if test "${ac_cv_header_stat_broken+set}" = set; then :
11181 $as_echo_n "(cached) " >&6
11183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11184 /* end confdefs.h. */
11185 #include <sys/types.h>
11186 #include <sys/stat.h>
11188 #if defined S_ISBLK && defined S_IFDIR
11189 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11192 #if defined S_ISBLK && defined S_IFCHR
11193 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11196 #if defined S_ISLNK && defined S_IFREG
11197 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11200 #if defined S_ISSOCK && defined S_IFREG
11201 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11205 if ac_fn_c_try_compile
"$LINENO"; then :
11206 ac_cv_header_stat_broken
=no
11208 ac_cv_header_stat_broken
=yes
11210 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11213 $as_echo "$ac_cv_header_stat_broken" >&6; }
11214 if test $ac_cv_header_stat_broken = yes; then
11216 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11221 $as_echo_n "checking for ANSI C header files... " >&6; }
11222 if test "${ac_cv_header_stdc+set}" = set; then :
11223 $as_echo_n "(cached) " >&6
11225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11226 /* end confdefs.h. */
11227 #include <stdlib.h>
11228 #include <stdarg.h>
11229 #include <string.h>
11240 if ac_fn_c_try_compile
"$LINENO"; then :
11241 ac_cv_header_stdc
=yes
11243 ac_cv_header_stdc
=no
11245 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11247 if test $ac_cv_header_stdc = yes; then
11248 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11250 /* end confdefs.h. */
11251 #include <string.h>
11254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11255 $EGREP "memchr" >/dev
/null
2>&1; then :
11258 ac_cv_header_stdc
=no
11264 if test $ac_cv_header_stdc = yes; then
11265 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11267 /* end confdefs.h. */
11268 #include <stdlib.h>
11271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11272 $EGREP "free" >/dev
/null
2>&1; then :
11275 ac_cv_header_stdc
=no
11281 if test $ac_cv_header_stdc = yes; then
11282 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11283 if test "$cross_compiling" = yes; then :
11286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11287 /* end confdefs.h. */
11289 #include <stdlib.h>
11290 #if ((' ' & 0x0FF) == 0x020)
11291 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11292 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11294 # define ISLOWER(c) \
11295 (('a' <= (c) && (c) <= 'i') \
11296 || ('j' <= (c) && (c) <= 'r') \
11297 || ('s' <= (c) && (c) <= 'z'))
11298 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11301 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11306 for (i = 0; i < 256; i++)
11307 if (XOR (islower (i), ISLOWER (i))
11308 || toupper (i) != TOUPPER (i))
11313 if ac_fn_c_try_run
"$LINENO"; then :
11316 ac_cv_header_stdc
=no
11318 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11319 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11325 $as_echo "$ac_cv_header_stdc" >&6; }
11326 if test $ac_cv_header_stdc = yes; then
11328 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11332 # elf_hp.h is for HP/UX 64-bit shared library support.
11333 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
11334 # unconditionally, so what's the point in checking these?
11335 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
11336 thread_db.h gnu
/libc-version.h signal.h stddef.h \
11337 stdlib.h string.h memory.h
strings.h sys
/fault.h \
11338 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
11339 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
11340 sys
/reg.h sys
/debugreg.h sys
/select.h sys
/syscall.h \
11341 sys
/types.h sys
/wait.h
wait.h termios.h termio.h \
11342 sgtty.h unistd.h elf_hp.h ctype.h
time.h locale.h
11344 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11345 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11346 eval as_val
=\$
$as_ac_Header
11347 if test "x$as_val" = x
""yes; then :
11348 cat >>confdefs.h
<<_ACEOF
11349 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11356 for ac_header
in link.h
11358 ac_fn_c_check_header_compile
"$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
11359 # include <sys/types.h>
11362 # include <nlist.h>
11366 if test "x$ac_cv_header_link_h" = x
""yes; then :
11367 cat >>confdefs.h
<<_ACEOF
11368 #define HAVE_LINK_H 1
11375 for ac_header
in sys
/proc.h
11377 ac_fn_c_check_header_compile
"$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
11378 # include <sys/param.h>
11382 if test "x$ac_cv_header_sys_proc_h" = x
""yes; then :
11383 cat >>confdefs.h
<<_ACEOF
11384 #define HAVE_SYS_PROC_H 1
11391 for ac_header
in sys
/user.h
11393 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
11394 # include <sys/param.h>
11398 if test "x$ac_cv_header_sys_user_h" = x
""yes; then :
11399 cat >>confdefs.h
<<_ACEOF
11400 #define HAVE_SYS_USER_H 1
11408 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
11409 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
11410 # think that we don't have <curses.h> if we're using GCC.
11413 if test "$GCC" = yes; then
11415 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
11419 for ac_header
in curses.h cursesX.h ncurses.h ncurses
/ncurses.h ncurses
/term.h
11421 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11422 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11423 eval as_val
=\$
$as_ac_Header
11424 if test "x$as_val" = x
""yes; then :
11425 cat >>confdefs.h
<<_ACEOF
11426 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11433 for ac_header
in term.h
11435 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
11436 # include <curses.h>
11440 if test "x$ac_cv_header_term_h" = x
""yes; then :
11441 cat >>confdefs.h
<<_ACEOF
11442 #define HAVE_TERM_H 1
11450 # ------------------------- #
11451 # Checks for declarations. #
11452 # ------------------------- #
11454 ac_fn_c_check_decl
"$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
11455 if test "x$ac_cv_have_decl_free" = x
""yes; then :
11461 cat >>confdefs.h
<<_ACEOF
11462 #define HAVE_DECL_FREE $ac_have_decl
11464 ac_fn_c_check_decl
"$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
11465 if test "x$ac_cv_have_decl_malloc" = x
""yes; then :
11471 cat >>confdefs.h
<<_ACEOF
11472 #define HAVE_DECL_MALLOC $ac_have_decl
11474 ac_fn_c_check_decl
"$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
11475 if test "x$ac_cv_have_decl_realloc" = x
""yes; then :
11481 cat >>confdefs.h
<<_ACEOF
11482 #define HAVE_DECL_REALLOC $ac_have_decl
11484 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
11485 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
11491 cat >>confdefs.h
<<_ACEOF
11492 #define HAVE_DECL_STRERROR $ac_have_decl
11494 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
11495 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
11501 cat >>confdefs.h
<<_ACEOF
11502 #define HAVE_DECL_STRSTR $ac_have_decl
11504 ac_fn_c_check_decl
"$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
11505 if test "x$ac_cv_have_decl_getopt" = x
""yes; then :
11511 cat >>confdefs.h
<<_ACEOF
11512 #define HAVE_DECL_GETOPT $ac_have_decl
11514 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11515 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
11521 cat >>confdefs.h
<<_ACEOF
11522 #define HAVE_DECL_SNPRINTF $ac_have_decl
11524 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
11525 if test "x$ac_cv_have_decl_vsnprintf" = x
""yes; then :
11531 cat >>confdefs.h
<<_ACEOF
11532 #define HAVE_DECL_VSNPRINTF $ac_have_decl
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11537 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11538 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
11539 $as_echo_n "(cached) " >&6
11541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11542 /* end confdefs.h. */
11543 #include <locale.h>
11552 if ac_fn_c_try_link
"$LINENO"; then :
11553 am_cv_val_LC_MESSAGES
=yes
11555 am_cv_val_LC_MESSAGES
=no
11557 rm -f core conftest.err conftest.
$ac_objext \
11558 conftest
$ac_exeext conftest.
$ac_ext
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11561 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11562 if test $am_cv_val_LC_MESSAGES = yes; then
11564 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11569 # ----------------------- #
11570 # Checks for structures. #
11571 # ----------------------- #
11573 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
11574 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then :
11576 cat >>confdefs.h
<<_ACEOF
11577 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11582 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
11583 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then :
11585 cat >>confdefs.h
<<_ACEOF
11586 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11593 # ------------------ #
11594 # Checks for types. #
11595 # ------------------ #
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11598 $as_echo_n "checking return type of signal handlers... " >&6; }
11599 if test "${ac_cv_type_signal+set}" = set; then :
11600 $as_echo_n "(cached) " >&6
11602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11603 /* end confdefs.h. */
11604 #include <sys/types.h>
11605 #include <signal.h>
11610 return *(signal (0, 0)) (0) == 1;
11615 if ac_fn_c_try_compile
"$LINENO"; then :
11616 ac_cv_type_signal
=int
11618 ac_cv_type_signal
=void
11620 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11623 $as_echo "$ac_cv_type_signal" >&6; }
11625 cat >>confdefs.h
<<_ACEOF
11626 #define RETSIGTYPE $ac_cv_type_signal
11630 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11631 #include <sys/socket.h>
11634 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
11636 cat >>confdefs.h
<<_ACEOF
11637 #define HAVE_SOCKLEN_T 1
11644 # ------------------------------------- #
11645 # Checks for compiler characteristics. #
11646 # ------------------------------------- #
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11649 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11650 if test "${ac_cv_c_const+set}" = set; then :
11651 $as_echo_n "(cached) " >&6
11653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11654 /* end confdefs.h. */
11659 /* FIXME: Include the comments suggested by Paul. */
11660 #ifndef __cplusplus
11661 /* Ultrix mips cc rejects this. */
11662 typedef int charset[2];
11664 /* SunOS 4.1.1 cc rejects this. */
11665 char const *const *pcpcc;
11667 /* NEC SVR4.0.2 mips cc rejects this. */
11668 struct point {int x, y;};
11669 static struct point const zero = {0,0};
11670 /* AIX XL C 1.02.0.0 rejects this.
11671 It does not let you subtract one const X* pointer from another in
11672 an arm of an if-expression whose if-part is not a constant
11674 const char *g = "string";
11675 pcpcc = &g + (g ? g-g : 0);
11676 /* HPUX 7.0 cc rejects these. */
11678 ppc = (char**) pcpcc;
11679 pcpcc = (char const *const *) ppc;
11680 { /* SCO 3.2v4 cc rejects this. */
11682 char const *s = 0 ? (char *) 0 : (char const *) 0;
11687 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11688 int x[] = {25, 17};
11689 const int *foo = &x[0];
11692 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11693 typedef const int *iptr;
11697 { /* AIX XL C 1.02.0.0 rejects this saying
11698 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11699 struct s { int j; const int *ap[3]; };
11700 struct s *b; b->j = 5;
11702 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11703 const int foo = 10;
11704 if (!foo) return 0;
11706 return !cs[0] && !zero.x;
11713 if ac_fn_c_try_compile
"$LINENO"; then :
11718 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11721 $as_echo "$ac_cv_c_const" >&6; }
11722 if test $ac_cv_c_const = no
; then
11724 $as_echo "#define const /**/" >>confdefs.h
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11729 $as_echo_n "checking for inline... " >&6; }
11730 if test "${ac_cv_c_inline+set}" = set; then :
11731 $as_echo_n "(cached) " >&6
11734 for ac_kw
in inline __inline__ __inline
; do
11735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11736 /* end confdefs.h. */
11737 #ifndef __cplusplus
11739 static $ac_kw foo_t static_foo () {return 0; }
11740 $ac_kw foo_t foo () {return 0; }
11744 if ac_fn_c_try_compile
"$LINENO"; then :
11745 ac_cv_c_inline
=$ac_kw
11747 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11748 test "$ac_cv_c_inline" != no
&& break
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11753 $as_echo "$ac_cv_c_inline" >&6; }
11755 case $ac_cv_c_inline in
11758 case $ac_cv_c_inline in
11760 *) ac_val
=$ac_cv_c_inline;;
11762 cat >>confdefs.h
<<_ACEOF
11763 #ifndef __cplusplus
11764 #define inline $ac_val
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11771 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11772 if test "${ac_cv_c_bigendian+set}" = set; then :
11773 $as_echo_n "(cached) " >&6
11775 ac_cv_c_bigendian
=unknown
11776 # See if we're dealing with a universal compiler.
11777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11778 /* end confdefs.h. */
11779 #ifndef __APPLE_CC__
11780 not a universal capable compiler
11785 if ac_fn_c_try_compile
"$LINENO"; then :
11787 # Check for potential -arch flags. It is not universal unless
11788 # there are at least two -arch flags with different values.
11791 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11792 if test -n "$ac_prev"; then
11794 i?
86 | x86_64 | ppc | ppc64
)
11795 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
11798 ac_cv_c_bigendian
=universal
11804 elif test "x$ac_word" = "x-arch"; then
11809 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11810 if test $ac_cv_c_bigendian = unknown
; then
11811 # See if sys/param.h defines the BYTE_ORDER macro.
11812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11813 /* end confdefs.h. */
11814 #include <sys/types.h>
11815 #include <sys/param.h>
11820 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11821 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11823 bogus endian macros
11830 if ac_fn_c_try_compile
"$LINENO"; then :
11831 # It does; now see whether it defined to BIG_ENDIAN or not.
11832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11833 /* end confdefs.h. */
11834 #include <sys/types.h>
11835 #include <sys/param.h>
11840 #if BYTE_ORDER != BIG_ENDIAN
11848 if ac_fn_c_try_compile
"$LINENO"; then :
11849 ac_cv_c_bigendian
=yes
11851 ac_cv_c_bigendian
=no
11853 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11855 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11857 if test $ac_cv_c_bigendian = unknown
; then
11858 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11860 /* end confdefs.h. */
11861 #include <limits.h>
11866 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11867 bogus endian macros
11874 if ac_fn_c_try_compile
"$LINENO"; then :
11875 # It does; now see whether it defined to _BIG_ENDIAN or not.
11876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11877 /* end confdefs.h. */
11878 #include <limits.h>
11883 #ifndef _BIG_ENDIAN
11891 if ac_fn_c_try_compile
"$LINENO"; then :
11892 ac_cv_c_bigendian
=yes
11894 ac_cv_c_bigendian
=no
11896 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11898 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11900 if test $ac_cv_c_bigendian = unknown
; then
11901 # Compile a test program.
11902 if test "$cross_compiling" = yes; then :
11903 # Try to guess by grepping values from an object file.
11904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11905 /* end confdefs.h. */
11906 short int ascii_mm[] =
11907 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11908 short int ascii_ii[] =
11909 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11910 int use_ascii (int i) {
11911 return ascii_mm[i] + ascii_ii[i];
11913 short int ebcdic_ii[] =
11914 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11915 short int ebcdic_mm[] =
11916 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11917 int use_ebcdic (int i) {
11918 return ebcdic_mm[i] + ebcdic_ii[i];
11925 return use_ascii (foo) == use_ebcdic (foo);
11930 if ac_fn_c_try_compile
"$LINENO"; then :
11931 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
11932 ac_cv_c_bigendian
=yes
11934 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
11935 if test "$ac_cv_c_bigendian" = unknown
; then
11936 ac_cv_c_bigendian
=no
11938 # finding both strings is unlikely to happen, but who knows?
11939 ac_cv_c_bigendian
=unknown
11943 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11945 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11946 /* end confdefs.h. */
11947 $ac_includes_default
11952 /* Are we little or big endian? From Harbison&Steele. */
11956 char c[sizeof (long int)];
11959 return u.c[sizeof (long int) - 1] == 1;
11965 if ac_fn_c_try_run
"$LINENO"; then :
11966 ac_cv_c_bigendian
=no
11968 ac_cv_c_bigendian
=yes
11970 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11971 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11977 $as_echo "$ac_cv_c_bigendian" >&6; }
11978 case $ac_cv_c_bigendian in #(
11980 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11986 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11990 as_fn_error
"unknown endianness
11991 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11995 # ------------------------------ #
11996 # Checks for library functions. #
11997 # ------------------------------ #
11999 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12000 # for constant arguments. Useless!
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12002 $as_echo_n "checking for working alloca.h... " >&6; }
12003 if test "${ac_cv_working_alloca_h+set}" = set; then :
12004 $as_echo_n "(cached) " >&6
12006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12007 /* end confdefs.h. */
12008 #include <alloca.h>
12012 char *p = (char *) alloca (2 * sizeof (int));
12018 if ac_fn_c_try_link
"$LINENO"; then :
12019 ac_cv_working_alloca_h
=yes
12021 ac_cv_working_alloca_h
=no
12023 rm -f core conftest.err conftest.
$ac_objext \
12024 conftest
$ac_exeext conftest.
$ac_ext
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12027 $as_echo "$ac_cv_working_alloca_h" >&6; }
12028 if test $ac_cv_working_alloca_h = yes; then
12030 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12035 $as_echo_n "checking for alloca... " >&6; }
12036 if test "${ac_cv_func_alloca_works+set}" = set; then :
12037 $as_echo_n "(cached) " >&6
12039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12040 /* end confdefs.h. */
12042 # define alloca __builtin_alloca
12045 # include <malloc.h>
12046 # define alloca _alloca
12048 # ifdef HAVE_ALLOCA_H
12049 # include <alloca.h>
12054 # ifndef alloca /* predefined by HP cc +Olibcalls */
12065 char *p = (char *) alloca (1);
12071 if ac_fn_c_try_link
"$LINENO"; then :
12072 ac_cv_func_alloca_works
=yes
12074 ac_cv_func_alloca_works
=no
12076 rm -f core conftest.err conftest.
$ac_objext \
12077 conftest
$ac_exeext conftest.
$ac_ext
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12080 $as_echo "$ac_cv_func_alloca_works" >&6; }
12082 if test $ac_cv_func_alloca_works = yes; then
12084 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12087 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12088 # that cause trouble. Some versions do not even contain alloca or
12089 # contain a buggy version. If you still want to use their alloca,
12090 # use ar to extract alloca.o from them instead of compiling alloca.c.
12092 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
12094 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12098 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12099 if test "${ac_cv_os_cray+set}" = set; then :
12100 $as_echo_n "(cached) " >&6
12102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12103 /* end confdefs.h. */
12104 #if defined CRAY && ! defined CRAY2
12111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12112 $EGREP "webecray" >/dev
/null
2>&1; then :
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12121 $as_echo "$ac_cv_os_cray" >&6; }
12122 if test $ac_cv_os_cray = yes; then
12123 for ac_func
in _getb67 GETB67 getb67
; do
12124 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12125 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12126 eval as_val
=\$
$as_ac_var
12127 if test "x$as_val" = x
""yes; then :
12129 cat >>confdefs.h
<<_ACEOF
12130 #define CRAY_STACKSEG_END $ac_func
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12140 $as_echo_n "checking stack direction for C alloca... " >&6; }
12141 if test "${ac_cv_c_stack_direction+set}" = set; then :
12142 $as_echo_n "(cached) " >&6
12144 if test "$cross_compiling" = yes; then :
12145 ac_cv_c_stack_direction
=0
12147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12148 /* end confdefs.h. */
12149 $ac_includes_default
12151 find_stack_direction ()
12153 static char *addr = 0;
12158 return find_stack_direction ();
12161 return (&dummy > addr) ? 1 : -1;
12167 return find_stack_direction () < 0;
12170 if ac_fn_c_try_run
"$LINENO"; then :
12171 ac_cv_c_stack_direction
=1
12173 ac_cv_c_stack_direction
=-1
12175 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12176 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12181 $as_echo "$ac_cv_c_stack_direction" >&6; }
12182 cat >>confdefs.h
<<_ACEOF
12183 #define STACK_DIRECTION $ac_cv_c_stack_direction
12189 for ac_header
in stdlib.h unistd.h
12191 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12192 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12193 eval as_val
=\$
$as_ac_Header
12194 if test "x$as_val" = x
""yes; then :
12195 cat >>confdefs.h
<<_ACEOF
12196 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12203 for ac_func
in getpagesize
12205 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12206 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
12207 cat >>confdefs.h
<<_ACEOF
12208 #define HAVE_GETPAGESIZE 1
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12215 $as_echo_n "checking for working mmap... " >&6; }
12216 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12217 $as_echo_n "(cached) " >&6
12219 if test "$cross_compiling" = yes; then :
12220 ac_cv_func_mmap_fixed_mapped
=no
12222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12223 /* end confdefs.h. */
12224 $ac_includes_default
12225 /* malloc might have been renamed as rpl_malloc. */
12228 /* Thanks to Mike Haertel and Jim Avera for this test.
12229 Here is a matrix of mmap possibilities:
12230 mmap private not fixed
12231 mmap private fixed at somewhere currently unmapped
12232 mmap private fixed at somewhere already mapped
12233 mmap shared not fixed
12234 mmap shared fixed at somewhere currently unmapped
12235 mmap shared fixed at somewhere already mapped
12236 For private mappings, we should verify that changes cannot be read()
12237 back from the file, nor mmap's back from the file at a different
12238 address. (There have been systems where private was not correctly
12239 implemented like the infamous i386 svr4.0, and systems where the
12240 VM page cache was not coherent with the file system buffer cache
12241 like early versions of FreeBSD and possibly contemporary NetBSD.)
12242 For shared mappings, we should conversely verify that changes get
12243 propagated back to all the places they're supposed to be.
12245 Grep wants private fixed already mapped.
12246 The main things grep needs to know about mmap are:
12247 * does it exist and is it safe to write into the mmap'd area
12248 * how to use it (BSD variants) */
12251 #include <sys/mman.h>
12253 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12257 /* This mess was copied from the GNU getpagesize.h. */
12258 #ifndef HAVE_GETPAGESIZE
12259 /* Assume that all systems that can run configure have sys/param.h. */
12260 # ifndef HAVE_SYS_PARAM_H
12261 # define HAVE_SYS_PARAM_H 1
12264 # ifdef _SC_PAGESIZE
12265 # define getpagesize() sysconf(_SC_PAGESIZE)
12266 # else /* no _SC_PAGESIZE */
12267 # ifdef HAVE_SYS_PARAM_H
12268 # include <sys/param.h>
12269 # ifdef EXEC_PAGESIZE
12270 # define getpagesize() EXEC_PAGESIZE
12271 # else /* no EXEC_PAGESIZE */
12273 # define getpagesize() NBPG * CLSIZE
12276 # endif /* no CLSIZE */
12277 # else /* no NBPG */
12279 # define getpagesize() NBPC
12280 # else /* no NBPC */
12282 # define getpagesize() PAGESIZE
12283 # endif /* PAGESIZE */
12284 # endif /* no NBPC */
12285 # endif /* no NBPG */
12286 # endif /* no EXEC_PAGESIZE */
12287 # else /* no HAVE_SYS_PARAM_H */
12288 # define getpagesize() 8192 /* punt totally */
12289 # endif /* no HAVE_SYS_PARAM_H */
12290 # endif /* no _SC_PAGESIZE */
12292 #endif /* no HAVE_GETPAGESIZE */
12297 char *data, *data2, *data3;
12301 pagesize = getpagesize ();
12303 /* First, make a file with some known garbage in it. */
12304 data = (char *) malloc (pagesize);
12307 for (i = 0; i < pagesize; ++i)
12308 *(data + i) = rand ();
12310 fd = creat ("conftest.mmap", 0600);
12313 if (write (fd, data, pagesize) != pagesize)
12317 /* Next, try to mmap the file at a fixed address which already has
12318 something else allocated at it. If we can, also make sure that
12319 we see the same garbage. */
12320 fd = open ("conftest.mmap", O_RDWR);
12323 data2 = (char *) malloc (2 * pagesize);
12326 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12327 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12328 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12330 for (i = 0; i < pagesize; ++i)
12331 if (*(data + i) != *(data2 + i))
12334 /* Finally, make sure that changes to the mapped area do not
12335 percolate back to the file as seen by read(). (This is a bug on
12336 some variants of i386 svr4.0.) */
12337 for (i = 0; i < pagesize; ++i)
12338 *(data2 + i) = *(data2 + i) + 1;
12339 data3 = (char *) malloc (pagesize);
12342 if (read (fd, data3, pagesize) != pagesize)
12344 for (i = 0; i < pagesize; ++i)
12345 if (*(data + i) != *(data3 + i))
12351 if ac_fn_c_try_run
"$LINENO"; then :
12352 ac_cv_func_mmap_fixed_mapped
=yes
12354 ac_cv_func_mmap_fixed_mapped
=no
12356 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12357 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12362 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12363 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12365 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12368 rm -f conftest.mmap
12370 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12371 if test "x$ac_cv_type_pid_t" = x
""yes; then :
12375 cat >>confdefs.h
<<_ACEOF
12381 for ac_header
in vfork.h
12383 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12384 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
12385 cat >>confdefs.h
<<_ACEOF
12386 #define HAVE_VFORK_H 1
12393 for ac_func
in fork vfork
12395 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12396 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12397 eval as_val
=\$
$as_ac_var
12398 if test "x$as_val" = x
""yes; then :
12399 cat >>confdefs.h
<<_ACEOF
12400 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12406 if test "x$ac_cv_func_fork" = xyes
; then
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12408 $as_echo_n "checking for working fork... " >&6; }
12409 if test "${ac_cv_func_fork_works+set}" = set; then :
12410 $as_echo_n "(cached) " >&6
12412 if test "$cross_compiling" = yes; then :
12413 ac_cv_func_fork_works
=cross
12415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12416 /* end confdefs.h. */
12417 $ac_includes_default
12422 /* By Ruediger Kuhlmann. */
12423 return fork () < 0;
12429 if ac_fn_c_try_run
"$LINENO"; then :
12430 ac_cv_func_fork_works
=yes
12432 ac_cv_func_fork_works
=no
12434 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12435 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12440 $as_echo "$ac_cv_func_fork_works" >&6; }
12443 ac_cv_func_fork_works
=$ac_cv_func_fork
12445 if test "x$ac_cv_func_fork_works" = xcross
; then
12447 *-*-amigaos* |
*-*-msdosdjgpp*)
12448 # Override, as these systems have only a dummy fork() stub
12449 ac_cv_func_fork_works
=no
12452 ac_cv_func_fork_works
=yes
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12456 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12458 ac_cv_func_vfork_works
=$ac_cv_func_vfork
12459 if test "x$ac_cv_func_vfork" = xyes
; then
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12461 $as_echo_n "checking for working vfork... " >&6; }
12462 if test "${ac_cv_func_vfork_works+set}" = set; then :
12463 $as_echo_n "(cached) " >&6
12465 if test "$cross_compiling" = yes; then :
12466 ac_cv_func_vfork_works
=cross
12468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12469 /* end confdefs.h. */
12470 /* Thanks to Paul Eggert for this test. */
12471 $ac_includes_default
12472 #include <sys/wait.h>
12473 #ifdef HAVE_VFORK_H
12474 # include <vfork.h>
12476 /* On some sparc systems, changes by the child to local and incoming
12477 argument registers are propagated back to the parent. The compiler
12478 is told about this with #include <vfork.h>, but some compilers
12479 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12480 static variable whose address is put into a register that is
12481 clobbered by the vfork. */
12484 sparc_address_test (int arg)
12486 sparc_address_test (arg) int arg;
12489 static pid_t child;
12507 pid_t parent = getpid ();
12510 sparc_address_test (0);
12515 /* Here is another test for sparc vfork register problems. This
12516 test uses lots of local variables, at least as many local
12517 variables as main has allocated so far including compiler
12518 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12519 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12520 reuse the register of parent for one of the local variables,
12521 since it will think that parent can't possibly be used any more
12522 in this routine. Assigning to the local variable will thus
12523 munge parent in the parent process. */
12525 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12526 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12527 /* Convince the compiler that p..p7 are live; otherwise, it might
12528 use the same hardware register for all 8 local variables. */
12529 if (p != p1 || p != p2 || p != p3 || p != p4
12530 || p != p5 || p != p6 || p != p7)
12533 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12534 from child file descriptors. If the child closes a descriptor
12535 before it execs or exits, this munges the parent's descriptor
12536 as well. Test for this by closing stdout in the child. */
12537 _exit(close(fileno(stdout)) != 0);
12542 while (wait(&status) != child)
12545 /* Was there some problem with vforking? */
12548 /* Did the child fail? (This shouldn't happen.) */
12551 /* Did the vfork/compiler bug occur? */
12552 || parent != getpid()
12554 /* Did the file descriptor bug occur? */
12555 || fstat(fileno(stdout), &st) != 0
12560 if ac_fn_c_try_run
"$LINENO"; then :
12561 ac_cv_func_vfork_works
=yes
12563 ac_cv_func_vfork_works
=no
12565 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12566 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12571 $as_echo "$ac_cv_func_vfork_works" >&6; }
12574 if test "x$ac_cv_func_fork_works" = xcross
; then
12575 ac_cv_func_vfork_works
=$ac_cv_func_vfork
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12577 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12580 if test "x$ac_cv_func_vfork_works" = xyes
; then
12582 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12586 $as_echo "#define vfork fork" >>confdefs.h
12589 if test "x$ac_cv_func_fork_works" = xyes
; then
12591 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12595 for ac_func
in canonicalize_file_name realpath getrusage getuid \
12596 getgid pipe poll pread64 resize_term sbrk setpgid setpgrp setsid \
12597 sigaction sigprocmask sigsetmask socketpair syscall \
12598 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
12599 setrlimit getrlimit posix_madvise waitpid
12601 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12602 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12603 eval as_val
=\$
$as_ac_var
12604 if test "x$as_val" = x
""yes; then :
12605 cat >>confdefs.h
<<_ACEOF
12606 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12614 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12615 if test "${am_cv_langinfo_codeset+set}" = set; then :
12616 $as_echo_n "(cached) " >&6
12618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12619 /* end confdefs.h. */
12620 #include <langinfo.h>
12624 char* cs = nl_langinfo(CODESET);
12629 if ac_fn_c_try_link
"$LINENO"; then :
12630 am_cv_langinfo_codeset
=yes
12632 am_cv_langinfo_codeset
=no
12634 rm -f core conftest.err conftest.
$ac_objext \
12635 conftest
$ac_exeext conftest.
$ac_ext
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12639 $as_echo "$am_cv_langinfo_codeset" >&6; }
12640 if test $am_cv_langinfo_codeset = yes; then
12642 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12647 # Check the return and argument types of ptrace. No canned test for
12648 # this, so roll our own.
12649 gdb_ptrace_headers
='
12650 #if HAVE_SYS_TYPES_H
12651 # include <sys/types.h>
12653 #if HAVE_SYS_PTRACE_H
12654 # include <sys/ptrace.h>
12657 # include <unistd.h>
12660 # There is no point in checking if we don't have a prototype.
12661 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
12663 if test "x$ac_cv_have_decl_ptrace" = x
""yes; then :
12669 cat >>confdefs.h
<<_ACEOF
12670 #define HAVE_DECL_PTRACE $ac_have_decl
12672 if test $ac_have_decl = 1; then :
12676 : ${gdb_cv_func_ptrace_ret='int'}
12677 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12681 # Check return type. Varargs (used on GNU/Linux) conflict with the
12682 # empty argument list, so check for that explicitly.
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
12684 $as_echo_n "checking return type of ptrace... " >&6; }
12685 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
12686 $as_echo_n "(cached) " >&6
12688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12689 /* end confdefs.h. */
12690 $gdb_ptrace_headers
12694 extern long ptrace (enum __ptrace_request, ...);
12699 if ac_fn_c_try_compile
"$LINENO"; then :
12700 gdb_cv_func_ptrace_ret
='long'
12702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12703 /* end confdefs.h. */
12704 $gdb_ptrace_headers
12708 extern int ptrace ();
12713 if ac_fn_c_try_compile
"$LINENO"; then :
12714 gdb_cv_func_ptrace_ret
='int'
12716 gdb_cv_func_ptrace_ret
='long'
12718 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12720 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
12723 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
12725 cat >>confdefs.h
<<_ACEOF
12726 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
12729 # Check argument types.
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
12731 $as_echo_n "checking types of arguments for ptrace... " >&6; }
12732 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
12733 $as_echo_n "(cached) " >&6
12736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12737 /* end confdefs.h. */
12738 $gdb_ptrace_headers
12742 extern long ptrace (enum __ptrace_request, ...);
12747 if ac_fn_c_try_compile
"$LINENO"; then :
12748 gdb_cv_func_ptrace_args
='int,int,long,long'
12751 for gdb_arg1
in 'int' 'long'; do
12752 for gdb_arg2
in 'pid_t' 'int' 'long'; do
12753 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
12754 for gdb_arg4
in 'int' 'long'; do
12755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12756 /* end confdefs.h. */
12757 $gdb_ptrace_headers
12762 extern $gdb_cv_func_ptrace_ret
12763 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
12769 if ac_fn_c_try_compile
"$LINENO"; then :
12770 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
12773 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12774 for gdb_arg5
in 'int *' 'int' 'long'; do
12775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12776 /* end confdefs.h. */
12777 $gdb_ptrace_headers
12782 extern $gdb_cv_func_ptrace_ret
12783 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
12789 if ac_fn_c_try_compile
"$LINENO"; then :
12791 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
12794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12800 # Provide a safe default value.
12801 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12804 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
12807 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
12808 ac_save_IFS
=$IFS; IFS
=','
12809 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
12813 cat >>confdefs.h
<<_ACEOF
12814 #define PTRACE_TYPE_ARG3 $3
12817 if test -n "$5"; then
12819 cat >>confdefs.h
<<_ACEOF
12820 #define PTRACE_TYPE_ARG5 $5
12825 if test "$cross_compiling" = no
; then
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12827 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12828 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12829 $as_echo_n "(cached) " >&6
12831 if test "$cross_compiling" = yes; then :
12832 as_fn_error
"cannot check setpgrp when cross compiling" "$LINENO" 5
12834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12835 /* end confdefs.h. */
12836 $ac_includes_default
12840 /* If this system has a BSD-style setpgrp which takes arguments,
12841 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
12842 exit successfully. */
12843 return setpgrp (1,1) != -1;
12848 if ac_fn_c_try_run
"$LINENO"; then :
12849 ac_cv_func_setpgrp_void
=no
12851 ac_cv_func_setpgrp_void
=yes
12853 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12854 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12859 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12860 if test $ac_cv_func_setpgrp_void = yes; then
12862 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12868 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12869 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12870 $as_echo_n "(cached) " >&6
12872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12873 /* end confdefs.h. */
12875 #include <unistd.h>
12881 if (setpgrp(1,1) == -1)
12890 if ac_fn_c_try_compile
"$LINENO"; then :
12891 ac_cv_func_setpgrp_void
=no
12893 ac_cv_func_setpgrp_void
=yes
12895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12898 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12899 if test $ac_cv_func_setpgrp_void = yes; then
12900 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12905 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
12906 # since sigsetjmp might only be defined as a macro.
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
12908 $as_echo_n "checking for sigsetjmp... " >&6; }
12909 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
12910 $as_echo_n "(cached) " >&6
12912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12913 /* end confdefs.h. */
12915 #include <setjmp.h>
12920 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
12925 if ac_fn_c_try_compile
"$LINENO"; then :
12926 gdb_cv_func_sigsetjmp
=yes
12928 gdb_cv_func_sigsetjmp
=no
12930 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
12933 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
12934 if test $gdb_cv_func_sigsetjmp = yes; then
12936 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
12940 # Assume we'll default to using the included libiberty regex.
12941 gdb_use_included_regex
=yes
12943 # However, if the system regex is GNU regex, then default to *not*
12944 # using the included regex.
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
12946 $as_echo_n "checking for GNU regex... " >&6; }
12947 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
12948 $as_echo_n "(cached) " >&6
12950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12951 /* end confdefs.h. */
12952 #include <gnu-versions.h>
12956 #define REGEX_INTERFACE_VERSION 1
12957 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
12958 # error "Version mismatch"
12964 if ac_fn_c_try_compile
"$LINENO"; then :
12965 gdb_cv_have_gnu_regex
=yes
12967 gdb_cv_have_gnu_regex
=no
12969 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
12972 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
12973 if test $gdb_cv_have_gnu_regex = yes; then
12974 gdb_use_included_regex
=no
12978 # Check whether --with-included-regex was given.
12979 if test "${with_included_regex+set}" = set; then :
12980 withval
=$with_included_regex; gdb_with_regex
=$withval
12982 gdb_with_regex
=$gdb_use_included_regex
12985 if test "$gdb_with_regex" = yes; then
12987 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
12991 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
12992 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
12993 #include <sys/proc.h>
12996 if test "x$ac_cv_member_struct_thread_td_pcb" = x
""yes; then :
12998 cat >>confdefs.h
<<_ACEOF
12999 #define HAVE_STRUCT_THREAD_TD_PCB 1
13006 # See if <sys/lwp.h> defines `struct lwp`.
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
13008 $as_echo_n "checking for struct lwp... " >&6; }
13009 if test "${gdb_cv_struct_lwp+set}" = set; then :
13010 $as_echo_n "(cached) " >&6
13012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13013 /* end confdefs.h. */
13014 #include <sys/param.h>
13015 #include <sys/lwp.h>
13024 if ac_fn_c_try_compile
"$LINENO"; then :
13025 gdb_cv_struct_lwp
=yes
13027 gdb_cv_struct_lwp
=no
13029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
13032 $as_echo "$gdb_cv_struct_lwp" >&6; }
13033 if test $gdb_cv_struct_lwp = yes; then
13035 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
13039 # See if <machine/reg.h> degines `struct reg'.
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
13041 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
13042 if test "${gdb_cv_struct_reg+set}" = set; then :
13043 $as_echo_n "(cached) " >&6
13045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13046 /* end confdefs.h. */
13047 #include <sys/types.h>
13048 #include <machine/reg.h>
13057 if ac_fn_c_try_compile
"$LINENO"; then :
13058 gdb_cv_struct_reg
=yes
13060 gdb_cv_struct_reg
=no
13062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
13065 $as_echo "$gdb_cv_struct_reg" >&6; }
13066 if test $gdb_cv_struct_reg = yes; then
13068 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
13072 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
13073 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
13074 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
13076 if test "x$ac_cv_member_struct_reg_r_fs" = x
""yes; then :
13078 cat >>confdefs.h
<<_ACEOF
13079 #define HAVE_STRUCT_REG_R_FS 1
13084 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
13086 if test "x$ac_cv_member_struct_reg_r_gs" = x
""yes; then :
13088 cat >>confdefs.h
<<_ACEOF
13089 #define HAVE_STRUCT_REG_R_GS 1
13096 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
13098 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
13099 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
13100 $as_echo_n "(cached) " >&6
13102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13103 /* end confdefs.h. */
13104 #include <sys/ptrace.h>
13113 if ac_fn_c_try_compile
"$LINENO"; then :
13114 gdb_cv_have_ptrace_getregs
=yes
13116 gdb_cv_have_ptrace_getregs
=no
13118 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
13122 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
13123 if test $gdb_cv_have_ptrace_getregs = yes; then
13125 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
13129 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
13131 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
13132 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
13133 $as_echo_n "(cached) " >&6
13135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13136 /* end confdefs.h. */
13137 #include <sys/ptrace.h>
13146 if ac_fn_c_try_compile
"$LINENO"; then :
13147 gdb_cv_have_ptrace_getfpxregs
=yes
13149 gdb_cv_have_ptrace_getfpxregs
=no
13151 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
13155 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
13156 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
13158 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
13162 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
13164 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
13165 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
13166 $as_echo_n "(cached) " >&6
13168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13169 /* end confdefs.h. */
13170 #include <sys/types.h>
13171 #include <sys/ptrace.h>
13180 if ac_fn_c_try_compile
"$LINENO"; then :
13181 gdb_cv_have_pt_getdbregs
=yes
13183 gdb_cv_have_pt_getdbregs
=no
13185 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
13189 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
13190 if test $gdb_cv_have_pt_getdbregs = yes; then
13192 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
13196 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
13198 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
13199 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
13200 $as_echo_n "(cached) " >&6
13202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13203 /* end confdefs.h. */
13204 #include <sys/types.h>
13205 #include <sys/ptrace.h>
13214 if ac_fn_c_try_compile
"$LINENO"; then :
13215 gdb_cv_have_pt_getxmmregs
=yes
13217 gdb_cv_have_pt_getxmmregs
=no
13219 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
13223 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
13224 if test $gdb_cv_have_pt_getxmmregs = yes; then
13226 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
13230 # Detect which type of /proc is in use, such as for Unixware or Solaris.
13232 if test "${target}" = "${host}"; then
13234 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5* |
*-*-interix* )
13236 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13239 *-*-solaris2.
[6789] |
*-*-solaris2.1
[0-9]*)
13241 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13245 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
13247 $as_echo "#define _KMEMUSER 1" >>confdefs.h
13253 if test "$ac_cv_header_sys_procfs_h" = yes; then
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
13255 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
13256 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
13257 $as_echo_n "(cached) " >&6
13259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13260 /* end confdefs.h. */
13263 /* Needed for new procfs interface on sparc-solaris. */
13264 #define _STRUCTURED_PROC 1
13265 #include <sys/procfs.h>
13274 if ac_fn_c_try_compile
"$LINENO"; then :
13275 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
13277 bfd_cv_have_sys_procfs_type_pstatus_t
=no
13280 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13283 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
13285 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
13289 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
13292 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
13293 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
13294 $as_echo_n "(cached) " >&6
13296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13297 /* end confdefs.h. */
13300 /* Needed for new procfs interface on sparc-solaris. */
13301 #define _STRUCTURED_PROC 1
13302 #include <sys/procfs.h>
13311 if ac_fn_c_try_compile
"$LINENO"; then :
13312 bfd_cv_have_sys_procfs_type_prrun_t
=yes
13314 bfd_cv_have_sys_procfs_type_prrun_t
=no
13317 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13320 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
13322 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
13326 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
13329 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
13330 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
13331 $as_echo_n "(cached) " >&6
13333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13334 /* end confdefs.h. */
13337 /* Needed for new procfs interface on sparc-solaris. */
13338 #define _STRUCTURED_PROC 1
13339 #include <sys/procfs.h>
13348 if ac_fn_c_try_compile
"$LINENO"; then :
13349 bfd_cv_have_sys_procfs_type_gregset_t
=yes
13351 bfd_cv_have_sys_procfs_type_gregset_t
=no
13354 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13357 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
13359 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
13363 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
13366 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
13367 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
13368 $as_echo_n "(cached) " >&6
13370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13371 /* end confdefs.h. */
13374 /* Needed for new procfs interface on sparc-solaris. */
13375 #define _STRUCTURED_PROC 1
13376 #include <sys/procfs.h>
13385 if ac_fn_c_try_compile
"$LINENO"; then :
13386 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
13388 bfd_cv_have_sys_procfs_type_fpregset_t
=no
13391 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13394 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
13396 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
13400 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
13403 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
13404 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
13405 $as_echo_n "(cached) " >&6
13407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13408 /* end confdefs.h. */
13411 /* Needed for new procfs interface on sparc-solaris. */
13412 #define _STRUCTURED_PROC 1
13413 #include <sys/procfs.h>
13422 if ac_fn_c_try_compile
"$LINENO"; then :
13423 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
13425 bfd_cv_have_sys_procfs_type_prgregset_t
=no
13428 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13431 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
13433 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
13437 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
13440 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
13441 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
13442 $as_echo_n "(cached) " >&6
13444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13445 /* end confdefs.h. */
13448 /* Needed for new procfs interface on sparc-solaris. */
13449 #define _STRUCTURED_PROC 1
13450 #include <sys/procfs.h>
13459 if ac_fn_c_try_compile
"$LINENO"; then :
13460 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
13462 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
13465 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13468 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13470 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
13474 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
13477 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
13478 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
13479 $as_echo_n "(cached) " >&6
13481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13482 /* end confdefs.h. */
13485 /* Needed for new procfs interface on sparc-solaris. */
13486 #define _STRUCTURED_PROC 1
13487 #include <sys/procfs.h>
13496 if ac_fn_c_try_compile
"$LINENO"; then :
13497 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
13499 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
13502 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13505 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
13507 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
13511 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
13514 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
13515 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
13516 $as_echo_n "(cached) " >&6
13518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13519 /* end confdefs.h. */
13522 /* Needed for new procfs interface on sparc-solaris. */
13523 #define _STRUCTURED_PROC 1
13524 #include <sys/procfs.h>
13528 prfpregset32_t avar
13533 if ac_fn_c_try_compile
"$LINENO"; then :
13534 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
13536 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
13539 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13542 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
13544 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
13548 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
13551 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
13552 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
13553 $as_echo_n "(cached) " >&6
13555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13556 /* end confdefs.h. */
13559 /* Needed for new procfs interface on sparc-solaris. */
13560 #define _STRUCTURED_PROC 1
13561 #include <sys/procfs.h>
13570 if ac_fn_c_try_compile
"$LINENO"; then :
13571 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
13573 bfd_cv_have_sys_procfs_type_lwpid_t
=no
13576 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13579 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
13581 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
13585 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
13588 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
13589 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
13590 $as_echo_n "(cached) " >&6
13592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13593 /* end confdefs.h. */
13596 /* Needed for new procfs interface on sparc-solaris. */
13597 #define _STRUCTURED_PROC 1
13598 #include <sys/procfs.h>
13607 if ac_fn_c_try_compile
"$LINENO"; then :
13608 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
13610 bfd_cv_have_sys_procfs_type_psaddr_t
=no
13613 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13616 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
13618 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
13622 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
13625 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
13626 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
13627 $as_echo_n "(cached) " >&6
13629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13630 /* end confdefs.h. */
13633 /* Needed for new procfs interface on sparc-solaris. */
13634 #define _STRUCTURED_PROC 1
13635 #include <sys/procfs.h>
13644 if ac_fn_c_try_compile
"$LINENO"; then :
13645 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
13647 bfd_cv_have_sys_procfs_type_prsysent_t
=no
13650 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13653 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
13655 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
13659 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
13662 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
13663 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
13664 $as_echo_n "(cached) " >&6
13666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13667 /* end confdefs.h. */
13670 /* Needed for new procfs interface on sparc-solaris. */
13671 #define _STRUCTURED_PROC 1
13672 #include <sys/procfs.h>
13681 if ac_fn_c_try_compile
"$LINENO"; then :
13682 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
13684 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
13687 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13690 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
13692 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
13696 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
13699 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
13700 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
13701 $as_echo_n "(cached) " >&6
13703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13704 /* end confdefs.h. */
13707 /* Needed for new procfs interface on sparc-solaris. */
13708 #define _STRUCTURED_PROC 1
13709 #include <sys/procfs.h>
13713 pr_sigaction64_t avar
13718 if ac_fn_c_try_compile
"$LINENO"; then :
13719 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
13721 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
13724 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13727 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
13729 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
13733 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
13736 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
13737 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
13738 $as_echo_n "(cached) " >&6
13740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13741 /* end confdefs.h. */
13744 /* Needed for new procfs interface on sparc-solaris. */
13745 #define _STRUCTURED_PROC 1
13746 #include <sys/procfs.h>
13750 pr_siginfo64_t avar
13755 if ac_fn_c_try_compile
"$LINENO"; then :
13756 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
13758 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
13761 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13764 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
13766 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
13770 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
13776 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
13778 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
13779 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
13780 $as_echo_n "(cached) " >&6
13782 if test "$cross_compiling" = yes; then :
13783 gdb_cv_prfpregset_t_broken
=yes
13785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13786 /* end confdefs.h. */
13787 #include <sys/procfs.h>
13790 if (sizeof (prfpregset_t) == sizeof (void *))
13795 if ac_fn_c_try_run
"$LINENO"; then :
13796 gdb_cv_prfpregset_t_broken
=no
13798 gdb_cv_prfpregset_t_broken
=yes
13800 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13801 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
13807 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
13808 if test $gdb_cv_prfpregset_t_broken = yes; then
13810 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
13817 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
13818 if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
13819 $as_echo_n "(cached) " >&6
13821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13822 /* end confdefs.h. */
13823 #include <unistd.h>
13824 #include <sys/types.h>
13825 #include <sys/procfs.h>
13832 dummy = ioctl(0, PIOCSET, &dummy);
13838 if ac_fn_c_try_compile
"$LINENO"; then :
13839 gdb_cv_have_procfs_piocset
=yes
13841 gdb_cv_have_procfs_piocset
=no
13843 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
13847 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
13848 if test $gdb_cv_have_procfs_piocset = yes; then
13850 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
13855 if test ${host} = ${target} ; then
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
13858 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
13859 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
13860 $as_echo_n "(cached) " >&6
13862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13863 /* end confdefs.h. */
13868 struct link_map lm; (void) lm.l_addr;
13873 if ac_fn_c_try_compile
"$LINENO"; then :
13874 gdb_cv_have_struct_link_map_with_l_members
=yes
13876 gdb_cv_have_struct_link_map_with_l_members
=no
13878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
13882 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
13883 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
13885 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
13891 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
13892 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
13893 $as_echo_n "(cached) " >&6
13895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13896 /* end confdefs.h. */
13897 #include <sys/types.h>
13902 struct link_map lm; (void) lm.lm_addr;
13907 if ac_fn_c_try_compile
"$LINENO"; then :
13908 gdb_cv_have_struct_link_map_with_lm_members
=yes
13910 gdb_cv_have_struct_link_map_with_lm_members
=no
13912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
13916 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
13917 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
13919 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
13925 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
13926 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
13927 $as_echo_n "(cached) " >&6
13929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13930 /* end confdefs.h. */
13931 #include <sys/types.h>
13932 #ifdef HAVE_NLIST_H
13939 struct so_map lm; (void) lm.som_addr;
13944 if ac_fn_c_try_compile
"$LINENO"; then :
13945 gdb_cv_have_struct_so_map_with_som_members
=yes
13947 gdb_cv_have_struct_so_map_with_som_members
=no
13949 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
13953 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
13954 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
13956 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
13962 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
13963 if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
13964 $as_echo_n "(cached) " >&6
13966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13967 /* end confdefs.h. */
13969 #include <sys/link.h>
13973 struct link_map32 l;
13978 if ac_fn_c_try_compile
"$LINENO"; then :
13979 gdb_cv_have_struct_link_map32
=yes
13981 gdb_cv_have_struct_link_map32
=no
13983 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
13987 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
13988 if test $gdb_cv_have_struct_link_map32 = yes; then
13990 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
13993 $as_echo "#define _SYSCALL32 1" >>confdefs.h
13998 # Check if the compiler supports the `long long' type.
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
14001 $as_echo_n "checking for long long support in compiler... " >&6; }
14002 if test "${gdb_cv_c_long_long+set}" = set; then :
14003 $as_echo_n "(cached) " >&6
14005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14006 /* end confdefs.h. */
14007 extern long long foo;
14011 switch (foo & 2) { case 0: return 1; }
14016 if ac_fn_c_try_compile
"$LINENO"; then :
14017 gdb_cv_c_long_long
=yes
14019 gdb_cv_c_long_long
=no
14021 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
14024 $as_echo "$gdb_cv_c_long_long" >&6; }
14025 if test $gdb_cv_c_long_long = yes; then
14027 $as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
14031 # Check if the compiler and runtime support printing long longs.
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
14034 $as_echo_n "checking for long long support in printf... " >&6; }
14035 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
14036 $as_echo_n "(cached) " >&6
14038 if test "$cross_compiling" = yes; then :
14039 gdb_cv_printf_has_long_long
=no
14041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14042 /* end confdefs.h. */
14043 $ac_includes_default
14049 l = (l << 16) + 0x0123;
14050 l = (l << 16) + 0x4567;
14051 l = (l << 16) + 0x89ab;
14052 l = (l << 16) + 0xcdef;
14053 sprintf (buf, "0x%016llx", l);
14054 return (strcmp ("0x0123456789abcdef", buf));
14059 if ac_fn_c_try_run
"$LINENO"; then :
14060 gdb_cv_printf_has_long_long
=yes
14062 gdb_cv_printf_has_long_long
=no
14064 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14065 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
14070 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
14071 if test $gdb_cv_printf_has_long_long = yes; then
14073 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
14077 # Check if the compiler and runtime support printing decfloats.
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
14080 $as_echo_n "checking for decfloat support in printf... " >&6; }
14081 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
14082 $as_echo_n "(cached) " >&6
14084 if test "$cross_compiling" = yes; then :
14085 gdb_cv_printf_has_decfloat
=no
14087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14088 /* end confdefs.h. */
14089 $ac_includes_default
14094 _Decimal32 d32 = 1.2345df;
14095 _Decimal64 d64 = 1.2345dd;
14096 _Decimal128 d128 = 1.2345dl;
14097 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
14098 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
14103 if ac_fn_c_try_run
"$LINENO"; then :
14104 gdb_cv_printf_has_decfloat
=yes
14106 gdb_cv_printf_has_decfloat
=no
14108 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14109 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
14114 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
14115 if test $gdb_cv_printf_has_decfloat = yes; then
14117 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
14121 # Check if the compiler supports the `long double' type. We can't use
14122 # AC_C_LONG_DOUBLE because that one does additional checks on the
14123 # constants defined in <float.h> that fail on some systems,
14124 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
14127 $as_echo_n "checking for long double support in compiler... " >&6; }
14128 if test "${gdb_cv_c_long_double+set}" = set; then :
14129 $as_echo_n "(cached) " >&6
14131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14132 /* end confdefs.h. */
14135 if ac_fn_c_try_compile
"$LINENO"; then :
14136 gdb_cv_c_long_double
=yes
14138 gdb_cv_c_long_double
=no
14140 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
14143 $as_echo "$gdb_cv_c_long_double" >&6; }
14144 if test $gdb_cv_c_long_double = yes; then
14146 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14150 # Check if the compiler and runtime support printing long doubles.
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
14153 $as_echo_n "checking for long double support in printf... " >&6; }
14154 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
14155 $as_echo_n "(cached) " >&6
14157 if test "$cross_compiling" = yes; then :
14158 gdb_cv_printf_has_long_double
=no
14160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14161 /* end confdefs.h. */
14162 $ac_includes_default
14167 long double f = 3.141592653;
14168 sprintf (buf, "%Lg", f);
14169 return (strncmp ("3.14159", buf, 7));
14174 if ac_fn_c_try_run
"$LINENO"; then :
14175 gdb_cv_printf_has_long_double
=yes
14177 gdb_cv_printf_has_long_double
=no
14179 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14180 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
14185 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
14186 if test $gdb_cv_printf_has_long_double = yes; then
14188 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
14192 # Check if the compiler and runtime support scanning long doubles.
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
14195 $as_echo_n "checking for long double support in scanf... " >&6; }
14196 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
14197 $as_echo_n "(cached) " >&6
14199 if test "$cross_compiling" = yes; then :
14200 gdb_cv_scanf_has_long_double
=no
14202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14203 /* end confdefs.h. */
14208 char *buf = "3.141592653";
14210 sscanf (buf, "%Lg", &f);
14211 return !(f > 3.14159 && f < 3.14160);
14216 if ac_fn_c_try_run
"$LINENO"; then :
14217 gdb_cv_scanf_has_long_double
=yes
14219 gdb_cv_scanf_has_long_double
=no
14221 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14222 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
14227 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
14228 if test $gdb_cv_scanf_has_long_double = yes; then
14230 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
14237 $as_echo_n "checking for -bbigtoc option... " >&6; }
14238 if test "${gdb_cv_bigtoc+set}" = set; then :
14239 $as_echo_n "(cached) " >&6
14242 SAVE_LDFLAGS
=$LDFLAGS
14245 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
14246 *) gdb_cv_bigtoc
=-bbigtoc ;;
14249 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
14250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14251 /* end confdefs.h. */
14261 if ac_fn_c_try_link
"$LINENO"; then :
14266 rm -f core conftest.err conftest.
$ac_objext \
14267 conftest
$ac_exeext conftest.
$ac_ext
14268 LDFLAGS
="${SAVE_LDFLAGS}"
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
14272 $as_echo "$gdb_cv_bigtoc" >&6; }
14273 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
14278 $as_echo_n "checking for the dynamic export flag... " >&6; }
14280 if test "${gdb_native}" = yes; then
14281 # The dynamically loaded libthread_db needs access to symbols in the gdb
14282 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
14283 # may not be supported there.
14284 old_LDFLAGS
="$LDFLAGS"
14285 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
14286 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
14287 LDFLAGS
="$LDFLAGS $RDYNAMIC"
14288 if test "${have_libpython}" = no
; then
14289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14290 /* end confdefs.h. */
14300 if ac_fn_c_try_link
"$LINENO"; then :
14303 rm -f core conftest.err conftest.
$ac_objext \
14304 conftest
$ac_exeext conftest.
$ac_ext
14306 # Workaround http://bugs.python.org/issue4434 where static
14307 # libpythonX.Y.a would get its symbols required for
14308 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
14309 # Problem does not happen for the recommended libpythonX.Y.so linkage.
14310 old_CFLAGS
="$CFLAGS"
14311 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
14312 if test "$cross_compiling" = yes; then :
14315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14316 /* end confdefs.h. */
14317 #include "${have_libpython}/Python.h"
14323 err = PyRun_SimpleString ("import itertools\n");
14325 return err == 0 ? 0 : 1;
14330 if ac_fn_c_try_run
"$LINENO"; then :
14333 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14334 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14337 CFLAGS
="$old_CFLAGS"
14339 LDFLAGS
="$old_LDFLAGS"
14341 if $dynamic_list; then
14342 found
="-Wl,--dynamic-list"
14343 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
14346 RDYNAMIC
="-rdynamic"
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
14350 $as_echo "$found" >&6; }
14353 if test ${build} = ${host} -a ${host} = ${target} ; then
14356 # See if thread_db library is around for Solaris thread debugging.
14357 # Note that we must explicitly test for version 1 of the library
14358 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
14361 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
14362 if test -f /usr
/lib
/libthread_db.so
.1 ; then
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14364 $as_echo "yes" >&6; }
14366 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
14368 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
14369 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14371 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14372 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14373 $as_echo_n "(cached) " >&6
14375 ac_check_lib_save_LIBS
=$LIBS
14377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14378 /* end confdefs.h. */
14380 /* Override any GCC internal prototype to avoid an error.
14381 Use char because int might match the return type of a GCC
14382 builtin and then its argument prototype would still apply. */
14395 if ac_fn_c_try_link
"$LINENO"; then :
14396 ac_cv_lib_dl_dlopen
=yes
14398 ac_cv_lib_dl_dlopen
=no
14400 rm -f core conftest.err conftest.
$ac_objext \
14401 conftest
$ac_exeext conftest.
$ac_ext
14402 LIBS
=$ac_check_lib_save_LIBS
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14405 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14406 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
14407 cat >>confdefs.h
<<_ACEOF
14408 #define HAVE_LIBDL 1
14415 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} $RDYNAMIC"
14416 # Sun randomly tweaked the prototypes in <proc_service.h>
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
14419 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
14420 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
14421 $as_echo_n "(cached) " >&6
14424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14425 /* end confdefs.h. */
14427 #include <proc_service.h>
14428 ps_err_e ps_pdwrite
14429 (struct ps_prochandle*, psaddr_t, const void*, size_t);
14439 if ac_fn_c_try_compile
"$LINENO"; then :
14440 gdb_cv_proc_service_is_old
=no
14442 gdb_cv_proc_service_is_old
=yes
14444 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
14449 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
14450 if test $gdb_cv_proc_service_is_old = yes; then
14452 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14457 $as_echo "no" >&6; }
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
14462 $as_echo_n "checking for AiX thread debugging library... " >&6; }
14463 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
14464 $as_echo_n "(cached) " >&6
14466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14467 /* end confdefs.h. */
14468 #include <sys/pthdebug.h>
14472 #ifndef PTHDB_VERSION_3
14479 if ac_fn_c_try_compile
"$LINENO"; then :
14480 gdb_cv_have_aix_thread_debug
=yes
14482 gdb_cv_have_aix_thread_debug
=no
14484 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
14488 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
14489 if test $gdb_cv_have_aix_thread_debug = yes; then
14490 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
14491 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
14492 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -lpthdebug"
14499 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
14501 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
14502 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
14503 $as_echo_n "(cached) " >&6
14505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14506 /* end confdefs.h. */
14507 #include <thread_db.h>
14511 int i = TD_NOTALLOC;
14516 if ac_fn_c_try_compile
"$LINENO"; then :
14517 gdb_cv_thread_db_h_has_td_notalloc
=yes
14519 gdb_cv_thread_db_h_has_td_notalloc
=no
14522 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
14526 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
14528 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
14529 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
14530 $as_echo_n "(cached) " >&6
14532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14533 /* end confdefs.h. */
14534 #include <thread_db.h>
14538 int i = TD_VERSION;
14543 if ac_fn_c_try_compile
"$LINENO"; then :
14544 gdb_cv_thread_db_h_has_td_version
=yes
14546 gdb_cv_thread_db_h_has_td_version
=no
14549 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
14553 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
14555 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
14556 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
14557 $as_echo_n "(cached) " >&6
14559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14560 /* end confdefs.h. */
14561 #include <thread_db.h>
14570 if ac_fn_c_try_compile
"$LINENO"; then :
14571 gdb_cv_thread_db_h_has_td_notls
=yes
14573 gdb_cv_thread_db_h_has_td_notls
=no
14576 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
14580 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
14582 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
14584 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
14587 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
14589 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
14592 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
14594 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
14598 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
14600 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
14601 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
14602 $as_echo_n "(cached) " >&6
14604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14605 /* end confdefs.h. */
14606 #include <sys/syscall.h>
14610 int i = __NR_tkill;
14615 if ac_fn_c_try_compile
"$LINENO"; then :
14616 gdb_cv_sys_syscall_h_has_tkill
=yes
14618 gdb_cv_sys_syscall_h_has_tkill
=no
14621 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
14625 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
14627 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
14629 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
14633 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
14635 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
14641 cat >>confdefs.h
<<_ACEOF
14642 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
14646 if test "$cross_compiling" = yes; then :
14647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14648 /* end confdefs.h. */
14649 #include <sys/personality.h>
14654 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14655 # define ADDR_NO_RANDOMIZE 0x0040000
14657 /* Test the flag could be set and stays set. */
14658 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14659 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14665 if ac_fn_c_try_link
"$LINENO"; then :
14666 have_personality
=true
14668 have_personality
=false
14670 rm -f core conftest.err conftest.
$ac_objext \
14671 conftest
$ac_exeext conftest.
$ac_ext
14673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14674 /* end confdefs.h. */
14675 #include <sys/personality.h>
14680 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14681 # define ADDR_NO_RANDOMIZE 0x0040000
14683 /* Test the flag could be set and stays set. */
14684 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14685 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14691 if ac_fn_c_try_run
"$LINENO"; then :
14692 have_personality
=true
14694 have_personality
=false
14696 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14697 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14700 if $have_personality
14703 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
14708 target_sysroot_reloc
=0
14710 # Check whether --with-sysroot was given.
14711 if test "${with_sysroot+set}" = set; then :
14712 withval
=$with_sysroot;
14713 case ${with_sysroot} in
14714 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_alias}/sys-root' ;;
14715 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
14718 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
14720 if test "x$prefix" = xNONE
; then
14721 test_prefix
=/usr
/local
14723 test_prefix
=$prefix
14725 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
14726 test_exec_prefix
=$test_prefix
14728 test_exec_prefix
=$exec_prefix
14730 case ${TARGET_SYSTEM_ROOT} in
14731 "${test_prefix}"|
"${test_prefix}/"*|\
14732 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
14733 '${prefix}'|
'${prefix}/'*|\
14734 '${exec_prefix}'|
'${exec_prefix}/'*)
14735 target_sysroot_reloc
=1
14741 TARGET_SYSTEM_ROOT
=
14742 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"\"'
14746 TARGET_SYSTEM_ROOT_DEFINE
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE=$target_sysroot_reloc"
14752 # Check whether --with-system-gdbinit was given.
14753 if test "${with_system_gdbinit+set}" = set; then :
14754 withval
=$with_system_gdbinit;
14755 SYSTEM_GDBINIT
=$withval
14761 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
14762 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14763 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
14764 ac_define_dir
=`eval echo $ac_define_dir`
14766 cat >>confdefs.h
<<_ACEOF
14767 #define SYSTEM_GDBINIT "$ac_define_dir"
14773 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
14774 if test "x$prefix" = xNONE
; then
14775 test_prefix
=/usr
/local
14777 test_prefix
=$prefix
14780 test_prefix
=$exec_prefix
14783 case ${ac_define_dir} in
14784 "${test_prefix}"|
"${test_prefix}/"*|\
14785 '${exec_prefix}'|
'${exec_prefix}/'*)
14790 cat >>confdefs.h
<<_ACEOF
14791 #define SYSTEM_GDBINIT_RELOCATABLE $value
14797 # Check whether --enable-werror was given.
14798 if test "${enable_werror+set}" = set; then :
14799 enableval
=$enable_werror; case "${enableval}" in
14800 yes | y
) ERROR_ON_WARNING
="yes" ;;
14801 no | n
) ERROR_ON_WARNING
="no" ;;
14802 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
14807 # Enable -Werror by default when using gcc
14808 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
14809 ERROR_ON_WARNING
=yes
14813 if test "${ERROR_ON_WARNING}" = yes ; then
14814 WERROR_CFLAGS
="-Werror"
14817 # The entries after -Wno-pointer-sign are disabled warnings which may
14818 # be enabled in the future, which can not currently be used to build
14820 # NOTE: If you change this list, remember to update
14821 # gdb/doc/gdbint.texinfo.
14822 build_warnings
="-Wall -Wdeclaration-after-statement -Wpointer-arith \
14823 -Wformat-nonliteral -Wno-pointer-sign \
14824 -Wno-unused -Wunused-value -Wunused-function \
14825 -Wno-switch -Wno-char-subscripts"
14827 # Enable -Wno-format by default when using gcc on mingw since many
14828 # GCC versions complain about %I64.
14830 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
14833 # Check whether --enable-build-warnings was given.
14834 if test "${enable_build_warnings+set}" = set; then :
14835 enableval
=$enable_build_warnings; case "${enableval}" in
14837 no
) build_warnings
="-w";;
14838 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
14839 build_warnings
="${build_warnings} ${t}";;
14840 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
14841 build_warnings
="${t} ${build_warnings}";;
14842 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14844 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
14845 echo "Setting compiler warning flags = $build_warnings" 6>&1
14848 # Check whether --enable-gdb-build-warnings was given.
14849 if test "${enable_gdb_build_warnings+set}" = set; then :
14850 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
14852 no
) build_warnings
="-w";;
14853 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
14854 build_warnings
="${build_warnings} ${t}";;
14855 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
14856 build_warnings
="${t} ${build_warnings}";;
14857 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14859 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
14860 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
14864 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
14867 $as_echo_n "checking compiler warning flags... " >&6; }
14868 # Separate out the -Werror flag as some files just cannot be
14869 # compiled with it enabled.
14870 for w
in ${build_warnings}; do
14872 -Werr*) WERROR_CFLAGS
=-Werror ;;
14873 *) # Check that GCC accepts it
14874 saved_CFLAGS
="$CFLAGS"
14875 CFLAGS
="$CFLAGS $w"
14876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14877 /* end confdefs.h. */
14887 if ac_fn_c_try_compile
"$LINENO"; then :
14888 WARN_CFLAGS
="${WARN_CFLAGS} $w"
14890 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14891 CFLAGS
="$saved_CFLAGS"
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
14895 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
14900 # In the Cygwin environment, we need some additional flags.
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
14902 $as_echo_n "checking
for cygwin...
" >&6; }
14903 if test "${gdb_cv_os_cygwin+set}" = set; then :
14904 $as_echo_n "(cached
) " >&6
14906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14907 /* end confdefs.h. */
14909 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
14913 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14914 $EGREP "lose
" >/dev/null 2>&1; then :
14915 gdb_cv_os_cygwin=yes
14917 gdb_cv_os_cygwin=no
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
14923 $as_echo "$gdb_cv_os_cygwin" >&6; }
14926 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
14928 *go32* ) SER_HARDWIRE=ser-go32.o ;;
14929 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
14930 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
14934 # libreadline needs libuser32.a in a cygwin environment
14936 if test x$gdb_cv_os_cygwin = xyes; then
14937 WIN32LIBS="-luser32"
14938 case "${target}" in
14939 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
14944 # The ser-tcp.c module requires sockets.
14948 $as_echo "#define USE_WIN32API 1" >>confdefs.h
14950 WIN32LIBS
="$WIN32LIBS -lws2_32"
14955 # Add ELF support to GDB, but only if BFD includes ELF support.
14957 OLD_LDFLAGS
=$LDFLAGS
14959 CFLAGS
="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
14960 LDFLAGS
="$LDFLAGS -L../bfd -L../libiberty"
14961 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
14962 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
14963 if test "$plugins" = "yes"; then
14966 LIBS
="-lbfd -liberty $intl $LIBS"
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
14968 $as_echo_n "checking for ELF support in BFD... " >&6; }
14969 if test "${gdb_cv_var_elf+set}" = set; then :
14970 $as_echo_n "(cached) " >&6
14972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14973 /* end confdefs.h. */
14974 #include <stdlib.h>
14976 #include "elf-bfd.h"
14981 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
14986 if ac_fn_c_try_link
"$LINENO"; then :
14991 rm -f core conftest.err conftest.
$ac_objext \
14992 conftest
$ac_exeext conftest.
$ac_ext
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
14995 $as_echo "$gdb_cv_var_elf" >&6; }
14996 if test $gdb_cv_var_elf = yes; then
14997 CONFIG_OBS
="$CONFIG_OBS elfread.o"
14999 $as_echo "#define HAVE_ELF 1" >>confdefs.h
15001 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
15002 if test "$plugins" = "yes"; then
15003 OLD_LIBS
="-ldl $OLD_LIBS"
15007 LDFLAGS
=$OLD_LDFLAGS
15010 # Add any host-specific objects to GDB.
15011 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
15013 LIBGUI
="../libgui/src/libgui.a"
15014 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
15023 *-*-cygwin* |
*-*-mingw* )
15032 if test "${enable_gdbtk}" = "yes"; then
15034 # Gdbtk must have an absolute path to srcdir in order to run
15035 # properly when not installed.
15038 GDBTK_SRC_DIR
=`pwd`
15043 # Ok, lets find the tcl configuration
15044 # First, look for one uninstalled.
15045 # the alternative search directory is invoked by --with-tcl
15048 if test x
"${no_tcl}" = x
; then
15049 # we reset no_tcl in case something fails here
15052 # Check whether --with-tcl was given.
15053 if test "${with_tcl+set}" = set; then :
15054 withval
=$with_tcl; with_tclconfig
=${withval}
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
15058 $as_echo_n "checking for Tcl configuration... " >&6; }
15059 if test "${ac_cv_c_tclconfig+set}" = set; then :
15060 $as_echo_n "(cached) " >&6
15064 # First check to see if --with-tcl was specified.
15066 *-*-cygwin*) platDir
="win" ;;
15067 *) platDir
="unix" ;;
15069 if test x
"${with_tclconfig}" != x
; then
15070 if test -f "${with_tclconfig}/tclConfig.sh" ; then
15071 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
15073 as_fn_error
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
15077 # then check for a private Tcl installation
15078 if test x
"${ac_cv_c_tclconfig}" = x
; then
15081 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15082 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
15083 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
15085 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15086 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
15087 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
15089 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15090 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
15091 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
15092 if test -f "$i/$platDir/tclConfig.sh" ; then
15093 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
15099 # on Darwin, check in Framework installation locations
15100 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
15101 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
15102 `ls -d /Library/Frameworks 2>/dev/null` \
15103 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15104 `ls -d /System/Library/Frameworks 2>/dev/null` \
15106 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
15107 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
15113 # check in a few common install locations
15114 if test x
"${ac_cv_c_tclconfig}" = x
; then
15115 for i
in `ls -d ${libdir} 2>/dev/null` \
15116 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15117 `ls -d ${prefix}/lib 2>/dev/null` \
15118 `ls -d /usr/local/lib 2>/dev/null` \
15119 `ls -d /usr/contrib/lib 2>/dev/null` \
15120 `ls -d /usr/lib 2>/dev/null` \
15122 if test -f "$i/tclConfig.sh" ; then
15123 ac_cv_c_tclconfig
=`(cd $i; pwd)`
15129 # check in a few other private locations
15130 if test x
"${ac_cv_c_tclconfig}" = x
; then
15133 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15134 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
15135 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
15136 if test -f "$i/$platDir/tclConfig.sh" ; then
15137 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
15146 if test x
"${ac_cv_c_tclconfig}" = x
; then
15147 TCL_BIN_DIR
="# no Tcl configs found"
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
15149 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
15152 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
15154 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15159 # If $no_tk is nonempty, then we can't do Tk, and there is no
15160 # point to doing Tcl.
15163 # Ok, lets find the tk configuration
15164 # First, look for one uninstalled.
15165 # the alternative search directory is invoked by --with-tk
15168 if test x
"${no_tk}" = x
; then
15169 # we reset no_tk in case something fails here
15172 # Check whether --with-tk was given.
15173 if test "${with_tk+set}" = set; then :
15174 withval
=$with_tk; with_tkconfig
=${withval}
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
15178 $as_echo_n "checking for Tk configuration... " >&6; }
15179 if test "${ac_cv_c_tkconfig+set}" = set; then :
15180 $as_echo_n "(cached) " >&6
15184 # First check to see if --with-tkconfig was specified.
15185 if test x
"${with_tkconfig}" != x
; then
15186 if test -f "${with_tkconfig}/tkConfig.sh" ; then
15187 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
15189 as_fn_error
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
15193 # then check for a private Tk library
15195 *-*-cygwin*) platDir
="win" ;;
15196 *) platDir
="unix" ;;
15198 if test x
"${ac_cv_c_tkconfig}" = x
; then
15201 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15202 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
15203 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
15205 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15206 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
15207 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
15209 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15210 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
15211 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
15212 if test -f "$i/$platDir/tkConfig.sh" ; then
15213 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
15219 # on Darwin, check in Framework installation locations
15220 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
15221 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
15222 `ls -d /Library/Frameworks 2>/dev/null` \
15223 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15224 `ls -d /System/Library/Frameworks 2>/dev/null` \
15226 if test -f "$i/Tk.framework/tkConfig.sh" ; then
15227 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
15233 # check in a few common install locations
15234 if test x
"${ac_cv_c_tkconfig}" = x
; then
15235 for i
in `ls -d ${libdir} 2>/dev/null` \
15236 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15237 `ls -d ${prefix}/lib 2>/dev/null` \
15238 `ls -d /usr/local/lib 2>/dev/null` \
15239 `ls -d /usr/contrib/lib 2>/dev/null` \
15240 `ls -d /usr/lib 2>/dev/null` \
15242 if test -f "$i/tkConfig.sh" ; then
15243 ac_cv_c_tkconfig
=`(cd $i; pwd)`
15248 # check in a few other private locations
15249 if test x
"${ac_cv_c_tkconfig}" = x
; then
15252 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15253 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
15254 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
15255 if test -f "$i/$platDir/tkConfig.sh" ; then
15256 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
15265 if test x
"${ac_cv_c_tkconfig}" = x
; then
15266 TK_BIN_DIR
="# no Tk configs found"
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
15268 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
15271 TK_BIN_DIR
=${ac_cv_c_tkconfig}
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
15273 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15278 if test -z "${no_tcl}" -a -z "${no_tk}"; then
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
15281 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
15283 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15285 $as_echo "loading" >&6; }
15286 .
${TCL_BIN_DIR}/tclConfig.sh
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
15289 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15292 # eval is required to do the TCL_DBGX substitution
15293 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
15294 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
15296 # If the TCL_BIN_DIR is the build directory (not the install directory),
15297 # then set the common variable name to the value of the build variables.
15298 # For example, the variable TCL_LIB_SPEC will be set to the value
15299 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
15300 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
15301 # installed and uninstalled version of Tcl.
15302 if test -f "${TCL_BIN_DIR}/Makefile" ; then
15303 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
15304 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
15305 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
15306 elif test "`uname -s`" = "Darwin"; then
15307 # If Tcl was built as a framework, attempt to use the libraries
15308 # from the framework at the given location so that linking works
15309 # against Tcl.framework installed in an arbitary location.
15310 case ${TCL_DEFS} in
15312 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
15313 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
15314 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
15315 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
15316 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
15321 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
15322 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
15323 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
15329 # eval is required to do the TCL_DBGX substitution
15330 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
15331 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
15332 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
15333 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
15349 # Check for in-tree tcl
15356 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
15360 # Find Tcl private headers
15361 if test x
"${intree}" = xno
; then
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
15364 $as_echo_n "checking for Tcl private headers... " >&6; }
15366 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
15367 if test -f ${dir}/tclInt.h
; then
15371 if test x
"${private_dir}" = x
; then
15372 as_fn_error
"could not find private Tcl headers" "$LINENO" 5
15374 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
15375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15376 $as_echo "${private_dir}" >&6; }
15379 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
15380 TCL_LIBRARY
="${TCL_LIB_SPEC}"
15383 # If building tcl in the same src tree, private headers
15384 # are not needed, but we need to be sure to use the right
15386 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
15387 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
15388 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
15396 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
15398 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15400 $as_echo "loading" >&6; }
15401 .
${TK_BIN_DIR}/tkConfig.sh
15403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
15404 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15407 # eval is required to do the TK_DBGX substitution
15408 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
15409 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
15411 # If the TK_BIN_DIR is the build directory (not the install directory),
15412 # then set the common variable name to the value of the build variables.
15413 # For example, the variable TK_LIB_SPEC will be set to the value
15414 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
15415 # instead of TK_BUILD_LIB_SPEC since it will work with both an
15416 # installed and uninstalled version of Tcl.
15417 if test -f "${TK_BIN_DIR}/Makefile" ; then
15418 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
15419 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
15420 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
15421 elif test "`uname -s`" = "Darwin"; then
15422 # If Tk was built as a framework, attempt to use the libraries
15423 # from the framework at the given location so that linking works
15424 # against Tk.framework installed in an arbitary location.
15427 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
15428 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
15429 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
15430 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
15431 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
15436 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
15437 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
15438 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
15444 # eval is required to do the TK_DBGX substitution
15445 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
15446 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
15447 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
15448 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
15463 # Check for in-tree Tk
15465 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
15469 # Find Tk private headers
15470 if test x
"${intree}" = xno
; then
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
15473 $as_echo_n "checking for Tk private headers... " >&6; }
15475 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
15476 if test -f ${dir}/tkInt.h
; then
15480 if test x
"${private_dir}" = x
; then
15481 as_fn_error
"could not find Tk private headers" "$LINENO" 5
15483 TK_PRIVATE_INCLUDE
="-I${private_dir}"
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15485 $as_echo "${private_dir}" >&6; }
15488 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
15489 TK_LIBRARY
=${TK_LIB_SPEC}
15492 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
15493 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
15494 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
15501 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
15503 # Include some libraries that Tcl and Tk want.
15504 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
15505 # Yes, the ordering seems wrong here. But it isn't.
15506 # TK_LIBS is the list of libraries that need to be linked
15507 # after Tcl/Tk. Note that this isn't put into LIBS. If it
15508 # were in LIBS then any link tests after this point would
15509 # try to include things like `$(LIBGUI)', which wouldn't work.
15510 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
15512 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
15513 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
15514 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
15515 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
15516 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
15517 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
15518 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
15520 if test x
$gdb_cv_os_cygwin = xyes
; then
15521 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
15522 WIN32LDAPP
="-Wl,--subsystem,console"
15523 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
15526 subdirs
="$subdirs gdbtk"
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15539 $as_echo_n "checking for X... " >&6; }
15542 # Check whether --with-x was given.
15543 if test "${with_x+set}" = set; then :
15547 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15548 if test "x$with_x" = xno
; then
15549 # The user explicitly disabled X.
15552 case $x_includes,$x_libraries in #(
15553 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
15554 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
15555 $as_echo_n "(cached) " >&6
15557 # One or both of the vars are not set, and there is no cached value.
15558 ac_x_includes
=no ac_x_libraries
=no
15559 rm -f -r conftest.dir
15560 if mkdir conftest.dir
; then
15562 cat >Imakefile
<<'_ACEOF'
15564 @echo incroot='${INCROOT}'
15566 @echo usrlibdir='${USRLIBDIR}'
15568 @echo libdir='${LIBDIR}'
15570 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
15571 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15572 for ac_var
in incroot usrlibdir libdir
; do
15573 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15575 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
15576 for ac_extension
in a so sl dylib la dll
; do
15577 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15578 test -f "$ac_im_libdir/libX11.$ac_extension"; then
15579 ac_im_usrlibdir
=$ac_im_libdir; break
15582 # Screen out bogus values from the imake configuration. They are
15583 # bogus both because they are the default anyway, and because
15584 # using them would break gcc on systems where it needs fixed includes.
15585 case $ac_im_incroot in
15586 /usr
/include
) ac_x_includes
= ;;
15587 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
15589 case $ac_im_usrlibdir in
15590 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
15591 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
15595 rm -f -r conftest.dir
15598 # Standard set of common directories for X headers.
15599 # Check X11 before X11Rn because it is often a symlink to the current release.
15613 /usr/local/X11/include
15614 /usr/local/X11R7/include
15615 /usr/local/X11R6/include
15616 /usr/local/X11R5/include
15617 /usr/local/X11R4/include
15619 /usr/local/include/X11
15620 /usr/local/include/X11R7
15621 /usr/local/include/X11R6
15622 /usr/local/include/X11R5
15623 /usr/local/include/X11R4
15627 /usr/XFree86/include/X11
15631 /usr/unsupported/include
15632 /usr/athena/include
15633 /usr/local/x11r5/include
15634 /usr/lpp/Xamples/include
15636 /usr/openwin/include
15637 /usr/openwin/share/include'
15639 if test "$ac_x_includes" = no
; then
15640 # Guess where to find include files, by looking for Xlib.h.
15641 # First, try using that file with no special directory specified.
15642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15643 /* end confdefs.h. */
15644 #include <X11/Xlib.h>
15646 if ac_fn_c_try_cpp
"$LINENO"; then :
15647 # We can compile using X headers with no special include directory.
15650 for ac_dir
in $ac_x_header_dirs; do
15651 if test -r "$ac_dir/X11/Xlib.h"; then
15652 ac_x_includes
=$ac_dir
15657 rm -f conftest.err conftest.
$ac_ext
15658 fi # $ac_x_includes = no
15660 if test "$ac_x_libraries" = no
; then
15661 # Check for the libraries.
15662 # See if we find them without any special options.
15663 # Don't add to $LIBS permanently.
15666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15667 /* end confdefs.h. */
15668 #include <X11/Xlib.h>
15677 if ac_fn_c_try_link
"$LINENO"; then :
15679 # We can link X programs with no special library path.
15683 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15685 # Don't even attempt the hair of trying to link an X program!
15686 for ac_extension
in a so sl dylib la dll
; do
15687 if test -r "$ac_dir/libX11.$ac_extension"; then
15688 ac_x_libraries
=$ac_dir
15694 rm -f core conftest.err conftest.
$ac_objext \
15695 conftest
$ac_exeext conftest.
$ac_ext
15696 fi # $ac_x_libraries = no
15698 case $ac_x_includes,$ac_x_libraries in #(
15699 no
,* |
*,no |
*\'*)
15700 # Didn't find X, or a directory has "'" in its name.
15701 ac_cv_have_x
="have_x=no";; #(
15703 # Record where we found X for the cache.
15704 ac_cv_have_x
="have_x=yes\
15705 ac_x_includes='$ac_x_includes'\
15706 ac_x_libraries='$ac_x_libraries'"
15712 eval "$ac_cv_have_x"
15715 if test "$have_x" != yes; then
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15717 $as_echo "$have_x" >&6; }
15720 # If each of the values was on the command line, it overrides each guess.
15721 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
15722 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
15723 # Update the cache value to reflect the command line values.
15724 ac_cv_have_x
="have_x=yes\
15725 ac_x_includes='$x_includes'\
15726 ac_x_libraries='$x_libraries'"
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15728 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15732 # Unlike the sim directory, whether a simulator is linked is controlled by
15733 # presence of a gdb_sim definition in the target configure.tgt entry.
15734 # This code just checks for a few cases where we'd like to ignore those
15735 # definitions, even when they're present in the '.mt' file. These cases
15736 # are when --disable-sim is specified, or if the simulator directory is
15737 # not part of the source tree.
15739 # Check whether --enable-sim was given.
15740 if test "${enable_sim+set}" = set; then :
15741 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
15742 echo "enableval = ${enableval}";
15743 case "${enableval}" in
15744 yes) ignore_sim
=false
;;
15745 no
) ignore_sim
=true
;;
15746 *) ignore_sim
=false
;;
15753 if test ! -d "${srcdir}/../sim"; then
15759 if test "${ignore_sim}" = "false"; then
15760 if test x
"${gdb_sim}" != x
; then
15762 SIM_OBS
="remote-sim.o"
15764 $as_echo "#define WITH_SIM 1" >>confdefs.h
15782 # List of host floatformats.
15784 cat >>confdefs.h
<<_ACEOF
15785 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
15789 cat >>confdefs.h
<<_ACEOF
15790 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
15794 cat >>confdefs.h
<<_ACEOF
15795 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
15799 # target_subdir is used by the testsuite to find the target libraries.
15801 if test "${host}" != "${target}"; then
15802 target_subdir
="${target_alias}/"
15807 if test "${gdb_native}" = "yes"; then
15808 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
15809 if test ! -f ${host_makefile_frag}; then
15810 as_fn_error
"\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
15812 frags
="$frags $host_makefile_frag"
15814 host_makefile_frag
=/dev
/null
15820 if test "${gdb_native}" = "yes"; then
15821 # We pick this up from the host configuration file (.mh) because we
15822 # do not have a native configuration Makefile fragment.
15823 nativefile
=`sed -n '
15824 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
15825 ' ${host_makefile_frag}`
15829 if test x
"${gdb_osabi}" != x
; then
15831 cat >>confdefs.h
<<_ACEOF
15832 #define GDB_OSABI_DEFAULT $gdb_osabi
15837 # Enable multi-ice-gdb-server.
15838 # Check whether --enable-multi-ice was given.
15839 if test "${enable_multi_ice+set}" = set; then :
15840 enableval
=$enable_multi_ice; case $enableval in
15843 *) as_fn_error
"bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
15847 if test "x$enable_multi_ice" = xyes
; then
15848 subdirs
="$subdirs multi-ice"
15852 # Check whether --enable-gdbserver was given.
15853 if test "${enable_gdbserver+set}" = set; then :
15854 enableval
=$enable_gdbserver; case "${enableval}" in
15856 *) as_fn_error
"bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
15859 enable_gdbserver
=auto
15863 # We only build gdbserver automatically in a native configuration, and
15864 # only if the user did not explicitly disable its build.
15865 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
15867 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
15868 if test "x$build_gdbserver" = xyes
; then
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15870 $as_echo "yes" >&6; }
15871 subdirs
="$subdirs gdbserver"
15873 gdbserver_build_enabled
=yes
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15876 $as_echo "no" >&6; }
15880 # If the user explicitly request the gdbserver to be built, verify that
15881 # we were in fact able to enable it.
15882 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
15883 as_fn_error
"Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
15886 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
15887 # to an empty version.
15893 if test "${nativefile}" != ""; then
15894 case "${nativefile}" in
15895 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
15896 * ) GDB_NM_FILE
="${nativefile}"
15898 files
="${files} ${GDB_NM_FILE}"
15899 links
="${links} nm.h"
15901 cat >>confdefs.h
<<_ACEOF
15902 #define GDB_NM_FILE "${GDB_NM_FILE}"
15908 ac_sources
="$files"
15910 while test -n "$ac_sources"; do
15911 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
15912 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
15913 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
15915 ac_config_links
="$ac_config_links $ac_config_links_1"
15921 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
15924 ac_config_files
="$ac_config_files Makefile .gdbinit:gdbinit.in doc/Makefile gnulib/Makefile data-directory/Makefile"
15926 ac_config_commands
="$ac_config_commands default"
15928 cat >confcache
<<\_ACEOF
15929 # This file is a shell script that caches the results of configure
15930 # tests run on this system so they can be shared between configure
15931 # scripts and configure runs, see configure's option --config-cache.
15932 # It is not useful on other systems. If it contains results you don't
15933 # want to keep, you may remove or edit it.
15935 # config.status only pays attention to the cache file if you give it
15936 # the --recheck option to rerun configure.
15938 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15939 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15940 # following values.
15944 # The following way of writing the cache mishandles newlines in values,
15945 # but we know of no workaround that is simple, portable, and efficient.
15946 # So, we kill variables containing newlines.
15947 # Ultrix sh set writes to stderr and can't be redirected directly,
15948 # and sets the high bit in the cache file unless we assign to the vars.
15950 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15951 eval ac_val
=\$
$ac_var
15955 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15956 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15959 _ | IFS | as_nl
) ;; #(
15960 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15961 *) { eval $ac_var=; unset $ac_var;} ;;
15967 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15968 *${as_nl}ac_space
=\
*)
15969 # `set' does not quote correctly, so add quotes: double-quote
15970 # substitution turns \\\\ into \\, and sed turns \\ into \.
15973 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15976 # `set' quotes correctly as required by POSIX, so do not add quotes.
15977 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15986 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15988 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15990 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15991 if test -w "$cache_file"; then
15992 test "x$cache_file" != "x/dev/null" &&
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15994 $as_echo "$as_me: updating cache $cache_file" >&6;}
15995 cat confcache
>$cache_file
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15998 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16003 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16004 # Let make expand exec_prefix.
16005 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16007 DEFS
=-DHAVE_CONFIG_H
16011 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16012 # 1. Remove the extension, and $U if already installed.
16013 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16014 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16015 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16016 # will be set to the directory where LIBOBJS objects are built.
16017 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16018 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16020 LIBOBJS
=$ac_libobjs
16022 LTLIBOBJS
=$ac_ltlibobjs
16025 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16026 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
16027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16029 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
16030 as_fn_error
"conditional \"GMAKE\" was never defined.
16031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16033 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
16034 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
16035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16040 if test -n "$gl_LIBOBJS"; then
16041 # Remove the extension.
16042 sed_drop_objext
='s/\.o$//;s/\.obj$//'
16043 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16044 gl_libobjs
="$gl_libobjs $i.$ac_objext"
16045 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
16048 gl_LIBOBJS
=$gl_libobjs
16050 gl_LTLIBOBJS
=$gl_ltlibobjs
16056 if test -n "$gltests_LIBOBJS"; then
16057 # Remove the extension.
16058 sed_drop_objext
='s/\.o$//;s/\.obj$//'
16059 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16060 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
16061 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
16064 gltests_LIBOBJS
=$gltests_libobjs
16066 gltests_LTLIBOBJS
=$gltests_ltlibobjs
16069 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16070 as_fn_error
"conditional \"AMDEP\" was never defined.
16071 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16073 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16074 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
16075 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16077 if test -n "$EXEEXT"; then
16079 am__EXEEXT_FALSE
='#'
16081 am__EXEEXT_TRUE
='#'
16087 : ${CONFIG_STATUS=./config.status}
16089 ac_clean_files_save
=$ac_clean_files
16090 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16091 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16092 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16094 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16096 # Generated by $as_me.
16097 # Run this file to recreate the current configuration.
16098 # Compiler output produced by configure, useful for debugging
16099 # configure, is in config.log if it exists.
16102 ac_cs_recheck=false
16105 SHELL=\${CONFIG_SHELL-$SHELL}
16108 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16109 ## -------------------- ##
16110 ## M4sh Initialization. ##
16111 ## -------------------- ##
16113 # Be more Bourne compatible
16114 DUALCASE
=1; export DUALCASE
# for MKS sh
16115 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16118 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16119 # is contrary to our usage. Disable this feature.
16120 alias -g '${1+"$@"}'='"$@"'
16121 setopt NO_GLOB_SUBST
16123 case `(set -o) 2>/dev/null` in #(
16135 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16136 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16137 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16138 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16139 # Prefer a ksh shell builtin over an external printf program on Solaris,
16140 # but without wasting forks for bash or zsh.
16141 if test -z "$BASH_VERSION$ZSH_VERSION" \
16142 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16143 as_echo='print
-r --'
16144 as_echo_n='print
-rn --'
16145 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16146 as_echo='printf %s
\n'
16147 as_echo_n='printf %s
'
16149 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16150 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
16151 as_echo_n='/usr
/ucb
/echo -n'
16153 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16154 as_echo_n_body='eval
16158 expr "X$arg" : "X\\(.*\\)$as_nl";
16159 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16161 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
16163 export as_echo_n_body
16164 as_echo_n='sh
-c $as_echo_n_body as_echo
'
16166 export as_echo_body
16167 as_echo='sh
-c $as_echo_body as_echo
'
16170 # The user is always right.
16171 if test "${PATH_SEPARATOR+set}" != set; then
16173 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16174 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16181 # We need space, tab and new line, in precisely that order. Quoting is
16182 # there to prevent editors from complaining about space-tab.
16183 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16184 # splitting by setting IFS to empty value.)
16187 # Find who we are. Look in the path if we contain no directory separator.
16189 *[\\/]* ) as_myself=$0 ;;
16190 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16191 for as_dir in $PATH
16194 test -z "$as_dir" && as_dir=.
16195 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16201 # We did not find ourselves, most probably we were run as `sh COMMAND'
16202 # in which case we are not to be found in the path.
16203 if test "x$as_myself" = x
; then
16206 if test ! -f "$as_myself"; then
16207 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16211 # Unset variables that we do not need and which cause bugs (e.g. in
16212 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16213 # suppresses any "Segmentation fault" message there. '((' could
16214 # trigger a bug in pdksh 5.2.14.
16215 for as_var
in BASH_ENV ENV MAIL MAILPATH
16216 do eval test x\
${$as_var+set} = xset \
16217 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
16230 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
16233 # as_fn_error ERROR [LINENO LOG_FD]
16234 # ---------------------------------
16235 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16236 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16237 # script with status $?, using 1 if that was 0.
16240 as_status
=$?
; test $as_status -eq 0 && as_status
=1
16242 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
16243 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16245 $as_echo "$as_me: error: $1" >&2
16246 as_fn_exit
$as_status
16250 # as_fn_set_status STATUS
16251 # -----------------------
16252 # Set $? to STATUS, without forking.
16253 as_fn_set_status
()
16256 } # as_fn_set_status
16258 # as_fn_exit STATUS
16259 # -----------------
16260 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16264 as_fn_set_status
$1
16270 # Portably unset VAR.
16273 { eval $1=; unset $1;}
16275 as_unset
=as_fn_unset
16276 # as_fn_append VAR VALUE
16277 # ----------------------
16278 # Append the text in VALUE to the end of the definition contained in VAR. Take
16279 # advantage of any shell optimizations that allow amortized linear growth over
16280 # repeated appends, instead of the typical quadratic growth present in naive
16282 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
16283 eval 'as_fn_append ()
16294 # as_fn_arith ARG...
16295 # ------------------
16296 # Perform arithmetic evaluation on the ARGs, and store the result in the
16297 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16298 # must be portable across $(()) and expr.
16299 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
16300 eval 'as_fn_arith ()
16307 as_val
=`expr "$@" || test $? -eq 1`
16312 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16313 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16319 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16320 as_basename
=basename
16325 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16331 as_me
=`$as_basename -- "$0" ||
16332 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16333 X"$0" : 'X\(//\)$' \| \
16334 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16336 sed '/^.*\/\([^/][^/]*\)\/*$/{
16350 # Avoid depending upon Character Ranges.
16351 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16352 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16353 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16354 as_cr_digits
='0123456789'
16355 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16357 ECHO_C
= ECHO_N
= ECHO_T
=
16358 case `echo -n x` in #(((((
16360 case `echo 'xy\c'` in
16361 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16363 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16370 rm -f conf$$ conf$$.exe conf$$.
file
16371 if test -d conf$$.dir
; then
16372 rm -f conf$$.dir
/conf$$.
file
16375 mkdir conf$$.dir
2>/dev
/null
16377 if (echo >conf$$.
file) 2>/dev
/null
; then
16378 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16380 # ... but there are two gotchas:
16381 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16382 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16383 # In both cases, we have to default to `cp -p'.
16384 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16386 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16394 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16395 rmdir conf$$.dir
2>/dev
/null
16400 # Create "$as_dir" as a directory, including parents if necessary.
16405 -*) as_dir
=.
/$as_dir;;
16407 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16411 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16412 *) as_qdir
=$as_dir;;
16414 as_dirs
="'$as_qdir' $as_dirs"
16415 as_dir
=`$as_dirname -- "$as_dir" ||
16416 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16417 X"$as_dir" : 'X\(//\)[^/]' \| \
16418 X"$as_dir" : 'X\(//\)$' \| \
16419 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16420 $as_echo X"$as_dir" |
16421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16425 /^X\(\/\/\)[^/].*/{
16438 test -d "$as_dir" && break
16440 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16441 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
16445 if mkdir
-p .
2>/dev
/null
; then
16446 as_mkdir_p
='mkdir -p "$as_dir"'
16448 test -d .
/-p && rmdir .
/-p
16452 if test -x / >/dev
/null
2>&1; then
16453 as_test_x
='test -x'
16455 if ls -dL / >/dev
/null
2>&1; then
16462 if test -d "$1"; then
16468 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16469 ???[sx]*):;;*)false;;esac;fi
16473 as_executable_p
=$as_test_x
16475 # Sed expression to map a string onto a valid CPP name.
16476 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16478 # Sed expression to map a string onto a valid variable name.
16479 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16483 ## ----------------------------------- ##
16484 ## Main body of $CONFIG_STATUS script. ##
16485 ## ----------------------------------- ##
16487 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16490 # Save the log message, to keep $0 and so on meaningful, and to
16491 # report actual input values of CONFIG_FILES etc. instead of their
16492 # values after options handling.
16494 This file was extended by $as_me, which was
16495 generated by GNU Autoconf 2.64. Invocation command line was
16497 CONFIG_FILES = $CONFIG_FILES
16498 CONFIG_HEADERS = $CONFIG_HEADERS
16499 CONFIG_LINKS = $CONFIG_LINKS
16500 CONFIG_COMMANDS = $CONFIG_COMMANDS
16503 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16508 case $ac_config_files in *"
16509 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16512 case $ac_config_headers in *"
16513 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16518 # Files that config.status was made for.
16519 config_files="$ac_config_files"
16520 config_headers="$ac_config_headers"
16521 config_links="$ac_config_links"
16522 config_commands="$ac_config_commands"
16526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16528 \`$as_me' instantiates files and other configuration actions
16529 from templates according to the current configuration. Unless the files
16530 and actions are specified as TAGs, all are instantiated by default.
16532 Usage: $0 [OPTION]... [TAG]...
16534 -h, --help print this help, then exit
16535 -V, --version print version number and configuration settings, then exit
16536 -q, --quiet, --silent
16537 do not print progress messages
16538 -d, --debug don't remove temporary files
16539 --recheck update $as_me by reconfiguring in the same conditions
16540 --file=FILE[:TEMPLATE]
16541 instantiate the configuration file FILE
16542 --header=FILE[:TEMPLATE]
16543 instantiate the configuration header FILE
16545 Configuration files:
16548 Configuration headers:
16551 Configuration links:
16554 Configuration commands:
16557 Report bugs to the package provider."
16560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16563 configured by $0, generated by GNU Autoconf 2.64,
16564 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16566 Copyright (C) 2009 Free Software Foundation, Inc.
16567 This config.status script is free software; the Free Software Foundation
16568 gives unlimited permission to copy, distribute and modify it."
16575 test -n "\$AWK" || AWK=awk
16578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16579 # The default lists apply if the user does not specify any file.
16585 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16586 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16597 # Handling of the options.
16598 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16600 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16601 $as_echo "$ac_cs_version"; exit ;;
16602 --debug |
--debu |
--deb |
--de |
--d |
-d )
16604 --file |
--fil |
--fi |
--f )
16607 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16609 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16610 ac_need_defaults
=false
;;
16611 --header |
--heade |
--head |
--hea )
16614 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16616 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
16617 ac_need_defaults
=false
;;
16619 # Conflict between --help and --header
16620 as_fn_error
"ambiguous option: \`$1'
16621 Try \`$0 --help' for more information.";;
16622 --help |
--hel |
-h )
16623 $as_echo "$ac_cs_usage"; exit ;;
16624 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16625 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16628 # This is an error.
16629 -*) as_fn_error
"unrecognized option: \`$1'
16630 Try \`$0 --help' for more information." ;;
16632 *) as_fn_append ac_config_targets
" $1"
16633 ac_need_defaults
=false
;;
16639 ac_configure_extra_args
=
16641 if $ac_cs_silent; then
16643 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16648 if \$ac_cs_recheck; then
16649 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16651 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16652 CONFIG_SHELL='$SHELL'
16653 export CONFIG_SHELL
16658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16662 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16663 ## Running $as_me. ##
16669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16673 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16674 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16680 # Handling of arguments.
16681 for ac_config_target
in $ac_config_targets
16683 case $ac_config_target in
16684 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
16685 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
16686 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
16687 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
16688 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16689 ".gdbinit") CONFIG_FILES
="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
16690 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
16691 "gnulib/Makefile") CONFIG_FILES
="$CONFIG_FILES gnulib/Makefile" ;;
16692 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
16693 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
16695 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16700 # If the user did not use the arguments to specify the items to instantiate,
16701 # then the envvar interface is used. Set only those that are not.
16702 # We use the long form for the default assignment because of an extremely
16703 # bizarre bug on SunOS 4.1.3.
16704 if $ac_need_defaults; then
16705 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16706 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16707 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
16708 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16711 # Have a temporary directory for convenience. Make it in the build tree
16712 # simply because there is no reason against having it here, and in addition,
16713 # creating and moving files from /tmp can sometimes cause problems.
16714 # Hook for its removal unless debugging.
16715 # Note that there is a small window in which the directory will not be cleaned:
16716 # after its creation but before its name has been assigned to `$tmp'.
16720 trap 'exit_status=$?
16721 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16723 trap 'as_fn_exit 1' 1 2 13 15
16725 # Create a (secure) tmp directory for tmp files.
16728 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16729 test -n "$tmp" && test -d "$tmp"
16732 tmp
=.
/conf$$
-$RANDOM
16733 (umask 077 && mkdir
"$tmp")
16734 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
16736 # Set up the scripts for CONFIG_FILES section.
16737 # No need to generate them if there are no CONFIG_FILES.
16738 # This happens for instance with `./config.status config.h'.
16739 if test -n "$CONFIG_FILES"; then
16741 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
16742 ac_cs_awk_getline
=:
16743 ac_cs_awk_pipe_init
=
16744 ac_cs_awk_read_file
='
16745 while ((getline aline < (F[key])) > 0)
16748 ac_cs_awk_pipe_fini
=
16750 ac_cs_awk_getline
=false
16751 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
16752 ac_cs_awk_read_file
='
16754 print "cat " F[key] " &&"
16755 '$ac_cs_awk_pipe_init
16756 # The final `:' finishes the AND list.
16757 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
16759 ac_cr
=`echo X | tr X '\015'`
16760 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16761 # But we know of no other shell where ac_cr would be empty at this
16762 # point, so we can use a bashism as a fallback.
16763 if test "x$ac_cr" = x
; then
16764 eval ac_cr
=\$
\'\\r
\'
16766 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16767 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16770 ac_cs_awk_cr
=$ac_cr
16773 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16776 # Create commands to substitute file output variables.
16778 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16779 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16780 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
16783 } >conf$
$files.sh
&&
16784 . .
/conf$
$files.sh ||
16785 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
16786 rm -f conf$
$files.sh
16789 echo "cat >conf$$subs.awk <<_ACEOF" &&
16790 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16792 } >conf$$subs.sh ||
16793 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16794 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16796 for ac_last_try in false false false false false :; do
16797 . ./conf$$subs.sh ||
16798 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16800 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16801 if test $ac_delim_n = $ac_delim_num; then
16803 elif $ac_last_try; then
16804 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16806 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16809 rm -f conf$$subs.sh
16811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16812 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
16816 s/^/S["/; s
/!.
*/"]=/
16826 s/\(.\{148\}\).*/\1/
16828 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16833 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16840 s/\(.\{148\}\).*/\1/
16842 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16846 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16851 ' <conf$$subs.awk | sed '
16856 ' >>$CONFIG_STATUS || ac_write_fail=1
16857 rm -f conf$$subs.awk
16858 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16860 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
16861 for (key in S) S_is_set[key] = 1
16863 \$ac_cs_awk_pipe_init
16867 nfields = split(line, field, "@
")
16869 len = length(field[1])
16870 for (i = 2; i < nfields; i++) {
16872 keylen = length(key)
16873 if (S_is_set[key]) {
16875 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16876 len += length(value) + length(field[++i])
16881 if (nfields == 3 && !substed) {
16883 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16884 \$ac_cs_awk_read_file
16890 \$ac_cs_awk_pipe_fini
16893 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16894 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16895 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16898 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
16899 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
16902 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16903 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
16904 # trailing colons and then remove the whole line if VPATH becomes empty
16905 # (actually we leave an empty line to preserve line numbers).
16906 if test "x
$srcdir" = x.; then
16907 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16908 s/:*\$(srcdir):*/:/
16909 s/:*\${srcdir}:*/:/
16911 s/^\([^=]*=[ ]*\):*/\1/
16917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16918 fi # test -n "$CONFIG_FILES"
16920 # Set up the scripts for CONFIG_HEADERS section.
16921 # No need to generate them if there are no CONFIG_HEADERS.
16922 # This happens for instance with `./config.status Makefile'.
16923 if test -n "$CONFIG_HEADERS"; then
16924 cat >"$tmp/defines.
awk" <<\_ACAWK ||
16928 # Transform confdefs.h into an awk script `defines.awk', embedded as
16929 # here-document in config.status, that substitutes the proper values into
16930 # config.h.in to produce config.h.
16932 # Create a delimiter string that does not exist in confdefs.h, to ease
16933 # handling of long lines.
16935 for ac_last_try in false false :; do
16936 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
16937 if test -z "$ac_t"; then
16939 elif $ac_last_try; then
16940 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
16942 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16946 # For the awk script, D is an array of macro values keyed by name,
16947 # likewise P contains macro parameters if any. Preserve backslash
16948 # newline sequences.
16950 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16952 s/.\{148\}/&'"$ac_delim"'/g
16955 s/^[ ]*#[ ]*define[ ][ ]*/ /
16962 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16964 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16968 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16969 D["\
1"]=" \
3\\\\\\n
"\\/p
16971 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16976 s/.\{148\}/&'"$ac_delim"'/g
16981 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16984 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16986 ' <confdefs.h | sed '
16987 s/'"$ac_delim"'/"\\\
16988 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16991 for (key in D) D_is_set[key] = 1
16994 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16996 split(line, arg, " ")
16997 if (arg[1] == "#") {
17001 defundef
= substr
(arg
[1], 2)
17004 split(mac1
, mac2
, "(") #)
17006 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
17007 if (D_is_set
[macro
]) {
17008 # Preserve the white space surrounding the "#".
17009 print prefix
"define", macro P
[macro
] D
[macro
]
17012 # Replace #undef with comments. This is necessary, for example,
17013 # in the case of _POSIX_SOURCE, which is predefined and required
17014 # on some systems where configure will not decide to define it.
17015 if (defundef
== "undef") {
17016 print
"/*", prefix defundef
, macro
, "*/"
17024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17025 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
17026 fi # test -n "$CONFIG_HEADERS"
17029 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17034 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17036 case $ac_mode$ac_tag in
17038 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
17039 :[FH
]-) ac_tag
=-:-;;
17040 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17057 -) ac_f
="$tmp/stdin";;
17058 *) # Look for the file first in the build tree, then in the source tree
17059 # (if the path is not absolute). The absolute path cannot be DOS-style,
17060 # because $ac_f cannot contain `:'.
17064 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17066 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
17068 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17069 as_fn_append ac_file_inputs
" '$ac_f'"
17072 # Let's still pretend it is `configure' which instantiates (i.e., don't
17073 # use $as_me), people would be surprised to read:
17074 # /* config.h. Generated by config.status. */
17075 configure_input
='Generated from '`
17076 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17078 if test x
"$ac_file" != x-
; then
17079 configure_input
="$ac_file. $configure_input"
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17081 $as_echo "$as_me: creating $ac_file" >&6;}
17083 # Neutralize special characters interpreted by sed in replacement strings.
17084 case $configure_input in #(
17085 *\
&* |
*\|
* |
*\\* )
17086 ac_sed_conf_input
=`$as_echo "$configure_input" |
17087 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17088 *) ac_sed_conf_input
=$configure_input;;
17092 *:-:* |
*:-) cat >"$tmp/stdin" \
17093 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
17098 ac_dir
=`$as_dirname -- "$ac_file" ||
17099 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17100 X"$ac_file" : 'X\(//\)[^/]' \| \
17101 X"$ac_file" : 'X\(//\)$' \| \
17102 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17103 $as_echo X"$ac_file" |
17104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17108 /^X\(\/\/\)[^/].*/{
17121 as_dir
="$ac_dir"; as_fn_mkdir_p
17125 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17127 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17128 # A ".." for each directory in $ac_dir_suffix.
17129 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17130 case $ac_top_builddir_sub in
17131 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17132 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17135 ac_abs_top_builddir
=$ac_pwd
17136 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17137 # for backward compatibility:
17138 ac_top_builddir
=$ac_top_build_prefix
17141 .
) # We are building in place.
17143 ac_top_srcdir
=$ac_top_builddir_sub
17144 ac_abs_top_srcdir
=$ac_pwd ;;
17145 [\\/]* | ?
:[\\/]* ) # Absolute name.
17146 ac_srcdir
=$srcdir$ac_dir_suffix;
17147 ac_top_srcdir
=$srcdir
17148 ac_abs_top_srcdir
=$srcdir ;;
17149 *) # Relative name.
17150 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17151 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17152 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17154 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17164 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17165 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
17167 ac_MKDIR_P
=$MKDIR_P
17169 [\\/$
]* | ?
:[\\/]* ) ;;
17170 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
17174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17175 # If the template does not know about datarootdir, expand it.
17176 # FIXME: This hack should be removed a few years after 2.60.
17177 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17188 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17189 *datarootdir
*) ac_datarootdir_seen
=yes;;
17190 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17192 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17194 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17195 ac_datarootdir_hack='
17196 s&@datadir@&$datadir&g
17197 s&@docdir@&$docdir&g
17198 s&@infodir@&$infodir&g
17199 s&@localedir@&$localedir&g
17200 s&@mandir@&$mandir&g
17201 s&\\\${datarootdir}&$datarootdir&g' ;;
17205 # Neutralize VPATH when `$srcdir' = `.'.
17206 # Shell code in configure.ac might set extrasub.
17207 # FIXME: do we really want to maintain this feature?
17208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17209 ac_sed_extra="$ac_vpsub
17212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17214 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17215 s|@configure_input@|
$ac_sed_conf_input|
;t t
17216 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17217 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17218 s
&@srcdir@
&$ac_srcdir&;t t
17219 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17220 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17221 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17222 s
&@builddir@
&$ac_builddir&;t t
17223 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17224 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17225 s
&@INSTALL@
&$ac_INSTALL&;t t
17226 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
17227 $ac_datarootdir_hack
17229 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17230 if $ac_cs_awk_getline; then
17231 $AWK -f "$tmp/subs.
awk"
17233 $AWK -f "$tmp/subs.
awk" | $SHELL
17235 || as_fn_error "could not create
$ac_file" "$LINENO" 5
17237 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17238 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
17239 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17241 which seems to be undefined. Please make sure it is defined." >&5
17242 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17243 which seems to be undefined. Please make sure it is defined." >&2;}
17247 -) cat "$tmp/out" && rm -f "$tmp/out";;
17248 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17250 || as_fn_error "could not create $ac_file" "$LINENO" 5
17256 if test x"$ac_file" != x-; then
17258 $as_echo "/* $configure_input */" \
17259 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17260 } >"$tmp/config.h" \
17261 || as_fn_error "could not create $ac_file" "$LINENO" 5
17262 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17263 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17264 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17267 mv "$tmp/config.h" "$ac_file" \
17268 || as_fn_error "could not create $ac_file" "$LINENO" 5
17271 $as_echo "/* $configure_input */" \
17272 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17273 || as_fn_error "could not create -" "$LINENO" 5
17275 # Compute "$ac_file"'s index
in $config_headers.
17278 for _am_header
in $config_headers :; do
17279 case $_am_header in
17280 $_am_arg |
$_am_arg:* )
17283 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
17286 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17287 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17288 X"$_am_arg" : 'X\(//\)[^/]' \| \
17289 X"$_am_arg" : 'X\(//\)$' \| \
17290 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17291 $as_echo X"$_am_arg" |
17292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17296 /^X\(\/\/\)[^/].*/{
17308 s/.*/./; q'`/stamp-h
$_am_stamp_count
17315 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17318 # Prefer the file from the source tree if names are identical.
17319 if test "$ac_source" = "$ac_file" ||
test ! -r "$ac_source"; then
17320 ac_source
=$srcdir/$ac_source
17323 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17324 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17326 if test ! -r "$ac_source"; then
17327 as_fn_error
"$ac_source: file not found" "$LINENO" 5
17331 # Try a relative symlink, then a hard link, then a copy.
17333 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$ac_source ;;
17334 *) ac_rel_source
=$ac_top_build_prefix$ac_source ;;
17336 ln -s "$ac_rel_source" "$ac_file" 2>/dev
/null ||
17337 ln "$ac_source" "$ac_file" 2>/dev
/null ||
17338 cp -p "$ac_source" "$ac_file" ||
17339 as_fn_error
"cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17342 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17343 $as_echo "$as_me: executing $ac_file commands" >&6;}
17348 case $ac_file$ac_mode in
17349 "depdir":C
) $SHELL $ac_aux_dir/mkinstalldirs
$DEPDIR ;;
17350 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
17351 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17352 # are listed without --file. Let's play safe and only enable the eval
17353 # if we detect the quoting.
17354 case $CONFIG_FILES in
17355 *\'*) eval set x
"$CONFIG_FILES" ;;
17356 *) set x
$CONFIG_FILES ;;
17361 # Strip MF so we end up with the name of the file.
17362 mf
=`echo "$mf" | sed -e 's/:.*$//'`
17363 # Check whether this is an Automake generated Makefile or not.
17364 # We used to match only the files named `Makefile.in', but
17365 # some people rename them; so instead we look at the file content.
17366 # Grep'ing the first line is not enough: some people post-process
17367 # each Makefile.in and add a new line on top of each file to say so.
17368 # Grep'ing the whole file is not good either: AIX grep has a line
17369 # limit of 2048, but all sed's we know have understand at least 4000.
17370 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
17371 dirpart
=`$as_dirname -- "$mf" ||
17372 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17373 X"$mf" : 'X\(//\)[^/]' \| \
17374 X"$mf" : 'X\(//\)$' \| \
17375 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17381 /^X\(\/\/\)[^/].*/{
17397 # Extract the definition of DEPDIR, am__include, and am__quote
17398 # from the Makefile without running `make'.
17399 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
17400 test -z "$DEPDIR" && continue
17401 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
17402 test -z "am__include" && continue
17403 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
17404 # When using ansi2knr, U may be empty or an underscore; expand it
17405 U
=`sed -n 's/^U = //p' < "$mf"`
17406 # Find all dependency output files, they are included files with
17407 # $(DEPDIR) in their names. We invoke sed twice because it is the
17408 # simplest approach to changing $(DEPDIR) to its actual value in the
17410 for file in `sed -n "
17411 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17412 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17413 # Make sure the directory exists.
17414 test -f "$dirpart/$file" && continue
17415 fdir
=`$as_dirname -- "$file" ||
17416 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17417 X"$file" : 'X\(//\)[^/]' \| \
17418 X"$file" : 'X\(//\)$' \| \
17419 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17420 $as_echo X"$file" |
17421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17425 /^X\(\/\/\)[^/].*/{
17438 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
17439 # echo "creating $dirpart/$file"
17440 echo '# dummy' > "$dirpart/$file"
17446 case x
$CONFIG_HEADERS in
17447 xconfig.h
:config.
in)
17458 ac_clean_files
=$ac_clean_files_save
17460 test $ac_write_fail = 0 ||
17461 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
17464 # configure is writing to config.log, and then calls config.status.
17465 # config.status does its own redirection, appending to config.log.
17466 # Unfortunately, on DOS this fails, as config.log is still kept open
17467 # by configure, so config.status won't be able to write to it; its
17468 # output is simply discarded. So we exec the FD to /dev/null,
17469 # effectively closing config.log, so it can be properly (re)opened and
17470 # appended to by config.status. When coming back to configure, we
17471 # need to make the FD available again.
17472 if test "$no_create" != yes; then
17474 ac_config_status_args
=
17475 test "$silent" = yes &&
17476 ac_config_status_args
="$ac_config_status_args --quiet"
17478 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17480 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17481 # would make configure fail if this is the last instruction.
17482 $ac_cs_success || as_fn_exit $?
17486 # CONFIG_SUBDIRS section.
17488 if test "$no_recursion" != yes; then
17490 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17491 # so they do not pile up.
17492 ac_sub_configure_args
=
17494 eval "set x $ac_configure_args"
17498 if test -n "$ac_prev"; then
17503 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
17504 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
17505 ac_prev
=cache_file
;;
17506 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
17507 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
17510 --config-cache |
-C)
17512 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
17514 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
17516 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
17518 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
17520 --disable-option-checking)
17524 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17526 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
17530 # Always prepend --prefix to ensure using the same prefix
17531 # in subdir configurations.
17532 ac_arg
="--prefix=$prefix"
17534 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17536 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
17539 if test "$silent" = yes; then
17540 ac_sub_configure_args
="--silent $ac_sub_configure_args"
17543 # Always prepend --disable-option-checking to silence warnings, since
17544 # different subdirs can have different --enable and --with options.
17545 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
17548 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
17550 # Do not complain, so a configure script can configure whichever
17551 # parts of a large source tree are present.
17552 test -d "$srcdir/$ac_dir" ||
continue
17554 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17555 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17556 $as_echo "$ac_msg" >&6
17557 as_dir
="$ac_dir"; as_fn_mkdir_p
17561 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17563 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17564 # A ".." for each directory in $ac_dir_suffix.
17565 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17566 case $ac_top_builddir_sub in
17567 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17568 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17571 ac_abs_top_builddir
=$ac_pwd
17572 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17573 # for backward compatibility:
17574 ac_top_builddir
=$ac_top_build_prefix
17577 .
) # We are building in place.
17579 ac_top_srcdir
=$ac_top_builddir_sub
17580 ac_abs_top_srcdir
=$ac_pwd ;;
17581 [\\/]* | ?
:[\\/]* ) # Absolute name.
17582 ac_srcdir
=$srcdir$ac_dir_suffix;
17583 ac_top_srcdir
=$srcdir
17584 ac_abs_top_srcdir
=$srcdir ;;
17585 *) # Relative name.
17586 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17587 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17588 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17590 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17595 # Check for guested configure; otherwise get Cygnus style configure.
17596 if test -f "$ac_srcdir/configure.gnu"; then
17597 ac_sub_configure
=$ac_srcdir/configure.gnu
17598 elif test -f "$ac_srcdir/configure"; then
17599 ac_sub_configure
=$ac_srcdir/configure
17600 elif test -f "$ac_srcdir/configure.in"; then
17601 # This should be Cygnus configure.
17602 ac_sub_configure
=$ac_aux_dir/configure
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17605 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17609 # The recursion is here.
17610 if test -n "$ac_sub_configure"; then
17611 # Make the cache file name correct relative to the subdirectory.
17612 case $cache_file in
17613 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
17614 *) # Relative name.
17615 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
17618 { $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
17619 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17620 # The eval makes quoting arguments work.
17621 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17622 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17623 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17629 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17631 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}