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 include python support (auto/yes/no/<path>)
1662 --without-included-regex
1663 don't use included regex
; this is the default on
1664 systems with version
2 of the GNU C library
(use
1665 with caution on other system
)
1666 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1667 --with-system-gdbinit=PATH
1668 automatically load a system-wide gdbinit
file
1669 --with-tcl directory containing tcl configuration
(tclConfig.sh
)
1670 --with-tk directory containing tk configuration
(tkConfig.sh
)
1671 --with-x use the X Window System
1673 Some influential environment variables
:
1674 CC C compiler
command
1675 CFLAGS C compiler flags
1676 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1677 nonstandard directory
<lib dir
>
1678 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1679 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1680 you have headers
in a nonstandard directory
<include dir
>
1682 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1683 the first program found out of: `bison
-y', `byacc', `yacc'.
1684 YFLAGS The list of arguments that will be passed by default to $YACC.
1685 This script will default YFLAGS to the empty string to avoid a
1686 default value of `-d' given by some make applications.
1687 XMKMF Path to xmkmf, Makefile generator for X Window System
1689 Use these variables to override the choices made by `configure' or to
help
1690 it to
find libraries and programs with nonstandard names
/locations.
1692 Report bugs to the package provider.
1697 if test "$ac_init_help" = "recursive"; then
1698 # If there are subdirs, report their specific --help.
1699 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1700 test -d "$ac_dir" ||
1701 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1706 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1708 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1709 # A ".." for each directory in $ac_dir_suffix.
1710 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1711 case $ac_top_builddir_sub in
1712 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1713 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1716 ac_abs_top_builddir
=$ac_pwd
1717 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1718 # for backward compatibility:
1719 ac_top_builddir
=$ac_top_build_prefix
1722 .
) # We are building in place.
1724 ac_top_srcdir
=$ac_top_builddir_sub
1725 ac_abs_top_srcdir
=$ac_pwd ;;
1726 [\\/]* | ?
:[\\/]* ) # Absolute name.
1727 ac_srcdir
=$srcdir$ac_dir_suffix;
1728 ac_top_srcdir
=$srcdir
1729 ac_abs_top_srcdir
=$srcdir ;;
1731 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1732 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1733 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1735 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1737 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1738 # Check for guested configure.
1739 if test -f "$ac_srcdir/configure.gnu"; then
1741 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1742 elif test -f "$ac_srcdir/configure"; then
1744 $SHELL "$ac_srcdir/configure" --help=recursive
1746 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1748 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1752 test -n "$ac_init_help" && exit $ac_status
1753 if $ac_init_version; then
1756 generated by GNU Autoconf
2.64
1758 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1759 This configure
script is free software
; the Free Software Foundation
1760 gives unlimited permission to copy
, distribute and modify it.
1765 ## ------------------------ ##
1766 ## Autoconf initialization. ##
1767 ## ------------------------ ##
1769 # ac_fn_c_try_compile LINENO
1770 # --------------------------
1771 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1772 ac_fn_c_try_compile
()
1774 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1775 rm -f conftest.
$ac_objext
1776 if { { ac_try
="$ac_compile"
1778 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782 $as_echo "$ac_try_echo"; } >&5
1783 (eval "$ac_compile") 2>conftest.err
1785 if test -s conftest.err; then
1786 grep -v '^ *+' conftest.err >conftest.er1
1787 cat conftest.er1 >&5
1788 mv -f conftest.er1 conftest.err
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } && {
1792 test -z "$ac_c_werror_flag" ||
1793 test ! -s conftest.err
1794 } && test -s conftest.$ac_objext; then :
1797 $as_echo "$as_me: failed program was:" >&5
1798 sed 's/^/| /' conftest.$ac_ext >&5
1802 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1805 } # ac_fn_c_try_compile
1807 # ac_fn_c_try_cpp LINENO
1808 # ----------------------
1809 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 if { { ac_try="$ac_cpp conftest.$ac_ext"
1815 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1816 *) ac_try_echo
=$ac_try;;
1818 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 $as_echo "$ac_try_echo"; } >&5
1820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1822 if test -s conftest.err
; then
1823 grep -v '^ *+' conftest.err
>conftest.er1
1824 cat conftest.er1
>&5
1825 mv -f conftest.er1 conftest.err
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } >/dev
/null
&& {
1829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1830 test ! -s conftest.err
1834 $as_echo "$as_me: failed program was:" >&5
1835 sed 's/^/| /' conftest.
$ac_ext >&5
1839 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1844 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1845 # -------------------------------------------------------
1846 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1847 # the include files in INCLUDES and setting the cache variable VAR
1849 ac_fn_c_check_header_mongrel
()
1851 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1852 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854 $as_echo_n "checking for $2... " >&6; }
1855 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1856 $as_echo_n "(cached) " >&6
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860 $as_echo "$ac_res" >&6; }
1862 # Is the header compilable?
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1864 $as_echo_n "checking $2 usability... " >&6; }
1865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1870 if ac_fn_c_try_compile
"$LINENO"; then :
1871 ac_header_compiler
=yes
1873 ac_header_compiler
=no
1875 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1877 $as_echo "$ac_header_compiler" >&6; }
1879 # Is the header present?
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1881 $as_echo_n "checking $2 presence... " >&6; }
1882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h. */
1886 if ac_fn_c_try_cpp
"$LINENO"; then :
1887 ac_header_preproc
=yes
1889 ac_header_preproc
=no
1891 rm -f conftest.err conftest.
$ac_ext
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1893 $as_echo "$ac_header_preproc" >&6; }
1895 # So? What about this header?
1896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1899 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1901 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1905 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1907 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1909 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1911 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1913 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917 $as_echo_n "checking for $2... " >&6; }
1918 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1919 $as_echo_n "(cached) " >&6
1921 eval "$3=\$ac_header_compiler"
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925 $as_echo "$ac_res" >&6; }
1927 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1929 } # ac_fn_c_check_header_mongrel
1931 # ac_fn_c_try_run LINENO
1932 # ----------------------
1933 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1934 # that executables *can* be run.
1937 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1938 if { { ac_try
="$ac_link"
1940 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1941 *) ac_try_echo=$ac_try;;
1943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1944 $as_echo "$ac_try_echo"; } >&5
1945 (eval "$ac_link") 2>&5
1947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1948 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1949 { { case "(($ac_try" in
1950 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1951 *) ac_try_echo
=$ac_try;;
1953 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1954 $as_echo "$ac_try_echo"; } >&5
1955 (eval "$ac_try") 2>&5
1957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1958 test $ac_status = 0; }; }; then :
1961 $as_echo "$as_me: program exited with status $ac_status" >&5
1962 $as_echo "$as_me: failed program was:" >&5
1963 sed 's/^/| /' conftest.
$ac_ext >&5
1965 ac_retval
=$ac_status
1967 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1968 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1973 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1974 # -------------------------------------------------------
1975 # Tests whether HEADER exists and can be compiled using the include files in
1976 # INCLUDES, setting the cache variable VAR accordingly.
1977 ac_fn_c_check_header_compile
()
1979 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981 $as_echo_n "checking for $2... " >&6; }
1982 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1983 $as_echo_n "(cached) " >&6
1985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h. */
1990 if ac_fn_c_try_compile
"$LINENO"; then :
1995 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999 $as_echo "$ac_res" >&6; }
2000 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2002 } # ac_fn_c_check_header_compile
2004 # ac_fn_c_try_link LINENO
2005 # -----------------------
2006 # Try to link conftest.$ac_ext, and return whether this succeeded.
2009 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2010 rm -f conftest.
$ac_objext conftest
$ac_exeext
2011 if { { ac_try
="$ac_link"
2013 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2014 *) ac_try_echo=$ac_try;;
2016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2017 $as_echo "$ac_try_echo"; } >&5
2018 (eval "$ac_link") 2>conftest.err
2020 if test -s conftest.err; then
2021 grep -v '^ *+' conftest.err >conftest.er1
2022 cat conftest.er1 >&5
2023 mv -f conftest.er1 conftest.err
2025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2026 test $ac_status = 0; } && {
2027 test -z "$ac_c_werror_flag" ||
2028 test ! -s conftest.err
2029 } && test -s conftest$ac_exeext && {
2030 test "$cross_compiling" = yes ||
2031 $as_test_x conftest$ac_exeext
2035 $as_echo "$as_me: failed program was:" >&5
2036 sed 's/^/| /' conftest.$ac_ext >&5
2040 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2041 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2042 # interfere with the next link command; also delete a directory that is
2043 # left behind by Apple's compiler. We do this before executing the actions.
2044 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2045 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2048 } # ac_fn_c_try_link
2050 # ac_fn_c_check_func LINENO FUNC VAR
2051 # ----------------------------------
2052 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2053 ac_fn_c_check_func ()
2055 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2057 $as_echo_n "checking for $2... " >&6; }
2058 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2059 $as_echo_n "(cached) " >&6
2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h. */
2063 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2065 #define $2 innocuous_$2
2067 /* System header to define __stub macros and hopefully few prototypes,
2068 which can conflict with char $2 (); below.
2069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2070 <limits.h> exists even on freestanding compilers. */
2073 # include <limits.h>
2075 # include <assert.h>
2080 /* Override any GCC internal prototype to avoid an error.
2081 Use char because int might match the return type of a GCC
2082 builtin and then its argument prototype would still apply. */
2087 /* The GNU C library defines this for functions which it implements
2088 to always fail with ENOSYS. Some functions are actually named
2089 something starting with __ and the normal name is an alias. */
2090 #if defined __stub_$2 || defined __stub___$2
2102 if ac_fn_c_try_link "$LINENO"; then :
2107 rm -f core conftest.err conftest.$ac_objext \
2108 conftest$ac_exeext conftest.$ac_ext
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2112 $as_echo "$ac_res" >&6; }
2113 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2115 } # ac_fn_c_check_func
2117 # ac_fn_c_check_decl LINENO SYMBOL VAR
2118 # ------------------------------------
2119 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2120 ac_fn_c_check_decl ()
2122 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2124 $as_echo_n "checking whether $2 is declared... " >&6; }
2125 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2126 $as_echo_n "(cached) " >&6
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2142 if ac_fn_c_try_compile "$LINENO"; then :
2147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2151 $as_echo "$ac_res" >&6; }
2152 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2154 } # ac_fn_c_check_decl
2156 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2157 # --------------------------------------------
2158 # Tries to find the compile-time value of EXPR in a program that includes
2159 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2161 ac_fn_c_compute_int ()
2163 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2164 if test "$cross_compiling" = yes; then
2165 # Depending upon the size, compute the lo and hi bounds.
2166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167 /* end confdefs.h. */
2172 static int test_array [1 - 2 * !(($2) >= 0)];
2179 if ac_fn_c_try_compile "$LINENO"; then :
2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2188 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2195 if ac_fn_c_try_compile "$LINENO"; then :
2196 ac_hi=$ac_mid; break
2198 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2199 if test $ac_lo -le $ac_mid; then
2203 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h. */
2214 static int test_array [1 - 2 * !(($2) < 0)];
2221 if ac_fn_c_try_compile "$LINENO"; then :
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2230 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2237 if ac_fn_c_try_compile "$LINENO"; then :
2238 ac_lo=$ac_mid; break
2240 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2241 if test $ac_mid -le $ac_hi; then
2245 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2255 # Binary search between lo and hi bounds.
2256 while test "x$ac_lo" != "x$ac_hi"; do
2257 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259 /* end confdefs.h. */
2264 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2271 if ac_fn_c_try_compile "$LINENO"; then :
2274 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2279 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h. */
2286 static long int longval () { return $2; }
2287 static unsigned long int ulongval () { return $2; }
2294 FILE *f = fopen ("conftest.val", "w");
2299 long int i = longval ();
2302 fprintf (f, "%ld", i);
2306 unsigned long int i = ulongval ();
2309 fprintf (f, "%lu", i);
2311 /* Do not output a trailing newline, as this causes \r\n confusion
2312 on some platforms. */
2313 return ferror (f) || fclose (f) != 0;
2319 if ac_fn_c_try_run "$LINENO"; then :
2320 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2325 conftest.$ac_objext conftest.beam conftest.$ac_ext
2329 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2332 } # ac_fn_c_compute_int
2334 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2335 # ----------------------------------------------------
2336 # Tries to find if the field MEMBER exists in type AGGR, after including
2337 # INCLUDES, setting cache variable VAR accordingly.
2338 ac_fn_c_check_member ()
2340 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2342 $as_echo_n "checking for $2.$3... " >&6; }
2343 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2344 $as_echo_n "(cached) " >&6
2346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2347 /* end confdefs.h. */
2359 if ac_fn_c_try_compile "$LINENO"; then :
2362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2363 /* end confdefs.h. */
2369 if (sizeof ac_aggr.$3)
2375 if ac_fn_c_try_compile "$LINENO"; then :
2380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2386 $as_echo "$ac_res" >&6; }
2387 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2389 } # ac_fn_c_check_member
2391 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2392 # -------------------------------------------
2393 # Tests whether TYPE exists after having included INCLUDES, setting cache
2394 # variable VAR accordingly.
2395 ac_fn_c_check_type ()
2397 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2399 $as_echo_n "checking for $2... " >&6; }
2400 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2401 $as_echo_n "(cached) " >&6
2404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2405 /* end confdefs.h. */
2416 if ac_fn_c_try_compile "$LINENO"; then :
2417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2418 /* end confdefs.h. */
2429 if ac_fn_c_try_compile "$LINENO"; then :
2434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2440 $as_echo "$ac_res" >&6; }
2441 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2443 } # ac_fn_c_check_type
2444 cat >config.log <<_ACEOF
2445 This file contains any messages produced by compilers while
2446 running configure, to aid debugging if configure makes a mistake.
2448 It was created by $as_me, which was
2449 generated by GNU Autoconf 2.64. Invocation command line was
2461 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2462 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2463 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2464 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2465 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2467 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2468 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2470 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2471 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2472 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2473 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2474 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2475 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2476 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484 test -z "$as_dir" && as_dir=.
2485 $as_echo "PATH: $as_dir"
2501 # Keep a trace of the command line.
2502 # Strip out --no-create and --no-recursion so they do not pile up.
2503 # Strip out --silent because we don't want to record it for future runs.
2504 # Also quote any args containing shell meta-characters.
2505 # Make two passes to allow for proper duplicate-argument suppression.
2509 ac_must_keep_next=false
2515 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2516 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2517 | -silent | --silent | --silen | --sile | --sil)
2520 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2523 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2525 as_fn_append ac_configure_args1 " '$ac_arg'"
2526 if test $ac_must_keep_next = true; then
2527 ac_must_keep_next=false # Got value, back to normal.
2530 *=* | --config-cache | -C | -disable-* | --disable-* \
2531 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2532 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2533 | -with-* | --with-* | -without-* | --without-* | --x)
2534 case "$ac_configure_args0 " in
2535 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2538 -* ) ac_must_keep_next=true ;;
2541 as_fn_append ac_configure_args " '$ac_arg'"
2546 { ac_configure_args0=; unset ac_configure_args0;}
2547 { ac_configure_args1=; unset ac_configure_args1;}
2549 # When interrupted or exit'd, cleanup temporary files, and complete
2550 # config.log. We remove comments because anyway the quotes in there
2551 # would cause problems or look ugly.
2552 # WARNING: Use '\'' to represent an apostrophe within the trap.
2553 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2554 trap 'exit_status=$?
2555 # Save into config.log some information that might help in debugging.
2560 ## ---------------- ##
2561 ## Cache variables. ##
2562 ## ---------------- ##
2565 # The following way of writing the cache mishandles newlines in values,
2567 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2568 eval ac_val=\$$ac_var
2572 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2573 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2576 _ | IFS | as_nl) ;; #(
2577 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2578 *) { eval $ac_var=; unset $ac_var;} ;;
2583 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2584 *${as_nl}ac_space=\ *)
2586 "s/'\''/'\''\\\\'\'''\''/g;
2587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2590 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2598 ## ----------------- ##
2599 ## Output variables. ##
2600 ## ----------------- ##
2603 for ac_var in $ac_subst_vars
2605 eval ac_val=\$$ac_var
2607 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2609 $as_echo "$ac_var='\''$ac_val'\''"
2613 if test -n "$ac_subst_files"; then
2615 ## ------------------- ##
2616 ## File substitutions. ##
2617 ## ------------------- ##
2620 for ac_var in $ac_subst_files
2622 eval ac_val=\$$ac_var
2624 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2626 $as_echo "$ac_var='\''$ac_val'\''"
2631 if test -s confdefs.h; then
2641 test "$ac_signal" != 0 &&
2642 $as_echo "$as_me: caught signal $ac_signal"
2643 $as_echo "$as_me: exit $exit_status"
2645 rm -f core *.core core.conftest.* &&
2646 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2649 for ac_signal in 1 2 13 15; do
2650 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2654 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2655 rm -f -r conftest* confdefs.h
2657 $as_echo "/* confdefs.h */" > confdefs.h
2659 # Predefined preprocessor variables.
2661 cat >>confdefs.h <<_ACEOF
2662 #define PACKAGE_NAME "$PACKAGE_NAME"
2665 cat >>confdefs.h <<_ACEOF
2666 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2669 cat >>confdefs.h <<_ACEOF
2670 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2673 cat >>confdefs.h <<_ACEOF
2674 #define PACKAGE_STRING "$PACKAGE_STRING"
2677 cat >>confdefs.h <<_ACEOF
2678 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2681 cat >>confdefs.h <<_ACEOF
2682 #define PACKAGE_URL "$PACKAGE_URL"
2686 # Let the site file select an alternate cache file if it wants to.
2687 # Prefer an explicitly selected file to automatically selected ones.
2690 if test -n "$CONFIG_SITE"; then
2691 ac_site_file1=$CONFIG_SITE
2692 elif test "x$prefix" != xNONE; then
2693 ac_site_file1=$prefix/share/config.site
2694 ac_site_file2=$prefix/etc/config.site
2696 ac_site_file1=$ac_default_prefix/share/config.site
2697 ac_site_file2=$ac_default_prefix/etc/config.site
2699 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2701 test "x$ac_site_file" = xNONE && continue
2702 if test -r "$ac_site_file"; then
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2704 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2705 sed 's/^/| /' "$ac_site_file" >&5
2710 if test -r "$cache_file"; then
2711 # Some versions of bash will fail to source /dev/null (special
2712 # files actually), so we avoid doing that.
2713 if test -f "$cache_file"; then
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2715 $as_echo "$as_me: loading cache $cache_file" >&6;}
2717 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2718 *) . "./$cache_file";;
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2723 $as_echo "$as_me: creating cache $cache_file" >&6;}
2727 gl_header_list="$gl_header_list sys/mman.h"
2728 gl_func_list="$gl_func_list mprotect"
2729 gl_func_list="$gl_func_list memchr"
2730 gl_header_list="$gl_header_list stddef.h"
2731 gl_header_list="$gl_header_list stdint.h"
2732 gl_header_list="$gl_header_list wchar.h"
2733 gl_header_list="$gl_header_list string.h"
2734 # Check that the precious variables saved in the cache have kept the same
2736 ac_cache_corrupted=false
2737 for ac_var in $ac_precious_vars; do
2738 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2739 eval ac_new_set=\$ac_env_${ac_var}_set
2740 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2741 eval ac_new_val=\$ac_env_${ac_var}_value
2742 case $ac_old_set,$ac_new_set in
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2745 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2746 ac_cache_corrupted=: ;;
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2749 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2750 ac_cache_corrupted=: ;;
2753 if test "x$ac_old_val" != "x$ac_new_val"; then
2754 # differences in whitespace do not lead to failure.
2755 ac_old_val_w=`echo x
$ac_old_val`
2756 ac_new_val_w=`echo x
$ac_new_val`
2757 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2759 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2760 ac_cache_corrupted=:
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2763 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2764 eval $ac_var=\$ac_old_val
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2767 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2769 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2772 # Pass precious variables to config.status.
2773 if test "$ac_new_set" = set; then
2775 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2776 *) ac_arg=$ac_var=$ac_new_val ;;
2778 case " $ac_configure_args " in
2779 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2780 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2784 if $ac_cache_corrupted; then
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2788 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2789 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2791 ## -------------------- ##
2792 ## Main body of script. ##
2793 ## -------------------- ##
2796 ac_cpp='$CPP $CPPFLAGS'
2797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2805 ac_config_headers="$ac_config_headers config.h:config.in"
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2809 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2810 # Check whether --enable-maintainer-mode was given.
2811 if test "${enable_maintainer_mode+set}" = set; then :
2812 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2814 USE_MAINTAINER_MODE=no
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2818 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2819 if test $USE_MAINTAINER_MODE = yes; then
2820 MAINTAINER_MODE_TRUE=
2821 MAINTAINER_MODE_FALSE='#'
2823 MAINTAINER_MODE_TRUE='#'
2824 MAINTAINER_MODE_FALSE=
2827 MAINT=$MAINTAINER_MODE_TRUE
2832 ac_cpp='$CPP $CPPFLAGS'
2833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2836 if test -n "$ac_tool_prefix"; then
2837 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2838 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2840 $as_echo_n "checking for $ac_word... " >&6; }
2841 if test "${ac_cv_prog_CC+set}" = set; then :
2842 $as_echo_n "(cached) " >&6
2844 if test -n "$CC"; then
2845 ac_cv_prog_CC="$CC" # Let the user override the test.
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851 test -z "$as_dir" && as_dir=.
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2854 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2865 if test -n "$CC"; then
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2867 $as_echo "$CC" >&6; }
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2870 $as_echo "no" >&6; }
2875 if test -z "$ac_cv_prog_CC"; then
2877 # Extract the first word of "gcc", so it can be a program name with args.
2878 set dummy gcc; ac_word=$2
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2880 $as_echo_n "checking for $ac_word... " >&6; }
2881 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2882 $as_echo_n "(cached) " >&6
2884 if test -n "$ac_ct_CC"; then
2885 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 test -z "$as_dir" && as_dir=.
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2894 ac_cv_prog_ac_ct_CC="gcc"
2895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2904 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2905 if test -n "$ac_ct_CC"; then
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2907 $as_echo "$ac_ct_CC" >&6; }
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2910 $as_echo "no" >&6; }
2913 if test "x$ac_ct_CC" = x; then
2916 case $cross_compiling:$ac_tool_warned in
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2920 ac_tool_warned=yes ;;
2928 if test -z "$CC"; then
2929 if test -n "$ac_tool_prefix"; then
2930 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2931 set dummy ${ac_tool_prefix}cc; ac_word=$2
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933 $as_echo_n "checking for $ac_word... " >&6; }
2934 if test "${ac_cv_prog_CC+set}" = set; then :
2935 $as_echo_n "(cached) " >&6
2937 if test -n "$CC"; then
2938 ac_cv_prog_CC="$CC" # Let the user override the test.
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 test -z "$as_dir" && as_dir=.
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2947 ac_cv_prog_CC="${ac_tool_prefix}cc"
2948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2958 if test -n "$CC"; then
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2960 $as_echo "$CC" >&6; }
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2969 if test -z "$CC"; then
2970 # Extract the first word of "cc", so it can be a program name with args.
2971 set dummy cc; ac_word=$2
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2973 $as_echo_n "checking for $ac_word... " >&6; }
2974 if test "${ac_cv_prog_CC+set}" = set; then :
2975 $as_echo_n "(cached) " >&6
2977 if test -n "$CC"; then
2978 ac_cv_prog_CC="$CC" # Let the user override the test.
2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 test -z "$as_dir" && as_dir=.
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2988 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2989 ac_prog_rejected=yes
2993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3000 if test $ac_prog_rejected = yes; then
3001 # We found a bogon in the path, so make sure we never use it.
3002 set dummy $ac_cv_prog_CC
3004 if test $# != 0; then
3005 # We chose a different compiler from the bogus one.
3006 # However, it has the same basename, so the bogon will be chosen
3007 # first if we set CC to just the basename; use the full file name.
3009 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3015 if test -n "$CC"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3017 $as_echo "$CC" >&6; }
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 $as_echo "no" >&6; }
3025 if test -z "$CC"; then
3026 if test -n "$ac_tool_prefix"; then
3027 for ac_prog in cl.exe
3029 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3030 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3032 $as_echo_n "checking for $ac_word... " >&6; }
3033 if test "${ac_cv_prog_CC+set}" = set; then :
3034 $as_echo_n "(cached) " >&6
3036 if test -n "$CC"; then
3037 ac_cv_prog_CC="$CC" # Let the user override the test.
3039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 test -z "$as_dir" && as_dir=.
3044 for ac_exec_ext in '' $ac_executable_extensions; do
3045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3046 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3057 if test -n "$CC"; then
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3059 $as_echo "$CC" >&6; }
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062 $as_echo "no" >&6; }
3066 test -n "$CC" && break
3069 if test -z "$CC"; then
3071 for ac_prog in cl.exe
3073 # Extract the first word of "$ac_prog", so it can be a program name with args.
3074 set dummy $ac_prog; ac_word=$2
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076 $as_echo_n "checking for $ac_word... " >&6; }
3077 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3078 $as_echo_n "(cached) " >&6
3080 if test -n "$ac_ct_CC"; then
3081 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087 test -z "$as_dir" && as_dir=.
3088 for ac_exec_ext in '' $ac_executable_extensions; do
3089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3090 ac_cv_prog_ac_ct_CC="$ac_prog"
3091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3101 if test -n "$ac_ct_CC"; then
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3103 $as_echo "$ac_ct_CC" >&6; }
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106 $as_echo "no" >&6; }
3110 test -n "$ac_ct_CC" && break
3113 if test "x$ac_ct_CC" = x; then
3116 case $cross_compiling:$ac_tool_warned in
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3120 ac_tool_warned=yes ;;
3129 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3131 as_fn_error "no acceptable C compiler found
in \
$PATH
3132 See \
`config.log' for more details." "$LINENO" 5; }
3134 # Provide some information about the compiler.
3135 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3138 for ac_option in --version -v -V -qversion; do
3139 { { ac_try="$ac_compiler $ac_option >&5"
3141 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3142 *) ac_try_echo
=$ac_try;;
3144 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3145 $as_echo "$ac_try_echo"; } >&5
3146 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3148 if test -s conftest.err
; then
3150 ... rest of stderr output deleted ...
3151 10q' conftest.err
>conftest.er1
3152 cat conftest.er1
>&5
3153 rm -f conftest.er1 conftest.err
3155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3156 test $ac_status = 0; }
3159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3160 /* end confdefs.h. */
3170 ac_clean_files_save
=$ac_clean_files
3171 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3172 # Try to create an executable without -o first, disregard a.out.
3173 # It will help us diagnose broken compilers, and finding out an intuition
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3176 $as_echo_n "checking for C compiler default output file name... " >&6; }
3177 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3179 # The possible output files:
3180 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3183 for ac_file
in $ac_files
3186 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3187 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3192 if { { ac_try
="$ac_link_default"
3194 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3198 $as_echo "$ac_try_echo"; } >&5
3199 (eval "$ac_link_default") 2>&5
3201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3202 test $ac_status = 0; }; then :
3203 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3204 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3205 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3206 # so that the user can short-circuit this test for compilers unknown to
3208 for ac_file in $ac_files ''
3210 test -f "$ac_file" || continue
3212 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3215 # We found the default executable, but exeext='' is most
3219 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3221 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3223 # We set ac_cv_exeext here because the later test for it is not
3224 # safe: cross compilers may not add the suffix if given an `-o'
3225 # argument, so we may need to know it at that point already.
3226 # Even if this section looks crufty: it has the advantage of
3233 test "$ac_cv_exeext" = no && ac_cv_exeext=
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3239 $as_echo "$ac_file" >&6; }
3240 if test -z "$ac_file"; then :
3241 $as_echo "$as_me: failed program was:" >&5
3242 sed 's
/^
/|
/' conftest.$ac_ext >&5
3244 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3245 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3246 { as_fn_set_status 77
3247 as_fn_error "C compiler cannot create executables
3248 See \`config.log
' for more details." "$LINENO" 5; }; }
3250 ac_exeext=$ac_cv_exeext
3252 # Check that the compiler produces executables we can run. If not, either
3253 # the compiler is broken, or we cross compile.
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3255 $as_echo_n "checking whether the C compiler works... " >&6; }
3256 # If not cross compiling, check that we can run a simple program.
3257 if test "$cross_compiling" != yes; then
3258 if { ac_try='.
/$ac_file'
3259 { { case "(($ac_try" in
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264 $as_echo "$ac_try_echo"; } >&5
3265 (eval "$ac_try") 2>&5
3267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268 test $ac_status = 0; }; }; then
3271 if test "$cross_compiling" = maybe; then
3274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3275 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3276 as_fn_error "cannot run C compiled programs.
3277 If you meant to cross compile, use \`--host'.
3278 See \`config.log' for more details.
" "$LINENO" 5; }
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
3283 $as_echo "yes" >&6; }
3285 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3286 ac_clean_files=$ac_clean_files_save
3287 # Check that the compiler produces executables we can run. If not, either
3288 # the compiler is broken, or we cross compile.
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
3290 $as_echo_n "checking whether we are cross compiling...
" >&6; }
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $cross_compiling" >&5
3292 $as_echo "$cross_compiling" >&6; }
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
3295 $as_echo_n "checking
for suffix of executables...
" >&6; }
3296 if { { ac_try="$ac_link"
3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299 *) ac_try_echo=$ac_try;;
3301 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3302 $as_echo "$ac_try_echo"; } >&5
3303 (eval "$ac_link") 2>&5
3305 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3306 test $ac_status = 0; }; then :
3307 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3308 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3309 # work properly (i.e., refer to `conftest.exe'), while it won't with
3311 for ac_file in conftest.exe conftest conftest.*; do
3312 test -f "$ac_file" || continue
3314 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3315 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3321 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3323 as_fn_error "cannot compute suffix of executables: cannot compile and link
3324 See \`config.log' for more details.
" "$LINENO" 5; }
3326 rm -f conftest$ac_cv_exeext
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
3328 $as_echo "$ac_cv_exeext" >&6; }
3330 rm -f conftest.$ac_ext
3331 EXEEXT=$ac_cv_exeext
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of object files
" >&5
3334 $as_echo_n "checking
for suffix of object files...
" >&6; }
3335 if test "${ac_cv_objext+set}" = set; then :
3336 $as_echo_n "(cached
) " >&6
3338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3339 /* end confdefs.h. */
3349 rm -f conftest.o conftest.obj
3350 if { { ac_try="$ac_compile"
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3355 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3356 $as_echo "$ac_try_echo"; } >&5
3357 (eval "$ac_compile") 2>&5
3359 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3360 test $ac_status = 0; }; then :
3361 for ac_file in conftest.o conftest.obj conftest.*; do
3362 test -f "$ac_file" || continue;
3364 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3365 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3370 $as_echo "$as_me: failed program was
:" >&5
3371 sed 's/^/| /' conftest.$ac_ext >&5
3373 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3375 as_fn_error "cannot compute suffix of object files: cannot compile
3376 See \`config.log' for more details.
" "$LINENO" 5; }
3378 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_objext" >&5
3381 $as_echo "$ac_cv_objext" >&6; }
3382 OBJEXT=$ac_cv_objext
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler
" >&5
3385 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3386 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3387 $as_echo_n "(cached
) " >&6
3389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3390 /* end confdefs.h. */
3403 if ac_fn_c_try_compile "$LINENO"; then :
3408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3409 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_compiler_gnu" >&5
3413 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3414 if test $ac_compiler_gnu = yes; then
3419 ac_test_CFLAGS=${CFLAGS+set}
3420 ac_save_CFLAGS=$CFLAGS
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC accepts
-g" >&5
3422 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3423 if test "${ac_cv_prog_cc_g+set}" = set; then :
3424 $as_echo_n "(cached
) " >&6
3426 ac_save_c_werror_flag=$ac_c_werror_flag
3427 ac_c_werror_flag=yes
3430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431 /* end confdefs.h. */
3441 if ac_fn_c_try_compile "$LINENO"; then :
3445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3446 /* end confdefs.h. */
3456 if ac_fn_c_try_compile "$LINENO"; then :
3459 ac_c_werror_flag=$ac_save_c_werror_flag
3461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462 /* end confdefs.h. */
3472 if ac_fn_c_try_compile "$LINENO"; then :
3475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3480 ac_c_werror_flag=$ac_save_c_werror_flag
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_g" >&5
3483 $as_echo "$ac_cv_prog_cc_g" >&6; }
3484 if test "$ac_test_CFLAGS" = set; then
3485 CFLAGS=$ac_save_CFLAGS
3486 elif test $ac_cv_prog_cc_g = yes; then
3487 if test "$GCC" = yes; then
3493 if test "$GCC" = yes; then
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $CC option to accept ISO C89
" >&5
3500 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3501 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3502 $as_echo_n "(cached
) " >&6
3504 ac_cv_prog_cc_c89=no
3506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3507 /* end confdefs.h. */
3510 #include <sys/types.h>
3511 #include <sys/stat.h>
3512 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3513 struct buf { int x; };
3514 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3515 static char *e (p, i)
3521 static char *f (char * (*g) (char **, int), char **p, ...)
3526 s = g (p, va_arg (v,int));
3531 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3532 function prototypes and stuff, but not '\xHH' hex character constants.
3533 These don't provoke an error unfortunately, instead are silently treated
3534 as 'x'. The following induces an error, until -std is added to get
3535 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3536 array size at least. It's necessary to write '\x00'==0 to get something
3537 that's true only with -std. */
3538 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3540 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3541 inside strings and character constants. */
3543 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3545 int test (int i, double x);
3546 struct s1 {int (*f) (int a);};
3547 struct s2 {int (*f) (double a);};
3548 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3554 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3559 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3560 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3562 CC="$ac_save_CC $ac_arg"
3563 if ac_fn_c_try_compile "$LINENO"; then :
3564 ac_cv_prog_cc_c89=$ac_arg
3566 rm -f core conftest.err conftest.$ac_objext
3567 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3569 rm -f conftest.$ac_ext
3574 case "x
$ac_cv_prog_cc_c89" in
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none needed
" >&5
3577 $as_echo "none needed
" >&6; } ;;
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: unsupported
" >&5
3580 $as_echo "unsupported
" >&6; } ;;
3582 CC="$CC $ac_cv_prog_cc_c89"
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_c89" >&5
3584 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3586 if test "x
$ac_cv_prog_cc_c89" != xno; then :
3591 ac_cpp='$CPP $CPPFLAGS'
3592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3597 for ac_dir in "$srcdir" "$srcdir/..
" "$srcdir/..
/..
"; do
3598 for ac_t in install-sh install.sh shtool; do
3599 if test -f "$ac_dir/$ac_t"; then
3601 ac_install_sh="$ac_aux_dir/$ac_t -c"
3606 if test -z "$ac_aux_dir"; then
3607 as_fn_error "cannot
find install-sh
, install.sh
, or shtool
in \"$srcdir\" \"$srcdir/..
\" \"$srcdir/..
/..
\"" "$LINENO" 5
3610 # These three variables are undocumented and unsupported,
3611 # and are intended to be withdrawn in a future Autoconf release.
3612 # They can cause serious problems if a builder's source tree is in a directory
3613 # whose full name contains unusual characters.
3614 ac_config_guess="$SHELL $ac_aux_dir/config.guess
" # Please don't use this var.
3615 ac_config_sub="$SHELL $ac_aux_dir/config.sub
" # Please don't use this var.
3616 ac_configure="$SHELL $ac_aux_dir/configure
" # Please don't use this var.
3619 # Make sure we can run config.sub.
3620 $SHELL "$ac_aux_dir/config.sub
" sun4 >/dev/null 2>&1 ||
3621 as_fn_error "cannot run
$SHELL $ac_aux_dir/config.sub
" "$LINENO" 5
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system
type" >&5
3624 $as_echo_n "checking build system
type...
" >&6; }
3625 if test "${ac_cv_build+set}" = set; then :
3626 $as_echo_n "(cached
) " >&6
3628 ac_build_alias=$build_alias
3629 test "x
$ac_build_alias" = x &&
3630 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess
"`
3631 test "x
$ac_build_alias" = x &&
3632 as_fn_error "cannot guess build
type; you must specify one
" "$LINENO" 5
3633 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub
" $ac_build_alias` ||
3634 as_fn_error "$SHELL $ac_aux_dir/config.sub
$ac_build_alias failed
" "$LINENO" 5
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_build" >&5
3638 $as_echo "$ac_cv_build" >&6; }
3639 case $ac_cv_build in
3641 *) as_fn_error "invalid value of canonical build
" "$LINENO" 5;;
3644 ac_save_IFS=$IFS; IFS='-'
3650 # Remember, the first character of IFS is used to create $*,
3651 # except with old shells:
3654 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
host system
type" >&5
3658 $as_echo_n "checking
host system
type...
" >&6; }
3659 if test "${ac_cv_host+set}" = set; then :
3660 $as_echo_n "(cached
) " >&6
3662 if test "x
$host_alias" = x; then
3663 ac_cv_host=$ac_cv_build
3665 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub
" $host_alias` ||
3666 as_fn_error "$SHELL $ac_aux_dir/config.sub
$host_alias failed
" "$LINENO" 5
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_host" >&5
3671 $as_echo "$ac_cv_host" >&6; }
3674 *) as_fn_error "invalid value of canonical
host" "$LINENO" 5;;
3677 ac_save_IFS=$IFS; IFS='-'
3683 # Remember, the first character of IFS is used to create $*,
3684 # except with old shells:
3687 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3692 ac_cpp='$CPP $CPPFLAGS'
3693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
3697 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
3698 # On Suns, sometimes $CPP names a directory.
3699 if test -n "$CPP" && test -d "$CPP"; then
3702 if test -z "$CPP"; then
3703 if test "${ac_cv_prog_CPP+set}" = set; then :
3704 $as_echo_n "(cached
) " >&6
3706 # Double quotes because CPP needs to be expanded
3707 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3710 for ac_c_preproc_warn_flag in '' yes
3712 # Use a header file that comes with gcc, so configuring glibc
3713 # with a fresh cross-compiler works.
3714 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3715 # <limits.h> exists even on freestanding compilers.
3716 # On the NeXT, cc -E runs the code through the compiler's parser,
3717 # not just through cpp. "Syntax error
" is here to catch this case.
3718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719 /* end confdefs.h. */
3721 # include <limits.h>
3723 # include <assert.h>
3727 if ac_fn_c_try_cpp "$LINENO"; then :
3730 # Broken: fails on valid input.
3733 rm -f conftest.err conftest.$ac_ext
3735 # OK, works on sane cases. Now check whether nonexistent headers
3736 # can be detected and how.
3737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738 /* end confdefs.h. */
3739 #include <ac_nonexistent.h>
3741 if ac_fn_c_try_cpp "$LINENO"; then :
3742 # Broken: success on invalid input.
3745 # Passes both tests.
3749 rm -f conftest.err conftest.$ac_ext
3752 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3753 rm -f conftest.err conftest.$ac_ext
3754 if $ac_preproc_ok; then :
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
3767 $as_echo "$CPP" >&6; }
3769 for ac_c_preproc_warn_flag in '' yes
3771 # Use a header file that comes with gcc, so configuring glibc
3772 # with a fresh cross-compiler works.
3773 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3774 # <limits.h> exists even on freestanding compilers.
3775 # On the NeXT, cc -E runs the code through the compiler's parser,
3776 # not just through cpp. "Syntax error
" is here to catch this case.
3777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778 /* end confdefs.h. */
3780 # include <limits.h>
3782 # include <assert.h>
3786 if ac_fn_c_try_cpp "$LINENO"; then :
3789 # Broken: fails on valid input.
3792 rm -f conftest.err conftest.$ac_ext
3794 # OK, works on sane cases. Now check whether nonexistent headers
3795 # can be detected and how.
3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 /* end confdefs.h. */
3798 #include <ac_nonexistent.h>
3800 if ac_fn_c_try_cpp "$LINENO"; then :
3801 # Broken: success on invalid input.
3804 # Passes both tests.
3808 rm -f conftest.err conftest.$ac_ext
3811 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3812 rm -f conftest.err conftest.$ac_ext
3813 if $ac_preproc_ok; then :
3816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3818 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3819 See \`config.log' for more details.
" "$LINENO" 5; }
3823 ac_cpp='$CPP $CPPFLAGS'
3824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
3830 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
3831 if test "${ac_cv_path_GREP+set}" = set; then :
3832 $as_echo_n "(cached
) " >&6
3834 if test -z "$GREP"; then
3835 ac_path_GREP_found=false
3836 # Loop through the user's path and test for each of PROGNAME-LIST
3837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3841 test -z "$as_dir" && as_dir=.
3842 for ac_prog in grep ggrep; do
3843 for ac_exec_ext in '' $ac_executable_extensions; do
3844 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3845 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3846 # Check for GNU ac_path_GREP and select it if it is found.
3847 # Check for GNU $ac_path_GREP
3848 case `"$ac_path_GREP" --version 2>&1` in
3850 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3853 $as_echo_n 0123456789 >"conftest.
in"
3856 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3857 mv "conftest.tmp
" "conftest.
in"
3858 cp "conftest.
in" "conftest.
nl"
3859 $as_echo 'GREP' >> "conftest.
nl"
3860 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3861 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3862 as_fn_arith $ac_count + 1 && ac_count=$as_val
3863 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3864 # Best one so far, save it but keep looking for a better one
3865 ac_cv_path_GREP="$ac_path_GREP"
3866 ac_path_GREP_max=$ac_count
3868 # 10*(2^10) chars as input seems more than enough
3869 test $ac_count -gt 10 && break
3871 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3874 $ac_path_GREP_found && break 3
3879 if test -z "$ac_cv_path_GREP"; then
3880 as_fn_error "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3883 ac_cv_path_GREP=$GREP
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
3888 $as_echo "$ac_cv_path_GREP" >&6; }
3889 GREP="$ac_cv_path_GREP"
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
3893 $as_echo_n "checking
for egrep...
" >&6; }
3894 if test "${ac_cv_path_EGREP+set}" = set; then :
3895 $as_echo_n "(cached
) " >&6
3897 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3898 then ac_cv_path_EGREP="$GREP -E"
3900 if test -z "$EGREP"; then
3901 ac_path_EGREP_found=false
3902 # Loop through the user's path and test for each of PROGNAME-LIST
3903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3907 test -z "$as_dir" && as_dir=.
3908 for ac_prog in egrep; do
3909 for ac_exec_ext in '' $ac_executable_extensions; do
3910 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3911 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3912 # Check for GNU ac_path_EGREP and select it if it is found.
3913 # Check for GNU $ac_path_EGREP
3914 case `"$ac_path_EGREP" --version 2>&1` in
3916 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3919 $as_echo_n 0123456789 >"conftest.
in"
3922 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
3923 mv "conftest.tmp
" "conftest.
in"
3924 cp "conftest.
in" "conftest.
nl"
3925 $as_echo 'EGREP' >> "conftest.
nl"
3926 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
3927 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
3928 as_fn_arith $ac_count + 1 && ac_count=$as_val
3929 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3930 # Best one so far, save it but keep looking for a better one
3931 ac_cv_path_EGREP="$ac_path_EGREP"
3932 ac_path_EGREP_max=$ac_count
3934 # 10*(2^10) chars as input seems more than enough
3935 test $ac_count -gt 10 && break
3937 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3940 $ac_path_EGREP_found && break 3
3945 if test -z "$ac_cv_path_EGREP"; then
3946 as_fn_error "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
3949 ac_cv_path_EGREP=$EGREP
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
3955 $as_echo "$ac_cv_path_EGREP" >&6; }
3956 EGREP="$ac_cv_path_EGREP"
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
3960 $as_echo_n "checking
for ANSI C header files...
" >&6; }
3961 if test "${ac_cv_header_stdc+set}" = set; then :
3962 $as_echo_n "(cached
) " >&6
3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h. */
3979 if ac_fn_c_try_compile "$LINENO"; then :
3980 ac_cv_header_stdc=yes
3982 ac_cv_header_stdc=no
3984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3986 if test $ac_cv_header_stdc = yes; then
3987 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989 /* end confdefs.h. */
3993 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3994 $EGREP "memchr
" >/dev/null 2>&1; then :
3997 ac_cv_header_stdc=no
4003 if test $ac_cv_header_stdc = yes; then
4004 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006 /* end confdefs.h. */
4010 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4011 $EGREP "free
" >/dev/null 2>&1; then :
4014 ac_cv_header_stdc=no
4020 if test $ac_cv_header_stdc = yes; then
4021 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4022 if test "$cross_compiling" = yes; then :
4025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026 /* end confdefs.h. */
4029 #if ((' ' & 0x0FF) == 0x020)
4030 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4031 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4033 # define ISLOWER(c) \
4034 (('a' <= (c) && (c) <= 'i') \
4035 || ('j' <= (c) && (c) <= 'r') \
4036 || ('s' <= (c) && (c) <= 'z'))
4037 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4040 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4045 for (i = 0; i < 256; i++)
4046 if (XOR (islower (i), ISLOWER (i))
4047 || toupper (i) != TOUPPER (i))
4052 if ac_fn_c_try_run "$LINENO"; then :
4055 ac_cv_header_stdc=no
4057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4058 conftest.$ac_objext conftest.beam conftest.$ac_ext
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
4064 $as_echo "$ac_cv_header_stdc" >&6; }
4065 if test $ac_cv_header_stdc = yes; then
4067 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4071 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4072 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4073 inttypes.h stdint.h unistd.h
4075 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4076 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4078 eval as_val
=\$
$as_ac_Header
4079 if test "x$as_val" = x
""yes; then :
4080 cat >>confdefs.h
<<_ACEOF
4081 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4092 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4093 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4100 if test "$MINIX" = yes; then
4102 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4105 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4108 $as_echo "#define _MINIX 1" >>confdefs.h
4115 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4122 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4123 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4124 $as_echo_n "(cached) " >&6
4126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4127 /* end confdefs.h. */
4129 # define __EXTENSIONS__ 1
4130 $ac_includes_default
4139 if ac_fn_c_try_compile
"$LINENO"; then :
4140 ac_cv_safe_to_define___extensions__
=yes
4142 ac_cv_safe_to_define___extensions__
=no
4144 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4147 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4148 test $ac_cv_safe_to_define___extensions__ = yes &&
4149 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4151 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4153 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4155 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4157 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4160 if test -n "$ac_tool_prefix"; then
4161 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4162 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4164 $as_echo_n "checking for $ac_word... " >&6; }
4165 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4166 $as_echo_n "(cached) " >&6
4168 if test -n "$RANLIB"; then
4169 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4171 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4175 test -z "$as_dir" && as_dir
=.
4176 for ac_exec_ext
in '' $ac_executable_extensions; do
4177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4178 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4188 RANLIB
=$ac_cv_prog_RANLIB
4189 if test -n "$RANLIB"; then
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4191 $as_echo "$RANLIB" >&6; }
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4194 $as_echo "no" >&6; }
4199 if test -z "$ac_cv_prog_RANLIB"; then
4200 ac_ct_RANLIB
=$RANLIB
4201 # Extract the first word of "ranlib", so it can be a program name with args.
4202 set dummy ranlib
; ac_word
=$2
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4204 $as_echo_n "checking for $ac_word... " >&6; }
4205 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4206 $as_echo_n "(cached) " >&6
4208 if test -n "$ac_ct_RANLIB"; then
4209 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4211 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4215 test -z "$as_dir" && as_dir
=.
4216 for ac_exec_ext
in '' $ac_executable_extensions; do
4217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4218 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4228 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4229 if test -n "$ac_ct_RANLIB"; then
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4231 $as_echo "$ac_ct_RANLIB" >&6; }
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4234 $as_echo "no" >&6; }
4237 if test "x$ac_ct_RANLIB" = x
; then
4240 case $cross_compiling:$ac_tool_warned in
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4244 ac_tool_warned
=yes ;;
4246 RANLIB
=$ac_ct_RANLIB
4249 RANLIB
="$ac_cv_prog_RANLIB"
4260 # Code from module arg-nonnull:
4261 # Code from module c++defs:
4262 # Code from module extensions:
4264 # Code from module include_next:
4265 # Code from module memchr:
4266 # Code from module memmem:
4267 # Code from module memmem-simple:
4268 # Code from module multiarch:
4269 # Code from module stddef:
4270 # Code from module stdint:
4271 # Code from module string:
4272 # Code from module warn-on-use:
4273 # Code from module wchar:
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4276 $as_echo_n "checking target system type... " >&6; }
4277 if test "${ac_cv_target+set}" = set; then :
4278 $as_echo_n "(cached) " >&6
4280 if test "x$target_alias" = x
; then
4281 ac_cv_target
=$ac_cv_host
4283 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4284 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4289 $as_echo "$ac_cv_target" >&6; }
4290 case $ac_cv_target in
4292 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4294 target
=$ac_cv_target
4295 ac_save_IFS
=$IFS; IFS
='-'
4301 # Remember, the first character of IFS is used to create $*,
4302 # except with old shells:
4305 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4308 # The aliases save the names the user supplied, while $host etc.
4309 # will get canonicalized.
4310 test -n "$target_alias" &&
4311 test "$program_prefix$program_suffix$program_transform_name" = \
4313 program_prefix
=${target_alias}-
4315 # The tests for host and target for $enable_largefile require
4320 # As the $enable_largefile decision depends on --enable-plugins we must set it
4321 # even in directories otherwise not depending on the $plugins option.
4324 # Check whether --enable-plugins was given.
4325 if test "${enable_plugins+set}" = set; then :
4326 enableval
=$enable_plugins; case "${enableval}" in
4327 yes |
"") plugins
=yes ;;
4338 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4339 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4340 # are mutually exclusive; and without procfs support, the bfd/ elf module
4341 # cannot provide certain routines such as elfcore_write_prpsinfo
4342 # or elfcore_write_prstatus. So unless the user explicitly requested
4343 # large-file support through the --enable-largefile switch, disable
4344 # large-file support in favor of procfs support.
4345 test "${target}" = "${host}" -a "x$plugins" = xno \
4346 && : ${enable_largefile="no"}
4350 # Check whether --enable-largefile was given.
4351 if test "${enable_largefile+set}" = set; then :
4352 enableval
=$enable_largefile;
4355 if test "$enable_largefile" != no
; then
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4358 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4359 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4360 $as_echo_n "(cached) " >&6
4362 ac_cv_sys_largefile_CC
=no
4363 if test "$GCC" != yes; then
4366 # IRIX 6.2 and later do not support large files by default,
4367 # so use the C compiler's -n32 option if that helps.
4368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h. */
4370 #include <sys/types.h>
4371 /* Check that off_t can represent 2**63 - 1 correctly.
4372 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4373 since some C++ compilers masquerading as C compilers
4374 incorrectly reject 9223372036854775807. */
4375 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4376 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4377 && LARGE_OFF_T % 2147483647 == 1)
4387 if ac_fn_c_try_compile
"$LINENO"; then :
4390 rm -f core conftest.err conftest.
$ac_objext
4392 if ac_fn_c_try_compile
"$LINENO"; then :
4393 ac_cv_sys_largefile_CC
=' -n32'; break
4395 rm -f core conftest.err conftest.
$ac_objext
4399 rm -f conftest.
$ac_ext
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4403 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4404 if test "$ac_cv_sys_largefile_CC" != no
; then
4405 CC
=$CC$ac_cv_sys_largefile_CC
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4409 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4410 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4411 $as_echo_n "(cached) " >&6
4414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4415 /* end confdefs.h. */
4416 #include <sys/types.h>
4417 /* Check that off_t can represent 2**63 - 1 correctly.
4418 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4419 since some C++ compilers masquerading as C compilers
4420 incorrectly reject 9223372036854775807. */
4421 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4422 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4423 && LARGE_OFF_T % 2147483647 == 1)
4433 if ac_fn_c_try_compile
"$LINENO"; then :
4434 ac_cv_sys_file_offset_bits
=no
; break
4436 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h. */
4439 #define _FILE_OFFSET_BITS 64
4440 #include <sys/types.h>
4441 /* Check that off_t can represent 2**63 - 1 correctly.
4442 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4443 since some C++ compilers masquerading as C compilers
4444 incorrectly reject 9223372036854775807. */
4445 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4446 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4447 && LARGE_OFF_T % 2147483647 == 1)
4457 if ac_fn_c_try_compile
"$LINENO"; then :
4458 ac_cv_sys_file_offset_bits
=64; break
4460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4461 ac_cv_sys_file_offset_bits
=unknown
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4466 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4467 case $ac_cv_sys_file_offset_bits in #(
4470 cat >>confdefs.h
<<_ACEOF
4471 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4476 if test $ac_cv_sys_file_offset_bits = unknown
; then
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4478 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4479 if test "${ac_cv_sys_large_files+set}" = set; then :
4480 $as_echo_n "(cached) " >&6
4483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4484 /* end confdefs.h. */
4485 #include <sys/types.h>
4486 /* Check that off_t can represent 2**63 - 1 correctly.
4487 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4488 since some C++ compilers masquerading as C compilers
4489 incorrectly reject 9223372036854775807. */
4490 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4491 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4492 && LARGE_OFF_T % 2147483647 == 1)
4502 if ac_fn_c_try_compile
"$LINENO"; then :
4503 ac_cv_sys_large_files
=no
; break
4505 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4507 /* end confdefs.h. */
4508 #define _LARGE_FILES 1
4509 #include <sys/types.h>
4510 /* Check that off_t can represent 2**63 - 1 correctly.
4511 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4512 since some C++ compilers masquerading as C compilers
4513 incorrectly reject 9223372036854775807. */
4514 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4515 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4516 && LARGE_OFF_T % 2147483647 == 1)
4526 if ac_fn_c_try_compile
"$LINENO"; then :
4527 ac_cv_sys_large_files
=1; break
4529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4530 ac_cv_sys_large_files
=unknown
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4535 $as_echo "$ac_cv_sys_large_files" >&6; }
4536 case $ac_cv_sys_large_files in #(
4539 cat >>confdefs.h
<<_ACEOF
4540 #define _LARGE_FILES $ac_cv_sys_large_files
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4553 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4554 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4555 $as_echo_n "(cached) " >&6
4557 am_cv_prog_cc_stdc
=no
4559 # Don't try gcc -ansi; that turns off useful extensions and
4560 # breaks some systems' header files.
4561 # AIX -qlanglvl=ansi
4562 # Ultrix and OSF/1 -std1
4563 # HP-UX 10.20 and later -Ae
4564 # HP-UX older versions -Aa -D_HPUX_SOURCE
4565 # SVR4 -Xc -D__EXTENSIONS__
4566 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4568 CC
="$ac_save_CC $ac_arg"
4569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4570 /* end confdefs.h. */
4573 #include <sys/types.h>
4574 #include <sys/stat.h>
4575 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4576 struct buf { int x; };
4577 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4578 static char *e (p, i)
4584 static char *f (char * (*g) (char **, int), char **p, ...)
4589 s = g (p, va_arg (v,int));
4593 int test (int i, double x);
4594 struct s1 {int (*f) (int a);};
4595 struct s2 {int (*f) (double a);};
4596 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4604 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4610 if ac_fn_c_try_compile
"$LINENO"; then :
4611 am_cv_prog_cc_stdc
="$ac_arg"; break
4613 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4619 if test -z "$am_cv_prog_cc_stdc"; then
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4621 $as_echo "none needed" >&6; }
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4624 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4626 case "x$am_cv_prog_cc_stdc" in
4628 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4633 for ac_dir
in ..
"$srcdir"/..
; do
4634 for ac_t
in install-sh
install.sh shtool
; do
4635 if test -f "$ac_dir/$ac_t"; then
4637 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4642 if test -z "$ac_aux_dir"; then
4643 as_fn_error
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4646 # These three variables are undocumented and unsupported,
4647 # and are intended to be withdrawn in a future Autoconf release.
4648 # They can cause serious problems if a builder's source tree is in a directory
4649 # whose full name contains unusual characters.
4650 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4651 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4652 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4657 # Dependency checking.
4658 rm -rf .tst
2>/dev
/null
4659 mkdir .tst
2>/dev
/null
4660 if test -d .tst
; then
4665 rmdir .tst
2>/dev
/null
4667 DEPDIR
="${am__leading_dot}deps"
4669 ac_config_commands
="$ac_config_commands depdir"
4672 depcc
="$CC" am_compiler_list
=
4674 am_depcomp
=$ac_aux_dir/depcomp
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4676 $as_echo_n "checking dependency style of $depcc... " >&6; }
4677 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4678 $as_echo_n "(cached) " >&6
4680 if test -f "$am_depcomp"; then
4681 # We make a subdir and do the tests there. Otherwise we can end up
4682 # making bogus files that we don't know about and never remove. For
4683 # instance it was reported that on HP-UX the gcc test will end up
4684 # making a dummy file named `D' -- because `-MD' means `put the output
4687 # Copy depcomp to subdir because otherwise we won't find it if we're
4688 # using a relative directory.
4689 cp "$am_depcomp" conftest.dir
4691 # We will build objects and dependencies in a subdirectory because
4692 # it helps to detect inapplicable dependency modes. For instance
4693 # both Tru64's cc and ICC support -MD to output dependencies as a
4694 # side effect of compilation, but ICC will put the dependencies in
4695 # the current directory while Tru64 will put them in the object
4699 am_cv_CC_dependencies_compiler_type
=none
4700 if test "$am_compiler_list" = ""; then
4701 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4703 for depmode
in $am_compiler_list; do
4704 if test $depmode = none
; then break; fi
4706 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4707 # Setup a source with many dependencies, because some compilers
4708 # like to wrap large dependency lists on column 80 (with \), and
4709 # we should not choose a depcomp mode which is confused by this.
4711 # We need to recreate these files for each test, as the compiler may
4712 # overwrite some of them when testing with obscure command lines.
4713 # This happens at least with the AIX C compiler.
4715 for i
in 1 2 3 4 5 6; do
4716 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4717 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4718 # Solaris 8's {/usr,}/bin/sh.
4719 touch sub
/conftst
$i.h
4721 echo "include sub/conftest.Po" > confmf
4723 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4724 # mode. It turns out that the SunPro C++ compiler does not properly
4725 # handle `-M -o', and we need to detect this.
4726 depcmd
="depmode=$depmode \
4727 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4728 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4729 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4730 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
4731 if env
$depcmd > conftest.err
2>&1 &&
4732 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
4733 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
4734 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
4735 # icc doesn't choke on unknown options, it will just issue warnings
4736 # or remarks (even with -Werror). So we grep stderr for any message
4737 # that says an option was ignored or not supported.
4738 # When given -MP, icc 7.0 and 7.1 complain thusly:
4739 # icc: Command line warning: ignoring option '-M'; no argument required
4740 # The diagnosis changed in icc 8.0:
4741 # icc: Command line remark: option '-MP' not supported
4742 if (grep 'ignoring option' conftest.err ||
4743 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4744 am_cv_CC_dependencies_compiler_type
=$depmode
4745 $as_echo "$as_me:$LINENO: success" >&5
4749 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4750 sed -e 's/^/| /' < conftest.err
>&5
4756 am_cv_CC_dependencies_compiler_type
=none
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4761 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4762 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
4763 then as_fn_error
"no usable dependency style found" "$LINENO" 5
4764 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4769 # Check for the 'make' the user wants to use.
4772 # Extract the first word of "$ac_prog", so it can be a program name with args.
4773 set dummy
$ac_prog; ac_word
=$2
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4775 $as_echo_n "checking for $ac_word... " >&6; }
4776 if test "${ac_cv_prog_MAKE+set}" = set; then :
4777 $as_echo_n "(cached) " >&6
4779 if test -n "$MAKE"; then
4780 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
4782 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4786 test -z "$as_dir" && as_dir
=.
4787 for ac_exec_ext
in '' $ac_executable_extensions; do
4788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4789 ac_cv_prog_MAKE
="$ac_prog"
4790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4799 MAKE
=$ac_cv_prog_MAKE
4800 if test -n "$MAKE"; then
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4802 $as_echo "$MAKE" >&6; }
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4805 $as_echo "no" >&6; }
4809 test -n "$MAKE" && break
4813 case "`$MAKE --version 2>&1 | sed 1q`" in
4818 if test "$MAKE_IS_GNU" = yes; then
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4827 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4829 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4830 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4831 $as_echo_n "(cached) " >&6
4833 cat >conftest.
make <<\_ACEOF
4836 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4838 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4839 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4841 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4843 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4847 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4849 $as_echo "yes" >&6; }
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4853 $as_echo "no" >&6; }
4854 SET_MAKE
="MAKE=${MAKE-make}"
4869 # If we haven't got the data from the intl directory,
4870 # assume NLS is disabled.
4879 if test -f ..
/intl
/config.intl
; then
4880 . ..
/intl
/config.intl
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4883 $as_echo_n "checking whether NLS is requested... " >&6; }
4884 if test x
"$USE_NLS" != xyes
; then
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4886 $as_echo "no" >&6; }
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4889 $as_echo "yes" >&6; }
4891 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4895 $as_echo_n "checking for catalogs to be installed... " >&6; }
4896 # Look for .po and .gmo files in the source directory.
4899 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
4900 # If there aren't any .gmo files the shell will give us the
4901 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4903 case "$cat" in *\
**)
4906 # The quadruple backslash is collapsed to a double backslash
4907 # by the backticks, then collapsed again by the double quotes,
4908 # leaving us with one backslash in the sed expression (right
4909 # before the dot that mustn't act as a wildcard).
4910 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4911 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
4912 # The user is allowed to set LINGUAS to a list of languages to
4913 # install catalogs for. If it's empty that means "all of them."
4914 if test "x$LINGUAS" = x
; then
4915 CATALOGS
="$CATALOGS $cat"
4916 XLINGUAS
="$XLINGUAS $lang"
4918 case "$LINGUAS" in *$lang*)
4919 CATALOGS
="$CATALOGS $cat"
4920 XLINGUAS
="$XLINGUAS $lang"
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4927 $as_echo "$LINGUAS" >&6; }
4940 localedir
='${datadir}/locale'
4943 if test x
"$USE_NLS" = xyes
; then
4944 CONFIG_ALL
="$CONFIG_ALL all-po"
4945 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
4946 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
4947 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
4954 LIBC_FATAL_STDERR_
=1
4955 export LIBC_FATAL_STDERR_
4961 for ac_header
in $gl_header_list
4963 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4964 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4965 eval as_val
=\$
$as_ac_Header
4966 if test "x$as_val" = x
""yes; then :
4967 cat >>confdefs.h
<<_ACEOF
4968 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4983 for ac_func
in $gl_func_list
4985 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4986 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4987 eval as_val
=\$
$as_ac_var
4988 if test "x$as_val" = x
""yes; then :
4989 cat >>confdefs.h
<<_ACEOF
4990 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5016 GNULIB_STRCASESTR
=0;
5023 GNULIB_MBSCASECMP
=0;
5024 GNULIB_MBSNCASECMP
=0;
5025 GNULIB_MBSPCASECMP
=0;
5026 GNULIB_MBSCASESTR
=0;
5034 GNULIB_STRVERSCMP
=0;
5039 HAVE_DECL_MEMRCHR
=1;
5045 HAVE_DECL_STRNDUP
=1;
5046 HAVE_DECL_STRNLEN
=1;
5050 HAVE_DECL_STRTOK_R
=1;
5051 HAVE_DECL_STRSIGNAL
=1;
5058 REPLACE_STRCASESTR
=0;
5063 REPLACE_STRSIGNAL
=0;
5065 UNDEFINE_STRTOK_R
=0;
5079 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
5080 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
5081 # irrelevant for anonymous mappings.
5082 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
5083 if test "x$ac_cv_func_mmap" = x
""yes; then :
5090 # Try to allow MAP_ANONYMOUS.
5091 gl_have_mmap_anonymous
=no
5092 if test $gl_have_mmap = yes; then
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
5094 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
5095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5096 /* end confdefs.h. */
5098 #include <sys/mman.h>
5099 #ifdef MAP_ANONYMOUS
5100 I cant identify this map.
5104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5105 $EGREP "I cant identify this map." >/dev
/null
2>&1; then :
5106 gl_have_mmap_anonymous
=yes
5110 if test $gl_have_mmap_anonymous != yes; then
5111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5112 /* end confdefs.h. */
5114 #include <sys/mman.h>
5116 I cant identify this map.
5120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5121 $EGREP "I cant identify this map." >/dev
/null
2>&1; then :
5123 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
5125 gl_have_mmap_anonymous
=yes
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
5131 $as_echo "$gl_have_mmap_anonymous" >&6; }
5132 if test $gl_have_mmap_anonymous = yes; then
5134 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
5162 if test $ac_cv_func_memchr = yes; then
5163 # Detect platform-specific bugs in some versions of glibc:
5164 # memchr should not dereference anything with length 0
5165 # http://bugzilla.redhat.com/499689
5166 # memchr should not dereference overestimated length after a match
5167 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
5168 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
5169 # Assume that memchr works on platforms that lack mprotect.
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
5171 $as_echo_n "checking whether memchr works... " >&6; }
5172 if test "${gl_cv_func_memchr_works+set}" = set; then :
5173 $as_echo_n "(cached) " >&6
5175 if test "$cross_compiling" = yes; then :
5176 gl_cv_func_memchr_works
="guessing no"
5178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5179 /* end confdefs.h. */
5184 # include <unistd.h>
5185 # include <sys/types.h>
5186 # include <sys/mman.h>
5197 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
5198 # if HAVE_MAP_ANONYMOUS
5199 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
5201 # else /* !HAVE_MAP_ANONYMOUS */
5202 const int flags = MAP_FILE | MAP_PRIVATE;
5203 int fd = open ("/dev/zero", O_RDONLY, 0666);
5207 int pagesize = getpagesize ();
5209 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
5211 if (two_pages != (char *)(-1)
5212 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
5213 fence = two_pages + pagesize;
5218 if (memchr (fence, 0, 0))
5220 strcpy (fence - 9, "12345678");
5221 if (memchr (fence - 9, 0, 79) != fence - 1)
5230 if ac_fn_c_try_run
"$LINENO"; then :
5231 gl_cv_func_memchr_works
=yes
5233 gl_cv_func_memchr_works
=no
5235 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5236 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
5241 $as_echo "$gl_cv_func_memchr_works" >&6; }
5242 if test "$gl_cv_func_memchr_works" != yes; then
5248 if test $HAVE_MEMCHR = 0 ||
test $REPLACE_MEMCHR = 1; then
5257 gl_LIBOBJS
="$gl_LIBOBJS memchr.$ac_objext"
5260 for ac_header
in bp-sym.h
5262 ac_fn_c_check_header_mongrel
"$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
5263 if test "x$ac_cv_header_bp_sym_h" = x
""yes; then :
5264 cat >>confdefs.h
<<_ACEOF
5265 #define HAVE_BP_SYM_H 1
5276 ac_fn_c_check_decl
"$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
5277 if test "x$ac_cv_have_decl_memmem" = x
""yes; then :
5283 cat >>confdefs.h
<<_ACEOF
5284 #define HAVE_DECL_MEMMEM $ac_have_decl
5300 for ac_func
in memmem
5302 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
5303 if test "x$ac_cv_func_memmem" = x
""yes; then :
5304 cat >>confdefs.h
<<_ACEOF
5305 #define HAVE_MEMMEM 1
5310 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
5323 if test $ac_cv_have_decl_memmem = no
; then
5329 gl_cv_c_multiarch
=no
5330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5331 /* end confdefs.h. */
5332 #ifndef __APPLE_CC__
5333 not a universal capable compiler
5338 if ac_fn_c_try_compile
"$LINENO"; then :
5342 for word
in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
5343 if test -n "$prev"; then
5345 i?
86 | x86_64 | ppc | ppc64
)
5346 if test -z "$arch" ||
test "$arch" = "$word"; then
5349 gl_cv_c_multiarch
=yes
5355 if test "x$word" = "x-arch"; then
5362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5363 if test $gl_cv_c_multiarch = yes; then
5365 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5367 APPLE_UNIVERSAL_BUILD
=1
5369 APPLE_UNIVERSAL_BUILD
=0
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
5380 $as_echo_n "checking for wchar_t... " >&6; }
5381 if test "${gt_cv_c_wchar_t+set}" = set; then :
5382 $as_echo_n "(cached) " >&6
5384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5385 /* end confdefs.h. */
5387 wchar_t foo = (wchar_t)'\0';
5396 if ac_fn_c_try_compile
"$LINENO"; then :
5401 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
5404 $as_echo "$gt_cv_c_wchar_t" >&6; }
5405 if test $gt_cv_c_wchar_t = yes; then
5407 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5414 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5415 if test "${gl_cv_have_include_next+set}" = set; then :
5416 $as_echo_n "(cached) " >&6
5418 rm -rf conftestd1a conftestd1b conftestd2
5419 mkdir conftestd1a conftestd1b conftestd2
5420 cat <<EOF > conftestd1a/conftest.h
5421 #define DEFINED_IN_CONFTESTD1
5422 #include_next <conftest.h>
5423 #ifdef DEFINED_IN_CONFTESTD2
5426 #error "include_next doesn't work"
5429 cat <<EOF > conftestd1b/conftest.h
5430 #define DEFINED_IN_CONFTESTD1
5432 #include_next <conftest.h>
5433 #ifdef DEFINED_IN_CONFTESTD2
5436 #error "include_next doesn't work"
5439 cat <<EOF > conftestd2/conftest.h
5440 #ifndef DEFINED_IN_CONFTESTD1
5441 #error "include_next test doesn't work"
5443 #define DEFINED_IN_CONFTESTD2
5445 gl_save_CPPFLAGS
="$CPPFLAGS"
5446 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5448 /* end confdefs.h. */
5449 #include <conftest.h>
5451 if ac_fn_c_try_compile
"$LINENO"; then :
5452 gl_cv_have_include_next
=yes
5454 CPPFLAGS
="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5456 /* end confdefs.h. */
5457 #include <conftest.h>
5459 if ac_fn_c_try_compile
"$LINENO"; then :
5460 gl_cv_have_include_next
=buggy
5462 gl_cv_have_include_next
=no
5464 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5467 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5468 CPPFLAGS
="$gl_save_CPPFLAGS"
5469 rm -rf conftestd1a conftestd1b conftestd2
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5473 $as_echo "$gl_cv_have_include_next" >&6; }
5474 PRAGMA_SYSTEM_HEADER
=
5475 if test $gl_cv_have_include_next = yes; then
5476 INCLUDE_NEXT
=include_next
5477 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
5478 if test -n "$GCC"; then
5479 PRAGMA_SYSTEM_HEADER
='#pragma GCC system_header'
5482 if test $gl_cv_have_include_next = buggy
; then
5483 INCLUDE_NEXT
=include
5484 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include_next
5486 INCLUDE_NEXT
=include
5487 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
=include
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5501 $as_echo_n "checking for long long int... " >&6; }
5502 if test "${ac_cv_type_long_long_int+set}" = set; then :
5503 $as_echo_n "(cached) " >&6
5505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5506 /* end confdefs.h. */
5508 /* For now, do not test the preprocessor; as of 2007 there are too many
5509 implementations with broken preprocessors. Perhaps this can
5510 be revisited in 2012. In the meantime, code should not expect
5511 #if to work with literals wider than 32 bits. */
5512 /* Test literals. */
5513 long long int ll = 9223372036854775807ll;
5514 long long int nll = -9223372036854775807LL;
5515 unsigned long long int ull = 18446744073709551615ULL;
5516 /* Test constant expressions. */
5517 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5519 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5525 /* Test availability of runtime routines for shift and division. */
5526 long long int llmax = 9223372036854775807ll;
5527 unsigned long long int ullmax = 18446744073709551615ull;
5528 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5529 | (llmax / ll) | (llmax % ll)
5530 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5531 | (ullmax / ull) | (ullmax % ull));
5537 if ac_fn_c_try_link
"$LINENO"; then :
5538 if test "$cross_compiling" = yes; then :
5539 ac_cv_type_long_long_int
=yes
5541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5542 /* end confdefs.h. */
5546 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5547 # define LLONG_MAX (HALF - 1 + HALF)
5552 long long int n = 1;
5556 long long int m = n << i;
5559 if (LLONG_MAX / 2 < m)
5567 if ac_fn_c_try_run
"$LINENO"; then :
5568 ac_cv_type_long_long_int
=yes
5570 ac_cv_type_long_long_int
=no
5572 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5573 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5577 ac_cv_type_long_long_int
=no
5579 rm -f core conftest.err conftest.
$ac_objext \
5580 conftest
$ac_exeext conftest.
$ac_ext
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5583 $as_echo "$ac_cv_type_long_long_int" >&6; }
5584 if test $ac_cv_type_long_long_int = yes; then
5586 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5592 $as_echo_n "checking for unsigned long long int... " >&6; }
5593 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5594 $as_echo_n "(cached) " >&6
5596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5597 /* end confdefs.h. */
5599 /* For now, do not test the preprocessor; as of 2007 there are too many
5600 implementations with broken preprocessors. Perhaps this can
5601 be revisited in 2012. In the meantime, code should not expect
5602 #if to work with literals wider than 32 bits. */
5603 /* Test literals. */
5604 long long int ll = 9223372036854775807ll;
5605 long long int nll = -9223372036854775807LL;
5606 unsigned long long int ull = 18446744073709551615ULL;
5607 /* Test constant expressions. */
5608 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5610 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5616 /* Test availability of runtime routines for shift and division. */
5617 long long int llmax = 9223372036854775807ll;
5618 unsigned long long int ullmax = 18446744073709551615ull;
5619 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5620 | (llmax / ll) | (llmax % ll)
5621 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5622 | (ullmax / ull) | (ullmax % ull));
5628 if ac_fn_c_try_link
"$LINENO"; then :
5629 ac_cv_type_unsigned_long_long_int
=yes
5631 ac_cv_type_unsigned_long_long_int
=no
5633 rm -f core conftest.err conftest.
$ac_objext \
5634 conftest
$ac_exeext conftest.
$ac_ext
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5637 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5638 if test $ac_cv_type_unsigned_long_long_int = yes; then
5640 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
5655 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
5656 if test "${ac_cv_c_restrict+set}" = set; then :
5657 $as_echo_n "(cached) " >&6
5660 # The order here caters to the fact that C++ does not require restrict.
5661 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
5662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5663 /* end confdefs.h. */
5664 typedef int * int_ptr;
5665 int foo (int_ptr $ac_kw ip) {
5679 if ac_fn_c_try_compile
"$LINENO"; then :
5680 ac_cv_c_restrict
=$ac_kw
5682 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5683 test "$ac_cv_c_restrict" != no
&& break
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5688 $as_echo "$ac_cv_c_restrict" >&6; }
5690 case $ac_cv_c_restrict in
5692 no
) $as_echo "#define restrict /**/" >>confdefs.h
5694 *) cat >>confdefs.h
<<_ACEOF
5695 #define restrict $ac_cv_c_restrict
5720 if test $gl_cv_have_include_next = yes; then
5721 gl_cv_next_string_h
='<'string.h
'>'
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
5724 $as_echo_n "checking absolute name of <string.h>... " >&6; }
5725 if test "${gl_cv_next_string_h+set}" = set; then :
5726 $as_echo_n "(cached) " >&6
5729 if test $ac_cv_header_string_h = yes; then
5730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5731 /* end confdefs.h. */
5736 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
5737 *) gl_absname_cpp
="$ac_cpp" ;;
5739 gl_cv_next_string_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5740 sed -n '\#/string.h#{
5741 s#.*"\(.*/string.h\)".*#\1#
5747 gl_cv_next_string_h
='<'string.h
'>'
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
5752 $as_echo "$gl_cv_next_string_h" >&6; }
5754 NEXT_STRING_H
=$gl_cv_next_string_h
5756 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
5757 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5758 gl_next_as_first_directive
='<'string.h
'>'
5760 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5761 gl_next_as_first_directive
=$gl_cv_next_string_h
5763 NEXT_AS_FIRST_DIRECTIVE_STRING_H
=$gl_next_as_first_directive
5769 for gl_func
in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp
; do
5770 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
5772 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
5773 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
5774 $as_echo_n "(cached) " >&6
5776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5777 /* end confdefs.h. */
5789 if ac_fn_c_try_compile
"$LINENO"; then :
5790 eval "$as_gl_Symbol=yes"
5792 eval "$as_gl_Symbol=no"
5794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5796 eval ac_res
=\$
$as_gl_Symbol
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5798 $as_echo "$ac_res" >&6; }
5799 eval as_val
=\$
$as_gl_Symbol
5800 if test "x$as_val" = x
""yes; then :
5801 cat >>confdefs.h
<<_ACEOF
5802 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
5805 eval ac_cv_have_decl_
$gl_func=yes
5817 GNULIB_MBSNRTOWCS
=0;
5820 GNULIB_WCSNRTOMBS
=0;
5832 HAVE_DECL_WCWIDTH
=1;
5833 REPLACE_MBSTATE_T
=0;
5839 REPLACE_MBSRTOWCS
=0;
5840 REPLACE_MBSNRTOWCS
=0;
5842 REPLACE_WCSRTOMBS
=0;
5843 REPLACE_WCSNRTOMBS
=0;
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
5848 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
5849 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
5850 $as_echo_n "(cached) " >&6
5852 gl_cv_header_wchar_h_correct_inline
=yes
5853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5854 /* end confdefs.h. */
5856 #define wcstod renamed_wcstod
5858 extern int zero (void);
5859 int main () { return zero(); }
5862 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5863 (eval $ac_compile) 2>&5
5865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5866 test $ac_status = 0; }; then
5867 mv conftest.
$ac_objext conftest1.
$ac_objext
5868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5869 /* end confdefs.h. */
5871 #define wcstod renamed_wcstod
5873 int zero (void) { return 0; }
5876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5877 (eval $ac_compile) 2>&5
5879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5880 test $ac_status = 0; }; then
5881 mv conftest.
$ac_objext conftest2.
$ac_objext
5882 if $CC -o conftest
$ac_exeext $CFLAGS $LDFLAGS conftest1.
$ac_objext conftest2.
$ac_objext $LIBS >&5 2>&1; then
5885 gl_cv_header_wchar_h_correct_inline
=no
5889 rm -f conftest1.
$ac_objext conftest2.
$ac_objext conftest
$ac_exeext
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
5893 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
5894 if test $gl_cv_header_wchar_h_correct_inline = no
; then
5895 as_fn_error
"<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
5896 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
5897 C99 mode. You have four options:
5898 - Add the flag -fgnu89-inline to CC and reconfigure, or
5899 - Fix your include files, using parts of
5900 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
5901 - Use a gcc version older than 4.3, or
5902 - Don't use the flags -std=c99 or -std=gnu99.
5903 Configuration aborted." "$LINENO" 5
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
5908 $as_echo_n "checking for wint_t... " >&6; }
5909 if test "${gt_cv_c_wint_t+set}" = set; then :
5910 $as_echo_n "(cached) " >&6
5912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5913 /* end confdefs.h. */
5915 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5917 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
5918 before <wchar.h>. */
5923 wint_t foo = (wchar_t)'\0';
5932 if ac_fn_c_try_compile
"$LINENO"; then :
5937 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
5940 $as_echo "$gt_cv_c_wint_t" >&6; }
5941 if test $gt_cv_c_wint_t = yes; then
5943 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
5949 GL_COND_LIBTOOL_TRUE
=
5950 GL_COND_LIBTOOL_FALSE
='#'
5952 GL_COND_LIBTOOL_TRUE
='#'
5953 GL_COND_LIBTOOL_FALSE
=
5956 gl_cond_libtool
=false
5959 gl_m4_base
='gnulib/m4'
5969 gl_source_base
='gnulib'
5970 # Code from module arg-nonnull:
5971 # Code from module c++defs:
5972 # Code from module extensions:
5973 # Code from module include_next:
5974 # Code from module memchr:
5983 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
5987 # Code from module memmem:
5990 if test $ac_cv_have_decl_memmem = yes; then
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
5992 $as_echo_n "checking whether memmem works in linear time... " >&6; }
5993 if test "${gl_cv_func_memmem_works+set}" = set; then :
5994 $as_echo_n "(cached) " >&6
5996 if test "$cross_compiling" = yes; then :
5997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5998 /* end confdefs.h. */
6000 #include <features.h>
6001 #ifdef __GNU_LIBRARY__
6002 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)
6007 #include <cygwin/version.h>
6008 #if CYGWIN_VERSION_DLL_MAJOR >= 1007
6014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6015 $EGREP "Lucky user" >/dev
/null
2>&1; then :
6016 gl_cv_func_memmem_works
=yes
6018 gl_cv_func_memmem_works
="guessing no"
6024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6025 /* end confdefs.h. */
6027 #include <signal.h> /* for signal */
6028 #include <string.h> /* for memmem */
6029 #include <stdlib.h> /* for malloc */
6030 #include <unistd.h> /* for alarm */
6036 char *haystack = (char *) malloc (2 * m + 1);
6037 char *needle = (char *) malloc (m + 1);
6039 /* Failure to compile this test due to missing alarm is okay,
6040 since all such platforms (mingw) also lack memmem. */
6041 signal (SIGALRM, SIG_DFL);
6043 /* Check for quadratic performance. */
6044 if (haystack && needle)
6046 memset (haystack, 'A', 2 * m);
6047 haystack[2 * m] = 'B';
6048 memset (needle, 'A', m);
6050 result = memmem (haystack, 2 * m + 1, needle, m + 1);
6052 /* Check for empty needle behavior. */
6053 return !result || !memmem ("a", 1, 0, 0);
6058 if ac_fn_c_try_run
"$LINENO"; then :
6059 gl_cv_func_memmem_works
=yes
6061 gl_cv_func_memmem_works
=no
6063 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6064 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works" >&5
6070 $as_echo "$gl_cv_func_memmem_works" >&6; }
6071 if test "$gl_cv_func_memmem_works" != yes; then
6081 gl_LIBOBJS
="$gl_LIBOBJS memmem.$ac_objext"
6086 # Code from module memmem-simple:
6099 for ac_func
in memmem
6101 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
6102 if test "x$ac_cv_func_memmem" = x
""yes; then :
6103 cat >>confdefs.h
<<_ACEOF
6104 #define HAVE_MEMMEM 1
6109 gl_LIBOBJS
="$gl_LIBOBJS $ac_func.$ac_objext"
6122 if test $ac_cv_have_decl_memmem = no
; then
6134 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
6138 # Code from module multiarch:
6140 # Code from module stddef:
6144 if test $gt_cv_c_wchar_t = no
; then
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
6149 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
6150 if test "${gl_cv_decl_null_works+set}" = set; then :
6151 $as_echo_n "(cached) " >&6
6153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6154 /* end confdefs.h. */
6156 int test[2 * (sizeof NULL == sizeof (void *)) -1];
6166 if ac_fn_c_try_compile
"$LINENO"; then :
6167 gl_cv_decl_null_works
=yes
6169 gl_cv_decl_null_works
=no
6171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
6174 $as_echo "$gl_cv_decl_null_works" >&6; }
6175 if test $gl_cv_decl_null_works = no
; then
6179 if test -n "$STDDEF_H"; then
6192 if test $gl_cv_have_include_next = yes; then
6193 gl_cv_next_stddef_h
='<'stddef.h
'>'
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
6196 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
6197 if test "${gl_cv_next_stddef_h+set}" = set; then :
6198 $as_echo_n "(cached) " >&6
6201 if test $ac_cv_header_stddef_h = yes; then
6202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6203 /* end confdefs.h. */
6208 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
6209 *) gl_absname_cpp
="$ac_cpp" ;;
6211 gl_cv_next_stddef_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6212 sed -n '\#/stddef.h#{
6213 s#.*"\(.*/stddef.h\)".*#\1#
6219 gl_cv_next_stddef_h
='<'stddef.h
'>'
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
6224 $as_echo "$gl_cv_next_stddef_h" >&6; }
6226 NEXT_STDDEF_H
=$gl_cv_next_stddef_h
6228 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
6229 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6230 gl_next_as_first_directive
='<'stddef.h
'>'
6232 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6233 gl_next_as_first_directive
=$gl_cv_next_stddef_h
6235 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
=$gl_next_as_first_directive
6241 # Code from module stdint:
6245 if test $ac_cv_type_long_long_int = yes; then
6246 HAVE_LONG_LONG_INT
=1
6248 HAVE_LONG_LONG_INT
=0
6252 if test $ac_cv_type_unsigned_long_long_int = yes; then
6253 HAVE_UNSIGNED_LONG_LONG_INT
=1
6255 HAVE_UNSIGNED_LONG_LONG_INT
=0
6259 if test $ac_cv_header_inttypes_h = yes; then
6266 if test $ac_cv_header_sys_types_h = yes; then
6285 if test $gl_cv_have_include_next = yes; then
6286 gl_cv_next_stdint_h
='<'stdint.h
'>'
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6289 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6290 if test "${gl_cv_next_stdint_h+set}" = set; then :
6291 $as_echo_n "(cached) " >&6
6294 if test $ac_cv_header_stdint_h = yes; then
6295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6296 /* end confdefs.h. */
6301 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
6302 *) gl_absname_cpp
="$ac_cpp" ;;
6304 gl_cv_next_stdint_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6305 sed -n '\#/stdint.h#{
6306 s#.*"\(.*/stdint.h\)".*#\1#
6312 gl_cv_next_stdint_h
='<'stdint.h
'>'
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6317 $as_echo "$gl_cv_next_stdint_h" >&6; }
6319 NEXT_STDINT_H
=$gl_cv_next_stdint_h
6321 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
6322 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6323 gl_next_as_first_directive
='<'stdint.h
'>'
6325 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6326 gl_next_as_first_directive
=$gl_cv_next_stdint_h
6328 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
=$gl_next_as_first_directive
6332 if test $ac_cv_header_stdint_h = yes; then
6339 if test $ac_cv_header_stdint_h = yes; then
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
6341 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
6342 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
6343 $as_echo_n "(cached) " >&6
6345 gl_cv_header_working_stdint_h
=no
6346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6347 /* end confdefs.h. */
6350 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6351 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6352 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6354 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
6355 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
6356 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
6360 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6361 included before <wchar.h>. */
6372 int8_t a1 = INT8_MAX;
6373 int8_t a1min = INT8_MIN;
6376 int16_t a2 = INT16_MAX;
6377 int16_t a2min = INT16_MIN;
6380 int32_t a3 = INT32_MAX;
6381 int32_t a3min = INT32_MIN;
6384 int64_t a4 = INT64_MAX;
6385 int64_t a4min = INT64_MIN;
6388 uint8_t b1 = UINT8_MAX;
6390 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
6393 uint16_t b2 = UINT16_MAX;
6396 uint32_t b3 = UINT32_MAX;
6399 uint64_t b4 = UINT64_MAX;
6401 int_least8_t c1 = INT8_C (0x7f);
6402 int_least8_t c1max = INT_LEAST8_MAX;
6403 int_least8_t c1min = INT_LEAST8_MIN;
6404 int_least16_t c2 = INT16_C (0x7fff);
6405 int_least16_t c2max = INT_LEAST16_MAX;
6406 int_least16_t c2min = INT_LEAST16_MIN;
6407 int_least32_t c3 = INT32_C (0x7fffffff);
6408 int_least32_t c3max = INT_LEAST32_MAX;
6409 int_least32_t c3min = INT_LEAST32_MIN;
6410 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
6411 int_least64_t c4max = INT_LEAST64_MAX;
6412 int_least64_t c4min = INT_LEAST64_MIN;
6413 uint_least8_t d1 = UINT8_C (0xff);
6414 uint_least8_t d1max = UINT_LEAST8_MAX;
6415 uint_least16_t d2 = UINT16_C (0xffff);
6416 uint_least16_t d2max = UINT_LEAST16_MAX;
6417 uint_least32_t d3 = UINT32_C (0xffffffff);
6418 uint_least32_t d3max = UINT_LEAST32_MAX;
6419 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
6420 uint_least64_t d4max = UINT_LEAST64_MAX;
6421 int_fast8_t e1 = INT_FAST8_MAX;
6422 int_fast8_t e1min = INT_FAST8_MIN;
6423 int_fast16_t e2 = INT_FAST16_MAX;
6424 int_fast16_t e2min = INT_FAST16_MIN;
6425 int_fast32_t e3 = INT_FAST32_MAX;
6426 int_fast32_t e3min = INT_FAST32_MIN;
6427 int_fast64_t e4 = INT_FAST64_MAX;
6428 int_fast64_t e4min = INT_FAST64_MIN;
6429 uint_fast8_t f1 = UINT_FAST8_MAX;
6430 uint_fast16_t f2 = UINT_FAST16_MAX;
6431 uint_fast32_t f3 = UINT_FAST32_MAX;
6432 uint_fast64_t f4 = UINT_FAST64_MAX;
6434 intptr_t g = INTPTR_MAX;
6435 intptr_t gmin = INTPTR_MIN;
6438 uintptr_t h = UINTPTR_MAX;
6440 intmax_t i = INTMAX_MAX;
6441 uintmax_t j = UINTMAX_MAX;
6443 #include <limits.h> /* for CHAR_BIT */
6444 #define TYPE_MINIMUM(t) \
6445 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
6446 #define TYPE_MAXIMUM(t) \
6447 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
6450 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
6451 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
6453 /* Detect bug in FreeBSD 6.0 / ia64. */
6454 int check_SIG_ATOMIC:
6455 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
6456 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
6458 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
6460 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
6461 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
6463 /* Detect bug in mingw. */
6465 WINT_MIN == TYPE_MINIMUM (wint_t)
6466 && WINT_MAX == TYPE_MAXIMUM (wint_t)
6469 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
6471 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
6473 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
6475 /* Detect bugs in OpenBSD 3.9 stdint.h. */
6477 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
6480 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
6483 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
6486 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
6488 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
6489 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
6490 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
6491 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
6492 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
6493 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
6494 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
6495 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
6496 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
6497 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
6498 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
6509 if ac_fn_c_try_compile
"$LINENO"; then :
6510 if test "$cross_compiling" = yes; then :
6511 gl_cv_header_working_stdint_h
=yes
6514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6515 /* end confdefs.h. */
6518 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6519 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6520 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6524 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6525 included before <wchar.h>. */
6537 #define MVAL(macro) MVAL1(macro)
6538 #define MVAL1(expression) #expression
6539 static const char *macro_values[] =
6573 for (mv = macro_values; *mv != NULL; mv++)
6575 const char *value = *mv;
6576 /* Test whether it looks like a cast expression. */
6577 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
6578 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
6579 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
6580 || strncmp (value, "((int)"/*)*/, 6) == 0
6581 || strncmp (value, "((signed short)"/*)*/, 15) == 0
6582 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
6591 if ac_fn_c_try_run
"$LINENO"; then :
6592 gl_cv_header_working_stdint_h
=yes
6594 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6595 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6600 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
6604 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
6606 if test "$gl_cv_header_working_stdint_h" = yes; then
6609 for ac_header
in sys
/inttypes.h sys
/bitypes.h
6611 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6612 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6613 eval as_val
=\$
$as_ac_Header
6614 if test "x$as_val" = x
""yes; then :
6615 cat >>confdefs.h
<<_ACEOF
6616 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6623 if test $ac_cv_header_sys_inttypes_h = yes; then
6624 HAVE_SYS_INTTYPES_H
=1
6626 HAVE_SYS_INTTYPES_H
=0
6629 if test $ac_cv_header_sys_bitypes_h = yes; then
6630 HAVE_SYS_BITYPES_H
=1
6632 HAVE_SYS_BITYPES_H
=0
6646 if test $APPLE_UNIVERSAL_BUILD = 0; then
6649 for gltype
in ptrdiff_t size_t
; do
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6651 $as_echo_n "checking for bit size of $gltype... " >&6; }
6652 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6653 $as_echo_n "(cached) " >&6
6655 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6656 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6657 included before <wchar.h>. */
6666 #include <limits.h>"; then :
6672 eval gl_cv_bitsizeof_
${gltype}=\
$result
6675 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6677 $as_echo "$ac_res" >&6; }
6678 eval result
=\
$gl_cv_bitsizeof_${gltype}
6679 if test $result = unknown
; then
6682 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6683 cat >>confdefs.h
<<_ACEOF
6684 #define BITSIZEOF_${GLTYPE} $result
6687 eval BITSIZEOF_
${GLTYPE}=\
$result
6694 for gltype
in sig_atomic_t wchar_t wint_t
; do
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6696 $as_echo_n "checking for bit size of $gltype... " >&6; }
6697 if { as_var
=gl_cv_bitsizeof_
${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6698 $as_echo_n "(cached) " >&6
6700 if ac_fn_c_compute_int
"$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6701 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6702 included before <wchar.h>. */
6711 #include <limits.h>"; then :
6717 eval gl_cv_bitsizeof_
${gltype}=\
$result
6720 eval ac_res
=\
$gl_cv_bitsizeof_${gltype}
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6722 $as_echo "$ac_res" >&6; }
6723 eval result
=\
$gl_cv_bitsizeof_${gltype}
6724 if test $result = unknown
; then
6727 GLTYPE
=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6728 cat >>confdefs.h
<<_ACEOF
6729 #define BITSIZEOF_${GLTYPE} $result
6732 eval BITSIZEOF_
${GLTYPE}=\
$result
6738 for gltype
in sig_atomic_t wchar_t wint_t
; do
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
6740 $as_echo_n "checking whether $gltype is signed... " >&6; }
6741 if { as_var
=gl_cv_type_
${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
6742 $as_echo_n "(cached) " >&6
6744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6745 /* end confdefs.h. */
6747 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6748 included before <wchar.h>. */
6757 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6766 if ac_fn_c_try_compile
"$LINENO"; then :
6771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6772 eval gl_cv_type_
${gltype}_signed
=\
$result
6775 eval ac_res
=\
$gl_cv_type_${gltype}_signed
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6777 $as_echo "$ac_res" >&6; }
6778 eval result
=\
$gl_cv_type_${gltype}_signed
6779 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6780 if test "$result" = yes; then
6781 cat >>confdefs.h
<<_ACEOF
6782 #define HAVE_SIGNED_${GLTYPE} 1
6785 eval HAVE_SIGNED_
${GLTYPE}=1
6787 eval HAVE_SIGNED_
${GLTYPE}=0
6792 gl_cv_type_ptrdiff_t_signed
=yes
6793 gl_cv_type_size_t_signed
=no
6794 if test $APPLE_UNIVERSAL_BUILD = 0; then
6797 for gltype
in ptrdiff_t size_t
; do
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6799 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6800 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6801 $as_echo_n "(cached) " >&6
6803 eval gl_cv_type_
${gltype}_suffix
=no
6804 eval result
=\
$gl_cv_type_${gltype}_signed
6805 if test "$result" = yes; then
6810 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
6813 l
) gltype1
='long int';;
6814 ll
) gltype1
='long long int';;
6815 i64
) gltype1
='__int64';;
6816 u
) gltype1
='unsigned int';;
6817 ul
) gltype1
='unsigned long int';;
6818 ull
) gltype1
='unsigned long long int';;
6819 ui64
)gltype1
='unsigned __int64';;
6821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6822 /* end confdefs.h. */
6824 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6825 included before <wchar.h>. */
6835 extern $gltype1 foo;
6844 if ac_fn_c_try_compile
"$LINENO"; then :
6845 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
6847 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6848 eval result
=\
$gl_cv_type_${gltype}_suffix
6849 test "$result" != no
&& break
6852 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6854 $as_echo "$ac_res" >&6; }
6855 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6856 eval result
=\
$gl_cv_type_${gltype}_suffix
6857 test "$result" = no
&& result
=
6858 eval ${GLTYPE}_SUFFIX
=\
$result
6859 cat >>confdefs.h
<<_ACEOF
6860 #define ${GLTYPE}_SUFFIX $result
6869 for gltype
in sig_atomic_t wchar_t wint_t
; do
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6871 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6872 if { as_var
=gl_cv_type_
${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6873 $as_echo_n "(cached) " >&6
6875 eval gl_cv_type_
${gltype}_suffix
=no
6876 eval result
=\
$gl_cv_type_${gltype}_signed
6877 if test "$result" = yes; then
6882 for glsuf
in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64
; do
6885 l
) gltype1
='long int';;
6886 ll
) gltype1
='long long int';;
6887 i64
) gltype1
='__int64';;
6888 u
) gltype1
='unsigned int';;
6889 ul
) gltype1
='unsigned long int';;
6890 ull
) gltype1
='unsigned long long int';;
6891 ui64
)gltype1
='unsigned __int64';;
6893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6894 /* end confdefs.h. */
6896 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6897 included before <wchar.h>. */
6907 extern $gltype1 foo;
6916 if ac_fn_c_try_compile
"$LINENO"; then :
6917 eval gl_cv_type_
${gltype}_suffix
=\
$glsuf
6919 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6920 eval result
=\
$gl_cv_type_${gltype}_suffix
6921 test "$result" != no
&& break
6924 eval ac_res
=\
$gl_cv_type_${gltype}_suffix
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6926 $as_echo "$ac_res" >&6; }
6927 GLTYPE
=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6928 eval result
=\
$gl_cv_type_${gltype}_suffix
6929 test "$result" = no
&& result
=
6930 eval ${GLTYPE}_SUFFIX
=\
$result
6931 cat >>confdefs.h
<<_ACEOF
6932 #define ${GLTYPE}_SUFFIX $result
6943 # Code from module string:
6947 # Code from module warn-on-use:
6948 # Code from module wchar:
6971 if test $gl_cv_have_include_next = yes; then
6972 gl_cv_next_wchar_h
='<'wchar.h
'>'
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
6975 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
6976 if test "${gl_cv_next_wchar_h+set}" = set; then :
6977 $as_echo_n "(cached) " >&6
6980 if test $ac_cv_header_wchar_h = yes; then
6981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6982 /* end confdefs.h. */
6987 aix
*) gl_absname_cpp
="$ac_cpp -C" ;;
6988 *) gl_absname_cpp
="$ac_cpp" ;;
6990 gl_cv_next_wchar_h
='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6991 sed -n '\#/wchar.h#{
6992 s#.*"\(.*/wchar.h\)".*#\1#
6998 gl_cv_next_wchar_h
='<'wchar.h
'>'
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
7003 $as_echo "$gl_cv_next_wchar_h" >&6; }
7005 NEXT_WCHAR_H
=$gl_cv_next_wchar_h
7007 if test $gl_cv_have_include_next = yes ||
test $gl_cv_have_include_next = buggy
; then
7008 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7009 gl_next_as_first_directive
='<'wchar.h
'>'
7011 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7012 gl_next_as_first_directive
=$gl_cv_next_wchar_h
7014 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
=$gl_next_as_first_directive
7018 if test $ac_cv_header_wchar_h = yes; then
7026 if test $gt_cv_c_wint_t = yes; then
7034 for gl_func
in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth
; do
7035 as_gl_Symbol
=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7037 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7038 if { as_var
=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7039 $as_echo_n "(cached) " >&6
7041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7042 /* end confdefs.h. */
7044 /* Some systems require additional headers. */
7046 # include <stddef.h>
7061 if ac_fn_c_try_compile
"$LINENO"; then :
7062 eval "$as_gl_Symbol=yes"
7064 eval "$as_gl_Symbol=no"
7066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7068 eval ac_res
=\$
$as_gl_Symbol
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7070 $as_echo "$ac_res" >&6; }
7071 eval as_val
=\$
$as_gl_Symbol
7072 if test "x$as_val" = x
""yes; then :
7073 cat >>confdefs.h
<<_ACEOF
7074 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7077 eval ac_cv_have_decl_
$gl_func=yes
7082 # Code from module dummy:
7083 # End of code from modules
7104 gl_source_base
='tests'
7105 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
7107 gl_module_indicator_condition
=$gltests_WITNESS
7117 LIBGNU_LIBDEPS
="$gl_libdeps"
7119 LIBGNU_LTLIBDEPS
="$gl_ltlibdeps"
7123 # For Makefile dependencies.
7125 if test x
"$STDINT_H" != x
; then
7126 GNULIB_STDINT_H
=gnulib
/$STDINT_H
7132 cat >>confdefs.h
<<_ACEOF
7133 #define PACKAGE "$PACKAGE"
7138 # GDB does not use automake, but gnulib does. This line lets us
7139 # generate its Makefile.in.
7140 am__api_version
='1.11'
7142 # Find a good install program. We prefer a C program (faster),
7143 # so one script is as good as another. But avoid the broken or
7144 # incompatible versions:
7145 # SysV /etc/install, /usr/sbin/install
7146 # SunOS /usr/etc/install
7147 # IRIX /sbin/install
7149 # AmigaOS /C/install, which installs bootblocks on floppy discs
7150 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7151 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7152 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7153 # OS/2's system install, which has a completely different semantic
7154 # ./install, which can be erroneously created by make from ./install.sh.
7155 # Reject install programs that cannot install multiple files.
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7157 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7158 if test -z "$INSTALL"; then
7159 if test "${ac_cv_path_install+set}" = set; then :
7160 $as_echo_n "(cached) " >&6
7162 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7166 test -z "$as_dir" && as_dir
=.
7167 # Account for people who put trailing slashes in PATH elements.
7168 case $as_dir/ in #((
7169 .
/ | .
// |
/[cC
]/* | \
7170 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7171 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
7174 # OSF1 and SCO ODT 3.0 have their own names for install.
7175 # Don't use installbsd from OSF since it installs stuff as root
7177 for ac_prog
in ginstall scoinst
install; do
7178 for ac_exec_ext
in '' $ac_executable_extensions; do
7179 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7180 if test $ac_prog = install &&
7181 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7182 # AIX install. It has an incompatible calling convention.
7184 elif test $ac_prog = install &&
7185 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7186 # program-specific install script used by HP pwplus--don't use.
7189 rm -rf conftest.one conftest.two conftest.dir
7190 echo one
> conftest.one
7191 echo two
> conftest.two
7193 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
7194 test -s conftest.one
&& test -s conftest.two
&&
7195 test -s conftest.dir
/conftest.one
&&
7196 test -s conftest.dir
/conftest.two
7198 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7211 rm -rf conftest.one conftest.two conftest.dir
7214 if test "${ac_cv_path_install+set}" = set; then
7215 INSTALL
=$ac_cv_path_install
7217 # As a last resort, use the slow shell script. Don't cache a
7218 # value for INSTALL within a source directory, because that will
7219 # break other packages using the cache if that directory is
7220 # removed, or if the value is a relative name.
7221 INSTALL
=$ac_install_sh
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7225 $as_echo "$INSTALL" >&6; }
7227 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7228 # It thinks the first close brace ends the variable substitution.
7229 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7231 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7233 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
7236 $as_echo_n "checking whether build environment is sane... " >&6; }
7239 echo timestamp
> conftest.
file
7240 # Reject unsafe characters in $srcdir or the absolute working directory
7241 # name. Accept space and tab only in the latter.
7245 *[\\\"\
#\$\&\'\`$am_lf]*)
7246 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
7249 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
7250 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
7253 # Do `set' in a subshell so we don't clobber the current shell's
7254 # arguments. Must try -L first in case configure is actually a
7255 # symlink; some systems play weird games with the mod time of symlinks
7256 # (eg FreeBSD returns the mod time of the symlink's containing
7259 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
7260 if test "$*" = "X"; then
7262 set X
`ls -t "$srcdir/configure" conftest.file`
7265 if test "$*" != "X $srcdir/configure conftest.file" \
7266 && test "$*" != "X conftest.file $srcdir/configure"; then
7268 # If neither matched, then we have a broken ls. This can happen
7269 # if, for instance, CONFIG_SHELL is bash and it inherits a
7270 # broken ls alias from the environment. This has actually
7271 # happened. Such a system could not be considered "sane".
7272 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
7273 alias in your environment" "$LINENO" 5
7276 test "$2" = conftest.
file
7282 as_fn_error
"newly created file is older than distributed files!
7283 Check your system clock" "$LINENO" 5
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7286 $as_echo "yes" >&6; }
7287 test "$program_prefix" != NONE
&&
7288 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
7289 # Use a double $ so make ignores it.
7290 test "$program_suffix" != NONE
&&
7291 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
7292 # Double any \ or $.
7293 # By default was `s,x,x', remove it if useless.
7294 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
7295 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
7297 # expand $ac_aux_dir to an absolute path
7298 am_aux_dir
=`cd $ac_aux_dir && pwd`
7300 if test x
"${MISSING+set}" != xset
; then
7303 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
7305 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
7308 # Use eval to expand $SHELL
7309 if eval "$MISSING --run true"; then
7310 am_missing_run
="$MISSING --run "
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
7314 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
7317 if test x
"${install_sh}" != xset
; then
7320 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
7322 install_sh
="\${SHELL} $am_aux_dir/install-sh"
7326 # Installed binaries are usually stripped using `strip' when the user
7327 # run `make install-strip'. However `strip' might not be the right
7328 # tool to use in cross-compilation environments, therefore Automake
7329 # will honor the `STRIP' environment variable to overrule this program.
7330 if test "$cross_compiling" != no
; then
7331 if test -n "$ac_tool_prefix"; then
7332 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7333 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7335 $as_echo_n "checking for $ac_word... " >&6; }
7336 if test "${ac_cv_prog_STRIP+set}" = set; then :
7337 $as_echo_n "(cached) " >&6
7339 if test -n "$STRIP"; then
7340 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
7342 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7346 test -z "$as_dir" && as_dir
=.
7347 for ac_exec_ext
in '' $ac_executable_extensions; do
7348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7349 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
7350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7359 STRIP
=$ac_cv_prog_STRIP
7360 if test -n "$STRIP"; then
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7362 $as_echo "$STRIP" >&6; }
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7365 $as_echo "no" >&6; }
7370 if test -z "$ac_cv_prog_STRIP"; then
7372 # Extract the first word of "strip", so it can be a program name with args.
7373 set dummy strip
; ac_word
=$2
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7375 $as_echo_n "checking for $ac_word... " >&6; }
7376 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7377 $as_echo_n "(cached) " >&6
7379 if test -n "$ac_ct_STRIP"; then
7380 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
7382 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7386 test -z "$as_dir" && as_dir
=.
7387 for ac_exec_ext
in '' $ac_executable_extensions; do
7388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7389 ac_cv_prog_ac_ct_STRIP
="strip"
7390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7399 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
7400 if test -n "$ac_ct_STRIP"; then
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7402 $as_echo "$ac_ct_STRIP" >&6; }
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7405 $as_echo "no" >&6; }
7408 if test "x$ac_ct_STRIP" = x
; then
7411 case $cross_compiling:$ac_tool_warned in
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7415 ac_tool_warned
=yes ;;
7420 STRIP
="$ac_cv_prog_STRIP"
7424 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7427 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7428 if test -z "$MKDIR_P"; then
7429 if test "${ac_cv_path_mkdir+set}" = set; then :
7430 $as_echo_n "(cached) " >&6
7432 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7433 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
7436 test -z "$as_dir" && as_dir
=.
7437 for ac_prog
in mkdir gmkdir
; do
7438 for ac_exec_ext
in '' $ac_executable_extensions; do
7439 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
7440 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7441 'mkdir (GNU coreutils) '* | \
7442 'mkdir (coreutils) '* | \
7443 'mkdir (fileutils) '4.1*)
7444 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
7454 if test "${ac_cv_path_mkdir+set}" = set; then
7455 MKDIR_P
="$ac_cv_path_mkdir -p"
7457 # As a last resort, use the slow shell script. Don't cache a
7458 # value for MKDIR_P within a source directory, because that will
7459 # break other packages using the cache if that directory is
7460 # removed, or if the value is a relative name.
7461 test -d .
/--version && rmdir .
/--version
7462 MKDIR_P
="$ac_install_sh -d"
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7466 $as_echo "$MKDIR_P" >&6; }
7471 [\\/$
]* | ?
:[\\/]*) ;;
7472 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
7475 for ac_prog
in gawk mawk nawk
awk
7477 # Extract the first word of "$ac_prog", so it can be a program name with args.
7478 set dummy
$ac_prog; ac_word
=$2
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7480 $as_echo_n "checking for $ac_word... " >&6; }
7481 if test "${ac_cv_prog_AWK+set}" = set; then :
7482 $as_echo_n "(cached) " >&6
7484 if test -n "$AWK"; then
7485 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7487 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7491 test -z "$as_dir" && as_dir
=.
7492 for ac_exec_ext
in '' $ac_executable_extensions; do
7493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7494 ac_cv_prog_AWK
="$ac_prog"
7495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7505 if test -n "$AWK"; then
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7507 $as_echo "$AWK" >&6; }
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7510 $as_echo "no" >&6; }
7514 test -n "$AWK" && break
7517 ac_config_commands
="$ac_config_commands depfiles"
7520 am_make
=${MAKE-make}
7521 cat > confinc
<< 'END'
7523 @
echo this is the am__doit target
7526 # If we don't find an include directive, just comment out the code.
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
7528 $as_echo_n "checking for style of include used by $am_make... " >&6; }
7532 # First try GNU make style include.
7533 echo "include confinc" > confmf
7534 # Ignore all kinds of additional output from `make'.
7535 case `$am_make -s -f confmf 2> /dev/null` in #(
7536 *the\ am__doit\ target
*)
7542 # Now try BSD make style include.
7543 if test "$am__include" = "#"; then
7544 echo '.include "confinc"' > confmf
7545 case `$am_make -s -f confmf 2> /dev/null` in #(
7546 *the\ am__doit\ target
*)
7547 am__include
=.include
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
7556 $as_echo "$_am_result" >&6; }
7557 rm -f confinc confmf
7559 # Check whether --enable-dependency-tracking was given.
7560 if test "${enable_dependency_tracking+set}" = set; then :
7561 enableval
=$enable_dependency_tracking;
7564 if test "x$enable_dependency_tracking" != xno
; then
7565 am_depcomp
="$ac_aux_dir/depcomp"
7568 if test "x$enable_dependency_tracking" != xno; then
7577 if test "`cd $srcdir && pwd`" != "`pwd`"; then
7578 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7579 # is not polluted with repeated "-I."
7580 am__isrc
=' -I$(srcdir)'
7581 # test to see if srcdir already configured
7582 if test -f $srcdir/config.status
; then
7583 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
7587 # test whether we have cygpath
7588 if test -z "$CYGPATH_W"; then
7589 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
7590 CYGPATH_W
='cygpath -w'
7597 # Define the identity of the package.
7599 VERSION
=UNUSED-VERSION
7602 # Some tools Automake needs.
7604 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
7607 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
7610 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
7613 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
7616 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
7618 # We need awk for the "check" target. The system "awk" is bad on
7620 # Always define AMTAR for backward compatibility.
7622 AMTAR
=${AMTAR-"${am_missing_run}tar"}
7624 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
7629 depcc
="$CC" am_compiler_list
=
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7632 $as_echo_n "checking dependency style of $depcc... " >&6; }
7633 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
7634 $as_echo_n "(cached) " >&6
7636 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7637 # We make a subdir and do the tests there. Otherwise we can end up
7638 # making bogus files that we don't know about and never remove. For
7639 # instance it was reported that on HP-UX the gcc test will end up
7640 # making a dummy file named `D' -- because `-MD' means `put the output
7643 # Copy depcomp to subdir because otherwise we won't find it if we're
7644 # using a relative directory.
7645 cp "$am_depcomp" conftest.dir
7647 # We will build objects and dependencies in a subdirectory because
7648 # it helps to detect inapplicable dependency modes. For instance
7649 # both Tru64's cc and ICC support -MD to output dependencies as a
7650 # side effect of compilation, but ICC will put the dependencies in
7651 # the current directory while Tru64 will put them in the object
7655 am_cv_CC_dependencies_compiler_type
=none
7656 if test "$am_compiler_list" = ""; then
7657 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7660 case " $depcc " in #(
7661 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
7664 for depmode
in $am_compiler_list; do
7665 # Setup a source with many dependencies, because some compilers
7666 # like to wrap large dependency lists on column 80 (with \), and
7667 # we should not choose a depcomp mode which is confused by this.
7669 # We need to recreate these files for each test, as the compiler may
7670 # overwrite some of them when testing with obscure command lines.
7671 # This happens at least with the AIX C compiler.
7673 for i
in 1 2 3 4 5 6; do
7674 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
7675 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7676 # Solaris 8's {/usr,}/bin/sh.
7677 touch sub
/conftst
$i.h
7679 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7681 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7682 # mode. It turns out that the SunPro C++ compiler does not properly
7683 # handle `-M -o', and we need to detect this. Also, some Intel
7684 # versions had trouble with output in subdirs
7685 am__obj
=sub
/conftest.
${OBJEXT-o}
7686 am__minus_obj
="-o $am__obj"
7689 # This depmode causes a compiler race in universal mode.
7690 test "$am__universal" = false ||
continue
7693 # after this tag, mechanisms are not by side-effect, so they'll
7694 # only be used when explicitly requested
7695 if test "x$enable_dependency_tracking" = xyes
; then
7701 msvisualcpp | msvcmsys
)
7702 # This compiler won't grok `-c -o', but also, the minuso test has
7703 # not run yet. These depmodes are late enough in the game, and
7704 # so weak that their functioning should not be impacted.
7705 am__obj
=conftest.
${OBJEXT-o}
7710 if depmode
=$depmode \
7711 source=sub
/conftest.c object
=$am__obj \
7712 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
7713 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
7714 >/dev
/null
2>conftest.err
&&
7715 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
7716 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
7717 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
7718 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
7719 # icc doesn't choke on unknown options, it will just issue warnings
7720 # or remarks (even with -Werror). So we grep stderr for any message
7721 # that says an option was ignored or not supported.
7722 # When given -MP, icc 7.0 and 7.1 complain thusly:
7723 # icc: Command line warning: ignoring option '-M'; no argument required
7724 # The diagnosis changed in icc 8.0:
7725 # icc: Command line remark: option '-MP' not supported
7726 if (grep 'ignoring option' conftest.err ||
7727 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
7728 am_cv_CC_dependencies_compiler_type
=$depmode
7737 am_cv_CC_dependencies_compiler_type
=none
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7742 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7743 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
7746 test "x$enable_dependency_tracking" != xno \
7747 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
7749 am__fastdepCC_FALSE
='#'
7751 am__fastdepCC_TRUE
='#'
7752 am__fastdepCC_FALSE
=
7760 # Check whether --with-separate-debug-dir was given.
7761 if test "${with_separate_debug_dir+set}" = set; then :
7762 withval
=$with_separate_debug_dir;
7765 DEBUGDIR
=${libdir}/debug
7769 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7770 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7771 ac_define_dir
=`eval echo $DEBUGDIR`
7772 ac_define_dir
=`eval echo $ac_define_dir`
7774 cat >>confdefs.h
<<_ACEOF
7775 #define DEBUGDIR "$ac_define_dir"
7780 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
7781 if test "x$prefix" = xNONE
; then
7782 test_prefix
=/usr
/local
7787 test_prefix
=$exec_prefix
7790 case ${ac_define_dir} in
7791 "${test_prefix}"|
"${test_prefix}/"*|\
7792 '${exec_prefix}'|
'${exec_prefix}/'*)
7797 cat >>confdefs.h
<<_ACEOF
7798 #define DEBUGDIR_RELOCATABLE $value
7803 # GDB's datadir relocation
7807 # Check whether --with-gdb-datadir was given.
7808 if test "${with_gdb_datadir+set}" = set; then :
7809 withval
=$with_gdb_datadir;
7810 GDB_DATADIR
=$withval
7812 GDB_DATADIR
=${datadir}/gdb
7816 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7817 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7818 ac_define_dir
=`eval echo $GDB_DATADIR`
7819 ac_define_dir
=`eval echo $ac_define_dir`
7821 cat >>confdefs.h
<<_ACEOF
7822 #define GDB_DATADIR "$ac_define_dir"
7827 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
7828 if test "x$prefix" = xNONE
; then
7829 test_prefix
=/usr
/local
7834 test_prefix
=$exec_prefix
7837 case ${ac_define_dir} in
7838 "${test_prefix}"|
"${test_prefix}/"*|\
7839 '${exec_prefix}'|
'${exec_prefix}/'*)
7844 cat >>confdefs.h
<<_ACEOF
7845 #define GDB_DATADIR_RELOCATABLE $value
7851 # Check whether --with-relocated-sources was given.
7852 if test "${with_relocated_sources+set}" = set; then :
7853 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
7855 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7856 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7857 ac_define_dir
=`eval echo $reloc_srcdir`
7858 ac_define_dir
=`eval echo $ac_define_dir`
7860 cat >>confdefs.h
<<_ACEOF
7861 #define RELOC_SRCDIR "$ac_define_dir"
7871 subdirs
="$subdirs doc testsuite"
7874 # Check whether to support alternative target configurations
7875 # Check whether --enable-targets was given.
7876 if test "${enable_targets+set}" = set; then :
7877 enableval
=$enable_targets; case "${enableval}" in
7878 yes |
"") as_fn_error
"enable-targets option must specify target names or 'all'" "$LINENO" 5
7880 no
) enable_targets
= ;;
7881 *) enable_targets
=$enableval ;;
7886 # Check whether to enable 64-bit support on 32-bit hosts
7887 # Check whether --enable-64-bit-bfd was given.
7888 if test "${enable_64_bit_bfd+set}" = set; then :
7889 enableval
=$enable_64_bit_bfd; case "${enableval}" in
7892 *) as_fn_error
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
7898 # Provide defaults for some variables set by the per-host and per-target
7900 gdb_host_obs
=posix-hdep.o
7902 if test "${target}" = "${host}"; then
7908 .
$srcdir/configure.
host
7910 # Accumulate some settings from configure.tgt over all enabled targets
7915 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
7917 if test "$targ_alias" = "all"; then
7920 # Canonicalize the secondary target names.
7921 result
=`$ac_config_sub $targ_alias 2>/dev/null`
7922 if test -n "$result"; then
7928 .
${srcdir}/configure.tgt
7930 if test -z "${gdb_target_obs}"; then :
7931 as_fn_error
"configuration ${targ} is unsupported." "$LINENO" 5
7934 # Target-specific object files
7935 for i
in ${gdb_target_obs}; do
7936 case " $TARGET_OBS " in
7939 TARGET_OBS
="$TARGET_OBS ${i}"
7944 # Check whether this target needs 64-bit CORE_ADDR
7945 if test x
${want64} = xfalse
; then
7946 .
${srcdir}/..
/bfd
/config.bfd
7951 if test x
${all_targets} = xtrue
; then
7953 # We want all 64-bit targets if we either:
7954 # - run on a 64-bit host or
7955 # - already require 64-bit support for some other target or
7956 # - the --enable-64-bit-bfd option was supplied
7957 # Otherwise we only support all 32-bit targets.
7959 # NOTE: This test must be in sync with the corresponding
7962 if test x
${want64} = xfalse
; then
7963 # The cast to long int works around a bug in the HP C Compiler
7964 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7965 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7966 # This bug is HP SR number 8606223364.
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7968 $as_echo_n "checking size of long... " >&6; }
7969 if test "${ac_cv_sizeof_long+set}" = set; then :
7970 $as_echo_n "(cached) " >&6
7972 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
7975 if test "$ac_cv_type_long" = yes; then
7976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7978 { as_fn_set_status
77
7979 as_fn_error
"cannot compute sizeof (long)
7980 See \`config.log' for more details." "$LINENO" 5; }; }
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
7988 $as_echo "$ac_cv_sizeof_long" >&6; }
7992 cat >>confdefs.h
<<_ACEOF
7993 #define SIZEOF_LONG $ac_cv_sizeof_long
7997 if test "x${ac_cv_sizeof_long}" = "x8"; then
8001 if test x
${want64} = xtrue
; then
8002 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
8004 TARGET_OBS
='$(ALL_TARGET_OBS)'
8010 # For other settings, only the main target counts.
8014 targ
=$target; .
${srcdir}/configure.tgt
8016 # Fetch the default architecture and default target vector from BFD.
8017 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
8019 # We only want the first architecture, so strip off the others if
8020 # there is more than one.
8021 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
8023 if test "x$targ_archs" != x
; then
8025 cat >>confdefs.h
<<_ACEOF
8026 #define DEFAULT_BFD_ARCH $targ_archs
8030 if test "x$targ_defvec" != x
; then
8032 cat >>confdefs.h
<<_ACEOF
8033 #define DEFAULT_BFD_VEC $targ_defvec
8038 # The CLI cannot be disabled yet, but may be in the future.
8041 # Check whether --enable-gdbcli was given.
8042 if test "${enable_gdbcli+set}" = set; then :
8043 enableval
=$enable_gdbcli; case $enableval in
8047 as_fn_error
"the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
8049 as_fn_error
"bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
8055 if test x
"$enable_gdbcli" = xyes
; then
8056 if test -d $srcdir/cli
; then
8057 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
8058 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
8059 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
8060 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
8065 # Check whether --enable-gdbmi was given.
8066 if test "${enable_gdbmi+set}" = set; then :
8067 enableval
=$enable_gdbmi; case $enableval in
8071 as_fn_error
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
8077 if test x
"$enable_gdbmi" = xyes
; then
8078 if test -d $srcdir/mi
; then
8079 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
8080 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
8081 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
8082 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
8087 # Check whether --enable-tui was given.
8088 if test "${enable_tui+set}" = set; then :
8089 enableval
=$enable_tui; case $enableval in
8093 as_fn_error
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
8101 # Check whether --enable-gdbtk was given.
8102 if test "${enable_gdbtk+set}" = set; then :
8103 enableval
=$enable_gdbtk; case $enableval in
8107 as_fn_error
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
8110 if test -d $srcdir/gdbtk
; then
8117 # We unconditionally disable gdbtk tests on selected platforms.
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
8121 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
8125 # Libunwind support.
8127 # Check whether --with-libunwind was given.
8128 if test "${with_libunwind+set}" = set; then :
8129 withval
=$with_libunwind; case "${withval}" in
8130 yes) enable_libunwind
=yes ;;
8131 no
) enable_libunwind
=no
;;
8132 *) as_fn_error
"bad value ${withval} for GDB with-libunwind option" "$LINENO" 5 ;;
8136 for ac_header
in libunwind.h libunwind-ia64.h
8138 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8139 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8140 eval as_val
=\$
$as_ac_Header
8141 if test "x$as_val" = x
""yes; then :
8142 cat >>confdefs.h
<<_ACEOF
8143 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8150 if test x
"$ac_cv_header_libunwind_h" = xyes
-a x
"$ac_cv_header_libunwind_ia64_h" = xyes
; then
8151 enable_libunwind
=yes;
8157 if test x
"$enable_libunwind" = xyes
; then
8158 for ac_header
in libunwind.h libunwind-ia64.h
8160 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8161 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8162 eval as_val
=\$
$as_ac_Header
8163 if test "x$as_val" = x
""yes; then :
8164 cat >>confdefs.h
<<_ACEOF
8165 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8173 $as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h
8175 CONFIG_OBS
="$CONFIG_OBS libunwind-frame.o"
8176 CONFIG_DEPS
="$CONFIG_DEPS libunwind-frame.o"
8177 CONFIG_SRCS
="$CONFIG_SRCS libunwind-frame.c"
8182 # Check whether --with-curses was given.
8183 if test "${with_curses+set}" = set; then :
8184 withval
=$with_curses; opt_curses
=$withval
8189 if test "$opt_curses" = "yes"; then
8193 # Profiling support.
8194 # Check whether --enable-profiling was given.
8195 if test "${enable_profiling+set}" = set; then :
8196 enableval
=$enable_profiling; case $enableval in
8200 as_fn_error
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
8207 for ac_func
in monstartup _mcleanup
8209 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8210 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8211 eval as_val
=\$
$as_ac_var
8212 if test "x$as_val" = x
""yes; then :
8213 cat >>confdefs.h
<<_ACEOF
8214 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
8221 $as_echo_n "checking for _etext... " >&6; }
8222 if test "${ac_cv_var__etext+set}" = set; then :
8223 $as_echo_n "(cached) " >&6
8225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8226 /* end confdefs.h. */
8238 if ac_fn_c_try_link
"$LINENO"; then :
8239 ac_cv_var__etext
=yes
8243 rm -f core conftest.err conftest.
$ac_objext \
8244 conftest
$ac_exeext conftest.
$ac_ext
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
8247 $as_echo "$ac_cv_var__etext" >&6; }
8248 if test $ac_cv_var__etext = yes; then
8250 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
8254 $as_echo_n "checking for etext... " >&6; }
8255 if test "${ac_cv_var_etext+set}" = set; then :
8256 $as_echo_n "(cached) " >&6
8258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8259 /* end confdefs.h. */
8271 if ac_fn_c_try_link
"$LINENO"; then :
8276 rm -f core conftest.err conftest.
$ac_objext \
8277 conftest
$ac_exeext conftest.
$ac_ext
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
8280 $as_echo "$ac_cv_var_etext" >&6; }
8281 if test $ac_cv_var_etext = yes; then
8283 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
8286 if test "$enable_profiling" = yes ; then
8287 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
8288 as_fn_error
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
8291 OLD_CFLAGS
="$CFLAGS"
8292 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
8295 $as_echo_n "checking whether $CC supports -pg... " >&6; }
8296 if test "${ac_cv_cc_supports_pg+set}" = set; then :
8297 $as_echo_n "(cached) " >&6
8299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8300 /* end confdefs.h. */
8310 if ac_fn_c_try_compile
"$LINENO"; then :
8311 ac_cv_cc_supports_pg
=yes
8313 ac_cv_cc_supports_pg
=no
8315 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
8318 $as_echo "$ac_cv_cc_supports_pg" >&6; }
8320 if test $ac_cv_cc_supports_pg = no
; then
8321 as_fn_error
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
8324 CFLAGS
="$OLD_CFLAGS"
8329 # Check whether --with-pkgversion was given.
8330 if test "${with_pkgversion+set}" = set; then :
8331 withval
=$with_pkgversion; case "$withval" in
8332 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
8334 *) PKGVERSION
="($withval) " ;;
8345 # Check whether --with-bugurl was given.
8346 if test "${with_bugurl+set}" = set; then :
8347 withval
=$with_bugurl; case "$withval" in
8348 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
8351 *) BUGURL
="$withval"
8355 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
8365 REPORT_BUGS_TO
="<$BUGURL>"
8366 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
8373 cat >>confdefs.h
<<_ACEOF
8374 #define PKGVERSION "$PKGVERSION"
8378 cat >>confdefs.h
<<_ACEOF
8379 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8383 # --------------------- #
8384 # Checks for programs. #
8385 # --------------------- #
8387 for ac_prog
in gawk mawk nawk
awk
8389 # Extract the first word of "$ac_prog", so it can be a program name with args.
8390 set dummy
$ac_prog; ac_word
=$2
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8392 $as_echo_n "checking for $ac_word... " >&6; }
8393 if test "${ac_cv_prog_AWK+set}" = set; then :
8394 $as_echo_n "(cached) " >&6
8396 if test -n "$AWK"; then
8397 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8399 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8403 test -z "$as_dir" && as_dir
=.
8404 for ac_exec_ext
in '' $ac_executable_extensions; do
8405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8406 ac_cv_prog_AWK
="$ac_prog"
8407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8417 if test -n "$AWK"; then
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8419 $as_echo "$AWK" >&6; }
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8422 $as_echo "no" >&6; }
8426 test -n "$AWK" && break
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8431 $as_echo_n "checking whether ln -s works... " >&6; }
8433 if test "$LN_S" = "ln -s"; then
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8435 $as_echo "yes" >&6; }
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8438 $as_echo "no, using $LN_S" >&6; }
8441 if test -n "$ac_tool_prefix"; then
8442 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8443 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8445 $as_echo_n "checking for $ac_word... " >&6; }
8446 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8447 $as_echo_n "(cached) " >&6
8449 if test -n "$RANLIB"; then
8450 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8452 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8456 test -z "$as_dir" && as_dir
=.
8457 for ac_exec_ext
in '' $ac_executable_extensions; do
8458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8459 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8469 RANLIB
=$ac_cv_prog_RANLIB
8470 if test -n "$RANLIB"; then
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8472 $as_echo "$RANLIB" >&6; }
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8475 $as_echo "no" >&6; }
8480 if test -z "$ac_cv_prog_RANLIB"; then
8481 ac_ct_RANLIB
=$RANLIB
8482 # Extract the first word of "ranlib", so it can be a program name with args.
8483 set dummy ranlib
; ac_word
=$2
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8485 $as_echo_n "checking for $ac_word... " >&6; }
8486 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8487 $as_echo_n "(cached) " >&6
8489 if test -n "$ac_ct_RANLIB"; then
8490 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8492 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8496 test -z "$as_dir" && as_dir
=.
8497 for ac_exec_ext
in '' $ac_executable_extensions; do
8498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8499 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8509 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8510 if test -n "$ac_ct_RANLIB"; then
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8512 $as_echo "$ac_ct_RANLIB" >&6; }
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8515 $as_echo "no" >&6; }
8518 if test "x$ac_ct_RANLIB" = x
; then
8521 case $cross_compiling:$ac_tool_warned in
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8525 ac_tool_warned
=yes ;;
8527 RANLIB
=$ac_ct_RANLIB
8530 RANLIB
="$ac_cv_prog_RANLIB"
8533 for ac_prog
in 'bison -y' byacc
8535 # Extract the first word of "$ac_prog", so it can be a program name with args.
8536 set dummy
$ac_prog; ac_word
=$2
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8538 $as_echo_n "checking for $ac_word... " >&6; }
8539 if test "${ac_cv_prog_YACC+set}" = set; then :
8540 $as_echo_n "(cached) " >&6
8542 if test -n "$YACC"; then
8543 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
8545 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8549 test -z "$as_dir" && as_dir
=.
8550 for ac_exec_ext
in '' $ac_executable_extensions; do
8551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8552 ac_cv_prog_YACC
="$ac_prog"
8553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8562 YACC
=$ac_cv_prog_YACC
8563 if test -n "$YACC"; then
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8565 $as_echo "$YACC" >&6; }
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8568 $as_echo "no" >&6; }
8572 test -n "$YACC" && break
8574 test -n "$YACC" || YACC
="yacc"
8577 if test -n "$ac_tool_prefix"; then
8578 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8579 set dummy
${ac_tool_prefix}ar; ac_word
=$2
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8581 $as_echo_n "checking for $ac_word... " >&6; }
8582 if test "${ac_cv_prog_AR+set}" = set; then :
8583 $as_echo_n "(cached) " >&6
8585 if test -n "$AR"; then
8586 ac_cv_prog_AR
="$AR" # Let the user override the test.
8588 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8592 test -z "$as_dir" && as_dir
=.
8593 for ac_exec_ext
in '' $ac_executable_extensions; do
8594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8595 ac_cv_prog_AR
="${ac_tool_prefix}ar"
8596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8606 if test -n "$AR"; then
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8608 $as_echo "$AR" >&6; }
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8611 $as_echo "no" >&6; }
8616 if test -z "$ac_cv_prog_AR"; then
8618 # Extract the first word of "ar", so it can be a program name with args.
8619 set dummy
ar; ac_word
=$2
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8621 $as_echo_n "checking for $ac_word... " >&6; }
8622 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8623 $as_echo_n "(cached) " >&6
8625 if test -n "$ac_ct_AR"; then
8626 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
8628 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8632 test -z "$as_dir" && as_dir
=.
8633 for ac_exec_ext
in '' $ac_executable_extensions; do
8634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8635 ac_cv_prog_ac_ct_AR
="ar"
8636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8645 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
8646 if test -n "$ac_ct_AR"; then
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8648 $as_echo "$ac_ct_AR" >&6; }
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8651 $as_echo "no" >&6; }
8654 if test "x$ac_ct_AR" = x
; then
8657 case $cross_compiling:$ac_tool_warned in
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8661 ac_tool_warned
=yes ;;
8669 if test -n "$ac_tool_prefix"; then
8670 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8671 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8673 $as_echo_n "checking for $ac_word... " >&6; }
8674 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8675 $as_echo_n "(cached) " >&6
8677 if test -n "$DLLTOOL"; then
8678 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
8680 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8684 test -z "$as_dir" && as_dir
=.
8685 for ac_exec_ext
in '' $ac_executable_extensions; do
8686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8687 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
8688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8697 DLLTOOL
=$ac_cv_prog_DLLTOOL
8698 if test -n "$DLLTOOL"; then
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8700 $as_echo "$DLLTOOL" >&6; }
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8703 $as_echo "no" >&6; }
8708 if test -z "$ac_cv_prog_DLLTOOL"; then
8709 ac_ct_DLLTOOL
=$DLLTOOL
8710 # Extract the first word of "dlltool", so it can be a program name with args.
8711 set dummy dlltool
; ac_word
=$2
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8713 $as_echo_n "checking for $ac_word... " >&6; }
8714 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
8715 $as_echo_n "(cached) " >&6
8717 if test -n "$ac_ct_DLLTOOL"; then
8718 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
8720 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8724 test -z "$as_dir" && as_dir
=.
8725 for ac_exec_ext
in '' $ac_executable_extensions; do
8726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8727 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
8728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8737 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
8738 if test -n "$ac_ct_DLLTOOL"; then
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8740 $as_echo "$ac_ct_DLLTOOL" >&6; }
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8743 $as_echo "no" >&6; }
8746 if test "x$ac_ct_DLLTOOL" = x
; then
8749 case $cross_compiling:$ac_tool_warned in
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8753 ac_tool_warned
=yes ;;
8755 DLLTOOL
=$ac_ct_DLLTOOL
8758 DLLTOOL
="$ac_cv_prog_DLLTOOL"
8761 if test -n "$ac_tool_prefix"; then
8762 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8763 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8765 $as_echo_n "checking for $ac_word... " >&6; }
8766 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8767 $as_echo_n "(cached) " >&6
8769 if test -n "$WINDRES"; then
8770 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
8772 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8776 test -z "$as_dir" && as_dir
=.
8777 for ac_exec_ext
in '' $ac_executable_extensions; do
8778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8779 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
8780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8789 WINDRES
=$ac_cv_prog_WINDRES
8790 if test -n "$WINDRES"; then
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8792 $as_echo "$WINDRES" >&6; }
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8795 $as_echo "no" >&6; }
8800 if test -z "$ac_cv_prog_WINDRES"; then
8801 ac_ct_WINDRES
=$WINDRES
8802 # Extract the first word of "windres", so it can be a program name with args.
8803 set dummy windres
; ac_word
=$2
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8805 $as_echo_n "checking for $ac_word... " >&6; }
8806 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
8807 $as_echo_n "(cached) " >&6
8809 if test -n "$ac_ct_WINDRES"; then
8810 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
8812 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8816 test -z "$as_dir" && as_dir
=.
8817 for ac_exec_ext
in '' $ac_executable_extensions; do
8818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8819 ac_cv_prog_ac_ct_WINDRES
="windres"
8820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8829 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
8830 if test -n "$ac_ct_WINDRES"; then
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
8832 $as_echo "$ac_ct_WINDRES" >&6; }
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8835 $as_echo "no" >&6; }
8838 if test "x$ac_ct_WINDRES" = x
; then
8841 case $cross_compiling:$ac_tool_warned in
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8845 ac_tool_warned
=yes ;;
8847 WINDRES
=$ac_ct_WINDRES
8850 WINDRES
="$ac_cv_prog_WINDRES"
8854 # Needed for GNU/Hurd.
8855 if test -n "$ac_tool_prefix"; then
8856 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
8857 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8859 $as_echo_n "checking for $ac_word... " >&6; }
8860 if test "${ac_cv_prog_MIG+set}" = set; then :
8861 $as_echo_n "(cached) " >&6
8863 if test -n "$MIG"; then
8864 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
8866 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8870 test -z "$as_dir" && as_dir
=.
8871 for ac_exec_ext
in '' $ac_executable_extensions; do
8872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8873 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
8874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8884 if test -n "$MIG"; then
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
8886 $as_echo "$MIG" >&6; }
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8889 $as_echo "no" >&6; }
8894 if test -z "$ac_cv_prog_MIG"; then
8896 # Extract the first word of "mig", so it can be a program name with args.
8897 set dummy mig
; ac_word
=$2
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8899 $as_echo_n "checking for $ac_word... " >&6; }
8900 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
8901 $as_echo_n "(cached) " >&6
8903 if test -n "$ac_ct_MIG"; then
8904 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
8906 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8910 test -z "$as_dir" && as_dir
=.
8911 for ac_exec_ext
in '' $ac_executable_extensions; do
8912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8913 ac_cv_prog_ac_ct_MIG
="mig"
8914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8923 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
8924 if test -n "$ac_ct_MIG"; then
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
8926 $as_echo "$ac_ct_MIG" >&6; }
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8929 $as_echo "no" >&6; }
8932 if test "x$ac_ct_MIG" = x
; then
8935 case $cross_compiling:$ac_tool_warned in
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8939 ac_tool_warned
=yes ;;
8944 MIG
="$ac_cv_prog_MIG"
8948 # ---------------------- #
8949 # Checks for libraries. #
8950 # ---------------------- #
8952 # We might need to link with -lm; most simulators need it.
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
8954 $as_echo_n "checking for main in -lm... " >&6; }
8955 if test "${ac_cv_lib_m_main+set}" = set; then :
8956 $as_echo_n "(cached) " >&6
8958 ac_check_lib_save_LIBS
=$LIBS
8960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8961 /* end confdefs.h. */
8972 if ac_fn_c_try_link
"$LINENO"; then :
8973 ac_cv_lib_m_main
=yes
8977 rm -f core conftest.err conftest.
$ac_objext \
8978 conftest
$ac_exeext conftest.
$ac_ext
8979 LIBS
=$ac_check_lib_save_LIBS
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
8982 $as_echo "$ac_cv_lib_m_main" >&6; }
8983 if test "x$ac_cv_lib_m_main" = x
""yes; then :
8984 cat >>confdefs.h
<<_ACEOF
8993 # We need to link with -lw to get `wctype' on Solaris before Solaris
8994 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
8995 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
8996 # is known to have this problem). Therefore we avoid libw if we can.
8997 ac_fn_c_check_func
"$LINENO" "wctype" "ac_cv_func_wctype"
8998 if test "x$ac_cv_func_wctype" = x
""yes; then :
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
9002 $as_echo_n "checking for wctype in -lw... " >&6; }
9003 if test "${ac_cv_lib_w_wctype+set}" = set; then :
9004 $as_echo_n "(cached) " >&6
9006 ac_check_lib_save_LIBS
=$LIBS
9008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9009 /* end confdefs.h. */
9011 /* Override any GCC internal prototype to avoid an error.
9012 Use char because int might match the return type of a GCC
9013 builtin and then its argument prototype would still apply. */
9026 if ac_fn_c_try_link
"$LINENO"; then :
9027 ac_cv_lib_w_wctype
=yes
9029 ac_cv_lib_w_wctype
=no
9031 rm -f core conftest.err conftest.
$ac_objext \
9032 conftest
$ac_exeext conftest.
$ac_ext
9033 LIBS
=$ac_check_lib_save_LIBS
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
9036 $as_echo "$ac_cv_lib_w_wctype" >&6; }
9037 if test "x$ac_cv_lib_w_wctype" = x
""yes; then :
9038 cat >>confdefs.h
<<_ACEOF
9049 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
9051 $as_echo_n "checking for library containing gethostbyname... " >&6; }
9052 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9053 $as_echo_n "(cached) " >&6
9055 ac_func_search_save_LIBS
=$LIBS
9056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9057 /* end confdefs.h. */
9059 /* Override any GCC internal prototype to avoid an error.
9060 Use char because int might match the return type of a GCC
9061 builtin and then its argument prototype would still apply. */
9065 char gethostbyname ();
9069 return gethostbyname ();
9074 for ac_lib
in '' nsl
; do
9075 if test -z "$ac_lib"; then
9076 ac_res
="none required"
9079 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9081 if ac_fn_c_try_link
"$LINENO"; then :
9082 ac_cv_search_gethostbyname
=$ac_res
9084 rm -f core conftest.err conftest.
$ac_objext \
9086 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9090 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9093 ac_cv_search_gethostbyname
=no
9096 LIBS
=$ac_func_search_save_LIBS
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
9099 $as_echo "$ac_cv_search_gethostbyname" >&6; }
9100 ac_res
=$ac_cv_search_gethostbyname
9101 if test "$ac_res" != no
; then :
9102 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9107 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
9109 $as_echo_n "checking for library containing socketpair... " >&6; }
9110 if test "${ac_cv_search_socketpair+set}" = set; then :
9111 $as_echo_n "(cached) " >&6
9113 ac_func_search_save_LIBS
=$LIBS
9114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9115 /* end confdefs.h. */
9117 /* Override any GCC internal prototype to avoid an error.
9118 Use char because int might match the return type of a GCC
9119 builtin and then its argument prototype would still apply. */
9127 return socketpair ();
9132 for ac_lib
in '' socket
; do
9133 if test -z "$ac_lib"; then
9134 ac_res
="none required"
9137 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9139 if ac_fn_c_try_link
"$LINENO"; then :
9140 ac_cv_search_socketpair
=$ac_res
9142 rm -f core conftest.err conftest.
$ac_objext \
9144 if test "${ac_cv_search_socketpair+set}" = set; then :
9148 if test "${ac_cv_search_socketpair+set}" = set; then :
9151 ac_cv_search_socketpair
=no
9154 LIBS
=$ac_func_search_save_LIBS
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
9157 $as_echo "$ac_cv_search_socketpair" >&6; }
9158 ac_res
=$ac_cv_search_socketpair
9159 if test "$ac_res" != no
; then :
9160 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9165 # Link in zlib if we can. This allows us to read compressed debug sections.
9167 # See if the user specified whether he wants zlib support or not.
9169 # Check whether --with-zlib was given.
9170 if test "${with_zlib+set}" = set; then :
9177 if test "$with_zlib" != "no"; then
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
9179 $as_echo_n "checking for library containing zlibVersion... " >&6; }
9180 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9181 $as_echo_n "(cached) " >&6
9183 ac_func_search_save_LIBS
=$LIBS
9184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9185 /* end confdefs.h. */
9187 /* Override any GCC internal prototype to avoid an error.
9188 Use char because int might match the return type of a GCC
9189 builtin and then its argument prototype would still apply. */
9193 char zlibVersion ();
9197 return zlibVersion ();
9202 for ac_lib
in '' z
; do
9203 if test -z "$ac_lib"; then
9204 ac_res
="none required"
9207 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9209 if ac_fn_c_try_link
"$LINENO"; then :
9210 ac_cv_search_zlibVersion
=$ac_res
9212 rm -f core conftest.err conftest.
$ac_objext \
9214 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9218 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9221 ac_cv_search_zlibVersion
=no
9224 LIBS
=$ac_func_search_save_LIBS
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
9227 $as_echo "$ac_cv_search_zlibVersion" >&6; }
9228 ac_res
=$ac_cv_search_zlibVersion
9229 if test "$ac_res" != no
; then :
9230 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9231 for ac_header
in zlib.h
9233 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
9234 if test "x$ac_cv_header_zlib_h" = x
""yes; then :
9235 cat >>confdefs.h
<<_ACEOF
9236 #define HAVE_ZLIB_H 1
9245 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
9246 as_fn_error
"zlib (libz) library was explicitly requested but not found" "$LINENO" 5
9251 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
9253 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
9254 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9255 $as_echo_n "(cached) " >&6
9257 ac_func_search_save_LIBS
=$LIBS
9258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9259 /* end confdefs.h. */
9261 /* Override any GCC internal prototype to avoid an error.
9262 Use char because int might match the return type of a GCC
9263 builtin and then its argument prototype would still apply. */
9267 char dlgetmodinfo ();
9271 return dlgetmodinfo ();
9276 for ac_lib
in '' dl xpdl
; do
9277 if test -z "$ac_lib"; then
9278 ac_res
="none required"
9281 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9283 if ac_fn_c_try_link
"$LINENO"; then :
9284 ac_cv_search_dlgetmodinfo
=$ac_res
9286 rm -f core conftest.err conftest.
$ac_objext \
9288 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9292 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9295 ac_cv_search_dlgetmodinfo
=no
9298 LIBS
=$ac_func_search_save_LIBS
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
9301 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
9302 ac_res
=$ac_cv_search_dlgetmodinfo
9303 if test "$ac_res" != no
; then :
9304 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9312 # Check whether --with-libiconv-prefix was given.
9313 if test "${with_libiconv_prefix+set}" = set; then :
9314 withval
=$with_libiconv_prefix;
9315 for dir
in `echo "$withval" | tr : ' '`; do
9316 if test -d $dir/include
; then LIBICONV_INCLUDE
="-I$dir/include"; fi
9317 if test -d $dir/lib
; then LIBICONV_LIBDIR
="-L$dir/lib"; fi
9323 BUILD_LIBICONV_LIBDIRS
="../libiconv/lib/.libs ../libiconv/lib/_libs"
9324 BUILD_LIBICONV_INCLUDE
="-I../libiconv/include"
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9327 $as_echo_n "checking for iconv... " >&6; }
9328 if test "${am_cv_func_iconv+set}" = set; then :
9329 $as_echo_n "(cached) " >&6
9332 am_cv_func_iconv
="no, consider installing GNU libiconv"
9334 am_cv_use_build_libiconv
=no
9335 am_cv_build_libiconv_path
=
9337 # If libiconv is part of the build tree, then try using it over
9339 if test -d ..
/libiconv
; then
9340 for lib_dir
in $BUILD_LIBICONV_LIBDIRS; do
9341 am_save_LIBS
="$LIBS"
9342 am_save_CPPFLAGS
="$CPPFLAGS"
9343 LIBS
="$LIBS $lib_dir/libiconv.a"
9344 CPPFLAGS
="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
9345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9346 /* end confdefs.h. */
9352 iconv_t cd = iconv_open("","");
9353 iconv(cd,NULL,NULL,NULL,NULL);
9359 if ac_fn_c_try_link
"$LINENO"; then :
9360 am_cv_use_build_libiconv
=yes
9361 am_cv_build_libiconv_path
=$lib_dir/libiconv.a
9363 am_cv_func_iconv
=yes
9365 rm -f core conftest.err conftest.
$ac_objext \
9366 conftest
$ac_exeext conftest.
$ac_ext
9367 LIBS
="$am_save_LIBS"
9368 CPPFLAGS
="$am_save_CPPFLAGS"
9369 if test "$am_cv_use_build_libiconv" = "yes"; then
9375 # Next, try to find iconv in libc.
9376 if test "$am_cv_func_iconv" != yes; then
9377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9378 /* end confdefs.h. */
9384 iconv_t cd = iconv_open("","");
9385 iconv(cd,NULL,NULL,NULL,NULL);
9391 if ac_fn_c_try_link
"$LINENO"; then :
9392 am_cv_func_iconv
=yes
9394 rm -f core conftest.err conftest.
$ac_objext \
9395 conftest
$ac_exeext conftest.
$ac_ext
9398 # If iconv was not in libc, try -liconv. In this case, arrange to
9399 # look in the libiconv prefix, if it was specified by the user.
9400 if test "$am_cv_func_iconv" != yes; then
9401 am_save_CPPFLAGS
="$CPPFLAGS"
9402 am_save_LIBS
="$LIBS"
9403 if test -n "$LIBICONV_INCLUDE"; then
9404 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
9405 LIBS
="$LIBS $LIBICONV_LIBDIR"
9407 LIBS
="$LIBS -liconv"
9408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9409 /* end confdefs.h. */
9415 iconv_t cd = iconv_open("","");
9416 iconv(cd,NULL,NULL,NULL,NULL);
9422 if ac_fn_c_try_link
"$LINENO"; then :
9424 am_cv_func_iconv
=yes
9426 rm -f core conftest.err conftest.
$ac_objext \
9427 conftest
$ac_exeext conftest.
$ac_ext
9428 LIBS
="$am_save_LIBS"
9429 CPPFLAGS
="$am_save_CPPFLAGS"
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9434 $as_echo "$am_cv_func_iconv" >&6; }
9436 # Set the various flags based on the cache variables. We can't rely
9437 # on the flags to remain set from the above code, due to caching.
9439 if test "$am_cv_lib_iconv" = yes; then
9445 if test "$am_cv_use_build_libiconv" = yes; then
9446 LIBICONV
="$am_cv_build_libiconv_path"
9448 LIBICONV_INCLUDE
="$BUILD_LIBICONV_INCLUDE"
9450 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
9451 LIBS
="$LIBS $LIBICONV_LIBDIR $LIBICONV"
9453 if test "$am_cv_func_iconv" = yes; then
9455 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9458 $as_echo_n "checking for iconv declaration... " >&6; }
9459 if test "${am_cv_proto_iconv+set}" = set; then :
9460 $as_echo_n "(cached) " >&6
9463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9464 /* end confdefs.h. */
9472 #if defined(__STDC__) || defined(__cplusplus)
9473 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9486 if ac_fn_c_try_compile
"$LINENO"; then :
9487 am_cv_proto_iconv_arg1
=""
9489 am_cv_proto_iconv_arg1
="const"
9491 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9492 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);"
9495 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9497 }$am_cv_proto_iconv" >&5
9499 }$am_cv_proto_iconv" >&6; }
9501 cat >>confdefs.h
<<_ACEOF
9502 #define ICONV_CONST $am_cv_proto_iconv_arg1
9508 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
9509 # There is a very specific comment in /usr/include/curses.h explaining that
9510 # termcap routines built into libcurses must not be used.
9512 # The symptoms we observed so far is GDB unexpectedly changing
9513 # the terminal settings when tgetent is called - this is particularly
9514 # visible as the output is missing carriage returns, and so rapidly
9515 # becomes very hard to read.
9517 # The readline configure script has already decided that libtermcap
9518 # was enough for its purposes, and so decided to build readline using
9519 # libtermcap. Since the TUI mode requires curses, building GDB with
9520 # TUI enabled results in both libraries to be used at the same time,
9521 # which is not allowed. This basically means that GDB with TUI is
9522 # broken on alpha-osf.
9526 if test x
"$enable_tui" = xyes
; then
9527 as_fn_error
"Building GDB with TUI mode is not supported on this host" "$LINENO" 5
9529 if test x
"$enable_tui" = xauto
; then
9535 # For the TUI, we need enhanced curses functionality.
9536 if test x
"$enable_tui" != xno
; then
9541 if test x
"$prefer_curses" = xyes
; then
9542 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9543 # curses library because the latter might not provide all the
9544 # functionality we need. However, this leads to problems on systems
9545 # where the linker searches /usr/local/lib, but the compiler doesn't
9546 # search /usr/local/include, if ncurses is installed in /usr/local. A
9547 # default installation of ncurses on alpha*-dec-osf* will lead to such
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
9550 $as_echo_n "checking for library containing waddstr... " >&6; }
9551 if test "${ac_cv_search_waddstr+set}" = set; then :
9552 $as_echo_n "(cached) " >&6
9554 ac_func_search_save_LIBS
=$LIBS
9555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9556 /* end confdefs.h. */
9558 /* Override any GCC internal prototype to avoid an error.
9559 Use char because int might match the return type of a GCC
9560 builtin and then its argument prototype would still apply. */
9573 for ac_lib
in '' ncurses cursesX curses
; do
9574 if test -z "$ac_lib"; then
9575 ac_res
="none required"
9578 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9580 if ac_fn_c_try_link
"$LINENO"; then :
9581 ac_cv_search_waddstr
=$ac_res
9583 rm -f core conftest.err conftest.
$ac_objext \
9585 if test "${ac_cv_search_waddstr+set}" = set; then :
9589 if test "${ac_cv_search_waddstr+set}" = set; then :
9592 ac_cv_search_waddstr
=no
9595 LIBS
=$ac_func_search_save_LIBS
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
9598 $as_echo "$ac_cv_search_waddstr" >&6; }
9599 ac_res
=$ac_cv_search_waddstr
9600 if test "$ac_res" != no
; then :
9601 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9606 if test "$ac_cv_search_waddstr" != no
; then
9611 # Check whether we should enable the TUI, but only do so if we really
9613 if test x
"$enable_tui" != xno
; then
9614 if test -d $srcdir/tui
; then
9615 if test "$curses_found" != no
; then
9616 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
9617 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
9618 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9619 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
9620 CONFIG_ALL
="${CONFIG_ALL} all-tui"
9621 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-tui"
9622 CONFIG_INSTALL
="${CONFIG_INSTALL} install-tui"
9623 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-tui"
9625 if test x
"$enable_tui" = xyes
; then
9626 as_fn_error
"no enhanced curses library found; disable TUI" "$LINENO" 5
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
9629 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9635 # Since GDB uses Readline, we need termcap functionality. In many
9636 # cases this will be provided by the curses library, but some systems
9637 # have a seperate termcap library, or no curses library at all.
9641 if test -d $srcdir/libtermcap
; then
9642 LIBS
="../libtermcap/libtermcap.a $LIBS"
9643 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
9646 ac_cv_search_tgetent
="none required"
9649 ac_cv_search_tgetent
="none required"
9650 CONFIG_OBS
="$CONFIG_OBS windows-termcap.o"
9654 # These are the libraries checked by Readline.
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9656 $as_echo_n "checking for library containing tgetent... " >&6; }
9657 if test "${ac_cv_search_tgetent+set}" = set; then :
9658 $as_echo_n "(cached) " >&6
9660 ac_func_search_save_LIBS
=$LIBS
9661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9662 /* end confdefs.h. */
9664 /* Override any GCC internal prototype to avoid an error.
9665 Use char because int might match the return type of a GCC
9666 builtin and then its argument prototype would still apply. */
9679 for ac_lib
in '' termcap tinfo curses ncurses
; do
9680 if test -z "$ac_lib"; then
9681 ac_res
="none required"
9684 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9686 if ac_fn_c_try_link
"$LINENO"; then :
9687 ac_cv_search_tgetent
=$ac_res
9689 rm -f core conftest.err conftest.
$ac_objext \
9691 if test "${ac_cv_search_tgetent+set}" = set; then :
9695 if test "${ac_cv_search_tgetent+set}" = set; then :
9698 ac_cv_search_tgetent
=no
9701 LIBS
=$ac_func_search_save_LIBS
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9704 $as_echo "$ac_cv_search_tgetent" >&6; }
9705 ac_res
=$ac_cv_search_tgetent
9706 if test "$ac_res" != no
; then :
9707 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9712 if test "$ac_cv_search_tgetent" = no
; then
9713 as_fn_error
"no termcap library found" "$LINENO" 5
9717 # Check whether --with-system-readline was given.
9718 if test "${with_system_readline+set}" = set; then :
9719 withval
=$with_system_readline;
9723 if test "$with_system_readline" = yes; then
9728 # readline-6.0 started to use the name `_rl_echoing_p'.
9729 # `$(READLINE_DIR)/' of bundled readline would not resolve in configure.
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline_echoing_p" >&5
9732 $as_echo_n "checking for readline_echoing_p... " >&6; }
9734 LIBS
="$LIBS $READLINE"
9735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9736 /* end confdefs.h. */
9741 extern int readline_echoing_p;
9742 return readline_echoing_p;
9747 if ac_fn_c_try_link
"$LINENO"; then :
9748 READLINE_ECHOING_P
=yes
9750 READLINE_ECHOING_P
=no
9752 $as_echo "#define readline_echoing_p _rl_echoing_p" >>confdefs.h
9755 rm -f core conftest.err conftest.
$ac_objext \
9756 conftest
$ac_exeext conftest.
$ac_ext
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_ECHOING_P" >&5
9759 $as_echo "$READLINE_ECHOING_P" >&6; }
9761 READLINE
='$(READLINE_DIR)/libreadline.a'
9762 READLINE_DEPS
='$(READLINE)'
9763 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
9770 # Check whether --with-expat was given.
9771 if test "${with_expat+set}" = set; then :
9772 withval
=$with_expat;
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9778 $as_echo_n "checking whether to use expat... " >&6; }
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9780 $as_echo "$with_expat" >&6; }
9782 if test "${with_expat}" = no
; then
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9784 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9788 if test "X$prefix" = "XNONE"; then
9789 acl_final_prefix
="$ac_default_prefix"
9791 acl_final_prefix
="$prefix"
9793 if test "X$exec_prefix" = "XNONE"; then
9794 acl_final_exec_prefix
='${prefix}'
9796 acl_final_exec_prefix
="$exec_prefix"
9798 acl_save_prefix
="$prefix"
9799 prefix
="$acl_final_prefix"
9800 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9801 prefix
="$acl_save_prefix"
9804 # Check whether --with-gnu-ld was given.
9805 if test "${with_gnu_ld+set}" = set; then :
9806 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9811 # Prepare PATH_SEPARATOR.
9812 # The user is always right.
9813 if test "${PATH_SEPARATOR+set}" != set; then
9814 echo "#! /bin/sh" >conf$$.sh
9815 echo "exit 0" >>conf$$.sh
9817 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9825 if test "$GCC" = yes; then
9826 # Check if gcc -print-prog-name=ld gives a path.
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9828 $as_echo_n "checking for ld used by GCC... " >&6; }
9831 # gcc leaves a trailing carriage return which upsets mingw
9832 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9834 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9837 # Accept absolute paths.
9838 [\\/]* |
[A-Za-z
]:[\\/]*)
9839 re_direlt
='/[^/][^/]*/\.\./'
9840 # Canonicalize the path of ld
9841 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9842 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9843 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9845 test -z "$LD" && LD
="$ac_prog"
9848 # If it fails, then pretend we aren't using GCC.
9852 # If it is relative, then search for the first ld in PATH.
9856 elif test "$with_gnu_ld" = yes; then
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9858 $as_echo_n "checking for GNU ld... " >&6; }
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9861 $as_echo_n "checking for non-GNU ld... " >&6; }
9863 if test "${acl_cv_path_LD+set}" = set; then :
9864 $as_echo_n "(cached) " >&6
9866 if test -z "$LD"; then
9867 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9868 for ac_dir
in $PATH; do
9869 test -z "$ac_dir" && ac_dir
=.
9870 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9871 acl_cv_path_LD
="$ac_dir/$ac_prog"
9872 # Check to see if the program is GNU ld. I'd rather use --version,
9873 # but apparently some GNU ld's only accept -v.
9874 # Break only if it was the GNU/non-GNU ld that we prefer.
9875 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9876 test "$with_gnu_ld" != no
&& break
9878 test "$with_gnu_ld" != yes && break
9884 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9888 LD
="$acl_cv_path_LD"
9889 if test -n "$LD"; then
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9891 $as_echo "$LD" >&6; }
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9894 $as_echo "no" >&6; }
9896 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9898 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9899 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9900 $as_echo_n "(cached) " >&6
9902 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9903 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9904 acl_cv_prog_gnu_ld
=yes
9906 acl_cv_prog_gnu_ld
=no
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9910 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9911 with_gnu_ld
=$acl_cv_prog_gnu_ld
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9916 $as_echo_n "checking for shared library run path origin... " >&6; }
9917 if test "${acl_cv_rpath+set}" = set; then :
9918 $as_echo_n "(cached) " >&6
9921 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9922 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9929 $as_echo "$acl_cv_rpath" >&6; }
9931 libext
="$acl_cv_libext"
9932 shlibext
="$acl_cv_shlibext"
9933 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9934 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9935 hardcode_direct
="$acl_cv_hardcode_direct"
9936 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9937 # Check whether --enable-rpath was given.
9938 if test "${enable_rpath+set}" = set; then :
9939 enableval
=$enable_rpath; :
9955 acl_save_prefix
="$prefix"
9956 prefix
="$acl_final_prefix"
9957 acl_save_exec_prefix
="$exec_prefix"
9958 exec_prefix
="$acl_final_exec_prefix"
9960 eval additional_includedir
=\"$includedir\"
9961 eval additional_libdir
=\"$libdir\"
9963 exec_prefix
="$acl_save_exec_prefix"
9964 prefix
="$acl_save_prefix"
9967 # Check whether --with-libexpat-prefix was given.
9968 if test "${with_libexpat_prefix+set}" = set; then :
9969 withval
=$with_libexpat_prefix;
9970 if test "X$withval" = "Xno"; then
9973 if test "X$withval" = "X"; then
9975 acl_save_prefix
="$prefix"
9976 prefix
="$acl_final_prefix"
9977 acl_save_exec_prefix
="$exec_prefix"
9978 exec_prefix
="$acl_final_exec_prefix"
9980 eval additional_includedir
=\"$includedir\"
9981 eval additional_libdir
=\"$libdir\"
9983 exec_prefix
="$acl_save_exec_prefix"
9984 prefix
="$acl_save_prefix"
9987 additional_includedir
="$withval/include"
9988 additional_libdir
="$withval/lib"
9999 names_already_handled
=
10000 names_next_round
='expat '
10001 while test -n "$names_next_round"; do
10002 names_this_round
="$names_next_round"
10004 for name
in $names_this_round; do
10006 for n
in $names_already_handled; do
10007 if test "$n" = "$name"; then
10008 already_handled
=yes
10012 if test -z "$already_handled"; then
10013 names_already_handled
="$names_already_handled $name"
10014 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10015 eval value
=\"\
$HAVE_LIB$uppername\"
10016 if test -n "$value"; then
10017 if test "$value" = yes; then
10018 eval value
=\"\
$LIB$uppername\"
10019 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
10020 eval value
=\"\
$LTLIB$uppername\"
10021 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10030 if test $use_additional = yes; then
10031 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10032 found_dir
="$additional_libdir"
10033 found_so
="$additional_libdir/lib$name.$shlibext"
10034 if test -f "$additional_libdir/lib$name.la"; then
10035 found_la
="$additional_libdir/lib$name.la"
10038 if test -f "$additional_libdir/lib$name.$libext"; then
10039 found_dir
="$additional_libdir"
10040 found_a
="$additional_libdir/lib$name.$libext"
10041 if test -f "$additional_libdir/lib$name.la"; then
10042 found_la
="$additional_libdir/lib$name.la"
10047 if test "X$found_dir" = "X"; then
10048 for x
in $LDFLAGS $LTLIBEXPAT; do
10050 acl_save_prefix
="$prefix"
10051 prefix
="$acl_final_prefix"
10052 acl_save_exec_prefix
="$exec_prefix"
10053 exec_prefix
="$acl_final_exec_prefix"
10055 exec_prefix
="$acl_save_exec_prefix"
10056 prefix
="$acl_save_prefix"
10060 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10061 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10063 found_so
="$dir/lib$name.$shlibext"
10064 if test -f "$dir/lib$name.la"; then
10065 found_la
="$dir/lib$name.la"
10068 if test -f "$dir/lib$name.$libext"; then
10070 found_a
="$dir/lib$name.$libext"
10071 if test -f "$dir/lib$name.la"; then
10072 found_la
="$dir/lib$name.la"
10078 if test "X$found_dir" != "X"; then
10083 if test "X$found_dir" != "X"; then
10084 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10085 if test "X$found_so" != "X"; then
10086 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10087 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10090 for x
in $ltrpathdirs; do
10091 if test "X$x" = "X$found_dir"; then
10096 if test -z "$haveit"; then
10097 ltrpathdirs
="$ltrpathdirs $found_dir"
10099 if test "$hardcode_direct" = yes; then
10100 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10102 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10103 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10105 for x
in $rpathdirs; do
10106 if test "X$x" = "X$found_dir"; then
10111 if test -z "$haveit"; then
10112 rpathdirs
="$rpathdirs $found_dir"
10116 for x
in $LDFLAGS $LIBEXPAT; do
10118 acl_save_prefix
="$prefix"
10119 prefix
="$acl_final_prefix"
10120 acl_save_exec_prefix
="$exec_prefix"
10121 exec_prefix
="$acl_final_exec_prefix"
10123 exec_prefix
="$acl_save_exec_prefix"
10124 prefix
="$acl_save_prefix"
10126 if test "X$x" = "X-L$found_dir"; then
10131 if test -z "$haveit"; then
10132 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10134 if test "$hardcode_minus_L" != no
; then
10135 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10137 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10143 if test "X$found_a" != "X"; then
10144 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10146 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10149 additional_includedir
=
10150 case "$found_dir" in
10152 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10153 additional_includedir
="$basedir/include"
10156 if test "X$additional_includedir" != "X"; then
10157 if test "X$additional_includedir" != "X/usr/include"; then
10159 if test "X$additional_includedir" = "X/usr/local/include"; then
10160 if test -n "$GCC"; then
10162 linux
*) haveit
=yes;;
10166 if test -z "$haveit"; then
10167 for x
in $CPPFLAGS $INCEXPAT; do
10169 acl_save_prefix
="$prefix"
10170 prefix
="$acl_final_prefix"
10171 acl_save_exec_prefix
="$exec_prefix"
10172 exec_prefix
="$acl_final_exec_prefix"
10174 exec_prefix
="$acl_save_exec_prefix"
10175 prefix
="$acl_save_prefix"
10177 if test "X$x" = "X-I$additional_includedir"; then
10182 if test -z "$haveit"; then
10183 if test -d "$additional_includedir"; then
10184 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10190 if test -n "$found_la"; then
10191 save_libdir
="$libdir"
10192 case "$found_la" in
10193 */* |
*\\*) .
"$found_la" ;;
10194 *) .
"./$found_la" ;;
10196 libdir
="$save_libdir"
10197 for dep
in $dependency_libs; do
10200 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10201 if test "X$additional_libdir" != "X/usr/lib"; then
10203 if test "X$additional_libdir" = "X/usr/local/lib"; then
10204 if test -n "$GCC"; then
10206 linux
*) haveit
=yes;;
10210 if test -z "$haveit"; then
10212 for x
in $LDFLAGS $LIBEXPAT; do
10214 acl_save_prefix
="$prefix"
10215 prefix
="$acl_final_prefix"
10216 acl_save_exec_prefix
="$exec_prefix"
10217 exec_prefix
="$acl_final_exec_prefix"
10219 exec_prefix
="$acl_save_exec_prefix"
10220 prefix
="$acl_save_prefix"
10222 if test "X$x" = "X-L$additional_libdir"; then
10227 if test -z "$haveit"; then
10228 if test -d "$additional_libdir"; then
10229 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
10233 for x
in $LDFLAGS $LTLIBEXPAT; do
10235 acl_save_prefix
="$prefix"
10236 prefix
="$acl_final_prefix"
10237 acl_save_exec_prefix
="$exec_prefix"
10238 exec_prefix
="$acl_final_exec_prefix"
10240 exec_prefix
="$acl_save_exec_prefix"
10241 prefix
="$acl_save_prefix"
10243 if test "X$x" = "X-L$additional_libdir"; then
10248 if test -z "$haveit"; then
10249 if test -d "$additional_libdir"; then
10250 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10257 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10258 if test "$enable_rpath" != no
; then
10260 for x
in $rpathdirs; do
10261 if test "X$x" = "X$dir"; then
10266 if test -z "$haveit"; then
10267 rpathdirs
="$rpathdirs $dir"
10270 for x
in $ltrpathdirs; do
10271 if test "X$x" = "X$dir"; then
10276 if test -z "$haveit"; then
10277 ltrpathdirs
="$ltrpathdirs $dir"
10282 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10285 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10288 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10289 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10295 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10296 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10302 if test "X$rpathdirs" != "X"; then
10303 if test -n "$hardcode_libdir_separator"; then
10305 for found_dir
in $rpathdirs; do
10306 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10308 acl_save_libdir
="$libdir"
10310 eval flag
=\"$hardcode_libdir_flag_spec\"
10311 libdir
="$acl_save_libdir"
10312 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10314 for found_dir
in $rpathdirs; do
10315 acl_save_libdir
="$libdir"
10316 libdir
="$found_dir"
10317 eval flag
=\"$hardcode_libdir_flag_spec\"
10318 libdir
="$acl_save_libdir"
10319 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10323 if test "X$ltrpathdirs" != "X"; then
10324 for found_dir
in $ltrpathdirs; do
10325 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10330 ac_save_CPPFLAGS
="$CPPFLAGS"
10332 for element
in $INCEXPAT; do
10334 for x
in $CPPFLAGS; do
10336 acl_save_prefix
="$prefix"
10337 prefix
="$acl_final_prefix"
10338 acl_save_exec_prefix
="$exec_prefix"
10339 exec_prefix
="$acl_final_exec_prefix"
10341 exec_prefix
="$acl_save_exec_prefix"
10342 prefix
="$acl_save_prefix"
10344 if test "X$x" = "X$element"; then
10349 if test -z "$haveit"; then
10350 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
10356 $as_echo_n "checking for libexpat... " >&6; }
10357 if test "${ac_cv_libexpat+set}" = set; then :
10358 $as_echo_n "(cached) " >&6
10361 ac_save_LIBS
="$LIBS"
10362 LIBS
="$LIBS $LIBEXPAT"
10363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10364 /* end confdefs.h. */
10369 XML_Parser p = XML_ParserCreate (0);
10374 if ac_fn_c_try_link
"$LINENO"; then :
10379 rm -f core conftest.err conftest.
$ac_objext \
10380 conftest
$ac_exeext conftest.
$ac_ext
10381 LIBS
="$ac_save_LIBS"
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
10385 $as_echo "$ac_cv_libexpat" >&6; }
10386 if test "$ac_cv_libexpat" = yes; then
10389 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
10392 $as_echo_n "checking how to link with libexpat... " >&6; }
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
10394 $as_echo "$LIBEXPAT" >&6; }
10397 CPPFLAGS
="$ac_save_CPPFLAGS"
10407 if test "$HAVE_LIBEXPAT" != yes; then
10408 if test "$with_expat" = yes; then
10409 as_fn_error
"expat is missing or unusable" "$LINENO" 5
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
10412 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
10416 LIBS
="$LIBS $LIBEXPAT"
10417 for ac_func
in XML_StopParser
10419 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
10420 if test "x$ac_cv_func_XML_StopParser" = x
""yes; then :
10421 cat >>confdefs.h
<<_ACEOF
10422 #define HAVE_XML_STOPPARSER 1
10436 # Check whether --with-python was given.
10437 if test "${with_python+set}" = set; then :
10438 withval
=$with_python;
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10444 $as_echo_n "checking whether to use python... " >&6; }
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10446 $as_echo "$with_python" >&6; }
10448 if test "${with_python}" = no
; then
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10450 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10453 have_python_config
=no
10454 case "${with_python}" in
10456 if test -d ${with_python}; then
10457 # Assume the python binary is ${with_python}/bin/python.
10458 python_prefix
=${with_python}
10459 python_prog
="${with_python}/bin/python"
10460 if test ! -x ${python_prog}; then
10461 # Fall back to gdb 7.0/7.1 behaviour.
10462 python_prog
=missing
10464 elif test -x ${with_python}; then
10465 # While we can't run python compiled for $host (unless host == build),
10466 # the user could write a script that provides the needed information,
10467 # so we support that.
10469 python_prog
=${with_python}
10471 as_fn_error
"invalid value for --with-python" "$LINENO" 5
10475 # Disallow --with-python=foo/bar.
10476 as_fn_error
"invalid value for --with-python" "$LINENO" 5
10479 # The user has either specified auto, yes, or the name of the python
10480 # program assumed to be in $PATH.
10482 case "${with_python}" in
10484 if test ${build} = ${host}; then
10485 # Extract the first word of "python", so it can be a program name with args.
10486 set dummy python
; ac_word
=$2
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10488 $as_echo_n "checking for $ac_word... " >&6; }
10489 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10490 $as_echo_n "(cached) " >&6
10492 case $python_prog_path in
10494 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10497 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10498 for as_dir
in $PATH
10501 test -z "$as_dir" && as_dir
=.
10502 for ac_exec_ext
in '' $ac_executable_extensions; do
10503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10504 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10512 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10516 python_prog_path
=$ac_cv_path_python_prog_path
10517 if test -n "$python_prog_path"; then
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10519 $as_echo "$python_prog_path" >&6; }
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10522 $as_echo "no" >&6; }
10526 if test "${python_prog_path}" = missing
; then
10527 python_prog
=missing
10529 python_prog
=${python_prog_path}
10532 # Not much we can do except assume the cross-compiler will find the
10534 python_prog
=missing
10538 # While we can't run python compiled for $host (unless host == build),
10539 # the user could write a script that provides the needed information,
10540 # so we support that.
10541 python_prog
="${with_python}"
10542 # Extract the first word of "${python_prog}", so it can be a program name with args.
10543 set dummy
${python_prog}; ac_word
=$2
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10545 $as_echo_n "checking for $ac_word... " >&6; }
10546 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10547 $as_echo_n "(cached) " >&6
10549 case $python_prog_path in
10551 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10554 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10555 for as_dir
in $PATH
10558 test -z "$as_dir" && as_dir
=.
10559 for ac_exec_ext
in '' $ac_executable_extensions; do
10560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10561 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10569 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10573 python_prog_path
=$ac_cv_path_python_prog_path
10574 if test -n "$python_prog_path"; then
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10576 $as_echo "$python_prog_path" >&6; }
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10579 $as_echo "no" >&6; }
10583 if test "${python_prog_path}" = missing
; then
10584 as_fn_error
"unable to find python program ${python_prog}" "$LINENO" 5
10590 if test "${python_prog}" != missing
; then
10591 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
10592 if test $?
!= 0; then
10593 as_fn_error
"failure running python-config --includes" "$LINENO" 5
10595 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10596 if test $?
!= 0; then
10597 as_fn_error
"failure running python-config --ldflags" "$LINENO" 5
10599 have_python_config
=yes
10601 # Fall back to gdb 7.0/7.1 behaviour.
10602 if test -z ${python_prefix}; then
10606 python_includes
="-I${python_prefix}/include"
10607 python_libs
="-L${python_prefix}/lib"
10611 # Having "/pythonX.Y" in the include path is awkward.
10612 # All those python headers get bubbled up to the top inviting lots
10613 # of random collisions. GDB originally didn't use python-config to
10614 # find the compilation parameters and includes "pythonX.Y/" in the
10615 # path of the, umm, include file. So strip away this part of the
10616 # output of python-config --includes.
10617 python_includes
=`echo "${python_includes} " \
10618 | sed -e 's,/python[0-9]*[.][0-9]* , ,g'`
10620 # If we have python-config, only try the configuration it provides.
10621 # Otherwise fallback on the old way of trying different versions of
10625 if test "${have_python_config}" = yes; then
10626 python_version
=`echo " ${python_libs} " \
10627 | sed -e 's,^.* -l\(python[0-9]*[.][0-9]*\) .*$,\1,'`
10628 if test "${python_version}" != ""; then
10630 version
=${python_version}
10632 new_CPPFLAGS
=${python_includes}
10633 new_LIBS
=${python_libs}
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10635 $as_echo_n "checking for ${version}... " >&6; }
10636 save_CPPFLAGS
=$CPPFLAGS
10638 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10639 LIBS
="$LIBS $new_LIBS"
10640 found_usable_python
=no
10641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10642 /* end confdefs.h. */
10643 #include "${version}/Python.h"
10652 if ac_fn_c_try_link
"$LINENO"; then :
10653 have_libpython
=${version}
10654 found_usable_python
=yes
10656 CPPFLAGS
=$save_CPPFLAGS
10659 rm -f core conftest.err conftest.
$ac_objext \
10660 conftest
$ac_exeext conftest.
$ac_ext
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10662 $as_echo "${found_usable_python}" >&6; }
10665 as_fn_error
"unable to determine python version from ${python_libs}" "$LINENO" 5
10668 if test "${have_libpython}" = no
; then
10672 new_CPPFLAGS
=${python_includes}
10673 new_LIBS
="${python_libs} -lpython2.6"
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10675 $as_echo_n "checking for ${version}... " >&6; }
10676 save_CPPFLAGS
=$CPPFLAGS
10678 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10679 LIBS
="$LIBS $new_LIBS"
10680 found_usable_python
=no
10681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10682 /* end confdefs.h. */
10683 #include "${version}/Python.h"
10692 if ac_fn_c_try_link
"$LINENO"; then :
10693 have_libpython
=${version}
10694 found_usable_python
=yes
10696 CPPFLAGS
=$save_CPPFLAGS
10699 rm -f core conftest.err conftest.
$ac_objext \
10700 conftest
$ac_exeext conftest.
$ac_ext
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10702 $as_echo "${found_usable_python}" >&6; }
10705 if test ${have_libpython} = no
; then
10709 new_CPPFLAGS
=${python_includes}
10710 new_LIBS
="${python_libs} -lpython2.5"
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10712 $as_echo_n "checking for ${version}... " >&6; }
10713 save_CPPFLAGS
=$CPPFLAGS
10715 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10716 LIBS
="$LIBS $new_LIBS"
10717 found_usable_python
=no
10718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10719 /* end confdefs.h. */
10720 #include "${version}/Python.h"
10729 if ac_fn_c_try_link
"$LINENO"; then :
10730 have_libpython
=${version}
10731 found_usable_python
=yes
10733 CPPFLAGS
=$save_CPPFLAGS
10736 rm -f core conftest.err conftest.
$ac_objext \
10737 conftest
$ac_exeext conftest.
$ac_ext
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10739 $as_echo "${found_usable_python}" >&6; }
10742 if test ${have_libpython} = no
; then
10746 new_CPPFLAGS
=${python_includes}
10747 new_LIBS
="${python_libs} -lpython2.4"
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10749 $as_echo_n "checking for ${version}... " >&6; }
10750 save_CPPFLAGS
=$CPPFLAGS
10752 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10753 LIBS
="$LIBS $new_LIBS"
10754 found_usable_python
=no
10755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10756 /* end confdefs.h. */
10757 #include "${version}/Python.h"
10766 if ac_fn_c_try_link
"$LINENO"; then :
10767 have_libpython
=${version}
10768 found_usable_python
=yes
10770 CPPFLAGS
=$save_CPPFLAGS
10773 rm -f core conftest.err conftest.
$ac_objext \
10774 conftest
$ac_exeext conftest.
$ac_ext
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10776 $as_echo "${found_usable_python}" >&6; }
10780 if test "${have_libpython}" = python2.6
; then
10782 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
10784 elif test "${have_libpython}" = python2.5
; then
10786 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
10788 elif test "${have_libpython}" = python2.4
; then
10790 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
10794 if test "${have_libpython}" = no
; then
10795 case "${with_python}" in
10797 as_fn_error
"python is missing or unusable" "$LINENO" 5
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10801 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10804 as_fn_error
"no usable python found at ${with_python}" "$LINENO" 5
10810 if test "${have_libpython}" != no
; then
10812 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10814 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10815 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10816 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
10817 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
10819 # Flags needed to compile Python code (taken from python-config --cflags).
10820 # We cannot call python-config directly because it will output whatever was
10821 # used when compiling the Python interpreter itself, including flags which
10822 # would make the python-related objects be compiled differently from the
10823 # rest of GDB (e.g., -O2 and -fPIC).
10824 if test "${GCC}" = yes; then
10825 tentative_python_cflags
="-fno-strict-aliasing -DNDEBUG -fwrapv"
10828 if test "x${tentative_python_cflags}" != x
; then
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10830 $as_echo_n "checking compiler flags for python code... " >&6; }
10831 for flag
in ${tentative_python_cflags}; do
10832 # Check that the compiler accepts it
10833 saved_CFLAGS
="$CFLAGS"
10834 CFLAGS
="$CFLAGS $flag"
10835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10836 /* end confdefs.h. */
10846 if ac_fn_c_try_compile
"$LINENO"; then :
10847 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
10849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10850 CFLAGS
="$saved_CFLAGS"
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
10853 $as_echo "${PYTHON_CFLAGS}" >&6; }
10856 # Even if Python support is not compiled in, we need to have these files
10858 CONFIG_OBS
="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
10859 CONFIG_SRCS
="$CONFIG_SRCS python/python.c python/py-value.c \
10860 python/py-prettyprint.c python/py-auto-load.c"
10864 # ------------------------- #
10865 # Checks for header files. #
10866 # ------------------------- #
10868 ac_header_dirent
=no
10869 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
10870 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10872 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10873 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
10874 $as_echo_n "(cached) " >&6
10876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10877 /* end confdefs.h. */
10878 #include <sys/types.h>
10890 if ac_fn_c_try_compile
"$LINENO"; then :
10891 eval "$as_ac_Header=yes"
10893 eval "$as_ac_Header=no"
10895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10897 eval ac_res
=\$
$as_ac_Header
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10899 $as_echo "$ac_res" >&6; }
10900 eval as_val
=\$
$as_ac_Header
10901 if test "x$as_val" = x
""yes; then :
10902 cat >>confdefs.h
<<_ACEOF
10903 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10906 ac_header_dirent
=$ac_hdr; break
10910 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10911 if test $ac_header_dirent = dirent.h
; then
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10913 $as_echo_n "checking for library containing opendir... " >&6; }
10914 if test "${ac_cv_search_opendir+set}" = set; then :
10915 $as_echo_n "(cached) " >&6
10917 ac_func_search_save_LIBS
=$LIBS
10918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10919 /* end confdefs.h. */
10921 /* Override any GCC internal prototype to avoid an error.
10922 Use char because int might match the return type of a GCC
10923 builtin and then its argument prototype would still apply. */
10936 for ac_lib
in '' dir
; do
10937 if test -z "$ac_lib"; then
10938 ac_res
="none required"
10941 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10943 if ac_fn_c_try_link
"$LINENO"; then :
10944 ac_cv_search_opendir
=$ac_res
10946 rm -f core conftest.err conftest.
$ac_objext \
10948 if test "${ac_cv_search_opendir+set}" = set; then :
10952 if test "${ac_cv_search_opendir+set}" = set; then :
10955 ac_cv_search_opendir
=no
10957 rm conftest.
$ac_ext
10958 LIBS
=$ac_func_search_save_LIBS
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10961 $as_echo "$ac_cv_search_opendir" >&6; }
10962 ac_res
=$ac_cv_search_opendir
10963 if test "$ac_res" != no
; then :
10964 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10970 $as_echo_n "checking for library containing opendir... " >&6; }
10971 if test "${ac_cv_search_opendir+set}" = set; then :
10972 $as_echo_n "(cached) " >&6
10974 ac_func_search_save_LIBS
=$LIBS
10975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10976 /* end confdefs.h. */
10978 /* Override any GCC internal prototype to avoid an error.
10979 Use char because int might match the return type of a GCC
10980 builtin and then its argument prototype would still apply. */
10993 for ac_lib
in '' x
; do
10994 if test -z "$ac_lib"; then
10995 ac_res
="none required"
10998 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11000 if ac_fn_c_try_link
"$LINENO"; then :
11001 ac_cv_search_opendir
=$ac_res
11003 rm -f core conftest.err conftest.
$ac_objext \
11005 if test "${ac_cv_search_opendir+set}" = set; then :
11009 if test "${ac_cv_search_opendir+set}" = set; then :
11012 ac_cv_search_opendir
=no
11014 rm conftest.
$ac_ext
11015 LIBS
=$ac_func_search_save_LIBS
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11018 $as_echo "$ac_cv_search_opendir" >&6; }
11019 ac_res
=$ac_cv_search_opendir
11020 if test "$ac_res" != no
; then :
11021 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11028 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11029 if test "${ac_cv_header_stat_broken+set}" = set; then :
11030 $as_echo_n "(cached) " >&6
11032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11033 /* end confdefs.h. */
11034 #include <sys/types.h>
11035 #include <sys/stat.h>
11037 #if defined S_ISBLK && defined S_IFDIR
11038 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11041 #if defined S_ISBLK && defined S_IFCHR
11042 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11045 #if defined S_ISLNK && defined S_IFREG
11046 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11049 #if defined S_ISSOCK && defined S_IFREG
11050 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11054 if ac_fn_c_try_compile
"$LINENO"; then :
11055 ac_cv_header_stat_broken
=no
11057 ac_cv_header_stat_broken
=yes
11059 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11062 $as_echo "$ac_cv_header_stat_broken" >&6; }
11063 if test $ac_cv_header_stat_broken = yes; then
11065 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11070 $as_echo_n "checking for ANSI C header files... " >&6; }
11071 if test "${ac_cv_header_stdc+set}" = set; then :
11072 $as_echo_n "(cached) " >&6
11074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11075 /* end confdefs.h. */
11076 #include <stdlib.h>
11077 #include <stdarg.h>
11078 #include <string.h>
11089 if ac_fn_c_try_compile
"$LINENO"; then :
11090 ac_cv_header_stdc
=yes
11092 ac_cv_header_stdc
=no
11094 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11096 if test $ac_cv_header_stdc = yes; then
11097 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11099 /* end confdefs.h. */
11100 #include <string.h>
11103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11104 $EGREP "memchr" >/dev
/null
2>&1; then :
11107 ac_cv_header_stdc
=no
11113 if test $ac_cv_header_stdc = yes; then
11114 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11116 /* end confdefs.h. */
11117 #include <stdlib.h>
11120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11121 $EGREP "free" >/dev
/null
2>&1; then :
11124 ac_cv_header_stdc
=no
11130 if test $ac_cv_header_stdc = yes; then
11131 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11132 if test "$cross_compiling" = yes; then :
11135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11136 /* end confdefs.h. */
11138 #include <stdlib.h>
11139 #if ((' ' & 0x0FF) == 0x020)
11140 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11141 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11143 # define ISLOWER(c) \
11144 (('a' <= (c) && (c) <= 'i') \
11145 || ('j' <= (c) && (c) <= 'r') \
11146 || ('s' <= (c) && (c) <= 'z'))
11147 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11150 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11155 for (i = 0; i < 256; i++)
11156 if (XOR (islower (i), ISLOWER (i))
11157 || toupper (i) != TOUPPER (i))
11162 if ac_fn_c_try_run
"$LINENO"; then :
11165 ac_cv_header_stdc
=no
11167 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11168 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11174 $as_echo "$ac_cv_header_stdc" >&6; }
11175 if test $ac_cv_header_stdc = yes; then
11177 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11181 # elf_hp.h is for HP/UX 64-bit shared library support.
11182 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
11183 # unconditionally, so what's the point in checking these?
11184 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
11185 thread_db.h gnu
/libc-version.h signal.h stddef.h \
11186 stdlib.h string.h memory.h
strings.h sys
/fault.h \
11187 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
11188 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
11189 sys
/reg.h sys
/debugreg.h sys
/select.h sys
/syscall.h \
11190 sys
/types.h sys
/wait.h
wait.h termios.h termio.h \
11191 sgtty.h unistd.h elf_hp.h ctype.h
time.h locale.h
11193 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11194 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11195 eval as_val
=\$
$as_ac_Header
11196 if test "x$as_val" = x
""yes; then :
11197 cat >>confdefs.h
<<_ACEOF
11198 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11205 for ac_header
in link.h
11207 ac_fn_c_check_header_compile
"$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
11208 # include <sys/types.h>
11211 # include <nlist.h>
11215 if test "x$ac_cv_header_link_h" = x
""yes; then :
11216 cat >>confdefs.h
<<_ACEOF
11217 #define HAVE_LINK_H 1
11224 for ac_header
in sys
/proc.h
11226 ac_fn_c_check_header_compile
"$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
11227 # include <sys/param.h>
11231 if test "x$ac_cv_header_sys_proc_h" = x
""yes; then :
11232 cat >>confdefs.h
<<_ACEOF
11233 #define HAVE_SYS_PROC_H 1
11240 for ac_header
in sys
/user.h
11242 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
11243 # include <sys/param.h>
11247 if test "x$ac_cv_header_sys_user_h" = x
""yes; then :
11248 cat >>confdefs.h
<<_ACEOF
11249 #define HAVE_SYS_USER_H 1
11257 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
11258 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
11259 # think that we don't have <curses.h> if we're using GCC.
11262 if test "$GCC" = yes; then
11264 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
11268 for ac_header
in curses.h cursesX.h ncurses.h ncurses
/ncurses.h ncurses
/term.h
11270 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11271 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11272 eval as_val
=\$
$as_ac_Header
11273 if test "x$as_val" = x
""yes; then :
11274 cat >>confdefs.h
<<_ACEOF
11275 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11282 for ac_header
in term.h
11284 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
11285 # include <curses.h>
11289 if test "x$ac_cv_header_term_h" = x
""yes; then :
11290 cat >>confdefs.h
<<_ACEOF
11291 #define HAVE_TERM_H 1
11299 # ------------------------- #
11300 # Checks for declarations. #
11301 # ------------------------- #
11303 ac_fn_c_check_decl
"$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
11304 if test "x$ac_cv_have_decl_free" = x
""yes; then :
11310 cat >>confdefs.h
<<_ACEOF
11311 #define HAVE_DECL_FREE $ac_have_decl
11313 ac_fn_c_check_decl
"$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
11314 if test "x$ac_cv_have_decl_malloc" = x
""yes; then :
11320 cat >>confdefs.h
<<_ACEOF
11321 #define HAVE_DECL_MALLOC $ac_have_decl
11323 ac_fn_c_check_decl
"$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
11324 if test "x$ac_cv_have_decl_realloc" = x
""yes; then :
11330 cat >>confdefs.h
<<_ACEOF
11331 #define HAVE_DECL_REALLOC $ac_have_decl
11333 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
11334 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
11340 cat >>confdefs.h
<<_ACEOF
11341 #define HAVE_DECL_STRERROR $ac_have_decl
11343 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
11344 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
11350 cat >>confdefs.h
<<_ACEOF
11351 #define HAVE_DECL_STRSTR $ac_have_decl
11353 ac_fn_c_check_decl
"$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
11354 if test "x$ac_cv_have_decl_getopt" = x
""yes; then :
11360 cat >>confdefs.h
<<_ACEOF
11361 #define HAVE_DECL_GETOPT $ac_have_decl
11363 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11364 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
11370 cat >>confdefs.h
<<_ACEOF
11371 #define HAVE_DECL_SNPRINTF $ac_have_decl
11373 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
11374 if test "x$ac_cv_have_decl_vsnprintf" = x
""yes; then :
11380 cat >>confdefs.h
<<_ACEOF
11381 #define HAVE_DECL_VSNPRINTF $ac_have_decl
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11386 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11387 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
11388 $as_echo_n "(cached) " >&6
11390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11391 /* end confdefs.h. */
11392 #include <locale.h>
11401 if ac_fn_c_try_link
"$LINENO"; then :
11402 am_cv_val_LC_MESSAGES
=yes
11404 am_cv_val_LC_MESSAGES
=no
11406 rm -f core conftest.err conftest.
$ac_objext \
11407 conftest
$ac_exeext conftest.
$ac_ext
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11410 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11411 if test $am_cv_val_LC_MESSAGES = yes; then
11413 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11418 # ----------------------- #
11419 # Checks for structures. #
11420 # ----------------------- #
11422 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
11423 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then :
11425 cat >>confdefs.h
<<_ACEOF
11426 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11431 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
11432 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then :
11434 cat >>confdefs.h
<<_ACEOF
11435 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11442 # ------------------ #
11443 # Checks for types. #
11444 # ------------------ #
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11447 $as_echo_n "checking return type of signal handlers... " >&6; }
11448 if test "${ac_cv_type_signal+set}" = set; then :
11449 $as_echo_n "(cached) " >&6
11451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11452 /* end confdefs.h. */
11453 #include <sys/types.h>
11454 #include <signal.h>
11459 return *(signal (0, 0)) (0) == 1;
11464 if ac_fn_c_try_compile
"$LINENO"; then :
11465 ac_cv_type_signal
=int
11467 ac_cv_type_signal
=void
11469 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11472 $as_echo "$ac_cv_type_signal" >&6; }
11474 cat >>confdefs.h
<<_ACEOF
11475 #define RETSIGTYPE $ac_cv_type_signal
11479 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11480 #include <sys/socket.h>
11483 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
11485 cat >>confdefs.h
<<_ACEOF
11486 #define HAVE_SOCKLEN_T 1
11493 # ------------------------------------- #
11494 # Checks for compiler characteristics. #
11495 # ------------------------------------- #
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11498 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11499 if test "${ac_cv_c_const+set}" = set; then :
11500 $as_echo_n "(cached) " >&6
11502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11503 /* end confdefs.h. */
11508 /* FIXME: Include the comments suggested by Paul. */
11509 #ifndef __cplusplus
11510 /* Ultrix mips cc rejects this. */
11511 typedef int charset[2];
11513 /* SunOS 4.1.1 cc rejects this. */
11514 char const *const *pcpcc;
11516 /* NEC SVR4.0.2 mips cc rejects this. */
11517 struct point {int x, y;};
11518 static struct point const zero = {0,0};
11519 /* AIX XL C 1.02.0.0 rejects this.
11520 It does not let you subtract one const X* pointer from another in
11521 an arm of an if-expression whose if-part is not a constant
11523 const char *g = "string";
11524 pcpcc = &g + (g ? g-g : 0);
11525 /* HPUX 7.0 cc rejects these. */
11527 ppc = (char**) pcpcc;
11528 pcpcc = (char const *const *) ppc;
11529 { /* SCO 3.2v4 cc rejects this. */
11531 char const *s = 0 ? (char *) 0 : (char const *) 0;
11536 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11537 int x[] = {25, 17};
11538 const int *foo = &x[0];
11541 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11542 typedef const int *iptr;
11546 { /* AIX XL C 1.02.0.0 rejects this saying
11547 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11548 struct s { int j; const int *ap[3]; };
11549 struct s *b; b->j = 5;
11551 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11552 const int foo = 10;
11553 if (!foo) return 0;
11555 return !cs[0] && !zero.x;
11562 if ac_fn_c_try_compile
"$LINENO"; then :
11567 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11570 $as_echo "$ac_cv_c_const" >&6; }
11571 if test $ac_cv_c_const = no
; then
11573 $as_echo "#define const /**/" >>confdefs.h
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11578 $as_echo_n "checking for inline... " >&6; }
11579 if test "${ac_cv_c_inline+set}" = set; then :
11580 $as_echo_n "(cached) " >&6
11583 for ac_kw
in inline __inline__ __inline
; do
11584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11585 /* end confdefs.h. */
11586 #ifndef __cplusplus
11588 static $ac_kw foo_t static_foo () {return 0; }
11589 $ac_kw foo_t foo () {return 0; }
11593 if ac_fn_c_try_compile
"$LINENO"; then :
11594 ac_cv_c_inline
=$ac_kw
11596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11597 test "$ac_cv_c_inline" != no
&& break
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11602 $as_echo "$ac_cv_c_inline" >&6; }
11604 case $ac_cv_c_inline in
11607 case $ac_cv_c_inline in
11609 *) ac_val
=$ac_cv_c_inline;;
11611 cat >>confdefs.h
<<_ACEOF
11612 #ifndef __cplusplus
11613 #define inline $ac_val
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11620 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11621 if test "${ac_cv_c_bigendian+set}" = set; then :
11622 $as_echo_n "(cached) " >&6
11624 ac_cv_c_bigendian
=unknown
11625 # See if we're dealing with a universal compiler.
11626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11627 /* end confdefs.h. */
11628 #ifndef __APPLE_CC__
11629 not a universal capable compiler
11634 if ac_fn_c_try_compile
"$LINENO"; then :
11636 # Check for potential -arch flags. It is not universal unless
11637 # there are at least two -arch flags with different values.
11640 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11641 if test -n "$ac_prev"; then
11643 i?
86 | x86_64 | ppc | ppc64
)
11644 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
11647 ac_cv_c_bigendian
=universal
11653 elif test "x$ac_word" = "x-arch"; then
11658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11659 if test $ac_cv_c_bigendian = unknown
; then
11660 # See if sys/param.h defines the BYTE_ORDER macro.
11661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11662 /* end confdefs.h. */
11663 #include <sys/types.h>
11664 #include <sys/param.h>
11669 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11670 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11672 bogus endian macros
11679 if ac_fn_c_try_compile
"$LINENO"; then :
11680 # It does; now see whether it defined to BIG_ENDIAN or not.
11681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11682 /* end confdefs.h. */
11683 #include <sys/types.h>
11684 #include <sys/param.h>
11689 #if BYTE_ORDER != BIG_ENDIAN
11697 if ac_fn_c_try_compile
"$LINENO"; then :
11698 ac_cv_c_bigendian
=yes
11700 ac_cv_c_bigendian
=no
11702 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11704 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11706 if test $ac_cv_c_bigendian = unknown
; then
11707 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11709 /* end confdefs.h. */
11710 #include <limits.h>
11715 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11716 bogus endian macros
11723 if ac_fn_c_try_compile
"$LINENO"; then :
11724 # It does; now see whether it defined to _BIG_ENDIAN or not.
11725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11726 /* end confdefs.h. */
11727 #include <limits.h>
11732 #ifndef _BIG_ENDIAN
11740 if ac_fn_c_try_compile
"$LINENO"; then :
11741 ac_cv_c_bigendian
=yes
11743 ac_cv_c_bigendian
=no
11745 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11747 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11749 if test $ac_cv_c_bigendian = unknown
; then
11750 # Compile a test program.
11751 if test "$cross_compiling" = yes; then :
11752 # Try to guess by grepping values from an object file.
11753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11754 /* end confdefs.h. */
11755 short int ascii_mm[] =
11756 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11757 short int ascii_ii[] =
11758 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11759 int use_ascii (int i) {
11760 return ascii_mm[i] + ascii_ii[i];
11762 short int ebcdic_ii[] =
11763 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11764 short int ebcdic_mm[] =
11765 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11766 int use_ebcdic (int i) {
11767 return ebcdic_mm[i] + ebcdic_ii[i];
11774 return use_ascii (foo) == use_ebcdic (foo);
11779 if ac_fn_c_try_compile
"$LINENO"; then :
11780 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
11781 ac_cv_c_bigendian
=yes
11783 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
11784 if test "$ac_cv_c_bigendian" = unknown
; then
11785 ac_cv_c_bigendian
=no
11787 # finding both strings is unlikely to happen, but who knows?
11788 ac_cv_c_bigendian
=unknown
11792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11795 /* end confdefs.h. */
11796 $ac_includes_default
11801 /* Are we little or big endian? From Harbison&Steele. */
11805 char c[sizeof (long int)];
11808 return u.c[sizeof (long int) - 1] == 1;
11814 if ac_fn_c_try_run
"$LINENO"; then :
11815 ac_cv_c_bigendian
=no
11817 ac_cv_c_bigendian
=yes
11819 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11820 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11826 $as_echo "$ac_cv_c_bigendian" >&6; }
11827 case $ac_cv_c_bigendian in #(
11829 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11835 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11839 as_fn_error
"unknown endianness
11840 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11844 # ------------------------------ #
11845 # Checks for library functions. #
11846 # ------------------------------ #
11848 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11849 # for constant arguments. Useless!
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11851 $as_echo_n "checking for working alloca.h... " >&6; }
11852 if test "${ac_cv_working_alloca_h+set}" = set; then :
11853 $as_echo_n "(cached) " >&6
11855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11856 /* end confdefs.h. */
11857 #include <alloca.h>
11861 char *p = (char *) alloca (2 * sizeof (int));
11867 if ac_fn_c_try_link
"$LINENO"; then :
11868 ac_cv_working_alloca_h
=yes
11870 ac_cv_working_alloca_h
=no
11872 rm -f core conftest.err conftest.
$ac_objext \
11873 conftest
$ac_exeext conftest.
$ac_ext
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11876 $as_echo "$ac_cv_working_alloca_h" >&6; }
11877 if test $ac_cv_working_alloca_h = yes; then
11879 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11884 $as_echo_n "checking for alloca... " >&6; }
11885 if test "${ac_cv_func_alloca_works+set}" = set; then :
11886 $as_echo_n "(cached) " >&6
11888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11889 /* end confdefs.h. */
11891 # define alloca __builtin_alloca
11894 # include <malloc.h>
11895 # define alloca _alloca
11897 # ifdef HAVE_ALLOCA_H
11898 # include <alloca.h>
11903 # ifndef alloca /* predefined by HP cc +Olibcalls */
11914 char *p = (char *) alloca (1);
11920 if ac_fn_c_try_link
"$LINENO"; then :
11921 ac_cv_func_alloca_works
=yes
11923 ac_cv_func_alloca_works
=no
11925 rm -f core conftest.err conftest.
$ac_objext \
11926 conftest
$ac_exeext conftest.
$ac_ext
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11929 $as_echo "$ac_cv_func_alloca_works" >&6; }
11931 if test $ac_cv_func_alloca_works = yes; then
11933 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11936 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11937 # that cause trouble. Some versions do not even contain alloca or
11938 # contain a buggy version. If you still want to use their alloca,
11939 # use ar to extract alloca.o from them instead of compiling alloca.c.
11941 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
11943 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11947 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11948 if test "${ac_cv_os_cray+set}" = set; then :
11949 $as_echo_n "(cached) " >&6
11951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11952 /* end confdefs.h. */
11953 #if defined CRAY && ! defined CRAY2
11960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11961 $EGREP "webecray" >/dev
/null
2>&1; then :
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11970 $as_echo "$ac_cv_os_cray" >&6; }
11971 if test $ac_cv_os_cray = yes; then
11972 for ac_func
in _getb67 GETB67 getb67
; do
11973 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11974 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11975 eval as_val
=\$
$as_ac_var
11976 if test "x$as_val" = x
""yes; then :
11978 cat >>confdefs.h
<<_ACEOF
11979 #define CRAY_STACKSEG_END $ac_func
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11989 $as_echo_n "checking stack direction for C alloca... " >&6; }
11990 if test "${ac_cv_c_stack_direction+set}" = set; then :
11991 $as_echo_n "(cached) " >&6
11993 if test "$cross_compiling" = yes; then :
11994 ac_cv_c_stack_direction
=0
11996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11997 /* end confdefs.h. */
11998 $ac_includes_default
12000 find_stack_direction ()
12002 static char *addr = 0;
12007 return find_stack_direction ();
12010 return (&dummy > addr) ? 1 : -1;
12016 return find_stack_direction () < 0;
12019 if ac_fn_c_try_run
"$LINENO"; then :
12020 ac_cv_c_stack_direction
=1
12022 ac_cv_c_stack_direction
=-1
12024 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12025 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12030 $as_echo "$ac_cv_c_stack_direction" >&6; }
12031 cat >>confdefs.h
<<_ACEOF
12032 #define STACK_DIRECTION $ac_cv_c_stack_direction
12038 for ac_header
in stdlib.h unistd.h
12040 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12041 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12042 eval as_val
=\$
$as_ac_Header
12043 if test "x$as_val" = x
""yes; then :
12044 cat >>confdefs.h
<<_ACEOF
12045 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12052 for ac_func
in getpagesize
12054 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12055 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
12056 cat >>confdefs.h
<<_ACEOF
12057 #define HAVE_GETPAGESIZE 1
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12064 $as_echo_n "checking for working mmap... " >&6; }
12065 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12066 $as_echo_n "(cached) " >&6
12068 if test "$cross_compiling" = yes; then :
12069 ac_cv_func_mmap_fixed_mapped
=no
12071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12072 /* end confdefs.h. */
12073 $ac_includes_default
12074 /* malloc might have been renamed as rpl_malloc. */
12077 /* Thanks to Mike Haertel and Jim Avera for this test.
12078 Here is a matrix of mmap possibilities:
12079 mmap private not fixed
12080 mmap private fixed at somewhere currently unmapped
12081 mmap private fixed at somewhere already mapped
12082 mmap shared not fixed
12083 mmap shared fixed at somewhere currently unmapped
12084 mmap shared fixed at somewhere already mapped
12085 For private mappings, we should verify that changes cannot be read()
12086 back from the file, nor mmap's back from the file at a different
12087 address. (There have been systems where private was not correctly
12088 implemented like the infamous i386 svr4.0, and systems where the
12089 VM page cache was not coherent with the file system buffer cache
12090 like early versions of FreeBSD and possibly contemporary NetBSD.)
12091 For shared mappings, we should conversely verify that changes get
12092 propagated back to all the places they're supposed to be.
12094 Grep wants private fixed already mapped.
12095 The main things grep needs to know about mmap are:
12096 * does it exist and is it safe to write into the mmap'd area
12097 * how to use it (BSD variants) */
12100 #include <sys/mman.h>
12102 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12106 /* This mess was copied from the GNU getpagesize.h. */
12107 #ifndef HAVE_GETPAGESIZE
12108 /* Assume that all systems that can run configure have sys/param.h. */
12109 # ifndef HAVE_SYS_PARAM_H
12110 # define HAVE_SYS_PARAM_H 1
12113 # ifdef _SC_PAGESIZE
12114 # define getpagesize() sysconf(_SC_PAGESIZE)
12115 # else /* no _SC_PAGESIZE */
12116 # ifdef HAVE_SYS_PARAM_H
12117 # include <sys/param.h>
12118 # ifdef EXEC_PAGESIZE
12119 # define getpagesize() EXEC_PAGESIZE
12120 # else /* no EXEC_PAGESIZE */
12122 # define getpagesize() NBPG * CLSIZE
12125 # endif /* no CLSIZE */
12126 # else /* no NBPG */
12128 # define getpagesize() NBPC
12129 # else /* no NBPC */
12131 # define getpagesize() PAGESIZE
12132 # endif /* PAGESIZE */
12133 # endif /* no NBPC */
12134 # endif /* no NBPG */
12135 # endif /* no EXEC_PAGESIZE */
12136 # else /* no HAVE_SYS_PARAM_H */
12137 # define getpagesize() 8192 /* punt totally */
12138 # endif /* no HAVE_SYS_PARAM_H */
12139 # endif /* no _SC_PAGESIZE */
12141 #endif /* no HAVE_GETPAGESIZE */
12146 char *data, *data2, *data3;
12150 pagesize = getpagesize ();
12152 /* First, make a file with some known garbage in it. */
12153 data = (char *) malloc (pagesize);
12156 for (i = 0; i < pagesize; ++i)
12157 *(data + i) = rand ();
12159 fd = creat ("conftest.mmap", 0600);
12162 if (write (fd, data, pagesize) != pagesize)
12166 /* Next, try to mmap the file at a fixed address which already has
12167 something else allocated at it. If we can, also make sure that
12168 we see the same garbage. */
12169 fd = open ("conftest.mmap", O_RDWR);
12172 data2 = (char *) malloc (2 * pagesize);
12175 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12176 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12177 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12179 for (i = 0; i < pagesize; ++i)
12180 if (*(data + i) != *(data2 + i))
12183 /* Finally, make sure that changes to the mapped area do not
12184 percolate back to the file as seen by read(). (This is a bug on
12185 some variants of i386 svr4.0.) */
12186 for (i = 0; i < pagesize; ++i)
12187 *(data2 + i) = *(data2 + i) + 1;
12188 data3 = (char *) malloc (pagesize);
12191 if (read (fd, data3, pagesize) != pagesize)
12193 for (i = 0; i < pagesize; ++i)
12194 if (*(data + i) != *(data3 + i))
12200 if ac_fn_c_try_run
"$LINENO"; then :
12201 ac_cv_func_mmap_fixed_mapped
=yes
12203 ac_cv_func_mmap_fixed_mapped
=no
12205 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12206 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12211 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12212 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12214 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12217 rm -f conftest.mmap
12219 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12220 if test "x$ac_cv_type_pid_t" = x
""yes; then :
12224 cat >>confdefs.h
<<_ACEOF
12230 for ac_header
in vfork.h
12232 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12233 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
12234 cat >>confdefs.h
<<_ACEOF
12235 #define HAVE_VFORK_H 1
12242 for ac_func
in fork vfork
12244 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12245 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12246 eval as_val
=\$
$as_ac_var
12247 if test "x$as_val" = x
""yes; then :
12248 cat >>confdefs.h
<<_ACEOF
12249 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12255 if test "x$ac_cv_func_fork" = xyes
; then
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12257 $as_echo_n "checking for working fork... " >&6; }
12258 if test "${ac_cv_func_fork_works+set}" = set; then :
12259 $as_echo_n "(cached) " >&6
12261 if test "$cross_compiling" = yes; then :
12262 ac_cv_func_fork_works
=cross
12264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12265 /* end confdefs.h. */
12266 $ac_includes_default
12271 /* By Ruediger Kuhlmann. */
12272 return fork () < 0;
12278 if ac_fn_c_try_run
"$LINENO"; then :
12279 ac_cv_func_fork_works
=yes
12281 ac_cv_func_fork_works
=no
12283 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12284 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12289 $as_echo "$ac_cv_func_fork_works" >&6; }
12292 ac_cv_func_fork_works
=$ac_cv_func_fork
12294 if test "x$ac_cv_func_fork_works" = xcross
; then
12296 *-*-amigaos* |
*-*-msdosdjgpp*)
12297 # Override, as these systems have only a dummy fork() stub
12298 ac_cv_func_fork_works
=no
12301 ac_cv_func_fork_works
=yes
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12305 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12307 ac_cv_func_vfork_works
=$ac_cv_func_vfork
12308 if test "x$ac_cv_func_vfork" = xyes
; then
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12310 $as_echo_n "checking for working vfork... " >&6; }
12311 if test "${ac_cv_func_vfork_works+set}" = set; then :
12312 $as_echo_n "(cached) " >&6
12314 if test "$cross_compiling" = yes; then :
12315 ac_cv_func_vfork_works
=cross
12317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12318 /* end confdefs.h. */
12319 /* Thanks to Paul Eggert for this test. */
12320 $ac_includes_default
12321 #include <sys/wait.h>
12322 #ifdef HAVE_VFORK_H
12323 # include <vfork.h>
12325 /* On some sparc systems, changes by the child to local and incoming
12326 argument registers are propagated back to the parent. The compiler
12327 is told about this with #include <vfork.h>, but some compilers
12328 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12329 static variable whose address is put into a register that is
12330 clobbered by the vfork. */
12333 sparc_address_test (int arg)
12335 sparc_address_test (arg) int arg;
12338 static pid_t child;
12356 pid_t parent = getpid ();
12359 sparc_address_test (0);
12364 /* Here is another test for sparc vfork register problems. This
12365 test uses lots of local variables, at least as many local
12366 variables as main has allocated so far including compiler
12367 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12368 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12369 reuse the register of parent for one of the local variables,
12370 since it will think that parent can't possibly be used any more
12371 in this routine. Assigning to the local variable will thus
12372 munge parent in the parent process. */
12374 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12375 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12376 /* Convince the compiler that p..p7 are live; otherwise, it might
12377 use the same hardware register for all 8 local variables. */
12378 if (p != p1 || p != p2 || p != p3 || p != p4
12379 || p != p5 || p != p6 || p != p7)
12382 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12383 from child file descriptors. If the child closes a descriptor
12384 before it execs or exits, this munges the parent's descriptor
12385 as well. Test for this by closing stdout in the child. */
12386 _exit(close(fileno(stdout)) != 0);
12391 while (wait(&status) != child)
12394 /* Was there some problem with vforking? */
12397 /* Did the child fail? (This shouldn't happen.) */
12400 /* Did the vfork/compiler bug occur? */
12401 || parent != getpid()
12403 /* Did the file descriptor bug occur? */
12404 || fstat(fileno(stdout), &st) != 0
12409 if ac_fn_c_try_run
"$LINENO"; then :
12410 ac_cv_func_vfork_works
=yes
12412 ac_cv_func_vfork_works
=no
12414 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12415 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12420 $as_echo "$ac_cv_func_vfork_works" >&6; }
12423 if test "x$ac_cv_func_fork_works" = xcross
; then
12424 ac_cv_func_vfork_works
=$ac_cv_func_vfork
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12426 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12429 if test "x$ac_cv_func_vfork_works" = xyes
; then
12431 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12435 $as_echo "#define vfork fork" >>confdefs.h
12438 if test "x$ac_cv_func_fork_works" = xyes
; then
12440 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12444 for ac_func
in canonicalize_file_name realpath getrusage getuid \
12445 getgid pipe poll pread64 sbrk setpgid setpgrp setsid \
12446 sigaction sigprocmask sigsetmask socketpair syscall \
12447 ttrace wborder setlocale iconvlist libiconvlist btowc \
12448 setrlimit getrlimit posix_madvise
12450 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12451 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12452 eval as_val
=\$
$as_ac_var
12453 if test "x$as_val" = x
""yes; then :
12454 cat >>confdefs.h
<<_ACEOF
12455 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12463 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12464 if test "${am_cv_langinfo_codeset+set}" = set; then :
12465 $as_echo_n "(cached) " >&6
12467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12468 /* end confdefs.h. */
12469 #include <langinfo.h>
12473 char* cs = nl_langinfo(CODESET);
12478 if ac_fn_c_try_link
"$LINENO"; then :
12479 am_cv_langinfo_codeset
=yes
12481 am_cv_langinfo_codeset
=no
12483 rm -f core conftest.err conftest.
$ac_objext \
12484 conftest
$ac_exeext conftest.
$ac_ext
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12488 $as_echo "$am_cv_langinfo_codeset" >&6; }
12489 if test $am_cv_langinfo_codeset = yes; then
12491 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12496 # Check the return and argument types of ptrace. No canned test for
12497 # this, so roll our own.
12498 gdb_ptrace_headers
='
12499 #if HAVE_SYS_TYPES_H
12500 # include <sys/types.h>
12502 #if HAVE_SYS_PTRACE_H
12503 # include <sys/ptrace.h>
12506 # include <unistd.h>
12509 # There is no point in checking if we don't have a prototype.
12510 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
12512 if test "x$ac_cv_have_decl_ptrace" = x
""yes; then :
12518 cat >>confdefs.h
<<_ACEOF
12519 #define HAVE_DECL_PTRACE $ac_have_decl
12521 if test $ac_have_decl = 1; then :
12525 : ${gdb_cv_func_ptrace_ret='int'}
12526 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12530 # Check return type. Varargs (used on GNU/Linux) conflict with the
12531 # empty argument list, so check for that explicitly.
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
12533 $as_echo_n "checking return type of ptrace... " >&6; }
12534 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
12535 $as_echo_n "(cached) " >&6
12537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12538 /* end confdefs.h. */
12539 $gdb_ptrace_headers
12543 extern long ptrace (enum __ptrace_request, ...);
12548 if ac_fn_c_try_compile
"$LINENO"; then :
12549 gdb_cv_func_ptrace_ret
='long'
12551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12552 /* end confdefs.h. */
12553 $gdb_ptrace_headers
12557 extern int ptrace ();
12562 if ac_fn_c_try_compile
"$LINENO"; then :
12563 gdb_cv_func_ptrace_ret
='int'
12565 gdb_cv_func_ptrace_ret
='long'
12567 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12569 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
12572 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
12574 cat >>confdefs.h
<<_ACEOF
12575 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
12578 # Check argument types.
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
12580 $as_echo_n "checking types of arguments for ptrace... " >&6; }
12581 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
12582 $as_echo_n "(cached) " >&6
12585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12586 /* end confdefs.h. */
12587 $gdb_ptrace_headers
12591 extern long ptrace (enum __ptrace_request, ...);
12596 if ac_fn_c_try_compile
"$LINENO"; then :
12597 gdb_cv_func_ptrace_args
='int,int,long,long'
12600 for gdb_arg1
in 'int' 'long'; do
12601 for gdb_arg2
in 'pid_t' 'int' 'long'; do
12602 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
12603 for gdb_arg4
in 'int' 'long'; do
12604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12605 /* end confdefs.h. */
12606 $gdb_ptrace_headers
12611 extern $gdb_cv_func_ptrace_ret
12612 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
12618 if ac_fn_c_try_compile
"$LINENO"; then :
12619 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
12622 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12623 for gdb_arg5
in 'int *' 'int' 'long'; do
12624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12625 /* end confdefs.h. */
12626 $gdb_ptrace_headers
12631 extern $gdb_cv_func_ptrace_ret
12632 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
12638 if ac_fn_c_try_compile
"$LINENO"; then :
12640 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
12643 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12649 # Provide a safe default value.
12650 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12653 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
12656 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
12657 ac_save_IFS
=$IFS; IFS
=','
12658 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
12662 cat >>confdefs.h
<<_ACEOF
12663 #define PTRACE_TYPE_ARG3 $3
12666 if test -n "$5"; then
12668 cat >>confdefs.h
<<_ACEOF
12669 #define PTRACE_TYPE_ARG5 $5
12674 if test "$cross_compiling" = no
; then
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12676 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12677 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12678 $as_echo_n "(cached) " >&6
12680 if test "$cross_compiling" = yes; then :
12681 as_fn_error
"cannot check setpgrp when cross compiling" "$LINENO" 5
12683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12684 /* end confdefs.h. */
12685 $ac_includes_default
12689 /* If this system has a BSD-style setpgrp which takes arguments,
12690 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
12691 exit successfully. */
12692 return setpgrp (1,1) != -1;
12697 if ac_fn_c_try_run
"$LINENO"; then :
12698 ac_cv_func_setpgrp_void
=no
12700 ac_cv_func_setpgrp_void
=yes
12702 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12703 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12708 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12709 if test $ac_cv_func_setpgrp_void = yes; then
12711 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12717 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12718 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12719 $as_echo_n "(cached) " >&6
12721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12722 /* end confdefs.h. */
12724 #include <unistd.h>
12730 if (setpgrp(1,1) == -1)
12739 if ac_fn_c_try_compile
"$LINENO"; then :
12740 ac_cv_func_setpgrp_void
=no
12742 ac_cv_func_setpgrp_void
=yes
12744 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12747 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12748 if test $ac_cv_func_setpgrp_void = yes; then
12749 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12754 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
12755 # since sigsetjmp might only be defined as a macro.
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
12757 $as_echo_n "checking for sigsetjmp... " >&6; }
12758 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
12759 $as_echo_n "(cached) " >&6
12761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12762 /* end confdefs.h. */
12764 #include <setjmp.h>
12769 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
12774 if ac_fn_c_try_compile
"$LINENO"; then :
12775 gdb_cv_func_sigsetjmp
=yes
12777 gdb_cv_func_sigsetjmp
=no
12779 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
12782 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
12783 if test $gdb_cv_func_sigsetjmp = yes; then
12785 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
12789 # Assume we'll default to using the included libiberty regex.
12790 gdb_use_included_regex
=yes
12792 # However, if the system regex is GNU regex, then default to *not*
12793 # using the included regex.
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
12795 $as_echo_n "checking for GNU regex... " >&6; }
12796 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
12797 $as_echo_n "(cached) " >&6
12799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12800 /* end confdefs.h. */
12801 #include <gnu-versions.h>
12805 #define REGEX_INTERFACE_VERSION 1
12806 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
12807 # error "Version mismatch"
12813 if ac_fn_c_try_compile
"$LINENO"; then :
12814 gdb_cv_have_gnu_regex
=yes
12816 gdb_cv_have_gnu_regex
=no
12818 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
12821 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
12822 if test $gdb_cv_have_gnu_regex = yes; then
12823 gdb_use_included_regex
=no
12827 # Check whether --with-included-regex was given.
12828 if test "${with_included_regex+set}" = set; then :
12829 withval
=$with_included_regex; gdb_with_regex
=$withval
12831 gdb_with_regex
=$gdb_use_included_regex
12834 if test "$gdb_with_regex" = yes; then
12836 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
12840 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
12841 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
12842 #include <sys/proc.h>
12845 if test "x$ac_cv_member_struct_thread_td_pcb" = x
""yes; then :
12847 cat >>confdefs.h
<<_ACEOF
12848 #define HAVE_STRUCT_THREAD_TD_PCB 1
12855 # See if <sys/lwp.h> defines `struct lwp`.
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
12857 $as_echo_n "checking for struct lwp... " >&6; }
12858 if test "${gdb_cv_struct_lwp+set}" = set; then :
12859 $as_echo_n "(cached) " >&6
12861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12862 /* end confdefs.h. */
12863 #include <sys/param.h>
12864 #include <sys/lwp.h>
12873 if ac_fn_c_try_compile
"$LINENO"; then :
12874 gdb_cv_struct_lwp
=yes
12876 gdb_cv_struct_lwp
=no
12878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
12881 $as_echo "$gdb_cv_struct_lwp" >&6; }
12882 if test $gdb_cv_struct_lwp = yes; then
12884 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
12888 # See if <machine/reg.h> degines `struct reg'.
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
12890 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
12891 if test "${gdb_cv_struct_reg+set}" = set; then :
12892 $as_echo_n "(cached) " >&6
12894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12895 /* end confdefs.h. */
12896 #include <sys/types.h>
12897 #include <machine/reg.h>
12906 if ac_fn_c_try_compile
"$LINENO"; then :
12907 gdb_cv_struct_reg
=yes
12909 gdb_cv_struct_reg
=no
12911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
12914 $as_echo "$gdb_cv_struct_reg" >&6; }
12915 if test $gdb_cv_struct_reg = yes; then
12917 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
12921 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
12922 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
12923 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
12925 if test "x$ac_cv_member_struct_reg_r_fs" = x
""yes; then :
12927 cat >>confdefs.h
<<_ACEOF
12928 #define HAVE_STRUCT_REG_R_FS 1
12933 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
12935 if test "x$ac_cv_member_struct_reg_r_gs" = x
""yes; then :
12937 cat >>confdefs.h
<<_ACEOF
12938 #define HAVE_STRUCT_REG_R_GS 1
12945 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
12947 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
12948 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
12949 $as_echo_n "(cached) " >&6
12951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12952 /* end confdefs.h. */
12953 #include <sys/ptrace.h>
12962 if ac_fn_c_try_compile
"$LINENO"; then :
12963 gdb_cv_have_ptrace_getregs
=yes
12965 gdb_cv_have_ptrace_getregs
=no
12967 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
12971 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
12972 if test $gdb_cv_have_ptrace_getregs = yes; then
12974 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
12978 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
12980 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
12981 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
12982 $as_echo_n "(cached) " >&6
12984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12985 /* end confdefs.h. */
12986 #include <sys/ptrace.h>
12995 if ac_fn_c_try_compile
"$LINENO"; then :
12996 gdb_cv_have_ptrace_getfpxregs
=yes
12998 gdb_cv_have_ptrace_getfpxregs
=no
13000 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
13004 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
13005 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
13007 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
13011 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
13013 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
13014 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
13015 $as_echo_n "(cached) " >&6
13017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13018 /* end confdefs.h. */
13019 #include <sys/types.h>
13020 #include <sys/ptrace.h>
13029 if ac_fn_c_try_compile
"$LINENO"; then :
13030 gdb_cv_have_pt_getdbregs
=yes
13032 gdb_cv_have_pt_getdbregs
=no
13034 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
13038 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
13039 if test $gdb_cv_have_pt_getdbregs = yes; then
13041 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
13045 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
13047 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
13048 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
13049 $as_echo_n "(cached) " >&6
13051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13052 /* end confdefs.h. */
13053 #include <sys/types.h>
13054 #include <sys/ptrace.h>
13063 if ac_fn_c_try_compile
"$LINENO"; then :
13064 gdb_cv_have_pt_getxmmregs
=yes
13066 gdb_cv_have_pt_getxmmregs
=no
13068 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
13072 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
13073 if test $gdb_cv_have_pt_getxmmregs = yes; then
13075 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
13079 # Detect which type of /proc is in use, such as for Unixware or Solaris.
13081 if test "${target}" = "${host}"; then
13083 *-*-unixware* |
*-*-sysv4.2
* |
*-*-sysv5* |
*-*-interix* )
13085 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13088 *-*-solaris2.
[6789] |
*-*-solaris2.1
[0-9]*)
13090 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13094 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
13096 $as_echo "#define _KMEMUSER 1" >>confdefs.h
13102 if test "$ac_cv_header_sys_procfs_h" = yes; then
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
13104 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
13105 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
13106 $as_echo_n "(cached) " >&6
13108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13109 /* end confdefs.h. */
13112 /* Needed for new procfs interface on sparc-solaris. */
13113 #define _STRUCTURED_PROC 1
13114 #include <sys/procfs.h>
13123 if ac_fn_c_try_compile
"$LINENO"; then :
13124 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
13126 bfd_cv_have_sys_procfs_type_pstatus_t
=no
13129 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13132 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
13134 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
13138 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
13141 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
13142 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
13143 $as_echo_n "(cached) " >&6
13145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13146 /* end confdefs.h. */
13149 /* Needed for new procfs interface on sparc-solaris. */
13150 #define _STRUCTURED_PROC 1
13151 #include <sys/procfs.h>
13160 if ac_fn_c_try_compile
"$LINENO"; then :
13161 bfd_cv_have_sys_procfs_type_prrun_t
=yes
13163 bfd_cv_have_sys_procfs_type_prrun_t
=no
13166 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13169 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
13171 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
13175 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
13178 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
13179 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
13180 $as_echo_n "(cached) " >&6
13182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13183 /* end confdefs.h. */
13186 /* Needed for new procfs interface on sparc-solaris. */
13187 #define _STRUCTURED_PROC 1
13188 #include <sys/procfs.h>
13197 if ac_fn_c_try_compile
"$LINENO"; then :
13198 bfd_cv_have_sys_procfs_type_gregset_t
=yes
13200 bfd_cv_have_sys_procfs_type_gregset_t
=no
13203 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13206 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
13208 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
13212 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
13215 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
13216 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
13217 $as_echo_n "(cached) " >&6
13219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13220 /* end confdefs.h. */
13223 /* Needed for new procfs interface on sparc-solaris. */
13224 #define _STRUCTURED_PROC 1
13225 #include <sys/procfs.h>
13234 if ac_fn_c_try_compile
"$LINENO"; then :
13235 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
13237 bfd_cv_have_sys_procfs_type_fpregset_t
=no
13240 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13243 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
13245 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
13249 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
13252 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
13253 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
13254 $as_echo_n "(cached) " >&6
13256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13257 /* end confdefs.h. */
13260 /* Needed for new procfs interface on sparc-solaris. */
13261 #define _STRUCTURED_PROC 1
13262 #include <sys/procfs.h>
13271 if ac_fn_c_try_compile
"$LINENO"; then :
13272 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
13274 bfd_cv_have_sys_procfs_type_prgregset_t
=no
13277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13280 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
13282 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
13286 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
13289 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
13290 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
13291 $as_echo_n "(cached) " >&6
13293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13294 /* end confdefs.h. */
13297 /* Needed for new procfs interface on sparc-solaris. */
13298 #define _STRUCTURED_PROC 1
13299 #include <sys/procfs.h>
13308 if ac_fn_c_try_compile
"$LINENO"; then :
13309 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
13311 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
13314 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13317 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13319 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
13323 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
13326 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
13327 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
13328 $as_echo_n "(cached) " >&6
13330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13331 /* end confdefs.h. */
13334 /* Needed for new procfs interface on sparc-solaris. */
13335 #define _STRUCTURED_PROC 1
13336 #include <sys/procfs.h>
13345 if ac_fn_c_try_compile
"$LINENO"; then :
13346 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
13348 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
13351 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13354 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
13356 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
13360 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
13363 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
13364 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
13365 $as_echo_n "(cached) " >&6
13367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13368 /* end confdefs.h. */
13371 /* Needed for new procfs interface on sparc-solaris. */
13372 #define _STRUCTURED_PROC 1
13373 #include <sys/procfs.h>
13377 prfpregset32_t avar
13382 if ac_fn_c_try_compile
"$LINENO"; then :
13383 bfd_cv_have_sys_procfs_type_prfpregset32_t
=yes
13385 bfd_cv_have_sys_procfs_type_prfpregset32_t
=no
13388 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13391 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
13393 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
13397 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
13400 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
13401 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
13402 $as_echo_n "(cached) " >&6
13404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13405 /* end confdefs.h. */
13408 /* Needed for new procfs interface on sparc-solaris. */
13409 #define _STRUCTURED_PROC 1
13410 #include <sys/procfs.h>
13419 if ac_fn_c_try_compile
"$LINENO"; then :
13420 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
13422 bfd_cv_have_sys_procfs_type_lwpid_t
=no
13425 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13428 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
13430 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
13434 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
13437 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
13438 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
13439 $as_echo_n "(cached) " >&6
13441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13442 /* end confdefs.h. */
13445 /* Needed for new procfs interface on sparc-solaris. */
13446 #define _STRUCTURED_PROC 1
13447 #include <sys/procfs.h>
13456 if ac_fn_c_try_compile
"$LINENO"; then :
13457 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
13459 bfd_cv_have_sys_procfs_type_psaddr_t
=no
13462 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13465 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
13467 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
13471 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
13474 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
13475 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
13476 $as_echo_n "(cached) " >&6
13478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13479 /* end confdefs.h. */
13482 /* Needed for new procfs interface on sparc-solaris. */
13483 #define _STRUCTURED_PROC 1
13484 #include <sys/procfs.h>
13493 if ac_fn_c_try_compile
"$LINENO"; then :
13494 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
13496 bfd_cv_have_sys_procfs_type_prsysent_t
=no
13499 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13502 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
13504 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
13508 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
13511 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
13512 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
13513 $as_echo_n "(cached) " >&6
13515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13516 /* end confdefs.h. */
13519 /* Needed for new procfs interface on sparc-solaris. */
13520 #define _STRUCTURED_PROC 1
13521 #include <sys/procfs.h>
13530 if ac_fn_c_try_compile
"$LINENO"; then :
13531 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
13533 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
13536 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13539 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
13541 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
13545 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
13548 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
13549 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
13550 $as_echo_n "(cached) " >&6
13552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13553 /* end confdefs.h. */
13556 /* Needed for new procfs interface on sparc-solaris. */
13557 #define _STRUCTURED_PROC 1
13558 #include <sys/procfs.h>
13562 pr_sigaction64_t avar
13567 if ac_fn_c_try_compile
"$LINENO"; then :
13568 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
13570 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
13573 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13576 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
13578 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
13582 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
13585 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
13586 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
13587 $as_echo_n "(cached) " >&6
13589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13590 /* end confdefs.h. */
13593 /* Needed for new procfs interface on sparc-solaris. */
13594 #define _STRUCTURED_PROC 1
13595 #include <sys/procfs.h>
13599 pr_siginfo64_t avar
13604 if ac_fn_c_try_compile
"$LINENO"; then :
13605 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
13607 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
13610 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13613 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
13615 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
13619 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
13625 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
13627 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
13628 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
13629 $as_echo_n "(cached) " >&6
13631 if test "$cross_compiling" = yes; then :
13632 gdb_cv_prfpregset_t_broken
=yes
13634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13635 /* end confdefs.h. */
13636 #include <sys/procfs.h>
13639 if (sizeof (prfpregset_t) == sizeof (void *))
13644 if ac_fn_c_try_run
"$LINENO"; then :
13645 gdb_cv_prfpregset_t_broken
=no
13647 gdb_cv_prfpregset_t_broken
=yes
13649 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13650 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
13656 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
13657 if test $gdb_cv_prfpregset_t_broken = yes; then
13659 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
13666 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
13667 if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
13668 $as_echo_n "(cached) " >&6
13670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13671 /* end confdefs.h. */
13672 #include <unistd.h>
13673 #include <sys/types.h>
13674 #include <sys/procfs.h>
13681 dummy = ioctl(0, PIOCSET, &dummy);
13687 if ac_fn_c_try_compile
"$LINENO"; then :
13688 gdb_cv_have_procfs_piocset
=yes
13690 gdb_cv_have_procfs_piocset
=no
13692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
13696 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
13697 if test $gdb_cv_have_procfs_piocset = yes; then
13699 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
13704 if test ${host} = ${target} ; then
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
13707 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
13708 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
13709 $as_echo_n "(cached) " >&6
13711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13712 /* end confdefs.h. */
13717 struct link_map lm; (void) lm.l_addr;
13722 if ac_fn_c_try_compile
"$LINENO"; then :
13723 gdb_cv_have_struct_link_map_with_l_members
=yes
13725 gdb_cv_have_struct_link_map_with_l_members
=no
13727 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
13731 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
13732 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
13734 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
13740 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
13741 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
13742 $as_echo_n "(cached) " >&6
13744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13745 /* end confdefs.h. */
13746 #include <sys/types.h>
13751 struct link_map lm; (void) lm.lm_addr;
13756 if ac_fn_c_try_compile
"$LINENO"; then :
13757 gdb_cv_have_struct_link_map_with_lm_members
=yes
13759 gdb_cv_have_struct_link_map_with_lm_members
=no
13761 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
13765 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
13766 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
13768 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
13774 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
13775 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
13776 $as_echo_n "(cached) " >&6
13778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13779 /* end confdefs.h. */
13780 #include <sys/types.h>
13781 #ifdef HAVE_NLIST_H
13788 struct so_map lm; (void) lm.som_addr;
13793 if ac_fn_c_try_compile
"$LINENO"; then :
13794 gdb_cv_have_struct_so_map_with_som_members
=yes
13796 gdb_cv_have_struct_so_map_with_som_members
=no
13798 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
13802 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
13803 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
13805 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
13811 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
13812 if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
13813 $as_echo_n "(cached) " >&6
13815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13816 /* end confdefs.h. */
13818 #include <sys/link.h>
13822 struct link_map32 l;
13827 if ac_fn_c_try_compile
"$LINENO"; then :
13828 gdb_cv_have_struct_link_map32
=yes
13830 gdb_cv_have_struct_link_map32
=no
13832 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
13836 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
13837 if test $gdb_cv_have_struct_link_map32 = yes; then
13839 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
13842 $as_echo "#define _SYSCALL32 1" >>confdefs.h
13847 # Check if the compiler supports the `long long' type.
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
13850 $as_echo_n "checking for long long support in compiler... " >&6; }
13851 if test "${gdb_cv_c_long_long+set}" = set; then :
13852 $as_echo_n "(cached) " >&6
13854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13855 /* end confdefs.h. */
13856 extern long long foo;
13860 switch (foo & 2) { case 0: return 1; }
13865 if ac_fn_c_try_compile
"$LINENO"; then :
13866 gdb_cv_c_long_long
=yes
13868 gdb_cv_c_long_long
=no
13870 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
13873 $as_echo "$gdb_cv_c_long_long" >&6; }
13874 if test $gdb_cv_c_long_long = yes; then
13876 $as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
13880 # Check if the compiler and runtime support printing long longs.
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
13883 $as_echo_n "checking for long long support in printf... " >&6; }
13884 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
13885 $as_echo_n "(cached) " >&6
13887 if test "$cross_compiling" = yes; then :
13888 gdb_cv_printf_has_long_long
=no
13890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13891 /* end confdefs.h. */
13892 $ac_includes_default
13898 l = (l << 16) + 0x0123;
13899 l = (l << 16) + 0x4567;
13900 l = (l << 16) + 0x89ab;
13901 l = (l << 16) + 0xcdef;
13902 sprintf (buf, "0x%016llx", l);
13903 return (strcmp ("0x0123456789abcdef", buf));
13908 if ac_fn_c_try_run
"$LINENO"; then :
13909 gdb_cv_printf_has_long_long
=yes
13911 gdb_cv_printf_has_long_long
=no
13913 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13914 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
13919 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
13920 if test $gdb_cv_printf_has_long_long = yes; then
13922 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
13926 # Check if the compiler and runtime support printing decfloats.
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
13929 $as_echo_n "checking for decfloat support in printf... " >&6; }
13930 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
13931 $as_echo_n "(cached) " >&6
13933 if test "$cross_compiling" = yes; then :
13934 gdb_cv_printf_has_decfloat
=no
13936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13937 /* end confdefs.h. */
13938 $ac_includes_default
13943 _Decimal32 d32 = 1.2345df;
13944 _Decimal64 d64 = 1.2345dd;
13945 _Decimal128 d128 = 1.2345dl;
13946 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
13947 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
13952 if ac_fn_c_try_run
"$LINENO"; then :
13953 gdb_cv_printf_has_decfloat
=yes
13955 gdb_cv_printf_has_decfloat
=no
13957 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13958 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
13963 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
13964 if test $gdb_cv_printf_has_decfloat = yes; then
13966 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
13970 # Check if the compiler supports the `long double' type. We can't use
13971 # AC_C_LONG_DOUBLE because that one does additional checks on the
13972 # constants defined in <float.h> that fail on some systems,
13973 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
13976 $as_echo_n "checking for long double support in compiler... " >&6; }
13977 if test "${gdb_cv_c_long_double+set}" = set; then :
13978 $as_echo_n "(cached) " >&6
13980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13981 /* end confdefs.h. */
13984 if ac_fn_c_try_compile
"$LINENO"; then :
13985 gdb_cv_c_long_double
=yes
13987 gdb_cv_c_long_double
=no
13989 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
13992 $as_echo "$gdb_cv_c_long_double" >&6; }
13993 if test $gdb_cv_c_long_double = yes; then
13995 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
13999 # Check if the compiler and runtime support printing long doubles.
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
14002 $as_echo_n "checking for long double support in printf... " >&6; }
14003 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
14004 $as_echo_n "(cached) " >&6
14006 if test "$cross_compiling" = yes; then :
14007 gdb_cv_printf_has_long_double
=no
14009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14010 /* end confdefs.h. */
14011 $ac_includes_default
14016 long double f = 3.141592653;
14017 sprintf (buf, "%Lg", f);
14018 return (strncmp ("3.14159", buf, 7));
14023 if ac_fn_c_try_run
"$LINENO"; then :
14024 gdb_cv_printf_has_long_double
=yes
14026 gdb_cv_printf_has_long_double
=no
14028 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14029 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
14034 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
14035 if test $gdb_cv_printf_has_long_double = yes; then
14037 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
14041 # Check if the compiler and runtime support scanning long doubles.
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
14044 $as_echo_n "checking for long double support in scanf... " >&6; }
14045 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
14046 $as_echo_n "(cached) " >&6
14048 if test "$cross_compiling" = yes; then :
14049 gdb_cv_scanf_has_long_double
=no
14051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14052 /* end confdefs.h. */
14057 char *buf = "3.141592653";
14059 sscanf (buf, "%Lg", &f);
14060 return !(f > 3.14159 && f < 3.14160);
14065 if ac_fn_c_try_run
"$LINENO"; then :
14066 gdb_cv_scanf_has_long_double
=yes
14068 gdb_cv_scanf_has_long_double
=no
14070 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14071 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
14076 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
14077 if test $gdb_cv_scanf_has_long_double = yes; then
14079 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
14086 $as_echo_n "checking for -bbigtoc option... " >&6; }
14087 if test "${gdb_cv_bigtoc+set}" = set; then :
14088 $as_echo_n "(cached) " >&6
14091 SAVE_LDFLAGS
=$LDFLAGS
14094 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
14095 *) gdb_cv_bigtoc
=-bbigtoc ;;
14098 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
14099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14100 /* end confdefs.h. */
14110 if ac_fn_c_try_link
"$LINENO"; then :
14115 rm -f core conftest.err conftest.
$ac_objext \
14116 conftest
$ac_exeext conftest.
$ac_ext
14117 LDFLAGS
="${SAVE_LDFLAGS}"
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
14121 $as_echo "$gdb_cv_bigtoc" >&6; }
14122 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
14128 if test ${build} = ${host} -a ${host} = ${target} ; then
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HPUX/OSF thread support" >&5
14132 $as_echo_n "checking for HPUX/OSF thread support... " >&6; }
14133 if test -f /usr
/include
/dce
/cma_config.h
; then
14134 if test "$GCC" = "yes" ; then
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14136 $as_echo "yes" >&6; }
14138 $as_echo "#define HAVE_HPUX_THREAD_SUPPORT 1" >>confdefs.h
14140 CONFIG_OBS
="${CONFIG_OBS} hpux-thread.o"
14141 CONFIG_SRCS
="${CONFIG_SRCS} hpux-thread.c"
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (suppressed because you are not using GCC)" >&5
14144 $as_echo "no (suppressed because you are not using GCC)" >&6; }
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14148 $as_echo "no" >&6; }
14152 # See if thread_db library is around for Solaris thread debugging.
14153 # Note that we must explicitly test for version 1 of the library
14154 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
14157 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
14158 if test -f /usr
/lib
/libthread_db.so
.1 ; then
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14160 $as_echo "yes" >&6; }
14162 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
14164 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
14165 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14167 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14168 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14169 $as_echo_n "(cached) " >&6
14171 ac_check_lib_save_LIBS
=$LIBS
14173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14174 /* end confdefs.h. */
14176 /* Override any GCC internal prototype to avoid an error.
14177 Use char because int might match the return type of a GCC
14178 builtin and then its argument prototype would still apply. */
14191 if ac_fn_c_try_link
"$LINENO"; then :
14192 ac_cv_lib_dl_dlopen
=yes
14194 ac_cv_lib_dl_dlopen
=no
14196 rm -f core conftest.err conftest.
$ac_objext \
14197 conftest
$ac_exeext conftest.
$ac_ext
14198 LIBS
=$ac_check_lib_save_LIBS
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14201 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14202 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
14203 cat >>confdefs.h
<<_ACEOF
14204 #define HAVE_LIBDL 1
14211 if test "$GCC" = "yes" ; then
14212 # The GNU linker requires the -export-dynamic option to make
14213 # all symbols visible in the dynamic symbol table.
14214 hold_ldflags
=$LDFLAGS
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -export-dynamic flag" >&5
14216 $as_echo_n "checking for the ld -export-dynamic flag... " >&6; }
14217 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
14218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14219 /* end confdefs.h. */
14229 if ac_fn_c_try_link
"$LINENO"; then :
14234 rm -f core conftest.err conftest.
$ac_objext \
14235 conftest
$ac_exeext conftest.
$ac_ext
14236 LDFLAGS
=$hold_ldflags
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
14238 $as_echo "$found" >&6; }
14239 if test $found = yes; then
14240 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
14243 # Sun randomly tweaked the prototypes in <proc_service.h>
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
14246 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
14247 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
14248 $as_echo_n "(cached) " >&6
14251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14252 /* end confdefs.h. */
14254 #include <proc_service.h>
14255 ps_err_e ps_pdwrite
14256 (struct ps_prochandle*, psaddr_t, const void*, size_t);
14266 if ac_fn_c_try_compile
"$LINENO"; then :
14267 gdb_cv_proc_service_is_old
=no
14269 gdb_cv_proc_service_is_old
=yes
14271 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
14276 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
14277 if test $gdb_cv_proc_service_is_old = yes; then
14279 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14284 $as_echo "no" >&6; }
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
14289 $as_echo_n "checking for AiX thread debugging library... " >&6; }
14290 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
14291 $as_echo_n "(cached) " >&6
14293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14294 /* end confdefs.h. */
14295 #include <sys/pthdebug.h>
14299 #ifndef PTHDB_VERSION_3
14306 if ac_fn_c_try_compile
"$LINENO"; then :
14307 gdb_cv_have_aix_thread_debug
=yes
14309 gdb_cv_have_aix_thread_debug
=no
14311 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
14315 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
14316 if test $gdb_cv_have_aix_thread_debug = yes; then
14317 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
14318 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
14319 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} -lpthdebug"
14326 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
14328 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
14329 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
14330 $as_echo_n "(cached) " >&6
14332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14333 /* end confdefs.h. */
14334 #include <thread_db.h>
14338 int i = TD_NOTALLOC;
14343 if ac_fn_c_try_compile
"$LINENO"; then :
14344 gdb_cv_thread_db_h_has_td_notalloc
=yes
14346 gdb_cv_thread_db_h_has_td_notalloc
=no
14349 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
14353 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
14355 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
14356 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
14357 $as_echo_n "(cached) " >&6
14359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14360 /* end confdefs.h. */
14361 #include <thread_db.h>
14365 int i = TD_VERSION;
14370 if ac_fn_c_try_compile
"$LINENO"; then :
14371 gdb_cv_thread_db_h_has_td_version
=yes
14373 gdb_cv_thread_db_h_has_td_version
=no
14376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
14380 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
14382 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
14383 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
14384 $as_echo_n "(cached) " >&6
14386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14387 /* end confdefs.h. */
14388 #include <thread_db.h>
14397 if ac_fn_c_try_compile
"$LINENO"; then :
14398 gdb_cv_thread_db_h_has_td_notls
=yes
14400 gdb_cv_thread_db_h_has_td_notls
=no
14403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
14407 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
14409 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
14411 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
14414 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
14416 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
14419 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
14421 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
14425 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
14427 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
14428 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
14429 $as_echo_n "(cached) " >&6
14431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14432 /* end confdefs.h. */
14433 #include <sys/syscall.h>
14437 int i = __NR_tkill;
14442 if ac_fn_c_try_compile
"$LINENO"; then :
14443 gdb_cv_sys_syscall_h_has_tkill
=yes
14445 gdb_cv_sys_syscall_h_has_tkill
=no
14448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
14452 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
14454 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
14456 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
14460 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
14462 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
14468 cat >>confdefs.h
<<_ACEOF
14469 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
14473 if test "$cross_compiling" = yes; then :
14474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14475 /* end confdefs.h. */
14476 #include <sys/personality.h>
14481 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14482 # define ADDR_NO_RANDOMIZE 0x0040000
14484 /* Test the flag could be set and stays set. */
14485 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14486 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14492 if ac_fn_c_try_link
"$LINENO"; then :
14493 have_personality
=true
14495 have_personality
=false
14497 rm -f core conftest.err conftest.
$ac_objext \
14498 conftest
$ac_exeext conftest.
$ac_ext
14500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14501 /* end confdefs.h. */
14502 #include <sys/personality.h>
14507 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14508 # define ADDR_NO_RANDOMIZE 0x0040000
14510 /* Test the flag could be set and stays set. */
14511 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14512 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14518 if ac_fn_c_try_run
"$LINENO"; then :
14519 have_personality
=true
14521 have_personality
=false
14523 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14524 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14527 if $have_personality
14530 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
14535 target_sysroot_reloc
=0
14537 # Check whether --with-sysroot was given.
14538 if test "${with_sysroot+set}" = set; then :
14539 withval
=$with_sysroot;
14540 case ${with_sysroot} in
14541 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_alias}/sys-root' ;;
14542 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
14545 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
14547 if test "x$prefix" = xNONE
; then
14548 test_prefix
=/usr
/local
14550 test_prefix
=$prefix
14552 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
14553 test_exec_prefix
=$test_prefix
14555 test_exec_prefix
=$exec_prefix
14557 case ${TARGET_SYSTEM_ROOT} in
14558 "${test_prefix}"|
"${test_prefix}/"*|\
14559 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
14560 '${prefix}'|
'${prefix}/'*|\
14561 '${exec_prefix}'|
'${exec_prefix}/'*)
14562 target_sysroot_reloc
=1
14568 TARGET_SYSTEM_ROOT
=
14569 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"\"'
14573 TARGET_SYSTEM_ROOT_DEFINE
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE=$target_sysroot_reloc"
14579 # Check whether --with-system-gdbinit was given.
14580 if test "${with_system_gdbinit+set}" = set; then :
14581 withval
=$with_system_gdbinit;
14582 SYSTEM_GDBINIT
=$withval
14588 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
14589 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14590 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
14591 ac_define_dir
=`eval echo $ac_define_dir`
14593 cat >>confdefs.h
<<_ACEOF
14594 #define SYSTEM_GDBINIT "$ac_define_dir"
14599 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
14600 if test "x$prefix" = xNONE
; then
14601 test_prefix
=/usr
/local
14603 test_prefix
=$prefix
14606 test_prefix
=$exec_prefix
14609 case ${ac_define_dir} in
14610 "${test_prefix}"|
"${test_prefix}/"*|\
14611 '${exec_prefix}'|
'${exec_prefix}/'*)
14616 cat >>confdefs.h
<<_ACEOF
14617 #define SYSTEM_GDBINIT_RELOCATABLE $value
14622 # Check whether --enable-werror was given.
14623 if test "${enable_werror+set}" = set; then :
14624 enableval
=$enable_werror; case "${enableval}" in
14625 yes | y
) ERROR_ON_WARNING
="yes" ;;
14626 no | n
) ERROR_ON_WARNING
="no" ;;
14627 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
14632 # Enable -Werror by default when using gcc
14633 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
14634 ERROR_ON_WARNING
=yes
14638 if test "${ERROR_ON_WARNING}" = yes ; then
14639 WERROR_CFLAGS
="-Werror"
14642 # The entries after -Wno-pointer-sign are disabled warnings which may
14643 # be enabled in the future, which can not currently be used to build
14645 # NOTE: If you change this list, remember to update
14646 # gdb/doc/gdbint.texinfo.
14647 build_warnings
="-Wall -Wdeclaration-after-statement -Wpointer-arith \
14648 -Wformat-nonliteral -Wno-pointer-sign \
14649 -Wno-unused -Wunused-value -Wunused-function \
14650 -Wno-switch -Wno-char-subscripts"
14652 # Enable -Wno-format by default when using gcc on mingw since many
14653 # GCC versions complain about %I64.
14655 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
14658 # Check whether --enable-build-warnings was given.
14659 if test "${enable_build_warnings+set}" = set; then :
14660 enableval
=$enable_build_warnings; case "${enableval}" in
14662 no
) build_warnings
="-w";;
14663 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
14664 build_warnings
="${build_warnings} ${t}";;
14665 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
14666 build_warnings
="${t} ${build_warnings}";;
14667 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14669 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
14670 echo "Setting compiler warning flags = $build_warnings" 6>&1
14673 # Check whether --enable-gdb-build-warnings was given.
14674 if test "${enable_gdb_build_warnings+set}" = set; then :
14675 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
14677 no
) build_warnings
="-w";;
14678 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
14679 build_warnings
="${build_warnings} ${t}";;
14680 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
14681 build_warnings
="${t} ${build_warnings}";;
14682 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14684 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
14685 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
14689 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
14692 $as_echo_n "checking compiler warning flags... " >&6; }
14693 # Separate out the -Werror flag as some files just cannot be
14694 # compiled with it enabled.
14695 for w
in ${build_warnings}; do
14697 -Werr*) WERROR_CFLAGS
=-Werror ;;
14698 *) # Check that GCC accepts it
14699 saved_CFLAGS
="$CFLAGS"
14700 CFLAGS
="$CFLAGS $w"
14701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14702 /* end confdefs.h. */
14712 if ac_fn_c_try_compile
"$LINENO"; then :
14713 WARN_CFLAGS
="${WARN_CFLAGS} $w"
14715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14716 CFLAGS
="$saved_CFLAGS"
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
14720 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
14725 # In the Cygwin environment, we need some additional flags.
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
14727 $as_echo_n "checking
for cygwin...
" >&6; }
14728 if test "${gdb_cv_os_cygwin+set}" = set; then :
14729 $as_echo_n "(cached
) " >&6
14731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14732 /* end confdefs.h. */
14734 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
14738 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14739 $EGREP "lose
" >/dev/null 2>&1; then :
14740 gdb_cv_os_cygwin=yes
14742 gdb_cv_os_cygwin=no
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
14748 $as_echo "$gdb_cv_os_cygwin" >&6; }
14751 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
14753 *go32* ) SER_HARDWIRE=ser-go32.o ;;
14754 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
14755 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
14759 # libreadline needs libuser32.a in a cygwin environment
14761 if test x$gdb_cv_os_cygwin = xyes; then
14762 WIN32LIBS="-luser32"
14763 case "${target}" in
14764 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
14769 # The ser-tcp.c module requires sockets.
14773 $as_echo "#define USE_WIN32API 1" >>confdefs.h
14775 WIN32LIBS
="$WIN32LIBS -lws2_32"
14780 # Add ELF support to GDB, but only if BFD includes ELF support.
14782 OLD_LDFLAGS
=$LDFLAGS
14784 CFLAGS
="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
14785 LDFLAGS
="$LDFLAGS -L../bfd -L../libiberty"
14786 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
14787 LIBS
="-lbfd -liberty $intl $LIBS"
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
14789 $as_echo_n "checking for ELF support in BFD... " >&6; }
14790 if test "${gdb_cv_var_elf+set}" = set; then :
14791 $as_echo_n "(cached) " >&6
14793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14794 /* end confdefs.h. */
14795 #include <stdlib.h>
14797 #include "elf-bfd.h"
14802 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
14807 if ac_fn_c_try_link
"$LINENO"; then :
14812 rm -f core conftest.err conftest.
$ac_objext \
14813 conftest
$ac_exeext conftest.
$ac_ext
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
14816 $as_echo "$gdb_cv_var_elf" >&6; }
14817 if test $gdb_cv_var_elf = yes; then
14818 CONFIG_OBS
="$CONFIG_OBS elfread.o"
14820 $as_echo "#define HAVE_ELF 1" >>confdefs.h
14824 LDFLAGS
=$OLD_LDFLAGS
14827 # Add any host-specific objects to GDB.
14828 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
14830 LIBGUI
="../libgui/src/libgui.a"
14831 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
14840 *-*-cygwin* |
*-*-mingw* )
14849 if test "${enable_gdbtk}" = "yes"; then
14851 # Gdbtk must have an absolute path to srcdir in order to run
14852 # properly when not installed.
14855 GDBTK_SRC_DIR
=`pwd`
14860 # Ok, lets find the tcl configuration
14861 # First, look for one uninstalled.
14862 # the alternative search directory is invoked by --with-tcl
14865 if test x
"${no_tcl}" = x
; then
14866 # we reset no_tcl in case something fails here
14869 # Check whether --with-tcl was given.
14870 if test "${with_tcl+set}" = set; then :
14871 withval
=$with_tcl; with_tclconfig
=${withval}
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
14875 $as_echo_n "checking for Tcl configuration... " >&6; }
14876 if test "${ac_cv_c_tclconfig+set}" = set; then :
14877 $as_echo_n "(cached) " >&6
14881 # First check to see if --with-tcl was specified.
14883 *-*-cygwin*) platDir
="win" ;;
14884 *) platDir
="unix" ;;
14886 if test x
"${with_tclconfig}" != x
; then
14887 if test -f "${with_tclconfig}/tclConfig.sh" ; then
14888 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
14890 as_fn_error
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
14894 # then check for a private Tcl installation
14895 if test x
"${ac_cv_c_tclconfig}" = x
; then
14898 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14899 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
14900 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
14902 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14903 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
14904 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
14906 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14907 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
14908 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
14909 if test -f "$i/$platDir/tclConfig.sh" ; then
14910 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
14916 # on Darwin, check in Framework installation locations
14917 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
14918 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
14919 `ls -d /Library/Frameworks 2>/dev/null` \
14920 `ls -d /Network/Library/Frameworks 2>/dev/null` \
14921 `ls -d /System/Library/Frameworks 2>/dev/null` \
14923 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
14924 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
14930 # check in a few common install locations
14931 if test x
"${ac_cv_c_tclconfig}" = x
; then
14932 for i
in `ls -d ${libdir} 2>/dev/null` \
14933 `ls -d ${exec_prefix}/lib 2>/dev/null` \
14934 `ls -d ${prefix}/lib 2>/dev/null` \
14935 `ls -d /usr/local/lib 2>/dev/null` \
14936 `ls -d /usr/contrib/lib 2>/dev/null` \
14937 `ls -d /usr/lib 2>/dev/null` \
14939 if test -f "$i/tclConfig.sh" ; then
14940 ac_cv_c_tclconfig
=`(cd $i; pwd)`
14946 # check in a few other private locations
14947 if test x
"${ac_cv_c_tclconfig}" = x
; then
14950 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14951 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
14952 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
14953 if test -f "$i/$platDir/tclConfig.sh" ; then
14954 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
14963 if test x
"${ac_cv_c_tclconfig}" = x
; then
14964 TCL_BIN_DIR
="# no Tcl configs found"
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
14966 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
14969 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
14971 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
14976 # If $no_tk is nonempty, then we can't do Tk, and there is no
14977 # point to doing Tcl.
14980 # Ok, lets find the tk configuration
14981 # First, look for one uninstalled.
14982 # the alternative search directory is invoked by --with-tk
14985 if test x
"${no_tk}" = x
; then
14986 # we reset no_tk in case something fails here
14989 # Check whether --with-tk was given.
14990 if test "${with_tk+set}" = set; then :
14991 withval
=$with_tk; with_tkconfig
=${withval}
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
14995 $as_echo_n "checking for Tk configuration... " >&6; }
14996 if test "${ac_cv_c_tkconfig+set}" = set; then :
14997 $as_echo_n "(cached) " >&6
15001 # First check to see if --with-tkconfig was specified.
15002 if test x
"${with_tkconfig}" != x
; then
15003 if test -f "${with_tkconfig}/tkConfig.sh" ; then
15004 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
15006 as_fn_error
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
15010 # then check for a private Tk library
15012 *-*-cygwin*) platDir
="win" ;;
15013 *) platDir
="unix" ;;
15015 if test x
"${ac_cv_c_tkconfig}" = x
; then
15018 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15019 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
15020 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
15022 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15023 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
15024 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
15026 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15027 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
15028 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
15029 if test -f "$i/$platDir/tkConfig.sh" ; then
15030 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
15036 # on Darwin, check in Framework installation locations
15037 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
15038 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
15039 `ls -d /Library/Frameworks 2>/dev/null` \
15040 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15041 `ls -d /System/Library/Frameworks 2>/dev/null` \
15043 if test -f "$i/Tk.framework/tkConfig.sh" ; then
15044 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
15050 # check in a few common install locations
15051 if test x
"${ac_cv_c_tkconfig}" = x
; then
15052 for i
in `ls -d ${libdir} 2>/dev/null` \
15053 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15054 `ls -d ${prefix}/lib 2>/dev/null` \
15055 `ls -d /usr/local/lib 2>/dev/null` \
15056 `ls -d /usr/contrib/lib 2>/dev/null` \
15057 `ls -d /usr/lib 2>/dev/null` \
15059 if test -f "$i/tkConfig.sh" ; then
15060 ac_cv_c_tkconfig
=`(cd $i; pwd)`
15065 # check in a few other private locations
15066 if test x
"${ac_cv_c_tkconfig}" = x
; then
15069 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15070 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
15071 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
15072 if test -f "$i/$platDir/tkConfig.sh" ; then
15073 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
15082 if test x
"${ac_cv_c_tkconfig}" = x
; then
15083 TK_BIN_DIR
="# no Tk configs found"
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
15085 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
15088 TK_BIN_DIR
=${ac_cv_c_tkconfig}
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
15090 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15095 if test -z "${no_tcl}" -a -z "${no_tk}"; then
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
15098 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
15100 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15102 $as_echo "loading" >&6; }
15103 .
${TCL_BIN_DIR}/tclConfig.sh
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
15106 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15109 # eval is required to do the TCL_DBGX substitution
15110 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
15111 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
15113 # If the TCL_BIN_DIR is the build directory (not the install directory),
15114 # then set the common variable name to the value of the build variables.
15115 # For example, the variable TCL_LIB_SPEC will be set to the value
15116 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
15117 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
15118 # installed and uninstalled version of Tcl.
15119 if test -f "${TCL_BIN_DIR}/Makefile" ; then
15120 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
15121 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
15122 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
15123 elif test "`uname -s`" = "Darwin"; then
15124 # If Tcl was built as a framework, attempt to use the libraries
15125 # from the framework at the given location so that linking works
15126 # against Tcl.framework installed in an arbitary location.
15127 case ${TCL_DEFS} in
15129 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
15130 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
15131 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
15132 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
15133 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
15138 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
15139 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
15140 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
15146 # eval is required to do the TCL_DBGX substitution
15147 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
15148 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
15149 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
15150 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
15166 # Check for in-tree tcl
15173 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
15177 # Find Tcl private headers
15178 if test x
"${intree}" = xno
; then
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
15181 $as_echo_n "checking for Tcl private headers... " >&6; }
15183 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
15184 if test -f ${dir}/tclInt.h
; then
15188 if test x
"${private_dir}" = x
; then
15189 as_fn_error
"could not find private Tcl headers" "$LINENO" 5
15191 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15193 $as_echo "${private_dir}" >&6; }
15196 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
15197 TCL_LIBRARY
="${TCL_LIB_SPEC}"
15200 # If building tcl in the same src tree, private headers
15201 # are not needed, but we need to be sure to use the right
15203 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
15204 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
15205 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
15213 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
15215 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15217 $as_echo "loading" >&6; }
15218 .
${TK_BIN_DIR}/tkConfig.sh
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
15221 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15224 # eval is required to do the TK_DBGX substitution
15225 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
15226 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
15228 # If the TK_BIN_DIR is the build directory (not the install directory),
15229 # then set the common variable name to the value of the build variables.
15230 # For example, the variable TK_LIB_SPEC will be set to the value
15231 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
15232 # instead of TK_BUILD_LIB_SPEC since it will work with both an
15233 # installed and uninstalled version of Tcl.
15234 if test -f "${TK_BIN_DIR}/Makefile" ; then
15235 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
15236 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
15237 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
15238 elif test "`uname -s`" = "Darwin"; then
15239 # If Tk was built as a framework, attempt to use the libraries
15240 # from the framework at the given location so that linking works
15241 # against Tk.framework installed in an arbitary location.
15244 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
15245 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
15246 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
15247 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
15248 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
15253 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
15254 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
15255 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
15261 # eval is required to do the TK_DBGX substitution
15262 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
15263 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
15264 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
15265 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
15280 # Check for in-tree Tk
15282 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
15286 # Find Tk private headers
15287 if test x
"${intree}" = xno
; then
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
15290 $as_echo_n "checking for Tk private headers... " >&6; }
15292 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
15293 if test -f ${dir}/tkInt.h
; then
15297 if test x
"${private_dir}" = x
; then
15298 as_fn_error
"could not find Tk private headers" "$LINENO" 5
15300 TK_PRIVATE_INCLUDE
="-I${private_dir}"
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15302 $as_echo "${private_dir}" >&6; }
15305 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
15306 TK_LIBRARY
=${TK_LIB_SPEC}
15309 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
15310 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
15311 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
15318 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
15320 # Include some libraries that Tcl and Tk want.
15321 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
15322 # Yes, the ordering seems wrong here. But it isn't.
15323 # TK_LIBS is the list of libraries that need to be linked
15324 # after Tcl/Tk. Note that this isn't put into LIBS. If it
15325 # were in LIBS then any link tests after this point would
15326 # try to include things like `$(LIBGUI)', which wouldn't work.
15327 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
15329 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
15330 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
15331 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
15332 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
15333 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
15334 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
15335 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
15337 if test x
$gdb_cv_os_cygwin = xyes
; then
15338 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
15339 WIN32LDAPP
="-Wl,--subsystem,console"
15340 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
15343 subdirs
="$subdirs gdbtk"
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15356 $as_echo_n "checking for X... " >&6; }
15359 # Check whether --with-x was given.
15360 if test "${with_x+set}" = set; then :
15364 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15365 if test "x$with_x" = xno
; then
15366 # The user explicitly disabled X.
15369 case $x_includes,$x_libraries in #(
15370 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
15371 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
15372 $as_echo_n "(cached) " >&6
15374 # One or both of the vars are not set, and there is no cached value.
15375 ac_x_includes
=no ac_x_libraries
=no
15376 rm -f -r conftest.dir
15377 if mkdir conftest.dir
; then
15379 cat >Imakefile
<<'_ACEOF'
15381 @echo incroot='${INCROOT}'
15383 @echo usrlibdir='${USRLIBDIR}'
15385 @echo libdir='${LIBDIR}'
15387 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
15388 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15389 for ac_var
in incroot usrlibdir libdir
; do
15390 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15392 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
15393 for ac_extension
in a so sl dylib la dll
; do
15394 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15395 test -f "$ac_im_libdir/libX11.$ac_extension"; then
15396 ac_im_usrlibdir
=$ac_im_libdir; break
15399 # Screen out bogus values from the imake configuration. They are
15400 # bogus both because they are the default anyway, and because
15401 # using them would break gcc on systems where it needs fixed includes.
15402 case $ac_im_incroot in
15403 /usr
/include
) ac_x_includes
= ;;
15404 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
15406 case $ac_im_usrlibdir in
15407 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
15408 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
15412 rm -f -r conftest.dir
15415 # Standard set of common directories for X headers.
15416 # Check X11 before X11Rn because it is often a symlink to the current release.
15430 /usr/local/X11/include
15431 /usr/local/X11R7/include
15432 /usr/local/X11R6/include
15433 /usr/local/X11R5/include
15434 /usr/local/X11R4/include
15436 /usr/local/include/X11
15437 /usr/local/include/X11R7
15438 /usr/local/include/X11R6
15439 /usr/local/include/X11R5
15440 /usr/local/include/X11R4
15444 /usr/XFree86/include/X11
15448 /usr/unsupported/include
15449 /usr/athena/include
15450 /usr/local/x11r5/include
15451 /usr/lpp/Xamples/include
15453 /usr/openwin/include
15454 /usr/openwin/share/include'
15456 if test "$ac_x_includes" = no
; then
15457 # Guess where to find include files, by looking for Xlib.h.
15458 # First, try using that file with no special directory specified.
15459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15460 /* end confdefs.h. */
15461 #include <X11/Xlib.h>
15463 if ac_fn_c_try_cpp
"$LINENO"; then :
15464 # We can compile using X headers with no special include directory.
15467 for ac_dir
in $ac_x_header_dirs; do
15468 if test -r "$ac_dir/X11/Xlib.h"; then
15469 ac_x_includes
=$ac_dir
15474 rm -f conftest.err conftest.
$ac_ext
15475 fi # $ac_x_includes = no
15477 if test "$ac_x_libraries" = no
; then
15478 # Check for the libraries.
15479 # See if we find them without any special options.
15480 # Don't add to $LIBS permanently.
15483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15484 /* end confdefs.h. */
15485 #include <X11/Xlib.h>
15494 if ac_fn_c_try_link
"$LINENO"; then :
15496 # We can link X programs with no special library path.
15500 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15502 # Don't even attempt the hair of trying to link an X program!
15503 for ac_extension
in a so sl dylib la dll
; do
15504 if test -r "$ac_dir/libX11.$ac_extension"; then
15505 ac_x_libraries
=$ac_dir
15511 rm -f core conftest.err conftest.
$ac_objext \
15512 conftest
$ac_exeext conftest.
$ac_ext
15513 fi # $ac_x_libraries = no
15515 case $ac_x_includes,$ac_x_libraries in #(
15516 no
,* |
*,no |
*\'*)
15517 # Didn't find X, or a directory has "'" in its name.
15518 ac_cv_have_x
="have_x=no";; #(
15520 # Record where we found X for the cache.
15521 ac_cv_have_x
="have_x=yes\
15522 ac_x_includes='$ac_x_includes'\
15523 ac_x_libraries='$ac_x_libraries'"
15529 eval "$ac_cv_have_x"
15532 if test "$have_x" != yes; then
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15534 $as_echo "$have_x" >&6; }
15537 # If each of the values was on the command line, it overrides each guess.
15538 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
15539 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
15540 # Update the cache value to reflect the command line values.
15541 ac_cv_have_x
="have_x=yes\
15542 ac_x_includes='$x_includes'\
15543 ac_x_libraries='$x_libraries'"
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15545 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15549 # Unlike the sim directory, whether a simulator is linked is controlled by
15550 # presence of a gdb_sim definition in the target configure.tgt entry.
15551 # This code just checks for a few cases where we'd like to ignore those
15552 # definitions, even when they're present in the '.mt' file. These cases
15553 # are when --disable-sim is specified, or if the simulator directory is
15554 # not part of the source tree.
15556 # Check whether --enable-sim was given.
15557 if test "${enable_sim+set}" = set; then :
15558 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
15559 echo "enableval = ${enableval}";
15560 case "${enableval}" in
15561 yes) ignore_sim
=false
;;
15562 no
) ignore_sim
=true
;;
15563 *) ignore_sim
=false
;;
15570 if test ! -d "${srcdir}/../sim"; then
15576 if test "${ignore_sim}" = "false"; then
15577 if test x
"${gdb_sim}" != x
; then
15579 SIM_OBS
="remote-sim.o"
15581 $as_echo "#define WITH_SIM 1" >>confdefs.h
15599 # List of host floatformats.
15601 cat >>confdefs.h
<<_ACEOF
15602 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
15606 cat >>confdefs.h
<<_ACEOF
15607 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
15611 cat >>confdefs.h
<<_ACEOF
15612 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
15616 # target_subdir is used by the testsuite to find the target libraries.
15618 if test "${host}" != "${target}"; then
15619 target_subdir
="${target_alias}/"
15624 if test "${gdb_native}" = "yes"; then
15625 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
15626 if test ! -f ${host_makefile_frag}; then
15627 as_fn_error
"\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
15629 frags
="$frags $host_makefile_frag"
15631 host_makefile_frag
=/dev
/null
15637 if test "${gdb_native}" = "yes"; then
15638 # We pick this up from the host configuration file (.mh) because we
15639 # do not have a native configuration Makefile fragment.
15640 nativefile
=`sed -n '
15641 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
15642 ' ${host_makefile_frag}`
15646 if test x
"${gdb_osabi}" != x
; then
15648 cat >>confdefs.h
<<_ACEOF
15649 #define GDB_OSABI_DEFAULT $gdb_osabi
15654 # Enable multi-ice-gdb-server.
15655 # Check whether --enable-multi-ice was given.
15656 if test "${enable_multi_ice+set}" = set; then :
15657 enableval
=$enable_multi_ice; case $enableval in
15660 *) as_fn_error
"bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
15664 if test "x$enable_multi_ice" = xyes
; then
15665 subdirs
="$subdirs multi-ice"
15669 # We only build gdbserver automatically in a native configuration.
15670 if test "$gdb_native" = "yes"; then
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
15672 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
15673 if test "x$build_gdbserver" = xyes
; then
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15675 $as_echo "yes" >&6; }
15676 subdirs
="$subdirs gdbserver"
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15680 $as_echo "no" >&6; }
15684 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
15685 # to an empty version.
15691 if test "${nativefile}" != ""; then
15692 case "${nativefile}" in
15693 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
15694 * ) GDB_NM_FILE
="${nativefile}"
15696 files
="${files} ${GDB_NM_FILE}"
15697 links
="${links} nm.h"
15699 cat >>confdefs.h
<<_ACEOF
15700 #define GDB_NM_FILE "${GDB_NM_FILE}"
15706 ac_sources
="$files"
15708 while test -n "$ac_sources"; do
15709 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
15710 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
15711 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
15713 ac_config_links
="$ac_config_links $ac_config_links_1"
15719 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
15722 ac_config_files
="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
15724 ac_config_commands
="$ac_config_commands default"
15726 cat >confcache
<<\_ACEOF
15727 # This file is a shell script that caches the results of configure
15728 # tests run on this system so they can be shared between configure
15729 # scripts and configure runs, see configure's option --config-cache.
15730 # It is not useful on other systems. If it contains results you don't
15731 # want to keep, you may remove or edit it.
15733 # config.status only pays attention to the cache file if you give it
15734 # the --recheck option to rerun configure.
15736 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15737 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15738 # following values.
15742 # The following way of writing the cache mishandles newlines in values,
15743 # but we know of no workaround that is simple, portable, and efficient.
15744 # So, we kill variables containing newlines.
15745 # Ultrix sh set writes to stderr and can't be redirected directly,
15746 # and sets the high bit in the cache file unless we assign to the vars.
15748 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15749 eval ac_val
=\$
$ac_var
15753 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15754 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15757 _ | IFS | as_nl
) ;; #(
15758 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15759 *) { eval $ac_var=; unset $ac_var;} ;;
15765 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15766 *${as_nl}ac_space
=\
*)
15767 # `set' does not quote correctly, so add quotes: double-quote
15768 # substitution turns \\\\ into \\, and sed turns \\ into \.
15771 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15774 # `set' quotes correctly as required by POSIX, so do not add quotes.
15775 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15784 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15786 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15788 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15789 if test -w "$cache_file"; then
15790 test "x$cache_file" != "x/dev/null" &&
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15792 $as_echo "$as_me: updating cache $cache_file" >&6;}
15793 cat confcache
>$cache_file
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15796 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15801 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15802 # Let make expand exec_prefix.
15803 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15805 DEFS
=-DHAVE_CONFIG_H
15809 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15810 # 1. Remove the extension, and $U if already installed.
15811 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15812 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15813 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15814 # will be set to the directory where LIBOBJS objects are built.
15815 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15816 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15818 LIBOBJS
=$ac_libobjs
15820 LTLIBOBJS
=$ac_ltlibobjs
15823 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15824 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
15825 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15827 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
15828 as_fn_error
"conditional \"GMAKE\" was never defined.
15829 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15831 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
15832 as_fn_error
"conditional \"GL_COND_LIBTOOL\" was never defined.
15833 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15838 if test -n "$gl_LIBOBJS"; then
15839 # Remove the extension.
15840 sed_drop_objext
='s/\.o$//;s/\.obj$//'
15841 for i
in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
15842 gl_libobjs
="$gl_libobjs $i.$ac_objext"
15843 gl_ltlibobjs
="$gl_ltlibobjs $i.lo"
15846 gl_LIBOBJS
=$gl_libobjs
15848 gl_LTLIBOBJS
=$gl_ltlibobjs
15854 if test -n "$gltests_LIBOBJS"; then
15855 # Remove the extension.
15856 sed_drop_objext
='s/\.o$//;s/\.obj$//'
15857 for i
in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
15858 gltests_libobjs
="$gltests_libobjs $i.$ac_objext"
15859 gltests_ltlibobjs
="$gltests_ltlibobjs $i.lo"
15862 gltests_LIBOBJS
=$gltests_libobjs
15864 gltests_LTLIBOBJS
=$gltests_ltlibobjs
15867 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15868 as_fn_error
"conditional \"AMDEP\" was never defined.
15869 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15871 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15872 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
15873 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15875 if test -n "$EXEEXT"; then
15877 am__EXEEXT_FALSE
='#'
15879 am__EXEEXT_TRUE
='#'
15885 : ${CONFIG_STATUS=./config.status}
15887 ac_clean_files_save
=$ac_clean_files
15888 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15890 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15892 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15894 # Generated by $as_me.
15895 # Run this file to recreate the current configuration.
15896 # Compiler output produced by configure, useful for debugging
15897 # configure, is in config.log if it exists.
15900 ac_cs_recheck=false
15903 SHELL=\${CONFIG_SHELL-$SHELL}
15906 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15907 ## -------------------- ##
15908 ## M4sh Initialization. ##
15909 ## -------------------- ##
15911 # Be more Bourne compatible
15912 DUALCASE
=1; export DUALCASE
# for MKS sh
15913 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15916 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15917 # is contrary to our usage. Disable this feature.
15918 alias -g '${1+"$@"}'='"$@"'
15919 setopt NO_GLOB_SUBST
15921 case `(set -o) 2>/dev/null` in #(
15933 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15934 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15935 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15936 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15937 # Prefer a ksh shell builtin over an external printf program on Solaris,
15938 # but without wasting forks for bash or zsh.
15939 if test -z "$BASH_VERSION$ZSH_VERSION" \
15940 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15941 as_echo='print
-r --'
15942 as_echo_n='print
-rn --'
15943 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15944 as_echo='printf %s
\n'
15945 as_echo_n='printf %s
'
15947 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15948 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15949 as_echo_n='/usr
/ucb
/echo -n'
15951 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15952 as_echo_n_body='eval
15956 expr "X$arg" : "X\\(.*\\)$as_nl";
15957 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15959 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15961 export as_echo_n_body
15962 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15964 export as_echo_body
15965 as_echo='sh
-c $as_echo_body as_echo
'
15968 # The user is always right.
15969 if test "${PATH_SEPARATOR+set}" != set; then
15971 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15972 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15979 # We need space, tab and new line, in precisely that order. Quoting is
15980 # there to prevent editors from complaining about space-tab.
15981 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15982 # splitting by setting IFS to empty value.)
15985 # Find who we are. Look in the path if we contain no directory separator.
15987 *[\\/]* ) as_myself=$0 ;;
15988 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15989 for as_dir in $PATH
15992 test -z "$as_dir" && as_dir=.
15993 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15999 # We did not find ourselves, most probably we were run as `sh COMMAND'
16000 # in which case we are not to be found in the path.
16001 if test "x$as_myself" = x
; then
16004 if test ! -f "$as_myself"; then
16005 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16009 # Unset variables that we do not need and which cause bugs (e.g. in
16010 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16011 # suppresses any "Segmentation fault" message there. '((' could
16012 # trigger a bug in pdksh 5.2.14.
16013 for as_var
in BASH_ENV ENV MAIL MAILPATH
16014 do eval test x\
${$as_var+set} = xset \
16015 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
16028 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
16031 # as_fn_error ERROR [LINENO LOG_FD]
16032 # ---------------------------------
16033 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16034 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16035 # script with status $?, using 1 if that was 0.
16038 as_status
=$?
; test $as_status -eq 0 && as_status
=1
16040 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
16041 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16043 $as_echo "$as_me: error: $1" >&2
16044 as_fn_exit
$as_status
16048 # as_fn_set_status STATUS
16049 # -----------------------
16050 # Set $? to STATUS, without forking.
16051 as_fn_set_status
()
16054 } # as_fn_set_status
16056 # as_fn_exit STATUS
16057 # -----------------
16058 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16062 as_fn_set_status
$1
16068 # Portably unset VAR.
16071 { eval $1=; unset $1;}
16073 as_unset
=as_fn_unset
16074 # as_fn_append VAR VALUE
16075 # ----------------------
16076 # Append the text in VALUE to the end of the definition contained in VAR. Take
16077 # advantage of any shell optimizations that allow amortized linear growth over
16078 # repeated appends, instead of the typical quadratic growth present in naive
16080 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
16081 eval 'as_fn_append ()
16092 # as_fn_arith ARG...
16093 # ------------------
16094 # Perform arithmetic evaluation on the ARGs, and store the result in the
16095 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16096 # must be portable across $(()) and expr.
16097 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
16098 eval 'as_fn_arith ()
16105 as_val
=`expr "$@" || test $? -eq 1`
16110 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16111 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16117 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16118 as_basename
=basename
16123 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16129 as_me
=`$as_basename -- "$0" ||
16130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16131 X"$0" : 'X\(//\)$' \| \
16132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16134 sed '/^.*\/\([^/][^/]*\)\/*$/{
16148 # Avoid depending upon Character Ranges.
16149 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16150 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16151 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16152 as_cr_digits
='0123456789'
16153 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16155 ECHO_C
= ECHO_N
= ECHO_T
=
16156 case `echo -n x` in #(((((
16158 case `echo 'xy\c'` in
16159 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16161 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16168 rm -f conf$$ conf$$.exe conf$$.
file
16169 if test -d conf$$.dir
; then
16170 rm -f conf$$.dir
/conf$$.
file
16173 mkdir conf$$.dir
2>/dev
/null
16175 if (echo >conf$$.
file) 2>/dev
/null
; then
16176 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16178 # ... but there are two gotchas:
16179 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16180 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16181 # In both cases, we have to default to `cp -p'.
16182 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16184 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16192 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16193 rmdir conf$$.dir
2>/dev
/null
16198 # Create "$as_dir" as a directory, including parents if necessary.
16203 -*) as_dir
=.
/$as_dir;;
16205 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16209 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16210 *) as_qdir
=$as_dir;;
16212 as_dirs
="'$as_qdir' $as_dirs"
16213 as_dir
=`$as_dirname -- "$as_dir" ||
16214 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16215 X"$as_dir" : 'X\(//\)[^/]' \| \
16216 X"$as_dir" : 'X\(//\)$' \| \
16217 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16218 $as_echo X"$as_dir" |
16219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16223 /^X\(\/\/\)[^/].*/{
16236 test -d "$as_dir" && break
16238 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16239 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
16243 if mkdir
-p .
2>/dev
/null
; then
16244 as_mkdir_p
='mkdir -p "$as_dir"'
16246 test -d .
/-p && rmdir .
/-p
16250 if test -x / >/dev
/null
2>&1; then
16251 as_test_x
='test -x'
16253 if ls -dL / >/dev
/null
2>&1; then
16260 if test -d "$1"; then
16266 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16267 ???[sx]*):;;*)false;;esac;fi
16271 as_executable_p
=$as_test_x
16273 # Sed expression to map a string onto a valid CPP name.
16274 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16276 # Sed expression to map a string onto a valid variable name.
16277 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16281 ## ----------------------------------- ##
16282 ## Main body of $CONFIG_STATUS script. ##
16283 ## ----------------------------------- ##
16285 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16288 # Save the log message, to keep $0 and so on meaningful, and to
16289 # report actual input values of CONFIG_FILES etc. instead of their
16290 # values after options handling.
16292 This file was extended by $as_me, which was
16293 generated by GNU Autoconf 2.64. Invocation command line was
16295 CONFIG_FILES = $CONFIG_FILES
16296 CONFIG_HEADERS = $CONFIG_HEADERS
16297 CONFIG_LINKS = $CONFIG_LINKS
16298 CONFIG_COMMANDS = $CONFIG_COMMANDS
16301 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16306 case $ac_config_files in *"
16307 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16310 case $ac_config_headers in *"
16311 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16316 # Files that config.status was made for.
16317 config_files="$ac_config_files"
16318 config_headers="$ac_config_headers"
16319 config_links="$ac_config_links"
16320 config_commands="$ac_config_commands"
16324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16326 \`$as_me' instantiates files and other configuration actions
16327 from templates according to the current configuration. Unless the files
16328 and actions are specified as TAGs, all are instantiated by default.
16330 Usage: $0 [OPTION]... [TAG]...
16332 -h, --help print this help, then exit
16333 -V, --version print version number and configuration settings, then exit
16334 -q, --quiet, --silent
16335 do not print progress messages
16336 -d, --debug don't remove temporary files
16337 --recheck update $as_me by reconfiguring in the same conditions
16338 --file=FILE[:TEMPLATE]
16339 instantiate the configuration file FILE
16340 --header=FILE[:TEMPLATE]
16341 instantiate the configuration header FILE
16343 Configuration files:
16346 Configuration headers:
16349 Configuration links:
16352 Configuration commands:
16355 Report bugs to the package provider."
16358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16361 configured by $0, generated by GNU Autoconf 2.64,
16362 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16364 Copyright (C) 2009 Free Software Foundation, Inc.
16365 This config.status script is free software; the Free Software Foundation
16366 gives unlimited permission to copy, distribute and modify it."
16373 test -n "\$AWK" || AWK=awk
16376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16377 # The default lists apply if the user does not specify any file.
16383 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16384 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16395 # Handling of the options.
16396 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16398 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16399 $as_echo "$ac_cs_version"; exit ;;
16400 --debug |
--debu |
--deb |
--de |
--d |
-d )
16402 --file |
--fil |
--fi |
--f )
16405 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16407 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16408 ac_need_defaults
=false
;;
16409 --header |
--heade |
--head |
--hea )
16412 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16414 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
16415 ac_need_defaults
=false
;;
16417 # Conflict between --help and --header
16418 as_fn_error
"ambiguous option: \`$1'
16419 Try \`$0 --help' for more information.";;
16420 --help |
--hel |
-h )
16421 $as_echo "$ac_cs_usage"; exit ;;
16422 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16423 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16426 # This is an error.
16427 -*) as_fn_error
"unrecognized option: \`$1'
16428 Try \`$0 --help' for more information." ;;
16430 *) as_fn_append ac_config_targets
" $1"
16431 ac_need_defaults
=false
;;
16437 ac_configure_extra_args
=
16439 if $ac_cs_silent; then
16441 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16446 if \$ac_cs_recheck; then
16447 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16449 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16450 CONFIG_SHELL='$SHELL'
16451 export CONFIG_SHELL
16456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16460 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16461 ## Running $as_me. ##
16467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16471 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16472 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16478 # Handling of arguments.
16479 for ac_config_target
in $ac_config_targets
16481 case $ac_config_target in
16482 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
16483 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
16484 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
16485 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
16486 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16487 ".gdbinit") CONFIG_FILES
="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
16488 "gnulib/Makefile") CONFIG_FILES
="$CONFIG_FILES gnulib/Makefile" ;;
16489 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
16491 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16496 # If the user did not use the arguments to specify the items to instantiate,
16497 # then the envvar interface is used. Set only those that are not.
16498 # We use the long form for the default assignment because of an extremely
16499 # bizarre bug on SunOS 4.1.3.
16500 if $ac_need_defaults; then
16501 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16502 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16503 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
16504 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16507 # Have a temporary directory for convenience. Make it in the build tree
16508 # simply because there is no reason against having it here, and in addition,
16509 # creating and moving files from /tmp can sometimes cause problems.
16510 # Hook for its removal unless debugging.
16511 # Note that there is a small window in which the directory will not be cleaned:
16512 # after its creation but before its name has been assigned to `$tmp'.
16516 trap 'exit_status=$?
16517 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16519 trap 'as_fn_exit 1' 1 2 13 15
16521 # Create a (secure) tmp directory for tmp files.
16524 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16525 test -n "$tmp" && test -d "$tmp"
16528 tmp
=.
/conf$$
-$RANDOM
16529 (umask 077 && mkdir
"$tmp")
16530 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
16532 # Set up the scripts for CONFIG_FILES section.
16533 # No need to generate them if there are no CONFIG_FILES.
16534 # This happens for instance with `./config.status config.h'.
16535 if test -n "$CONFIG_FILES"; then
16537 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
16538 ac_cs_awk_getline
=:
16539 ac_cs_awk_pipe_init
=
16540 ac_cs_awk_read_file
='
16541 while ((getline aline < (F[key])) > 0)
16544 ac_cs_awk_pipe_fini
=
16546 ac_cs_awk_getline
=false
16547 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
16548 ac_cs_awk_read_file
='
16550 print "cat " F[key] " &&"
16551 '$ac_cs_awk_pipe_init
16552 # The final `:' finishes the AND list.
16553 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
16555 ac_cr
=`echo X | tr X '\015'`
16556 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16557 # But we know of no other shell where ac_cr would be empty at this
16558 # point, so we can use a bashism as a fallback.
16559 if test "x$ac_cr" = x
; then
16560 eval ac_cr
=\$
\'\\r
\'
16562 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16563 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16566 ac_cs_awk_cr
=$ac_cr
16569 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16572 # Create commands to substitute file output variables.
16574 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16575 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16576 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
16579 } >conf$
$files.sh
&&
16580 . .
/conf$
$files.sh ||
16581 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
16582 rm -f conf$
$files.sh
16585 echo "cat >conf$$subs.awk <<_ACEOF" &&
16586 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16588 } >conf$$subs.sh ||
16589 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16590 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16592 for ac_last_try in false false false false false :; do
16593 . ./conf$$subs.sh ||
16594 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16596 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16597 if test $ac_delim_n = $ac_delim_num; then
16599 elif $ac_last_try; then
16600 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16602 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16605 rm -f conf$$subs.sh
16607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16608 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
16612 s/^/S["/; s
/!.
*/"]=/
16622 s/\(.\{148\}\).*/\1/
16624 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16629 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16636 s/\(.\{148\}\).*/\1/
16638 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16642 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16647 ' <conf$$subs.awk | sed '
16652 ' >>$CONFIG_STATUS || ac_write_fail=1
16653 rm -f conf$$subs.awk
16654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16656 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
16657 for (key in S) S_is_set[key] = 1
16659 \$ac_cs_awk_pipe_init
16663 nfields = split(line, field, "@
")
16665 len = length(field[1])
16666 for (i = 2; i < nfields; i++) {
16668 keylen = length(key)
16669 if (S_is_set[key]) {
16671 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16672 len += length(value) + length(field[++i])
16677 if (nfields == 3 && !substed) {
16679 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16680 \$ac_cs_awk_read_file
16686 \$ac_cs_awk_pipe_fini
16689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16690 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16691 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16694 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
16695 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
16698 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16699 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
16700 # trailing colons and then remove the whole line if VPATH becomes empty
16701 # (actually we leave an empty line to preserve line numbers).
16702 if test "x
$srcdir" = x.; then
16703 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16704 s/:*\$(srcdir):*/:/
16705 s/:*\${srcdir}:*/:/
16707 s/^\([^=]*=[ ]*\):*/\1/
16713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16714 fi # test -n "$CONFIG_FILES"
16716 # Set up the scripts for CONFIG_HEADERS section.
16717 # No need to generate them if there are no CONFIG_HEADERS.
16718 # This happens for instance with `./config.status Makefile'.
16719 if test -n "$CONFIG_HEADERS"; then
16720 cat >"$tmp/defines.
awk" <<\_ACAWK ||
16724 # Transform confdefs.h into an awk script `defines.awk', embedded as
16725 # here-document in config.status, that substitutes the proper values into
16726 # config.h.in to produce config.h.
16728 # Create a delimiter string that does not exist in confdefs.h, to ease
16729 # handling of long lines.
16731 for ac_last_try in false false :; do
16732 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
16733 if test -z "$ac_t"; then
16735 elif $ac_last_try; then
16736 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
16738 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16742 # For the awk script, D is an array of macro values keyed by name,
16743 # likewise P contains macro parameters if any. Preserve backslash
16744 # newline sequences.
16746 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16748 s/.\{148\}/&'"$ac_delim"'/g
16751 s/^[ ]*#[ ]*define[ ][ ]*/ /
16758 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16760 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16764 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16765 D["\
1"]=" \
3\\\\\\n
"\\/p
16767 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16772 s/.\{148\}/&'"$ac_delim"'/g
16777 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16780 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16782 ' <confdefs.h | sed '
16783 s/'"$ac_delim"'/"\\\
16784 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16787 for (key in D) D_is_set[key] = 1
16790 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16792 split(line, arg, " ")
16793 if (arg[1] == "#") {
16797 defundef
= substr
(arg
[1], 2)
16800 split(mac1
, mac2
, "(") #)
16802 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16803 if (D_is_set
[macro
]) {
16804 # Preserve the white space surrounding the "#".
16805 print prefix
"define", macro P
[macro
] D
[macro
]
16808 # Replace #undef with comments. This is necessary, for example,
16809 # in the case of _POSIX_SOURCE, which is predefined and required
16810 # on some systems where configure will not decide to define it.
16811 if (defundef
== "undef") {
16812 print
"/*", prefix defundef
, macro
, "*/"
16820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16821 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
16822 fi # test -n "$CONFIG_HEADERS"
16825 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16830 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16832 case $ac_mode$ac_tag in
16834 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16835 :[FH
]-) ac_tag
=-:-;;
16836 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16853 -) ac_f
="$tmp/stdin";;
16854 *) # Look for the file first in the build tree, then in the source tree
16855 # (if the path is not absolute). The absolute path cannot be DOS-style,
16856 # because $ac_f cannot contain `:'.
16860 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16862 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
16864 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16865 as_fn_append ac_file_inputs
" '$ac_f'"
16868 # Let's still pretend it is `configure' which instantiates (i.e., don't
16869 # use $as_me), people would be surprised to read:
16870 # /* config.h. Generated by config.status. */
16871 configure_input
='Generated from '`
16872 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16874 if test x
"$ac_file" != x-
; then
16875 configure_input
="$ac_file. $configure_input"
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16877 $as_echo "$as_me: creating $ac_file" >&6;}
16879 # Neutralize special characters interpreted by sed in replacement strings.
16880 case $configure_input in #(
16881 *\
&* |
*\|
* |
*\\* )
16882 ac_sed_conf_input
=`$as_echo "$configure_input" |
16883 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16884 *) ac_sed_conf_input
=$configure_input;;
16888 *:-:* |
*:-) cat >"$tmp/stdin" \
16889 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
16894 ac_dir
=`$as_dirname -- "$ac_file" ||
16895 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16896 X"$ac_file" : 'X\(//\)[^/]' \| \
16897 X"$ac_file" : 'X\(//\)$' \| \
16898 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16899 $as_echo X"$ac_file" |
16900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16904 /^X\(\/\/\)[^/].*/{
16917 as_dir
="$ac_dir"; as_fn_mkdir_p
16921 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16923 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16924 # A ".." for each directory in $ac_dir_suffix.
16925 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16926 case $ac_top_builddir_sub in
16927 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16928 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16931 ac_abs_top_builddir
=$ac_pwd
16932 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16933 # for backward compatibility:
16934 ac_top_builddir
=$ac_top_build_prefix
16937 .
) # We are building in place.
16939 ac_top_srcdir
=$ac_top_builddir_sub
16940 ac_abs_top_srcdir
=$ac_pwd ;;
16941 [\\/]* | ?
:[\\/]* ) # Absolute name.
16942 ac_srcdir
=$srcdir$ac_dir_suffix;
16943 ac_top_srcdir
=$srcdir
16944 ac_abs_top_srcdir
=$srcdir ;;
16945 *) # Relative name.
16946 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16947 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16948 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16950 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16960 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
16961 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
16963 ac_MKDIR_P
=$MKDIR_P
16965 [\\/$
]* | ?
:[\\/]* ) ;;
16966 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
16970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16971 # If the template does not know about datarootdir, expand it.
16972 # FIXME: This hack should be removed a few years after 2.60.
16973 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16984 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16985 *datarootdir
*) ac_datarootdir_seen
=yes;;
16986 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16988 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16991 ac_datarootdir_hack='
16992 s&@datadir@&$datadir&g
16993 s&@docdir@&$docdir&g
16994 s&@infodir@&$infodir&g
16995 s&@localedir@&$localedir&g
16996 s&@mandir@&$mandir&g
16997 s&\\\${datarootdir}&$datarootdir&g' ;;
17001 # Neutralize VPATH when `$srcdir' = `.'.
17002 # Shell code in configure.ac might set extrasub.
17003 # FIXME: do we really want to maintain this feature?
17004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17005 ac_sed_extra="$ac_vpsub
17008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17010 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17011 s|@configure_input@|
$ac_sed_conf_input|
;t t
17012 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17013 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17014 s
&@srcdir@
&$ac_srcdir&;t t
17015 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17016 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17017 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17018 s
&@builddir@
&$ac_builddir&;t t
17019 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17020 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17021 s
&@INSTALL@
&$ac_INSTALL&;t t
17022 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
17023 $ac_datarootdir_hack
17025 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17026 if $ac_cs_awk_getline; then
17027 $AWK -f "$tmp/subs.
awk"
17029 $AWK -f "$tmp/subs.
awk" | $SHELL
17031 || as_fn_error "could not create
$ac_file" "$LINENO" 5
17033 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17034 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
17035 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17037 which seems to be undefined. Please make sure it is defined." >&5
17038 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17039 which seems to be undefined. Please make sure it is defined." >&2;}
17043 -) cat "$tmp/out" && rm -f "$tmp/out";;
17044 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17046 || as_fn_error "could not create $ac_file" "$LINENO" 5
17052 if test x"$ac_file" != x-; then
17054 $as_echo "/* $configure_input */" \
17055 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17056 } >"$tmp/config.h" \
17057 || as_fn_error "could not create $ac_file" "$LINENO" 5
17058 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17060 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17063 mv "$tmp/config.h" "$ac_file" \
17064 || as_fn_error "could not create $ac_file" "$LINENO" 5
17067 $as_echo "/* $configure_input */" \
17068 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17069 || as_fn_error "could not create -" "$LINENO" 5
17071 # Compute "$ac_file"'s index
in $config_headers.
17074 for _am_header
in $config_headers :; do
17075 case $_am_header in
17076 $_am_arg |
$_am_arg:* )
17079 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
17082 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17083 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17084 X"$_am_arg" : 'X\(//\)[^/]' \| \
17085 X"$_am_arg" : 'X\(//\)$' \| \
17086 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17087 $as_echo X"$_am_arg" |
17088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17092 /^X\(\/\/\)[^/].*/{
17104 s/.*/./; q'`/stamp-h
$_am_stamp_count
17111 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17114 # Prefer the file from the source tree if names are identical.
17115 if test "$ac_source" = "$ac_file" ||
test ! -r "$ac_source"; then
17116 ac_source
=$srcdir/$ac_source
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17120 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17122 if test ! -r "$ac_source"; then
17123 as_fn_error
"$ac_source: file not found" "$LINENO" 5
17127 # Try a relative symlink, then a hard link, then a copy.
17129 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$ac_source ;;
17130 *) ac_rel_source
=$ac_top_build_prefix$ac_source ;;
17132 ln -s "$ac_rel_source" "$ac_file" 2>/dev
/null ||
17133 ln "$ac_source" "$ac_file" 2>/dev
/null ||
17134 cp -p "$ac_source" "$ac_file" ||
17135 as_fn_error
"cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17138 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17139 $as_echo "$as_me: executing $ac_file commands" >&6;}
17144 case $ac_file$ac_mode in
17145 "depdir":C
) $SHELL $ac_aux_dir/mkinstalldirs
$DEPDIR ;;
17146 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
17147 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17148 # are listed without --file. Let's play safe and only enable the eval
17149 # if we detect the quoting.
17150 case $CONFIG_FILES in
17151 *\'*) eval set x
"$CONFIG_FILES" ;;
17152 *) set x
$CONFIG_FILES ;;
17157 # Strip MF so we end up with the name of the file.
17158 mf
=`echo "$mf" | sed -e 's/:.*$//'`
17159 # Check whether this is an Automake generated Makefile or not.
17160 # We used to match only the files named `Makefile.in', but
17161 # some people rename them; so instead we look at the file content.
17162 # Grep'ing the first line is not enough: some people post-process
17163 # each Makefile.in and add a new line on top of each file to say so.
17164 # Grep'ing the whole file is not good either: AIX grep has a line
17165 # limit of 2048, but all sed's we know have understand at least 4000.
17166 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
17167 dirpart
=`$as_dirname -- "$mf" ||
17168 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17169 X"$mf" : 'X\(//\)[^/]' \| \
17170 X"$mf" : 'X\(//\)$' \| \
17171 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17177 /^X\(\/\/\)[^/].*/{
17193 # Extract the definition of DEPDIR, am__include, and am__quote
17194 # from the Makefile without running `make'.
17195 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
17196 test -z "$DEPDIR" && continue
17197 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
17198 test -z "am__include" && continue
17199 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
17200 # When using ansi2knr, U may be empty or an underscore; expand it
17201 U
=`sed -n 's/^U = //p' < "$mf"`
17202 # Find all dependency output files, they are included files with
17203 # $(DEPDIR) in their names. We invoke sed twice because it is the
17204 # simplest approach to changing $(DEPDIR) to its actual value in the
17206 for file in `sed -n "
17207 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17208 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17209 # Make sure the directory exists.
17210 test -f "$dirpart/$file" && continue
17211 fdir
=`$as_dirname -- "$file" ||
17212 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17213 X"$file" : 'X\(//\)[^/]' \| \
17214 X"$file" : 'X\(//\)$' \| \
17215 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17216 $as_echo X"$file" |
17217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17221 /^X\(\/\/\)[^/].*/{
17234 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
17235 # echo "creating $dirpart/$file"
17236 echo '# dummy' > "$dirpart/$file"
17242 case x
$CONFIG_HEADERS in
17243 xconfig.h
:config.
in)
17254 ac_clean_files
=$ac_clean_files_save
17256 test $ac_write_fail = 0 ||
17257 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
17260 # configure is writing to config.log, and then calls config.status.
17261 # config.status does its own redirection, appending to config.log.
17262 # Unfortunately, on DOS this fails, as config.log is still kept open
17263 # by configure, so config.status won't be able to write to it; its
17264 # output is simply discarded. So we exec the FD to /dev/null,
17265 # effectively closing config.log, so it can be properly (re)opened and
17266 # appended to by config.status. When coming back to configure, we
17267 # need to make the FD available again.
17268 if test "$no_create" != yes; then
17270 ac_config_status_args
=
17271 test "$silent" = yes &&
17272 ac_config_status_args
="$ac_config_status_args --quiet"
17274 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17276 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17277 # would make configure fail if this is the last instruction.
17278 $ac_cs_success || as_fn_exit $?
17282 # CONFIG_SUBDIRS section.
17284 if test "$no_recursion" != yes; then
17286 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17287 # so they do not pile up.
17288 ac_sub_configure_args
=
17290 eval "set x $ac_configure_args"
17294 if test -n "$ac_prev"; then
17299 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
17300 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
17301 ac_prev
=cache_file
;;
17302 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
17303 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
17306 --config-cache |
-C)
17308 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
17310 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
17312 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
17314 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
17316 --disable-option-checking)
17320 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17322 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
17326 # Always prepend --prefix to ensure using the same prefix
17327 # in subdir configurations.
17328 ac_arg
="--prefix=$prefix"
17330 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17332 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
17335 if test "$silent" = yes; then
17336 ac_sub_configure_args
="--silent $ac_sub_configure_args"
17339 # Always prepend --disable-option-checking to silence warnings, since
17340 # different subdirs can have different --enable and --with options.
17341 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
17344 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
17346 # Do not complain, so a configure script can configure whichever
17347 # parts of a large source tree are present.
17348 test -d "$srcdir/$ac_dir" ||
continue
17350 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17351 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17352 $as_echo "$ac_msg" >&6
17353 as_dir
="$ac_dir"; as_fn_mkdir_p
17357 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17359 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17360 # A ".." for each directory in $ac_dir_suffix.
17361 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17362 case $ac_top_builddir_sub in
17363 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17364 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17367 ac_abs_top_builddir
=$ac_pwd
17368 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17369 # for backward compatibility:
17370 ac_top_builddir
=$ac_top_build_prefix
17373 .
) # We are building in place.
17375 ac_top_srcdir
=$ac_top_builddir_sub
17376 ac_abs_top_srcdir
=$ac_pwd ;;
17377 [\\/]* | ?
:[\\/]* ) # Absolute name.
17378 ac_srcdir
=$srcdir$ac_dir_suffix;
17379 ac_top_srcdir
=$srcdir
17380 ac_abs_top_srcdir
=$srcdir ;;
17381 *) # Relative name.
17382 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17383 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17384 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17386 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17391 # Check for guested configure; otherwise get Cygnus style configure.
17392 if test -f "$ac_srcdir/configure.gnu"; then
17393 ac_sub_configure
=$ac_srcdir/configure.gnu
17394 elif test -f "$ac_srcdir/configure"; then
17395 ac_sub_configure
=$ac_srcdir/configure
17396 elif test -f "$ac_srcdir/configure.in"; then
17397 # This should be Cygnus configure.
17398 ac_sub_configure
=$ac_aux_dir/configure
17400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17401 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17405 # The recursion is here.
17406 if test -n "$ac_sub_configure"; then
17407 # Make the cache file name correct relative to the subdirectory.
17408 case $cache_file in
17409 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
17410 *) # Relative name.
17411 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
17414 { $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
17415 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17416 # The eval makes quoting arguments work.
17417 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17418 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17419 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17425 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17427 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}