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
723 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
759 NEXT_AS_FIRST_DIRECTIVE_STRING_H
769 HAVE_SIGNED_SIG_ATOMIC_T
772 BITSIZEOF_SIG_ATOMIC_T
778 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
782 HAVE_UNSIGNED_LONG_LONG_INT
784 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
787 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
792 APPLE_UNIVERSAL_BUILD
858 GL_COND_LIBTOOL_FALSE
903 MAINTAINER_MODE_FALSE
932 program_transform_name
943 ac_subst_files
='host_makefile_frag'
945 enable_option_checking
946 enable_maintainer_mode
949 enable_dependency_tracking
950 with_separate_debug_dir
952 with_relocated_sources
977 enable_build_warnings
978 enable_gdb_build_warnings
986 ac_precious_vars
='build_alias
998 ac_subdirs_all
='testsuite
1003 # Initialize some variables set by options.
1005 ac_init_version
=false
1006 ac_unrecognized_opts
=
1007 ac_unrecognized_sep
=
1008 # The variables have the same names as the options, with
1009 # dashes changed to underlines.
1010 cache_file
=/dev
/null
1017 program_transform_name
=s
,x
,x
,
1025 # Installation directory options.
1026 # These are left unexpanded so users can "make install exec_prefix=/foo"
1027 # and all the variables that are supposed to be based on exec_prefix
1028 # by default will actually change.
1029 # Use braces instead of parens because sh, perl, etc. also accept them.
1030 # (The list follows the same order as the GNU Coding Standards.)
1031 bindir
='${exec_prefix}/bin'
1032 sbindir
='${exec_prefix}/sbin'
1033 libexecdir
='${exec_prefix}/libexec'
1034 datarootdir
='${prefix}/share'
1035 datadir
='${datarootdir}'
1036 sysconfdir
='${prefix}/etc'
1037 sharedstatedir
='${prefix}/com'
1038 localstatedir
='${prefix}/var'
1039 includedir
='${prefix}/include'
1040 oldincludedir
='/usr/include'
1041 docdir
='${datarootdir}/doc/${PACKAGE}'
1042 infodir
='${datarootdir}/info'
1047 libdir
='${exec_prefix}/lib'
1048 localedir
='${datarootdir}/locale'
1049 mandir
='${datarootdir}/man'
1055 # If the previous option needs an argument, assign it.
1056 if test -n "$ac_prev"; then
1057 eval $ac_prev=\
$ac_option
1063 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1067 # Accept the important Cygnus configure options, so we can diagnose typos.
1069 case $ac_dashdash$ac_option in
1073 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1075 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1076 bindir
=$ac_optarg ;;
1078 -build |
--build |
--buil |
--bui |
--bu)
1079 ac_prev
=build_alias
;;
1080 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1081 build_alias
=$ac_optarg ;;
1083 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1084 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1085 ac_prev
=cache_file
;;
1086 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1087 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1088 cache_file
=$ac_optarg ;;
1090 --config-cache |
-C)
1091 cache_file
=config.cache
;;
1093 -datadir |
--datadir |
--datadi |
--datad)
1095 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1096 datadir
=$ac_optarg ;;
1098 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1099 |
--dataroo |
--dataro |
--datar)
1100 ac_prev
=datarootdir
;;
1101 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1102 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1103 datarootdir
=$ac_optarg ;;
1105 -disable-* |
--disable-*)
1106 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1109 as_fn_error
"invalid feature name: $ac_useropt"
1110 ac_useropt_orig
=$ac_useropt
1111 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1114 "enable_
$ac_useropt"
1116 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1117 ac_unrecognized_sep
=', ';;
1119 eval enable_
$ac_useropt=no
;;
1121 -docdir |
--docdir |
--docdi |
--doc |
--do)
1123 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1124 docdir
=$ac_optarg ;;
1126 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1128 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1129 dvidir
=$ac_optarg ;;
1131 -enable-* |
--enable-*)
1132 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1135 as_fn_error
"invalid feature name: $ac_useropt"
1136 ac_useropt_orig
=$ac_useropt
1137 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1140 "enable_
$ac_useropt"
1142 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1143 ac_unrecognized_sep
=', ';;
1145 eval enable_
$ac_useropt=\
$ac_optarg ;;
1147 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1148 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1149 |
--exec |
--exe |
--ex)
1150 ac_prev
=exec_prefix
;;
1151 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1152 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1153 |
--exec=* |
--exe=* |
--ex=*)
1154 exec_prefix
=$ac_optarg ;;
1156 -gas |
--gas |
--ga |
--g)
1157 # Obsolete; use --with-gas.
1160 -help |
--help |
--hel |
--he |
-h)
1161 ac_init_help
=long
;;
1162 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1163 ac_init_help
=recursive
;;
1164 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1165 ac_init_help
=short
;;
1167 -host |
--host |
--hos |
--ho)
1168 ac_prev
=host_alias
;;
1169 -host=* |
--host=* |
--hos=* |
--ho=*)
1170 host_alias
=$ac_optarg ;;
1172 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1174 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1176 htmldir
=$ac_optarg ;;
1178 -includedir |
--includedir |
--includedi |
--included |
--include \
1179 |
--includ |
--inclu |
--incl |
--inc)
1180 ac_prev
=includedir
;;
1181 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1182 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1183 includedir
=$ac_optarg ;;
1185 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1187 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1188 infodir
=$ac_optarg ;;
1190 -libdir |
--libdir |
--libdi |
--libd)
1192 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1193 libdir
=$ac_optarg ;;
1195 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1196 |
--libexe |
--libex |
--libe)
1197 ac_prev
=libexecdir
;;
1198 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1199 |
--libexe=* |
--libex=* |
--libe=*)
1200 libexecdir
=$ac_optarg ;;
1202 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1203 ac_prev
=localedir
;;
1204 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1205 localedir
=$ac_optarg ;;
1207 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1208 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1209 ac_prev
=localstatedir
;;
1210 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1211 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1212 localstatedir
=$ac_optarg ;;
1214 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1216 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1217 mandir
=$ac_optarg ;;
1219 -nfp |
--nfp |
--nf)
1220 # Obsolete; use --without-fp.
1223 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1224 |
--no-cr |
--no-c |
-n)
1227 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1228 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1231 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1232 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1233 |
--oldin |
--oldi |
--old |
--ol |
--o)
1234 ac_prev
=oldincludedir
;;
1235 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1236 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1237 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1238 oldincludedir
=$ac_optarg ;;
1240 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1242 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1243 prefix
=$ac_optarg ;;
1245 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1246 |
--program-pre |
--program-pr |
--program-p)
1247 ac_prev
=program_prefix
;;
1248 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1249 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1250 program_prefix
=$ac_optarg ;;
1252 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1253 |
--program-suf |
--program-su |
--program-s)
1254 ac_prev
=program_suffix
;;
1255 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1256 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1257 program_suffix
=$ac_optarg ;;
1259 -program-transform-name |
--program-transform-name \
1260 |
--program-transform-nam |
--program-transform-na \
1261 |
--program-transform-n |
--program-transform- \
1262 |
--program-transform |
--program-transfor \
1263 |
--program-transfo |
--program-transf \
1264 |
--program-trans |
--program-tran \
1265 |
--progr-tra |
--program-tr |
--program-t)
1266 ac_prev
=program_transform_name
;;
1267 -program-transform-name=* |
--program-transform-name=* \
1268 |
--program-transform-nam=* |
--program-transform-na=* \
1269 |
--program-transform-n=* |
--program-transform-=* \
1270 |
--program-transform=* |
--program-transfor=* \
1271 |
--program-transfo=* |
--program-transf=* \
1272 |
--program-trans=* |
--program-tran=* \
1273 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1274 program_transform_name
=$ac_optarg ;;
1276 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1278 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1279 pdfdir
=$ac_optarg ;;
1281 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1283 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1286 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1287 |
-silent |
--silent |
--silen |
--sile |
--sil)
1290 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1292 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1294 sbindir
=$ac_optarg ;;
1296 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1297 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1298 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1300 ac_prev
=sharedstatedir
;;
1301 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1302 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1303 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1305 sharedstatedir
=$ac_optarg ;;
1307 -site |
--site |
--sit)
1309 -site=* |
--site=* |
--sit=*)
1312 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1314 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1315 srcdir
=$ac_optarg ;;
1317 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1318 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1319 ac_prev
=sysconfdir
;;
1320 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1321 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1322 sysconfdir
=$ac_optarg ;;
1324 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1325 ac_prev
=target_alias
;;
1326 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1327 target_alias
=$ac_optarg ;;
1329 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1332 -version |
--version |
--versio |
--versi |
--vers |
-V)
1333 ac_init_version
=: ;;
1336 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1337 # Reject names that are not valid shell variable names.
1338 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1339 as_fn_error
"invalid package name: $ac_useropt"
1340 ac_useropt_orig
=$ac_useropt
1341 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1342 case $ac_user_opts in
1346 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1347 ac_unrecognized_sep
=', ';;
1349 eval with_
$ac_useropt=\
$ac_optarg ;;
1351 -without-* |
--without-*)
1352 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1353 # Reject names that are not valid shell variable names.
1354 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1355 as_fn_error
"invalid package name: $ac_useropt"
1356 ac_useropt_orig
=$ac_useropt
1357 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1358 case $ac_user_opts in
1362 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1363 ac_unrecognized_sep
=', ';;
1365 eval with_
$ac_useropt=no
;;
1368 # Obsolete; use --with-x.
1371 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1372 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1373 ac_prev
=x_includes
;;
1374 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1375 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1376 x_includes
=$ac_optarg ;;
1378 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1379 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1380 ac_prev
=x_libraries
;;
1381 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1382 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1383 x_libraries
=$ac_optarg ;;
1385 -*) as_fn_error
"unrecognized option: \`$ac_option'
1386 Try \`$0 --help' for more information."
1390 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1391 # Reject names that are not valid shell variable names.
1392 case $ac_envvar in #(
1393 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1394 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1396 eval $ac_envvar=\
$ac_optarg
1397 export $ac_envvar ;;
1400 # FIXME: should be removed in autoconf 3.0.
1401 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1402 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1403 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1404 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1410 if test -n "$ac_prev"; then
1411 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1412 as_fn_error
"missing argument to $ac_option"
1415 if test -n "$ac_unrecognized_opts"; then
1416 case $enable_option_checking in
1418 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1419 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1423 # Check all directory arguments for consistency.
1424 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1425 datadir sysconfdir sharedstatedir localstatedir includedir \
1426 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1427 libdir localedir mandir
1429 eval ac_val
=\$
$ac_var
1430 # Remove trailing slashes.
1433 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1434 eval $ac_var=\
$ac_val;;
1436 # Be sure to have absolute directory names.
1438 [\\/$
]* | ?
:[\\/]* ) continue;;
1439 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1441 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1444 # There might be people who depend on the old broken behavior: `$host'
1445 # used to hold the argument of --host etc.
1446 # FIXME: To remove some day.
1449 target
=$target_alias
1451 # FIXME: To remove some day.
1452 if test "x$host_alias" != x
; then
1453 if test "x$build_alias" = x
; then
1454 cross_compiling
=maybe
1455 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1456 If a cross compiler is detected then cross compile mode will be used." >&2
1457 elif test "x$build_alias" != "x$host_alias"; then
1463 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1465 test "$silent" = yes && exec 6>/dev
/null
1468 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1469 ac_ls_di
=`ls -di .` &&
1470 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1471 as_fn_error
"working directory cannot be determined"
1472 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1473 as_fn_error
"pwd does not report name of working directory"
1476 # Find the source files, if location was not specified.
1477 if test -z "$srcdir"; then
1478 ac_srcdir_defaulted
=yes
1479 # Try the directory containing this script, then the parent directory.
1480 ac_confdir
=`$as_dirname -- "$as_myself" ||
1481 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1482 X"$as_myself" : 'X\(//\)[^/]' \| \
1483 X"$as_myself" : 'X\(//\)$' \| \
1484 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1485 $as_echo X"$as_myself" |
1486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1504 if test ! -r "$srcdir/$ac_unique_file"; then
1508 ac_srcdir_defaulted
=no
1510 if test ! -r "$srcdir/$ac_unique_file"; then
1511 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1512 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1514 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1516 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1518 # When building in place, set srcdir=.
1519 if test "$ac_abs_confdir" = "$ac_pwd"; then
1522 # Remove unnecessary trailing slashes from srcdir.
1523 # Double slashes in file names in object file debugging info
1524 # mess up M-x gdb in Emacs.
1526 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1528 for ac_var
in $ac_precious_vars; do
1529 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1530 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1531 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1532 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1536 # Report the --help message.
1538 if test "$ac_init_help" = "long"; then
1539 # Omit some internal or obsolete options to make the list less imposing.
1540 # This message is too long to be a string in the A/UX 3.1 sh.
1542 \`configure' configures this package to adapt to many kinds of systems.
1544 Usage: $0 [OPTION]... [VAR=VALUE]...
1546 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1547 VAR=VALUE. See below for descriptions of some of the useful variables.
1549 Defaults for the options are specified in brackets.
1552 -h, --help display this help and exit
1553 --help=short display options specific to this package
1554 --help=recursive display the short help of all the included packages
1555 -V, --version display version information and exit
1556 -q, --quiet, --silent do not print \`checking...' messages
1557 --cache-file=FILE cache test results in FILE [disabled]
1558 -C, --config-cache alias for \`--cache-file=config.cache'
1559 -n, --no-create do not create output files
1560 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1562 Installation directories:
1563 --prefix=PREFIX install architecture-independent files in PREFIX
1564 [$ac_default_prefix]
1565 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1568 By default, \`make install' will install all the files in
1569 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1570 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1571 for instance \`--prefix=\$HOME'.
1573 For better control, use the options below.
1575 Fine tuning of the installation directories:
1576 --bindir=DIR user executables [EPREFIX/bin]
1577 --sbindir=DIR system admin executables [EPREFIX/sbin]
1578 --libexecdir=DIR program executables [EPREFIX/libexec]
1579 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1580 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1581 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1582 --libdir=DIR object code libraries [EPREFIX/lib]
1583 --includedir=DIR C header files [PREFIX/include]
1584 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1585 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1586 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1587 --infodir=DIR info documentation [DATAROOTDIR/info]
1588 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1589 --mandir=DIR man documentation [DATAROOTDIR/man]
1590 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1591 --htmldir=DIR html documentation [DOCDIR]
1592 --dvidir=DIR dvi documentation [DOCDIR]
1593 --pdfdir=DIR pdf documentation [DOCDIR]
1594 --psdir=DIR ps documentation [DOCDIR]
1600 --program-prefix=PREFIX prepend PREFIX to installed program names
1601 --program-suffix=SUFFIX append SUFFIX to installed program names
1602 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1605 --x-includes=DIR X include files are
in DIR
1606 --x-libraries=DIR X library files are
in DIR
1609 --build=BUILD configure
for building on BUILD
[guessed
]
1610 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1611 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1615 if test -n "$ac_init_help"; then
1620 --disable-option-checking ignore unrecognized
--enable/--with options
1621 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1622 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1623 --enable-maintainer-mode enable make rules and dependencies not useful
1624 (and sometimes confusing
) to the casual installer
1625 --enable-plugins Enable support
for plugins
(defaults no
)
1626 --disable-largefile omit support
for large files
1627 --disable-dependency-tracking speeds up one-time build
1628 --enable-dependency-tracking do not reject slow dependency extractors
1629 --enable-targets=TARGETS
1630 alternative target configurations
1631 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1632 --disable-gdbcli disable command-line interface
(CLI
)
1633 --disable-gdbmi disable machine-interface
(MI
)
1634 --enable-tui enable full-screen terminal user interface
(TUI
)
1635 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1636 --enable-profiling enable profiling of GDB
1637 --disable-rpath do not hardcode runtime library paths
1638 --enable-werror treat compile warnings as errors
1639 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1640 --enable-gdb-build-warnings
1641 enable GDB specific build-time compiler warnings
if
1643 --enable-sim link gdb with simulator
1644 --enable-multi-ice build the multi-ice-gdb-server
1645 --enable-gdbserver automatically build gdbserver
(yes
/no
/auto
, default
1649 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1650 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1651 --with-separate-debug-dir=PATH
1652 look for global separate debug info
in this path
1654 --with-gdb-datadir=PATH
look for global separate data files
in this path
1656 --with-relocated-sources=PATH
1657 automatically relocate this path
for source files
1658 --with-libunwind use libunwind frame unwinding support
1659 --with-curses use the curses library instead of the termcap
1661 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1662 --with-bugurl=URL Direct users to URL to report a bug
1663 --with-zlib include zlib support
(auto
/yes
/no
) default
=auto
1664 --with-libiconv-prefix=DIR
1665 search
for libiconv
in DIR
/include and DIR
/lib
1666 --with-iconv-bin=PATH specify where to
find the
iconv program
1667 --with-system-readline use installed readline library
1668 --with-expat include expat support
(auto
/yes
/no
)
1669 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1670 --with-libexpat-prefix[=DIR
] search
for libexpat
in DIR
/include and DIR
/lib
1671 --without-libexpat-prefix don
't search for libexpat in includedir and libdir
1672 --with-python[=PYTHON] include python support
1673 (auto/yes/no/<python-program>)
1674 --without-included-regex
1675 don't use included regex
; this is the default on
1676 systems with version
2 of the GNU C library
(use
1677 with caution on other system
)
1678 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1679 --with-system-gdbinit=PATH
1680 automatically load a system-wide gdbinit
file
1681 --with-tcl directory containing tcl configuration
(tclConfig.sh
)
1682 --with-tk directory containing tk configuration
(tkConfig.sh
)
1683 --with-x use the X Window System
1685 Some influential environment variables
:
1686 CC C compiler
command
1687 CFLAGS C compiler flags
1688 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1689 nonstandard directory
<lib dir
>
1690 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1691 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1692 you have headers
in a nonstandard directory
<include dir
>
1694 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1695 the first program found out of: `bison
-y', `byacc', `yacc'.
1696 YFLAGS The list of arguments that will be passed by default to $YACC.
1697 This script will default YFLAGS to the empty string to avoid a
1698 default value of `-d' given by some make applications.
1699 XMKMF Path to xmkmf, Makefile generator for X Window System
1701 Use these variables to override the choices made by `configure' or to
help
1702 it to
find libraries and programs with nonstandard names
/locations.
1704 Report bugs to the package provider.
1709 if test "$ac_init_help" = "recursive"; then
1710 # If there are subdirs, report their specific --help.
1711 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1712 test -d "$ac_dir" ||
1713 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1718 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1720 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1721 # A ".." for each directory in $ac_dir_suffix.
1722 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1723 case $ac_top_builddir_sub in
1724 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1725 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1728 ac_abs_top_builddir
=$ac_pwd
1729 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1730 # for backward compatibility:
1731 ac_top_builddir
=$ac_top_build_prefix
1734 .
) # We are building in place.
1736 ac_top_srcdir
=$ac_top_builddir_sub
1737 ac_abs_top_srcdir
=$ac_pwd ;;
1738 [\\/]* | ?
:[\\/]* ) # Absolute name.
1739 ac_srcdir
=$srcdir$ac_dir_suffix;
1740 ac_top_srcdir
=$srcdir
1741 ac_abs_top_srcdir
=$srcdir ;;
1743 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1744 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1745 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1747 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1749 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1750 # Check for guested configure.
1751 if test -f "$ac_srcdir/configure.gnu"; then
1753 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1754 elif test -f "$ac_srcdir/configure"; then
1756 $SHELL "$ac_srcdir/configure" --help=recursive
1758 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1760 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1764 test -n "$ac_init_help" && exit $ac_status
1765 if $ac_init_version; then
1768 generated by GNU Autoconf
2.64
1770 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1771 This configure
script is free software
; the Free Software Foundation
1772 gives unlimited permission to copy
, distribute and modify it.
1777 ## ------------------------ ##
1778 ## Autoconf initialization. ##
1779 ## ------------------------ ##
1781 # ac_fn_c_try_compile LINENO
1782 # --------------------------
1783 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1784 ac_fn_c_try_compile
()
1786 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1787 rm -f conftest.
$ac_objext
1788 if { { ac_try
="$ac_compile"
1790 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1791 *) ac_try_echo=$ac_try;;
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_compile") 2>conftest.err
1797 if test -s conftest.err; then
1798 grep -v '^ *+' conftest.err >conftest.er1
1799 cat conftest.er1 >&5
1800 mv -f conftest.er1 conftest.err
1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; } && {
1804 test -z "$ac_c_werror_flag" ||
1805 test ! -s conftest.err
1806 } && test -s conftest.$ac_objext; then :
1809 $as_echo "$as_me: failed program was:" >&5
1810 sed 's/^/| /' conftest.$ac_ext >&5
1814 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1817 } # ac_fn_c_try_compile
1819 # ac_fn_c_try_cpp LINENO
1820 # ----------------------
1821 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 if { { ac_try="$ac_cpp conftest.$ac_ext"
1827 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1828 *) ac_try_echo
=$ac_try;;
1830 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831 $as_echo "$ac_try_echo"; } >&5
1832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1834 if test -s conftest.err
; then
1835 grep -v '^ *+' conftest.err
>conftest.er1
1836 cat conftest.er1
>&5
1837 mv -f conftest.er1 conftest.err
1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840 test $ac_status = 0; } >/dev
/null
&& {
1841 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1842 test ! -s conftest.err
1846 $as_echo "$as_me: failed program was:" >&5
1847 sed 's/^/| /' conftest.
$ac_ext >&5
1851 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1856 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1857 # -------------------------------------------------------
1858 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1859 # the include files in INCLUDES and setting the cache variable VAR
1861 ac_fn_c_check_header_mongrel
()
1863 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1864 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1866 $as_echo_n "checking for $2... " >&6; }
1867 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1868 $as_echo_n "(cached) " >&6
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872 $as_echo "$ac_res" >&6; }
1874 # Is the header compilable?
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1876 $as_echo_n "checking $2 usability... " >&6; }
1877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1878 /* end confdefs.h. */
1882 if ac_fn_c_try_compile
"$LINENO"; then :
1883 ac_header_compiler
=yes
1885 ac_header_compiler
=no
1887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1889 $as_echo "$ac_header_compiler" >&6; }
1891 # Is the header present?
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1893 $as_echo_n "checking $2 presence... " >&6; }
1894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1895 /* end confdefs.h. */
1898 if ac_fn_c_try_cpp
"$LINENO"; then :
1899 ac_header_preproc
=yes
1901 ac_header_preproc
=no
1903 rm -f conftest.err conftest.
$ac_ext
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1905 $as_echo "$ac_header_preproc" >&6; }
1907 # So? What about this header?
1908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1911 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1913 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1917 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1919 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1921 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1923 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1925 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929 $as_echo_n "checking for $2... " >&6; }
1930 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1931 $as_echo_n "(cached) " >&6
1933 eval "$3=\$ac_header_compiler"
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937 $as_echo "$ac_res" >&6; }
1939 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1941 } # ac_fn_c_check_header_mongrel
1943 # ac_fn_c_try_run LINENO
1944 # ----------------------
1945 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1946 # that executables *can* be run.
1949 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1950 if { { ac_try
="$ac_link"
1952 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1953 *) ac_try_echo=$ac_try;;
1955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956 $as_echo "$ac_try_echo"; } >&5
1957 (eval "$ac_link") 2>&5
1959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1961 { { case "(($ac_try" in
1962 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1963 *) ac_try_echo
=$ac_try;;
1965 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1966 $as_echo "$ac_try_echo"; } >&5
1967 (eval "$ac_try") 2>&5
1969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970 test $ac_status = 0; }; }; then :
1973 $as_echo "$as_me: program exited with status $ac_status" >&5
1974 $as_echo "$as_me: failed program was:" >&5
1975 sed 's/^/| /' conftest.
$ac_ext >&5
1977 ac_retval
=$ac_status
1979 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1980 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1985 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1986 # -------------------------------------------------------
1987 # Tests whether HEADER exists and can be compiled using the include files in
1988 # INCLUDES, setting the cache variable VAR accordingly.
1989 ac_fn_c_check_header_compile
()
1991 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1993 $as_echo_n "checking for $2... " >&6; }
1994 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1995 $as_echo_n "(cached) " >&6
1997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h. */
2002 if ac_fn_c_try_compile
"$LINENO"; then :
2007 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011 $as_echo "$ac_res" >&6; }
2012 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2014 } # ac_fn_c_check_header_compile
2016 # ac_fn_c_try_link LINENO
2017 # -----------------------
2018 # Try to link conftest.$ac_ext, and return whether this succeeded.
2021 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2022 rm -f conftest.
$ac_objext conftest
$ac_exeext
2023 if { { ac_try
="$ac_link"
2025 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2026 *) ac_try_echo=$ac_try;;
2028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2029 $as_echo "$ac_try_echo"; } >&5
2030 (eval "$ac_link") 2>conftest.err
2032 if test -s conftest.err; then
2033 grep -v '^ *+' conftest.err >conftest.er1
2034 cat conftest.er1 >&5
2035 mv -f conftest.er1 conftest.err
2037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2038 test $ac_status = 0; } && {
2039 test -z "$ac_c_werror_flag" ||
2040 test ! -s conftest.err
2041 } && test -s conftest$ac_exeext && {
2042 test "$cross_compiling" = yes ||
2043 $as_test_x conftest$ac_exeext
2047 $as_echo "$as_me: failed program was:" >&5
2048 sed 's/^/| /' conftest.$ac_ext >&5
2052 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2053 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2054 # interfere with the next link command; also delete a directory that is
2055 # left behind by Apple's compiler. We do this before executing the actions.
2056 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2057 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2060 } # ac_fn_c_try_link
2062 # ac_fn_c_check_func LINENO FUNC VAR
2063 # ----------------------------------
2064 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2065 ac_fn_c_check_func ()
2067 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2069 $as_echo_n "checking for $2... " >&6; }
2070 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2071 $as_echo_n "(cached) " >&6
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2075 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2077 #define $2 innocuous_$2
2079 /* System header to define __stub macros and hopefully few prototypes,
2080 which can conflict with char $2 (); below.
2081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2082 <limits.h> exists even on freestanding compilers. */
2085 # include <limits.h>
2087 # include <assert.h>
2092 /* Override any GCC internal prototype to avoid an error.
2093 Use char because int might match the return type of a GCC
2094 builtin and then its argument prototype would still apply. */
2099 /* The GNU C library defines this for functions which it implements
2100 to always fail with ENOSYS. Some functions are actually named
2101 something starting with __ and the normal name is an alias. */
2102 #if defined __stub_$2 || defined __stub___$2
2114 if ac_fn_c_try_link "$LINENO"; then :
2119 rm -f core conftest.err conftest.$ac_objext \
2120 conftest$ac_exeext conftest.$ac_ext
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2124 $as_echo "$ac_res" >&6; }
2125 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2127 } # ac_fn_c_check_func
2129 # ac_fn_c_check_decl LINENO SYMBOL VAR
2130 # ------------------------------------
2131 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2132 ac_fn_c_check_decl ()
2134 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2135 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2136 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2138 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2139 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2140 $as_echo_n "(cached) " >&6
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2148 #ifndef $as_decl_name
2150 (void) $as_decl_use;
2152 (void) $as_decl_name;
2160 if ac_fn_c_try_compile "$LINENO"; then :
2165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2169 $as_echo "$ac_res" >&6; }
2170 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2172 } # ac_fn_c_check_decl
2174 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2175 # --------------------------------------------
2176 # Tries to find the compile-time value of EXPR in a program that includes
2177 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2179 ac_fn_c_compute_int ()
2181 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2182 if test "$cross_compiling" = yes; then
2183 # Depending upon the size, compute the lo and hi bounds.
2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2190 static int test_array [1 - 2 * !(($2) >= 0)];
2197 if ac_fn_c_try_compile "$LINENO"; then :
2200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2201 /* end confdefs.h. */
2206 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2213 if ac_fn_c_try_compile "$LINENO"; then :
2214 ac_hi=$ac_mid; break
2216 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2217 if test $ac_lo -le $ac_mid; then
2221 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h. */
2232 static int test_array [1 - 2 * !(($2) < 0)];
2239 if ac_fn_c_try_compile "$LINENO"; then :
2242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2243 /* end confdefs.h. */
2248 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2255 if ac_fn_c_try_compile "$LINENO"; then :
2256 ac_lo=$ac_mid; break
2258 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2259 if test $ac_mid -le $ac_hi; then
2263 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2273 # Binary search between lo and hi bounds.
2274 while test "x$ac_lo" != "x$ac_hi"; do
2275 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277 /* end confdefs.h. */
2282 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2289 if ac_fn_c_try_compile "$LINENO"; then :
2292 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2297 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302 /* end confdefs.h. */
2304 static long int longval () { return $2; }
2305 static unsigned long int ulongval () { return $2; }
2312 FILE *f = fopen ("conftest.val", "w");
2317 long int i = longval ();
2320 fprintf (f, "%ld", i);
2324 unsigned long int i = ulongval ();
2327 fprintf (f, "%lu", i);
2329 /* Do not output a trailing newline, as this causes \r\n confusion
2330 on some platforms. */
2331 return ferror (f) || fclose (f) != 0;
2337 if ac_fn_c_try_run "$LINENO"; then :
2338 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2343 conftest.$ac_objext conftest.beam conftest.$ac_ext
2347 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2350 } # ac_fn_c_compute_int
2352 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2353 # ----------------------------------------------------
2354 # Tries to find if the field MEMBER exists in type AGGR, after including
2355 # INCLUDES, setting cache variable VAR accordingly.
2356 ac_fn_c_check_member ()
2358 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2360 $as_echo_n "checking for $2.$3... " >&6; }
2361 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2362 $as_echo_n "(cached) " >&6
2364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2365 /* end confdefs.h. */
2377 if ac_fn_c_try_compile "$LINENO"; then :
2380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2381 /* end confdefs.h. */
2387 if (sizeof ac_aggr.$3)
2393 if ac_fn_c_try_compile "$LINENO"; then :
2398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2404 $as_echo "$ac_res" >&6; }
2405 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2407 } # ac_fn_c_check_member
2409 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2410 # -------------------------------------------
2411 # Tests whether TYPE exists after having included INCLUDES, setting cache
2412 # variable VAR accordingly.
2413 ac_fn_c_check_type ()
2415 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2417 $as_echo_n "checking for $2... " >&6; }
2418 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2419 $as_echo_n "(cached) " >&6
2422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2423 /* end confdefs.h. */
2434 if ac_fn_c_try_compile "$LINENO"; then :
2435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2436 /* end confdefs.h. */
2447 if ac_fn_c_try_compile "$LINENO"; then :
2452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2458 $as_echo "$ac_res" >&6; }
2459 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2461 } # ac_fn_c_check_type
2462 cat >config.log <<_ACEOF
2463 This file contains any messages produced by compilers while
2464 running configure, to aid debugging if configure makes a mistake.
2466 It was created by $as_me, which was
2467 generated by GNU Autoconf 2.64. Invocation command line was
2479 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2480 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2481 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2482 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2483 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2485 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2486 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2488 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2489 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2490 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2491 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2492 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2493 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2494 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502 test -z "$as_dir" && as_dir=.
2503 $as_echo "PATH: $as_dir"
2519 # Keep a trace of the command line.
2520 # Strip out --no-create and --no-recursion so they do not pile up.
2521 # Strip out --silent because we don't want to record it for future runs.
2522 # Also quote any args containing shell meta-characters.
2523 # Make two passes to allow for proper duplicate-argument suppression.
2527 ac_must_keep_next=false
2533 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2534 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2535 | -silent | --silent | --silen | --sile | --sil)
2538 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2541 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2543 as_fn_append ac_configure_args1 " '$ac_arg'"
2544 if test $ac_must_keep_next = true; then
2545 ac_must_keep_next=false # Got value, back to normal.
2548 *=* | --config-cache | -C | -disable-* | --disable-* \
2549 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2550 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2551 | -with-* | --with-* | -without-* | --without-* | --x)
2552 case "$ac_configure_args0 " in
2553 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2556 -* ) ac_must_keep_next=true ;;
2559 as_fn_append ac_configure_args " '$ac_arg'"
2564 { ac_configure_args0=; unset ac_configure_args0;}
2565 { ac_configure_args1=; unset ac_configure_args1;}
2567 # When interrupted or exit'd, cleanup temporary files, and complete
2568 # config.log. We remove comments because anyway the quotes in there
2569 # would cause problems or look ugly.
2570 # WARNING: Use '\'' to represent an apostrophe within the trap.
2571 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2572 trap 'exit_status=$?
2573 # Save into config.log some information that might help in debugging.
2578 ## ---------------- ##
2579 ## Cache variables. ##
2580 ## ---------------- ##
2583 # The following way of writing the cache mishandles newlines in values,
2585 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2586 eval ac_val=\$$ac_var
2590 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2591 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2594 _ | IFS | as_nl) ;; #(
2595 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2596 *) { eval $ac_var=; unset $ac_var;} ;;
2601 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2602 *${as_nl}ac_space=\ *)
2604 "s/'\''/'\''\\\\'\'''\''/g;
2605 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2608 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2616 ## ----------------- ##
2617 ## Output variables. ##
2618 ## ----------------- ##
2621 for ac_var in $ac_subst_vars
2623 eval ac_val=\$$ac_var
2625 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2627 $as_echo "$ac_var='\''$ac_val'\''"
2631 if test -n "$ac_subst_files"; then
2633 ## ------------------- ##
2634 ## File substitutions. ##
2635 ## ------------------- ##
2638 for ac_var in $ac_subst_files
2640 eval ac_val=\$$ac_var
2642 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2644 $as_echo "$ac_var='\''$ac_val'\''"
2649 if test -s confdefs.h; then
2659 test "$ac_signal" != 0 &&
2660 $as_echo "$as_me: caught signal $ac_signal"
2661 $as_echo "$as_me: exit $exit_status"
2663 rm -f core *.core core.conftest.* &&
2664 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2667 for ac_signal in 1 2 13 15; do
2668 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2672 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2673 rm -f -r conftest* confdefs.h
2675 $as_echo "/* confdefs.h */" > confdefs.h
2677 # Predefined preprocessor variables.
2679 cat >>confdefs.h <<_ACEOF
2680 #define PACKAGE_NAME "$PACKAGE_NAME"
2683 cat >>confdefs.h <<_ACEOF
2684 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2687 cat >>confdefs.h <<_ACEOF
2688 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2691 cat >>confdefs.h <<_ACEOF
2692 #define PACKAGE_STRING "$PACKAGE_STRING"
2695 cat >>confdefs.h <<_ACEOF
2696 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2699 cat >>confdefs.h <<_ACEOF
2700 #define PACKAGE_URL "$PACKAGE_URL"
2704 # Let the site file select an alternate cache file if it wants to.
2705 # Prefer an explicitly selected file to automatically selected ones.
2708 if test -n "$CONFIG_SITE"; then
2709 ac_site_file1=$CONFIG_SITE
2710 elif test "x$prefix" != xNONE; then
2711 ac_site_file1=$prefix/share/config.site
2712 ac_site_file2=$prefix/etc/config.site
2714 ac_site_file1=$ac_default_prefix/share/config.site
2715 ac_site_file2=$ac_default_prefix/etc/config.site
2717 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2719 test "x$ac_site_file" = xNONE && continue
2720 if test -r "$ac_site_file"; then
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2722 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2723 sed 's/^/| /' "$ac_site_file" >&5
2728 if test -r "$cache_file"; then
2729 # Some versions of bash will fail to source /dev/null (special
2730 # files actually), so we avoid doing that.
2731 if test -f "$cache_file"; then
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2733 $as_echo "$as_me: loading cache $cache_file" >&6;}
2735 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2736 *) . "./$cache_file";;
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2741 $as_echo "$as_me: creating cache $cache_file" >&6;}
2745 gl_header_list="$gl_header_list sys/mman.h"
2746 gl_func_list="$gl_func_list mprotect"
2747 gl_func_list="$gl_func_list memchr"
2748 gl_header_list="$gl_header_list stddef.h"
2749 gl_header_list="$gl_header_list stdint.h"
2750 gl_header_list="$gl_header_list wchar.h"
2751 gl_header_list="$gl_header_list string.h"
2752 # Check that the precious variables saved in the cache have kept the same
2754 ac_cache_corrupted=false
2755 for ac_var in $ac_precious_vars; do
2756 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2757 eval ac_new_set=\$ac_env_${ac_var}_set
2758 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2759 eval ac_new_val=\$ac_env_${ac_var}_value
2760 case $ac_old_set,$ac_new_set in
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2763 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2764 ac_cache_corrupted=: ;;
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2767 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2768 ac_cache_corrupted=: ;;
2771 if test "x$ac_old_val" != "x$ac_new_val"; then
2772 # differences in whitespace do not lead to failure.
2773 ac_old_val_w=`echo x
$ac_old_val`
2774 ac_new_val_w=`echo x
$ac_new_val`
2775 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2777 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2778 ac_cache_corrupted=:
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2781 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2782 eval $ac_var=\$ac_old_val
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2785 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2787 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2790 # Pass precious variables to config.status.
2791 if test "$ac_new_set" = set; then
2793 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2794 *) ac_arg=$ac_var=$ac_new_val ;;
2796 case " $ac_configure_args " in
2797 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2798 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2802 if $ac_cache_corrupted; then
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2804 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2806 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2807 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2809 ## -------------------- ##
2810 ## Main body of script. ##
2811 ## -------------------- ##
2814 ac_cpp='$CPP $CPPFLAGS'
2815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2823 ac_config_headers="$ac_config_headers config.h:config.in"
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2827 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2828 # Check whether --enable-maintainer-mode was given.
2829 if test "${enable_maintainer_mode+set}" = set; then :
2830 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2832 USE_MAINTAINER_MODE=no
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2836 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2837 if test $USE_MAINTAINER_MODE = yes; then
2838 MAINTAINER_MODE_TRUE=
2839 MAINTAINER_MODE_FALSE='#'
2841 MAINTAINER_MODE_TRUE='#'
2842 MAINTAINER_MODE_FALSE=
2845 MAINT=$MAINTAINER_MODE_TRUE
2850 ac_cpp='$CPP $CPPFLAGS'
2851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2854 if test -n "$ac_tool_prefix"; then
2855 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2856 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858 $as_echo_n "checking for $ac_word... " >&6; }
2859 if test "${ac_cv_prog_CC+set}" = set; then :
2860 $as_echo_n "(cached) " >&6
2862 if test -n "$CC"; then
2863 ac_cv_prog_CC="$CC" # Let the user override the test.
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2872 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 if test -n "$CC"; then
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2885 $as_echo "$CC" >&6; }
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888 $as_echo "no" >&6; }
2893 if test -z "$ac_cv_prog_CC"; then
2895 # Extract the first word of "gcc", so it can be a program name with args.
2896 set dummy gcc; ac_word=$2
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898 $as_echo_n "checking for $ac_word... " >&6; }
2899 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2900 $as_echo_n "(cached) " >&6
2902 if test -n "$ac_ct_CC"; then
2903 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2912 ac_cv_prog_ac_ct_CC="gcc"
2913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2923 if test -n "$ac_ct_CC"; then
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2925 $as_echo "$ac_ct_CC" >&6; }
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928 $as_echo "no" >&6; }
2931 if test "x$ac_ct_CC" = x; then
2934 case $cross_compiling:$ac_tool_warned in
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2938 ac_tool_warned=yes ;;
2946 if test -z "$CC"; then
2947 if test -n "$ac_tool_prefix"; then
2948 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2949 set dummy ${ac_tool_prefix}cc; ac_word=$2
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2951 $as_echo_n "checking for $ac_word... " >&6; }
2952 if test "${ac_cv_prog_CC+set}" = set; then :
2953 $as_echo_n "(cached) " >&6
2955 if test -n "$CC"; then
2956 ac_cv_prog_CC="$CC" # Let the user override the test.
2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 test -z "$as_dir" && as_dir=.
2963 for ac_exec_ext in '' $ac_executable_extensions; do
2964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2965 ac_cv_prog_CC="${ac_tool_prefix}cc"
2966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2976 if test -n "$CC"; then
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2978 $as_echo "$CC" >&6; }
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981 $as_echo "no" >&6; }
2987 if test -z "$CC"; then
2988 # Extract the first word of "cc", so it can be a program name with args.
2989 set dummy cc; ac_word=$2
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991 $as_echo_n "checking for $ac_word... " >&6; }
2992 if test "${ac_cv_prog_CC+set}" = set; then :
2993 $as_echo_n "(cached) " >&6
2995 if test -n "$CC"; then
2996 ac_cv_prog_CC="$CC" # Let the user override the test.
2999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3003 test -z "$as_dir" && as_dir=.
3004 for ac_exec_ext in '' $ac_executable_extensions; do
3005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3006 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3007 ac_prog_rejected=yes
3011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3018 if test $ac_prog_rejected = yes; then
3019 # We found a bogon in the path, so make sure we never use it.
3020 set dummy $ac_cv_prog_CC
3022 if test $# != 0; then
3023 # We chose a different compiler from the bogus one.
3024 # However, it has the same basename, so the bogon will be chosen
3025 # first if we set CC to just the basename; use the full file name.
3027 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3033 if test -n "$CC"; then
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3035 $as_echo "$CC" >&6; }
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3043 if test -z "$CC"; then
3044 if test -n "$ac_tool_prefix"; then
3045 for ac_prog in cl.exe
3047 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3048 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3050 $as_echo_n "checking for $ac_word... " >&6; }
3051 if test "${ac_cv_prog_CC+set}" = set; then :
3052 $as_echo_n "(cached) " >&6
3054 if test -n "$CC"; then
3055 ac_cv_prog_CC="$CC" # Let the user override the test.
3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061 test -z "$as_dir" && as_dir=.
3062 for ac_exec_ext in '' $ac_executable_extensions; do
3063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3064 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3075 if test -n "$CC"; then
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3077 $as_echo "$CC" >&6; }
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080 $as_echo "no" >&6; }
3084 test -n "$CC" && break
3087 if test -z "$CC"; then
3089 for ac_prog in cl.exe
3091 # Extract the first word of "$ac_prog", so it can be a program name with args.
3092 set dummy $ac_prog; ac_word=$2
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3094 $as_echo_n "checking for $ac_word... " >&6; }
3095 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3096 $as_echo_n "(cached) " >&6
3098 if test -n "$ac_ct_CC"; then
3099 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 test -z "$as_dir" && as_dir=.
3106 for ac_exec_ext in '' $ac_executable_extensions; do
3107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3108 ac_cv_prog_ac_ct_CC="$ac_prog"
3109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3118 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3119 if test -n "$ac_ct_CC"; then
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3121 $as_echo "$ac_ct_CC" >&6; }
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3124 $as_echo "no" >&6; }
3128 test -n "$ac_ct_CC" && break
3131 if test "x$ac_ct_CC" = x; then
3134 case $cross_compiling:$ac_tool_warned in
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3138 ac_tool_warned=yes ;;
3147 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3149 as_fn_error "no acceptable C compiler found
in \
$PATH
3150 See \
`config.log' for more details." "$LINENO" 5; }
3152 # Provide some information about the compiler.
3153 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3156 for ac_option in --version -v -V -qversion; do
3157 { { ac_try="$ac_compiler $ac_option >&5"
3159 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3160 *) ac_try_echo
=$ac_try;;
3162 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3163 $as_echo "$ac_try_echo"; } >&5
3164 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3166 if test -s conftest.err
; then
3168 ... rest of stderr output deleted ...
3169 10q' conftest.err
>conftest.er1
3170 cat conftest.er1
>&5
3171 rm -f conftest.er1 conftest.err
3173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3174 test $ac_status = 0; }
3177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3178 /* end confdefs.h. */
3188 ac_clean_files_save
=$ac_clean_files
3189 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3190 # Try to create an executable without -o first, disregard a.out.
3191 # It will help us diagnose broken compilers, and finding out an intuition
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3194 $as_echo_n "checking for C compiler default output file name... " >&6; }
3195 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3197 # The possible output files:
3198 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3201 for ac_file
in $ac_files
3204 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3205 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3210 if { { ac_try
="$ac_link_default"
3212 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3216 $as_echo "$ac_try_echo"; } >&5
3217 (eval "$ac_link_default") 2>&5
3219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3220 test $ac_status = 0; }; then :
3221 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3222 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3223 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3224 # so that the user can short-circuit this test for compilers unknown to
3226 for ac_file in $ac_files ''
3228 test -f "$ac_file" || continue
3230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3233 # We found the default executable, but exeext='' is most
3237 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3239 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3241 # We set ac_cv_exeext here because the later test for it is not
3242 # safe: cross compilers may not add the suffix if given an `-o'
3243 # argument, so we may need to know it at that point already.
3244 # Even if this section looks crufty: it has the advantage of
3251 test "$ac_cv_exeext" = no && ac_cv_exeext=
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3257 $as_echo "$ac_file" >&6; }
3258 if test -z "$ac_file"; then :
3259 $as_echo "$as_me: failed program was:" >&5
3260 sed 's
/^
/|
/' conftest.$ac_ext >&5
3262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3263 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3264 { as_fn_set_status 77
3265 as_fn_error "C compiler cannot create executables
3266 See \`config.log
' for more details." "$LINENO" 5; }; }
3268 ac_exeext=$ac_cv_exeext
3270 # Check that the compiler produces executables we can run. If not, either
3271 # the compiler is broken, or we cross compile.
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3273 $as_echo_n "checking whether the C compiler works... " >&6; }
3274 # If not cross compiling, check that we can run a simple program.
3275 if test "$cross_compiling" != yes; then
3276 if { ac_try='.
/$ac_file'
3277 { { case "(($ac_try" in
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3282 $as_echo "$ac_try_echo"; } >&5
3283 (eval "$ac_try") 2>&5
3285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3286 test $ac_status = 0; }; }; then
3289 if test "$cross_compiling" = maybe; then
3292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3293 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3294 as_fn_error "cannot run C compiled programs.
3295 If you meant to cross compile, use \`--host'.
3296 See \`config.log' for more details.
" "$LINENO" 5; }
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
3301 $as_echo "yes" >&6; }
3303 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3304 ac_clean_files=$ac_clean_files_save
3305 # Check that the compiler produces executables we can run. If not, either
3306 # the compiler is broken, or we cross compile.
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
3308 $as_echo_n "checking whether we are cross compiling...
" >&6; }
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $cross_compiling" >&5
3310 $as_echo "$cross_compiling" >&6; }
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
3313 $as_echo_n "checking
for suffix of executables...
" >&6; }
3314 if { { ac_try="$ac_link"
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3319 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3320 $as_echo "$ac_try_echo"; } >&5
3321 (eval "$ac_link") 2>&5
3323 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3324 test $ac_status = 0; }; then :
3325 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3326 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3327 # work properly (i.e., refer to `conftest.exe'), while it won't with
3329 for ac_file in conftest.exe conftest conftest.*; do
3330 test -f "$ac_file" || continue
3332 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3333 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3341 as_fn_error "cannot compute suffix of executables: cannot compile and link
3342 See \`config.log' for more details.
" "$LINENO" 5; }
3344 rm -f conftest$ac_cv_exeext
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
3346 $as_echo "$ac_cv_exeext" >&6; }
3348 rm -f conftest.$ac_ext
3349 EXEEXT=$ac_cv_exeext
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of object files
" >&5
3352 $as_echo_n "checking
for suffix of object files...
" >&6; }
3353 if test "${ac_cv_objext+set}" = set; then :
3354 $as_echo_n "(cached
) " >&6
3356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357 /* end confdefs.h. */
3367 rm -f conftest.o conftest.obj
3368 if { { ac_try="$ac_compile"
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3373 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3374 $as_echo "$ac_try_echo"; } >&5
3375 (eval "$ac_compile") 2>&5
3377 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3378 test $ac_status = 0; }; then :
3379 for ac_file in conftest.o conftest.obj conftest.*; do
3380 test -f "$ac_file" || continue;
3382 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3383 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3388 $as_echo "$as_me: failed program was
:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3391 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3393 as_fn_error "cannot compute suffix of object files: cannot compile
3394 See \`config.log' for more details.
" "$LINENO" 5; }
3396 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_objext" >&5
3399 $as_echo "$ac_cv_objext" >&6; }
3400 OBJEXT=$ac_cv_objext
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler
" >&5
3403 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3404 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3405 $as_echo_n "(cached
) " >&6
3407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408 /* end confdefs.h. */
3421 if ac_fn_c_try_compile "$LINENO"; then :
3426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3427 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_compiler_gnu" >&5
3431 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3432 if test $ac_compiler_gnu = yes; then
3437 ac_test_CFLAGS=${CFLAGS+set}
3438 ac_save_CFLAGS=$CFLAGS
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC accepts
-g" >&5
3440 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3441 if test "${ac_cv_prog_cc_g+set}" = set; then :
3442 $as_echo_n "(cached
) " >&6
3444 ac_save_c_werror_flag=$ac_c_werror_flag
3445 ac_c_werror_flag=yes
3448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449 /* end confdefs.h. */
3459 if ac_fn_c_try_compile "$LINENO"; then :
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h. */
3474 if ac_fn_c_try_compile "$LINENO"; then :
3477 ac_c_werror_flag=$ac_save_c_werror_flag
3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h. */
3490 if ac_fn_c_try_compile "$LINENO"; then :
3493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498 ac_c_werror_flag=$ac_save_c_werror_flag
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_g" >&5
3501 $as_echo "$ac_cv_prog_cc_g" >&6; }
3502 if test "$ac_test_CFLAGS" = set; then
3503 CFLAGS=$ac_save_CFLAGS
3504 elif test $ac_cv_prog_cc_g = yes; then
3505 if test "$GCC" = yes; then
3511 if test "$GCC" = yes; then
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $CC option to accept ISO C89
" >&5
3518 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3519 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3520 $as_echo_n "(cached
) " >&6
3522 ac_cv_prog_cc_c89=no
3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525 /* end confdefs.h. */
3528 #include <sys/types.h>
3529 #include <sys/stat.h>
3530 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3531 struct buf { int x; };
3532 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3533 static char *e (p, i)
3539 static char *f (char * (*g) (char **, int), char **p, ...)
3544 s = g (p, va_arg (v,int));
3549 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3550 function prototypes and stuff, but not '\xHH' hex character constants.
3551 These don't provoke an error unfortunately, instead are silently treated
3552 as 'x'. The following induces an error, until -std is added to get
3553 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3554 array size at least. It's necessary to write '\x00'==0 to get something
3555 that's true only with -std. */
3556 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3558 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3559 inside strings and character constants. */
3561 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3563 int test (int i, double x);
3564 struct s1 {int (*f) (int a);};
3565 struct s2 {int (*f) (double a);};
3566 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3572 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3577 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3578 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3580 CC="$ac_save_CC $ac_arg"
3581 if ac_fn_c_try_compile "$LINENO"; then :
3582 ac_cv_prog_cc_c89=$ac_arg
3584 rm -f core conftest.err conftest.$ac_objext
3585 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3587 rm -f conftest.$ac_ext
3592 case "x
$ac_cv_prog_cc_c89" in
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none needed
" >&5
3595 $as_echo "none needed
" >&6; } ;;
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: unsupported
" >&5
3598 $as_echo "unsupported
" >&6; } ;;
3600 CC="$CC $ac_cv_prog_cc_c89"
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_c89" >&5
3602 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3604 if test "x
$ac_cv_prog_cc_c89" != xno; then :
3609 ac_cpp='$CPP $CPPFLAGS'
3610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3615 for ac_dir in "$srcdir" "$srcdir/..
" "$srcdir/..
/..
"; do
3616 for ac_t in install-sh install.sh shtool; do
3617 if test -f "$ac_dir/$ac_t"; then
3619 ac_install_sh="$ac_aux_dir/$ac_t -c"
3624 if test -z "$ac_aux_dir"; then
3625 as_fn_error "cannot
find install-sh
, install.sh
, or shtool
in \"$srcdir\" \"$srcdir/..
\" \"$srcdir/..
/..
\"" "$LINENO" 5
3628 # These three variables are undocumented and unsupported,
3629 # and are intended to be withdrawn in a future Autoconf release.
3630 # They can cause serious problems if a builder's source tree is in a directory
3631 # whose full name contains unusual characters.
3632 ac_config_guess="$SHELL $ac_aux_dir/config.guess
" # Please don't use this var.
3633 ac_config_sub="$SHELL $ac_aux_dir/config.sub
" # Please don't use this var.
3634 ac_configure="$SHELL $ac_aux_dir/configure
" # Please don't use this var.
3637 # Make sure we can run config.sub.
3638 $SHELL "$ac_aux_dir/config.sub
" sun4 >/dev/null 2>&1 ||
3639 as_fn_error "cannot run
$SHELL $ac_aux_dir/config.sub
" "$LINENO" 5
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system
type" >&5
3642 $as_echo_n "checking build system
type...
" >&6; }
3643 if test "${ac_cv_build+set}" = set; then :
3644 $as_echo_n "(cached
) " >&6
3646 ac_build_alias=$build_alias
3647 test "x
$ac_build_alias" = x &&
3648 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess
"`
3649 test "x
$ac_build_alias" = x &&
3650 as_fn_error "cannot guess build
type; you must specify one
" "$LINENO" 5
3651 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub
" $ac_build_alias` ||
3652 as_fn_error "$SHELL $ac_aux_dir/config.sub
$ac_build_alias failed
" "$LINENO" 5
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_build" >&5
3656 $as_echo "$ac_cv_build" >&6; }
3657 case $ac_cv_build in
3659 *) as_fn_error "invalid value of canonical build
" "$LINENO" 5;;
3662 ac_save_IFS=$IFS; IFS='-'
3668 # Remember, the first character of IFS is used to create $*,
3669 # except with old shells:
3672 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
host system
type" >&5
3676 $as_echo_n "checking
host system
type...
" >&6; }
3677 if test "${ac_cv_host+set}" = set; then :
3678 $as_echo_n "(cached
) " >&6
3680 if test "x
$host_alias" = x; then
3681 ac_cv_host=$ac_cv_build
3683 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub
" $host_alias` ||
3684 as_fn_error "$SHELL $ac_aux_dir/config.sub
$host_alias failed
" "$LINENO" 5
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_host" >&5
3689 $as_echo "$ac_cv_host" >&6; }
3692 *) as_fn_error "invalid value of canonical
host" "$LINENO" 5;;
3695 ac_save_IFS=$IFS; IFS='-'
3701 # Remember, the first character of IFS is used to create $*,
3702 # except with old shells:
3705 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3710 ac_cpp='$CPP $CPPFLAGS'
3711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
3715 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3716 # On Suns, sometimes $CPP names a directory.
3717 if test -n "$CPP" && test -d "$CPP"; then
3720 if test -z "$CPP"; then
3721 if test "${ac_cv_prog_CPP+set}" = set; then :
3722 $as_echo_n "(cached
) " >&6
3724 # Double quotes because CPP needs to be expanded
3725 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3728 for ac_c_preproc_warn_flag in '' yes
3730 # Use a header file that comes with gcc, so configuring glibc
3731 # with a fresh cross-compiler works.
3732 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3733 # <limits.h> exists even on freestanding compilers.
3734 # On the NeXT, cc -E runs the code through the compiler's parser,
3735 # not just through cpp. "Syntax error
" is here to catch this case.
3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h. */
3739 # include <limits.h>
3741 # include <assert.h>
3745 if ac_fn_c_try_cpp "$LINENO"; then :
3748 # Broken: fails on valid input.
3751 rm -f conftest.err conftest.$ac_ext
3753 # OK, works on sane cases. Now check whether nonexistent headers
3754 # can be detected and how.
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3757 #include <ac_nonexistent.h>
3759 if ac_fn_c_try_cpp "$LINENO"; then :
3760 # Broken: success on invalid input.
3763 # Passes both tests.
3767 rm -f conftest.err conftest.$ac_ext
3770 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3771 rm -f conftest.err conftest.$ac_ext
3772 if $ac_preproc_ok; then :
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
3785 $as_echo "$CPP" >&6; }
3787 for ac_c_preproc_warn_flag in '' yes
3789 # Use a header file that comes with gcc, so configuring glibc
3790 # with a fresh cross-compiler works.
3791 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3792 # <limits.h> exists even on freestanding compilers.
3793 # On the NeXT, cc -E runs the code through the compiler's parser,
3794 # not just through cpp. "Syntax error
" is here to catch this case.
3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h. */
3798 # include <limits.h>
3800 # include <assert.h>
3804 if ac_fn_c_try_cpp "$LINENO"; then :
3807 # Broken: fails on valid input.
3810 rm -f conftest.err conftest.$ac_ext
3812 # OK, works on sane cases. Now check whether nonexistent headers
3813 # can be detected and how.
3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815 /* end confdefs.h. */
3816 #include <ac_nonexistent.h>
3818 if ac_fn_c_try_cpp "$LINENO"; then :
3819 # Broken: success on invalid input.
3822 # Passes both tests.
3826 rm -f conftest.err conftest.$ac_ext
3829 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3830 rm -f conftest.err conftest.$ac_ext
3831 if $ac_preproc_ok; then :
3834 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3836 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3837 See \`config.log' for more details.
" "$LINENO" 5; }
3841 ac_cpp='$CPP $CPPFLAGS'
3842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
3848 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
3849 if test "${ac_cv_path_GREP+set}" = set; then :
3850 $as_echo_n "(cached
) " >&6
3852 if test -z "$GREP"; then
3853 ac_path_GREP_found=false
3854 # Loop through the user's path and test for each of PROGNAME-LIST
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3859 test -z "$as_dir" && as_dir=.
3860 for ac_prog in grep ggrep; do
3861 for ac_exec_ext in '' $ac_executable_extensions; do
3862 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3863 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3864 # Check for GNU ac_path_GREP and select it if it is found.
3865 # Check for GNU $ac_path_GREP
3866 case `"$ac_path_GREP" --version 2>&1` in
3868 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3871 $as_echo_n 0123456789 >"conftest.
in"
3874 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3875 mv "conftest.tmp
" "conftest.
in"
3876 cp "conftest.
in" "conftest.
nl"
3877 $as_echo 'GREP' >> "conftest.
nl"
3878 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3879 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3880 as_fn_arith $ac_count + 1 && ac_count=$as_val
3881 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3882 # Best one so far, save it but keep looking for a better one
3883 ac_cv_path_GREP="$ac_path_GREP"
3884 ac_path_GREP_max=$ac_count
3886 # 10*(2^10) chars as input seems more than enough
3887 test $ac_count -gt 10 && break
3889 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3892 $ac_path_GREP_found && break 3
3897 if test -z "$ac_cv_path_GREP"; then
3898 as_fn_error "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3901 ac_cv_path_GREP=$GREP
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
3906 $as_echo "$ac_cv_path_GREP" >&6; }
3907 GREP="$ac_cv_path_GREP"
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
3911 $as_echo_n "checking
for egrep...
" >&6; }
3912 if test "${ac_cv_path_EGREP+set}" = set; then :
3913 $as_echo_n "(cached
) " >&6
3915 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3916 then ac_cv_path_EGREP="$GREP -E"
3918 if test -z "$EGREP"; then
3919 ac_path_EGREP_found=false
3920 # Loop through the user's path and test for each of PROGNAME-LIST
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3925 test -z "$as_dir" && as_dir=.
3926 for ac_prog in egrep; do
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3929 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3930 # Check for GNU ac_path_EGREP and select it if it is found.
3931 # Check for GNU $ac_path_EGREP
3932 case `"$ac_path_EGREP" --version 2>&1` in
3934 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3937 $as_echo_n 0123456789 >"conftest.
in"
3940 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3941 mv "conftest.tmp
" "conftest.
in"
3942 cp "conftest.
in" "conftest.
nl"
3943 $as_echo 'EGREP' >> "conftest.
nl"
3944 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3945 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3946 as_fn_arith $ac_count + 1 && ac_count=$as_val
3947 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3948 # Best one so far, save it but keep looking for a better one
3949 ac_cv_path_EGREP="$ac_path_EGREP"
3950 ac_path_EGREP_max=$ac_count
3952 # 10*(2^10) chars as input seems more than enough
3953 test $ac_count -gt 10 && break
3955 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3958 $ac_path_EGREP_found && break 3
3963 if test -z "$ac_cv_path_EGREP"; then
3964 as_fn_error "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3967 ac_cv_path_EGREP=$EGREP
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
3973 $as_echo "$ac_cv_path_EGREP" >&6; }
3974 EGREP="$ac_cv_path_EGREP"
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
3978 $as_echo_n "checking
for ANSI C header files...
" >&6; }
3979 if test "${ac_cv_header_stdc+set}" = set; then :
3980 $as_echo_n "(cached
) " >&6
3982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983 /* end confdefs.h. */
3997 if ac_fn_c_try_compile "$LINENO"; then :
3998 ac_cv_header_stdc=yes
4000 ac_cv_header_stdc=no
4002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4004 if test $ac_cv_header_stdc = yes; then
4005 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007 /* end confdefs.h. */
4011 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4012 $EGREP "memchr
" >/dev/null 2>&1; then :
4015 ac_cv_header_stdc=no
4021 if test $ac_cv_header_stdc = yes; then
4022 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024 /* end confdefs.h. */
4028 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4029 $EGREP "free
" >/dev/null 2>&1; then :
4032 ac_cv_header_stdc=no
4038 if test $ac_cv_header_stdc = yes; then
4039 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4040 if test "$cross_compiling" = yes; then :
4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h. */
4047 #if ((' ' & 0x0FF) == 0x020)
4048 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4049 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4051 # define ISLOWER(c) \
4052 (('a' <= (c) && (c) <= 'i') \
4053 || ('j' <= (c) && (c) <= 'r') \
4054 || ('s' <= (c) && (c) <= 'z'))
4055 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4058 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4063 for (i = 0; i < 256; i++)
4064 if (XOR (islower (i), ISLOWER (i))
4065 || toupper (i) != TOUPPER (i))
4070 if ac_fn_c_try_run "$LINENO"; then :
4073 ac_cv_header_stdc=no
4075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4076 conftest.$ac_objext conftest.beam conftest.$ac_ext
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
4082 $as_echo "$ac_cv_header_stdc" >&6; }
4083 if test $ac_cv_header_stdc = yes; then
4085 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4089 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4090 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4091 inttypes.h stdint.h unistd.h
4093 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4094 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4096 eval as_val
=\$
$as_ac_Header
4097 if test "x$as_val" = x
""yes; then :
4098 cat >>confdefs.h
<<_ACEOF
4099 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4110 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4111 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4118 if test "$MINIX" = yes; then
4120 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4123 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4126 $as_echo "#define _MINIX 1" >>confdefs.h
4133 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4140 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4141 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4142 $as_echo_n "(cached) " >&6
4144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4145 /* end confdefs.h. */
4147 # define __EXTENSIONS__ 1
4148 $ac_includes_default
4157 if ac_fn_c_try_compile
"$LINENO"; then :
4158 ac_cv_safe_to_define___extensions__
=yes
4160 ac_cv_safe_to_define___extensions__
=no
4162 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4165 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4166 test $ac_cv_safe_to_define___extensions__ = yes &&
4167 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4169 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4171 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4173 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4175 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4178 if test -n "$ac_tool_prefix"; then
4179 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4180 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4182 $as_echo_n "checking for $ac_word... " >&6; }
4183 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4184 $as_echo_n "(cached) " >&6
4186 if test -n "$RANLIB"; then
4187 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4193 test -z "$as_dir" && as_dir
=.
4194 for ac_exec_ext
in '' $ac_executable_extensions; do
4195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4196 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4206 RANLIB
=$ac_cv_prog_RANLIB
4207 if test -n "$RANLIB"; then
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4209 $as_echo "$RANLIB" >&6; }
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4212 $as_echo "no" >&6; }
4217 if test -z "$ac_cv_prog_RANLIB"; then
4218 ac_ct_RANLIB
=$RANLIB
4219 # Extract the first word of "ranlib", so it can be a program name with args.
4220 set dummy ranlib
; ac_word
=$2
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4222 $as_echo_n "checking for $ac_word... " >&6; }
4223 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4224 $as_echo_n "(cached) " >&6
4226 if test -n "$ac_ct_RANLIB"; then
4227 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4229 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4233 test -z "$as_dir" && as_dir
=.
4234 for ac_exec_ext
in '' $ac_executable_extensions; do
4235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4236 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4246 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4247 if test -n "$ac_ct_RANLIB"; then
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4249 $as_echo "$ac_ct_RANLIB" >&6; }
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4252 $as_echo "no" >&6; }
4255 if test "x$ac_ct_RANLIB" = x
; then
4258 case $cross_compiling:$ac_tool_warned in
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4262 ac_tool_warned
=yes ;;
4264 RANLIB
=$ac_ct_RANLIB
4267 RANLIB
="$ac_cv_prog_RANLIB"
4278 # Code from module arg-nonnull:
4279 # Code from module c++defs:
4280 # Code from module extensions:
4282 # Code from module include_next:
4283 # Code from module memchr:
4284 # Code from module memmem:
4285 # Code from module memmem-simple:
4286 # Code from module multiarch:
4287 # Code from module stddef:
4288 # Code from module stdint:
4289 # Code from module string:
4290 # Code from module warn-on-use:
4291 # Code from module wchar:
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4294 $as_echo_n "checking target system type... " >&6; }
4295 if test "${ac_cv_target+set}" = set; then :
4296 $as_echo_n "(cached) " >&6
4298 if test "x$target_alias" = x
; then
4299 ac_cv_target
=$ac_cv_host
4301 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4302 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4307 $as_echo "$ac_cv_target" >&6; }
4308 case $ac_cv_target in
4310 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4312 target
=$ac_cv_target
4313 ac_save_IFS
=$IFS; IFS
='-'
4319 # Remember, the first character of IFS is used to create $*,
4320 # except with old shells:
4323 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4326 # The aliases save the names the user supplied, while $host etc.
4327 # will get canonicalized.
4328 test -n "$target_alias" &&
4329 test "$program_prefix$program_suffix$program_transform_name" = \
4331 program_prefix
=${target_alias}-
4333 # The tests for host and target for $enable_largefile require
4338 # As the $enable_largefile decision depends on --enable-plugins we must set it
4339 # even in directories otherwise not depending on the $plugins option.
4342 # Check whether --enable-plugins was given.
4343 if test "${enable_plugins+set}" = set; then :
4344 enableval
=$enable_plugins; case "${enableval}" in
4345 yes |
"") plugins
=yes ;;
4356 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4357 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4358 # are mutually exclusive; and without procfs support, the bfd/ elf module
4359 # cannot provide certain routines such as elfcore_write_prpsinfo
4360 # or elfcore_write_prstatus. So unless the user explicitly requested
4361 # large-file support through the --enable-largefile switch, disable
4362 # large-file support in favor of procfs support.
4363 test "${target}" = "${host}" -a "x$plugins" = xno \
4364 && : ${enable_largefile="no"}
4368 # Check whether --enable-largefile was given.
4369 if test "${enable_largefile+set}" = set; then :
4370 enableval
=$enable_largefile;
4373 if test "$enable_largefile" != no
; then
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4376 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4377 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4378 $as_echo_n "(cached) " >&6
4380 ac_cv_sys_largefile_CC
=no
4381 if test "$GCC" != yes; then
4384 # IRIX 6.2 and later do not support large files by default,
4385 # so use the C compiler's -n32 option if that helps.
4386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4387 /* end confdefs.h. */
4388 #include <sys/types.h>
4389 /* Check that off_t can represent 2**63 - 1 correctly.
4390 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4391 since some C++ compilers masquerading as C compilers
4392 incorrectly reject 9223372036854775807. */
4393 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4394 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4395 && LARGE_OFF_T % 2147483647 == 1)
4405 if ac_fn_c_try_compile
"$LINENO"; then :
4408 rm -f core conftest.err conftest.
$ac_objext
4410 if ac_fn_c_try_compile
"$LINENO"; then :
4411 ac_cv_sys_largefile_CC
=' -n32'; break
4413 rm -f core conftest.err conftest.
$ac_objext
4417 rm -f conftest.
$ac_ext
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4421 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4422 if test "$ac_cv_sys_largefile_CC" != no
; then
4423 CC
=$CC$ac_cv_sys_largefile_CC
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4427 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4428 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4429 $as_echo_n "(cached) " >&6
4432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4433 /* end confdefs.h. */
4434 #include <sys/types.h>
4435 /* Check that off_t can represent 2**63 - 1 correctly.
4436 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4437 since some C++ compilers masquerading as C compilers
4438 incorrectly reject 9223372036854775807. */
4439 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4440 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4441 && LARGE_OFF_T % 2147483647 == 1)
4451 if ac_fn_c_try_compile
"$LINENO"; then :
4452 ac_cv_sys_file_offset_bits
=no
; break
4454 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4456 /* end confdefs.h. */
4457 #define _FILE_OFFSET_BITS 64
4458 #include <sys/types.h>
4459 /* Check that off_t can represent 2**63 - 1 correctly.
4460 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4461 since some C++ compilers masquerading as C compilers
4462 incorrectly reject 9223372036854775807. */
4463 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4464 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4465 && LARGE_OFF_T % 2147483647 == 1)
4475 if ac_fn_c_try_compile
"$LINENO"; then :
4476 ac_cv_sys_file_offset_bits
=64; break
4478 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4479 ac_cv_sys_file_offset_bits
=unknown
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4484 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4485 case $ac_cv_sys_file_offset_bits in #(
4488 cat >>confdefs.h
<<_ACEOF
4489 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4494 if test $ac_cv_sys_file_offset_bits = unknown
; then
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4496 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4497 if test "${ac_cv_sys_large_files+set}" = set; then :
4498 $as_echo_n "(cached) " >&6
4501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4502 /* end confdefs.h. */
4503 #include <sys/types.h>
4504 /* Check that off_t can represent 2**63 - 1 correctly.
4505 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4506 since some C++ compilers masquerading as C compilers
4507 incorrectly reject 9223372036854775807. */
4508 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4509 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4510 && LARGE_OFF_T % 2147483647 == 1)
4520 if ac_fn_c_try_compile
"$LINENO"; then :
4521 ac_cv_sys_large_files
=no
; break
4523 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4526 #define _LARGE_FILES 1
4527 #include <sys/types.h>
4528 /* Check that off_t can represent 2**63 - 1 correctly.
4529 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4530 since some C++ compilers masquerading as C compilers
4531 incorrectly reject 9223372036854775807. */
4532 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4533 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4534 && LARGE_OFF_T % 2147483647 == 1)
4544 if ac_fn_c_try_compile
"$LINENO"; then :
4545 ac_cv_sys_large_files
=1; break
4547 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4548 ac_cv_sys_large_files
=unknown
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4553 $as_echo "$ac_cv_sys_large_files" >&6; }
4554 case $ac_cv_sys_large_files in #(
4557 cat >>confdefs.h
<<_ACEOF
4558 #define _LARGE_FILES $ac_cv_sys_large_files
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4571 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4572 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4573 $as_echo_n "(cached) " >&6
4575 am_cv_prog_cc_stdc
=no
4577 # Don't try gcc -ansi; that turns off useful extensions and
4578 # breaks some systems' header files.
4579 # AIX -qlanglvl=ansi
4580 # Ultrix and OSF/1 -std1
4581 # HP-UX 10.20 and later -Ae
4582 # HP-UX older versions -Aa -D_HPUX_SOURCE
4583 # SVR4 -Xc -D__EXTENSIONS__
4584 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4586 CC
="$ac_save_CC $ac_arg"
4587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4588 /* end confdefs.h. */
4591 #include <sys/types.h>
4592 #include <sys/stat.h>
4593 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4594 struct buf { int x; };
4595 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4596 static char *e (p, i)
4602 static char *f (char * (*g) (char **, int), char **p, ...)
4607 s = g (p, va_arg (v,int));
4611 int test (int i, double x);
4612 struct s1 {int (*f) (int a);};
4613 struct s2 {int (*f) (double a);};
4614 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4622 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4628 if ac_fn_c_try_compile
"$LINENO"; then :
4629 am_cv_prog_cc_stdc
="$ac_arg"; break
4631 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4637 if test -z "$am_cv_prog_cc_stdc"; then
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4639 $as_echo "none needed" >&6; }
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4642 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4644 case "x$am_cv_prog_cc_stdc" in
4646 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4651 for ac_dir
in ..
"$srcdir"/..
; do
4652 for ac_t
in install-sh
install.sh shtool
; do
4653 if test -f "$ac_dir/$ac_t"; then
4655 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4660 if test -z "$ac_aux_dir"; then
4661 as_fn_error
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4664 # These three variables are undocumented and unsupported,
4665 # and are intended to be withdrawn in a future Autoconf release.
4666 # They can cause serious problems if a builder's source tree is in a directory
4667 # whose full name contains unusual characters.
4668 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4669 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4670 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4675 # Dependency checking.
4676 rm -rf .tst
2>/dev
/null
4677 mkdir .tst
2>/dev
/null
4678 if test -d .tst
; then
4683 rmdir .tst
2>/dev
/null
4685 DEPDIR
="${am__leading_dot}deps"
4687 ac_config_commands
="$ac_config_commands depdir"
4690 depcc
="$CC" am_compiler_list
=
4692 am_depcomp
=$ac_aux_dir/depcomp
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4694 $as_echo_n "checking dependency style of $depcc... " >&6; }
4695 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4696 $as_echo_n "(cached) " >&6
4698 if test -f "$am_depcomp"; then
4699 # We make a subdir and do the tests there. Otherwise we can end up
4700 # making bogus files that we don't know about and never remove. For
4701 # instance it was reported that on HP-UX the gcc test will end up
4702 # making a dummy file named `D' -- because `-MD' means `put the output
4705 # Copy depcomp to subdir because otherwise we won't find it if we're
4706 # using a relative directory.
4707 cp "$am_depcomp" conftest.dir
4709 # We will build objects and dependencies in a subdirectory because
4710 # it helps to detect inapplicable dependency modes. For instance
4711 # both Tru64's cc and ICC support -MD to output dependencies as a
4712 # side effect of compilation, but ICC will put the dependencies in
4713 # the current directory while Tru64 will put them in the object
4717 am_cv_CC_dependencies_compiler_type
=none
4718 if test "$am_compiler_list" = ""; then
4719 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4721 for depmode
in $am_compiler_list; do
4722 if test $depmode = none
; then break; fi
4724 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4725 # Setup a source with many dependencies, because some compilers
4726 # like to wrap large dependency lists on column 80 (with \), and
4727 # we should not choose a depcomp mode which is confused by this.
4729 # We need to recreate these files for each test, as the compiler may
4730 # overwrite some of them when testing with obscure command lines.
4731 # This happens at least with the AIX C compiler.
4733 for i
in 1 2 3 4 5 6; do
4734 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4735 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4736 # Solaris 8's {/usr,}/bin/sh.
4737 touch sub
/conftst
$i.h
4739 echo "include sub/conftest.Po" > confmf
4741 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4742 # mode. It turns out that the SunPro C++ compiler does not properly
4743 # handle `-M -o', and we need to detect this.
4744 depcmd
="depmode=$depmode \
4745 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4746 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4747 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4748 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
4749 if env
$depcmd > conftest.err
2>&1 &&
4750 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
4751 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
4752 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
4753 # icc doesn't choke on unknown options, it will just issue warnings
4754 # or remarks (even with -Werror). So we grep stderr for any message
4755 # that says an option was ignored or not supported.
4756 # When given -MP, icc 7.0 and 7.1 complain thusly:
4757 # icc: Command line warning: ignoring option '-M'; no argument required
4758 # The diagnosis changed in icc 8.0:
4759 # icc: Command line remark: option '-MP' not supported
4760 if (grep 'ignoring option' conftest.err ||
4761 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4762 am_cv_CC_dependencies_compiler_type
=$depmode
4763 $as_echo "$as_me:$LINENO: success" >&5
4767 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4768 sed -e 's/^/| /' < conftest.err
>&5
4774 am_cv_CC_dependencies_compiler_type
=none
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4779 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4780 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
4781 then as_fn_error
"no usable dependency style found" "$LINENO" 5
4782 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4787 # Check for the 'make' the user wants to use.
4790 # Extract the first word of "$ac_prog", so it can be a program name with args.
4791 set dummy
$ac_prog; ac_word
=$2
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4793 $as_echo_n "checking for $ac_word... " >&6; }
4794 if test "${ac_cv_prog_MAKE+set}" = set; then :
4795 $as_echo_n "(cached) " >&6
4797 if test -n "$MAKE"; then
4798 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
4800 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4804 test -z "$as_dir" && as_dir
=.
4805 for ac_exec_ext
in '' $ac_executable_extensions; do
4806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4807 ac_cv_prog_MAKE
="$ac_prog"
4808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4817 MAKE
=$ac_cv_prog_MAKE
4818 if test -n "$MAKE"; then
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4820 $as_echo "$MAKE" >&6; }
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4823 $as_echo "no" >&6; }
4827 test -n "$MAKE" && break
4831 case "`$MAKE --version 2>&1 | sed 1q`" in
4836 if test "$MAKE_IS_GNU" = yes; then
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4845 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4847 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4848 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4849 $as_echo_n "(cached) " >&6
4851 cat >conftest.
make <<\_ACEOF
4854 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4856 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4857 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4859 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4861 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4865 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4867 $as_echo "yes" >&6; }
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4871 $as_echo "no" >&6; }
4872 SET_MAKE
="MAKE=${MAKE-make}"
4887 # If we haven't got the data from the intl directory,
4888 # assume NLS is disabled.
4897 if test -f ..
/intl
/config.intl
; then
4898 . ..
/intl
/config.intl
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4901 $as_echo_n "checking whether NLS is requested... " >&6; }
4902 if test x
"$USE_NLS" != xyes
; then
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4904 $as_echo "no" >&6; }
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4907 $as_echo "yes" >&6; }
4909 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4913 $as_echo_n "checking for catalogs to be installed... " >&6; }
4914 # Look for .po and .gmo files in the source directory.
4917 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
4918 # If there aren't any .gmo files the shell will give us the
4919 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4921 case "$cat" in *\
**)
4924 # The quadruple backslash is collapsed to a double backslash
4925 # by the backticks, then collapsed again by the double quotes,
4926 # leaving us with one backslash in the sed expression (right
4927 # before the dot that mustn't act as a wildcard).
4928 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4929 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
4930 # The user is allowed to set LINGUAS to a list of languages to
4931 # install catalogs for. If it's empty that means "all of them."
4932 if test "x$LINGUAS" = x
; then
4933 CATALOGS
="$CATALOGS $cat"
4934 XLINGUAS
="$XLINGUAS $lang"
4936 case "$LINGUAS" in *$lang*)
4937 CATALOGS
="$CATALOGS $cat"
4938 XLINGUAS
="$XLINGUAS $lang"
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4945 $as_echo "$LINGUAS" >&6; }
4958 localedir
='${datadir}/locale'
4961 if test x
"$USE_NLS" = xyes
; then
4962 CONFIG_ALL
="$CONFIG_ALL all-po"
4963 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
4964 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
4965 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
4972 LIBC_FATAL_STDERR_
=1
4973 export LIBC_FATAL_STDERR_
4979 for ac_header
in $gl_header_list
4981 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4982 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4983 eval as_val
=\$
$as_ac_Header
4984 if test "x$as_val" = x
""yes; then :
4985 cat >>confdefs.h
<<_ACEOF
4986 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5001 for ac_func
in $gl_func_list
5003 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5004 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5005 eval as_val
=\$
$as_ac_var
5006 if test "x$as_val" = x
""yes; then :
5007 cat >>confdefs.h
<<_ACEOF
5008 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5034 GNULIB_STRCASESTR
=0;
5041 GNULIB_MBSCASECMP
=0;
5042 GNULIB_MBSNCASECMP
=0;
5043 GNULIB_MBSPCASECMP
=0;
5044 GNULIB_MBSCASESTR
=0;
5052 GNULIB_STRVERSCMP
=0;
5057 HAVE_DECL_MEMRCHR
=1;
5063 HAVE_DECL_STRNDUP
=1;
5064 HAVE_DECL_STRNLEN
=1;
5068 HAVE_DECL_STRTOK_R
=1;
5069 HAVE_DECL_STRSIGNAL
=1;
5076 REPLACE_STRCASESTR
=0;
5081 REPLACE_STRSIGNAL
=0;
5083 UNDEFINE_STRTOK_R
=0;
5097 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
5098 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
5099 # irrelevant for anonymous mappings.
5100 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
5101 if test "x$ac_cv_func_mmap" = x
""yes; then :
5108 # Try to allow MAP_ANONYMOUS.
5109 gl_have_mmap_anonymous
=no
5110 if test $gl_have_mmap = yes; then
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
5112 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
5113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5114 /* end confdefs.h. */
5116 #include <sys/mman.h>
5117 #ifdef MAP_ANONYMOUS
5118 I cant identify this map.
5122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5123 $EGREP "I cant identify this map." >/dev
/null
2>&1; then :
5124 gl_have_mmap_anonymous
=yes
5128 if test $gl_have_mmap_anonymous != yes; then
5129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5130 /* end confdefs.h. */
5132 #include <sys/mman.h>
5134 I cant identify this map.
5138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5139 $EGREP "I cant identify this map." >/dev
/null
2>&1; then :
5141 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
5143 gl_have_mmap_anonymous
=yes
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
5149 $as_echo "$gl_have_mmap_anonymous" >&6; }
5150 if test $gl_have_mmap_anonymous = yes; then
5152 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
5180 if test $ac_cv_func_memchr = yes; then
5181 # Detect platform-specific bugs in some versions of glibc:
5182 # memchr should not dereference anything with length 0
5183 # http://bugzilla.redhat.com/499689
5184 # memchr should not dereference overestimated length after a match
5185 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
5186 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
5187 # Assume that memchr works on platforms that lack mprotect.
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
5189 $as_echo_n "checking whether memchr works... " >&6; }
5190 if test "${gl_cv_func_memchr_works+set}" = set; then :
5191 $as_echo_n "(cached) " >&6
5193 if test "$cross_compiling" = yes; then :
5194 gl_cv_func_memchr_works
="guessing no"
5196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5202 # include <unistd.h>
5203 # include <sys/types.h>
5204 # include <sys/mman.h>
5215 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
5216 # if HAVE_MAP_ANONYMOUS
5217 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
5219 # else /* !HAVE_MAP_ANONYMOUS */
5220 const int flags = MAP_FILE | MAP_PRIVATE;
5221 int fd = open ("/dev/zero", O_RDONLY, 0666);
5225 int pagesize = getpagesize ();
5227 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
5229 if (two_pages != (char *)(-1)
5230 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
5231 fence = two_pages + pagesize;
5236 if (memchr (fence, 0, 0))
5238 strcpy (fence - 9, "12345678");
5239 if (memchr (fence - 9, 0, 79) != fence - 1)
5248 if ac_fn_c_try_run
"$LINENO"; then :
5249 gl_cv_func_memchr_works
=yes
5251 gl_cv_func_memchr_works
=no
5253 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5254 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
5259 $as_echo "$gl_cv_func_memchr_works" >&6; }
5260 if test "$gl_cv_func_memchr_works" != yes; then
5266 if test $HAVE_MEMCHR = 0 ||
test $REPLACE_MEMCHR = 1; then
5275 gl_LIBOBJS
="$gl_LIBOBJS memchr.$ac_objext"
5278 for ac_header
in bp-sym.h
5280 ac_fn_c_check_header_mongrel
"$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
5281 if test "x$ac_cv_header_bp_sym_h" = x
""yes; then :
5282 cat >>confdefs.h
<<_ACEOF
5283 #define HAVE_BP_SYM_H 1
5294 ac_fn_c_check_decl
"$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
5295 if test "x$ac_cv_have_decl_memmem" = x
""yes; then :
5301 cat >>confdefs.h
<<_ACEOF
5302 #define HAVE_DECL_MEMMEM $ac_have_decl
5318 for ac_func
in memmem
5320 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
5321 if test "x$ac_cv_func_memmem" = x
""yes; then :
5322 cat >>confdefs.h
<<_ACEOF
5323 #define HAVE_MEMMEM 1
5328 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
5341 if test $ac_cv_have_decl_memmem = no
; then
5347 gl_cv_c_multiarch
=no
5348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5349 /* end confdefs.h. */
5350 #ifndef __APPLE_CC__
5351 not a universal capable compiler
5356 if ac_fn_c_try_compile
"$LINENO"; then :
5360 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
5361 if test -n "$prev"; then
5363 i?
86 | x86_64 | ppc | ppc64
)
5364 if test -z "$arch" ||
test "$arch" = "$word"; then
5367 gl_cv_c_multiarch
=yes
5373 if test "x$word" = "x-arch"; then
5380 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5381 if test $gl_cv_c_multiarch = yes; then
5383 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5385 APPLE_UNIVERSAL_BUILD
=1
5387 APPLE_UNIVERSAL_BUILD
=0
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
5398 $as_echo_n "checking for wchar_t... " >&6; }
5399 if test "${gt_cv_c_wchar_t+set}" = set; then :
5400 $as_echo_n "(cached) " >&6
5402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h. */
5405 wchar_t foo = (wchar_t)'\0';
5414 if ac_fn_c_try_compile
"$LINENO"; then :
5419 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
5422 $as_echo "$gt_cv_c_wchar_t" >&6; }
5423 if test $gt_cv_c_wchar_t = yes; then
5425 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5432 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5433 if test "${gl_cv_have_include_next+set}" = set; then :
5434 $as_echo_n "(cached) " >&6
5436 rm -rf conftestd1a conftestd1b conftestd2
5437 mkdir conftestd1a conftestd1b conftestd2
5438 cat <<EOF > conftestd1a/conftest.h
5439 #define DEFINED_IN_CONFTESTD1
5440 #include_next <conftest.h>
5441 #ifdef DEFINED_IN_CONFTESTD2
5444 #error "include_next doesn't work"
5447 cat <<EOF > conftestd1b/conftest.h
5448 #define DEFINED_IN_CONFTESTD1
5450 #include_next <conftest.h>
5451 #ifdef DEFINED_IN_CONFTESTD2
5454 #error "include_next doesn't work"
5457 cat <<EOF > conftestd2/conftest.h
5458 #ifndef DEFINED_IN_CONFTESTD1
5459 #error "include_next test doesn't work"
5461 #define DEFINED_IN_CONFTESTD2
5463 gl_save_CPPFLAGS
="$CPPFLAGS"
5464 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5466 /* end confdefs.h. */
5467 #include <conftest.h>
5469 if ac_fn_c_try_compile
"$LINENO"; then :
5470 gl_cv_have_include_next
=yes
5472 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5474 /* end confdefs.h. */
5475 #include <conftest.h>
5477 if ac_fn_c_try_compile
"$LINENO"; then :
5478 gl_cv_have_include_next
=buggy
5480 gl_cv_have_include_next
=no
5482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5485 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5486 CPPFLAGS
="$gl_save_CPPFLAGS"
5487 rm -rf conftestd1a conftestd1b conftestd2
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5491 $as_echo "$gl_cv_have_include_next" >&6; }
5492 PRAGMA_SYSTEM_HEADER
=
5493 if test $gl_cv_have_include_next = yes; then
5494 INCLUDE_NEXT
=include_next
5495 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
5496 if test -n "$GCC"; then
5497 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
5500 if test $gl_cv_have_include_next = buggy
; then
5501 INCLUDE_NEXT
=include
5502 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
5504 INCLUDE_NEXT
=include
5505 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5519 $as_echo_n "checking for long long int... " >&6; }
5520 if test "${ac_cv_type_long_long_int+set}" = set; then :
5521 $as_echo_n "(cached) " >&6
5523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5524 /* end confdefs.h. */
5526 /* For now, do not test the preprocessor; as of 2007 there are too many
5527 implementations with broken preprocessors. Perhaps this can
5528 be revisited in 2012. In the meantime, code should not expect
5529 #if to work with literals wider than 32 bits. */
5530 /* Test literals. */
5531 long long int ll = 9223372036854775807ll;
5532 long long int nll = -9223372036854775807LL;
5533 unsigned long long int ull = 18446744073709551615ULL;
5534 /* Test constant expressions. */
5535 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5537 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5543 /* Test availability of runtime routines for shift and division. */
5544 long long int llmax = 9223372036854775807ll;
5545 unsigned long long int ullmax = 18446744073709551615ull;
5546 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5547 | (llmax / ll) | (llmax % ll)
5548 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5549 | (ullmax / ull) | (ullmax % ull));
5555 if ac_fn_c_try_link
"$LINENO"; then :
5556 if test "$cross_compiling" = yes; then :
5557 ac_cv_type_long_long_int
=yes
5559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5560 /* end confdefs.h. */
5564 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5565 # define LLONG_MAX (HALF - 1 + HALF)
5570 long long int n = 1;
5574 long long int m = n << i;
5577 if (LLONG_MAX / 2 < m)
5585 if ac_fn_c_try_run
"$LINENO"; then :
5586 ac_cv_type_long_long_int
=yes
5588 ac_cv_type_long_long_int
=no
5590 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5591 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5595 ac_cv_type_long_long_int
=no
5597 rm -f core conftest.err conftest.
$ac_objext \
5598 conftest
$ac_exeext conftest.
$ac_ext
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5601 $as_echo "$ac_cv_type_long_long_int" >&6; }
5602 if test $ac_cv_type_long_long_int = yes; then
5604 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5610 $as_echo_n "checking for unsigned long long int... " >&6; }
5611 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5612 $as_echo_n "(cached) " >&6
5614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5615 /* end confdefs.h. */
5617 /* For now, do not test the preprocessor; as of 2007 there are too many
5618 implementations with broken preprocessors. Perhaps this can
5619 be revisited in 2012. In the meantime, code should not expect
5620 #if to work with literals wider than 32 bits. */
5621 /* Test literals. */
5622 long long int ll = 9223372036854775807ll;
5623 long long int nll = -9223372036854775807LL;
5624 unsigned long long int ull = 18446744073709551615ULL;
5625 /* Test constant expressions. */
5626 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5628 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5634 /* Test availability of runtime routines for shift and division. */
5635 long long int llmax = 9223372036854775807ll;
5636 unsigned long long int ullmax = 18446744073709551615ull;
5637 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5638 | (llmax / ll) | (llmax % ll)
5639 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5640 | (ullmax / ull) | (ullmax % ull));
5646 if ac_fn_c_try_link
"$LINENO"; then :
5647 ac_cv_type_unsigned_long_long_int
=yes
5649 ac_cv_type_unsigned_long_long_int
=no
5651 rm -f core conftest.err conftest.
$ac_objext \
5652 conftest
$ac_exeext conftest.
$ac_ext
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5655 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5656 if test $ac_cv_type_unsigned_long_long_int = yes; then
5658 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
5673 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
5674 if test "${ac_cv_c_restrict+set}" = set; then :
5675 $as_echo_n "(cached) " >&6
5678 # The order here caters to the fact that C++ does not require restrict.
5679 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
5680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5681 /* end confdefs.h. */
5682 typedef int * int_ptr;
5683 int foo (int_ptr $ac_kw ip) {
5697 if ac_fn_c_try_compile
"$LINENO"; then :
5698 ac_cv_c_restrict
=$ac_kw
5700 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5701 test "$ac_cv_c_restrict" != no
&& break
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5706 $as_echo "$ac_cv_c_restrict" >&6; }
5708 case $ac_cv_c_restrict in
5710 no
) $as_echo "#define restrict /**/" >>confdefs.h
5712 *) cat >>confdefs.h
<<_ACEOF
5713 #define restrict $ac_cv_c_restrict
5738 if test $gl_cv_have_include_next = yes; then
5739 gl_cv_next_string_h
='<'string.h
'>'
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
5742 $as_echo_n "checking absolute name of <string.h>... " >&6; }
5743 if test "${gl_cv_next_string_h+set}" = set; then :
5744 $as_echo_n "(cached) " >&6
5747 if test $ac_cv_header_string_h = yes; then
5748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5749 /* end confdefs.h. */
5754 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
5755 *) gl_absname_cpp
="$ac_cpp" ;;
5757 gl_cv_next_string_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5758 sed -n '\#/string.h#{
5759 s#.*"\(.*/string.h\)".*#\1#
5765 gl_cv_next_string_h
='<'string.h
'>'
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
5770 $as_echo "$gl_cv_next_string_h" >&6; }
5772 NEXT_STRING_H
=$gl_cv_next_string_h
5774 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
5775 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5776 gl_next_as_first_directive
='<'string.h
'>'
5778 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5779 gl_next_as_first_directive
=$gl_cv_next_string_h
5781 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
5787 for gl_func
in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp
; do
5788 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
5790 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
5791 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
5792 $as_echo_n "(cached) " >&6
5794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5795 /* end confdefs.h. */
5807 if ac_fn_c_try_compile
"$LINENO"; then :
5808 eval "$as_gl_Symbol=yes"
5810 eval "$as_gl_Symbol=no"
5812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5814 eval ac_res
=\$
$as_gl_Symbol
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5816 $as_echo "$ac_res" >&6; }
5817 eval as_val
=\$
$as_gl_Symbol
5818 if test "x$as_val" = x
""yes; then :
5819 cat >>confdefs.h
<<_ACEOF
5820 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
5823 eval ac_cv_have_decl_
$gl_func=yes
5835 GNULIB_MBSNRTOWCS
=0;
5838 GNULIB_WCSNRTOMBS
=0;
5850 HAVE_DECL_WCWIDTH
=1;
5851 REPLACE_MBSTATE_T
=0;
5857 REPLACE_MBSRTOWCS
=0;
5858 REPLACE_MBSNRTOWCS
=0;
5860 REPLACE_WCSRTOMBS
=0;
5861 REPLACE_WCSNRTOMBS
=0;
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
5866 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
5867 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
5868 $as_echo_n "(cached) " >&6
5870 gl_cv_header_wchar_h_correct_inline
=yes
5871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5872 /* end confdefs.h. */
5874 #define wcstod renamed_wcstod
5876 extern int zero (void);
5877 int main () { return zero(); }
5880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5881 (eval $ac_compile) 2>&5
5883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5884 test $ac_status = 0; }; then
5885 mv conftest.
$ac_objext conftest1.
$ac_objext
5886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5887 /* end confdefs.h. */
5889 #define wcstod renamed_wcstod
5891 int zero (void) { return 0; }
5894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5895 (eval $ac_compile) 2>&5
5897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5898 test $ac_status = 0; }; then
5899 mv conftest.
$ac_objext conftest2.
$ac_objext
5900 if $CC -o conftest
$ac_exeext $CFLAGS $LDFLAGS conftest1.
$ac_objext conftest2.
$ac_objext $LIBS >&5 2>&1; then
5903 gl_cv_header_wchar_h_correct_inline
=no
5907 rm -f conftest1.
$ac_objext conftest2.
$ac_objext conftest
$ac_exeext
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
5911 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
5912 if test $gl_cv_header_wchar_h_correct_inline = no
; then
5913 as_fn_error
"<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
5914 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
5915 C99 mode. You have four options:
5916 - Add the flag -fgnu89-inline to CC and reconfigure, or
5917 - Fix your include files, using parts of
5918 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
5919 - Use a gcc version older than 4.3, or
5920 - Don't use the flags -std=c99 or -std=gnu99.
5921 Configuration aborted." "$LINENO" 5
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
5926 $as_echo_n "checking for wint_t... " >&6; }
5927 if test "${gt_cv_c_wint_t+set}" = set; then :
5928 $as_echo_n "(cached) " >&6
5930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5931 /* end confdefs.h. */
5933 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5935 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
5936 before <wchar.h>. */
5941 wint_t foo = (wchar_t)'\0';
5950 if ac_fn_c_try_compile
"$LINENO"; then :
5955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
5958 $as_echo "$gt_cv_c_wint_t" >&6; }
5959 if test $gt_cv_c_wint_t = yes; then
5961 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
5967 GL_COND_LIBTOOL_TRUE
=
5968 GL_COND_LIBTOOL_FALSE
='#'
5970 GL_COND_LIBTOOL_TRUE
='#'
5971 GL_COND_LIBTOOL_FALSE
=
5974 gl_cond_libtool
=false
5977 gl_m4_base
='gnulib/m4'
5987 gl_source_base
='gnulib'
5988 # Code from module arg-nonnull:
5989 # Code from module c++defs:
5990 # Code from module extensions:
5991 # Code from module include_next:
5992 # Code from module memchr:
6001 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
6005 # Code from module memmem:
6008 if test $ac_cv_have_decl_memmem = yes; then
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
6010 $as_echo_n "checking whether memmem works in linear time... " >&6; }
6011 if test "${gl_cv_func_memmem_works+set}" = set; then :
6012 $as_echo_n "(cached) " >&6
6014 if test "$cross_compiling" = yes; then :
6015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6016 /* end confdefs.h. */
6018 #include <features.h>
6019 #ifdef __GNU_LIBRARY__
6020 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)
6025 #include <cygwin/version.h>
6026 #if CYGWIN_VERSION_DLL_MAJOR >= 1007
6032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6033 $EGREP "Lucky user" >/dev
/null
2>&1; then :
6034 gl_cv_func_memmem_works
=yes
6036 gl_cv_func_memmem_works
="guessing no"
6042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6043 /* end confdefs.h. */
6045 #include <signal.h> /* for signal */
6046 #include <string.h> /* for memmem */
6047 #include <stdlib.h> /* for malloc */
6048 #include <unistd.h> /* for alarm */
6054 char *haystack = (char *) malloc (2 * m + 1);
6055 char *needle = (char *) malloc (m + 1);
6057 /* Failure to compile this test due to missing alarm is okay,
6058 since all such platforms (mingw) also lack memmem. */
6059 signal (SIGALRM, SIG_DFL);
6061 /* Check for quadratic performance. */
6062 if (haystack && needle)
6064 memset (haystack, 'A', 2 * m);
6065 haystack[2 * m] = 'B';
6066 memset (needle, 'A', m);
6068 result = memmem (haystack, 2 * m + 1, needle, m + 1);
6070 /* Check for empty needle behavior. */
6071 return !result || !memmem ("a", 1, 0, 0);
6076 if ac_fn_c_try_run
"$LINENO"; then :
6077 gl_cv_func_memmem_works
=yes
6079 gl_cv_func_memmem_works
=no
6081 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6082 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works" >&5
6088 $as_echo "$gl_cv_func_memmem_works" >&6; }
6089 if test "$gl_cv_func_memmem_works" != yes; then
6099 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
6104 # Code from module memmem-simple:
6117 for ac_func
in memmem
6119 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
6120 if test "x$ac_cv_func_memmem" = x
""yes; then :
6121 cat >>confdefs.h
<<_ACEOF
6122 #define HAVE_MEMMEM 1
6127 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
6140 if test $ac_cv_have_decl_memmem = no
; then
6152 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
6156 # Code from module multiarch:
6158 # Code from module stddef:
6162 if test $gt_cv_c_wchar_t = no
; then
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
6167 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
6168 if test "${gl_cv_decl_null_works+set}" = set; then :
6169 $as_echo_n "(cached) " >&6
6171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6172 /* end confdefs.h. */
6174 int test[2 * (sizeof NULL == sizeof (void *)) -1];
6184 if ac_fn_c_try_compile
"$LINENO"; then :
6185 gl_cv_decl_null_works
=yes
6187 gl_cv_decl_null_works
=no
6189 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
6192 $as_echo "$gl_cv_decl_null_works" >&6; }
6193 if test $gl_cv_decl_null_works = no
; then
6197 if test -n "$STDDEF_H"; then
6210 if test $gl_cv_have_include_next = yes; then
6211 gl_cv_next_stddef_h
='<'stddef.h
'>'
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
6214 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
6215 if test "${gl_cv_next_stddef_h+set}" = set; then :
6216 $as_echo_n "(cached) " >&6
6219 if test $ac_cv_header_stddef_h = yes; then
6220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6221 /* end confdefs.h. */
6226 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
6227 *) gl_absname_cpp
="$ac_cpp" ;;
6229 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6230 sed -n '\#/stddef.h#{
6231 s#.*"\(.*/stddef.h\)".*#\1#
6237 gl_cv_next_stddef_h
='<'stddef.h
'>'
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
6242 $as_echo "$gl_cv_next_stddef_h" >&6; }
6244 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
6246 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
6247 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6248 gl_next_as_first_directive
='<'stddef.h
'>'
6250 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6251 gl_next_as_first_directive
=$gl_cv_next_stddef_h
6253 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
6259 # Code from module stdint:
6263 if test $ac_cv_type_long_long_int = yes; then
6264 HAVE_LONG_LONG_INT
=1
6266 HAVE_LONG_LONG_INT
=0
6270 if test $ac_cv_type_unsigned_long_long_int = yes; then
6271 HAVE_UNSIGNED_LONG_LONG_INT
=1
6273 HAVE_UNSIGNED_LONG_LONG_INT
=0
6277 if test $ac_cv_header_inttypes_h = yes; then
6284 if test $ac_cv_header_sys_types_h = yes; then
6303 if test $gl_cv_have_include_next = yes; then
6304 gl_cv_next_stdint_h
='<'stdint.h
'>'
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6307 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6308 if test "${gl_cv_next_stdint_h+set}" = set; then :
6309 $as_echo_n "(cached) " >&6
6312 if test $ac_cv_header_stdint_h = yes; then
6313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6314 /* end confdefs.h. */
6319 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
6320 *) gl_absname_cpp
="$ac_cpp" ;;
6322 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6323 sed -n '\#/stdint.h#{
6324 s#.*"\(.*/stdint.h\)".*#\1#
6330 gl_cv_next_stdint_h
='<'stdint.h
'>'
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6335 $as_echo "$gl_cv_next_stdint_h" >&6; }
6337 NEXT_STDINT_H
=$gl_cv_next_stdint_h
6339 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
6340 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6341 gl_next_as_first_directive
='<'stdint.h
'>'
6343 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6344 gl_next_as_first_directive
=$gl_cv_next_stdint_h
6346 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
6350 if test $ac_cv_header_stdint_h = yes; then
6357 if test $ac_cv_header_stdint_h = yes; then
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
6359 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
6360 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
6361 $as_echo_n "(cached) " >&6
6363 gl_cv_header_working_stdint_h
=no
6364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6365 /* end confdefs.h. */
6368 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6369 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6370 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6372 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
6373 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
6374 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
6378 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6379 included before <wchar.h>. */
6390 int8_t a1 = INT8_MAX;
6391 int8_t a1min = INT8_MIN;
6394 int16_t a2 = INT16_MAX;
6395 int16_t a2min = INT16_MIN;
6398 int32_t a3 = INT32_MAX;
6399 int32_t a3min = INT32_MIN;
6402 int64_t a4 = INT64_MAX;
6403 int64_t a4min = INT64_MIN;
6406 uint8_t b1 = UINT8_MAX;
6408 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
6411 uint16_t b2 = UINT16_MAX;
6414 uint32_t b3 = UINT32_MAX;
6417 uint64_t b4 = UINT64_MAX;
6419 int_least8_t c1 = INT8_C (0x7f);
6420 int_least8_t c1max = INT_LEAST8_MAX;
6421 int_least8_t c1min = INT_LEAST8_MIN;
6422 int_least16_t c2 = INT16_C (0x7fff);
6423 int_least16_t c2max = INT_LEAST16_MAX;
6424 int_least16_t c2min = INT_LEAST16_MIN;
6425 int_least32_t c3 = INT32_C (0x7fffffff);
6426 int_least32_t c3max = INT_LEAST32_MAX;
6427 int_least32_t c3min = INT_LEAST32_MIN;
6428 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
6429 int_least64_t c4max = INT_LEAST64_MAX;
6430 int_least64_t c4min = INT_LEAST64_MIN;
6431 uint_least8_t d1 = UINT8_C (0xff);
6432 uint_least8_t d1max = UINT_LEAST8_MAX;
6433 uint_least16_t d2 = UINT16_C (0xffff);
6434 uint_least16_t d2max = UINT_LEAST16_MAX;
6435 uint_least32_t d3 = UINT32_C (0xffffffff);
6436 uint_least32_t d3max = UINT_LEAST32_MAX;
6437 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
6438 uint_least64_t d4max = UINT_LEAST64_MAX;
6439 int_fast8_t e1 = INT_FAST8_MAX;
6440 int_fast8_t e1min = INT_FAST8_MIN;
6441 int_fast16_t e2 = INT_FAST16_MAX;
6442 int_fast16_t e2min = INT_FAST16_MIN;
6443 int_fast32_t e3 = INT_FAST32_MAX;
6444 int_fast32_t e3min = INT_FAST32_MIN;
6445 int_fast64_t e4 = INT_FAST64_MAX;
6446 int_fast64_t e4min = INT_FAST64_MIN;
6447 uint_fast8_t f1 = UINT_FAST8_MAX;
6448 uint_fast16_t f2 = UINT_FAST16_MAX;
6449 uint_fast32_t f3 = UINT_FAST32_MAX;
6450 uint_fast64_t f4 = UINT_FAST64_MAX;
6452 intptr_t g = INTPTR_MAX;
6453 intptr_t gmin = INTPTR_MIN;
6456 uintptr_t h = UINTPTR_MAX;
6458 intmax_t i = INTMAX_MAX;
6459 uintmax_t j = UINTMAX_MAX;
6461 #include <limits.h> /* for CHAR_BIT */
6462 #define TYPE_MINIMUM(t) \
6463 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
6464 #define TYPE_MAXIMUM(t) \
6465 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
6468 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
6469 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
6471 /* Detect bug in FreeBSD 6.0 / ia64. */
6472 int check_SIG_ATOMIC:
6473 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
6474 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
6476 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
6478 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
6479 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
6481 /* Detect bug in mingw. */
6483 WINT_MIN == TYPE_MINIMUM (wint_t)
6484 && WINT_MAX == TYPE_MAXIMUM (wint_t)
6487 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
6489 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
6491 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
6493 /* Detect bugs in OpenBSD 3.9 stdint.h. */
6495 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
6498 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
6501 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
6504 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
6506 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
6507 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
6508 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
6509 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
6510 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
6511 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
6512 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
6513 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
6514 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
6515 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
6516 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
6527 if ac_fn_c_try_compile
"$LINENO"; then :
6528 if test "$cross_compiling" = yes; then :
6529 gl_cv_header_working_stdint_h
=yes
6532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6533 /* end confdefs.h. */
6536 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6537 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6538 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6542 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6543 included before <wchar.h>. */
6555 #define MVAL(macro) MVAL1(macro)
6556 #define MVAL1(expression) #expression
6557 static const char *macro_values[] =
6591 for (mv = macro_values; *mv != NULL; mv++)
6593 const char *value = *mv;
6594 /* Test whether it looks like a cast expression. */
6595 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
6596 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
6597 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
6598 || strncmp (value, "((int)"/*)*/, 6) == 0
6599 || strncmp (value, "((signed short)"/*)*/, 15) == 0
6600 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
6609 if ac_fn_c_try_run
"$LINENO"; then :
6610 gl_cv_header_working_stdint_h
=yes
6612 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6613 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
6622 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
6624 if test "$gl_cv_header_working_stdint_h" = yes; then
6627 for ac_header
in sys
/inttypes.h sys
/bitypes.h
6629 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6630 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6631 eval as_val
=\$
$as_ac_Header
6632 if test "x$as_val" = x
""yes; then :
6633 cat >>confdefs.h
<<_ACEOF
6634 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6641 if test $ac_cv_header_sys_inttypes_h = yes; then
6642 HAVE_SYS_INTTYPES_H
=1
6644 HAVE_SYS_INTTYPES_H
=0
6647 if test $ac_cv_header_sys_bitypes_h = yes; then
6648 HAVE_SYS_BITYPES_H
=1
6650 HAVE_SYS_BITYPES_H
=0
6664 if test $APPLE_UNIVERSAL_BUILD = 0; then
6667 for gltype
in ptrdiff_t size_t
; do
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6669 $as_echo_n "checking for bit size of $gltype... " >&6; }
6670 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6671 $as_echo_n "(cached) " >&6
6673 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6674 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6675 included before <wchar.h>. */
6684 #include <limits.h>"; then :
6690 eval gl_cv_bitsizeof_
${gltype}=\
$result
6693 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6695 $as_echo "$ac_res" >&6; }
6696 eval result
=\
$gl_cv_bitsizeof_${gltype}
6697 if test $result = unknown
; then
6700 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6701 cat >>confdefs.h
<<_ACEOF
6702 #define BITSIZEOF_${GLTYPE} $result
6705 eval BITSIZEOF_
${GLTYPE}=\
$result
6712 for gltype
in sig_atomic_t wchar_t wint_t
; do
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6714 $as_echo_n "checking for bit size of $gltype... " >&6; }
6715 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6716 $as_echo_n "(cached) " >&6
6718 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6719 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6720 included before <wchar.h>. */
6729 #include <limits.h>"; then :
6735 eval gl_cv_bitsizeof_
${gltype}=\
$result
6738 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6740 $as_echo "$ac_res" >&6; }
6741 eval result
=\
$gl_cv_bitsizeof_${gltype}
6742 if test $result = unknown
; then
6745 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6746 cat >>confdefs.h
<<_ACEOF
6747 #define BITSIZEOF_${GLTYPE} $result
6750 eval BITSIZEOF_
${GLTYPE}=\
$result
6756 for gltype
in sig_atomic_t wchar_t wint_t
; do
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
6758 $as_echo_n "checking whether $gltype is signed... " >&6; }
6759 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
6760 $as_echo_n "(cached) " >&6
6762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6763 /* end confdefs.h. */
6765 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6766 included before <wchar.h>. */
6775 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6784 if ac_fn_c_try_compile
"$LINENO"; then :
6789 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6790 eval gl_cv_type_
${gltype}_signed
=\
$result
6793 eval ac_res
=\
$gl_cv_type_${gltype}_signed
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6795 $as_echo "$ac_res" >&6; }
6796 eval result
=\
$gl_cv_type_${gltype}_signed
6797 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6798 if test "$result" = yes; then
6799 cat >>confdefs.h
<<_ACEOF
6800 #define HAVE_SIGNED_${GLTYPE} 1
6803 eval HAVE_SIGNED_
${GLTYPE}=1
6805 eval HAVE_SIGNED_
${GLTYPE}=0
6810 gl_cv_type_ptrdiff_t_signed
=yes
6811 gl_cv_type_size_t_signed
=no
6812 if test $APPLE_UNIVERSAL_BUILD = 0; then
6815 for gltype
in ptrdiff_t size_t
; do
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6817 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6818 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6819 $as_echo_n "(cached) " >&6
6821 eval gl_cv_type_
${gltype}_suffix
=no
6822 eval result
=\
$gl_cv_type_${gltype}_signed
6823 if test "$result" = yes; then
6828 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
6831 l
) gltype1
='long int';;
6832 ll
) gltype1
='long long int';;
6833 i64
) gltype1
='__int64';;
6834 u
) gltype1
='unsigned int';;
6835 ul
) gltype1
='unsigned long int';;
6836 ull
) gltype1
='unsigned long long int';;
6837 ui64
)gltype1
='unsigned __int64';;
6839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6840 /* end confdefs.h. */
6842 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6843 included before <wchar.h>. */
6853 extern $gltype1 foo;
6862 if ac_fn_c_try_compile
"$LINENO"; then :
6863 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
6865 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6866 eval result
=\
$gl_cv_type_${gltype}_suffix
6867 test "$result" != no
&& break
6870 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6872 $as_echo "$ac_res" >&6; }
6873 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6874 eval result
=\
$gl_cv_type_${gltype}_suffix
6875 test "$result" = no
&& result
=
6876 eval ${GLTYPE}_SUFFIX
=\
$result
6877 cat >>confdefs.h
<<_ACEOF
6878 #define ${GLTYPE}_SUFFIX $result
6887 for gltype
in sig_atomic_t wchar_t wint_t
; do
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6889 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6890 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6891 $as_echo_n "(cached) " >&6
6893 eval gl_cv_type_
${gltype}_suffix
=no
6894 eval result
=\
$gl_cv_type_${gltype}_signed
6895 if test "$result" = yes; then
6900 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
6903 l
) gltype1
='long int';;
6904 ll
) gltype1
='long long int';;
6905 i64
) gltype1
='__int64';;
6906 u
) gltype1
='unsigned int';;
6907 ul
) gltype1
='unsigned long int';;
6908 ull
) gltype1
='unsigned long long int';;
6909 ui64
)gltype1
='unsigned __int64';;
6911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6912 /* end confdefs.h. */
6914 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6915 included before <wchar.h>. */
6925 extern $gltype1 foo;
6934 if ac_fn_c_try_compile
"$LINENO"; then :
6935 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
6937 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6938 eval result
=\
$gl_cv_type_${gltype}_suffix
6939 test "$result" != no
&& break
6942 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6944 $as_echo "$ac_res" >&6; }
6945 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6946 eval result
=\
$gl_cv_type_${gltype}_suffix
6947 test "$result" = no
&& result
=
6948 eval ${GLTYPE}_SUFFIX
=\
$result
6949 cat >>confdefs.h
<<_ACEOF
6950 #define ${GLTYPE}_SUFFIX $result
6961 # Code from module string:
6965 # Code from module warn-on-use:
6966 # Code from module wchar:
6989 if test $gl_cv_have_include_next = yes; then
6990 gl_cv_next_wchar_h
='<'wchar.h
'>'
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
6993 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
6994 if test "${gl_cv_next_wchar_h+set}" = set; then :
6995 $as_echo_n "(cached) " >&6
6998 if test $ac_cv_header_wchar_h = yes; then
6999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7000 /* end confdefs.h. */
7005 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
7006 *) gl_absname_cpp
="$ac_cpp" ;;
7008 gl_cv_next_wchar_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7009 sed -n '\#/wchar.h#{
7010 s#.*"\(.*/wchar.h\)".*#\1#
7016 gl_cv_next_wchar_h
='<'wchar.h
'>'
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
7021 $as_echo "$gl_cv_next_wchar_h" >&6; }
7023 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
7025 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
7026 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7027 gl_next_as_first_directive
='<'wchar.h
'>'
7029 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7030 gl_next_as_first_directive
=$gl_cv_next_wchar_h
7032 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
=$gl_next_as_first_directive
7036 if test $ac_cv_header_wchar_h = yes; then
7044 if test $gt_cv_c_wint_t = yes; then
7052 for gl_func
in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth
; do
7053 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7055 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7056 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7057 $as_echo_n "(cached) " >&6
7059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7060 /* end confdefs.h. */
7062 /* Some systems require additional headers. */
7064 # include <stddef.h>
7079 if ac_fn_c_try_compile
"$LINENO"; then :
7080 eval "$as_gl_Symbol=yes"
7082 eval "$as_gl_Symbol=no"
7084 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7086 eval ac_res
=\$
$as_gl_Symbol
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7088 $as_echo "$ac_res" >&6; }
7089 eval as_val
=\$
$as_gl_Symbol
7090 if test "x$as_val" = x
""yes; then :
7091 cat >>confdefs.h
<<_ACEOF
7092 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7095 eval ac_cv_have_decl_
$gl_func=yes
7100 # Code from module dummy:
7101 # End of code from modules
7122 gl_source_base
='tests'
7123 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
7125 gl_module_indicator_condition
=$gltests_WITNESS
7135 LIBGNU_LIBDEPS
="$gl_libdeps"
7137 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
7141 # For Makefile dependencies.
7143 if test x
"$STDINT_H" != x
; then
7144 GNULIB_STDINT_H
=gnulib
/$STDINT_H
7150 cat >>confdefs.h
<<_ACEOF
7151 #define PACKAGE "$PACKAGE"
7156 # Do we have a single-tree copy of texinfo? Even if we do, we can't
7157 # rely on it - libiberty is built before texinfo.
7158 # Extract the first word of "makeinfo", so it can be a program name with args.
7159 set dummy makeinfo
; ac_word
=$2
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7161 $as_echo_n "checking for $ac_word... " >&6; }
7162 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7163 $as_echo_n "(cached) " >&6
7165 if test -n "$MAKEINFO"; then
7166 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7168 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7172 test -z "$as_dir" && as_dir
=.
7173 for ac_exec_ext
in '' $ac_executable_extensions; do
7174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7175 ac_cv_prog_MAKEINFO
="makeinfo"
7176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7185 MAKEINFO
=$ac_cv_prog_MAKEINFO
7186 if test -n "$MAKEINFO"; then
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7188 $as_echo "$MAKEINFO" >&6; }
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7191 $as_echo "no" >&6; }
7195 if test "x$MAKEINFO" = "x"; then
7196 as_fn_error
"makeinfo is required for compilation" "$LINENO" 5
7199 */missing\ makeinfo
*)
7200 as_fn_error
"makeinfo is required for compilation" "$LINENO" 5
7206 # --split-size=5000000 may be already in $MAKEINFO from parent configure.
7207 # Re-running configure in gdb/ would lose it so ensure it stays present.
7208 MAKEINFOFLAGS
=${MAKEINFOFLAGS---split-size=5000000}
7211 MAKEINFO_EXTRA_FLAGS
=""
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
7213 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
7214 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
7215 $as_echo_n "(cached) " >&6
7217 echo '@clicksequence{a @click{} b}' >conftest.texinfo
7218 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
7219 gdb_cv_have_makeinfo_click
=yes
7221 gdb_cv_have_makeinfo_click
=no
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
7225 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
7226 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
7227 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
7231 # GDB does not use automake, but gnulib does. This line lets us
7232 # generate its Makefile.in.
7233 am__api_version
='1.11'
7235 # Find a good install program. We prefer a C program (faster),
7236 # so one script is as good as another. But avoid the broken or
7237 # incompatible versions:
7238 # SysV /etc/install, /usr/sbin/install
7239 # SunOS /usr/etc/install
7240 # IRIX /sbin/install
7242 # AmigaOS /C/install, which installs bootblocks on floppy discs
7243 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7244 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7245 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7246 # OS/2's system install, which has a completely different semantic
7247 # ./install, which can be erroneously created by make from ./install.sh.
7248 # Reject install programs that cannot install multiple files.
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7250 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7251 if test -z "$INSTALL"; then
7252 if test "${ac_cv_path_install+set}" = set; then :
7253 $as_echo_n "(cached) " >&6
7255 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7259 test -z "$as_dir" && as_dir
=.
7260 # Account for people who put trailing slashes in PATH elements.
7261 case $as_dir/ in #((
7262 .
/ | .
// |
/[cC
]/* | \
7263 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7264 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
7267 # OSF1 and SCO ODT 3.0 have their own names for install.
7268 # Don't use installbsd from OSF since it installs stuff as root
7270 for ac_prog
in ginstall scoinst
install; do
7271 for ac_exec_ext
in '' $ac_executable_extensions; do
7272 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7273 if test $ac_prog = install &&
7274 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7275 # AIX install. It has an incompatible calling convention.
7277 elif test $ac_prog = install &&
7278 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7279 # program-specific install script used by HP pwplus--don't use.
7282 rm -rf conftest.one conftest.two conftest.dir
7283 echo one
> conftest.one
7284 echo two
> conftest.two
7286 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
7287 test -s conftest.one
&& test -s conftest.two
&&
7288 test -s conftest.dir
/conftest.one
&&
7289 test -s conftest.dir
/conftest.two
7291 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7304 rm -rf conftest.one conftest.two conftest.dir
7307 if test "${ac_cv_path_install+set}" = set; then
7308 INSTALL
=$ac_cv_path_install
7310 # As a last resort, use the slow shell script. Don't cache a
7311 # value for INSTALL within a source directory, because that will
7312 # break other packages using the cache if that directory is
7313 # removed, or if the value is a relative name.
7314 INSTALL
=$ac_install_sh
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7318 $as_echo "$INSTALL" >&6; }
7320 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7321 # It thinks the first close brace ends the variable substitution.
7322 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7324 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7326 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
7329 $as_echo_n "checking whether build environment is sane... " >&6; }
7332 echo timestamp
> conftest.
file
7333 # Reject unsafe characters in $srcdir or the absolute working directory
7334 # name. Accept space and tab only in the latter.
7338 *[\\\"\
#\$\&\'\`$am_lf]*)
7339 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
7342 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
7343 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
7346 # Do `set' in a subshell so we don't clobber the current shell's
7347 # arguments. Must try -L first in case configure is actually a
7348 # symlink; some systems play weird games with the mod time of symlinks
7349 # (eg FreeBSD returns the mod time of the symlink's containing
7352 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
7353 if test "$*" = "X"; then
7355 set X
`ls -t "$srcdir/configure" conftest.file`
7358 if test "$*" != "X $srcdir/configure conftest.file" \
7359 && test "$*" != "X conftest.file $srcdir/configure"; then
7361 # If neither matched, then we have a broken ls. This can happen
7362 # if, for instance, CONFIG_SHELL is bash and it inherits a
7363 # broken ls alias from the environment. This has actually
7364 # happened. Such a system could not be considered "sane".
7365 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
7366 alias in your environment" "$LINENO" 5
7369 test "$2" = conftest.
file
7375 as_fn_error
"newly created file is older than distributed files!
7376 Check your system clock" "$LINENO" 5
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7379 $as_echo "yes" >&6; }
7380 test "$program_prefix" != NONE
&&
7381 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
7382 # Use a double $ so make ignores it.
7383 test "$program_suffix" != NONE
&&
7384 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
7385 # Double any \ or $.
7386 # By default was `s,x,x', remove it if useless.
7387 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
7388 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
7390 # expand $ac_aux_dir to an absolute path
7391 am_aux_dir
=`cd $ac_aux_dir && pwd`
7393 if test x
"${MISSING+set}" != xset
; then
7396 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
7398 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
7401 # Use eval to expand $SHELL
7402 if eval "$MISSING --run true"; then
7403 am_missing_run
="$MISSING --run "
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
7407 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
7410 if test x
"${install_sh}" != xset
; then
7413 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
7415 install_sh
="\${SHELL} $am_aux_dir/install-sh"
7419 # Installed binaries are usually stripped using `strip' when the user
7420 # run `make install-strip'. However `strip' might not be the right
7421 # tool to use in cross-compilation environments, therefore Automake
7422 # will honor the `STRIP' environment variable to overrule this program.
7423 if test "$cross_compiling" != no
; then
7424 if test -n "$ac_tool_prefix"; then
7425 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7426 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7428 $as_echo_n "checking for $ac_word... " >&6; }
7429 if test "${ac_cv_prog_STRIP+set}" = set; then :
7430 $as_echo_n "(cached) " >&6
7432 if test -n "$STRIP"; then
7433 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
7435 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7439 test -z "$as_dir" && as_dir
=.
7440 for ac_exec_ext
in '' $ac_executable_extensions; do
7441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7442 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
7443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7452 STRIP
=$ac_cv_prog_STRIP
7453 if test -n "$STRIP"; then
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7455 $as_echo "$STRIP" >&6; }
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458 $as_echo "no" >&6; }
7463 if test -z "$ac_cv_prog_STRIP"; then
7465 # Extract the first word of "strip", so it can be a program name with args.
7466 set dummy strip
; ac_word
=$2
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7468 $as_echo_n "checking for $ac_word... " >&6; }
7469 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7470 $as_echo_n "(cached) " >&6
7472 if test -n "$ac_ct_STRIP"; then
7473 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
7475 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7479 test -z "$as_dir" && as_dir
=.
7480 for ac_exec_ext
in '' $ac_executable_extensions; do
7481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7482 ac_cv_prog_ac_ct_STRIP
="strip"
7483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7492 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
7493 if test -n "$ac_ct_STRIP"; then
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7495 $as_echo "$ac_ct_STRIP" >&6; }
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7498 $as_echo "no" >&6; }
7501 if test "x$ac_ct_STRIP" = x
; then
7504 case $cross_compiling:$ac_tool_warned in
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7508 ac_tool_warned
=yes ;;
7513 STRIP
="$ac_cv_prog_STRIP"
7517 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7520 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7521 if test -z "$MKDIR_P"; then
7522 if test "${ac_cv_path_mkdir+set}" = set; then :
7523 $as_echo_n "(cached) " >&6
7525 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7526 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
7529 test -z "$as_dir" && as_dir
=.
7530 for ac_prog
in mkdir gmkdir
; do
7531 for ac_exec_ext
in '' $ac_executable_extensions; do
7532 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
7533 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7534 'mkdir (GNU coreutils) '* | \
7535 'mkdir (coreutils) '* | \
7536 'mkdir (fileutils) '4.1*)
7537 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
7547 if test "${ac_cv_path_mkdir+set}" = set; then
7548 MKDIR_P
="$ac_cv_path_mkdir -p"
7550 # As a last resort, use the slow shell script. Don't cache a
7551 # value for MKDIR_P within a source directory, because that will
7552 # break other packages using the cache if that directory is
7553 # removed, or if the value is a relative name.
7554 test -d .
/--version && rmdir .
/--version
7555 MKDIR_P
="$ac_install_sh -d"
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7559 $as_echo "$MKDIR_P" >&6; }
7564 [\\/$
]* | ?
:[\\/]*) ;;
7565 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
7568 for ac_prog
in gawk mawk nawk
awk
7570 # Extract the first word of "$ac_prog", so it can be a program name with args.
7571 set dummy
$ac_prog; ac_word
=$2
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7573 $as_echo_n "checking for $ac_word... " >&6; }
7574 if test "${ac_cv_prog_AWK+set}" = set; then :
7575 $as_echo_n "(cached) " >&6
7577 if test -n "$AWK"; then
7578 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7580 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7584 test -z "$as_dir" && as_dir
=.
7585 for ac_exec_ext
in '' $ac_executable_extensions; do
7586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7587 ac_cv_prog_AWK
="$ac_prog"
7588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7598 if test -n "$AWK"; then
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7600 $as_echo "$AWK" >&6; }
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7603 $as_echo "no" >&6; }
7607 test -n "$AWK" && break
7610 ac_config_commands
="$ac_config_commands depfiles"
7613 am_make
=${MAKE-make}
7614 cat > confinc
<< 'END'
7616 @
echo this is the am__doit target
7619 # If we don't find an include directive, just comment out the code.
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
7621 $as_echo_n "checking for style of include used by $am_make... " >&6; }
7625 # First try GNU make style include.
7626 echo "include confinc" > confmf
7627 # Ignore all kinds of additional output from `make'.
7628 case `$am_make -s -f confmf 2> /dev/null` in #(
7629 *the\ am__doit\ target
*)
7635 # Now try BSD make style include.
7636 if test "$am__include" = "#"; then
7637 echo '.include "confinc"' > confmf
7638 case `$am_make -s -f confmf 2> /dev/null` in #(
7639 *the\ am__doit\ target
*)
7640 am__include
=.include
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
7649 $as_echo "$_am_result" >&6; }
7650 rm -f confinc confmf
7652 # Check whether --enable-dependency-tracking was given.
7653 if test "${enable_dependency_tracking+set}" = set; then :
7654 enableval
=$enable_dependency_tracking;
7657 if test "x$enable_dependency_tracking" != xno
; then
7658 am_depcomp
="$ac_aux_dir/depcomp"
7661 if test "x$enable_dependency_tracking" != xno; then
7670 if test "`cd $srcdir && pwd`" != "`pwd`"; then
7671 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7672 # is not polluted with repeated "-I."
7673 am__isrc
=' -I$(srcdir)'
7674 # test to see if srcdir already configured
7675 if test -f $srcdir/config.status
; then
7676 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
7680 # test whether we have cygpath
7681 if test -z "$CYGPATH_W"; then
7682 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
7683 CYGPATH_W
='cygpath -w'
7690 # Define the identity of the package.
7692 VERSION
=UNUSED-VERSION
7695 # Some tools Automake needs.
7697 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
7700 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
7703 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
7706 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
7709 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
7711 # We need awk for the "check" target. The system "awk" is bad on
7713 # Always define AMTAR for backward compatibility.
7715 AMTAR
=${AMTAR-"${am_missing_run}tar"}
7717 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
7722 depcc
="$CC" am_compiler_list
=
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7725 $as_echo_n "checking dependency style of $depcc... " >&6; }
7726 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
7727 $as_echo_n "(cached) " >&6
7729 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7730 # We make a subdir and do the tests there. Otherwise we can end up
7731 # making bogus files that we don't know about and never remove. For
7732 # instance it was reported that on HP-UX the gcc test will end up
7733 # making a dummy file named `D' -- because `-MD' means `put the output
7736 # Copy depcomp to subdir because otherwise we won't find it if we're
7737 # using a relative directory.
7738 cp "$am_depcomp" conftest.dir
7740 # We will build objects and dependencies in a subdirectory because
7741 # it helps to detect inapplicable dependency modes. For instance
7742 # both Tru64's cc and ICC support -MD to output dependencies as a
7743 # side effect of compilation, but ICC will put the dependencies in
7744 # the current directory while Tru64 will put them in the object
7748 am_cv_CC_dependencies_compiler_type
=none
7749 if test "$am_compiler_list" = ""; then
7750 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7753 case " $depcc " in #(
7754 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
7757 for depmode
in $am_compiler_list; do
7758 # Setup a source with many dependencies, because some compilers
7759 # like to wrap large dependency lists on column 80 (with \), and
7760 # we should not choose a depcomp mode which is confused by this.
7762 # We need to recreate these files for each test, as the compiler may
7763 # overwrite some of them when testing with obscure command lines.
7764 # This happens at least with the AIX C compiler.
7766 for i
in 1 2 3 4 5 6; do
7767 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
7768 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7769 # Solaris 8's {/usr,}/bin/sh.
7770 touch sub
/conftst
$i.h
7772 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7774 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7775 # mode. It turns out that the SunPro C++ compiler does not properly
7776 # handle `-M -o', and we need to detect this. Also, some Intel
7777 # versions had trouble with output in subdirs
7778 am__obj
=sub
/conftest.
${OBJEXT-o}
7779 am__minus_obj
="-o $am__obj"
7782 # This depmode causes a compiler race in universal mode.
7783 test "$am__universal" = false ||
continue
7786 # after this tag, mechanisms are not by side-effect, so they'll
7787 # only be used when explicitly requested
7788 if test "x$enable_dependency_tracking" = xyes
; then
7794 msvisualcpp | msvcmsys
)
7795 # This compiler won't grok `-c -o', but also, the minuso test has
7796 # not run yet. These depmodes are late enough in the game, and
7797 # so weak that their functioning should not be impacted.
7798 am__obj
=conftest.
${OBJEXT-o}
7803 if depmode
=$depmode \
7804 source=sub
/conftest.c object
=$am__obj \
7805 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
7806 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
7807 >/dev
/null
2>conftest.err
&&
7808 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
7809 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
7810 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
7811 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
7812 # icc doesn't choke on unknown options, it will just issue warnings
7813 # or remarks (even with -Werror). So we grep stderr for any message
7814 # that says an option was ignored or not supported.
7815 # When given -MP, icc 7.0 and 7.1 complain thusly:
7816 # icc: Command line warning: ignoring option '-M'; no argument required
7817 # The diagnosis changed in icc 8.0:
7818 # icc: Command line remark: option '-MP' not supported
7819 if (grep 'ignoring option' conftest.err ||
7820 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
7821 am_cv_CC_dependencies_compiler_type
=$depmode
7830 am_cv_CC_dependencies_compiler_type
=none
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7835 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7836 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
7839 test "x$enable_dependency_tracking" != xno \
7840 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
7842 am__fastdepCC_FALSE
='#'
7844 am__fastdepCC_TRUE
='#'
7845 am__fastdepCC_FALSE
=
7853 # Check whether --with-separate-debug-dir was given.
7854 if test "${with_separate_debug_dir+set}" = set; then :
7855 withval
=$with_separate_debug_dir;
7858 DEBUGDIR
=${libdir}/debug
7862 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7863 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7864 ac_define_dir
=`eval echo $DEBUGDIR`
7865 ac_define_dir
=`eval echo $ac_define_dir`
7867 cat >>confdefs.h
<<_ACEOF
7868 #define DEBUGDIR "$ac_define_dir"
7874 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
7875 if test "x$prefix" = xNONE
; then
7876 test_prefix
=/usr
/local
7881 test_prefix
=$exec_prefix
7884 case ${ac_define_dir} in
7885 "${test_prefix}"|
"${test_prefix}/"*|\
7886 '${exec_prefix}'|
'${exec_prefix}/'*)
7891 cat >>confdefs.h
<<_ACEOF
7892 #define DEBUGDIR_RELOCATABLE $value
7898 # GDB's datadir relocation
7902 # Check whether --with-gdb-datadir was given.
7903 if test "${with_gdb_datadir+set}" = set; then :
7904 withval
=$with_gdb_datadir;
7905 GDB_DATADIR
=$withval
7907 GDB_DATADIR
=${datadir}/gdb
7911 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7912 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7913 ac_define_dir
=`eval echo $GDB_DATADIR`
7914 ac_define_dir
=`eval echo $ac_define_dir`
7916 cat >>confdefs.h
<<_ACEOF
7917 #define GDB_DATADIR "$ac_define_dir"
7923 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
7924 if test "x$prefix" = xNONE
; then
7925 test_prefix
=/usr
/local
7930 test_prefix
=$exec_prefix
7933 case ${ac_define_dir} in
7934 "${test_prefix}"|
"${test_prefix}/"*|\
7935 '${exec_prefix}'|
'${exec_prefix}/'*)
7940 cat >>confdefs.h
<<_ACEOF
7941 #define GDB_DATADIR_RELOCATABLE $value
7948 # Check whether --with-relocated-sources was given.
7949 if test "${with_relocated_sources+set}" = set; then :
7950 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
7952 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7953 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7954 ac_define_dir
=`eval echo $reloc_srcdir`
7955 ac_define_dir
=`eval echo $ac_define_dir`
7957 cat >>confdefs.h
<<_ACEOF
7958 #define RELOC_SRCDIR "$ac_define_dir"
7968 subdirs
="$subdirs testsuite"
7971 # Check whether to support alternative target configurations
7972 # Check whether --enable-targets was given.
7973 if test "${enable_targets+set}" = set; then :
7974 enableval
=$enable_targets; case "${enableval}" in
7975 yes |
"") as_fn_error
"enable-targets option must specify target names or 'all'" "$LINENO" 5
7977 no
) enable_targets
= ;;
7978 *) enable_targets
=$enableval ;;
7983 # Check whether to enable 64-bit support on 32-bit hosts
7984 # Check whether --enable-64-bit-bfd was given.
7985 if test "${enable_64_bit_bfd+set}" = set; then :
7986 enableval
=$enable_64_bit_bfd; case "${enableval}" in
7989 *) as_fn_error
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
7995 # Provide defaults for some variables set by the per-host and per-target
7997 gdb_host_obs
=posix-hdep.o
7999 if test "${target}" = "${host}"; then
8005 .
$srcdir/configure.
host
8007 # Accumulate some settings from configure.tgt over all enabled targets
8012 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
8014 if test "$targ_alias" = "all"; then
8017 # Canonicalize the secondary target names.
8018 result
=`$ac_config_sub $targ_alias 2>/dev/null`
8019 if test -n "$result"; then
8025 .
${srcdir}/configure.tgt
8027 if test -z "${gdb_target_obs}"; then :
8028 as_fn_error
"configuration ${targ} is unsupported." "$LINENO" 5
8031 # Target-specific object files
8032 for i
in ${gdb_target_obs}; do
8033 case " $TARGET_OBS " in
8036 TARGET_OBS
="$TARGET_OBS ${i}"
8041 # Check whether this target needs 64-bit CORE_ADDR
8042 if test x
${want64} = xfalse
; then
8043 .
${srcdir}/..
/bfd
/config.bfd
8048 if test x
${all_targets} = xtrue
; then
8050 # We want all 64-bit targets if we either:
8051 # - run on a 64-bit host or
8052 # - already require 64-bit support for some other target or
8053 # - the --enable-64-bit-bfd option was supplied
8054 # Otherwise we only support all 32-bit targets.
8056 # NOTE: This test must be in sync with the corresponding
8059 if test x
${want64} = xfalse
; then
8060 # The cast to long int works around a bug in the HP C Compiler
8061 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8062 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8063 # This bug is HP SR number 8606223364.
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
8065 $as_echo_n "checking size of long... " >&6; }
8066 if test "${ac_cv_sizeof_long+set}" = set; then :
8067 $as_echo_n "(cached) " >&6
8069 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
8072 if test "$ac_cv_type_long" = yes; then
8073 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8075 { as_fn_set_status
77
8076 as_fn_error
"cannot compute sizeof (long)
8077 See \`config.log' for more details." "$LINENO" 5; }; }
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
8085 $as_echo "$ac_cv_sizeof_long" >&6; }
8089 cat >>confdefs.h
<<_ACEOF
8090 #define SIZEOF_LONG $ac_cv_sizeof_long
8094 if test "x${ac_cv_sizeof_long}" = "x8"; then
8098 if test x
${want64} = xtrue
; then
8099 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
8101 TARGET_OBS
='$(ALL_TARGET_OBS)'
8107 # For other settings, only the main target counts.
8111 targ
=$target; .
${srcdir}/configure.tgt
8113 # Fetch the default architecture and default target vector from BFD.
8114 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
8116 # We only want the first architecture, so strip off the others if
8117 # there is more than one.
8118 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
8120 if test "x$targ_archs" != x
; then
8122 cat >>confdefs.h
<<_ACEOF
8123 #define DEFAULT_BFD_ARCH $targ_archs
8127 if test "x$targ_defvec" != x
; then
8129 cat >>confdefs.h
<<_ACEOF
8130 #define DEFAULT_BFD_VEC $targ_defvec
8135 # The CLI cannot be disabled yet, but may be in the future.
8138 # Check whether --enable-gdbcli was given.
8139 if test "${enable_gdbcli+set}" = set; then :
8140 enableval
=$enable_gdbcli; case $enableval in
8144 as_fn_error
"the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
8146 as_fn_error
"bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
8152 if test x
"$enable_gdbcli" = xyes
; then
8153 if test -d $srcdir/cli
; then
8154 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
8155 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
8156 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
8157 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
8162 # Check whether --enable-gdbmi was given.
8163 if test "${enable_gdbmi+set}" = set; then :
8164 enableval
=$enable_gdbmi; case $enableval in
8168 as_fn_error
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
8174 if test x
"$enable_gdbmi" = xyes
; then
8175 if test -d $srcdir/mi
; then
8176 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
8177 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
8178 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
8179 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
8184 # Check whether --enable-tui was given.
8185 if test "${enable_tui+set}" = set; then :
8186 enableval
=$enable_tui; case $enableval in
8190 as_fn_error
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
8198 # Check whether --enable-gdbtk was given.
8199 if test "${enable_gdbtk+set}" = set; then :
8200 enableval
=$enable_gdbtk; case $enableval in
8204 as_fn_error
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
8207 if test -d $srcdir/gdbtk
; then
8214 # We unconditionally disable gdbtk tests on selected platforms.
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
8218 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
8222 # Libunwind support.
8224 # Check whether --with-libunwind was given.
8225 if test "${with_libunwind+set}" = set; then :
8226 withval
=$with_libunwind; case "${withval}" in
8227 yes) enable_libunwind
=yes ;;
8228 no
) enable_libunwind
=no
;;
8229 *) as_fn_error
"bad value ${withval} for GDB with-libunwind option" "$LINENO" 5 ;;
8233 for ac_header
in libunwind.h libunwind-ia64.h
8235 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8236 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8237 eval as_val
=\$
$as_ac_Header
8238 if test "x$as_val" = x
""yes; then :
8239 cat >>confdefs.h
<<_ACEOF
8240 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8247 if test x
"$ac_cv_header_libunwind_h" = xyes
-a x
"$ac_cv_header_libunwind_ia64_h" = xyes
; then
8248 enable_libunwind
=yes;
8254 if test x
"$enable_libunwind" = xyes
; then
8255 for ac_header
in libunwind.h libunwind-ia64.h
8257 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8258 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8259 eval as_val
=\$
$as_ac_Header
8260 if test "x$as_val" = x
""yes; then :
8261 cat >>confdefs.h
<<_ACEOF
8262 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8270 $as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h
8272 CONFIG_OBS
="$CONFIG_OBS libunwind-frame.o"
8273 CONFIG_DEPS
="$CONFIG_DEPS libunwind-frame.o"
8274 CONFIG_SRCS
="$CONFIG_SRCS libunwind-frame.c"
8279 # Check whether --with-curses was given.
8280 if test "${with_curses+set}" = set; then :
8281 withval
=$with_curses; opt_curses
=$withval
8286 if test "$opt_curses" = "yes"; then
8290 # Profiling support.
8291 # Check whether --enable-profiling was given.
8292 if test "${enable_profiling+set}" = set; then :
8293 enableval
=$enable_profiling; case $enableval in
8297 as_fn_error
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
8304 for ac_func
in monstartup _mcleanup
8306 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8307 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8308 eval as_val
=\$
$as_ac_var
8309 if test "x$as_val" = x
""yes; then :
8310 cat >>confdefs.h
<<_ACEOF
8311 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
8318 $as_echo_n "checking for _etext... " >&6; }
8319 if test "${ac_cv_var__etext+set}" = set; then :
8320 $as_echo_n "(cached) " >&6
8322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8323 /* end confdefs.h. */
8335 if ac_fn_c_try_link
"$LINENO"; then :
8336 ac_cv_var__etext
=yes
8340 rm -f core conftest.err conftest.
$ac_objext \
8341 conftest
$ac_exeext conftest.
$ac_ext
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
8344 $as_echo "$ac_cv_var__etext" >&6; }
8345 if test $ac_cv_var__etext = yes; then
8347 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
8351 $as_echo_n "checking for etext... " >&6; }
8352 if test "${ac_cv_var_etext+set}" = set; then :
8353 $as_echo_n "(cached) " >&6
8355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8356 /* end confdefs.h. */
8368 if ac_fn_c_try_link
"$LINENO"; then :
8373 rm -f core conftest.err conftest.
$ac_objext \
8374 conftest
$ac_exeext conftest.
$ac_ext
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
8377 $as_echo "$ac_cv_var_etext" >&6; }
8378 if test $ac_cv_var_etext = yes; then
8380 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
8383 if test "$enable_profiling" = yes ; then
8384 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
8385 as_fn_error
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
8388 OLD_CFLAGS
="$CFLAGS"
8389 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
8392 $as_echo_n "checking whether $CC supports -pg... " >&6; }
8393 if test "${ac_cv_cc_supports_pg+set}" = set; then :
8394 $as_echo_n "(cached) " >&6
8396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8397 /* end confdefs.h. */
8407 if ac_fn_c_try_compile
"$LINENO"; then :
8408 ac_cv_cc_supports_pg
=yes
8410 ac_cv_cc_supports_pg
=no
8412 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
8415 $as_echo "$ac_cv_cc_supports_pg" >&6; }
8417 if test $ac_cv_cc_supports_pg = no
; then
8418 as_fn_error
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
8421 CFLAGS
="$OLD_CFLAGS"
8426 # Check whether --with-pkgversion was given.
8427 if test "${with_pkgversion+set}" = set; then :
8428 withval
=$with_pkgversion; case "$withval" in
8429 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
8431 *) PKGVERSION
="($withval) " ;;
8442 # Check whether --with-bugurl was given.
8443 if test "${with_bugurl+set}" = set; then :
8444 withval
=$with_bugurl; case "$withval" in
8445 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
8448 *) BUGURL
="$withval"
8452 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
8462 REPORT_BUGS_TO
="<$BUGURL>"
8463 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
8470 cat >>confdefs.h
<<_ACEOF
8471 #define PKGVERSION "$PKGVERSION"
8475 cat >>confdefs.h
<<_ACEOF
8476 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8480 # --------------------- #
8481 # Checks for programs. #
8482 # --------------------- #
8484 for ac_prog
in gawk mawk nawk
awk
8486 # Extract the first word of "$ac_prog", so it can be a program name with args.
8487 set dummy
$ac_prog; ac_word
=$2
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8489 $as_echo_n "checking for $ac_word... " >&6; }
8490 if test "${ac_cv_prog_AWK+set}" = set; then :
8491 $as_echo_n "(cached) " >&6
8493 if test -n "$AWK"; then
8494 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8496 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8500 test -z "$as_dir" && as_dir
=.
8501 for ac_exec_ext
in '' $ac_executable_extensions; do
8502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8503 ac_cv_prog_AWK
="$ac_prog"
8504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8514 if test -n "$AWK"; then
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8516 $as_echo "$AWK" >&6; }
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8519 $as_echo "no" >&6; }
8523 test -n "$AWK" && break
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8528 $as_echo_n "checking whether ln -s works... " >&6; }
8530 if test "$LN_S" = "ln -s"; then
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8532 $as_echo "yes" >&6; }
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8535 $as_echo "no, using $LN_S" >&6; }
8538 if test -n "$ac_tool_prefix"; then
8539 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8540 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8542 $as_echo_n "checking for $ac_word... " >&6; }
8543 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8544 $as_echo_n "(cached) " >&6
8546 if test -n "$RANLIB"; then
8547 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8549 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8553 test -z "$as_dir" && as_dir
=.
8554 for ac_exec_ext
in '' $ac_executable_extensions; do
8555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8556 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8566 RANLIB
=$ac_cv_prog_RANLIB
8567 if test -n "$RANLIB"; then
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8569 $as_echo "$RANLIB" >&6; }
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8572 $as_echo "no" >&6; }
8577 if test -z "$ac_cv_prog_RANLIB"; then
8578 ac_ct_RANLIB
=$RANLIB
8579 # Extract the first word of "ranlib", so it can be a program name with args.
8580 set dummy ranlib
; ac_word
=$2
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8582 $as_echo_n "checking for $ac_word... " >&6; }
8583 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8584 $as_echo_n "(cached) " >&6
8586 if test -n "$ac_ct_RANLIB"; then
8587 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8589 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8593 test -z "$as_dir" && as_dir
=.
8594 for ac_exec_ext
in '' $ac_executable_extensions; do
8595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8596 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8606 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8607 if test -n "$ac_ct_RANLIB"; then
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8609 $as_echo "$ac_ct_RANLIB" >&6; }
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8612 $as_echo "no" >&6; }
8615 if test "x$ac_ct_RANLIB" = x
; then
8618 case $cross_compiling:$ac_tool_warned in
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8622 ac_tool_warned
=yes ;;
8624 RANLIB
=$ac_ct_RANLIB
8627 RANLIB
="$ac_cv_prog_RANLIB"
8630 for ac_prog
in 'bison -y' byacc
8632 # Extract the first word of "$ac_prog", so it can be a program name with args.
8633 set dummy
$ac_prog; ac_word
=$2
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8635 $as_echo_n "checking for $ac_word... " >&6; }
8636 if test "${ac_cv_prog_YACC+set}" = set; then :
8637 $as_echo_n "(cached) " >&6
8639 if test -n "$YACC"; then
8640 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
8642 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8646 test -z "$as_dir" && as_dir
=.
8647 for ac_exec_ext
in '' $ac_executable_extensions; do
8648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8649 ac_cv_prog_YACC
="$ac_prog"
8650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8659 YACC
=$ac_cv_prog_YACC
8660 if test -n "$YACC"; then
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8662 $as_echo "$YACC" >&6; }
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8665 $as_echo "no" >&6; }
8669 test -n "$YACC" && break
8671 test -n "$YACC" || YACC
="yacc"
8674 if test -n "$ac_tool_prefix"; then
8675 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8676 set dummy
${ac_tool_prefix}ar; ac_word
=$2
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8678 $as_echo_n "checking for $ac_word... " >&6; }
8679 if test "${ac_cv_prog_AR+set}" = set; then :
8680 $as_echo_n "(cached) " >&6
8682 if test -n "$AR"; then
8683 ac_cv_prog_AR
="$AR" # Let the user override the test.
8685 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8689 test -z "$as_dir" && as_dir
=.
8690 for ac_exec_ext
in '' $ac_executable_extensions; do
8691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8692 ac_cv_prog_AR
="${ac_tool_prefix}ar"
8693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8703 if test -n "$AR"; then
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8705 $as_echo "$AR" >&6; }
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8708 $as_echo "no" >&6; }
8713 if test -z "$ac_cv_prog_AR"; then
8715 # Extract the first word of "ar", so it can be a program name with args.
8716 set dummy
ar; ac_word
=$2
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8718 $as_echo_n "checking for $ac_word... " >&6; }
8719 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8720 $as_echo_n "(cached) " >&6
8722 if test -n "$ac_ct_AR"; then
8723 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
8725 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8729 test -z "$as_dir" && as_dir
=.
8730 for ac_exec_ext
in '' $ac_executable_extensions; do
8731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8732 ac_cv_prog_ac_ct_AR
="ar"
8733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8742 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
8743 if test -n "$ac_ct_AR"; then
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8745 $as_echo "$ac_ct_AR" >&6; }
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8748 $as_echo "no" >&6; }
8751 if test "x$ac_ct_AR" = x
; then
8754 case $cross_compiling:$ac_tool_warned in
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8758 ac_tool_warned
=yes ;;
8766 if test -n "$ac_tool_prefix"; then
8767 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8768 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8770 $as_echo_n "checking for $ac_word... " >&6; }
8771 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8772 $as_echo_n "(cached) " >&6
8774 if test -n "$DLLTOOL"; then
8775 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
8777 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8781 test -z "$as_dir" && as_dir
=.
8782 for ac_exec_ext
in '' $ac_executable_extensions; do
8783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8784 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
8785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8794 DLLTOOL
=$ac_cv_prog_DLLTOOL
8795 if test -n "$DLLTOOL"; then
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8797 $as_echo "$DLLTOOL" >&6; }
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8800 $as_echo "no" >&6; }
8805 if test -z "$ac_cv_prog_DLLTOOL"; then
8806 ac_ct_DLLTOOL
=$DLLTOOL
8807 # Extract the first word of "dlltool", so it can be a program name with args.
8808 set dummy dlltool
; ac_word
=$2
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8810 $as_echo_n "checking for $ac_word... " >&6; }
8811 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
8812 $as_echo_n "(cached) " >&6
8814 if test -n "$ac_ct_DLLTOOL"; then
8815 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
8817 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8821 test -z "$as_dir" && as_dir
=.
8822 for ac_exec_ext
in '' $ac_executable_extensions; do
8823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8824 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
8825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8834 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
8835 if test -n "$ac_ct_DLLTOOL"; then
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8837 $as_echo "$ac_ct_DLLTOOL" >&6; }
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8840 $as_echo "no" >&6; }
8843 if test "x$ac_ct_DLLTOOL" = x
; then
8846 case $cross_compiling:$ac_tool_warned in
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8850 ac_tool_warned
=yes ;;
8852 DLLTOOL
=$ac_ct_DLLTOOL
8855 DLLTOOL
="$ac_cv_prog_DLLTOOL"
8858 if test -n "$ac_tool_prefix"; then
8859 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8860 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8862 $as_echo_n "checking for $ac_word... " >&6; }
8863 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8864 $as_echo_n "(cached) " >&6
8866 if test -n "$WINDRES"; then
8867 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
8869 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8873 test -z "$as_dir" && as_dir
=.
8874 for ac_exec_ext
in '' $ac_executable_extensions; do
8875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8876 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
8877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8886 WINDRES
=$ac_cv_prog_WINDRES
8887 if test -n "$WINDRES"; then
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8889 $as_echo "$WINDRES" >&6; }
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8892 $as_echo "no" >&6; }
8897 if test -z "$ac_cv_prog_WINDRES"; then
8898 ac_ct_WINDRES
=$WINDRES
8899 # Extract the first word of "windres", so it can be a program name with args.
8900 set dummy windres
; ac_word
=$2
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8902 $as_echo_n "checking for $ac_word... " >&6; }
8903 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
8904 $as_echo_n "(cached) " >&6
8906 if test -n "$ac_ct_WINDRES"; then
8907 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
8909 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8913 test -z "$as_dir" && as_dir
=.
8914 for ac_exec_ext
in '' $ac_executable_extensions; do
8915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8916 ac_cv_prog_ac_ct_WINDRES
="windres"
8917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8926 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
8927 if test -n "$ac_ct_WINDRES"; then
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
8929 $as_echo "$ac_ct_WINDRES" >&6; }
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8932 $as_echo "no" >&6; }
8935 if test "x$ac_ct_WINDRES" = x
; then
8938 case $cross_compiling:$ac_tool_warned in
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8942 ac_tool_warned
=yes ;;
8944 WINDRES
=$ac_ct_WINDRES
8947 WINDRES
="$ac_cv_prog_WINDRES"
8951 # Needed for GNU/Hurd.
8952 if test -n "$ac_tool_prefix"; then
8953 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
8954 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8956 $as_echo_n "checking for $ac_word... " >&6; }
8957 if test "${ac_cv_prog_MIG+set}" = set; then :
8958 $as_echo_n "(cached) " >&6
8960 if test -n "$MIG"; then
8961 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
8963 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8967 test -z "$as_dir" && as_dir
=.
8968 for ac_exec_ext
in '' $ac_executable_extensions; do
8969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8970 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
8971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8981 if test -n "$MIG"; then
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
8983 $as_echo "$MIG" >&6; }
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8986 $as_echo "no" >&6; }
8991 if test -z "$ac_cv_prog_MIG"; then
8993 # Extract the first word of "mig", so it can be a program name with args.
8994 set dummy mig
; ac_word
=$2
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8996 $as_echo_n "checking for $ac_word... " >&6; }
8997 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
8998 $as_echo_n "(cached) " >&6
9000 if test -n "$ac_ct_MIG"; then
9001 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
9003 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9007 test -z "$as_dir" && as_dir
=.
9008 for ac_exec_ext
in '' $ac_executable_extensions; do
9009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9010 ac_cv_prog_ac_ct_MIG
="mig"
9011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9020 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
9021 if test -n "$ac_ct_MIG"; then
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
9023 $as_echo "$ac_ct_MIG" >&6; }
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9026 $as_echo "no" >&6; }
9029 if test "x$ac_ct_MIG" = x
; then
9032 case $cross_compiling:$ac_tool_warned in
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9036 ac_tool_warned
=yes ;;
9041 MIG
="$ac_cv_prog_MIG"
9045 # ---------------------- #
9046 # Checks for libraries. #
9047 # ---------------------- #
9049 # We might need to link with -lm; most simulators need it.
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
9051 $as_echo_n "checking for main in -lm... " >&6; }
9052 if test "${ac_cv_lib_m_main+set}" = set; then :
9053 $as_echo_n "(cached) " >&6
9055 ac_check_lib_save_LIBS
=$LIBS
9057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9058 /* end confdefs.h. */
9069 if ac_fn_c_try_link
"$LINENO"; then :
9070 ac_cv_lib_m_main
=yes
9074 rm -f core conftest.err conftest.
$ac_objext \
9075 conftest
$ac_exeext conftest.
$ac_ext
9076 LIBS
=$ac_check_lib_save_LIBS
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
9079 $as_echo "$ac_cv_lib_m_main" >&6; }
9080 if test "x$ac_cv_lib_m_main" = x
""yes; then :
9081 cat >>confdefs.h
<<_ACEOF
9090 # We need to link with -lw to get `wctype' on Solaris before Solaris
9091 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9092 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9093 # is known to have this problem). Therefore we avoid libw if we can.
9094 ac_fn_c_check_func
"$LINENO" "wctype" "ac_cv_func_wctype"
9095 if test "x$ac_cv_func_wctype" = x
""yes; then :
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
9099 $as_echo_n "checking for wctype in -lw... " >&6; }
9100 if test "${ac_cv_lib_w_wctype+set}" = set; then :
9101 $as_echo_n "(cached) " >&6
9103 ac_check_lib_save_LIBS
=$LIBS
9105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9106 /* end confdefs.h. */
9108 /* Override any GCC internal prototype to avoid an error.
9109 Use char because int might match the return type of a GCC
9110 builtin and then its argument prototype would still apply. */
9123 if ac_fn_c_try_link
"$LINENO"; then :
9124 ac_cv_lib_w_wctype
=yes
9126 ac_cv_lib_w_wctype
=no
9128 rm -f core conftest.err conftest.
$ac_objext \
9129 conftest
$ac_exeext conftest.
$ac_ext
9130 LIBS
=$ac_check_lib_save_LIBS
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
9133 $as_echo "$ac_cv_lib_w_wctype" >&6; }
9134 if test "x$ac_cv_lib_w_wctype" = x
""yes; then :
9135 cat >>confdefs.h
<<_ACEOF
9146 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
9148 $as_echo_n "checking for library containing gethostbyname... " >&6; }
9149 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9150 $as_echo_n "(cached) " >&6
9152 ac_func_search_save_LIBS
=$LIBS
9153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9154 /* end confdefs.h. */
9156 /* Override any GCC internal prototype to avoid an error.
9157 Use char because int might match the return type of a GCC
9158 builtin and then its argument prototype would still apply. */
9162 char gethostbyname ();
9166 return gethostbyname ();
9171 for ac_lib
in '' nsl
; do
9172 if test -z "$ac_lib"; then
9173 ac_res
="none required"
9176 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9178 if ac_fn_c_try_link
"$LINENO"; then :
9179 ac_cv_search_gethostbyname
=$ac_res
9181 rm -f core conftest.err conftest.
$ac_objext \
9183 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9187 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9190 ac_cv_search_gethostbyname
=no
9193 LIBS
=$ac_func_search_save_LIBS
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
9196 $as_echo "$ac_cv_search_gethostbyname" >&6; }
9197 ac_res
=$ac_cv_search_gethostbyname
9198 if test "$ac_res" != no
; then :
9199 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9204 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
9206 $as_echo_n "checking for library containing socketpair... " >&6; }
9207 if test "${ac_cv_search_socketpair+set}" = set; then :
9208 $as_echo_n "(cached) " >&6
9210 ac_func_search_save_LIBS
=$LIBS
9211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9212 /* end confdefs.h. */
9214 /* Override any GCC internal prototype to avoid an error.
9215 Use char because int might match the return type of a GCC
9216 builtin and then its argument prototype would still apply. */
9224 return socketpair ();
9229 for ac_lib
in '' socket
; do
9230 if test -z "$ac_lib"; then
9231 ac_res
="none required"
9234 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9236 if ac_fn_c_try_link
"$LINENO"; then :
9237 ac_cv_search_socketpair
=$ac_res
9239 rm -f core conftest.err conftest.
$ac_objext \
9241 if test "${ac_cv_search_socketpair+set}" = set; then :
9245 if test "${ac_cv_search_socketpair+set}" = set; then :
9248 ac_cv_search_socketpair
=no
9251 LIBS
=$ac_func_search_save_LIBS
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
9254 $as_echo "$ac_cv_search_socketpair" >&6; }
9255 ac_res
=$ac_cv_search_socketpair
9256 if test "$ac_res" != no
; then :
9257 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9262 # Link in zlib if we can. This allows us to read compressed debug sections.
9264 # See if the user specified whether he wants zlib support or not.
9266 # Check whether --with-zlib was given.
9267 if test "${with_zlib+set}" = set; then :
9274 if test "$with_zlib" != "no"; then
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
9276 $as_echo_n "checking for library containing zlibVersion... " >&6; }
9277 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9278 $as_echo_n "(cached) " >&6
9280 ac_func_search_save_LIBS
=$LIBS
9281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9282 /* end confdefs.h. */
9284 /* Override any GCC internal prototype to avoid an error.
9285 Use char because int might match the return type of a GCC
9286 builtin and then its argument prototype would still apply. */
9290 char zlibVersion ();
9294 return zlibVersion ();
9299 for ac_lib
in '' z
; do
9300 if test -z "$ac_lib"; then
9301 ac_res
="none required"
9304 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9306 if ac_fn_c_try_link
"$LINENO"; then :
9307 ac_cv_search_zlibVersion
=$ac_res
9309 rm -f core conftest.err conftest.
$ac_objext \
9311 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9315 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9318 ac_cv_search_zlibVersion
=no
9321 LIBS
=$ac_func_search_save_LIBS
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
9324 $as_echo "$ac_cv_search_zlibVersion" >&6; }
9325 ac_res
=$ac_cv_search_zlibVersion
9326 if test "$ac_res" != no
; then :
9327 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9328 for ac_header
in zlib.h
9330 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
9331 if test "x$ac_cv_header_zlib_h" = x
""yes; then :
9332 cat >>confdefs.h
<<_ACEOF
9333 #define HAVE_ZLIB_H 1
9342 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
9343 as_fn_error
"zlib (libz) library was explicitly requested but not found" "$LINENO" 5
9348 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
9350 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
9351 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9352 $as_echo_n "(cached) " >&6
9354 ac_func_search_save_LIBS
=$LIBS
9355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9356 /* end confdefs.h. */
9358 /* Override any GCC internal prototype to avoid an error.
9359 Use char because int might match the return type of a GCC
9360 builtin and then its argument prototype would still apply. */
9364 char dlgetmodinfo ();
9368 return dlgetmodinfo ();
9373 for ac_lib
in '' dl xpdl
; do
9374 if test -z "$ac_lib"; then
9375 ac_res
="none required"
9378 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9380 if ac_fn_c_try_link
"$LINENO"; then :
9381 ac_cv_search_dlgetmodinfo
=$ac_res
9383 rm -f core conftest.err conftest.
$ac_objext \
9385 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9389 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9392 ac_cv_search_dlgetmodinfo
=no
9395 LIBS
=$ac_func_search_save_LIBS
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
9398 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
9399 ac_res
=$ac_cv_search_dlgetmodinfo
9400 if test "$ac_res" != no
; then :
9401 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9409 # Check whether --with-libiconv-prefix was given.
9410 if test "${with_libiconv_prefix+set}" = set; then :
9411 withval
=$with_libiconv_prefix;
9412 for dir
in `echo "$withval" | tr : ' '`; do
9413 if test -d $dir/include
; then LIBICONV_INCLUDE
="-I$dir/include"; fi
9414 if test -d $dir/lib
; then LIBICONV_LIBDIR
="-L$dir/lib"; fi
9420 BUILD_LIBICONV_LIBDIRS
="../libiconv/lib/.libs ../libiconv/lib/_libs"
9421 BUILD_LIBICONV_INCLUDE
="-I../libiconv/include"
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9424 $as_echo_n "checking for iconv... " >&6; }
9425 if test "${am_cv_func_iconv+set}" = set; then :
9426 $as_echo_n "(cached) " >&6
9429 am_cv_func_iconv
="no, consider installing GNU libiconv"
9431 am_cv_use_build_libiconv
=no
9432 am_cv_build_libiconv_path
=
9434 # If libiconv is part of the build tree, then try using it over
9436 if test -d ..
/libiconv
; then
9437 for lib_dir
in $BUILD_LIBICONV_LIBDIRS; do
9438 am_save_LIBS
="$LIBS"
9439 am_save_CPPFLAGS
="$CPPFLAGS"
9440 LIBS
="$LIBS $lib_dir/libiconv.a"
9441 CPPFLAGS
="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
9442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9443 /* end confdefs.h. */
9449 iconv_t cd = iconv_open("","");
9450 iconv(cd,NULL,NULL,NULL,NULL);
9456 if ac_fn_c_try_link
"$LINENO"; then :
9457 am_cv_use_build_libiconv
=yes
9458 am_cv_build_libiconv_path
=$lib_dir/libiconv.a
9460 am_cv_func_iconv
=yes
9462 rm -f core conftest.err conftest.
$ac_objext \
9463 conftest
$ac_exeext conftest.
$ac_ext
9464 LIBS
="$am_save_LIBS"
9465 CPPFLAGS
="$am_save_CPPFLAGS"
9466 if test "$am_cv_use_build_libiconv" = "yes"; then
9472 # Next, try to find iconv in libc.
9473 if test "$am_cv_func_iconv" != yes; then
9474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9475 /* end confdefs.h. */
9481 iconv_t cd = iconv_open("","");
9482 iconv(cd,NULL,NULL,NULL,NULL);
9488 if ac_fn_c_try_link
"$LINENO"; then :
9489 am_cv_func_iconv
=yes
9491 rm -f core conftest.err conftest.
$ac_objext \
9492 conftest
$ac_exeext conftest.
$ac_ext
9495 # If iconv was not in libc, try -liconv. In this case, arrange to
9496 # look in the libiconv prefix, if it was specified by the user.
9497 if test "$am_cv_func_iconv" != yes; then
9498 am_save_CPPFLAGS
="$CPPFLAGS"
9499 am_save_LIBS
="$LIBS"
9500 if test -n "$LIBICONV_INCLUDE"; then
9501 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
9502 LIBS
="$LIBS $LIBICONV_LIBDIR"
9504 LIBS
="$LIBS -liconv"
9505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9506 /* end confdefs.h. */
9512 iconv_t cd = iconv_open("","");
9513 iconv(cd,NULL,NULL,NULL,NULL);
9519 if ac_fn_c_try_link
"$LINENO"; then :
9521 am_cv_func_iconv
=yes
9523 rm -f core conftest.err conftest.
$ac_objext \
9524 conftest
$ac_exeext conftest.
$ac_ext
9525 LIBS
="$am_save_LIBS"
9526 CPPFLAGS
="$am_save_CPPFLAGS"
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9531 $as_echo "$am_cv_func_iconv" >&6; }
9533 # Set the various flags based on the cache variables. We can't rely
9534 # on the flags to remain set from the above code, due to caching.
9536 if test "$am_cv_lib_iconv" = yes; then
9542 if test "$am_cv_use_build_libiconv" = yes; then
9543 LIBICONV
="$am_cv_build_libiconv_path"
9545 LIBICONV_INCLUDE
="$BUILD_LIBICONV_INCLUDE"
9547 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
9548 LIBS
="$LIBS $LIBICONV_LIBDIR $LIBICONV"
9550 if test "$am_cv_func_iconv" = yes; then
9552 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9555 $as_echo_n "checking for iconv declaration... " >&6; }
9556 if test "${am_cv_proto_iconv+set}" = set; then :
9557 $as_echo_n "(cached) " >&6
9560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9561 /* end confdefs.h. */
9569 #if defined(__STDC__) || defined(__cplusplus)
9570 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9583 if ac_fn_c_try_compile
"$LINENO"; then :
9584 am_cv_proto_iconv_arg1
=""
9586 am_cv_proto_iconv_arg1
="const"
9588 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9589 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);"
9592 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9594 }$am_cv_proto_iconv" >&5
9596 }$am_cv_proto_iconv" >&6; }
9598 cat >>confdefs.h
<<_ACEOF
9599 #define ICONV_CONST $am_cv_proto_iconv_arg1
9605 # GDB may fork/exec the iconv program to get the list of supported character
9606 # sets. Allow the user to specify where to find it.
9607 # There are several factors affecting the choice of option name:
9608 # - There is already --with-libiconv-prefix but we can't use it, it specifies
9609 # the build-time location of libiconv files.
9610 # - The program we need to find is iconv, which comes with glibc. The user
9611 # doesn't necessarily have libiconv installed. Therefore naming this
9612 # --with-libiconv-foo feels wrong.
9613 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
9614 # defined to work on directories not files (though it really doesn't know
9616 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
9617 # with --with-libiconv-prefix.
9618 # Putting these together is why the option name is --with-iconv-bin.
9621 # Check whether --with-iconv-bin was given.
9622 if test "${with_iconv_bin+set}" = set; then :
9623 withval
=$with_iconv_bin; iconv_bin
="${withval}"
9625 cat >>confdefs.h
<<_ACEOF
9626 #define ICONV_BIN "${iconv_bin}"
9630 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9631 if test "x$prefix" = xNONE
; then
9632 test_prefix
=/usr
/local
9637 test_prefix
=$exec_prefix
9640 case ${iconv_bin} in
9641 "${test_prefix}"|
"${test_prefix}/"*|\
9642 '${exec_prefix}'|
'${exec_prefix}/'*)
9647 cat >>confdefs.h
<<_ACEOF
9648 #define ICONV_BIN_RELOCATABLE $value
9656 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
9657 # There is a very specific comment in /usr/include/curses.h explaining that
9658 # termcap routines built into libcurses must not be used.
9660 # The symptoms we observed so far is GDB unexpectedly changing
9661 # the terminal settings when tgetent is called - this is particularly
9662 # visible as the output is missing carriage returns, and so rapidly
9663 # becomes very hard to read.
9665 # The readline configure script has already decided that libtermcap
9666 # was enough for its purposes, and so decided to build readline using
9667 # libtermcap. Since the TUI mode requires curses, building GDB with
9668 # TUI enabled results in both libraries to be used at the same time,
9669 # which is not allowed. This basically means that GDB with TUI is
9670 # broken on alpha-osf.
9674 if test x
"$enable_tui" = xyes
; then
9675 as_fn_error
"Building GDB with TUI mode is not supported on this host" "$LINENO" 5
9677 if test x
"$enable_tui" = xauto
; then
9683 # For the TUI, we need enhanced curses functionality.
9684 if test x
"$enable_tui" != xno
; then
9689 if test x
"$prefer_curses" = xyes
; then
9690 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9691 # curses library because the latter might not provide all the
9692 # functionality we need. However, this leads to problems on systems
9693 # where the linker searches /usr/local/lib, but the compiler doesn't
9694 # search /usr/local/include, if ncurses is installed in /usr/local. A
9695 # default installation of ncurses on alpha*-dec-osf* will lead to such
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
9698 $as_echo_n "checking for library containing waddstr... " >&6; }
9699 if test "${ac_cv_search_waddstr+set}" = set; then :
9700 $as_echo_n "(cached) " >&6
9702 ac_func_search_save_LIBS
=$LIBS
9703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9704 /* end confdefs.h. */
9706 /* Override any GCC internal prototype to avoid an error.
9707 Use char because int might match the return type of a GCC
9708 builtin and then its argument prototype would still apply. */
9721 for ac_lib
in '' ncurses cursesX curses
; do
9722 if test -z "$ac_lib"; then
9723 ac_res
="none required"
9726 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9728 if ac_fn_c_try_link
"$LINENO"; then :
9729 ac_cv_search_waddstr
=$ac_res
9731 rm -f core conftest.err conftest.
$ac_objext \
9733 if test "${ac_cv_search_waddstr+set}" = set; then :
9737 if test "${ac_cv_search_waddstr+set}" = set; then :
9740 ac_cv_search_waddstr
=no
9743 LIBS
=$ac_func_search_save_LIBS
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
9746 $as_echo "$ac_cv_search_waddstr" >&6; }
9747 ac_res
=$ac_cv_search_waddstr
9748 if test "$ac_res" != no
; then :
9749 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9754 if test "$ac_cv_search_waddstr" != no
; then
9759 # Check whether we should enable the TUI, but only do so if we really
9761 if test x
"$enable_tui" != xno
; then
9762 if test -d $srcdir/tui
; then
9763 if test "$curses_found" != no
; then
9764 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
9765 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
9766 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9767 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
9768 CONFIG_ALL
="${CONFIG_ALL} all-tui"
9769 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-tui"
9770 CONFIG_INSTALL
="${CONFIG_INSTALL} install-tui"
9771 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-tui"
9773 if test x
"$enable_tui" = xyes
; then
9774 as_fn_error
"no enhanced curses library found; disable TUI" "$LINENO" 5
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
9777 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9783 # Since GDB uses Readline, we need termcap functionality. In many
9784 # cases this will be provided by the curses library, but some systems
9785 # have a seperate termcap library, or no curses library at all.
9789 if test -d $srcdir/libtermcap
; then
9790 LIBS
="../libtermcap/libtermcap.a $LIBS"
9791 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
9794 ac_cv_search_tgetent
="none required"
9797 ac_cv_search_tgetent
="none required"
9798 CONFIG_OBS
="$CONFIG_OBS windows-termcap.o"
9802 # These are the libraries checked by Readline.
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9804 $as_echo_n "checking for library containing tgetent... " >&6; }
9805 if test "${ac_cv_search_tgetent+set}" = set; then :
9806 $as_echo_n "(cached) " >&6
9808 ac_func_search_save_LIBS
=$LIBS
9809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9810 /* end confdefs.h. */
9812 /* Override any GCC internal prototype to avoid an error.
9813 Use char because int might match the return type of a GCC
9814 builtin and then its argument prototype would still apply. */
9827 for ac_lib
in '' termcap tinfo curses ncurses
; do
9828 if test -z "$ac_lib"; then
9829 ac_res
="none required"
9832 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9834 if ac_fn_c_try_link
"$LINENO"; then :
9835 ac_cv_search_tgetent
=$ac_res
9837 rm -f core conftest.err conftest.
$ac_objext \
9839 if test "${ac_cv_search_tgetent+set}" = set; then :
9843 if test "${ac_cv_search_tgetent+set}" = set; then :
9846 ac_cv_search_tgetent
=no
9849 LIBS
=$ac_func_search_save_LIBS
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9852 $as_echo "$ac_cv_search_tgetent" >&6; }
9853 ac_res
=$ac_cv_search_tgetent
9854 if test "$ac_res" != no
; then :
9855 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9860 if test "$ac_cv_search_tgetent" = no
; then
9861 as_fn_error
"no termcap library found" "$LINENO" 5
9865 # Check whether --with-system-readline was given.
9866 if test "${with_system_readline+set}" = set; then :
9867 withval
=$with_system_readline;
9871 if test "$with_system_readline" = yes; then
9875 READLINE_TEXI_INCFLAG
=
9877 READLINE
='$(READLINE_DIR)/libreadline.a'
9878 READLINE_DEPS
='$(READLINE)'
9879 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
9880 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
9888 # Check whether --with-expat was given.
9889 if test "${with_expat+set}" = set; then :
9890 withval
=$with_expat;
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9896 $as_echo_n "checking whether to use expat... " >&6; }
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9898 $as_echo "$with_expat" >&6; }
9900 if test "${with_expat}" = no
; then
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9902 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9906 if test "X$prefix" = "XNONE"; then
9907 acl_final_prefix
="$ac_default_prefix"
9909 acl_final_prefix
="$prefix"
9911 if test "X$exec_prefix" = "XNONE"; then
9912 acl_final_exec_prefix
='${prefix}'
9914 acl_final_exec_prefix
="$exec_prefix"
9916 acl_save_prefix
="$prefix"
9917 prefix
="$acl_final_prefix"
9918 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9919 prefix
="$acl_save_prefix"
9922 # Check whether --with-gnu-ld was given.
9923 if test "${with_gnu_ld+set}" = set; then :
9924 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9929 # Prepare PATH_SEPARATOR.
9930 # The user is always right.
9931 if test "${PATH_SEPARATOR+set}" != set; then
9932 echo "#! /bin/sh" >conf$$.sh
9933 echo "exit 0" >>conf$$.sh
9935 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9943 if test "$GCC" = yes; then
9944 # Check if gcc -print-prog-name=ld gives a path.
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9946 $as_echo_n "checking for ld used by GCC... " >&6; }
9949 # gcc leaves a trailing carriage return which upsets mingw
9950 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9952 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9955 # Accept absolute paths.
9956 [\\/]* |
[A-Za-z
]:[\\/]*)
9957 re_direlt
='/[^/][^/]*/\.\./'
9958 # Canonicalize the path of ld
9959 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9960 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9961 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9963 test -z "$LD" && LD
="$ac_prog"
9966 # If it fails, then pretend we aren't using GCC.
9970 # If it is relative, then search for the first ld in PATH.
9974 elif test "$with_gnu_ld" = yes; then
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9976 $as_echo_n "checking for GNU ld... " >&6; }
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9979 $as_echo_n "checking for non-GNU ld... " >&6; }
9981 if test "${acl_cv_path_LD+set}" = set; then :
9982 $as_echo_n "(cached) " >&6
9984 if test -z "$LD"; then
9985 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9986 for ac_dir
in $PATH; do
9987 test -z "$ac_dir" && ac_dir
=.
9988 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9989 acl_cv_path_LD
="$ac_dir/$ac_prog"
9990 # Check to see if the program is GNU ld. I'd rather use --version,
9991 # but apparently some GNU ld's only accept -v.
9992 # Break only if it was the GNU/non-GNU ld that we prefer.
9993 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9994 test "$with_gnu_ld" != no
&& break
9996 test "$with_gnu_ld" != yes && break
10002 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10006 LD
="$acl_cv_path_LD"
10007 if test -n "$LD"; then
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10009 $as_echo "$LD" >&6; }
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10012 $as_echo "no" >&6; }
10014 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10016 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10017 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10018 $as_echo_n "(cached) " >&6
10020 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10021 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10022 acl_cv_prog_gnu_ld
=yes
10024 acl_cv_prog_gnu_ld
=no
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10028 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10029 with_gnu_ld
=$acl_cv_prog_gnu_ld
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10034 $as_echo_n "checking for shared library run path origin... " >&6; }
10035 if test "${acl_cv_rpath+set}" = set; then :
10036 $as_echo_n "(cached) " >&6
10039 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10040 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10042 rm -f .
/conftest.sh
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10047 $as_echo "$acl_cv_rpath" >&6; }
10049 libext
="$acl_cv_libext"
10050 shlibext
="$acl_cv_shlibext"
10051 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10052 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10053 hardcode_direct
="$acl_cv_hardcode_direct"
10054 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10055 # Check whether --enable-rpath was given.
10056 if test "${enable_rpath+set}" = set; then :
10057 enableval
=$enable_rpath; :
10073 acl_save_prefix
="$prefix"
10074 prefix
="$acl_final_prefix"
10075 acl_save_exec_prefix
="$exec_prefix"
10076 exec_prefix
="$acl_final_exec_prefix"
10078 eval additional_includedir
=\"$includedir\"
10079 eval additional_libdir
=\"$libdir\"
10081 exec_prefix
="$acl_save_exec_prefix"
10082 prefix
="$acl_save_prefix"
10085 # Check whether --with-libexpat-prefix was given.
10086 if test "${with_libexpat_prefix+set}" = set; then :
10087 withval
=$with_libexpat_prefix;
10088 if test "X$withval" = "Xno"; then
10091 if test "X$withval" = "X"; then
10093 acl_save_prefix
="$prefix"
10094 prefix
="$acl_final_prefix"
10095 acl_save_exec_prefix
="$exec_prefix"
10096 exec_prefix
="$acl_final_exec_prefix"
10098 eval additional_includedir
=\"$includedir\"
10099 eval additional_libdir
=\"$libdir\"
10101 exec_prefix
="$acl_save_exec_prefix"
10102 prefix
="$acl_save_prefix"
10105 additional_includedir
="$withval/include"
10106 additional_libdir
="$withval/lib"
10117 names_already_handled
=
10118 names_next_round
='expat '
10119 while test -n "$names_next_round"; do
10120 names_this_round
="$names_next_round"
10122 for name
in $names_this_round; do
10124 for n
in $names_already_handled; do
10125 if test "$n" = "$name"; then
10126 already_handled
=yes
10130 if test -z "$already_handled"; then
10131 names_already_handled
="$names_already_handled $name"
10132 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10133 eval value
=\"\
$HAVE_LIB$uppername\"
10134 if test -n "$value"; then
10135 if test "$value" = yes; then
10136 eval value
=\"\
$LIB$uppername\"
10137 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
10138 eval value
=\"\
$LTLIB$uppername\"
10139 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10148 if test $use_additional = yes; then
10149 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10150 found_dir
="$additional_libdir"
10151 found_so
="$additional_libdir/lib$name.$shlibext"
10152 if test -f "$additional_libdir/lib$name.la"; then
10153 found_la
="$additional_libdir/lib$name.la"
10156 if test -f "$additional_libdir/lib$name.$libext"; then
10157 found_dir
="$additional_libdir"
10158 found_a
="$additional_libdir/lib$name.$libext"
10159 if test -f "$additional_libdir/lib$name.la"; then
10160 found_la
="$additional_libdir/lib$name.la"
10165 if test "X$found_dir" = "X"; then
10166 for x
in $LDFLAGS $LTLIBEXPAT; do
10168 acl_save_prefix
="$prefix"
10169 prefix
="$acl_final_prefix"
10170 acl_save_exec_prefix
="$exec_prefix"
10171 exec_prefix
="$acl_final_exec_prefix"
10173 exec_prefix
="$acl_save_exec_prefix"
10174 prefix
="$acl_save_prefix"
10178 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10179 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10181 found_so
="$dir/lib$name.$shlibext"
10182 if test -f "$dir/lib$name.la"; then
10183 found_la
="$dir/lib$name.la"
10186 if test -f "$dir/lib$name.$libext"; then
10188 found_a
="$dir/lib$name.$libext"
10189 if test -f "$dir/lib$name.la"; then
10190 found_la
="$dir/lib$name.la"
10196 if test "X$found_dir" != "X"; then
10201 if test "X$found_dir" != "X"; then
10202 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10203 if test "X$found_so" != "X"; then
10204 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10205 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10208 for x
in $ltrpathdirs; do
10209 if test "X$x" = "X$found_dir"; then
10214 if test -z "$haveit"; then
10215 ltrpathdirs
="$ltrpathdirs $found_dir"
10217 if test "$hardcode_direct" = yes; then
10218 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10220 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10221 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10223 for x
in $rpathdirs; do
10224 if test "X$x" = "X$found_dir"; then
10229 if test -z "$haveit"; then
10230 rpathdirs
="$rpathdirs $found_dir"
10234 for x
in $LDFLAGS $LIBEXPAT; do
10236 acl_save_prefix
="$prefix"
10237 prefix
="$acl_final_prefix"
10238 acl_save_exec_prefix
="$exec_prefix"
10239 exec_prefix
="$acl_final_exec_prefix"
10241 exec_prefix
="$acl_save_exec_prefix"
10242 prefix
="$acl_save_prefix"
10244 if test "X$x" = "X-L$found_dir"; then
10249 if test -z "$haveit"; then
10250 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10252 if test "$hardcode_minus_L" != no
; then
10253 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10255 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10261 if test "X$found_a" != "X"; then
10262 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10264 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10267 additional_includedir
=
10268 case "$found_dir" in
10270 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10271 additional_includedir
="$basedir/include"
10274 if test "X$additional_includedir" != "X"; then
10275 if test "X$additional_includedir" != "X/usr/include"; then
10277 if test "X$additional_includedir" = "X/usr/local/include"; then
10278 if test -n "$GCC"; then
10280 linux
*) haveit
=yes;;
10284 if test -z "$haveit"; then
10285 for x
in $CPPFLAGS $INCEXPAT; do
10287 acl_save_prefix
="$prefix"
10288 prefix
="$acl_final_prefix"
10289 acl_save_exec_prefix
="$exec_prefix"
10290 exec_prefix
="$acl_final_exec_prefix"
10292 exec_prefix
="$acl_save_exec_prefix"
10293 prefix
="$acl_save_prefix"
10295 if test "X$x" = "X-I$additional_includedir"; then
10300 if test -z "$haveit"; then
10301 if test -d "$additional_includedir"; then
10302 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10308 if test -n "$found_la"; then
10309 save_libdir
="$libdir"
10310 case "$found_la" in
10311 */* |
*\\*) .
"$found_la" ;;
10312 *) .
"./$found_la" ;;
10314 libdir
="$save_libdir"
10315 for dep
in $dependency_libs; do
10318 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10319 if test "X$additional_libdir" != "X/usr/lib"; then
10321 if test "X$additional_libdir" = "X/usr/local/lib"; then
10322 if test -n "$GCC"; then
10324 linux
*) haveit
=yes;;
10328 if test -z "$haveit"; then
10330 for x
in $LDFLAGS $LIBEXPAT; do
10332 acl_save_prefix
="$prefix"
10333 prefix
="$acl_final_prefix"
10334 acl_save_exec_prefix
="$exec_prefix"
10335 exec_prefix
="$acl_final_exec_prefix"
10337 exec_prefix
="$acl_save_exec_prefix"
10338 prefix
="$acl_save_prefix"
10340 if test "X$x" = "X-L$additional_libdir"; then
10345 if test -z "$haveit"; then
10346 if test -d "$additional_libdir"; then
10347 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
10351 for x
in $LDFLAGS $LTLIBEXPAT; do
10353 acl_save_prefix
="$prefix"
10354 prefix
="$acl_final_prefix"
10355 acl_save_exec_prefix
="$exec_prefix"
10356 exec_prefix
="$acl_final_exec_prefix"
10358 exec_prefix
="$acl_save_exec_prefix"
10359 prefix
="$acl_save_prefix"
10361 if test "X$x" = "X-L$additional_libdir"; then
10366 if test -z "$haveit"; then
10367 if test -d "$additional_libdir"; then
10368 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10375 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10376 if test "$enable_rpath" != no
; then
10378 for x
in $rpathdirs; do
10379 if test "X$x" = "X$dir"; then
10384 if test -z "$haveit"; then
10385 rpathdirs
="$rpathdirs $dir"
10388 for x
in $ltrpathdirs; do
10389 if test "X$x" = "X$dir"; then
10394 if test -z "$haveit"; then
10395 ltrpathdirs
="$ltrpathdirs $dir"
10400 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10403 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10406 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10407 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10413 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10414 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10420 if test "X$rpathdirs" != "X"; then
10421 if test -n "$hardcode_libdir_separator"; then
10423 for found_dir
in $rpathdirs; do
10424 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10426 acl_save_libdir
="$libdir"
10428 eval flag
=\"$hardcode_libdir_flag_spec\"
10429 libdir
="$acl_save_libdir"
10430 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10432 for found_dir
in $rpathdirs; do
10433 acl_save_libdir
="$libdir"
10434 libdir
="$found_dir"
10435 eval flag
=\"$hardcode_libdir_flag_spec\"
10436 libdir
="$acl_save_libdir"
10437 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10441 if test "X$ltrpathdirs" != "X"; then
10442 for found_dir
in $ltrpathdirs; do
10443 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10448 ac_save_CPPFLAGS
="$CPPFLAGS"
10450 for element
in $INCEXPAT; do
10452 for x
in $CPPFLAGS; do
10454 acl_save_prefix
="$prefix"
10455 prefix
="$acl_final_prefix"
10456 acl_save_exec_prefix
="$exec_prefix"
10457 exec_prefix
="$acl_final_exec_prefix"
10459 exec_prefix
="$acl_save_exec_prefix"
10460 prefix
="$acl_save_prefix"
10462 if test "X$x" = "X$element"; then
10467 if test -z "$haveit"; then
10468 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
10474 $as_echo_n "checking for libexpat... " >&6; }
10475 if test "${ac_cv_libexpat+set}" = set; then :
10476 $as_echo_n "(cached) " >&6
10479 ac_save_LIBS
="$LIBS"
10480 LIBS
="$LIBS $LIBEXPAT"
10481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10482 /* end confdefs.h. */
10487 XML_Parser p = XML_ParserCreate (0);
10492 if ac_fn_c_try_link
"$LINENO"; then :
10497 rm -f core conftest.err conftest.
$ac_objext \
10498 conftest
$ac_exeext conftest.
$ac_ext
10499 LIBS
="$ac_save_LIBS"
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
10503 $as_echo "$ac_cv_libexpat" >&6; }
10504 if test "$ac_cv_libexpat" = yes; then
10507 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
10510 $as_echo_n "checking how to link with libexpat... " >&6; }
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
10512 $as_echo "$LIBEXPAT" >&6; }
10515 CPPFLAGS
="$ac_save_CPPFLAGS"
10525 if test "$HAVE_LIBEXPAT" != yes; then
10526 if test "$with_expat" = yes; then
10527 as_fn_error
"expat is missing or unusable" "$LINENO" 5
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
10530 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
10534 LIBS
="$LIBS $LIBEXPAT"
10535 for ac_func
in XML_StopParser
10537 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
10538 if test "x$ac_cv_func_XML_StopParser" = x
""yes; then :
10539 cat >>confdefs.h
<<_ACEOF
10540 #define HAVE_XML_STOPPARSER 1
10555 # Check whether --with-python was given.
10556 if test "${with_python+set}" = set; then :
10557 withval
=$with_python;
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10563 $as_echo_n "checking whether to use python... " >&6; }
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10565 $as_echo "$with_python" >&6; }
10567 if test "${with_python}" = no
; then
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10569 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10572 case "${with_python}" in
10574 if test -d ${with_python}; then
10575 # Assume the python binary is ${with_python}/bin/python.
10576 python_prog
="${with_python}/bin/python"
10578 # If python does not exit ${with_python}/bin, then try in
10579 # ${with_python}. On Windows/MinGW, this is where the Python
10581 if test ! -x "${python_prog}"; then
10582 python_prog
="${with_python}/python"
10585 if test ! -x "${python_prog}"; then
10586 # Fall back to gdb 7.0/7.1 behaviour.
10587 python_prog
=missing
10588 python_prefix
=${with_python}
10590 elif test -x "${with_python}"; then
10591 # While we can't run python compiled for $host (unless host == build),
10592 # the user could write a script that provides the needed information,
10593 # so we support that.
10594 python_prog
=${with_python}
10597 as_fn_error
"invalid value for --with-python" "$LINENO" 5
10601 # Disallow --with-python=foo/bar.
10602 as_fn_error
"invalid value for --with-python" "$LINENO" 5
10605 # The user has either specified auto, yes, or the name of the python
10606 # program assumed to be in $PATH.
10608 case "${with_python}" in
10610 if test ${build} = ${host}; then
10611 # Extract the first word of "python", so it can be a program name with args.
10612 set dummy python
; ac_word
=$2
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10614 $as_echo_n "checking for $ac_word... " >&6; }
10615 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10616 $as_echo_n "(cached) " >&6
10618 case $python_prog_path in
10620 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10623 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10624 for as_dir
in $PATH
10627 test -z "$as_dir" && as_dir
=.
10628 for ac_exec_ext
in '' $ac_executable_extensions; do
10629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10630 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10638 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10642 python_prog_path
=$ac_cv_path_python_prog_path
10643 if test -n "$python_prog_path"; then
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10645 $as_echo "$python_prog_path" >&6; }
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10648 $as_echo "no" >&6; }
10652 if test "${python_prog_path}" = missing
; then
10653 python_prog
=missing
10655 python_prog
=${python_prog_path}
10658 # Not much we can do except assume the cross-compiler will find the
10660 python_prog
=missing
10664 # While we can't run python compiled for $host (unless host == build),
10665 # the user could write a script that provides the needed information,
10666 # so we support that.
10667 python_prog
="${with_python}"
10668 # Extract the first word of "${python_prog}", so it can be a program name with args.
10669 set dummy
${python_prog}; ac_word
=$2
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10671 $as_echo_n "checking for $ac_word... " >&6; }
10672 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10673 $as_echo_n "(cached) " >&6
10675 case $python_prog_path in
10677 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10680 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10681 for as_dir
in $PATH
10684 test -z "$as_dir" && as_dir
=.
10685 for ac_exec_ext
in '' $ac_executable_extensions; do
10686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10687 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10695 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10699 python_prog_path
=$ac_cv_path_python_prog_path
10700 if test -n "$python_prog_path"; then
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10702 $as_echo "$python_prog_path" >&6; }
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10705 $as_echo "no" >&6; }
10709 if test "${python_prog_path}" = missing
; then
10710 as_fn_error
"unable to find python program ${python_prog}" "$LINENO" 5
10716 if test "${python_prog}" != missing
; then
10717 # We have a python program to use, but it may be too old.
10718 # Don't flag an error for --with-python=auto (the default).
10719 have_python_config
=yes
10720 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
10721 if test $?
!= 0; then
10722 have_python_config
=failed
10723 if test "${with_python}" != auto
; then
10724 as_fn_error
"failure running python-config --includes" "$LINENO" 5
10727 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10728 if test $?
!= 0; then
10729 have_python_config
=failed
10730 if test "${with_python}" != auto
; then
10731 as_fn_error
"failure running python-config --ldflags" "$LINENO" 5
10734 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10735 if test $?
!= 0; then
10736 have_python_config
=failed
10737 if test "${with_python}" != auto
; then
10738 as_fn_error
"failure running python-config --exec-prefix" "$LINENO" 5
10742 # We do not have a python executable we can use to determine where
10743 # to find the Python headers and libs. We cannot guess the include
10744 # path from the python_prefix either, because that include path
10745 # depends on the Python version. So, there is nothing much we can
10746 # do except assume that the compiler will be able to find those files.
10749 have_python_config
=no
10752 # If we have python-config, only try the configuration it provides.
10753 # Otherwise fallback on the old way of trying different versions of
10757 if test "${have_python_config}" = yes; then
10758 # Determine the Python version by extracting "-lpython<version>"
10759 # part of the python_libs. <version> is usually X.Y with X and Y
10760 # being decimal numbers, but can also be XY (seen on Windows).
10762 # The extraction is performed using sed with a regular expression.
10763 # Initially, the regexp used was using the '?' quantifier to make
10764 # the dot in the version number optional. Unfortunately, this
10765 # does not work with non-GNU versions of sed because, because of
10766 # what looks like a limitation (the '?' quantifier does not work
10767 # with back-references). We work around this limitation by using
10768 # the '*' quantifier instead. It means that, in theory, we might
10769 # match unexpected version strings such as "-lpython2..7", but
10770 # this seems unlikely in practice. And even if that happens,
10771 # an error will be triggered later on, when checking that version
10773 python_version
=`echo " ${python_libs} " \
10774 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
10775 case "${python_version}" in
10778 version
=${python_version}
10780 new_CPPFLAGS
=${python_includes}
10781 new_LIBS
=${python_libs}
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10783 $as_echo_n "checking for ${version}... " >&6; }
10784 save_CPPFLAGS
=$CPPFLAGS
10786 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10787 LIBS
="$LIBS $new_LIBS"
10788 found_usable_python
=no
10789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10790 /* end confdefs.h. */
10791 #include "Python.h"
10800 if ac_fn_c_try_link
"$LINENO"; then :
10801 have_libpython
=${version}
10802 found_usable_python
=yes
10803 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10804 PYTHON_LIBS
=$new_LIBS
10806 rm -f core conftest.err conftest.
$ac_objext \
10807 conftest
$ac_exeext conftest.
$ac_ext
10808 CPPFLAGS
=$save_CPPFLAGS
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10811 $as_echo "${found_usable_python}" >&6; }
10815 as_fn_error
"unable to determine python version from ${python_libs}" "$LINENO" 5
10818 elif test "${have_python_config}" != failed
; then
10819 if test "${have_libpython}" = no
; then
10823 new_CPPFLAGS
=${python_includes}
10824 new_LIBS
="${python_libs} -lpython2.7"
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10826 $as_echo_n "checking for ${version}... " >&6; }
10827 save_CPPFLAGS
=$CPPFLAGS
10829 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10830 LIBS
="$LIBS $new_LIBS"
10831 found_usable_python
=no
10832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10833 /* end confdefs.h. */
10834 #include "Python.h"
10843 if ac_fn_c_try_link
"$LINENO"; then :
10844 have_libpython
=${version}
10845 found_usable_python
=yes
10846 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10847 PYTHON_LIBS
=$new_LIBS
10849 rm -f core conftest.err conftest.
$ac_objext \
10850 conftest
$ac_exeext conftest.
$ac_ext
10851 CPPFLAGS
=$save_CPPFLAGS
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10854 $as_echo "${found_usable_python}" >&6; }
10857 if test "${have_libpython}" = no
; then
10861 new_CPPFLAGS
=${python_includes}
10862 new_LIBS
="${python_libs} -lpython2.6"
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10864 $as_echo_n "checking for ${version}... " >&6; }
10865 save_CPPFLAGS
=$CPPFLAGS
10867 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10868 LIBS
="$LIBS $new_LIBS"
10869 found_usable_python
=no
10870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10871 /* end confdefs.h. */
10872 #include "Python.h"
10881 if ac_fn_c_try_link
"$LINENO"; then :
10882 have_libpython
=${version}
10883 found_usable_python
=yes
10884 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10885 PYTHON_LIBS
=$new_LIBS
10887 rm -f core conftest.err conftest.
$ac_objext \
10888 conftest
$ac_exeext conftest.
$ac_ext
10889 CPPFLAGS
=$save_CPPFLAGS
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10892 $as_echo "${found_usable_python}" >&6; }
10895 if test ${have_libpython} = no
; then
10899 new_CPPFLAGS
=${python_includes}
10900 new_LIBS
="${python_libs} -lpython2.5"
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10902 $as_echo_n "checking for ${version}... " >&6; }
10903 save_CPPFLAGS
=$CPPFLAGS
10905 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10906 LIBS
="$LIBS $new_LIBS"
10907 found_usable_python
=no
10908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10909 /* end confdefs.h. */
10910 #include "Python.h"
10919 if ac_fn_c_try_link
"$LINENO"; then :
10920 have_libpython
=${version}
10921 found_usable_python
=yes
10922 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10923 PYTHON_LIBS
=$new_LIBS
10925 rm -f core conftest.err conftest.
$ac_objext \
10926 conftest
$ac_exeext conftest.
$ac_ext
10927 CPPFLAGS
=$save_CPPFLAGS
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10930 $as_echo "${found_usable_python}" >&6; }
10933 if test ${have_libpython} = no
; then
10937 new_CPPFLAGS
=${python_includes}
10938 new_LIBS
="${python_libs} -lpython2.4"
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10940 $as_echo_n "checking for ${version}... " >&6; }
10941 save_CPPFLAGS
=$CPPFLAGS
10943 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10944 LIBS
="$LIBS $new_LIBS"
10945 found_usable_python
=no
10946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10947 /* end confdefs.h. */
10948 #include "Python.h"
10957 if ac_fn_c_try_link
"$LINENO"; then :
10958 have_libpython
=${version}
10959 found_usable_python
=yes
10960 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10961 PYTHON_LIBS
=$new_LIBS
10963 rm -f core conftest.err conftest.
$ac_objext \
10964 conftest
$ac_exeext conftest.
$ac_ext
10965 CPPFLAGS
=$save_CPPFLAGS
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10968 $as_echo "${found_usable_python}" >&6; }
10972 if test "${have_libpython}" = python2.7
-o "${have_libpython}" = python27
; then
10974 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
10976 elif test "${have_libpython}" = python2.6
-o "${have_libpython}" = python26
; then
10978 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
10980 elif test "${have_libpython}" = python2.5
-o "${have_libpython}" = python25
; then
10982 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
10984 elif test "${have_libpython}" = python2.4
-o "${have_libpython}" = python24
; then
10986 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
10990 if test "${have_libpython}" = no
; then
10991 case "${with_python}" in
10993 as_fn_error
"python is missing or unusable" "$LINENO" 5
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10997 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
11000 as_fn_error
"no usable python found at ${with_python}" "$LINENO" 5
11004 if test -n "${python_prefix}"; then
11006 cat >>confdefs.h
<<_ACEOF
11007 #define WITH_PYTHON_PATH "${python_prefix}"
11011 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
11012 if test "x$prefix" = xNONE
; then
11013 test_prefix
=/usr
/local
11015 test_prefix
=$prefix
11018 test_prefix
=$exec_prefix
11021 case ${python_prefix} in
11022 "${test_prefix}"|
"${test_prefix}/"*|\
11023 '${exec_prefix}'|
'${exec_prefix}/'*)
11028 cat >>confdefs.h
<<_ACEOF
11029 #define PYTHON_PATH_RELOCATABLE $value
11037 if test "${have_libpython}" != no
; then
11039 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
11041 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
11042 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
11043 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
11044 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
11045 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
11047 # Flags needed to compile Python code (taken from python-config --cflags).
11048 # We cannot call python-config directly because it will output whatever was
11049 # used when compiling the Python interpreter itself, including flags which
11050 # would make the python-related objects be compiled differently from the
11051 # rest of GDB (e.g., -O2 and -fPIC).
11052 if test "${GCC}" = yes; then
11053 tentative_python_cflags
="-fno-strict-aliasing -DNDEBUG -fwrapv"
11056 if test "x${tentative_python_cflags}" != x
; then
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
11058 $as_echo_n "checking compiler flags for python code... " >&6; }
11059 for flag
in ${tentative_python_cflags}; do
11060 # Check that the compiler accepts it
11061 saved_CFLAGS
="$CFLAGS"
11062 CFLAGS
="$CFLAGS $flag"
11063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11064 /* end confdefs.h. */
11074 if ac_fn_c_try_compile
"$LINENO"; then :
11075 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
11077 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11078 CFLAGS
="$saved_CFLAGS"
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
11081 $as_echo "${PYTHON_CFLAGS}" >&6; }
11084 # On IRIX, type siginfo is not defined. Instead, sys/siginfo.h provides:
11086 # #define siginfo __siginfo
11088 # The problem is that including Python causes some XOPEN macros to be
11089 # unilaterally defined, and that in turn causes _SGIAPI to evaluate
11090 # to false. So, we work around this issue by defining siginfo ourself
11091 # though the command-line.
11092 case "$gdb_host" in
11093 irix
*) if test "${GCC}" = yes; then
11094 CPPFLAGS
="$CPPFLAGS -Dsiginfo=__siginfo"
11099 # Even if Python support is not compiled in, we need to have these files
11101 CONFIG_OBS
="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
11102 CONFIG_SRCS
="$CONFIG_SRCS python/python.c python/py-value.c \
11103 python/py-prettyprint.c python/py-auto-load.c"
11109 # ------------------------- #
11110 # Checks for header files. #
11111 # ------------------------- #
11113 ac_header_dirent
=no
11114 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
11115 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
11117 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
11118 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
11119 $as_echo_n "(cached) " >&6
11121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11122 /* end confdefs.h. */
11123 #include <sys/types.h>
11135 if ac_fn_c_try_compile
"$LINENO"; then :
11136 eval "$as_ac_Header=yes"
11138 eval "$as_ac_Header=no"
11140 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11142 eval ac_res
=\$
$as_ac_Header
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11144 $as_echo "$ac_res" >&6; }
11145 eval as_val
=\$
$as_ac_Header
11146 if test "x$as_val" = x
""yes; then :
11147 cat >>confdefs.h
<<_ACEOF
11148 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11151 ac_header_dirent
=$ac_hdr; break
11155 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11156 if test $ac_header_dirent = dirent.h
; then
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11158 $as_echo_n "checking for library containing opendir... " >&6; }
11159 if test "${ac_cv_search_opendir+set}" = set; then :
11160 $as_echo_n "(cached) " >&6
11162 ac_func_search_save_LIBS
=$LIBS
11163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11164 /* end confdefs.h. */
11166 /* Override any GCC internal prototype to avoid an error.
11167 Use char because int might match the return type of a GCC
11168 builtin and then its argument prototype would still apply. */
11181 for ac_lib
in '' dir
; do
11182 if test -z "$ac_lib"; then
11183 ac_res
="none required"
11186 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11188 if ac_fn_c_try_link
"$LINENO"; then :
11189 ac_cv_search_opendir
=$ac_res
11191 rm -f core conftest.err conftest.
$ac_objext \
11193 if test "${ac_cv_search_opendir+set}" = set; then :
11197 if test "${ac_cv_search_opendir+set}" = set; then :
11200 ac_cv_search_opendir
=no
11202 rm conftest.
$ac_ext
11203 LIBS
=$ac_func_search_save_LIBS
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11206 $as_echo "$ac_cv_search_opendir" >&6; }
11207 ac_res
=$ac_cv_search_opendir
11208 if test "$ac_res" != no
; then :
11209 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11215 $as_echo_n "checking for library containing opendir... " >&6; }
11216 if test "${ac_cv_search_opendir+set}" = set; then :
11217 $as_echo_n "(cached) " >&6
11219 ac_func_search_save_LIBS
=$LIBS
11220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11221 /* end confdefs.h. */
11223 /* Override any GCC internal prototype to avoid an error.
11224 Use char because int might match the return type of a GCC
11225 builtin and then its argument prototype would still apply. */
11238 for ac_lib
in '' x
; do
11239 if test -z "$ac_lib"; then
11240 ac_res
="none required"
11243 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11245 if ac_fn_c_try_link
"$LINENO"; then :
11246 ac_cv_search_opendir
=$ac_res
11248 rm -f core conftest.err conftest.
$ac_objext \
11250 if test "${ac_cv_search_opendir+set}" = set; then :
11254 if test "${ac_cv_search_opendir+set}" = set; then :
11257 ac_cv_search_opendir
=no
11259 rm conftest.
$ac_ext
11260 LIBS
=$ac_func_search_save_LIBS
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11263 $as_echo "$ac_cv_search_opendir" >&6; }
11264 ac_res
=$ac_cv_search_opendir
11265 if test "$ac_res" != no
; then :
11266 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11273 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11274 if test "${ac_cv_header_stat_broken+set}" = set; then :
11275 $as_echo_n "(cached) " >&6
11277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11278 /* end confdefs.h. */
11279 #include <sys/types.h>
11280 #include <sys/stat.h>
11282 #if defined S_ISBLK && defined S_IFDIR
11283 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11286 #if defined S_ISBLK && defined S_IFCHR
11287 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11290 #if defined S_ISLNK && defined S_IFREG
11291 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11294 #if defined S_ISSOCK && defined S_IFREG
11295 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11299 if ac_fn_c_try_compile
"$LINENO"; then :
11300 ac_cv_header_stat_broken
=no
11302 ac_cv_header_stat_broken
=yes
11304 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11307 $as_echo "$ac_cv_header_stat_broken" >&6; }
11308 if test $ac_cv_header_stat_broken = yes; then
11310 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11315 $as_echo_n "checking for ANSI C header files... " >&6; }
11316 if test "${ac_cv_header_stdc+set}" = set; then :
11317 $as_echo_n "(cached) " >&6
11319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11320 /* end confdefs.h. */
11321 #include <stdlib.h>
11322 #include <stdarg.h>
11323 #include <string.h>
11334 if ac_fn_c_try_compile
"$LINENO"; then :
11335 ac_cv_header_stdc
=yes
11337 ac_cv_header_stdc
=no
11339 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11341 if test $ac_cv_header_stdc = yes; then
11342 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11344 /* end confdefs.h. */
11345 #include <string.h>
11348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11349 $EGREP "memchr" >/dev
/null
2>&1; then :
11352 ac_cv_header_stdc
=no
11358 if test $ac_cv_header_stdc = yes; then
11359 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11361 /* end confdefs.h. */
11362 #include <stdlib.h>
11365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11366 $EGREP "free" >/dev
/null
2>&1; then :
11369 ac_cv_header_stdc
=no
11375 if test $ac_cv_header_stdc = yes; then
11376 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11377 if test "$cross_compiling" = yes; then :
11380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11381 /* end confdefs.h. */
11383 #include <stdlib.h>
11384 #if ((' ' & 0x0FF) == 0x020)
11385 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11386 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11388 # define ISLOWER(c) \
11389 (('a' <= (c) && (c) <= 'i') \
11390 || ('j' <= (c) && (c) <= 'r') \
11391 || ('s' <= (c) && (c) <= 'z'))
11392 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11395 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11400 for (i = 0; i < 256; i++)
11401 if (XOR (islower (i), ISLOWER (i))
11402 || toupper (i) != TOUPPER (i))
11407 if ac_fn_c_try_run
"$LINENO"; then :
11410 ac_cv_header_stdc
=no
11412 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11413 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11419 $as_echo "$ac_cv_header_stdc" >&6; }
11420 if test $ac_cv_header_stdc = yes; then
11422 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11426 # elf_hp.h is for HP/UX 64-bit shared library support.
11427 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
11428 # unconditionally, so what's the point in checking these?
11429 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
11430 thread_db.h gnu
/libc-version.h signal.h stddef.h \
11431 stdlib.h string.h memory.h
strings.h sys
/fault.h \
11432 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
11433 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
11434 sys
/reg.h sys
/debugreg.h sys
/select.h sys
/syscall.h \
11435 sys
/types.h sys
/wait.h
wait.h termios.h termio.h \
11436 sgtty.h unistd.h elf_hp.h ctype.h
time.h locale.h
11438 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11439 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11440 eval as_val
=\$
$as_ac_Header
11441 if test "x$as_val" = x
""yes; then :
11442 cat >>confdefs.h
<<_ACEOF
11443 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11450 for ac_header
in link.h
11452 ac_fn_c_check_header_compile
"$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
11453 # include <sys/types.h>
11456 # include <nlist.h>
11460 if test "x$ac_cv_header_link_h" = x
""yes; then :
11461 cat >>confdefs.h
<<_ACEOF
11462 #define HAVE_LINK_H 1
11469 for ac_header
in sys
/proc.h
11471 ac_fn_c_check_header_compile
"$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
11472 # include <sys/param.h>
11476 if test "x$ac_cv_header_sys_proc_h" = x
""yes; then :
11477 cat >>confdefs.h
<<_ACEOF
11478 #define HAVE_SYS_PROC_H 1
11485 for ac_header
in sys
/user.h
11487 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
11488 # include <sys/param.h>
11492 if test "x$ac_cv_header_sys_user_h" = x
""yes; then :
11493 cat >>confdefs.h
<<_ACEOF
11494 #define HAVE_SYS_USER_H 1
11502 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
11503 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
11504 # think that we don't have <curses.h> if we're using GCC.
11507 if test "$GCC" = yes; then
11509 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
11513 for ac_header
in curses.h cursesX.h ncurses.h ncurses
/ncurses.h ncurses
/term.h
11515 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11516 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11517 eval as_val
=\$
$as_ac_Header
11518 if test "x$as_val" = x
""yes; then :
11519 cat >>confdefs.h
<<_ACEOF
11520 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11527 for ac_header
in term.h
11529 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
11530 # include <curses.h>
11534 if test "x$ac_cv_header_term_h" = x
""yes; then :
11535 cat >>confdefs.h
<<_ACEOF
11536 #define HAVE_TERM_H 1
11544 # ------------------------- #
11545 # Checks for declarations. #
11546 # ------------------------- #
11548 ac_fn_c_check_decl
"$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
11549 if test "x$ac_cv_have_decl_free" = x
""yes; then :
11555 cat >>confdefs.h
<<_ACEOF
11556 #define HAVE_DECL_FREE $ac_have_decl
11558 ac_fn_c_check_decl
"$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
11559 if test "x$ac_cv_have_decl_malloc" = x
""yes; then :
11565 cat >>confdefs.h
<<_ACEOF
11566 #define HAVE_DECL_MALLOC $ac_have_decl
11568 ac_fn_c_check_decl
"$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
11569 if test "x$ac_cv_have_decl_realloc" = x
""yes; then :
11575 cat >>confdefs.h
<<_ACEOF
11576 #define HAVE_DECL_REALLOC $ac_have_decl
11578 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
11579 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
11585 cat >>confdefs.h
<<_ACEOF
11586 #define HAVE_DECL_STRERROR $ac_have_decl
11588 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
11589 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
11595 cat >>confdefs.h
<<_ACEOF
11596 #define HAVE_DECL_STRSTR $ac_have_decl
11598 ac_fn_c_check_decl
"$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
11599 if test "x$ac_cv_have_decl_getopt" = x
""yes; then :
11605 cat >>confdefs.h
<<_ACEOF
11606 #define HAVE_DECL_GETOPT $ac_have_decl
11608 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11609 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
11615 cat >>confdefs.h
<<_ACEOF
11616 #define HAVE_DECL_SNPRINTF $ac_have_decl
11618 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
11619 if test "x$ac_cv_have_decl_vsnprintf" = x
""yes; then :
11625 cat >>confdefs.h
<<_ACEOF
11626 #define HAVE_DECL_VSNPRINTF $ac_have_decl
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11631 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11632 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
11633 $as_echo_n "(cached) " >&6
11635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11636 /* end confdefs.h. */
11637 #include <locale.h>
11646 if ac_fn_c_try_link
"$LINENO"; then :
11647 am_cv_val_LC_MESSAGES
=yes
11649 am_cv_val_LC_MESSAGES
=no
11651 rm -f core conftest.err conftest.
$ac_objext \
11652 conftest
$ac_exeext conftest.
$ac_ext
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11655 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11656 if test $am_cv_val_LC_MESSAGES = yes; then
11658 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11663 # ----------------------- #
11664 # Checks for structures. #
11665 # ----------------------- #
11667 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
11668 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then :
11670 cat >>confdefs.h
<<_ACEOF
11671 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11676 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
11677 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then :
11679 cat >>confdefs.h
<<_ACEOF
11680 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11687 # ------------------ #
11688 # Checks for types. #
11689 # ------------------ #
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11692 $as_echo_n "checking return type of signal handlers... " >&6; }
11693 if test "${ac_cv_type_signal+set}" = set; then :
11694 $as_echo_n "(cached) " >&6
11696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11697 /* end confdefs.h. */
11698 #include <sys/types.h>
11699 #include <signal.h>
11704 return *(signal (0, 0)) (0) == 1;
11709 if ac_fn_c_try_compile
"$LINENO"; then :
11710 ac_cv_type_signal
=int
11712 ac_cv_type_signal
=void
11714 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11717 $as_echo "$ac_cv_type_signal" >&6; }
11719 cat >>confdefs.h
<<_ACEOF
11720 #define RETSIGTYPE $ac_cv_type_signal
11724 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11725 #include <sys/socket.h>
11728 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
11730 cat >>confdefs.h
<<_ACEOF
11731 #define HAVE_SOCKLEN_T 1
11738 # ------------------------------------- #
11739 # Checks for compiler characteristics. #
11740 # ------------------------------------- #
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11743 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11744 if test "${ac_cv_c_const+set}" = set; then :
11745 $as_echo_n "(cached) " >&6
11747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11748 /* end confdefs.h. */
11753 /* FIXME: Include the comments suggested by Paul. */
11754 #ifndef __cplusplus
11755 /* Ultrix mips cc rejects this. */
11756 typedef int charset[2];
11758 /* SunOS 4.1.1 cc rejects this. */
11759 char const *const *pcpcc;
11761 /* NEC SVR4.0.2 mips cc rejects this. */
11762 struct point {int x, y;};
11763 static struct point const zero = {0,0};
11764 /* AIX XL C 1.02.0.0 rejects this.
11765 It does not let you subtract one const X* pointer from another in
11766 an arm of an if-expression whose if-part is not a constant
11768 const char *g = "string";
11769 pcpcc = &g + (g ? g-g : 0);
11770 /* HPUX 7.0 cc rejects these. */
11772 ppc = (char**) pcpcc;
11773 pcpcc = (char const *const *) ppc;
11774 { /* SCO 3.2v4 cc rejects this. */
11776 char const *s = 0 ? (char *) 0 : (char const *) 0;
11781 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11782 int x[] = {25, 17};
11783 const int *foo = &x[0];
11786 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11787 typedef const int *iptr;
11791 { /* AIX XL C 1.02.0.0 rejects this saying
11792 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11793 struct s { int j; const int *ap[3]; };
11794 struct s *b; b->j = 5;
11796 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11797 const int foo = 10;
11798 if (!foo) return 0;
11800 return !cs[0] && !zero.x;
11807 if ac_fn_c_try_compile
"$LINENO"; then :
11812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11815 $as_echo "$ac_cv_c_const" >&6; }
11816 if test $ac_cv_c_const = no
; then
11818 $as_echo "#define const /**/" >>confdefs.h
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11823 $as_echo_n "checking for inline... " >&6; }
11824 if test "${ac_cv_c_inline+set}" = set; then :
11825 $as_echo_n "(cached) " >&6
11828 for ac_kw
in inline __inline__ __inline
; do
11829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11830 /* end confdefs.h. */
11831 #ifndef __cplusplus
11833 static $ac_kw foo_t static_foo () {return 0; }
11834 $ac_kw foo_t foo () {return 0; }
11838 if ac_fn_c_try_compile
"$LINENO"; then :
11839 ac_cv_c_inline
=$ac_kw
11841 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11842 test "$ac_cv_c_inline" != no
&& break
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11847 $as_echo "$ac_cv_c_inline" >&6; }
11849 case $ac_cv_c_inline in
11852 case $ac_cv_c_inline in
11854 *) ac_val
=$ac_cv_c_inline;;
11856 cat >>confdefs.h
<<_ACEOF
11857 #ifndef __cplusplus
11858 #define inline $ac_val
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11865 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11866 if test "${ac_cv_c_bigendian+set}" = set; then :
11867 $as_echo_n "(cached) " >&6
11869 ac_cv_c_bigendian
=unknown
11870 # See if we're dealing with a universal compiler.
11871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11872 /* end confdefs.h. */
11873 #ifndef __APPLE_CC__
11874 not a universal capable compiler
11879 if ac_fn_c_try_compile
"$LINENO"; then :
11881 # Check for potential -arch flags. It is not universal unless
11882 # there are at least two -arch flags with different values.
11885 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11886 if test -n "$ac_prev"; then
11888 i?
86 | x86_64 | ppc | ppc64
)
11889 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
11892 ac_cv_c_bigendian
=universal
11898 elif test "x$ac_word" = "x-arch"; then
11903 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11904 if test $ac_cv_c_bigendian = unknown
; then
11905 # See if sys/param.h defines the BYTE_ORDER macro.
11906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11907 /* end confdefs.h. */
11908 #include <sys/types.h>
11909 #include <sys/param.h>
11914 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11915 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11917 bogus endian macros
11924 if ac_fn_c_try_compile
"$LINENO"; then :
11925 # It does; now see whether it defined to BIG_ENDIAN or not.
11926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11927 /* end confdefs.h. */
11928 #include <sys/types.h>
11929 #include <sys/param.h>
11934 #if BYTE_ORDER != BIG_ENDIAN
11942 if ac_fn_c_try_compile
"$LINENO"; then :
11943 ac_cv_c_bigendian
=yes
11945 ac_cv_c_bigendian
=no
11947 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11949 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11951 if test $ac_cv_c_bigendian = unknown
; then
11952 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11954 /* end confdefs.h. */
11955 #include <limits.h>
11960 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11961 bogus endian macros
11968 if ac_fn_c_try_compile
"$LINENO"; then :
11969 # It does; now see whether it defined to _BIG_ENDIAN or not.
11970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11971 /* end confdefs.h. */
11972 #include <limits.h>
11977 #ifndef _BIG_ENDIAN
11985 if ac_fn_c_try_compile
"$LINENO"; then :
11986 ac_cv_c_bigendian
=yes
11988 ac_cv_c_bigendian
=no
11990 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11992 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11994 if test $ac_cv_c_bigendian = unknown
; then
11995 # Compile a test program.
11996 if test "$cross_compiling" = yes; then :
11997 # Try to guess by grepping values from an object file.
11998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11999 /* end confdefs.h. */
12000 short int ascii_mm[] =
12001 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12002 short int ascii_ii[] =
12003 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12004 int use_ascii (int i) {
12005 return ascii_mm[i] + ascii_ii[i];
12007 short int ebcdic_ii[] =
12008 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12009 short int ebcdic_mm[] =
12010 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12011 int use_ebcdic (int i) {
12012 return ebcdic_mm[i] + ebcdic_ii[i];
12019 return use_ascii (foo) == use_ebcdic (foo);
12024 if ac_fn_c_try_compile
"$LINENO"; then :
12025 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12026 ac_cv_c_bigendian
=yes
12028 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12029 if test "$ac_cv_c_bigendian" = unknown
; then
12030 ac_cv_c_bigendian
=no
12032 # finding both strings is unlikely to happen, but who knows?
12033 ac_cv_c_bigendian
=unknown
12037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12040 /* end confdefs.h. */
12041 $ac_includes_default
12046 /* Are we little or big endian? From Harbison&Steele. */
12050 char c[sizeof (long int)];
12053 return u.c[sizeof (long int) - 1] == 1;
12059 if ac_fn_c_try_run
"$LINENO"; then :
12060 ac_cv_c_bigendian
=no
12062 ac_cv_c_bigendian
=yes
12064 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12065 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12071 $as_echo "$ac_cv_c_bigendian" >&6; }
12072 case $ac_cv_c_bigendian in #(
12074 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12080 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12084 as_fn_error
"unknown endianness
12085 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12089 # ------------------------------ #
12090 # Checks for library functions. #
12091 # ------------------------------ #
12093 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12094 # for constant arguments. Useless!
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12096 $as_echo_n "checking for working alloca.h... " >&6; }
12097 if test "${ac_cv_working_alloca_h+set}" = set; then :
12098 $as_echo_n "(cached) " >&6
12100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12101 /* end confdefs.h. */
12102 #include <alloca.h>
12106 char *p = (char *) alloca (2 * sizeof (int));
12112 if ac_fn_c_try_link
"$LINENO"; then :
12113 ac_cv_working_alloca_h
=yes
12115 ac_cv_working_alloca_h
=no
12117 rm -f core conftest.err conftest.
$ac_objext \
12118 conftest
$ac_exeext conftest.
$ac_ext
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12121 $as_echo "$ac_cv_working_alloca_h" >&6; }
12122 if test $ac_cv_working_alloca_h = yes; then
12124 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12129 $as_echo_n "checking for alloca... " >&6; }
12130 if test "${ac_cv_func_alloca_works+set}" = set; then :
12131 $as_echo_n "(cached) " >&6
12133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12134 /* end confdefs.h. */
12136 # define alloca __builtin_alloca
12139 # include <malloc.h>
12140 # define alloca _alloca
12142 # ifdef HAVE_ALLOCA_H
12143 # include <alloca.h>
12148 # ifndef alloca /* predefined by HP cc +Olibcalls */
12159 char *p = (char *) alloca (1);
12165 if ac_fn_c_try_link
"$LINENO"; then :
12166 ac_cv_func_alloca_works
=yes
12168 ac_cv_func_alloca_works
=no
12170 rm -f core conftest.err conftest.
$ac_objext \
12171 conftest
$ac_exeext conftest.
$ac_ext
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12174 $as_echo "$ac_cv_func_alloca_works" >&6; }
12176 if test $ac_cv_func_alloca_works = yes; then
12178 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12181 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12182 # that cause trouble. Some versions do not even contain alloca or
12183 # contain a buggy version. If you still want to use their alloca,
12184 # use ar to extract alloca.o from them instead of compiling alloca.c.
12186 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
12188 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12192 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12193 if test "${ac_cv_os_cray+set}" = set; then :
12194 $as_echo_n "(cached) " >&6
12196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12197 /* end confdefs.h. */
12198 #if defined CRAY && ! defined CRAY2
12205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12206 $EGREP "webecray" >/dev
/null
2>&1; then :
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12215 $as_echo "$ac_cv_os_cray" >&6; }
12216 if test $ac_cv_os_cray = yes; then
12217 for ac_func
in _getb67 GETB67 getb67
; do
12218 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12219 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12220 eval as_val
=\$
$as_ac_var
12221 if test "x$as_val" = x
""yes; then :
12223 cat >>confdefs.h
<<_ACEOF
12224 #define CRAY_STACKSEG_END $ac_func
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12234 $as_echo_n "checking stack direction for C alloca... " >&6; }
12235 if test "${ac_cv_c_stack_direction+set}" = set; then :
12236 $as_echo_n "(cached) " >&6
12238 if test "$cross_compiling" = yes; then :
12239 ac_cv_c_stack_direction
=0
12241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12242 /* end confdefs.h. */
12243 $ac_includes_default
12245 find_stack_direction ()
12247 static char *addr = 0;
12252 return find_stack_direction ();
12255 return (&dummy > addr) ? 1 : -1;
12261 return find_stack_direction () < 0;
12264 if ac_fn_c_try_run
"$LINENO"; then :
12265 ac_cv_c_stack_direction
=1
12267 ac_cv_c_stack_direction
=-1
12269 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12270 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12275 $as_echo "$ac_cv_c_stack_direction" >&6; }
12276 cat >>confdefs.h
<<_ACEOF
12277 #define STACK_DIRECTION $ac_cv_c_stack_direction
12283 for ac_header
in stdlib.h unistd.h
12285 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12286 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12287 eval as_val
=\$
$as_ac_Header
12288 if test "x$as_val" = x
""yes; then :
12289 cat >>confdefs.h
<<_ACEOF
12290 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12297 for ac_func
in getpagesize
12299 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12300 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
12301 cat >>confdefs.h
<<_ACEOF
12302 #define HAVE_GETPAGESIZE 1
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12309 $as_echo_n "checking for working mmap... " >&6; }
12310 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12311 $as_echo_n "(cached) " >&6
12313 if test "$cross_compiling" = yes; then :
12314 ac_cv_func_mmap_fixed_mapped
=no
12316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12317 /* end confdefs.h. */
12318 $ac_includes_default
12319 /* malloc might have been renamed as rpl_malloc. */
12322 /* Thanks to Mike Haertel and Jim Avera for this test.
12323 Here is a matrix of mmap possibilities:
12324 mmap private not fixed
12325 mmap private fixed at somewhere currently unmapped
12326 mmap private fixed at somewhere already mapped
12327 mmap shared not fixed
12328 mmap shared fixed at somewhere currently unmapped
12329 mmap shared fixed at somewhere already mapped
12330 For private mappings, we should verify that changes cannot be read()
12331 back from the file, nor mmap's back from the file at a different
12332 address. (There have been systems where private was not correctly
12333 implemented like the infamous i386 svr4.0, and systems where the
12334 VM page cache was not coherent with the file system buffer cache
12335 like early versions of FreeBSD and possibly contemporary NetBSD.)
12336 For shared mappings, we should conversely verify that changes get
12337 propagated back to all the places they're supposed to be.
12339 Grep wants private fixed already mapped.
12340 The main things grep needs to know about mmap are:
12341 * does it exist and is it safe to write into the mmap'd area
12342 * how to use it (BSD variants) */
12345 #include <sys/mman.h>
12347 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12351 /* This mess was copied from the GNU getpagesize.h. */
12352 #ifndef HAVE_GETPAGESIZE
12353 /* Assume that all systems that can run configure have sys/param.h. */
12354 # ifndef HAVE_SYS_PARAM_H
12355 # define HAVE_SYS_PARAM_H 1
12358 # ifdef _SC_PAGESIZE
12359 # define getpagesize() sysconf(_SC_PAGESIZE)
12360 # else /* no _SC_PAGESIZE */
12361 # ifdef HAVE_SYS_PARAM_H
12362 # include <sys/param.h>
12363 # ifdef EXEC_PAGESIZE
12364 # define getpagesize() EXEC_PAGESIZE
12365 # else /* no EXEC_PAGESIZE */
12367 # define getpagesize() NBPG * CLSIZE
12370 # endif /* no CLSIZE */
12371 # else /* no NBPG */
12373 # define getpagesize() NBPC
12374 # else /* no NBPC */
12376 # define getpagesize() PAGESIZE
12377 # endif /* PAGESIZE */
12378 # endif /* no NBPC */
12379 # endif /* no NBPG */
12380 # endif /* no EXEC_PAGESIZE */
12381 # else /* no HAVE_SYS_PARAM_H */
12382 # define getpagesize() 8192 /* punt totally */
12383 # endif /* no HAVE_SYS_PARAM_H */
12384 # endif /* no _SC_PAGESIZE */
12386 #endif /* no HAVE_GETPAGESIZE */
12391 char *data, *data2, *data3;
12395 pagesize = getpagesize ();
12397 /* First, make a file with some known garbage in it. */
12398 data = (char *) malloc (pagesize);
12401 for (i = 0; i < pagesize; ++i)
12402 *(data + i) = rand ();
12404 fd = creat ("conftest.mmap", 0600);
12407 if (write (fd, data, pagesize) != pagesize)
12411 /* Next, try to mmap the file at a fixed address which already has
12412 something else allocated at it. If we can, also make sure that
12413 we see the same garbage. */
12414 fd = open ("conftest.mmap", O_RDWR);
12417 data2 = (char *) malloc (2 * pagesize);
12420 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12421 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12422 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12424 for (i = 0; i < pagesize; ++i)
12425 if (*(data + i) != *(data2 + i))
12428 /* Finally, make sure that changes to the mapped area do not
12429 percolate back to the file as seen by read(). (This is a bug on
12430 some variants of i386 svr4.0.) */
12431 for (i = 0; i < pagesize; ++i)
12432 *(data2 + i) = *(data2 + i) + 1;
12433 data3 = (char *) malloc (pagesize);
12436 if (read (fd, data3, pagesize) != pagesize)
12438 for (i = 0; i < pagesize; ++i)
12439 if (*(data + i) != *(data3 + i))
12445 if ac_fn_c_try_run
"$LINENO"; then :
12446 ac_cv_func_mmap_fixed_mapped
=yes
12448 ac_cv_func_mmap_fixed_mapped
=no
12450 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12451 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12456 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12457 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12459 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12462 rm -f conftest.mmap
12464 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12465 if test "x$ac_cv_type_pid_t" = x
""yes; then :
12469 cat >>confdefs.h
<<_ACEOF
12475 for ac_header
in vfork.h
12477 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12478 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
12479 cat >>confdefs.h
<<_ACEOF
12480 #define HAVE_VFORK_H 1
12487 for ac_func
in fork vfork
12489 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12490 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12491 eval as_val
=\$
$as_ac_var
12492 if test "x$as_val" = x
""yes; then :
12493 cat >>confdefs.h
<<_ACEOF
12494 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12500 if test "x$ac_cv_func_fork" = xyes
; then
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12502 $as_echo_n "checking for working fork... " >&6; }
12503 if test "${ac_cv_func_fork_works+set}" = set; then :
12504 $as_echo_n "(cached) " >&6
12506 if test "$cross_compiling" = yes; then :
12507 ac_cv_func_fork_works
=cross
12509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12510 /* end confdefs.h. */
12511 $ac_includes_default
12516 /* By Ruediger Kuhlmann. */
12517 return fork () < 0;
12523 if ac_fn_c_try_run
"$LINENO"; then :
12524 ac_cv_func_fork_works
=yes
12526 ac_cv_func_fork_works
=no
12528 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12529 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12534 $as_echo "$ac_cv_func_fork_works" >&6; }
12537 ac_cv_func_fork_works
=$ac_cv_func_fork
12539 if test "x$ac_cv_func_fork_works" = xcross
; then
12541 *-*-amigaos* |
*-*-msdosdjgpp*)
12542 # Override, as these systems have only a dummy fork() stub
12543 ac_cv_func_fork_works
=no
12546 ac_cv_func_fork_works
=yes
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12550 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12552 ac_cv_func_vfork_works
=$ac_cv_func_vfork
12553 if test "x$ac_cv_func_vfork" = xyes
; then
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12555 $as_echo_n "checking for working vfork... " >&6; }
12556 if test "${ac_cv_func_vfork_works+set}" = set; then :
12557 $as_echo_n "(cached) " >&6
12559 if test "$cross_compiling" = yes; then :
12560 ac_cv_func_vfork_works
=cross
12562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12563 /* end confdefs.h. */
12564 /* Thanks to Paul Eggert for this test. */
12565 $ac_includes_default
12566 #include <sys/wait.h>
12567 #ifdef HAVE_VFORK_H
12568 # include <vfork.h>
12570 /* On some sparc systems, changes by the child to local and incoming
12571 argument registers are propagated back to the parent. The compiler
12572 is told about this with #include <vfork.h>, but some compilers
12573 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12574 static variable whose address is put into a register that is
12575 clobbered by the vfork. */
12578 sparc_address_test (int arg)
12580 sparc_address_test (arg) int arg;
12583 static pid_t child;
12601 pid_t parent = getpid ();
12604 sparc_address_test (0);
12609 /* Here is another test for sparc vfork register problems. This
12610 test uses lots of local variables, at least as many local
12611 variables as main has allocated so far including compiler
12612 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12613 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12614 reuse the register of parent for one of the local variables,
12615 since it will think that parent can't possibly be used any more
12616 in this routine. Assigning to the local variable will thus
12617 munge parent in the parent process. */
12619 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12620 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12621 /* Convince the compiler that p..p7 are live; otherwise, it might
12622 use the same hardware register for all 8 local variables. */
12623 if (p != p1 || p != p2 || p != p3 || p != p4
12624 || p != p5 || p != p6 || p != p7)
12627 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12628 from child file descriptors. If the child closes a descriptor
12629 before it execs or exits, this munges the parent's descriptor
12630 as well. Test for this by closing stdout in the child. */
12631 _exit(close(fileno(stdout)) != 0);
12636 while (wait(&status) != child)
12639 /* Was there some problem with vforking? */
12642 /* Did the child fail? (This shouldn't happen.) */
12645 /* Did the vfork/compiler bug occur? */
12646 || parent != getpid()
12648 /* Did the file descriptor bug occur? */
12649 || fstat(fileno(stdout), &st) != 0
12654 if ac_fn_c_try_run
"$LINENO"; then :
12655 ac_cv_func_vfork_works
=yes
12657 ac_cv_func_vfork_works
=no
12659 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12660 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12665 $as_echo "$ac_cv_func_vfork_works" >&6; }
12668 if test "x$ac_cv_func_fork_works" = xcross
; then
12669 ac_cv_func_vfork_works
=$ac_cv_func_vfork
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12671 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12674 if test "x$ac_cv_func_vfork_works" = xyes
; then
12676 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12680 $as_echo "#define vfork fork" >>confdefs.h
12683 if test "x$ac_cv_func_fork_works" = xyes
; then
12685 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12689 for ac_func
in canonicalize_file_name realpath getrusage getuid \
12690 getgid pipe poll pread64 resize_term sbrk setpgid setpgrp setsid \
12691 sigaction sigprocmask sigsetmask socketpair syscall \
12692 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
12693 setrlimit getrlimit posix_madvise waitpid
12695 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12696 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12697 eval as_val
=\$
$as_ac_var
12698 if test "x$as_val" = x
""yes; then :
12699 cat >>confdefs.h
<<_ACEOF
12700 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12708 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12709 if test "${am_cv_langinfo_codeset+set}" = set; then :
12710 $as_echo_n "(cached) " >&6
12712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12713 /* end confdefs.h. */
12714 #include <langinfo.h>
12718 char* cs = nl_langinfo(CODESET);
12723 if ac_fn_c_try_link
"$LINENO"; then :
12724 am_cv_langinfo_codeset
=yes
12726 am_cv_langinfo_codeset
=no
12728 rm -f core conftest.err conftest.
$ac_objext \
12729 conftest
$ac_exeext conftest.
$ac_ext
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12733 $as_echo "$am_cv_langinfo_codeset" >&6; }
12734 if test $am_cv_langinfo_codeset = yes; then
12736 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12741 # Check the return and argument types of ptrace. No canned test for
12742 # this, so roll our own.
12743 gdb_ptrace_headers
='
12744 #if HAVE_SYS_TYPES_H
12745 # include <sys/types.h>
12747 #if HAVE_SYS_PTRACE_H
12748 # include <sys/ptrace.h>
12751 # include <unistd.h>
12754 # There is no point in checking if we don't have a prototype.
12755 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
12757 if test "x$ac_cv_have_decl_ptrace" = x
""yes; then :
12763 cat >>confdefs.h
<<_ACEOF
12764 #define HAVE_DECL_PTRACE $ac_have_decl
12766 if test $ac_have_decl = 1; then :
12770 : ${gdb_cv_func_ptrace_ret='int'}
12771 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12775 # Check return type. Varargs (used on GNU/Linux) conflict with the
12776 # empty argument list, so check for that explicitly.
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
12778 $as_echo_n "checking return type of ptrace... " >&6; }
12779 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
12780 $as_echo_n "(cached) " >&6
12782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12783 /* end confdefs.h. */
12784 $gdb_ptrace_headers
12788 extern long ptrace (enum __ptrace_request, ...);
12793 if ac_fn_c_try_compile
"$LINENO"; then :
12794 gdb_cv_func_ptrace_ret
='long'
12796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12797 /* end confdefs.h. */
12798 $gdb_ptrace_headers
12802 extern int ptrace ();
12807 if ac_fn_c_try_compile
"$LINENO"; then :
12808 gdb_cv_func_ptrace_ret
='int'
12810 gdb_cv_func_ptrace_ret
='long'
12812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
12817 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
12819 cat >>confdefs.h
<<_ACEOF
12820 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
12823 # Check argument types.
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
12825 $as_echo_n "checking types of arguments for ptrace... " >&6; }
12826 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
12827 $as_echo_n "(cached) " >&6
12830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12831 /* end confdefs.h. */
12832 $gdb_ptrace_headers
12836 extern long ptrace (enum __ptrace_request, ...);
12841 if ac_fn_c_try_compile
"$LINENO"; then :
12842 gdb_cv_func_ptrace_args
='int,int,long,long'
12845 for gdb_arg1
in 'int' 'long'; do
12846 for gdb_arg2
in 'pid_t' 'int' 'long'; do
12847 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
12848 for gdb_arg4
in 'int' 'long'; do
12849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12850 /* end confdefs.h. */
12851 $gdb_ptrace_headers
12856 extern $gdb_cv_func_ptrace_ret
12857 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
12863 if ac_fn_c_try_compile
"$LINENO"; then :
12864 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
12867 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12868 for gdb_arg5
in 'int *' 'int' 'long'; do
12869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12870 /* end confdefs.h. */
12871 $gdb_ptrace_headers
12876 extern $gdb_cv_func_ptrace_ret
12877 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
12883 if ac_fn_c_try_compile
"$LINENO"; then :
12885 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
12888 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12894 # Provide a safe default value.
12895 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12898 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
12901 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
12902 ac_save_IFS
=$IFS; IFS
=','
12903 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
12907 cat >>confdefs.h
<<_ACEOF
12908 #define PTRACE_TYPE_ARG3 $3
12911 if test -n "$5"; then
12913 cat >>confdefs.h
<<_ACEOF
12914 #define PTRACE_TYPE_ARG5 $5
12919 if test "$cross_compiling" = no
; then
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12921 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12922 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12923 $as_echo_n "(cached) " >&6
12925 if test "$cross_compiling" = yes; then :
12926 as_fn_error
"cannot check setpgrp when cross compiling" "$LINENO" 5
12928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12929 /* end confdefs.h. */
12930 $ac_includes_default
12934 /* If this system has a BSD-style setpgrp which takes arguments,
12935 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
12936 exit successfully. */
12937 return setpgrp (1,1) != -1;
12942 if ac_fn_c_try_run
"$LINENO"; then :
12943 ac_cv_func_setpgrp_void
=no
12945 ac_cv_func_setpgrp_void
=yes
12947 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12948 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12953 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12954 if test $ac_cv_func_setpgrp_void = yes; then
12956 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12962 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12963 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12964 $as_echo_n "(cached) " >&6
12966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12967 /* end confdefs.h. */
12969 #include <unistd.h>
12975 if (setpgrp(1,1) == -1)
12984 if ac_fn_c_try_compile
"$LINENO"; then :
12985 ac_cv_func_setpgrp_void
=no
12987 ac_cv_func_setpgrp_void
=yes
12989 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12992 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12993 if test $ac_cv_func_setpgrp_void = yes; then
12994 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12999 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
13000 # since sigsetjmp might only be defined as a macro.
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
13002 $as_echo_n "checking for sigsetjmp... " >&6; }
13003 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
13004 $as_echo_n "(cached) " >&6
13006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13007 /* end confdefs.h. */
13009 #include <setjmp.h>
13014 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
13019 if ac_fn_c_try_compile
"$LINENO"; then :
13020 gdb_cv_func_sigsetjmp
=yes
13022 gdb_cv_func_sigsetjmp
=no
13024 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
13027 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
13028 if test $gdb_cv_func_sigsetjmp = yes; then
13030 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
13034 # Assume we'll default to using the included libiberty regex.
13035 gdb_use_included_regex
=yes
13037 # However, if the system regex is GNU regex, then default to *not*
13038 # using the included regex.
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
13040 $as_echo_n "checking for GNU regex... " >&6; }
13041 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
13042 $as_echo_n "(cached) " >&6
13044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13045 /* end confdefs.h. */
13046 #include <gnu-versions.h>
13050 #define REGEX_INTERFACE_VERSION 1
13051 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
13052 # error "Version mismatch"
13058 if ac_fn_c_try_compile
"$LINENO"; then :
13059 gdb_cv_have_gnu_regex
=yes
13061 gdb_cv_have_gnu_regex
=no
13063 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
13066 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
13067 if test $gdb_cv_have_gnu_regex = yes; then
13068 gdb_use_included_regex
=no
13072 # Check whether --with-included-regex was given.
13073 if test "${with_included_regex+set}" = set; then :
13074 withval
=$with_included_regex; gdb_with_regex
=$withval
13076 gdb_with_regex
=$gdb_use_included_regex
13079 if test "$gdb_with_regex" = yes; then
13081 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
13085 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
13086 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
13087 #include <sys/proc.h>
13090 if test "x$ac_cv_member_struct_thread_td_pcb" = x
""yes; then :
13092 cat >>confdefs.h
<<_ACEOF
13093 #define HAVE_STRUCT_THREAD_TD_PCB 1
13100 # See if <sys/lwp.h> defines `struct lwp`.
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
13102 $as_echo_n "checking for struct lwp... " >&6; }
13103 if test "${gdb_cv_struct_lwp+set}" = set; then :
13104 $as_echo_n "(cached) " >&6
13106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13107 /* end confdefs.h. */
13108 #include <sys/param.h>
13109 #include <sys/lwp.h>
13118 if ac_fn_c_try_compile
"$LINENO"; then :
13119 gdb_cv_struct_lwp
=yes
13121 gdb_cv_struct_lwp
=no
13123 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
13126 $as_echo "$gdb_cv_struct_lwp" >&6; }
13127 if test $gdb_cv_struct_lwp = yes; then
13129 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
13133 # See if <machine/reg.h> degines `struct reg'.
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
13135 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
13136 if test "${gdb_cv_struct_reg+set}" = set; then :
13137 $as_echo_n "(cached) " >&6
13139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13140 /* end confdefs.h. */
13141 #include <sys/types.h>
13142 #include <machine/reg.h>
13151 if ac_fn_c_try_compile
"$LINENO"; then :
13152 gdb_cv_struct_reg
=yes
13154 gdb_cv_struct_reg
=no
13156 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
13159 $as_echo "$gdb_cv_struct_reg" >&6; }
13160 if test $gdb_cv_struct_reg = yes; then
13162 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
13166 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
13167 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
13168 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
13170 if test "x$ac_cv_member_struct_reg_r_fs" = x
""yes; then :
13172 cat >>confdefs.h
<<_ACEOF
13173 #define HAVE_STRUCT_REG_R_FS 1
13178 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
13180 if test "x$ac_cv_member_struct_reg_r_gs" = x
""yes; then :
13182 cat >>confdefs.h
<<_ACEOF
13183 #define HAVE_STRUCT_REG_R_GS 1
13190 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
13192 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
13193 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
13194 $as_echo_n "(cached) " >&6
13196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13197 /* end confdefs.h. */
13198 #include <sys/ptrace.h>
13207 if ac_fn_c_try_compile
"$LINENO"; then :
13208 gdb_cv_have_ptrace_getregs
=yes
13210 gdb_cv_have_ptrace_getregs
=no
13212 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
13216 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
13217 if test $gdb_cv_have_ptrace_getregs = yes; then
13219 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
13223 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
13225 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
13226 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
13227 $as_echo_n "(cached) " >&6
13229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13230 /* end confdefs.h. */
13231 #include <sys/ptrace.h>
13240 if ac_fn_c_try_compile
"$LINENO"; then :
13241 gdb_cv_have_ptrace_getfpxregs
=yes
13243 gdb_cv_have_ptrace_getfpxregs
=no
13245 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
13249 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
13250 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
13252 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
13256 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
13258 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
13259 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
13260 $as_echo_n "(cached) " >&6
13262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13263 /* end confdefs.h. */
13264 #include <sys/types.h>
13265 #include <sys/ptrace.h>
13274 if ac_fn_c_try_compile
"$LINENO"; then :
13275 gdb_cv_have_pt_getdbregs
=yes
13277 gdb_cv_have_pt_getdbregs
=no
13279 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
13283 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
13284 if test $gdb_cv_have_pt_getdbregs = yes; then
13286 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
13290 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
13292 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
13293 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
13294 $as_echo_n "(cached) " >&6
13296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13297 /* end confdefs.h. */
13298 #include <sys/types.h>
13299 #include <sys/ptrace.h>
13308 if ac_fn_c_try_compile
"$LINENO"; then :
13309 gdb_cv_have_pt_getxmmregs
=yes
13311 gdb_cv_have_pt_getxmmregs
=no
13313 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
13317 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
13318 if test $gdb_cv_have_pt_getxmmregs = yes; then
13320 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
13324 # Detect which type of /proc is in use, such as for Unixware or Solaris.
13326 if test "${target}" = "${host}"; then
13328 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5* |
*-*-interix* )
13330 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13333 *-*-solaris2.
[6789] |
*-*-solaris2.1
[0-9]*)
13335 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13339 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
13341 $as_echo "#define _KMEMUSER 1" >>confdefs.h
13347 if test "$ac_cv_header_sys_procfs_h" = yes; then
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
13349 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
13350 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
13351 $as_echo_n "(cached) " >&6
13353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13354 /* end confdefs.h. */
13357 /* Needed for new procfs interface on sparc-solaris. */
13358 #define _STRUCTURED_PROC 1
13359 #include <sys/procfs.h>
13368 if ac_fn_c_try_compile
"$LINENO"; then :
13369 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
13371 bfd_cv_have_sys_procfs_type_pstatus_t
=no
13374 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13377 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
13379 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
13383 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
13386 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
13387 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
13388 $as_echo_n "(cached) " >&6
13390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13391 /* end confdefs.h. */
13394 /* Needed for new procfs interface on sparc-solaris. */
13395 #define _STRUCTURED_PROC 1
13396 #include <sys/procfs.h>
13405 if ac_fn_c_try_compile
"$LINENO"; then :
13406 bfd_cv_have_sys_procfs_type_prrun_t
=yes
13408 bfd_cv_have_sys_procfs_type_prrun_t
=no
13411 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13414 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
13416 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
13420 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
13423 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
13424 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
13425 $as_echo_n "(cached) " >&6
13427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13428 /* end confdefs.h. */
13431 /* Needed for new procfs interface on sparc-solaris. */
13432 #define _STRUCTURED_PROC 1
13433 #include <sys/procfs.h>
13442 if ac_fn_c_try_compile
"$LINENO"; then :
13443 bfd_cv_have_sys_procfs_type_gregset_t
=yes
13445 bfd_cv_have_sys_procfs_type_gregset_t
=no
13448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13451 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
13453 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
13457 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
13460 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
13461 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
13462 $as_echo_n "(cached) " >&6
13464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13465 /* end confdefs.h. */
13468 /* Needed for new procfs interface on sparc-solaris. */
13469 #define _STRUCTURED_PROC 1
13470 #include <sys/procfs.h>
13479 if ac_fn_c_try_compile
"$LINENO"; then :
13480 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
13482 bfd_cv_have_sys_procfs_type_fpregset_t
=no
13485 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13488 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
13490 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
13494 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
13497 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
13498 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
13499 $as_echo_n "(cached) " >&6
13501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13502 /* end confdefs.h. */
13505 /* Needed for new procfs interface on sparc-solaris. */
13506 #define _STRUCTURED_PROC 1
13507 #include <sys/procfs.h>
13516 if ac_fn_c_try_compile
"$LINENO"; then :
13517 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
13519 bfd_cv_have_sys_procfs_type_prgregset_t
=no
13522 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13525 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
13527 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
13531 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
13534 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
13535 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
13536 $as_echo_n "(cached) " >&6
13538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13539 /* end confdefs.h. */
13542 /* Needed for new procfs interface on sparc-solaris. */
13543 #define _STRUCTURED_PROC 1
13544 #include <sys/procfs.h>
13553 if ac_fn_c_try_compile
"$LINENO"; then :
13554 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
13556 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
13559 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13562 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13564 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
13568 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
13571 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
13572 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
13573 $as_echo_n "(cached) " >&6
13575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13576 /* end confdefs.h. */
13579 /* Needed for new procfs interface on sparc-solaris. */
13580 #define _STRUCTURED_PROC 1
13581 #include <sys/procfs.h>
13590 if ac_fn_c_try_compile
"$LINENO"; then :
13591 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
13593 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
13596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13599 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
13601 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
13605 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
13608 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
13609 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
13610 $as_echo_n "(cached) " >&6
13612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13613 /* end confdefs.h. */
13616 /* Needed for new procfs interface on sparc-solaris. */
13617 #define _STRUCTURED_PROC 1
13618 #include <sys/procfs.h>
13622 prfpregset32_t avar
13627 if ac_fn_c_try_compile
"$LINENO"; then :
13628 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
13630 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
13633 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13636 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
13638 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
13642 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
13645 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
13646 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
13647 $as_echo_n "(cached) " >&6
13649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13650 /* end confdefs.h. */
13653 /* Needed for new procfs interface on sparc-solaris. */
13654 #define _STRUCTURED_PROC 1
13655 #include <sys/procfs.h>
13664 if ac_fn_c_try_compile
"$LINENO"; then :
13665 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
13667 bfd_cv_have_sys_procfs_type_lwpid_t
=no
13670 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13673 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
13675 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
13679 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
13682 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
13683 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
13684 $as_echo_n "(cached) " >&6
13686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13687 /* end confdefs.h. */
13690 /* Needed for new procfs interface on sparc-solaris. */
13691 #define _STRUCTURED_PROC 1
13692 #include <sys/procfs.h>
13701 if ac_fn_c_try_compile
"$LINENO"; then :
13702 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
13704 bfd_cv_have_sys_procfs_type_psaddr_t
=no
13707 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13710 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
13712 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
13716 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
13719 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
13720 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
13721 $as_echo_n "(cached) " >&6
13723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13724 /* end confdefs.h. */
13727 /* Needed for new procfs interface on sparc-solaris. */
13728 #define _STRUCTURED_PROC 1
13729 #include <sys/procfs.h>
13738 if ac_fn_c_try_compile
"$LINENO"; then :
13739 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
13741 bfd_cv_have_sys_procfs_type_prsysent_t
=no
13744 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13747 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
13749 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
13753 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
13756 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
13757 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
13758 $as_echo_n "(cached) " >&6
13760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13761 /* end confdefs.h. */
13764 /* Needed for new procfs interface on sparc-solaris. */
13765 #define _STRUCTURED_PROC 1
13766 #include <sys/procfs.h>
13775 if ac_fn_c_try_compile
"$LINENO"; then :
13776 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
13778 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
13781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13784 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
13786 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
13790 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
13793 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
13794 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
13795 $as_echo_n "(cached) " >&6
13797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13798 /* end confdefs.h. */
13801 /* Needed for new procfs interface on sparc-solaris. */
13802 #define _STRUCTURED_PROC 1
13803 #include <sys/procfs.h>
13807 pr_sigaction64_t avar
13812 if ac_fn_c_try_compile
"$LINENO"; then :
13813 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
13815 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
13818 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13821 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
13823 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
13827 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
13830 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
13831 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
13832 $as_echo_n "(cached) " >&6
13834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13835 /* end confdefs.h. */
13838 /* Needed for new procfs interface on sparc-solaris. */
13839 #define _STRUCTURED_PROC 1
13840 #include <sys/procfs.h>
13844 pr_siginfo64_t avar
13849 if ac_fn_c_try_compile
"$LINENO"; then :
13850 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
13852 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
13855 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13858 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
13860 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
13864 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
13870 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
13872 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
13873 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
13874 $as_echo_n "(cached) " >&6
13876 if test "$cross_compiling" = yes; then :
13877 gdb_cv_prfpregset_t_broken
=yes
13879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13880 /* end confdefs.h. */
13881 #include <sys/procfs.h>
13884 if (sizeof (prfpregset_t) == sizeof (void *))
13889 if ac_fn_c_try_run
"$LINENO"; then :
13890 gdb_cv_prfpregset_t_broken
=no
13892 gdb_cv_prfpregset_t_broken
=yes
13894 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13895 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
13901 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
13902 if test $gdb_cv_prfpregset_t_broken = yes; then
13904 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
13911 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
13912 if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
13913 $as_echo_n "(cached) " >&6
13915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13916 /* end confdefs.h. */
13917 #include <unistd.h>
13918 #include <sys/types.h>
13919 #include <sys/procfs.h>
13926 dummy = ioctl(0, PIOCSET, &dummy);
13932 if ac_fn_c_try_compile
"$LINENO"; then :
13933 gdb_cv_have_procfs_piocset
=yes
13935 gdb_cv_have_procfs_piocset
=no
13937 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
13941 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
13942 if test $gdb_cv_have_procfs_piocset = yes; then
13944 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
13949 if test ${host} = ${target} ; then
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
13952 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
13953 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
13954 $as_echo_n "(cached) " >&6
13956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13957 /* end confdefs.h. */
13962 struct link_map lm; (void) lm.l_addr;
13967 if ac_fn_c_try_compile
"$LINENO"; then :
13968 gdb_cv_have_struct_link_map_with_l_members
=yes
13970 gdb_cv_have_struct_link_map_with_l_members
=no
13972 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
13976 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
13977 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
13979 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
13985 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
13986 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
13987 $as_echo_n "(cached) " >&6
13989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13990 /* end confdefs.h. */
13991 #include <sys/types.h>
13996 struct link_map lm; (void) lm.lm_addr;
14001 if ac_fn_c_try_compile
"$LINENO"; then :
14002 gdb_cv_have_struct_link_map_with_lm_members
=yes
14004 gdb_cv_have_struct_link_map_with_lm_members
=no
14006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
14010 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
14011 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
14013 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
14019 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
14020 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
14021 $as_echo_n "(cached) " >&6
14023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14024 /* end confdefs.h. */
14025 #include <sys/types.h>
14026 #ifdef HAVE_NLIST_H
14033 struct so_map lm; (void) lm.som_addr;
14038 if ac_fn_c_try_compile
"$LINENO"; then :
14039 gdb_cv_have_struct_so_map_with_som_members
=yes
14041 gdb_cv_have_struct_so_map_with_som_members
=no
14043 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
14047 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
14048 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
14050 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
14056 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
14057 if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
14058 $as_echo_n "(cached) " >&6
14060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14061 /* end confdefs.h. */
14063 #include <sys/link.h>
14067 struct link_map32 l;
14072 if ac_fn_c_try_compile
"$LINENO"; then :
14073 gdb_cv_have_struct_link_map32
=yes
14075 gdb_cv_have_struct_link_map32
=no
14077 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
14081 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
14082 if test $gdb_cv_have_struct_link_map32 = yes; then
14084 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
14087 $as_echo "#define _SYSCALL32 1" >>confdefs.h
14092 # Check if the compiler supports the `long long' type.
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
14095 $as_echo_n "checking for long long support in compiler... " >&6; }
14096 if test "${gdb_cv_c_long_long+set}" = set; then :
14097 $as_echo_n "(cached) " >&6
14099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14100 /* end confdefs.h. */
14101 extern long long foo;
14105 switch (foo & 2) { case 0: return 1; }
14110 if ac_fn_c_try_compile
"$LINENO"; then :
14111 gdb_cv_c_long_long
=yes
14113 gdb_cv_c_long_long
=no
14115 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
14118 $as_echo "$gdb_cv_c_long_long" >&6; }
14119 if test $gdb_cv_c_long_long = yes; then
14121 $as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
14125 # Check if the compiler and runtime support printing long longs.
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
14128 $as_echo_n "checking for long long support in printf... " >&6; }
14129 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
14130 $as_echo_n "(cached) " >&6
14132 if test "$cross_compiling" = yes; then :
14133 gdb_cv_printf_has_long_long
=no
14135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14136 /* end confdefs.h. */
14137 $ac_includes_default
14143 l = (l << 16) + 0x0123;
14144 l = (l << 16) + 0x4567;
14145 l = (l << 16) + 0x89ab;
14146 l = (l << 16) + 0xcdef;
14147 sprintf (buf, "0x%016llx", l);
14148 return (strcmp ("0x0123456789abcdef", buf));
14153 if ac_fn_c_try_run
"$LINENO"; then :
14154 gdb_cv_printf_has_long_long
=yes
14156 gdb_cv_printf_has_long_long
=no
14158 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14159 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
14164 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
14165 if test $gdb_cv_printf_has_long_long = yes; then
14167 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
14171 # Check if the compiler and runtime support printing decfloats.
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
14174 $as_echo_n "checking for decfloat support in printf... " >&6; }
14175 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
14176 $as_echo_n "(cached) " >&6
14178 if test "$cross_compiling" = yes; then :
14179 gdb_cv_printf_has_decfloat
=no
14181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14182 /* end confdefs.h. */
14183 $ac_includes_default
14188 _Decimal32 d32 = 1.2345df;
14189 _Decimal64 d64 = 1.2345dd;
14190 _Decimal128 d128 = 1.2345dl;
14191 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
14192 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
14197 if ac_fn_c_try_run
"$LINENO"; then :
14198 gdb_cv_printf_has_decfloat
=yes
14200 gdb_cv_printf_has_decfloat
=no
14202 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14203 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
14208 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
14209 if test $gdb_cv_printf_has_decfloat = yes; then
14211 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
14215 # Check if the compiler supports the `long double' type. We can't use
14216 # AC_C_LONG_DOUBLE because that one does additional checks on the
14217 # constants defined in <float.h> that fail on some systems,
14218 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
14221 $as_echo_n "checking for long double support in compiler... " >&6; }
14222 if test "${gdb_cv_c_long_double+set}" = set; then :
14223 $as_echo_n "(cached) " >&6
14225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14226 /* end confdefs.h. */
14229 if ac_fn_c_try_compile
"$LINENO"; then :
14230 gdb_cv_c_long_double
=yes
14232 gdb_cv_c_long_double
=no
14234 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
14237 $as_echo "$gdb_cv_c_long_double" >&6; }
14238 if test $gdb_cv_c_long_double = yes; then
14240 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14244 # Check if the compiler and runtime support printing long doubles.
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
14247 $as_echo_n "checking for long double support in printf... " >&6; }
14248 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
14249 $as_echo_n "(cached) " >&6
14251 if test "$cross_compiling" = yes; then :
14252 gdb_cv_printf_has_long_double
=no
14254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14255 /* end confdefs.h. */
14256 $ac_includes_default
14261 long double f = 3.141592653;
14262 sprintf (buf, "%Lg", f);
14263 return (strncmp ("3.14159", buf, 7));
14268 if ac_fn_c_try_run
"$LINENO"; then :
14269 gdb_cv_printf_has_long_double
=yes
14271 gdb_cv_printf_has_long_double
=no
14273 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14274 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
14279 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
14280 if test $gdb_cv_printf_has_long_double = yes; then
14282 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
14286 # Check if the compiler and runtime support scanning long doubles.
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
14289 $as_echo_n "checking for long double support in scanf... " >&6; }
14290 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
14291 $as_echo_n "(cached) " >&6
14293 if test "$cross_compiling" = yes; then :
14294 gdb_cv_scanf_has_long_double
=no
14296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14297 /* end confdefs.h. */
14302 char *buf = "3.141592653";
14304 sscanf (buf, "%Lg", &f);
14305 return !(f > 3.14159 && f < 3.14160);
14310 if ac_fn_c_try_run
"$LINENO"; then :
14311 gdb_cv_scanf_has_long_double
=yes
14313 gdb_cv_scanf_has_long_double
=no
14315 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14316 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
14321 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
14322 if test $gdb_cv_scanf_has_long_double = yes; then
14324 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
14331 $as_echo_n "checking for -bbigtoc option... " >&6; }
14332 if test "${gdb_cv_bigtoc+set}" = set; then :
14333 $as_echo_n "(cached) " >&6
14336 SAVE_LDFLAGS
=$LDFLAGS
14339 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
14340 *) gdb_cv_bigtoc
=-bbigtoc ;;
14343 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
14344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14345 /* end confdefs.h. */
14355 if ac_fn_c_try_link
"$LINENO"; then :
14360 rm -f core conftest.err conftest.
$ac_objext \
14361 conftest
$ac_exeext conftest.
$ac_ext
14362 LDFLAGS
="${SAVE_LDFLAGS}"
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
14366 $as_echo "$gdb_cv_bigtoc" >&6; }
14367 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
14372 $as_echo_n "checking for the dynamic export flag... " >&6; }
14374 if test "${gdb_native}" = yes; then
14375 # The dynamically loaded libthread_db needs access to symbols in the gdb
14376 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
14377 # may not be supported there.
14378 old_LDFLAGS
="$LDFLAGS"
14379 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
14380 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
14381 LDFLAGS
="$LDFLAGS $RDYNAMIC"
14382 if test "${have_libpython}" = no
; then
14383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14384 /* end confdefs.h. */
14394 if ac_fn_c_try_link
"$LINENO"; then :
14397 rm -f core conftest.err conftest.
$ac_objext \
14398 conftest
$ac_exeext conftest.
$ac_ext
14400 # Workaround http://bugs.python.org/issue4434 where static
14401 # libpythonX.Y.a would get its symbols required for
14402 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
14403 # Problem does not happen for the recommended libpythonX.Y.so linkage.
14404 old_CFLAGS
="$CFLAGS"
14405 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
14406 if test "$cross_compiling" = yes; then :
14409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14410 /* end confdefs.h. */
14411 #include "${have_libpython}/Python.h"
14417 err = PyRun_SimpleString ("import itertools\n");
14419 return err == 0 ? 0 : 1;
14424 if ac_fn_c_try_run
"$LINENO"; then :
14427 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14428 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14431 CFLAGS
="$old_CFLAGS"
14433 LDFLAGS
="$old_LDFLAGS"
14435 if $dynamic_list; then
14436 found
="-Wl,--dynamic-list"
14437 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
14440 RDYNAMIC
="-rdynamic"
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
14444 $as_echo "$found" >&6; }
14447 if test ${build} = ${host} -a ${host} = ${target} ; then
14450 # See if thread_db library is around for Solaris thread debugging.
14451 # Note that we must explicitly test for version 1 of the library
14452 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
14455 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
14456 if test -f /usr
/lib
/libthread_db.so
.1 ; then
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14458 $as_echo "yes" >&6; }
14460 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
14462 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
14463 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14465 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14466 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14467 $as_echo_n "(cached) " >&6
14469 ac_check_lib_save_LIBS
=$LIBS
14471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14472 /* end confdefs.h. */
14474 /* Override any GCC internal prototype to avoid an error.
14475 Use char because int might match the return type of a GCC
14476 builtin and then its argument prototype would still apply. */
14489 if ac_fn_c_try_link
"$LINENO"; then :
14490 ac_cv_lib_dl_dlopen
=yes
14492 ac_cv_lib_dl_dlopen
=no
14494 rm -f core conftest.err conftest.
$ac_objext \
14495 conftest
$ac_exeext conftest.
$ac_ext
14496 LIBS
=$ac_check_lib_save_LIBS
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14499 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14500 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
14501 cat >>confdefs.h
<<_ACEOF
14502 #define HAVE_LIBDL 1
14509 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} $RDYNAMIC"
14510 # Sun randomly tweaked the prototypes in <proc_service.h>
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
14513 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
14514 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
14515 $as_echo_n "(cached) " >&6
14518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14519 /* end confdefs.h. */
14521 #include <proc_service.h>
14522 ps_err_e ps_pdwrite
14523 (struct ps_prochandle*, psaddr_t, const void*, size_t);
14533 if ac_fn_c_try_compile
"$LINENO"; then :
14534 gdb_cv_proc_service_is_old
=no
14536 gdb_cv_proc_service_is_old
=yes
14538 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
14543 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
14544 if test $gdb_cv_proc_service_is_old = yes; then
14546 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14551 $as_echo "no" >&6; }
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
14556 $as_echo_n "checking for AiX thread debugging library... " >&6; }
14557 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
14558 $as_echo_n "(cached) " >&6
14560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14561 /* end confdefs.h. */
14562 #include <sys/pthdebug.h>
14566 #ifndef PTHDB_VERSION_3
14573 if ac_fn_c_try_compile
"$LINENO"; then :
14574 gdb_cv_have_aix_thread_debug
=yes
14576 gdb_cv_have_aix_thread_debug
=no
14578 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
14582 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
14583 if test $gdb_cv_have_aix_thread_debug = yes; then
14584 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
14585 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
14586 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -lpthdebug"
14588 # Older versions of AIX do not provide the declaration for
14589 # the getthrds function (it appears that it was introduced
14591 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
14593 if test "x$ac_cv_have_decl_getthrds" = x
""yes; then :
14599 cat >>confdefs.h
<<_ACEOF
14600 #define HAVE_DECL_GETTHRDS $ac_have_decl
14609 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
14611 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
14612 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
14613 $as_echo_n "(cached) " >&6
14615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14616 /* end confdefs.h. */
14617 #include <thread_db.h>
14621 int i = TD_NOTALLOC;
14626 if ac_fn_c_try_compile
"$LINENO"; then :
14627 gdb_cv_thread_db_h_has_td_notalloc
=yes
14629 gdb_cv_thread_db_h_has_td_notalloc
=no
14632 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
14636 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
14638 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
14639 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
14640 $as_echo_n "(cached) " >&6
14642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14643 /* end confdefs.h. */
14644 #include <thread_db.h>
14648 int i = TD_VERSION;
14653 if ac_fn_c_try_compile
"$LINENO"; then :
14654 gdb_cv_thread_db_h_has_td_version
=yes
14656 gdb_cv_thread_db_h_has_td_version
=no
14659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
14663 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
14665 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
14666 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
14667 $as_echo_n "(cached) " >&6
14669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14670 /* end confdefs.h. */
14671 #include <thread_db.h>
14680 if ac_fn_c_try_compile
"$LINENO"; then :
14681 gdb_cv_thread_db_h_has_td_notls
=yes
14683 gdb_cv_thread_db_h_has_td_notls
=no
14686 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
14690 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
14692 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
14694 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
14697 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
14699 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
14702 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
14704 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
14708 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
14710 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
14711 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
14712 $as_echo_n "(cached) " >&6
14714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14715 /* end confdefs.h. */
14716 #include <sys/syscall.h>
14720 int i = __NR_tkill;
14725 if ac_fn_c_try_compile
"$LINENO"; then :
14726 gdb_cv_sys_syscall_h_has_tkill
=yes
14728 gdb_cv_sys_syscall_h_has_tkill
=no
14731 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
14735 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
14737 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
14739 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
14743 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
14745 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
14751 cat >>confdefs.h
<<_ACEOF
14752 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
14756 if test "$cross_compiling" = yes; then :
14757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14758 /* end confdefs.h. */
14759 #include <sys/personality.h>
14764 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14765 # define ADDR_NO_RANDOMIZE 0x0040000
14767 /* Test the flag could be set and stays set. */
14768 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14769 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14775 if ac_fn_c_try_link
"$LINENO"; then :
14776 have_personality
=true
14778 have_personality
=false
14780 rm -f core conftest.err conftest.
$ac_objext \
14781 conftest
$ac_exeext conftest.
$ac_ext
14783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14784 /* end confdefs.h. */
14785 #include <sys/personality.h>
14790 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14791 # define ADDR_NO_RANDOMIZE 0x0040000
14793 /* Test the flag could be set and stays set. */
14794 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14795 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14801 if ac_fn_c_try_run
"$LINENO"; then :
14802 have_personality
=true
14804 have_personality
=false
14806 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14807 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14810 if $have_personality
14813 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
14818 target_sysroot_reloc
=0
14820 # Check whether --with-sysroot was given.
14821 if test "${with_sysroot+set}" = set; then :
14822 withval
=$with_sysroot;
14823 case ${with_sysroot} in
14824 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_alias}/sys-root' ;;
14825 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
14828 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
14830 if test "x$prefix" = xNONE
; then
14831 test_prefix
=/usr
/local
14833 test_prefix
=$prefix
14835 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
14836 test_exec_prefix
=$test_prefix
14838 test_exec_prefix
=$exec_prefix
14840 case ${TARGET_SYSTEM_ROOT} in
14841 "${test_prefix}"|
"${test_prefix}/"*|\
14842 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
14843 '${prefix}'|
'${prefix}/'*|\
14844 '${exec_prefix}'|
'${exec_prefix}/'*)
14845 target_sysroot_reloc
=1
14851 TARGET_SYSTEM_ROOT
=
14852 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"\"'
14856 TARGET_SYSTEM_ROOT_DEFINE
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE=$target_sysroot_reloc"
14862 # Check whether --with-system-gdbinit was given.
14863 if test "${with_system_gdbinit+set}" = set; then :
14864 withval
=$with_system_gdbinit;
14865 SYSTEM_GDBINIT
=$withval
14871 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
14872 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14873 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
14874 ac_define_dir
=`eval echo $ac_define_dir`
14876 cat >>confdefs.h
<<_ACEOF
14877 #define SYSTEM_GDBINIT "$ac_define_dir"
14883 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
14884 if test "x$prefix" = xNONE
; then
14885 test_prefix
=/usr
/local
14887 test_prefix
=$prefix
14890 test_prefix
=$exec_prefix
14893 case ${ac_define_dir} in
14894 "${test_prefix}"|
"${test_prefix}/"*|\
14895 '${exec_prefix}'|
'${exec_prefix}/'*)
14900 cat >>confdefs.h
<<_ACEOF
14901 #define SYSTEM_GDBINIT_RELOCATABLE $value
14907 # Check whether --enable-werror was given.
14908 if test "${enable_werror+set}" = set; then :
14909 enableval
=$enable_werror; case "${enableval}" in
14910 yes | y
) ERROR_ON_WARNING
="yes" ;;
14911 no | n
) ERROR_ON_WARNING
="no" ;;
14912 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
14917 # Enable -Werror by default when using gcc
14918 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
14919 ERROR_ON_WARNING
=yes
14923 if test "${ERROR_ON_WARNING}" = yes ; then
14924 WERROR_CFLAGS
="-Werror"
14927 # The entries after -Wno-pointer-sign are disabled warnings which may
14928 # be enabled in the future, which can not currently be used to build
14930 # NOTE: If you change this list, remember to update
14931 # gdb/doc/gdbint.texinfo.
14932 build_warnings
="-Wall -Wdeclaration-after-statement -Wpointer-arith \
14933 -Wformat-nonliteral -Wno-pointer-sign \
14934 -Wno-unused -Wunused-value -Wunused-function \
14935 -Wno-switch -Wno-char-subscripts"
14937 # Enable -Wno-format by default when using gcc on mingw since many
14938 # GCC versions complain about %I64.
14940 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
14943 # Check whether --enable-build-warnings was given.
14944 if test "${enable_build_warnings+set}" = set; then :
14945 enableval
=$enable_build_warnings; case "${enableval}" in
14947 no
) build_warnings
="-w";;
14948 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
14949 build_warnings
="${build_warnings} ${t}";;
14950 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
14951 build_warnings
="${t} ${build_warnings}";;
14952 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14954 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
14955 echo "Setting compiler warning flags = $build_warnings" 6>&1
14958 # Check whether --enable-gdb-build-warnings was given.
14959 if test "${enable_gdb_build_warnings+set}" = set; then :
14960 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
14962 no
) build_warnings
="-w";;
14963 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
14964 build_warnings
="${build_warnings} ${t}";;
14965 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
14966 build_warnings
="${t} ${build_warnings}";;
14967 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14969 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
14970 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
14974 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
14977 $as_echo_n "checking compiler warning flags... " >&6; }
14978 # Separate out the -Werror flag as some files just cannot be
14979 # compiled with it enabled.
14980 for w
in ${build_warnings}; do
14982 -Werr*) WERROR_CFLAGS
=-Werror ;;
14983 *) # Check that GCC accepts it
14984 saved_CFLAGS
="$CFLAGS"
14985 CFLAGS
="$CFLAGS $w"
14986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14987 /* end confdefs.h. */
14997 if ac_fn_c_try_compile
"$LINENO"; then :
14998 WARN_CFLAGS
="${WARN_CFLAGS} $w"
15000 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15001 CFLAGS
="$saved_CFLAGS"
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
15005 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
15010 # In the Cygwin environment, we need some additional flags.
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
15012 $as_echo_n "checking
for cygwin...
" >&6; }
15013 if test "${gdb_cv_os_cygwin+set}" = set; then :
15014 $as_echo_n "(cached
) " >&6
15016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15017 /* end confdefs.h. */
15019 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
15023 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15024 $EGREP "lose
" >/dev/null 2>&1; then :
15025 gdb_cv_os_cygwin=yes
15027 gdb_cv_os_cygwin=no
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
15033 $as_echo "$gdb_cv_os_cygwin" >&6; }
15036 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
15038 *go32* ) SER_HARDWIRE=ser-go32.o ;;
15039 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
15040 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
15044 # libreadline needs libuser32.a in a cygwin environment
15046 if test x$gdb_cv_os_cygwin = xyes; then
15047 WIN32LIBS="-luser32"
15048 case "${target}" in
15049 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
15054 # The ser-tcp.c module requires sockets.
15058 $as_echo "#define USE_WIN32API 1" >>confdefs.h
15060 WIN32LIBS
="$WIN32LIBS -lws2_32"
15065 # Add ELF support to GDB, but only if BFD includes ELF support.
15067 OLD_LDFLAGS
=$LDFLAGS
15069 CFLAGS
="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
15070 LDFLAGS
="$LDFLAGS -L../bfd -L../libiberty"
15071 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15072 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
15073 if test "$plugins" = "yes"; then
15076 LIBS
="-lbfd -liberty $intl $LIBS"
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
15078 $as_echo_n "checking for ELF support in BFD... " >&6; }
15079 if test "${gdb_cv_var_elf+set}" = set; then :
15080 $as_echo_n "(cached) " >&6
15082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15083 /* end confdefs.h. */
15084 #include <stdlib.h>
15086 #include "elf-bfd.h"
15091 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
15096 if ac_fn_c_try_link
"$LINENO"; then :
15101 rm -f core conftest.err conftest.
$ac_objext \
15102 conftest
$ac_exeext conftest.
$ac_ext
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
15105 $as_echo "$gdb_cv_var_elf" >&6; }
15106 if test $gdb_cv_var_elf = yes; then
15107 CONFIG_OBS
="$CONFIG_OBS elfread.o"
15109 $as_echo "#define HAVE_ELF 1" >>confdefs.h
15111 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
15112 if test "$plugins" = "yes"; then
15113 OLD_LIBS
="-ldl $OLD_LIBS"
15117 LDFLAGS
=$OLD_LDFLAGS
15120 # Add any host-specific objects to GDB.
15121 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
15123 LIBGUI
="../libgui/src/libgui.a"
15124 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
15133 *-*-cygwin* |
*-*-mingw* )
15142 if test "${enable_gdbtk}" = "yes"; then
15144 # Gdbtk must have an absolute path to srcdir in order to run
15145 # properly when not installed.
15148 GDBTK_SRC_DIR
=`pwd`
15153 # Ok, lets find the tcl configuration
15154 # First, look for one uninstalled.
15155 # the alternative search directory is invoked by --with-tcl
15158 if test x
"${no_tcl}" = x
; then
15159 # we reset no_tcl in case something fails here
15162 # Check whether --with-tcl was given.
15163 if test "${with_tcl+set}" = set; then :
15164 withval
=$with_tcl; with_tclconfig
=${withval}
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
15168 $as_echo_n "checking for Tcl configuration... " >&6; }
15169 if test "${ac_cv_c_tclconfig+set}" = set; then :
15170 $as_echo_n "(cached) " >&6
15174 # First check to see if --with-tcl was specified.
15176 *-*-cygwin*) platDir
="win" ;;
15177 *) platDir
="unix" ;;
15179 if test x
"${with_tclconfig}" != x
; then
15180 if test -f "${with_tclconfig}/tclConfig.sh" ; then
15181 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
15183 as_fn_error
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
15187 # then check for a private Tcl installation
15188 if test x
"${ac_cv_c_tclconfig}" = x
; then
15191 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15192 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
15193 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
15195 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15196 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
15197 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
15199 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15200 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
15201 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
15202 if test -f "$i/$platDir/tclConfig.sh" ; then
15203 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
15209 # on Darwin, check in Framework installation locations
15210 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
15211 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
15212 `ls -d /Library/Frameworks 2>/dev/null` \
15213 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15214 `ls -d /System/Library/Frameworks 2>/dev/null` \
15216 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
15217 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
15223 # check in a few common install locations
15224 if test x
"${ac_cv_c_tclconfig}" = x
; then
15225 for i
in `ls -d ${libdir} 2>/dev/null` \
15226 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15227 `ls -d ${prefix}/lib 2>/dev/null` \
15228 `ls -d /usr/local/lib 2>/dev/null` \
15229 `ls -d /usr/contrib/lib 2>/dev/null` \
15230 `ls -d /usr/lib 2>/dev/null` \
15232 if test -f "$i/tclConfig.sh" ; then
15233 ac_cv_c_tclconfig
=`(cd $i; pwd)`
15239 # check in a few other private locations
15240 if test x
"${ac_cv_c_tclconfig}" = x
; then
15243 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15244 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
15245 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
15246 if test -f "$i/$platDir/tclConfig.sh" ; then
15247 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
15256 if test x
"${ac_cv_c_tclconfig}" = x
; then
15257 TCL_BIN_DIR
="# no Tcl configs found"
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
15259 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
15262 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
15264 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15269 # If $no_tk is nonempty, then we can't do Tk, and there is no
15270 # point to doing Tcl.
15273 # Ok, lets find the tk configuration
15274 # First, look for one uninstalled.
15275 # the alternative search directory is invoked by --with-tk
15278 if test x
"${no_tk}" = x
; then
15279 # we reset no_tk in case something fails here
15282 # Check whether --with-tk was given.
15283 if test "${with_tk+set}" = set; then :
15284 withval
=$with_tk; with_tkconfig
=${withval}
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
15288 $as_echo_n "checking for Tk configuration... " >&6; }
15289 if test "${ac_cv_c_tkconfig+set}" = set; then :
15290 $as_echo_n "(cached) " >&6
15294 # First check to see if --with-tkconfig was specified.
15295 if test x
"${with_tkconfig}" != x
; then
15296 if test -f "${with_tkconfig}/tkConfig.sh" ; then
15297 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
15299 as_fn_error
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
15303 # then check for a private Tk library
15305 *-*-cygwin*) platDir
="win" ;;
15306 *) platDir
="unix" ;;
15308 if test x
"${ac_cv_c_tkconfig}" = x
; then
15311 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15312 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
15313 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
15315 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15316 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
15317 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
15319 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15320 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
15321 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
15322 if test -f "$i/$platDir/tkConfig.sh" ; then
15323 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
15329 # on Darwin, check in Framework installation locations
15330 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
15331 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
15332 `ls -d /Library/Frameworks 2>/dev/null` \
15333 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15334 `ls -d /System/Library/Frameworks 2>/dev/null` \
15336 if test -f "$i/Tk.framework/tkConfig.sh" ; then
15337 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
15343 # check in a few common install locations
15344 if test x
"${ac_cv_c_tkconfig}" = x
; then
15345 for i
in `ls -d ${libdir} 2>/dev/null` \
15346 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15347 `ls -d ${prefix}/lib 2>/dev/null` \
15348 `ls -d /usr/local/lib 2>/dev/null` \
15349 `ls -d /usr/contrib/lib 2>/dev/null` \
15350 `ls -d /usr/lib 2>/dev/null` \
15352 if test -f "$i/tkConfig.sh" ; then
15353 ac_cv_c_tkconfig
=`(cd $i; pwd)`
15358 # check in a few other private locations
15359 if test x
"${ac_cv_c_tkconfig}" = x
; then
15362 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15363 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
15364 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
15365 if test -f "$i/$platDir/tkConfig.sh" ; then
15366 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
15375 if test x
"${ac_cv_c_tkconfig}" = x
; then
15376 TK_BIN_DIR
="# no Tk configs found"
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
15378 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
15381 TK_BIN_DIR
=${ac_cv_c_tkconfig}
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
15383 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15388 if test -z "${no_tcl}" -a -z "${no_tk}"; then
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
15391 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
15393 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15395 $as_echo "loading" >&6; }
15396 .
${TCL_BIN_DIR}/tclConfig.sh
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
15399 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15402 # eval is required to do the TCL_DBGX substitution
15403 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
15404 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
15406 # If the TCL_BIN_DIR is the build directory (not the install directory),
15407 # then set the common variable name to the value of the build variables.
15408 # For example, the variable TCL_LIB_SPEC will be set to the value
15409 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
15410 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
15411 # installed and uninstalled version of Tcl.
15412 if test -f "${TCL_BIN_DIR}/Makefile" ; then
15413 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
15414 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
15415 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
15416 elif test "`uname -s`" = "Darwin"; then
15417 # If Tcl was built as a framework, attempt to use the libraries
15418 # from the framework at the given location so that linking works
15419 # against Tcl.framework installed in an arbitary location.
15420 case ${TCL_DEFS} in
15422 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
15423 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
15424 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
15425 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
15426 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
15431 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
15432 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
15433 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
15439 # eval is required to do the TCL_DBGX substitution
15440 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
15441 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
15442 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
15443 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
15459 # Check for in-tree tcl
15466 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
15470 # Find Tcl private headers
15471 if test x
"${intree}" = xno
; then
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
15474 $as_echo_n "checking for Tcl private headers... " >&6; }
15476 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
15477 if test -f ${dir}/tclInt.h
; then
15481 if test x
"${private_dir}" = x
; then
15482 as_fn_error
"could not find private Tcl headers" "$LINENO" 5
15484 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15486 $as_echo "${private_dir}" >&6; }
15489 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
15490 TCL_LIBRARY
="${TCL_LIB_SPEC}"
15493 # If building tcl in the same src tree, private headers
15494 # are not needed, but we need to be sure to use the right
15496 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
15497 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
15498 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
15506 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
15508 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15510 $as_echo "loading" >&6; }
15511 .
${TK_BIN_DIR}/tkConfig.sh
15513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
15514 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15517 # eval is required to do the TK_DBGX substitution
15518 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
15519 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
15521 # If the TK_BIN_DIR is the build directory (not the install directory),
15522 # then set the common variable name to the value of the build variables.
15523 # For example, the variable TK_LIB_SPEC will be set to the value
15524 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
15525 # instead of TK_BUILD_LIB_SPEC since it will work with both an
15526 # installed and uninstalled version of Tcl.
15527 if test -f "${TK_BIN_DIR}/Makefile" ; then
15528 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
15529 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
15530 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
15531 elif test "`uname -s`" = "Darwin"; then
15532 # If Tk was built as a framework, attempt to use the libraries
15533 # from the framework at the given location so that linking works
15534 # against Tk.framework installed in an arbitary location.
15537 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
15538 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
15539 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
15540 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
15541 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
15546 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
15547 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
15548 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
15554 # eval is required to do the TK_DBGX substitution
15555 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
15556 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
15557 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
15558 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
15573 # Check for in-tree Tk
15575 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
15579 # Find Tk private headers
15580 if test x
"${intree}" = xno
; then
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
15583 $as_echo_n "checking for Tk private headers... " >&6; }
15585 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
15586 if test -f ${dir}/tkInt.h
; then
15590 if test x
"${private_dir}" = x
; then
15591 as_fn_error
"could not find Tk private headers" "$LINENO" 5
15593 TK_PRIVATE_INCLUDE
="-I${private_dir}"
15594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15595 $as_echo "${private_dir}" >&6; }
15598 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
15599 TK_LIBRARY
=${TK_LIB_SPEC}
15602 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
15603 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
15604 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
15611 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
15613 # Include some libraries that Tcl and Tk want.
15614 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
15615 # Yes, the ordering seems wrong here. But it isn't.
15616 # TK_LIBS is the list of libraries that need to be linked
15617 # after Tcl/Tk. Note that this isn't put into LIBS. If it
15618 # were in LIBS then any link tests after this point would
15619 # try to include things like `$(LIBGUI)', which wouldn't work.
15620 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
15622 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
15623 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
15624 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
15625 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
15626 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
15627 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
15628 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
15630 if test x
$gdb_cv_os_cygwin = xyes
; then
15631 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
15632 WIN32LDAPP
="-Wl,--subsystem,console"
15633 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
15636 subdirs
="$subdirs gdbtk"
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15649 $as_echo_n "checking for X... " >&6; }
15652 # Check whether --with-x was given.
15653 if test "${with_x+set}" = set; then :
15657 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15658 if test "x$with_x" = xno
; then
15659 # The user explicitly disabled X.
15662 case $x_includes,$x_libraries in #(
15663 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
15664 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
15665 $as_echo_n "(cached) " >&6
15667 # One or both of the vars are not set, and there is no cached value.
15668 ac_x_includes
=no ac_x_libraries
=no
15669 rm -f -r conftest.dir
15670 if mkdir conftest.dir
; then
15672 cat >Imakefile
<<'_ACEOF'
15674 @echo incroot='${INCROOT}'
15676 @echo usrlibdir='${USRLIBDIR}'
15678 @echo libdir='${LIBDIR}'
15680 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
15681 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15682 for ac_var
in incroot usrlibdir libdir
; do
15683 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15685 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
15686 for ac_extension
in a so sl dylib la dll
; do
15687 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15688 test -f "$ac_im_libdir/libX11.$ac_extension"; then
15689 ac_im_usrlibdir
=$ac_im_libdir; break
15692 # Screen out bogus values from the imake configuration. They are
15693 # bogus both because they are the default anyway, and because
15694 # using them would break gcc on systems where it needs fixed includes.
15695 case $ac_im_incroot in
15696 /usr
/include
) ac_x_includes
= ;;
15697 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
15699 case $ac_im_usrlibdir in
15700 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
15701 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
15705 rm -f -r conftest.dir
15708 # Standard set of common directories for X headers.
15709 # Check X11 before X11Rn because it is often a symlink to the current release.
15723 /usr/local/X11/include
15724 /usr/local/X11R7/include
15725 /usr/local/X11R6/include
15726 /usr/local/X11R5/include
15727 /usr/local/X11R4/include
15729 /usr/local/include/X11
15730 /usr/local/include/X11R7
15731 /usr/local/include/X11R6
15732 /usr/local/include/X11R5
15733 /usr/local/include/X11R4
15737 /usr/XFree86/include/X11
15741 /usr/unsupported/include
15742 /usr/athena/include
15743 /usr/local/x11r5/include
15744 /usr/lpp/Xamples/include
15746 /usr/openwin/include
15747 /usr/openwin/share/include'
15749 if test "$ac_x_includes" = no
; then
15750 # Guess where to find include files, by looking for Xlib.h.
15751 # First, try using that file with no special directory specified.
15752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15753 /* end confdefs.h. */
15754 #include <X11/Xlib.h>
15756 if ac_fn_c_try_cpp
"$LINENO"; then :
15757 # We can compile using X headers with no special include directory.
15760 for ac_dir
in $ac_x_header_dirs; do
15761 if test -r "$ac_dir/X11/Xlib.h"; then
15762 ac_x_includes
=$ac_dir
15767 rm -f conftest.err conftest.
$ac_ext
15768 fi # $ac_x_includes = no
15770 if test "$ac_x_libraries" = no
; then
15771 # Check for the libraries.
15772 # See if we find them without any special options.
15773 # Don't add to $LIBS permanently.
15776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15777 /* end confdefs.h. */
15778 #include <X11/Xlib.h>
15787 if ac_fn_c_try_link
"$LINENO"; then :
15789 # We can link X programs with no special library path.
15793 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15795 # Don't even attempt the hair of trying to link an X program!
15796 for ac_extension
in a so sl dylib la dll
; do
15797 if test -r "$ac_dir/libX11.$ac_extension"; then
15798 ac_x_libraries
=$ac_dir
15804 rm -f core conftest.err conftest.
$ac_objext \
15805 conftest
$ac_exeext conftest.
$ac_ext
15806 fi # $ac_x_libraries = no
15808 case $ac_x_includes,$ac_x_libraries in #(
15809 no
,* |
*,no |
*\'*)
15810 # Didn't find X, or a directory has "'" in its name.
15811 ac_cv_have_x
="have_x=no";; #(
15813 # Record where we found X for the cache.
15814 ac_cv_have_x
="have_x=yes\
15815 ac_x_includes='$ac_x_includes'\
15816 ac_x_libraries='$ac_x_libraries'"
15822 eval "$ac_cv_have_x"
15825 if test "$have_x" != yes; then
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15827 $as_echo "$have_x" >&6; }
15830 # If each of the values was on the command line, it overrides each guess.
15831 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
15832 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
15833 # Update the cache value to reflect the command line values.
15834 ac_cv_have_x
="have_x=yes\
15835 ac_x_includes='$x_includes'\
15836 ac_x_libraries='$x_libraries'"
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15838 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15842 # Unlike the sim directory, whether a simulator is linked is controlled by
15843 # presence of a gdb_sim definition in the target configure.tgt entry.
15844 # This code just checks for a few cases where we'd like to ignore those
15845 # definitions, even when they're present in the '.mt' file. These cases
15846 # are when --disable-sim is specified, or if the simulator directory is
15847 # not part of the source tree.
15849 # Check whether --enable-sim was given.
15850 if test "${enable_sim+set}" = set; then :
15851 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
15852 echo "enableval = ${enableval}";
15853 case "${enableval}" in
15854 yes) ignore_sim
=false
;;
15855 no
) ignore_sim
=true
;;
15856 *) ignore_sim
=false
;;
15863 if test ! -d "${srcdir}/../sim"; then
15869 if test "${ignore_sim}" = "false"; then
15870 if test x
"${gdb_sim}" != x
; then
15872 SIM_OBS
="remote-sim.o"
15874 $as_echo "#define WITH_SIM 1" >>confdefs.h
15892 # List of host floatformats.
15894 cat >>confdefs.h
<<_ACEOF
15895 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
15899 cat >>confdefs.h
<<_ACEOF
15900 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
15904 cat >>confdefs.h
<<_ACEOF
15905 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
15909 # target_subdir is used by the testsuite to find the target libraries.
15911 if test "${host}" != "${target}"; then
15912 target_subdir
="${target_alias}/"
15917 if test "${gdb_native}" = "yes"; then
15918 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
15919 if test ! -f ${host_makefile_frag}; then
15920 as_fn_error
"\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
15922 frags
="$frags $host_makefile_frag"
15924 host_makefile_frag
=/dev
/null
15930 if test "${gdb_native}" = "yes"; then
15931 # We pick this up from the host configuration file (.mh) because we
15932 # do not have a native configuration Makefile fragment.
15933 nativefile
=`sed -n '
15934 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
15935 ' ${host_makefile_frag}`
15939 if test x
"${gdb_osabi}" != x
; then
15941 cat >>confdefs.h
<<_ACEOF
15942 #define GDB_OSABI_DEFAULT $gdb_osabi
15947 # Enable multi-ice-gdb-server.
15948 # Check whether --enable-multi-ice was given.
15949 if test "${enable_multi_ice+set}" = set; then :
15950 enableval
=$enable_multi_ice; case $enableval in
15953 *) as_fn_error
"bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
15957 if test "x$enable_multi_ice" = xyes
; then
15958 subdirs
="$subdirs multi-ice"
15962 # Check whether --enable-gdbserver was given.
15963 if test "${enable_gdbserver+set}" = set; then :
15964 enableval
=$enable_gdbserver; case "${enableval}" in
15966 *) as_fn_error
"bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
15969 enable_gdbserver
=auto
15973 # We only build gdbserver automatically in a native configuration, and
15974 # only if the user did not explicitly disable its build.
15975 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
15977 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
15978 if test "x$build_gdbserver" = xyes
; then
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15980 $as_echo "yes" >&6; }
15981 subdirs
="$subdirs gdbserver"
15983 gdbserver_build_enabled
=yes
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15986 $as_echo "no" >&6; }
15990 # If the user explicitly request the gdbserver to be built, verify that
15991 # we were in fact able to enable it.
15992 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
15993 as_fn_error
"Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
15996 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
15997 # to an empty version.
16003 if test "${nativefile}" != ""; then
16004 case "${nativefile}" in
16005 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
16006 * ) GDB_NM_FILE
="${nativefile}"
16008 files
="${files} ${GDB_NM_FILE}"
16009 links
="${links} nm.h"
16011 cat >>confdefs.h
<<_ACEOF
16012 #define GDB_NM_FILE "${GDB_NM_FILE}"
16018 ac_sources
="$files"
16020 while test -n "$ac_sources"; do
16021 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
16022 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
16023 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
16025 ac_config_links
="$ac_config_links $ac_config_links_1"
16031 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
16034 ac_config_files
="$ac_config_files Makefile .gdbinit:gdbinit.in doc/Makefile gnulib/Makefile data-directory/Makefile"
16036 ac_config_commands
="$ac_config_commands default"
16038 cat >confcache
<<\_ACEOF
16039 # This file is a shell script that caches the results of configure
16040 # tests run on this system so they can be shared between configure
16041 # scripts and configure runs, see configure's option --config-cache.
16042 # It is not useful on other systems. If it contains results you don't
16043 # want to keep, you may remove or edit it.
16045 # config.status only pays attention to the cache file if you give it
16046 # the --recheck option to rerun configure.
16048 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16049 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16050 # following values.
16054 # The following way of writing the cache mishandles newlines in values,
16055 # but we know of no workaround that is simple, portable, and efficient.
16056 # So, we kill variables containing newlines.
16057 # Ultrix sh set writes to stderr and can't be redirected directly,
16058 # and sets the high bit in the cache file unless we assign to the vars.
16060 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16061 eval ac_val
=\$
$ac_var
16065 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16066 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16069 _ | IFS | as_nl
) ;; #(
16070 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16071 *) { eval $ac_var=; unset $ac_var;} ;;
16077 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16078 *${as_nl}ac_space
=\
*)
16079 # `set' does not quote correctly, so add quotes: double-quote
16080 # substitution turns \\\\ into \\, and sed turns \\ into \.
16083 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16086 # `set' quotes correctly as required by POSIX, so do not add quotes.
16087 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16096 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16098 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16100 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16101 if test -w "$cache_file"; then
16102 test "x$cache_file" != "x/dev/null" &&
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16104 $as_echo "$as_me: updating cache $cache_file" >&6;}
16105 cat confcache
>$cache_file
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16108 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16113 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16114 # Let make expand exec_prefix.
16115 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16117 DEFS
=-DHAVE_CONFIG_H
16121 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16122 # 1. Remove the extension, and $U if already installed.
16123 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16124 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16125 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16126 # will be set to the directory where LIBOBJS objects are built.
16127 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16128 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16130 LIBOBJS
=$ac_libobjs
16132 LTLIBOBJS
=$ac_ltlibobjs
16135 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16136 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
16137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16139 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
16140 as_fn_error
"conditional \"GMAKE\" was never defined.
16141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16143 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
16144 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
16145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16150 if test -n "$gl_LIBOBJS"; then
16151 # Remove the extension.
16152 sed_drop_objext
='s/\.o$//;s/\.obj$//'
16153 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16154 gl_libobjs
="$gl_libobjs $i.$ac_objext"
16155 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
16158 gl_LIBOBJS
=$gl_libobjs
16160 gl_LTLIBOBJS
=$gl_ltlibobjs
16166 if test -n "$gltests_LIBOBJS"; then
16167 # Remove the extension.
16168 sed_drop_objext
='s/\.o$//;s/\.obj$//'
16169 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16170 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
16171 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
16174 gltests_LIBOBJS
=$gltests_libobjs
16176 gltests_LTLIBOBJS
=$gltests_ltlibobjs
16179 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16180 as_fn_error
"conditional \"AMDEP\" was never defined.
16181 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16183 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16184 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
16185 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16187 if test -n "$EXEEXT"; then
16189 am__EXEEXT_FALSE
='#'
16191 am__EXEEXT_TRUE
='#'
16197 : ${CONFIG_STATUS=./config.status}
16199 ac_clean_files_save
=$ac_clean_files
16200 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16202 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16204 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16206 # Generated by $as_me.
16207 # Run this file to recreate the current configuration.
16208 # Compiler output produced by configure, useful for debugging
16209 # configure, is in config.log if it exists.
16212 ac_cs_recheck=false
16215 SHELL=\${CONFIG_SHELL-$SHELL}
16218 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16219 ## -------------------- ##
16220 ## M4sh Initialization. ##
16221 ## -------------------- ##
16223 # Be more Bourne compatible
16224 DUALCASE
=1; export DUALCASE
# for MKS sh
16225 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16228 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16229 # is contrary to our usage. Disable this feature.
16230 alias -g '${1+"$@"}'='"$@"'
16231 setopt NO_GLOB_SUBST
16233 case `(set -o) 2>/dev/null` in #(
16245 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16246 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16247 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16248 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16249 # Prefer a ksh shell builtin over an external printf program on Solaris,
16250 # but without wasting forks for bash or zsh.
16251 if test -z "$BASH_VERSION$ZSH_VERSION" \
16252 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16253 as_echo='print
-r --'
16254 as_echo_n='print
-rn --'
16255 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16256 as_echo='printf %s
\n'
16257 as_echo_n='printf %s
'
16259 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16260 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
16261 as_echo_n='/usr
/ucb
/echo -n'
16263 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16264 as_echo_n_body='eval
16268 expr "X$arg" : "X\\(.*\\)$as_nl";
16269 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16271 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
16273 export as_echo_n_body
16274 as_echo_n='sh
-c $as_echo_n_body as_echo
'
16276 export as_echo_body
16277 as_echo='sh
-c $as_echo_body as_echo
'
16280 # The user is always right.
16281 if test "${PATH_SEPARATOR+set}" != set; then
16283 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16284 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16291 # We need space, tab and new line, in precisely that order. Quoting is
16292 # there to prevent editors from complaining about space-tab.
16293 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16294 # splitting by setting IFS to empty value.)
16297 # Find who we are. Look in the path if we contain no directory separator.
16299 *[\\/]* ) as_myself=$0 ;;
16300 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16301 for as_dir in $PATH
16304 test -z "$as_dir" && as_dir=.
16305 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16311 # We did not find ourselves, most probably we were run as `sh COMMAND'
16312 # in which case we are not to be found in the path.
16313 if test "x$as_myself" = x
; then
16316 if test ! -f "$as_myself"; then
16317 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16321 # Unset variables that we do not need and which cause bugs (e.g. in
16322 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16323 # suppresses any "Segmentation fault" message there. '((' could
16324 # trigger a bug in pdksh 5.2.14.
16325 for as_var
in BASH_ENV ENV MAIL MAILPATH
16326 do eval test x\
${$as_var+set} = xset \
16327 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
16340 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
16343 # as_fn_error ERROR [LINENO LOG_FD]
16344 # ---------------------------------
16345 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16346 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16347 # script with status $?, using 1 if that was 0.
16350 as_status
=$?
; test $as_status -eq 0 && as_status
=1
16352 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
16353 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16355 $as_echo "$as_me: error: $1" >&2
16356 as_fn_exit
$as_status
16360 # as_fn_set_status STATUS
16361 # -----------------------
16362 # Set $? to STATUS, without forking.
16363 as_fn_set_status
()
16366 } # as_fn_set_status
16368 # as_fn_exit STATUS
16369 # -----------------
16370 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16374 as_fn_set_status
$1
16380 # Portably unset VAR.
16383 { eval $1=; unset $1;}
16385 as_unset
=as_fn_unset
16386 # as_fn_append VAR VALUE
16387 # ----------------------
16388 # Append the text in VALUE to the end of the definition contained in VAR. Take
16389 # advantage of any shell optimizations that allow amortized linear growth over
16390 # repeated appends, instead of the typical quadratic growth present in naive
16392 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
16393 eval 'as_fn_append ()
16404 # as_fn_arith ARG...
16405 # ------------------
16406 # Perform arithmetic evaluation on the ARGs, and store the result in the
16407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16408 # must be portable across $(()) and expr.
16409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
16410 eval 'as_fn_arith ()
16417 as_val
=`expr "$@" || test $? -eq 1`
16422 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16423 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16429 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16430 as_basename
=basename
16435 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16441 as_me
=`$as_basename -- "$0" ||
16442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16443 X"$0" : 'X\(//\)$' \| \
16444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16446 sed '/^.*\/\([^/][^/]*\)\/*$/{
16460 # Avoid depending upon Character Ranges.
16461 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16462 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16463 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16464 as_cr_digits
='0123456789'
16465 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16467 ECHO_C
= ECHO_N
= ECHO_T
=
16468 case `echo -n x` in #(((((
16470 case `echo 'xy\c'` in
16471 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16473 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16480 rm -f conf$$ conf$$.exe conf$$.
file
16481 if test -d conf$$.dir
; then
16482 rm -f conf$$.dir
/conf$$.
file
16485 mkdir conf$$.dir
2>/dev
/null
16487 if (echo >conf$$.
file) 2>/dev
/null
; then
16488 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16490 # ... but there are two gotchas:
16491 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16492 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16493 # In both cases, we have to default to `cp -p'.
16494 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16496 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16504 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16505 rmdir conf$$.dir
2>/dev
/null
16510 # Create "$as_dir" as a directory, including parents if necessary.
16515 -*) as_dir
=.
/$as_dir;;
16517 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16521 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16522 *) as_qdir
=$as_dir;;
16524 as_dirs
="'$as_qdir' $as_dirs"
16525 as_dir
=`$as_dirname -- "$as_dir" ||
16526 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16527 X"$as_dir" : 'X\(//\)[^/]' \| \
16528 X"$as_dir" : 'X\(//\)$' \| \
16529 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16530 $as_echo X"$as_dir" |
16531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16535 /^X\(\/\/\)[^/].*/{
16548 test -d "$as_dir" && break
16550 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16551 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
16555 if mkdir
-p .
2>/dev
/null
; then
16556 as_mkdir_p
='mkdir -p "$as_dir"'
16558 test -d .
/-p && rmdir .
/-p
16562 if test -x / >/dev
/null
2>&1; then
16563 as_test_x
='test -x'
16565 if ls -dL / >/dev
/null
2>&1; then
16572 if test -d "$1"; then
16578 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16579 ???[sx]*):;;*)false;;esac;fi
16583 as_executable_p
=$as_test_x
16585 # Sed expression to map a string onto a valid CPP name.
16586 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16588 # Sed expression to map a string onto a valid variable name.
16589 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16593 ## ----------------------------------- ##
16594 ## Main body of $CONFIG_STATUS script. ##
16595 ## ----------------------------------- ##
16597 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16600 # Save the log message, to keep $0 and so on meaningful, and to
16601 # report actual input values of CONFIG_FILES etc. instead of their
16602 # values after options handling.
16604 This file was extended by $as_me, which was
16605 generated by GNU Autoconf 2.64. Invocation command line was
16607 CONFIG_FILES = $CONFIG_FILES
16608 CONFIG_HEADERS = $CONFIG_HEADERS
16609 CONFIG_LINKS = $CONFIG_LINKS
16610 CONFIG_COMMANDS = $CONFIG_COMMANDS
16613 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16618 case $ac_config_files in *"
16619 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16622 case $ac_config_headers in *"
16623 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16628 # Files that config.status was made for.
16629 config_files="$ac_config_files"
16630 config_headers="$ac_config_headers"
16631 config_links="$ac_config_links"
16632 config_commands="$ac_config_commands"
16636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16638 \`$as_me' instantiates files and other configuration actions
16639 from templates according to the current configuration. Unless the files
16640 and actions are specified as TAGs, all are instantiated by default.
16642 Usage: $0 [OPTION]... [TAG]...
16644 -h, --help print this help, then exit
16645 -V, --version print version number and configuration settings, then exit
16646 -q, --quiet, --silent
16647 do not print progress messages
16648 -d, --debug don't remove temporary files
16649 --recheck update $as_me by reconfiguring in the same conditions
16650 --file=FILE[:TEMPLATE]
16651 instantiate the configuration file FILE
16652 --header=FILE[:TEMPLATE]
16653 instantiate the configuration header FILE
16655 Configuration files:
16658 Configuration headers:
16661 Configuration links:
16664 Configuration commands:
16667 Report bugs to the package provider."
16670 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16673 configured by $0, generated by GNU Autoconf 2.64,
16674 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16676 Copyright (C) 2009 Free Software Foundation, Inc.
16677 This config.status script is free software; the Free Software Foundation
16678 gives unlimited permission to copy, distribute and modify it."
16685 test -n "\$AWK" || AWK=awk
16688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16689 # The default lists apply if the user does not specify any file.
16695 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16696 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16707 # Handling of the options.
16708 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16710 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16711 $as_echo "$ac_cs_version"; exit ;;
16712 --debug |
--debu |
--deb |
--de |
--d |
-d )
16714 --file |
--fil |
--fi |
--f )
16717 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16719 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16720 ac_need_defaults
=false
;;
16721 --header |
--heade |
--head |
--hea )
16724 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16726 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
16727 ac_need_defaults
=false
;;
16729 # Conflict between --help and --header
16730 as_fn_error
"ambiguous option: \`$1'
16731 Try \`$0 --help' for more information.";;
16732 --help |
--hel |
-h )
16733 $as_echo "$ac_cs_usage"; exit ;;
16734 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16735 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16738 # This is an error.
16739 -*) as_fn_error
"unrecognized option: \`$1'
16740 Try \`$0 --help' for more information." ;;
16742 *) as_fn_append ac_config_targets
" $1"
16743 ac_need_defaults
=false
;;
16749 ac_configure_extra_args
=
16751 if $ac_cs_silent; then
16753 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16758 if \$ac_cs_recheck; then
16759 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16761 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16762 CONFIG_SHELL='$SHELL'
16763 export CONFIG_SHELL
16768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16772 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16773 ## Running $as_me. ##
16779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16783 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16784 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16790 # Handling of arguments.
16791 for ac_config_target
in $ac_config_targets
16793 case $ac_config_target in
16794 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
16795 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
16796 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
16797 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
16798 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16799 ".gdbinit") CONFIG_FILES
="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
16800 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
16801 "gnulib/Makefile") CONFIG_FILES
="$CONFIG_FILES gnulib/Makefile" ;;
16802 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
16803 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
16805 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16810 # If the user did not use the arguments to specify the items to instantiate,
16811 # then the envvar interface is used. Set only those that are not.
16812 # We use the long form for the default assignment because of an extremely
16813 # bizarre bug on SunOS 4.1.3.
16814 if $ac_need_defaults; then
16815 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16816 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16817 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
16818 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16821 # Have a temporary directory for convenience. Make it in the build tree
16822 # simply because there is no reason against having it here, and in addition,
16823 # creating and moving files from /tmp can sometimes cause problems.
16824 # Hook for its removal unless debugging.
16825 # Note that there is a small window in which the directory will not be cleaned:
16826 # after its creation but before its name has been assigned to `$tmp'.
16830 trap 'exit_status=$?
16831 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16833 trap 'as_fn_exit 1' 1 2 13 15
16835 # Create a (secure) tmp directory for tmp files.
16838 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16839 test -n "$tmp" && test -d "$tmp"
16842 tmp
=.
/conf$$
-$RANDOM
16843 (umask 077 && mkdir
"$tmp")
16844 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
16846 # Set up the scripts for CONFIG_FILES section.
16847 # No need to generate them if there are no CONFIG_FILES.
16848 # This happens for instance with `./config.status config.h'.
16849 if test -n "$CONFIG_FILES"; then
16851 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
16852 ac_cs_awk_getline
=:
16853 ac_cs_awk_pipe_init
=
16854 ac_cs_awk_read_file
='
16855 while ((getline aline < (F[key])) > 0)
16858 ac_cs_awk_pipe_fini
=
16860 ac_cs_awk_getline
=false
16861 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
16862 ac_cs_awk_read_file
='
16864 print "cat " F[key] " &&"
16865 '$ac_cs_awk_pipe_init
16866 # The final `:' finishes the AND list.
16867 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
16869 ac_cr
=`echo X | tr X '\015'`
16870 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16871 # But we know of no other shell where ac_cr would be empty at this
16872 # point, so we can use a bashism as a fallback.
16873 if test "x$ac_cr" = x
; then
16874 eval ac_cr
=\$
\'\\r
\'
16876 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16877 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16880 ac_cs_awk_cr
=$ac_cr
16883 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16886 # Create commands to substitute file output variables.
16888 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16889 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16890 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
16893 } >conf$
$files.sh
&&
16894 . .
/conf$
$files.sh ||
16895 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
16896 rm -f conf$
$files.sh
16899 echo "cat >conf$$subs.awk <<_ACEOF" &&
16900 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16902 } >conf$$subs.sh ||
16903 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16904 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16906 for ac_last_try in false false false false false :; do
16907 . ./conf$$subs.sh ||
16908 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16910 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16911 if test $ac_delim_n = $ac_delim_num; then
16913 elif $ac_last_try; then
16914 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16916 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16919 rm -f conf$$subs.sh
16921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16922 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
16926 s/^/S["/; s
/!.
*/"]=/
16936 s/\(.\{148\}\).*/\1/
16938 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16943 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16950 s/\(.\{148\}\).*/\1/
16952 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16956 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16961 ' <conf$$subs.awk | sed '
16966 ' >>$CONFIG_STATUS || ac_write_fail=1
16967 rm -f conf$$subs.awk
16968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16970 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
16971 for (key in S) S_is_set[key] = 1
16973 \$ac_cs_awk_pipe_init
16977 nfields = split(line, field, "@
")
16979 len = length(field[1])
16980 for (i = 2; i < nfields; i++) {
16982 keylen = length(key)
16983 if (S_is_set[key]) {
16985 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16986 len += length(value) + length(field[++i])
16991 if (nfields == 3 && !substed) {
16993 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16994 \$ac_cs_awk_read_file
17000 \$ac_cs_awk_pipe_fini
17003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17004 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17005 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
17008 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
17009 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
17012 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17013 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
17014 # trailing colons and then remove the whole line if VPATH becomes empty
17015 # (actually we leave an empty line to preserve line numbers).
17016 if test "x
$srcdir" = x.; then
17017 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17018 s/:*\$(srcdir):*/:/
17019 s/:*\${srcdir}:*/:/
17021 s/^\([^=]*=[ ]*\):*/\1/
17027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17028 fi # test -n "$CONFIG_FILES"
17030 # Set up the scripts for CONFIG_HEADERS section.
17031 # No need to generate them if there are no CONFIG_HEADERS.
17032 # This happens for instance with `./config.status Makefile'.
17033 if test -n "$CONFIG_HEADERS"; then
17034 cat >"$tmp/defines.
awk" <<\_ACAWK ||
17038 # Transform confdefs.h into an awk script `defines.awk', embedded as
17039 # here-document in config.status, that substitutes the proper values into
17040 # config.h.in to produce config.h.
17042 # Create a delimiter string that does not exist in confdefs.h, to ease
17043 # handling of long lines.
17045 for ac_last_try in false false :; do
17046 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
17047 if test -z "$ac_t"; then
17049 elif $ac_last_try; then
17050 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
17052 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17056 # For the awk script, D is an array of macro values keyed by name,
17057 # likewise P contains macro parameters if any. Preserve backslash
17058 # newline sequences.
17060 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17062 s/.\{148\}/&'"$ac_delim"'/g
17065 s/^[ ]*#[ ]*define[ ][ ]*/ /
17072 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
17074 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
17078 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
17079 D["\
1"]=" \
3\\\\\\n
"\\/p
17081 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
17086 s/.\{148\}/&'"$ac_delim"'/g
17091 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
17094 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
17096 ' <confdefs.h | sed '
17097 s/'"$ac_delim"'/"\\\
17098 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17101 for (key in D) D_is_set[key] = 1
17104 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17106 split(line, arg, " ")
17107 if (arg[1] == "#") {
17111 defundef
= substr
(arg
[1], 2)
17114 split(mac1
, mac2
, "(") #)
17116 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
17117 if (D_is_set
[macro
]) {
17118 # Preserve the white space surrounding the "#".
17119 print prefix
"define", macro P
[macro
] D
[macro
]
17122 # Replace #undef with comments. This is necessary, for example,
17123 # in the case of _POSIX_SOURCE, which is predefined and required
17124 # on some systems where configure will not decide to define it.
17125 if (defundef
== "undef") {
17126 print
"/*", prefix defundef
, macro
, "*/"
17134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17135 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
17136 fi # test -n "$CONFIG_HEADERS"
17139 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17144 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17146 case $ac_mode$ac_tag in
17148 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
17149 :[FH
]-) ac_tag
=-:-;;
17150 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17167 -) ac_f
="$tmp/stdin";;
17168 *) # Look for the file first in the build tree, then in the source tree
17169 # (if the path is not absolute). The absolute path cannot be DOS-style,
17170 # because $ac_f cannot contain `:'.
17174 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17176 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
17178 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17179 as_fn_append ac_file_inputs
" '$ac_f'"
17182 # Let's still pretend it is `configure' which instantiates (i.e., don't
17183 # use $as_me), people would be surprised to read:
17184 # /* config.h. Generated by config.status. */
17185 configure_input
='Generated from '`
17186 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17188 if test x
"$ac_file" != x-
; then
17189 configure_input
="$ac_file. $configure_input"
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17191 $as_echo "$as_me: creating $ac_file" >&6;}
17193 # Neutralize special characters interpreted by sed in replacement strings.
17194 case $configure_input in #(
17195 *\
&* |
*\|
* |
*\\* )
17196 ac_sed_conf_input
=`$as_echo "$configure_input" |
17197 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17198 *) ac_sed_conf_input
=$configure_input;;
17202 *:-:* |
*:-) cat >"$tmp/stdin" \
17203 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
17208 ac_dir
=`$as_dirname -- "$ac_file" ||
17209 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17210 X"$ac_file" : 'X\(//\)[^/]' \| \
17211 X"$ac_file" : 'X\(//\)$' \| \
17212 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17213 $as_echo X"$ac_file" |
17214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17218 /^X\(\/\/\)[^/].*/{
17231 as_dir
="$ac_dir"; as_fn_mkdir_p
17235 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17237 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17238 # A ".." for each directory in $ac_dir_suffix.
17239 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17240 case $ac_top_builddir_sub in
17241 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17242 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17245 ac_abs_top_builddir
=$ac_pwd
17246 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17247 # for backward compatibility:
17248 ac_top_builddir
=$ac_top_build_prefix
17251 .
) # We are building in place.
17253 ac_top_srcdir
=$ac_top_builddir_sub
17254 ac_abs_top_srcdir
=$ac_pwd ;;
17255 [\\/]* | ?
:[\\/]* ) # Absolute name.
17256 ac_srcdir
=$srcdir$ac_dir_suffix;
17257 ac_top_srcdir
=$srcdir
17258 ac_abs_top_srcdir
=$srcdir ;;
17259 *) # Relative name.
17260 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17261 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17262 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17264 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17274 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17275 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
17277 ac_MKDIR_P
=$MKDIR_P
17279 [\\/$
]* | ?
:[\\/]* ) ;;
17280 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
17284 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17285 # If the template does not know about datarootdir, expand it.
17286 # FIXME: This hack should be removed a few years after 2.60.
17287 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17298 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17299 *datarootdir
*) ac_datarootdir_seen
=yes;;
17300 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17302 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17305 ac_datarootdir_hack='
17306 s&@datadir@&$datadir&g
17307 s&@docdir@&$docdir&g
17308 s&@infodir@&$infodir&g
17309 s&@localedir@&$localedir&g
17310 s&@mandir@&$mandir&g
17311 s&\\\${datarootdir}&$datarootdir&g' ;;
17315 # Neutralize VPATH when `$srcdir' = `.'.
17316 # Shell code in configure.ac might set extrasub.
17317 # FIXME: do we really want to maintain this feature?
17318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17319 ac_sed_extra="$ac_vpsub
17322 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17324 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17325 s|@configure_input@|
$ac_sed_conf_input|
;t t
17326 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17327 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17328 s
&@srcdir@
&$ac_srcdir&;t t
17329 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17330 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17331 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17332 s
&@builddir@
&$ac_builddir&;t t
17333 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17334 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17335 s
&@INSTALL@
&$ac_INSTALL&;t t
17336 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
17337 $ac_datarootdir_hack
17339 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17340 if $ac_cs_awk_getline; then
17341 $AWK -f "$tmp/subs.
awk"
17343 $AWK -f "$tmp/subs.
awk" | $SHELL
17345 || as_fn_error "could not create
$ac_file" "$LINENO" 5
17347 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17348 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
17349 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17351 which seems to be undefined. Please make sure it is defined." >&5
17352 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17353 which seems to be undefined. Please make sure it is defined." >&2;}
17357 -) cat "$tmp/out" && rm -f "$tmp/out";;
17358 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17360 || as_fn_error "could not create $ac_file" "$LINENO" 5
17366 if test x"$ac_file" != x-; then
17368 $as_echo "/* $configure_input */" \
17369 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17370 } >"$tmp/config.h" \
17371 || as_fn_error "could not create $ac_file" "$LINENO" 5
17372 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17374 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17377 mv "$tmp/config.h" "$ac_file" \
17378 || as_fn_error "could not create $ac_file" "$LINENO" 5
17381 $as_echo "/* $configure_input */" \
17382 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17383 || as_fn_error "could not create -" "$LINENO" 5
17385 # Compute "$ac_file"'s index
in $config_headers.
17388 for _am_header
in $config_headers :; do
17389 case $_am_header in
17390 $_am_arg |
$_am_arg:* )
17393 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
17396 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17397 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17398 X"$_am_arg" : 'X\(//\)[^/]' \| \
17399 X"$_am_arg" : 'X\(//\)$' \| \
17400 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17401 $as_echo X"$_am_arg" |
17402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17406 /^X\(\/\/\)[^/].*/{
17418 s/.*/./; q'`/stamp-h
$_am_stamp_count
17425 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17428 # Prefer the file from the source tree if names are identical.
17429 if test "$ac_source" = "$ac_file" ||
test ! -r "$ac_source"; then
17430 ac_source
=$srcdir/$ac_source
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17434 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17436 if test ! -r "$ac_source"; then
17437 as_fn_error
"$ac_source: file not found" "$LINENO" 5
17441 # Try a relative symlink, then a hard link, then a copy.
17443 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$ac_source ;;
17444 *) ac_rel_source
=$ac_top_build_prefix$ac_source ;;
17446 ln -s "$ac_rel_source" "$ac_file" 2>/dev
/null ||
17447 ln "$ac_source" "$ac_file" 2>/dev
/null ||
17448 cp -p "$ac_source" "$ac_file" ||
17449 as_fn_error
"cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17452 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17453 $as_echo "$as_me: executing $ac_file commands" >&6;}
17458 case $ac_file$ac_mode in
17459 "depdir":C
) $SHELL $ac_aux_dir/mkinstalldirs
$DEPDIR ;;
17460 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
17461 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17462 # are listed without --file. Let's play safe and only enable the eval
17463 # if we detect the quoting.
17464 case $CONFIG_FILES in
17465 *\'*) eval set x
"$CONFIG_FILES" ;;
17466 *) set x
$CONFIG_FILES ;;
17471 # Strip MF so we end up with the name of the file.
17472 mf
=`echo "$mf" | sed -e 's/:.*$//'`
17473 # Check whether this is an Automake generated Makefile or not.
17474 # We used to match only the files named `Makefile.in', but
17475 # some people rename them; so instead we look at the file content.
17476 # Grep'ing the first line is not enough: some people post-process
17477 # each Makefile.in and add a new line on top of each file to say so.
17478 # Grep'ing the whole file is not good either: AIX grep has a line
17479 # limit of 2048, but all sed's we know have understand at least 4000.
17480 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
17481 dirpart
=`$as_dirname -- "$mf" ||
17482 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17483 X"$mf" : 'X\(//\)[^/]' \| \
17484 X"$mf" : 'X\(//\)$' \| \
17485 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17491 /^X\(\/\/\)[^/].*/{
17507 # Extract the definition of DEPDIR, am__include, and am__quote
17508 # from the Makefile without running `make'.
17509 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
17510 test -z "$DEPDIR" && continue
17511 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
17512 test -z "am__include" && continue
17513 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
17514 # When using ansi2knr, U may be empty or an underscore; expand it
17515 U
=`sed -n 's/^U = //p' < "$mf"`
17516 # Find all dependency output files, they are included files with
17517 # $(DEPDIR) in their names. We invoke sed twice because it is the
17518 # simplest approach to changing $(DEPDIR) to its actual value in the
17520 for file in `sed -n "
17521 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17522 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17523 # Make sure the directory exists.
17524 test -f "$dirpart/$file" && continue
17525 fdir
=`$as_dirname -- "$file" ||
17526 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17527 X"$file" : 'X\(//\)[^/]' \| \
17528 X"$file" : 'X\(//\)$' \| \
17529 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17530 $as_echo X"$file" |
17531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17535 /^X\(\/\/\)[^/].*/{
17548 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
17549 # echo "creating $dirpart/$file"
17550 echo '# dummy' > "$dirpart/$file"
17556 case x
$CONFIG_HEADERS in
17557 xconfig.h
:config.
in)
17568 ac_clean_files
=$ac_clean_files_save
17570 test $ac_write_fail = 0 ||
17571 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
17574 # configure is writing to config.log, and then calls config.status.
17575 # config.status does its own redirection, appending to config.log.
17576 # Unfortunately, on DOS this fails, as config.log is still kept open
17577 # by configure, so config.status won't be able to write to it; its
17578 # output is simply discarded. So we exec the FD to /dev/null,
17579 # effectively closing config.log, so it can be properly (re)opened and
17580 # appended to by config.status. When coming back to configure, we
17581 # need to make the FD available again.
17582 if test "$no_create" != yes; then
17584 ac_config_status_args
=
17585 test "$silent" = yes &&
17586 ac_config_status_args
="$ac_config_status_args --quiet"
17588 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17590 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17591 # would make configure fail if this is the last instruction.
17592 $ac_cs_success || as_fn_exit $?
17596 # CONFIG_SUBDIRS section.
17598 if test "$no_recursion" != yes; then
17600 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17601 # so they do not pile up.
17602 ac_sub_configure_args
=
17604 eval "set x $ac_configure_args"
17608 if test -n "$ac_prev"; then
17613 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
17614 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
17615 ac_prev
=cache_file
;;
17616 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
17617 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
17620 --config-cache |
-C)
17622 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
17624 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
17626 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
17628 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
17630 --disable-option-checking)
17634 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17636 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
17640 # Always prepend --prefix to ensure using the same prefix
17641 # in subdir configurations.
17642 ac_arg
="--prefix=$prefix"
17644 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17646 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
17649 if test "$silent" = yes; then
17650 ac_sub_configure_args
="--silent $ac_sub_configure_args"
17653 # Always prepend --disable-option-checking to silence warnings, since
17654 # different subdirs can have different --enable and --with options.
17655 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
17658 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
17660 # Do not complain, so a configure script can configure whichever
17661 # parts of a large source tree are present.
17662 test -d "$srcdir/$ac_dir" ||
continue
17664 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17665 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17666 $as_echo "$ac_msg" >&6
17667 as_dir
="$ac_dir"; as_fn_mkdir_p
17671 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17673 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17674 # A ".." for each directory in $ac_dir_suffix.
17675 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17676 case $ac_top_builddir_sub in
17677 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17678 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17681 ac_abs_top_builddir
=$ac_pwd
17682 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17683 # for backward compatibility:
17684 ac_top_builddir
=$ac_top_build_prefix
17687 .
) # We are building in place.
17689 ac_top_srcdir
=$ac_top_builddir_sub
17690 ac_abs_top_srcdir
=$ac_pwd ;;
17691 [\\/]* | ?
:[\\/]* ) # Absolute name.
17692 ac_srcdir
=$srcdir$ac_dir_suffix;
17693 ac_top_srcdir
=$srcdir
17694 ac_abs_top_srcdir
=$srcdir ;;
17695 *) # Relative name.
17696 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17697 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17698 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17700 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17705 # Check for guested configure; otherwise get Cygnus style configure.
17706 if test -f "$ac_srcdir/configure.gnu"; then
17707 ac_sub_configure
=$ac_srcdir/configure.gnu
17708 elif test -f "$ac_srcdir/configure"; then
17709 ac_sub_configure
=$ac_srcdir/configure
17710 elif test -f "$ac_srcdir/configure.in"; then
17711 # This should be Cygnus configure.
17712 ac_sub_configure
=$ac_aux_dir/configure
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17715 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17719 # The recursion is here.
17720 if test -n "$ac_sub_configure"; then
17721 # Make the cache file name correct relative to the subdirectory.
17722 case $cache_file in
17723 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
17724 *) # Relative name.
17725 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
17728 { $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
17729 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17730 # The eval makes quoting arguments work.
17731 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17732 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17733 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17739 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17741 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}