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
696 INSTALL_STRIP_PROGRAM
717 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
753 NEXT_AS_FIRST_DIRECTIVE_STRING_H
763 HAVE_SIGNED_SIG_ATOMIC_T
766 BITSIZEOF_SIG_ATOMIC_T
772 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
776 HAVE_UNSIGNED_LONG_LONG_INT
778 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
781 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
786 APPLE_UNIVERSAL_BUILD
852 GL_COND_LIBTOOL_FALSE
897 MAINTAINER_MODE_FALSE
926 program_transform_name
937 ac_subst_files
='host_makefile_frag'
939 enable_option_checking
940 enable_maintainer_mode
943 enable_dependency_tracking
944 with_separate_debug_dir
946 with_relocated_sources
970 enable_build_warnings
971 enable_gdb_build_warnings
978 ac_precious_vars
='build_alias
990 ac_subdirs_all
='doc testsuite
995 # Initialize some variables set by options.
997 ac_init_version
=false
998 ac_unrecognized_opts
=
1000 # The variables have the same names as the options, with
1001 # dashes changed to underlines.
1002 cache_file
=/dev
/null
1009 program_transform_name
=s
,x
,x
,
1017 # Installation directory options.
1018 # These are left unexpanded so users can "make install exec_prefix=/foo"
1019 # and all the variables that are supposed to be based on exec_prefix
1020 # by default will actually change.
1021 # Use braces instead of parens because sh, perl, etc. also accept them.
1022 # (The list follows the same order as the GNU Coding Standards.)
1023 bindir
='${exec_prefix}/bin'
1024 sbindir
='${exec_prefix}/sbin'
1025 libexecdir
='${exec_prefix}/libexec'
1026 datarootdir
='${prefix}/share'
1027 datadir
='${datarootdir}'
1028 sysconfdir
='${prefix}/etc'
1029 sharedstatedir
='${prefix}/com'
1030 localstatedir
='${prefix}/var'
1031 includedir
='${prefix}/include'
1032 oldincludedir
='/usr/include'
1033 docdir
='${datarootdir}/doc/${PACKAGE}'
1034 infodir
='${datarootdir}/info'
1039 libdir
='${exec_prefix}/lib'
1040 localedir
='${datarootdir}/locale'
1041 mandir
='${datarootdir}/man'
1047 # If the previous option needs an argument, assign it.
1048 if test -n "$ac_prev"; then
1049 eval $ac_prev=\
$ac_option
1055 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1059 # Accept the important Cygnus configure options, so we can diagnose typos.
1061 case $ac_dashdash$ac_option in
1065 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1067 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1068 bindir
=$ac_optarg ;;
1070 -build |
--build |
--buil |
--bui |
--bu)
1071 ac_prev
=build_alias
;;
1072 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1073 build_alias
=$ac_optarg ;;
1075 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1076 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1077 ac_prev
=cache_file
;;
1078 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1079 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1080 cache_file
=$ac_optarg ;;
1082 --config-cache |
-C)
1083 cache_file
=config.cache
;;
1085 -datadir |
--datadir |
--datadi |
--datad)
1087 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1088 datadir
=$ac_optarg ;;
1090 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1091 |
--dataroo |
--dataro |
--datar)
1092 ac_prev
=datarootdir
;;
1093 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1094 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1095 datarootdir
=$ac_optarg ;;
1097 -disable-* |
--disable-*)
1098 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1101 as_fn_error
"invalid feature name: $ac_useropt"
1102 ac_useropt_orig
=$ac_useropt
1103 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104 case $ac_user_opts in
1106 "enable_
$ac_useropt"
1108 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1109 ac_unrecognized_sep
=', ';;
1111 eval enable_
$ac_useropt=no
;;
1113 -docdir |
--docdir |
--docdi |
--doc |
--do)
1115 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1116 docdir
=$ac_optarg ;;
1118 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1120 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1121 dvidir
=$ac_optarg ;;
1123 -enable-* |
--enable-*)
1124 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1125 # Reject names that are not valid shell variable names.
1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1127 as_fn_error
"invalid feature name: $ac_useropt"
1128 ac_useropt_orig
=$ac_useropt
1129 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130 case $ac_user_opts in
1132 "enable_
$ac_useropt"
1134 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1135 ac_unrecognized_sep
=', ';;
1137 eval enable_
$ac_useropt=\
$ac_optarg ;;
1139 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1140 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1141 |
--exec |
--exe |
--ex)
1142 ac_prev
=exec_prefix
;;
1143 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1144 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1145 |
--exec=* |
--exe=* |
--ex=*)
1146 exec_prefix
=$ac_optarg ;;
1148 -gas |
--gas |
--ga |
--g)
1149 # Obsolete; use --with-gas.
1152 -help |
--help |
--hel |
--he |
-h)
1153 ac_init_help
=long
;;
1154 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1155 ac_init_help
=recursive
;;
1156 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1157 ac_init_help
=short
;;
1159 -host |
--host |
--hos |
--ho)
1160 ac_prev
=host_alias
;;
1161 -host=* |
--host=* |
--hos=* |
--ho=*)
1162 host_alias
=$ac_optarg ;;
1164 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1166 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1168 htmldir
=$ac_optarg ;;
1170 -includedir |
--includedir |
--includedi |
--included |
--include \
1171 |
--includ |
--inclu |
--incl |
--inc)
1172 ac_prev
=includedir
;;
1173 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1174 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1175 includedir
=$ac_optarg ;;
1177 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1179 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1180 infodir
=$ac_optarg ;;
1182 -libdir |
--libdir |
--libdi |
--libd)
1184 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1185 libdir
=$ac_optarg ;;
1187 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1188 |
--libexe |
--libex |
--libe)
1189 ac_prev
=libexecdir
;;
1190 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1191 |
--libexe=* |
--libex=* |
--libe=*)
1192 libexecdir
=$ac_optarg ;;
1194 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1195 ac_prev
=localedir
;;
1196 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1197 localedir
=$ac_optarg ;;
1199 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1200 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1201 ac_prev
=localstatedir
;;
1202 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1203 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1204 localstatedir
=$ac_optarg ;;
1206 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1208 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1209 mandir
=$ac_optarg ;;
1211 -nfp |
--nfp |
--nf)
1212 # Obsolete; use --without-fp.
1215 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1216 |
--no-cr |
--no-c |
-n)
1219 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1220 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1223 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1224 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1225 |
--oldin |
--oldi |
--old |
--ol |
--o)
1226 ac_prev
=oldincludedir
;;
1227 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1228 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1229 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1230 oldincludedir
=$ac_optarg ;;
1232 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1234 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1235 prefix
=$ac_optarg ;;
1237 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1238 |
--program-pre |
--program-pr |
--program-p)
1239 ac_prev
=program_prefix
;;
1240 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1241 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1242 program_prefix
=$ac_optarg ;;
1244 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1245 |
--program-suf |
--program-su |
--program-s)
1246 ac_prev
=program_suffix
;;
1247 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1248 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1249 program_suffix
=$ac_optarg ;;
1251 -program-transform-name |
--program-transform-name \
1252 |
--program-transform-nam |
--program-transform-na \
1253 |
--program-transform-n |
--program-transform- \
1254 |
--program-transform |
--program-transfor \
1255 |
--program-transfo |
--program-transf \
1256 |
--program-trans |
--program-tran \
1257 |
--progr-tra |
--program-tr |
--program-t)
1258 ac_prev
=program_transform_name
;;
1259 -program-transform-name=* |
--program-transform-name=* \
1260 |
--program-transform-nam=* |
--program-transform-na=* \
1261 |
--program-transform-n=* |
--program-transform-=* \
1262 |
--program-transform=* |
--program-transfor=* \
1263 |
--program-transfo=* |
--program-transf=* \
1264 |
--program-trans=* |
--program-tran=* \
1265 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1266 program_transform_name
=$ac_optarg ;;
1268 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1270 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1271 pdfdir
=$ac_optarg ;;
1273 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1275 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1278 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1279 |
-silent |
--silent |
--silen |
--sile |
--sil)
1282 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1284 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1286 sbindir
=$ac_optarg ;;
1288 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1289 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1290 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1292 ac_prev
=sharedstatedir
;;
1293 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1294 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1295 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1297 sharedstatedir
=$ac_optarg ;;
1299 -site |
--site |
--sit)
1301 -site=* |
--site=* |
--sit=*)
1304 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1306 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1307 srcdir
=$ac_optarg ;;
1309 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1310 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1311 ac_prev
=sysconfdir
;;
1312 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1313 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1314 sysconfdir
=$ac_optarg ;;
1316 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1317 ac_prev
=target_alias
;;
1318 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1319 target_alias
=$ac_optarg ;;
1321 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1324 -version |
--version |
--versio |
--versi |
--vers |
-V)
1325 ac_init_version
=: ;;
1328 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1329 # Reject names that are not valid shell variable names.
1330 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1331 as_fn_error
"invalid package name: $ac_useropt"
1332 ac_useropt_orig
=$ac_useropt
1333 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1334 case $ac_user_opts in
1338 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1339 ac_unrecognized_sep
=', ';;
1341 eval with_
$ac_useropt=\
$ac_optarg ;;
1343 -without-* |
--without-*)
1344 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1345 # Reject names that are not valid shell variable names.
1346 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1347 as_fn_error
"invalid package name: $ac_useropt"
1348 ac_useropt_orig
=$ac_useropt
1349 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1350 case $ac_user_opts in
1354 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1355 ac_unrecognized_sep
=', ';;
1357 eval with_
$ac_useropt=no
;;
1360 # Obsolete; use --with-x.
1363 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1364 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1365 ac_prev
=x_includes
;;
1366 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1367 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1368 x_includes
=$ac_optarg ;;
1370 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1371 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1372 ac_prev
=x_libraries
;;
1373 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1374 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1375 x_libraries
=$ac_optarg ;;
1377 -*) as_fn_error
"unrecognized option: \`$ac_option'
1378 Try \`$0 --help' for more information."
1382 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1383 # Reject names that are not valid shell variable names.
1384 case $ac_envvar in #(
1385 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1386 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1388 eval $ac_envvar=\
$ac_optarg
1389 export $ac_envvar ;;
1392 # FIXME: should be removed in autoconf 3.0.
1393 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1394 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1395 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1396 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1402 if test -n "$ac_prev"; then
1403 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1404 as_fn_error
"missing argument to $ac_option"
1407 if test -n "$ac_unrecognized_opts"; then
1408 case $enable_option_checking in
1410 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1411 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1415 # Check all directory arguments for consistency.
1416 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1417 datadir sysconfdir sharedstatedir localstatedir includedir \
1418 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1419 libdir localedir mandir
1421 eval ac_val
=\$
$ac_var
1422 # Remove trailing slashes.
1425 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1426 eval $ac_var=\
$ac_val;;
1428 # Be sure to have absolute directory names.
1430 [\\/$
]* | ?
:[\\/]* ) continue;;
1431 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1433 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1436 # There might be people who depend on the old broken behavior: `$host'
1437 # used to hold the argument of --host etc.
1438 # FIXME: To remove some day.
1441 target
=$target_alias
1443 # FIXME: To remove some day.
1444 if test "x$host_alias" != x
; then
1445 if test "x$build_alias" = x
; then
1446 cross_compiling
=maybe
1447 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1448 If a cross compiler is detected then cross compile mode will be used." >&2
1449 elif test "x$build_alias" != "x$host_alias"; then
1455 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1457 test "$silent" = yes && exec 6>/dev
/null
1460 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1461 ac_ls_di
=`ls -di .` &&
1462 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1463 as_fn_error
"working directory cannot be determined"
1464 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1465 as_fn_error
"pwd does not report name of working directory"
1468 # Find the source files, if location was not specified.
1469 if test -z "$srcdir"; then
1470 ac_srcdir_defaulted
=yes
1471 # Try the directory containing this script, then the parent directory.
1472 ac_confdir
=`$as_dirname -- "$as_myself" ||
1473 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1474 X"$as_myself" : 'X\(//\)[^/]' \| \
1475 X"$as_myself" : 'X\(//\)$' \| \
1476 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1477 $as_echo X"$as_myself" |
1478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1496 if test ! -r "$srcdir/$ac_unique_file"; then
1500 ac_srcdir_defaulted
=no
1502 if test ! -r "$srcdir/$ac_unique_file"; then
1503 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1504 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1506 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1508 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1510 # When building in place, set srcdir=.
1511 if test "$ac_abs_confdir" = "$ac_pwd"; then
1514 # Remove unnecessary trailing slashes from srcdir.
1515 # Double slashes in file names in object file debugging info
1516 # mess up M-x gdb in Emacs.
1518 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1520 for ac_var
in $ac_precious_vars; do
1521 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1522 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1523 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1524 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1528 # Report the --help message.
1530 if test "$ac_init_help" = "long"; then
1531 # Omit some internal or obsolete options to make the list less imposing.
1532 # This message is too long to be a string in the A/UX 3.1 sh.
1534 \`configure' configures this package to adapt to many kinds of systems.
1536 Usage: $0 [OPTION]... [VAR=VALUE]...
1538 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1539 VAR=VALUE. See below for descriptions of some of the useful variables.
1541 Defaults for the options are specified in brackets.
1544 -h, --help display this help and exit
1545 --help=short display options specific to this package
1546 --help=recursive display the short help of all the included packages
1547 -V, --version display version information and exit
1548 -q, --quiet, --silent do not print \`checking...' messages
1549 --cache-file=FILE cache test results in FILE [disabled]
1550 -C, --config-cache alias for \`--cache-file=config.cache'
1551 -n, --no-create do not create output files
1552 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1554 Installation directories:
1555 --prefix=PREFIX install architecture-independent files in PREFIX
1556 [$ac_default_prefix]
1557 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1560 By default, \`make install' will install all the files in
1561 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1562 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1563 for instance \`--prefix=\$HOME'.
1565 For better control, use the options below.
1567 Fine tuning of the installation directories:
1568 --bindir=DIR user executables [EPREFIX/bin]
1569 --sbindir=DIR system admin executables [EPREFIX/sbin]
1570 --libexecdir=DIR program executables [EPREFIX/libexec]
1571 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1572 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1573 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1574 --libdir=DIR object code libraries [EPREFIX/lib]
1575 --includedir=DIR C header files [PREFIX/include]
1576 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1577 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1578 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1579 --infodir=DIR info documentation [DATAROOTDIR/info]
1580 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1581 --mandir=DIR man documentation [DATAROOTDIR/man]
1582 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1583 --htmldir=DIR html documentation [DOCDIR]
1584 --dvidir=DIR dvi documentation [DOCDIR]
1585 --pdfdir=DIR pdf documentation [DOCDIR]
1586 --psdir=DIR ps documentation [DOCDIR]
1592 --program-prefix=PREFIX prepend PREFIX to installed program names
1593 --program-suffix=SUFFIX append SUFFIX to installed program names
1594 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1597 --x-includes=DIR X include files are
in DIR
1598 --x-libraries=DIR X library files are
in DIR
1601 --build=BUILD configure
for building on BUILD
[guessed
]
1602 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1603 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1607 if test -n "$ac_init_help"; then
1612 --disable-option-checking ignore unrecognized
--enable/--with options
1613 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1614 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1615 --enable-maintainer-mode enable make rules and dependencies not useful
1616 (and sometimes confusing
) to the casual installer
1617 --enable-plugins Enable support
for plugins
(defaults no
)
1618 --disable-largefile omit support
for large files
1619 --disable-dependency-tracking speeds up one-time build
1620 --enable-dependency-tracking do not reject slow dependency extractors
1621 --enable-targets=TARGETS
1622 alternative target configurations
1623 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1624 --disable-gdbcli disable command-line interface
(CLI
)
1625 --disable-gdbmi disable machine-interface
(MI
)
1626 --enable-tui enable full-screen terminal user interface
(TUI
)
1627 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1628 --enable-profiling enable profiling of GDB
1629 --disable-rpath do not hardcode runtime library paths
1630 --enable-werror treat compile warnings as errors
1631 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1632 --enable-gdb-build-warnings
1633 enable GDB specific build-time compiler warnings
if
1635 --enable-sim link gdb with simulator
1636 --enable-multi-ice build the multi-ice-gdb-server
1639 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1640 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1641 --with-separate-debug-dir=PATH
1642 look for global separate debug info
in this path
1644 --with-gdb-datadir=PATH
look for global separate data files
in this path
1646 --with-relocated-sources=PATH
1647 automatically relocate this path
for source files
1648 --with-libunwind use libunwind frame unwinding support
1649 --with-curses use the curses library instead of the termcap
1651 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1652 --with-bugurl=URL Direct users to URL to report a bug
1653 --with-zlib include zlib support
(auto
/yes
/no
) default
=auto
1654 --with-libiconv-prefix=DIR
1655 search
for libiconv
in DIR
/include and DIR
/lib
1656 --with-system-readline use installed readline library
1657 --with-expat include expat support
(auto
/yes
/no
)
1658 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1659 --with-libexpat-prefix[=DIR
] search
for libexpat
in DIR
/include and DIR
/lib
1660 --without-libexpat-prefix don
't search for libexpat in includedir and libdir
1661 --with-python[=PYTHON] include python support
1662 (auto/yes/no/<python-program>)
1663 --without-included-regex
1664 don't use included regex
; this is the default on
1665 systems with version
2 of the GNU C library
(use
1666 with caution on other system
)
1667 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1668 --with-system-gdbinit=PATH
1669 automatically load a system-wide gdbinit
file
1670 --with-tcl directory containing tcl configuration
(tclConfig.sh
)
1671 --with-tk directory containing tk configuration
(tkConfig.sh
)
1672 --with-x use the X Window System
1674 Some influential environment variables
:
1675 CC C compiler
command
1676 CFLAGS C compiler flags
1677 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1678 nonstandard directory
<lib dir
>
1679 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1680 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1681 you have headers
in a nonstandard directory
<include dir
>
1683 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1684 the first program found out of: `bison
-y', `byacc', `yacc'.
1685 YFLAGS The list of arguments that will be passed by default to $YACC.
1686 This script will default YFLAGS to the empty string to avoid a
1687 default value of `-d' given by some make applications.
1688 XMKMF Path to xmkmf, Makefile generator for X Window System
1690 Use these variables to override the choices made by `configure' or to
help
1691 it to
find libraries and programs with nonstandard names
/locations.
1693 Report bugs to the package provider.
1698 if test "$ac_init_help" = "recursive"; then
1699 # If there are subdirs, report their specific --help.
1700 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1701 test -d "$ac_dir" ||
1702 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1707 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1709 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1710 # A ".." for each directory in $ac_dir_suffix.
1711 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1712 case $ac_top_builddir_sub in
1713 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1714 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1717 ac_abs_top_builddir
=$ac_pwd
1718 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1719 # for backward compatibility:
1720 ac_top_builddir
=$ac_top_build_prefix
1723 .
) # We are building in place.
1725 ac_top_srcdir
=$ac_top_builddir_sub
1726 ac_abs_top_srcdir
=$ac_pwd ;;
1727 [\\/]* | ?
:[\\/]* ) # Absolute name.
1728 ac_srcdir
=$srcdir$ac_dir_suffix;
1729 ac_top_srcdir
=$srcdir
1730 ac_abs_top_srcdir
=$srcdir ;;
1732 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1733 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1734 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1736 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1738 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1739 # Check for guested configure.
1740 if test -f "$ac_srcdir/configure.gnu"; then
1742 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1743 elif test -f "$ac_srcdir/configure"; then
1745 $SHELL "$ac_srcdir/configure" --help=recursive
1747 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1749 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1753 test -n "$ac_init_help" && exit $ac_status
1754 if $ac_init_version; then
1757 generated by GNU Autoconf
2.64
1759 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1760 This configure
script is free software
; the Free Software Foundation
1761 gives unlimited permission to copy
, distribute and modify it.
1766 ## ------------------------ ##
1767 ## Autoconf initialization. ##
1768 ## ------------------------ ##
1770 # ac_fn_c_try_compile LINENO
1771 # --------------------------
1772 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1773 ac_fn_c_try_compile
()
1775 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1776 rm -f conftest.
$ac_objext
1777 if { { ac_try
="$ac_compile"
1779 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1780 *) ac_try_echo=$ac_try;;
1782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783 $as_echo "$ac_try_echo"; } >&5
1784 (eval "$ac_compile") 2>conftest.err
1786 if test -s conftest.err; then
1787 grep -v '^ *+' conftest.err >conftest.er1
1788 cat conftest.er1 >&5
1789 mv -f conftest.er1 conftest.err
1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792 test $ac_status = 0; } && {
1793 test -z "$ac_c_werror_flag" ||
1794 test ! -s conftest.err
1795 } && test -s conftest.$ac_objext; then :
1798 $as_echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1803 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1806 } # ac_fn_c_try_compile
1808 # ac_fn_c_try_cpp LINENO
1809 # ----------------------
1810 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 if { { ac_try="$ac_cpp conftest.$ac_ext"
1816 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1817 *) ac_try_echo
=$ac_try;;
1819 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820 $as_echo "$ac_try_echo"; } >&5
1821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1823 if test -s conftest.err
; then
1824 grep -v '^ *+' conftest.err
>conftest.er1
1825 cat conftest.er1
>&5
1826 mv -f conftest.er1 conftest.err
1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829 test $ac_status = 0; } >/dev
/null
&& {
1830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1831 test ! -s conftest.err
1835 $as_echo "$as_me: failed program was:" >&5
1836 sed 's/^/| /' conftest.
$ac_ext >&5
1840 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1845 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1846 # -------------------------------------------------------
1847 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1848 # the include files in INCLUDES and setting the cache variable VAR
1850 ac_fn_c_check_header_mongrel
()
1852 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1853 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1855 $as_echo_n "checking for $2... " >&6; }
1856 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1857 $as_echo_n "(cached) " >&6
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1861 $as_echo "$ac_res" >&6; }
1863 # Is the header compilable?
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1865 $as_echo_n "checking $2 usability... " >&6; }
1866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h. */
1871 if ac_fn_c_try_compile
"$LINENO"; then :
1872 ac_header_compiler
=yes
1874 ac_header_compiler
=no
1876 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1878 $as_echo "$ac_header_compiler" >&6; }
1880 # Is the header present?
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1882 $as_echo_n "checking $2 presence... " >&6; }
1883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1884 /* end confdefs.h. */
1887 if ac_fn_c_try_cpp
"$LINENO"; then :
1888 ac_header_preproc
=yes
1890 ac_header_preproc
=no
1892 rm -f conftest.err conftest.
$ac_ext
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1894 $as_echo "$ac_header_preproc" >&6; }
1896 # So? What about this header?
1897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1900 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1902 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1906 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1908 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1910 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1912 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1914 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1918 $as_echo_n "checking for $2... " >&6; }
1919 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1920 $as_echo_n "(cached) " >&6
1922 eval "$3=\$ac_header_compiler"
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1926 $as_echo "$ac_res" >&6; }
1928 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1930 } # ac_fn_c_check_header_mongrel
1932 # ac_fn_c_try_run LINENO
1933 # ----------------------
1934 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1935 # that executables *can* be run.
1938 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1939 if { { ac_try
="$ac_link"
1941 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1942 *) ac_try_echo=$ac_try;;
1944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1945 $as_echo "$ac_try_echo"; } >&5
1946 (eval "$ac_link") 2>&5
1948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1949 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1950 { { case "(($ac_try" in
1951 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1952 *) ac_try_echo
=$ac_try;;
1954 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955 $as_echo "$ac_try_echo"; } >&5
1956 (eval "$ac_try") 2>&5
1958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959 test $ac_status = 0; }; }; then :
1962 $as_echo "$as_me: program exited with status $ac_status" >&5
1963 $as_echo "$as_me: failed program was:" >&5
1964 sed 's/^/| /' conftest.
$ac_ext >&5
1966 ac_retval
=$ac_status
1968 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1969 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1974 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1975 # -------------------------------------------------------
1976 # Tests whether HEADER exists and can be compiled using the include files in
1977 # INCLUDES, setting the cache variable VAR accordingly.
1978 ac_fn_c_check_header_compile
()
1980 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1982 $as_echo_n "checking for $2... " >&6; }
1983 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1984 $as_echo_n "(cached) " >&6
1986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h. */
1991 if ac_fn_c_try_compile
"$LINENO"; then :
1996 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2001 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2003 } # ac_fn_c_check_header_compile
2005 # ac_fn_c_try_link LINENO
2006 # -----------------------
2007 # Try to link conftest.$ac_ext, and return whether this succeeded.
2010 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2011 rm -f conftest.
$ac_objext conftest
$ac_exeext
2012 if { { ac_try
="$ac_link"
2014 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2015 *) ac_try_echo=$ac_try;;
2017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2018 $as_echo "$ac_try_echo"; } >&5
2019 (eval "$ac_link") 2>conftest.err
2021 if test -s conftest.err; then
2022 grep -v '^ *+' conftest.err >conftest.er1
2023 cat conftest.er1 >&5
2024 mv -f conftest.er1 conftest.err
2026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2027 test $ac_status = 0; } && {
2028 test -z "$ac_c_werror_flag" ||
2029 test ! -s conftest.err
2030 } && test -s conftest$ac_exeext && {
2031 test "$cross_compiling" = yes ||
2032 $as_test_x conftest$ac_exeext
2036 $as_echo "$as_me: failed program was:" >&5
2037 sed 's/^/| /' conftest.$ac_ext >&5
2041 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2042 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2043 # interfere with the next link command; also delete a directory that is
2044 # left behind by Apple's compiler. We do this before executing the actions.
2045 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2046 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2049 } # ac_fn_c_try_link
2051 # ac_fn_c_check_func LINENO FUNC VAR
2052 # ----------------------------------
2053 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2054 ac_fn_c_check_func ()
2056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2058 $as_echo_n "checking for $2... " >&6; }
2059 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2060 $as_echo_n "(cached) " >&6
2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2064 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2066 #define $2 innocuous_$2
2068 /* System header to define __stub macros and hopefully few prototypes,
2069 which can conflict with char $2 (); below.
2070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2071 <limits.h> exists even on freestanding compilers. */
2074 # include <limits.h>
2076 # include <assert.h>
2081 /* Override any GCC internal prototype to avoid an error.
2082 Use char because int might match the return type of a GCC
2083 builtin and then its argument prototype would still apply. */
2088 /* The GNU C library defines this for functions which it implements
2089 to always fail with ENOSYS. Some functions are actually named
2090 something starting with __ and the normal name is an alias. */
2091 #if defined __stub_$2 || defined __stub___$2
2103 if ac_fn_c_try_link "$LINENO"; then :
2108 rm -f core conftest.err conftest.$ac_objext \
2109 conftest$ac_exeext conftest.$ac_ext
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2113 $as_echo "$ac_res" >&6; }
2114 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2116 } # ac_fn_c_check_func
2118 # ac_fn_c_check_decl LINENO SYMBOL VAR
2119 # ------------------------------------
2120 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2121 ac_fn_c_check_decl ()
2123 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2125 $as_echo_n "checking whether $2 is declared... " >&6; }
2126 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2127 $as_echo_n "(cached) " >&6
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h. */
2143 if ac_fn_c_try_compile "$LINENO"; then :
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2152 $as_echo "$ac_res" >&6; }
2153 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2155 } # ac_fn_c_check_decl
2157 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2158 # --------------------------------------------
2159 # Tries to find the compile-time value of EXPR in a program that includes
2160 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2162 ac_fn_c_compute_int ()
2164 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2165 if test "$cross_compiling" = yes; then
2166 # Depending upon the size, compute the lo and hi bounds.
2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h. */
2173 static int test_array [1 - 2 * !(($2) >= 0)];
2180 if ac_fn_c_try_compile "$LINENO"; then :
2183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184 /* end confdefs.h. */
2189 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2196 if ac_fn_c_try_compile "$LINENO"; then :
2197 ac_hi=$ac_mid; break
2199 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2200 if test $ac_lo -le $ac_mid; then
2204 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2210 /* end confdefs.h. */
2215 static int test_array [1 - 2 * !(($2) < 0)];
2222 if ac_fn_c_try_compile "$LINENO"; then :
2225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226 /* end confdefs.h. */
2231 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2238 if ac_fn_c_try_compile "$LINENO"; then :
2239 ac_lo=$ac_mid; break
2241 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2242 if test $ac_mid -le $ac_hi; then
2246 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256 # Binary search between lo and hi bounds.
2257 while test "x$ac_lo" != "x$ac_hi"; do
2258 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h. */
2265 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2272 if ac_fn_c_try_compile "$LINENO"; then :
2275 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2280 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2285 /* end confdefs.h. */
2287 static long int longval () { return $2; }
2288 static unsigned long int ulongval () { return $2; }
2295 FILE *f = fopen ("conftest.val", "w");
2300 long int i = longval ();
2303 fprintf (f, "%ld", i);
2307 unsigned long int i = ulongval ();
2310 fprintf (f, "%lu", i);
2312 /* Do not output a trailing newline, as this causes \r\n confusion
2313 on some platforms. */
2314 return ferror (f) || fclose (f) != 0;
2320 if ac_fn_c_try_run "$LINENO"; then :
2321 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2326 conftest.$ac_objext conftest.beam conftest.$ac_ext
2330 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2333 } # ac_fn_c_compute_int
2335 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2336 # ----------------------------------------------------
2337 # Tries to find if the field MEMBER exists in type AGGR, after including
2338 # INCLUDES, setting cache variable VAR accordingly.
2339 ac_fn_c_check_member ()
2341 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2343 $as_echo_n "checking for $2.$3... " >&6; }
2344 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2345 $as_echo_n "(cached) " >&6
2347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348 /* end confdefs.h. */
2360 if ac_fn_c_try_compile "$LINENO"; then :
2363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2364 /* end confdefs.h. */
2370 if (sizeof ac_aggr.$3)
2376 if ac_fn_c_try_compile "$LINENO"; then :
2381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2387 $as_echo "$ac_res" >&6; }
2388 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2390 } # ac_fn_c_check_member
2392 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2393 # -------------------------------------------
2394 # Tests whether TYPE exists after having included INCLUDES, setting cache
2395 # variable VAR accordingly.
2396 ac_fn_c_check_type ()
2398 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2400 $as_echo_n "checking for $2... " >&6; }
2401 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2402 $as_echo_n "(cached) " >&6
2405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2406 /* end confdefs.h. */
2417 if ac_fn_c_try_compile "$LINENO"; then :
2418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2419 /* end confdefs.h. */
2430 if ac_fn_c_try_compile "$LINENO"; then :
2435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2441 $as_echo "$ac_res" >&6; }
2442 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2444 } # ac_fn_c_check_type
2445 cat >config.log <<_ACEOF
2446 This file contains any messages produced by compilers while
2447 running configure, to aid debugging if configure makes a mistake.
2449 It was created by $as_me, which was
2450 generated by GNU Autoconf 2.64. Invocation command line was
2462 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2463 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2464 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2465 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2466 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2468 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2469 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2471 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2472 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2473 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2474 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2475 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2476 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2477 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485 test -z "$as_dir" && as_dir=.
2486 $as_echo "PATH: $as_dir"
2502 # Keep a trace of the command line.
2503 # Strip out --no-create and --no-recursion so they do not pile up.
2504 # Strip out --silent because we don't want to record it for future runs.
2505 # Also quote any args containing shell meta-characters.
2506 # Make two passes to allow for proper duplicate-argument suppression.
2510 ac_must_keep_next=false
2516 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2517 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2518 | -silent | --silent | --silen | --sile | --sil)
2521 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2524 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2526 as_fn_append ac_configure_args1 " '$ac_arg'"
2527 if test $ac_must_keep_next = true; then
2528 ac_must_keep_next=false # Got value, back to normal.
2531 *=* | --config-cache | -C | -disable-* | --disable-* \
2532 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2533 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2534 | -with-* | --with-* | -without-* | --without-* | --x)
2535 case "$ac_configure_args0 " in
2536 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2539 -* ) ac_must_keep_next=true ;;
2542 as_fn_append ac_configure_args " '$ac_arg'"
2547 { ac_configure_args0=; unset ac_configure_args0;}
2548 { ac_configure_args1=; unset ac_configure_args1;}
2550 # When interrupted or exit'd, cleanup temporary files, and complete
2551 # config.log. We remove comments because anyway the quotes in there
2552 # would cause problems or look ugly.
2553 # WARNING: Use '\'' to represent an apostrophe within the trap.
2554 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2555 trap 'exit_status=$?
2556 # Save into config.log some information that might help in debugging.
2561 ## ---------------- ##
2562 ## Cache variables. ##
2563 ## ---------------- ##
2566 # The following way of writing the cache mishandles newlines in values,
2568 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2569 eval ac_val=\$$ac_var
2573 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2574 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2577 _ | IFS | as_nl) ;; #(
2578 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2579 *) { eval $ac_var=; unset $ac_var;} ;;
2584 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2585 *${as_nl}ac_space=\ *)
2587 "s/'\''/'\''\\\\'\'''\''/g;
2588 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2591 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2599 ## ----------------- ##
2600 ## Output variables. ##
2601 ## ----------------- ##
2604 for ac_var in $ac_subst_vars
2606 eval ac_val=\$$ac_var
2608 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2610 $as_echo "$ac_var='\''$ac_val'\''"
2614 if test -n "$ac_subst_files"; then
2616 ## ------------------- ##
2617 ## File substitutions. ##
2618 ## ------------------- ##
2621 for ac_var in $ac_subst_files
2623 eval ac_val=\$$ac_var
2625 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2627 $as_echo "$ac_var='\''$ac_val'\''"
2632 if test -s confdefs.h; then
2642 test "$ac_signal" != 0 &&
2643 $as_echo "$as_me: caught signal $ac_signal"
2644 $as_echo "$as_me: exit $exit_status"
2646 rm -f core *.core core.conftest.* &&
2647 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2650 for ac_signal in 1 2 13 15; do
2651 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2655 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2656 rm -f -r conftest* confdefs.h
2658 $as_echo "/* confdefs.h */" > confdefs.h
2660 # Predefined preprocessor variables.
2662 cat >>confdefs.h <<_ACEOF
2663 #define PACKAGE_NAME "$PACKAGE_NAME"
2666 cat >>confdefs.h <<_ACEOF
2667 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2670 cat >>confdefs.h <<_ACEOF
2671 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2674 cat >>confdefs.h <<_ACEOF
2675 #define PACKAGE_STRING "$PACKAGE_STRING"
2678 cat >>confdefs.h <<_ACEOF
2679 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2682 cat >>confdefs.h <<_ACEOF
2683 #define PACKAGE_URL "$PACKAGE_URL"
2687 # Let the site file select an alternate cache file if it wants to.
2688 # Prefer an explicitly selected file to automatically selected ones.
2691 if test -n "$CONFIG_SITE"; then
2692 ac_site_file1=$CONFIG_SITE
2693 elif test "x$prefix" != xNONE; then
2694 ac_site_file1=$prefix/share/config.site
2695 ac_site_file2=$prefix/etc/config.site
2697 ac_site_file1=$ac_default_prefix/share/config.site
2698 ac_site_file2=$ac_default_prefix/etc/config.site
2700 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2702 test "x$ac_site_file" = xNONE && continue
2703 if test -r "$ac_site_file"; then
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2705 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2706 sed 's/^/| /' "$ac_site_file" >&5
2711 if test -r "$cache_file"; then
2712 # Some versions of bash will fail to source /dev/null (special
2713 # files actually), so we avoid doing that.
2714 if test -f "$cache_file"; then
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2716 $as_echo "$as_me: loading cache $cache_file" >&6;}
2718 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2719 *) . "./$cache_file";;
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2724 $as_echo "$as_me: creating cache $cache_file" >&6;}
2728 gl_header_list="$gl_header_list sys/mman.h"
2729 gl_func_list="$gl_func_list mprotect"
2730 gl_func_list="$gl_func_list memchr"
2731 gl_header_list="$gl_header_list stddef.h"
2732 gl_header_list="$gl_header_list stdint.h"
2733 gl_header_list="$gl_header_list wchar.h"
2734 gl_header_list="$gl_header_list string.h"
2735 # Check that the precious variables saved in the cache have kept the same
2737 ac_cache_corrupted=false
2738 for ac_var in $ac_precious_vars; do
2739 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2740 eval ac_new_set=\$ac_env_${ac_var}_set
2741 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2742 eval ac_new_val=\$ac_env_${ac_var}_value
2743 case $ac_old_set,$ac_new_set in
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2746 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2747 ac_cache_corrupted=: ;;
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2750 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2751 ac_cache_corrupted=: ;;
2754 if test "x$ac_old_val" != "x$ac_new_val"; then
2755 # differences in whitespace do not lead to failure.
2756 ac_old_val_w=`echo x
$ac_old_val`
2757 ac_new_val_w=`echo x
$ac_new_val`
2758 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2760 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2761 ac_cache_corrupted=:
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2764 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2765 eval $ac_var=\$ac_old_val
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2768 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2770 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2773 # Pass precious variables to config.status.
2774 if test "$ac_new_set" = set; then
2776 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2777 *) ac_arg=$ac_var=$ac_new_val ;;
2779 case " $ac_configure_args " in
2780 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2781 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2785 if $ac_cache_corrupted; then
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2789 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2790 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2792 ## -------------------- ##
2793 ## Main body of script. ##
2794 ## -------------------- ##
2797 ac_cpp='$CPP $CPPFLAGS'
2798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2806 ac_config_headers="$ac_config_headers config.h:config.in"
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2810 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2811 # Check whether --enable-maintainer-mode was given.
2812 if test "${enable_maintainer_mode+set}" = set; then :
2813 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2815 USE_MAINTAINER_MODE=no
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2819 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2820 if test $USE_MAINTAINER_MODE = yes; then
2821 MAINTAINER_MODE_TRUE=
2822 MAINTAINER_MODE_FALSE='#'
2824 MAINTAINER_MODE_TRUE='#'
2825 MAINTAINER_MODE_FALSE=
2828 MAINT=$MAINTAINER_MODE_TRUE
2833 ac_cpp='$CPP $CPPFLAGS'
2834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2837 if test -n "$ac_tool_prefix"; then
2838 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2839 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2841 $as_echo_n "checking for $ac_word... " >&6; }
2842 if test "${ac_cv_prog_CC+set}" = set; then :
2843 $as_echo_n "(cached) " >&6
2845 if test -n "$CC"; then
2846 ac_cv_prog_CC="$CC" # Let the user override the test.
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 test -z "$as_dir" && as_dir=.
2853 for ac_exec_ext in '' $ac_executable_extensions; do
2854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2855 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2866 if test -n "$CC"; then
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2868 $as_echo "$CC" >&6; }
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871 $as_echo "no" >&6; }
2876 if test -z "$ac_cv_prog_CC"; then
2878 # Extract the first word of "gcc", so it can be a program name with args.
2879 set dummy gcc; ac_word=$2
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2881 $as_echo_n "checking for $ac_word... " >&6; }
2882 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2883 $as_echo_n "(cached) " >&6
2885 if test -n "$ac_ct_CC"; then
2886 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 test -z "$as_dir" && as_dir=.
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2895 ac_cv_prog_ac_ct_CC="gcc"
2896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2905 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2906 if test -n "$ac_ct_CC"; then
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2908 $as_echo "$ac_ct_CC" >&6; }
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2911 $as_echo "no" >&6; }
2914 if test "x$ac_ct_CC" = x; then
2917 case $cross_compiling:$ac_tool_warned in
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2921 ac_tool_warned=yes ;;
2929 if test -z "$CC"; then
2930 if test -n "$ac_tool_prefix"; then
2931 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2932 set dummy ${ac_tool_prefix}cc; ac_word=$2
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2934 $as_echo_n "checking for $ac_word... " >&6; }
2935 if test "${ac_cv_prog_CC+set}" = set; then :
2936 $as_echo_n "(cached) " >&6
2938 if test -n "$CC"; then
2939 ac_cv_prog_CC="$CC" # Let the user override the test.
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945 test -z "$as_dir" && as_dir=.
2946 for ac_exec_ext in '' $ac_executable_extensions; do
2947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2948 ac_cv_prog_CC="${ac_tool_prefix}cc"
2949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2959 if test -n "$CC"; then
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2961 $as_echo "$CC" >&6; }
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964 $as_echo "no" >&6; }
2970 if test -z "$CC"; then
2971 # Extract the first word of "cc", so it can be a program name with args.
2972 set dummy cc; ac_word=$2
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2974 $as_echo_n "checking for $ac_word... " >&6; }
2975 if test "${ac_cv_prog_CC+set}" = set; then :
2976 $as_echo_n "(cached) " >&6
2978 if test -n "$CC"; then
2979 ac_cv_prog_CC="$CC" # Let the user override the test.
2982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 test -z "$as_dir" && as_dir=.
2987 for ac_exec_ext in '' $ac_executable_extensions; do
2988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2989 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2990 ac_prog_rejected=yes
2994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3001 if test $ac_prog_rejected = yes; then
3002 # We found a bogon in the path, so make sure we never use it.
3003 set dummy $ac_cv_prog_CC
3005 if test $# != 0; then
3006 # We chose a different compiler from the bogus one.
3007 # However, it has the same basename, so the bogon will be chosen
3008 # first if we set CC to just the basename; use the full file name.
3010 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3016 if test -n "$CC"; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3018 $as_echo "$CC" >&6; }
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021 $as_echo "no" >&6; }
3026 if test -z "$CC"; then
3027 if test -n "$ac_tool_prefix"; then
3028 for ac_prog in cl.exe
3030 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3031 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033 $as_echo_n "checking for $ac_word... " >&6; }
3034 if test "${ac_cv_prog_CC+set}" = set; then :
3035 $as_echo_n "(cached) " >&6
3037 if test -n "$CC"; then
3038 ac_cv_prog_CC="$CC" # Let the user override the test.
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 test -z "$as_dir" && as_dir=.
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3047 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3058 if test -n "$CC"; then
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3060 $as_echo "$CC" >&6; }
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063 $as_echo "no" >&6; }
3067 test -n "$CC" && break
3070 if test -z "$CC"; then
3072 for ac_prog in cl.exe
3074 # Extract the first word of "$ac_prog", so it can be a program name with args.
3075 set dummy $ac_prog; ac_word=$2
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3077 $as_echo_n "checking for $ac_word... " >&6; }
3078 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3079 $as_echo_n "(cached) " >&6
3081 if test -n "$ac_ct_CC"; then
3082 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3091 ac_cv_prog_ac_ct_CC="$ac_prog"
3092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3102 if test -n "$ac_ct_CC"; then
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3104 $as_echo "$ac_ct_CC" >&6; }
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107 $as_echo "no" >&6; }
3111 test -n "$ac_ct_CC" && break
3114 if test "x$ac_ct_CC" = x; then
3117 case $cross_compiling:$ac_tool_warned in
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3121 ac_tool_warned=yes ;;
3130 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3132 as_fn_error "no acceptable C compiler found
in \
$PATH
3133 See \
`config.log' for more details." "$LINENO" 5; }
3135 # Provide some information about the compiler.
3136 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3139 for ac_option in --version -v -V -qversion; do
3140 { { ac_try="$ac_compiler $ac_option >&5"
3142 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3143 *) ac_try_echo
=$ac_try;;
3145 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3146 $as_echo "$ac_try_echo"; } >&5
3147 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3149 if test -s conftest.err
; then
3151 ... rest of stderr output deleted ...
3152 10q' conftest.err
>conftest.er1
3153 cat conftest.er1
>&5
3154 rm -f conftest.er1 conftest.err
3156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3157 test $ac_status = 0; }
3160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3161 /* end confdefs.h. */
3171 ac_clean_files_save
=$ac_clean_files
3172 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3173 # Try to create an executable without -o first, disregard a.out.
3174 # It will help us diagnose broken compilers, and finding out an intuition
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3177 $as_echo_n "checking for C compiler default output file name... " >&6; }
3178 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3180 # The possible output files:
3181 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3184 for ac_file
in $ac_files
3187 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3188 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3193 if { { ac_try
="$ac_link_default"
3195 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3199 $as_echo "$ac_try_echo"; } >&5
3200 (eval "$ac_link_default") 2>&5
3202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3203 test $ac_status = 0; }; then :
3204 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3205 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3206 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3207 # so that the user can short-circuit this test for compilers unknown to
3209 for ac_file in $ac_files ''
3211 test -f "$ac_file" || continue
3213 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3216 # We found the default executable, but exeext='' is most
3220 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3222 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3224 # We set ac_cv_exeext here because the later test for it is not
3225 # safe: cross compilers may not add the suffix if given an `-o'
3226 # argument, so we may need to know it at that point already.
3227 # Even if this section looks crufty: it has the advantage of
3234 test "$ac_cv_exeext" = no && ac_cv_exeext=
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3240 $as_echo "$ac_file" >&6; }
3241 if test -z "$ac_file"; then :
3242 $as_echo "$as_me: failed program was:" >&5
3243 sed 's
/^
/|
/' conftest.$ac_ext >&5
3245 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3246 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3247 { as_fn_set_status 77
3248 as_fn_error "C compiler cannot create executables
3249 See \`config.log
' for more details." "$LINENO" 5; }; }
3251 ac_exeext=$ac_cv_exeext
3253 # Check that the compiler produces executables we can run. If not, either
3254 # the compiler is broken, or we cross compile.
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3256 $as_echo_n "checking whether the C compiler works... " >&6; }
3257 # If not cross compiling, check that we can run a simple program.
3258 if test "$cross_compiling" != yes; then
3259 if { ac_try='.
/$ac_file'
3260 { { case "(($ac_try" in
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3265 $as_echo "$ac_try_echo"; } >&5
3266 (eval "$ac_try") 2>&5
3268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3269 test $ac_status = 0; }; }; then
3272 if test "$cross_compiling" = maybe; then
3275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3276 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3277 as_fn_error "cannot run C compiled programs.
3278 If you meant to cross compile, use \`--host'.
3279 See \`config.log' for more details.
" "$LINENO" 5; }
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
3284 $as_echo "yes" >&6; }
3286 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3287 ac_clean_files=$ac_clean_files_save
3288 # Check that the compiler produces executables we can run. If not, either
3289 # the compiler is broken, or we cross compile.
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
3291 $as_echo_n "checking whether we are cross compiling...
" >&6; }
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $cross_compiling" >&5
3293 $as_echo "$cross_compiling" >&6; }
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
3296 $as_echo_n "checking
for suffix of executables...
" >&6; }
3297 if { { ac_try="$ac_link"
3299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300 *) ac_try_echo=$ac_try;;
3302 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3303 $as_echo "$ac_try_echo"; } >&5
3304 (eval "$ac_link") 2>&5
3306 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3307 test $ac_status = 0; }; then :
3308 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3309 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3310 # work properly (i.e., refer to `conftest.exe'), while it won't with
3312 for ac_file in conftest.exe conftest conftest.*; do
3313 test -f "$ac_file" || continue
3315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3316 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3322 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3324 as_fn_error "cannot compute suffix of executables: cannot compile and link
3325 See \`config.log' for more details.
" "$LINENO" 5; }
3327 rm -f conftest$ac_cv_exeext
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
3329 $as_echo "$ac_cv_exeext" >&6; }
3331 rm -f conftest.$ac_ext
3332 EXEEXT=$ac_cv_exeext
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of object files
" >&5
3335 $as_echo_n "checking
for suffix of object files...
" >&6; }
3336 if test "${ac_cv_objext+set}" = set; then :
3337 $as_echo_n "(cached
) " >&6
3339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340 /* end confdefs.h. */
3350 rm -f conftest.o conftest.obj
3351 if { { ac_try="$ac_compile"
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3356 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3357 $as_echo "$ac_try_echo"; } >&5
3358 (eval "$ac_compile") 2>&5
3360 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3361 test $ac_status = 0; }; then :
3362 for ac_file in conftest.o conftest.obj conftest.*; do
3363 test -f "$ac_file" || continue;
3365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3366 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3371 $as_echo "$as_me: failed program was
:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3374 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3376 as_fn_error "cannot compute suffix of object files: cannot compile
3377 See \`config.log' for more details.
" "$LINENO" 5; }
3379 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_objext" >&5
3382 $as_echo "$ac_cv_objext" >&6; }
3383 OBJEXT=$ac_cv_objext
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler
" >&5
3386 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3387 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3388 $as_echo_n "(cached
) " >&6
3390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3391 /* end confdefs.h. */
3404 if ac_fn_c_try_compile "$LINENO"; then :
3409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3410 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_compiler_gnu" >&5
3414 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3415 if test $ac_compiler_gnu = yes; then
3420 ac_test_CFLAGS=${CFLAGS+set}
3421 ac_save_CFLAGS=$CFLAGS
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC accepts
-g" >&5
3423 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3424 if test "${ac_cv_prog_cc_g+set}" = set; then :
3425 $as_echo_n "(cached
) " >&6
3427 ac_save_c_werror_flag=$ac_c_werror_flag
3428 ac_c_werror_flag=yes
3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432 /* end confdefs.h. */
3442 if ac_fn_c_try_compile "$LINENO"; then :
3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h. */
3457 if ac_fn_c_try_compile "$LINENO"; then :
3460 ac_c_werror_flag=$ac_save_c_werror_flag
3462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463 /* end confdefs.h. */
3473 if ac_fn_c_try_compile "$LINENO"; then :
3476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3481 ac_c_werror_flag=$ac_save_c_werror_flag
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_g" >&5
3484 $as_echo "$ac_cv_prog_cc_g" >&6; }
3485 if test "$ac_test_CFLAGS" = set; then
3486 CFLAGS=$ac_save_CFLAGS
3487 elif test $ac_cv_prog_cc_g = yes; then
3488 if test "$GCC" = yes; then
3494 if test "$GCC" = yes; then
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $CC option to accept ISO C89
" >&5
3501 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3502 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3503 $as_echo_n "(cached
) " >&6
3505 ac_cv_prog_cc_c89=no
3507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508 /* end confdefs.h. */
3511 #include <sys/types.h>
3512 #include <sys/stat.h>
3513 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3514 struct buf { int x; };
3515 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3516 static char *e (p, i)
3522 static char *f (char * (*g) (char **, int), char **p, ...)
3527 s = g (p, va_arg (v,int));
3532 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3533 function prototypes and stuff, but not '\xHH' hex character constants.
3534 These don't provoke an error unfortunately, instead are silently treated
3535 as 'x'. The following induces an error, until -std is added to get
3536 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3537 array size at least. It's necessary to write '\x00'==0 to get something
3538 that's true only with -std. */
3539 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3541 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3542 inside strings and character constants. */
3544 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3546 int test (int i, double x);
3547 struct s1 {int (*f) (int a);};
3548 struct s2 {int (*f) (double a);};
3549 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3555 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3560 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3561 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3563 CC="$ac_save_CC $ac_arg"
3564 if ac_fn_c_try_compile "$LINENO"; then :
3565 ac_cv_prog_cc_c89=$ac_arg
3567 rm -f core conftest.err conftest.$ac_objext
3568 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3570 rm -f conftest.$ac_ext
3575 case "x
$ac_cv_prog_cc_c89" in
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none needed
" >&5
3578 $as_echo "none needed
" >&6; } ;;
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: unsupported
" >&5
3581 $as_echo "unsupported
" >&6; } ;;
3583 CC="$CC $ac_cv_prog_cc_c89"
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_c89" >&5
3585 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3587 if test "x
$ac_cv_prog_cc_c89" != xno; then :
3592 ac_cpp='$CPP $CPPFLAGS'
3593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3598 for ac_dir in "$srcdir" "$srcdir/..
" "$srcdir/..
/..
"; do
3599 for ac_t in install-sh install.sh shtool; do
3600 if test -f "$ac_dir/$ac_t"; then
3602 ac_install_sh="$ac_aux_dir/$ac_t -c"
3607 if test -z "$ac_aux_dir"; then
3608 as_fn_error "cannot
find install-sh
, install.sh
, or shtool
in \"$srcdir\" \"$srcdir/..
\" \"$srcdir/..
/..
\"" "$LINENO" 5
3611 # These three variables are undocumented and unsupported,
3612 # and are intended to be withdrawn in a future Autoconf release.
3613 # They can cause serious problems if a builder's source tree is in a directory
3614 # whose full name contains unusual characters.
3615 ac_config_guess="$SHELL $ac_aux_dir/config.guess
" # Please don't use this var.
3616 ac_config_sub="$SHELL $ac_aux_dir/config.sub
" # Please don't use this var.
3617 ac_configure="$SHELL $ac_aux_dir/configure
" # Please don't use this var.
3620 # Make sure we can run config.sub.
3621 $SHELL "$ac_aux_dir/config.sub
" sun4 >/dev/null 2>&1 ||
3622 as_fn_error "cannot run
$SHELL $ac_aux_dir/config.sub
" "$LINENO" 5
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system
type" >&5
3625 $as_echo_n "checking build system
type...
" >&6; }
3626 if test "${ac_cv_build+set}" = set; then :
3627 $as_echo_n "(cached
) " >&6
3629 ac_build_alias=$build_alias
3630 test "x
$ac_build_alias" = x &&
3631 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess
"`
3632 test "x
$ac_build_alias" = x &&
3633 as_fn_error "cannot guess build
type; you must specify one
" "$LINENO" 5
3634 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub
" $ac_build_alias` ||
3635 as_fn_error "$SHELL $ac_aux_dir/config.sub
$ac_build_alias failed
" "$LINENO" 5
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_build" >&5
3639 $as_echo "$ac_cv_build" >&6; }
3640 case $ac_cv_build in
3642 *) as_fn_error "invalid value of canonical build
" "$LINENO" 5;;
3645 ac_save_IFS=$IFS; IFS='-'
3651 # Remember, the first character of IFS is used to create $*,
3652 # except with old shells:
3655 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
host system
type" >&5
3659 $as_echo_n "checking
host system
type...
" >&6; }
3660 if test "${ac_cv_host+set}" = set; then :
3661 $as_echo_n "(cached
) " >&6
3663 if test "x
$host_alias" = x; then
3664 ac_cv_host=$ac_cv_build
3666 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub
" $host_alias` ||
3667 as_fn_error "$SHELL $ac_aux_dir/config.sub
$host_alias failed
" "$LINENO" 5
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_host" >&5
3672 $as_echo "$ac_cv_host" >&6; }
3675 *) as_fn_error "invalid value of canonical
host" "$LINENO" 5;;
3678 ac_save_IFS=$IFS; IFS='-'
3684 # Remember, the first character of IFS is used to create $*,
3685 # except with old shells:
3688 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3693 ac_cpp='$CPP $CPPFLAGS'
3694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
3698 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3699 # On Suns, sometimes $CPP names a directory.
3700 if test -n "$CPP" && test -d "$CPP"; then
3703 if test -z "$CPP"; then
3704 if test "${ac_cv_prog_CPP+set}" = set; then :
3705 $as_echo_n "(cached
) " >&6
3707 # Double quotes because CPP needs to be expanded
3708 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3711 for ac_c_preproc_warn_flag in '' yes
3713 # Use a header file that comes with gcc, so configuring glibc
3714 # with a fresh cross-compiler works.
3715 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3716 # <limits.h> exists even on freestanding compilers.
3717 # On the NeXT, cc -E runs the code through the compiler's parser,
3718 # not just through cpp. "Syntax error
" is here to catch this case.
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720 /* end confdefs.h. */
3722 # include <limits.h>
3724 # include <assert.h>
3728 if ac_fn_c_try_cpp "$LINENO"; then :
3731 # Broken: fails on valid input.
3734 rm -f conftest.err conftest.$ac_ext
3736 # OK, works on sane cases. Now check whether nonexistent headers
3737 # can be detected and how.
3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h. */
3740 #include <ac_nonexistent.h>
3742 if ac_fn_c_try_cpp "$LINENO"; then :
3743 # Broken: success on invalid input.
3746 # Passes both tests.
3750 rm -f conftest.err conftest.$ac_ext
3753 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3754 rm -f conftest.err conftest.$ac_ext
3755 if $ac_preproc_ok; then :
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
3768 $as_echo "$CPP" >&6; }
3770 for ac_c_preproc_warn_flag in '' yes
3772 # Use a header file that comes with gcc, so configuring glibc
3773 # with a fresh cross-compiler works.
3774 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3775 # <limits.h> exists even on freestanding compilers.
3776 # On the NeXT, cc -E runs the code through the compiler's parser,
3777 # not just through cpp. "Syntax error
" is here to catch this case.
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h. */
3781 # include <limits.h>
3783 # include <assert.h>
3787 if ac_fn_c_try_cpp "$LINENO"; then :
3790 # Broken: fails on valid input.
3793 rm -f conftest.err conftest.$ac_ext
3795 # OK, works on sane cases. Now check whether nonexistent headers
3796 # can be detected and how.
3797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798 /* end confdefs.h. */
3799 #include <ac_nonexistent.h>
3801 if ac_fn_c_try_cpp "$LINENO"; then :
3802 # Broken: success on invalid input.
3805 # Passes both tests.
3809 rm -f conftest.err conftest.$ac_ext
3812 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3813 rm -f conftest.err conftest.$ac_ext
3814 if $ac_preproc_ok; then :
3817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3819 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3820 See \`config.log' for more details.
" "$LINENO" 5; }
3824 ac_cpp='$CPP $CPPFLAGS'
3825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
3831 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
3832 if test "${ac_cv_path_GREP+set}" = set; then :
3833 $as_echo_n "(cached
) " >&6
3835 if test -z "$GREP"; then
3836 ac_path_GREP_found=false
3837 # Loop through the user's path and test for each of PROGNAME-LIST
3838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3842 test -z "$as_dir" && as_dir=.
3843 for ac_prog in grep ggrep; do
3844 for ac_exec_ext in '' $ac_executable_extensions; do
3845 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3846 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3847 # Check for GNU ac_path_GREP and select it if it is found.
3848 # Check for GNU $ac_path_GREP
3849 case `"$ac_path_GREP" --version 2>&1` in
3851 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3854 $as_echo_n 0123456789 >"conftest.
in"
3857 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3858 mv "conftest.tmp
" "conftest.
in"
3859 cp "conftest.
in" "conftest.
nl"
3860 $as_echo 'GREP' >> "conftest.
nl"
3861 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3862 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3863 as_fn_arith $ac_count + 1 && ac_count=$as_val
3864 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3865 # Best one so far, save it but keep looking for a better one
3866 ac_cv_path_GREP="$ac_path_GREP"
3867 ac_path_GREP_max=$ac_count
3869 # 10*(2^10) chars as input seems more than enough
3870 test $ac_count -gt 10 && break
3872 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3875 $ac_path_GREP_found && break 3
3880 if test -z "$ac_cv_path_GREP"; then
3881 as_fn_error "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3884 ac_cv_path_GREP=$GREP
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
3889 $as_echo "$ac_cv_path_GREP" >&6; }
3890 GREP="$ac_cv_path_GREP"
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
3894 $as_echo_n "checking
for egrep...
" >&6; }
3895 if test "${ac_cv_path_EGREP+set}" = set; then :
3896 $as_echo_n "(cached
) " >&6
3898 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3899 then ac_cv_path_EGREP="$GREP -E"
3901 if test -z "$EGREP"; then
3902 ac_path_EGREP_found=false
3903 # Loop through the user's path and test for each of PROGNAME-LIST
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3908 test -z "$as_dir" && as_dir=.
3909 for ac_prog in egrep; do
3910 for ac_exec_ext in '' $ac_executable_extensions; do
3911 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3912 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3913 # Check for GNU ac_path_EGREP and select it if it is found.
3914 # Check for GNU $ac_path_EGREP
3915 case `"$ac_path_EGREP" --version 2>&1` in
3917 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3920 $as_echo_n 0123456789 >"conftest.
in"
3923 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3924 mv "conftest.tmp
" "conftest.
in"
3925 cp "conftest.
in" "conftest.
nl"
3926 $as_echo 'EGREP' >> "conftest.
nl"
3927 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3928 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3929 as_fn_arith $ac_count + 1 && ac_count=$as_val
3930 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3931 # Best one so far, save it but keep looking for a better one
3932 ac_cv_path_EGREP="$ac_path_EGREP"
3933 ac_path_EGREP_max=$ac_count
3935 # 10*(2^10) chars as input seems more than enough
3936 test $ac_count -gt 10 && break
3938 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3941 $ac_path_EGREP_found && break 3
3946 if test -z "$ac_cv_path_EGREP"; then
3947 as_fn_error "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3950 ac_cv_path_EGREP=$EGREP
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
3956 $as_echo "$ac_cv_path_EGREP" >&6; }
3957 EGREP="$ac_cv_path_EGREP"
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
3961 $as_echo_n "checking
for ANSI C header files...
" >&6; }
3962 if test "${ac_cv_header_stdc+set}" = set; then :
3963 $as_echo_n "(cached
) " >&6
3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3966 /* end confdefs.h. */
3980 if ac_fn_c_try_compile "$LINENO"; then :
3981 ac_cv_header_stdc=yes
3983 ac_cv_header_stdc=no
3985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3987 if test $ac_cv_header_stdc = yes; then
3988 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3990 /* end confdefs.h. */
3994 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3995 $EGREP "memchr
" >/dev/null 2>&1; then :
3998 ac_cv_header_stdc=no
4004 if test $ac_cv_header_stdc = yes; then
4005 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007 /* end confdefs.h. */
4011 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4012 $EGREP "free
" >/dev/null 2>&1; then :
4015 ac_cv_header_stdc=no
4021 if test $ac_cv_header_stdc = yes; then
4022 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4023 if test "$cross_compiling" = yes; then :
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h. */
4030 #if ((' ' & 0x0FF) == 0x020)
4031 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4032 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4034 # define ISLOWER(c) \
4035 (('a' <= (c) && (c) <= 'i') \
4036 || ('j' <= (c) && (c) <= 'r') \
4037 || ('s' <= (c) && (c) <= 'z'))
4038 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4041 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4046 for (i = 0; i < 256; i++)
4047 if (XOR (islower (i), ISLOWER (i))
4048 || toupper (i) != TOUPPER (i))
4053 if ac_fn_c_try_run "$LINENO"; then :
4056 ac_cv_header_stdc=no
4058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4059 conftest.$ac_objext conftest.beam conftest.$ac_ext
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
4065 $as_echo "$ac_cv_header_stdc" >&6; }
4066 if test $ac_cv_header_stdc = yes; then
4068 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4072 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4073 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4074 inttypes.h stdint.h unistd.h
4076 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4077 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4079 eval as_val
=\$
$as_ac_Header
4080 if test "x$as_val" = x
""yes; then :
4081 cat >>confdefs.h
<<_ACEOF
4082 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4093 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4094 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4101 if test "$MINIX" = yes; then
4103 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4106 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4109 $as_echo "#define _MINIX 1" >>confdefs.h
4116 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4123 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4124 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4125 $as_echo_n "(cached) " >&6
4127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4130 # define __EXTENSIONS__ 1
4131 $ac_includes_default
4140 if ac_fn_c_try_compile
"$LINENO"; then :
4141 ac_cv_safe_to_define___extensions__
=yes
4143 ac_cv_safe_to_define___extensions__
=no
4145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4148 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4149 test $ac_cv_safe_to_define___extensions__ = yes &&
4150 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4152 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4154 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4156 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4158 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4161 if test -n "$ac_tool_prefix"; then
4162 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4163 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4165 $as_echo_n "checking for $ac_word... " >&6; }
4166 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4167 $as_echo_n "(cached) " >&6
4169 if test -n "$RANLIB"; then
4170 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4172 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4176 test -z "$as_dir" && as_dir
=.
4177 for ac_exec_ext
in '' $ac_executable_extensions; do
4178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4179 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4189 RANLIB
=$ac_cv_prog_RANLIB
4190 if test -n "$RANLIB"; then
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4192 $as_echo "$RANLIB" >&6; }
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4195 $as_echo "no" >&6; }
4200 if test -z "$ac_cv_prog_RANLIB"; then
4201 ac_ct_RANLIB
=$RANLIB
4202 # Extract the first word of "ranlib", so it can be a program name with args.
4203 set dummy ranlib
; ac_word
=$2
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4205 $as_echo_n "checking for $ac_word... " >&6; }
4206 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4207 $as_echo_n "(cached) " >&6
4209 if test -n "$ac_ct_RANLIB"; then
4210 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4216 test -z "$as_dir" && as_dir
=.
4217 for ac_exec_ext
in '' $ac_executable_extensions; do
4218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4219 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4229 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4230 if test -n "$ac_ct_RANLIB"; then
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4232 $as_echo "$ac_ct_RANLIB" >&6; }
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4235 $as_echo "no" >&6; }
4238 if test "x$ac_ct_RANLIB" = x
; then
4241 case $cross_compiling:$ac_tool_warned in
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4245 ac_tool_warned
=yes ;;
4247 RANLIB
=$ac_ct_RANLIB
4250 RANLIB
="$ac_cv_prog_RANLIB"
4261 # Code from module arg-nonnull:
4262 # Code from module c++defs:
4263 # Code from module extensions:
4265 # Code from module include_next:
4266 # Code from module memchr:
4267 # Code from module memmem:
4268 # Code from module memmem-simple:
4269 # Code from module multiarch:
4270 # Code from module stddef:
4271 # Code from module stdint:
4272 # Code from module string:
4273 # Code from module warn-on-use:
4274 # Code from module wchar:
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4277 $as_echo_n "checking target system type... " >&6; }
4278 if test "${ac_cv_target+set}" = set; then :
4279 $as_echo_n "(cached) " >&6
4281 if test "x$target_alias" = x
; then
4282 ac_cv_target
=$ac_cv_host
4284 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4285 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4290 $as_echo "$ac_cv_target" >&6; }
4291 case $ac_cv_target in
4293 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4295 target
=$ac_cv_target
4296 ac_save_IFS
=$IFS; IFS
='-'
4302 # Remember, the first character of IFS is used to create $*,
4303 # except with old shells:
4306 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4309 # The aliases save the names the user supplied, while $host etc.
4310 # will get canonicalized.
4311 test -n "$target_alias" &&
4312 test "$program_prefix$program_suffix$program_transform_name" = \
4314 program_prefix
=${target_alias}-
4316 # The tests for host and target for $enable_largefile require
4321 # As the $enable_largefile decision depends on --enable-plugins we must set it
4322 # even in directories otherwise not depending on the $plugins option.
4325 # Check whether --enable-plugins was given.
4326 if test "${enable_plugins+set}" = set; then :
4327 enableval
=$enable_plugins; case "${enableval}" in
4328 yes |
"") plugins
=yes ;;
4339 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4340 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4341 # are mutually exclusive; and without procfs support, the bfd/ elf module
4342 # cannot provide certain routines such as elfcore_write_prpsinfo
4343 # or elfcore_write_prstatus. So unless the user explicitly requested
4344 # large-file support through the --enable-largefile switch, disable
4345 # large-file support in favor of procfs support.
4346 test "${target}" = "${host}" -a "x$plugins" = xno \
4347 && : ${enable_largefile="no"}
4351 # Check whether --enable-largefile was given.
4352 if test "${enable_largefile+set}" = set; then :
4353 enableval
=$enable_largefile;
4356 if test "$enable_largefile" != no
; then
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4359 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4360 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4361 $as_echo_n "(cached) " >&6
4363 ac_cv_sys_largefile_CC
=no
4364 if test "$GCC" != yes; then
4367 # IRIX 6.2 and later do not support large files by default,
4368 # so use the C compiler's -n32 option if that helps.
4369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4370 /* end confdefs.h. */
4371 #include <sys/types.h>
4372 /* Check that off_t can represent 2**63 - 1 correctly.
4373 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4374 since some C++ compilers masquerading as C compilers
4375 incorrectly reject 9223372036854775807. */
4376 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4377 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4378 && LARGE_OFF_T % 2147483647 == 1)
4388 if ac_fn_c_try_compile
"$LINENO"; then :
4391 rm -f core conftest.err conftest.
$ac_objext
4393 if ac_fn_c_try_compile
"$LINENO"; then :
4394 ac_cv_sys_largefile_CC
=' -n32'; break
4396 rm -f core conftest.err conftest.
$ac_objext
4400 rm -f conftest.
$ac_ext
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4404 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4405 if test "$ac_cv_sys_largefile_CC" != no
; then
4406 CC
=$CC$ac_cv_sys_largefile_CC
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4410 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4411 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4412 $as_echo_n "(cached) " >&6
4415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4416 /* end confdefs.h. */
4417 #include <sys/types.h>
4418 /* Check that off_t can represent 2**63 - 1 correctly.
4419 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4420 since some C++ compilers masquerading as C compilers
4421 incorrectly reject 9223372036854775807. */
4422 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4423 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4424 && LARGE_OFF_T % 2147483647 == 1)
4434 if ac_fn_c_try_compile
"$LINENO"; then :
4435 ac_cv_sys_file_offset_bits
=no
; break
4437 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4439 /* end confdefs.h. */
4440 #define _FILE_OFFSET_BITS 64
4441 #include <sys/types.h>
4442 /* Check that off_t can represent 2**63 - 1 correctly.
4443 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4444 since some C++ compilers masquerading as C compilers
4445 incorrectly reject 9223372036854775807. */
4446 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4447 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4448 && LARGE_OFF_T % 2147483647 == 1)
4458 if ac_fn_c_try_compile
"$LINENO"; then :
4459 ac_cv_sys_file_offset_bits
=64; break
4461 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4462 ac_cv_sys_file_offset_bits
=unknown
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4467 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4468 case $ac_cv_sys_file_offset_bits in #(
4471 cat >>confdefs.h
<<_ACEOF
4472 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4477 if test $ac_cv_sys_file_offset_bits = unknown
; then
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4479 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4480 if test "${ac_cv_sys_large_files+set}" = set; then :
4481 $as_echo_n "(cached) " >&6
4484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4485 /* end confdefs.h. */
4486 #include <sys/types.h>
4487 /* Check that off_t can represent 2**63 - 1 correctly.
4488 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4489 since some C++ compilers masquerading as C compilers
4490 incorrectly reject 9223372036854775807. */
4491 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4492 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4493 && LARGE_OFF_T % 2147483647 == 1)
4503 if ac_fn_c_try_compile
"$LINENO"; then :
4504 ac_cv_sys_large_files
=no
; break
4506 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4509 #define _LARGE_FILES 1
4510 #include <sys/types.h>
4511 /* Check that off_t can represent 2**63 - 1 correctly.
4512 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4513 since some C++ compilers masquerading as C compilers
4514 incorrectly reject 9223372036854775807. */
4515 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4516 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4517 && LARGE_OFF_T % 2147483647 == 1)
4527 if ac_fn_c_try_compile
"$LINENO"; then :
4528 ac_cv_sys_large_files
=1; break
4530 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4531 ac_cv_sys_large_files
=unknown
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4536 $as_echo "$ac_cv_sys_large_files" >&6; }
4537 case $ac_cv_sys_large_files in #(
4540 cat >>confdefs.h
<<_ACEOF
4541 #define _LARGE_FILES $ac_cv_sys_large_files
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4554 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4555 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4556 $as_echo_n "(cached) " >&6
4558 am_cv_prog_cc_stdc
=no
4560 # Don't try gcc -ansi; that turns off useful extensions and
4561 # breaks some systems' header files.
4562 # AIX -qlanglvl=ansi
4563 # Ultrix and OSF/1 -std1
4564 # HP-UX 10.20 and later -Ae
4565 # HP-UX older versions -Aa -D_HPUX_SOURCE
4566 # SVR4 -Xc -D__EXTENSIONS__
4567 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4569 CC
="$ac_save_CC $ac_arg"
4570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4571 /* end confdefs.h. */
4574 #include <sys/types.h>
4575 #include <sys/stat.h>
4576 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4577 struct buf { int x; };
4578 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4579 static char *e (p, i)
4585 static char *f (char * (*g) (char **, int), char **p, ...)
4590 s = g (p, va_arg (v,int));
4594 int test (int i, double x);
4595 struct s1 {int (*f) (int a);};
4596 struct s2 {int (*f) (double a);};
4597 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4605 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4611 if ac_fn_c_try_compile
"$LINENO"; then :
4612 am_cv_prog_cc_stdc
="$ac_arg"; break
4614 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4620 if test -z "$am_cv_prog_cc_stdc"; then
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4622 $as_echo "none needed" >&6; }
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4625 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4627 case "x$am_cv_prog_cc_stdc" in
4629 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4634 for ac_dir
in ..
"$srcdir"/..
; do
4635 for ac_t
in install-sh
install.sh shtool
; do
4636 if test -f "$ac_dir/$ac_t"; then
4638 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4643 if test -z "$ac_aux_dir"; then
4644 as_fn_error
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4647 # These three variables are undocumented and unsupported,
4648 # and are intended to be withdrawn in a future Autoconf release.
4649 # They can cause serious problems if a builder's source tree is in a directory
4650 # whose full name contains unusual characters.
4651 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4652 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4653 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4658 # Dependency checking.
4659 rm -rf .tst
2>/dev
/null
4660 mkdir .tst
2>/dev
/null
4661 if test -d .tst
; then
4666 rmdir .tst
2>/dev
/null
4668 DEPDIR
="${am__leading_dot}deps"
4670 ac_config_commands
="$ac_config_commands depdir"
4673 depcc
="$CC" am_compiler_list
=
4675 am_depcomp
=$ac_aux_dir/depcomp
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4677 $as_echo_n "checking dependency style of $depcc... " >&6; }
4678 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4679 $as_echo_n "(cached) " >&6
4681 if test -f "$am_depcomp"; then
4682 # We make a subdir and do the tests there. Otherwise we can end up
4683 # making bogus files that we don't know about and never remove. For
4684 # instance it was reported that on HP-UX the gcc test will end up
4685 # making a dummy file named `D' -- because `-MD' means `put the output
4688 # Copy depcomp to subdir because otherwise we won't find it if we're
4689 # using a relative directory.
4690 cp "$am_depcomp" conftest.dir
4692 # We will build objects and dependencies in a subdirectory because
4693 # it helps to detect inapplicable dependency modes. For instance
4694 # both Tru64's cc and ICC support -MD to output dependencies as a
4695 # side effect of compilation, but ICC will put the dependencies in
4696 # the current directory while Tru64 will put them in the object
4700 am_cv_CC_dependencies_compiler_type
=none
4701 if test "$am_compiler_list" = ""; then
4702 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4704 for depmode
in $am_compiler_list; do
4705 if test $depmode = none
; then break; fi
4707 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4708 # Setup a source with many dependencies, because some compilers
4709 # like to wrap large dependency lists on column 80 (with \), and
4710 # we should not choose a depcomp mode which is confused by this.
4712 # We need to recreate these files for each test, as the compiler may
4713 # overwrite some of them when testing with obscure command lines.
4714 # This happens at least with the AIX C compiler.
4716 for i
in 1 2 3 4 5 6; do
4717 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4718 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4719 # Solaris 8's {/usr,}/bin/sh.
4720 touch sub
/conftst
$i.h
4722 echo "include sub/conftest.Po" > confmf
4724 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4725 # mode. It turns out that the SunPro C++ compiler does not properly
4726 # handle `-M -o', and we need to detect this.
4727 depcmd
="depmode=$depmode \
4728 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4729 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4730 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4731 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
4732 if env
$depcmd > conftest.err
2>&1 &&
4733 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
4734 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
4735 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
4736 # icc doesn't choke on unknown options, it will just issue warnings
4737 # or remarks (even with -Werror). So we grep stderr for any message
4738 # that says an option was ignored or not supported.
4739 # When given -MP, icc 7.0 and 7.1 complain thusly:
4740 # icc: Command line warning: ignoring option '-M'; no argument required
4741 # The diagnosis changed in icc 8.0:
4742 # icc: Command line remark: option '-MP' not supported
4743 if (grep 'ignoring option' conftest.err ||
4744 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4745 am_cv_CC_dependencies_compiler_type
=$depmode
4746 $as_echo "$as_me:$LINENO: success" >&5
4750 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4751 sed -e 's/^/| /' < conftest.err
>&5
4757 am_cv_CC_dependencies_compiler_type
=none
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4762 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4763 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
4764 then as_fn_error
"no usable dependency style found" "$LINENO" 5
4765 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4770 # Check for the 'make' the user wants to use.
4773 # Extract the first word of "$ac_prog", so it can be a program name with args.
4774 set dummy
$ac_prog; ac_word
=$2
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4776 $as_echo_n "checking for $ac_word... " >&6; }
4777 if test "${ac_cv_prog_MAKE+set}" = set; then :
4778 $as_echo_n "(cached) " >&6
4780 if test -n "$MAKE"; then
4781 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
4783 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4787 test -z "$as_dir" && as_dir
=.
4788 for ac_exec_ext
in '' $ac_executable_extensions; do
4789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4790 ac_cv_prog_MAKE
="$ac_prog"
4791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4800 MAKE
=$ac_cv_prog_MAKE
4801 if test -n "$MAKE"; then
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4803 $as_echo "$MAKE" >&6; }
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4806 $as_echo "no" >&6; }
4810 test -n "$MAKE" && break
4814 case "`$MAKE --version 2>&1 | sed 1q`" in
4819 if test "$MAKE_IS_GNU" = yes; then
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4828 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4830 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4831 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4832 $as_echo_n "(cached) " >&6
4834 cat >conftest.
make <<\_ACEOF
4837 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4839 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4840 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4842 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4844 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4848 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4850 $as_echo "yes" >&6; }
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854 $as_echo "no" >&6; }
4855 SET_MAKE
="MAKE=${MAKE-make}"
4870 # If we haven't got the data from the intl directory,
4871 # assume NLS is disabled.
4880 if test -f ..
/intl
/config.intl
; then
4881 . ..
/intl
/config.intl
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4884 $as_echo_n "checking whether NLS is requested... " >&6; }
4885 if test x
"$USE_NLS" != xyes
; then
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887 $as_echo "no" >&6; }
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4890 $as_echo "yes" >&6; }
4892 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4896 $as_echo_n "checking for catalogs to be installed... " >&6; }
4897 # Look for .po and .gmo files in the source directory.
4900 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
4901 # If there aren't any .gmo files the shell will give us the
4902 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4904 case "$cat" in *\
**)
4907 # The quadruple backslash is collapsed to a double backslash
4908 # by the backticks, then collapsed again by the double quotes,
4909 # leaving us with one backslash in the sed expression (right
4910 # before the dot that mustn't act as a wildcard).
4911 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4912 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
4913 # The user is allowed to set LINGUAS to a list of languages to
4914 # install catalogs for. If it's empty that means "all of them."
4915 if test "x$LINGUAS" = x
; then
4916 CATALOGS
="$CATALOGS $cat"
4917 XLINGUAS
="$XLINGUAS $lang"
4919 case "$LINGUAS" in *$lang*)
4920 CATALOGS
="$CATALOGS $cat"
4921 XLINGUAS
="$XLINGUAS $lang"
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4928 $as_echo "$LINGUAS" >&6; }
4941 localedir
='${datadir}/locale'
4944 if test x
"$USE_NLS" = xyes
; then
4945 CONFIG_ALL
="$CONFIG_ALL all-po"
4946 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
4947 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
4948 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
4955 LIBC_FATAL_STDERR_
=1
4956 export LIBC_FATAL_STDERR_
4962 for ac_header
in $gl_header_list
4964 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4965 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4966 eval as_val
=\$
$as_ac_Header
4967 if test "x$as_val" = x
""yes; then :
4968 cat >>confdefs.h
<<_ACEOF
4969 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4984 for ac_func
in $gl_func_list
4986 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4987 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4988 eval as_val
=\$
$as_ac_var
4989 if test "x$as_val" = x
""yes; then :
4990 cat >>confdefs.h
<<_ACEOF
4991 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5017 GNULIB_STRCASESTR
=0;
5024 GNULIB_MBSCASECMP
=0;
5025 GNULIB_MBSNCASECMP
=0;
5026 GNULIB_MBSPCASECMP
=0;
5027 GNULIB_MBSCASESTR
=0;
5035 GNULIB_STRVERSCMP
=0;
5040 HAVE_DECL_MEMRCHR
=1;
5046 HAVE_DECL_STRNDUP
=1;
5047 HAVE_DECL_STRNLEN
=1;
5051 HAVE_DECL_STRTOK_R
=1;
5052 HAVE_DECL_STRSIGNAL
=1;
5059 REPLACE_STRCASESTR
=0;
5064 REPLACE_STRSIGNAL
=0;
5066 UNDEFINE_STRTOK_R
=0;
5080 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
5081 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
5082 # irrelevant for anonymous mappings.
5083 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
5084 if test "x$ac_cv_func_mmap" = x
""yes; then :
5091 # Try to allow MAP_ANONYMOUS.
5092 gl_have_mmap_anonymous
=no
5093 if test $gl_have_mmap = yes; then
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
5095 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
5096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5097 /* end confdefs.h. */
5099 #include <sys/mman.h>
5100 #ifdef MAP_ANONYMOUS
5101 I cant identify this map.
5105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5106 $EGREP "I cant identify this map." >/dev
/null
2>&1; then :
5107 gl_have_mmap_anonymous
=yes
5111 if test $gl_have_mmap_anonymous != yes; then
5112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5113 /* end confdefs.h. */
5115 #include <sys/mman.h>
5117 I cant identify this map.
5121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5122 $EGREP "I cant identify this map." >/dev
/null
2>&1; then :
5124 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
5126 gl_have_mmap_anonymous
=yes
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
5132 $as_echo "$gl_have_mmap_anonymous" >&6; }
5133 if test $gl_have_mmap_anonymous = yes; then
5135 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
5163 if test $ac_cv_func_memchr = yes; then
5164 # Detect platform-specific bugs in some versions of glibc:
5165 # memchr should not dereference anything with length 0
5166 # http://bugzilla.redhat.com/499689
5167 # memchr should not dereference overestimated length after a match
5168 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
5169 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
5170 # Assume that memchr works on platforms that lack mprotect.
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
5172 $as_echo_n "checking whether memchr works... " >&6; }
5173 if test "${gl_cv_func_memchr_works+set}" = set; then :
5174 $as_echo_n "(cached) " >&6
5176 if test "$cross_compiling" = yes; then :
5177 gl_cv_func_memchr_works
="guessing no"
5179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5180 /* end confdefs.h. */
5185 # include <unistd.h>
5186 # include <sys/types.h>
5187 # include <sys/mman.h>
5198 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
5199 # if HAVE_MAP_ANONYMOUS
5200 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
5202 # else /* !HAVE_MAP_ANONYMOUS */
5203 const int flags = MAP_FILE | MAP_PRIVATE;
5204 int fd = open ("/dev/zero", O_RDONLY, 0666);
5208 int pagesize = getpagesize ();
5210 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
5212 if (two_pages != (char *)(-1)
5213 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
5214 fence = two_pages + pagesize;
5219 if (memchr (fence, 0, 0))
5221 strcpy (fence - 9, "12345678");
5222 if (memchr (fence - 9, 0, 79) != fence - 1)
5231 if ac_fn_c_try_run
"$LINENO"; then :
5232 gl_cv_func_memchr_works
=yes
5234 gl_cv_func_memchr_works
=no
5236 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5237 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
5242 $as_echo "$gl_cv_func_memchr_works" >&6; }
5243 if test "$gl_cv_func_memchr_works" != yes; then
5249 if test $HAVE_MEMCHR = 0 ||
test $REPLACE_MEMCHR = 1; then
5258 gl_LIBOBJS
="$gl_LIBOBJS memchr.$ac_objext"
5261 for ac_header
in bp-sym.h
5263 ac_fn_c_check_header_mongrel
"$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
5264 if test "x$ac_cv_header_bp_sym_h" = x
""yes; then :
5265 cat >>confdefs.h
<<_ACEOF
5266 #define HAVE_BP_SYM_H 1
5277 ac_fn_c_check_decl
"$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
5278 if test "x$ac_cv_have_decl_memmem" = x
""yes; then :
5284 cat >>confdefs.h
<<_ACEOF
5285 #define HAVE_DECL_MEMMEM $ac_have_decl
5301 for ac_func
in memmem
5303 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
5304 if test "x$ac_cv_func_memmem" = x
""yes; then :
5305 cat >>confdefs.h
<<_ACEOF
5306 #define HAVE_MEMMEM 1
5311 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
5324 if test $ac_cv_have_decl_memmem = no
; then
5330 gl_cv_c_multiarch
=no
5331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5332 /* end confdefs.h. */
5333 #ifndef __APPLE_CC__
5334 not a universal capable compiler
5339 if ac_fn_c_try_compile
"$LINENO"; then :
5343 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
5344 if test -n "$prev"; then
5346 i?
86 | x86_64 | ppc | ppc64
)
5347 if test -z "$arch" ||
test "$arch" = "$word"; then
5350 gl_cv_c_multiarch
=yes
5356 if test "x$word" = "x-arch"; then
5363 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5364 if test $gl_cv_c_multiarch = yes; then
5366 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5368 APPLE_UNIVERSAL_BUILD
=1
5370 APPLE_UNIVERSAL_BUILD
=0
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
5381 $as_echo_n "checking for wchar_t... " >&6; }
5382 if test "${gt_cv_c_wchar_t+set}" = set; then :
5383 $as_echo_n "(cached) " >&6
5385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h. */
5388 wchar_t foo = (wchar_t)'\0';
5397 if ac_fn_c_try_compile
"$LINENO"; then :
5402 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
5405 $as_echo "$gt_cv_c_wchar_t" >&6; }
5406 if test $gt_cv_c_wchar_t = yes; then
5408 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5415 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5416 if test "${gl_cv_have_include_next+set}" = set; then :
5417 $as_echo_n "(cached) " >&6
5419 rm -rf conftestd1a conftestd1b conftestd2
5420 mkdir conftestd1a conftestd1b conftestd2
5421 cat <<EOF > conftestd1a/conftest.h
5422 #define DEFINED_IN_CONFTESTD1
5423 #include_next <conftest.h>
5424 #ifdef DEFINED_IN_CONFTESTD2
5427 #error "include_next doesn't work"
5430 cat <<EOF > conftestd1b/conftest.h
5431 #define DEFINED_IN_CONFTESTD1
5433 #include_next <conftest.h>
5434 #ifdef DEFINED_IN_CONFTESTD2
5437 #error "include_next doesn't work"
5440 cat <<EOF > conftestd2/conftest.h
5441 #ifndef DEFINED_IN_CONFTESTD1
5442 #error "include_next test doesn't work"
5444 #define DEFINED_IN_CONFTESTD2
5446 gl_save_CPPFLAGS
="$CPPFLAGS"
5447 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h. */
5450 #include <conftest.h>
5452 if ac_fn_c_try_compile
"$LINENO"; then :
5453 gl_cv_have_include_next
=yes
5455 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5457 /* end confdefs.h. */
5458 #include <conftest.h>
5460 if ac_fn_c_try_compile
"$LINENO"; then :
5461 gl_cv_have_include_next
=buggy
5463 gl_cv_have_include_next
=no
5465 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5468 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5469 CPPFLAGS
="$gl_save_CPPFLAGS"
5470 rm -rf conftestd1a conftestd1b conftestd2
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5474 $as_echo "$gl_cv_have_include_next" >&6; }
5475 PRAGMA_SYSTEM_HEADER
=
5476 if test $gl_cv_have_include_next = yes; then
5477 INCLUDE_NEXT
=include_next
5478 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
5479 if test -n "$GCC"; then
5480 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
5483 if test $gl_cv_have_include_next = buggy
; then
5484 INCLUDE_NEXT
=include
5485 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
5487 INCLUDE_NEXT
=include
5488 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5502 $as_echo_n "checking for long long int... " >&6; }
5503 if test "${ac_cv_type_long_long_int+set}" = set; then :
5504 $as_echo_n "(cached) " >&6
5506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h. */
5509 /* For now, do not test the preprocessor; as of 2007 there are too many
5510 implementations with broken preprocessors. Perhaps this can
5511 be revisited in 2012. In the meantime, code should not expect
5512 #if to work with literals wider than 32 bits. */
5513 /* Test literals. */
5514 long long int ll = 9223372036854775807ll;
5515 long long int nll = -9223372036854775807LL;
5516 unsigned long long int ull = 18446744073709551615ULL;
5517 /* Test constant expressions. */
5518 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5520 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5526 /* Test availability of runtime routines for shift and division. */
5527 long long int llmax = 9223372036854775807ll;
5528 unsigned long long int ullmax = 18446744073709551615ull;
5529 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5530 | (llmax / ll) | (llmax % ll)
5531 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5532 | (ullmax / ull) | (ullmax % ull));
5538 if ac_fn_c_try_link
"$LINENO"; then :
5539 if test "$cross_compiling" = yes; then :
5540 ac_cv_type_long_long_int
=yes
5542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5543 /* end confdefs.h. */
5547 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5548 # define LLONG_MAX (HALF - 1 + HALF)
5553 long long int n = 1;
5557 long long int m = n << i;
5560 if (LLONG_MAX / 2 < m)
5568 if ac_fn_c_try_run
"$LINENO"; then :
5569 ac_cv_type_long_long_int
=yes
5571 ac_cv_type_long_long_int
=no
5573 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5574 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5578 ac_cv_type_long_long_int
=no
5580 rm -f core conftest.err conftest.
$ac_objext \
5581 conftest
$ac_exeext conftest.
$ac_ext
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5584 $as_echo "$ac_cv_type_long_long_int" >&6; }
5585 if test $ac_cv_type_long_long_int = yes; then
5587 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5593 $as_echo_n "checking for unsigned long long int... " >&6; }
5594 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5595 $as_echo_n "(cached) " >&6
5597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5598 /* end confdefs.h. */
5600 /* For now, do not test the preprocessor; as of 2007 there are too many
5601 implementations with broken preprocessors. Perhaps this can
5602 be revisited in 2012. In the meantime, code should not expect
5603 #if to work with literals wider than 32 bits. */
5604 /* Test literals. */
5605 long long int ll = 9223372036854775807ll;
5606 long long int nll = -9223372036854775807LL;
5607 unsigned long long int ull = 18446744073709551615ULL;
5608 /* Test constant expressions. */
5609 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5611 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5617 /* Test availability of runtime routines for shift and division. */
5618 long long int llmax = 9223372036854775807ll;
5619 unsigned long long int ullmax = 18446744073709551615ull;
5620 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5621 | (llmax / ll) | (llmax % ll)
5622 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5623 | (ullmax / ull) | (ullmax % ull));
5629 if ac_fn_c_try_link
"$LINENO"; then :
5630 ac_cv_type_unsigned_long_long_int
=yes
5632 ac_cv_type_unsigned_long_long_int
=no
5634 rm -f core conftest.err conftest.
$ac_objext \
5635 conftest
$ac_exeext conftest.
$ac_ext
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5638 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5639 if test $ac_cv_type_unsigned_long_long_int = yes; then
5641 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
5656 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
5657 if test "${ac_cv_c_restrict+set}" = set; then :
5658 $as_echo_n "(cached) " >&6
5661 # The order here caters to the fact that C++ does not require restrict.
5662 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
5663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5664 /* end confdefs.h. */
5665 typedef int * int_ptr;
5666 int foo (int_ptr $ac_kw ip) {
5680 if ac_fn_c_try_compile
"$LINENO"; then :
5681 ac_cv_c_restrict
=$ac_kw
5683 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5684 test "$ac_cv_c_restrict" != no
&& break
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5689 $as_echo "$ac_cv_c_restrict" >&6; }
5691 case $ac_cv_c_restrict in
5693 no
) $as_echo "#define restrict /**/" >>confdefs.h
5695 *) cat >>confdefs.h
<<_ACEOF
5696 #define restrict $ac_cv_c_restrict
5721 if test $gl_cv_have_include_next = yes; then
5722 gl_cv_next_string_h
='<'string.h
'>'
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
5725 $as_echo_n "checking absolute name of <string.h>... " >&6; }
5726 if test "${gl_cv_next_string_h+set}" = set; then :
5727 $as_echo_n "(cached) " >&6
5730 if test $ac_cv_header_string_h = yes; then
5731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5732 /* end confdefs.h. */
5737 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
5738 *) gl_absname_cpp
="$ac_cpp" ;;
5740 gl_cv_next_string_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5741 sed -n '\#/string.h#{
5742 s#.*"\(.*/string.h\)".*#\1#
5748 gl_cv_next_string_h
='<'string.h
'>'
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
5753 $as_echo "$gl_cv_next_string_h" >&6; }
5755 NEXT_STRING_H
=$gl_cv_next_string_h
5757 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
5758 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5759 gl_next_as_first_directive
='<'string.h
'>'
5761 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5762 gl_next_as_first_directive
=$gl_cv_next_string_h
5764 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
5770 for gl_func
in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp
; do
5771 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
5773 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
5774 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
5775 $as_echo_n "(cached) " >&6
5777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5778 /* end confdefs.h. */
5790 if ac_fn_c_try_compile
"$LINENO"; then :
5791 eval "$as_gl_Symbol=yes"
5793 eval "$as_gl_Symbol=no"
5795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5797 eval ac_res
=\$
$as_gl_Symbol
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5799 $as_echo "$ac_res" >&6; }
5800 eval as_val
=\$
$as_gl_Symbol
5801 if test "x$as_val" = x
""yes; then :
5802 cat >>confdefs.h
<<_ACEOF
5803 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
5806 eval ac_cv_have_decl_
$gl_func=yes
5818 GNULIB_MBSNRTOWCS
=0;
5821 GNULIB_WCSNRTOMBS
=0;
5833 HAVE_DECL_WCWIDTH
=1;
5834 REPLACE_MBSTATE_T
=0;
5840 REPLACE_MBSRTOWCS
=0;
5841 REPLACE_MBSNRTOWCS
=0;
5843 REPLACE_WCSRTOMBS
=0;
5844 REPLACE_WCSNRTOMBS
=0;
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
5849 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
5850 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
5851 $as_echo_n "(cached) " >&6
5853 gl_cv_header_wchar_h_correct_inline
=yes
5854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5855 /* end confdefs.h. */
5857 #define wcstod renamed_wcstod
5859 extern int zero (void);
5860 int main () { return zero(); }
5863 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5864 (eval $ac_compile) 2>&5
5866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5867 test $ac_status = 0; }; then
5868 mv conftest.
$ac_objext conftest1.
$ac_objext
5869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5870 /* end confdefs.h. */
5872 #define wcstod renamed_wcstod
5874 int zero (void) { return 0; }
5877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5878 (eval $ac_compile) 2>&5
5880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5881 test $ac_status = 0; }; then
5882 mv conftest.
$ac_objext conftest2.
$ac_objext
5883 if $CC -o conftest
$ac_exeext $CFLAGS $LDFLAGS conftest1.
$ac_objext conftest2.
$ac_objext $LIBS >&5 2>&1; then
5886 gl_cv_header_wchar_h_correct_inline
=no
5890 rm -f conftest1.
$ac_objext conftest2.
$ac_objext conftest
$ac_exeext
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
5894 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
5895 if test $gl_cv_header_wchar_h_correct_inline = no
; then
5896 as_fn_error
"<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
5897 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
5898 C99 mode. You have four options:
5899 - Add the flag -fgnu89-inline to CC and reconfigure, or
5900 - Fix your include files, using parts of
5901 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
5902 - Use a gcc version older than 4.3, or
5903 - Don't use the flags -std=c99 or -std=gnu99.
5904 Configuration aborted." "$LINENO" 5
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
5909 $as_echo_n "checking for wint_t... " >&6; }
5910 if test "${gt_cv_c_wint_t+set}" = set; then :
5911 $as_echo_n "(cached) " >&6
5913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5914 /* end confdefs.h. */
5916 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5918 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
5919 before <wchar.h>. */
5924 wint_t foo = (wchar_t)'\0';
5933 if ac_fn_c_try_compile
"$LINENO"; then :
5938 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
5941 $as_echo "$gt_cv_c_wint_t" >&6; }
5942 if test $gt_cv_c_wint_t = yes; then
5944 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
5950 GL_COND_LIBTOOL_TRUE
=
5951 GL_COND_LIBTOOL_FALSE
='#'
5953 GL_COND_LIBTOOL_TRUE
='#'
5954 GL_COND_LIBTOOL_FALSE
=
5957 gl_cond_libtool
=false
5960 gl_m4_base
='gnulib/m4'
5970 gl_source_base
='gnulib'
5971 # Code from module arg-nonnull:
5972 # Code from module c++defs:
5973 # Code from module extensions:
5974 # Code from module include_next:
5975 # Code from module memchr:
5984 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
5988 # Code from module memmem:
5991 if test $ac_cv_have_decl_memmem = yes; then
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
5993 $as_echo_n "checking whether memmem works in linear time... " >&6; }
5994 if test "${gl_cv_func_memmem_works+set}" = set; then :
5995 $as_echo_n "(cached) " >&6
5997 if test "$cross_compiling" = yes; then :
5998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5999 /* end confdefs.h. */
6001 #include <features.h>
6002 #ifdef __GNU_LIBRARY__
6003 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)
6008 #include <cygwin/version.h>
6009 #if CYGWIN_VERSION_DLL_MAJOR >= 1007
6015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6016 $EGREP "Lucky user" >/dev
/null
2>&1; then :
6017 gl_cv_func_memmem_works
=yes
6019 gl_cv_func_memmem_works
="guessing no"
6025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6026 /* end confdefs.h. */
6028 #include <signal.h> /* for signal */
6029 #include <string.h> /* for memmem */
6030 #include <stdlib.h> /* for malloc */
6031 #include <unistd.h> /* for alarm */
6037 char *haystack = (char *) malloc (2 * m + 1);
6038 char *needle = (char *) malloc (m + 1);
6040 /* Failure to compile this test due to missing alarm is okay,
6041 since all such platforms (mingw) also lack memmem. */
6042 signal (SIGALRM, SIG_DFL);
6044 /* Check for quadratic performance. */
6045 if (haystack && needle)
6047 memset (haystack, 'A', 2 * m);
6048 haystack[2 * m] = 'B';
6049 memset (needle, 'A', m);
6051 result = memmem (haystack, 2 * m + 1, needle, m + 1);
6053 /* Check for empty needle behavior. */
6054 return !result || !memmem ("a", 1, 0, 0);
6059 if ac_fn_c_try_run
"$LINENO"; then :
6060 gl_cv_func_memmem_works
=yes
6062 gl_cv_func_memmem_works
=no
6064 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6065 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works" >&5
6071 $as_echo "$gl_cv_func_memmem_works" >&6; }
6072 if test "$gl_cv_func_memmem_works" != yes; then
6082 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
6087 # Code from module memmem-simple:
6100 for ac_func
in memmem
6102 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
6103 if test "x$ac_cv_func_memmem" = x
""yes; then :
6104 cat >>confdefs.h
<<_ACEOF
6105 #define HAVE_MEMMEM 1
6110 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
6123 if test $ac_cv_have_decl_memmem = no
; then
6135 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
6139 # Code from module multiarch:
6141 # Code from module stddef:
6145 if test $gt_cv_c_wchar_t = no
; then
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
6150 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
6151 if test "${gl_cv_decl_null_works+set}" = set; then :
6152 $as_echo_n "(cached) " >&6
6154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6155 /* end confdefs.h. */
6157 int test[2 * (sizeof NULL == sizeof (void *)) -1];
6167 if ac_fn_c_try_compile
"$LINENO"; then :
6168 gl_cv_decl_null_works
=yes
6170 gl_cv_decl_null_works
=no
6172 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
6175 $as_echo "$gl_cv_decl_null_works" >&6; }
6176 if test $gl_cv_decl_null_works = no
; then
6180 if test -n "$STDDEF_H"; then
6193 if test $gl_cv_have_include_next = yes; then
6194 gl_cv_next_stddef_h
='<'stddef.h
'>'
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
6197 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
6198 if test "${gl_cv_next_stddef_h+set}" = set; then :
6199 $as_echo_n "(cached) " >&6
6202 if test $ac_cv_header_stddef_h = yes; then
6203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6204 /* end confdefs.h. */
6209 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
6210 *) gl_absname_cpp
="$ac_cpp" ;;
6212 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6213 sed -n '\#/stddef.h#{
6214 s#.*"\(.*/stddef.h\)".*#\1#
6220 gl_cv_next_stddef_h
='<'stddef.h
'>'
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
6225 $as_echo "$gl_cv_next_stddef_h" >&6; }
6227 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
6229 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
6230 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6231 gl_next_as_first_directive
='<'stddef.h
'>'
6233 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6234 gl_next_as_first_directive
=$gl_cv_next_stddef_h
6236 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
6242 # Code from module stdint:
6246 if test $ac_cv_type_long_long_int = yes; then
6247 HAVE_LONG_LONG_INT
=1
6249 HAVE_LONG_LONG_INT
=0
6253 if test $ac_cv_type_unsigned_long_long_int = yes; then
6254 HAVE_UNSIGNED_LONG_LONG_INT
=1
6256 HAVE_UNSIGNED_LONG_LONG_INT
=0
6260 if test $ac_cv_header_inttypes_h = yes; then
6267 if test $ac_cv_header_sys_types_h = yes; then
6286 if test $gl_cv_have_include_next = yes; then
6287 gl_cv_next_stdint_h
='<'stdint.h
'>'
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6290 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6291 if test "${gl_cv_next_stdint_h+set}" = set; then :
6292 $as_echo_n "(cached) " >&6
6295 if test $ac_cv_header_stdint_h = yes; then
6296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6297 /* end confdefs.h. */
6302 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
6303 *) gl_absname_cpp
="$ac_cpp" ;;
6305 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6306 sed -n '\#/stdint.h#{
6307 s#.*"\(.*/stdint.h\)".*#\1#
6313 gl_cv_next_stdint_h
='<'stdint.h
'>'
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6318 $as_echo "$gl_cv_next_stdint_h" >&6; }
6320 NEXT_STDINT_H
=$gl_cv_next_stdint_h
6322 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
6323 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6324 gl_next_as_first_directive
='<'stdint.h
'>'
6326 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6327 gl_next_as_first_directive
=$gl_cv_next_stdint_h
6329 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
6333 if test $ac_cv_header_stdint_h = yes; then
6340 if test $ac_cv_header_stdint_h = yes; then
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
6342 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
6343 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
6344 $as_echo_n "(cached) " >&6
6346 gl_cv_header_working_stdint_h
=no
6347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6348 /* end confdefs.h. */
6351 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6352 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6353 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6355 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
6356 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
6357 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
6361 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6362 included before <wchar.h>. */
6373 int8_t a1 = INT8_MAX;
6374 int8_t a1min = INT8_MIN;
6377 int16_t a2 = INT16_MAX;
6378 int16_t a2min = INT16_MIN;
6381 int32_t a3 = INT32_MAX;
6382 int32_t a3min = INT32_MIN;
6385 int64_t a4 = INT64_MAX;
6386 int64_t a4min = INT64_MIN;
6389 uint8_t b1 = UINT8_MAX;
6391 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
6394 uint16_t b2 = UINT16_MAX;
6397 uint32_t b3 = UINT32_MAX;
6400 uint64_t b4 = UINT64_MAX;
6402 int_least8_t c1 = INT8_C (0x7f);
6403 int_least8_t c1max = INT_LEAST8_MAX;
6404 int_least8_t c1min = INT_LEAST8_MIN;
6405 int_least16_t c2 = INT16_C (0x7fff);
6406 int_least16_t c2max = INT_LEAST16_MAX;
6407 int_least16_t c2min = INT_LEAST16_MIN;
6408 int_least32_t c3 = INT32_C (0x7fffffff);
6409 int_least32_t c3max = INT_LEAST32_MAX;
6410 int_least32_t c3min = INT_LEAST32_MIN;
6411 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
6412 int_least64_t c4max = INT_LEAST64_MAX;
6413 int_least64_t c4min = INT_LEAST64_MIN;
6414 uint_least8_t d1 = UINT8_C (0xff);
6415 uint_least8_t d1max = UINT_LEAST8_MAX;
6416 uint_least16_t d2 = UINT16_C (0xffff);
6417 uint_least16_t d2max = UINT_LEAST16_MAX;
6418 uint_least32_t d3 = UINT32_C (0xffffffff);
6419 uint_least32_t d3max = UINT_LEAST32_MAX;
6420 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
6421 uint_least64_t d4max = UINT_LEAST64_MAX;
6422 int_fast8_t e1 = INT_FAST8_MAX;
6423 int_fast8_t e1min = INT_FAST8_MIN;
6424 int_fast16_t e2 = INT_FAST16_MAX;
6425 int_fast16_t e2min = INT_FAST16_MIN;
6426 int_fast32_t e3 = INT_FAST32_MAX;
6427 int_fast32_t e3min = INT_FAST32_MIN;
6428 int_fast64_t e4 = INT_FAST64_MAX;
6429 int_fast64_t e4min = INT_FAST64_MIN;
6430 uint_fast8_t f1 = UINT_FAST8_MAX;
6431 uint_fast16_t f2 = UINT_FAST16_MAX;
6432 uint_fast32_t f3 = UINT_FAST32_MAX;
6433 uint_fast64_t f4 = UINT_FAST64_MAX;
6435 intptr_t g = INTPTR_MAX;
6436 intptr_t gmin = INTPTR_MIN;
6439 uintptr_t h = UINTPTR_MAX;
6441 intmax_t i = INTMAX_MAX;
6442 uintmax_t j = UINTMAX_MAX;
6444 #include <limits.h> /* for CHAR_BIT */
6445 #define TYPE_MINIMUM(t) \
6446 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
6447 #define TYPE_MAXIMUM(t) \
6448 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
6451 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
6452 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
6454 /* Detect bug in FreeBSD 6.0 / ia64. */
6455 int check_SIG_ATOMIC:
6456 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
6457 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
6459 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
6461 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
6462 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
6464 /* Detect bug in mingw. */
6466 WINT_MIN == TYPE_MINIMUM (wint_t)
6467 && WINT_MAX == TYPE_MAXIMUM (wint_t)
6470 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
6472 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
6474 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
6476 /* Detect bugs in OpenBSD 3.9 stdint.h. */
6478 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
6481 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
6484 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
6487 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
6489 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
6490 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
6491 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
6492 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
6493 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
6494 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
6495 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
6496 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
6497 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
6498 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
6499 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
6510 if ac_fn_c_try_compile
"$LINENO"; then :
6511 if test "$cross_compiling" = yes; then :
6512 gl_cv_header_working_stdint_h
=yes
6515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6516 /* end confdefs.h. */
6519 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6520 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6521 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6525 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6526 included before <wchar.h>. */
6538 #define MVAL(macro) MVAL1(macro)
6539 #define MVAL1(expression) #expression
6540 static const char *macro_values[] =
6574 for (mv = macro_values; *mv != NULL; mv++)
6576 const char *value = *mv;
6577 /* Test whether it looks like a cast expression. */
6578 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
6579 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
6580 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
6581 || strncmp (value, "((int)"/*)*/, 6) == 0
6582 || strncmp (value, "((signed short)"/*)*/, 15) == 0
6583 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
6592 if ac_fn_c_try_run
"$LINENO"; then :
6593 gl_cv_header_working_stdint_h
=yes
6595 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6596 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6601 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
6605 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
6607 if test "$gl_cv_header_working_stdint_h" = yes; then
6610 for ac_header
in sys
/inttypes.h sys
/bitypes.h
6612 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6613 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6614 eval as_val
=\$
$as_ac_Header
6615 if test "x$as_val" = x
""yes; then :
6616 cat >>confdefs.h
<<_ACEOF
6617 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6624 if test $ac_cv_header_sys_inttypes_h = yes; then
6625 HAVE_SYS_INTTYPES_H
=1
6627 HAVE_SYS_INTTYPES_H
=0
6630 if test $ac_cv_header_sys_bitypes_h = yes; then
6631 HAVE_SYS_BITYPES_H
=1
6633 HAVE_SYS_BITYPES_H
=0
6647 if test $APPLE_UNIVERSAL_BUILD = 0; then
6650 for gltype
in ptrdiff_t size_t
; do
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6652 $as_echo_n "checking for bit size of $gltype... " >&6; }
6653 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6654 $as_echo_n "(cached) " >&6
6656 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6657 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6658 included before <wchar.h>. */
6667 #include <limits.h>"; then :
6673 eval gl_cv_bitsizeof_
${gltype}=\
$result
6676 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6678 $as_echo "$ac_res" >&6; }
6679 eval result
=\
$gl_cv_bitsizeof_${gltype}
6680 if test $result = unknown
; then
6683 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6684 cat >>confdefs.h
<<_ACEOF
6685 #define BITSIZEOF_${GLTYPE} $result
6688 eval BITSIZEOF_
${GLTYPE}=\
$result
6695 for gltype
in sig_atomic_t wchar_t wint_t
; do
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6697 $as_echo_n "checking for bit size of $gltype... " >&6; }
6698 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6699 $as_echo_n "(cached) " >&6
6701 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6702 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6703 included before <wchar.h>. */
6712 #include <limits.h>"; then :
6718 eval gl_cv_bitsizeof_
${gltype}=\
$result
6721 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6723 $as_echo "$ac_res" >&6; }
6724 eval result
=\
$gl_cv_bitsizeof_${gltype}
6725 if test $result = unknown
; then
6728 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6729 cat >>confdefs.h
<<_ACEOF
6730 #define BITSIZEOF_${GLTYPE} $result
6733 eval BITSIZEOF_
${GLTYPE}=\
$result
6739 for gltype
in sig_atomic_t wchar_t wint_t
; do
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
6741 $as_echo_n "checking whether $gltype is signed... " >&6; }
6742 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
6743 $as_echo_n "(cached) " >&6
6745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h. */
6748 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6749 included before <wchar.h>. */
6758 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6767 if ac_fn_c_try_compile
"$LINENO"; then :
6772 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6773 eval gl_cv_type_
${gltype}_signed
=\
$result
6776 eval ac_res
=\
$gl_cv_type_${gltype}_signed
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6778 $as_echo "$ac_res" >&6; }
6779 eval result
=\
$gl_cv_type_${gltype}_signed
6780 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6781 if test "$result" = yes; then
6782 cat >>confdefs.h
<<_ACEOF
6783 #define HAVE_SIGNED_${GLTYPE} 1
6786 eval HAVE_SIGNED_
${GLTYPE}=1
6788 eval HAVE_SIGNED_
${GLTYPE}=0
6793 gl_cv_type_ptrdiff_t_signed
=yes
6794 gl_cv_type_size_t_signed
=no
6795 if test $APPLE_UNIVERSAL_BUILD = 0; then
6798 for gltype
in ptrdiff_t size_t
; do
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6800 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6801 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6802 $as_echo_n "(cached) " >&6
6804 eval gl_cv_type_
${gltype}_suffix
=no
6805 eval result
=\
$gl_cv_type_${gltype}_signed
6806 if test "$result" = yes; then
6811 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
6814 l
) gltype1
='long int';;
6815 ll
) gltype1
='long long int';;
6816 i64
) gltype1
='__int64';;
6817 u
) gltype1
='unsigned int';;
6818 ul
) gltype1
='unsigned long int';;
6819 ull
) gltype1
='unsigned long long int';;
6820 ui64
)gltype1
='unsigned __int64';;
6822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6823 /* end confdefs.h. */
6825 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6826 included before <wchar.h>. */
6836 extern $gltype1 foo;
6845 if ac_fn_c_try_compile
"$LINENO"; then :
6846 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
6848 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6849 eval result
=\
$gl_cv_type_${gltype}_suffix
6850 test "$result" != no
&& break
6853 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6855 $as_echo "$ac_res" >&6; }
6856 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6857 eval result
=\
$gl_cv_type_${gltype}_suffix
6858 test "$result" = no
&& result
=
6859 eval ${GLTYPE}_SUFFIX
=\
$result
6860 cat >>confdefs.h
<<_ACEOF
6861 #define ${GLTYPE}_SUFFIX $result
6870 for gltype
in sig_atomic_t wchar_t wint_t
; do
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6872 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6873 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6874 $as_echo_n "(cached) " >&6
6876 eval gl_cv_type_
${gltype}_suffix
=no
6877 eval result
=\
$gl_cv_type_${gltype}_signed
6878 if test "$result" = yes; then
6883 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
6886 l
) gltype1
='long int';;
6887 ll
) gltype1
='long long int';;
6888 i64
) gltype1
='__int64';;
6889 u
) gltype1
='unsigned int';;
6890 ul
) gltype1
='unsigned long int';;
6891 ull
) gltype1
='unsigned long long int';;
6892 ui64
)gltype1
='unsigned __int64';;
6894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6895 /* end confdefs.h. */
6897 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6898 included before <wchar.h>. */
6908 extern $gltype1 foo;
6917 if ac_fn_c_try_compile
"$LINENO"; then :
6918 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
6920 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6921 eval result
=\
$gl_cv_type_${gltype}_suffix
6922 test "$result" != no
&& break
6925 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6927 $as_echo "$ac_res" >&6; }
6928 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6929 eval result
=\
$gl_cv_type_${gltype}_suffix
6930 test "$result" = no
&& result
=
6931 eval ${GLTYPE}_SUFFIX
=\
$result
6932 cat >>confdefs.h
<<_ACEOF
6933 #define ${GLTYPE}_SUFFIX $result
6944 # Code from module string:
6948 # Code from module warn-on-use:
6949 # Code from module wchar:
6972 if test $gl_cv_have_include_next = yes; then
6973 gl_cv_next_wchar_h
='<'wchar.h
'>'
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
6976 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
6977 if test "${gl_cv_next_wchar_h+set}" = set; then :
6978 $as_echo_n "(cached) " >&6
6981 if test $ac_cv_header_wchar_h = yes; then
6982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6983 /* end confdefs.h. */
6988 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
6989 *) gl_absname_cpp
="$ac_cpp" ;;
6991 gl_cv_next_wchar_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6992 sed -n '\#/wchar.h#{
6993 s#.*"\(.*/wchar.h\)".*#\1#
6999 gl_cv_next_wchar_h
='<'wchar.h
'>'
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
7004 $as_echo "$gl_cv_next_wchar_h" >&6; }
7006 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
7008 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
7009 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7010 gl_next_as_first_directive
='<'wchar.h
'>'
7012 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7013 gl_next_as_first_directive
=$gl_cv_next_wchar_h
7015 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
=$gl_next_as_first_directive
7019 if test $ac_cv_header_wchar_h = yes; then
7027 if test $gt_cv_c_wint_t = yes; then
7035 for gl_func
in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth
; do
7036 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7038 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7039 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7040 $as_echo_n "(cached) " >&6
7042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7043 /* end confdefs.h. */
7045 /* Some systems require additional headers. */
7047 # include <stddef.h>
7062 if ac_fn_c_try_compile
"$LINENO"; then :
7063 eval "$as_gl_Symbol=yes"
7065 eval "$as_gl_Symbol=no"
7067 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7069 eval ac_res
=\$
$as_gl_Symbol
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7071 $as_echo "$ac_res" >&6; }
7072 eval as_val
=\$
$as_gl_Symbol
7073 if test "x$as_val" = x
""yes; then :
7074 cat >>confdefs.h
<<_ACEOF
7075 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7078 eval ac_cv_have_decl_
$gl_func=yes
7083 # Code from module dummy:
7084 # End of code from modules
7105 gl_source_base
='tests'
7106 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
7108 gl_module_indicator_condition
=$gltests_WITNESS
7118 LIBGNU_LIBDEPS
="$gl_libdeps"
7120 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
7124 # For Makefile dependencies.
7126 if test x
"$STDINT_H" != x
; then
7127 GNULIB_STDINT_H
=gnulib
/$STDINT_H
7133 cat >>confdefs.h
<<_ACEOF
7134 #define PACKAGE "$PACKAGE"
7139 # GDB does not use automake, but gnulib does. This line lets us
7140 # generate its Makefile.in.
7141 am__api_version
='1.11'
7143 # Find a good install program. We prefer a C program (faster),
7144 # so one script is as good as another. But avoid the broken or
7145 # incompatible versions:
7146 # SysV /etc/install, /usr/sbin/install
7147 # SunOS /usr/etc/install
7148 # IRIX /sbin/install
7150 # AmigaOS /C/install, which installs bootblocks on floppy discs
7151 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7152 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7153 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7154 # OS/2's system install, which has a completely different semantic
7155 # ./install, which can be erroneously created by make from ./install.sh.
7156 # Reject install programs that cannot install multiple files.
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7158 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7159 if test -z "$INSTALL"; then
7160 if test "${ac_cv_path_install+set}" = set; then :
7161 $as_echo_n "(cached) " >&6
7163 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7167 test -z "$as_dir" && as_dir
=.
7168 # Account for people who put trailing slashes in PATH elements.
7169 case $as_dir/ in #((
7170 .
/ | .
// |
/[cC
]/* | \
7171 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7172 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
7175 # OSF1 and SCO ODT 3.0 have their own names for install.
7176 # Don't use installbsd from OSF since it installs stuff as root
7178 for ac_prog
in ginstall scoinst
install; do
7179 for ac_exec_ext
in '' $ac_executable_extensions; do
7180 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7181 if test $ac_prog = install &&
7182 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7183 # AIX install. It has an incompatible calling convention.
7185 elif test $ac_prog = install &&
7186 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7187 # program-specific install script used by HP pwplus--don't use.
7190 rm -rf conftest.one conftest.two conftest.dir
7191 echo one
> conftest.one
7192 echo two
> conftest.two
7194 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
7195 test -s conftest.one
&& test -s conftest.two
&&
7196 test -s conftest.dir
/conftest.one
&&
7197 test -s conftest.dir
/conftest.two
7199 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7212 rm -rf conftest.one conftest.two conftest.dir
7215 if test "${ac_cv_path_install+set}" = set; then
7216 INSTALL
=$ac_cv_path_install
7218 # As a last resort, use the slow shell script. Don't cache a
7219 # value for INSTALL within a source directory, because that will
7220 # break other packages using the cache if that directory is
7221 # removed, or if the value is a relative name.
7222 INSTALL
=$ac_install_sh
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7226 $as_echo "$INSTALL" >&6; }
7228 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7229 # It thinks the first close brace ends the variable substitution.
7230 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7232 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7234 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
7237 $as_echo_n "checking whether build environment is sane... " >&6; }
7240 echo timestamp
> conftest.
file
7241 # Reject unsafe characters in $srcdir or the absolute working directory
7242 # name. Accept space and tab only in the latter.
7246 *[\\\"\
#\$\&\'\`$am_lf]*)
7247 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
7250 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
7251 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
7254 # Do `set' in a subshell so we don't clobber the current shell's
7255 # arguments. Must try -L first in case configure is actually a
7256 # symlink; some systems play weird games with the mod time of symlinks
7257 # (eg FreeBSD returns the mod time of the symlink's containing
7260 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
7261 if test "$*" = "X"; then
7263 set X
`ls -t "$srcdir/configure" conftest.file`
7266 if test "$*" != "X $srcdir/configure conftest.file" \
7267 && test "$*" != "X conftest.file $srcdir/configure"; then
7269 # If neither matched, then we have a broken ls. This can happen
7270 # if, for instance, CONFIG_SHELL is bash and it inherits a
7271 # broken ls alias from the environment. This has actually
7272 # happened. Such a system could not be considered "sane".
7273 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
7274 alias in your environment" "$LINENO" 5
7277 test "$2" = conftest.
file
7283 as_fn_error
"newly created file is older than distributed files!
7284 Check your system clock" "$LINENO" 5
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7287 $as_echo "yes" >&6; }
7288 test "$program_prefix" != NONE
&&
7289 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
7290 # Use a double $ so make ignores it.
7291 test "$program_suffix" != NONE
&&
7292 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
7293 # Double any \ or $.
7294 # By default was `s,x,x', remove it if useless.
7295 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
7296 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
7298 # expand $ac_aux_dir to an absolute path
7299 am_aux_dir
=`cd $ac_aux_dir && pwd`
7301 if test x
"${MISSING+set}" != xset
; then
7304 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
7306 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
7309 # Use eval to expand $SHELL
7310 if eval "$MISSING --run true"; then
7311 am_missing_run
="$MISSING --run "
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
7315 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
7318 if test x
"${install_sh}" != xset
; then
7321 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
7323 install_sh
="\${SHELL} $am_aux_dir/install-sh"
7327 # Installed binaries are usually stripped using `strip' when the user
7328 # run `make install-strip'. However `strip' might not be the right
7329 # tool to use in cross-compilation environments, therefore Automake
7330 # will honor the `STRIP' environment variable to overrule this program.
7331 if test "$cross_compiling" != no
; then
7332 if test -n "$ac_tool_prefix"; then
7333 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7334 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7336 $as_echo_n "checking for $ac_word... " >&6; }
7337 if test "${ac_cv_prog_STRIP+set}" = set; then :
7338 $as_echo_n "(cached) " >&6
7340 if test -n "$STRIP"; then
7341 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
7343 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7347 test -z "$as_dir" && as_dir
=.
7348 for ac_exec_ext
in '' $ac_executable_extensions; do
7349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7350 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
7351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7360 STRIP
=$ac_cv_prog_STRIP
7361 if test -n "$STRIP"; then
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7363 $as_echo "$STRIP" >&6; }
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7366 $as_echo "no" >&6; }
7371 if test -z "$ac_cv_prog_STRIP"; then
7373 # Extract the first word of "strip", so it can be a program name with args.
7374 set dummy strip
; ac_word
=$2
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7376 $as_echo_n "checking for $ac_word... " >&6; }
7377 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7378 $as_echo_n "(cached) " >&6
7380 if test -n "$ac_ct_STRIP"; then
7381 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
7383 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7387 test -z "$as_dir" && as_dir
=.
7388 for ac_exec_ext
in '' $ac_executable_extensions; do
7389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7390 ac_cv_prog_ac_ct_STRIP
="strip"
7391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7400 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
7401 if test -n "$ac_ct_STRIP"; then
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7403 $as_echo "$ac_ct_STRIP" >&6; }
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7406 $as_echo "no" >&6; }
7409 if test "x$ac_ct_STRIP" = x
; then
7412 case $cross_compiling:$ac_tool_warned in
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7416 ac_tool_warned
=yes ;;
7421 STRIP
="$ac_cv_prog_STRIP"
7425 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7428 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7429 if test -z "$MKDIR_P"; then
7430 if test "${ac_cv_path_mkdir+set}" = set; then :
7431 $as_echo_n "(cached) " >&6
7433 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7434 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
7437 test -z "$as_dir" && as_dir
=.
7438 for ac_prog
in mkdir gmkdir
; do
7439 for ac_exec_ext
in '' $ac_executable_extensions; do
7440 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
7441 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7442 'mkdir (GNU coreutils) '* | \
7443 'mkdir (coreutils) '* | \
7444 'mkdir (fileutils) '4.1*)
7445 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
7455 if test "${ac_cv_path_mkdir+set}" = set; then
7456 MKDIR_P
="$ac_cv_path_mkdir -p"
7458 # As a last resort, use the slow shell script. Don't cache a
7459 # value for MKDIR_P within a source directory, because that will
7460 # break other packages using the cache if that directory is
7461 # removed, or if the value is a relative name.
7462 test -d .
/--version && rmdir .
/--version
7463 MKDIR_P
="$ac_install_sh -d"
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7467 $as_echo "$MKDIR_P" >&6; }
7472 [\\/$
]* | ?
:[\\/]*) ;;
7473 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
7476 for ac_prog
in gawk mawk nawk
awk
7478 # Extract the first word of "$ac_prog", so it can be a program name with args.
7479 set dummy
$ac_prog; ac_word
=$2
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7481 $as_echo_n "checking for $ac_word... " >&6; }
7482 if test "${ac_cv_prog_AWK+set}" = set; then :
7483 $as_echo_n "(cached) " >&6
7485 if test -n "$AWK"; then
7486 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7488 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7492 test -z "$as_dir" && as_dir
=.
7493 for ac_exec_ext
in '' $ac_executable_extensions; do
7494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7495 ac_cv_prog_AWK
="$ac_prog"
7496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7506 if test -n "$AWK"; then
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7508 $as_echo "$AWK" >&6; }
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7511 $as_echo "no" >&6; }
7515 test -n "$AWK" && break
7518 ac_config_commands
="$ac_config_commands depfiles"
7521 am_make
=${MAKE-make}
7522 cat > confinc
<< 'END'
7524 @
echo this is the am__doit target
7527 # If we don't find an include directive, just comment out the code.
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
7529 $as_echo_n "checking for style of include used by $am_make... " >&6; }
7533 # First try GNU make style include.
7534 echo "include confinc" > confmf
7535 # Ignore all kinds of additional output from `make'.
7536 case `$am_make -s -f confmf 2> /dev/null` in #(
7537 *the\ am__doit\ target
*)
7543 # Now try BSD make style include.
7544 if test "$am__include" = "#"; then
7545 echo '.include "confinc"' > confmf
7546 case `$am_make -s -f confmf 2> /dev/null` in #(
7547 *the\ am__doit\ target
*)
7548 am__include
=.include
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
7557 $as_echo "$_am_result" >&6; }
7558 rm -f confinc confmf
7560 # Check whether --enable-dependency-tracking was given.
7561 if test "${enable_dependency_tracking+set}" = set; then :
7562 enableval
=$enable_dependency_tracking;
7565 if test "x$enable_dependency_tracking" != xno
; then
7566 am_depcomp
="$ac_aux_dir/depcomp"
7569 if test "x$enable_dependency_tracking" != xno; then
7578 if test "`cd $srcdir && pwd`" != "`pwd`"; then
7579 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7580 # is not polluted with repeated "-I."
7581 am__isrc
=' -I$(srcdir)'
7582 # test to see if srcdir already configured
7583 if test -f $srcdir/config.status
; then
7584 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
7588 # test whether we have cygpath
7589 if test -z "$CYGPATH_W"; then
7590 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
7591 CYGPATH_W
='cygpath -w'
7598 # Define the identity of the package.
7600 VERSION
=UNUSED-VERSION
7603 # Some tools Automake needs.
7605 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
7608 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
7611 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
7614 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
7617 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
7619 # We need awk for the "check" target. The system "awk" is bad on
7621 # Always define AMTAR for backward compatibility.
7623 AMTAR
=${AMTAR-"${am_missing_run}tar"}
7625 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
7630 depcc
="$CC" am_compiler_list
=
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7633 $as_echo_n "checking dependency style of $depcc... " >&6; }
7634 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
7635 $as_echo_n "(cached) " >&6
7637 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7638 # We make a subdir and do the tests there. Otherwise we can end up
7639 # making bogus files that we don't know about and never remove. For
7640 # instance it was reported that on HP-UX the gcc test will end up
7641 # making a dummy file named `D' -- because `-MD' means `put the output
7644 # Copy depcomp to subdir because otherwise we won't find it if we're
7645 # using a relative directory.
7646 cp "$am_depcomp" conftest.dir
7648 # We will build objects and dependencies in a subdirectory because
7649 # it helps to detect inapplicable dependency modes. For instance
7650 # both Tru64's cc and ICC support -MD to output dependencies as a
7651 # side effect of compilation, but ICC will put the dependencies in
7652 # the current directory while Tru64 will put them in the object
7656 am_cv_CC_dependencies_compiler_type
=none
7657 if test "$am_compiler_list" = ""; then
7658 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7661 case " $depcc " in #(
7662 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
7665 for depmode
in $am_compiler_list; do
7666 # Setup a source with many dependencies, because some compilers
7667 # like to wrap large dependency lists on column 80 (with \), and
7668 # we should not choose a depcomp mode which is confused by this.
7670 # We need to recreate these files for each test, as the compiler may
7671 # overwrite some of them when testing with obscure command lines.
7672 # This happens at least with the AIX C compiler.
7674 for i
in 1 2 3 4 5 6; do
7675 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
7676 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7677 # Solaris 8's {/usr,}/bin/sh.
7678 touch sub
/conftst
$i.h
7680 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7682 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7683 # mode. It turns out that the SunPro C++ compiler does not properly
7684 # handle `-M -o', and we need to detect this. Also, some Intel
7685 # versions had trouble with output in subdirs
7686 am__obj
=sub
/conftest.
${OBJEXT-o}
7687 am__minus_obj
="-o $am__obj"
7690 # This depmode causes a compiler race in universal mode.
7691 test "$am__universal" = false ||
continue
7694 # after this tag, mechanisms are not by side-effect, so they'll
7695 # only be used when explicitly requested
7696 if test "x$enable_dependency_tracking" = xyes
; then
7702 msvisualcpp | msvcmsys
)
7703 # This compiler won't grok `-c -o', but also, the minuso test has
7704 # not run yet. These depmodes are late enough in the game, and
7705 # so weak that their functioning should not be impacted.
7706 am__obj
=conftest.
${OBJEXT-o}
7711 if depmode
=$depmode \
7712 source=sub
/conftest.c object
=$am__obj \
7713 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
7714 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
7715 >/dev
/null
2>conftest.err
&&
7716 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
7717 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
7718 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
7719 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
7720 # icc doesn't choke on unknown options, it will just issue warnings
7721 # or remarks (even with -Werror). So we grep stderr for any message
7722 # that says an option was ignored or not supported.
7723 # When given -MP, icc 7.0 and 7.1 complain thusly:
7724 # icc: Command line warning: ignoring option '-M'; no argument required
7725 # The diagnosis changed in icc 8.0:
7726 # icc: Command line remark: option '-MP' not supported
7727 if (grep 'ignoring option' conftest.err ||
7728 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
7729 am_cv_CC_dependencies_compiler_type
=$depmode
7738 am_cv_CC_dependencies_compiler_type
=none
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7743 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7744 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
7747 test "x$enable_dependency_tracking" != xno \
7748 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
7750 am__fastdepCC_FALSE
='#'
7752 am__fastdepCC_TRUE
='#'
7753 am__fastdepCC_FALSE
=
7761 # Check whether --with-separate-debug-dir was given.
7762 if test "${with_separate_debug_dir+set}" = set; then :
7763 withval
=$with_separate_debug_dir;
7766 DEBUGDIR
=${libdir}/debug
7770 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7771 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7772 ac_define_dir
=`eval echo $DEBUGDIR`
7773 ac_define_dir
=`eval echo $ac_define_dir`
7775 cat >>confdefs.h
<<_ACEOF
7776 #define DEBUGDIR "$ac_define_dir"
7782 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
7783 if test "x$prefix" = xNONE
; then
7784 test_prefix
=/usr
/local
7789 test_prefix
=$exec_prefix
7792 case ${ac_define_dir} in
7793 "${test_prefix}"|
"${test_prefix}/"*|\
7794 '${exec_prefix}'|
'${exec_prefix}/'*)
7799 cat >>confdefs.h
<<_ACEOF
7800 #define DEBUGDIR_RELOCATABLE $value
7806 # GDB's datadir relocation
7810 # Check whether --with-gdb-datadir was given.
7811 if test "${with_gdb_datadir+set}" = set; then :
7812 withval
=$with_gdb_datadir;
7813 GDB_DATADIR
=$withval
7815 GDB_DATADIR
=${datadir}/gdb
7819 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7820 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7821 ac_define_dir
=`eval echo $GDB_DATADIR`
7822 ac_define_dir
=`eval echo $ac_define_dir`
7824 cat >>confdefs.h
<<_ACEOF
7825 #define GDB_DATADIR "$ac_define_dir"
7831 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
7832 if test "x$prefix" = xNONE
; then
7833 test_prefix
=/usr
/local
7838 test_prefix
=$exec_prefix
7841 case ${ac_define_dir} in
7842 "${test_prefix}"|
"${test_prefix}/"*|\
7843 '${exec_prefix}'|
'${exec_prefix}/'*)
7848 cat >>confdefs.h
<<_ACEOF
7849 #define GDB_DATADIR_RELOCATABLE $value
7856 # Check whether --with-relocated-sources was given.
7857 if test "${with_relocated_sources+set}" = set; then :
7858 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
7860 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7861 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7862 ac_define_dir
=`eval echo $reloc_srcdir`
7863 ac_define_dir
=`eval echo $ac_define_dir`
7865 cat >>confdefs.h
<<_ACEOF
7866 #define RELOC_SRCDIR "$ac_define_dir"
7876 subdirs
="$subdirs doc testsuite"
7879 # Check whether to support alternative target configurations
7880 # Check whether --enable-targets was given.
7881 if test "${enable_targets+set}" = set; then :
7882 enableval
=$enable_targets; case "${enableval}" in
7883 yes |
"") as_fn_error
"enable-targets option must specify target names or 'all'" "$LINENO" 5
7885 no
) enable_targets
= ;;
7886 *) enable_targets
=$enableval ;;
7891 # Check whether to enable 64-bit support on 32-bit hosts
7892 # Check whether --enable-64-bit-bfd was given.
7893 if test "${enable_64_bit_bfd+set}" = set; then :
7894 enableval
=$enable_64_bit_bfd; case "${enableval}" in
7897 *) as_fn_error
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
7903 # Provide defaults for some variables set by the per-host and per-target
7905 gdb_host_obs
=posix-hdep.o
7907 if test "${target}" = "${host}"; then
7913 .
$srcdir/configure.
host
7915 # Accumulate some settings from configure.tgt over all enabled targets
7920 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
7922 if test "$targ_alias" = "all"; then
7925 # Canonicalize the secondary target names.
7926 result
=`$ac_config_sub $targ_alias 2>/dev/null`
7927 if test -n "$result"; then
7933 .
${srcdir}/configure.tgt
7935 if test -z "${gdb_target_obs}"; then :
7936 as_fn_error
"configuration ${targ} is unsupported." "$LINENO" 5
7939 # Target-specific object files
7940 for i
in ${gdb_target_obs}; do
7941 case " $TARGET_OBS " in
7944 TARGET_OBS
="$TARGET_OBS ${i}"
7949 # Check whether this target needs 64-bit CORE_ADDR
7950 if test x
${want64} = xfalse
; then
7951 .
${srcdir}/..
/bfd
/config.bfd
7956 if test x
${all_targets} = xtrue
; then
7958 # We want all 64-bit targets if we either:
7959 # - run on a 64-bit host or
7960 # - already require 64-bit support for some other target or
7961 # - the --enable-64-bit-bfd option was supplied
7962 # Otherwise we only support all 32-bit targets.
7964 # NOTE: This test must be in sync with the corresponding
7967 if test x
${want64} = xfalse
; then
7968 # The cast to long int works around a bug in the HP C Compiler
7969 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7970 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7971 # This bug is HP SR number 8606223364.
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7973 $as_echo_n "checking size of long... " >&6; }
7974 if test "${ac_cv_sizeof_long+set}" = set; then :
7975 $as_echo_n "(cached) " >&6
7977 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
7980 if test "$ac_cv_type_long" = yes; then
7981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7983 { as_fn_set_status
77
7984 as_fn_error
"cannot compute sizeof (long)
7985 See \`config.log' for more details." "$LINENO" 5; }; }
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
7993 $as_echo "$ac_cv_sizeof_long" >&6; }
7997 cat >>confdefs.h
<<_ACEOF
7998 #define SIZEOF_LONG $ac_cv_sizeof_long
8002 if test "x${ac_cv_sizeof_long}" = "x8"; then
8006 if test x
${want64} = xtrue
; then
8007 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
8009 TARGET_OBS
='$(ALL_TARGET_OBS)'
8015 # For other settings, only the main target counts.
8019 targ
=$target; .
${srcdir}/configure.tgt
8021 # Fetch the default architecture and default target vector from BFD.
8022 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
8024 # We only want the first architecture, so strip off the others if
8025 # there is more than one.
8026 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
8028 if test "x$targ_archs" != x
; then
8030 cat >>confdefs.h
<<_ACEOF
8031 #define DEFAULT_BFD_ARCH $targ_archs
8035 if test "x$targ_defvec" != x
; then
8037 cat >>confdefs.h
<<_ACEOF
8038 #define DEFAULT_BFD_VEC $targ_defvec
8043 # The CLI cannot be disabled yet, but may be in the future.
8046 # Check whether --enable-gdbcli was given.
8047 if test "${enable_gdbcli+set}" = set; then :
8048 enableval
=$enable_gdbcli; case $enableval in
8052 as_fn_error
"the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
8054 as_fn_error
"bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
8060 if test x
"$enable_gdbcli" = xyes
; then
8061 if test -d $srcdir/cli
; then
8062 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
8063 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
8064 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
8065 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
8070 # Check whether --enable-gdbmi was given.
8071 if test "${enable_gdbmi+set}" = set; then :
8072 enableval
=$enable_gdbmi; case $enableval in
8076 as_fn_error
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
8082 if test x
"$enable_gdbmi" = xyes
; then
8083 if test -d $srcdir/mi
; then
8084 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
8085 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
8086 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
8087 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
8092 # Check whether --enable-tui was given.
8093 if test "${enable_tui+set}" = set; then :
8094 enableval
=$enable_tui; case $enableval in
8098 as_fn_error
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
8106 # Check whether --enable-gdbtk was given.
8107 if test "${enable_gdbtk+set}" = set; then :
8108 enableval
=$enable_gdbtk; case $enableval in
8112 as_fn_error
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
8115 if test -d $srcdir/gdbtk
; then
8122 # We unconditionally disable gdbtk tests on selected platforms.
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
8126 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
8130 # Libunwind support.
8132 # Check whether --with-libunwind was given.
8133 if test "${with_libunwind+set}" = set; then :
8134 withval
=$with_libunwind; case "${withval}" in
8135 yes) enable_libunwind
=yes ;;
8136 no
) enable_libunwind
=no
;;
8137 *) as_fn_error
"bad value ${withval} for GDB with-libunwind option" "$LINENO" 5 ;;
8141 for ac_header
in libunwind.h libunwind-ia64.h
8143 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8144 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8145 eval as_val
=\$
$as_ac_Header
8146 if test "x$as_val" = x
""yes; then :
8147 cat >>confdefs.h
<<_ACEOF
8148 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8155 if test x
"$ac_cv_header_libunwind_h" = xyes
-a x
"$ac_cv_header_libunwind_ia64_h" = xyes
; then
8156 enable_libunwind
=yes;
8162 if test x
"$enable_libunwind" = xyes
; then
8163 for ac_header
in libunwind.h libunwind-ia64.h
8165 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8166 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8167 eval as_val
=\$
$as_ac_Header
8168 if test "x$as_val" = x
""yes; then :
8169 cat >>confdefs.h
<<_ACEOF
8170 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8178 $as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h
8180 CONFIG_OBS
="$CONFIG_OBS libunwind-frame.o"
8181 CONFIG_DEPS
="$CONFIG_DEPS libunwind-frame.o"
8182 CONFIG_SRCS
="$CONFIG_SRCS libunwind-frame.c"
8187 # Check whether --with-curses was given.
8188 if test "${with_curses+set}" = set; then :
8189 withval
=$with_curses; opt_curses
=$withval
8194 if test "$opt_curses" = "yes"; then
8198 # Profiling support.
8199 # Check whether --enable-profiling was given.
8200 if test "${enable_profiling+set}" = set; then :
8201 enableval
=$enable_profiling; case $enableval in
8205 as_fn_error
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
8212 for ac_func
in monstartup _mcleanup
8214 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8215 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8216 eval as_val
=\$
$as_ac_var
8217 if test "x$as_val" = x
""yes; then :
8218 cat >>confdefs.h
<<_ACEOF
8219 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
8226 $as_echo_n "checking for _etext... " >&6; }
8227 if test "${ac_cv_var__etext+set}" = set; then :
8228 $as_echo_n "(cached) " >&6
8230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8231 /* end confdefs.h. */
8243 if ac_fn_c_try_link
"$LINENO"; then :
8244 ac_cv_var__etext
=yes
8248 rm -f core conftest.err conftest.
$ac_objext \
8249 conftest
$ac_exeext conftest.
$ac_ext
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
8252 $as_echo "$ac_cv_var__etext" >&6; }
8253 if test $ac_cv_var__etext = yes; then
8255 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
8259 $as_echo_n "checking for etext... " >&6; }
8260 if test "${ac_cv_var_etext+set}" = set; then :
8261 $as_echo_n "(cached) " >&6
8263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8264 /* end confdefs.h. */
8276 if ac_fn_c_try_link
"$LINENO"; then :
8281 rm -f core conftest.err conftest.
$ac_objext \
8282 conftest
$ac_exeext conftest.
$ac_ext
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
8285 $as_echo "$ac_cv_var_etext" >&6; }
8286 if test $ac_cv_var_etext = yes; then
8288 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
8291 if test "$enable_profiling" = yes ; then
8292 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
8293 as_fn_error
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
8296 OLD_CFLAGS
="$CFLAGS"
8297 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
8300 $as_echo_n "checking whether $CC supports -pg... " >&6; }
8301 if test "${ac_cv_cc_supports_pg+set}" = set; then :
8302 $as_echo_n "(cached) " >&6
8304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8305 /* end confdefs.h. */
8315 if ac_fn_c_try_compile
"$LINENO"; then :
8316 ac_cv_cc_supports_pg
=yes
8318 ac_cv_cc_supports_pg
=no
8320 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
8323 $as_echo "$ac_cv_cc_supports_pg" >&6; }
8325 if test $ac_cv_cc_supports_pg = no
; then
8326 as_fn_error
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
8329 CFLAGS
="$OLD_CFLAGS"
8334 # Check whether --with-pkgversion was given.
8335 if test "${with_pkgversion+set}" = set; then :
8336 withval
=$with_pkgversion; case "$withval" in
8337 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
8339 *) PKGVERSION
="($withval) " ;;
8350 # Check whether --with-bugurl was given.
8351 if test "${with_bugurl+set}" = set; then :
8352 withval
=$with_bugurl; case "$withval" in
8353 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
8356 *) BUGURL
="$withval"
8360 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
8370 REPORT_BUGS_TO
="<$BUGURL>"
8371 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
8378 cat >>confdefs.h
<<_ACEOF
8379 #define PKGVERSION "$PKGVERSION"
8383 cat >>confdefs.h
<<_ACEOF
8384 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8388 # --------------------- #
8389 # Checks for programs. #
8390 # --------------------- #
8392 for ac_prog
in gawk mawk nawk
awk
8394 # Extract the first word of "$ac_prog", so it can be a program name with args.
8395 set dummy
$ac_prog; ac_word
=$2
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8397 $as_echo_n "checking for $ac_word... " >&6; }
8398 if test "${ac_cv_prog_AWK+set}" = set; then :
8399 $as_echo_n "(cached) " >&6
8401 if test -n "$AWK"; then
8402 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8404 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8408 test -z "$as_dir" && as_dir
=.
8409 for ac_exec_ext
in '' $ac_executable_extensions; do
8410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8411 ac_cv_prog_AWK
="$ac_prog"
8412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8422 if test -n "$AWK"; then
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8424 $as_echo "$AWK" >&6; }
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8427 $as_echo "no" >&6; }
8431 test -n "$AWK" && break
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8436 $as_echo_n "checking whether ln -s works... " >&6; }
8438 if test "$LN_S" = "ln -s"; then
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8440 $as_echo "yes" >&6; }
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8443 $as_echo "no, using $LN_S" >&6; }
8446 if test -n "$ac_tool_prefix"; then
8447 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8448 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8450 $as_echo_n "checking for $ac_word... " >&6; }
8451 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8452 $as_echo_n "(cached) " >&6
8454 if test -n "$RANLIB"; then
8455 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8457 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8461 test -z "$as_dir" && as_dir
=.
8462 for ac_exec_ext
in '' $ac_executable_extensions; do
8463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8464 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8474 RANLIB
=$ac_cv_prog_RANLIB
8475 if test -n "$RANLIB"; then
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8477 $as_echo "$RANLIB" >&6; }
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8480 $as_echo "no" >&6; }
8485 if test -z "$ac_cv_prog_RANLIB"; then
8486 ac_ct_RANLIB
=$RANLIB
8487 # Extract the first word of "ranlib", so it can be a program name with args.
8488 set dummy ranlib
; ac_word
=$2
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8490 $as_echo_n "checking for $ac_word... " >&6; }
8491 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8492 $as_echo_n "(cached) " >&6
8494 if test -n "$ac_ct_RANLIB"; then
8495 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8497 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8501 test -z "$as_dir" && as_dir
=.
8502 for ac_exec_ext
in '' $ac_executable_extensions; do
8503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8504 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8514 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8515 if test -n "$ac_ct_RANLIB"; then
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8517 $as_echo "$ac_ct_RANLIB" >&6; }
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8520 $as_echo "no" >&6; }
8523 if test "x$ac_ct_RANLIB" = x
; then
8526 case $cross_compiling:$ac_tool_warned in
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8530 ac_tool_warned
=yes ;;
8532 RANLIB
=$ac_ct_RANLIB
8535 RANLIB
="$ac_cv_prog_RANLIB"
8538 for ac_prog
in 'bison -y' byacc
8540 # Extract the first word of "$ac_prog", so it can be a program name with args.
8541 set dummy
$ac_prog; ac_word
=$2
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8543 $as_echo_n "checking for $ac_word... " >&6; }
8544 if test "${ac_cv_prog_YACC+set}" = set; then :
8545 $as_echo_n "(cached) " >&6
8547 if test -n "$YACC"; then
8548 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
8550 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8554 test -z "$as_dir" && as_dir
=.
8555 for ac_exec_ext
in '' $ac_executable_extensions; do
8556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8557 ac_cv_prog_YACC
="$ac_prog"
8558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8567 YACC
=$ac_cv_prog_YACC
8568 if test -n "$YACC"; then
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8570 $as_echo "$YACC" >&6; }
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8573 $as_echo "no" >&6; }
8577 test -n "$YACC" && break
8579 test -n "$YACC" || YACC
="yacc"
8582 if test -n "$ac_tool_prefix"; then
8583 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8584 set dummy
${ac_tool_prefix}ar; ac_word
=$2
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8586 $as_echo_n "checking for $ac_word... " >&6; }
8587 if test "${ac_cv_prog_AR+set}" = set; then :
8588 $as_echo_n "(cached) " >&6
8590 if test -n "$AR"; then
8591 ac_cv_prog_AR
="$AR" # Let the user override the test.
8593 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8597 test -z "$as_dir" && as_dir
=.
8598 for ac_exec_ext
in '' $ac_executable_extensions; do
8599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8600 ac_cv_prog_AR
="${ac_tool_prefix}ar"
8601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8611 if test -n "$AR"; then
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8613 $as_echo "$AR" >&6; }
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8616 $as_echo "no" >&6; }
8621 if test -z "$ac_cv_prog_AR"; then
8623 # Extract the first word of "ar", so it can be a program name with args.
8624 set dummy
ar; ac_word
=$2
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8626 $as_echo_n "checking for $ac_word... " >&6; }
8627 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8628 $as_echo_n "(cached) " >&6
8630 if test -n "$ac_ct_AR"; then
8631 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
8633 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8637 test -z "$as_dir" && as_dir
=.
8638 for ac_exec_ext
in '' $ac_executable_extensions; do
8639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8640 ac_cv_prog_ac_ct_AR
="ar"
8641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8650 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
8651 if test -n "$ac_ct_AR"; then
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8653 $as_echo "$ac_ct_AR" >&6; }
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8656 $as_echo "no" >&6; }
8659 if test "x$ac_ct_AR" = x
; then
8662 case $cross_compiling:$ac_tool_warned in
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8666 ac_tool_warned
=yes ;;
8674 if test -n "$ac_tool_prefix"; then
8675 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8676 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8678 $as_echo_n "checking for $ac_word... " >&6; }
8679 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8680 $as_echo_n "(cached) " >&6
8682 if test -n "$DLLTOOL"; then
8683 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
8685 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8689 test -z "$as_dir" && as_dir
=.
8690 for ac_exec_ext
in '' $ac_executable_extensions; do
8691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8692 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
8693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8702 DLLTOOL
=$ac_cv_prog_DLLTOOL
8703 if test -n "$DLLTOOL"; then
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8705 $as_echo "$DLLTOOL" >&6; }
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8708 $as_echo "no" >&6; }
8713 if test -z "$ac_cv_prog_DLLTOOL"; then
8714 ac_ct_DLLTOOL
=$DLLTOOL
8715 # Extract the first word of "dlltool", so it can be a program name with args.
8716 set dummy dlltool
; ac_word
=$2
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8718 $as_echo_n "checking for $ac_word... " >&6; }
8719 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
8720 $as_echo_n "(cached) " >&6
8722 if test -n "$ac_ct_DLLTOOL"; then
8723 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
8725 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8729 test -z "$as_dir" && as_dir
=.
8730 for ac_exec_ext
in '' $ac_executable_extensions; do
8731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8732 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
8733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8742 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
8743 if test -n "$ac_ct_DLLTOOL"; then
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8745 $as_echo "$ac_ct_DLLTOOL" >&6; }
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8748 $as_echo "no" >&6; }
8751 if test "x$ac_ct_DLLTOOL" = x
; then
8754 case $cross_compiling:$ac_tool_warned in
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8758 ac_tool_warned
=yes ;;
8760 DLLTOOL
=$ac_ct_DLLTOOL
8763 DLLTOOL
="$ac_cv_prog_DLLTOOL"
8766 if test -n "$ac_tool_prefix"; then
8767 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8768 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8770 $as_echo_n "checking for $ac_word... " >&6; }
8771 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8772 $as_echo_n "(cached) " >&6
8774 if test -n "$WINDRES"; then
8775 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
8777 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8781 test -z "$as_dir" && as_dir
=.
8782 for ac_exec_ext
in '' $ac_executable_extensions; do
8783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8784 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
8785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8794 WINDRES
=$ac_cv_prog_WINDRES
8795 if test -n "$WINDRES"; then
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8797 $as_echo "$WINDRES" >&6; }
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8800 $as_echo "no" >&6; }
8805 if test -z "$ac_cv_prog_WINDRES"; then
8806 ac_ct_WINDRES
=$WINDRES
8807 # Extract the first word of "windres", so it can be a program name with args.
8808 set dummy windres
; ac_word
=$2
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8810 $as_echo_n "checking for $ac_word... " >&6; }
8811 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
8812 $as_echo_n "(cached) " >&6
8814 if test -n "$ac_ct_WINDRES"; then
8815 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
8817 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8821 test -z "$as_dir" && as_dir
=.
8822 for ac_exec_ext
in '' $ac_executable_extensions; do
8823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8824 ac_cv_prog_ac_ct_WINDRES
="windres"
8825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8834 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
8835 if test -n "$ac_ct_WINDRES"; then
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
8837 $as_echo "$ac_ct_WINDRES" >&6; }
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8840 $as_echo "no" >&6; }
8843 if test "x$ac_ct_WINDRES" = x
; then
8846 case $cross_compiling:$ac_tool_warned in
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8850 ac_tool_warned
=yes ;;
8852 WINDRES
=$ac_ct_WINDRES
8855 WINDRES
="$ac_cv_prog_WINDRES"
8859 # Needed for GNU/Hurd.
8860 if test -n "$ac_tool_prefix"; then
8861 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
8862 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8864 $as_echo_n "checking for $ac_word... " >&6; }
8865 if test "${ac_cv_prog_MIG+set}" = set; then :
8866 $as_echo_n "(cached) " >&6
8868 if test -n "$MIG"; then
8869 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
8871 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8875 test -z "$as_dir" && as_dir
=.
8876 for ac_exec_ext
in '' $ac_executable_extensions; do
8877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8878 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
8879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8889 if test -n "$MIG"; then
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
8891 $as_echo "$MIG" >&6; }
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8894 $as_echo "no" >&6; }
8899 if test -z "$ac_cv_prog_MIG"; then
8901 # Extract the first word of "mig", so it can be a program name with args.
8902 set dummy mig
; ac_word
=$2
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8904 $as_echo_n "checking for $ac_word... " >&6; }
8905 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
8906 $as_echo_n "(cached) " >&6
8908 if test -n "$ac_ct_MIG"; then
8909 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
8911 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8915 test -z "$as_dir" && as_dir
=.
8916 for ac_exec_ext
in '' $ac_executable_extensions; do
8917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8918 ac_cv_prog_ac_ct_MIG
="mig"
8919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8928 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
8929 if test -n "$ac_ct_MIG"; then
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
8931 $as_echo "$ac_ct_MIG" >&6; }
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8934 $as_echo "no" >&6; }
8937 if test "x$ac_ct_MIG" = x
; then
8940 case $cross_compiling:$ac_tool_warned in
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8943 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8944 ac_tool_warned
=yes ;;
8949 MIG
="$ac_cv_prog_MIG"
8953 # ---------------------- #
8954 # Checks for libraries. #
8955 # ---------------------- #
8957 # We might need to link with -lm; most simulators need it.
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
8959 $as_echo_n "checking for main in -lm... " >&6; }
8960 if test "${ac_cv_lib_m_main+set}" = set; then :
8961 $as_echo_n "(cached) " >&6
8963 ac_check_lib_save_LIBS
=$LIBS
8965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8966 /* end confdefs.h. */
8977 if ac_fn_c_try_link
"$LINENO"; then :
8978 ac_cv_lib_m_main
=yes
8982 rm -f core conftest.err conftest.
$ac_objext \
8983 conftest
$ac_exeext conftest.
$ac_ext
8984 LIBS
=$ac_check_lib_save_LIBS
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
8987 $as_echo "$ac_cv_lib_m_main" >&6; }
8988 if test "x$ac_cv_lib_m_main" = x
""yes; then :
8989 cat >>confdefs.h
<<_ACEOF
8998 # We need to link with -lw to get `wctype' on Solaris before Solaris
8999 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9000 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9001 # is known to have this problem). Therefore we avoid libw if we can.
9002 ac_fn_c_check_func
"$LINENO" "wctype" "ac_cv_func_wctype"
9003 if test "x$ac_cv_func_wctype" = x
""yes; then :
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
9007 $as_echo_n "checking for wctype in -lw... " >&6; }
9008 if test "${ac_cv_lib_w_wctype+set}" = set; then :
9009 $as_echo_n "(cached) " >&6
9011 ac_check_lib_save_LIBS
=$LIBS
9013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9014 /* end confdefs.h. */
9016 /* Override any GCC internal prototype to avoid an error.
9017 Use char because int might match the return type of a GCC
9018 builtin and then its argument prototype would still apply. */
9031 if ac_fn_c_try_link
"$LINENO"; then :
9032 ac_cv_lib_w_wctype
=yes
9034 ac_cv_lib_w_wctype
=no
9036 rm -f core conftest.err conftest.
$ac_objext \
9037 conftest
$ac_exeext conftest.
$ac_ext
9038 LIBS
=$ac_check_lib_save_LIBS
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
9041 $as_echo "$ac_cv_lib_w_wctype" >&6; }
9042 if test "x$ac_cv_lib_w_wctype" = x
""yes; then :
9043 cat >>confdefs.h
<<_ACEOF
9054 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
9056 $as_echo_n "checking for library containing gethostbyname... " >&6; }
9057 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9058 $as_echo_n "(cached) " >&6
9060 ac_func_search_save_LIBS
=$LIBS
9061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9062 /* end confdefs.h. */
9064 /* Override any GCC internal prototype to avoid an error.
9065 Use char because int might match the return type of a GCC
9066 builtin and then its argument prototype would still apply. */
9070 char gethostbyname ();
9074 return gethostbyname ();
9079 for ac_lib
in '' nsl
; do
9080 if test -z "$ac_lib"; then
9081 ac_res
="none required"
9084 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9086 if ac_fn_c_try_link
"$LINENO"; then :
9087 ac_cv_search_gethostbyname
=$ac_res
9089 rm -f core conftest.err conftest.
$ac_objext \
9091 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9095 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9098 ac_cv_search_gethostbyname
=no
9101 LIBS
=$ac_func_search_save_LIBS
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
9104 $as_echo "$ac_cv_search_gethostbyname" >&6; }
9105 ac_res
=$ac_cv_search_gethostbyname
9106 if test "$ac_res" != no
; then :
9107 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9112 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
9114 $as_echo_n "checking for library containing socketpair... " >&6; }
9115 if test "${ac_cv_search_socketpair+set}" = set; then :
9116 $as_echo_n "(cached) " >&6
9118 ac_func_search_save_LIBS
=$LIBS
9119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9120 /* end confdefs.h. */
9122 /* Override any GCC internal prototype to avoid an error.
9123 Use char because int might match the return type of a GCC
9124 builtin and then its argument prototype would still apply. */
9132 return socketpair ();
9137 for ac_lib
in '' socket
; do
9138 if test -z "$ac_lib"; then
9139 ac_res
="none required"
9142 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9144 if ac_fn_c_try_link
"$LINENO"; then :
9145 ac_cv_search_socketpair
=$ac_res
9147 rm -f core conftest.err conftest.
$ac_objext \
9149 if test "${ac_cv_search_socketpair+set}" = set; then :
9153 if test "${ac_cv_search_socketpair+set}" = set; then :
9156 ac_cv_search_socketpair
=no
9159 LIBS
=$ac_func_search_save_LIBS
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
9162 $as_echo "$ac_cv_search_socketpair" >&6; }
9163 ac_res
=$ac_cv_search_socketpair
9164 if test "$ac_res" != no
; then :
9165 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9170 # Link in zlib if we can. This allows us to read compressed debug sections.
9172 # See if the user specified whether he wants zlib support or not.
9174 # Check whether --with-zlib was given.
9175 if test "${with_zlib+set}" = set; then :
9182 if test "$with_zlib" != "no"; then
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
9184 $as_echo_n "checking for library containing zlibVersion... " >&6; }
9185 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9186 $as_echo_n "(cached) " >&6
9188 ac_func_search_save_LIBS
=$LIBS
9189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9190 /* end confdefs.h. */
9192 /* Override any GCC internal prototype to avoid an error.
9193 Use char because int might match the return type of a GCC
9194 builtin and then its argument prototype would still apply. */
9198 char zlibVersion ();
9202 return zlibVersion ();
9207 for ac_lib
in '' z
; do
9208 if test -z "$ac_lib"; then
9209 ac_res
="none required"
9212 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9214 if ac_fn_c_try_link
"$LINENO"; then :
9215 ac_cv_search_zlibVersion
=$ac_res
9217 rm -f core conftest.err conftest.
$ac_objext \
9219 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9223 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9226 ac_cv_search_zlibVersion
=no
9229 LIBS
=$ac_func_search_save_LIBS
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
9232 $as_echo "$ac_cv_search_zlibVersion" >&6; }
9233 ac_res
=$ac_cv_search_zlibVersion
9234 if test "$ac_res" != no
; then :
9235 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9236 for ac_header
in zlib.h
9238 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
9239 if test "x$ac_cv_header_zlib_h" = x
""yes; then :
9240 cat >>confdefs.h
<<_ACEOF
9241 #define HAVE_ZLIB_H 1
9250 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
9251 as_fn_error
"zlib (libz) library was explicitly requested but not found" "$LINENO" 5
9256 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
9258 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
9259 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9260 $as_echo_n "(cached) " >&6
9262 ac_func_search_save_LIBS
=$LIBS
9263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9264 /* end confdefs.h. */
9266 /* Override any GCC internal prototype to avoid an error.
9267 Use char because int might match the return type of a GCC
9268 builtin and then its argument prototype would still apply. */
9272 char dlgetmodinfo ();
9276 return dlgetmodinfo ();
9281 for ac_lib
in '' dl xpdl
; do
9282 if test -z "$ac_lib"; then
9283 ac_res
="none required"
9286 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9288 if ac_fn_c_try_link
"$LINENO"; then :
9289 ac_cv_search_dlgetmodinfo
=$ac_res
9291 rm -f core conftest.err conftest.
$ac_objext \
9293 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9297 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9300 ac_cv_search_dlgetmodinfo
=no
9303 LIBS
=$ac_func_search_save_LIBS
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
9306 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
9307 ac_res
=$ac_cv_search_dlgetmodinfo
9308 if test "$ac_res" != no
; then :
9309 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9317 # Check whether --with-libiconv-prefix was given.
9318 if test "${with_libiconv_prefix+set}" = set; then :
9319 withval
=$with_libiconv_prefix;
9320 for dir
in `echo "$withval" | tr : ' '`; do
9321 if test -d $dir/include
; then LIBICONV_INCLUDE
="-I$dir/include"; fi
9322 if test -d $dir/lib
; then LIBICONV_LIBDIR
="-L$dir/lib"; fi
9328 BUILD_LIBICONV_LIBDIRS
="../libiconv/lib/.libs ../libiconv/lib/_libs"
9329 BUILD_LIBICONV_INCLUDE
="-I../libiconv/include"
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9332 $as_echo_n "checking for iconv... " >&6; }
9333 if test "${am_cv_func_iconv+set}" = set; then :
9334 $as_echo_n "(cached) " >&6
9337 am_cv_func_iconv
="no, consider installing GNU libiconv"
9339 am_cv_use_build_libiconv
=no
9340 am_cv_build_libiconv_path
=
9342 # If libiconv is part of the build tree, then try using it over
9344 if test -d ..
/libiconv
; then
9345 for lib_dir
in $BUILD_LIBICONV_LIBDIRS; do
9346 am_save_LIBS
="$LIBS"
9347 am_save_CPPFLAGS
="$CPPFLAGS"
9348 LIBS
="$LIBS $lib_dir/libiconv.a"
9349 CPPFLAGS
="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
9350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9351 /* end confdefs.h. */
9357 iconv_t cd = iconv_open("","");
9358 iconv(cd,NULL,NULL,NULL,NULL);
9364 if ac_fn_c_try_link
"$LINENO"; then :
9365 am_cv_use_build_libiconv
=yes
9366 am_cv_build_libiconv_path
=$lib_dir/libiconv.a
9368 am_cv_func_iconv
=yes
9370 rm -f core conftest.err conftest.
$ac_objext \
9371 conftest
$ac_exeext conftest.
$ac_ext
9372 LIBS
="$am_save_LIBS"
9373 CPPFLAGS
="$am_save_CPPFLAGS"
9374 if test "$am_cv_use_build_libiconv" = "yes"; then
9380 # Next, try to find iconv in libc.
9381 if test "$am_cv_func_iconv" != yes; then
9382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9383 /* end confdefs.h. */
9389 iconv_t cd = iconv_open("","");
9390 iconv(cd,NULL,NULL,NULL,NULL);
9396 if ac_fn_c_try_link
"$LINENO"; then :
9397 am_cv_func_iconv
=yes
9399 rm -f core conftest.err conftest.
$ac_objext \
9400 conftest
$ac_exeext conftest.
$ac_ext
9403 # If iconv was not in libc, try -liconv. In this case, arrange to
9404 # look in the libiconv prefix, if it was specified by the user.
9405 if test "$am_cv_func_iconv" != yes; then
9406 am_save_CPPFLAGS
="$CPPFLAGS"
9407 am_save_LIBS
="$LIBS"
9408 if test -n "$LIBICONV_INCLUDE"; then
9409 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
9410 LIBS
="$LIBS $LIBICONV_LIBDIR"
9412 LIBS
="$LIBS -liconv"
9413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9414 /* end confdefs.h. */
9420 iconv_t cd = iconv_open("","");
9421 iconv(cd,NULL,NULL,NULL,NULL);
9427 if ac_fn_c_try_link
"$LINENO"; then :
9429 am_cv_func_iconv
=yes
9431 rm -f core conftest.err conftest.
$ac_objext \
9432 conftest
$ac_exeext conftest.
$ac_ext
9433 LIBS
="$am_save_LIBS"
9434 CPPFLAGS
="$am_save_CPPFLAGS"
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9439 $as_echo "$am_cv_func_iconv" >&6; }
9441 # Set the various flags based on the cache variables. We can't rely
9442 # on the flags to remain set from the above code, due to caching.
9444 if test "$am_cv_lib_iconv" = yes; then
9450 if test "$am_cv_use_build_libiconv" = yes; then
9451 LIBICONV
="$am_cv_build_libiconv_path"
9453 LIBICONV_INCLUDE
="$BUILD_LIBICONV_INCLUDE"
9455 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
9456 LIBS
="$LIBS $LIBICONV_LIBDIR $LIBICONV"
9458 if test "$am_cv_func_iconv" = yes; then
9460 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9463 $as_echo_n "checking for iconv declaration... " >&6; }
9464 if test "${am_cv_proto_iconv+set}" = set; then :
9465 $as_echo_n "(cached) " >&6
9468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9469 /* end confdefs.h. */
9477 #if defined(__STDC__) || defined(__cplusplus)
9478 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9491 if ac_fn_c_try_compile
"$LINENO"; then :
9492 am_cv_proto_iconv_arg1
=""
9494 am_cv_proto_iconv_arg1
="const"
9496 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9497 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);"
9500 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9502 }$am_cv_proto_iconv" >&5
9504 }$am_cv_proto_iconv" >&6; }
9506 cat >>confdefs.h
<<_ACEOF
9507 #define ICONV_CONST $am_cv_proto_iconv_arg1
9513 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
9514 # There is a very specific comment in /usr/include/curses.h explaining that
9515 # termcap routines built into libcurses must not be used.
9517 # The symptoms we observed so far is GDB unexpectedly changing
9518 # the terminal settings when tgetent is called - this is particularly
9519 # visible as the output is missing carriage returns, and so rapidly
9520 # becomes very hard to read.
9522 # The readline configure script has already decided that libtermcap
9523 # was enough for its purposes, and so decided to build readline using
9524 # libtermcap. Since the TUI mode requires curses, building GDB with
9525 # TUI enabled results in both libraries to be used at the same time,
9526 # which is not allowed. This basically means that GDB with TUI is
9527 # broken on alpha-osf.
9531 if test x
"$enable_tui" = xyes
; then
9532 as_fn_error
"Building GDB with TUI mode is not supported on this host" "$LINENO" 5
9534 if test x
"$enable_tui" = xauto
; then
9540 # For the TUI, we need enhanced curses functionality.
9541 if test x
"$enable_tui" != xno
; then
9546 if test x
"$prefer_curses" = xyes
; then
9547 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9548 # curses library because the latter might not provide all the
9549 # functionality we need. However, this leads to problems on systems
9550 # where the linker searches /usr/local/lib, but the compiler doesn't
9551 # search /usr/local/include, if ncurses is installed in /usr/local. A
9552 # default installation of ncurses on alpha*-dec-osf* will lead to such
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
9555 $as_echo_n "checking for library containing waddstr... " >&6; }
9556 if test "${ac_cv_search_waddstr+set}" = set; then :
9557 $as_echo_n "(cached) " >&6
9559 ac_func_search_save_LIBS
=$LIBS
9560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9561 /* end confdefs.h. */
9563 /* Override any GCC internal prototype to avoid an error.
9564 Use char because int might match the return type of a GCC
9565 builtin and then its argument prototype would still apply. */
9578 for ac_lib
in '' ncurses cursesX curses
; do
9579 if test -z "$ac_lib"; then
9580 ac_res
="none required"
9583 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9585 if ac_fn_c_try_link
"$LINENO"; then :
9586 ac_cv_search_waddstr
=$ac_res
9588 rm -f core conftest.err conftest.
$ac_objext \
9590 if test "${ac_cv_search_waddstr+set}" = set; then :
9594 if test "${ac_cv_search_waddstr+set}" = set; then :
9597 ac_cv_search_waddstr
=no
9600 LIBS
=$ac_func_search_save_LIBS
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
9603 $as_echo "$ac_cv_search_waddstr" >&6; }
9604 ac_res
=$ac_cv_search_waddstr
9605 if test "$ac_res" != no
; then :
9606 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9611 if test "$ac_cv_search_waddstr" != no
; then
9616 # Check whether we should enable the TUI, but only do so if we really
9618 if test x
"$enable_tui" != xno
; then
9619 if test -d $srcdir/tui
; then
9620 if test "$curses_found" != no
; then
9621 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
9622 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
9623 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9624 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
9625 CONFIG_ALL
="${CONFIG_ALL} all-tui"
9626 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-tui"
9627 CONFIG_INSTALL
="${CONFIG_INSTALL} install-tui"
9628 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-tui"
9630 if test x
"$enable_tui" = xyes
; then
9631 as_fn_error
"no enhanced curses library found; disable TUI" "$LINENO" 5
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
9634 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9640 # Since GDB uses Readline, we need termcap functionality. In many
9641 # cases this will be provided by the curses library, but some systems
9642 # have a seperate termcap library, or no curses library at all.
9646 if test -d $srcdir/libtermcap
; then
9647 LIBS
="../libtermcap/libtermcap.a $LIBS"
9648 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
9651 ac_cv_search_tgetent
="none required"
9654 ac_cv_search_tgetent
="none required"
9655 CONFIG_OBS
="$CONFIG_OBS windows-termcap.o"
9659 # These are the libraries checked by Readline.
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9661 $as_echo_n "checking for library containing tgetent... " >&6; }
9662 if test "${ac_cv_search_tgetent+set}" = set; then :
9663 $as_echo_n "(cached) " >&6
9665 ac_func_search_save_LIBS
=$LIBS
9666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9667 /* end confdefs.h. */
9669 /* Override any GCC internal prototype to avoid an error.
9670 Use char because int might match the return type of a GCC
9671 builtin and then its argument prototype would still apply. */
9684 for ac_lib
in '' termcap tinfo curses ncurses
; do
9685 if test -z "$ac_lib"; then
9686 ac_res
="none required"
9689 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9691 if ac_fn_c_try_link
"$LINENO"; then :
9692 ac_cv_search_tgetent
=$ac_res
9694 rm -f core conftest.err conftest.
$ac_objext \
9696 if test "${ac_cv_search_tgetent+set}" = set; then :
9700 if test "${ac_cv_search_tgetent+set}" = set; then :
9703 ac_cv_search_tgetent
=no
9706 LIBS
=$ac_func_search_save_LIBS
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9709 $as_echo "$ac_cv_search_tgetent" >&6; }
9710 ac_res
=$ac_cv_search_tgetent
9711 if test "$ac_res" != no
; then :
9712 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9717 if test "$ac_cv_search_tgetent" = no
; then
9718 as_fn_error
"no termcap library found" "$LINENO" 5
9722 # Check whether --with-system-readline was given.
9723 if test "${with_system_readline+set}" = set; then :
9724 withval
=$with_system_readline;
9728 if test "$with_system_readline" = yes; then
9733 # readline-6.0 started to use the name `_rl_echoing_p'.
9734 # `$(READLINE_DIR)/' of bundled readline would not resolve in configure.
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline_echoing_p" >&5
9737 $as_echo_n "checking for readline_echoing_p... " >&6; }
9739 LIBS
="$LIBS $READLINE"
9740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9741 /* end confdefs.h. */
9746 extern int readline_echoing_p;
9747 return readline_echoing_p;
9752 if ac_fn_c_try_link
"$LINENO"; then :
9753 READLINE_ECHOING_P
=yes
9755 READLINE_ECHOING_P
=no
9757 $as_echo "#define readline_echoing_p _rl_echoing_p" >>confdefs.h
9760 rm -f core conftest.err conftest.
$ac_objext \
9761 conftest
$ac_exeext conftest.
$ac_ext
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_ECHOING_P" >&5
9764 $as_echo "$READLINE_ECHOING_P" >&6; }
9766 READLINE
='$(READLINE_DIR)/libreadline.a'
9767 READLINE_DEPS
='$(READLINE)'
9768 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
9775 # Check whether --with-expat was given.
9776 if test "${with_expat+set}" = set; then :
9777 withval
=$with_expat;
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9783 $as_echo_n "checking whether to use expat... " >&6; }
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9785 $as_echo "$with_expat" >&6; }
9787 if test "${with_expat}" = no
; then
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9789 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9793 if test "X$prefix" = "XNONE"; then
9794 acl_final_prefix
="$ac_default_prefix"
9796 acl_final_prefix
="$prefix"
9798 if test "X$exec_prefix" = "XNONE"; then
9799 acl_final_exec_prefix
='${prefix}'
9801 acl_final_exec_prefix
="$exec_prefix"
9803 acl_save_prefix
="$prefix"
9804 prefix
="$acl_final_prefix"
9805 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9806 prefix
="$acl_save_prefix"
9809 # Check whether --with-gnu-ld was given.
9810 if test "${with_gnu_ld+set}" = set; then :
9811 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9816 # Prepare PATH_SEPARATOR.
9817 # The user is always right.
9818 if test "${PATH_SEPARATOR+set}" != set; then
9819 echo "#! /bin/sh" >conf$$.sh
9820 echo "exit 0" >>conf$$.sh
9822 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9830 if test "$GCC" = yes; then
9831 # Check if gcc -print-prog-name=ld gives a path.
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9833 $as_echo_n "checking for ld used by GCC... " >&6; }
9836 # gcc leaves a trailing carriage return which upsets mingw
9837 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9839 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9842 # Accept absolute paths.
9843 [\\/]* |
[A-Za-z
]:[\\/]*)
9844 re_direlt
='/[^/][^/]*/\.\./'
9845 # Canonicalize the path of ld
9846 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9847 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9848 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9850 test -z "$LD" && LD
="$ac_prog"
9853 # If it fails, then pretend we aren't using GCC.
9857 # If it is relative, then search for the first ld in PATH.
9861 elif test "$with_gnu_ld" = yes; then
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9863 $as_echo_n "checking for GNU ld... " >&6; }
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9866 $as_echo_n "checking for non-GNU ld... " >&6; }
9868 if test "${acl_cv_path_LD+set}" = set; then :
9869 $as_echo_n "(cached) " >&6
9871 if test -z "$LD"; then
9872 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9873 for ac_dir
in $PATH; do
9874 test -z "$ac_dir" && ac_dir
=.
9875 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9876 acl_cv_path_LD
="$ac_dir/$ac_prog"
9877 # Check to see if the program is GNU ld. I'd rather use --version,
9878 # but apparently some GNU ld's only accept -v.
9879 # Break only if it was the GNU/non-GNU ld that we prefer.
9880 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9881 test "$with_gnu_ld" != no
&& break
9883 test "$with_gnu_ld" != yes && break
9889 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9893 LD
="$acl_cv_path_LD"
9894 if test -n "$LD"; then
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9896 $as_echo "$LD" >&6; }
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9899 $as_echo "no" >&6; }
9901 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9903 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9904 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9905 $as_echo_n "(cached) " >&6
9907 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9908 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9909 acl_cv_prog_gnu_ld
=yes
9911 acl_cv_prog_gnu_ld
=no
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9915 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9916 with_gnu_ld
=$acl_cv_prog_gnu_ld
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9921 $as_echo_n "checking for shared library run path origin... " >&6; }
9922 if test "${acl_cv_rpath+set}" = set; then :
9923 $as_echo_n "(cached) " >&6
9926 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9927 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9934 $as_echo "$acl_cv_rpath" >&6; }
9936 libext
="$acl_cv_libext"
9937 shlibext
="$acl_cv_shlibext"
9938 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9939 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9940 hardcode_direct
="$acl_cv_hardcode_direct"
9941 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9942 # Check whether --enable-rpath was given.
9943 if test "${enable_rpath+set}" = set; then :
9944 enableval
=$enable_rpath; :
9960 acl_save_prefix
="$prefix"
9961 prefix
="$acl_final_prefix"
9962 acl_save_exec_prefix
="$exec_prefix"
9963 exec_prefix
="$acl_final_exec_prefix"
9965 eval additional_includedir
=\"$includedir\"
9966 eval additional_libdir
=\"$libdir\"
9968 exec_prefix
="$acl_save_exec_prefix"
9969 prefix
="$acl_save_prefix"
9972 # Check whether --with-libexpat-prefix was given.
9973 if test "${with_libexpat_prefix+set}" = set; then :
9974 withval
=$with_libexpat_prefix;
9975 if test "X$withval" = "Xno"; then
9978 if test "X$withval" = "X"; then
9980 acl_save_prefix
="$prefix"
9981 prefix
="$acl_final_prefix"
9982 acl_save_exec_prefix
="$exec_prefix"
9983 exec_prefix
="$acl_final_exec_prefix"
9985 eval additional_includedir
=\"$includedir\"
9986 eval additional_libdir
=\"$libdir\"
9988 exec_prefix
="$acl_save_exec_prefix"
9989 prefix
="$acl_save_prefix"
9992 additional_includedir
="$withval/include"
9993 additional_libdir
="$withval/lib"
10004 names_already_handled
=
10005 names_next_round
='expat '
10006 while test -n "$names_next_round"; do
10007 names_this_round
="$names_next_round"
10009 for name
in $names_this_round; do
10011 for n
in $names_already_handled; do
10012 if test "$n" = "$name"; then
10013 already_handled
=yes
10017 if test -z "$already_handled"; then
10018 names_already_handled
="$names_already_handled $name"
10019 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10020 eval value
=\"\
$HAVE_LIB$uppername\"
10021 if test -n "$value"; then
10022 if test "$value" = yes; then
10023 eval value
=\"\
$LIB$uppername\"
10024 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
10025 eval value
=\"\
$LTLIB$uppername\"
10026 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10035 if test $use_additional = yes; then
10036 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10037 found_dir
="$additional_libdir"
10038 found_so
="$additional_libdir/lib$name.$shlibext"
10039 if test -f "$additional_libdir/lib$name.la"; then
10040 found_la
="$additional_libdir/lib$name.la"
10043 if test -f "$additional_libdir/lib$name.$libext"; then
10044 found_dir
="$additional_libdir"
10045 found_a
="$additional_libdir/lib$name.$libext"
10046 if test -f "$additional_libdir/lib$name.la"; then
10047 found_la
="$additional_libdir/lib$name.la"
10052 if test "X$found_dir" = "X"; then
10053 for x
in $LDFLAGS $LTLIBEXPAT; do
10055 acl_save_prefix
="$prefix"
10056 prefix
="$acl_final_prefix"
10057 acl_save_exec_prefix
="$exec_prefix"
10058 exec_prefix
="$acl_final_exec_prefix"
10060 exec_prefix
="$acl_save_exec_prefix"
10061 prefix
="$acl_save_prefix"
10065 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10066 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10068 found_so
="$dir/lib$name.$shlibext"
10069 if test -f "$dir/lib$name.la"; then
10070 found_la
="$dir/lib$name.la"
10073 if test -f "$dir/lib$name.$libext"; then
10075 found_a
="$dir/lib$name.$libext"
10076 if test -f "$dir/lib$name.la"; then
10077 found_la
="$dir/lib$name.la"
10083 if test "X$found_dir" != "X"; then
10088 if test "X$found_dir" != "X"; then
10089 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10090 if test "X$found_so" != "X"; then
10091 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10092 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10095 for x
in $ltrpathdirs; do
10096 if test "X$x" = "X$found_dir"; then
10101 if test -z "$haveit"; then
10102 ltrpathdirs
="$ltrpathdirs $found_dir"
10104 if test "$hardcode_direct" = yes; then
10105 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10107 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10108 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10110 for x
in $rpathdirs; do
10111 if test "X$x" = "X$found_dir"; then
10116 if test -z "$haveit"; then
10117 rpathdirs
="$rpathdirs $found_dir"
10121 for x
in $LDFLAGS $LIBEXPAT; do
10123 acl_save_prefix
="$prefix"
10124 prefix
="$acl_final_prefix"
10125 acl_save_exec_prefix
="$exec_prefix"
10126 exec_prefix
="$acl_final_exec_prefix"
10128 exec_prefix
="$acl_save_exec_prefix"
10129 prefix
="$acl_save_prefix"
10131 if test "X$x" = "X-L$found_dir"; then
10136 if test -z "$haveit"; then
10137 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10139 if test "$hardcode_minus_L" != no
; then
10140 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10142 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10148 if test "X$found_a" != "X"; then
10149 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10151 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10154 additional_includedir
=
10155 case "$found_dir" in
10157 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10158 additional_includedir
="$basedir/include"
10161 if test "X$additional_includedir" != "X"; then
10162 if test "X$additional_includedir" != "X/usr/include"; then
10164 if test "X$additional_includedir" = "X/usr/local/include"; then
10165 if test -n "$GCC"; then
10167 linux
*) haveit
=yes;;
10171 if test -z "$haveit"; then
10172 for x
in $CPPFLAGS $INCEXPAT; do
10174 acl_save_prefix
="$prefix"
10175 prefix
="$acl_final_prefix"
10176 acl_save_exec_prefix
="$exec_prefix"
10177 exec_prefix
="$acl_final_exec_prefix"
10179 exec_prefix
="$acl_save_exec_prefix"
10180 prefix
="$acl_save_prefix"
10182 if test "X$x" = "X-I$additional_includedir"; then
10187 if test -z "$haveit"; then
10188 if test -d "$additional_includedir"; then
10189 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10195 if test -n "$found_la"; then
10196 save_libdir
="$libdir"
10197 case "$found_la" in
10198 */* |
*\\*) .
"$found_la" ;;
10199 *) .
"./$found_la" ;;
10201 libdir
="$save_libdir"
10202 for dep
in $dependency_libs; do
10205 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10206 if test "X$additional_libdir" != "X/usr/lib"; then
10208 if test "X$additional_libdir" = "X/usr/local/lib"; then
10209 if test -n "$GCC"; then
10211 linux
*) haveit
=yes;;
10215 if test -z "$haveit"; then
10217 for x
in $LDFLAGS $LIBEXPAT; do
10219 acl_save_prefix
="$prefix"
10220 prefix
="$acl_final_prefix"
10221 acl_save_exec_prefix
="$exec_prefix"
10222 exec_prefix
="$acl_final_exec_prefix"
10224 exec_prefix
="$acl_save_exec_prefix"
10225 prefix
="$acl_save_prefix"
10227 if test "X$x" = "X-L$additional_libdir"; then
10232 if test -z "$haveit"; then
10233 if test -d "$additional_libdir"; then
10234 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
10238 for x
in $LDFLAGS $LTLIBEXPAT; do
10240 acl_save_prefix
="$prefix"
10241 prefix
="$acl_final_prefix"
10242 acl_save_exec_prefix
="$exec_prefix"
10243 exec_prefix
="$acl_final_exec_prefix"
10245 exec_prefix
="$acl_save_exec_prefix"
10246 prefix
="$acl_save_prefix"
10248 if test "X$x" = "X-L$additional_libdir"; then
10253 if test -z "$haveit"; then
10254 if test -d "$additional_libdir"; then
10255 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10262 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10263 if test "$enable_rpath" != no
; then
10265 for x
in $rpathdirs; do
10266 if test "X$x" = "X$dir"; then
10271 if test -z "$haveit"; then
10272 rpathdirs
="$rpathdirs $dir"
10275 for x
in $ltrpathdirs; do
10276 if test "X$x" = "X$dir"; then
10281 if test -z "$haveit"; then
10282 ltrpathdirs
="$ltrpathdirs $dir"
10287 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10290 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10293 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10294 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10300 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10301 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10307 if test "X$rpathdirs" != "X"; then
10308 if test -n "$hardcode_libdir_separator"; then
10310 for found_dir
in $rpathdirs; do
10311 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10313 acl_save_libdir
="$libdir"
10315 eval flag
=\"$hardcode_libdir_flag_spec\"
10316 libdir
="$acl_save_libdir"
10317 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10319 for found_dir
in $rpathdirs; do
10320 acl_save_libdir
="$libdir"
10321 libdir
="$found_dir"
10322 eval flag
=\"$hardcode_libdir_flag_spec\"
10323 libdir
="$acl_save_libdir"
10324 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10328 if test "X$ltrpathdirs" != "X"; then
10329 for found_dir
in $ltrpathdirs; do
10330 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10335 ac_save_CPPFLAGS
="$CPPFLAGS"
10337 for element
in $INCEXPAT; do
10339 for x
in $CPPFLAGS; do
10341 acl_save_prefix
="$prefix"
10342 prefix
="$acl_final_prefix"
10343 acl_save_exec_prefix
="$exec_prefix"
10344 exec_prefix
="$acl_final_exec_prefix"
10346 exec_prefix
="$acl_save_exec_prefix"
10347 prefix
="$acl_save_prefix"
10349 if test "X$x" = "X$element"; then
10354 if test -z "$haveit"; then
10355 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
10361 $as_echo_n "checking for libexpat... " >&6; }
10362 if test "${ac_cv_libexpat+set}" = set; then :
10363 $as_echo_n "(cached) " >&6
10366 ac_save_LIBS
="$LIBS"
10367 LIBS
="$LIBS $LIBEXPAT"
10368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10369 /* end confdefs.h. */
10374 XML_Parser p = XML_ParserCreate (0);
10379 if ac_fn_c_try_link
"$LINENO"; then :
10384 rm -f core conftest.err conftest.
$ac_objext \
10385 conftest
$ac_exeext conftest.
$ac_ext
10386 LIBS
="$ac_save_LIBS"
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
10390 $as_echo "$ac_cv_libexpat" >&6; }
10391 if test "$ac_cv_libexpat" = yes; then
10394 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
10397 $as_echo_n "checking how to link with libexpat... " >&6; }
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
10399 $as_echo "$LIBEXPAT" >&6; }
10402 CPPFLAGS
="$ac_save_CPPFLAGS"
10412 if test "$HAVE_LIBEXPAT" != yes; then
10413 if test "$with_expat" = yes; then
10414 as_fn_error
"expat is missing or unusable" "$LINENO" 5
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
10417 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
10421 LIBS
="$LIBS $LIBEXPAT"
10422 for ac_func
in XML_StopParser
10424 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
10425 if test "x$ac_cv_func_XML_StopParser" = x
""yes; then :
10426 cat >>confdefs.h
<<_ACEOF
10427 #define HAVE_XML_STOPPARSER 1
10442 # Check whether --with-python was given.
10443 if test "${with_python+set}" = set; then :
10444 withval
=$with_python;
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10450 $as_echo_n "checking whether to use python... " >&6; }
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10452 $as_echo "$with_python" >&6; }
10454 if test "${with_python}" = no
; then
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10456 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10459 case "${with_python}" in
10461 if test -d ${with_python}; then
10462 # Assume the python binary is ${with_python}/bin/python.
10463 python_prog
="${with_python}/bin/python"
10465 if test ! -x ${python_prog}; then
10466 # Fall back to gdb 7.0/7.1 behaviour.
10467 python_prog
=missing
10468 python_prefix
=${with_python}
10470 elif test -x ${with_python}; then
10471 # While we can't run python compiled for $host (unless host == build),
10472 # the user could write a script that provides the needed information,
10473 # so we support that.
10474 python_prog
=${with_python}
10477 as_fn_error
"invalid value for --with-python" "$LINENO" 5
10481 # Disallow --with-python=foo/bar.
10482 as_fn_error
"invalid value for --with-python" "$LINENO" 5
10485 # The user has either specified auto, yes, or the name of the python
10486 # program assumed to be in $PATH.
10488 case "${with_python}" in
10490 if test ${build} = ${host}; then
10491 # Extract the first word of "python", so it can be a program name with args.
10492 set dummy python
; ac_word
=$2
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10494 $as_echo_n "checking for $ac_word... " >&6; }
10495 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10496 $as_echo_n "(cached) " >&6
10498 case $python_prog_path in
10500 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10503 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10504 for as_dir
in $PATH
10507 test -z "$as_dir" && as_dir
=.
10508 for ac_exec_ext
in '' $ac_executable_extensions; do
10509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10510 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10518 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10522 python_prog_path
=$ac_cv_path_python_prog_path
10523 if test -n "$python_prog_path"; then
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10525 $as_echo "$python_prog_path" >&6; }
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10528 $as_echo "no" >&6; }
10532 if test "${python_prog_path}" = missing
; then
10533 python_prog
=missing
10535 python_prog
=${python_prog_path}
10538 # Not much we can do except assume the cross-compiler will find the
10540 python_prog
=missing
10544 # While we can't run python compiled for $host (unless host == build),
10545 # the user could write a script that provides the needed information,
10546 # so we support that.
10547 python_prog
="${with_python}"
10548 # Extract the first word of "${python_prog}", so it can be a program name with args.
10549 set dummy
${python_prog}; ac_word
=$2
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10551 $as_echo_n "checking for $ac_word... " >&6; }
10552 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10553 $as_echo_n "(cached) " >&6
10555 case $python_prog_path in
10557 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10560 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10561 for as_dir
in $PATH
10564 test -z "$as_dir" && as_dir
=.
10565 for ac_exec_ext
in '' $ac_executable_extensions; do
10566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10567 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10575 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10579 python_prog_path
=$ac_cv_path_python_prog_path
10580 if test -n "$python_prog_path"; then
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10582 $as_echo "$python_prog_path" >&6; }
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10585 $as_echo "no" >&6; }
10589 if test "${python_prog_path}" = missing
; then
10590 as_fn_error
"unable to find python program ${python_prog}" "$LINENO" 5
10596 if test "${python_prog}" != missing
; then
10597 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
10598 if test $?
!= 0; then
10599 as_fn_error
"failure running python-config --includes" "$LINENO" 5
10601 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10602 if test $?
!= 0; then
10603 as_fn_error
"failure running python-config --ldflags" "$LINENO" 5
10605 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10606 if test $?
!= 0; then
10607 as_fn_error
"failure running python-config --exec-prefix" "$LINENO" 5
10609 have_python_config
=yes
10611 # Fall back to gdb 7.0/7.1 behaviour.
10612 if test -z ${python_prefix}; then
10616 python_includes
="-I${python_prefix}/include"
10617 python_libs
="-L${python_prefix}/lib"
10619 have_python_config
=no
10622 # Having "/pythonX.Y" in the include path is awkward.
10623 # All those python headers get bubbled up to the top inviting lots
10624 # of random collisions. GDB originally didn't use python-config to
10625 # find the compilation parameters and includes "pythonX.Y/" in the
10626 # path of the, umm, include file. So strip away this part of the
10627 # output of python-config --includes.
10628 python_includes
=`echo "${python_includes} " \
10629 | sed -e 's,/python[0-9]*[.][0-9]* , ,g'`
10631 # If we have python-config, only try the configuration it provides.
10632 # Otherwise fallback on the old way of trying different versions of
10636 if test "${have_python_config}" = yes; then
10637 python_version
=`echo " ${python_libs} " \
10638 | sed -e 's,^.* -l\(python[0-9]*[.][0-9]*\) .*$,\1,'`
10639 case "${python_version}" in
10642 version
=${python_version}
10644 new_CPPFLAGS
=${python_includes}
10645 new_LIBS
=${python_libs}
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10647 $as_echo_n "checking for ${version}... " >&6; }
10648 save_CPPFLAGS
=$CPPFLAGS
10650 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10651 LIBS
="$LIBS $new_LIBS"
10652 found_usable_python
=no
10653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10654 /* end confdefs.h. */
10655 #include "${version}/Python.h"
10664 if ac_fn_c_try_link
"$LINENO"; then :
10665 have_libpython
=${version}
10666 found_usable_python
=yes
10668 CPPFLAGS
=$save_CPPFLAGS
10671 rm -f core conftest.err conftest.
$ac_objext \
10672 conftest
$ac_exeext conftest.
$ac_ext
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10674 $as_echo "${found_usable_python}" >&6; }
10678 as_fn_error
"unable to determine python version from ${python_libs}" "$LINENO" 5
10682 if test "${have_libpython}" = no
; then
10686 new_CPPFLAGS
=${python_includes}
10687 new_LIBS
="${python_libs} -lpython2.6"
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10689 $as_echo_n "checking for ${version}... " >&6; }
10690 save_CPPFLAGS
=$CPPFLAGS
10692 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10693 LIBS
="$LIBS $new_LIBS"
10694 found_usable_python
=no
10695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10696 /* end confdefs.h. */
10697 #include "${version}/Python.h"
10706 if ac_fn_c_try_link
"$LINENO"; then :
10707 have_libpython
=${version}
10708 found_usable_python
=yes
10710 CPPFLAGS
=$save_CPPFLAGS
10713 rm -f core conftest.err conftest.
$ac_objext \
10714 conftest
$ac_exeext conftest.
$ac_ext
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10716 $as_echo "${found_usable_python}" >&6; }
10719 if test ${have_libpython} = no
; then
10723 new_CPPFLAGS
=${python_includes}
10724 new_LIBS
="${python_libs} -lpython2.5"
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10726 $as_echo_n "checking for ${version}... " >&6; }
10727 save_CPPFLAGS
=$CPPFLAGS
10729 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10730 LIBS
="$LIBS $new_LIBS"
10731 found_usable_python
=no
10732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10733 /* end confdefs.h. */
10734 #include "${version}/Python.h"
10743 if ac_fn_c_try_link
"$LINENO"; then :
10744 have_libpython
=${version}
10745 found_usable_python
=yes
10747 CPPFLAGS
=$save_CPPFLAGS
10750 rm -f core conftest.err conftest.
$ac_objext \
10751 conftest
$ac_exeext conftest.
$ac_ext
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10753 $as_echo "${found_usable_python}" >&6; }
10756 if test ${have_libpython} = no
; then
10760 new_CPPFLAGS
=${python_includes}
10761 new_LIBS
="${python_libs} -lpython2.4"
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10763 $as_echo_n "checking for ${version}... " >&6; }
10764 save_CPPFLAGS
=$CPPFLAGS
10766 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10767 LIBS
="$LIBS $new_LIBS"
10768 found_usable_python
=no
10769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10770 /* end confdefs.h. */
10771 #include "${version}/Python.h"
10780 if ac_fn_c_try_link
"$LINENO"; then :
10781 have_libpython
=${version}
10782 found_usable_python
=yes
10784 CPPFLAGS
=$save_CPPFLAGS
10787 rm -f core conftest.err conftest.
$ac_objext \
10788 conftest
$ac_exeext conftest.
$ac_ext
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10790 $as_echo "${found_usable_python}" >&6; }
10794 if test "${have_libpython}" = python2.6
; then
10796 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
10798 elif test "${have_libpython}" = python2.5
; then
10800 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
10802 elif test "${have_libpython}" = python2.4
; then
10804 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
10808 if test "${have_libpython}" = no
; then
10809 case "${with_python}" in
10811 as_fn_error
"python is missing or unusable" "$LINENO" 5
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10815 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10818 as_fn_error
"no usable python found at ${with_python}" "$LINENO" 5
10822 if test -n "${python_prefix}"; then
10824 cat >>confdefs.h
<<_ACEOF
10825 #define WITH_PYTHON_PATH "${python_prefix}"
10829 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
10830 if test "x$prefix" = xNONE
; then
10831 test_prefix
=/usr
/local
10833 test_prefix
=$prefix
10836 test_prefix
=$exec_prefix
10839 case ${python_prefix} in
10840 "${test_prefix}"|
"${test_prefix}/"*|\
10841 '${exec_prefix}'|
'${exec_prefix}/'*)
10846 cat >>confdefs.h
<<_ACEOF
10847 #define PYTHON_PATH_RELOCATABLE $value
10855 if test "${have_libpython}" != no
; then
10857 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10859 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10860 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10861 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
10862 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
10864 # Flags needed to compile Python code (taken from python-config --cflags).
10865 # We cannot call python-config directly because it will output whatever was
10866 # used when compiling the Python interpreter itself, including flags which
10867 # would make the python-related objects be compiled differently from the
10868 # rest of GDB (e.g., -O2 and -fPIC).
10869 if test "${GCC}" = yes; then
10870 tentative_python_cflags
="-fno-strict-aliasing -DNDEBUG -fwrapv"
10873 if test "x${tentative_python_cflags}" != x
; then
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10875 $as_echo_n "checking compiler flags for python code... " >&6; }
10876 for flag
in ${tentative_python_cflags}; do
10877 # Check that the compiler accepts it
10878 saved_CFLAGS
="$CFLAGS"
10879 CFLAGS
="$CFLAGS $flag"
10880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10881 /* end confdefs.h. */
10891 if ac_fn_c_try_compile
"$LINENO"; then :
10892 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
10894 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10895 CFLAGS
="$saved_CFLAGS"
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
10898 $as_echo "${PYTHON_CFLAGS}" >&6; }
10901 # Even if Python support is not compiled in, we need to have these files
10903 CONFIG_OBS
="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
10904 CONFIG_SRCS
="$CONFIG_SRCS python/python.c python/py-value.c \
10905 python/py-prettyprint.c python/py-auto-load.c"
10909 # ------------------------- #
10910 # Checks for header files. #
10911 # ------------------------- #
10913 ac_header_dirent
=no
10914 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
10915 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10917 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10918 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
10919 $as_echo_n "(cached) " >&6
10921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10922 /* end confdefs.h. */
10923 #include <sys/types.h>
10935 if ac_fn_c_try_compile
"$LINENO"; then :
10936 eval "$as_ac_Header=yes"
10938 eval "$as_ac_Header=no"
10940 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10942 eval ac_res
=\$
$as_ac_Header
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10944 $as_echo "$ac_res" >&6; }
10945 eval as_val
=\$
$as_ac_Header
10946 if test "x$as_val" = x
""yes; then :
10947 cat >>confdefs.h
<<_ACEOF
10948 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10951 ac_header_dirent
=$ac_hdr; break
10955 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10956 if test $ac_header_dirent = dirent.h
; then
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10958 $as_echo_n "checking for library containing opendir... " >&6; }
10959 if test "${ac_cv_search_opendir+set}" = set; then :
10960 $as_echo_n "(cached) " >&6
10962 ac_func_search_save_LIBS
=$LIBS
10963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10964 /* end confdefs.h. */
10966 /* Override any GCC internal prototype to avoid an error.
10967 Use char because int might match the return type of a GCC
10968 builtin and then its argument prototype would still apply. */
10981 for ac_lib
in '' dir
; do
10982 if test -z "$ac_lib"; then
10983 ac_res
="none required"
10986 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10988 if ac_fn_c_try_link
"$LINENO"; then :
10989 ac_cv_search_opendir
=$ac_res
10991 rm -f core conftest.err conftest.
$ac_objext \
10993 if test "${ac_cv_search_opendir+set}" = set; then :
10997 if test "${ac_cv_search_opendir+set}" = set; then :
11000 ac_cv_search_opendir
=no
11002 rm conftest.
$ac_ext
11003 LIBS
=$ac_func_search_save_LIBS
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11006 $as_echo "$ac_cv_search_opendir" >&6; }
11007 ac_res
=$ac_cv_search_opendir
11008 if test "$ac_res" != no
; then :
11009 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11015 $as_echo_n "checking for library containing opendir... " >&6; }
11016 if test "${ac_cv_search_opendir+set}" = set; then :
11017 $as_echo_n "(cached) " >&6
11019 ac_func_search_save_LIBS
=$LIBS
11020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11021 /* end confdefs.h. */
11023 /* Override any GCC internal prototype to avoid an error.
11024 Use char because int might match the return type of a GCC
11025 builtin and then its argument prototype would still apply. */
11038 for ac_lib
in '' x
; do
11039 if test -z "$ac_lib"; then
11040 ac_res
="none required"
11043 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11045 if ac_fn_c_try_link
"$LINENO"; then :
11046 ac_cv_search_opendir
=$ac_res
11048 rm -f core conftest.err conftest.
$ac_objext \
11050 if test "${ac_cv_search_opendir+set}" = set; then :
11054 if test "${ac_cv_search_opendir+set}" = set; then :
11057 ac_cv_search_opendir
=no
11059 rm conftest.
$ac_ext
11060 LIBS
=$ac_func_search_save_LIBS
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11063 $as_echo "$ac_cv_search_opendir" >&6; }
11064 ac_res
=$ac_cv_search_opendir
11065 if test "$ac_res" != no
; then :
11066 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11073 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11074 if test "${ac_cv_header_stat_broken+set}" = set; then :
11075 $as_echo_n "(cached) " >&6
11077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11078 /* end confdefs.h. */
11079 #include <sys/types.h>
11080 #include <sys/stat.h>
11082 #if defined S_ISBLK && defined S_IFDIR
11083 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11086 #if defined S_ISBLK && defined S_IFCHR
11087 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11090 #if defined S_ISLNK && defined S_IFREG
11091 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11094 #if defined S_ISSOCK && defined S_IFREG
11095 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11099 if ac_fn_c_try_compile
"$LINENO"; then :
11100 ac_cv_header_stat_broken
=no
11102 ac_cv_header_stat_broken
=yes
11104 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11107 $as_echo "$ac_cv_header_stat_broken" >&6; }
11108 if test $ac_cv_header_stat_broken = yes; then
11110 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11115 $as_echo_n "checking for ANSI C header files... " >&6; }
11116 if test "${ac_cv_header_stdc+set}" = set; then :
11117 $as_echo_n "(cached) " >&6
11119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11120 /* end confdefs.h. */
11121 #include <stdlib.h>
11122 #include <stdarg.h>
11123 #include <string.h>
11134 if ac_fn_c_try_compile
"$LINENO"; then :
11135 ac_cv_header_stdc
=yes
11137 ac_cv_header_stdc
=no
11139 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11141 if test $ac_cv_header_stdc = yes; then
11142 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11144 /* end confdefs.h. */
11145 #include <string.h>
11148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11149 $EGREP "memchr" >/dev
/null
2>&1; then :
11152 ac_cv_header_stdc
=no
11158 if test $ac_cv_header_stdc = yes; then
11159 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11161 /* end confdefs.h. */
11162 #include <stdlib.h>
11165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11166 $EGREP "free" >/dev
/null
2>&1; then :
11169 ac_cv_header_stdc
=no
11175 if test $ac_cv_header_stdc = yes; then
11176 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11177 if test "$cross_compiling" = yes; then :
11180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11181 /* end confdefs.h. */
11183 #include <stdlib.h>
11184 #if ((' ' & 0x0FF) == 0x020)
11185 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11186 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11188 # define ISLOWER(c) \
11189 (('a' <= (c) && (c) <= 'i') \
11190 || ('j' <= (c) && (c) <= 'r') \
11191 || ('s' <= (c) && (c) <= 'z'))
11192 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11195 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11200 for (i = 0; i < 256; i++)
11201 if (XOR (islower (i), ISLOWER (i))
11202 || toupper (i) != TOUPPER (i))
11207 if ac_fn_c_try_run
"$LINENO"; then :
11210 ac_cv_header_stdc
=no
11212 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11213 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11219 $as_echo "$ac_cv_header_stdc" >&6; }
11220 if test $ac_cv_header_stdc = yes; then
11222 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11226 # elf_hp.h is for HP/UX 64-bit shared library support.
11227 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
11228 # unconditionally, so what's the point in checking these?
11229 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
11230 thread_db.h gnu
/libc-version.h signal.h stddef.h \
11231 stdlib.h string.h memory.h
strings.h sys
/fault.h \
11232 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
11233 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
11234 sys
/reg.h sys
/debugreg.h sys
/select.h sys
/syscall.h \
11235 sys
/types.h sys
/wait.h
wait.h termios.h termio.h \
11236 sgtty.h unistd.h elf_hp.h ctype.h
time.h locale.h
11238 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11239 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11240 eval as_val
=\$
$as_ac_Header
11241 if test "x$as_val" = x
""yes; then :
11242 cat >>confdefs.h
<<_ACEOF
11243 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11250 for ac_header
in link.h
11252 ac_fn_c_check_header_compile
"$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
11253 # include <sys/types.h>
11256 # include <nlist.h>
11260 if test "x$ac_cv_header_link_h" = x
""yes; then :
11261 cat >>confdefs.h
<<_ACEOF
11262 #define HAVE_LINK_H 1
11269 for ac_header
in sys
/proc.h
11271 ac_fn_c_check_header_compile
"$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
11272 # include <sys/param.h>
11276 if test "x$ac_cv_header_sys_proc_h" = x
""yes; then :
11277 cat >>confdefs.h
<<_ACEOF
11278 #define HAVE_SYS_PROC_H 1
11285 for ac_header
in sys
/user.h
11287 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
11288 # include <sys/param.h>
11292 if test "x$ac_cv_header_sys_user_h" = x
""yes; then :
11293 cat >>confdefs.h
<<_ACEOF
11294 #define HAVE_SYS_USER_H 1
11302 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
11303 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
11304 # think that we don't have <curses.h> if we're using GCC.
11307 if test "$GCC" = yes; then
11309 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
11313 for ac_header
in curses.h cursesX.h ncurses.h ncurses
/ncurses.h ncurses
/term.h
11315 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11316 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11317 eval as_val
=\$
$as_ac_Header
11318 if test "x$as_val" = x
""yes; then :
11319 cat >>confdefs.h
<<_ACEOF
11320 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11327 for ac_header
in term.h
11329 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
11330 # include <curses.h>
11334 if test "x$ac_cv_header_term_h" = x
""yes; then :
11335 cat >>confdefs.h
<<_ACEOF
11336 #define HAVE_TERM_H 1
11344 # ------------------------- #
11345 # Checks for declarations. #
11346 # ------------------------- #
11348 ac_fn_c_check_decl
"$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
11349 if test "x$ac_cv_have_decl_free" = x
""yes; then :
11355 cat >>confdefs.h
<<_ACEOF
11356 #define HAVE_DECL_FREE $ac_have_decl
11358 ac_fn_c_check_decl
"$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
11359 if test "x$ac_cv_have_decl_malloc" = x
""yes; then :
11365 cat >>confdefs.h
<<_ACEOF
11366 #define HAVE_DECL_MALLOC $ac_have_decl
11368 ac_fn_c_check_decl
"$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
11369 if test "x$ac_cv_have_decl_realloc" = x
""yes; then :
11375 cat >>confdefs.h
<<_ACEOF
11376 #define HAVE_DECL_REALLOC $ac_have_decl
11378 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
11379 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
11385 cat >>confdefs.h
<<_ACEOF
11386 #define HAVE_DECL_STRERROR $ac_have_decl
11388 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
11389 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
11395 cat >>confdefs.h
<<_ACEOF
11396 #define HAVE_DECL_STRSTR $ac_have_decl
11398 ac_fn_c_check_decl
"$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
11399 if test "x$ac_cv_have_decl_getopt" = x
""yes; then :
11405 cat >>confdefs.h
<<_ACEOF
11406 #define HAVE_DECL_GETOPT $ac_have_decl
11408 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11409 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
11415 cat >>confdefs.h
<<_ACEOF
11416 #define HAVE_DECL_SNPRINTF $ac_have_decl
11418 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
11419 if test "x$ac_cv_have_decl_vsnprintf" = x
""yes; then :
11425 cat >>confdefs.h
<<_ACEOF
11426 #define HAVE_DECL_VSNPRINTF $ac_have_decl
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11431 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11432 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
11433 $as_echo_n "(cached) " >&6
11435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11436 /* end confdefs.h. */
11437 #include <locale.h>
11446 if ac_fn_c_try_link
"$LINENO"; then :
11447 am_cv_val_LC_MESSAGES
=yes
11449 am_cv_val_LC_MESSAGES
=no
11451 rm -f core conftest.err conftest.
$ac_objext \
11452 conftest
$ac_exeext conftest.
$ac_ext
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11455 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11456 if test $am_cv_val_LC_MESSAGES = yes; then
11458 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11463 # ----------------------- #
11464 # Checks for structures. #
11465 # ----------------------- #
11467 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
11468 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then :
11470 cat >>confdefs.h
<<_ACEOF
11471 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11476 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
11477 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then :
11479 cat >>confdefs.h
<<_ACEOF
11480 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11487 # ------------------ #
11488 # Checks for types. #
11489 # ------------------ #
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11492 $as_echo_n "checking return type of signal handlers... " >&6; }
11493 if test "${ac_cv_type_signal+set}" = set; then :
11494 $as_echo_n "(cached) " >&6
11496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11497 /* end confdefs.h. */
11498 #include <sys/types.h>
11499 #include <signal.h>
11504 return *(signal (0, 0)) (0) == 1;
11509 if ac_fn_c_try_compile
"$LINENO"; then :
11510 ac_cv_type_signal
=int
11512 ac_cv_type_signal
=void
11514 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11517 $as_echo "$ac_cv_type_signal" >&6; }
11519 cat >>confdefs.h
<<_ACEOF
11520 #define RETSIGTYPE $ac_cv_type_signal
11524 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11525 #include <sys/socket.h>
11528 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
11530 cat >>confdefs.h
<<_ACEOF
11531 #define HAVE_SOCKLEN_T 1
11538 # ------------------------------------- #
11539 # Checks for compiler characteristics. #
11540 # ------------------------------------- #
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11543 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11544 if test "${ac_cv_c_const+set}" = set; then :
11545 $as_echo_n "(cached) " >&6
11547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11548 /* end confdefs.h. */
11553 /* FIXME: Include the comments suggested by Paul. */
11554 #ifndef __cplusplus
11555 /* Ultrix mips cc rejects this. */
11556 typedef int charset[2];
11558 /* SunOS 4.1.1 cc rejects this. */
11559 char const *const *pcpcc;
11561 /* NEC SVR4.0.2 mips cc rejects this. */
11562 struct point {int x, y;};
11563 static struct point const zero = {0,0};
11564 /* AIX XL C 1.02.0.0 rejects this.
11565 It does not let you subtract one const X* pointer from another in
11566 an arm of an if-expression whose if-part is not a constant
11568 const char *g = "string";
11569 pcpcc = &g + (g ? g-g : 0);
11570 /* HPUX 7.0 cc rejects these. */
11572 ppc = (char**) pcpcc;
11573 pcpcc = (char const *const *) ppc;
11574 { /* SCO 3.2v4 cc rejects this. */
11576 char const *s = 0 ? (char *) 0 : (char const *) 0;
11581 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11582 int x[] = {25, 17};
11583 const int *foo = &x[0];
11586 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11587 typedef const int *iptr;
11591 { /* AIX XL C 1.02.0.0 rejects this saying
11592 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11593 struct s { int j; const int *ap[3]; };
11594 struct s *b; b->j = 5;
11596 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11597 const int foo = 10;
11598 if (!foo) return 0;
11600 return !cs[0] && !zero.x;
11607 if ac_fn_c_try_compile
"$LINENO"; then :
11612 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11615 $as_echo "$ac_cv_c_const" >&6; }
11616 if test $ac_cv_c_const = no
; then
11618 $as_echo "#define const /**/" >>confdefs.h
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11623 $as_echo_n "checking for inline... " >&6; }
11624 if test "${ac_cv_c_inline+set}" = set; then :
11625 $as_echo_n "(cached) " >&6
11628 for ac_kw
in inline __inline__ __inline
; do
11629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11630 /* end confdefs.h. */
11631 #ifndef __cplusplus
11633 static $ac_kw foo_t static_foo () {return 0; }
11634 $ac_kw foo_t foo () {return 0; }
11638 if ac_fn_c_try_compile
"$LINENO"; then :
11639 ac_cv_c_inline
=$ac_kw
11641 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11642 test "$ac_cv_c_inline" != no
&& break
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11647 $as_echo "$ac_cv_c_inline" >&6; }
11649 case $ac_cv_c_inline in
11652 case $ac_cv_c_inline in
11654 *) ac_val
=$ac_cv_c_inline;;
11656 cat >>confdefs.h
<<_ACEOF
11657 #ifndef __cplusplus
11658 #define inline $ac_val
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11665 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11666 if test "${ac_cv_c_bigendian+set}" = set; then :
11667 $as_echo_n "(cached) " >&6
11669 ac_cv_c_bigendian
=unknown
11670 # See if we're dealing with a universal compiler.
11671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11672 /* end confdefs.h. */
11673 #ifndef __APPLE_CC__
11674 not a universal capable compiler
11679 if ac_fn_c_try_compile
"$LINENO"; then :
11681 # Check for potential -arch flags. It is not universal unless
11682 # there are at least two -arch flags with different values.
11685 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11686 if test -n "$ac_prev"; then
11688 i?
86 | x86_64 | ppc | ppc64
)
11689 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
11692 ac_cv_c_bigendian
=universal
11698 elif test "x$ac_word" = "x-arch"; then
11703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11704 if test $ac_cv_c_bigendian = unknown
; then
11705 # See if sys/param.h defines the BYTE_ORDER macro.
11706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11707 /* end confdefs.h. */
11708 #include <sys/types.h>
11709 #include <sys/param.h>
11714 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11715 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11717 bogus endian macros
11724 if ac_fn_c_try_compile
"$LINENO"; then :
11725 # It does; now see whether it defined to BIG_ENDIAN or not.
11726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11727 /* end confdefs.h. */
11728 #include <sys/types.h>
11729 #include <sys/param.h>
11734 #if BYTE_ORDER != BIG_ENDIAN
11742 if ac_fn_c_try_compile
"$LINENO"; then :
11743 ac_cv_c_bigendian
=yes
11745 ac_cv_c_bigendian
=no
11747 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11749 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11751 if test $ac_cv_c_bigendian = unknown
; then
11752 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11754 /* end confdefs.h. */
11755 #include <limits.h>
11760 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11761 bogus endian macros
11768 if ac_fn_c_try_compile
"$LINENO"; then :
11769 # It does; now see whether it defined to _BIG_ENDIAN or not.
11770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11771 /* end confdefs.h. */
11772 #include <limits.h>
11777 #ifndef _BIG_ENDIAN
11785 if ac_fn_c_try_compile
"$LINENO"; then :
11786 ac_cv_c_bigendian
=yes
11788 ac_cv_c_bigendian
=no
11790 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11794 if test $ac_cv_c_bigendian = unknown
; then
11795 # Compile a test program.
11796 if test "$cross_compiling" = yes; then :
11797 # Try to guess by grepping values from an object file.
11798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11799 /* end confdefs.h. */
11800 short int ascii_mm[] =
11801 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11802 short int ascii_ii[] =
11803 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11804 int use_ascii (int i) {
11805 return ascii_mm[i] + ascii_ii[i];
11807 short int ebcdic_ii[] =
11808 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11809 short int ebcdic_mm[] =
11810 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11811 int use_ebcdic (int i) {
11812 return ebcdic_mm[i] + ebcdic_ii[i];
11819 return use_ascii (foo) == use_ebcdic (foo);
11824 if ac_fn_c_try_compile
"$LINENO"; then :
11825 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
11826 ac_cv_c_bigendian
=yes
11828 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
11829 if test "$ac_cv_c_bigendian" = unknown
; then
11830 ac_cv_c_bigendian
=no
11832 # finding both strings is unlikely to happen, but who knows?
11833 ac_cv_c_bigendian
=unknown
11837 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11840 /* end confdefs.h. */
11841 $ac_includes_default
11846 /* Are we little or big endian? From Harbison&Steele. */
11850 char c[sizeof (long int)];
11853 return u.c[sizeof (long int) - 1] == 1;
11859 if ac_fn_c_try_run
"$LINENO"; then :
11860 ac_cv_c_bigendian
=no
11862 ac_cv_c_bigendian
=yes
11864 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11865 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11871 $as_echo "$ac_cv_c_bigendian" >&6; }
11872 case $ac_cv_c_bigendian in #(
11874 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11880 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11884 as_fn_error
"unknown endianness
11885 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11889 # ------------------------------ #
11890 # Checks for library functions. #
11891 # ------------------------------ #
11893 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11894 # for constant arguments. Useless!
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11896 $as_echo_n "checking for working alloca.h... " >&6; }
11897 if test "${ac_cv_working_alloca_h+set}" = set; then :
11898 $as_echo_n "(cached) " >&6
11900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11901 /* end confdefs.h. */
11902 #include <alloca.h>
11906 char *p = (char *) alloca (2 * sizeof (int));
11912 if ac_fn_c_try_link
"$LINENO"; then :
11913 ac_cv_working_alloca_h
=yes
11915 ac_cv_working_alloca_h
=no
11917 rm -f core conftest.err conftest.
$ac_objext \
11918 conftest
$ac_exeext conftest.
$ac_ext
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11921 $as_echo "$ac_cv_working_alloca_h" >&6; }
11922 if test $ac_cv_working_alloca_h = yes; then
11924 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11929 $as_echo_n "checking for alloca... " >&6; }
11930 if test "${ac_cv_func_alloca_works+set}" = set; then :
11931 $as_echo_n "(cached) " >&6
11933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11934 /* end confdefs.h. */
11936 # define alloca __builtin_alloca
11939 # include <malloc.h>
11940 # define alloca _alloca
11942 # ifdef HAVE_ALLOCA_H
11943 # include <alloca.h>
11948 # ifndef alloca /* predefined by HP cc +Olibcalls */
11959 char *p = (char *) alloca (1);
11965 if ac_fn_c_try_link
"$LINENO"; then :
11966 ac_cv_func_alloca_works
=yes
11968 ac_cv_func_alloca_works
=no
11970 rm -f core conftest.err conftest.
$ac_objext \
11971 conftest
$ac_exeext conftest.
$ac_ext
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11974 $as_echo "$ac_cv_func_alloca_works" >&6; }
11976 if test $ac_cv_func_alloca_works = yes; then
11978 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11981 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11982 # that cause trouble. Some versions do not even contain alloca or
11983 # contain a buggy version. If you still want to use their alloca,
11984 # use ar to extract alloca.o from them instead of compiling alloca.c.
11986 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
11988 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11992 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11993 if test "${ac_cv_os_cray+set}" = set; then :
11994 $as_echo_n "(cached) " >&6
11996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11997 /* end confdefs.h. */
11998 #if defined CRAY && ! defined CRAY2
12005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12006 $EGREP "webecray" >/dev
/null
2>&1; then :
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12015 $as_echo "$ac_cv_os_cray" >&6; }
12016 if test $ac_cv_os_cray = yes; then
12017 for ac_func
in _getb67 GETB67 getb67
; do
12018 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12019 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12020 eval as_val
=\$
$as_ac_var
12021 if test "x$as_val" = x
""yes; then :
12023 cat >>confdefs.h
<<_ACEOF
12024 #define CRAY_STACKSEG_END $ac_func
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12034 $as_echo_n "checking stack direction for C alloca... " >&6; }
12035 if test "${ac_cv_c_stack_direction+set}" = set; then :
12036 $as_echo_n "(cached) " >&6
12038 if test "$cross_compiling" = yes; then :
12039 ac_cv_c_stack_direction
=0
12041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12042 /* end confdefs.h. */
12043 $ac_includes_default
12045 find_stack_direction ()
12047 static char *addr = 0;
12052 return find_stack_direction ();
12055 return (&dummy > addr) ? 1 : -1;
12061 return find_stack_direction () < 0;
12064 if ac_fn_c_try_run
"$LINENO"; then :
12065 ac_cv_c_stack_direction
=1
12067 ac_cv_c_stack_direction
=-1
12069 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12070 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12075 $as_echo "$ac_cv_c_stack_direction" >&6; }
12076 cat >>confdefs.h
<<_ACEOF
12077 #define STACK_DIRECTION $ac_cv_c_stack_direction
12083 for ac_header
in stdlib.h unistd.h
12085 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12086 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12087 eval as_val
=\$
$as_ac_Header
12088 if test "x$as_val" = x
""yes; then :
12089 cat >>confdefs.h
<<_ACEOF
12090 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12097 for ac_func
in getpagesize
12099 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12100 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
12101 cat >>confdefs.h
<<_ACEOF
12102 #define HAVE_GETPAGESIZE 1
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12109 $as_echo_n "checking for working mmap... " >&6; }
12110 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12111 $as_echo_n "(cached) " >&6
12113 if test "$cross_compiling" = yes; then :
12114 ac_cv_func_mmap_fixed_mapped
=no
12116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12117 /* end confdefs.h. */
12118 $ac_includes_default
12119 /* malloc might have been renamed as rpl_malloc. */
12122 /* Thanks to Mike Haertel and Jim Avera for this test.
12123 Here is a matrix of mmap possibilities:
12124 mmap private not fixed
12125 mmap private fixed at somewhere currently unmapped
12126 mmap private fixed at somewhere already mapped
12127 mmap shared not fixed
12128 mmap shared fixed at somewhere currently unmapped
12129 mmap shared fixed at somewhere already mapped
12130 For private mappings, we should verify that changes cannot be read()
12131 back from the file, nor mmap's back from the file at a different
12132 address. (There have been systems where private was not correctly
12133 implemented like the infamous i386 svr4.0, and systems where the
12134 VM page cache was not coherent with the file system buffer cache
12135 like early versions of FreeBSD and possibly contemporary NetBSD.)
12136 For shared mappings, we should conversely verify that changes get
12137 propagated back to all the places they're supposed to be.
12139 Grep wants private fixed already mapped.
12140 The main things grep needs to know about mmap are:
12141 * does it exist and is it safe to write into the mmap'd area
12142 * how to use it (BSD variants) */
12145 #include <sys/mman.h>
12147 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12151 /* This mess was copied from the GNU getpagesize.h. */
12152 #ifndef HAVE_GETPAGESIZE
12153 /* Assume that all systems that can run configure have sys/param.h. */
12154 # ifndef HAVE_SYS_PARAM_H
12155 # define HAVE_SYS_PARAM_H 1
12158 # ifdef _SC_PAGESIZE
12159 # define getpagesize() sysconf(_SC_PAGESIZE)
12160 # else /* no _SC_PAGESIZE */
12161 # ifdef HAVE_SYS_PARAM_H
12162 # include <sys/param.h>
12163 # ifdef EXEC_PAGESIZE
12164 # define getpagesize() EXEC_PAGESIZE
12165 # else /* no EXEC_PAGESIZE */
12167 # define getpagesize() NBPG * CLSIZE
12170 # endif /* no CLSIZE */
12171 # else /* no NBPG */
12173 # define getpagesize() NBPC
12174 # else /* no NBPC */
12176 # define getpagesize() PAGESIZE
12177 # endif /* PAGESIZE */
12178 # endif /* no NBPC */
12179 # endif /* no NBPG */
12180 # endif /* no EXEC_PAGESIZE */
12181 # else /* no HAVE_SYS_PARAM_H */
12182 # define getpagesize() 8192 /* punt totally */
12183 # endif /* no HAVE_SYS_PARAM_H */
12184 # endif /* no _SC_PAGESIZE */
12186 #endif /* no HAVE_GETPAGESIZE */
12191 char *data, *data2, *data3;
12195 pagesize = getpagesize ();
12197 /* First, make a file with some known garbage in it. */
12198 data = (char *) malloc (pagesize);
12201 for (i = 0; i < pagesize; ++i)
12202 *(data + i) = rand ();
12204 fd = creat ("conftest.mmap", 0600);
12207 if (write (fd, data, pagesize) != pagesize)
12211 /* Next, try to mmap the file at a fixed address which already has
12212 something else allocated at it. If we can, also make sure that
12213 we see the same garbage. */
12214 fd = open ("conftest.mmap", O_RDWR);
12217 data2 = (char *) malloc (2 * pagesize);
12220 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12221 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12222 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12224 for (i = 0; i < pagesize; ++i)
12225 if (*(data + i) != *(data2 + i))
12228 /* Finally, make sure that changes to the mapped area do not
12229 percolate back to the file as seen by read(). (This is a bug on
12230 some variants of i386 svr4.0.) */
12231 for (i = 0; i < pagesize; ++i)
12232 *(data2 + i) = *(data2 + i) + 1;
12233 data3 = (char *) malloc (pagesize);
12236 if (read (fd, data3, pagesize) != pagesize)
12238 for (i = 0; i < pagesize; ++i)
12239 if (*(data + i) != *(data3 + i))
12245 if ac_fn_c_try_run
"$LINENO"; then :
12246 ac_cv_func_mmap_fixed_mapped
=yes
12248 ac_cv_func_mmap_fixed_mapped
=no
12250 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12251 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12256 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12257 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12259 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12262 rm -f conftest.mmap
12264 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12265 if test "x$ac_cv_type_pid_t" = x
""yes; then :
12269 cat >>confdefs.h
<<_ACEOF
12275 for ac_header
in vfork.h
12277 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12278 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
12279 cat >>confdefs.h
<<_ACEOF
12280 #define HAVE_VFORK_H 1
12287 for ac_func
in fork vfork
12289 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12290 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12291 eval as_val
=\$
$as_ac_var
12292 if test "x$as_val" = x
""yes; then :
12293 cat >>confdefs.h
<<_ACEOF
12294 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12300 if test "x$ac_cv_func_fork" = xyes
; then
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12302 $as_echo_n "checking for working fork... " >&6; }
12303 if test "${ac_cv_func_fork_works+set}" = set; then :
12304 $as_echo_n "(cached) " >&6
12306 if test "$cross_compiling" = yes; then :
12307 ac_cv_func_fork_works
=cross
12309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12310 /* end confdefs.h. */
12311 $ac_includes_default
12316 /* By Ruediger Kuhlmann. */
12317 return fork () < 0;
12323 if ac_fn_c_try_run
"$LINENO"; then :
12324 ac_cv_func_fork_works
=yes
12326 ac_cv_func_fork_works
=no
12328 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12329 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12334 $as_echo "$ac_cv_func_fork_works" >&6; }
12337 ac_cv_func_fork_works
=$ac_cv_func_fork
12339 if test "x$ac_cv_func_fork_works" = xcross
; then
12341 *-*-amigaos* |
*-*-msdosdjgpp*)
12342 # Override, as these systems have only a dummy fork() stub
12343 ac_cv_func_fork_works
=no
12346 ac_cv_func_fork_works
=yes
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12350 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12352 ac_cv_func_vfork_works
=$ac_cv_func_vfork
12353 if test "x$ac_cv_func_vfork" = xyes
; then
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12355 $as_echo_n "checking for working vfork... " >&6; }
12356 if test "${ac_cv_func_vfork_works+set}" = set; then :
12357 $as_echo_n "(cached) " >&6
12359 if test "$cross_compiling" = yes; then :
12360 ac_cv_func_vfork_works
=cross
12362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12363 /* end confdefs.h. */
12364 /* Thanks to Paul Eggert for this test. */
12365 $ac_includes_default
12366 #include <sys/wait.h>
12367 #ifdef HAVE_VFORK_H
12368 # include <vfork.h>
12370 /* On some sparc systems, changes by the child to local and incoming
12371 argument registers are propagated back to the parent. The compiler
12372 is told about this with #include <vfork.h>, but some compilers
12373 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12374 static variable whose address is put into a register that is
12375 clobbered by the vfork. */
12378 sparc_address_test (int arg)
12380 sparc_address_test (arg) int arg;
12383 static pid_t child;
12401 pid_t parent = getpid ();
12404 sparc_address_test (0);
12409 /* Here is another test for sparc vfork register problems. This
12410 test uses lots of local variables, at least as many local
12411 variables as main has allocated so far including compiler
12412 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12413 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12414 reuse the register of parent for one of the local variables,
12415 since it will think that parent can't possibly be used any more
12416 in this routine. Assigning to the local variable will thus
12417 munge parent in the parent process. */
12419 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12420 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12421 /* Convince the compiler that p..p7 are live; otherwise, it might
12422 use the same hardware register for all 8 local variables. */
12423 if (p != p1 || p != p2 || p != p3 || p != p4
12424 || p != p5 || p != p6 || p != p7)
12427 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12428 from child file descriptors. If the child closes a descriptor
12429 before it execs or exits, this munges the parent's descriptor
12430 as well. Test for this by closing stdout in the child. */
12431 _exit(close(fileno(stdout)) != 0);
12436 while (wait(&status) != child)
12439 /* Was there some problem with vforking? */
12442 /* Did the child fail? (This shouldn't happen.) */
12445 /* Did the vfork/compiler bug occur? */
12446 || parent != getpid()
12448 /* Did the file descriptor bug occur? */
12449 || fstat(fileno(stdout), &st) != 0
12454 if ac_fn_c_try_run
"$LINENO"; then :
12455 ac_cv_func_vfork_works
=yes
12457 ac_cv_func_vfork_works
=no
12459 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12460 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12465 $as_echo "$ac_cv_func_vfork_works" >&6; }
12468 if test "x$ac_cv_func_fork_works" = xcross
; then
12469 ac_cv_func_vfork_works
=$ac_cv_func_vfork
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12471 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12474 if test "x$ac_cv_func_vfork_works" = xyes
; then
12476 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12480 $as_echo "#define vfork fork" >>confdefs.h
12483 if test "x$ac_cv_func_fork_works" = xyes
; then
12485 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12489 for ac_func
in canonicalize_file_name realpath getrusage getuid \
12490 getgid pipe poll pread64 sbrk setpgid setpgrp setsid \
12491 sigaction sigprocmask sigsetmask socketpair syscall \
12492 ttrace wborder setlocale iconvlist libiconvlist btowc \
12493 setrlimit getrlimit posix_madvise
12495 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12496 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12497 eval as_val
=\$
$as_ac_var
12498 if test "x$as_val" = x
""yes; then :
12499 cat >>confdefs.h
<<_ACEOF
12500 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12508 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12509 if test "${am_cv_langinfo_codeset+set}" = set; then :
12510 $as_echo_n "(cached) " >&6
12512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12513 /* end confdefs.h. */
12514 #include <langinfo.h>
12518 char* cs = nl_langinfo(CODESET);
12523 if ac_fn_c_try_link
"$LINENO"; then :
12524 am_cv_langinfo_codeset
=yes
12526 am_cv_langinfo_codeset
=no
12528 rm -f core conftest.err conftest.
$ac_objext \
12529 conftest
$ac_exeext conftest.
$ac_ext
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12533 $as_echo "$am_cv_langinfo_codeset" >&6; }
12534 if test $am_cv_langinfo_codeset = yes; then
12536 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12541 # Check the return and argument types of ptrace. No canned test for
12542 # this, so roll our own.
12543 gdb_ptrace_headers
='
12544 #if HAVE_SYS_TYPES_H
12545 # include <sys/types.h>
12547 #if HAVE_SYS_PTRACE_H
12548 # include <sys/ptrace.h>
12551 # include <unistd.h>
12554 # There is no point in checking if we don't have a prototype.
12555 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
12557 if test "x$ac_cv_have_decl_ptrace" = x
""yes; then :
12563 cat >>confdefs.h
<<_ACEOF
12564 #define HAVE_DECL_PTRACE $ac_have_decl
12566 if test $ac_have_decl = 1; then :
12570 : ${gdb_cv_func_ptrace_ret='int'}
12571 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12575 # Check return type. Varargs (used on GNU/Linux) conflict with the
12576 # empty argument list, so check for that explicitly.
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
12578 $as_echo_n "checking return type of ptrace... " >&6; }
12579 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
12580 $as_echo_n "(cached) " >&6
12582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12583 /* end confdefs.h. */
12584 $gdb_ptrace_headers
12588 extern long ptrace (enum __ptrace_request, ...);
12593 if ac_fn_c_try_compile
"$LINENO"; then :
12594 gdb_cv_func_ptrace_ret
='long'
12596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12597 /* end confdefs.h. */
12598 $gdb_ptrace_headers
12602 extern int ptrace ();
12607 if ac_fn_c_try_compile
"$LINENO"; then :
12608 gdb_cv_func_ptrace_ret
='int'
12610 gdb_cv_func_ptrace_ret
='long'
12612 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12614 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
12617 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
12619 cat >>confdefs.h
<<_ACEOF
12620 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
12623 # Check argument types.
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
12625 $as_echo_n "checking types of arguments for ptrace... " >&6; }
12626 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
12627 $as_echo_n "(cached) " >&6
12630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12631 /* end confdefs.h. */
12632 $gdb_ptrace_headers
12636 extern long ptrace (enum __ptrace_request, ...);
12641 if ac_fn_c_try_compile
"$LINENO"; then :
12642 gdb_cv_func_ptrace_args
='int,int,long,long'
12645 for gdb_arg1
in 'int' 'long'; do
12646 for gdb_arg2
in 'pid_t' 'int' 'long'; do
12647 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
12648 for gdb_arg4
in 'int' 'long'; do
12649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12650 /* end confdefs.h. */
12651 $gdb_ptrace_headers
12656 extern $gdb_cv_func_ptrace_ret
12657 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
12663 if ac_fn_c_try_compile
"$LINENO"; then :
12664 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
12667 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12668 for gdb_arg5
in 'int *' 'int' 'long'; do
12669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12670 /* end confdefs.h. */
12671 $gdb_ptrace_headers
12676 extern $gdb_cv_func_ptrace_ret
12677 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
12683 if ac_fn_c_try_compile
"$LINENO"; then :
12685 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
12688 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12694 # Provide a safe default value.
12695 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12698 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
12701 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
12702 ac_save_IFS
=$IFS; IFS
=','
12703 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
12707 cat >>confdefs.h
<<_ACEOF
12708 #define PTRACE_TYPE_ARG3 $3
12711 if test -n "$5"; then
12713 cat >>confdefs.h
<<_ACEOF
12714 #define PTRACE_TYPE_ARG5 $5
12719 if test "$cross_compiling" = no
; then
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12721 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12722 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12723 $as_echo_n "(cached) " >&6
12725 if test "$cross_compiling" = yes; then :
12726 as_fn_error
"cannot check setpgrp when cross compiling" "$LINENO" 5
12728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12729 /* end confdefs.h. */
12730 $ac_includes_default
12734 /* If this system has a BSD-style setpgrp which takes arguments,
12735 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
12736 exit successfully. */
12737 return setpgrp (1,1) != -1;
12742 if ac_fn_c_try_run
"$LINENO"; then :
12743 ac_cv_func_setpgrp_void
=no
12745 ac_cv_func_setpgrp_void
=yes
12747 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12748 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12753 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12754 if test $ac_cv_func_setpgrp_void = yes; then
12756 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12762 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12763 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12764 $as_echo_n "(cached) " >&6
12766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12767 /* end confdefs.h. */
12769 #include <unistd.h>
12775 if (setpgrp(1,1) == -1)
12784 if ac_fn_c_try_compile
"$LINENO"; then :
12785 ac_cv_func_setpgrp_void
=no
12787 ac_cv_func_setpgrp_void
=yes
12789 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12792 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12793 if test $ac_cv_func_setpgrp_void = yes; then
12794 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12799 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
12800 # since sigsetjmp might only be defined as a macro.
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
12802 $as_echo_n "checking for sigsetjmp... " >&6; }
12803 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
12804 $as_echo_n "(cached) " >&6
12806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12807 /* end confdefs.h. */
12809 #include <setjmp.h>
12814 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
12819 if ac_fn_c_try_compile
"$LINENO"; then :
12820 gdb_cv_func_sigsetjmp
=yes
12822 gdb_cv_func_sigsetjmp
=no
12824 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
12827 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
12828 if test $gdb_cv_func_sigsetjmp = yes; then
12830 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
12834 # Assume we'll default to using the included libiberty regex.
12835 gdb_use_included_regex
=yes
12837 # However, if the system regex is GNU regex, then default to *not*
12838 # using the included regex.
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
12840 $as_echo_n "checking for GNU regex... " >&6; }
12841 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
12842 $as_echo_n "(cached) " >&6
12844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12845 /* end confdefs.h. */
12846 #include <gnu-versions.h>
12850 #define REGEX_INTERFACE_VERSION 1
12851 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
12852 # error "Version mismatch"
12858 if ac_fn_c_try_compile
"$LINENO"; then :
12859 gdb_cv_have_gnu_regex
=yes
12861 gdb_cv_have_gnu_regex
=no
12863 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
12866 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
12867 if test $gdb_cv_have_gnu_regex = yes; then
12868 gdb_use_included_regex
=no
12872 # Check whether --with-included-regex was given.
12873 if test "${with_included_regex+set}" = set; then :
12874 withval
=$with_included_regex; gdb_with_regex
=$withval
12876 gdb_with_regex
=$gdb_use_included_regex
12879 if test "$gdb_with_regex" = yes; then
12881 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
12885 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
12886 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
12887 #include <sys/proc.h>
12890 if test "x$ac_cv_member_struct_thread_td_pcb" = x
""yes; then :
12892 cat >>confdefs.h
<<_ACEOF
12893 #define HAVE_STRUCT_THREAD_TD_PCB 1
12900 # See if <sys/lwp.h> defines `struct lwp`.
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
12902 $as_echo_n "checking for struct lwp... " >&6; }
12903 if test "${gdb_cv_struct_lwp+set}" = set; then :
12904 $as_echo_n "(cached) " >&6
12906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12907 /* end confdefs.h. */
12908 #include <sys/param.h>
12909 #include <sys/lwp.h>
12918 if ac_fn_c_try_compile
"$LINENO"; then :
12919 gdb_cv_struct_lwp
=yes
12921 gdb_cv_struct_lwp
=no
12923 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
12926 $as_echo "$gdb_cv_struct_lwp" >&6; }
12927 if test $gdb_cv_struct_lwp = yes; then
12929 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
12933 # See if <machine/reg.h> degines `struct reg'.
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
12935 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
12936 if test "${gdb_cv_struct_reg+set}" = set; then :
12937 $as_echo_n "(cached) " >&6
12939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12940 /* end confdefs.h. */
12941 #include <sys/types.h>
12942 #include <machine/reg.h>
12951 if ac_fn_c_try_compile
"$LINENO"; then :
12952 gdb_cv_struct_reg
=yes
12954 gdb_cv_struct_reg
=no
12956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
12959 $as_echo "$gdb_cv_struct_reg" >&6; }
12960 if test $gdb_cv_struct_reg = yes; then
12962 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
12966 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
12967 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
12968 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
12970 if test "x$ac_cv_member_struct_reg_r_fs" = x
""yes; then :
12972 cat >>confdefs.h
<<_ACEOF
12973 #define HAVE_STRUCT_REG_R_FS 1
12978 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
12980 if test "x$ac_cv_member_struct_reg_r_gs" = x
""yes; then :
12982 cat >>confdefs.h
<<_ACEOF
12983 #define HAVE_STRUCT_REG_R_GS 1
12990 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
12992 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
12993 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
12994 $as_echo_n "(cached) " >&6
12996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12997 /* end confdefs.h. */
12998 #include <sys/ptrace.h>
13007 if ac_fn_c_try_compile
"$LINENO"; then :
13008 gdb_cv_have_ptrace_getregs
=yes
13010 gdb_cv_have_ptrace_getregs
=no
13012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
13016 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
13017 if test $gdb_cv_have_ptrace_getregs = yes; then
13019 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
13023 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
13025 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
13026 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
13027 $as_echo_n "(cached) " >&6
13029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13030 /* end confdefs.h. */
13031 #include <sys/ptrace.h>
13040 if ac_fn_c_try_compile
"$LINENO"; then :
13041 gdb_cv_have_ptrace_getfpxregs
=yes
13043 gdb_cv_have_ptrace_getfpxregs
=no
13045 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
13049 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
13050 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
13052 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
13056 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
13058 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
13059 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
13060 $as_echo_n "(cached) " >&6
13062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13063 /* end confdefs.h. */
13064 #include <sys/types.h>
13065 #include <sys/ptrace.h>
13074 if ac_fn_c_try_compile
"$LINENO"; then :
13075 gdb_cv_have_pt_getdbregs
=yes
13077 gdb_cv_have_pt_getdbregs
=no
13079 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
13083 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
13084 if test $gdb_cv_have_pt_getdbregs = yes; then
13086 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
13090 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
13092 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
13093 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
13094 $as_echo_n "(cached) " >&6
13096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13097 /* end confdefs.h. */
13098 #include <sys/types.h>
13099 #include <sys/ptrace.h>
13108 if ac_fn_c_try_compile
"$LINENO"; then :
13109 gdb_cv_have_pt_getxmmregs
=yes
13111 gdb_cv_have_pt_getxmmregs
=no
13113 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
13117 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
13118 if test $gdb_cv_have_pt_getxmmregs = yes; then
13120 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
13124 # Detect which type of /proc is in use, such as for Unixware or Solaris.
13126 if test "${target}" = "${host}"; then
13128 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5* |
*-*-interix* )
13130 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13133 *-*-solaris2.
[6789] |
*-*-solaris2.1
[0-9]*)
13135 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13139 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
13141 $as_echo "#define _KMEMUSER 1" >>confdefs.h
13147 if test "$ac_cv_header_sys_procfs_h" = yes; then
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
13149 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
13150 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
13151 $as_echo_n "(cached) " >&6
13153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13154 /* end confdefs.h. */
13157 /* Needed for new procfs interface on sparc-solaris. */
13158 #define _STRUCTURED_PROC 1
13159 #include <sys/procfs.h>
13168 if ac_fn_c_try_compile
"$LINENO"; then :
13169 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
13171 bfd_cv_have_sys_procfs_type_pstatus_t
=no
13174 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13177 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
13179 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
13183 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
13186 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
13187 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
13188 $as_echo_n "(cached) " >&6
13190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13191 /* end confdefs.h. */
13194 /* Needed for new procfs interface on sparc-solaris. */
13195 #define _STRUCTURED_PROC 1
13196 #include <sys/procfs.h>
13205 if ac_fn_c_try_compile
"$LINENO"; then :
13206 bfd_cv_have_sys_procfs_type_prrun_t
=yes
13208 bfd_cv_have_sys_procfs_type_prrun_t
=no
13211 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13214 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
13216 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
13220 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
13223 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
13224 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
13225 $as_echo_n "(cached) " >&6
13227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13228 /* end confdefs.h. */
13231 /* Needed for new procfs interface on sparc-solaris. */
13232 #define _STRUCTURED_PROC 1
13233 #include <sys/procfs.h>
13242 if ac_fn_c_try_compile
"$LINENO"; then :
13243 bfd_cv_have_sys_procfs_type_gregset_t
=yes
13245 bfd_cv_have_sys_procfs_type_gregset_t
=no
13248 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13251 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
13253 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
13257 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
13260 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
13261 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
13262 $as_echo_n "(cached) " >&6
13264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13265 /* end confdefs.h. */
13268 /* Needed for new procfs interface on sparc-solaris. */
13269 #define _STRUCTURED_PROC 1
13270 #include <sys/procfs.h>
13279 if ac_fn_c_try_compile
"$LINENO"; then :
13280 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
13282 bfd_cv_have_sys_procfs_type_fpregset_t
=no
13285 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13288 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
13290 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
13294 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
13297 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
13298 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
13299 $as_echo_n "(cached) " >&6
13301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13302 /* end confdefs.h. */
13305 /* Needed for new procfs interface on sparc-solaris. */
13306 #define _STRUCTURED_PROC 1
13307 #include <sys/procfs.h>
13316 if ac_fn_c_try_compile
"$LINENO"; then :
13317 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
13319 bfd_cv_have_sys_procfs_type_prgregset_t
=no
13322 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13325 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
13327 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
13331 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
13334 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
13335 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
13336 $as_echo_n "(cached) " >&6
13338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13339 /* end confdefs.h. */
13342 /* Needed for new procfs interface on sparc-solaris. */
13343 #define _STRUCTURED_PROC 1
13344 #include <sys/procfs.h>
13353 if ac_fn_c_try_compile
"$LINENO"; then :
13354 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
13356 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
13359 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13362 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13364 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
13368 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
13371 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
13372 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
13373 $as_echo_n "(cached) " >&6
13375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13376 /* end confdefs.h. */
13379 /* Needed for new procfs interface on sparc-solaris. */
13380 #define _STRUCTURED_PROC 1
13381 #include <sys/procfs.h>
13390 if ac_fn_c_try_compile
"$LINENO"; then :
13391 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
13393 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
13396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13399 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
13401 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
13405 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
13408 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
13409 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
13410 $as_echo_n "(cached) " >&6
13412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13413 /* end confdefs.h. */
13416 /* Needed for new procfs interface on sparc-solaris. */
13417 #define _STRUCTURED_PROC 1
13418 #include <sys/procfs.h>
13422 prfpregset32_t avar
13427 if ac_fn_c_try_compile
"$LINENO"; then :
13428 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
13430 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
13433 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13436 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
13438 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
13442 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
13445 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
13446 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
13447 $as_echo_n "(cached) " >&6
13449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13450 /* end confdefs.h. */
13453 /* Needed for new procfs interface on sparc-solaris. */
13454 #define _STRUCTURED_PROC 1
13455 #include <sys/procfs.h>
13464 if ac_fn_c_try_compile
"$LINENO"; then :
13465 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
13467 bfd_cv_have_sys_procfs_type_lwpid_t
=no
13470 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13473 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
13475 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
13479 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
13482 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
13483 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
13484 $as_echo_n "(cached) " >&6
13486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13487 /* end confdefs.h. */
13490 /* Needed for new procfs interface on sparc-solaris. */
13491 #define _STRUCTURED_PROC 1
13492 #include <sys/procfs.h>
13501 if ac_fn_c_try_compile
"$LINENO"; then :
13502 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
13504 bfd_cv_have_sys_procfs_type_psaddr_t
=no
13507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13510 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
13512 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
13516 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
13519 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
13520 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
13521 $as_echo_n "(cached) " >&6
13523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13524 /* end confdefs.h. */
13527 /* Needed for new procfs interface on sparc-solaris. */
13528 #define _STRUCTURED_PROC 1
13529 #include <sys/procfs.h>
13538 if ac_fn_c_try_compile
"$LINENO"; then :
13539 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
13541 bfd_cv_have_sys_procfs_type_prsysent_t
=no
13544 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13547 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
13549 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
13553 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
13556 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
13557 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
13558 $as_echo_n "(cached) " >&6
13560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13561 /* end confdefs.h. */
13564 /* Needed for new procfs interface on sparc-solaris. */
13565 #define _STRUCTURED_PROC 1
13566 #include <sys/procfs.h>
13575 if ac_fn_c_try_compile
"$LINENO"; then :
13576 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
13578 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
13581 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13584 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
13586 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
13590 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
13593 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
13594 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
13595 $as_echo_n "(cached) " >&6
13597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13598 /* end confdefs.h. */
13601 /* Needed for new procfs interface on sparc-solaris. */
13602 #define _STRUCTURED_PROC 1
13603 #include <sys/procfs.h>
13607 pr_sigaction64_t avar
13612 if ac_fn_c_try_compile
"$LINENO"; then :
13613 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
13615 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
13618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13621 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
13623 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
13627 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
13630 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
13631 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
13632 $as_echo_n "(cached) " >&6
13634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13635 /* end confdefs.h. */
13638 /* Needed for new procfs interface on sparc-solaris. */
13639 #define _STRUCTURED_PROC 1
13640 #include <sys/procfs.h>
13644 pr_siginfo64_t avar
13649 if ac_fn_c_try_compile
"$LINENO"; then :
13650 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
13652 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
13655 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13658 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
13660 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
13664 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
13670 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
13672 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
13673 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
13674 $as_echo_n "(cached) " >&6
13676 if test "$cross_compiling" = yes; then :
13677 gdb_cv_prfpregset_t_broken
=yes
13679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13680 /* end confdefs.h. */
13681 #include <sys/procfs.h>
13684 if (sizeof (prfpregset_t) == sizeof (void *))
13689 if ac_fn_c_try_run
"$LINENO"; then :
13690 gdb_cv_prfpregset_t_broken
=no
13692 gdb_cv_prfpregset_t_broken
=yes
13694 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13695 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
13701 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
13702 if test $gdb_cv_prfpregset_t_broken = yes; then
13704 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
13711 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
13712 if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
13713 $as_echo_n "(cached) " >&6
13715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13716 /* end confdefs.h. */
13717 #include <unistd.h>
13718 #include <sys/types.h>
13719 #include <sys/procfs.h>
13726 dummy = ioctl(0, PIOCSET, &dummy);
13732 if ac_fn_c_try_compile
"$LINENO"; then :
13733 gdb_cv_have_procfs_piocset
=yes
13735 gdb_cv_have_procfs_piocset
=no
13737 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
13741 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
13742 if test $gdb_cv_have_procfs_piocset = yes; then
13744 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
13749 if test ${host} = ${target} ; then
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
13752 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
13753 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
13754 $as_echo_n "(cached) " >&6
13756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13757 /* end confdefs.h. */
13762 struct link_map lm; (void) lm.l_addr;
13767 if ac_fn_c_try_compile
"$LINENO"; then :
13768 gdb_cv_have_struct_link_map_with_l_members
=yes
13770 gdb_cv_have_struct_link_map_with_l_members
=no
13772 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
13776 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
13777 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
13779 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
13785 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
13786 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
13787 $as_echo_n "(cached) " >&6
13789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13790 /* end confdefs.h. */
13791 #include <sys/types.h>
13796 struct link_map lm; (void) lm.lm_addr;
13801 if ac_fn_c_try_compile
"$LINENO"; then :
13802 gdb_cv_have_struct_link_map_with_lm_members
=yes
13804 gdb_cv_have_struct_link_map_with_lm_members
=no
13806 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
13810 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
13811 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
13813 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
13819 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
13820 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
13821 $as_echo_n "(cached) " >&6
13823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13824 /* end confdefs.h. */
13825 #include <sys/types.h>
13826 #ifdef HAVE_NLIST_H
13833 struct so_map lm; (void) lm.som_addr;
13838 if ac_fn_c_try_compile
"$LINENO"; then :
13839 gdb_cv_have_struct_so_map_with_som_members
=yes
13841 gdb_cv_have_struct_so_map_with_som_members
=no
13843 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
13847 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
13848 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
13850 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
13856 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
13857 if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
13858 $as_echo_n "(cached) " >&6
13860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13861 /* end confdefs.h. */
13863 #include <sys/link.h>
13867 struct link_map32 l;
13872 if ac_fn_c_try_compile
"$LINENO"; then :
13873 gdb_cv_have_struct_link_map32
=yes
13875 gdb_cv_have_struct_link_map32
=no
13877 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
13881 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
13882 if test $gdb_cv_have_struct_link_map32 = yes; then
13884 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
13887 $as_echo "#define _SYSCALL32 1" >>confdefs.h
13892 # Check if the compiler supports the `long long' type.
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
13895 $as_echo_n "checking for long long support in compiler... " >&6; }
13896 if test "${gdb_cv_c_long_long+set}" = set; then :
13897 $as_echo_n "(cached) " >&6
13899 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13900 /* end confdefs.h. */
13901 extern long long foo;
13905 switch (foo & 2) { case 0: return 1; }
13910 if ac_fn_c_try_compile
"$LINENO"; then :
13911 gdb_cv_c_long_long
=yes
13913 gdb_cv_c_long_long
=no
13915 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
13918 $as_echo "$gdb_cv_c_long_long" >&6; }
13919 if test $gdb_cv_c_long_long = yes; then
13921 $as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
13925 # Check if the compiler and runtime support printing long longs.
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
13928 $as_echo_n "checking for long long support in printf... " >&6; }
13929 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
13930 $as_echo_n "(cached) " >&6
13932 if test "$cross_compiling" = yes; then :
13933 gdb_cv_printf_has_long_long
=no
13935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13936 /* end confdefs.h. */
13937 $ac_includes_default
13943 l = (l << 16) + 0x0123;
13944 l = (l << 16) + 0x4567;
13945 l = (l << 16) + 0x89ab;
13946 l = (l << 16) + 0xcdef;
13947 sprintf (buf, "0x%016llx", l);
13948 return (strcmp ("0x0123456789abcdef", buf));
13953 if ac_fn_c_try_run
"$LINENO"; then :
13954 gdb_cv_printf_has_long_long
=yes
13956 gdb_cv_printf_has_long_long
=no
13958 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13959 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
13964 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
13965 if test $gdb_cv_printf_has_long_long = yes; then
13967 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
13971 # Check if the compiler and runtime support printing decfloats.
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
13974 $as_echo_n "checking for decfloat support in printf... " >&6; }
13975 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
13976 $as_echo_n "(cached) " >&6
13978 if test "$cross_compiling" = yes; then :
13979 gdb_cv_printf_has_decfloat
=no
13981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13982 /* end confdefs.h. */
13983 $ac_includes_default
13988 _Decimal32 d32 = 1.2345df;
13989 _Decimal64 d64 = 1.2345dd;
13990 _Decimal128 d128 = 1.2345dl;
13991 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
13992 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
13997 if ac_fn_c_try_run
"$LINENO"; then :
13998 gdb_cv_printf_has_decfloat
=yes
14000 gdb_cv_printf_has_decfloat
=no
14002 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14003 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
14008 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
14009 if test $gdb_cv_printf_has_decfloat = yes; then
14011 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
14015 # Check if the compiler supports the `long double' type. We can't use
14016 # AC_C_LONG_DOUBLE because that one does additional checks on the
14017 # constants defined in <float.h> that fail on some systems,
14018 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
14021 $as_echo_n "checking for long double support in compiler... " >&6; }
14022 if test "${gdb_cv_c_long_double+set}" = set; then :
14023 $as_echo_n "(cached) " >&6
14025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14026 /* end confdefs.h. */
14029 if ac_fn_c_try_compile
"$LINENO"; then :
14030 gdb_cv_c_long_double
=yes
14032 gdb_cv_c_long_double
=no
14034 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
14037 $as_echo "$gdb_cv_c_long_double" >&6; }
14038 if test $gdb_cv_c_long_double = yes; then
14040 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14044 # Check if the compiler and runtime support printing long doubles.
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
14047 $as_echo_n "checking for long double support in printf... " >&6; }
14048 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
14049 $as_echo_n "(cached) " >&6
14051 if test "$cross_compiling" = yes; then :
14052 gdb_cv_printf_has_long_double
=no
14054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14055 /* end confdefs.h. */
14056 $ac_includes_default
14061 long double f = 3.141592653;
14062 sprintf (buf, "%Lg", f);
14063 return (strncmp ("3.14159", buf, 7));
14068 if ac_fn_c_try_run
"$LINENO"; then :
14069 gdb_cv_printf_has_long_double
=yes
14071 gdb_cv_printf_has_long_double
=no
14073 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14074 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
14079 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
14080 if test $gdb_cv_printf_has_long_double = yes; then
14082 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
14086 # Check if the compiler and runtime support scanning long doubles.
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
14089 $as_echo_n "checking for long double support in scanf... " >&6; }
14090 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
14091 $as_echo_n "(cached) " >&6
14093 if test "$cross_compiling" = yes; then :
14094 gdb_cv_scanf_has_long_double
=no
14096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14097 /* end confdefs.h. */
14102 char *buf = "3.141592653";
14104 sscanf (buf, "%Lg", &f);
14105 return !(f > 3.14159 && f < 3.14160);
14110 if ac_fn_c_try_run
"$LINENO"; then :
14111 gdb_cv_scanf_has_long_double
=yes
14113 gdb_cv_scanf_has_long_double
=no
14115 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14116 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
14121 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
14122 if test $gdb_cv_scanf_has_long_double = yes; then
14124 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
14131 $as_echo_n "checking for -bbigtoc option... " >&6; }
14132 if test "${gdb_cv_bigtoc+set}" = set; then :
14133 $as_echo_n "(cached) " >&6
14136 SAVE_LDFLAGS
=$LDFLAGS
14139 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
14140 *) gdb_cv_bigtoc
=-bbigtoc ;;
14143 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
14144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14145 /* end confdefs.h. */
14155 if ac_fn_c_try_link
"$LINENO"; then :
14160 rm -f core conftest.err conftest.
$ac_objext \
14161 conftest
$ac_exeext conftest.
$ac_ext
14162 LDFLAGS
="${SAVE_LDFLAGS}"
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
14166 $as_echo "$gdb_cv_bigtoc" >&6; }
14167 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
14173 if test ${build} = ${host} -a ${host} = ${target} ; then
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HPUX/OSF thread support" >&5
14177 $as_echo_n "checking for HPUX/OSF thread support... " >&6; }
14178 if test -f /usr
/include
/dce
/cma_config.h
; then
14179 if test "$GCC" = "yes" ; then
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14181 $as_echo "yes" >&6; }
14183 $as_echo "#define HAVE_HPUX_THREAD_SUPPORT 1" >>confdefs.h
14185 CONFIG_OBS
="${CONFIG_OBS} hpux-thread.o"
14186 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (suppressed because you are not using GCC)" >&5
14189 $as_echo "no (suppressed because you are not using GCC)" >&6; }
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14193 $as_echo "no" >&6; }
14197 # See if thread_db library is around for Solaris thread debugging.
14198 # Note that we must explicitly test for version 1 of the library
14199 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
14202 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
14203 if test -f /usr
/lib
/libthread_db.so
.1 ; then
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14205 $as_echo "yes" >&6; }
14207 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
14209 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
14210 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14212 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14213 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14214 $as_echo_n "(cached) " >&6
14216 ac_check_lib_save_LIBS
=$LIBS
14218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14219 /* end confdefs.h. */
14221 /* Override any GCC internal prototype to avoid an error.
14222 Use char because int might match the return type of a GCC
14223 builtin and then its argument prototype would still apply. */
14236 if ac_fn_c_try_link
"$LINENO"; then :
14237 ac_cv_lib_dl_dlopen
=yes
14239 ac_cv_lib_dl_dlopen
=no
14241 rm -f core conftest.err conftest.
$ac_objext \
14242 conftest
$ac_exeext conftest.
$ac_ext
14243 LIBS
=$ac_check_lib_save_LIBS
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14246 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14247 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
14248 cat >>confdefs.h
<<_ACEOF
14249 #define HAVE_LIBDL 1
14256 if test "$GCC" = "yes" ; then
14257 # The GNU linker requires the -export-dynamic option to make
14258 # all symbols visible in the dynamic symbol table.
14259 hold_ldflags
=$LDFLAGS
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -export-dynamic flag" >&5
14261 $as_echo_n "checking for the ld -export-dynamic flag... " >&6; }
14262 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
14263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14264 /* end confdefs.h. */
14274 if ac_fn_c_try_link
"$LINENO"; then :
14279 rm -f core conftest.err conftest.
$ac_objext \
14280 conftest
$ac_exeext conftest.
$ac_ext
14281 LDFLAGS
=$hold_ldflags
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
14283 $as_echo "$found" >&6; }
14284 if test $found = yes; then
14285 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
14288 # Sun randomly tweaked the prototypes in <proc_service.h>
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
14291 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
14292 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
14293 $as_echo_n "(cached) " >&6
14296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14297 /* end confdefs.h. */
14299 #include <proc_service.h>
14300 ps_err_e ps_pdwrite
14301 (struct ps_prochandle*, psaddr_t, const void*, size_t);
14311 if ac_fn_c_try_compile
"$LINENO"; then :
14312 gdb_cv_proc_service_is_old
=no
14314 gdb_cv_proc_service_is_old
=yes
14316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
14321 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
14322 if test $gdb_cv_proc_service_is_old = yes; then
14324 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14329 $as_echo "no" >&6; }
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
14334 $as_echo_n "checking for AiX thread debugging library... " >&6; }
14335 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
14336 $as_echo_n "(cached) " >&6
14338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14339 /* end confdefs.h. */
14340 #include <sys/pthdebug.h>
14344 #ifndef PTHDB_VERSION_3
14351 if ac_fn_c_try_compile
"$LINENO"; then :
14352 gdb_cv_have_aix_thread_debug
=yes
14354 gdb_cv_have_aix_thread_debug
=no
14356 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
14360 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
14361 if test $gdb_cv_have_aix_thread_debug = yes; then
14362 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
14363 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
14364 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -lpthdebug"
14371 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
14373 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
14374 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
14375 $as_echo_n "(cached) " >&6
14377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14378 /* end confdefs.h. */
14379 #include <thread_db.h>
14383 int i = TD_NOTALLOC;
14388 if ac_fn_c_try_compile
"$LINENO"; then :
14389 gdb_cv_thread_db_h_has_td_notalloc
=yes
14391 gdb_cv_thread_db_h_has_td_notalloc
=no
14394 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
14398 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
14400 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
14401 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
14402 $as_echo_n "(cached) " >&6
14404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14405 /* end confdefs.h. */
14406 #include <thread_db.h>
14410 int i = TD_VERSION;
14415 if ac_fn_c_try_compile
"$LINENO"; then :
14416 gdb_cv_thread_db_h_has_td_version
=yes
14418 gdb_cv_thread_db_h_has_td_version
=no
14421 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
14425 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
14427 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
14428 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
14429 $as_echo_n "(cached) " >&6
14431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14432 /* end confdefs.h. */
14433 #include <thread_db.h>
14442 if ac_fn_c_try_compile
"$LINENO"; then :
14443 gdb_cv_thread_db_h_has_td_notls
=yes
14445 gdb_cv_thread_db_h_has_td_notls
=no
14448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
14452 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
14454 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
14456 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
14459 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
14461 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
14464 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
14466 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
14470 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
14472 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
14473 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
14474 $as_echo_n "(cached) " >&6
14476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14477 /* end confdefs.h. */
14478 #include <sys/syscall.h>
14482 int i = __NR_tkill;
14487 if ac_fn_c_try_compile
"$LINENO"; then :
14488 gdb_cv_sys_syscall_h_has_tkill
=yes
14490 gdb_cv_sys_syscall_h_has_tkill
=no
14493 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
14497 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
14499 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
14501 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
14505 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
14507 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
14513 cat >>confdefs.h
<<_ACEOF
14514 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
14518 if test "$cross_compiling" = yes; then :
14519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14520 /* end confdefs.h. */
14521 #include <sys/personality.h>
14526 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14527 # define ADDR_NO_RANDOMIZE 0x0040000
14529 /* Test the flag could be set and stays set. */
14530 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14531 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14537 if ac_fn_c_try_link
"$LINENO"; then :
14538 have_personality
=true
14540 have_personality
=false
14542 rm -f core conftest.err conftest.
$ac_objext \
14543 conftest
$ac_exeext conftest.
$ac_ext
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_run
"$LINENO"; then :
14564 have_personality
=true
14566 have_personality
=false
14568 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14569 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14572 if $have_personality
14575 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
14580 target_sysroot_reloc
=0
14582 # Check whether --with-sysroot was given.
14583 if test "${with_sysroot+set}" = set; then :
14584 withval
=$with_sysroot;
14585 case ${with_sysroot} in
14586 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_alias}/sys-root' ;;
14587 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
14590 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
14592 if test "x$prefix" = xNONE
; then
14593 test_prefix
=/usr
/local
14595 test_prefix
=$prefix
14597 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
14598 test_exec_prefix
=$test_prefix
14600 test_exec_prefix
=$exec_prefix
14602 case ${TARGET_SYSTEM_ROOT} in
14603 "${test_prefix}"|
"${test_prefix}/"*|\
14604 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
14605 '${prefix}'|
'${prefix}/'*|\
14606 '${exec_prefix}'|
'${exec_prefix}/'*)
14607 target_sysroot_reloc
=1
14613 TARGET_SYSTEM_ROOT
=
14614 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"\"'
14618 TARGET_SYSTEM_ROOT_DEFINE
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE=$target_sysroot_reloc"
14624 # Check whether --with-system-gdbinit was given.
14625 if test "${with_system_gdbinit+set}" = set; then :
14626 withval
=$with_system_gdbinit;
14627 SYSTEM_GDBINIT
=$withval
14633 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
14634 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14635 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
14636 ac_define_dir
=`eval echo $ac_define_dir`
14638 cat >>confdefs.h
<<_ACEOF
14639 #define SYSTEM_GDBINIT "$ac_define_dir"
14645 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
14646 if test "x$prefix" = xNONE
; then
14647 test_prefix
=/usr
/local
14649 test_prefix
=$prefix
14652 test_prefix
=$exec_prefix
14655 case ${ac_define_dir} in
14656 "${test_prefix}"|
"${test_prefix}/"*|\
14657 '${exec_prefix}'|
'${exec_prefix}/'*)
14662 cat >>confdefs.h
<<_ACEOF
14663 #define SYSTEM_GDBINIT_RELOCATABLE $value
14669 # Check whether --enable-werror was given.
14670 if test "${enable_werror+set}" = set; then :
14671 enableval
=$enable_werror; case "${enableval}" in
14672 yes | y
) ERROR_ON_WARNING
="yes" ;;
14673 no | n
) ERROR_ON_WARNING
="no" ;;
14674 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
14679 # Enable -Werror by default when using gcc
14680 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
14681 ERROR_ON_WARNING
=yes
14685 if test "${ERROR_ON_WARNING}" = yes ; then
14686 WERROR_CFLAGS
="-Werror"
14689 # The entries after -Wno-pointer-sign are disabled warnings which may
14690 # be enabled in the future, which can not currently be used to build
14692 # NOTE: If you change this list, remember to update
14693 # gdb/doc/gdbint.texinfo.
14694 build_warnings
="-Wall -Wdeclaration-after-statement -Wpointer-arith \
14695 -Wformat-nonliteral -Wno-pointer-sign \
14696 -Wno-unused -Wunused-value -Wunused-function \
14697 -Wno-switch -Wno-char-subscripts"
14699 # Enable -Wno-format by default when using gcc on mingw since many
14700 # GCC versions complain about %I64.
14702 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
14705 # Check whether --enable-build-warnings was given.
14706 if test "${enable_build_warnings+set}" = set; then :
14707 enableval
=$enable_build_warnings; case "${enableval}" in
14709 no
) build_warnings
="-w";;
14710 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
14711 build_warnings
="${build_warnings} ${t}";;
14712 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
14713 build_warnings
="${t} ${build_warnings}";;
14714 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14716 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
14717 echo "Setting compiler warning flags = $build_warnings" 6>&1
14720 # Check whether --enable-gdb-build-warnings was given.
14721 if test "${enable_gdb_build_warnings+set}" = set; then :
14722 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
14724 no
) build_warnings
="-w";;
14725 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
14726 build_warnings
="${build_warnings} ${t}";;
14727 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
14728 build_warnings
="${t} ${build_warnings}";;
14729 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14731 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
14732 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
14736 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
14739 $as_echo_n "checking compiler warning flags... " >&6; }
14740 # Separate out the -Werror flag as some files just cannot be
14741 # compiled with it enabled.
14742 for w
in ${build_warnings}; do
14744 -Werr*) WERROR_CFLAGS
=-Werror ;;
14745 *) # Check that GCC accepts it
14746 saved_CFLAGS
="$CFLAGS"
14747 CFLAGS
="$CFLAGS $w"
14748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14749 /* end confdefs.h. */
14759 if ac_fn_c_try_compile
"$LINENO"; then :
14760 WARN_CFLAGS
="${WARN_CFLAGS} $w"
14762 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14763 CFLAGS
="$saved_CFLAGS"
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
14767 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
14772 # In the Cygwin environment, we need some additional flags.
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
14774 $as_echo_n "checking
for cygwin...
" >&6; }
14775 if test "${gdb_cv_os_cygwin+set}" = set; then :
14776 $as_echo_n "(cached
) " >&6
14778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14779 /* end confdefs.h. */
14781 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
14785 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14786 $EGREP "lose
" >/dev/null 2>&1; then :
14787 gdb_cv_os_cygwin=yes
14789 gdb_cv_os_cygwin=no
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
14795 $as_echo "$gdb_cv_os_cygwin" >&6; }
14798 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
14800 *go32* ) SER_HARDWIRE=ser-go32.o ;;
14801 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
14802 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
14806 # libreadline needs libuser32.a in a cygwin environment
14808 if test x$gdb_cv_os_cygwin = xyes; then
14809 WIN32LIBS="-luser32"
14810 case "${target}" in
14811 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
14816 # The ser-tcp.c module requires sockets.
14820 $as_echo "#define USE_WIN32API 1" >>confdefs.h
14822 WIN32LIBS
="$WIN32LIBS -lws2_32"
14827 # Add ELF support to GDB, but only if BFD includes ELF support.
14829 OLD_LDFLAGS
=$LDFLAGS
14831 CFLAGS
="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
14832 LDFLAGS
="$LDFLAGS -L../bfd -L../libiberty"
14833 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
14834 LIBS
="-lbfd -liberty $intl $LIBS"
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
14836 $as_echo_n "checking for ELF support in BFD... " >&6; }
14837 if test "${gdb_cv_var_elf+set}" = set; then :
14838 $as_echo_n "(cached) " >&6
14840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14841 /* end confdefs.h. */
14842 #include <stdlib.h>
14844 #include "elf-bfd.h"
14849 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
14854 if ac_fn_c_try_link
"$LINENO"; then :
14859 rm -f core conftest.err conftest.
$ac_objext \
14860 conftest
$ac_exeext conftest.
$ac_ext
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
14863 $as_echo "$gdb_cv_var_elf" >&6; }
14864 if test $gdb_cv_var_elf = yes; then
14865 CONFIG_OBS
="$CONFIG_OBS elfread.o"
14867 $as_echo "#define HAVE_ELF 1" >>confdefs.h
14871 LDFLAGS
=$OLD_LDFLAGS
14874 # Add any host-specific objects to GDB.
14875 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
14877 LIBGUI
="../libgui/src/libgui.a"
14878 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
14887 *-*-cygwin* |
*-*-mingw* )
14896 if test "${enable_gdbtk}" = "yes"; then
14898 # Gdbtk must have an absolute path to srcdir in order to run
14899 # properly when not installed.
14902 GDBTK_SRC_DIR
=`pwd`
14907 # Ok, lets find the tcl configuration
14908 # First, look for one uninstalled.
14909 # the alternative search directory is invoked by --with-tcl
14912 if test x
"${no_tcl}" = x
; then
14913 # we reset no_tcl in case something fails here
14916 # Check whether --with-tcl was given.
14917 if test "${with_tcl+set}" = set; then :
14918 withval
=$with_tcl; with_tclconfig
=${withval}
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
14922 $as_echo_n "checking for Tcl configuration... " >&6; }
14923 if test "${ac_cv_c_tclconfig+set}" = set; then :
14924 $as_echo_n "(cached) " >&6
14928 # First check to see if --with-tcl was specified.
14930 *-*-cygwin*) platDir
="win" ;;
14931 *) platDir
="unix" ;;
14933 if test x
"${with_tclconfig}" != x
; then
14934 if test -f "${with_tclconfig}/tclConfig.sh" ; then
14935 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
14937 as_fn_error
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
14941 # then check for a private Tcl installation
14942 if test x
"${ac_cv_c_tclconfig}" = x
; then
14945 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14946 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
14947 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
14949 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14950 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
14951 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
14953 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14954 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
14955 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
14956 if test -f "$i/$platDir/tclConfig.sh" ; then
14957 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
14963 # on Darwin, check in Framework installation locations
14964 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
14965 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
14966 `ls -d /Library/Frameworks 2>/dev/null` \
14967 `ls -d /Network/Library/Frameworks 2>/dev/null` \
14968 `ls -d /System/Library/Frameworks 2>/dev/null` \
14970 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
14971 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
14977 # check in a few common install locations
14978 if test x
"${ac_cv_c_tclconfig}" = x
; then
14979 for i
in `ls -d ${libdir} 2>/dev/null` \
14980 `ls -d ${exec_prefix}/lib 2>/dev/null` \
14981 `ls -d ${prefix}/lib 2>/dev/null` \
14982 `ls -d /usr/local/lib 2>/dev/null` \
14983 `ls -d /usr/contrib/lib 2>/dev/null` \
14984 `ls -d /usr/lib 2>/dev/null` \
14986 if test -f "$i/tclConfig.sh" ; then
14987 ac_cv_c_tclconfig
=`(cd $i; pwd)`
14993 # check in a few other private locations
14994 if test x
"${ac_cv_c_tclconfig}" = x
; then
14997 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14998 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
14999 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
15000 if test -f "$i/$platDir/tclConfig.sh" ; then
15001 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
15010 if test x
"${ac_cv_c_tclconfig}" = x
; then
15011 TCL_BIN_DIR
="# no Tcl configs found"
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
15013 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
15016 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
15018 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15023 # If $no_tk is nonempty, then we can't do Tk, and there is no
15024 # point to doing Tcl.
15027 # Ok, lets find the tk configuration
15028 # First, look for one uninstalled.
15029 # the alternative search directory is invoked by --with-tk
15032 if test x
"${no_tk}" = x
; then
15033 # we reset no_tk in case something fails here
15036 # Check whether --with-tk was given.
15037 if test "${with_tk+set}" = set; then :
15038 withval
=$with_tk; with_tkconfig
=${withval}
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
15042 $as_echo_n "checking for Tk configuration... " >&6; }
15043 if test "${ac_cv_c_tkconfig+set}" = set; then :
15044 $as_echo_n "(cached) " >&6
15048 # First check to see if --with-tkconfig was specified.
15049 if test x
"${with_tkconfig}" != x
; then
15050 if test -f "${with_tkconfig}/tkConfig.sh" ; then
15051 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
15053 as_fn_error
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
15057 # then check for a private Tk library
15059 *-*-cygwin*) platDir
="win" ;;
15060 *) platDir
="unix" ;;
15062 if test x
"${ac_cv_c_tkconfig}" = x
; then
15065 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15066 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
15067 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
15069 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15070 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
15071 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
15073 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15074 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
15075 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
15076 if test -f "$i/$platDir/tkConfig.sh" ; then
15077 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
15083 # on Darwin, check in Framework installation locations
15084 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
15085 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
15086 `ls -d /Library/Frameworks 2>/dev/null` \
15087 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15088 `ls -d /System/Library/Frameworks 2>/dev/null` \
15090 if test -f "$i/Tk.framework/tkConfig.sh" ; then
15091 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
15097 # check in a few common install locations
15098 if test x
"${ac_cv_c_tkconfig}" = x
; then
15099 for i
in `ls -d ${libdir} 2>/dev/null` \
15100 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15101 `ls -d ${prefix}/lib 2>/dev/null` \
15102 `ls -d /usr/local/lib 2>/dev/null` \
15103 `ls -d /usr/contrib/lib 2>/dev/null` \
15104 `ls -d /usr/lib 2>/dev/null` \
15106 if test -f "$i/tkConfig.sh" ; then
15107 ac_cv_c_tkconfig
=`(cd $i; pwd)`
15112 # check in a few other private locations
15113 if test x
"${ac_cv_c_tkconfig}" = x
; then
15116 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15117 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
15118 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
15119 if test -f "$i/$platDir/tkConfig.sh" ; then
15120 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
15129 if test x
"${ac_cv_c_tkconfig}" = x
; then
15130 TK_BIN_DIR
="# no Tk configs found"
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
15132 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
15135 TK_BIN_DIR
=${ac_cv_c_tkconfig}
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
15137 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15142 if test -z "${no_tcl}" -a -z "${no_tk}"; then
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
15145 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
15147 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15149 $as_echo "loading" >&6; }
15150 .
${TCL_BIN_DIR}/tclConfig.sh
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
15153 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15156 # eval is required to do the TCL_DBGX substitution
15157 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
15158 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
15160 # If the TCL_BIN_DIR is the build directory (not the install directory),
15161 # then set the common variable name to the value of the build variables.
15162 # For example, the variable TCL_LIB_SPEC will be set to the value
15163 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
15164 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
15165 # installed and uninstalled version of Tcl.
15166 if test -f "${TCL_BIN_DIR}/Makefile" ; then
15167 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
15168 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
15169 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
15170 elif test "`uname -s`" = "Darwin"; then
15171 # If Tcl was built as a framework, attempt to use the libraries
15172 # from the framework at the given location so that linking works
15173 # against Tcl.framework installed in an arbitary location.
15174 case ${TCL_DEFS} in
15176 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
15177 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
15178 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
15179 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
15180 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
15185 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
15186 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
15187 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
15193 # eval is required to do the TCL_DBGX substitution
15194 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
15195 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
15196 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
15197 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
15213 # Check for in-tree tcl
15220 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
15224 # Find Tcl private headers
15225 if test x
"${intree}" = xno
; then
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
15228 $as_echo_n "checking for Tcl private headers... " >&6; }
15230 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
15231 if test -f ${dir}/tclInt.h
; then
15235 if test x
"${private_dir}" = x
; then
15236 as_fn_error
"could not find private Tcl headers" "$LINENO" 5
15238 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15240 $as_echo "${private_dir}" >&6; }
15243 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
15244 TCL_LIBRARY
="${TCL_LIB_SPEC}"
15247 # If building tcl in the same src tree, private headers
15248 # are not needed, but we need to be sure to use the right
15250 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
15251 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
15252 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
15260 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
15262 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15264 $as_echo "loading" >&6; }
15265 .
${TK_BIN_DIR}/tkConfig.sh
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
15268 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15271 # eval is required to do the TK_DBGX substitution
15272 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
15273 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
15275 # If the TK_BIN_DIR is the build directory (not the install directory),
15276 # then set the common variable name to the value of the build variables.
15277 # For example, the variable TK_LIB_SPEC will be set to the value
15278 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
15279 # instead of TK_BUILD_LIB_SPEC since it will work with both an
15280 # installed and uninstalled version of Tcl.
15281 if test -f "${TK_BIN_DIR}/Makefile" ; then
15282 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
15283 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
15284 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
15285 elif test "`uname -s`" = "Darwin"; then
15286 # If Tk was built as a framework, attempt to use the libraries
15287 # from the framework at the given location so that linking works
15288 # against Tk.framework installed in an arbitary location.
15291 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
15292 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
15293 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
15294 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
15295 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
15300 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
15301 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
15302 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
15308 # eval is required to do the TK_DBGX substitution
15309 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
15310 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
15311 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
15312 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
15327 # Check for in-tree Tk
15329 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
15333 # Find Tk private headers
15334 if test x
"${intree}" = xno
; then
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
15337 $as_echo_n "checking for Tk private headers... " >&6; }
15339 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
15340 if test -f ${dir}/tkInt.h
; then
15344 if test x
"${private_dir}" = x
; then
15345 as_fn_error
"could not find Tk private headers" "$LINENO" 5
15347 TK_PRIVATE_INCLUDE
="-I${private_dir}"
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15349 $as_echo "${private_dir}" >&6; }
15352 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
15353 TK_LIBRARY
=${TK_LIB_SPEC}
15356 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
15357 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
15358 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
15365 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
15367 # Include some libraries that Tcl and Tk want.
15368 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
15369 # Yes, the ordering seems wrong here. But it isn't.
15370 # TK_LIBS is the list of libraries that need to be linked
15371 # after Tcl/Tk. Note that this isn't put into LIBS. If it
15372 # were in LIBS then any link tests after this point would
15373 # try to include things like `$(LIBGUI)', which wouldn't work.
15374 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
15376 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
15377 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
15378 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
15379 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
15380 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
15381 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
15382 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
15384 if test x
$gdb_cv_os_cygwin = xyes
; then
15385 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
15386 WIN32LDAPP
="-Wl,--subsystem,console"
15387 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
15390 subdirs
="$subdirs gdbtk"
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15403 $as_echo_n "checking for X... " >&6; }
15406 # Check whether --with-x was given.
15407 if test "${with_x+set}" = set; then :
15411 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15412 if test "x$with_x" = xno
; then
15413 # The user explicitly disabled X.
15416 case $x_includes,$x_libraries in #(
15417 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
15418 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
15419 $as_echo_n "(cached) " >&6
15421 # One or both of the vars are not set, and there is no cached value.
15422 ac_x_includes
=no ac_x_libraries
=no
15423 rm -f -r conftest.dir
15424 if mkdir conftest.dir
; then
15426 cat >Imakefile
<<'_ACEOF'
15428 @echo incroot='${INCROOT}'
15430 @echo usrlibdir='${USRLIBDIR}'
15432 @echo libdir='${LIBDIR}'
15434 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
15435 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15436 for ac_var
in incroot usrlibdir libdir
; do
15437 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15439 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
15440 for ac_extension
in a so sl dylib la dll
; do
15441 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15442 test -f "$ac_im_libdir/libX11.$ac_extension"; then
15443 ac_im_usrlibdir
=$ac_im_libdir; break
15446 # Screen out bogus values from the imake configuration. They are
15447 # bogus both because they are the default anyway, and because
15448 # using them would break gcc on systems where it needs fixed includes.
15449 case $ac_im_incroot in
15450 /usr
/include
) ac_x_includes
= ;;
15451 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
15453 case $ac_im_usrlibdir in
15454 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
15455 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
15459 rm -f -r conftest.dir
15462 # Standard set of common directories for X headers.
15463 # Check X11 before X11Rn because it is often a symlink to the current release.
15477 /usr/local/X11/include
15478 /usr/local/X11R7/include
15479 /usr/local/X11R6/include
15480 /usr/local/X11R5/include
15481 /usr/local/X11R4/include
15483 /usr/local/include/X11
15484 /usr/local/include/X11R7
15485 /usr/local/include/X11R6
15486 /usr/local/include/X11R5
15487 /usr/local/include/X11R4
15491 /usr/XFree86/include/X11
15495 /usr/unsupported/include
15496 /usr/athena/include
15497 /usr/local/x11r5/include
15498 /usr/lpp/Xamples/include
15500 /usr/openwin/include
15501 /usr/openwin/share/include'
15503 if test "$ac_x_includes" = no
; then
15504 # Guess where to find include files, by looking for Xlib.h.
15505 # First, try using that file with no special directory specified.
15506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15507 /* end confdefs.h. */
15508 #include <X11/Xlib.h>
15510 if ac_fn_c_try_cpp
"$LINENO"; then :
15511 # We can compile using X headers with no special include directory.
15514 for ac_dir
in $ac_x_header_dirs; do
15515 if test -r "$ac_dir/X11/Xlib.h"; then
15516 ac_x_includes
=$ac_dir
15521 rm -f conftest.err conftest.
$ac_ext
15522 fi # $ac_x_includes = no
15524 if test "$ac_x_libraries" = no
; then
15525 # Check for the libraries.
15526 # See if we find them without any special options.
15527 # Don't add to $LIBS permanently.
15530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15531 /* end confdefs.h. */
15532 #include <X11/Xlib.h>
15541 if ac_fn_c_try_link
"$LINENO"; then :
15543 # We can link X programs with no special library path.
15547 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15549 # Don't even attempt the hair of trying to link an X program!
15550 for ac_extension
in a so sl dylib la dll
; do
15551 if test -r "$ac_dir/libX11.$ac_extension"; then
15552 ac_x_libraries
=$ac_dir
15558 rm -f core conftest.err conftest.
$ac_objext \
15559 conftest
$ac_exeext conftest.
$ac_ext
15560 fi # $ac_x_libraries = no
15562 case $ac_x_includes,$ac_x_libraries in #(
15563 no
,* |
*,no |
*\'*)
15564 # Didn't find X, or a directory has "'" in its name.
15565 ac_cv_have_x
="have_x=no";; #(
15567 # Record where we found X for the cache.
15568 ac_cv_have_x
="have_x=yes\
15569 ac_x_includes='$ac_x_includes'\
15570 ac_x_libraries='$ac_x_libraries'"
15576 eval "$ac_cv_have_x"
15579 if test "$have_x" != yes; then
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15581 $as_echo "$have_x" >&6; }
15584 # If each of the values was on the command line, it overrides each guess.
15585 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
15586 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
15587 # Update the cache value to reflect the command line values.
15588 ac_cv_have_x
="have_x=yes\
15589 ac_x_includes='$x_includes'\
15590 ac_x_libraries='$x_libraries'"
15591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15592 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15596 # Unlike the sim directory, whether a simulator is linked is controlled by
15597 # presence of a gdb_sim definition in the target configure.tgt entry.
15598 # This code just checks for a few cases where we'd like to ignore those
15599 # definitions, even when they're present in the '.mt' file. These cases
15600 # are when --disable-sim is specified, or if the simulator directory is
15601 # not part of the source tree.
15603 # Check whether --enable-sim was given.
15604 if test "${enable_sim+set}" = set; then :
15605 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
15606 echo "enableval = ${enableval}";
15607 case "${enableval}" in
15608 yes) ignore_sim
=false
;;
15609 no
) ignore_sim
=true
;;
15610 *) ignore_sim
=false
;;
15617 if test ! -d "${srcdir}/../sim"; then
15623 if test "${ignore_sim}" = "false"; then
15624 if test x
"${gdb_sim}" != x
; then
15626 SIM_OBS
="remote-sim.o"
15628 $as_echo "#define WITH_SIM 1" >>confdefs.h
15646 # List of host floatformats.
15648 cat >>confdefs.h
<<_ACEOF
15649 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
15653 cat >>confdefs.h
<<_ACEOF
15654 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
15658 cat >>confdefs.h
<<_ACEOF
15659 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
15663 # target_subdir is used by the testsuite to find the target libraries.
15665 if test "${host}" != "${target}"; then
15666 target_subdir
="${target_alias}/"
15671 if test "${gdb_native}" = "yes"; then
15672 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
15673 if test ! -f ${host_makefile_frag}; then
15674 as_fn_error
"\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
15676 frags
="$frags $host_makefile_frag"
15678 host_makefile_frag
=/dev
/null
15684 if test "${gdb_native}" = "yes"; then
15685 # We pick this up from the host configuration file (.mh) because we
15686 # do not have a native configuration Makefile fragment.
15687 nativefile
=`sed -n '
15688 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
15689 ' ${host_makefile_frag}`
15693 if test x
"${gdb_osabi}" != x
; then
15695 cat >>confdefs.h
<<_ACEOF
15696 #define GDB_OSABI_DEFAULT $gdb_osabi
15701 # Enable multi-ice-gdb-server.
15702 # Check whether --enable-multi-ice was given.
15703 if test "${enable_multi_ice+set}" = set; then :
15704 enableval
=$enable_multi_ice; case $enableval in
15707 *) as_fn_error
"bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
15711 if test "x$enable_multi_ice" = xyes
; then
15712 subdirs
="$subdirs multi-ice"
15716 # We only build gdbserver automatically in a native configuration.
15717 if test "$gdb_native" = "yes"; then
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
15719 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
15720 if test "x$build_gdbserver" = xyes
; then
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15722 $as_echo "yes" >&6; }
15723 subdirs
="$subdirs gdbserver"
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15727 $as_echo "no" >&6; }
15731 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
15732 # to an empty version.
15738 if test "${nativefile}" != ""; then
15739 case "${nativefile}" in
15740 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
15741 * ) GDB_NM_FILE
="${nativefile}"
15743 files
="${files} ${GDB_NM_FILE}"
15744 links
="${links} nm.h"
15746 cat >>confdefs.h
<<_ACEOF
15747 #define GDB_NM_FILE "${GDB_NM_FILE}"
15753 ac_sources
="$files"
15755 while test -n "$ac_sources"; do
15756 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
15757 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
15758 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
15760 ac_config_links
="$ac_config_links $ac_config_links_1"
15766 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
15769 ac_config_files
="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
15771 ac_config_commands
="$ac_config_commands default"
15773 cat >confcache
<<\_ACEOF
15774 # This file is a shell script that caches the results of configure
15775 # tests run on this system so they can be shared between configure
15776 # scripts and configure runs, see configure's option --config-cache.
15777 # It is not useful on other systems. If it contains results you don't
15778 # want to keep, you may remove or edit it.
15780 # config.status only pays attention to the cache file if you give it
15781 # the --recheck option to rerun configure.
15783 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15784 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15785 # following values.
15789 # The following way of writing the cache mishandles newlines in values,
15790 # but we know of no workaround that is simple, portable, and efficient.
15791 # So, we kill variables containing newlines.
15792 # Ultrix sh set writes to stderr and can't be redirected directly,
15793 # and sets the high bit in the cache file unless we assign to the vars.
15795 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15796 eval ac_val
=\$
$ac_var
15800 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15801 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15804 _ | IFS | as_nl
) ;; #(
15805 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15806 *) { eval $ac_var=; unset $ac_var;} ;;
15812 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15813 *${as_nl}ac_space
=\
*)
15814 # `set' does not quote correctly, so add quotes: double-quote
15815 # substitution turns \\\\ into \\, and sed turns \\ into \.
15818 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15821 # `set' quotes correctly as required by POSIX, so do not add quotes.
15822 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15831 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15833 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15835 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15836 if test -w "$cache_file"; then
15837 test "x$cache_file" != "x/dev/null" &&
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15839 $as_echo "$as_me: updating cache $cache_file" >&6;}
15840 cat confcache
>$cache_file
15842 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15843 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15848 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15849 # Let make expand exec_prefix.
15850 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15852 DEFS
=-DHAVE_CONFIG_H
15856 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15857 # 1. Remove the extension, and $U if already installed.
15858 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15859 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15860 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15861 # will be set to the directory where LIBOBJS objects are built.
15862 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15863 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15865 LIBOBJS
=$ac_libobjs
15867 LTLIBOBJS
=$ac_ltlibobjs
15870 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15871 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
15872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15874 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
15875 as_fn_error
"conditional \"GMAKE\" was never defined.
15876 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15878 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
15879 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
15880 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15885 if test -n "$gl_LIBOBJS"; then
15886 # Remove the extension.
15887 sed_drop_objext
='s/\.o$//;s/\.obj$//'
15888 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
15889 gl_libobjs
="$gl_libobjs $i.$ac_objext"
15890 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
15893 gl_LIBOBJS
=$gl_libobjs
15895 gl_LTLIBOBJS
=$gl_ltlibobjs
15901 if test -n "$gltests_LIBOBJS"; then
15902 # Remove the extension.
15903 sed_drop_objext
='s/\.o$//;s/\.obj$//'
15904 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
15905 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
15906 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
15909 gltests_LIBOBJS
=$gltests_libobjs
15911 gltests_LTLIBOBJS
=$gltests_ltlibobjs
15914 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15915 as_fn_error
"conditional \"AMDEP\" was never defined.
15916 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15918 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15919 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
15920 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15922 if test -n "$EXEEXT"; then
15924 am__EXEEXT_FALSE
='#'
15926 am__EXEEXT_TRUE
='#'
15932 : ${CONFIG_STATUS=./config.status}
15934 ac_clean_files_save
=$ac_clean_files
15935 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15937 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15939 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15941 # Generated by $as_me.
15942 # Run this file to recreate the current configuration.
15943 # Compiler output produced by configure, useful for debugging
15944 # configure, is in config.log if it exists.
15947 ac_cs_recheck=false
15950 SHELL=\${CONFIG_SHELL-$SHELL}
15953 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15954 ## -------------------- ##
15955 ## M4sh Initialization. ##
15956 ## -------------------- ##
15958 # Be more Bourne compatible
15959 DUALCASE
=1; export DUALCASE
# for MKS sh
15960 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15963 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15964 # is contrary to our usage. Disable this feature.
15965 alias -g '${1+"$@"}'='"$@"'
15966 setopt NO_GLOB_SUBST
15968 case `(set -o) 2>/dev/null` in #(
15980 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15981 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15982 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15983 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15984 # Prefer a ksh shell builtin over an external printf program on Solaris,
15985 # but without wasting forks for bash or zsh.
15986 if test -z "$BASH_VERSION$ZSH_VERSION" \
15987 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15988 as_echo='print
-r --'
15989 as_echo_n='print
-rn --'
15990 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15991 as_echo='printf %s
\n'
15992 as_echo_n='printf %s
'
15994 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15995 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15996 as_echo_n='/usr
/ucb
/echo -n'
15998 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15999 as_echo_n_body='eval
16003 expr "X$arg" : "X\\(.*\\)$as_nl";
16004 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16006 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
16008 export as_echo_n_body
16009 as_echo_n='sh
-c $as_echo_n_body as_echo
'
16011 export as_echo_body
16012 as_echo='sh
-c $as_echo_body as_echo
'
16015 # The user is always right.
16016 if test "${PATH_SEPARATOR+set}" != set; then
16018 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16019 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16026 # We need space, tab and new line, in precisely that order. Quoting is
16027 # there to prevent editors from complaining about space-tab.
16028 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16029 # splitting by setting IFS to empty value.)
16032 # Find who we are. Look in the path if we contain no directory separator.
16034 *[\\/]* ) as_myself=$0 ;;
16035 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16036 for as_dir in $PATH
16039 test -z "$as_dir" && as_dir=.
16040 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16046 # We did not find ourselves, most probably we were run as `sh COMMAND'
16047 # in which case we are not to be found in the path.
16048 if test "x$as_myself" = x
; then
16051 if test ! -f "$as_myself"; then
16052 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16056 # Unset variables that we do not need and which cause bugs (e.g. in
16057 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16058 # suppresses any "Segmentation fault" message there. '((' could
16059 # trigger a bug in pdksh 5.2.14.
16060 for as_var
in BASH_ENV ENV MAIL MAILPATH
16061 do eval test x\
${$as_var+set} = xset \
16062 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
16075 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
16078 # as_fn_error ERROR [LINENO LOG_FD]
16079 # ---------------------------------
16080 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16081 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16082 # script with status $?, using 1 if that was 0.
16085 as_status
=$?
; test $as_status -eq 0 && as_status
=1
16087 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
16088 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16090 $as_echo "$as_me: error: $1" >&2
16091 as_fn_exit
$as_status
16095 # as_fn_set_status STATUS
16096 # -----------------------
16097 # Set $? to STATUS, without forking.
16098 as_fn_set_status
()
16101 } # as_fn_set_status
16103 # as_fn_exit STATUS
16104 # -----------------
16105 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16109 as_fn_set_status
$1
16115 # Portably unset VAR.
16118 { eval $1=; unset $1;}
16120 as_unset
=as_fn_unset
16121 # as_fn_append VAR VALUE
16122 # ----------------------
16123 # Append the text in VALUE to the end of the definition contained in VAR. Take
16124 # advantage of any shell optimizations that allow amortized linear growth over
16125 # repeated appends, instead of the typical quadratic growth present in naive
16127 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
16128 eval 'as_fn_append ()
16139 # as_fn_arith ARG...
16140 # ------------------
16141 # Perform arithmetic evaluation on the ARGs, and store the result in the
16142 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16143 # must be portable across $(()) and expr.
16144 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
16145 eval 'as_fn_arith ()
16152 as_val
=`expr "$@" || test $? -eq 1`
16157 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16158 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16164 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16165 as_basename
=basename
16170 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16176 as_me
=`$as_basename -- "$0" ||
16177 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16178 X"$0" : 'X\(//\)$' \| \
16179 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16181 sed '/^.*\/\([^/][^/]*\)\/*$/{
16195 # Avoid depending upon Character Ranges.
16196 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16197 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16198 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16199 as_cr_digits
='0123456789'
16200 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16202 ECHO_C
= ECHO_N
= ECHO_T
=
16203 case `echo -n x` in #(((((
16205 case `echo 'xy\c'` in
16206 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16208 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16215 rm -f conf$$ conf$$.exe conf$$.
file
16216 if test -d conf$$.dir
; then
16217 rm -f conf$$.dir
/conf$$.
file
16220 mkdir conf$$.dir
2>/dev
/null
16222 if (echo >conf$$.
file) 2>/dev
/null
; then
16223 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16225 # ... but there are two gotchas:
16226 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16227 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16228 # In both cases, we have to default to `cp -p'.
16229 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16231 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16239 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16240 rmdir conf$$.dir
2>/dev
/null
16245 # Create "$as_dir" as a directory, including parents if necessary.
16250 -*) as_dir
=.
/$as_dir;;
16252 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16256 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16257 *) as_qdir
=$as_dir;;
16259 as_dirs
="'$as_qdir' $as_dirs"
16260 as_dir
=`$as_dirname -- "$as_dir" ||
16261 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16262 X"$as_dir" : 'X\(//\)[^/]' \| \
16263 X"$as_dir" : 'X\(//\)$' \| \
16264 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16265 $as_echo X"$as_dir" |
16266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16270 /^X\(\/\/\)[^/].*/{
16283 test -d "$as_dir" && break
16285 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16286 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
16290 if mkdir
-p .
2>/dev
/null
; then
16291 as_mkdir_p
='mkdir -p "$as_dir"'
16293 test -d .
/-p && rmdir .
/-p
16297 if test -x / >/dev
/null
2>&1; then
16298 as_test_x
='test -x'
16300 if ls -dL / >/dev
/null
2>&1; then
16307 if test -d "$1"; then
16313 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16314 ???[sx]*):;;*)false;;esac;fi
16318 as_executable_p
=$as_test_x
16320 # Sed expression to map a string onto a valid CPP name.
16321 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16323 # Sed expression to map a string onto a valid variable name.
16324 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16328 ## ----------------------------------- ##
16329 ## Main body of $CONFIG_STATUS script. ##
16330 ## ----------------------------------- ##
16332 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16335 # Save the log message, to keep $0 and so on meaningful, and to
16336 # report actual input values of CONFIG_FILES etc. instead of their
16337 # values after options handling.
16339 This file was extended by $as_me, which was
16340 generated by GNU Autoconf 2.64. Invocation command line was
16342 CONFIG_FILES = $CONFIG_FILES
16343 CONFIG_HEADERS = $CONFIG_HEADERS
16344 CONFIG_LINKS = $CONFIG_LINKS
16345 CONFIG_COMMANDS = $CONFIG_COMMANDS
16348 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16353 case $ac_config_files in *"
16354 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16357 case $ac_config_headers in *"
16358 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16362 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16363 # Files that config.status was made for.
16364 config_files="$ac_config_files"
16365 config_headers="$ac_config_headers"
16366 config_links="$ac_config_links"
16367 config_commands="$ac_config_commands"
16371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16373 \`$as_me' instantiates files and other configuration actions
16374 from templates according to the current configuration. Unless the files
16375 and actions are specified as TAGs, all are instantiated by default.
16377 Usage: $0 [OPTION]... [TAG]...
16379 -h, --help print this help, then exit
16380 -V, --version print version number and configuration settings, then exit
16381 -q, --quiet, --silent
16382 do not print progress messages
16383 -d, --debug don't remove temporary files
16384 --recheck update $as_me by reconfiguring in the same conditions
16385 --file=FILE[:TEMPLATE]
16386 instantiate the configuration file FILE
16387 --header=FILE[:TEMPLATE]
16388 instantiate the configuration header FILE
16390 Configuration files:
16393 Configuration headers:
16396 Configuration links:
16399 Configuration commands:
16402 Report bugs to the package provider."
16405 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16408 configured by $0, generated by GNU Autoconf 2.64,
16409 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16411 Copyright (C) 2009 Free Software Foundation, Inc.
16412 This config.status script is free software; the Free Software Foundation
16413 gives unlimited permission to copy, distribute and modify it."
16420 test -n "\$AWK" || AWK=awk
16423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16424 # The default lists apply if the user does not specify any file.
16430 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16431 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16442 # Handling of the options.
16443 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16445 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16446 $as_echo "$ac_cs_version"; exit ;;
16447 --debug |
--debu |
--deb |
--de |
--d |
-d )
16449 --file |
--fil |
--fi |
--f )
16452 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16454 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16455 ac_need_defaults
=false
;;
16456 --header |
--heade |
--head |
--hea )
16459 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16461 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
16462 ac_need_defaults
=false
;;
16464 # Conflict between --help and --header
16465 as_fn_error
"ambiguous option: \`$1'
16466 Try \`$0 --help' for more information.";;
16467 --help |
--hel |
-h )
16468 $as_echo "$ac_cs_usage"; exit ;;
16469 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16470 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16473 # This is an error.
16474 -*) as_fn_error
"unrecognized option: \`$1'
16475 Try \`$0 --help' for more information." ;;
16477 *) as_fn_append ac_config_targets
" $1"
16478 ac_need_defaults
=false
;;
16484 ac_configure_extra_args
=
16486 if $ac_cs_silent; then
16488 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16492 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16493 if \$ac_cs_recheck; then
16494 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16496 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16497 CONFIG_SHELL='$SHELL'
16498 export CONFIG_SHELL
16503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16507 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16508 ## Running $as_me. ##
16514 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16518 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16519 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16523 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16525 # Handling of arguments.
16526 for ac_config_target
in $ac_config_targets
16528 case $ac_config_target in
16529 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
16530 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
16531 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
16532 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
16533 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16534 ".gdbinit") CONFIG_FILES
="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
16535 "gnulib/Makefile") CONFIG_FILES
="$CONFIG_FILES gnulib/Makefile" ;;
16536 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
16538 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16543 # If the user did not use the arguments to specify the items to instantiate,
16544 # then the envvar interface is used. Set only those that are not.
16545 # We use the long form for the default assignment because of an extremely
16546 # bizarre bug on SunOS 4.1.3.
16547 if $ac_need_defaults; then
16548 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16549 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16550 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
16551 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16554 # Have a temporary directory for convenience. Make it in the build tree
16555 # simply because there is no reason against having it here, and in addition,
16556 # creating and moving files from /tmp can sometimes cause problems.
16557 # Hook for its removal unless debugging.
16558 # Note that there is a small window in which the directory will not be cleaned:
16559 # after its creation but before its name has been assigned to `$tmp'.
16563 trap 'exit_status=$?
16564 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16566 trap 'as_fn_exit 1' 1 2 13 15
16568 # Create a (secure) tmp directory for tmp files.
16571 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16572 test -n "$tmp" && test -d "$tmp"
16575 tmp
=.
/conf$$
-$RANDOM
16576 (umask 077 && mkdir
"$tmp")
16577 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
16579 # Set up the scripts for CONFIG_FILES section.
16580 # No need to generate them if there are no CONFIG_FILES.
16581 # This happens for instance with `./config.status config.h'.
16582 if test -n "$CONFIG_FILES"; then
16584 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
16585 ac_cs_awk_getline
=:
16586 ac_cs_awk_pipe_init
=
16587 ac_cs_awk_read_file
='
16588 while ((getline aline < (F[key])) > 0)
16591 ac_cs_awk_pipe_fini
=
16593 ac_cs_awk_getline
=false
16594 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
16595 ac_cs_awk_read_file
='
16597 print "cat " F[key] " &&"
16598 '$ac_cs_awk_pipe_init
16599 # The final `:' finishes the AND list.
16600 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
16602 ac_cr
=`echo X | tr X '\015'`
16603 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16604 # But we know of no other shell where ac_cr would be empty at this
16605 # point, so we can use a bashism as a fallback.
16606 if test "x$ac_cr" = x
; then
16607 eval ac_cr
=\$
\'\\r
\'
16609 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16610 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16613 ac_cs_awk_cr
=$ac_cr
16616 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16619 # Create commands to substitute file output variables.
16621 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16622 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16623 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
16626 } >conf$
$files.sh
&&
16627 . .
/conf$
$files.sh ||
16628 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
16629 rm -f conf$
$files.sh
16632 echo "cat >conf$$subs.awk <<_ACEOF" &&
16633 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16635 } >conf$$subs.sh ||
16636 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16637 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16639 for ac_last_try in false false false false false :; do
16640 . ./conf$$subs.sh ||
16641 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16643 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16644 if test $ac_delim_n = $ac_delim_num; then
16646 elif $ac_last_try; then
16647 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16649 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16652 rm -f conf$$subs.sh
16654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16655 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
16659 s/^/S["/; s
/!.
*/"]=/
16669 s/\(.\{148\}\).*/\1/
16671 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16676 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16683 s/\(.\{148\}\).*/\1/
16685 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16689 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16694 ' <conf$$subs.awk | sed '
16699 ' >>$CONFIG_STATUS || ac_write_fail=1
16700 rm -f conf$$subs.awk
16701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16703 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
16704 for (key in S) S_is_set[key] = 1
16706 \$ac_cs_awk_pipe_init
16710 nfields = split(line, field, "@
")
16712 len = length(field[1])
16713 for (i = 2; i < nfields; i++) {
16715 keylen = length(key)
16716 if (S_is_set[key]) {
16718 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16719 len += length(value) + length(field[++i])
16724 if (nfields == 3 && !substed) {
16726 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16727 \$ac_cs_awk_read_file
16733 \$ac_cs_awk_pipe_fini
16736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16737 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16738 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16741 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
16742 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
16745 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16746 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
16747 # trailing colons and then remove the whole line if VPATH becomes empty
16748 # (actually we leave an empty line to preserve line numbers).
16749 if test "x
$srcdir" = x.; then
16750 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16751 s/:*\$(srcdir):*/:/
16752 s/:*\${srcdir}:*/:/
16754 s/^\([^=]*=[ ]*\):*/\1/
16760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16761 fi # test -n "$CONFIG_FILES"
16763 # Set up the scripts for CONFIG_HEADERS section.
16764 # No need to generate them if there are no CONFIG_HEADERS.
16765 # This happens for instance with `./config.status Makefile'.
16766 if test -n "$CONFIG_HEADERS"; then
16767 cat >"$tmp/defines.
awk" <<\_ACAWK ||
16771 # Transform confdefs.h into an awk script `defines.awk', embedded as
16772 # here-document in config.status, that substitutes the proper values into
16773 # config.h.in to produce config.h.
16775 # Create a delimiter string that does not exist in confdefs.h, to ease
16776 # handling of long lines.
16778 for ac_last_try in false false :; do
16779 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
16780 if test -z "$ac_t"; then
16782 elif $ac_last_try; then
16783 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
16785 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16789 # For the awk script, D is an array of macro values keyed by name,
16790 # likewise P contains macro parameters if any. Preserve backslash
16791 # newline sequences.
16793 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16795 s/.\{148\}/&'"$ac_delim"'/g
16798 s/^[ ]*#[ ]*define[ ][ ]*/ /
16805 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16807 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16811 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16812 D["\
1"]=" \
3\\\\\\n
"\\/p
16814 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16819 s/.\{148\}/&'"$ac_delim"'/g
16824 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16827 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16829 ' <confdefs.h | sed '
16830 s/'"$ac_delim"'/"\\\
16831 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16834 for (key in D) D_is_set[key] = 1
16837 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16839 split(line, arg, " ")
16840 if (arg[1] == "#") {
16844 defundef
= substr
(arg
[1], 2)
16847 split(mac1
, mac2
, "(") #)
16849 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16850 if (D_is_set
[macro
]) {
16851 # Preserve the white space surrounding the "#".
16852 print prefix
"define", macro P
[macro
] D
[macro
]
16855 # Replace #undef with comments. This is necessary, for example,
16856 # in the case of _POSIX_SOURCE, which is predefined and required
16857 # on some systems where configure will not decide to define it.
16858 if (defundef
== "undef") {
16859 print
"/*", prefix defundef
, macro
, "*/"
16867 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16868 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
16869 fi # test -n "$CONFIG_HEADERS"
16872 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16877 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16879 case $ac_mode$ac_tag in
16881 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16882 :[FH
]-) ac_tag
=-:-;;
16883 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16900 -) ac_f
="$tmp/stdin";;
16901 *) # Look for the file first in the build tree, then in the source tree
16902 # (if the path is not absolute). The absolute path cannot be DOS-style,
16903 # because $ac_f cannot contain `:'.
16907 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16909 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
16911 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16912 as_fn_append ac_file_inputs
" '$ac_f'"
16915 # Let's still pretend it is `configure' which instantiates (i.e., don't
16916 # use $as_me), people would be surprised to read:
16917 # /* config.h. Generated by config.status. */
16918 configure_input
='Generated from '`
16919 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16921 if test x
"$ac_file" != x-
; then
16922 configure_input
="$ac_file. $configure_input"
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16924 $as_echo "$as_me: creating $ac_file" >&6;}
16926 # Neutralize special characters interpreted by sed in replacement strings.
16927 case $configure_input in #(
16928 *\
&* |
*\|
* |
*\\* )
16929 ac_sed_conf_input
=`$as_echo "$configure_input" |
16930 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16931 *) ac_sed_conf_input
=$configure_input;;
16935 *:-:* |
*:-) cat >"$tmp/stdin" \
16936 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
16941 ac_dir
=`$as_dirname -- "$ac_file" ||
16942 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16943 X"$ac_file" : 'X\(//\)[^/]' \| \
16944 X"$ac_file" : 'X\(//\)$' \| \
16945 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16946 $as_echo X"$ac_file" |
16947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16951 /^X\(\/\/\)[^/].*/{
16964 as_dir
="$ac_dir"; as_fn_mkdir_p
16968 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16970 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16971 # A ".." for each directory in $ac_dir_suffix.
16972 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16973 case $ac_top_builddir_sub in
16974 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16975 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16978 ac_abs_top_builddir
=$ac_pwd
16979 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16980 # for backward compatibility:
16981 ac_top_builddir
=$ac_top_build_prefix
16984 .
) # We are building in place.
16986 ac_top_srcdir
=$ac_top_builddir_sub
16987 ac_abs_top_srcdir
=$ac_pwd ;;
16988 [\\/]* | ?
:[\\/]* ) # Absolute name.
16989 ac_srcdir
=$srcdir$ac_dir_suffix;
16990 ac_top_srcdir
=$srcdir
16991 ac_abs_top_srcdir
=$srcdir ;;
16992 *) # Relative name.
16993 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16994 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16995 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16997 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17007 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17008 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
17010 ac_MKDIR_P
=$MKDIR_P
17012 [\\/$
]* | ?
:[\\/]* ) ;;
17013 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
17017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17018 # If the template does not know about datarootdir, expand it.
17019 # FIXME: This hack should be removed a few years after 2.60.
17020 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17031 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17032 *datarootdir
*) ac_datarootdir_seen
=yes;;
17033 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17035 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17037 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17038 ac_datarootdir_hack='
17039 s&@datadir@&$datadir&g
17040 s&@docdir@&$docdir&g
17041 s&@infodir@&$infodir&g
17042 s&@localedir@&$localedir&g
17043 s&@mandir@&$mandir&g
17044 s&\\\${datarootdir}&$datarootdir&g' ;;
17048 # Neutralize VPATH when `$srcdir' = `.'.
17049 # Shell code in configure.ac might set extrasub.
17050 # FIXME: do we really want to maintain this feature?
17051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17052 ac_sed_extra="$ac_vpsub
17055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17057 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17058 s|@configure_input@|
$ac_sed_conf_input|
;t t
17059 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17060 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17061 s
&@srcdir@
&$ac_srcdir&;t t
17062 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17063 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17064 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17065 s
&@builddir@
&$ac_builddir&;t t
17066 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17067 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17068 s
&@INSTALL@
&$ac_INSTALL&;t t
17069 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
17070 $ac_datarootdir_hack
17072 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17073 if $ac_cs_awk_getline; then
17074 $AWK -f "$tmp/subs.
awk"
17076 $AWK -f "$tmp/subs.
awk" | $SHELL
17078 || as_fn_error "could not create
$ac_file" "$LINENO" 5
17080 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17081 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
17082 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
17083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17084 which seems to be undefined. Please make sure it is defined." >&5
17085 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17086 which seems to be undefined. Please make sure it is defined." >&2;}
17090 -) cat "$tmp/out" && rm -f "$tmp/out";;
17091 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17093 || as_fn_error "could not create $ac_file" "$LINENO" 5
17099 if test x"$ac_file" != x-; then
17101 $as_echo "/* $configure_input */" \
17102 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17103 } >"$tmp/config.h" \
17104 || as_fn_error "could not create $ac_file" "$LINENO" 5
17105 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17107 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17110 mv "$tmp/config.h" "$ac_file" \
17111 || as_fn_error "could not create $ac_file" "$LINENO" 5
17114 $as_echo "/* $configure_input */" \
17115 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17116 || as_fn_error "could not create -" "$LINENO" 5
17118 # Compute "$ac_file"'s index
in $config_headers.
17121 for _am_header
in $config_headers :; do
17122 case $_am_header in
17123 $_am_arg |
$_am_arg:* )
17126 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
17129 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17130 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17131 X"$_am_arg" : 'X\(//\)[^/]' \| \
17132 X"$_am_arg" : 'X\(//\)$' \| \
17133 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17134 $as_echo X"$_am_arg" |
17135 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17139 /^X\(\/\/\)[^/].*/{
17151 s/.*/./; q'`/stamp-h
$_am_stamp_count
17158 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17161 # Prefer the file from the source tree if names are identical.
17162 if test "$ac_source" = "$ac_file" ||
test ! -r "$ac_source"; then
17163 ac_source
=$srcdir/$ac_source
17166 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17167 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17169 if test ! -r "$ac_source"; then
17170 as_fn_error
"$ac_source: file not found" "$LINENO" 5
17174 # Try a relative symlink, then a hard link, then a copy.
17176 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$ac_source ;;
17177 *) ac_rel_source
=$ac_top_build_prefix$ac_source ;;
17179 ln -s "$ac_rel_source" "$ac_file" 2>/dev
/null ||
17180 ln "$ac_source" "$ac_file" 2>/dev
/null ||
17181 cp -p "$ac_source" "$ac_file" ||
17182 as_fn_error
"cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17185 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17186 $as_echo "$as_me: executing $ac_file commands" >&6;}
17191 case $ac_file$ac_mode in
17192 "depdir":C
) $SHELL $ac_aux_dir/mkinstalldirs
$DEPDIR ;;
17193 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
17194 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17195 # are listed without --file. Let's play safe and only enable the eval
17196 # if we detect the quoting.
17197 case $CONFIG_FILES in
17198 *\'*) eval set x
"$CONFIG_FILES" ;;
17199 *) set x
$CONFIG_FILES ;;
17204 # Strip MF so we end up with the name of the file.
17205 mf
=`echo "$mf" | sed -e 's/:.*$//'`
17206 # Check whether this is an Automake generated Makefile or not.
17207 # We used to match only the files named `Makefile.in', but
17208 # some people rename them; so instead we look at the file content.
17209 # Grep'ing the first line is not enough: some people post-process
17210 # each Makefile.in and add a new line on top of each file to say so.
17211 # Grep'ing the whole file is not good either: AIX grep has a line
17212 # limit of 2048, but all sed's we know have understand at least 4000.
17213 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
17214 dirpart
=`$as_dirname -- "$mf" ||
17215 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17216 X"$mf" : 'X\(//\)[^/]' \| \
17217 X"$mf" : 'X\(//\)$' \| \
17218 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17224 /^X\(\/\/\)[^/].*/{
17240 # Extract the definition of DEPDIR, am__include, and am__quote
17241 # from the Makefile without running `make'.
17242 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
17243 test -z "$DEPDIR" && continue
17244 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
17245 test -z "am__include" && continue
17246 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
17247 # When using ansi2knr, U may be empty or an underscore; expand it
17248 U
=`sed -n 's/^U = //p' < "$mf"`
17249 # Find all dependency output files, they are included files with
17250 # $(DEPDIR) in their names. We invoke sed twice because it is the
17251 # simplest approach to changing $(DEPDIR) to its actual value in the
17253 for file in `sed -n "
17254 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17255 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17256 # Make sure the directory exists.
17257 test -f "$dirpart/$file" && continue
17258 fdir
=`$as_dirname -- "$file" ||
17259 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17260 X"$file" : 'X\(//\)[^/]' \| \
17261 X"$file" : 'X\(//\)$' \| \
17262 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17263 $as_echo X"$file" |
17264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17268 /^X\(\/\/\)[^/].*/{
17281 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
17282 # echo "creating $dirpart/$file"
17283 echo '# dummy' > "$dirpart/$file"
17289 case x
$CONFIG_HEADERS in
17290 xconfig.h
:config.
in)
17301 ac_clean_files
=$ac_clean_files_save
17303 test $ac_write_fail = 0 ||
17304 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
17307 # configure is writing to config.log, and then calls config.status.
17308 # config.status does its own redirection, appending to config.log.
17309 # Unfortunately, on DOS this fails, as config.log is still kept open
17310 # by configure, so config.status won't be able to write to it; its
17311 # output is simply discarded. So we exec the FD to /dev/null,
17312 # effectively closing config.log, so it can be properly (re)opened and
17313 # appended to by config.status. When coming back to configure, we
17314 # need to make the FD available again.
17315 if test "$no_create" != yes; then
17317 ac_config_status_args
=
17318 test "$silent" = yes &&
17319 ac_config_status_args
="$ac_config_status_args --quiet"
17321 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17323 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17324 # would make configure fail if this is the last instruction.
17325 $ac_cs_success || as_fn_exit $?
17329 # CONFIG_SUBDIRS section.
17331 if test "$no_recursion" != yes; then
17333 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17334 # so they do not pile up.
17335 ac_sub_configure_args
=
17337 eval "set x $ac_configure_args"
17341 if test -n "$ac_prev"; then
17346 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
17347 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
17348 ac_prev
=cache_file
;;
17349 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
17350 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
17353 --config-cache |
-C)
17355 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
17357 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
17359 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
17361 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
17363 --disable-option-checking)
17367 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17369 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
17373 # Always prepend --prefix to ensure using the same prefix
17374 # in subdir configurations.
17375 ac_arg
="--prefix=$prefix"
17377 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17379 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
17382 if test "$silent" = yes; then
17383 ac_sub_configure_args
="--silent $ac_sub_configure_args"
17386 # Always prepend --disable-option-checking to silence warnings, since
17387 # different subdirs can have different --enable and --with options.
17388 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
17391 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
17393 # Do not complain, so a configure script can configure whichever
17394 # parts of a large source tree are present.
17395 test -d "$srcdir/$ac_dir" ||
continue
17397 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17398 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17399 $as_echo "$ac_msg" >&6
17400 as_dir
="$ac_dir"; as_fn_mkdir_p
17404 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17406 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17407 # A ".." for each directory in $ac_dir_suffix.
17408 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17409 case $ac_top_builddir_sub in
17410 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17411 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17414 ac_abs_top_builddir
=$ac_pwd
17415 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17416 # for backward compatibility:
17417 ac_top_builddir
=$ac_top_build_prefix
17420 .
) # We are building in place.
17422 ac_top_srcdir
=$ac_top_builddir_sub
17423 ac_abs_top_srcdir
=$ac_pwd ;;
17424 [\\/]* | ?
:[\\/]* ) # Absolute name.
17425 ac_srcdir
=$srcdir$ac_dir_suffix;
17426 ac_top_srcdir
=$srcdir
17427 ac_abs_top_srcdir
=$srcdir ;;
17428 *) # Relative name.
17429 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17430 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17431 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17433 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17438 # Check for guested configure; otherwise get Cygnus style configure.
17439 if test -f "$ac_srcdir/configure.gnu"; then
17440 ac_sub_configure
=$ac_srcdir/configure.gnu
17441 elif test -f "$ac_srcdir/configure"; then
17442 ac_sub_configure
=$ac_srcdir/configure
17443 elif test -f "$ac_srcdir/configure.in"; then
17444 # This should be Cygnus configure.
17445 ac_sub_configure
=$ac_aux_dir/configure
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17448 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17452 # The recursion is here.
17453 if test -n "$ac_sub_configure"; then
17454 # Make the cache file name correct relative to the subdirectory.
17455 case $cache_file in
17456 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
17457 *) # Relative name.
17458 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
17461 { $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
17462 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17463 # The eval makes quoting arguments work.
17464 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17465 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17466 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17472 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
17473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17474 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}