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
697 INSTALL_STRIP_PROGRAM
718 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
754 NEXT_AS_FIRST_DIRECTIVE_STRING_H
764 HAVE_SIGNED_SIG_ATOMIC_T
767 BITSIZEOF_SIG_ATOMIC_T
773 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
777 HAVE_UNSIGNED_LONG_LONG_INT
779 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
782 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
787 APPLE_UNIVERSAL_BUILD
853 GL_COND_LIBTOOL_FALSE
898 MAINTAINER_MODE_FALSE
927 program_transform_name
938 ac_subst_files
='host_makefile_frag'
940 enable_option_checking
941 enable_maintainer_mode
944 enable_dependency_tracking
945 with_separate_debug_dir
947 with_relocated_sources
971 enable_build_warnings
972 enable_gdb_build_warnings
979 ac_precious_vars
='build_alias
991 ac_subdirs_all
='doc testsuite
996 # Initialize some variables set by options.
998 ac_init_version
=false
999 ac_unrecognized_opts
=
1000 ac_unrecognized_sep
=
1001 # The variables have the same names as the options, with
1002 # dashes changed to underlines.
1003 cache_file
=/dev
/null
1010 program_transform_name
=s
,x
,x
,
1018 # Installation directory options.
1019 # These are left unexpanded so users can "make install exec_prefix=/foo"
1020 # and all the variables that are supposed to be based on exec_prefix
1021 # by default will actually change.
1022 # Use braces instead of parens because sh, perl, etc. also accept them.
1023 # (The list follows the same order as the GNU Coding Standards.)
1024 bindir
='${exec_prefix}/bin'
1025 sbindir
='${exec_prefix}/sbin'
1026 libexecdir
='${exec_prefix}/libexec'
1027 datarootdir
='${prefix}/share'
1028 datadir
='${datarootdir}'
1029 sysconfdir
='${prefix}/etc'
1030 sharedstatedir
='${prefix}/com'
1031 localstatedir
='${prefix}/var'
1032 includedir
='${prefix}/include'
1033 oldincludedir
='/usr/include'
1034 docdir
='${datarootdir}/doc/${PACKAGE}'
1035 infodir
='${datarootdir}/info'
1040 libdir
='${exec_prefix}/lib'
1041 localedir
='${datarootdir}/locale'
1042 mandir
='${datarootdir}/man'
1048 # If the previous option needs an argument, assign it.
1049 if test -n "$ac_prev"; then
1050 eval $ac_prev=\
$ac_option
1056 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1060 # Accept the important Cygnus configure options, so we can diagnose typos.
1062 case $ac_dashdash$ac_option in
1066 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1068 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1069 bindir
=$ac_optarg ;;
1071 -build |
--build |
--buil |
--bui |
--bu)
1072 ac_prev
=build_alias
;;
1073 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1074 build_alias
=$ac_optarg ;;
1076 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1077 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1078 ac_prev
=cache_file
;;
1079 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1080 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1081 cache_file
=$ac_optarg ;;
1083 --config-cache |
-C)
1084 cache_file
=config.cache
;;
1086 -datadir |
--datadir |
--datadi |
--datad)
1088 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1089 datadir
=$ac_optarg ;;
1091 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1092 |
--dataroo |
--dataro |
--datar)
1093 ac_prev
=datarootdir
;;
1094 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1095 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1096 datarootdir
=$ac_optarg ;;
1098 -disable-* |
--disable-*)
1099 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1102 as_fn_error
"invalid feature name: $ac_useropt"
1103 ac_useropt_orig
=$ac_useropt
1104 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105 case $ac_user_opts in
1107 "enable_
$ac_useropt"
1109 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1110 ac_unrecognized_sep
=', ';;
1112 eval enable_
$ac_useropt=no
;;
1114 -docdir |
--docdir |
--docdi |
--doc |
--do)
1116 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1117 docdir
=$ac_optarg ;;
1119 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1121 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1122 dvidir
=$ac_optarg ;;
1124 -enable-* |
--enable-*)
1125 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1126 # Reject names that are not valid shell variable names.
1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1128 as_fn_error
"invalid feature name: $ac_useropt"
1129 ac_useropt_orig
=$ac_useropt
1130 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131 case $ac_user_opts in
1133 "enable_
$ac_useropt"
1135 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1136 ac_unrecognized_sep
=', ';;
1138 eval enable_
$ac_useropt=\
$ac_optarg ;;
1140 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1141 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1142 |
--exec |
--exe |
--ex)
1143 ac_prev
=exec_prefix
;;
1144 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1145 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1146 |
--exec=* |
--exe=* |
--ex=*)
1147 exec_prefix
=$ac_optarg ;;
1149 -gas |
--gas |
--ga |
--g)
1150 # Obsolete; use --with-gas.
1153 -help |
--help |
--hel |
--he |
-h)
1154 ac_init_help
=long
;;
1155 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1156 ac_init_help
=recursive
;;
1157 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1158 ac_init_help
=short
;;
1160 -host |
--host |
--hos |
--ho)
1161 ac_prev
=host_alias
;;
1162 -host=* |
--host=* |
--hos=* |
--ho=*)
1163 host_alias
=$ac_optarg ;;
1165 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1167 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1169 htmldir
=$ac_optarg ;;
1171 -includedir |
--includedir |
--includedi |
--included |
--include \
1172 |
--includ |
--inclu |
--incl |
--inc)
1173 ac_prev
=includedir
;;
1174 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1175 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1176 includedir
=$ac_optarg ;;
1178 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1180 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1181 infodir
=$ac_optarg ;;
1183 -libdir |
--libdir |
--libdi |
--libd)
1185 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1186 libdir
=$ac_optarg ;;
1188 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1189 |
--libexe |
--libex |
--libe)
1190 ac_prev
=libexecdir
;;
1191 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1192 |
--libexe=* |
--libex=* |
--libe=*)
1193 libexecdir
=$ac_optarg ;;
1195 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1196 ac_prev
=localedir
;;
1197 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1198 localedir
=$ac_optarg ;;
1200 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1201 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1202 ac_prev
=localstatedir
;;
1203 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1204 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1205 localstatedir
=$ac_optarg ;;
1207 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1209 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1210 mandir
=$ac_optarg ;;
1212 -nfp |
--nfp |
--nf)
1213 # Obsolete; use --without-fp.
1216 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1217 |
--no-cr |
--no-c |
-n)
1220 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1221 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1224 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1225 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1226 |
--oldin |
--oldi |
--old |
--ol |
--o)
1227 ac_prev
=oldincludedir
;;
1228 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1229 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1230 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1231 oldincludedir
=$ac_optarg ;;
1233 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1235 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1236 prefix
=$ac_optarg ;;
1238 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1239 |
--program-pre |
--program-pr |
--program-p)
1240 ac_prev
=program_prefix
;;
1241 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1242 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1243 program_prefix
=$ac_optarg ;;
1245 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1246 |
--program-suf |
--program-su |
--program-s)
1247 ac_prev
=program_suffix
;;
1248 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1249 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1250 program_suffix
=$ac_optarg ;;
1252 -program-transform-name |
--program-transform-name \
1253 |
--program-transform-nam |
--program-transform-na \
1254 |
--program-transform-n |
--program-transform- \
1255 |
--program-transform |
--program-transfor \
1256 |
--program-transfo |
--program-transf \
1257 |
--program-trans |
--program-tran \
1258 |
--progr-tra |
--program-tr |
--program-t)
1259 ac_prev
=program_transform_name
;;
1260 -program-transform-name=* |
--program-transform-name=* \
1261 |
--program-transform-nam=* |
--program-transform-na=* \
1262 |
--program-transform-n=* |
--program-transform-=* \
1263 |
--program-transform=* |
--program-transfor=* \
1264 |
--program-transfo=* |
--program-transf=* \
1265 |
--program-trans=* |
--program-tran=* \
1266 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1267 program_transform_name
=$ac_optarg ;;
1269 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1271 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1272 pdfdir
=$ac_optarg ;;
1274 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1276 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1279 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1280 |
-silent |
--silent |
--silen |
--sile |
--sil)
1283 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1285 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1287 sbindir
=$ac_optarg ;;
1289 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1290 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1291 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1293 ac_prev
=sharedstatedir
;;
1294 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1295 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1296 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1298 sharedstatedir
=$ac_optarg ;;
1300 -site |
--site |
--sit)
1302 -site=* |
--site=* |
--sit=*)
1305 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1307 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1308 srcdir
=$ac_optarg ;;
1310 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1311 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1312 ac_prev
=sysconfdir
;;
1313 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1314 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1315 sysconfdir
=$ac_optarg ;;
1317 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1318 ac_prev
=target_alias
;;
1319 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1320 target_alias
=$ac_optarg ;;
1322 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1325 -version |
--version |
--versio |
--versi |
--vers |
-V)
1326 ac_init_version
=: ;;
1329 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1330 # Reject names that are not valid shell variable names.
1331 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1332 as_fn_error
"invalid package name: $ac_useropt"
1333 ac_useropt_orig
=$ac_useropt
1334 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1335 case $ac_user_opts in
1339 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1340 ac_unrecognized_sep
=', ';;
1342 eval with_
$ac_useropt=\
$ac_optarg ;;
1344 -without-* |
--without-*)
1345 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1346 # Reject names that are not valid shell variable names.
1347 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1348 as_fn_error
"invalid package name: $ac_useropt"
1349 ac_useropt_orig
=$ac_useropt
1350 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1351 case $ac_user_opts in
1355 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1356 ac_unrecognized_sep
=', ';;
1358 eval with_
$ac_useropt=no
;;
1361 # Obsolete; use --with-x.
1364 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1365 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1366 ac_prev
=x_includes
;;
1367 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1368 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1369 x_includes
=$ac_optarg ;;
1371 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1372 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1373 ac_prev
=x_libraries
;;
1374 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1375 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1376 x_libraries
=$ac_optarg ;;
1378 -*) as_fn_error
"unrecognized option: \`$ac_option'
1379 Try \`$0 --help' for more information."
1383 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1384 # Reject names that are not valid shell variable names.
1385 case $ac_envvar in #(
1386 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1387 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1389 eval $ac_envvar=\
$ac_optarg
1390 export $ac_envvar ;;
1393 # FIXME: should be removed in autoconf 3.0.
1394 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1395 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1396 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1397 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1403 if test -n "$ac_prev"; then
1404 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1405 as_fn_error
"missing argument to $ac_option"
1408 if test -n "$ac_unrecognized_opts"; then
1409 case $enable_option_checking in
1411 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1412 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1416 # Check all directory arguments for consistency.
1417 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1418 datadir sysconfdir sharedstatedir localstatedir includedir \
1419 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1420 libdir localedir mandir
1422 eval ac_val
=\$
$ac_var
1423 # Remove trailing slashes.
1426 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1427 eval $ac_var=\
$ac_val;;
1429 # Be sure to have absolute directory names.
1431 [\\/$
]* | ?
:[\\/]* ) continue;;
1432 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1434 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1437 # There might be people who depend on the old broken behavior: `$host'
1438 # used to hold the argument of --host etc.
1439 # FIXME: To remove some day.
1442 target
=$target_alias
1444 # FIXME: To remove some day.
1445 if test "x$host_alias" != x
; then
1446 if test "x$build_alias" = x
; then
1447 cross_compiling
=maybe
1448 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1449 If a cross compiler is detected then cross compile mode will be used." >&2
1450 elif test "x$build_alias" != "x$host_alias"; then
1456 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1458 test "$silent" = yes && exec 6>/dev
/null
1461 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1462 ac_ls_di
=`ls -di .` &&
1463 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1464 as_fn_error
"working directory cannot be determined"
1465 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1466 as_fn_error
"pwd does not report name of working directory"
1469 # Find the source files, if location was not specified.
1470 if test -z "$srcdir"; then
1471 ac_srcdir_defaulted
=yes
1472 # Try the directory containing this script, then the parent directory.
1473 ac_confdir
=`$as_dirname -- "$as_myself" ||
1474 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1475 X"$as_myself" : 'X\(//\)[^/]' \| \
1476 X"$as_myself" : 'X\(//\)$' \| \
1477 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1478 $as_echo X"$as_myself" |
1479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1497 if test ! -r "$srcdir/$ac_unique_file"; then
1501 ac_srcdir_defaulted
=no
1503 if test ! -r "$srcdir/$ac_unique_file"; then
1504 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1505 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1507 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1509 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1511 # When building in place, set srcdir=.
1512 if test "$ac_abs_confdir" = "$ac_pwd"; then
1515 # Remove unnecessary trailing slashes from srcdir.
1516 # Double slashes in file names in object file debugging info
1517 # mess up M-x gdb in Emacs.
1519 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1521 for ac_var
in $ac_precious_vars; do
1522 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1523 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1524 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1525 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1529 # Report the --help message.
1531 if test "$ac_init_help" = "long"; then
1532 # Omit some internal or obsolete options to make the list less imposing.
1533 # This message is too long to be a string in the A/UX 3.1 sh.
1535 \`configure' configures this package to adapt to many kinds of systems.
1537 Usage: $0 [OPTION]... [VAR=VALUE]...
1539 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1540 VAR=VALUE. See below for descriptions of some of the useful variables.
1542 Defaults for the options are specified in brackets.
1545 -h, --help display this help and exit
1546 --help=short display options specific to this package
1547 --help=recursive display the short help of all the included packages
1548 -V, --version display version information and exit
1549 -q, --quiet, --silent do not print \`checking...' messages
1550 --cache-file=FILE cache test results in FILE [disabled]
1551 -C, --config-cache alias for \`--cache-file=config.cache'
1552 -n, --no-create do not create output files
1553 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1555 Installation directories:
1556 --prefix=PREFIX install architecture-independent files in PREFIX
1557 [$ac_default_prefix]
1558 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1561 By default, \`make install' will install all the files in
1562 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1563 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1564 for instance \`--prefix=\$HOME'.
1566 For better control, use the options below.
1568 Fine tuning of the installation directories:
1569 --bindir=DIR user executables [EPREFIX/bin]
1570 --sbindir=DIR system admin executables [EPREFIX/sbin]
1571 --libexecdir=DIR program executables [EPREFIX/libexec]
1572 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1573 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1574 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1575 --libdir=DIR object code libraries [EPREFIX/lib]
1576 --includedir=DIR C header files [PREFIX/include]
1577 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1578 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1579 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1580 --infodir=DIR info documentation [DATAROOTDIR/info]
1581 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1582 --mandir=DIR man documentation [DATAROOTDIR/man]
1583 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1584 --htmldir=DIR html documentation [DOCDIR]
1585 --dvidir=DIR dvi documentation [DOCDIR]
1586 --pdfdir=DIR pdf documentation [DOCDIR]
1587 --psdir=DIR ps documentation [DOCDIR]
1593 --program-prefix=PREFIX prepend PREFIX to installed program names
1594 --program-suffix=SUFFIX append SUFFIX to installed program names
1595 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1598 --x-includes=DIR X include files are
in DIR
1599 --x-libraries=DIR X library files are
in DIR
1602 --build=BUILD configure
for building on BUILD
[guessed
]
1603 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1604 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1608 if test -n "$ac_init_help"; then
1613 --disable-option-checking ignore unrecognized
--enable/--with options
1614 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1615 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1616 --enable-maintainer-mode enable make rules and dependencies not useful
1617 (and sometimes confusing
) to the casual installer
1618 --enable-plugins Enable support
for plugins
(defaults no
)
1619 --disable-largefile omit support
for large files
1620 --disable-dependency-tracking speeds up one-time build
1621 --enable-dependency-tracking do not reject slow dependency extractors
1622 --enable-targets=TARGETS
1623 alternative target configurations
1624 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1625 --disable-gdbcli disable command-line interface
(CLI
)
1626 --disable-gdbmi disable machine-interface
(MI
)
1627 --enable-tui enable full-screen terminal user interface
(TUI
)
1628 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1629 --enable-profiling enable profiling of GDB
1630 --disable-rpath do not hardcode runtime library paths
1631 --enable-werror treat compile warnings as errors
1632 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1633 --enable-gdb-build-warnings
1634 enable GDB specific build-time compiler warnings
if
1636 --enable-sim link gdb with simulator
1637 --enable-multi-ice build the multi-ice-gdb-server
1640 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1641 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1642 --with-separate-debug-dir=PATH
1643 look for global separate debug info
in this path
1645 --with-gdb-datadir=PATH
look for global separate data files
in this path
1647 --with-relocated-sources=PATH
1648 automatically relocate this path
for source files
1649 --with-libunwind use libunwind frame unwinding support
1650 --with-curses use the curses library instead of the termcap
1652 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1653 --with-bugurl=URL Direct users to URL to report a bug
1654 --with-zlib include zlib support
(auto
/yes
/no
) default
=auto
1655 --with-libiconv-prefix=DIR
1656 search
for libiconv
in DIR
/include and DIR
/lib
1657 --with-system-readline use installed readline library
1658 --with-expat include expat support
(auto
/yes
/no
)
1659 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1660 --with-libexpat-prefix[=DIR
] search
for libexpat
in DIR
/include and DIR
/lib
1661 --without-libexpat-prefix don
't search for libexpat in includedir and libdir
1662 --with-python[=PYTHON] include python support
1663 (auto/yes/no/<python-program>)
1664 --without-included-regex
1665 don't use included regex
; this is the default on
1666 systems with version
2 of the GNU C library
(use
1667 with caution on other system
)
1668 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1669 --with-system-gdbinit=PATH
1670 automatically load a system-wide gdbinit
file
1671 --with-tcl directory containing tcl configuration
(tclConfig.sh
)
1672 --with-tk directory containing tk configuration
(tkConfig.sh
)
1673 --with-x use the X Window System
1675 Some influential environment variables
:
1676 CC C compiler
command
1677 CFLAGS C compiler flags
1678 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1679 nonstandard directory
<lib dir
>
1680 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1681 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1682 you have headers
in a nonstandard directory
<include dir
>
1684 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1685 the first program found out of: `bison
-y', `byacc', `yacc'.
1686 YFLAGS The list of arguments that will be passed by default to $YACC.
1687 This script will default YFLAGS to the empty string to avoid a
1688 default value of `-d' given by some make applications.
1689 XMKMF Path to xmkmf, Makefile generator for X Window System
1691 Use these variables to override the choices made by `configure' or to
help
1692 it to
find libraries and programs with nonstandard names
/locations.
1694 Report bugs to the package provider.
1699 if test "$ac_init_help" = "recursive"; then
1700 # If there are subdirs, report their specific --help.
1701 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1702 test -d "$ac_dir" ||
1703 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1708 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1710 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1711 # A ".." for each directory in $ac_dir_suffix.
1712 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1713 case $ac_top_builddir_sub in
1714 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1715 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1718 ac_abs_top_builddir
=$ac_pwd
1719 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1720 # for backward compatibility:
1721 ac_top_builddir
=$ac_top_build_prefix
1724 .
) # We are building in place.
1726 ac_top_srcdir
=$ac_top_builddir_sub
1727 ac_abs_top_srcdir
=$ac_pwd ;;
1728 [\\/]* | ?
:[\\/]* ) # Absolute name.
1729 ac_srcdir
=$srcdir$ac_dir_suffix;
1730 ac_top_srcdir
=$srcdir
1731 ac_abs_top_srcdir
=$srcdir ;;
1733 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1734 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1735 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1737 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1739 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1740 # Check for guested configure.
1741 if test -f "$ac_srcdir/configure.gnu"; then
1743 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1744 elif test -f "$ac_srcdir/configure"; then
1746 $SHELL "$ac_srcdir/configure" --help=recursive
1748 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1750 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1754 test -n "$ac_init_help" && exit $ac_status
1755 if $ac_init_version; then
1758 generated by GNU Autoconf
2.64
1760 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1761 This configure
script is free software
; the Free Software Foundation
1762 gives unlimited permission to copy
, distribute and modify it.
1767 ## ------------------------ ##
1768 ## Autoconf initialization. ##
1769 ## ------------------------ ##
1771 # ac_fn_c_try_compile LINENO
1772 # --------------------------
1773 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1774 ac_fn_c_try_compile
()
1776 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1777 rm -f conftest.
$ac_objext
1778 if { { ac_try
="$ac_compile"
1780 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_compile") 2>conftest.err
1787 if test -s conftest.err; then
1788 grep -v '^ *+' conftest.err >conftest.er1
1789 cat conftest.er1 >&5
1790 mv -f conftest.er1 conftest.err
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } && {
1794 test -z "$ac_c_werror_flag" ||
1795 test ! -s conftest.err
1796 } && test -s conftest.$ac_objext; then :
1799 $as_echo "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.$ac_ext >&5
1804 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1807 } # ac_fn_c_try_compile
1809 # ac_fn_c_try_cpp LINENO
1810 # ----------------------
1811 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 if { { ac_try="$ac_cpp conftest.$ac_ext"
1817 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1818 *) ac_try_echo
=$ac_try;;
1820 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1824 if test -s conftest.err
; then
1825 grep -v '^ *+' conftest.err
>conftest.er1
1826 cat conftest.er1
>&5
1827 mv -f conftest.er1 conftest.err
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } >/dev
/null
&& {
1831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1832 test ! -s conftest.err
1836 $as_echo "$as_me: failed program was:" >&5
1837 sed 's/^/| /' conftest.
$ac_ext >&5
1841 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1846 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1847 # -------------------------------------------------------
1848 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1849 # the include files in INCLUDES and setting the cache variable VAR
1851 ac_fn_c_check_header_mongrel
()
1853 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1854 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1856 $as_echo_n "checking for $2... " >&6; }
1857 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1858 $as_echo_n "(cached) " >&6
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862 $as_echo "$ac_res" >&6; }
1864 # Is the header compilable?
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1866 $as_echo_n "checking $2 usability... " >&6; }
1867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1868 /* end confdefs.h. */
1872 if ac_fn_c_try_compile
"$LINENO"; then :
1873 ac_header_compiler
=yes
1875 ac_header_compiler
=no
1877 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1879 $as_echo "$ac_header_compiler" >&6; }
1881 # Is the header present?
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1883 $as_echo_n "checking $2 presence... " >&6; }
1884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h. */
1888 if ac_fn_c_try_cpp
"$LINENO"; then :
1889 ac_header_preproc
=yes
1891 ac_header_preproc
=no
1893 rm -f conftest.err conftest.
$ac_ext
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1895 $as_echo "$ac_header_preproc" >&6; }
1897 # So? What about this header?
1898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1901 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1903 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1907 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1909 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1911 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1913 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1915 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919 $as_echo_n "checking for $2... " >&6; }
1920 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1921 $as_echo_n "(cached) " >&6
1923 eval "$3=\$ac_header_compiler"
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927 $as_echo "$ac_res" >&6; }
1929 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1931 } # ac_fn_c_check_header_mongrel
1933 # ac_fn_c_try_run LINENO
1934 # ----------------------
1935 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1936 # that executables *can* be run.
1939 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1940 if { { ac_try
="$ac_link"
1942 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1943 *) ac_try_echo=$ac_try;;
1945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1946 $as_echo "$ac_try_echo"; } >&5
1947 (eval "$ac_link") 2>&5
1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1951 { { case "(($ac_try" in
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_try") 2>&5
1959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960 test $ac_status = 0; }; }; then :
1963 $as_echo "$as_me: program exited with status $ac_status" >&5
1964 $as_echo "$as_me: failed program was:" >&5
1965 sed 's/^/| /' conftest.
$ac_ext >&5
1967 ac_retval
=$ac_status
1969 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1970 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1975 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1976 # -------------------------------------------------------
1977 # Tests whether HEADER exists and can be compiled using the include files in
1978 # INCLUDES, setting the cache variable VAR accordingly.
1979 ac_fn_c_check_header_compile
()
1981 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1983 $as_echo_n "checking for $2... " >&6; }
1984 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1985 $as_echo_n "(cached) " >&6
1987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1992 if ac_fn_c_try_compile
"$LINENO"; then :
1997 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 $as_echo "$ac_res" >&6; }
2002 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2004 } # ac_fn_c_check_header_compile
2006 # ac_fn_c_try_link LINENO
2007 # -----------------------
2008 # Try to link conftest.$ac_ext, and return whether this succeeded.
2011 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2012 rm -f conftest.
$ac_objext conftest
$ac_exeext
2013 if { { ac_try
="$ac_link"
2015 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2016 *) ac_try_echo=$ac_try;;
2018 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2019 $as_echo "$ac_try_echo"; } >&5
2020 (eval "$ac_link") 2>conftest.err
2022 if test -s conftest.err; then
2023 grep -v '^ *+' conftest.err >conftest.er1
2024 cat conftest.er1 >&5
2025 mv -f conftest.er1 conftest.err
2027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2028 test $ac_status = 0; } && {
2029 test -z "$ac_c_werror_flag" ||
2030 test ! -s conftest.err
2031 } && test -s conftest$ac_exeext && {
2032 test "$cross_compiling" = yes ||
2033 $as_test_x conftest$ac_exeext
2037 $as_echo "$as_me: failed program was:" >&5
2038 sed 's/^/| /' conftest.$ac_ext >&5
2042 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2043 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2044 # interfere with the next link command; also delete a directory that is
2045 # left behind by Apple's compiler. We do this before executing the actions.
2046 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2047 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2050 } # ac_fn_c_try_link
2052 # ac_fn_c_check_func LINENO FUNC VAR
2053 # ----------------------------------
2054 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2055 ac_fn_c_check_func ()
2057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2059 $as_echo_n "checking for $2... " >&6; }
2060 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2061 $as_echo_n "(cached) " >&6
2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064 /* end confdefs.h. */
2065 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2067 #define $2 innocuous_$2
2069 /* System header to define __stub macros and hopefully few prototypes,
2070 which can conflict with char $2 (); below.
2071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2072 <limits.h> exists even on freestanding compilers. */
2075 # include <limits.h>
2077 # include <assert.h>
2082 /* Override any GCC internal prototype to avoid an error.
2083 Use char because int might match the return type of a GCC
2084 builtin and then its argument prototype would still apply. */
2089 /* The GNU C library defines this for functions which it implements
2090 to always fail with ENOSYS. Some functions are actually named
2091 something starting with __ and the normal name is an alias. */
2092 #if defined __stub_$2 || defined __stub___$2
2104 if ac_fn_c_try_link "$LINENO"; then :
2109 rm -f core conftest.err conftest.$ac_objext \
2110 conftest$ac_exeext conftest.$ac_ext
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2114 $as_echo "$ac_res" >&6; }
2115 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2117 } # ac_fn_c_check_func
2119 # ac_fn_c_check_decl LINENO SYMBOL VAR
2120 # ------------------------------------
2121 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2122 ac_fn_c_check_decl ()
2124 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2126 $as_echo_n "checking whether $2 is declared... " >&6; }
2127 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2128 $as_echo_n "(cached) " >&6
2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h. */
2144 if ac_fn_c_try_compile "$LINENO"; then :
2149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2153 $as_echo "$ac_res" >&6; }
2154 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2156 } # ac_fn_c_check_decl
2158 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2159 # --------------------------------------------
2160 # Tries to find the compile-time value of EXPR in a program that includes
2161 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2163 ac_fn_c_compute_int ()
2165 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2166 if test "$cross_compiling" = yes; then
2167 # Depending upon the size, compute the lo and hi bounds.
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2174 static int test_array [1 - 2 * !(($2) >= 0)];
2181 if ac_fn_c_try_compile "$LINENO"; then :
2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2190 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2197 if ac_fn_c_try_compile "$LINENO"; then :
2198 ac_hi=$ac_mid; break
2200 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2201 if test $ac_lo -le $ac_mid; then
2205 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2211 /* end confdefs.h. */
2216 static int test_array [1 - 2 * !(($2) < 0)];
2223 if ac_fn_c_try_compile "$LINENO"; then :
2226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h. */
2232 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2239 if ac_fn_c_try_compile "$LINENO"; then :
2240 ac_lo=$ac_mid; break
2242 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2243 if test $ac_mid -le $ac_hi; then
2247 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2257 # Binary search between lo and hi bounds.
2258 while test "x$ac_lo" != "x$ac_hi"; do
2259 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h. */
2266 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2273 if ac_fn_c_try_compile "$LINENO"; then :
2276 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2281 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2286 /* end confdefs.h. */
2288 static long int longval () { return $2; }
2289 static unsigned long int ulongval () { return $2; }
2296 FILE *f = fopen ("conftest.val", "w");
2301 long int i = longval ();
2304 fprintf (f, "%ld", i);
2308 unsigned long int i = ulongval ();
2311 fprintf (f, "%lu", i);
2313 /* Do not output a trailing newline, as this causes \r\n confusion
2314 on some platforms. */
2315 return ferror (f) || fclose (f) != 0;
2321 if ac_fn_c_try_run "$LINENO"; then :
2322 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2327 conftest.$ac_objext conftest.beam conftest.$ac_ext
2331 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2334 } # ac_fn_c_compute_int
2336 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2337 # ----------------------------------------------------
2338 # Tries to find if the field MEMBER exists in type AGGR, after including
2339 # INCLUDES, setting cache variable VAR accordingly.
2340 ac_fn_c_check_member ()
2342 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2344 $as_echo_n "checking for $2.$3... " >&6; }
2345 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2346 $as_echo_n "(cached) " >&6
2348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2349 /* end confdefs.h. */
2361 if ac_fn_c_try_compile "$LINENO"; then :
2364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2365 /* end confdefs.h. */
2371 if (sizeof ac_aggr.$3)
2377 if ac_fn_c_try_compile "$LINENO"; then :
2382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2388 $as_echo "$ac_res" >&6; }
2389 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2391 } # ac_fn_c_check_member
2393 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2394 # -------------------------------------------
2395 # Tests whether TYPE exists after having included INCLUDES, setting cache
2396 # variable VAR accordingly.
2397 ac_fn_c_check_type ()
2399 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2401 $as_echo_n "checking for $2... " >&6; }
2402 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2403 $as_echo_n "(cached) " >&6
2406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2407 /* end confdefs.h. */
2418 if ac_fn_c_try_compile "$LINENO"; then :
2419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2420 /* end confdefs.h. */
2431 if ac_fn_c_try_compile "$LINENO"; then :
2436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2442 $as_echo "$ac_res" >&6; }
2443 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2445 } # ac_fn_c_check_type
2446 cat >config.log <<_ACEOF
2447 This file contains any messages produced by compilers while
2448 running configure, to aid debugging if configure makes a mistake.
2450 It was created by $as_me, which was
2451 generated by GNU Autoconf 2.64. Invocation command line was
2463 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2464 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2465 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2466 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2467 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2469 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2470 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2472 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2473 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2474 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2475 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2476 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2477 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2478 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 test -z "$as_dir" && as_dir=.
2487 $as_echo "PATH: $as_dir"
2503 # Keep a trace of the command line.
2504 # Strip out --no-create and --no-recursion so they do not pile up.
2505 # Strip out --silent because we don't want to record it for future runs.
2506 # Also quote any args containing shell meta-characters.
2507 # Make two passes to allow for proper duplicate-argument suppression.
2511 ac_must_keep_next=false
2517 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2518 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2519 | -silent | --silent | --silen | --sile | --sil)
2522 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2525 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2527 as_fn_append ac_configure_args1 " '$ac_arg'"
2528 if test $ac_must_keep_next = true; then
2529 ac_must_keep_next=false # Got value, back to normal.
2532 *=* | --config-cache | -C | -disable-* | --disable-* \
2533 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2534 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2535 | -with-* | --with-* | -without-* | --without-* | --x)
2536 case "$ac_configure_args0 " in
2537 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2540 -* ) ac_must_keep_next=true ;;
2543 as_fn_append ac_configure_args " '$ac_arg'"
2548 { ac_configure_args0=; unset ac_configure_args0;}
2549 { ac_configure_args1=; unset ac_configure_args1;}
2551 # When interrupted or exit'd, cleanup temporary files, and complete
2552 # config.log. We remove comments because anyway the quotes in there
2553 # would cause problems or look ugly.
2554 # WARNING: Use '\'' to represent an apostrophe within the trap.
2555 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2556 trap 'exit_status=$?
2557 # Save into config.log some information that might help in debugging.
2562 ## ---------------- ##
2563 ## Cache variables. ##
2564 ## ---------------- ##
2567 # The following way of writing the cache mishandles newlines in values,
2569 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2570 eval ac_val=\$$ac_var
2574 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2575 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2578 _ | IFS | as_nl) ;; #(
2579 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2580 *) { eval $ac_var=; unset $ac_var;} ;;
2585 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2586 *${as_nl}ac_space=\ *)
2588 "s/'\''/'\''\\\\'\'''\''/g;
2589 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2592 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2600 ## ----------------- ##
2601 ## Output variables. ##
2602 ## ----------------- ##
2605 for ac_var in $ac_subst_vars
2607 eval ac_val=\$$ac_var
2609 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2611 $as_echo "$ac_var='\''$ac_val'\''"
2615 if test -n "$ac_subst_files"; then
2617 ## ------------------- ##
2618 ## File substitutions. ##
2619 ## ------------------- ##
2622 for ac_var in $ac_subst_files
2624 eval ac_val=\$$ac_var
2626 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2628 $as_echo "$ac_var='\''$ac_val'\''"
2633 if test -s confdefs.h; then
2643 test "$ac_signal" != 0 &&
2644 $as_echo "$as_me: caught signal $ac_signal"
2645 $as_echo "$as_me: exit $exit_status"
2647 rm -f core *.core core.conftest.* &&
2648 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2651 for ac_signal in 1 2 13 15; do
2652 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2656 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2657 rm -f -r conftest* confdefs.h
2659 $as_echo "/* confdefs.h */" > confdefs.h
2661 # Predefined preprocessor variables.
2663 cat >>confdefs.h <<_ACEOF
2664 #define PACKAGE_NAME "$PACKAGE_NAME"
2667 cat >>confdefs.h <<_ACEOF
2668 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2671 cat >>confdefs.h <<_ACEOF
2672 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2675 cat >>confdefs.h <<_ACEOF
2676 #define PACKAGE_STRING "$PACKAGE_STRING"
2679 cat >>confdefs.h <<_ACEOF
2680 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2683 cat >>confdefs.h <<_ACEOF
2684 #define PACKAGE_URL "$PACKAGE_URL"
2688 # Let the site file select an alternate cache file if it wants to.
2689 # Prefer an explicitly selected file to automatically selected ones.
2692 if test -n "$CONFIG_SITE"; then
2693 ac_site_file1=$CONFIG_SITE
2694 elif test "x$prefix" != xNONE; then
2695 ac_site_file1=$prefix/share/config.site
2696 ac_site_file2=$prefix/etc/config.site
2698 ac_site_file1=$ac_default_prefix/share/config.site
2699 ac_site_file2=$ac_default_prefix/etc/config.site
2701 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2703 test "x$ac_site_file" = xNONE && continue
2704 if test -r "$ac_site_file"; then
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2706 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2707 sed 's/^/| /' "$ac_site_file" >&5
2712 if test -r "$cache_file"; then
2713 # Some versions of bash will fail to source /dev/null (special
2714 # files actually), so we avoid doing that.
2715 if test -f "$cache_file"; then
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2717 $as_echo "$as_me: loading cache $cache_file" >&6;}
2719 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2720 *) . "./$cache_file";;
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2725 $as_echo "$as_me: creating cache $cache_file" >&6;}
2729 gl_header_list="$gl_header_list sys/mman.h"
2730 gl_func_list="$gl_func_list mprotect"
2731 gl_func_list="$gl_func_list memchr"
2732 gl_header_list="$gl_header_list stddef.h"
2733 gl_header_list="$gl_header_list stdint.h"
2734 gl_header_list="$gl_header_list wchar.h"
2735 gl_header_list="$gl_header_list string.h"
2736 # Check that the precious variables saved in the cache have kept the same
2738 ac_cache_corrupted=false
2739 for ac_var in $ac_precious_vars; do
2740 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2741 eval ac_new_set=\$ac_env_${ac_var}_set
2742 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2743 eval ac_new_val=\$ac_env_${ac_var}_value
2744 case $ac_old_set,$ac_new_set in
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2747 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2748 ac_cache_corrupted=: ;;
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2751 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2752 ac_cache_corrupted=: ;;
2755 if test "x$ac_old_val" != "x$ac_new_val"; then
2756 # differences in whitespace do not lead to failure.
2757 ac_old_val_w=`echo x
$ac_old_val`
2758 ac_new_val_w=`echo x
$ac_new_val`
2759 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2761 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2762 ac_cache_corrupted=:
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2765 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2766 eval $ac_var=\$ac_old_val
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2769 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2771 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2774 # Pass precious variables to config.status.
2775 if test "$ac_new_set" = set; then
2777 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2778 *) ac_arg=$ac_var=$ac_new_val ;;
2780 case " $ac_configure_args " in
2781 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2782 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2786 if $ac_cache_corrupted; then
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2790 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2791 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2793 ## -------------------- ##
2794 ## Main body of script. ##
2795 ## -------------------- ##
2798 ac_cpp='$CPP $CPPFLAGS'
2799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2807 ac_config_headers="$ac_config_headers config.h:config.in"
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2811 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2812 # Check whether --enable-maintainer-mode was given.
2813 if test "${enable_maintainer_mode+set}" = set; then :
2814 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2816 USE_MAINTAINER_MODE=no
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2820 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2821 if test $USE_MAINTAINER_MODE = yes; then
2822 MAINTAINER_MODE_TRUE=
2823 MAINTAINER_MODE_FALSE='#'
2825 MAINTAINER_MODE_TRUE='#'
2826 MAINTAINER_MODE_FALSE=
2829 MAINT=$MAINTAINER_MODE_TRUE
2834 ac_cpp='$CPP $CPPFLAGS'
2835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2838 if test -n "$ac_tool_prefix"; then
2839 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2840 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2842 $as_echo_n "checking for $ac_word... " >&6; }
2843 if test "${ac_cv_prog_CC+set}" = set; then :
2844 $as_echo_n "(cached) " >&6
2846 if test -n "$CC"; then
2847 ac_cv_prog_CC="$CC" # Let the user override the test.
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 test -z "$as_dir" && as_dir=.
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2856 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2867 if test -n "$CC"; then
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2869 $as_echo "$CC" >&6; }
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872 $as_echo "no" >&6; }
2877 if test -z "$ac_cv_prog_CC"; then
2879 # Extract the first word of "gcc", so it can be a program name with args.
2880 set dummy gcc; ac_word=$2
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882 $as_echo_n "checking for $ac_word... " >&6; }
2883 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2884 $as_echo_n "(cached) " >&6
2886 if test -n "$ac_ct_CC"; then
2887 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 test -z "$as_dir" && as_dir=.
2894 for ac_exec_ext in '' $ac_executable_extensions; do
2895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2896 ac_cv_prog_ac_ct_CC="gcc"
2897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2906 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2907 if test -n "$ac_ct_CC"; then
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2909 $as_echo "$ac_ct_CC" >&6; }
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912 $as_echo "no" >&6; }
2915 if test "x$ac_ct_CC" = x; then
2918 case $cross_compiling:$ac_tool_warned in
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2922 ac_tool_warned=yes ;;
2930 if test -z "$CC"; then
2931 if test -n "$ac_tool_prefix"; then
2932 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2933 set dummy ${ac_tool_prefix}cc; ac_word=$2
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935 $as_echo_n "checking for $ac_word... " >&6; }
2936 if test "${ac_cv_prog_CC+set}" = set; then :
2937 $as_echo_n "(cached) " >&6
2939 if test -n "$CC"; then
2940 ac_cv_prog_CC="$CC" # Let the user override the test.
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 test -z "$as_dir" && as_dir=.
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2949 ac_cv_prog_CC="${ac_tool_prefix}cc"
2950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2960 if test -n "$CC"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2962 $as_echo "$CC" >&6; }
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 $as_echo "no" >&6; }
2971 if test -z "$CC"; then
2972 # Extract the first word of "cc", so it can be a program name with args.
2973 set dummy cc; ac_word=$2
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2975 $as_echo_n "checking for $ac_word... " >&6; }
2976 if test "${ac_cv_prog_CC+set}" = set; then :
2977 $as_echo_n "(cached) " >&6
2979 if test -n "$CC"; then
2980 ac_cv_prog_CC="$CC" # Let the user override the test.
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2990 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2991 ac_prog_rejected=yes
2995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3002 if test $ac_prog_rejected = yes; then
3003 # We found a bogon in the path, so make sure we never use it.
3004 set dummy $ac_cv_prog_CC
3006 if test $# != 0; then
3007 # We chose a different compiler from the bogus one.
3008 # However, it has the same basename, so the bogon will be chosen
3009 # first if we set CC to just the basename; use the full file name.
3011 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3017 if test -n "$CC"; then
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3019 $as_echo "$CC" >&6; }
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022 $as_echo "no" >&6; }
3027 if test -z "$CC"; then
3028 if test -n "$ac_tool_prefix"; then
3029 for ac_prog in cl.exe
3031 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3032 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3034 $as_echo_n "checking for $ac_word... " >&6; }
3035 if test "${ac_cv_prog_CC+set}" = set; then :
3036 $as_echo_n "(cached) " >&6
3038 if test -n "$CC"; then
3039 ac_cv_prog_CC="$CC" # Let the user override the test.
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045 test -z "$as_dir" && as_dir=.
3046 for ac_exec_ext in '' $ac_executable_extensions; do
3047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3048 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3059 if test -n "$CC"; then
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3061 $as_echo "$CC" >&6; }
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3064 $as_echo "no" >&6; }
3068 test -n "$CC" && break
3071 if test -z "$CC"; then
3073 for ac_prog in cl.exe
3075 # Extract the first word of "$ac_prog", so it can be a program name with args.
3076 set dummy $ac_prog; ac_word=$2
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 $as_echo_n "checking for $ac_word... " >&6; }
3079 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3080 $as_echo_n "(cached) " >&6
3082 if test -n "$ac_ct_CC"; then
3083 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3092 ac_cv_prog_ac_ct_CC="$ac_prog"
3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3102 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3103 if test -n "$ac_ct_CC"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3105 $as_echo "$ac_ct_CC" >&6; }
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3112 test -n "$ac_ct_CC" && break
3115 if test "x$ac_ct_CC" = x; then
3118 case $cross_compiling:$ac_tool_warned in
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3122 ac_tool_warned=yes ;;
3131 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3133 as_fn_error "no acceptable C compiler found
in \
$PATH
3134 See \
`config.log' for more details." "$LINENO" 5; }
3136 # Provide some information about the compiler.
3137 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3140 for ac_option in --version -v -V -qversion; do
3141 { { ac_try="$ac_compiler $ac_option >&5"
3143 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3144 *) ac_try_echo
=$ac_try;;
3146 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3147 $as_echo "$ac_try_echo"; } >&5
3148 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3150 if test -s conftest.err
; then
3152 ... rest of stderr output deleted ...
3153 10q' conftest.err
>conftest.er1
3154 cat conftest.er1
>&5
3155 rm -f conftest.er1 conftest.err
3157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3158 test $ac_status = 0; }
3161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3162 /* end confdefs.h. */
3172 ac_clean_files_save
=$ac_clean_files
3173 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3174 # Try to create an executable without -o first, disregard a.out.
3175 # It will help us diagnose broken compilers, and finding out an intuition
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3178 $as_echo_n "checking for C compiler default output file name... " >&6; }
3179 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3181 # The possible output files:
3182 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3185 for ac_file
in $ac_files
3188 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3189 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3194 if { { ac_try
="$ac_link_default"
3196 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3199 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3200 $as_echo "$ac_try_echo"; } >&5
3201 (eval "$ac_link_default") 2>&5
3203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3204 test $ac_status = 0; }; then :
3205 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3206 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3207 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3208 # so that the user can short-circuit this test for compilers unknown to
3210 for ac_file in $ac_files ''
3212 test -f "$ac_file" || continue
3214 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3217 # We found the default executable, but exeext='' is most
3221 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3223 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3225 # We set ac_cv_exeext here because the later test for it is not
3226 # safe: cross compilers may not add the suffix if given an `-o'
3227 # argument, so we may need to know it at that point already.
3228 # Even if this section looks crufty: it has the advantage of
3235 test "$ac_cv_exeext" = no && ac_cv_exeext=
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3241 $as_echo "$ac_file" >&6; }
3242 if test -z "$ac_file"; then :
3243 $as_echo "$as_me: failed program was:" >&5
3244 sed 's
/^
/|
/' conftest.$ac_ext >&5
3246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3247 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3248 { as_fn_set_status 77
3249 as_fn_error "C compiler cannot create executables
3250 See \`config.log
' for more details." "$LINENO" 5; }; }
3252 ac_exeext=$ac_cv_exeext
3254 # Check that the compiler produces executables we can run. If not, either
3255 # the compiler is broken, or we cross compile.
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3257 $as_echo_n "checking whether the C compiler works... " >&6; }
3258 # If not cross compiling, check that we can run a simple program.
3259 if test "$cross_compiling" != yes; then
3260 if { ac_try='.
/$ac_file'
3261 { { case "(($ac_try" in
3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3265 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3266 $as_echo "$ac_try_echo"; } >&5
3267 (eval "$ac_try") 2>&5
3269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3270 test $ac_status = 0; }; }; then
3273 if test "$cross_compiling" = maybe; then
3276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3277 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3278 as_fn_error "cannot run C compiled programs.
3279 If you meant to cross compile, use \`--host'.
3280 See \`config.log' for more details.
" "$LINENO" 5; }
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
3285 $as_echo "yes" >&6; }
3287 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3288 ac_clean_files=$ac_clean_files_save
3289 # Check that the compiler produces executables we can run. If not, either
3290 # the compiler is broken, or we cross compile.
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
3292 $as_echo_n "checking whether we are cross compiling...
" >&6; }
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $cross_compiling" >&5
3294 $as_echo "$cross_compiling" >&6; }
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
3297 $as_echo_n "checking
for suffix of executables...
" >&6; }
3298 if { { ac_try="$ac_link"
3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301 *) ac_try_echo=$ac_try;;
3303 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3304 $as_echo "$ac_try_echo"; } >&5
3305 (eval "$ac_link") 2>&5
3307 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3308 test $ac_status = 0; }; then :
3309 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3310 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3311 # work properly (i.e., refer to `conftest.exe'), while it won't with
3313 for ac_file in conftest.exe conftest conftest.*; do
3314 test -f "$ac_file" || continue
3316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3317 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3325 as_fn_error "cannot compute suffix of executables: cannot compile and link
3326 See \`config.log' for more details.
" "$LINENO" 5; }
3328 rm -f conftest$ac_cv_exeext
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
3330 $as_echo "$ac_cv_exeext" >&6; }
3332 rm -f conftest.$ac_ext
3333 EXEEXT=$ac_cv_exeext
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of object files
" >&5
3336 $as_echo_n "checking
for suffix of object files...
" >&6; }
3337 if test "${ac_cv_objext+set}" = set; then :
3338 $as_echo_n "(cached
) " >&6
3340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3341 /* end confdefs.h. */
3351 rm -f conftest.o conftest.obj
3352 if { { ac_try="$ac_compile"
3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355 *) ac_try_echo=$ac_try;;
3357 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3358 $as_echo "$ac_try_echo"; } >&5
3359 (eval "$ac_compile") 2>&5
3361 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3362 test $ac_status = 0; }; then :
3363 for ac_file in conftest.o conftest.obj conftest.*; do
3364 test -f "$ac_file" || continue;
3366 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3367 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3372 $as_echo "$as_me: failed program was
:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3375 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3377 as_fn_error "cannot compute suffix of object files: cannot compile
3378 See \`config.log' for more details.
" "$LINENO" 5; }
3380 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_objext" >&5
3383 $as_echo "$ac_cv_objext" >&6; }
3384 OBJEXT=$ac_cv_objext
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler
" >&5
3387 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3388 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3389 $as_echo_n "(cached
) " >&6
3391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3392 /* end confdefs.h. */
3405 if ac_fn_c_try_compile "$LINENO"; then :
3410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3411 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_compiler_gnu" >&5
3415 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3416 if test $ac_compiler_gnu = yes; then
3421 ac_test_CFLAGS=${CFLAGS+set}
3422 ac_save_CFLAGS=$CFLAGS
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC accepts
-g" >&5
3424 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3425 if test "${ac_cv_prog_cc_g+set}" = set; then :
3426 $as_echo_n "(cached
) " >&6
3428 ac_save_c_werror_flag=$ac_c_werror_flag
3429 ac_c_werror_flag=yes
3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h. */
3443 if ac_fn_c_try_compile "$LINENO"; then :
3447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3448 /* end confdefs.h. */
3458 if ac_fn_c_try_compile "$LINENO"; then :
3461 ac_c_werror_flag=$ac_save_c_werror_flag
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h. */
3474 if ac_fn_c_try_compile "$LINENO"; then :
3477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3482 ac_c_werror_flag=$ac_save_c_werror_flag
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_g" >&5
3485 $as_echo "$ac_cv_prog_cc_g" >&6; }
3486 if test "$ac_test_CFLAGS" = set; then
3487 CFLAGS=$ac_save_CFLAGS
3488 elif test $ac_cv_prog_cc_g = yes; then
3489 if test "$GCC" = yes; then
3495 if test "$GCC" = yes; then
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $CC option to accept ISO C89
" >&5
3502 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3503 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3504 $as_echo_n "(cached
) " >&6
3506 ac_cv_prog_cc_c89=no
3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h. */
3512 #include <sys/types.h>
3513 #include <sys/stat.h>
3514 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3515 struct buf { int x; };
3516 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3517 static char *e (p, i)
3523 static char *f (char * (*g) (char **, int), char **p, ...)
3528 s = g (p, va_arg (v,int));
3533 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3534 function prototypes and stuff, but not '\xHH' hex character constants.
3535 These don't provoke an error unfortunately, instead are silently treated
3536 as 'x'. The following induces an error, until -std is added to get
3537 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3538 array size at least. It's necessary to write '\x00'==0 to get something
3539 that's true only with -std. */
3540 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3542 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3543 inside strings and character constants. */
3545 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3547 int test (int i, double x);
3548 struct s1 {int (*f) (int a);};
3549 struct s2 {int (*f) (double a);};
3550 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3556 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3561 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3562 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3564 CC="$ac_save_CC $ac_arg"
3565 if ac_fn_c_try_compile "$LINENO"; then :
3566 ac_cv_prog_cc_c89=$ac_arg
3568 rm -f core conftest.err conftest.$ac_objext
3569 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3571 rm -f conftest.$ac_ext
3576 case "x
$ac_cv_prog_cc_c89" in
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none needed
" >&5
3579 $as_echo "none needed
" >&6; } ;;
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: unsupported
" >&5
3582 $as_echo "unsupported
" >&6; } ;;
3584 CC="$CC $ac_cv_prog_cc_c89"
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_c89" >&5
3586 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3588 if test "x
$ac_cv_prog_cc_c89" != xno; then :
3593 ac_cpp='$CPP $CPPFLAGS'
3594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3599 for ac_dir in "$srcdir" "$srcdir/..
" "$srcdir/..
/..
"; do
3600 for ac_t in install-sh install.sh shtool; do
3601 if test -f "$ac_dir/$ac_t"; then
3603 ac_install_sh="$ac_aux_dir/$ac_t -c"
3608 if test -z "$ac_aux_dir"; then
3609 as_fn_error "cannot
find install-sh
, install.sh
, or shtool
in \"$srcdir\" \"$srcdir/..
\" \"$srcdir/..
/..
\"" "$LINENO" 5
3612 # These three variables are undocumented and unsupported,
3613 # and are intended to be withdrawn in a future Autoconf release.
3614 # They can cause serious problems if a builder's source tree is in a directory
3615 # whose full name contains unusual characters.
3616 ac_config_guess="$SHELL $ac_aux_dir/config.guess
" # Please don't use this var.
3617 ac_config_sub="$SHELL $ac_aux_dir/config.sub
" # Please don't use this var.
3618 ac_configure="$SHELL $ac_aux_dir/configure
" # Please don't use this var.
3621 # Make sure we can run config.sub.
3622 $SHELL "$ac_aux_dir/config.sub
" sun4 >/dev/null 2>&1 ||
3623 as_fn_error "cannot run
$SHELL $ac_aux_dir/config.sub
" "$LINENO" 5
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system
type" >&5
3626 $as_echo_n "checking build system
type...
" >&6; }
3627 if test "${ac_cv_build+set}" = set; then :
3628 $as_echo_n "(cached
) " >&6
3630 ac_build_alias=$build_alias
3631 test "x
$ac_build_alias" = x &&
3632 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess
"`
3633 test "x
$ac_build_alias" = x &&
3634 as_fn_error "cannot guess build
type; you must specify one
" "$LINENO" 5
3635 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub
" $ac_build_alias` ||
3636 as_fn_error "$SHELL $ac_aux_dir/config.sub
$ac_build_alias failed
" "$LINENO" 5
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_build" >&5
3640 $as_echo "$ac_cv_build" >&6; }
3641 case $ac_cv_build in
3643 *) as_fn_error "invalid value of canonical build
" "$LINENO" 5;;
3646 ac_save_IFS=$IFS; IFS='-'
3652 # Remember, the first character of IFS is used to create $*,
3653 # except with old shells:
3656 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
host system
type" >&5
3660 $as_echo_n "checking
host system
type...
" >&6; }
3661 if test "${ac_cv_host+set}" = set; then :
3662 $as_echo_n "(cached
) " >&6
3664 if test "x
$host_alias" = x; then
3665 ac_cv_host=$ac_cv_build
3667 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub
" $host_alias` ||
3668 as_fn_error "$SHELL $ac_aux_dir/config.sub
$host_alias failed
" "$LINENO" 5
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_host" >&5
3673 $as_echo "$ac_cv_host" >&6; }
3676 *) as_fn_error "invalid value of canonical
host" "$LINENO" 5;;
3679 ac_save_IFS=$IFS; IFS='-'
3685 # Remember, the first character of IFS is used to create $*,
3686 # except with old shells:
3689 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3694 ac_cpp='$CPP $CPPFLAGS'
3695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
3699 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3700 # On Suns, sometimes $CPP names a directory.
3701 if test -n "$CPP" && test -d "$CPP"; then
3704 if test -z "$CPP"; then
3705 if test "${ac_cv_prog_CPP+set}" = set; then :
3706 $as_echo_n "(cached
) " >&6
3708 # Double quotes because CPP needs to be expanded
3709 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3712 for ac_c_preproc_warn_flag in '' yes
3714 # Use a header file that comes with gcc, so configuring glibc
3715 # with a fresh cross-compiler works.
3716 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3717 # <limits.h> exists even on freestanding compilers.
3718 # On the NeXT, cc -E runs the code through the compiler's parser,
3719 # not just through cpp. "Syntax error
" is here to catch this case.
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h. */
3723 # include <limits.h>
3725 # include <assert.h>
3729 if ac_fn_c_try_cpp "$LINENO"; then :
3732 # Broken: fails on valid input.
3735 rm -f conftest.err conftest.$ac_ext
3737 # OK, works on sane cases. Now check whether nonexistent headers
3738 # can be detected and how.
3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h. */
3741 #include <ac_nonexistent.h>
3743 if ac_fn_c_try_cpp "$LINENO"; then :
3744 # Broken: success on invalid input.
3747 # Passes both tests.
3751 rm -f conftest.err conftest.$ac_ext
3754 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3755 rm -f conftest.err conftest.$ac_ext
3756 if $ac_preproc_ok; then :
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
3769 $as_echo "$CPP" >&6; }
3771 for ac_c_preproc_warn_flag in '' yes
3773 # Use a header file that comes with gcc, so configuring glibc
3774 # with a fresh cross-compiler works.
3775 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3776 # <limits.h> exists even on freestanding compilers.
3777 # On the NeXT, cc -E runs the code through the compiler's parser,
3778 # not just through cpp. "Syntax error
" is here to catch this case.
3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h. */
3782 # include <limits.h>
3784 # include <assert.h>
3788 if ac_fn_c_try_cpp "$LINENO"; then :
3791 # Broken: fails on valid input.
3794 rm -f conftest.err conftest.$ac_ext
3796 # OK, works on sane cases. Now check whether nonexistent headers
3797 # can be detected and how.
3798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799 /* end confdefs.h. */
3800 #include <ac_nonexistent.h>
3802 if ac_fn_c_try_cpp "$LINENO"; then :
3803 # Broken: success on invalid input.
3806 # Passes both tests.
3810 rm -f conftest.err conftest.$ac_ext
3813 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3814 rm -f conftest.err conftest.$ac_ext
3815 if $ac_preproc_ok; then :
3818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3820 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3821 See \`config.log' for more details.
" "$LINENO" 5; }
3825 ac_cpp='$CPP $CPPFLAGS'
3826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
3832 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
3833 if test "${ac_cv_path_GREP+set}" = set; then :
3834 $as_echo_n "(cached
) " >&6
3836 if test -z "$GREP"; then
3837 ac_path_GREP_found=false
3838 # Loop through the user's path and test for each of PROGNAME-LIST
3839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3843 test -z "$as_dir" && as_dir=.
3844 for ac_prog in grep ggrep; do
3845 for ac_exec_ext in '' $ac_executable_extensions; do
3846 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3847 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3848 # Check for GNU ac_path_GREP and select it if it is found.
3849 # Check for GNU $ac_path_GREP
3850 case `"$ac_path_GREP" --version 2>&1` in
3852 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3855 $as_echo_n 0123456789 >"conftest.
in"
3858 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3859 mv "conftest.tmp
" "conftest.
in"
3860 cp "conftest.
in" "conftest.
nl"
3861 $as_echo 'GREP' >> "conftest.
nl"
3862 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3863 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3864 as_fn_arith $ac_count + 1 && ac_count=$as_val
3865 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3866 # Best one so far, save it but keep looking for a better one
3867 ac_cv_path_GREP="$ac_path_GREP"
3868 ac_path_GREP_max=$ac_count
3870 # 10*(2^10) chars as input seems more than enough
3871 test $ac_count -gt 10 && break
3873 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3876 $ac_path_GREP_found && break 3
3881 if test -z "$ac_cv_path_GREP"; then
3882 as_fn_error "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3885 ac_cv_path_GREP=$GREP
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
3890 $as_echo "$ac_cv_path_GREP" >&6; }
3891 GREP="$ac_cv_path_GREP"
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
3895 $as_echo_n "checking
for egrep...
" >&6; }
3896 if test "${ac_cv_path_EGREP+set}" = set; then :
3897 $as_echo_n "(cached
) " >&6
3899 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3900 then ac_cv_path_EGREP="$GREP -E"
3902 if test -z "$EGREP"; then
3903 ac_path_EGREP_found=false
3904 # Loop through the user's path and test for each of PROGNAME-LIST
3905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3909 test -z "$as_dir" && as_dir=.
3910 for ac_prog in egrep; do
3911 for ac_exec_ext in '' $ac_executable_extensions; do
3912 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3913 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3914 # Check for GNU ac_path_EGREP and select it if it is found.
3915 # Check for GNU $ac_path_EGREP
3916 case `"$ac_path_EGREP" --version 2>&1` in
3918 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3921 $as_echo_n 0123456789 >"conftest.
in"
3924 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3925 mv "conftest.tmp
" "conftest.
in"
3926 cp "conftest.
in" "conftest.
nl"
3927 $as_echo 'EGREP' >> "conftest.
nl"
3928 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3929 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3930 as_fn_arith $ac_count + 1 && ac_count=$as_val
3931 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3932 # Best one so far, save it but keep looking for a better one
3933 ac_cv_path_EGREP="$ac_path_EGREP"
3934 ac_path_EGREP_max=$ac_count
3936 # 10*(2^10) chars as input seems more than enough
3937 test $ac_count -gt 10 && break
3939 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3942 $ac_path_EGREP_found && break 3
3947 if test -z "$ac_cv_path_EGREP"; then
3948 as_fn_error "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3951 ac_cv_path_EGREP=$EGREP
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
3957 $as_echo "$ac_cv_path_EGREP" >&6; }
3958 EGREP="$ac_cv_path_EGREP"
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
3962 $as_echo_n "checking
for ANSI C header files...
" >&6; }
3963 if test "${ac_cv_header_stdc+set}" = set; then :
3964 $as_echo_n "(cached
) " >&6
3966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967 /* end confdefs.h. */
3981 if ac_fn_c_try_compile "$LINENO"; then :
3982 ac_cv_header_stdc=yes
3984 ac_cv_header_stdc=no
3986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3988 if test $ac_cv_header_stdc = yes; then
3989 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991 /* end confdefs.h. */
3995 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3996 $EGREP "memchr
" >/dev/null 2>&1; then :
3999 ac_cv_header_stdc=no
4005 if test $ac_cv_header_stdc = yes; then
4006 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008 /* end confdefs.h. */
4012 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4013 $EGREP "free
" >/dev/null 2>&1; then :
4016 ac_cv_header_stdc=no
4022 if test $ac_cv_header_stdc = yes; then
4023 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4024 if test "$cross_compiling" = yes; then :
4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028 /* end confdefs.h. */
4031 #if ((' ' & 0x0FF) == 0x020)
4032 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4033 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4035 # define ISLOWER(c) \
4036 (('a' <= (c) && (c) <= 'i') \
4037 || ('j' <= (c) && (c) <= 'r') \
4038 || ('s' <= (c) && (c) <= 'z'))
4039 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4042 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4047 for (i = 0; i < 256; i++)
4048 if (XOR (islower (i), ISLOWER (i))
4049 || toupper (i) != TOUPPER (i))
4054 if ac_fn_c_try_run "$LINENO"; then :
4057 ac_cv_header_stdc=no
4059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4060 conftest.$ac_objext conftest.beam conftest.$ac_ext
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
4066 $as_echo "$ac_cv_header_stdc" >&6; }
4067 if test $ac_cv_header_stdc = yes; then
4069 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4073 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4074 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4075 inttypes.h stdint.h unistd.h
4077 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4078 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4080 eval as_val
=\$
$as_ac_Header
4081 if test "x$as_val" = x
""yes; then :
4082 cat >>confdefs.h
<<_ACEOF
4083 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4094 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4095 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4102 if test "$MINIX" = yes; then
4104 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4107 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4110 $as_echo "#define _MINIX 1" >>confdefs.h
4117 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4124 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4125 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4126 $as_echo_n "(cached) " >&6
4128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4131 # define __EXTENSIONS__ 1
4132 $ac_includes_default
4141 if ac_fn_c_try_compile
"$LINENO"; then :
4142 ac_cv_safe_to_define___extensions__
=yes
4144 ac_cv_safe_to_define___extensions__
=no
4146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4149 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4150 test $ac_cv_safe_to_define___extensions__ = yes &&
4151 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4153 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4155 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4157 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4159 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4162 if test -n "$ac_tool_prefix"; then
4163 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4164 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4166 $as_echo_n "checking for $ac_word... " >&6; }
4167 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4168 $as_echo_n "(cached) " >&6
4170 if test -n "$RANLIB"; then
4171 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4173 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4177 test -z "$as_dir" && as_dir
=.
4178 for ac_exec_ext
in '' $ac_executable_extensions; do
4179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4180 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4190 RANLIB
=$ac_cv_prog_RANLIB
4191 if test -n "$RANLIB"; then
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4193 $as_echo "$RANLIB" >&6; }
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4196 $as_echo "no" >&6; }
4201 if test -z "$ac_cv_prog_RANLIB"; then
4202 ac_ct_RANLIB
=$RANLIB
4203 # Extract the first word of "ranlib", so it can be a program name with args.
4204 set dummy ranlib
; ac_word
=$2
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4206 $as_echo_n "checking for $ac_word... " >&6; }
4207 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4208 $as_echo_n "(cached) " >&6
4210 if test -n "$ac_ct_RANLIB"; then
4211 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4213 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4217 test -z "$as_dir" && as_dir
=.
4218 for ac_exec_ext
in '' $ac_executable_extensions; do
4219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4220 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4230 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4231 if test -n "$ac_ct_RANLIB"; then
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4233 $as_echo "$ac_ct_RANLIB" >&6; }
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4236 $as_echo "no" >&6; }
4239 if test "x$ac_ct_RANLIB" = x
; then
4242 case $cross_compiling:$ac_tool_warned in
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4246 ac_tool_warned
=yes ;;
4248 RANLIB
=$ac_ct_RANLIB
4251 RANLIB
="$ac_cv_prog_RANLIB"
4262 # Code from module arg-nonnull:
4263 # Code from module c++defs:
4264 # Code from module extensions:
4266 # Code from module include_next:
4267 # Code from module memchr:
4268 # Code from module memmem:
4269 # Code from module memmem-simple:
4270 # Code from module multiarch:
4271 # Code from module stddef:
4272 # Code from module stdint:
4273 # Code from module string:
4274 # Code from module warn-on-use:
4275 # Code from module wchar:
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4278 $as_echo_n "checking target system type... " >&6; }
4279 if test "${ac_cv_target+set}" = set; then :
4280 $as_echo_n "(cached) " >&6
4282 if test "x$target_alias" = x
; then
4283 ac_cv_target
=$ac_cv_host
4285 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4286 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4291 $as_echo "$ac_cv_target" >&6; }
4292 case $ac_cv_target in
4294 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4296 target
=$ac_cv_target
4297 ac_save_IFS
=$IFS; IFS
='-'
4303 # Remember, the first character of IFS is used to create $*,
4304 # except with old shells:
4307 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4310 # The aliases save the names the user supplied, while $host etc.
4311 # will get canonicalized.
4312 test -n "$target_alias" &&
4313 test "$program_prefix$program_suffix$program_transform_name" = \
4315 program_prefix
=${target_alias}-
4317 # The tests for host and target for $enable_largefile require
4322 # As the $enable_largefile decision depends on --enable-plugins we must set it
4323 # even in directories otherwise not depending on the $plugins option.
4326 # Check whether --enable-plugins was given.
4327 if test "${enable_plugins+set}" = set; then :
4328 enableval
=$enable_plugins; case "${enableval}" in
4329 yes |
"") plugins
=yes ;;
4340 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4341 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4342 # are mutually exclusive; and without procfs support, the bfd/ elf module
4343 # cannot provide certain routines such as elfcore_write_prpsinfo
4344 # or elfcore_write_prstatus. So unless the user explicitly requested
4345 # large-file support through the --enable-largefile switch, disable
4346 # large-file support in favor of procfs support.
4347 test "${target}" = "${host}" -a "x$plugins" = xno \
4348 && : ${enable_largefile="no"}
4352 # Check whether --enable-largefile was given.
4353 if test "${enable_largefile+set}" = set; then :
4354 enableval
=$enable_largefile;
4357 if test "$enable_largefile" != no
; then
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4360 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4361 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4362 $as_echo_n "(cached) " >&6
4364 ac_cv_sys_largefile_CC
=no
4365 if test "$GCC" != yes; then
4368 # IRIX 6.2 and later do not support large files by default,
4369 # so use the C compiler's -n32 option if that helps.
4370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4371 /* end confdefs.h. */
4372 #include <sys/types.h>
4373 /* Check that off_t can represent 2**63 - 1 correctly.
4374 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4375 since some C++ compilers masquerading as C compilers
4376 incorrectly reject 9223372036854775807. */
4377 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4378 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4379 && LARGE_OFF_T % 2147483647 == 1)
4389 if ac_fn_c_try_compile
"$LINENO"; then :
4392 rm -f core conftest.err conftest.
$ac_objext
4394 if ac_fn_c_try_compile
"$LINENO"; then :
4395 ac_cv_sys_largefile_CC
=' -n32'; break
4397 rm -f core conftest.err conftest.
$ac_objext
4401 rm -f conftest.
$ac_ext
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4405 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4406 if test "$ac_cv_sys_largefile_CC" != no
; then
4407 CC
=$CC$ac_cv_sys_largefile_CC
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4411 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4412 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4413 $as_echo_n "(cached) " >&6
4416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4417 /* end confdefs.h. */
4418 #include <sys/types.h>
4419 /* Check that off_t can represent 2**63 - 1 correctly.
4420 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4421 since some C++ compilers masquerading as C compilers
4422 incorrectly reject 9223372036854775807. */
4423 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4424 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4425 && LARGE_OFF_T % 2147483647 == 1)
4435 if ac_fn_c_try_compile
"$LINENO"; then :
4436 ac_cv_sys_file_offset_bits
=no
; break
4438 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4440 /* end confdefs.h. */
4441 #define _FILE_OFFSET_BITS 64
4442 #include <sys/types.h>
4443 /* Check that off_t can represent 2**63 - 1 correctly.
4444 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4445 since some C++ compilers masquerading as C compilers
4446 incorrectly reject 9223372036854775807. */
4447 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4448 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4449 && LARGE_OFF_T % 2147483647 == 1)
4459 if ac_fn_c_try_compile
"$LINENO"; then :
4460 ac_cv_sys_file_offset_bits
=64; break
4462 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4463 ac_cv_sys_file_offset_bits
=unknown
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4468 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4469 case $ac_cv_sys_file_offset_bits in #(
4472 cat >>confdefs.h
<<_ACEOF
4473 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4478 if test $ac_cv_sys_file_offset_bits = unknown
; then
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4480 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4481 if test "${ac_cv_sys_large_files+set}" = set; then :
4482 $as_echo_n "(cached) " >&6
4485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h. */
4487 #include <sys/types.h>
4488 /* Check that off_t can represent 2**63 - 1 correctly.
4489 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4490 since some C++ compilers masquerading as C compilers
4491 incorrectly reject 9223372036854775807. */
4492 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4493 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4494 && LARGE_OFF_T % 2147483647 == 1)
4504 if ac_fn_c_try_compile
"$LINENO"; then :
4505 ac_cv_sys_large_files
=no
; break
4507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h. */
4510 #define _LARGE_FILES 1
4511 #include <sys/types.h>
4512 /* Check that off_t can represent 2**63 - 1 correctly.
4513 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4514 since some C++ compilers masquerading as C compilers
4515 incorrectly reject 9223372036854775807. */
4516 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4517 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4518 && LARGE_OFF_T % 2147483647 == 1)
4528 if ac_fn_c_try_compile
"$LINENO"; then :
4529 ac_cv_sys_large_files
=1; break
4531 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4532 ac_cv_sys_large_files
=unknown
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4537 $as_echo "$ac_cv_sys_large_files" >&6; }
4538 case $ac_cv_sys_large_files in #(
4541 cat >>confdefs.h
<<_ACEOF
4542 #define _LARGE_FILES $ac_cv_sys_large_files
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4555 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4556 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4557 $as_echo_n "(cached) " >&6
4559 am_cv_prog_cc_stdc
=no
4561 # Don't try gcc -ansi; that turns off useful extensions and
4562 # breaks some systems' header files.
4563 # AIX -qlanglvl=ansi
4564 # Ultrix and OSF/1 -std1
4565 # HP-UX 10.20 and later -Ae
4566 # HP-UX older versions -Aa -D_HPUX_SOURCE
4567 # SVR4 -Xc -D__EXTENSIONS__
4568 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4570 CC
="$ac_save_CC $ac_arg"
4571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4572 /* end confdefs.h. */
4575 #include <sys/types.h>
4576 #include <sys/stat.h>
4577 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4578 struct buf { int x; };
4579 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4580 static char *e (p, i)
4586 static char *f (char * (*g) (char **, int), char **p, ...)
4591 s = g (p, va_arg (v,int));
4595 int test (int i, double x);
4596 struct s1 {int (*f) (int a);};
4597 struct s2 {int (*f) (double a);};
4598 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4606 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4612 if ac_fn_c_try_compile
"$LINENO"; then :
4613 am_cv_prog_cc_stdc
="$ac_arg"; break
4615 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4621 if test -z "$am_cv_prog_cc_stdc"; then
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4623 $as_echo "none needed" >&6; }
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4626 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4628 case "x$am_cv_prog_cc_stdc" in
4630 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4635 for ac_dir
in ..
"$srcdir"/..
; do
4636 for ac_t
in install-sh
install.sh shtool
; do
4637 if test -f "$ac_dir/$ac_t"; then
4639 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4644 if test -z "$ac_aux_dir"; then
4645 as_fn_error
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4648 # These three variables are undocumented and unsupported,
4649 # and are intended to be withdrawn in a future Autoconf release.
4650 # They can cause serious problems if a builder's source tree is in a directory
4651 # whose full name contains unusual characters.
4652 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4653 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4654 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4659 # Dependency checking.
4660 rm -rf .tst
2>/dev
/null
4661 mkdir .tst
2>/dev
/null
4662 if test -d .tst
; then
4667 rmdir .tst
2>/dev
/null
4669 DEPDIR
="${am__leading_dot}deps"
4671 ac_config_commands
="$ac_config_commands depdir"
4674 depcc
="$CC" am_compiler_list
=
4676 am_depcomp
=$ac_aux_dir/depcomp
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4678 $as_echo_n "checking dependency style of $depcc... " >&6; }
4679 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4680 $as_echo_n "(cached) " >&6
4682 if test -f "$am_depcomp"; then
4683 # We make a subdir and do the tests there. Otherwise we can end up
4684 # making bogus files that we don't know about and never remove. For
4685 # instance it was reported that on HP-UX the gcc test will end up
4686 # making a dummy file named `D' -- because `-MD' means `put the output
4689 # Copy depcomp to subdir because otherwise we won't find it if we're
4690 # using a relative directory.
4691 cp "$am_depcomp" conftest.dir
4693 # We will build objects and dependencies in a subdirectory because
4694 # it helps to detect inapplicable dependency modes. For instance
4695 # both Tru64's cc and ICC support -MD to output dependencies as a
4696 # side effect of compilation, but ICC will put the dependencies in
4697 # the current directory while Tru64 will put them in the object
4701 am_cv_CC_dependencies_compiler_type
=none
4702 if test "$am_compiler_list" = ""; then
4703 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4705 for depmode
in $am_compiler_list; do
4706 if test $depmode = none
; then break; fi
4708 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4709 # Setup a source with many dependencies, because some compilers
4710 # like to wrap large dependency lists on column 80 (with \), and
4711 # we should not choose a depcomp mode which is confused by this.
4713 # We need to recreate these files for each test, as the compiler may
4714 # overwrite some of them when testing with obscure command lines.
4715 # This happens at least with the AIX C compiler.
4717 for i
in 1 2 3 4 5 6; do
4718 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4719 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4720 # Solaris 8's {/usr,}/bin/sh.
4721 touch sub
/conftst
$i.h
4723 echo "include sub/conftest.Po" > confmf
4725 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4726 # mode. It turns out that the SunPro C++ compiler does not properly
4727 # handle `-M -o', and we need to detect this.
4728 depcmd
="depmode=$depmode \
4729 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4730 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4731 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4732 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
4733 if env
$depcmd > conftest.err
2>&1 &&
4734 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
4735 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
4736 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
4737 # icc doesn't choke on unknown options, it will just issue warnings
4738 # or remarks (even with -Werror). So we grep stderr for any message
4739 # that says an option was ignored or not supported.
4740 # When given -MP, icc 7.0 and 7.1 complain thusly:
4741 # icc: Command line warning: ignoring option '-M'; no argument required
4742 # The diagnosis changed in icc 8.0:
4743 # icc: Command line remark: option '-MP' not supported
4744 if (grep 'ignoring option' conftest.err ||
4745 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4746 am_cv_CC_dependencies_compiler_type
=$depmode
4747 $as_echo "$as_me:$LINENO: success" >&5
4751 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4752 sed -e 's/^/| /' < conftest.err
>&5
4758 am_cv_CC_dependencies_compiler_type
=none
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4763 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4764 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
4765 then as_fn_error
"no usable dependency style found" "$LINENO" 5
4766 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4771 # Check for the 'make' the user wants to use.
4774 # Extract the first word of "$ac_prog", so it can be a program name with args.
4775 set dummy
$ac_prog; ac_word
=$2
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4777 $as_echo_n "checking for $ac_word... " >&6; }
4778 if test "${ac_cv_prog_MAKE+set}" = set; then :
4779 $as_echo_n "(cached) " >&6
4781 if test -n "$MAKE"; then
4782 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
4784 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4788 test -z "$as_dir" && as_dir
=.
4789 for ac_exec_ext
in '' $ac_executable_extensions; do
4790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4791 ac_cv_prog_MAKE
="$ac_prog"
4792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4801 MAKE
=$ac_cv_prog_MAKE
4802 if test -n "$MAKE"; then
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4804 $as_echo "$MAKE" >&6; }
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; }
4811 test -n "$MAKE" && break
4815 case "`$MAKE --version 2>&1 | sed 1q`" in
4820 if test "$MAKE_IS_GNU" = yes; then
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4829 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4831 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4832 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4833 $as_echo_n "(cached) " >&6
4835 cat >conftest.
make <<\_ACEOF
4838 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4840 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4841 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4843 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4845 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4849 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4851 $as_echo "yes" >&6; }
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4855 $as_echo "no" >&6; }
4856 SET_MAKE
="MAKE=${MAKE-make}"
4871 # If we haven't got the data from the intl directory,
4872 # assume NLS is disabled.
4881 if test -f ..
/intl
/config.intl
; then
4882 . ..
/intl
/config.intl
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4885 $as_echo_n "checking whether NLS is requested... " >&6; }
4886 if test x
"$USE_NLS" != xyes
; then
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4888 $as_echo "no" >&6; }
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4891 $as_echo "yes" >&6; }
4893 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4897 $as_echo_n "checking for catalogs to be installed... " >&6; }
4898 # Look for .po and .gmo files in the source directory.
4901 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
4902 # If there aren't any .gmo files the shell will give us the
4903 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4905 case "$cat" in *\
**)
4908 # The quadruple backslash is collapsed to a double backslash
4909 # by the backticks, then collapsed again by the double quotes,
4910 # leaving us with one backslash in the sed expression (right
4911 # before the dot that mustn't act as a wildcard).
4912 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4913 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
4914 # The user is allowed to set LINGUAS to a list of languages to
4915 # install catalogs for. If it's empty that means "all of them."
4916 if test "x$LINGUAS" = x
; then
4917 CATALOGS
="$CATALOGS $cat"
4918 XLINGUAS
="$XLINGUAS $lang"
4920 case "$LINGUAS" in *$lang*)
4921 CATALOGS
="$CATALOGS $cat"
4922 XLINGUAS
="$XLINGUAS $lang"
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4929 $as_echo "$LINGUAS" >&6; }
4942 localedir
='${datadir}/locale'
4945 if test x
"$USE_NLS" = xyes
; then
4946 CONFIG_ALL
="$CONFIG_ALL all-po"
4947 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
4948 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
4949 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
4956 LIBC_FATAL_STDERR_
=1
4957 export LIBC_FATAL_STDERR_
4963 for ac_header
in $gl_header_list
4965 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4966 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4967 eval as_val
=\$
$as_ac_Header
4968 if test "x$as_val" = x
""yes; then :
4969 cat >>confdefs.h
<<_ACEOF
4970 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4985 for ac_func
in $gl_func_list
4987 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4988 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4989 eval as_val
=\$
$as_ac_var
4990 if test "x$as_val" = x
""yes; then :
4991 cat >>confdefs.h
<<_ACEOF
4992 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5018 GNULIB_STRCASESTR
=0;
5025 GNULIB_MBSCASECMP
=0;
5026 GNULIB_MBSNCASECMP
=0;
5027 GNULIB_MBSPCASECMP
=0;
5028 GNULIB_MBSCASESTR
=0;
5036 GNULIB_STRVERSCMP
=0;
5041 HAVE_DECL_MEMRCHR
=1;
5047 HAVE_DECL_STRNDUP
=1;
5048 HAVE_DECL_STRNLEN
=1;
5052 HAVE_DECL_STRTOK_R
=1;
5053 HAVE_DECL_STRSIGNAL
=1;
5060 REPLACE_STRCASESTR
=0;
5065 REPLACE_STRSIGNAL
=0;
5067 UNDEFINE_STRTOK_R
=0;
5081 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
5082 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
5083 # irrelevant for anonymous mappings.
5084 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
5085 if test "x$ac_cv_func_mmap" = x
""yes; then :
5092 # Try to allow MAP_ANONYMOUS.
5093 gl_have_mmap_anonymous
=no
5094 if test $gl_have_mmap = yes; then
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
5096 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
5097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5098 /* end confdefs.h. */
5100 #include <sys/mman.h>
5101 #ifdef MAP_ANONYMOUS
5102 I cant identify this map.
5106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5107 $EGREP "I cant identify this map." >/dev
/null
2>&1; then :
5108 gl_have_mmap_anonymous
=yes
5112 if test $gl_have_mmap_anonymous != yes; then
5113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5114 /* end confdefs.h. */
5116 #include <sys/mman.h>
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 :
5125 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
5127 gl_have_mmap_anonymous
=yes
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
5133 $as_echo "$gl_have_mmap_anonymous" >&6; }
5134 if test $gl_have_mmap_anonymous = yes; then
5136 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
5164 if test $ac_cv_func_memchr = yes; then
5165 # Detect platform-specific bugs in some versions of glibc:
5166 # memchr should not dereference anything with length 0
5167 # http://bugzilla.redhat.com/499689
5168 # memchr should not dereference overestimated length after a match
5169 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
5170 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
5171 # Assume that memchr works on platforms that lack mprotect.
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
5173 $as_echo_n "checking whether memchr works... " >&6; }
5174 if test "${gl_cv_func_memchr_works+set}" = set; then :
5175 $as_echo_n "(cached) " >&6
5177 if test "$cross_compiling" = yes; then :
5178 gl_cv_func_memchr_works
="guessing no"
5180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5181 /* end confdefs.h. */
5186 # include <unistd.h>
5187 # include <sys/types.h>
5188 # include <sys/mman.h>
5199 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
5200 # if HAVE_MAP_ANONYMOUS
5201 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
5203 # else /* !HAVE_MAP_ANONYMOUS */
5204 const int flags = MAP_FILE | MAP_PRIVATE;
5205 int fd = open ("/dev/zero", O_RDONLY, 0666);
5209 int pagesize = getpagesize ();
5211 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
5213 if (two_pages != (char *)(-1)
5214 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
5215 fence = two_pages + pagesize;
5220 if (memchr (fence, 0, 0))
5222 strcpy (fence - 9, "12345678");
5223 if (memchr (fence - 9, 0, 79) != fence - 1)
5232 if ac_fn_c_try_run
"$LINENO"; then :
5233 gl_cv_func_memchr_works
=yes
5235 gl_cv_func_memchr_works
=no
5237 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5238 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
5243 $as_echo "$gl_cv_func_memchr_works" >&6; }
5244 if test "$gl_cv_func_memchr_works" != yes; then
5250 if test $HAVE_MEMCHR = 0 ||
test $REPLACE_MEMCHR = 1; then
5259 gl_LIBOBJS
="$gl_LIBOBJS memchr.$ac_objext"
5262 for ac_header
in bp-sym.h
5264 ac_fn_c_check_header_mongrel
"$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
5265 if test "x$ac_cv_header_bp_sym_h" = x
""yes; then :
5266 cat >>confdefs.h
<<_ACEOF
5267 #define HAVE_BP_SYM_H 1
5278 ac_fn_c_check_decl
"$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
5279 if test "x$ac_cv_have_decl_memmem" = x
""yes; then :
5285 cat >>confdefs.h
<<_ACEOF
5286 #define HAVE_DECL_MEMMEM $ac_have_decl
5302 for ac_func
in memmem
5304 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
5305 if test "x$ac_cv_func_memmem" = x
""yes; then :
5306 cat >>confdefs.h
<<_ACEOF
5307 #define HAVE_MEMMEM 1
5312 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
5325 if test $ac_cv_have_decl_memmem = no
; then
5331 gl_cv_c_multiarch
=no
5332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h. */
5334 #ifndef __APPLE_CC__
5335 not a universal capable compiler
5340 if ac_fn_c_try_compile
"$LINENO"; then :
5344 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
5345 if test -n "$prev"; then
5347 i?
86 | x86_64 | ppc | ppc64
)
5348 if test -z "$arch" ||
test "$arch" = "$word"; then
5351 gl_cv_c_multiarch
=yes
5357 if test "x$word" = "x-arch"; then
5364 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5365 if test $gl_cv_c_multiarch = yes; then
5367 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5369 APPLE_UNIVERSAL_BUILD
=1
5371 APPLE_UNIVERSAL_BUILD
=0
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
5382 $as_echo_n "checking for wchar_t... " >&6; }
5383 if test "${gt_cv_c_wchar_t+set}" = set; then :
5384 $as_echo_n "(cached) " >&6
5386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5387 /* end confdefs.h. */
5389 wchar_t foo = (wchar_t)'\0';
5398 if ac_fn_c_try_compile
"$LINENO"; then :
5403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
5406 $as_echo "$gt_cv_c_wchar_t" >&6; }
5407 if test $gt_cv_c_wchar_t = yes; then
5409 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5416 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5417 if test "${gl_cv_have_include_next+set}" = set; then :
5418 $as_echo_n "(cached) " >&6
5420 rm -rf conftestd1a conftestd1b conftestd2
5421 mkdir conftestd1a conftestd1b conftestd2
5422 cat <<EOF > conftestd1a/conftest.h
5423 #define DEFINED_IN_CONFTESTD1
5424 #include_next <conftest.h>
5425 #ifdef DEFINED_IN_CONFTESTD2
5428 #error "include_next doesn't work"
5431 cat <<EOF > conftestd1b/conftest.h
5432 #define DEFINED_IN_CONFTESTD1
5434 #include_next <conftest.h>
5435 #ifdef DEFINED_IN_CONFTESTD2
5438 #error "include_next doesn't work"
5441 cat <<EOF > conftestd2/conftest.h
5442 #ifndef DEFINED_IN_CONFTESTD1
5443 #error "include_next test doesn't work"
5445 #define DEFINED_IN_CONFTESTD2
5447 gl_save_CPPFLAGS
="$CPPFLAGS"
5448 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5450 /* end confdefs.h. */
5451 #include <conftest.h>
5453 if ac_fn_c_try_compile
"$LINENO"; then :
5454 gl_cv_have_include_next
=yes
5456 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5458 /* end confdefs.h. */
5459 #include <conftest.h>
5461 if ac_fn_c_try_compile
"$LINENO"; then :
5462 gl_cv_have_include_next
=buggy
5464 gl_cv_have_include_next
=no
5466 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5469 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5470 CPPFLAGS
="$gl_save_CPPFLAGS"
5471 rm -rf conftestd1a conftestd1b conftestd2
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5475 $as_echo "$gl_cv_have_include_next" >&6; }
5476 PRAGMA_SYSTEM_HEADER
=
5477 if test $gl_cv_have_include_next = yes; then
5478 INCLUDE_NEXT
=include_next
5479 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
5480 if test -n "$GCC"; then
5481 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
5484 if test $gl_cv_have_include_next = buggy
; then
5485 INCLUDE_NEXT
=include
5486 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
5488 INCLUDE_NEXT
=include
5489 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5503 $as_echo_n "checking for long long int... " >&6; }
5504 if test "${ac_cv_type_long_long_int+set}" = set; then :
5505 $as_echo_n "(cached) " >&6
5507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5508 /* end confdefs.h. */
5510 /* For now, do not test the preprocessor; as of 2007 there are too many
5511 implementations with broken preprocessors. Perhaps this can
5512 be revisited in 2012. In the meantime, code should not expect
5513 #if to work with literals wider than 32 bits. */
5514 /* Test literals. */
5515 long long int ll = 9223372036854775807ll;
5516 long long int nll = -9223372036854775807LL;
5517 unsigned long long int ull = 18446744073709551615ULL;
5518 /* Test constant expressions. */
5519 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5521 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5527 /* Test availability of runtime routines for shift and division. */
5528 long long int llmax = 9223372036854775807ll;
5529 unsigned long long int ullmax = 18446744073709551615ull;
5530 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5531 | (llmax / ll) | (llmax % ll)
5532 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5533 | (ullmax / ull) | (ullmax % ull));
5539 if ac_fn_c_try_link
"$LINENO"; then :
5540 if test "$cross_compiling" = yes; then :
5541 ac_cv_type_long_long_int
=yes
5543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5544 /* end confdefs.h. */
5548 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5549 # define LLONG_MAX (HALF - 1 + HALF)
5554 long long int n = 1;
5558 long long int m = n << i;
5561 if (LLONG_MAX / 2 < m)
5569 if ac_fn_c_try_run
"$LINENO"; then :
5570 ac_cv_type_long_long_int
=yes
5572 ac_cv_type_long_long_int
=no
5574 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5575 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5579 ac_cv_type_long_long_int
=no
5581 rm -f core conftest.err conftest.
$ac_objext \
5582 conftest
$ac_exeext conftest.
$ac_ext
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5585 $as_echo "$ac_cv_type_long_long_int" >&6; }
5586 if test $ac_cv_type_long_long_int = yes; then
5588 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5594 $as_echo_n "checking for unsigned long long int... " >&6; }
5595 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5596 $as_echo_n "(cached) " >&6
5598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5599 /* end confdefs.h. */
5601 /* For now, do not test the preprocessor; as of 2007 there are too many
5602 implementations with broken preprocessors. Perhaps this can
5603 be revisited in 2012. In the meantime, code should not expect
5604 #if to work with literals wider than 32 bits. */
5605 /* Test literals. */
5606 long long int ll = 9223372036854775807ll;
5607 long long int nll = -9223372036854775807LL;
5608 unsigned long long int ull = 18446744073709551615ULL;
5609 /* Test constant expressions. */
5610 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5612 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5618 /* Test availability of runtime routines for shift and division. */
5619 long long int llmax = 9223372036854775807ll;
5620 unsigned long long int ullmax = 18446744073709551615ull;
5621 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5622 | (llmax / ll) | (llmax % ll)
5623 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5624 | (ullmax / ull) | (ullmax % ull));
5630 if ac_fn_c_try_link
"$LINENO"; then :
5631 ac_cv_type_unsigned_long_long_int
=yes
5633 ac_cv_type_unsigned_long_long_int
=no
5635 rm -f core conftest.err conftest.
$ac_objext \
5636 conftest
$ac_exeext conftest.
$ac_ext
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5639 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5640 if test $ac_cv_type_unsigned_long_long_int = yes; then
5642 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
5657 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
5658 if test "${ac_cv_c_restrict+set}" = set; then :
5659 $as_echo_n "(cached) " >&6
5662 # The order here caters to the fact that C++ does not require restrict.
5663 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
5664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5665 /* end confdefs.h. */
5666 typedef int * int_ptr;
5667 int foo (int_ptr $ac_kw ip) {
5681 if ac_fn_c_try_compile
"$LINENO"; then :
5682 ac_cv_c_restrict
=$ac_kw
5684 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5685 test "$ac_cv_c_restrict" != no
&& break
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5690 $as_echo "$ac_cv_c_restrict" >&6; }
5692 case $ac_cv_c_restrict in
5694 no
) $as_echo "#define restrict /**/" >>confdefs.h
5696 *) cat >>confdefs.h
<<_ACEOF
5697 #define restrict $ac_cv_c_restrict
5722 if test $gl_cv_have_include_next = yes; then
5723 gl_cv_next_string_h
='<'string.h
'>'
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
5726 $as_echo_n "checking absolute name of <string.h>... " >&6; }
5727 if test "${gl_cv_next_string_h+set}" = set; then :
5728 $as_echo_n "(cached) " >&6
5731 if test $ac_cv_header_string_h = yes; then
5732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5733 /* end confdefs.h. */
5738 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
5739 *) gl_absname_cpp
="$ac_cpp" ;;
5741 gl_cv_next_string_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5742 sed -n '\#/string.h#{
5743 s#.*"\(.*/string.h\)".*#\1#
5749 gl_cv_next_string_h
='<'string.h
'>'
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
5754 $as_echo "$gl_cv_next_string_h" >&6; }
5756 NEXT_STRING_H
=$gl_cv_next_string_h
5758 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
5759 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5760 gl_next_as_first_directive
='<'string.h
'>'
5762 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5763 gl_next_as_first_directive
=$gl_cv_next_string_h
5765 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
5771 for gl_func
in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp
; do
5772 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
5774 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
5775 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
5776 $as_echo_n "(cached) " >&6
5778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5779 /* end confdefs.h. */
5791 if ac_fn_c_try_compile
"$LINENO"; then :
5792 eval "$as_gl_Symbol=yes"
5794 eval "$as_gl_Symbol=no"
5796 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5798 eval ac_res
=\$
$as_gl_Symbol
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5800 $as_echo "$ac_res" >&6; }
5801 eval as_val
=\$
$as_gl_Symbol
5802 if test "x$as_val" = x
""yes; then :
5803 cat >>confdefs.h
<<_ACEOF
5804 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
5807 eval ac_cv_have_decl_
$gl_func=yes
5819 GNULIB_MBSNRTOWCS
=0;
5822 GNULIB_WCSNRTOMBS
=0;
5834 HAVE_DECL_WCWIDTH
=1;
5835 REPLACE_MBSTATE_T
=0;
5841 REPLACE_MBSRTOWCS
=0;
5842 REPLACE_MBSNRTOWCS
=0;
5844 REPLACE_WCSRTOMBS
=0;
5845 REPLACE_WCSNRTOMBS
=0;
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
5850 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
5851 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
5852 $as_echo_n "(cached) " >&6
5854 gl_cv_header_wchar_h_correct_inline
=yes
5855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5856 /* end confdefs.h. */
5858 #define wcstod renamed_wcstod
5860 extern int zero (void);
5861 int main () { return zero(); }
5864 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5865 (eval $ac_compile) 2>&5
5867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5868 test $ac_status = 0; }; then
5869 mv conftest.
$ac_objext conftest1.
$ac_objext
5870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5871 /* end confdefs.h. */
5873 #define wcstod renamed_wcstod
5875 int zero (void) { return 0; }
5878 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5879 (eval $ac_compile) 2>&5
5881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5882 test $ac_status = 0; }; then
5883 mv conftest.
$ac_objext conftest2.
$ac_objext
5884 if $CC -o conftest
$ac_exeext $CFLAGS $LDFLAGS conftest1.
$ac_objext conftest2.
$ac_objext $LIBS >&5 2>&1; then
5887 gl_cv_header_wchar_h_correct_inline
=no
5891 rm -f conftest1.
$ac_objext conftest2.
$ac_objext conftest
$ac_exeext
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
5895 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
5896 if test $gl_cv_header_wchar_h_correct_inline = no
; then
5897 as_fn_error
"<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
5898 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
5899 C99 mode. You have four options:
5900 - Add the flag -fgnu89-inline to CC and reconfigure, or
5901 - Fix your include files, using parts of
5902 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
5903 - Use a gcc version older than 4.3, or
5904 - Don't use the flags -std=c99 or -std=gnu99.
5905 Configuration aborted." "$LINENO" 5
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
5910 $as_echo_n "checking for wint_t... " >&6; }
5911 if test "${gt_cv_c_wint_t+set}" = set; then :
5912 $as_echo_n "(cached) " >&6
5914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5915 /* end confdefs.h. */
5917 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5919 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
5920 before <wchar.h>. */
5925 wint_t foo = (wchar_t)'\0';
5934 if ac_fn_c_try_compile
"$LINENO"; then :
5939 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
5942 $as_echo "$gt_cv_c_wint_t" >&6; }
5943 if test $gt_cv_c_wint_t = yes; then
5945 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
5951 GL_COND_LIBTOOL_TRUE
=
5952 GL_COND_LIBTOOL_FALSE
='#'
5954 GL_COND_LIBTOOL_TRUE
='#'
5955 GL_COND_LIBTOOL_FALSE
=
5958 gl_cond_libtool
=false
5961 gl_m4_base
='gnulib/m4'
5971 gl_source_base
='gnulib'
5972 # Code from module arg-nonnull:
5973 # Code from module c++defs:
5974 # Code from module extensions:
5975 # Code from module include_next:
5976 # Code from module memchr:
5985 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
5989 # Code from module memmem:
5992 if test $ac_cv_have_decl_memmem = yes; then
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
5994 $as_echo_n "checking whether memmem works in linear time... " >&6; }
5995 if test "${gl_cv_func_memmem_works+set}" = set; then :
5996 $as_echo_n "(cached) " >&6
5998 if test "$cross_compiling" = yes; then :
5999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6000 /* end confdefs.h. */
6002 #include <features.h>
6003 #ifdef __GNU_LIBRARY__
6004 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)
6009 #include <cygwin/version.h>
6010 #if CYGWIN_VERSION_DLL_MAJOR >= 1007
6016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6017 $EGREP "Lucky user" >/dev
/null
2>&1; then :
6018 gl_cv_func_memmem_works
=yes
6020 gl_cv_func_memmem_works
="guessing no"
6026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6027 /* end confdefs.h. */
6029 #include <signal.h> /* for signal */
6030 #include <string.h> /* for memmem */
6031 #include <stdlib.h> /* for malloc */
6032 #include <unistd.h> /* for alarm */
6038 char *haystack = (char *) malloc (2 * m + 1);
6039 char *needle = (char *) malloc (m + 1);
6041 /* Failure to compile this test due to missing alarm is okay,
6042 since all such platforms (mingw) also lack memmem. */
6043 signal (SIGALRM, SIG_DFL);
6045 /* Check for quadratic performance. */
6046 if (haystack && needle)
6048 memset (haystack, 'A', 2 * m);
6049 haystack[2 * m] = 'B';
6050 memset (needle, 'A', m);
6052 result = memmem (haystack, 2 * m + 1, needle, m + 1);
6054 /* Check for empty needle behavior. */
6055 return !result || !memmem ("a", 1, 0, 0);
6060 if ac_fn_c_try_run
"$LINENO"; then :
6061 gl_cv_func_memmem_works
=yes
6063 gl_cv_func_memmem_works
=no
6065 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6066 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works" >&5
6072 $as_echo "$gl_cv_func_memmem_works" >&6; }
6073 if test "$gl_cv_func_memmem_works" != yes; then
6083 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
6088 # Code from module memmem-simple:
6101 for ac_func
in memmem
6103 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
6104 if test "x$ac_cv_func_memmem" = x
""yes; then :
6105 cat >>confdefs.h
<<_ACEOF
6106 #define HAVE_MEMMEM 1
6111 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
6124 if test $ac_cv_have_decl_memmem = no
; then
6136 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
6140 # Code from module multiarch:
6142 # Code from module stddef:
6146 if test $gt_cv_c_wchar_t = no
; then
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
6151 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
6152 if test "${gl_cv_decl_null_works+set}" = set; then :
6153 $as_echo_n "(cached) " >&6
6155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6156 /* end confdefs.h. */
6158 int test[2 * (sizeof NULL == sizeof (void *)) -1];
6168 if ac_fn_c_try_compile
"$LINENO"; then :
6169 gl_cv_decl_null_works
=yes
6171 gl_cv_decl_null_works
=no
6173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
6176 $as_echo "$gl_cv_decl_null_works" >&6; }
6177 if test $gl_cv_decl_null_works = no
; then
6181 if test -n "$STDDEF_H"; then
6194 if test $gl_cv_have_include_next = yes; then
6195 gl_cv_next_stddef_h
='<'stddef.h
'>'
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
6198 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
6199 if test "${gl_cv_next_stddef_h+set}" = set; then :
6200 $as_echo_n "(cached) " >&6
6203 if test $ac_cv_header_stddef_h = yes; then
6204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6205 /* end confdefs.h. */
6210 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
6211 *) gl_absname_cpp
="$ac_cpp" ;;
6213 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6214 sed -n '\#/stddef.h#{
6215 s#.*"\(.*/stddef.h\)".*#\1#
6221 gl_cv_next_stddef_h
='<'stddef.h
'>'
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
6226 $as_echo "$gl_cv_next_stddef_h" >&6; }
6228 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
6230 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
6231 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6232 gl_next_as_first_directive
='<'stddef.h
'>'
6234 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6235 gl_next_as_first_directive
=$gl_cv_next_stddef_h
6237 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
6243 # Code from module stdint:
6247 if test $ac_cv_type_long_long_int = yes; then
6248 HAVE_LONG_LONG_INT
=1
6250 HAVE_LONG_LONG_INT
=0
6254 if test $ac_cv_type_unsigned_long_long_int = yes; then
6255 HAVE_UNSIGNED_LONG_LONG_INT
=1
6257 HAVE_UNSIGNED_LONG_LONG_INT
=0
6261 if test $ac_cv_header_inttypes_h = yes; then
6268 if test $ac_cv_header_sys_types_h = yes; then
6287 if test $gl_cv_have_include_next = yes; then
6288 gl_cv_next_stdint_h
='<'stdint.h
'>'
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6291 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6292 if test "${gl_cv_next_stdint_h+set}" = set; then :
6293 $as_echo_n "(cached) " >&6
6296 if test $ac_cv_header_stdint_h = yes; then
6297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6298 /* end confdefs.h. */
6303 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
6304 *) gl_absname_cpp
="$ac_cpp" ;;
6306 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6307 sed -n '\#/stdint.h#{
6308 s#.*"\(.*/stdint.h\)".*#\1#
6314 gl_cv_next_stdint_h
='<'stdint.h
'>'
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6319 $as_echo "$gl_cv_next_stdint_h" >&6; }
6321 NEXT_STDINT_H
=$gl_cv_next_stdint_h
6323 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
6324 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6325 gl_next_as_first_directive
='<'stdint.h
'>'
6327 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6328 gl_next_as_first_directive
=$gl_cv_next_stdint_h
6330 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
6334 if test $ac_cv_header_stdint_h = yes; then
6341 if test $ac_cv_header_stdint_h = yes; then
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
6343 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
6344 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
6345 $as_echo_n "(cached) " >&6
6347 gl_cv_header_working_stdint_h
=no
6348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6349 /* end confdefs.h. */
6352 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6353 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6354 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6356 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
6357 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
6358 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
6362 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6363 included before <wchar.h>. */
6374 int8_t a1 = INT8_MAX;
6375 int8_t a1min = INT8_MIN;
6378 int16_t a2 = INT16_MAX;
6379 int16_t a2min = INT16_MIN;
6382 int32_t a3 = INT32_MAX;
6383 int32_t a3min = INT32_MIN;
6386 int64_t a4 = INT64_MAX;
6387 int64_t a4min = INT64_MIN;
6390 uint8_t b1 = UINT8_MAX;
6392 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
6395 uint16_t b2 = UINT16_MAX;
6398 uint32_t b3 = UINT32_MAX;
6401 uint64_t b4 = UINT64_MAX;
6403 int_least8_t c1 = INT8_C (0x7f);
6404 int_least8_t c1max = INT_LEAST8_MAX;
6405 int_least8_t c1min = INT_LEAST8_MIN;
6406 int_least16_t c2 = INT16_C (0x7fff);
6407 int_least16_t c2max = INT_LEAST16_MAX;
6408 int_least16_t c2min = INT_LEAST16_MIN;
6409 int_least32_t c3 = INT32_C (0x7fffffff);
6410 int_least32_t c3max = INT_LEAST32_MAX;
6411 int_least32_t c3min = INT_LEAST32_MIN;
6412 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
6413 int_least64_t c4max = INT_LEAST64_MAX;
6414 int_least64_t c4min = INT_LEAST64_MIN;
6415 uint_least8_t d1 = UINT8_C (0xff);
6416 uint_least8_t d1max = UINT_LEAST8_MAX;
6417 uint_least16_t d2 = UINT16_C (0xffff);
6418 uint_least16_t d2max = UINT_LEAST16_MAX;
6419 uint_least32_t d3 = UINT32_C (0xffffffff);
6420 uint_least32_t d3max = UINT_LEAST32_MAX;
6421 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
6422 uint_least64_t d4max = UINT_LEAST64_MAX;
6423 int_fast8_t e1 = INT_FAST8_MAX;
6424 int_fast8_t e1min = INT_FAST8_MIN;
6425 int_fast16_t e2 = INT_FAST16_MAX;
6426 int_fast16_t e2min = INT_FAST16_MIN;
6427 int_fast32_t e3 = INT_FAST32_MAX;
6428 int_fast32_t e3min = INT_FAST32_MIN;
6429 int_fast64_t e4 = INT_FAST64_MAX;
6430 int_fast64_t e4min = INT_FAST64_MIN;
6431 uint_fast8_t f1 = UINT_FAST8_MAX;
6432 uint_fast16_t f2 = UINT_FAST16_MAX;
6433 uint_fast32_t f3 = UINT_FAST32_MAX;
6434 uint_fast64_t f4 = UINT_FAST64_MAX;
6436 intptr_t g = INTPTR_MAX;
6437 intptr_t gmin = INTPTR_MIN;
6440 uintptr_t h = UINTPTR_MAX;
6442 intmax_t i = INTMAX_MAX;
6443 uintmax_t j = UINTMAX_MAX;
6445 #include <limits.h> /* for CHAR_BIT */
6446 #define TYPE_MINIMUM(t) \
6447 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
6448 #define TYPE_MAXIMUM(t) \
6449 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
6452 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
6453 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
6455 /* Detect bug in FreeBSD 6.0 / ia64. */
6456 int check_SIG_ATOMIC:
6457 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
6458 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
6460 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
6462 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
6463 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
6465 /* Detect bug in mingw. */
6467 WINT_MIN == TYPE_MINIMUM (wint_t)
6468 && WINT_MAX == TYPE_MAXIMUM (wint_t)
6471 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
6473 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
6475 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
6477 /* Detect bugs in OpenBSD 3.9 stdint.h. */
6479 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
6482 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
6485 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
6488 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
6490 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
6491 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
6492 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
6493 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
6494 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
6495 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
6496 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
6497 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
6498 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
6499 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
6500 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
6511 if ac_fn_c_try_compile
"$LINENO"; then :
6512 if test "$cross_compiling" = yes; then :
6513 gl_cv_header_working_stdint_h
=yes
6516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6517 /* end confdefs.h. */
6520 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6521 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6522 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6526 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6527 included before <wchar.h>. */
6539 #define MVAL(macro) MVAL1(macro)
6540 #define MVAL1(expression) #expression
6541 static const char *macro_values[] =
6575 for (mv = macro_values; *mv != NULL; mv++)
6577 const char *value = *mv;
6578 /* Test whether it looks like a cast expression. */
6579 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
6580 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
6581 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
6582 || strncmp (value, "((int)"/*)*/, 6) == 0
6583 || strncmp (value, "((signed short)"/*)*/, 15) == 0
6584 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
6593 if ac_fn_c_try_run
"$LINENO"; then :
6594 gl_cv_header_working_stdint_h
=yes
6596 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6597 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
6606 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
6608 if test "$gl_cv_header_working_stdint_h" = yes; then
6611 for ac_header
in sys
/inttypes.h sys
/bitypes.h
6613 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6614 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6615 eval as_val
=\$
$as_ac_Header
6616 if test "x$as_val" = x
""yes; then :
6617 cat >>confdefs.h
<<_ACEOF
6618 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6625 if test $ac_cv_header_sys_inttypes_h = yes; then
6626 HAVE_SYS_INTTYPES_H
=1
6628 HAVE_SYS_INTTYPES_H
=0
6631 if test $ac_cv_header_sys_bitypes_h = yes; then
6632 HAVE_SYS_BITYPES_H
=1
6634 HAVE_SYS_BITYPES_H
=0
6648 if test $APPLE_UNIVERSAL_BUILD = 0; then
6651 for gltype
in ptrdiff_t size_t
; do
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6653 $as_echo_n "checking for bit size of $gltype... " >&6; }
6654 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6655 $as_echo_n "(cached) " >&6
6657 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6658 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6659 included before <wchar.h>. */
6668 #include <limits.h>"; then :
6674 eval gl_cv_bitsizeof_
${gltype}=\
$result
6677 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6679 $as_echo "$ac_res" >&6; }
6680 eval result
=\
$gl_cv_bitsizeof_${gltype}
6681 if test $result = unknown
; then
6684 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6685 cat >>confdefs.h
<<_ACEOF
6686 #define BITSIZEOF_${GLTYPE} $result
6689 eval BITSIZEOF_
${GLTYPE}=\
$result
6696 for gltype
in sig_atomic_t wchar_t wint_t
; do
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6698 $as_echo_n "checking for bit size of $gltype... " >&6; }
6699 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6700 $as_echo_n "(cached) " >&6
6702 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6703 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6704 included before <wchar.h>. */
6713 #include <limits.h>"; then :
6719 eval gl_cv_bitsizeof_
${gltype}=\
$result
6722 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6724 $as_echo "$ac_res" >&6; }
6725 eval result
=\
$gl_cv_bitsizeof_${gltype}
6726 if test $result = unknown
; then
6729 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6730 cat >>confdefs.h
<<_ACEOF
6731 #define BITSIZEOF_${GLTYPE} $result
6734 eval BITSIZEOF_
${GLTYPE}=\
$result
6740 for gltype
in sig_atomic_t wchar_t wint_t
; do
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
6742 $as_echo_n "checking whether $gltype is signed... " >&6; }
6743 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
6744 $as_echo_n "(cached) " >&6
6746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6747 /* end confdefs.h. */
6749 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6750 included before <wchar.h>. */
6759 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6768 if ac_fn_c_try_compile
"$LINENO"; then :
6773 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6774 eval gl_cv_type_
${gltype}_signed
=\
$result
6777 eval ac_res
=\
$gl_cv_type_${gltype}_signed
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6779 $as_echo "$ac_res" >&6; }
6780 eval result
=\
$gl_cv_type_${gltype}_signed
6781 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6782 if test "$result" = yes; then
6783 cat >>confdefs.h
<<_ACEOF
6784 #define HAVE_SIGNED_${GLTYPE} 1
6787 eval HAVE_SIGNED_
${GLTYPE}=1
6789 eval HAVE_SIGNED_
${GLTYPE}=0
6794 gl_cv_type_ptrdiff_t_signed
=yes
6795 gl_cv_type_size_t_signed
=no
6796 if test $APPLE_UNIVERSAL_BUILD = 0; then
6799 for gltype
in ptrdiff_t size_t
; do
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6801 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6802 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6803 $as_echo_n "(cached) " >&6
6805 eval gl_cv_type_
${gltype}_suffix
=no
6806 eval result
=\
$gl_cv_type_${gltype}_signed
6807 if test "$result" = yes; then
6812 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
6815 l
) gltype1
='long int';;
6816 ll
) gltype1
='long long int';;
6817 i64
) gltype1
='__int64';;
6818 u
) gltype1
='unsigned int';;
6819 ul
) gltype1
='unsigned long int';;
6820 ull
) gltype1
='unsigned long long int';;
6821 ui64
)gltype1
='unsigned __int64';;
6823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6824 /* end confdefs.h. */
6826 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6827 included before <wchar.h>. */
6837 extern $gltype1 foo;
6846 if ac_fn_c_try_compile
"$LINENO"; then :
6847 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
6849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6850 eval result
=\
$gl_cv_type_${gltype}_suffix
6851 test "$result" != no
&& break
6854 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6856 $as_echo "$ac_res" >&6; }
6857 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6858 eval result
=\
$gl_cv_type_${gltype}_suffix
6859 test "$result" = no
&& result
=
6860 eval ${GLTYPE}_SUFFIX
=\
$result
6861 cat >>confdefs.h
<<_ACEOF
6862 #define ${GLTYPE}_SUFFIX $result
6871 for gltype
in sig_atomic_t wchar_t wint_t
; do
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6873 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6874 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6875 $as_echo_n "(cached) " >&6
6877 eval gl_cv_type_
${gltype}_suffix
=no
6878 eval result
=\
$gl_cv_type_${gltype}_signed
6879 if test "$result" = yes; then
6884 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
6887 l
) gltype1
='long int';;
6888 ll
) gltype1
='long long int';;
6889 i64
) gltype1
='__int64';;
6890 u
) gltype1
='unsigned int';;
6891 ul
) gltype1
='unsigned long int';;
6892 ull
) gltype1
='unsigned long long int';;
6893 ui64
)gltype1
='unsigned __int64';;
6895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6896 /* end confdefs.h. */
6898 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6899 included before <wchar.h>. */
6909 extern $gltype1 foo;
6918 if ac_fn_c_try_compile
"$LINENO"; then :
6919 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
6921 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6922 eval result
=\
$gl_cv_type_${gltype}_suffix
6923 test "$result" != no
&& break
6926 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6928 $as_echo "$ac_res" >&6; }
6929 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6930 eval result
=\
$gl_cv_type_${gltype}_suffix
6931 test "$result" = no
&& result
=
6932 eval ${GLTYPE}_SUFFIX
=\
$result
6933 cat >>confdefs.h
<<_ACEOF
6934 #define ${GLTYPE}_SUFFIX $result
6945 # Code from module string:
6949 # Code from module warn-on-use:
6950 # Code from module wchar:
6973 if test $gl_cv_have_include_next = yes; then
6974 gl_cv_next_wchar_h
='<'wchar.h
'>'
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
6977 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
6978 if test "${gl_cv_next_wchar_h+set}" = set; then :
6979 $as_echo_n "(cached) " >&6
6982 if test $ac_cv_header_wchar_h = yes; then
6983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6984 /* end confdefs.h. */
6989 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
6990 *) gl_absname_cpp
="$ac_cpp" ;;
6992 gl_cv_next_wchar_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6993 sed -n '\#/wchar.h#{
6994 s#.*"\(.*/wchar.h\)".*#\1#
7000 gl_cv_next_wchar_h
='<'wchar.h
'>'
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
7005 $as_echo "$gl_cv_next_wchar_h" >&6; }
7007 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
7009 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
7010 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7011 gl_next_as_first_directive
='<'wchar.h
'>'
7013 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7014 gl_next_as_first_directive
=$gl_cv_next_wchar_h
7016 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
=$gl_next_as_first_directive
7020 if test $ac_cv_header_wchar_h = yes; then
7028 if test $gt_cv_c_wint_t = yes; then
7036 for gl_func
in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth
; do
7037 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7039 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7040 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7041 $as_echo_n "(cached) " >&6
7043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7044 /* end confdefs.h. */
7046 /* Some systems require additional headers. */
7048 # include <stddef.h>
7063 if ac_fn_c_try_compile
"$LINENO"; then :
7064 eval "$as_gl_Symbol=yes"
7066 eval "$as_gl_Symbol=no"
7068 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7070 eval ac_res
=\$
$as_gl_Symbol
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7072 $as_echo "$ac_res" >&6; }
7073 eval as_val
=\$
$as_gl_Symbol
7074 if test "x$as_val" = x
""yes; then :
7075 cat >>confdefs.h
<<_ACEOF
7076 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7079 eval ac_cv_have_decl_
$gl_func=yes
7084 # Code from module dummy:
7085 # End of code from modules
7106 gl_source_base
='tests'
7107 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
7109 gl_module_indicator_condition
=$gltests_WITNESS
7119 LIBGNU_LIBDEPS
="$gl_libdeps"
7121 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
7125 # For Makefile dependencies.
7127 if test x
"$STDINT_H" != x
; then
7128 GNULIB_STDINT_H
=gnulib
/$STDINT_H
7134 cat >>confdefs.h
<<_ACEOF
7135 #define PACKAGE "$PACKAGE"
7140 # GDB does not use automake, but gnulib does. This line lets us
7141 # generate its Makefile.in.
7142 am__api_version
='1.11'
7144 # Find a good install program. We prefer a C program (faster),
7145 # so one script is as good as another. But avoid the broken or
7146 # incompatible versions:
7147 # SysV /etc/install, /usr/sbin/install
7148 # SunOS /usr/etc/install
7149 # IRIX /sbin/install
7151 # AmigaOS /C/install, which installs bootblocks on floppy discs
7152 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7153 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7154 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7155 # OS/2's system install, which has a completely different semantic
7156 # ./install, which can be erroneously created by make from ./install.sh.
7157 # Reject install programs that cannot install multiple files.
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7159 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7160 if test -z "$INSTALL"; then
7161 if test "${ac_cv_path_install+set}" = set; then :
7162 $as_echo_n "(cached) " >&6
7164 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7168 test -z "$as_dir" && as_dir
=.
7169 # Account for people who put trailing slashes in PATH elements.
7170 case $as_dir/ in #((
7171 .
/ | .
// |
/[cC
]/* | \
7172 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7173 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
7176 # OSF1 and SCO ODT 3.0 have their own names for install.
7177 # Don't use installbsd from OSF since it installs stuff as root
7179 for ac_prog
in ginstall scoinst
install; do
7180 for ac_exec_ext
in '' $ac_executable_extensions; do
7181 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7182 if test $ac_prog = install &&
7183 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7184 # AIX install. It has an incompatible calling convention.
7186 elif test $ac_prog = install &&
7187 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7188 # program-specific install script used by HP pwplus--don't use.
7191 rm -rf conftest.one conftest.two conftest.dir
7192 echo one
> conftest.one
7193 echo two
> conftest.two
7195 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
7196 test -s conftest.one
&& test -s conftest.two
&&
7197 test -s conftest.dir
/conftest.one
&&
7198 test -s conftest.dir
/conftest.two
7200 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7213 rm -rf conftest.one conftest.two conftest.dir
7216 if test "${ac_cv_path_install+set}" = set; then
7217 INSTALL
=$ac_cv_path_install
7219 # As a last resort, use the slow shell script. Don't cache a
7220 # value for INSTALL within a source directory, because that will
7221 # break other packages using the cache if that directory is
7222 # removed, or if the value is a relative name.
7223 INSTALL
=$ac_install_sh
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7227 $as_echo "$INSTALL" >&6; }
7229 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7230 # It thinks the first close brace ends the variable substitution.
7231 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7233 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7235 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
7238 $as_echo_n "checking whether build environment is sane... " >&6; }
7241 echo timestamp
> conftest.
file
7242 # Reject unsafe characters in $srcdir or the absolute working directory
7243 # name. Accept space and tab only in the latter.
7247 *[\\\"\
#\$\&\'\`$am_lf]*)
7248 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
7251 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
7252 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
7255 # Do `set' in a subshell so we don't clobber the current shell's
7256 # arguments. Must try -L first in case configure is actually a
7257 # symlink; some systems play weird games with the mod time of symlinks
7258 # (eg FreeBSD returns the mod time of the symlink's containing
7261 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
7262 if test "$*" = "X"; then
7264 set X
`ls -t "$srcdir/configure" conftest.file`
7267 if test "$*" != "X $srcdir/configure conftest.file" \
7268 && test "$*" != "X conftest.file $srcdir/configure"; then
7270 # If neither matched, then we have a broken ls. This can happen
7271 # if, for instance, CONFIG_SHELL is bash and it inherits a
7272 # broken ls alias from the environment. This has actually
7273 # happened. Such a system could not be considered "sane".
7274 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
7275 alias in your environment" "$LINENO" 5
7278 test "$2" = conftest.
file
7284 as_fn_error
"newly created file is older than distributed files!
7285 Check your system clock" "$LINENO" 5
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7288 $as_echo "yes" >&6; }
7289 test "$program_prefix" != NONE
&&
7290 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
7291 # Use a double $ so make ignores it.
7292 test "$program_suffix" != NONE
&&
7293 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
7294 # Double any \ or $.
7295 # By default was `s,x,x', remove it if useless.
7296 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
7297 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
7299 # expand $ac_aux_dir to an absolute path
7300 am_aux_dir
=`cd $ac_aux_dir && pwd`
7302 if test x
"${MISSING+set}" != xset
; then
7305 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
7307 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
7310 # Use eval to expand $SHELL
7311 if eval "$MISSING --run true"; then
7312 am_missing_run
="$MISSING --run "
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
7316 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
7319 if test x
"${install_sh}" != xset
; then
7322 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
7324 install_sh
="\${SHELL} $am_aux_dir/install-sh"
7328 # Installed binaries are usually stripped using `strip' when the user
7329 # run `make install-strip'. However `strip' might not be the right
7330 # tool to use in cross-compilation environments, therefore Automake
7331 # will honor the `STRIP' environment variable to overrule this program.
7332 if test "$cross_compiling" != no
; then
7333 if test -n "$ac_tool_prefix"; then
7334 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7335 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if test "${ac_cv_prog_STRIP+set}" = set; then :
7339 $as_echo_n "(cached) " >&6
7341 if test -n "$STRIP"; then
7342 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
7344 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7348 test -z "$as_dir" && as_dir
=.
7349 for ac_exec_ext
in '' $ac_executable_extensions; do
7350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7351 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
7352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7361 STRIP
=$ac_cv_prog_STRIP
7362 if test -n "$STRIP"; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7364 $as_echo "$STRIP" >&6; }
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7372 if test -z "$ac_cv_prog_STRIP"; then
7374 # Extract the first word of "strip", so it can be a program name with args.
7375 set dummy strip
; ac_word
=$2
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7377 $as_echo_n "checking for $ac_word... " >&6; }
7378 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7379 $as_echo_n "(cached) " >&6
7381 if test -n "$ac_ct_STRIP"; then
7382 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
7384 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7388 test -z "$as_dir" && as_dir
=.
7389 for ac_exec_ext
in '' $ac_executable_extensions; do
7390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7391 ac_cv_prog_ac_ct_STRIP
="strip"
7392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7401 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
7402 if test -n "$ac_ct_STRIP"; then
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7404 $as_echo "$ac_ct_STRIP" >&6; }
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7407 $as_echo "no" >&6; }
7410 if test "x$ac_ct_STRIP" = x
; then
7413 case $cross_compiling:$ac_tool_warned in
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7417 ac_tool_warned
=yes ;;
7422 STRIP
="$ac_cv_prog_STRIP"
7426 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7429 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7430 if test -z "$MKDIR_P"; then
7431 if test "${ac_cv_path_mkdir+set}" = set; then :
7432 $as_echo_n "(cached) " >&6
7434 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7435 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
7438 test -z "$as_dir" && as_dir
=.
7439 for ac_prog
in mkdir gmkdir
; do
7440 for ac_exec_ext
in '' $ac_executable_extensions; do
7441 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
7442 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7443 'mkdir (GNU coreutils) '* | \
7444 'mkdir (coreutils) '* | \
7445 'mkdir (fileutils) '4.1*)
7446 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
7456 if test "${ac_cv_path_mkdir+set}" = set; then
7457 MKDIR_P
="$ac_cv_path_mkdir -p"
7459 # As a last resort, use the slow shell script. Don't cache a
7460 # value for MKDIR_P within a source directory, because that will
7461 # break other packages using the cache if that directory is
7462 # removed, or if the value is a relative name.
7463 test -d .
/--version && rmdir .
/--version
7464 MKDIR_P
="$ac_install_sh -d"
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7468 $as_echo "$MKDIR_P" >&6; }
7473 [\\/$
]* | ?
:[\\/]*) ;;
7474 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
7477 for ac_prog
in gawk mawk nawk
awk
7479 # Extract the first word of "$ac_prog", so it can be a program name with args.
7480 set dummy
$ac_prog; ac_word
=$2
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7482 $as_echo_n "checking for $ac_word... " >&6; }
7483 if test "${ac_cv_prog_AWK+set}" = set; then :
7484 $as_echo_n "(cached) " >&6
7486 if test -n "$AWK"; then
7487 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7489 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7493 test -z "$as_dir" && as_dir
=.
7494 for ac_exec_ext
in '' $ac_executable_extensions; do
7495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7496 ac_cv_prog_AWK
="$ac_prog"
7497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7507 if test -n "$AWK"; then
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7509 $as_echo "$AWK" >&6; }
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7512 $as_echo "no" >&6; }
7516 test -n "$AWK" && break
7519 ac_config_commands
="$ac_config_commands depfiles"
7522 am_make
=${MAKE-make}
7523 cat > confinc
<< 'END'
7525 @
echo this is the am__doit target
7528 # If we don't find an include directive, just comment out the code.
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
7530 $as_echo_n "checking for style of include used by $am_make... " >&6; }
7534 # First try GNU make style include.
7535 echo "include confinc" > confmf
7536 # Ignore all kinds of additional output from `make'.
7537 case `$am_make -s -f confmf 2> /dev/null` in #(
7538 *the\ am__doit\ target
*)
7544 # Now try BSD make style include.
7545 if test "$am__include" = "#"; then
7546 echo '.include "confinc"' > confmf
7547 case `$am_make -s -f confmf 2> /dev/null` in #(
7548 *the\ am__doit\ target
*)
7549 am__include
=.include
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
7558 $as_echo "$_am_result" >&6; }
7559 rm -f confinc confmf
7561 # Check whether --enable-dependency-tracking was given.
7562 if test "${enable_dependency_tracking+set}" = set; then :
7563 enableval
=$enable_dependency_tracking;
7566 if test "x$enable_dependency_tracking" != xno
; then
7567 am_depcomp
="$ac_aux_dir/depcomp"
7570 if test "x$enable_dependency_tracking" != xno; then
7579 if test "`cd $srcdir && pwd`" != "`pwd`"; then
7580 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7581 # is not polluted with repeated "-I."
7582 am__isrc
=' -I$(srcdir)'
7583 # test to see if srcdir already configured
7584 if test -f $srcdir/config.status
; then
7585 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
7589 # test whether we have cygpath
7590 if test -z "$CYGPATH_W"; then
7591 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
7592 CYGPATH_W
='cygpath -w'
7599 # Define the identity of the package.
7601 VERSION
=UNUSED-VERSION
7604 # Some tools Automake needs.
7606 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
7609 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
7612 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
7615 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
7618 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
7620 # We need awk for the "check" target. The system "awk" is bad on
7622 # Always define AMTAR for backward compatibility.
7624 AMTAR
=${AMTAR-"${am_missing_run}tar"}
7626 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
7631 depcc
="$CC" am_compiler_list
=
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7634 $as_echo_n "checking dependency style of $depcc... " >&6; }
7635 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
7636 $as_echo_n "(cached) " >&6
7638 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7639 # We make a subdir and do the tests there. Otherwise we can end up
7640 # making bogus files that we don't know about and never remove. For
7641 # instance it was reported that on HP-UX the gcc test will end up
7642 # making a dummy file named `D' -- because `-MD' means `put the output
7645 # Copy depcomp to subdir because otherwise we won't find it if we're
7646 # using a relative directory.
7647 cp "$am_depcomp" conftest.dir
7649 # We will build objects and dependencies in a subdirectory because
7650 # it helps to detect inapplicable dependency modes. For instance
7651 # both Tru64's cc and ICC support -MD to output dependencies as a
7652 # side effect of compilation, but ICC will put the dependencies in
7653 # the current directory while Tru64 will put them in the object
7657 am_cv_CC_dependencies_compiler_type
=none
7658 if test "$am_compiler_list" = ""; then
7659 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7662 case " $depcc " in #(
7663 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
7666 for depmode
in $am_compiler_list; do
7667 # Setup a source with many dependencies, because some compilers
7668 # like to wrap large dependency lists on column 80 (with \), and
7669 # we should not choose a depcomp mode which is confused by this.
7671 # We need to recreate these files for each test, as the compiler may
7672 # overwrite some of them when testing with obscure command lines.
7673 # This happens at least with the AIX C compiler.
7675 for i
in 1 2 3 4 5 6; do
7676 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
7677 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7678 # Solaris 8's {/usr,}/bin/sh.
7679 touch sub
/conftst
$i.h
7681 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7683 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7684 # mode. It turns out that the SunPro C++ compiler does not properly
7685 # handle `-M -o', and we need to detect this. Also, some Intel
7686 # versions had trouble with output in subdirs
7687 am__obj
=sub
/conftest.
${OBJEXT-o}
7688 am__minus_obj
="-o $am__obj"
7691 # This depmode causes a compiler race in universal mode.
7692 test "$am__universal" = false ||
continue
7695 # after this tag, mechanisms are not by side-effect, so they'll
7696 # only be used when explicitly requested
7697 if test "x$enable_dependency_tracking" = xyes
; then
7703 msvisualcpp | msvcmsys
)
7704 # This compiler won't grok `-c -o', but also, the minuso test has
7705 # not run yet. These depmodes are late enough in the game, and
7706 # so weak that their functioning should not be impacted.
7707 am__obj
=conftest.
${OBJEXT-o}
7712 if depmode
=$depmode \
7713 source=sub
/conftest.c object
=$am__obj \
7714 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
7715 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
7716 >/dev
/null
2>conftest.err
&&
7717 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
7718 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
7719 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
7720 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
7721 # icc doesn't choke on unknown options, it will just issue warnings
7722 # or remarks (even with -Werror). So we grep stderr for any message
7723 # that says an option was ignored or not supported.
7724 # When given -MP, icc 7.0 and 7.1 complain thusly:
7725 # icc: Command line warning: ignoring option '-M'; no argument required
7726 # The diagnosis changed in icc 8.0:
7727 # icc: Command line remark: option '-MP' not supported
7728 if (grep 'ignoring option' conftest.err ||
7729 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
7730 am_cv_CC_dependencies_compiler_type
=$depmode
7739 am_cv_CC_dependencies_compiler_type
=none
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7744 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7745 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
7748 test "x$enable_dependency_tracking" != xno \
7749 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
7751 am__fastdepCC_FALSE
='#'
7753 am__fastdepCC_TRUE
='#'
7754 am__fastdepCC_FALSE
=
7762 # Check whether --with-separate-debug-dir was given.
7763 if test "${with_separate_debug_dir+set}" = set; then :
7764 withval
=$with_separate_debug_dir;
7767 DEBUGDIR
=${libdir}/debug
7771 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7772 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7773 ac_define_dir
=`eval echo $DEBUGDIR`
7774 ac_define_dir
=`eval echo $ac_define_dir`
7776 cat >>confdefs.h
<<_ACEOF
7777 #define DEBUGDIR "$ac_define_dir"
7783 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
7784 if test "x$prefix" = xNONE
; then
7785 test_prefix
=/usr
/local
7790 test_prefix
=$exec_prefix
7793 case ${ac_define_dir} in
7794 "${test_prefix}"|
"${test_prefix}/"*|\
7795 '${exec_prefix}'|
'${exec_prefix}/'*)
7800 cat >>confdefs.h
<<_ACEOF
7801 #define DEBUGDIR_RELOCATABLE $value
7807 # GDB's datadir relocation
7811 # Check whether --with-gdb-datadir was given.
7812 if test "${with_gdb_datadir+set}" = set; then :
7813 withval
=$with_gdb_datadir;
7814 GDB_DATADIR
=$withval
7816 GDB_DATADIR
=${datadir}/gdb
7820 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7821 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7822 ac_define_dir
=`eval echo $GDB_DATADIR`
7823 ac_define_dir
=`eval echo $ac_define_dir`
7825 cat >>confdefs.h
<<_ACEOF
7826 #define GDB_DATADIR "$ac_define_dir"
7832 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
7833 if test "x$prefix" = xNONE
; then
7834 test_prefix
=/usr
/local
7839 test_prefix
=$exec_prefix
7842 case ${ac_define_dir} in
7843 "${test_prefix}"|
"${test_prefix}/"*|\
7844 '${exec_prefix}'|
'${exec_prefix}/'*)
7849 cat >>confdefs.h
<<_ACEOF
7850 #define GDB_DATADIR_RELOCATABLE $value
7857 # Check whether --with-relocated-sources was given.
7858 if test "${with_relocated_sources+set}" = set; then :
7859 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
7861 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7862 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7863 ac_define_dir
=`eval echo $reloc_srcdir`
7864 ac_define_dir
=`eval echo $ac_define_dir`
7866 cat >>confdefs.h
<<_ACEOF
7867 #define RELOC_SRCDIR "$ac_define_dir"
7877 subdirs
="$subdirs doc testsuite"
7880 # Check whether to support alternative target configurations
7881 # Check whether --enable-targets was given.
7882 if test "${enable_targets+set}" = set; then :
7883 enableval
=$enable_targets; case "${enableval}" in
7884 yes |
"") as_fn_error
"enable-targets option must specify target names or 'all'" "$LINENO" 5
7886 no
) enable_targets
= ;;
7887 *) enable_targets
=$enableval ;;
7892 # Check whether to enable 64-bit support on 32-bit hosts
7893 # Check whether --enable-64-bit-bfd was given.
7894 if test "${enable_64_bit_bfd+set}" = set; then :
7895 enableval
=$enable_64_bit_bfd; case "${enableval}" in
7898 *) as_fn_error
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
7904 # Provide defaults for some variables set by the per-host and per-target
7906 gdb_host_obs
=posix-hdep.o
7908 if test "${target}" = "${host}"; then
7914 .
$srcdir/configure.
host
7916 # Accumulate some settings from configure.tgt over all enabled targets
7921 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
7923 if test "$targ_alias" = "all"; then
7926 # Canonicalize the secondary target names.
7927 result
=`$ac_config_sub $targ_alias 2>/dev/null`
7928 if test -n "$result"; then
7934 .
${srcdir}/configure.tgt
7936 if test -z "${gdb_target_obs}"; then :
7937 as_fn_error
"configuration ${targ} is unsupported." "$LINENO" 5
7940 # Target-specific object files
7941 for i
in ${gdb_target_obs}; do
7942 case " $TARGET_OBS " in
7945 TARGET_OBS
="$TARGET_OBS ${i}"
7950 # Check whether this target needs 64-bit CORE_ADDR
7951 if test x
${want64} = xfalse
; then
7952 .
${srcdir}/..
/bfd
/config.bfd
7957 if test x
${all_targets} = xtrue
; then
7959 # We want all 64-bit targets if we either:
7960 # - run on a 64-bit host or
7961 # - already require 64-bit support for some other target or
7962 # - the --enable-64-bit-bfd option was supplied
7963 # Otherwise we only support all 32-bit targets.
7965 # NOTE: This test must be in sync with the corresponding
7968 if test x
${want64} = xfalse
; then
7969 # The cast to long int works around a bug in the HP C Compiler
7970 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7971 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7972 # This bug is HP SR number 8606223364.
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7974 $as_echo_n "checking size of long... " >&6; }
7975 if test "${ac_cv_sizeof_long+set}" = set; then :
7976 $as_echo_n "(cached) " >&6
7978 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
7981 if test "$ac_cv_type_long" = yes; then
7982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7984 { as_fn_set_status
77
7985 as_fn_error
"cannot compute sizeof (long)
7986 See \`config.log' for more details." "$LINENO" 5; }; }
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
7994 $as_echo "$ac_cv_sizeof_long" >&6; }
7998 cat >>confdefs.h
<<_ACEOF
7999 #define SIZEOF_LONG $ac_cv_sizeof_long
8003 if test "x${ac_cv_sizeof_long}" = "x8"; then
8007 if test x
${want64} = xtrue
; then
8008 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
8010 TARGET_OBS
='$(ALL_TARGET_OBS)'
8016 # For other settings, only the main target counts.
8020 targ
=$target; .
${srcdir}/configure.tgt
8022 # Fetch the default architecture and default target vector from BFD.
8023 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
8025 # We only want the first architecture, so strip off the others if
8026 # there is more than one.
8027 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
8029 if test "x$targ_archs" != x
; then
8031 cat >>confdefs.h
<<_ACEOF
8032 #define DEFAULT_BFD_ARCH $targ_archs
8036 if test "x$targ_defvec" != x
; then
8038 cat >>confdefs.h
<<_ACEOF
8039 #define DEFAULT_BFD_VEC $targ_defvec
8044 # The CLI cannot be disabled yet, but may be in the future.
8047 # Check whether --enable-gdbcli was given.
8048 if test "${enable_gdbcli+set}" = set; then :
8049 enableval
=$enable_gdbcli; case $enableval in
8053 as_fn_error
"the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
8055 as_fn_error
"bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
8061 if test x
"$enable_gdbcli" = xyes
; then
8062 if test -d $srcdir/cli
; then
8063 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
8064 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
8065 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
8066 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
8071 # Check whether --enable-gdbmi was given.
8072 if test "${enable_gdbmi+set}" = set; then :
8073 enableval
=$enable_gdbmi; case $enableval in
8077 as_fn_error
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
8083 if test x
"$enable_gdbmi" = xyes
; then
8084 if test -d $srcdir/mi
; then
8085 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
8086 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
8087 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
8088 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
8093 # Check whether --enable-tui was given.
8094 if test "${enable_tui+set}" = set; then :
8095 enableval
=$enable_tui; case $enableval in
8099 as_fn_error
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
8107 # Check whether --enable-gdbtk was given.
8108 if test "${enable_gdbtk+set}" = set; then :
8109 enableval
=$enable_gdbtk; case $enableval in
8113 as_fn_error
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
8116 if test -d $srcdir/gdbtk
; then
8123 # We unconditionally disable gdbtk tests on selected platforms.
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
8127 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
8131 # Libunwind support.
8133 # Check whether --with-libunwind was given.
8134 if test "${with_libunwind+set}" = set; then :
8135 withval
=$with_libunwind; case "${withval}" in
8136 yes) enable_libunwind
=yes ;;
8137 no
) enable_libunwind
=no
;;
8138 *) as_fn_error
"bad value ${withval} for GDB with-libunwind option" "$LINENO" 5 ;;
8142 for ac_header
in libunwind.h libunwind-ia64.h
8144 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8145 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8146 eval as_val
=\$
$as_ac_Header
8147 if test "x$as_val" = x
""yes; then :
8148 cat >>confdefs.h
<<_ACEOF
8149 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8156 if test x
"$ac_cv_header_libunwind_h" = xyes
-a x
"$ac_cv_header_libunwind_ia64_h" = xyes
; then
8157 enable_libunwind
=yes;
8163 if test x
"$enable_libunwind" = xyes
; then
8164 for ac_header
in libunwind.h libunwind-ia64.h
8166 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8167 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8168 eval as_val
=\$
$as_ac_Header
8169 if test "x$as_val" = x
""yes; then :
8170 cat >>confdefs.h
<<_ACEOF
8171 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8179 $as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h
8181 CONFIG_OBS
="$CONFIG_OBS libunwind-frame.o"
8182 CONFIG_DEPS
="$CONFIG_DEPS libunwind-frame.o"
8183 CONFIG_SRCS
="$CONFIG_SRCS libunwind-frame.c"
8188 # Check whether --with-curses was given.
8189 if test "${with_curses+set}" = set; then :
8190 withval
=$with_curses; opt_curses
=$withval
8195 if test "$opt_curses" = "yes"; then
8199 # Profiling support.
8200 # Check whether --enable-profiling was given.
8201 if test "${enable_profiling+set}" = set; then :
8202 enableval
=$enable_profiling; case $enableval in
8206 as_fn_error
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
8213 for ac_func
in monstartup _mcleanup
8215 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8216 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8217 eval as_val
=\$
$as_ac_var
8218 if test "x$as_val" = x
""yes; then :
8219 cat >>confdefs.h
<<_ACEOF
8220 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
8227 $as_echo_n "checking for _etext... " >&6; }
8228 if test "${ac_cv_var__etext+set}" = set; then :
8229 $as_echo_n "(cached) " >&6
8231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8232 /* end confdefs.h. */
8244 if ac_fn_c_try_link
"$LINENO"; then :
8245 ac_cv_var__etext
=yes
8249 rm -f core conftest.err conftest.
$ac_objext \
8250 conftest
$ac_exeext conftest.
$ac_ext
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
8253 $as_echo "$ac_cv_var__etext" >&6; }
8254 if test $ac_cv_var__etext = yes; then
8256 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
8260 $as_echo_n "checking for etext... " >&6; }
8261 if test "${ac_cv_var_etext+set}" = set; then :
8262 $as_echo_n "(cached) " >&6
8264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8265 /* end confdefs.h. */
8277 if ac_fn_c_try_link
"$LINENO"; then :
8282 rm -f core conftest.err conftest.
$ac_objext \
8283 conftest
$ac_exeext conftest.
$ac_ext
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
8286 $as_echo "$ac_cv_var_etext" >&6; }
8287 if test $ac_cv_var_etext = yes; then
8289 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
8292 if test "$enable_profiling" = yes ; then
8293 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
8294 as_fn_error
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
8297 OLD_CFLAGS
="$CFLAGS"
8298 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
8301 $as_echo_n "checking whether $CC supports -pg... " >&6; }
8302 if test "${ac_cv_cc_supports_pg+set}" = set; then :
8303 $as_echo_n "(cached) " >&6
8305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8306 /* end confdefs.h. */
8316 if ac_fn_c_try_compile
"$LINENO"; then :
8317 ac_cv_cc_supports_pg
=yes
8319 ac_cv_cc_supports_pg
=no
8321 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
8324 $as_echo "$ac_cv_cc_supports_pg" >&6; }
8326 if test $ac_cv_cc_supports_pg = no
; then
8327 as_fn_error
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
8330 CFLAGS
="$OLD_CFLAGS"
8335 # Check whether --with-pkgversion was given.
8336 if test "${with_pkgversion+set}" = set; then :
8337 withval
=$with_pkgversion; case "$withval" in
8338 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
8340 *) PKGVERSION
="($withval) " ;;
8351 # Check whether --with-bugurl was given.
8352 if test "${with_bugurl+set}" = set; then :
8353 withval
=$with_bugurl; case "$withval" in
8354 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
8357 *) BUGURL
="$withval"
8361 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
8371 REPORT_BUGS_TO
="<$BUGURL>"
8372 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
8379 cat >>confdefs.h
<<_ACEOF
8380 #define PKGVERSION "$PKGVERSION"
8384 cat >>confdefs.h
<<_ACEOF
8385 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8389 # --------------------- #
8390 # Checks for programs. #
8391 # --------------------- #
8393 for ac_prog
in gawk mawk nawk
awk
8395 # Extract the first word of "$ac_prog", so it can be a program name with args.
8396 set dummy
$ac_prog; ac_word
=$2
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8398 $as_echo_n "checking for $ac_word... " >&6; }
8399 if test "${ac_cv_prog_AWK+set}" = set; then :
8400 $as_echo_n "(cached) " >&6
8402 if test -n "$AWK"; then
8403 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8405 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8409 test -z "$as_dir" && as_dir
=.
8410 for ac_exec_ext
in '' $ac_executable_extensions; do
8411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8412 ac_cv_prog_AWK
="$ac_prog"
8413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8423 if test -n "$AWK"; then
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8425 $as_echo "$AWK" >&6; }
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8428 $as_echo "no" >&6; }
8432 test -n "$AWK" && break
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8437 $as_echo_n "checking whether ln -s works... " >&6; }
8439 if test "$LN_S" = "ln -s"; then
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8441 $as_echo "yes" >&6; }
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8444 $as_echo "no, using $LN_S" >&6; }
8447 if test -n "$ac_tool_prefix"; then
8448 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8449 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8451 $as_echo_n "checking for $ac_word... " >&6; }
8452 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8453 $as_echo_n "(cached) " >&6
8455 if test -n "$RANLIB"; then
8456 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8458 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8462 test -z "$as_dir" && as_dir
=.
8463 for ac_exec_ext
in '' $ac_executable_extensions; do
8464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8465 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8475 RANLIB
=$ac_cv_prog_RANLIB
8476 if test -n "$RANLIB"; then
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8478 $as_echo "$RANLIB" >&6; }
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8481 $as_echo "no" >&6; }
8486 if test -z "$ac_cv_prog_RANLIB"; then
8487 ac_ct_RANLIB
=$RANLIB
8488 # Extract the first word of "ranlib", so it can be a program name with args.
8489 set dummy ranlib
; ac_word
=$2
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8491 $as_echo_n "checking for $ac_word... " >&6; }
8492 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8493 $as_echo_n "(cached) " >&6
8495 if test -n "$ac_ct_RANLIB"; then
8496 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8498 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8502 test -z "$as_dir" && as_dir
=.
8503 for ac_exec_ext
in '' $ac_executable_extensions; do
8504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8505 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8515 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8516 if test -n "$ac_ct_RANLIB"; then
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8518 $as_echo "$ac_ct_RANLIB" >&6; }
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8521 $as_echo "no" >&6; }
8524 if test "x$ac_ct_RANLIB" = x
; then
8527 case $cross_compiling:$ac_tool_warned in
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8531 ac_tool_warned
=yes ;;
8533 RANLIB
=$ac_ct_RANLIB
8536 RANLIB
="$ac_cv_prog_RANLIB"
8539 for ac_prog
in 'bison -y' byacc
8541 # Extract the first word of "$ac_prog", so it can be a program name with args.
8542 set dummy
$ac_prog; ac_word
=$2
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8544 $as_echo_n "checking for $ac_word... " >&6; }
8545 if test "${ac_cv_prog_YACC+set}" = set; then :
8546 $as_echo_n "(cached) " >&6
8548 if test -n "$YACC"; then
8549 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
8551 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8555 test -z "$as_dir" && as_dir
=.
8556 for ac_exec_ext
in '' $ac_executable_extensions; do
8557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8558 ac_cv_prog_YACC
="$ac_prog"
8559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8568 YACC
=$ac_cv_prog_YACC
8569 if test -n "$YACC"; then
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8571 $as_echo "$YACC" >&6; }
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8574 $as_echo "no" >&6; }
8578 test -n "$YACC" && break
8580 test -n "$YACC" || YACC
="yacc"
8583 if test -n "$ac_tool_prefix"; then
8584 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8585 set dummy
${ac_tool_prefix}ar; ac_word
=$2
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8587 $as_echo_n "checking for $ac_word... " >&6; }
8588 if test "${ac_cv_prog_AR+set}" = set; then :
8589 $as_echo_n "(cached) " >&6
8591 if test -n "$AR"; then
8592 ac_cv_prog_AR
="$AR" # Let the user override the test.
8594 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8598 test -z "$as_dir" && as_dir
=.
8599 for ac_exec_ext
in '' $ac_executable_extensions; do
8600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8601 ac_cv_prog_AR
="${ac_tool_prefix}ar"
8602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8612 if test -n "$AR"; then
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8614 $as_echo "$AR" >&6; }
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8617 $as_echo "no" >&6; }
8622 if test -z "$ac_cv_prog_AR"; then
8624 # Extract the first word of "ar", so it can be a program name with args.
8625 set dummy
ar; ac_word
=$2
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8627 $as_echo_n "checking for $ac_word... " >&6; }
8628 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8629 $as_echo_n "(cached) " >&6
8631 if test -n "$ac_ct_AR"; then
8632 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
8634 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8638 test -z "$as_dir" && as_dir
=.
8639 for ac_exec_ext
in '' $ac_executable_extensions; do
8640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8641 ac_cv_prog_ac_ct_AR
="ar"
8642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8651 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
8652 if test -n "$ac_ct_AR"; then
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8654 $as_echo "$ac_ct_AR" >&6; }
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8657 $as_echo "no" >&6; }
8660 if test "x$ac_ct_AR" = x
; then
8663 case $cross_compiling:$ac_tool_warned in
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8667 ac_tool_warned
=yes ;;
8675 if test -n "$ac_tool_prefix"; then
8676 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8677 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8679 $as_echo_n "checking for $ac_word... " >&6; }
8680 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8681 $as_echo_n "(cached) " >&6
8683 if test -n "$DLLTOOL"; then
8684 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
8686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8690 test -z "$as_dir" && as_dir
=.
8691 for ac_exec_ext
in '' $ac_executable_extensions; do
8692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8693 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
8694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8703 DLLTOOL
=$ac_cv_prog_DLLTOOL
8704 if test -n "$DLLTOOL"; then
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8706 $as_echo "$DLLTOOL" >&6; }
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8709 $as_echo "no" >&6; }
8714 if test -z "$ac_cv_prog_DLLTOOL"; then
8715 ac_ct_DLLTOOL
=$DLLTOOL
8716 # Extract the first word of "dlltool", so it can be a program name with args.
8717 set dummy dlltool
; ac_word
=$2
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8719 $as_echo_n "checking for $ac_word... " >&6; }
8720 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
8721 $as_echo_n "(cached) " >&6
8723 if test -n "$ac_ct_DLLTOOL"; then
8724 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
8726 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8730 test -z "$as_dir" && as_dir
=.
8731 for ac_exec_ext
in '' $ac_executable_extensions; do
8732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8733 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
8734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8743 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
8744 if test -n "$ac_ct_DLLTOOL"; then
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8746 $as_echo "$ac_ct_DLLTOOL" >&6; }
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8749 $as_echo "no" >&6; }
8752 if test "x$ac_ct_DLLTOOL" = x
; then
8755 case $cross_compiling:$ac_tool_warned in
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8759 ac_tool_warned
=yes ;;
8761 DLLTOOL
=$ac_ct_DLLTOOL
8764 DLLTOOL
="$ac_cv_prog_DLLTOOL"
8767 if test -n "$ac_tool_prefix"; then
8768 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8769 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8771 $as_echo_n "checking for $ac_word... " >&6; }
8772 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8773 $as_echo_n "(cached) " >&6
8775 if test -n "$WINDRES"; then
8776 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
8778 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8782 test -z "$as_dir" && as_dir
=.
8783 for ac_exec_ext
in '' $ac_executable_extensions; do
8784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8785 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
8786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8795 WINDRES
=$ac_cv_prog_WINDRES
8796 if test -n "$WINDRES"; then
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8798 $as_echo "$WINDRES" >&6; }
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8801 $as_echo "no" >&6; }
8806 if test -z "$ac_cv_prog_WINDRES"; then
8807 ac_ct_WINDRES
=$WINDRES
8808 # Extract the first word of "windres", so it can be a program name with args.
8809 set dummy windres
; ac_word
=$2
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8811 $as_echo_n "checking for $ac_word... " >&6; }
8812 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
8813 $as_echo_n "(cached) " >&6
8815 if test -n "$ac_ct_WINDRES"; then
8816 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
8818 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8822 test -z "$as_dir" && as_dir
=.
8823 for ac_exec_ext
in '' $ac_executable_extensions; do
8824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8825 ac_cv_prog_ac_ct_WINDRES
="windres"
8826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8835 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
8836 if test -n "$ac_ct_WINDRES"; then
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
8838 $as_echo "$ac_ct_WINDRES" >&6; }
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8841 $as_echo "no" >&6; }
8844 if test "x$ac_ct_WINDRES" = x
; then
8847 case $cross_compiling:$ac_tool_warned in
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8851 ac_tool_warned
=yes ;;
8853 WINDRES
=$ac_ct_WINDRES
8856 WINDRES
="$ac_cv_prog_WINDRES"
8860 # Needed for GNU/Hurd.
8861 if test -n "$ac_tool_prefix"; then
8862 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
8863 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8865 $as_echo_n "checking for $ac_word... " >&6; }
8866 if test "${ac_cv_prog_MIG+set}" = set; then :
8867 $as_echo_n "(cached) " >&6
8869 if test -n "$MIG"; then
8870 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
8872 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8876 test -z "$as_dir" && as_dir
=.
8877 for ac_exec_ext
in '' $ac_executable_extensions; do
8878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8879 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
8880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8890 if test -n "$MIG"; then
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
8892 $as_echo "$MIG" >&6; }
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8895 $as_echo "no" >&6; }
8900 if test -z "$ac_cv_prog_MIG"; then
8902 # Extract the first word of "mig", so it can be a program name with args.
8903 set dummy mig
; ac_word
=$2
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8905 $as_echo_n "checking for $ac_word... " >&6; }
8906 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
8907 $as_echo_n "(cached) " >&6
8909 if test -n "$ac_ct_MIG"; then
8910 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
8912 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8916 test -z "$as_dir" && as_dir
=.
8917 for ac_exec_ext
in '' $ac_executable_extensions; do
8918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8919 ac_cv_prog_ac_ct_MIG
="mig"
8920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8929 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
8930 if test -n "$ac_ct_MIG"; then
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
8932 $as_echo "$ac_ct_MIG" >&6; }
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8935 $as_echo "no" >&6; }
8938 if test "x$ac_ct_MIG" = x
; then
8941 case $cross_compiling:$ac_tool_warned in
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8945 ac_tool_warned
=yes ;;
8950 MIG
="$ac_cv_prog_MIG"
8954 # ---------------------- #
8955 # Checks for libraries. #
8956 # ---------------------- #
8958 # We might need to link with -lm; most simulators need it.
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
8960 $as_echo_n "checking for main in -lm... " >&6; }
8961 if test "${ac_cv_lib_m_main+set}" = set; then :
8962 $as_echo_n "(cached) " >&6
8964 ac_check_lib_save_LIBS
=$LIBS
8966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8967 /* end confdefs.h. */
8978 if ac_fn_c_try_link
"$LINENO"; then :
8979 ac_cv_lib_m_main
=yes
8983 rm -f core conftest.err conftest.
$ac_objext \
8984 conftest
$ac_exeext conftest.
$ac_ext
8985 LIBS
=$ac_check_lib_save_LIBS
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
8988 $as_echo "$ac_cv_lib_m_main" >&6; }
8989 if test "x$ac_cv_lib_m_main" = x
""yes; then :
8990 cat >>confdefs.h
<<_ACEOF
8999 # We need to link with -lw to get `wctype' on Solaris before Solaris
9000 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9001 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9002 # is known to have this problem). Therefore we avoid libw if we can.
9003 ac_fn_c_check_func
"$LINENO" "wctype" "ac_cv_func_wctype"
9004 if test "x$ac_cv_func_wctype" = x
""yes; then :
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
9008 $as_echo_n "checking for wctype in -lw... " >&6; }
9009 if test "${ac_cv_lib_w_wctype+set}" = set; then :
9010 $as_echo_n "(cached) " >&6
9012 ac_check_lib_save_LIBS
=$LIBS
9014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9015 /* end confdefs.h. */
9017 /* Override any GCC internal prototype to avoid an error.
9018 Use char because int might match the return type of a GCC
9019 builtin and then its argument prototype would still apply. */
9032 if ac_fn_c_try_link
"$LINENO"; then :
9033 ac_cv_lib_w_wctype
=yes
9035 ac_cv_lib_w_wctype
=no
9037 rm -f core conftest.err conftest.
$ac_objext \
9038 conftest
$ac_exeext conftest.
$ac_ext
9039 LIBS
=$ac_check_lib_save_LIBS
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
9042 $as_echo "$ac_cv_lib_w_wctype" >&6; }
9043 if test "x$ac_cv_lib_w_wctype" = x
""yes; then :
9044 cat >>confdefs.h
<<_ACEOF
9055 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
9057 $as_echo_n "checking for library containing gethostbyname... " >&6; }
9058 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9059 $as_echo_n "(cached) " >&6
9061 ac_func_search_save_LIBS
=$LIBS
9062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9063 /* end confdefs.h. */
9065 /* Override any GCC internal prototype to avoid an error.
9066 Use char because int might match the return type of a GCC
9067 builtin and then its argument prototype would still apply. */
9071 char gethostbyname ();
9075 return gethostbyname ();
9080 for ac_lib
in '' nsl
; do
9081 if test -z "$ac_lib"; then
9082 ac_res
="none required"
9085 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9087 if ac_fn_c_try_link
"$LINENO"; then :
9088 ac_cv_search_gethostbyname
=$ac_res
9090 rm -f core conftest.err conftest.
$ac_objext \
9092 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9096 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9099 ac_cv_search_gethostbyname
=no
9102 LIBS
=$ac_func_search_save_LIBS
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
9105 $as_echo "$ac_cv_search_gethostbyname" >&6; }
9106 ac_res
=$ac_cv_search_gethostbyname
9107 if test "$ac_res" != no
; then :
9108 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9113 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
9115 $as_echo_n "checking for library containing socketpair... " >&6; }
9116 if test "${ac_cv_search_socketpair+set}" = set; then :
9117 $as_echo_n "(cached) " >&6
9119 ac_func_search_save_LIBS
=$LIBS
9120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9121 /* end confdefs.h. */
9123 /* Override any GCC internal prototype to avoid an error.
9124 Use char because int might match the return type of a GCC
9125 builtin and then its argument prototype would still apply. */
9133 return socketpair ();
9138 for ac_lib
in '' socket
; do
9139 if test -z "$ac_lib"; then
9140 ac_res
="none required"
9143 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9145 if ac_fn_c_try_link
"$LINENO"; then :
9146 ac_cv_search_socketpair
=$ac_res
9148 rm -f core conftest.err conftest.
$ac_objext \
9150 if test "${ac_cv_search_socketpair+set}" = set; then :
9154 if test "${ac_cv_search_socketpair+set}" = set; then :
9157 ac_cv_search_socketpair
=no
9160 LIBS
=$ac_func_search_save_LIBS
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
9163 $as_echo "$ac_cv_search_socketpair" >&6; }
9164 ac_res
=$ac_cv_search_socketpair
9165 if test "$ac_res" != no
; then :
9166 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9171 # Link in zlib if we can. This allows us to read compressed debug sections.
9173 # See if the user specified whether he wants zlib support or not.
9175 # Check whether --with-zlib was given.
9176 if test "${with_zlib+set}" = set; then :
9183 if test "$with_zlib" != "no"; then
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
9185 $as_echo_n "checking for library containing zlibVersion... " >&6; }
9186 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9187 $as_echo_n "(cached) " >&6
9189 ac_func_search_save_LIBS
=$LIBS
9190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9191 /* end confdefs.h. */
9193 /* Override any GCC internal prototype to avoid an error.
9194 Use char because int might match the return type of a GCC
9195 builtin and then its argument prototype would still apply. */
9199 char zlibVersion ();
9203 return zlibVersion ();
9208 for ac_lib
in '' z
; do
9209 if test -z "$ac_lib"; then
9210 ac_res
="none required"
9213 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9215 if ac_fn_c_try_link
"$LINENO"; then :
9216 ac_cv_search_zlibVersion
=$ac_res
9218 rm -f core conftest.err conftest.
$ac_objext \
9220 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9224 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9227 ac_cv_search_zlibVersion
=no
9230 LIBS
=$ac_func_search_save_LIBS
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
9233 $as_echo "$ac_cv_search_zlibVersion" >&6; }
9234 ac_res
=$ac_cv_search_zlibVersion
9235 if test "$ac_res" != no
; then :
9236 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9237 for ac_header
in zlib.h
9239 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
9240 if test "x$ac_cv_header_zlib_h" = x
""yes; then :
9241 cat >>confdefs.h
<<_ACEOF
9242 #define HAVE_ZLIB_H 1
9251 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
9252 as_fn_error
"zlib (libz) library was explicitly requested but not found" "$LINENO" 5
9257 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
9259 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
9260 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9261 $as_echo_n "(cached) " >&6
9263 ac_func_search_save_LIBS
=$LIBS
9264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9265 /* end confdefs.h. */
9267 /* Override any GCC internal prototype to avoid an error.
9268 Use char because int might match the return type of a GCC
9269 builtin and then its argument prototype would still apply. */
9273 char dlgetmodinfo ();
9277 return dlgetmodinfo ();
9282 for ac_lib
in '' dl xpdl
; do
9283 if test -z "$ac_lib"; then
9284 ac_res
="none required"
9287 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9289 if ac_fn_c_try_link
"$LINENO"; then :
9290 ac_cv_search_dlgetmodinfo
=$ac_res
9292 rm -f core conftest.err conftest.
$ac_objext \
9294 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9298 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9301 ac_cv_search_dlgetmodinfo
=no
9304 LIBS
=$ac_func_search_save_LIBS
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
9307 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
9308 ac_res
=$ac_cv_search_dlgetmodinfo
9309 if test "$ac_res" != no
; then :
9310 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9318 # Check whether --with-libiconv-prefix was given.
9319 if test "${with_libiconv_prefix+set}" = set; then :
9320 withval
=$with_libiconv_prefix;
9321 for dir
in `echo "$withval" | tr : ' '`; do
9322 if test -d $dir/include
; then LIBICONV_INCLUDE
="-I$dir/include"; fi
9323 if test -d $dir/lib
; then LIBICONV_LIBDIR
="-L$dir/lib"; fi
9329 BUILD_LIBICONV_LIBDIRS
="../libiconv/lib/.libs ../libiconv/lib/_libs"
9330 BUILD_LIBICONV_INCLUDE
="-I../libiconv/include"
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9333 $as_echo_n "checking for iconv... " >&6; }
9334 if test "${am_cv_func_iconv+set}" = set; then :
9335 $as_echo_n "(cached) " >&6
9338 am_cv_func_iconv
="no, consider installing GNU libiconv"
9340 am_cv_use_build_libiconv
=no
9341 am_cv_build_libiconv_path
=
9343 # If libiconv is part of the build tree, then try using it over
9345 if test -d ..
/libiconv
; then
9346 for lib_dir
in $BUILD_LIBICONV_LIBDIRS; do
9347 am_save_LIBS
="$LIBS"
9348 am_save_CPPFLAGS
="$CPPFLAGS"
9349 LIBS
="$LIBS $lib_dir/libiconv.a"
9350 CPPFLAGS
="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
9351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9352 /* end confdefs.h. */
9358 iconv_t cd = iconv_open("","");
9359 iconv(cd,NULL,NULL,NULL,NULL);
9365 if ac_fn_c_try_link
"$LINENO"; then :
9366 am_cv_use_build_libiconv
=yes
9367 am_cv_build_libiconv_path
=$lib_dir/libiconv.a
9369 am_cv_func_iconv
=yes
9371 rm -f core conftest.err conftest.
$ac_objext \
9372 conftest
$ac_exeext conftest.
$ac_ext
9373 LIBS
="$am_save_LIBS"
9374 CPPFLAGS
="$am_save_CPPFLAGS"
9375 if test "$am_cv_use_build_libiconv" = "yes"; then
9381 # Next, try to find iconv in libc.
9382 if test "$am_cv_func_iconv" != yes; then
9383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9384 /* end confdefs.h. */
9390 iconv_t cd = iconv_open("","");
9391 iconv(cd,NULL,NULL,NULL,NULL);
9397 if ac_fn_c_try_link
"$LINENO"; then :
9398 am_cv_func_iconv
=yes
9400 rm -f core conftest.err conftest.
$ac_objext \
9401 conftest
$ac_exeext conftest.
$ac_ext
9404 # If iconv was not in libc, try -liconv. In this case, arrange to
9405 # look in the libiconv prefix, if it was specified by the user.
9406 if test "$am_cv_func_iconv" != yes; then
9407 am_save_CPPFLAGS
="$CPPFLAGS"
9408 am_save_LIBS
="$LIBS"
9409 if test -n "$LIBICONV_INCLUDE"; then
9410 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
9411 LIBS
="$LIBS $LIBICONV_LIBDIR"
9413 LIBS
="$LIBS -liconv"
9414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9415 /* end confdefs.h. */
9421 iconv_t cd = iconv_open("","");
9422 iconv(cd,NULL,NULL,NULL,NULL);
9428 if ac_fn_c_try_link
"$LINENO"; then :
9430 am_cv_func_iconv
=yes
9432 rm -f core conftest.err conftest.
$ac_objext \
9433 conftest
$ac_exeext conftest.
$ac_ext
9434 LIBS
="$am_save_LIBS"
9435 CPPFLAGS
="$am_save_CPPFLAGS"
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9440 $as_echo "$am_cv_func_iconv" >&6; }
9442 # Set the various flags based on the cache variables. We can't rely
9443 # on the flags to remain set from the above code, due to caching.
9445 if test "$am_cv_lib_iconv" = yes; then
9451 if test "$am_cv_use_build_libiconv" = yes; then
9452 LIBICONV
="$am_cv_build_libiconv_path"
9454 LIBICONV_INCLUDE
="$BUILD_LIBICONV_INCLUDE"
9456 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
9457 LIBS
="$LIBS $LIBICONV_LIBDIR $LIBICONV"
9459 if test "$am_cv_func_iconv" = yes; then
9461 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9464 $as_echo_n "checking for iconv declaration... " >&6; }
9465 if test "${am_cv_proto_iconv+set}" = set; then :
9466 $as_echo_n "(cached) " >&6
9469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9470 /* end confdefs.h. */
9478 #if defined(__STDC__) || defined(__cplusplus)
9479 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9492 if ac_fn_c_try_compile
"$LINENO"; then :
9493 am_cv_proto_iconv_arg1
=""
9495 am_cv_proto_iconv_arg1
="const"
9497 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9498 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);"
9501 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9503 }$am_cv_proto_iconv" >&5
9505 }$am_cv_proto_iconv" >&6; }
9507 cat >>confdefs.h
<<_ACEOF
9508 #define ICONV_CONST $am_cv_proto_iconv_arg1
9514 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
9515 # There is a very specific comment in /usr/include/curses.h explaining that
9516 # termcap routines built into libcurses must not be used.
9518 # The symptoms we observed so far is GDB unexpectedly changing
9519 # the terminal settings when tgetent is called - this is particularly
9520 # visible as the output is missing carriage returns, and so rapidly
9521 # becomes very hard to read.
9523 # The readline configure script has already decided that libtermcap
9524 # was enough for its purposes, and so decided to build readline using
9525 # libtermcap. Since the TUI mode requires curses, building GDB with
9526 # TUI enabled results in both libraries to be used at the same time,
9527 # which is not allowed. This basically means that GDB with TUI is
9528 # broken on alpha-osf.
9532 if test x
"$enable_tui" = xyes
; then
9533 as_fn_error
"Building GDB with TUI mode is not supported on this host" "$LINENO" 5
9535 if test x
"$enable_tui" = xauto
; then
9541 # For the TUI, we need enhanced curses functionality.
9542 if test x
"$enable_tui" != xno
; then
9547 if test x
"$prefer_curses" = xyes
; then
9548 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9549 # curses library because the latter might not provide all the
9550 # functionality we need. However, this leads to problems on systems
9551 # where the linker searches /usr/local/lib, but the compiler doesn't
9552 # search /usr/local/include, if ncurses is installed in /usr/local. A
9553 # default installation of ncurses on alpha*-dec-osf* will lead to such
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
9556 $as_echo_n "checking for library containing waddstr... " >&6; }
9557 if test "${ac_cv_search_waddstr+set}" = set; then :
9558 $as_echo_n "(cached) " >&6
9560 ac_func_search_save_LIBS
=$LIBS
9561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9562 /* end confdefs.h. */
9564 /* Override any GCC internal prototype to avoid an error.
9565 Use char because int might match the return type of a GCC
9566 builtin and then its argument prototype would still apply. */
9579 for ac_lib
in '' ncurses cursesX curses
; do
9580 if test -z "$ac_lib"; then
9581 ac_res
="none required"
9584 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9586 if ac_fn_c_try_link
"$LINENO"; then :
9587 ac_cv_search_waddstr
=$ac_res
9589 rm -f core conftest.err conftest.
$ac_objext \
9591 if test "${ac_cv_search_waddstr+set}" = set; then :
9595 if test "${ac_cv_search_waddstr+set}" = set; then :
9598 ac_cv_search_waddstr
=no
9601 LIBS
=$ac_func_search_save_LIBS
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
9604 $as_echo "$ac_cv_search_waddstr" >&6; }
9605 ac_res
=$ac_cv_search_waddstr
9606 if test "$ac_res" != no
; then :
9607 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9612 if test "$ac_cv_search_waddstr" != no
; then
9617 # Check whether we should enable the TUI, but only do so if we really
9619 if test x
"$enable_tui" != xno
; then
9620 if test -d $srcdir/tui
; then
9621 if test "$curses_found" != no
; then
9622 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
9623 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
9624 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9625 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
9626 CONFIG_ALL
="${CONFIG_ALL} all-tui"
9627 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-tui"
9628 CONFIG_INSTALL
="${CONFIG_INSTALL} install-tui"
9629 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-tui"
9631 if test x
"$enable_tui" = xyes
; then
9632 as_fn_error
"no enhanced curses library found; disable TUI" "$LINENO" 5
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
9635 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9641 # Since GDB uses Readline, we need termcap functionality. In many
9642 # cases this will be provided by the curses library, but some systems
9643 # have a seperate termcap library, or no curses library at all.
9647 if test -d $srcdir/libtermcap
; then
9648 LIBS
="../libtermcap/libtermcap.a $LIBS"
9649 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
9652 ac_cv_search_tgetent
="none required"
9655 ac_cv_search_tgetent
="none required"
9656 CONFIG_OBS
="$CONFIG_OBS windows-termcap.o"
9660 # These are the libraries checked by Readline.
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9662 $as_echo_n "checking for library containing tgetent... " >&6; }
9663 if test "${ac_cv_search_tgetent+set}" = set; then :
9664 $as_echo_n "(cached) " >&6
9666 ac_func_search_save_LIBS
=$LIBS
9667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9668 /* end confdefs.h. */
9670 /* Override any GCC internal prototype to avoid an error.
9671 Use char because int might match the return type of a GCC
9672 builtin and then its argument prototype would still apply. */
9685 for ac_lib
in '' termcap tinfo curses ncurses
; do
9686 if test -z "$ac_lib"; then
9687 ac_res
="none required"
9690 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9692 if ac_fn_c_try_link
"$LINENO"; then :
9693 ac_cv_search_tgetent
=$ac_res
9695 rm -f core conftest.err conftest.
$ac_objext \
9697 if test "${ac_cv_search_tgetent+set}" = set; then :
9701 if test "${ac_cv_search_tgetent+set}" = set; then :
9704 ac_cv_search_tgetent
=no
9707 LIBS
=$ac_func_search_save_LIBS
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9710 $as_echo "$ac_cv_search_tgetent" >&6; }
9711 ac_res
=$ac_cv_search_tgetent
9712 if test "$ac_res" != no
; then :
9713 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9718 if test "$ac_cv_search_tgetent" = no
; then
9719 as_fn_error
"no termcap library found" "$LINENO" 5
9723 # Check whether --with-system-readline was given.
9724 if test "${with_system_readline+set}" = set; then :
9725 withval
=$with_system_readline;
9729 if test "$with_system_readline" = yes; then
9734 # readline-6.0 started to use the name `_rl_echoing_p'.
9735 # `$(READLINE_DIR)/' of bundled readline would not resolve in configure.
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline_echoing_p" >&5
9738 $as_echo_n "checking for readline_echoing_p... " >&6; }
9740 LIBS
="$LIBS $READLINE"
9741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9742 /* end confdefs.h. */
9747 extern int readline_echoing_p;
9748 return readline_echoing_p;
9753 if ac_fn_c_try_link
"$LINENO"; then :
9754 READLINE_ECHOING_P
=yes
9756 READLINE_ECHOING_P
=no
9758 $as_echo "#define readline_echoing_p _rl_echoing_p" >>confdefs.h
9761 rm -f core conftest.err conftest.
$ac_objext \
9762 conftest
$ac_exeext conftest.
$ac_ext
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_ECHOING_P" >&5
9765 $as_echo "$READLINE_ECHOING_P" >&6; }
9767 READLINE
='$(READLINE_DIR)/libreadline.a'
9768 READLINE_DEPS
='$(READLINE)'
9769 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
9776 # Check whether --with-expat was given.
9777 if test "${with_expat+set}" = set; then :
9778 withval
=$with_expat;
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9784 $as_echo_n "checking whether to use expat... " >&6; }
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9786 $as_echo "$with_expat" >&6; }
9788 if test "${with_expat}" = no
; then
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9790 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9794 if test "X$prefix" = "XNONE"; then
9795 acl_final_prefix
="$ac_default_prefix"
9797 acl_final_prefix
="$prefix"
9799 if test "X$exec_prefix" = "XNONE"; then
9800 acl_final_exec_prefix
='${prefix}'
9802 acl_final_exec_prefix
="$exec_prefix"
9804 acl_save_prefix
="$prefix"
9805 prefix
="$acl_final_prefix"
9806 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9807 prefix
="$acl_save_prefix"
9810 # Check whether --with-gnu-ld was given.
9811 if test "${with_gnu_ld+set}" = set; then :
9812 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9817 # Prepare PATH_SEPARATOR.
9818 # The user is always right.
9819 if test "${PATH_SEPARATOR+set}" != set; then
9820 echo "#! /bin/sh" >conf$$.sh
9821 echo "exit 0" >>conf$$.sh
9823 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9831 if test "$GCC" = yes; then
9832 # Check if gcc -print-prog-name=ld gives a path.
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9834 $as_echo_n "checking for ld used by GCC... " >&6; }
9837 # gcc leaves a trailing carriage return which upsets mingw
9838 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9840 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9843 # Accept absolute paths.
9844 [\\/]* |
[A-Za-z
]:[\\/]*)
9845 re_direlt
='/[^/][^/]*/\.\./'
9846 # Canonicalize the path of ld
9847 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9848 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9849 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9851 test -z "$LD" && LD
="$ac_prog"
9854 # If it fails, then pretend we aren't using GCC.
9858 # If it is relative, then search for the first ld in PATH.
9862 elif test "$with_gnu_ld" = yes; then
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9864 $as_echo_n "checking for GNU ld... " >&6; }
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9867 $as_echo_n "checking for non-GNU ld... " >&6; }
9869 if test "${acl_cv_path_LD+set}" = set; then :
9870 $as_echo_n "(cached) " >&6
9872 if test -z "$LD"; then
9873 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9874 for ac_dir
in $PATH; do
9875 test -z "$ac_dir" && ac_dir
=.
9876 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9877 acl_cv_path_LD
="$ac_dir/$ac_prog"
9878 # Check to see if the program is GNU ld. I'd rather use --version,
9879 # but apparently some GNU ld's only accept -v.
9880 # Break only if it was the GNU/non-GNU ld that we prefer.
9881 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9882 test "$with_gnu_ld" != no
&& break
9884 test "$with_gnu_ld" != yes && break
9890 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9894 LD
="$acl_cv_path_LD"
9895 if test -n "$LD"; then
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9897 $as_echo "$LD" >&6; }
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9900 $as_echo "no" >&6; }
9902 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9904 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9905 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9906 $as_echo_n "(cached) " >&6
9908 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9909 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9910 acl_cv_prog_gnu_ld
=yes
9912 acl_cv_prog_gnu_ld
=no
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9916 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9917 with_gnu_ld
=$acl_cv_prog_gnu_ld
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9922 $as_echo_n "checking for shared library run path origin... " >&6; }
9923 if test "${acl_cv_rpath+set}" = set; then :
9924 $as_echo_n "(cached) " >&6
9927 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9928 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9935 $as_echo "$acl_cv_rpath" >&6; }
9937 libext
="$acl_cv_libext"
9938 shlibext
="$acl_cv_shlibext"
9939 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9940 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9941 hardcode_direct
="$acl_cv_hardcode_direct"
9942 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9943 # Check whether --enable-rpath was given.
9944 if test "${enable_rpath+set}" = set; then :
9945 enableval
=$enable_rpath; :
9961 acl_save_prefix
="$prefix"
9962 prefix
="$acl_final_prefix"
9963 acl_save_exec_prefix
="$exec_prefix"
9964 exec_prefix
="$acl_final_exec_prefix"
9966 eval additional_includedir
=\"$includedir\"
9967 eval additional_libdir
=\"$libdir\"
9969 exec_prefix
="$acl_save_exec_prefix"
9970 prefix
="$acl_save_prefix"
9973 # Check whether --with-libexpat-prefix was given.
9974 if test "${with_libexpat_prefix+set}" = set; then :
9975 withval
=$with_libexpat_prefix;
9976 if test "X$withval" = "Xno"; then
9979 if test "X$withval" = "X"; then
9981 acl_save_prefix
="$prefix"
9982 prefix
="$acl_final_prefix"
9983 acl_save_exec_prefix
="$exec_prefix"
9984 exec_prefix
="$acl_final_exec_prefix"
9986 eval additional_includedir
=\"$includedir\"
9987 eval additional_libdir
=\"$libdir\"
9989 exec_prefix
="$acl_save_exec_prefix"
9990 prefix
="$acl_save_prefix"
9993 additional_includedir
="$withval/include"
9994 additional_libdir
="$withval/lib"
10005 names_already_handled
=
10006 names_next_round
='expat '
10007 while test -n "$names_next_round"; do
10008 names_this_round
="$names_next_round"
10010 for name
in $names_this_round; do
10012 for n
in $names_already_handled; do
10013 if test "$n" = "$name"; then
10014 already_handled
=yes
10018 if test -z "$already_handled"; then
10019 names_already_handled
="$names_already_handled $name"
10020 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10021 eval value
=\"\
$HAVE_LIB$uppername\"
10022 if test -n "$value"; then
10023 if test "$value" = yes; then
10024 eval value
=\"\
$LIB$uppername\"
10025 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
10026 eval value
=\"\
$LTLIB$uppername\"
10027 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10036 if test $use_additional = yes; then
10037 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10038 found_dir
="$additional_libdir"
10039 found_so
="$additional_libdir/lib$name.$shlibext"
10040 if test -f "$additional_libdir/lib$name.la"; then
10041 found_la
="$additional_libdir/lib$name.la"
10044 if test -f "$additional_libdir/lib$name.$libext"; then
10045 found_dir
="$additional_libdir"
10046 found_a
="$additional_libdir/lib$name.$libext"
10047 if test -f "$additional_libdir/lib$name.la"; then
10048 found_la
="$additional_libdir/lib$name.la"
10053 if test "X$found_dir" = "X"; then
10054 for x
in $LDFLAGS $LTLIBEXPAT; do
10056 acl_save_prefix
="$prefix"
10057 prefix
="$acl_final_prefix"
10058 acl_save_exec_prefix
="$exec_prefix"
10059 exec_prefix
="$acl_final_exec_prefix"
10061 exec_prefix
="$acl_save_exec_prefix"
10062 prefix
="$acl_save_prefix"
10066 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10067 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10069 found_so
="$dir/lib$name.$shlibext"
10070 if test -f "$dir/lib$name.la"; then
10071 found_la
="$dir/lib$name.la"
10074 if test -f "$dir/lib$name.$libext"; then
10076 found_a
="$dir/lib$name.$libext"
10077 if test -f "$dir/lib$name.la"; then
10078 found_la
="$dir/lib$name.la"
10084 if test "X$found_dir" != "X"; then
10089 if test "X$found_dir" != "X"; then
10090 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10091 if test "X$found_so" != "X"; then
10092 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10093 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10096 for x
in $ltrpathdirs; do
10097 if test "X$x" = "X$found_dir"; then
10102 if test -z "$haveit"; then
10103 ltrpathdirs
="$ltrpathdirs $found_dir"
10105 if test "$hardcode_direct" = yes; then
10106 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10108 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10109 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10111 for x
in $rpathdirs; do
10112 if test "X$x" = "X$found_dir"; then
10117 if test -z "$haveit"; then
10118 rpathdirs
="$rpathdirs $found_dir"
10122 for x
in $LDFLAGS $LIBEXPAT; do
10124 acl_save_prefix
="$prefix"
10125 prefix
="$acl_final_prefix"
10126 acl_save_exec_prefix
="$exec_prefix"
10127 exec_prefix
="$acl_final_exec_prefix"
10129 exec_prefix
="$acl_save_exec_prefix"
10130 prefix
="$acl_save_prefix"
10132 if test "X$x" = "X-L$found_dir"; then
10137 if test -z "$haveit"; then
10138 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10140 if test "$hardcode_minus_L" != no
; then
10141 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10143 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10149 if test "X$found_a" != "X"; then
10150 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10152 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10155 additional_includedir
=
10156 case "$found_dir" in
10158 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10159 additional_includedir
="$basedir/include"
10162 if test "X$additional_includedir" != "X"; then
10163 if test "X$additional_includedir" != "X/usr/include"; then
10165 if test "X$additional_includedir" = "X/usr/local/include"; then
10166 if test -n "$GCC"; then
10168 linux
*) haveit
=yes;;
10172 if test -z "$haveit"; then
10173 for x
in $CPPFLAGS $INCEXPAT; do
10175 acl_save_prefix
="$prefix"
10176 prefix
="$acl_final_prefix"
10177 acl_save_exec_prefix
="$exec_prefix"
10178 exec_prefix
="$acl_final_exec_prefix"
10180 exec_prefix
="$acl_save_exec_prefix"
10181 prefix
="$acl_save_prefix"
10183 if test "X$x" = "X-I$additional_includedir"; then
10188 if test -z "$haveit"; then
10189 if test -d "$additional_includedir"; then
10190 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10196 if test -n "$found_la"; then
10197 save_libdir
="$libdir"
10198 case "$found_la" in
10199 */* |
*\\*) .
"$found_la" ;;
10200 *) .
"./$found_la" ;;
10202 libdir
="$save_libdir"
10203 for dep
in $dependency_libs; do
10206 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10207 if test "X$additional_libdir" != "X/usr/lib"; then
10209 if test "X$additional_libdir" = "X/usr/local/lib"; then
10210 if test -n "$GCC"; then
10212 linux
*) haveit
=yes;;
10216 if test -z "$haveit"; then
10218 for x
in $LDFLAGS $LIBEXPAT; do
10220 acl_save_prefix
="$prefix"
10221 prefix
="$acl_final_prefix"
10222 acl_save_exec_prefix
="$exec_prefix"
10223 exec_prefix
="$acl_final_exec_prefix"
10225 exec_prefix
="$acl_save_exec_prefix"
10226 prefix
="$acl_save_prefix"
10228 if test "X$x" = "X-L$additional_libdir"; then
10233 if test -z "$haveit"; then
10234 if test -d "$additional_libdir"; then
10235 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
10239 for x
in $LDFLAGS $LTLIBEXPAT; do
10241 acl_save_prefix
="$prefix"
10242 prefix
="$acl_final_prefix"
10243 acl_save_exec_prefix
="$exec_prefix"
10244 exec_prefix
="$acl_final_exec_prefix"
10246 exec_prefix
="$acl_save_exec_prefix"
10247 prefix
="$acl_save_prefix"
10249 if test "X$x" = "X-L$additional_libdir"; then
10254 if test -z "$haveit"; then
10255 if test -d "$additional_libdir"; then
10256 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10263 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10264 if test "$enable_rpath" != no
; then
10266 for x
in $rpathdirs; do
10267 if test "X$x" = "X$dir"; then
10272 if test -z "$haveit"; then
10273 rpathdirs
="$rpathdirs $dir"
10276 for x
in $ltrpathdirs; do
10277 if test "X$x" = "X$dir"; then
10282 if test -z "$haveit"; then
10283 ltrpathdirs
="$ltrpathdirs $dir"
10288 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10291 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10294 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10295 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10301 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10302 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10308 if test "X$rpathdirs" != "X"; then
10309 if test -n "$hardcode_libdir_separator"; then
10311 for found_dir
in $rpathdirs; do
10312 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10314 acl_save_libdir
="$libdir"
10316 eval flag
=\"$hardcode_libdir_flag_spec\"
10317 libdir
="$acl_save_libdir"
10318 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10320 for found_dir
in $rpathdirs; do
10321 acl_save_libdir
="$libdir"
10322 libdir
="$found_dir"
10323 eval flag
=\"$hardcode_libdir_flag_spec\"
10324 libdir
="$acl_save_libdir"
10325 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10329 if test "X$ltrpathdirs" != "X"; then
10330 for found_dir
in $ltrpathdirs; do
10331 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10336 ac_save_CPPFLAGS
="$CPPFLAGS"
10338 for element
in $INCEXPAT; do
10340 for x
in $CPPFLAGS; do
10342 acl_save_prefix
="$prefix"
10343 prefix
="$acl_final_prefix"
10344 acl_save_exec_prefix
="$exec_prefix"
10345 exec_prefix
="$acl_final_exec_prefix"
10347 exec_prefix
="$acl_save_exec_prefix"
10348 prefix
="$acl_save_prefix"
10350 if test "X$x" = "X$element"; then
10355 if test -z "$haveit"; then
10356 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
10362 $as_echo_n "checking for libexpat... " >&6; }
10363 if test "${ac_cv_libexpat+set}" = set; then :
10364 $as_echo_n "(cached) " >&6
10367 ac_save_LIBS
="$LIBS"
10368 LIBS
="$LIBS $LIBEXPAT"
10369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10370 /* end confdefs.h. */
10375 XML_Parser p = XML_ParserCreate (0);
10380 if ac_fn_c_try_link
"$LINENO"; then :
10385 rm -f core conftest.err conftest.
$ac_objext \
10386 conftest
$ac_exeext conftest.
$ac_ext
10387 LIBS
="$ac_save_LIBS"
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
10391 $as_echo "$ac_cv_libexpat" >&6; }
10392 if test "$ac_cv_libexpat" = yes; then
10395 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
10398 $as_echo_n "checking how to link with libexpat... " >&6; }
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
10400 $as_echo "$LIBEXPAT" >&6; }
10403 CPPFLAGS
="$ac_save_CPPFLAGS"
10413 if test "$HAVE_LIBEXPAT" != yes; then
10414 if test "$with_expat" = yes; then
10415 as_fn_error
"expat is missing or unusable" "$LINENO" 5
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
10418 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
10422 LIBS
="$LIBS $LIBEXPAT"
10423 for ac_func
in XML_StopParser
10425 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
10426 if test "x$ac_cv_func_XML_StopParser" = x
""yes; then :
10427 cat >>confdefs.h
<<_ACEOF
10428 #define HAVE_XML_STOPPARSER 1
10443 # Check whether --with-python was given.
10444 if test "${with_python+set}" = set; then :
10445 withval
=$with_python;
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10451 $as_echo_n "checking whether to use python... " >&6; }
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10453 $as_echo "$with_python" >&6; }
10455 if test "${with_python}" = no
; then
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10457 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10460 case "${with_python}" in
10462 if test -d ${with_python}; then
10463 # Assume the python binary is ${with_python}/bin/python.
10464 python_prog
="${with_python}/bin/python"
10466 if test ! -x ${python_prog}; then
10467 # Fall back to gdb 7.0/7.1 behaviour.
10468 python_prog
=missing
10469 python_prefix
=${with_python}
10471 elif test -x ${with_python}; then
10472 # While we can't run python compiled for $host (unless host == build),
10473 # the user could write a script that provides the needed information,
10474 # so we support that.
10475 python_prog
=${with_python}
10478 as_fn_error
"invalid value for --with-python" "$LINENO" 5
10482 # Disallow --with-python=foo/bar.
10483 as_fn_error
"invalid value for --with-python" "$LINENO" 5
10486 # The user has either specified auto, yes, or the name of the python
10487 # program assumed to be in $PATH.
10489 case "${with_python}" in
10491 if test ${build} = ${host}; then
10492 # Extract the first word of "python", so it can be a program name with args.
10493 set dummy python
; ac_word
=$2
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10495 $as_echo_n "checking for $ac_word... " >&6; }
10496 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10497 $as_echo_n "(cached) " >&6
10499 case $python_prog_path in
10501 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10504 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10505 for as_dir
in $PATH
10508 test -z "$as_dir" && as_dir
=.
10509 for ac_exec_ext
in '' $ac_executable_extensions; do
10510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10511 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10519 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10523 python_prog_path
=$ac_cv_path_python_prog_path
10524 if test -n "$python_prog_path"; then
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10526 $as_echo "$python_prog_path" >&6; }
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10529 $as_echo "no" >&6; }
10533 if test "${python_prog_path}" = missing
; then
10534 python_prog
=missing
10536 python_prog
=${python_prog_path}
10539 # Not much we can do except assume the cross-compiler will find the
10541 python_prog
=missing
10545 # While we can't run python compiled for $host (unless host == build),
10546 # the user could write a script that provides the needed information,
10547 # so we support that.
10548 python_prog
="${with_python}"
10549 # Extract the first word of "${python_prog}", so it can be a program name with args.
10550 set dummy
${python_prog}; ac_word
=$2
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10552 $as_echo_n "checking for $ac_word... " >&6; }
10553 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10554 $as_echo_n "(cached) " >&6
10556 case $python_prog_path in
10558 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10561 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10562 for as_dir
in $PATH
10565 test -z "$as_dir" && as_dir
=.
10566 for ac_exec_ext
in '' $ac_executable_extensions; do
10567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10568 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10576 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10580 python_prog_path
=$ac_cv_path_python_prog_path
10581 if test -n "$python_prog_path"; then
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10583 $as_echo "$python_prog_path" >&6; }
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10586 $as_echo "no" >&6; }
10590 if test "${python_prog_path}" = missing
; then
10591 as_fn_error
"unable to find python program ${python_prog}" "$LINENO" 5
10597 if test "${python_prog}" != missing
; then
10598 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
10599 if test $?
!= 0; then
10600 as_fn_error
"failure running python-config --includes" "$LINENO" 5
10602 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10603 if test $?
!= 0; then
10604 as_fn_error
"failure running python-config --ldflags" "$LINENO" 5
10606 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10607 if test $?
!= 0; then
10608 as_fn_error
"failure running python-config --exec-prefix" "$LINENO" 5
10610 have_python_config
=yes
10612 # Fall back to gdb 7.0/7.1 behaviour.
10613 if test -z ${python_prefix}; then
10617 python_includes
="-I${python_prefix}/include"
10618 python_libs
="-L${python_prefix}/lib"
10620 have_python_config
=no
10623 # Having "/pythonX.Y" in the include path is awkward.
10624 # All those python headers get bubbled up to the top inviting lots
10625 # of random collisions. GDB originally didn't use python-config to
10626 # find the compilation parameters and includes "pythonX.Y/" in the
10627 # path of the, umm, include file. So strip away this part of the
10628 # output of python-config --includes.
10629 python_includes
=`echo "${python_includes} " \
10630 | sed -e 's,/python[0-9]*[.][0-9]* , ,g'`
10632 # If we have python-config, only try the configuration it provides.
10633 # Otherwise fallback on the old way of trying different versions of
10637 if test "${have_python_config}" = yes; then
10638 python_version
=`echo " ${python_libs} " \
10639 | sed -e 's,^.* -l\(python[0-9]*[.][0-9]*\) .*$,\1,'`
10640 case "${python_version}" in
10643 version
=${python_version}
10645 new_CPPFLAGS
=${python_includes}
10646 new_LIBS
=${python_libs}
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10648 $as_echo_n "checking for ${version}... " >&6; }
10649 save_CPPFLAGS
=$CPPFLAGS
10651 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10652 LIBS
="$LIBS $new_LIBS"
10653 found_usable_python
=no
10654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10655 /* end confdefs.h. */
10656 #include "${version}/Python.h"
10665 if ac_fn_c_try_link
"$LINENO"; then :
10666 have_libpython
=${version}
10667 found_usable_python
=yes
10669 CPPFLAGS
=$save_CPPFLAGS
10672 rm -f core conftest.err conftest.
$ac_objext \
10673 conftest
$ac_exeext conftest.
$ac_ext
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10675 $as_echo "${found_usable_python}" >&6; }
10679 as_fn_error
"unable to determine python version from ${python_libs}" "$LINENO" 5
10683 if test "${have_libpython}" = no
; then
10687 new_CPPFLAGS
=${python_includes}
10688 new_LIBS
="${python_libs} -lpython2.6"
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10690 $as_echo_n "checking for ${version}... " >&6; }
10691 save_CPPFLAGS
=$CPPFLAGS
10693 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10694 LIBS
="$LIBS $new_LIBS"
10695 found_usable_python
=no
10696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10697 /* end confdefs.h. */
10698 #include "${version}/Python.h"
10707 if ac_fn_c_try_link
"$LINENO"; then :
10708 have_libpython
=${version}
10709 found_usable_python
=yes
10711 CPPFLAGS
=$save_CPPFLAGS
10714 rm -f core conftest.err conftest.
$ac_objext \
10715 conftest
$ac_exeext conftest.
$ac_ext
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10717 $as_echo "${found_usable_python}" >&6; }
10720 if test ${have_libpython} = no
; then
10724 new_CPPFLAGS
=${python_includes}
10725 new_LIBS
="${python_libs} -lpython2.5"
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10727 $as_echo_n "checking for ${version}... " >&6; }
10728 save_CPPFLAGS
=$CPPFLAGS
10730 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10731 LIBS
="$LIBS $new_LIBS"
10732 found_usable_python
=no
10733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10734 /* end confdefs.h. */
10735 #include "${version}/Python.h"
10744 if ac_fn_c_try_link
"$LINENO"; then :
10745 have_libpython
=${version}
10746 found_usable_python
=yes
10748 CPPFLAGS
=$save_CPPFLAGS
10751 rm -f core conftest.err conftest.
$ac_objext \
10752 conftest
$ac_exeext conftest.
$ac_ext
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10754 $as_echo "${found_usable_python}" >&6; }
10757 if test ${have_libpython} = no
; then
10761 new_CPPFLAGS
=${python_includes}
10762 new_LIBS
="${python_libs} -lpython2.4"
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10764 $as_echo_n "checking for ${version}... " >&6; }
10765 save_CPPFLAGS
=$CPPFLAGS
10767 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10768 LIBS
="$LIBS $new_LIBS"
10769 found_usable_python
=no
10770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10771 /* end confdefs.h. */
10772 #include "${version}/Python.h"
10781 if ac_fn_c_try_link
"$LINENO"; then :
10782 have_libpython
=${version}
10783 found_usable_python
=yes
10785 CPPFLAGS
=$save_CPPFLAGS
10788 rm -f core conftest.err conftest.
$ac_objext \
10789 conftest
$ac_exeext conftest.
$ac_ext
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10791 $as_echo "${found_usable_python}" >&6; }
10795 if test "${have_libpython}" = python2.6
; then
10797 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
10799 elif test "${have_libpython}" = python2.5
; then
10801 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
10803 elif test "${have_libpython}" = python2.4
; then
10805 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
10809 if test "${have_libpython}" = no
; then
10810 case "${with_python}" in
10812 as_fn_error
"python is missing or unusable" "$LINENO" 5
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10816 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10819 as_fn_error
"no usable python found at ${with_python}" "$LINENO" 5
10823 if test -n "${python_prefix}"; then
10825 cat >>confdefs.h
<<_ACEOF
10826 #define WITH_PYTHON_PATH "${python_prefix}"
10830 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
10831 if test "x$prefix" = xNONE
; then
10832 test_prefix
=/usr
/local
10834 test_prefix
=$prefix
10837 test_prefix
=$exec_prefix
10840 case ${python_prefix} in
10841 "${test_prefix}"|
"${test_prefix}/"*|\
10842 '${exec_prefix}'|
'${exec_prefix}/'*)
10847 cat >>confdefs.h
<<_ACEOF
10848 #define PYTHON_PATH_RELOCATABLE $value
10856 if test "${have_libpython}" != no
; then
10858 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10860 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10861 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10862 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
10863 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
10865 # Flags needed to compile Python code (taken from python-config --cflags).
10866 # We cannot call python-config directly because it will output whatever was
10867 # used when compiling the Python interpreter itself, including flags which
10868 # would make the python-related objects be compiled differently from the
10869 # rest of GDB (e.g., -O2 and -fPIC).
10870 if test "${GCC}" = yes; then
10871 tentative_python_cflags
="-fno-strict-aliasing -DNDEBUG -fwrapv"
10874 if test "x${tentative_python_cflags}" != x
; then
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10876 $as_echo_n "checking compiler flags for python code... " >&6; }
10877 for flag
in ${tentative_python_cflags}; do
10878 # Check that the compiler accepts it
10879 saved_CFLAGS
="$CFLAGS"
10880 CFLAGS
="$CFLAGS $flag"
10881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10882 /* end confdefs.h. */
10892 if ac_fn_c_try_compile
"$LINENO"; then :
10893 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
10895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10896 CFLAGS
="$saved_CFLAGS"
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
10899 $as_echo "${PYTHON_CFLAGS}" >&6; }
10902 # Even if Python support is not compiled in, we need to have these files
10904 CONFIG_OBS
="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
10905 CONFIG_SRCS
="$CONFIG_SRCS python/python.c python/py-value.c \
10906 python/py-prettyprint.c python/py-auto-load.c"
10910 # ------------------------- #
10911 # Checks for header files. #
10912 # ------------------------- #
10914 ac_header_dirent
=no
10915 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
10916 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10918 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10919 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
10920 $as_echo_n "(cached) " >&6
10922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10923 /* end confdefs.h. */
10924 #include <sys/types.h>
10936 if ac_fn_c_try_compile
"$LINENO"; then :
10937 eval "$as_ac_Header=yes"
10939 eval "$as_ac_Header=no"
10941 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10943 eval ac_res
=\$
$as_ac_Header
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10945 $as_echo "$ac_res" >&6; }
10946 eval as_val
=\$
$as_ac_Header
10947 if test "x$as_val" = x
""yes; then :
10948 cat >>confdefs.h
<<_ACEOF
10949 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10952 ac_header_dirent
=$ac_hdr; break
10956 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10957 if test $ac_header_dirent = dirent.h
; then
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10959 $as_echo_n "checking for library containing opendir... " >&6; }
10960 if test "${ac_cv_search_opendir+set}" = set; then :
10961 $as_echo_n "(cached) " >&6
10963 ac_func_search_save_LIBS
=$LIBS
10964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10965 /* end confdefs.h. */
10967 /* Override any GCC internal prototype to avoid an error.
10968 Use char because int might match the return type of a GCC
10969 builtin and then its argument prototype would still apply. */
10982 for ac_lib
in '' dir
; do
10983 if test -z "$ac_lib"; then
10984 ac_res
="none required"
10987 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10989 if ac_fn_c_try_link
"$LINENO"; then :
10990 ac_cv_search_opendir
=$ac_res
10992 rm -f core conftest.err conftest.
$ac_objext \
10994 if test "${ac_cv_search_opendir+set}" = set; then :
10998 if test "${ac_cv_search_opendir+set}" = set; then :
11001 ac_cv_search_opendir
=no
11003 rm conftest.
$ac_ext
11004 LIBS
=$ac_func_search_save_LIBS
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11007 $as_echo "$ac_cv_search_opendir" >&6; }
11008 ac_res
=$ac_cv_search_opendir
11009 if test "$ac_res" != no
; then :
11010 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11016 $as_echo_n "checking for library containing opendir... " >&6; }
11017 if test "${ac_cv_search_opendir+set}" = set; then :
11018 $as_echo_n "(cached) " >&6
11020 ac_func_search_save_LIBS
=$LIBS
11021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11022 /* end confdefs.h. */
11024 /* Override any GCC internal prototype to avoid an error.
11025 Use char because int might match the return type of a GCC
11026 builtin and then its argument prototype would still apply. */
11039 for ac_lib
in '' x
; do
11040 if test -z "$ac_lib"; then
11041 ac_res
="none required"
11044 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11046 if ac_fn_c_try_link
"$LINENO"; then :
11047 ac_cv_search_opendir
=$ac_res
11049 rm -f core conftest.err conftest.
$ac_objext \
11051 if test "${ac_cv_search_opendir+set}" = set; then :
11055 if test "${ac_cv_search_opendir+set}" = set; then :
11058 ac_cv_search_opendir
=no
11060 rm conftest.
$ac_ext
11061 LIBS
=$ac_func_search_save_LIBS
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11064 $as_echo "$ac_cv_search_opendir" >&6; }
11065 ac_res
=$ac_cv_search_opendir
11066 if test "$ac_res" != no
; then :
11067 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11074 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11075 if test "${ac_cv_header_stat_broken+set}" = set; then :
11076 $as_echo_n "(cached) " >&6
11078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11079 /* end confdefs.h. */
11080 #include <sys/types.h>
11081 #include <sys/stat.h>
11083 #if defined S_ISBLK && defined S_IFDIR
11084 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11087 #if defined S_ISBLK && defined S_IFCHR
11088 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11091 #if defined S_ISLNK && defined S_IFREG
11092 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11095 #if defined S_ISSOCK && defined S_IFREG
11096 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11100 if ac_fn_c_try_compile
"$LINENO"; then :
11101 ac_cv_header_stat_broken
=no
11103 ac_cv_header_stat_broken
=yes
11105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11108 $as_echo "$ac_cv_header_stat_broken" >&6; }
11109 if test $ac_cv_header_stat_broken = yes; then
11111 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11116 $as_echo_n "checking for ANSI C header files... " >&6; }
11117 if test "${ac_cv_header_stdc+set}" = set; then :
11118 $as_echo_n "(cached) " >&6
11120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11121 /* end confdefs.h. */
11122 #include <stdlib.h>
11123 #include <stdarg.h>
11124 #include <string.h>
11135 if ac_fn_c_try_compile
"$LINENO"; then :
11136 ac_cv_header_stdc
=yes
11138 ac_cv_header_stdc
=no
11140 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11142 if test $ac_cv_header_stdc = yes; then
11143 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11145 /* end confdefs.h. */
11146 #include <string.h>
11149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11150 $EGREP "memchr" >/dev
/null
2>&1; then :
11153 ac_cv_header_stdc
=no
11159 if test $ac_cv_header_stdc = yes; then
11160 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11162 /* end confdefs.h. */
11163 #include <stdlib.h>
11166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11167 $EGREP "free" >/dev
/null
2>&1; then :
11170 ac_cv_header_stdc
=no
11176 if test $ac_cv_header_stdc = yes; then
11177 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11178 if test "$cross_compiling" = yes; then :
11181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11182 /* end confdefs.h. */
11184 #include <stdlib.h>
11185 #if ((' ' & 0x0FF) == 0x020)
11186 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11187 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11189 # define ISLOWER(c) \
11190 (('a' <= (c) && (c) <= 'i') \
11191 || ('j' <= (c) && (c) <= 'r') \
11192 || ('s' <= (c) && (c) <= 'z'))
11193 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11196 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11201 for (i = 0; i < 256; i++)
11202 if (XOR (islower (i), ISLOWER (i))
11203 || toupper (i) != TOUPPER (i))
11208 if ac_fn_c_try_run
"$LINENO"; then :
11211 ac_cv_header_stdc
=no
11213 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11214 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11220 $as_echo "$ac_cv_header_stdc" >&6; }
11221 if test $ac_cv_header_stdc = yes; then
11223 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11227 # elf_hp.h is for HP/UX 64-bit shared library support.
11228 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
11229 # unconditionally, so what's the point in checking these?
11230 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
11231 thread_db.h gnu
/libc-version.h signal.h stddef.h \
11232 stdlib.h string.h memory.h
strings.h sys
/fault.h \
11233 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
11234 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
11235 sys
/reg.h sys
/debugreg.h sys
/select.h sys
/syscall.h \
11236 sys
/types.h sys
/wait.h
wait.h termios.h termio.h \
11237 sgtty.h unistd.h elf_hp.h ctype.h
time.h locale.h
11239 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11240 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11241 eval as_val
=\$
$as_ac_Header
11242 if test "x$as_val" = x
""yes; then :
11243 cat >>confdefs.h
<<_ACEOF
11244 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11251 for ac_header
in link.h
11253 ac_fn_c_check_header_compile
"$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
11254 # include <sys/types.h>
11257 # include <nlist.h>
11261 if test "x$ac_cv_header_link_h" = x
""yes; then :
11262 cat >>confdefs.h
<<_ACEOF
11263 #define HAVE_LINK_H 1
11270 for ac_header
in sys
/proc.h
11272 ac_fn_c_check_header_compile
"$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
11273 # include <sys/param.h>
11277 if test "x$ac_cv_header_sys_proc_h" = x
""yes; then :
11278 cat >>confdefs.h
<<_ACEOF
11279 #define HAVE_SYS_PROC_H 1
11286 for ac_header
in sys
/user.h
11288 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
11289 # include <sys/param.h>
11293 if test "x$ac_cv_header_sys_user_h" = x
""yes; then :
11294 cat >>confdefs.h
<<_ACEOF
11295 #define HAVE_SYS_USER_H 1
11303 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
11304 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
11305 # think that we don't have <curses.h> if we're using GCC.
11308 if test "$GCC" = yes; then
11310 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
11314 for ac_header
in curses.h cursesX.h ncurses.h ncurses
/ncurses.h ncurses
/term.h
11316 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11317 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11318 eval as_val
=\$
$as_ac_Header
11319 if test "x$as_val" = x
""yes; then :
11320 cat >>confdefs.h
<<_ACEOF
11321 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11328 for ac_header
in term.h
11330 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
11331 # include <curses.h>
11335 if test "x$ac_cv_header_term_h" = x
""yes; then :
11336 cat >>confdefs.h
<<_ACEOF
11337 #define HAVE_TERM_H 1
11345 # ------------------------- #
11346 # Checks for declarations. #
11347 # ------------------------- #
11349 ac_fn_c_check_decl
"$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
11350 if test "x$ac_cv_have_decl_free" = x
""yes; then :
11356 cat >>confdefs.h
<<_ACEOF
11357 #define HAVE_DECL_FREE $ac_have_decl
11359 ac_fn_c_check_decl
"$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
11360 if test "x$ac_cv_have_decl_malloc" = x
""yes; then :
11366 cat >>confdefs.h
<<_ACEOF
11367 #define HAVE_DECL_MALLOC $ac_have_decl
11369 ac_fn_c_check_decl
"$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
11370 if test "x$ac_cv_have_decl_realloc" = x
""yes; then :
11376 cat >>confdefs.h
<<_ACEOF
11377 #define HAVE_DECL_REALLOC $ac_have_decl
11379 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
11380 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
11386 cat >>confdefs.h
<<_ACEOF
11387 #define HAVE_DECL_STRERROR $ac_have_decl
11389 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
11390 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
11396 cat >>confdefs.h
<<_ACEOF
11397 #define HAVE_DECL_STRSTR $ac_have_decl
11399 ac_fn_c_check_decl
"$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
11400 if test "x$ac_cv_have_decl_getopt" = x
""yes; then :
11406 cat >>confdefs.h
<<_ACEOF
11407 #define HAVE_DECL_GETOPT $ac_have_decl
11409 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11410 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
11416 cat >>confdefs.h
<<_ACEOF
11417 #define HAVE_DECL_SNPRINTF $ac_have_decl
11419 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
11420 if test "x$ac_cv_have_decl_vsnprintf" = x
""yes; then :
11426 cat >>confdefs.h
<<_ACEOF
11427 #define HAVE_DECL_VSNPRINTF $ac_have_decl
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11432 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11433 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
11434 $as_echo_n "(cached) " >&6
11436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11437 /* end confdefs.h. */
11438 #include <locale.h>
11447 if ac_fn_c_try_link
"$LINENO"; then :
11448 am_cv_val_LC_MESSAGES
=yes
11450 am_cv_val_LC_MESSAGES
=no
11452 rm -f core conftest.err conftest.
$ac_objext \
11453 conftest
$ac_exeext conftest.
$ac_ext
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11456 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11457 if test $am_cv_val_LC_MESSAGES = yes; then
11459 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11464 # ----------------------- #
11465 # Checks for structures. #
11466 # ----------------------- #
11468 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
11469 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then :
11471 cat >>confdefs.h
<<_ACEOF
11472 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11477 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
11478 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then :
11480 cat >>confdefs.h
<<_ACEOF
11481 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11488 # ------------------ #
11489 # Checks for types. #
11490 # ------------------ #
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11493 $as_echo_n "checking return type of signal handlers... " >&6; }
11494 if test "${ac_cv_type_signal+set}" = set; then :
11495 $as_echo_n "(cached) " >&6
11497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11498 /* end confdefs.h. */
11499 #include <sys/types.h>
11500 #include <signal.h>
11505 return *(signal (0, 0)) (0) == 1;
11510 if ac_fn_c_try_compile
"$LINENO"; then :
11511 ac_cv_type_signal
=int
11513 ac_cv_type_signal
=void
11515 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11518 $as_echo "$ac_cv_type_signal" >&6; }
11520 cat >>confdefs.h
<<_ACEOF
11521 #define RETSIGTYPE $ac_cv_type_signal
11525 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11526 #include <sys/socket.h>
11529 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
11531 cat >>confdefs.h
<<_ACEOF
11532 #define HAVE_SOCKLEN_T 1
11539 # ------------------------------------- #
11540 # Checks for compiler characteristics. #
11541 # ------------------------------------- #
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11544 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11545 if test "${ac_cv_c_const+set}" = set; then :
11546 $as_echo_n "(cached) " >&6
11548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11549 /* end confdefs.h. */
11554 /* FIXME: Include the comments suggested by Paul. */
11555 #ifndef __cplusplus
11556 /* Ultrix mips cc rejects this. */
11557 typedef int charset[2];
11559 /* SunOS 4.1.1 cc rejects this. */
11560 char const *const *pcpcc;
11562 /* NEC SVR4.0.2 mips cc rejects this. */
11563 struct point {int x, y;};
11564 static struct point const zero = {0,0};
11565 /* AIX XL C 1.02.0.0 rejects this.
11566 It does not let you subtract one const X* pointer from another in
11567 an arm of an if-expression whose if-part is not a constant
11569 const char *g = "string";
11570 pcpcc = &g + (g ? g-g : 0);
11571 /* HPUX 7.0 cc rejects these. */
11573 ppc = (char**) pcpcc;
11574 pcpcc = (char const *const *) ppc;
11575 { /* SCO 3.2v4 cc rejects this. */
11577 char const *s = 0 ? (char *) 0 : (char const *) 0;
11582 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11583 int x[] = {25, 17};
11584 const int *foo = &x[0];
11587 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11588 typedef const int *iptr;
11592 { /* AIX XL C 1.02.0.0 rejects this saying
11593 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11594 struct s { int j; const int *ap[3]; };
11595 struct s *b; b->j = 5;
11597 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11598 const int foo = 10;
11599 if (!foo) return 0;
11601 return !cs[0] && !zero.x;
11608 if ac_fn_c_try_compile
"$LINENO"; then :
11613 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11616 $as_echo "$ac_cv_c_const" >&6; }
11617 if test $ac_cv_c_const = no
; then
11619 $as_echo "#define const /**/" >>confdefs.h
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11624 $as_echo_n "checking for inline... " >&6; }
11625 if test "${ac_cv_c_inline+set}" = set; then :
11626 $as_echo_n "(cached) " >&6
11629 for ac_kw
in inline __inline__ __inline
; do
11630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11631 /* end confdefs.h. */
11632 #ifndef __cplusplus
11634 static $ac_kw foo_t static_foo () {return 0; }
11635 $ac_kw foo_t foo () {return 0; }
11639 if ac_fn_c_try_compile
"$LINENO"; then :
11640 ac_cv_c_inline
=$ac_kw
11642 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11643 test "$ac_cv_c_inline" != no
&& break
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11648 $as_echo "$ac_cv_c_inline" >&6; }
11650 case $ac_cv_c_inline in
11653 case $ac_cv_c_inline in
11655 *) ac_val
=$ac_cv_c_inline;;
11657 cat >>confdefs.h
<<_ACEOF
11658 #ifndef __cplusplus
11659 #define inline $ac_val
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11666 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11667 if test "${ac_cv_c_bigendian+set}" = set; then :
11668 $as_echo_n "(cached) " >&6
11670 ac_cv_c_bigendian
=unknown
11671 # See if we're dealing with a universal compiler.
11672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11673 /* end confdefs.h. */
11674 #ifndef __APPLE_CC__
11675 not a universal capable compiler
11680 if ac_fn_c_try_compile
"$LINENO"; then :
11682 # Check for potential -arch flags. It is not universal unless
11683 # there are at least two -arch flags with different values.
11686 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11687 if test -n "$ac_prev"; then
11689 i?
86 | x86_64 | ppc | ppc64
)
11690 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
11693 ac_cv_c_bigendian
=universal
11699 elif test "x$ac_word" = "x-arch"; then
11704 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11705 if test $ac_cv_c_bigendian = unknown
; then
11706 # See if sys/param.h defines the BYTE_ORDER macro.
11707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11708 /* end confdefs.h. */
11709 #include <sys/types.h>
11710 #include <sys/param.h>
11715 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11716 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11718 bogus endian macros
11725 if ac_fn_c_try_compile
"$LINENO"; then :
11726 # It does; now see whether it defined to BIG_ENDIAN or not.
11727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11728 /* end confdefs.h. */
11729 #include <sys/types.h>
11730 #include <sys/param.h>
11735 #if BYTE_ORDER != BIG_ENDIAN
11743 if ac_fn_c_try_compile
"$LINENO"; then :
11744 ac_cv_c_bigendian
=yes
11746 ac_cv_c_bigendian
=no
11748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11752 if test $ac_cv_c_bigendian = unknown
; then
11753 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11755 /* end confdefs.h. */
11756 #include <limits.h>
11761 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11762 bogus endian macros
11769 if ac_fn_c_try_compile
"$LINENO"; then :
11770 # It does; now see whether it defined to _BIG_ENDIAN or not.
11771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11772 /* end confdefs.h. */
11773 #include <limits.h>
11778 #ifndef _BIG_ENDIAN
11786 if ac_fn_c_try_compile
"$LINENO"; then :
11787 ac_cv_c_bigendian
=yes
11789 ac_cv_c_bigendian
=no
11791 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11793 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11795 if test $ac_cv_c_bigendian = unknown
; then
11796 # Compile a test program.
11797 if test "$cross_compiling" = yes; then :
11798 # Try to guess by grepping values from an object file.
11799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11800 /* end confdefs.h. */
11801 short int ascii_mm[] =
11802 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11803 short int ascii_ii[] =
11804 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11805 int use_ascii (int i) {
11806 return ascii_mm[i] + ascii_ii[i];
11808 short int ebcdic_ii[] =
11809 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11810 short int ebcdic_mm[] =
11811 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11812 int use_ebcdic (int i) {
11813 return ebcdic_mm[i] + ebcdic_ii[i];
11820 return use_ascii (foo) == use_ebcdic (foo);
11825 if ac_fn_c_try_compile
"$LINENO"; then :
11826 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
11827 ac_cv_c_bigendian
=yes
11829 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
11830 if test "$ac_cv_c_bigendian" = unknown
; then
11831 ac_cv_c_bigendian
=no
11833 # finding both strings is unlikely to happen, but who knows?
11834 ac_cv_c_bigendian
=unknown
11838 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11841 /* end confdefs.h. */
11842 $ac_includes_default
11847 /* Are we little or big endian? From Harbison&Steele. */
11851 char c[sizeof (long int)];
11854 return u.c[sizeof (long int) - 1] == 1;
11860 if ac_fn_c_try_run
"$LINENO"; then :
11861 ac_cv_c_bigendian
=no
11863 ac_cv_c_bigendian
=yes
11865 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11866 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11872 $as_echo "$ac_cv_c_bigendian" >&6; }
11873 case $ac_cv_c_bigendian in #(
11875 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11881 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11885 as_fn_error
"unknown endianness
11886 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11890 # ------------------------------ #
11891 # Checks for library functions. #
11892 # ------------------------------ #
11894 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11895 # for constant arguments. Useless!
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11897 $as_echo_n "checking for working alloca.h... " >&6; }
11898 if test "${ac_cv_working_alloca_h+set}" = set; then :
11899 $as_echo_n "(cached) " >&6
11901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11902 /* end confdefs.h. */
11903 #include <alloca.h>
11907 char *p = (char *) alloca (2 * sizeof (int));
11913 if ac_fn_c_try_link
"$LINENO"; then :
11914 ac_cv_working_alloca_h
=yes
11916 ac_cv_working_alloca_h
=no
11918 rm -f core conftest.err conftest.
$ac_objext \
11919 conftest
$ac_exeext conftest.
$ac_ext
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11922 $as_echo "$ac_cv_working_alloca_h" >&6; }
11923 if test $ac_cv_working_alloca_h = yes; then
11925 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11930 $as_echo_n "checking for alloca... " >&6; }
11931 if test "${ac_cv_func_alloca_works+set}" = set; then :
11932 $as_echo_n "(cached) " >&6
11934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11935 /* end confdefs.h. */
11937 # define alloca __builtin_alloca
11940 # include <malloc.h>
11941 # define alloca _alloca
11943 # ifdef HAVE_ALLOCA_H
11944 # include <alloca.h>
11949 # ifndef alloca /* predefined by HP cc +Olibcalls */
11960 char *p = (char *) alloca (1);
11966 if ac_fn_c_try_link
"$LINENO"; then :
11967 ac_cv_func_alloca_works
=yes
11969 ac_cv_func_alloca_works
=no
11971 rm -f core conftest.err conftest.
$ac_objext \
11972 conftest
$ac_exeext conftest.
$ac_ext
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11975 $as_echo "$ac_cv_func_alloca_works" >&6; }
11977 if test $ac_cv_func_alloca_works = yes; then
11979 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11982 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11983 # that cause trouble. Some versions do not even contain alloca or
11984 # contain a buggy version. If you still want to use their alloca,
11985 # use ar to extract alloca.o from them instead of compiling alloca.c.
11987 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
11989 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11993 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11994 if test "${ac_cv_os_cray+set}" = set; then :
11995 $as_echo_n "(cached) " >&6
11997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11998 /* end confdefs.h. */
11999 #if defined CRAY && ! defined CRAY2
12006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12007 $EGREP "webecray" >/dev
/null
2>&1; then :
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12016 $as_echo "$ac_cv_os_cray" >&6; }
12017 if test $ac_cv_os_cray = yes; then
12018 for ac_func
in _getb67 GETB67 getb67
; do
12019 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12020 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12021 eval as_val
=\$
$as_ac_var
12022 if test "x$as_val" = x
""yes; then :
12024 cat >>confdefs.h
<<_ACEOF
12025 #define CRAY_STACKSEG_END $ac_func
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12035 $as_echo_n "checking stack direction for C alloca... " >&6; }
12036 if test "${ac_cv_c_stack_direction+set}" = set; then :
12037 $as_echo_n "(cached) " >&6
12039 if test "$cross_compiling" = yes; then :
12040 ac_cv_c_stack_direction
=0
12042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12043 /* end confdefs.h. */
12044 $ac_includes_default
12046 find_stack_direction ()
12048 static char *addr = 0;
12053 return find_stack_direction ();
12056 return (&dummy > addr) ? 1 : -1;
12062 return find_stack_direction () < 0;
12065 if ac_fn_c_try_run
"$LINENO"; then :
12066 ac_cv_c_stack_direction
=1
12068 ac_cv_c_stack_direction
=-1
12070 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12071 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12076 $as_echo "$ac_cv_c_stack_direction" >&6; }
12077 cat >>confdefs.h
<<_ACEOF
12078 #define STACK_DIRECTION $ac_cv_c_stack_direction
12084 for ac_header
in stdlib.h unistd.h
12086 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12087 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12088 eval as_val
=\$
$as_ac_Header
12089 if test "x$as_val" = x
""yes; then :
12090 cat >>confdefs.h
<<_ACEOF
12091 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12098 for ac_func
in getpagesize
12100 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12101 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
12102 cat >>confdefs.h
<<_ACEOF
12103 #define HAVE_GETPAGESIZE 1
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12110 $as_echo_n "checking for working mmap... " >&6; }
12111 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12112 $as_echo_n "(cached) " >&6
12114 if test "$cross_compiling" = yes; then :
12115 ac_cv_func_mmap_fixed_mapped
=no
12117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12118 /* end confdefs.h. */
12119 $ac_includes_default
12120 /* malloc might have been renamed as rpl_malloc. */
12123 /* Thanks to Mike Haertel and Jim Avera for this test.
12124 Here is a matrix of mmap possibilities:
12125 mmap private not fixed
12126 mmap private fixed at somewhere currently unmapped
12127 mmap private fixed at somewhere already mapped
12128 mmap shared not fixed
12129 mmap shared fixed at somewhere currently unmapped
12130 mmap shared fixed at somewhere already mapped
12131 For private mappings, we should verify that changes cannot be read()
12132 back from the file, nor mmap's back from the file at a different
12133 address. (There have been systems where private was not correctly
12134 implemented like the infamous i386 svr4.0, and systems where the
12135 VM page cache was not coherent with the file system buffer cache
12136 like early versions of FreeBSD and possibly contemporary NetBSD.)
12137 For shared mappings, we should conversely verify that changes get
12138 propagated back to all the places they're supposed to be.
12140 Grep wants private fixed already mapped.
12141 The main things grep needs to know about mmap are:
12142 * does it exist and is it safe to write into the mmap'd area
12143 * how to use it (BSD variants) */
12146 #include <sys/mman.h>
12148 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12152 /* This mess was copied from the GNU getpagesize.h. */
12153 #ifndef HAVE_GETPAGESIZE
12154 /* Assume that all systems that can run configure have sys/param.h. */
12155 # ifndef HAVE_SYS_PARAM_H
12156 # define HAVE_SYS_PARAM_H 1
12159 # ifdef _SC_PAGESIZE
12160 # define getpagesize() sysconf(_SC_PAGESIZE)
12161 # else /* no _SC_PAGESIZE */
12162 # ifdef HAVE_SYS_PARAM_H
12163 # include <sys/param.h>
12164 # ifdef EXEC_PAGESIZE
12165 # define getpagesize() EXEC_PAGESIZE
12166 # else /* no EXEC_PAGESIZE */
12168 # define getpagesize() NBPG * CLSIZE
12171 # endif /* no CLSIZE */
12172 # else /* no NBPG */
12174 # define getpagesize() NBPC
12175 # else /* no NBPC */
12177 # define getpagesize() PAGESIZE
12178 # endif /* PAGESIZE */
12179 # endif /* no NBPC */
12180 # endif /* no NBPG */
12181 # endif /* no EXEC_PAGESIZE */
12182 # else /* no HAVE_SYS_PARAM_H */
12183 # define getpagesize() 8192 /* punt totally */
12184 # endif /* no HAVE_SYS_PARAM_H */
12185 # endif /* no _SC_PAGESIZE */
12187 #endif /* no HAVE_GETPAGESIZE */
12192 char *data, *data2, *data3;
12196 pagesize = getpagesize ();
12198 /* First, make a file with some known garbage in it. */
12199 data = (char *) malloc (pagesize);
12202 for (i = 0; i < pagesize; ++i)
12203 *(data + i) = rand ();
12205 fd = creat ("conftest.mmap", 0600);
12208 if (write (fd, data, pagesize) != pagesize)
12212 /* Next, try to mmap the file at a fixed address which already has
12213 something else allocated at it. If we can, also make sure that
12214 we see the same garbage. */
12215 fd = open ("conftest.mmap", O_RDWR);
12218 data2 = (char *) malloc (2 * pagesize);
12221 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12222 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12223 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12225 for (i = 0; i < pagesize; ++i)
12226 if (*(data + i) != *(data2 + i))
12229 /* Finally, make sure that changes to the mapped area do not
12230 percolate back to the file as seen by read(). (This is a bug on
12231 some variants of i386 svr4.0.) */
12232 for (i = 0; i < pagesize; ++i)
12233 *(data2 + i) = *(data2 + i) + 1;
12234 data3 = (char *) malloc (pagesize);
12237 if (read (fd, data3, pagesize) != pagesize)
12239 for (i = 0; i < pagesize; ++i)
12240 if (*(data + i) != *(data3 + i))
12246 if ac_fn_c_try_run
"$LINENO"; then :
12247 ac_cv_func_mmap_fixed_mapped
=yes
12249 ac_cv_func_mmap_fixed_mapped
=no
12251 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12252 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12257 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12258 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12260 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12263 rm -f conftest.mmap
12265 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12266 if test "x$ac_cv_type_pid_t" = x
""yes; then :
12270 cat >>confdefs.h
<<_ACEOF
12276 for ac_header
in vfork.h
12278 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12279 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
12280 cat >>confdefs.h
<<_ACEOF
12281 #define HAVE_VFORK_H 1
12288 for ac_func
in fork vfork
12290 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12291 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12292 eval as_val
=\$
$as_ac_var
12293 if test "x$as_val" = x
""yes; then :
12294 cat >>confdefs.h
<<_ACEOF
12295 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12301 if test "x$ac_cv_func_fork" = xyes
; then
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12303 $as_echo_n "checking for working fork... " >&6; }
12304 if test "${ac_cv_func_fork_works+set}" = set; then :
12305 $as_echo_n "(cached) " >&6
12307 if test "$cross_compiling" = yes; then :
12308 ac_cv_func_fork_works
=cross
12310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12311 /* end confdefs.h. */
12312 $ac_includes_default
12317 /* By Ruediger Kuhlmann. */
12318 return fork () < 0;
12324 if ac_fn_c_try_run
"$LINENO"; then :
12325 ac_cv_func_fork_works
=yes
12327 ac_cv_func_fork_works
=no
12329 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12330 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12335 $as_echo "$ac_cv_func_fork_works" >&6; }
12338 ac_cv_func_fork_works
=$ac_cv_func_fork
12340 if test "x$ac_cv_func_fork_works" = xcross
; then
12342 *-*-amigaos* |
*-*-msdosdjgpp*)
12343 # Override, as these systems have only a dummy fork() stub
12344 ac_cv_func_fork_works
=no
12347 ac_cv_func_fork_works
=yes
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12351 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12353 ac_cv_func_vfork_works
=$ac_cv_func_vfork
12354 if test "x$ac_cv_func_vfork" = xyes
; then
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12356 $as_echo_n "checking for working vfork... " >&6; }
12357 if test "${ac_cv_func_vfork_works+set}" = set; then :
12358 $as_echo_n "(cached) " >&6
12360 if test "$cross_compiling" = yes; then :
12361 ac_cv_func_vfork_works
=cross
12363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12364 /* end confdefs.h. */
12365 /* Thanks to Paul Eggert for this test. */
12366 $ac_includes_default
12367 #include <sys/wait.h>
12368 #ifdef HAVE_VFORK_H
12369 # include <vfork.h>
12371 /* On some sparc systems, changes by the child to local and incoming
12372 argument registers are propagated back to the parent. The compiler
12373 is told about this with #include <vfork.h>, but some compilers
12374 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12375 static variable whose address is put into a register that is
12376 clobbered by the vfork. */
12379 sparc_address_test (int arg)
12381 sparc_address_test (arg) int arg;
12384 static pid_t child;
12402 pid_t parent = getpid ();
12405 sparc_address_test (0);
12410 /* Here is another test for sparc vfork register problems. This
12411 test uses lots of local variables, at least as many local
12412 variables as main has allocated so far including compiler
12413 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12414 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12415 reuse the register of parent for one of the local variables,
12416 since it will think that parent can't possibly be used any more
12417 in this routine. Assigning to the local variable will thus
12418 munge parent in the parent process. */
12420 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12421 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12422 /* Convince the compiler that p..p7 are live; otherwise, it might
12423 use the same hardware register for all 8 local variables. */
12424 if (p != p1 || p != p2 || p != p3 || p != p4
12425 || p != p5 || p != p6 || p != p7)
12428 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12429 from child file descriptors. If the child closes a descriptor
12430 before it execs or exits, this munges the parent's descriptor
12431 as well. Test for this by closing stdout in the child. */
12432 _exit(close(fileno(stdout)) != 0);
12437 while (wait(&status) != child)
12440 /* Was there some problem with vforking? */
12443 /* Did the child fail? (This shouldn't happen.) */
12446 /* Did the vfork/compiler bug occur? */
12447 || parent != getpid()
12449 /* Did the file descriptor bug occur? */
12450 || fstat(fileno(stdout), &st) != 0
12455 if ac_fn_c_try_run
"$LINENO"; then :
12456 ac_cv_func_vfork_works
=yes
12458 ac_cv_func_vfork_works
=no
12460 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12461 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12466 $as_echo "$ac_cv_func_vfork_works" >&6; }
12469 if test "x$ac_cv_func_fork_works" = xcross
; then
12470 ac_cv_func_vfork_works
=$ac_cv_func_vfork
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12472 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12475 if test "x$ac_cv_func_vfork_works" = xyes
; then
12477 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12481 $as_echo "#define vfork fork" >>confdefs.h
12484 if test "x$ac_cv_func_fork_works" = xyes
; then
12486 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12490 for ac_func
in canonicalize_file_name realpath getrusage getuid \
12491 getgid pipe poll pread64 sbrk setpgid setpgrp setsid \
12492 sigaction sigprocmask sigsetmask socketpair syscall \
12493 ttrace wborder setlocale iconvlist libiconvlist btowc \
12494 setrlimit getrlimit posix_madvise
12496 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12497 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12498 eval as_val
=\$
$as_ac_var
12499 if test "x$as_val" = x
""yes; then :
12500 cat >>confdefs.h
<<_ACEOF
12501 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12509 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12510 if test "${am_cv_langinfo_codeset+set}" = set; then :
12511 $as_echo_n "(cached) " >&6
12513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12514 /* end confdefs.h. */
12515 #include <langinfo.h>
12519 char* cs = nl_langinfo(CODESET);
12524 if ac_fn_c_try_link
"$LINENO"; then :
12525 am_cv_langinfo_codeset
=yes
12527 am_cv_langinfo_codeset
=no
12529 rm -f core conftest.err conftest.
$ac_objext \
12530 conftest
$ac_exeext conftest.
$ac_ext
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12534 $as_echo "$am_cv_langinfo_codeset" >&6; }
12535 if test $am_cv_langinfo_codeset = yes; then
12537 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12542 # Check the return and argument types of ptrace. No canned test for
12543 # this, so roll our own.
12544 gdb_ptrace_headers
='
12545 #if HAVE_SYS_TYPES_H
12546 # include <sys/types.h>
12548 #if HAVE_SYS_PTRACE_H
12549 # include <sys/ptrace.h>
12552 # include <unistd.h>
12555 # There is no point in checking if we don't have a prototype.
12556 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
12558 if test "x$ac_cv_have_decl_ptrace" = x
""yes; then :
12564 cat >>confdefs.h
<<_ACEOF
12565 #define HAVE_DECL_PTRACE $ac_have_decl
12567 if test $ac_have_decl = 1; then :
12571 : ${gdb_cv_func_ptrace_ret='int'}
12572 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12576 # Check return type. Varargs (used on GNU/Linux) conflict with the
12577 # empty argument list, so check for that explicitly.
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
12579 $as_echo_n "checking return type of ptrace... " >&6; }
12580 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
12581 $as_echo_n "(cached) " >&6
12583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12584 /* end confdefs.h. */
12585 $gdb_ptrace_headers
12589 extern long ptrace (enum __ptrace_request, ...);
12594 if ac_fn_c_try_compile
"$LINENO"; then :
12595 gdb_cv_func_ptrace_ret
='long'
12597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12598 /* end confdefs.h. */
12599 $gdb_ptrace_headers
12603 extern int ptrace ();
12608 if ac_fn_c_try_compile
"$LINENO"; then :
12609 gdb_cv_func_ptrace_ret
='int'
12611 gdb_cv_func_ptrace_ret
='long'
12613 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12615 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
12618 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
12620 cat >>confdefs.h
<<_ACEOF
12621 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
12624 # Check argument types.
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
12626 $as_echo_n "checking types of arguments for ptrace... " >&6; }
12627 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
12628 $as_echo_n "(cached) " >&6
12631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12632 /* end confdefs.h. */
12633 $gdb_ptrace_headers
12637 extern long ptrace (enum __ptrace_request, ...);
12642 if ac_fn_c_try_compile
"$LINENO"; then :
12643 gdb_cv_func_ptrace_args
='int,int,long,long'
12646 for gdb_arg1
in 'int' 'long'; do
12647 for gdb_arg2
in 'pid_t' 'int' 'long'; do
12648 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
12649 for gdb_arg4
in 'int' 'long'; do
12650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12651 /* end confdefs.h. */
12652 $gdb_ptrace_headers
12657 extern $gdb_cv_func_ptrace_ret
12658 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
12664 if ac_fn_c_try_compile
"$LINENO"; then :
12665 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
12668 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12669 for gdb_arg5
in 'int *' 'int' 'long'; do
12670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12671 /* end confdefs.h. */
12672 $gdb_ptrace_headers
12677 extern $gdb_cv_func_ptrace_ret
12678 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
12684 if ac_fn_c_try_compile
"$LINENO"; then :
12686 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
12689 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12695 # Provide a safe default value.
12696 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
12702 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
12703 ac_save_IFS
=$IFS; IFS
=','
12704 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
12708 cat >>confdefs.h
<<_ACEOF
12709 #define PTRACE_TYPE_ARG3 $3
12712 if test -n "$5"; then
12714 cat >>confdefs.h
<<_ACEOF
12715 #define PTRACE_TYPE_ARG5 $5
12720 if test "$cross_compiling" = no
; then
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12722 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12723 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12724 $as_echo_n "(cached) " >&6
12726 if test "$cross_compiling" = yes; then :
12727 as_fn_error
"cannot check setpgrp when cross compiling" "$LINENO" 5
12729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12730 /* end confdefs.h. */
12731 $ac_includes_default
12735 /* If this system has a BSD-style setpgrp which takes arguments,
12736 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
12737 exit successfully. */
12738 return setpgrp (1,1) != -1;
12743 if ac_fn_c_try_run
"$LINENO"; then :
12744 ac_cv_func_setpgrp_void
=no
12746 ac_cv_func_setpgrp_void
=yes
12748 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12749 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12754 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12755 if test $ac_cv_func_setpgrp_void = yes; then
12757 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12763 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12764 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12765 $as_echo_n "(cached) " >&6
12767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12768 /* end confdefs.h. */
12770 #include <unistd.h>
12776 if (setpgrp(1,1) == -1)
12785 if ac_fn_c_try_compile
"$LINENO"; then :
12786 ac_cv_func_setpgrp_void
=no
12788 ac_cv_func_setpgrp_void
=yes
12790 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12793 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12794 if test $ac_cv_func_setpgrp_void = yes; then
12795 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12800 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
12801 # since sigsetjmp might only be defined as a macro.
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
12803 $as_echo_n "checking for sigsetjmp... " >&6; }
12804 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
12805 $as_echo_n "(cached) " >&6
12807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12808 /* end confdefs.h. */
12810 #include <setjmp.h>
12815 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
12820 if ac_fn_c_try_compile
"$LINENO"; then :
12821 gdb_cv_func_sigsetjmp
=yes
12823 gdb_cv_func_sigsetjmp
=no
12825 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
12828 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
12829 if test $gdb_cv_func_sigsetjmp = yes; then
12831 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
12835 # Assume we'll default to using the included libiberty regex.
12836 gdb_use_included_regex
=yes
12838 # However, if the system regex is GNU regex, then default to *not*
12839 # using the included regex.
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
12841 $as_echo_n "checking for GNU regex... " >&6; }
12842 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
12843 $as_echo_n "(cached) " >&6
12845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12846 /* end confdefs.h. */
12847 #include <gnu-versions.h>
12851 #define REGEX_INTERFACE_VERSION 1
12852 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
12853 # error "Version mismatch"
12859 if ac_fn_c_try_compile
"$LINENO"; then :
12860 gdb_cv_have_gnu_regex
=yes
12862 gdb_cv_have_gnu_regex
=no
12864 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
12867 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
12868 if test $gdb_cv_have_gnu_regex = yes; then
12869 gdb_use_included_regex
=no
12873 # Check whether --with-included-regex was given.
12874 if test "${with_included_regex+set}" = set; then :
12875 withval
=$with_included_regex; gdb_with_regex
=$withval
12877 gdb_with_regex
=$gdb_use_included_regex
12880 if test "$gdb_with_regex" = yes; then
12882 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
12886 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
12887 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
12888 #include <sys/proc.h>
12891 if test "x$ac_cv_member_struct_thread_td_pcb" = x
""yes; then :
12893 cat >>confdefs.h
<<_ACEOF
12894 #define HAVE_STRUCT_THREAD_TD_PCB 1
12901 # See if <sys/lwp.h> defines `struct lwp`.
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
12903 $as_echo_n "checking for struct lwp... " >&6; }
12904 if test "${gdb_cv_struct_lwp+set}" = set; then :
12905 $as_echo_n "(cached) " >&6
12907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12908 /* end confdefs.h. */
12909 #include <sys/param.h>
12910 #include <sys/lwp.h>
12919 if ac_fn_c_try_compile
"$LINENO"; then :
12920 gdb_cv_struct_lwp
=yes
12922 gdb_cv_struct_lwp
=no
12924 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
12927 $as_echo "$gdb_cv_struct_lwp" >&6; }
12928 if test $gdb_cv_struct_lwp = yes; then
12930 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
12934 # See if <machine/reg.h> degines `struct reg'.
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
12936 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
12937 if test "${gdb_cv_struct_reg+set}" = set; then :
12938 $as_echo_n "(cached) " >&6
12940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12941 /* end confdefs.h. */
12942 #include <sys/types.h>
12943 #include <machine/reg.h>
12952 if ac_fn_c_try_compile
"$LINENO"; then :
12953 gdb_cv_struct_reg
=yes
12955 gdb_cv_struct_reg
=no
12957 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
12960 $as_echo "$gdb_cv_struct_reg" >&6; }
12961 if test $gdb_cv_struct_reg = yes; then
12963 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
12967 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
12968 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
12969 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
12971 if test "x$ac_cv_member_struct_reg_r_fs" = x
""yes; then :
12973 cat >>confdefs.h
<<_ACEOF
12974 #define HAVE_STRUCT_REG_R_FS 1
12979 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
12981 if test "x$ac_cv_member_struct_reg_r_gs" = x
""yes; then :
12983 cat >>confdefs.h
<<_ACEOF
12984 #define HAVE_STRUCT_REG_R_GS 1
12991 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
12993 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
12994 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
12995 $as_echo_n "(cached) " >&6
12997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12998 /* end confdefs.h. */
12999 #include <sys/ptrace.h>
13008 if ac_fn_c_try_compile
"$LINENO"; then :
13009 gdb_cv_have_ptrace_getregs
=yes
13011 gdb_cv_have_ptrace_getregs
=no
13013 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
13017 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
13018 if test $gdb_cv_have_ptrace_getregs = yes; then
13020 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
13024 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
13026 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
13027 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
13028 $as_echo_n "(cached) " >&6
13030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13031 /* end confdefs.h. */
13032 #include <sys/ptrace.h>
13041 if ac_fn_c_try_compile
"$LINENO"; then :
13042 gdb_cv_have_ptrace_getfpxregs
=yes
13044 gdb_cv_have_ptrace_getfpxregs
=no
13046 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
13050 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
13051 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
13053 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
13057 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
13059 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
13060 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
13061 $as_echo_n "(cached) " >&6
13063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13064 /* end confdefs.h. */
13065 #include <sys/types.h>
13066 #include <sys/ptrace.h>
13075 if ac_fn_c_try_compile
"$LINENO"; then :
13076 gdb_cv_have_pt_getdbregs
=yes
13078 gdb_cv_have_pt_getdbregs
=no
13080 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
13084 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
13085 if test $gdb_cv_have_pt_getdbregs = yes; then
13087 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
13091 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
13093 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
13094 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
13095 $as_echo_n "(cached) " >&6
13097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13098 /* end confdefs.h. */
13099 #include <sys/types.h>
13100 #include <sys/ptrace.h>
13109 if ac_fn_c_try_compile
"$LINENO"; then :
13110 gdb_cv_have_pt_getxmmregs
=yes
13112 gdb_cv_have_pt_getxmmregs
=no
13114 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
13118 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
13119 if test $gdb_cv_have_pt_getxmmregs = yes; then
13121 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
13125 # Detect which type of /proc is in use, such as for Unixware or Solaris.
13127 if test "${target}" = "${host}"; then
13129 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5* |
*-*-interix* )
13131 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13134 *-*-solaris2.
[6789] |
*-*-solaris2.1
[0-9]*)
13136 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13140 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
13142 $as_echo "#define _KMEMUSER 1" >>confdefs.h
13148 if test "$ac_cv_header_sys_procfs_h" = yes; then
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
13150 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
13151 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
13152 $as_echo_n "(cached) " >&6
13154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13155 /* end confdefs.h. */
13158 /* Needed for new procfs interface on sparc-solaris. */
13159 #define _STRUCTURED_PROC 1
13160 #include <sys/procfs.h>
13169 if ac_fn_c_try_compile
"$LINENO"; then :
13170 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
13172 bfd_cv_have_sys_procfs_type_pstatus_t
=no
13175 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13178 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
13180 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
13184 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
13187 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
13188 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
13189 $as_echo_n "(cached) " >&6
13191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13192 /* end confdefs.h. */
13195 /* Needed for new procfs interface on sparc-solaris. */
13196 #define _STRUCTURED_PROC 1
13197 #include <sys/procfs.h>
13206 if ac_fn_c_try_compile
"$LINENO"; then :
13207 bfd_cv_have_sys_procfs_type_prrun_t
=yes
13209 bfd_cv_have_sys_procfs_type_prrun_t
=no
13212 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13215 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
13217 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
13221 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
13224 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
13225 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
13226 $as_echo_n "(cached) " >&6
13228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13229 /* end confdefs.h. */
13232 /* Needed for new procfs interface on sparc-solaris. */
13233 #define _STRUCTURED_PROC 1
13234 #include <sys/procfs.h>
13243 if ac_fn_c_try_compile
"$LINENO"; then :
13244 bfd_cv_have_sys_procfs_type_gregset_t
=yes
13246 bfd_cv_have_sys_procfs_type_gregset_t
=no
13249 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13252 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
13254 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
13258 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
13261 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
13262 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
13263 $as_echo_n "(cached) " >&6
13265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13266 /* end confdefs.h. */
13269 /* Needed for new procfs interface on sparc-solaris. */
13270 #define _STRUCTURED_PROC 1
13271 #include <sys/procfs.h>
13280 if ac_fn_c_try_compile
"$LINENO"; then :
13281 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
13283 bfd_cv_have_sys_procfs_type_fpregset_t
=no
13286 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13289 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
13291 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
13295 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
13298 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
13299 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
13300 $as_echo_n "(cached) " >&6
13302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13303 /* end confdefs.h. */
13306 /* Needed for new procfs interface on sparc-solaris. */
13307 #define _STRUCTURED_PROC 1
13308 #include <sys/procfs.h>
13317 if ac_fn_c_try_compile
"$LINENO"; then :
13318 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
13320 bfd_cv_have_sys_procfs_type_prgregset_t
=no
13323 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13326 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
13328 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
13332 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
13335 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
13336 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
13337 $as_echo_n "(cached) " >&6
13339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13340 /* end confdefs.h. */
13343 /* Needed for new procfs interface on sparc-solaris. */
13344 #define _STRUCTURED_PROC 1
13345 #include <sys/procfs.h>
13354 if ac_fn_c_try_compile
"$LINENO"; then :
13355 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
13357 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
13360 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13363 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13365 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
13369 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
13372 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
13373 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
13374 $as_echo_n "(cached) " >&6
13376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13377 /* end confdefs.h. */
13380 /* Needed for new procfs interface on sparc-solaris. */
13381 #define _STRUCTURED_PROC 1
13382 #include <sys/procfs.h>
13391 if ac_fn_c_try_compile
"$LINENO"; then :
13392 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
13394 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
13397 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13400 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
13402 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
13406 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
13409 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
13410 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
13411 $as_echo_n "(cached) " >&6
13413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13414 /* end confdefs.h. */
13417 /* Needed for new procfs interface on sparc-solaris. */
13418 #define _STRUCTURED_PROC 1
13419 #include <sys/procfs.h>
13423 prfpregset32_t avar
13428 if ac_fn_c_try_compile
"$LINENO"; then :
13429 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
13431 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
13434 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13437 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
13439 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
13443 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
13446 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
13447 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
13448 $as_echo_n "(cached) " >&6
13450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13451 /* end confdefs.h. */
13454 /* Needed for new procfs interface on sparc-solaris. */
13455 #define _STRUCTURED_PROC 1
13456 #include <sys/procfs.h>
13465 if ac_fn_c_try_compile
"$LINENO"; then :
13466 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
13468 bfd_cv_have_sys_procfs_type_lwpid_t
=no
13471 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13474 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
13476 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
13480 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
13483 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
13484 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
13485 $as_echo_n "(cached) " >&6
13487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13488 /* end confdefs.h. */
13491 /* Needed for new procfs interface on sparc-solaris. */
13492 #define _STRUCTURED_PROC 1
13493 #include <sys/procfs.h>
13502 if ac_fn_c_try_compile
"$LINENO"; then :
13503 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
13505 bfd_cv_have_sys_procfs_type_psaddr_t
=no
13508 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13511 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
13513 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
13517 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
13520 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
13521 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
13522 $as_echo_n "(cached) " >&6
13524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13525 /* end confdefs.h. */
13528 /* Needed for new procfs interface on sparc-solaris. */
13529 #define _STRUCTURED_PROC 1
13530 #include <sys/procfs.h>
13539 if ac_fn_c_try_compile
"$LINENO"; then :
13540 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
13542 bfd_cv_have_sys_procfs_type_prsysent_t
=no
13545 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13548 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
13550 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
13554 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
13557 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
13558 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
13559 $as_echo_n "(cached) " >&6
13561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13562 /* end confdefs.h. */
13565 /* Needed for new procfs interface on sparc-solaris. */
13566 #define _STRUCTURED_PROC 1
13567 #include <sys/procfs.h>
13576 if ac_fn_c_try_compile
"$LINENO"; then :
13577 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
13579 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
13582 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13585 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
13587 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
13591 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
13594 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
13595 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
13596 $as_echo_n "(cached) " >&6
13598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13599 /* end confdefs.h. */
13602 /* Needed for new procfs interface on sparc-solaris. */
13603 #define _STRUCTURED_PROC 1
13604 #include <sys/procfs.h>
13608 pr_sigaction64_t avar
13613 if ac_fn_c_try_compile
"$LINENO"; then :
13614 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
13616 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
13619 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13622 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
13624 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
13628 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
13631 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
13632 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
13633 $as_echo_n "(cached) " >&6
13635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13636 /* end confdefs.h. */
13639 /* Needed for new procfs interface on sparc-solaris. */
13640 #define _STRUCTURED_PROC 1
13641 #include <sys/procfs.h>
13645 pr_siginfo64_t avar
13650 if ac_fn_c_try_compile
"$LINENO"; then :
13651 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
13653 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
13656 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13659 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
13661 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
13665 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
13671 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
13673 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
13674 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
13675 $as_echo_n "(cached) " >&6
13677 if test "$cross_compiling" = yes; then :
13678 gdb_cv_prfpregset_t_broken
=yes
13680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13681 /* end confdefs.h. */
13682 #include <sys/procfs.h>
13685 if (sizeof (prfpregset_t) == sizeof (void *))
13690 if ac_fn_c_try_run
"$LINENO"; then :
13691 gdb_cv_prfpregset_t_broken
=no
13693 gdb_cv_prfpregset_t_broken
=yes
13695 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13696 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
13702 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
13703 if test $gdb_cv_prfpregset_t_broken = yes; then
13705 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
13712 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
13713 if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
13714 $as_echo_n "(cached) " >&6
13716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13717 /* end confdefs.h. */
13718 #include <unistd.h>
13719 #include <sys/types.h>
13720 #include <sys/procfs.h>
13727 dummy = ioctl(0, PIOCSET, &dummy);
13733 if ac_fn_c_try_compile
"$LINENO"; then :
13734 gdb_cv_have_procfs_piocset
=yes
13736 gdb_cv_have_procfs_piocset
=no
13738 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
13742 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
13743 if test $gdb_cv_have_procfs_piocset = yes; then
13745 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
13750 if test ${host} = ${target} ; then
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
13753 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
13754 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
13755 $as_echo_n "(cached) " >&6
13757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13758 /* end confdefs.h. */
13763 struct link_map lm; (void) lm.l_addr;
13768 if ac_fn_c_try_compile
"$LINENO"; then :
13769 gdb_cv_have_struct_link_map_with_l_members
=yes
13771 gdb_cv_have_struct_link_map_with_l_members
=no
13773 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
13777 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
13778 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
13780 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
13786 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
13787 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
13788 $as_echo_n "(cached) " >&6
13790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13791 /* end confdefs.h. */
13792 #include <sys/types.h>
13797 struct link_map lm; (void) lm.lm_addr;
13802 if ac_fn_c_try_compile
"$LINENO"; then :
13803 gdb_cv_have_struct_link_map_with_lm_members
=yes
13805 gdb_cv_have_struct_link_map_with_lm_members
=no
13807 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
13811 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
13812 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
13814 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
13820 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
13821 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
13822 $as_echo_n "(cached) " >&6
13824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13825 /* end confdefs.h. */
13826 #include <sys/types.h>
13827 #ifdef HAVE_NLIST_H
13834 struct so_map lm; (void) lm.som_addr;
13839 if ac_fn_c_try_compile
"$LINENO"; then :
13840 gdb_cv_have_struct_so_map_with_som_members
=yes
13842 gdb_cv_have_struct_so_map_with_som_members
=no
13844 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
13848 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
13849 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
13851 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
13857 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
13858 if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
13859 $as_echo_n "(cached) " >&6
13861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13862 /* end confdefs.h. */
13864 #include <sys/link.h>
13868 struct link_map32 l;
13873 if ac_fn_c_try_compile
"$LINENO"; then :
13874 gdb_cv_have_struct_link_map32
=yes
13876 gdb_cv_have_struct_link_map32
=no
13878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
13882 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
13883 if test $gdb_cv_have_struct_link_map32 = yes; then
13885 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
13888 $as_echo "#define _SYSCALL32 1" >>confdefs.h
13893 # Check if the compiler supports the `long long' type.
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
13896 $as_echo_n "checking for long long support in compiler... " >&6; }
13897 if test "${gdb_cv_c_long_long+set}" = set; then :
13898 $as_echo_n "(cached) " >&6
13900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13901 /* end confdefs.h. */
13902 extern long long foo;
13906 switch (foo & 2) { case 0: return 1; }
13911 if ac_fn_c_try_compile
"$LINENO"; then :
13912 gdb_cv_c_long_long
=yes
13914 gdb_cv_c_long_long
=no
13916 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
13919 $as_echo "$gdb_cv_c_long_long" >&6; }
13920 if test $gdb_cv_c_long_long = yes; then
13922 $as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
13926 # Check if the compiler and runtime support printing long longs.
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
13929 $as_echo_n "checking for long long support in printf... " >&6; }
13930 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
13931 $as_echo_n "(cached) " >&6
13933 if test "$cross_compiling" = yes; then :
13934 gdb_cv_printf_has_long_long
=no
13936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13937 /* end confdefs.h. */
13938 $ac_includes_default
13944 l = (l << 16) + 0x0123;
13945 l = (l << 16) + 0x4567;
13946 l = (l << 16) + 0x89ab;
13947 l = (l << 16) + 0xcdef;
13948 sprintf (buf, "0x%016llx", l);
13949 return (strcmp ("0x0123456789abcdef", buf));
13954 if ac_fn_c_try_run
"$LINENO"; then :
13955 gdb_cv_printf_has_long_long
=yes
13957 gdb_cv_printf_has_long_long
=no
13959 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13960 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
13965 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
13966 if test $gdb_cv_printf_has_long_long = yes; then
13968 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
13972 # Check if the compiler and runtime support printing decfloats.
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
13975 $as_echo_n "checking for decfloat support in printf... " >&6; }
13976 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
13977 $as_echo_n "(cached) " >&6
13979 if test "$cross_compiling" = yes; then :
13980 gdb_cv_printf_has_decfloat
=no
13982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13983 /* end confdefs.h. */
13984 $ac_includes_default
13989 _Decimal32 d32 = 1.2345df;
13990 _Decimal64 d64 = 1.2345dd;
13991 _Decimal128 d128 = 1.2345dl;
13992 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
13993 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
13998 if ac_fn_c_try_run
"$LINENO"; then :
13999 gdb_cv_printf_has_decfloat
=yes
14001 gdb_cv_printf_has_decfloat
=no
14003 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14004 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
14009 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
14010 if test $gdb_cv_printf_has_decfloat = yes; then
14012 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
14016 # Check if the compiler supports the `long double' type. We can't use
14017 # AC_C_LONG_DOUBLE because that one does additional checks on the
14018 # constants defined in <float.h> that fail on some systems,
14019 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
14022 $as_echo_n "checking for long double support in compiler... " >&6; }
14023 if test "${gdb_cv_c_long_double+set}" = set; then :
14024 $as_echo_n "(cached) " >&6
14026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14027 /* end confdefs.h. */
14030 if ac_fn_c_try_compile
"$LINENO"; then :
14031 gdb_cv_c_long_double
=yes
14033 gdb_cv_c_long_double
=no
14035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
14038 $as_echo "$gdb_cv_c_long_double" >&6; }
14039 if test $gdb_cv_c_long_double = yes; then
14041 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14045 # Check if the compiler and runtime support printing long doubles.
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
14048 $as_echo_n "checking for long double support in printf... " >&6; }
14049 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
14050 $as_echo_n "(cached) " >&6
14052 if test "$cross_compiling" = yes; then :
14053 gdb_cv_printf_has_long_double
=no
14055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14056 /* end confdefs.h. */
14057 $ac_includes_default
14062 long double f = 3.141592653;
14063 sprintf (buf, "%Lg", f);
14064 return (strncmp ("3.14159", buf, 7));
14069 if ac_fn_c_try_run
"$LINENO"; then :
14070 gdb_cv_printf_has_long_double
=yes
14072 gdb_cv_printf_has_long_double
=no
14074 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14075 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
14080 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
14081 if test $gdb_cv_printf_has_long_double = yes; then
14083 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
14087 # Check if the compiler and runtime support scanning long doubles.
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
14090 $as_echo_n "checking for long double support in scanf... " >&6; }
14091 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
14092 $as_echo_n "(cached) " >&6
14094 if test "$cross_compiling" = yes; then :
14095 gdb_cv_scanf_has_long_double
=no
14097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14098 /* end confdefs.h. */
14103 char *buf = "3.141592653";
14105 sscanf (buf, "%Lg", &f);
14106 return !(f > 3.14159 && f < 3.14160);
14111 if ac_fn_c_try_run
"$LINENO"; then :
14112 gdb_cv_scanf_has_long_double
=yes
14114 gdb_cv_scanf_has_long_double
=no
14116 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14117 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
14122 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
14123 if test $gdb_cv_scanf_has_long_double = yes; then
14125 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
14132 $as_echo_n "checking for -bbigtoc option... " >&6; }
14133 if test "${gdb_cv_bigtoc+set}" = set; then :
14134 $as_echo_n "(cached) " >&6
14137 SAVE_LDFLAGS
=$LDFLAGS
14140 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
14141 *) gdb_cv_bigtoc
=-bbigtoc ;;
14144 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
14145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14146 /* end confdefs.h. */
14156 if ac_fn_c_try_link
"$LINENO"; then :
14161 rm -f core conftest.err conftest.
$ac_objext \
14162 conftest
$ac_exeext conftest.
$ac_ext
14163 LDFLAGS
="${SAVE_LDFLAGS}"
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
14167 $as_echo "$gdb_cv_bigtoc" >&6; }
14168 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
14174 if test ${build} = ${host} -a ${host} = ${target} ; then
14175 if test "$GCC" = "yes" ; then
14176 # The dynamically loaded libthread_db needs access to symbols in the gdb
14177 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
14178 # may not be supported there.
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
14180 $as_echo_n "checking for the dynamic export flag... " >&6; }
14181 old_LDFLAGS
="$LDFLAGS"
14182 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
14183 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
14184 LDFLAGS
="$LDFLAGS $RDYNAMIC"
14185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14186 /* end confdefs.h. */
14196 if ac_fn_c_try_link
"$LINENO"; then :
14197 found
="-Wl,--dynamic-list"
14198 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
14200 RDYNAMIC
="-rdynamic"
14201 LDFLAGS
="$old_LDFLAGS $RDYNAMIC"
14202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14203 /* end confdefs.h. */
14213 if ac_fn_c_try_link
"$LINENO"; then :
14217 # Error on its usage by .mh file.
14218 RDYNAMIC
="no-rdynamic-available"
14220 rm -f core conftest.err conftest.
$ac_objext \
14221 conftest
$ac_exeext conftest.
$ac_ext
14223 rm -f core conftest.err conftest.
$ac_objext \
14224 conftest
$ac_exeext conftest.
$ac_ext
14226 LDFLAGS
="$old_LDFLAGS"
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
14228 $as_echo "$found" >&6; }
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HPUX/OSF thread support" >&5
14234 $as_echo_n "checking for HPUX/OSF thread support... " >&6; }
14235 if test -f /usr
/include
/dce
/cma_config.h
; then
14236 if test "$GCC" = "yes" ; then
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14238 $as_echo "yes" >&6; }
14240 $as_echo "#define HAVE_HPUX_THREAD_SUPPORT 1" >>confdefs.h
14242 CONFIG_OBS
="${CONFIG_OBS} hpux-thread.o"
14243 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (suppressed because you are not using GCC)" >&5
14246 $as_echo "no (suppressed because you are not using GCC)" >&6; }
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14250 $as_echo "no" >&6; }
14254 # See if thread_db library is around for Solaris thread debugging.
14255 # Note that we must explicitly test for version 1 of the library
14256 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
14259 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
14260 if test -f /usr
/lib
/libthread_db.so
.1 ; then
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14262 $as_echo "yes" >&6; }
14264 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
14266 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
14267 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14269 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14270 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14271 $as_echo_n "(cached) " >&6
14273 ac_check_lib_save_LIBS
=$LIBS
14275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14276 /* end confdefs.h. */
14278 /* Override any GCC internal prototype to avoid an error.
14279 Use char because int might match the return type of a GCC
14280 builtin and then its argument prototype would still apply. */
14293 if ac_fn_c_try_link
"$LINENO"; then :
14294 ac_cv_lib_dl_dlopen
=yes
14296 ac_cv_lib_dl_dlopen
=no
14298 rm -f core conftest.err conftest.
$ac_objext \
14299 conftest
$ac_exeext conftest.
$ac_ext
14300 LIBS
=$ac_check_lib_save_LIBS
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14303 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14304 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
14305 cat >>confdefs.h
<<_ACEOF
14306 #define HAVE_LIBDL 1
14313 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} $RDYNAMIC"
14314 # Sun randomly tweaked the prototypes in <proc_service.h>
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
14317 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
14318 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
14319 $as_echo_n "(cached) " >&6
14322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14323 /* end confdefs.h. */
14325 #include <proc_service.h>
14326 ps_err_e ps_pdwrite
14327 (struct ps_prochandle*, psaddr_t, const void*, size_t);
14337 if ac_fn_c_try_compile
"$LINENO"; then :
14338 gdb_cv_proc_service_is_old
=no
14340 gdb_cv_proc_service_is_old
=yes
14342 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
14347 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
14348 if test $gdb_cv_proc_service_is_old = yes; then
14350 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14355 $as_echo "no" >&6; }
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
14360 $as_echo_n "checking for AiX thread debugging library... " >&6; }
14361 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
14362 $as_echo_n "(cached) " >&6
14364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14365 /* end confdefs.h. */
14366 #include <sys/pthdebug.h>
14370 #ifndef PTHDB_VERSION_3
14377 if ac_fn_c_try_compile
"$LINENO"; then :
14378 gdb_cv_have_aix_thread_debug
=yes
14380 gdb_cv_have_aix_thread_debug
=no
14382 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
14386 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
14387 if test $gdb_cv_have_aix_thread_debug = yes; then
14388 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
14389 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
14390 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -lpthdebug"
14397 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
14399 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
14400 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
14401 $as_echo_n "(cached) " >&6
14403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14404 /* end confdefs.h. */
14405 #include <thread_db.h>
14409 int i = TD_NOTALLOC;
14414 if ac_fn_c_try_compile
"$LINENO"; then :
14415 gdb_cv_thread_db_h_has_td_notalloc
=yes
14417 gdb_cv_thread_db_h_has_td_notalloc
=no
14420 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
14424 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
14426 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
14427 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
14428 $as_echo_n "(cached) " >&6
14430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14431 /* end confdefs.h. */
14432 #include <thread_db.h>
14436 int i = TD_VERSION;
14441 if ac_fn_c_try_compile
"$LINENO"; then :
14442 gdb_cv_thread_db_h_has_td_version
=yes
14444 gdb_cv_thread_db_h_has_td_version
=no
14447 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
14451 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
14453 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
14454 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
14455 $as_echo_n "(cached) " >&6
14457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14458 /* end confdefs.h. */
14459 #include <thread_db.h>
14468 if ac_fn_c_try_compile
"$LINENO"; then :
14469 gdb_cv_thread_db_h_has_td_notls
=yes
14471 gdb_cv_thread_db_h_has_td_notls
=no
14474 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
14478 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
14480 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
14482 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
14485 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
14487 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
14490 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
14492 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
14496 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
14498 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
14499 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
14500 $as_echo_n "(cached) " >&6
14502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14503 /* end confdefs.h. */
14504 #include <sys/syscall.h>
14508 int i = __NR_tkill;
14513 if ac_fn_c_try_compile
"$LINENO"; then :
14514 gdb_cv_sys_syscall_h_has_tkill
=yes
14516 gdb_cv_sys_syscall_h_has_tkill
=no
14519 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
14523 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
14525 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
14527 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
14531 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
14533 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
14539 cat >>confdefs.h
<<_ACEOF
14540 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
14544 if test "$cross_compiling" = yes; then :
14545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14546 /* end confdefs.h. */
14547 #include <sys/personality.h>
14552 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14553 # define ADDR_NO_RANDOMIZE 0x0040000
14555 /* Test the flag could be set and stays set. */
14556 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14557 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14563 if ac_fn_c_try_link
"$LINENO"; then :
14564 have_personality
=true
14566 have_personality
=false
14568 rm -f core conftest.err conftest.
$ac_objext \
14569 conftest
$ac_exeext conftest.
$ac_ext
14571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14572 /* end confdefs.h. */
14573 #include <sys/personality.h>
14578 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14579 # define ADDR_NO_RANDOMIZE 0x0040000
14581 /* Test the flag could be set and stays set. */
14582 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14583 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14589 if ac_fn_c_try_run
"$LINENO"; then :
14590 have_personality
=true
14592 have_personality
=false
14594 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14595 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14598 if $have_personality
14601 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
14606 target_sysroot_reloc
=0
14608 # Check whether --with-sysroot was given.
14609 if test "${with_sysroot+set}" = set; then :
14610 withval
=$with_sysroot;
14611 case ${with_sysroot} in
14612 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_alias}/sys-root' ;;
14613 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
14616 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
14618 if test "x$prefix" = xNONE
; then
14619 test_prefix
=/usr
/local
14621 test_prefix
=$prefix
14623 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
14624 test_exec_prefix
=$test_prefix
14626 test_exec_prefix
=$exec_prefix
14628 case ${TARGET_SYSTEM_ROOT} in
14629 "${test_prefix}"|
"${test_prefix}/"*|\
14630 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
14631 '${prefix}'|
'${prefix}/'*|\
14632 '${exec_prefix}'|
'${exec_prefix}/'*)
14633 target_sysroot_reloc
=1
14639 TARGET_SYSTEM_ROOT
=
14640 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"\"'
14644 TARGET_SYSTEM_ROOT_DEFINE
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE=$target_sysroot_reloc"
14650 # Check whether --with-system-gdbinit was given.
14651 if test "${with_system_gdbinit+set}" = set; then :
14652 withval
=$with_system_gdbinit;
14653 SYSTEM_GDBINIT
=$withval
14659 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
14660 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14661 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
14662 ac_define_dir
=`eval echo $ac_define_dir`
14664 cat >>confdefs.h
<<_ACEOF
14665 #define SYSTEM_GDBINIT "$ac_define_dir"
14671 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
14672 if test "x$prefix" = xNONE
; then
14673 test_prefix
=/usr
/local
14675 test_prefix
=$prefix
14678 test_prefix
=$exec_prefix
14681 case ${ac_define_dir} in
14682 "${test_prefix}"|
"${test_prefix}/"*|\
14683 '${exec_prefix}'|
'${exec_prefix}/'*)
14688 cat >>confdefs.h
<<_ACEOF
14689 #define SYSTEM_GDBINIT_RELOCATABLE $value
14695 # Check whether --enable-werror was given.
14696 if test "${enable_werror+set}" = set; then :
14697 enableval
=$enable_werror; case "${enableval}" in
14698 yes | y
) ERROR_ON_WARNING
="yes" ;;
14699 no | n
) ERROR_ON_WARNING
="no" ;;
14700 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
14705 # Enable -Werror by default when using gcc
14706 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
14707 ERROR_ON_WARNING
=yes
14711 if test "${ERROR_ON_WARNING}" = yes ; then
14712 WERROR_CFLAGS
="-Werror"
14715 # The entries after -Wno-pointer-sign are disabled warnings which may
14716 # be enabled in the future, which can not currently be used to build
14718 # NOTE: If you change this list, remember to update
14719 # gdb/doc/gdbint.texinfo.
14720 build_warnings
="-Wall -Wdeclaration-after-statement -Wpointer-arith \
14721 -Wformat-nonliteral -Wno-pointer-sign \
14722 -Wno-unused -Wunused-value -Wunused-function \
14723 -Wno-switch -Wno-char-subscripts"
14725 # Enable -Wno-format by default when using gcc on mingw since many
14726 # GCC versions complain about %I64.
14728 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
14731 # Check whether --enable-build-warnings was given.
14732 if test "${enable_build_warnings+set}" = set; then :
14733 enableval
=$enable_build_warnings; case "${enableval}" in
14735 no
) build_warnings
="-w";;
14736 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
14737 build_warnings
="${build_warnings} ${t}";;
14738 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
14739 build_warnings
="${t} ${build_warnings}";;
14740 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14742 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
14743 echo "Setting compiler warning flags = $build_warnings" 6>&1
14746 # Check whether --enable-gdb-build-warnings was given.
14747 if test "${enable_gdb_build_warnings+set}" = set; then :
14748 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
14750 no
) build_warnings
="-w";;
14751 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
14752 build_warnings
="${build_warnings} ${t}";;
14753 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
14754 build_warnings
="${t} ${build_warnings}";;
14755 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14757 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
14758 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
14762 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
14765 $as_echo_n "checking compiler warning flags... " >&6; }
14766 # Separate out the -Werror flag as some files just cannot be
14767 # compiled with it enabled.
14768 for w
in ${build_warnings}; do
14770 -Werr*) WERROR_CFLAGS
=-Werror ;;
14771 *) # Check that GCC accepts it
14772 saved_CFLAGS
="$CFLAGS"
14773 CFLAGS
="$CFLAGS $w"
14774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14775 /* end confdefs.h. */
14785 if ac_fn_c_try_compile
"$LINENO"; then :
14786 WARN_CFLAGS
="${WARN_CFLAGS} $w"
14788 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14789 CFLAGS
="$saved_CFLAGS"
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
14793 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
14798 # In the Cygwin environment, we need some additional flags.
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
14800 $as_echo_n "checking
for cygwin...
" >&6; }
14801 if test "${gdb_cv_os_cygwin+set}" = set; then :
14802 $as_echo_n "(cached
) " >&6
14804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14805 /* end confdefs.h. */
14807 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
14811 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14812 $EGREP "lose
" >/dev/null 2>&1; then :
14813 gdb_cv_os_cygwin=yes
14815 gdb_cv_os_cygwin=no
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
14821 $as_echo "$gdb_cv_os_cygwin" >&6; }
14824 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
14826 *go32* ) SER_HARDWIRE=ser-go32.o ;;
14827 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
14828 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
14832 # libreadline needs libuser32.a in a cygwin environment
14834 if test x$gdb_cv_os_cygwin = xyes; then
14835 WIN32LIBS="-luser32"
14836 case "${target}" in
14837 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
14842 # The ser-tcp.c module requires sockets.
14846 $as_echo "#define USE_WIN32API 1" >>confdefs.h
14848 WIN32LIBS
="$WIN32LIBS -lws2_32"
14853 # Add ELF support to GDB, but only if BFD includes ELF support.
14855 OLD_LDFLAGS
=$LDFLAGS
14857 CFLAGS
="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
14858 LDFLAGS
="$LDFLAGS -L../bfd -L../libiberty"
14859 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
14860 LIBS
="-lbfd -liberty $intl $LIBS"
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
14862 $as_echo_n "checking for ELF support in BFD... " >&6; }
14863 if test "${gdb_cv_var_elf+set}" = set; then :
14864 $as_echo_n "(cached) " >&6
14866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14867 /* end confdefs.h. */
14868 #include <stdlib.h>
14870 #include "elf-bfd.h"
14875 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
14880 if ac_fn_c_try_link
"$LINENO"; then :
14885 rm -f core conftest.err conftest.
$ac_objext \
14886 conftest
$ac_exeext conftest.
$ac_ext
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
14889 $as_echo "$gdb_cv_var_elf" >&6; }
14890 if test $gdb_cv_var_elf = yes; then
14891 CONFIG_OBS
="$CONFIG_OBS elfread.o"
14893 $as_echo "#define HAVE_ELF 1" >>confdefs.h
14897 LDFLAGS
=$OLD_LDFLAGS
14900 # Add any host-specific objects to GDB.
14901 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
14903 LIBGUI
="../libgui/src/libgui.a"
14904 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
14913 *-*-cygwin* |
*-*-mingw* )
14922 if test "${enable_gdbtk}" = "yes"; then
14924 # Gdbtk must have an absolute path to srcdir in order to run
14925 # properly when not installed.
14928 GDBTK_SRC_DIR
=`pwd`
14933 # Ok, lets find the tcl configuration
14934 # First, look for one uninstalled.
14935 # the alternative search directory is invoked by --with-tcl
14938 if test x
"${no_tcl}" = x
; then
14939 # we reset no_tcl in case something fails here
14942 # Check whether --with-tcl was given.
14943 if test "${with_tcl+set}" = set; then :
14944 withval
=$with_tcl; with_tclconfig
=${withval}
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
14948 $as_echo_n "checking for Tcl configuration... " >&6; }
14949 if test "${ac_cv_c_tclconfig+set}" = set; then :
14950 $as_echo_n "(cached) " >&6
14954 # First check to see if --with-tcl was specified.
14956 *-*-cygwin*) platDir
="win" ;;
14957 *) platDir
="unix" ;;
14959 if test x
"${with_tclconfig}" != x
; then
14960 if test -f "${with_tclconfig}/tclConfig.sh" ; then
14961 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
14963 as_fn_error
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
14967 # then check for a private Tcl installation
14968 if test x
"${ac_cv_c_tclconfig}" = x
; then
14971 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14972 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
14973 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
14975 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14976 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
14977 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
14979 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14980 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
14981 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
14982 if test -f "$i/$platDir/tclConfig.sh" ; then
14983 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
14989 # on Darwin, check in Framework installation locations
14990 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
14991 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
14992 `ls -d /Library/Frameworks 2>/dev/null` \
14993 `ls -d /Network/Library/Frameworks 2>/dev/null` \
14994 `ls -d /System/Library/Frameworks 2>/dev/null` \
14996 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
14997 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
15003 # check in a few common install locations
15004 if test x
"${ac_cv_c_tclconfig}" = x
; then
15005 for i
in `ls -d ${libdir} 2>/dev/null` \
15006 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15007 `ls -d ${prefix}/lib 2>/dev/null` \
15008 `ls -d /usr/local/lib 2>/dev/null` \
15009 `ls -d /usr/contrib/lib 2>/dev/null` \
15010 `ls -d /usr/lib 2>/dev/null` \
15012 if test -f "$i/tclConfig.sh" ; then
15013 ac_cv_c_tclconfig
=`(cd $i; pwd)`
15019 # check in a few other private locations
15020 if test x
"${ac_cv_c_tclconfig}" = x
; then
15023 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15024 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
15025 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
15026 if test -f "$i/$platDir/tclConfig.sh" ; then
15027 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
15036 if test x
"${ac_cv_c_tclconfig}" = x
; then
15037 TCL_BIN_DIR
="# no Tcl configs found"
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
15039 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
15042 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
15043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
15044 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15049 # If $no_tk is nonempty, then we can't do Tk, and there is no
15050 # point to doing Tcl.
15053 # Ok, lets find the tk configuration
15054 # First, look for one uninstalled.
15055 # the alternative search directory is invoked by --with-tk
15058 if test x
"${no_tk}" = x
; then
15059 # we reset no_tk in case something fails here
15062 # Check whether --with-tk was given.
15063 if test "${with_tk+set}" = set; then :
15064 withval
=$with_tk; with_tkconfig
=${withval}
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
15068 $as_echo_n "checking for Tk configuration... " >&6; }
15069 if test "${ac_cv_c_tkconfig+set}" = set; then :
15070 $as_echo_n "(cached) " >&6
15074 # First check to see if --with-tkconfig was specified.
15075 if test x
"${with_tkconfig}" != x
; then
15076 if test -f "${with_tkconfig}/tkConfig.sh" ; then
15077 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
15079 as_fn_error
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
15083 # then check for a private Tk library
15085 *-*-cygwin*) platDir
="win" ;;
15086 *) platDir
="unix" ;;
15088 if test x
"${ac_cv_c_tkconfig}" = x
; then
15091 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15092 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
15093 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
15095 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15096 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
15097 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
15099 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15100 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
15101 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
15102 if test -f "$i/$platDir/tkConfig.sh" ; then
15103 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
15109 # on Darwin, check in Framework installation locations
15110 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
15111 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
15112 `ls -d /Library/Frameworks 2>/dev/null` \
15113 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15114 `ls -d /System/Library/Frameworks 2>/dev/null` \
15116 if test -f "$i/Tk.framework/tkConfig.sh" ; then
15117 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
15123 # check in a few common install locations
15124 if test x
"${ac_cv_c_tkconfig}" = x
; then
15125 for i
in `ls -d ${libdir} 2>/dev/null` \
15126 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15127 `ls -d ${prefix}/lib 2>/dev/null` \
15128 `ls -d /usr/local/lib 2>/dev/null` \
15129 `ls -d /usr/contrib/lib 2>/dev/null` \
15130 `ls -d /usr/lib 2>/dev/null` \
15132 if test -f "$i/tkConfig.sh" ; then
15133 ac_cv_c_tkconfig
=`(cd $i; pwd)`
15138 # check in a few other private locations
15139 if test x
"${ac_cv_c_tkconfig}" = x
; then
15142 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15143 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
15144 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
15145 if test -f "$i/$platDir/tkConfig.sh" ; then
15146 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
15155 if test x
"${ac_cv_c_tkconfig}" = x
; then
15156 TK_BIN_DIR
="# no Tk configs found"
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
15158 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
15161 TK_BIN_DIR
=${ac_cv_c_tkconfig}
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
15163 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15168 if test -z "${no_tcl}" -a -z "${no_tk}"; then
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
15171 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
15173 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15175 $as_echo "loading" >&6; }
15176 .
${TCL_BIN_DIR}/tclConfig.sh
15178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
15179 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15182 # eval is required to do the TCL_DBGX substitution
15183 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
15184 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
15186 # If the TCL_BIN_DIR is the build directory (not the install directory),
15187 # then set the common variable name to the value of the build variables.
15188 # For example, the variable TCL_LIB_SPEC will be set to the value
15189 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
15190 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
15191 # installed and uninstalled version of Tcl.
15192 if test -f "${TCL_BIN_DIR}/Makefile" ; then
15193 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
15194 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
15195 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
15196 elif test "`uname -s`" = "Darwin"; then
15197 # If Tcl was built as a framework, attempt to use the libraries
15198 # from the framework at the given location so that linking works
15199 # against Tcl.framework installed in an arbitary location.
15200 case ${TCL_DEFS} in
15202 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
15203 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
15204 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
15205 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
15206 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
15211 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
15212 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
15213 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
15219 # eval is required to do the TCL_DBGX substitution
15220 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
15221 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
15222 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
15223 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
15239 # Check for in-tree tcl
15246 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
15250 # Find Tcl private headers
15251 if test x
"${intree}" = xno
; then
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
15254 $as_echo_n "checking for Tcl private headers... " >&6; }
15256 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
15257 if test -f ${dir}/tclInt.h
; then
15261 if test x
"${private_dir}" = x
; then
15262 as_fn_error
"could not find private Tcl headers" "$LINENO" 5
15264 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15266 $as_echo "${private_dir}" >&6; }
15269 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
15270 TCL_LIBRARY
="${TCL_LIB_SPEC}"
15273 # If building tcl in the same src tree, private headers
15274 # are not needed, but we need to be sure to use the right
15276 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
15277 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
15278 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
15286 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
15288 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15290 $as_echo "loading" >&6; }
15291 .
${TK_BIN_DIR}/tkConfig.sh
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
15294 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15297 # eval is required to do the TK_DBGX substitution
15298 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
15299 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
15301 # If the TK_BIN_DIR is the build directory (not the install directory),
15302 # then set the common variable name to the value of the build variables.
15303 # For example, the variable TK_LIB_SPEC will be set to the value
15304 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
15305 # instead of TK_BUILD_LIB_SPEC since it will work with both an
15306 # installed and uninstalled version of Tcl.
15307 if test -f "${TK_BIN_DIR}/Makefile" ; then
15308 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
15309 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
15310 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
15311 elif test "`uname -s`" = "Darwin"; then
15312 # If Tk was built as a framework, attempt to use the libraries
15313 # from the framework at the given location so that linking works
15314 # against Tk.framework installed in an arbitary location.
15317 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
15318 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
15319 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
15320 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
15321 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
15326 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
15327 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
15328 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
15334 # eval is required to do the TK_DBGX substitution
15335 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
15336 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
15337 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
15338 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
15353 # Check for in-tree Tk
15355 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
15359 # Find Tk private headers
15360 if test x
"${intree}" = xno
; then
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
15363 $as_echo_n "checking for Tk private headers... " >&6; }
15365 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
15366 if test -f ${dir}/tkInt.h
; then
15370 if test x
"${private_dir}" = x
; then
15371 as_fn_error
"could not find Tk private headers" "$LINENO" 5
15373 TK_PRIVATE_INCLUDE
="-I${private_dir}"
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15375 $as_echo "${private_dir}" >&6; }
15378 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
15379 TK_LIBRARY
=${TK_LIB_SPEC}
15382 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
15383 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
15384 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
15391 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
15393 # Include some libraries that Tcl and Tk want.
15394 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
15395 # Yes, the ordering seems wrong here. But it isn't.
15396 # TK_LIBS is the list of libraries that need to be linked
15397 # after Tcl/Tk. Note that this isn't put into LIBS. If it
15398 # were in LIBS then any link tests after this point would
15399 # try to include things like `$(LIBGUI)', which wouldn't work.
15400 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
15402 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
15403 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
15404 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
15405 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
15406 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
15407 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
15408 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
15410 if test x
$gdb_cv_os_cygwin = xyes
; then
15411 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
15412 WIN32LDAPP
="-Wl,--subsystem,console"
15413 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
15416 subdirs
="$subdirs gdbtk"
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15429 $as_echo_n "checking for X... " >&6; }
15432 # Check whether --with-x was given.
15433 if test "${with_x+set}" = set; then :
15437 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15438 if test "x$with_x" = xno
; then
15439 # The user explicitly disabled X.
15442 case $x_includes,$x_libraries in #(
15443 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
15444 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
15445 $as_echo_n "(cached) " >&6
15447 # One or both of the vars are not set, and there is no cached value.
15448 ac_x_includes
=no ac_x_libraries
=no
15449 rm -f -r conftest.dir
15450 if mkdir conftest.dir
; then
15452 cat >Imakefile
<<'_ACEOF'
15454 @echo incroot='${INCROOT}'
15456 @echo usrlibdir='${USRLIBDIR}'
15458 @echo libdir='${LIBDIR}'
15460 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
15461 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15462 for ac_var
in incroot usrlibdir libdir
; do
15463 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15465 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
15466 for ac_extension
in a so sl dylib la dll
; do
15467 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15468 test -f "$ac_im_libdir/libX11.$ac_extension"; then
15469 ac_im_usrlibdir
=$ac_im_libdir; break
15472 # Screen out bogus values from the imake configuration. They are
15473 # bogus both because they are the default anyway, and because
15474 # using them would break gcc on systems where it needs fixed includes.
15475 case $ac_im_incroot in
15476 /usr
/include
) ac_x_includes
= ;;
15477 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
15479 case $ac_im_usrlibdir in
15480 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
15481 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
15485 rm -f -r conftest.dir
15488 # Standard set of common directories for X headers.
15489 # Check X11 before X11Rn because it is often a symlink to the current release.
15503 /usr/local/X11/include
15504 /usr/local/X11R7/include
15505 /usr/local/X11R6/include
15506 /usr/local/X11R5/include
15507 /usr/local/X11R4/include
15509 /usr/local/include/X11
15510 /usr/local/include/X11R7
15511 /usr/local/include/X11R6
15512 /usr/local/include/X11R5
15513 /usr/local/include/X11R4
15517 /usr/XFree86/include/X11
15521 /usr/unsupported/include
15522 /usr/athena/include
15523 /usr/local/x11r5/include
15524 /usr/lpp/Xamples/include
15526 /usr/openwin/include
15527 /usr/openwin/share/include'
15529 if test "$ac_x_includes" = no
; then
15530 # Guess where to find include files, by looking for Xlib.h.
15531 # First, try using that file with no special directory specified.
15532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15533 /* end confdefs.h. */
15534 #include <X11/Xlib.h>
15536 if ac_fn_c_try_cpp
"$LINENO"; then :
15537 # We can compile using X headers with no special include directory.
15540 for ac_dir
in $ac_x_header_dirs; do
15541 if test -r "$ac_dir/X11/Xlib.h"; then
15542 ac_x_includes
=$ac_dir
15547 rm -f conftest.err conftest.
$ac_ext
15548 fi # $ac_x_includes = no
15550 if test "$ac_x_libraries" = no
; then
15551 # Check for the libraries.
15552 # See if we find them without any special options.
15553 # Don't add to $LIBS permanently.
15556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15557 /* end confdefs.h. */
15558 #include <X11/Xlib.h>
15567 if ac_fn_c_try_link
"$LINENO"; then :
15569 # We can link X programs with no special library path.
15573 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15575 # Don't even attempt the hair of trying to link an X program!
15576 for ac_extension
in a so sl dylib la dll
; do
15577 if test -r "$ac_dir/libX11.$ac_extension"; then
15578 ac_x_libraries
=$ac_dir
15584 rm -f core conftest.err conftest.
$ac_objext \
15585 conftest
$ac_exeext conftest.
$ac_ext
15586 fi # $ac_x_libraries = no
15588 case $ac_x_includes,$ac_x_libraries in #(
15589 no
,* |
*,no |
*\'*)
15590 # Didn't find X, or a directory has "'" in its name.
15591 ac_cv_have_x
="have_x=no";; #(
15593 # Record where we found X for the cache.
15594 ac_cv_have_x
="have_x=yes\
15595 ac_x_includes='$ac_x_includes'\
15596 ac_x_libraries='$ac_x_libraries'"
15602 eval "$ac_cv_have_x"
15605 if test "$have_x" != yes; then
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15607 $as_echo "$have_x" >&6; }
15610 # If each of the values was on the command line, it overrides each guess.
15611 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
15612 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
15613 # Update the cache value to reflect the command line values.
15614 ac_cv_have_x
="have_x=yes\
15615 ac_x_includes='$x_includes'\
15616 ac_x_libraries='$x_libraries'"
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15618 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15622 # Unlike the sim directory, whether a simulator is linked is controlled by
15623 # presence of a gdb_sim definition in the target configure.tgt entry.
15624 # This code just checks for a few cases where we'd like to ignore those
15625 # definitions, even when they're present in the '.mt' file. These cases
15626 # are when --disable-sim is specified, or if the simulator directory is
15627 # not part of the source tree.
15629 # Check whether --enable-sim was given.
15630 if test "${enable_sim+set}" = set; then :
15631 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
15632 echo "enableval = ${enableval}";
15633 case "${enableval}" in
15634 yes) ignore_sim
=false
;;
15635 no
) ignore_sim
=true
;;
15636 *) ignore_sim
=false
;;
15643 if test ! -d "${srcdir}/../sim"; then
15649 if test "${ignore_sim}" = "false"; then
15650 if test x
"${gdb_sim}" != x
; then
15652 SIM_OBS
="remote-sim.o"
15654 $as_echo "#define WITH_SIM 1" >>confdefs.h
15672 # List of host floatformats.
15674 cat >>confdefs.h
<<_ACEOF
15675 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
15679 cat >>confdefs.h
<<_ACEOF
15680 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
15684 cat >>confdefs.h
<<_ACEOF
15685 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
15689 # target_subdir is used by the testsuite to find the target libraries.
15691 if test "${host}" != "${target}"; then
15692 target_subdir
="${target_alias}/"
15697 if test "${gdb_native}" = "yes"; then
15698 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
15699 if test ! -f ${host_makefile_frag}; then
15700 as_fn_error
"\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
15702 frags
="$frags $host_makefile_frag"
15704 host_makefile_frag
=/dev
/null
15710 if test "${gdb_native}" = "yes"; then
15711 # We pick this up from the host configuration file (.mh) because we
15712 # do not have a native configuration Makefile fragment.
15713 nativefile
=`sed -n '
15714 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
15715 ' ${host_makefile_frag}`
15719 if test x
"${gdb_osabi}" != x
; then
15721 cat >>confdefs.h
<<_ACEOF
15722 #define GDB_OSABI_DEFAULT $gdb_osabi
15727 # Enable multi-ice-gdb-server.
15728 # Check whether --enable-multi-ice was given.
15729 if test "${enable_multi_ice+set}" = set; then :
15730 enableval
=$enable_multi_ice; case $enableval in
15733 *) as_fn_error
"bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
15737 if test "x$enable_multi_ice" = xyes
; then
15738 subdirs
="$subdirs multi-ice"
15742 # We only build gdbserver automatically in a native configuration.
15743 if test "$gdb_native" = "yes"; then
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
15745 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
15746 if test "x$build_gdbserver" = xyes
; then
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15748 $as_echo "yes" >&6; }
15749 subdirs
="$subdirs gdbserver"
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15753 $as_echo "no" >&6; }
15757 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
15758 # to an empty version.
15764 if test "${nativefile}" != ""; then
15765 case "${nativefile}" in
15766 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
15767 * ) GDB_NM_FILE
="${nativefile}"
15769 files
="${files} ${GDB_NM_FILE}"
15770 links
="${links} nm.h"
15772 cat >>confdefs.h
<<_ACEOF
15773 #define GDB_NM_FILE "${GDB_NM_FILE}"
15779 ac_sources
="$files"
15781 while test -n "$ac_sources"; do
15782 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
15783 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
15784 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
15786 ac_config_links
="$ac_config_links $ac_config_links_1"
15792 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
15795 ac_config_files
="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
15797 ac_config_commands
="$ac_config_commands default"
15799 cat >confcache
<<\_ACEOF
15800 # This file is a shell script that caches the results of configure
15801 # tests run on this system so they can be shared between configure
15802 # scripts and configure runs, see configure's option --config-cache.
15803 # It is not useful on other systems. If it contains results you don't
15804 # want to keep, you may remove or edit it.
15806 # config.status only pays attention to the cache file if you give it
15807 # the --recheck option to rerun configure.
15809 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15810 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15811 # following values.
15815 # The following way of writing the cache mishandles newlines in values,
15816 # but we know of no workaround that is simple, portable, and efficient.
15817 # So, we kill variables containing newlines.
15818 # Ultrix sh set writes to stderr and can't be redirected directly,
15819 # and sets the high bit in the cache file unless we assign to the vars.
15821 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15822 eval ac_val
=\$
$ac_var
15826 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15827 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15830 _ | IFS | as_nl
) ;; #(
15831 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15832 *) { eval $ac_var=; unset $ac_var;} ;;
15838 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15839 *${as_nl}ac_space
=\
*)
15840 # `set' does not quote correctly, so add quotes: double-quote
15841 # substitution turns \\\\ into \\, and sed turns \\ into \.
15844 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15847 # `set' quotes correctly as required by POSIX, so do not add quotes.
15848 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15857 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15859 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15861 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15862 if test -w "$cache_file"; then
15863 test "x$cache_file" != "x/dev/null" &&
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15865 $as_echo "$as_me: updating cache $cache_file" >&6;}
15866 cat confcache
>$cache_file
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15869 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15874 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15875 # Let make expand exec_prefix.
15876 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15878 DEFS
=-DHAVE_CONFIG_H
15882 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15883 # 1. Remove the extension, and $U if already installed.
15884 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15885 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15886 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15887 # will be set to the directory where LIBOBJS objects are built.
15888 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15889 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15891 LIBOBJS
=$ac_libobjs
15893 LTLIBOBJS
=$ac_ltlibobjs
15896 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15897 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
15898 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15900 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
15901 as_fn_error
"conditional \"GMAKE\" was never defined.
15902 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15904 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
15905 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
15906 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15911 if test -n "$gl_LIBOBJS"; then
15912 # Remove the extension.
15913 sed_drop_objext
='s/\.o$//;s/\.obj$//'
15914 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
15915 gl_libobjs
="$gl_libobjs $i.$ac_objext"
15916 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
15919 gl_LIBOBJS
=$gl_libobjs
15921 gl_LTLIBOBJS
=$gl_ltlibobjs
15927 if test -n "$gltests_LIBOBJS"; then
15928 # Remove the extension.
15929 sed_drop_objext
='s/\.o$//;s/\.obj$//'
15930 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
15931 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
15932 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
15935 gltests_LIBOBJS
=$gltests_libobjs
15937 gltests_LTLIBOBJS
=$gltests_ltlibobjs
15940 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15941 as_fn_error
"conditional \"AMDEP\" was never defined.
15942 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15944 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15945 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
15946 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15948 if test -n "$EXEEXT"; then
15950 am__EXEEXT_FALSE
='#'
15952 am__EXEEXT_TRUE
='#'
15958 : ${CONFIG_STATUS=./config.status}
15960 ac_clean_files_save
=$ac_clean_files
15961 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15963 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15965 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15967 # Generated by $as_me.
15968 # Run this file to recreate the current configuration.
15969 # Compiler output produced by configure, useful for debugging
15970 # configure, is in config.log if it exists.
15973 ac_cs_recheck=false
15976 SHELL=\${CONFIG_SHELL-$SHELL}
15979 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15980 ## -------------------- ##
15981 ## M4sh Initialization. ##
15982 ## -------------------- ##
15984 # Be more Bourne compatible
15985 DUALCASE
=1; export DUALCASE
# for MKS sh
15986 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15989 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15990 # is contrary to our usage. Disable this feature.
15991 alias -g '${1+"$@"}'='"$@"'
15992 setopt NO_GLOB_SUBST
15994 case `(set -o) 2>/dev/null` in #(
16006 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16007 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16008 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16009 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16010 # Prefer a ksh shell builtin over an external printf program on Solaris,
16011 # but without wasting forks for bash or zsh.
16012 if test -z "$BASH_VERSION$ZSH_VERSION" \
16013 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16014 as_echo='print
-r --'
16015 as_echo_n='print
-rn --'
16016 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16017 as_echo='printf %s
\n'
16018 as_echo_n='printf %s
'
16020 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16021 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
16022 as_echo_n='/usr
/ucb
/echo -n'
16024 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16025 as_echo_n_body='eval
16029 expr "X$arg" : "X\\(.*\\)$as_nl";
16030 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16032 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
16034 export as_echo_n_body
16035 as_echo_n='sh
-c $as_echo_n_body as_echo
'
16037 export as_echo_body
16038 as_echo='sh
-c $as_echo_body as_echo
'
16041 # The user is always right.
16042 if test "${PATH_SEPARATOR+set}" != set; then
16044 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16045 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16052 # We need space, tab and new line, in precisely that order. Quoting is
16053 # there to prevent editors from complaining about space-tab.
16054 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16055 # splitting by setting IFS to empty value.)
16058 # Find who we are. Look in the path if we contain no directory separator.
16060 *[\\/]* ) as_myself=$0 ;;
16061 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16062 for as_dir in $PATH
16065 test -z "$as_dir" && as_dir=.
16066 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16072 # We did not find ourselves, most probably we were run as `sh COMMAND'
16073 # in which case we are not to be found in the path.
16074 if test "x$as_myself" = x
; then
16077 if test ! -f "$as_myself"; then
16078 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16082 # Unset variables that we do not need and which cause bugs (e.g. in
16083 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16084 # suppresses any "Segmentation fault" message there. '((' could
16085 # trigger a bug in pdksh 5.2.14.
16086 for as_var
in BASH_ENV ENV MAIL MAILPATH
16087 do eval test x\
${$as_var+set} = xset \
16088 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
16101 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
16104 # as_fn_error ERROR [LINENO LOG_FD]
16105 # ---------------------------------
16106 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16107 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16108 # script with status $?, using 1 if that was 0.
16111 as_status
=$?
; test $as_status -eq 0 && as_status
=1
16113 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
16114 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16116 $as_echo "$as_me: error: $1" >&2
16117 as_fn_exit
$as_status
16121 # as_fn_set_status STATUS
16122 # -----------------------
16123 # Set $? to STATUS, without forking.
16124 as_fn_set_status
()
16127 } # as_fn_set_status
16129 # as_fn_exit STATUS
16130 # -----------------
16131 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16135 as_fn_set_status
$1
16141 # Portably unset VAR.
16144 { eval $1=; unset $1;}
16146 as_unset
=as_fn_unset
16147 # as_fn_append VAR VALUE
16148 # ----------------------
16149 # Append the text in VALUE to the end of the definition contained in VAR. Take
16150 # advantage of any shell optimizations that allow amortized linear growth over
16151 # repeated appends, instead of the typical quadratic growth present in naive
16153 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
16154 eval 'as_fn_append ()
16165 # as_fn_arith ARG...
16166 # ------------------
16167 # Perform arithmetic evaluation on the ARGs, and store the result in the
16168 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16169 # must be portable across $(()) and expr.
16170 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
16171 eval 'as_fn_arith ()
16178 as_val
=`expr "$@" || test $? -eq 1`
16183 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16184 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16190 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16191 as_basename
=basename
16196 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16202 as_me
=`$as_basename -- "$0" ||
16203 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16204 X"$0" : 'X\(//\)$' \| \
16205 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16207 sed '/^.*\/\([^/][^/]*\)\/*$/{
16221 # Avoid depending upon Character Ranges.
16222 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16223 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16224 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16225 as_cr_digits
='0123456789'
16226 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16228 ECHO_C
= ECHO_N
= ECHO_T
=
16229 case `echo -n x` in #(((((
16231 case `echo 'xy\c'` in
16232 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16234 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16241 rm -f conf$$ conf$$.exe conf$$.
file
16242 if test -d conf$$.dir
; then
16243 rm -f conf$$.dir
/conf$$.
file
16246 mkdir conf$$.dir
2>/dev
/null
16248 if (echo >conf$$.
file) 2>/dev
/null
; then
16249 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16251 # ... but there are two gotchas:
16252 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16253 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16254 # In both cases, we have to default to `cp -p'.
16255 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16257 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16265 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16266 rmdir conf$$.dir
2>/dev
/null
16271 # Create "$as_dir" as a directory, including parents if necessary.
16276 -*) as_dir
=.
/$as_dir;;
16278 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16282 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16283 *) as_qdir
=$as_dir;;
16285 as_dirs
="'$as_qdir' $as_dirs"
16286 as_dir
=`$as_dirname -- "$as_dir" ||
16287 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16288 X"$as_dir" : 'X\(//\)[^/]' \| \
16289 X"$as_dir" : 'X\(//\)$' \| \
16290 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16291 $as_echo X"$as_dir" |
16292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16296 /^X\(\/\/\)[^/].*/{
16309 test -d "$as_dir" && break
16311 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16312 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
16316 if mkdir
-p .
2>/dev
/null
; then
16317 as_mkdir_p
='mkdir -p "$as_dir"'
16319 test -d .
/-p && rmdir .
/-p
16323 if test -x / >/dev
/null
2>&1; then
16324 as_test_x
='test -x'
16326 if ls -dL / >/dev
/null
2>&1; then
16333 if test -d "$1"; then
16339 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16340 ???[sx]*):;;*)false;;esac;fi
16344 as_executable_p
=$as_test_x
16346 # Sed expression to map a string onto a valid CPP name.
16347 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16349 # Sed expression to map a string onto a valid variable name.
16350 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16354 ## ----------------------------------- ##
16355 ## Main body of $CONFIG_STATUS script. ##
16356 ## ----------------------------------- ##
16358 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16361 # Save the log message, to keep $0 and so on meaningful, and to
16362 # report actual input values of CONFIG_FILES etc. instead of their
16363 # values after options handling.
16365 This file was extended by $as_me, which was
16366 generated by GNU Autoconf 2.64. Invocation command line was
16368 CONFIG_FILES = $CONFIG_FILES
16369 CONFIG_HEADERS = $CONFIG_HEADERS
16370 CONFIG_LINKS = $CONFIG_LINKS
16371 CONFIG_COMMANDS = $CONFIG_COMMANDS
16374 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16379 case $ac_config_files in *"
16380 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16383 case $ac_config_headers in *"
16384 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16389 # Files that config.status was made for.
16390 config_files="$ac_config_files"
16391 config_headers="$ac_config_headers"
16392 config_links="$ac_config_links"
16393 config_commands="$ac_config_commands"
16397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16399 \`$as_me' instantiates files and other configuration actions
16400 from templates according to the current configuration. Unless the files
16401 and actions are specified as TAGs, all are instantiated by default.
16403 Usage: $0 [OPTION]... [TAG]...
16405 -h, --help print this help, then exit
16406 -V, --version print version number and configuration settings, then exit
16407 -q, --quiet, --silent
16408 do not print progress messages
16409 -d, --debug don't remove temporary files
16410 --recheck update $as_me by reconfiguring in the same conditions
16411 --file=FILE[:TEMPLATE]
16412 instantiate the configuration file FILE
16413 --header=FILE[:TEMPLATE]
16414 instantiate the configuration header FILE
16416 Configuration files:
16419 Configuration headers:
16422 Configuration links:
16425 Configuration commands:
16428 Report bugs to the package provider."
16431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16434 configured by $0, generated by GNU Autoconf 2.64,
16435 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16437 Copyright (C) 2009 Free Software Foundation, Inc.
16438 This config.status script is free software; the Free Software Foundation
16439 gives unlimited permission to copy, distribute and modify it."
16446 test -n "\$AWK" || AWK=awk
16449 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16450 # The default lists apply if the user does not specify any file.
16456 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16457 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16468 # Handling of the options.
16469 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16471 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16472 $as_echo "$ac_cs_version"; exit ;;
16473 --debug |
--debu |
--deb |
--de |
--d |
-d )
16475 --file |
--fil |
--fi |
--f )
16478 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16480 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16481 ac_need_defaults
=false
;;
16482 --header |
--heade |
--head |
--hea )
16485 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16487 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
16488 ac_need_defaults
=false
;;
16490 # Conflict between --help and --header
16491 as_fn_error
"ambiguous option: \`$1'
16492 Try \`$0 --help' for more information.";;
16493 --help |
--hel |
-h )
16494 $as_echo "$ac_cs_usage"; exit ;;
16495 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16496 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16499 # This is an error.
16500 -*) as_fn_error
"unrecognized option: \`$1'
16501 Try \`$0 --help' for more information." ;;
16503 *) as_fn_append ac_config_targets
" $1"
16504 ac_need_defaults
=false
;;
16510 ac_configure_extra_args
=
16512 if $ac_cs_silent; then
16514 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16519 if \$ac_cs_recheck; then
16520 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16522 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16523 CONFIG_SHELL='$SHELL'
16524 export CONFIG_SHELL
16529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16533 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16534 ## Running $as_me. ##
16540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16544 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16545 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16551 # Handling of arguments.
16552 for ac_config_target
in $ac_config_targets
16554 case $ac_config_target in
16555 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
16556 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
16557 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
16558 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
16559 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16560 ".gdbinit") CONFIG_FILES
="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
16561 "gnulib/Makefile") CONFIG_FILES
="$CONFIG_FILES gnulib/Makefile" ;;
16562 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
16564 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16569 # If the user did not use the arguments to specify the items to instantiate,
16570 # then the envvar interface is used. Set only those that are not.
16571 # We use the long form for the default assignment because of an extremely
16572 # bizarre bug on SunOS 4.1.3.
16573 if $ac_need_defaults; then
16574 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16575 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16576 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
16577 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16580 # Have a temporary directory for convenience. Make it in the build tree
16581 # simply because there is no reason against having it here, and in addition,
16582 # creating and moving files from /tmp can sometimes cause problems.
16583 # Hook for its removal unless debugging.
16584 # Note that there is a small window in which the directory will not be cleaned:
16585 # after its creation but before its name has been assigned to `$tmp'.
16589 trap 'exit_status=$?
16590 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16592 trap 'as_fn_exit 1' 1 2 13 15
16594 # Create a (secure) tmp directory for tmp files.
16597 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16598 test -n "$tmp" && test -d "$tmp"
16601 tmp
=.
/conf$$
-$RANDOM
16602 (umask 077 && mkdir
"$tmp")
16603 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
16605 # Set up the scripts for CONFIG_FILES section.
16606 # No need to generate them if there are no CONFIG_FILES.
16607 # This happens for instance with `./config.status config.h'.
16608 if test -n "$CONFIG_FILES"; then
16610 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
16611 ac_cs_awk_getline
=:
16612 ac_cs_awk_pipe_init
=
16613 ac_cs_awk_read_file
='
16614 while ((getline aline < (F[key])) > 0)
16617 ac_cs_awk_pipe_fini
=
16619 ac_cs_awk_getline
=false
16620 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
16621 ac_cs_awk_read_file
='
16623 print "cat " F[key] " &&"
16624 '$ac_cs_awk_pipe_init
16625 # The final `:' finishes the AND list.
16626 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
16628 ac_cr
=`echo X | tr X '\015'`
16629 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16630 # But we know of no other shell where ac_cr would be empty at this
16631 # point, so we can use a bashism as a fallback.
16632 if test "x$ac_cr" = x
; then
16633 eval ac_cr
=\$
\'\\r
\'
16635 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16636 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16639 ac_cs_awk_cr
=$ac_cr
16642 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16645 # Create commands to substitute file output variables.
16647 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16648 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16649 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
16652 } >conf$
$files.sh
&&
16653 . .
/conf$
$files.sh ||
16654 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
16655 rm -f conf$
$files.sh
16658 echo "cat >conf$$subs.awk <<_ACEOF" &&
16659 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16661 } >conf$$subs.sh ||
16662 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16663 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16665 for ac_last_try in false false false false false :; do
16666 . ./conf$$subs.sh ||
16667 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16669 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16670 if test $ac_delim_n = $ac_delim_num; then
16672 elif $ac_last_try; then
16673 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16675 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16678 rm -f conf$$subs.sh
16680 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16681 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
16685 s/^/S["/; s
/!.
*/"]=/
16695 s/\(.\{148\}\).*/\1/
16697 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16702 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16709 s/\(.\{148\}\).*/\1/
16711 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16715 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16720 ' <conf$$subs.awk | sed '
16725 ' >>$CONFIG_STATUS || ac_write_fail=1
16726 rm -f conf$$subs.awk
16727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16729 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
16730 for (key in S) S_is_set[key] = 1
16732 \$ac_cs_awk_pipe_init
16736 nfields = split(line, field, "@
")
16738 len = length(field[1])
16739 for (i = 2; i < nfields; i++) {
16741 keylen = length(key)
16742 if (S_is_set[key]) {
16744 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16745 len += length(value) + length(field[++i])
16750 if (nfields == 3 && !substed) {
16752 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16753 \$ac_cs_awk_read_file
16759 \$ac_cs_awk_pipe_fini
16762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16763 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16764 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16767 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
16768 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
16771 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16772 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
16773 # trailing colons and then remove the whole line if VPATH becomes empty
16774 # (actually we leave an empty line to preserve line numbers).
16775 if test "x
$srcdir" = x.; then
16776 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16777 s/:*\$(srcdir):*/:/
16778 s/:*\${srcdir}:*/:/
16780 s/^\([^=]*=[ ]*\):*/\1/
16786 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16787 fi # test -n "$CONFIG_FILES"
16789 # Set up the scripts for CONFIG_HEADERS section.
16790 # No need to generate them if there are no CONFIG_HEADERS.
16791 # This happens for instance with `./config.status Makefile'.
16792 if test -n "$CONFIG_HEADERS"; then
16793 cat >"$tmp/defines.
awk" <<\_ACAWK ||
16797 # Transform confdefs.h into an awk script `defines.awk', embedded as
16798 # here-document in config.status, that substitutes the proper values into
16799 # config.h.in to produce config.h.
16801 # Create a delimiter string that does not exist in confdefs.h, to ease
16802 # handling of long lines.
16804 for ac_last_try in false false :; do
16805 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
16806 if test -z "$ac_t"; then
16808 elif $ac_last_try; then
16809 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
16811 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16815 # For the awk script, D is an array of macro values keyed by name,
16816 # likewise P contains macro parameters if any. Preserve backslash
16817 # newline sequences.
16819 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16821 s/.\{148\}/&'"$ac_delim"'/g
16824 s/^[ ]*#[ ]*define[ ][ ]*/ /
16831 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16833 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16837 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16838 D["\
1"]=" \
3\\\\\\n
"\\/p
16840 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16845 s/.\{148\}/&'"$ac_delim"'/g
16850 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16853 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16855 ' <confdefs.h | sed '
16856 s/'"$ac_delim"'/"\\\
16857 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16860 for (key in D) D_is_set[key] = 1
16863 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16865 split(line, arg, " ")
16866 if (arg[1] == "#") {
16870 defundef
= substr
(arg
[1], 2)
16873 split(mac1
, mac2
, "(") #)
16875 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16876 if (D_is_set
[macro
]) {
16877 # Preserve the white space surrounding the "#".
16878 print prefix
"define", macro P
[macro
] D
[macro
]
16881 # Replace #undef with comments. This is necessary, for example,
16882 # in the case of _POSIX_SOURCE, which is predefined and required
16883 # on some systems where configure will not decide to define it.
16884 if (defundef
== "undef") {
16885 print
"/*", prefix defundef
, macro
, "*/"
16893 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16894 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
16895 fi # test -n "$CONFIG_HEADERS"
16898 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16903 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16905 case $ac_mode$ac_tag in
16907 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16908 :[FH
]-) ac_tag
=-:-;;
16909 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16926 -) ac_f
="$tmp/stdin";;
16927 *) # Look for the file first in the build tree, then in the source tree
16928 # (if the path is not absolute). The absolute path cannot be DOS-style,
16929 # because $ac_f cannot contain `:'.
16933 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16935 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
16937 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16938 as_fn_append ac_file_inputs
" '$ac_f'"
16941 # Let's still pretend it is `configure' which instantiates (i.e., don't
16942 # use $as_me), people would be surprised to read:
16943 # /* config.h. Generated by config.status. */
16944 configure_input
='Generated from '`
16945 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16947 if test x
"$ac_file" != x-
; then
16948 configure_input
="$ac_file. $configure_input"
16949 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16950 $as_echo "$as_me: creating $ac_file" >&6;}
16952 # Neutralize special characters interpreted by sed in replacement strings.
16953 case $configure_input in #(
16954 *\
&* |
*\|
* |
*\\* )
16955 ac_sed_conf_input
=`$as_echo "$configure_input" |
16956 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16957 *) ac_sed_conf_input
=$configure_input;;
16961 *:-:* |
*:-) cat >"$tmp/stdin" \
16962 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
16967 ac_dir
=`$as_dirname -- "$ac_file" ||
16968 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16969 X"$ac_file" : 'X\(//\)[^/]' \| \
16970 X"$ac_file" : 'X\(//\)$' \| \
16971 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16972 $as_echo X"$ac_file" |
16973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16977 /^X\(\/\/\)[^/].*/{
16990 as_dir
="$ac_dir"; as_fn_mkdir_p
16994 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16996 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16997 # A ".." for each directory in $ac_dir_suffix.
16998 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16999 case $ac_top_builddir_sub in
17000 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17001 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17004 ac_abs_top_builddir
=$ac_pwd
17005 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17006 # for backward compatibility:
17007 ac_top_builddir
=$ac_top_build_prefix
17010 .
) # We are building in place.
17012 ac_top_srcdir
=$ac_top_builddir_sub
17013 ac_abs_top_srcdir
=$ac_pwd ;;
17014 [\\/]* | ?
:[\\/]* ) # Absolute name.
17015 ac_srcdir
=$srcdir$ac_dir_suffix;
17016 ac_top_srcdir
=$srcdir
17017 ac_abs_top_srcdir
=$srcdir ;;
17018 *) # Relative name.
17019 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17020 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17021 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17023 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17033 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17034 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
17036 ac_MKDIR_P
=$MKDIR_P
17038 [\\/$
]* | ?
:[\\/]* ) ;;
17039 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
17043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17044 # If the template does not know about datarootdir, expand it.
17045 # FIXME: This hack should be removed a few years after 2.60.
17046 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17057 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17058 *datarootdir
*) ac_datarootdir_seen
=yes;;
17059 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17061 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17064 ac_datarootdir_hack='
17065 s&@datadir@&$datadir&g
17066 s&@docdir@&$docdir&g
17067 s&@infodir@&$infodir&g
17068 s&@localedir@&$localedir&g
17069 s&@mandir@&$mandir&g
17070 s&\\\${datarootdir}&$datarootdir&g' ;;
17074 # Neutralize VPATH when `$srcdir' = `.'.
17075 # Shell code in configure.ac might set extrasub.
17076 # FIXME: do we really want to maintain this feature?
17077 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17078 ac_sed_extra="$ac_vpsub
17081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17083 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17084 s|@configure_input@|
$ac_sed_conf_input|
;t t
17085 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17086 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17087 s
&@srcdir@
&$ac_srcdir&;t t
17088 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17089 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17090 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17091 s
&@builddir@
&$ac_builddir&;t t
17092 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17093 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17094 s
&@INSTALL@
&$ac_INSTALL&;t t
17095 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
17096 $ac_datarootdir_hack
17098 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17099 if $ac_cs_awk_getline; then
17100 $AWK -f "$tmp/subs.
awk"
17102 $AWK -f "$tmp/subs.
awk" | $SHELL
17104 || as_fn_error "could not create
$ac_file" "$LINENO" 5
17106 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17107 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
17108 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
17109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17110 which seems to be undefined. Please make sure it is defined." >&5
17111 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17112 which seems to be undefined. Please make sure it is defined." >&2;}
17116 -) cat "$tmp/out" && rm -f "$tmp/out";;
17117 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17119 || as_fn_error "could not create $ac_file" "$LINENO" 5
17125 if test x"$ac_file" != x-; then
17127 $as_echo "/* $configure_input */" \
17128 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17129 } >"$tmp/config.h" \
17130 || as_fn_error "could not create $ac_file" "$LINENO" 5
17131 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17133 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17136 mv "$tmp/config.h" "$ac_file" \
17137 || as_fn_error "could not create $ac_file" "$LINENO" 5
17140 $as_echo "/* $configure_input */" \
17141 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17142 || as_fn_error "could not create -" "$LINENO" 5
17144 # Compute "$ac_file"'s index
in $config_headers.
17147 for _am_header
in $config_headers :; do
17148 case $_am_header in
17149 $_am_arg |
$_am_arg:* )
17152 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
17155 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17156 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17157 X"$_am_arg" : 'X\(//\)[^/]' \| \
17158 X"$_am_arg" : 'X\(//\)$' \| \
17159 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17160 $as_echo X"$_am_arg" |
17161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17165 /^X\(\/\/\)[^/].*/{
17177 s/.*/./; q'`/stamp-h
$_am_stamp_count
17184 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17187 # Prefer the file from the source tree if names are identical.
17188 if test "$ac_source" = "$ac_file" ||
test ! -r "$ac_source"; then
17189 ac_source
=$srcdir/$ac_source
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17193 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17195 if test ! -r "$ac_source"; then
17196 as_fn_error
"$ac_source: file not found" "$LINENO" 5
17200 # Try a relative symlink, then a hard link, then a copy.
17202 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$ac_source ;;
17203 *) ac_rel_source
=$ac_top_build_prefix$ac_source ;;
17205 ln -s "$ac_rel_source" "$ac_file" 2>/dev
/null ||
17206 ln "$ac_source" "$ac_file" 2>/dev
/null ||
17207 cp -p "$ac_source" "$ac_file" ||
17208 as_fn_error
"cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17211 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17212 $as_echo "$as_me: executing $ac_file commands" >&6;}
17217 case $ac_file$ac_mode in
17218 "depdir":C
) $SHELL $ac_aux_dir/mkinstalldirs
$DEPDIR ;;
17219 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
17220 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17221 # are listed without --file. Let's play safe and only enable the eval
17222 # if we detect the quoting.
17223 case $CONFIG_FILES in
17224 *\'*) eval set x
"$CONFIG_FILES" ;;
17225 *) set x
$CONFIG_FILES ;;
17230 # Strip MF so we end up with the name of the file.
17231 mf
=`echo "$mf" | sed -e 's/:.*$//'`
17232 # Check whether this is an Automake generated Makefile or not.
17233 # We used to match only the files named `Makefile.in', but
17234 # some people rename them; so instead we look at the file content.
17235 # Grep'ing the first line is not enough: some people post-process
17236 # each Makefile.in and add a new line on top of each file to say so.
17237 # Grep'ing the whole file is not good either: AIX grep has a line
17238 # limit of 2048, but all sed's we know have understand at least 4000.
17239 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
17240 dirpart
=`$as_dirname -- "$mf" ||
17241 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17242 X"$mf" : 'X\(//\)[^/]' \| \
17243 X"$mf" : 'X\(//\)$' \| \
17244 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17250 /^X\(\/\/\)[^/].*/{
17266 # Extract the definition of DEPDIR, am__include, and am__quote
17267 # from the Makefile without running `make'.
17268 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
17269 test -z "$DEPDIR" && continue
17270 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
17271 test -z "am__include" && continue
17272 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
17273 # When using ansi2knr, U may be empty or an underscore; expand it
17274 U
=`sed -n 's/^U = //p' < "$mf"`
17275 # Find all dependency output files, they are included files with
17276 # $(DEPDIR) in their names. We invoke sed twice because it is the
17277 # simplest approach to changing $(DEPDIR) to its actual value in the
17279 for file in `sed -n "
17280 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17281 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17282 # Make sure the directory exists.
17283 test -f "$dirpart/$file" && continue
17284 fdir
=`$as_dirname -- "$file" ||
17285 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17286 X"$file" : 'X\(//\)[^/]' \| \
17287 X"$file" : 'X\(//\)$' \| \
17288 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17289 $as_echo X"$file" |
17290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17294 /^X\(\/\/\)[^/].*/{
17307 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
17308 # echo "creating $dirpart/$file"
17309 echo '# dummy' > "$dirpart/$file"
17315 case x
$CONFIG_HEADERS in
17316 xconfig.h
:config.
in)
17327 ac_clean_files
=$ac_clean_files_save
17329 test $ac_write_fail = 0 ||
17330 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
17333 # configure is writing to config.log, and then calls config.status.
17334 # config.status does its own redirection, appending to config.log.
17335 # Unfortunately, on DOS this fails, as config.log is still kept open
17336 # by configure, so config.status won't be able to write to it; its
17337 # output is simply discarded. So we exec the FD to /dev/null,
17338 # effectively closing config.log, so it can be properly (re)opened and
17339 # appended to by config.status. When coming back to configure, we
17340 # need to make the FD available again.
17341 if test "$no_create" != yes; then
17343 ac_config_status_args
=
17344 test "$silent" = yes &&
17345 ac_config_status_args
="$ac_config_status_args --quiet"
17347 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17349 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17350 # would make configure fail if this is the last instruction.
17351 $ac_cs_success || as_fn_exit $?
17355 # CONFIG_SUBDIRS section.
17357 if test "$no_recursion" != yes; then
17359 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17360 # so they do not pile up.
17361 ac_sub_configure_args
=
17363 eval "set x $ac_configure_args"
17367 if test -n "$ac_prev"; then
17372 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
17373 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
17374 ac_prev
=cache_file
;;
17375 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
17376 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
17379 --config-cache |
-C)
17381 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
17383 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
17385 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
17387 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
17389 --disable-option-checking)
17393 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17395 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
17399 # Always prepend --prefix to ensure using the same prefix
17400 # in subdir configurations.
17401 ac_arg
="--prefix=$prefix"
17403 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17405 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
17408 if test "$silent" = yes; then
17409 ac_sub_configure_args
="--silent $ac_sub_configure_args"
17412 # Always prepend --disable-option-checking to silence warnings, since
17413 # different subdirs can have different --enable and --with options.
17414 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
17417 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
17419 # Do not complain, so a configure script can configure whichever
17420 # parts of a large source tree are present.
17421 test -d "$srcdir/$ac_dir" ||
continue
17423 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17424 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17425 $as_echo "$ac_msg" >&6
17426 as_dir
="$ac_dir"; as_fn_mkdir_p
17430 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17432 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17433 # A ".." for each directory in $ac_dir_suffix.
17434 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17435 case $ac_top_builddir_sub in
17436 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17437 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17440 ac_abs_top_builddir
=$ac_pwd
17441 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17442 # for backward compatibility:
17443 ac_top_builddir
=$ac_top_build_prefix
17446 .
) # We are building in place.
17448 ac_top_srcdir
=$ac_top_builddir_sub
17449 ac_abs_top_srcdir
=$ac_pwd ;;
17450 [\\/]* | ?
:[\\/]* ) # Absolute name.
17451 ac_srcdir
=$srcdir$ac_dir_suffix;
17452 ac_top_srcdir
=$srcdir
17453 ac_abs_top_srcdir
=$srcdir ;;
17454 *) # Relative name.
17455 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17456 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17457 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17459 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17464 # Check for guested configure; otherwise get Cygnus style configure.
17465 if test -f "$ac_srcdir/configure.gnu"; then
17466 ac_sub_configure
=$ac_srcdir/configure.gnu
17467 elif test -f "$ac_srcdir/configure"; then
17468 ac_sub_configure
=$ac_srcdir/configure
17469 elif test -f "$ac_srcdir/configure.in"; then
17470 # This should be Cygnus configure.
17471 ac_sub_configure
=$ac_aux_dir/configure
17473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17474 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17478 # The recursion is here.
17479 if test -n "$ac_sub_configure"; then
17480 # Make the cache file name correct relative to the subdirectory.
17481 case $cache_file in
17482 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
17483 *) # Relative name.
17484 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
17487 { $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
17488 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17489 # The eval makes quoting arguments work.
17490 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17491 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17492 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17498 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17500 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}